"use strict"; global.__starttime = Date.now(); global.__isMain = require.main === module; "use strict"; var __create = Object.create; var __defProp = Object.defineProperty; var __getOwnPropDesc = Object.getOwnPropertyDescriptor; var __getOwnPropNames = Object.getOwnPropertyNames; var __getProtoOf = Object.getPrototypeOf; var __hasOwnProp = Object.prototype.hasOwnProperty; var __esm = (fn, res, err) => function __init() { if (err) throw err[0]; try { return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res; } catch (e2) { throw err = [e2], e2; } }; var __commonJS = (cb, mod) => function __require() { try { return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports; } catch (e2) { throw mod = 0, e2; } }; var __export = (target, all) => { for (var name2 in all) __defProp(target, name2, { get: all[name2], enumerable: true }); }; var __copyProps = (to, from, except, desc) => { if (from && typeof from === "object" || typeof from === "function") { for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); } return to; }; var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps( // 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. isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, mod )); var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); // node_modules/ansi-styles/index.js var ansi_styles_exports = {}; __export(ansi_styles_exports, { backgroundColorNames: () => backgroundColorNames, colorNames: () => colorNames, default: () => ansi_styles_default, foregroundColorNames: () => foregroundColorNames, modifierNames: () => modifierNames, underlineColorNames: () => underlineColorNames }); function assembleStyles() { const codes = /* @__PURE__ */ new Map(); for (const [groupName2, group] of Object.entries(styles)) { for (const [styleName, style] of Object.entries(group)) { styles[styleName] = { open: `\x1B[${style[0]}m`, close: `\x1B[${style[1]}m` }; group[styleName] = styles[styleName]; codes.set(Number(String(style[0]).split(new RegExp("[:;]", "v"), 1)[0]), style[1]); } Object.defineProperty(styles, groupName2, { value: group, enumerable: false }); } Object.defineProperty(styles, "codes", { value: codes, enumerable: false }); styles.color.close = "\x1B[39m"; styles.bgColor.close = "\x1B[49m"; styles.underlineColor.close = "\x1B[59m"; styles.color.ansi = wrapAnsi16(); styles.color.ansi256 = wrapAnsi256(); styles.color.ansi16m = wrapAnsi16m(); styles.bgColor.ansi = wrapAnsi16(ANSI_BACKGROUND_OFFSET); styles.bgColor.ansi256 = wrapAnsi256(ANSI_BACKGROUND_OFFSET); styles.bgColor.ansi16m = wrapAnsi16m(ANSI_BACKGROUND_OFFSET); styles.underlineColor.ansi = wrapUnderlineAnsi; styles.underlineColor.ansi256 = wrapAnsi256(ANSI_UNDERLINE_OFFSET); styles.underlineColor.ansi16m = wrapAnsi16m(ANSI_UNDERLINE_OFFSET); Object.defineProperties(styles, { rgbToAnsi256: { value(red, green, blue2) { if (red === green && green === blue2) { if (red < 8) { return 16; } if (red > 248) { return 231; } return Math.round((red - 8) / 247 * 24) + 232; } return 16 + 36 * Math.round(red / 255 * 5) + 6 * Math.round(green / 255 * 5) + Math.round(blue2 / 255 * 5); }, enumerable: false }, hexToRgb: { value(hex) { const matches = new RegExp("[\\da-f]{6}|[\\da-f]{3}", "iv").exec(hex.toString(16)); if (!matches) { return [0, 0, 0]; } let [colorString] = matches; if (colorString.length === 3) { colorString = [...colorString].map((character) => character + character).join(""); } const integer2 = Number.parseInt(colorString, 16); return [ /* eslint-disable no-bitwise -- We need the speed */ integer2 >> 16 & 255, integer2 >> 8 & 255, integer2 & 255 /* eslint-enable no-bitwise */ ]; }, enumerable: false }, hexToAnsi256: { value: (hex) => styles.rgbToAnsi256(...styles.hexToRgb(hex)), enumerable: false }, ansi256ToAnsi: { value(code) { if (code < 8) { return 30 + code; } if (code < 16) { return 90 + (code - 8); } let red; let green; let blue2; if (code >= 232) { red = ((code - 232) * 10 + 8) / 255; green = red; blue2 = red; } else { code -= 16; const remainder = code % 36; red = Math.floor(code / 36) / 5; green = Math.floor(remainder / 6) / 5; blue2 = remainder % 6 / 5; } const value = Math.max(red, green, blue2) * 2; if (value === 0) { return 30; } let result = 30 + (Math.round(blue2) << 2 | Math.round(green) << 1 | Math.round(red)); if (value === 2) { result += 60; } return result; }, enumerable: false }, rgbToAnsi: { value: (red, green, blue2) => styles.ansi256ToAnsi(styles.rgbToAnsi256(red, green, blue2)), enumerable: false }, hexToAnsi: { value: (hex) => styles.ansi256ToAnsi(styles.hexToAnsi256(hex)), enumerable: false } }); return styles; } var ANSI_BACKGROUND_OFFSET, ANSI_UNDERLINE_OFFSET, wrapAnsi16, wrapAnsi256, wrapAnsi16m, wrapUnderlineAnsi, blackBright, bgBlackBright, styles, modifierNames, foregroundColorNames, backgroundColorNames, underlineColorNames, colorNames, ansiStyles, ansi_styles_default; var init_ansi_styles = __esm({ "node_modules/ansi-styles/index.js"() { ANSI_BACKGROUND_OFFSET = 10; ANSI_UNDERLINE_OFFSET = 20; wrapAnsi16 = (offset = 0) => (code) => `\x1B[${code + offset}m`; wrapAnsi256 = (offset = 0) => (code) => `\x1B[${38 + offset};5;${code}m`; wrapAnsi16m = (offset = 0) => (red, green, blue2) => `\x1B[${38 + offset};2;${red};${green};${blue2}m`; wrapUnderlineAnsi = (code) => `\x1B[58;5;${code < 90 ? code - 30 : code - 90 + 8}m`; blackBright = [90, 39]; bgBlackBright = [100, 49]; styles = { modifier: { reset: [0, 0], // 21 isn't widely supported and 22 does the same thing bold: [1, 22], dim: [2, 22], italic: [3, 23], underline: [4, 24], // Extended underline styles (`SGR 4:x` sub-parameters). Not in upstream `ansi-styles`. underlineDouble: ["4:2", 24], underlineCurly: ["4:3", 24], underlineDotted: ["4:4", 24], underlineDashed: ["4:5", 24], overline: [53, 55], inverse: [7, 27], hidden: [8, 28], strikethrough: [9, 29] }, color: { black: [30, 39], red: [31, 39], green: [32, 39], yellow: [33, 39], blue: [34, 39], magenta: [35, 39], cyan: [36, 39], white: [37, 39], // Bright color blackBright, gray: blackBright, grey: blackBright, redBright: [91, 39], greenBright: [92, 39], yellowBright: [93, 39], blueBright: [94, 39], magentaBright: [95, 39], cyanBright: [96, 39], whiteBright: [97, 39] }, bgColor: { bgBlack: [40, 49], bgRed: [41, 49], bgGreen: [42, 49], bgYellow: [43, 49], bgBlue: [44, 49], bgMagenta: [45, 49], bgCyan: [46, 49], bgWhite: [47, 49], // Bright color bgBlackBright, bgGray: bgBlackBright, bgGrey: bgBlackBright, bgRedBright: [101, 49], bgGreenBright: [102, 49], bgYellowBright: [103, 49], bgBlueBright: [104, 49], bgMagentaBright: [105, 49], bgCyanBright: [106, 49], bgWhiteBright: [107, 49] }, // Underline color (`SGR 58`/`59`). Not in upstream `ansi-styles`. underlineColor: { underlineBlack: ["58;5;0", 59], underlineRed: ["58;5;1", 59], underlineGreen: ["58;5;2", 59], underlineYellow: ["58;5;3", 59], underlineBlue: ["58;5;4", 59], underlineMagenta: ["58;5;5", 59], underlineCyan: ["58;5;6", 59], underlineWhite: ["58;5;7", 59], // Bright color underlineBlackBright: ["58;5;8", 59], underlineGray: ["58;5;8", 59], // Alias of `underlineBlackBright` underlineGrey: ["58;5;8", 59], // Alias of `underlineBlackBright` underlineRedBright: ["58;5;9", 59], underlineGreenBright: ["58;5;10", 59], underlineYellowBright: ["58;5;11", 59], underlineBlueBright: ["58;5;12", 59], underlineMagentaBright: ["58;5;13", 59], underlineCyanBright: ["58;5;14", 59], underlineWhiteBright: ["58;5;15", 59] } }; modifierNames = Object.keys(styles.modifier); foregroundColorNames = Object.keys(styles.color); backgroundColorNames = Object.keys(styles.bgColor); underlineColorNames = Object.keys(styles.underlineColor); colorNames = [...foregroundColorNames, ...backgroundColorNames]; ansiStyles = assembleStyles(); ansi_styles_default = ansiStyles; } }); // node_modules/debounce/index.js var debounce_exports = {}; __export(debounce_exports, { default: () => debounce }); function debounce(function_, wait2 = 100, options3 = {}) { if (typeof function_ !== "function") { throw new TypeError(`Expected the first parameter to be a function, got \`${typeof function_}\`.`); } if (wait2 < 0) { throw new RangeError("`wait` must not be negative."); } if (typeof options3 === "boolean") { throw new TypeError("The `options` parameter must be an object, not a boolean. Use `{immediate: true}` instead."); } const { immediate } = options3; let storedContext; let storedArguments; let timeoutId; let timestamp; let result; function run() { const callContext = storedContext; const callArguments = storedArguments; storedContext = void 0; storedArguments = void 0; result = function_.apply(callContext, callArguments); return result; } function later() { const last = Date.now() - timestamp; if (last < wait2 && last >= 0) { timeoutId = setTimeout(later, wait2 - last); } else { timeoutId = void 0; if (!immediate) { result = run(); } } } const debounced = function(...arguments_) { if (storedContext && this !== storedContext && Object.getPrototypeOf(this) === Object.getPrototypeOf(storedContext)) { throw new Error("Debounced method called with different contexts of the same prototype."); } storedContext = this; storedArguments = arguments_; timestamp = Date.now(); const callNow = immediate && !timeoutId; if (!timeoutId) { timeoutId = setTimeout(later, wait2); } if (callNow) { result = run(); return result; } return void 0; }; Object.defineProperty(debounced, "isPending", { get() { return timeoutId !== void 0; } }); debounced.clear = () => { if (!timeoutId) { return; } clearTimeout(timeoutId); timeoutId = void 0; storedContext = void 0; storedArguments = void 0; }; debounced.flush = () => { if (!timeoutId) { return; } debounced.trigger(); }; debounced.trigger = () => { result = run(); debounced.clear(); }; return debounced; } var init_debounce = __esm({ "node_modules/debounce/index.js"() { } }); // node_modules/glob/dist/commonjs/index.min.js var require_index_min = __commonJS({ "node_modules/glob/dist/commonjs/index.min.js"(exports2) { "use strict"; var C2 = (r2, t2) => () => { try { return t2 || r2((t2 = { exports: {} }).exports, t2), t2.exports; } catch (e2) { throw t2 = 0, e2; } }; var ms = C2((tt) => { "use strict"; Object.defineProperty(tt, "__esModule", { value: true }); tt.range = tt.balanced = void 0; var Ei = (r2, t2, e2) => { let s2 = r2 instanceof RegExp ? ps(r2, e2) : r2, i2 = t2 instanceof RegExp ? ps(t2, e2) : t2, n2 = s2 !== null && i2 != null && (0, tt.range)(s2, i2, e2); return n2 && { start: n2[0], end: n2[1], pre: e2.slice(0, n2[0]), body: e2.slice(n2[0] + s2.length, n2[1]), post: e2.slice(n2[1] + i2.length) }; }; tt.balanced = Ei; var ps = (r2, t2) => { let e2 = t2.match(r2); return e2 ? e2[0] : null; }, Oi = (r2, t2, e2) => { let s2, i2, n2, o2, h2, a2 = e2.indexOf(r2), l2 = e2.indexOf(t2, a2 + 1), c2 = a2; if (a2 >= 0 && l2 > 0) { if (r2 === t2) return [a2, l2]; for (s2 = [], n2 = e2.length; c2 >= 0 && !h2; ) { if (c2 === a2) s2.push(c2), a2 = e2.indexOf(r2, c2 + 1); else if (s2.length === 1) { let u2 = s2.pop(); u2 !== void 0 && (h2 = [u2, l2]); } else i2 = s2.pop(), i2 !== void 0 && i2 < n2 && (n2 = i2, o2 = l2), l2 = e2.indexOf(t2, c2 + 1); c2 = a2 < l2 && a2 >= 0 ? a2 : l2; } s2.length && o2 !== void 0 && (h2 = [n2, o2]); } return h2; }; tt.range = Oi; }); var vs = C2((T) => { "use strict"; Object.defineProperty(T, "__esModule", { value: true }); T.EXPANSION_MAX_REWRITES = T.EXPANSION_MAX_DEPTH = T.EXPANSION_MAX_LENGTH = T.EXPANSION_MAX = void 0; T.expand = Wi; var gs = ms(), ws = "\0SLASH" + Math.random() + "\0", bs = "\0OPEN" + Math.random() + "\0", xe = "\0CLOSE" + Math.random() + "\0", ys = "\0COMMA" + Math.random() + "\0", Ss = "\0PERIOD" + Math.random() + "\0", xi = new RegExp(ws, "g"), Ci = new RegExp(bs, "g"), Mi = new RegExp(xe, "g"), ki = new RegExp(ys, "g"), Ai = new RegExp(Ss, "g"), Ri = /\\\\/g, Pi = /\\{/g, Ti = /\\}/g, Fi = /\\,/g, ji = /\\\./g; T.EXPANSION_MAX = 1e5; T.EXPANSION_MAX_LENGTH = 4e6; T.EXPANSION_MAX_DEPTH = 1e3; T.EXPANSION_MAX_REWRITES = 1e3; function _e(r2) { return isNaN(r2) ? r2.charCodeAt(0) : parseInt(r2, 10); } function Ni(r2) { return r2.replace(Ri, ws).replace(Pi, bs).replace(Ti, xe).replace(Fi, ys).replace(ji, Ss); } function Di(r2) { return r2.replace(xi, "\\").replace(Ci, "{").replace(Mi, "}").replace(ki, ",").replace(Ai, "."); } function Ee(r2, t2) { for (let e2 = 0; e2 < t2.length; e2++) r2.push(t2[e2]); } function Li(r2) { let t2 = [], e2 = ""; for (; ; ) { let s2 = (0, gs.balanced)("{", "}", r2); if (!s2) { let a2 = r2.split(","); return a2[0] = e2 + a2[0], Ee(t2, a2), t2; } let { pre: i2, body: n2, post: o2 } = s2, h2 = i2.split(","); if (h2[0] = e2 + h2[0], h2[h2.length - 1] += "{" + n2 + "}", !o2.length) return Ee(t2, h2), t2; e2 = h2.pop(), Ee(t2, h2), r2 = o2; } } function Wi(r2, t2 = {}) { if (!r2) return []; let { max: e2 = T.EXPANSION_MAX, maxLength: s2 = T.EXPANSION_MAX_LENGTH, maxDepth: i2 = T.EXPANSION_MAX_DEPTH, maxRewrites: n2 = T.EXPANSION_MAX_REWRITES } = t2; return r2.slice(0, 2) === "{}" && (r2 = "\\{\\}" + r2.slice(2)), Oe(Ni(r2), e2, s2, i2, 0, n2, true).map(Di); } function zi(r2) { return "{" + r2 + "}"; } function Bi(r2) { return /^-?0\d/.test(r2); } function Gi(r2, t2) { return r2 <= t2; } function Ii(r2, t2) { return r2 >= t2; } function ct(r2, t2, e2, s2, i2, n2) { let o2 = [], h2 = 0; for (let a2 = 0; a2 < r2.length; a2++) for (let l2 = 0; l2 < e2.length; l2++) { if (o2.length >= s2) return o2; let c2 = r2[a2] + t2 + e2[l2]; if (!(n2 && !c2)) { if (h2 + c2.length > i2) return o2; o2.push(c2), h2 += c2.length; } } return o2; } function $i(r2, t2, e2, s2) { let i2 = r2.split(/\.\./), n2 = []; if (i2[0] === void 0 || i2[1] === void 0) return n2; let o2 = _e(i2[0]), h2 = _e(i2[1]), a2 = Math.max(i2[0].length, i2[1].length), l2 = i2.length === 3 && i2[2] !== void 0 ? Math.max(Math.abs(_e(i2[2])), 1) : 1, c2 = Gi; h2 < o2 && (l2 *= -1, c2 = Ii); let f2 = i2.some(Bi), p2 = 0; for (let g2 = o2; c2(g2, h2) && n2.length < e2; g2 += l2) { let d2; if (t2) d2 = String.fromCharCode(g2), d2 === "\\" && (d2 = ""); else if (d2 = String(g2), f2) { let b2 = a2 - d2.length; if (b2 > 0) { let m2 = new Array(b2 + 1).join("0"); g2 < 0 ? d2 = "-" + m2 + d2.slice(1) : d2 = m2 + d2; } } if (p2 + d2.length > s2) break; n2.push(d2), p2 += d2.length; } return n2; } function Oe(r2, t2, e2, s2, i2, n2, o2) { if (i2 > s2) return [r2]; let h2 = [""], a2 = 0, l2 = false, c2 = true; for (; ; ) { let u2 = (0, gs.balanced)("{", "}", r2); if (!u2) return ct(h2, r2, [""], t2, e2, l2); let f2 = u2.pre; if (/\$$/.test(f2)) { if (h2 = ct(h2, f2 + "{" + u2.body + "}", [""], t2, e2, l2 && !u2.post.length), c2 = false, !u2.post.length) break; r2 = u2.post; continue; } let p2 = /^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(u2.body), g2 = /^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(u2.body), d2 = p2 || g2, b2 = u2.body.indexOf(",") >= 0; if (!d2 && !b2) { if (a2 < n2 && u2.post.match(/,(?!,).*\}/)) { a2++, r2 = u2.pre + "{" + u2.body + xe + u2.post, o2 = true; continue; } return ct(h2, f2 + "{" + u2.body + "}" + u2.post, [""], t2, e2, l2); } c2 && (l2 = o2 && !d2, c2 = false); let m2; if (d2) m2 = $i(u2.body, g2, t2, e2); else { let y2 = Li(u2.body); if (y2.length === 1 && y2[0] !== void 0 && (y2 = Oe(y2[0], t2, e2, s2, i2 + 1, n2, false).map(zi), y2.length === 1)) { if (h2 = ct(h2, f2 + y2[0], [""], t2, e2, l2 && !u2.post.length), !u2.post.length) break; r2 = u2.post; continue; } let _2 = l2 && !u2.post.length && !f2; for (let S = 0; _2 && S < h2.length; S++) h2[S] && (_2 = false); m2 = []; let v2 = 0; t: for (let S = 0; S < y2.length; S++) { let K = Oe(y2[S], t2, e2, s2, i2 + 1, n2, false); for (let B = 0; B < K.length; B++) { let U = K[B]; if (!(_2 && !U)) { if (m2.length >= t2 || v2 + U.length > e2) break t; m2.push(U), v2 += U.length; } } } } if (h2 = ct(h2, f2, m2, t2, e2, l2 && !u2.post.length), !u2.post.length) break; r2 = u2.post; } return h2; } }); var Es = C2((jt) => { "use strict"; Object.defineProperty(jt, "__esModule", { value: true }); jt.numericRange = void 0; var Me = (r2, t2) => r2 === t2 ? { t: "lit", ch: String(r2) } : { t: "class", re: new RegExp(`^[${r2}-${t2}]$`) }, Ce = (r2, t2) => t2.map((e2) => [Me(r2, r2), ...e2]), ut = (r2, t2) => { if (!r2) return [[]]; let e2 = +r2[0], s2 = +t2[0], i2 = r2.slice(1), n2 = t2.slice(1); if (e2 === s2) return Ce(e2, ut(i2, n2)); let o2 = "0".repeat(i2.length), h2 = "9".repeat(i2.length), a2 = []; i2 !== o2 && a2.push(...Ce(e2++, ut(i2, h2))); let l2 = n2 === h2 ? [] : Ce(s2--, ut(o2, n2)); return e2 <= s2 && a2.push([Me(e2, s2), ...Array.from(i2, () => Me(0, 9))]), a2.push(...l2), a2; }, _s = (r2, t2, e2) => { if (e2) return ut(String(r2).padStart(e2, "0"), String(t2).padStart(e2, "0")); let s2 = []; for (let i2 = String(r2).length; i2 <= String(t2).length; i2++) { let n2 = Math.max(r2, i2 === 1 ? 0 : 10 ** (i2 - 1)), o2 = Math.min(t2, 10 ** i2 - 1); s2.push(...ut(String(n2), String(o2))); } return s2; }, Ui = (r2, t2) => { let e2 = Number(r2), s2 = Number(t2); if (!Number.isSafeInteger(e2) || !Number.isSafeInteger(s2)) return; e2 > s2 && ([e2, s2] = [s2, e2]); let n2 = /^-?0\d/.test(r2) || /^-?0\d/.test(t2) ? Math.max(r2.length, t2.length) : 0, o2 = []; if (e2 < 0) { let h2 = _s(Math.max(-s2, 1), -e2, n2 && n2 - 1); o2.push(...h2.map((a2) => [{ t: "lit", ch: "-" }, ...a2])); } return s2 >= 0 && o2.push(..._s(Math.max(e2, 0), s2, n2)), o2; }; jt.numericRange = Ui; }); var Os = C2((Nt) => { "use strict"; Object.defineProperty(Nt, "__esModule", { value: true }); Nt.parseClass = void 0; var qi = { "[:alnum:]": ["\\p{L}\\p{Nl}\\p{Nd}"], "[:alpha:]": ["\\p{L}\\p{Nl}"], "[:ascii:]": ["\\x00-\\x7f"], "[:blank:]": ["\\p{Zs}\\t"], "[:cntrl:]": ["\\p{Cc}"], "[:digit:]": ["\\p{Nd}"], "[:graph:]": ["\\p{Z}\\p{C}", true], "[:lower:]": ["\\p{Ll}"], "[:print:]": ["\\p{C}", true], "[:punct:]": ["\\p{P}\\p{S}"], "[:space:]": ["\\p{Z}\\t\\r\\n\\v\\f"], "[:upper:]": ["\\p{Lu}"], "[:word:]": ["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}"], "[:xdigit:]": ["A-Fa-f0-9"] }, ft = (r2) => r2.replace(/[[\]\\-]/g, "\\$&"), ke = /$./, Hi = (r2, t2, e2 = false, s2) => { let i2 = (m2) => { let y2 = s2 ? m2.normalize(s2) : m2; return [...y2].length === 1 ? y2 : m2; }, n2 = t2; if (r2.charAt(n2) !== "[") throw new Error("not in a brace expression"); let o2 = [], h2 = [], a2 = n2 + 1, l2 = false, c2 = false, u2 = false, f2 = n2, p2 = ""; t: for (; a2 < r2.length; ) { let m2 = String.fromCodePoint(r2.codePointAt(a2)); if ((m2 === "!" || m2 === "^") && a2 === n2 + 1) { u2 = true, a2++; continue; } if (m2 === "]" && l2 && !c2) { f2 = a2 + 1; break; } if (l2 = true, m2 === "\\" && !c2) { c2 = true, a2++; continue; } if (m2 === "[" && !c2) { for (let [_2, [v2, S]] of Object.entries(qi)) if (r2.startsWith(_2, a2)) { if (p2) return [ke, r2.length - n2]; a2 += _2.length, S ? h2.push(v2) : o2.push(v2); continue t; } } c2 = false; let y2 = i2(m2); if (p2) { y2.codePointAt(0) > p2.codePointAt(0) ? o2.push(ft(p2) + "-" + ft(y2)) : y2 === p2 && o2.push(ft(y2)), p2 = "", a2 += m2.length; continue; } if (r2.startsWith("-]", a2 + m2.length)) { o2.push(ft(y2 + "-")), a2 += m2.length + 1; continue; } if (r2.startsWith("-", a2 + m2.length)) { p2 = y2, a2 += m2.length + 1; continue; } o2.push(ft(y2)), a2 += m2.length; } if (f2 < a2) return [ke, 0]; if (!o2.length && !h2.length) return [ke, r2.length - n2]; let g2 = "[" + (u2 ? "^" : "") + o2.join("") + "]", d2 = "[" + (u2 ? "" : "^") + h2.join("") + "]", b2 = "^" + (o2.length && h2.length ? "(" + g2 + "|" + d2 + ")" : o2.length ? g2 : d2); return [new RegExp(b2, e2 ? "iu" : "u"), f2 - n2]; }; Nt.parseClass = Hi; }); var Ns = C2((Wt) => { "use strict"; Object.defineProperty(Wt, "__esModule", { value: true }); Wt.Matcher = void 0; var Xi = Es(), Ki = Os(), Ae = { t: "match", id: 0 }, Vi = "!?+*@", et = (r2) => ({ t: "lit", ch: r2 }), Yi = (r2) => r2.replace(/[\\^$.*+?()[\]{}|/]/g, "\\$&"), ks = (r2) => new RegExp(`^${Yi(r2)}$`, "iu"), Dt = /* @__PURE__ */ new Map(), As = (r2) => { let t2 = Dt.get(r2); return t2 || (t2 = ks(r2), Dt.size >= 1e3 && Dt.clear(), Dt.set(r2, t2)), t2; }, Fe = (r2, t2) => { if (t2 === r2.ch) return true; if (!r2.re) return false; let e2 = t2.charCodeAt(0); if (e2 >= 128) return r2.re.test(t2); let s2 = r2.ascii ??= new Uint8Array(128); return s2[e2] ||= r2.re.test(t2) ? 1 : 2, s2[e2] === 1; }, Ji = (r2, t2, e2, s2, i2) => { let n2 = []; for (let o2 = 0; o2 < r2.length; ) { let h2 = String.fromCodePoint(r2.codePointAt(o2)); if (i2) { let a2 = h2 === "\\" && r2.startsWith(i2, o2 + 1) ? 1 : 0; if (a2 || h2 === i2) { let l2 = o2 + a2 + i2.length, c2 = r2.indexOf(i2, l2), u2 = /^(-?\d+)\.\.(-?\d+)$/.exec(r2.slice(l2, c2)), f2 = c2 !== -1 && u2 && (0, Xi.numericRange)(u2[1], u2[2]); if (f2) { n2.push({ t: "ext", type: "@", alts: f2 }), o2 = c2 + i2.length; continue; } } } if (h2 === "\\") { let a2 = r2.codePointAt(o2 + 1), l2 = a2 === void 0 ? h2 : String.fromCodePoint(a2); n2.push(et(l2)), o2 += 1 + l2.length; continue; } if (h2 === "[") { let [a2, l2] = (0, Ki.parseClass)(r2, o2, t2, s2); if (l2) { n2.push({ t: "class", re: a2 }), o2 += l2; continue; } } if (!e2 && Vi.includes(h2) && r2[o2 + 1] === "(") { n2.push({ t: "open", type: h2 }), o2 += 2; continue; } n2.push(!e2 && h2 === "|" ? { t: "bar" } : !e2 && h2 === ")" ? { t: "close" } : h2 === "*" ? { t: "star" } : h2 === "?" ? { t: "any" } : et(h2)), o2 += h2.length; } return n2; }, Zi = (r2) => { let t2 = /* @__PURE__ */ new Map(), e2 = []; return r2.forEach((s2, i2) => { s2.t === "open" ? e2.push(i2) : s2.t === "close" && e2.length && t2.set(e2.pop(), i2); }), t2; }, Rs = (r2, t2, e2, s2, i2) => { let n2 = [], o2 = [n2]; for (let h2 = e2; h2 < s2; h2++) { let a2 = r2[h2], l2 = t2.get(h2); if (a2.t === "open" && l2 !== void 0) { let c2 = Rs(r2, t2, h2 + 1, l2, false); n2.push({ t: "ext", type: a2.type, alts: c2 }), h2 = l2; } else a2.t === "bar" && !i2 ? o2.push(n2 = []) : a2.t === "open" ? n2.push(et(a2.type), et("(")) : a2.t === "bar" ? n2.push(et("|")) : a2.t === "close" ? n2.push(et(")")) : n2.push(a2); } return o2; }, Ps = (r2, t2) => { let e2 = [], s2 = "", i2 = () => { for (let n2 of s2.normalize(t2)) e2.push(et(n2)); s2 = ""; }; for (let n2 of r2) { if (n2.t === "lit") { s2 += n2.ch; continue; } i2(), e2.push(n2.t === "ext" ? { ...n2, alts: n2.alts.map((o2) => Ps(o2, t2)) } : n2); } return i2(), e2; }, Qi = (r2, t2) => { let e2 = 1, s2 = (h2) => ({ t: "split", id: e2++, out: h2 }), i2 = (h2, a2) => h2.reduceRight((l2, c2) => n2(c2, l2), a2), n2 = (h2, a2) => { switch (h2.t) { case "lit": let f2 = t2 ? As(h2.ch) : void 0; return { t: "lit", id: e2++, ch: h2.ch, re: f2, next: a2 }; case "any": case "star": return { t: h2.t, id: e2++, next: a2 }; case "class": return { t: "class", id: e2++, re: h2.re, next: a2 }; } let l2 = (f2) => h2.alts.map((p2) => i2(p2, f2)); switch (h2.type) { case "@": return s2(l2(a2)); case "?": return s2([a2, ...l2(a2)]); case "!": return { t: "neg", id: e2++, sub: s2(l2(Ae)), next: a2 }; } let c2 = s2([]), u2 = s2(l2(c2)); return c2.out.push(a2, u2), h2.type === "*" ? c2 : u2; }; return [i2(r2, Ae), e2]; }, tn = (r2) => { let t2 = [], e2 = /* @__PURE__ */ new Set(), s2 = (n2) => n2.t === "match" ? "match" : String(n2.id), i2 = (n2, o2) => { if (n2.t === "match" || e2.has(n2)) return; e2.add(n2); let h2 = (a2) => t2.push(`${o2}${n2.id}: ${a2}`); switch (n2.t) { case "split": h2(`split -> ${n2.out.map(s2).join(", ")}`); for (let a2 of n2.out) i2(a2, o2); return; case "neg": return h2(`!(${s2(n2.sub)}) -> ${s2(n2.next)}`), i2(n2.sub, o2 + " "), i2(n2.next, o2); case "lit": h2(`${JSON.stringify(n2.ch)} -> ${s2(n2.next)}`); break; case "class": h2(`${n2.re} -> ${s2(n2.next)}`); break; default: h2(`${n2.t === "any" ? "?" : "*"} -> ${s2(n2.next)}`); } i2(n2.next, o2); }; return i2(r2, ""), [`start -> ${s2(r2)}`, ...t2].join(` `); }, Re = class { gen; threads = []; match = false; runs = []; ids = []; constructor(t2) { this.gen = t2; } get dead() { return !this.threads.length && !this.match && !this.runs.length; } }, Ts = (r2, t2) => r2.ids.length !== t2.ids.length || r2.runs.length !== t2.runs.length || r2.ids.some((e2, s2) => e2 !== t2.ids[s2]) ? false : r2.runs.every((e2) => t2.runs.some((s2) => s2.neg === e2.neg && Ts(s2.state, e2.state))), xs = (r2) => ({ has: new Float64Array(r2), seen: new Float64Array(r2), gen: 0 }), dt = class { dots; dotStart; #t; constructor(t2, e2, s2) { this.dots = t2, this.dotStart = e2, this.#t = s2; } state() { return new Re(++this.#t.gen); } done(t2) { return t2.ids = t2.threads.map((e2) => e2.id).sort((e2, s2) => e2 - s2), t2.match && t2.ids.unshift(Ae.id), t2; } #n(t2, e2) { let { seen: s2 } = this.#t; return s2[e2.id] === t2.gen ? false : (s2[e2.id] = t2.gen, true); } #i(t2, e2) { let { has: s2 } = this.#t; return s2[e2.id] === t2.gen ? false : (s2[e2.id] = t2.gen, t2.threads.push(e2), true); } restricted(t2, e2) { return e2 && (this.dots || this.dotStart && t2 === 0); } add(t2, e2, s2, i2) { switch (e2.t) { case "split": if (!this.#n(t2, e2)) return; for (let o2 of e2.out) this.add(t2, o2, s2, i2); return; case "neg": if (!this.#n(t2, e2)) return; let n2 = this.state(); return this.add(n2, e2.sub, s2, false), this.done(n2), this.addRun(t2, { t: "run", neg: e2, state: n2 }, s2, i2); case "star": if (this.restricted(s2, i2)) return; this.#i(t2, e2) && this.add(t2, e2.next, s2, i2); return; case "match": t2.match = true; return; default: this.#i(t2, e2); } } addRun(t2, e2, s2, i2) { for (let n2 of t2.runs) if (n2.neg === e2.neg && Ts(n2.state, e2.state)) return; t2.runs.push(e2), e2.state.match || this.add(t2, e2.neg.next, s2, i2); } step(t2, e2, s2, i2) { let n2 = this.state(); for (let o2 of t2.threads) switch (o2.t) { case "lit": Fe(o2, e2) && this.add(n2, o2.next, s2 + 1, i2); break; case "any": this.restricted(s2, i2) || this.add(n2, o2.next, s2 + 1, i2); break; case "class": !this.restricted(s2, i2) && o2.re.test(e2) && this.add(n2, o2.next, s2 + 1, i2); break; case "star": this.restricted(s2, i2) || this.add(n2, o2, s2 + 1, i2); } if (!this.restricted(s2, i2)) for (let o2 of t2.runs) { if (o2.state.dead) { this.addRun(n2, o2, s2 + 1, i2); continue; } let h2 = this.step(o2.state, e2, s2, false); this.addRun(n2, { t: "run", neg: o2.neg, state: h2 }, s2 + 1, i2); } return this.done(n2); } }, Fs = (r2) => { let t2 = r2.ids.join(); if (!r2.runs.length) return t2; let e2 = r2.runs.map((s2) => `${s2.neg.id}(${Fs(s2.state)})`); return `${t2}|${e2.sort().join("|")}`; }, en = 1 << 18, Pe = class { #t; #n = /* @__PURE__ */ new Map(); #i = 0; #o; #r; #d; #f; constructor(t2, e2) { this.#t = t2, this.#d = new dt(false, false, e2), this.#f = new dt(false, true, e2); } #u(t2) { return { state: t2, match: t2.match, dead: t2.dead, next: /* @__PURE__ */ new Map() }; } #h(t2) { let e2 = Fs(t2), s2 = this.#n.get(e2); if (s2) return s2; this.#i > en && this.#m(); let i2 = this.#u(t2); return this.#n.set(e2, i2), this.#i += e2.length + 1, i2; } #m() { this.#n.clear(), this.#i = 0, this.#o = void 0, this.#r = void 0; } start(t2) { if (t2) { if (this.#r) return this.#r; let s2 = this.#f.state(); return this.#f.add(s2, this.#t, 0, true), this.#r = this.#u(this.#f.done(s2)); } if (this.#o) return this.#o; let e2 = this.#d.state(); return this.#d.add(e2, this.#t, 0, true), this.#o = this.#h(this.#d.done(e2)); } next(t2, e2) { let s2 = e2.charCodeAt(0), i2 = s2 < 128 ? void 0 : t2.next.get(e2); if (i2) return i2; let n2 = t2 === this.#r ? this.#h(this.#f.step(t2.state, e2, 0, true)) : this.#h(this.#d.step(t2.state, e2, 1, true)); return s2 < 128 ? (t2.ascii || (t2.ascii = new Array(128), this.#i += 128), t2.ascii[s2] = n2) : t2.next.set(e2, n2), this.#i++, n2; } }, sn = (r2) => { let t2 = []; for (let e2 = r2; e2.t !== "match"; e2 = e2.next) { if (e2.t === "split" || e2.t === "neg") return; t2.push(e2); } return t2; }, nn = (r2, t2, e2, s2) => { let i2 = 0, n2 = e2, o2 = -1, h2 = 0; for (; n2 < s2; ) { let a2 = r2[i2]; if (a2?.t === "star") { o2 = i2++, h2 = n2; continue; } let l2 = t2[n2]; if (a2 && (a2.t === "any" || a2.t === "lit" && Fe(a2, l2) || a2.t === "class" && a2.re.test(l2))) { i2++, n2++; continue; } if (o2 === -1) return false; i2 = o2 + 1, n2 = ++h2; } for (; r2[i2]?.t === "star"; ) i2++; return i2 === r2.length; }, js = (r2) => { let t2 = 0, e2 = 0; for (let s2 of r2) { let [i2, n2] = rn(s2); t2 += i2, e2 += n2; } return [t2, e2]; }, rn = (r2) => { if (r2.t === "star") return [0, 1 / 0]; if (r2.t !== "ext") return [1, 1]; if (r2.type === "!") return [0, 1 / 0]; let t2 = r2.alts.map(js), e2 = Math.min(...t2.map((n2) => n2[0])), s2 = Math.max(...t2.map((n2) => n2[1])), i2 = s2 === 0 ? 0 : 1 / 0; return r2.type === "@" ? [e2, s2] : r2.type === "?" ? [0, s2] : r2.type === "*" ? [0, i2] : [e2, i2]; }, Cs = (r2, t2, e2) => { for (let s2 = 0; s2 < r2.length; s2++) if (!Fe(r2[s2], t2[e2 + s2])) return false; return true; }, on = /[/\ud800-\udfff]/, hn = /[\ud800-\udfff]/, Lt = (r2) => hn.test(r2) ? [...r2] : r2, Ms = (r2) => { if (r2.includes("/")) throw new Error("can only match a single path portion, got: " + r2); }, Te = class { pattern; options; #t; #n; #i; #o; #r; #d = false; #f; #u; #h = false; #m = 0; #l = 1 / 0; #a = []; #s = []; #b; #E; #y = false; #g; #w; constructor(t2, e2 = {}) { if (t2.includes("/")) throw new Error("can only match a single path portion, got pattern: " + t2); this.pattern = t2, this.options = e2; let { nocase: s2 = false, noext: i2 = false, normalize: n2 } = e2; this.#w = n2 === true ? "NFC" : n2 || void 0; let o2 = /^[?*+@]\(\)$/.test(t2), h2 = Ji(t2, s2, i2 || o2, this.#w, e2.rangeMark), [a2] = Rs(h2, Zi(h2), 0, h2.length, true); this.#w && (a2 = Ps(a2, this.#w)); let [l2, c2] = Qi(a2, s2); if (this.#t = l2, this.#n = c2, a2.every((u2) => u2.t === "lit")) this.#r = a2.map((u2) => u2.ch).join(""), this.#d = s2; else { let u2 = (g2) => g2.t !== "lit" ? void 0 : s2 ? { ch: g2.ch, re: As(g2.ch) } : { ch: g2.ch }; for (let g2 of a2) { let d2 = u2(g2); if (!d2) break; this.#a.push(d2); } for (let g2 = a2.length - 1; g2 >= 0; g2--) { let d2 = u2(a2[g2]); if (!d2) break; this.#s.unshift(d2); } this.#y = !!(this.#a.length || this.#s.length), s2 || (this.#b = this.#a.map((g2) => g2.ch).join(""), this.#E = this.#s.map((g2) => g2.ch).join("")), this.#u = sn(this.#t)?.slice(this.#a.length, -this.#s.length || void 0), this.#h = !!this.#u?.every((g2) => g2.t === "star" || g2.t === "any"); let [f2, p2] = js(a2); this.#m = f2, this.#l = p2; } } test(t2) { return this.#w ? (Ms(t2), this.#p(t2.normalize(this.#w))) : on.test(t2) ? (Ms(t2), this.#p(t2, [...t2])) : this.#p(t2, t2); } testUnchecked(t2) { return this.#p(this.#w ? t2.normalize(this.#w) : t2); } #p(t2, e2) { if (this.#r !== void 0) return this.#d ? (this.#f ??= ks(this.#r)).test(t2) : t2 === this.#r; let s2 = this.#m, i2 = this.#l; if (e2 === void 0) { let c2 = t2.length, u2 = c2 + 1 >> 1; if (c2 < s2 || u2 > i2) return false; (u2 < s2 || c2 > i2) && (e2 = Lt(t2)); } if (e2 !== void 0 && (e2.length < s2 || e2.length > i2)) return false; let n2 = this.#a.length; if (this.#y) if (this.#b !== void 0 && this.#E !== void 0) { if (!t2.startsWith(this.#b) || !t2.endsWith(this.#E)) return false; } else { e2 ??= Lt(t2); let c2 = e2.length - this.#s.length; if (!Cs(this.#a, e2, 0) || !Cs(this.#s, e2, c2)) return false; } let o2 = !this.options.dot && t2.startsWith("."); if (this.#u) { if (t2 === "." || t2 === ".." || o2 && !n2) return false; if (this.#h) return true; e2 ??= Lt(t2); let c2 = e2.length - this.#s.length; return nn(this.#u, e2, n2, c2); } if (e2 ??= Lt(t2), t2 === "." || t2 === "..") { this.#i ??= xs(this.#n); let c2 = this.#o ??= new dt(true, false, this.#i), u2 = c2.state(); c2.add(u2, this.#t, 0, true); let f2 = c2.done(u2); for (let p2 = 0; p2 < e2.length; p2++) f2 = c2.step(f2, e2[p2], p2, true); return f2.match; } this.#i ??= xs(this.#n); let h2 = this.#g ??= new Pe(this.#t, this.#i), a2 = h2.start(o2), l2 = e2 === t2; for (let c2 = 0; c2 < e2.length; c2++) { if (a2.dead) return false; let u2 = l2 ? t2.charCodeAt(c2) : e2[c2].charCodeAt(0); a2 = a2.ascii?.[u2] ?? h2.next(a2, e2[c2]); } return a2.match; } toString() { return tn(this.#t); } }; Wt.Matcher = Te; }); var Ds = C2((zt) => { "use strict"; Object.defineProperty(zt, "__esModule", { value: true }); zt.assertValidPattern = void 0; var an = 1024 * 64, ln = (r2) => { if (typeof r2 != "string") throw new TypeError("invalid pattern"); if (r2.length > an) throw new TypeError("pattern is too long"); }; zt.assertValidPattern = ln; }); var je = C2((Bt) => { "use strict"; Object.defineProperty(Bt, "__esModule", { value: true }); Bt.escape = void 0; var cn = (r2, { windowsPathsNoEscape: t2 = false, magicalBraces: e2 = false } = {}) => e2 ? t2 ? r2.replace(/[?*()[\]{}]/g, "[$&]") : r2.replace(/[?*()[\]\\{}]/g, "\\$&") : t2 ? r2.replace(/[?*()[\]]/g, "[$&]") : r2.replace(/[?*()[\]\\]/g, "\\$&"); Bt.escape = cn; }); var Ne = C2((Gt) => { "use strict"; Object.defineProperty(Gt, "__esModule", { value: true }); Gt.unescape = void 0; var un = (r2, { windowsPathsNoEscape: t2 = false, magicalBraces: e2 = true } = {}) => e2 ? t2 ? r2.replace(/\[([^/\\])\]/g, "$1") : r2.replace(/((?!\\).|^)\[([^/\\])\]/g, "$1$2").replace(/\\([^/])/g, "$1") : t2 ? r2.replace(/\[([^/\\{}])\]/g, "$1") : r2.replace(/((?!\\).|^)\[([^/\\{}])\]/g, "$1$2").replace(/\\([^/{}])/g, "$1"); Gt.unescape = un; }); var Y = C2((w2) => { "use strict"; Object.defineProperty(w2, "__esModule", { value: true }); w2.unescape = w2.escape = w2.Minimatch = w2.match = w2.braceExpand = w2.defaults = w2.filter = w2.GLOBSTAR = w2.sep = w2.minimatch = void 0; var fn = vs(), Ls = Ns(), Ut = Ds(), dn = je(), pn = Ne(), mn = (r2, t2, e2 = {}) => ((0, Ut.assertValidPattern)(t2), !e2.nocomment && t2.charAt(0) === "#" ? false : wn(t2, e2).match(r2)); w2.minimatch = mn; var ot = /* @__PURE__ */ new Map(), gn = 256, wn = (r2, t2) => { let e2 = r2 + "\0" + JSON.stringify(t2), s2 = ot.get(e2); return s2 ? ot.delete(e2) : (s2 = new ht(r2, { ...t2 }), ot.size >= gn && ot.delete(ot.keys().next().value)), ot.set(e2, s2), s2; }, $s = typeof process == "object" && process ? process.env?.__MINIMATCH_TESTING_PLATFORM__ || process.platform : "posix", Ws = { win32: { sep: "\\" }, posix: { sep: "/" } }; w2.sep = $s === "win32" ? Ws.win32.sep : Ws.posix.sep; w2.minimatch.sep = w2.sep; w2.GLOBSTAR = /* @__PURE__ */ Symbol("globstar **"); w2.minimatch.GLOBSTAR = w2.GLOBSTAR; var bn = (r2, t2 = {}) => (e2) => (0, w2.minimatch)(e2, r2, t2); w2.filter = bn; w2.minimatch.filter = w2.filter; var q = (r2, t2 = {}) => Object.assign({}, r2, t2), yn = (r2) => { if (!r2 || typeof r2 != "object" || !Object.keys(r2).length) return w2.minimatch; let t2 = w2.minimatch; return Object.assign((s2, i2, n2 = {}) => t2(s2, i2, q(r2, n2)), { Minimatch: class extends t2.Minimatch { constructor(i2, n2 = {}) { super(i2, q(r2, n2)); } static defaults(i2) { return t2.defaults(q(r2, i2)).Minimatch; } }, unescape: (s2, i2 = {}) => t2.unescape(s2, q(r2, i2)), escape: (s2, i2 = {}) => t2.escape(s2, q(r2, i2)), filter: (s2, i2 = {}) => t2.filter(s2, q(r2, i2)), defaults: (s2) => t2.defaults(q(r2, s2)), braceExpand: (s2, i2 = {}) => t2.braceExpand(s2, q(r2, i2)), match: (s2, i2, n2 = {}) => t2.match(s2, i2, q(r2, n2)), sep: t2.sep, GLOBSTAR: w2.GLOBSTAR }); }; w2.defaults = yn; w2.minimatch.defaults = w2.defaults; var Sn = (r2, t2 = {}) => ((0, Ut.assertValidPattern)(r2), t2.nobrace || !/\{(?:(?!\{).)*\}/.test(r2) ? [r2] : (0, fn.expand)(r2, { max: t2.braceExpandMax })); w2.braceExpand = Sn; w2.minimatch.braceExpand = w2.braceExpand; var vn = 100, _n = /(? { let s2 = new ht(t2, e2); return r2 = r2.filter((i2) => s2.match(i2)), s2.options.nonull && !r2.length && r2.push(t2), r2; }; w2.match = En; w2.minimatch.match = w2.match; var zs = /[?*]|[+@!]\(.*?\)|\[|\]/, Us = (r2, t2) => { let e2 = t2 + 1; (r2.charAt(e2) === "!" || r2.charAt(e2) === "^") && e2++; let s2 = false; for (; e2 < r2.length; e2++) { let i2 = r2.charAt(e2); if (i2 === "]" && s2) return e2; s2 = true, i2 === "\\" && e2++; } return -1; }, On = (r2, t2) => { if (!t2 && (r2 === "+()" || r2 === "@()")) return r2; let e2 = ""; for (let s2 = 0; s2 < r2.length; s2++) { let i2 = r2.charAt(s2); if (i2 === "\\") e2 += r2.charAt(++s2) || i2; else { if (i2 === "*" || i2 === "?") return; if (i2 === "[") { let n2 = Us(r2, s2); if (n2 === -1) { e2 += i2; continue; } let o2 = r2.slice(s2 + 1, n2); if (o2.startsWith("\\") && (o2 = o2.slice(1)), [...o2].length !== 1 || "!^".includes(r2.charAt(s2 + 1))) return; e2 += o2, s2 = n2; } else { if (!t2 && "+@!".includes(i2) && r2.charAt(s2 + 1) === "(" && r2.includes(")", s2 + 2)) return; e2 += i2; } } } return e2; }, xn = (r2) => { if (/^[?*+@]\(\)$/.test(r2) || r2.includes("[:")) return false; let t2 = 0; for (let e2 = 0; e2 < r2.length; e2++) { let s2 = r2.charAt(e2); if (s2 === "\\") { if (++e2 === r2.length) return false; } else if (s2 === "[") { let i2 = Us(r2, e2); i2 !== -1 && (e2 = i2); } else if ("+@!?*".includes(s2) && r2.charAt(e2 + 1) === "(") t2++, e2++; else if (s2 === ")") { if (!t2--) return false; } else if (s2 === "|" && !t2) return false; } return !t2; }, De, Bs, V = (r2, t2) => typeof r2 == "string" ? t2 === r2 : t2 !== "" && r2.testUnchecked(t2), Gs = (r2, t2, e2, s2, i2) => V(r2, t2) ? e2 : s2 !== void 0 && V(r2, s2) ? i2 : -1, Be = (r2) => r2 === "." || r2 === "..", Le = (r2) => typeof r2 == "string" && /^[a-z]:$/i.test(r2), $t = (r2) => typeof r2 == "string" && /^unc$/i.test(r2), We = (r2) => { if (r2[0] !== "" || r2[1] !== "") return -1; let t2 = r2[2] !== "?" ? 2 : $t(r2[3]) ? 4 : -1, e2 = r2[t2], s2 = r2[t2 + 1]; return t2 !== -1 && e2 !== void 0 && e2 !== "" && e2 !== w2.GLOBSTAR && s2 !== void 0 && s2 !== "" && s2 !== w2.GLOBSTAR ? t2 : -1; }, It = (r2, t2) => !Be(r2) && (t2 || !r2.startsWith(".")), pt = (r2, t2, e2, s2, i2) => { for (let n2 = t2; n2 < e2; ) { if (r2.charCodeAt(n2) === 46) { if (!s2) return true; let h2 = r2.charCodeAt(n2 + 1) === 46 ? n2 + 2 : n2 + 1; if (h2 >= e2 || qt(r2.charCodeAt(h2), i2)) return true; } let o2 = Ge(r2, n2, i2); if (o2 === -1) return false; for (n2 = o2 + 1; n2 < e2 && qt(r2.charCodeAt(n2), i2); ) n2++; } return false; }, qt = (r2, t2) => t2 === "/" ? r2 === 47 : t2 === "\\" ? r2 === 92 : r2 === 47 || r2 === 92, Ge = (r2, t2, e2) => { if (e2 !== "both") return r2.indexOf(e2, t2); let s2 = r2.indexOf("/", t2), i2 = r2.indexOf("\\", t2); return s2 === -1 ? i2 : i2 === -1 ? s2 : Math.min(s2, i2); }, Is2 = (r2, t2, e2) => e2 !== "both" ? r2.lastIndexOf(e2, t2) : Math.max(r2.lastIndexOf("/", t2), r2.lastIndexOf("\\", t2)), ze = {}, ht = class { options; set; pattern; windowsPathsNoEscape; nonegate; negate; comment; empty; preserveMultipleSlashes; partial; globSet; globParts; nocase; isWindows; platform; windowsNoMagicRoot; maxGlobstarRecursion; #t; #n; #i; #o; #r = []; #d = []; #f = []; #u = /* @__PURE__ */ new Map(); #h = false; #m; #l = /* @__PURE__ */ new WeakMap(); constructor(t2, e2 = {}) { (0, Ut.assertValidPattern)(t2), e2 = e2 || {}, this.options = e2, this.maxGlobstarRecursion = e2.maxGlobstarRecursion ?? 200, this.pattern = t2, this.platform = e2.platform || $s, this.isWindows = this.platform === "win32"; let s2 = "allowWindowsEscape"; this.windowsPathsNoEscape = !!e2.windowsPathsNoEscape || e2[s2] === false, this.windowsPathsNoEscape && (this.pattern = this.pattern.replace(/\\/g, "/")), this.preserveMultipleSlashes = !!e2.preserveMultipleSlashes, this.negate = false, this.nonegate = !!e2.nonegate, this.comment = false, this.empty = false, this.partial = !!e2.partial, this.nocase = !!this.options.nocase, this.windowsNoMagicRoot = e2.windowsNoMagicRoot !== void 0 ? e2.windowsNoMagicRoot : !!(this.isWindows && this.nocase), this.globSet = [], this.globParts = [], this.set = [], this.#t = !this.preserveMultipleSlashes, this.#i = (e2.optimizationLevel ?? 1) >= 2; let i2 = e2.normalize; this.#o = i2 === true ? "NFC" : i2 || void 0, this.make(); let n2 = this.set.map((o2) => this.#s(o2)); this.#f = this.set.map((o2, h2) => this.#t && o2.length - 1 > n2[h2]), this.#r = this.set.map((o2, h2) => { let a2 = this.#f[h2] ? o2.length - 1 : o2.length, l2 = o2.slice(n2[h2] + 1, a2).filter((c2) => typeof c2 == "string" && !!c2); return [...new Set(l2)]; }), this.#n = this.#r.some((o2) => o2.length), this.#d = this.set.map((o2, h2) => { let [a2, l2, c2] = o2; if (this.#f[h2] && o2.length === 2 && a2 === w2.GLOBSTAR && l2 !== w2.GLOBSTAR) return "tail"; if (this.#f[h2] && e2.matchBase && o2.length === 1 && a2 !== w2.GLOBSTAR && a2 !== "") return "base"; if (!(!this.#t || n2[h2] !== -1)) { if (o2.length === 3 && a2 === w2.GLOBSTAR && c2 === w2.GLOBSTAR && l2 !== w2.GLOBSTAR && l2 !== "" && this.maxGlobstarRecursion > 0) return "mid"; if (o2.length === 2 && l2 === w2.GLOBSTAR && a2 !== w2.GLOBSTAR && a2 !== "") return "head"; } }); } #a(t2) { return this.#o ? t2.normalize(this.#o) : t2; } #s(t2) { if (!this.isWindows) return -1; if (Le(t2[0])) return 0; if (t2[0] === "" && t2[1] === "" && t2[2] === "?" && Le(t2[3])) return 3; let s2 = We(t2); return s2 === -1 ? -1 : s2 + 1; } hasMagic() { if (this.options.magicalBraces && this.set.length > 1) return true; for (let t2 of this.set) for (let e2 of t2) if (typeof e2 != "string") return true; return false; } make() { let t2 = this.pattern, e2 = this.options; if (!e2.nocomment && t2.charAt(0) === "#") { this.comment = true; return; } if (!t2) { this.empty = true; return; } this.parseNegate(), this.globSet = [...new Set(this.#M())]; let s2 = this.globSet.map((n2) => this.#e(n2)); this.globParts = this.preprocess(s2), this.#h = true; let i2 = this.globParts.map((n2, o2, h2) => { if (this.isWindows && this.windowsNoMagicRoot) { let a2 = n2[2] === "?" && $t(n2[3]) ? 6 : 4, l2 = n2[0] === "" && n2[1] === "" && (n2[2] === "?" || !zs.test(n2[2])) && n2.slice(3, a2).every((u2) => !zs.test(u2)), c2 = /^[a-z]:/i.test(n2[0]); if (l2) return [...n2.slice(0, a2).map((u2) => this.#a(u2)), ...n2.slice(a2).map((u2) => this.parse(u2))]; if (c2) return [this.#a(n2[0]), ...n2.slice(1).map((u2) => this.parse(u2))]; } return n2.map((a2) => this.parse(a2)); }); if (this.set = i2.filter((n2) => n2.indexOf(false) === -1), this.isWindows) for (let n2 = 0; n2 < this.set.length; n2++) { let o2 = this.set[n2]; o2[0] === "" && o2[1] === "" && this.globParts[n2][2] === "?" && (Le(o2[3]) || $t(this.globParts[n2][3])) && ($t(this.globParts[n2][3]) && (o2[3] = "UNC"), o2[2] = "?"); } e2.noext || this.mergeRows(), this.#h = false, this.set.forEach((n2, o2) => { for (let h2 = 0; h2 < n2.length; h2++) n2[h2] === ze && (n2[h2] = this.parse(this.globParts[o2][h2])); }); } mergeRows() { let t2 = true; for (; t2; ) { t2 = false; let e2 = Math.max(0, ...this.set.map((s2) => s2.length)); for (let s2 = 0; s2 < e2; s2++) { let i2 = /* @__PURE__ */ new Map(); this.set.forEach((o2, h2) => { if (!(o2[s2] instanceof Ls.Matcher || o2[s2] === ze) || !xn(this.globParts[h2][s2])) return; let a2 = [...this.globParts[h2]]; a2[s2] = ""; let l2 = `${o2.length}/${a2.join("/")}`, c2 = i2.get(l2); c2 ? c2.push(h2) : i2.set(l2, [h2]); }); let n2 = /* @__PURE__ */ new Set(); for (let o2 of i2.values()) { if (o2.length < 2) continue; let [h2, ...a2] = o2, c2 = `@(${o2.map((u2) => this.globParts[u2][s2]).join("|")})`; this.globParts[h2][s2] = c2, this.set[h2][s2] = this.parse(c2); for (let u2 of a2) n2.add(u2); } n2.size && (t2 = true, this.set = this.set.filter((o2, h2) => !n2.has(h2)), this.globParts = this.globParts.filter((o2, h2) => !n2.has(h2))); } } } preprocess(t2) { if (this.options.noglobstar) for (let s2 of t2) for (let i2 = 0; i2 < s2.length; i2++) s2[i2] === "**" && (s2[i2] = "*"); let { optimizationLevel: e2 = 1 } = this.options; return e2 >= 2 ? (t2 = this.firstPhasePreProcess(t2), t2 = this.secondPhasePreProcess(t2)) : e2 >= 1 ? t2 = this.levelOneOptimize(t2) : t2 = this.adjascentGlobstarOptimize(t2), t2; } adjascentGlobstarOptimize(t2) { return t2.map((e2) => { let s2 = -1; for (; (s2 = e2.indexOf("**", s2 + 1)) !== -1; ) { let i2 = s2; for (; e2[i2 + 1] === "**"; ) i2++; i2 !== s2 && e2.splice(s2, i2 - s2); } return e2; }); } levelOneOptimize(t2) { return t2.map((e2) => { let s2 = this.#s(e2) + 1; return e2 = e2.reduce((i2, n2) => { let o2 = i2[i2.length - 1]; return n2 === "**" && o2 === "**" ? i2 : n2 === ".." && i2.length > s2 && o2 && o2 !== ".." && o2 !== "." && o2 !== "**" ? (i2.pop(), i2) : (i2.push(n2), i2); }, []), e2.length === 0 ? [""] : e2; }); } #b(t2) { let e2 = !this.isWindows || !t2.includes("\\") ? "/" : t2.includes("/") ? "both" : "\\", s2 = this.#t ? 0 : -1, i2 = "", n2 = 0, o2, h2 = 0, a2 = !!this.options.dot; t: for (let l2 = 0; l2 < this.set.length; l2++) { let c2 = this.set[l2], u2 = c2[c2.length - 1], f2 = s2 !== -1 && this.#f[l2] && u2 !== w2.GLOBSTAR; if (f2 && s2 === 0) { let d2 = Is2(t2, t2.length, e2); if (n2 = d2 + 1, i2 = t2.slice(n2), i2 === "" && d2 >= 0) { let m2 = d2; for (; m2 > 0 && qt(t2.charCodeAt(m2 - 1), e2); ) m2--; h2 = m2 === 0 ? 0 : Is2(t2, m2 - 1, e2) + 1, o2 = t2.slice(h2, m2); } let b2 = this.#i && (Be(i2) || i2 === "" && o2 !== void 0 && Be(o2)); s2 = b2 ? -1 : 1, f2 = !b2; } let p2 = -1; if (f2 && typeof u2 == "string" && (p2 = Gs(u2, i2, n2, o2, h2), p2 === -1)) continue; if (this.#n) { for (let d2 of this.#r[l2]) if (!t2.includes(d2)) continue t; } if (f2 && typeof u2 == "object" && (p2 = Gs(u2, i2, n2, o2, h2), p2 === -1)) continue; let g2 = this.#d[l2]; if (g2 === "base" && f2) return "yes"; if (g2 === "tail" && f2) { if (this.#i && pt(t2, 0, p2, true, e2)) return "maybe"; if (!pt(t2, 0, p2, a2, e2)) return "yes"; continue; } if (g2 === "mid" || g2 === "head") { let d2 = this.#y(t2, c2, g2 === "head", a2, e2); if (d2 !== "no") return d2; continue; } return "maybe"; } return "no"; } #E(t2, e2, s2) { let i2 = !!this.options.dot, n2 = t2.length; if (s2 === "head") { if (n2 < 2 || !V(e2[0], t2[0])) return false; for (let h2 = 1; h2 < n2; h2++) if (!It(t2[h2], i2)) return false; return true; } let o2 = e2[1]; if (s2 === "tail") { let h2 = n2 - 1; if (!V(o2, t2[h2]) && (t2[h2] !== "" || n2 === 1 || !V(o2, t2[--h2]))) return false; for (let a2 = 0; a2 < h2; a2++) if (!It(t2[a2], i2)) return false; return true; } for (let h2 = 0; h2 < n2; h2++) { if (V(o2, t2[h2]) && h2 + 1 < n2) { let a2 = h2 + 1; for (; a2 < n2 && It(t2[a2], i2); ) a2++; if (a2 === n2) return true; } if (!It(t2[h2], i2)) return false; } return false; } #y(t2, e2, s2, i2, n2) { if (this.#i && pt(t2, 0, t2.length, true, n2)) return "maybe"; let o2 = e2[s2 ? 0 : 1], h2 = 0; for (let a2 = Ge(t2, h2, n2); a2 !== -1; a2 = Ge(t2, h2, n2)) { let l2 = a2 + 1; for (; l2 < t2.length && qt(t2.charCodeAt(l2), n2); ) l2++; if ((typeof o2 == "string" ? a2 - h2 === o2.length && t2.startsWith(o2, h2) : a2 > h2 && o2.testUnchecked(t2.slice(h2, a2))) && !pt(t2, l2, t2.length, i2, n2)) return "yes"; if (s2 || pt(t2, h2, l2, i2, n2)) return "no"; h2 = l2; } return "no"; } #g(t2) { let e2 = De; return e2?.f === t2 && e2.isWindows === this.isWindows && e2.preserveMultipleSlashes === this.preserveMultipleSlashes && e2.normalize === this.#o ? e2 : void 0; } #w(t2) { let { isWindows: e2, preserveMultipleSlashes: s2 } = this, i2 = this.#e(e2 ? t2.split("\\").join("/") : t2), n2 = this.#o; return n2 && (i2 = i2.map((o2) => o2.normalize(n2))), De = { f: t2, isWindows: e2, preserveMultipleSlashes: s2, normalize: n2, parts: i2 }, De; } #p(t2) { let e2 = [...t2], s2 = false; do { if (s2 = false, !this.preserveMultipleSlashes) { for (let o2 = 1; o2 < e2.length - 1; o2++) { let h2 = e2[o2]; o2 === 1 && h2 === "" && e2[0] === "" || (h2 === "." || h2 === "") && (s2 = true, e2.splice(o2, 1), o2--); } e2[0] === "." && e2.length === 2 && (e2[1] === "." || e2[1] === "") && (s2 = true, e2.pop()); } let i2 = this.#s(e2) + 1, n2 = i2; for (; (n2 = e2.indexOf("..", n2 + 1)) !== -1; ) { let o2 = e2[n2 - 1]; o2 && o2 !== "." && o2 !== ".." && o2 !== "**" && (s2 = true, e2.splice(n2 - 1, 2), n2 = Math.max(n2 - 2, i2)); } } while (s2); return e2.length === 0 ? [""] : e2; } firstPhasePreProcess(t2) { let { braceExpandMax: e2 = 1e5 } = this.options, s2 = 0, i2 = 1e6, n2 = false; do { n2 = false; for (let o2 of t2) { let h2 = -1; for (; (h2 = o2.indexOf("**", h2 + 1)) !== -1; ) { let c2 = h2; for (; o2[c2 + 1] === "**"; ) c2++; c2 > h2 && o2.splice(h2 + 1, c2 - h2); let u2 = o2[h2 + 1], f2 = o2[h2 + 2], p2 = o2[h2 + 3]; if (u2 !== ".." || !f2 || f2 === "." || f2 === ".." || !p2 || p2 === "." || p2 === "..") continue; let g2 = o2.length - 1; if (t2.length >= e2 || s2 + g2 > i2) throw new RangeError("optimizationLevel 2: too many patterns from '**/..'"); n2 = true, o2.splice(h2, 1); let d2 = o2.slice(0); d2[h2] = "**", s2 += g2, t2.push(d2), h2--; } if (!this.preserveMultipleSlashes) { for (let c2 = 1; c2 < o2.length - 1; c2++) { let u2 = o2[c2]; c2 === 1 && u2 === "" && o2[0] === "" || (u2 === "." || u2 === "") && (n2 = true, o2.splice(c2, 1), c2--); } o2[0] === "." && o2.length === 2 && (o2[1] === "." || o2[1] === "") && (n2 = true, o2.pop()); } let a2 = this.#s(o2) + 1, l2 = a2; for (; (l2 = o2.indexOf("..", l2 + 1)) !== -1; ) { let c2 = o2[l2 - 1]; if (c2 && c2 !== "." && c2 !== ".." && c2 !== "**") { n2 = true; let f2 = l2 === 1 && o2[l2 + 1] === "**" ? ["."] : []; o2.splice(l2 - 1, 2, ...f2), o2.length === 0 && o2.push(""), l2 = Math.max(l2 - 2, a2); } } } } while (n2); return t2; } secondPhasePreProcess(t2) { let e2 = /* @__PURE__ */ new Set(), s2 = t2.filter((o2) => { let h2 = o2.join("/"); return e2.has(h2) ? false : (e2.add(h2), true); }), i2 = /* @__PURE__ */ new Map(); for (let o2 of s2) { let h2 = []; for (let a2 = 0; a2 < o2.length; a2++) o2[a2] === "*" && h2.push(a2); h2.length && i2.set(h2.join(","), h2); } if (!i2.size || s2.length * i2.size > 1e5) return s2; let { dot: n2 } = this.options; return s2.filter((o2) => { for (let h2 of i2.values()) { if (h2[h2.length - 1] >= o2.length) continue; let a2 = [...o2], l2 = true, c2 = false; for (let u2 of h2) { let f2 = o2[u2]; if (f2 !== "*") { if (!f2 || f2 === "**" || !n2 && f2.startsWith(".")) { l2 = false; break; } a2[u2] = "*", c2 = true; } } if (l2 && c2 && e2.has(a2.join("/"))) return false; } return true; }); } parseNegate() { if (this.nonegate) return; let t2 = this.pattern, e2 = false, s2 = 0; for (let i2 = 0; i2 < t2.length && t2.charAt(i2) === "!"; i2++) e2 = !e2, s2++; s2 && (this.pattern = t2.slice(s2)), this.negate = e2; } #O(t2, e2, s2, i2) { let n2 = 0, o2 = 0, h2 = this.isWindows ? We(e2) : -1, a2 = h2 === -1 ? -1 : We(s2); if (a2 !== -1) { let l2 = s2[a2], c2 = s2[a2 + 1]; typeof l2 != "string" || typeof c2 != "string" ? (n2 = h2, o2 = a2) : e2[h2].toLowerCase() === l2.toLowerCase() && e2[h2 + 1].toLowerCase() === c2.toLowerCase() && (n2 = h2 + 2, o2 = a2 + 2); } else if (this.isWindows) { let l2 = typeof t2[0] == "string" && /^[a-z]:$/i.test(t2[0]), c2 = !l2 && t2[0] === "" && t2[1] === "" && t2[2] === "?" && /^[a-z]:$/i.test(t2[3]), u2 = typeof s2[0] == "string" && /^[a-z]:$/i.test(s2[0]), f2 = !u2 && s2[0] === "" && s2[1] === "" && s2[2] === "?" && typeof s2[3] == "string" && /^[a-z]:$/i.test(s2[3]), p2 = c2 ? 3 : l2 ? 0 : void 0, g2 = f2 ? 3 : u2 ? 0 : void 0; if (typeof p2 == "number" && typeof g2 == "number") { let [d2, b2] = [t2[p2], s2[g2]]; d2.toLowerCase() === b2.toLowerCase() && (o2 = g2 + 1, n2 = p2 + 1); } } return t2 = e2, s2.includes(w2.GLOBSTAR) ? this.#x(t2, s2, i2, n2, o2) : this.#S(t2, s2, i2, n2, o2); } #x(t2, e2, s2, i2, n2) { let { head: o2, body: h2, tail: a2, segments: l2 } = this.#v(e2, s2, n2); if (o2.length) { let u2 = i2 + o2.length; if (!this.#S(t2, o2, s2, i2, 0, u2)) return false; i2 += o2.length, n2 += o2.length; } let c2 = 0; if (a2.length) { if (a2.length + i2 > t2.length) return false; let u2 = t2.length - a2.length; if (this.#S(t2, a2, s2, u2, 0)) c2 = a2.length; else { if (t2[t2.length - 1] !== "" || i2 + a2.length === t2.length || (u2--, !this.#S(t2, a2, s2, u2, 0))) return false; c2 = a2.length + 1; } } if (!h2.length) { let u2 = !!c2; for (let f2 = i2; f2 < t2.length - c2; f2++) { let p2 = String(t2[f2]); if (u2 = true, p2 === "." || p2 === ".." || !this.options.dot && p2.startsWith(".")) return false; } return s2 || u2; } return !!this.#_(t2, l2, t2.length - c2, i2, 0, s2, 0, !!c2, /* @__PURE__ */ new Set()); } #v(t2, e2, s2) { let i2 = this.#l.get(t2); i2 || (i2 = [], this.#l.set(t2, i2)); let n2 = s2 * 2 + (e2 ? 1 : 0), o2 = i2[n2]; if (o2) return o2; let h2 = t2.indexOf(w2.GLOBSTAR, s2), a2 = t2.lastIndexOf(w2.GLOBSTAR), l2 = t2.slice(s2, h2), c2 = t2.slice(h2 + 1, e2 ? void 0 : a2), u2 = e2 ? [] : t2.slice(a2 + 1), f2 = [[[], 0]], p2 = f2[0], g2 = 0, d2 = [0]; for (let m2 of c2) m2 === w2.GLOBSTAR ? (d2.push(g2), p2 = [[], 0], f2.push(p2)) : (p2[0].push(m2), g2++); f2.forEach((m2, y2) => { m2[1] = g2 - d2[y2]; }); let b2 = { head: l2, body: c2, tail: u2, segments: f2 }; return i2[n2] = b2, b2; } #_(t2, e2, s2, i2, n2, o2, h2, a2, l2) { let c2 = e2[n2]; if (!c2) { if (o2) return i2 >= s2 || i2 === s2 - 1 && t2[i2] === ""; for (let g2 = i2; g2 < s2; g2++) { a2 = true; let d2 = t2[g2]; if (d2 === "." || d2 === ".." || !this.options.dot && d2.startsWith(".")) return false; } return a2; } let [u2, f2] = c2, p2 = o2 ? s2 : s2 - f2; for (; i2 <= p2; ) { let g2 = n2 * (t2.length + 1) + i2; if (l2.has(g2)) return false; if (l2.add(g2), this.#S(t2, u2, o2, i2, 0, i2 + u2.length) && h2 < this.maxGlobstarRecursion) { let m2 = this.#_(t2, e2, s2, i2 + u2.length, n2 + 1, o2, h2 + 1, a2, l2); if (m2 !== false) return m2; } if (i2 === p2) break; let b2 = t2[i2]; if (b2 === "." || b2 === ".." || !this.options.dot && b2.startsWith(".")) return false; i2++; } return o2 || null; } #S(t2, e2, s2, i2, n2, o2 = t2.length) { let h2, a2, l2, c2; for (h2 = i2, a2 = n2, c2 = Math.min(o2, t2.length), l2 = e2.length; h2 < c2 && a2 < l2; h2++, a2++) { let u2 = e2[a2], f2 = t2[h2]; if (u2 === false || u2 === w2.GLOBSTAR || !V(u2, f2)) return false; } if (h2 === c2 && a2 === l2) return true; if (h2 === c2) return s2; if (a2 === l2) return h2 === c2 - 1 && t2[h2] === ""; throw new Error("wtf?"); } braceExpand() { return (0, w2.braceExpand)(this.pattern, this.options); } #M() { let { pattern: t2 } = this; if (this.options.nobrace) return this.braceExpand(); let e2 = 57344; for (; t2.includes(String.fromCharCode(e2)); ) if (++e2 > 63743) return this.braceExpand(); let s2 = String.fromCharCode(e2), i2 = false, n2 = t2.replace(_n, (h2, a2, l2) => { let c2 = Number(a2), u2 = Number(l2); return !Number.isSafeInteger(c2) || !Number.isSafeInteger(u2) || Math.abs(c2 - u2) + 1 < vn ? h2 : (i2 = true, `${s2}${a2}..${l2}${s2}`); }); if (!i2) return this.braceExpand(); let o2 = (0, w2.braceExpand)(n2, this.options); for (let h2 of o2) for (let a2 of h2.split("/")) { let l2 = a2.indexOf("["); if (l2 !== -1 && l2 < a2.lastIndexOf(s2)) return this.braceExpand(); } return this.#m = s2, o2; } parse(t2) { (0, Ut.assertValidPattern)(t2); let e2 = this.options; if (t2 === "**") return w2.GLOBSTAR; if (t2 === "") return ""; let { nocase: s2, nocaseMagicOnly: i2, noext: n2 = false, dot: o2, normalize: h2 } = e2, a2 = this.#m, l2 = a2 && t2.includes(a2) ? void 0 : On(t2, n2); if (l2 !== void 0 && !(s2 && !i2 && t2.toUpperCase() !== t2.toLowerCase())) return this.#a(l2); if (this.#h) return ze; let c2 = this.#u.get(t2); return c2 || (c2 = new Ls.Matcher(t2, { nocase: s2, noext: n2, dot: o2, normalize: h2, ...a2 && { rangeMark: a2 } }), this.#u.set(t2, c2)), c2; } #e(t2) { return this.preserveMultipleSlashes ? t2.split("/") : this.isWindows && /^\/\/[^/]+/.test(t2) ? ["", ...t2.split(/\/+/)] : t2.split(/\/+/); } match(t2, e2 = this.partial) { if (this.comment) return false; if (this.empty) return t2 === ""; if (t2 === "/" && e2) return true; let s2 = this.options, i2 = this.#g(t2); if (!i2) { if (!e2 && !this.#o && (this.#t || this.#n) && Bs !== t2) { Bs = t2; let l2 = this.#b(t2); if (l2 === "no") return s2.flipNegate ? false : this.negate; if (l2 === "yes") return s2.flipNegate ? true : !this.negate; } i2 = this.#w(t2); } let n2 = i2.parts, o2 = this.#i ? i2.resolved ??= this.#p(n2) : n2, h2 = this.set, a2 = n2[n2.length - 1]; if (!a2) for (let l2 = n2.length - 2; !a2 && l2 >= 0; l2--) a2 = n2[l2]; for (let l2 = 0; l2 < h2.length; l2++) { let c2 = h2[l2], u2 = e2 ? void 0 : this.#d[l2]; if (u2 === "base" ? V(c2[0], a2) : u2 ? this.#E(o2, c2, u2) : s2.matchBase && c2.length === 1 ? this.#O([a2], [a2], c2, e2) : this.#O(n2, o2, c2, e2)) return s2.flipNegate ? true : !this.negate; } return s2.flipNegate ? false : this.negate; } static defaults(t2) { return w2.minimatch.defaults(t2).Minimatch; } }; w2.Minimatch = ht; var Cn = je(); Object.defineProperty(w2, "escape", { enumerable: true, get: function() { return Cn.escape; } }); var Mn = Ne(); Object.defineProperty(w2, "unescape", { enumerable: true, get: function() { return Mn.unescape; } }); w2.minimatch.Minimatch = ht; w2.minimatch.escape = dn.escape; w2.minimatch.unescape = pn.unescape; }); var Ys = C2((Xt) => { "use strict"; var Hs = (r2, t2) => () => (t2 || r2((t2 = { exports: {} }).exports, t2), t2.exports), kn = Hs((r2) => { "use strict"; Object.defineProperty(r2, "__esModule", { value: true }), r2.tracing = r2.metrics = void 0; var t2 = require("node:diagnostics_channel"); r2.metrics = (0, t2.channel)("lru-cache:metrics"), r2.tracing = (0, t2.tracingChannel)("lru-cache"); }), An = Hs((r2) => { "use strict"; Object.defineProperty(r2, "__esModule", { value: true }), r2.defaultPerf = void 0, r2.defaultPerf = typeof performance == "object" && performance && typeof performance.now == "function" ? performance : Date; }); Object.defineProperty(Xt, "__esModule", { value: true }); Xt.LRUCache = void 0; var O = kn(), Rn = An(), Ie = () => O.metrics.hasSubscribers || O.tracing.hasSubscribers, Xs = /* @__PURE__ */ new Set(), qs = typeof process == "object" && process ? process : {}, Pn = (r2, t2, e2, s2) => { typeof qs.emitWarning == "function" ? qs.emitWarning(r2, t2, e2, s2) : console.error(`[${e2}] ${t2}: ${r2}`); }, Tn = (r2) => !Xs.has(r2), J = (r2) => !!r2 && r2 === Math.floor(r2) && r2 > 0 && isFinite(r2), Ks = (r2) => J(r2) ? r2 <= Math.pow(2, 8) ? Uint8Array : r2 <= Math.pow(2, 16) ? Uint16Array : r2 <= Math.pow(2, 32) ? Uint32Array : r2 <= Number.MAX_SAFE_INTEGER ? Ht : null : null, Ht = class extends Array { constructor(r2) { super(r2), this.fill(0); } }, Fn = class mt { heap; length; static #t = false; static create(t2) { let e2 = Ks(t2); if (!e2) return []; mt.#t = true; let s2 = new mt(t2, e2); return mt.#t = false, s2; } constructor(t2, e2) { if (!mt.#t) throw new TypeError("instantiate Stack using Stack.create(n)"); this.heap = new e2(t2), this.length = 0; } push(t2) { this.heap[this.length++] = t2; } pop() { return this.heap[--this.length]; } }, jn = class Vs { #t; #n; #i; #o; #r; #d; #f; #u; get perf() { return this.#u; } ttl; ttlResolution; ttlAutopurge; updateAgeOnGet; updateAgeOnHas; allowStale; noDisposeOnSet; noUpdateTTL; maxEntrySize; sizeCalculation; noDeleteOnFetchRejection; noDeleteOnStaleGet; allowStaleOnFetchAbort; allowStaleOnFetchRejection; ignoreFetchAbort; backgroundFetchSize; #h; #m; #l; #a; #s; #b; #E; #y; #g; #w; #p; #O; #x; #v; #_; #S; #M; #e; #P; static unsafeExposeInternals(t2) { return { starts: t2.#x, ttls: t2.#v, autopurgeTimers: t2.#_, sizes: t2.#O, keyMap: t2.#l, keyList: t2.#a, valList: t2.#s, next: t2.#b, prev: t2.#E, get head() { return t2.#y; }, get tail() { return t2.#g; }, free: t2.#w, isBackgroundFetch: (e2) => t2.#c(e2), backgroundFetch: (e2, s2, i2, n2) => t2.#L(e2, s2, i2, n2), moveToTail: (e2) => t2.#K(e2), indexes: (e2) => t2.#A(e2), rindexes: (e2) => t2.#R(e2), isStale: (e2) => t2.#C(e2) }; } get max() { return this.#t; } get maxSize() { return this.#n; } get calculatedSize() { return this.#m; } get size() { return this.#h; } get fetchMethod() { return this.#d; } get memoMethod() { return this.#f; } get dispose() { return this.#i; } get onInsert() { return this.#o; } get disposeAfter() { return this.#r; } constructor(t2) { let { max: e2 = 0, ttl: s2, ttlResolution: i2 = 1, ttlAutopurge: n2, updateAgeOnGet: o2, updateAgeOnHas: h2, allowStale: a2, dispose: l2, onInsert: c2, disposeAfter: u2, noDisposeOnSet: f2, noUpdateTTL: p2, maxSize: g2 = 0, maxEntrySize: d2 = 0, sizeCalculation: b2, fetchMethod: m2, memoMethod: y2, noDeleteOnFetchRejection: _2, noDeleteOnStaleGet: v2, allowStaleOnFetchRejection: S, allowStaleOnFetchAbort: K, ignoreFetchAbort: B, backgroundFetchSize: U = 1, perf: rt } = t2; if (this.backgroundFetchSize = U, rt !== void 0 && typeof rt?.now != "function") throw new TypeError("perf option must have a now() method if specified"); if (this.#u = rt ?? Rn.defaultPerf, e2 !== 0 && !J(e2)) throw new TypeError("max option must be a nonnegative integer"); let Se = e2 ? Ks(e2) : Array; if (!Se) throw new Error("invalid max value: " + e2); if (this.#t = e2, this.#n = g2, this.maxEntrySize = d2 || this.#n, this.sizeCalculation = b2, this.sizeCalculation) { if (!this.#n && !this.maxEntrySize) throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize"); if (typeof this.sizeCalculation != "function") throw new TypeError("sizeCalculation set to non-function"); } if (y2 !== void 0 && typeof y2 != "function") throw new TypeError("memoMethod must be a function if defined"); if (this.#f = y2, m2 !== void 0 && typeof m2 != "function") throw new TypeError("fetchMethod must be a function if specified"); if (this.#d = m2, this.#M = !!m2, this.#l = /* @__PURE__ */ new Map(), this.#a = Array.from({ length: e2 }).fill(void 0), this.#s = Array.from({ length: e2 }).fill(void 0), this.#b = new Se(e2), this.#E = new Se(e2), this.#y = 0, this.#g = 0, this.#w = Fn.create(e2), this.#h = 0, this.#m = 0, typeof l2 == "function" && (this.#i = l2), typeof c2 == "function" && (this.#o = c2), typeof u2 == "function" ? (this.#r = u2, this.#p = []) : (this.#r = void 0, this.#p = void 0), this.#S = !!this.#i, this.#P = !!this.#o, this.#e = !!this.#r, this.noDisposeOnSet = !!f2, this.noUpdateTTL = !!p2, this.noDeleteOnFetchRejection = !!_2, this.allowStaleOnFetchRejection = !!S, this.allowStaleOnFetchAbort = !!K, this.ignoreFetchAbort = !!B, this.maxEntrySize !== 0) { if (this.#n !== 0 && !J(this.#n)) throw new TypeError("maxSize must be a positive integer if specified"); if (!J(this.maxEntrySize)) throw new TypeError("maxEntrySize must be a positive integer if specified"); this.#U(); } if (this.allowStale = !!a2, this.noDeleteOnStaleGet = !!v2, this.updateAgeOnGet = !!o2, this.updateAgeOnHas = !!h2, this.ttlResolution = J(i2) || i2 === 0 ? i2 : 1, this.ttlAutopurge = !!n2, this.ttl = s2 || 0, this.ttl) { if (!J(this.ttl)) throw new TypeError("ttl must be a positive integer if specified"); this.#T(); } if (this.#t === 0 && this.ttl === 0 && this.#n === 0) throw new TypeError("At least one of max, maxSize, or ttl is required"); if (!this.ttlAutopurge && !this.#t && !this.#n) { let ve = "LRU_CACHE_UNBOUNDED"; Tn(ve) && (Xs.add(ve), Pn("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.", "UnboundedCacheWarning", ve, Vs)); } } getRemainingTTL(t2) { return this.#l.has(t2) ? 1 / 0 : 0; } #T() { let t2 = new Ht(this.#t), e2 = new Ht(this.#t); this.#v = t2, this.#x = e2; let s2 = this.ttlAutopurge ? Array.from({ length: this.#t }) : void 0; this.#_ = s2, this.#z = (a2, l2, c2 = this.#u.now()) => { e2[a2] = l2 !== 0 ? c2 : 0, t2[a2] = l2, i2(a2, l2); }, this.#k = (a2) => { e2[a2] = t2[a2] !== 0 ? this.#u.now() : 0, i2(a2, t2[a2]); }; let i2 = this.ttlAutopurge ? (a2, l2) => { if (s2?.[a2] && (clearTimeout(s2[a2]), s2[a2] = void 0), l2 && l2 !== 0 && s2) { let c2 = setTimeout(() => { this.#C(a2) ? (this.#W(this.#a[a2], "expire"), s2[a2] = void 0) : i2(a2, h2(a2)); }, l2 + 1); c2.unref && c2.unref(), s2[a2] = c2; } } : () => { }; this.#F = (a2, l2) => { if (t2[l2]) { let c2 = t2[l2], u2 = e2[l2]; if (!c2 || !u2) return; a2.ttl = c2, a2.start = u2, a2.now = n2 || o2(); let f2 = a2.now - u2; a2.remainingTTL = c2 - f2; } }; let n2 = 0, o2 = () => { let a2 = this.#u.now(); if (this.ttlResolution > 0) { n2 = a2; let l2 = setTimeout(() => n2 = 0, this.ttlResolution); l2.unref && l2.unref(); } return a2; }; this.getRemainingTTL = (a2) => { let l2 = this.#l.get(a2); return l2 === void 0 ? 0 : h2(l2); }; let h2 = (a2) => { let l2 = t2[a2], c2 = e2[a2]; if (!l2 || !c2) return 1 / 0; let u2 = (n2 || o2()) - c2; return l2 - u2; }; this.#C = (a2) => { let l2 = e2[a2], c2 = t2[a2]; return !!c2 && !!l2 && (n2 || o2()) - l2 > c2; }; } #k = () => { }; #F = () => { }; #z = () => { }; #C = () => false; #U() { let t2 = new Ht(this.#t); this.#m = 0, this.#O = t2, this.#N = (e2) => { this.#m -= t2[e2], t2[e2] = 0; }, this.#B = (e2, s2, i2, n2) => { if (!J(i2)) { if (this.#c(s2)) return this.backgroundFetchSize; if (n2) { if (typeof n2 != "function") throw new TypeError("sizeCalculation must be a function"); if (i2 = n2(s2, e2), !J(i2)) throw new TypeError("sizeCalculation return invalid (expect positive integer)"); } else throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set."); } return i2; }, this.#j = (e2, s2, i2) => { if (t2[e2] = s2, this.#n) { let n2 = this.#n - t2[e2]; for (; this.#m > n2; ) this.#$(true); } this.#m += t2[e2], i2 && (i2.entrySize = s2, i2.totalCalculatedSize = this.#m); }; } #N = (t2) => { }; #j = (t2, e2, s2) => { }; #B = (t2, e2, s2, i2) => { if (s2 || i2) throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache"); return 0; }; *#A({ allowStale: t2 = this.allowStale } = {}) { if (this.#h) for (let e2 = this.#g; this.#G(e2) && ((t2 || !this.#C(e2)) && (yield e2), e2 !== this.#y); ) e2 = this.#E[e2]; } *#R({ allowStale: t2 = this.allowStale } = {}) { if (this.#h) for (let e2 = this.#y; this.#G(e2) && ((t2 || !this.#C(e2)) && (yield e2), e2 !== this.#g); ) e2 = this.#b[e2]; } #G(t2) { return t2 !== void 0 && this.#l.get(this.#a[t2]) === t2; } *entries() { for (let t2 of this.#A()) this.#s[t2] !== void 0 && this.#a[t2] !== void 0 && !this.#c(this.#s[t2]) && (yield [this.#a[t2], this.#s[t2]]); } *rentries() { for (let t2 of this.#R()) this.#s[t2] !== void 0 && this.#a[t2] !== void 0 && !this.#c(this.#s[t2]) && (yield [this.#a[t2], this.#s[t2]]); } *keys() { for (let t2 of this.#A()) { let e2 = this.#a[t2]; e2 !== void 0 && !this.#c(this.#s[t2]) && (yield e2); } } *rkeys() { for (let t2 of this.#R()) { let e2 = this.#a[t2]; e2 !== void 0 && !this.#c(this.#s[t2]) && (yield e2); } } *values() { for (let t2 of this.#A()) this.#s[t2] !== void 0 && !this.#c(this.#s[t2]) && (yield this.#s[t2]); } *rvalues() { for (let t2 of this.#R()) this.#s[t2] !== void 0 && !this.#c(this.#s[t2]) && (yield this.#s[t2]); } [Symbol.iterator]() { return this.entries(); } [Symbol.toStringTag] = "LRUCache"; find(t2, e2 = {}) { for (let s2 of this.#A()) { let i2 = this.#s[s2], n2 = this.#c(i2) ? i2.__staleWhileFetching : i2; if (n2 !== void 0 && t2(n2, this.#a[s2], this)) return this.#X(this.#a[s2], e2); } } forEach(t2, e2 = this) { for (let s2 of this.#A()) { let i2 = this.#s[s2], n2 = this.#c(i2) ? i2.__staleWhileFetching : i2; n2 !== void 0 && t2.call(e2, n2, this.#a[s2], this); } } rforEach(t2, e2 = this) { for (let s2 of this.#R()) { let i2 = this.#s[s2], n2 = this.#c(i2) ? i2.__staleWhileFetching : i2; n2 !== void 0 && t2.call(e2, n2, this.#a[s2], this); } } purgeStale() { let t2 = false; for (let e2 of this.#R({ allowStale: true })) this.#C(e2) && (this.#W(this.#a[e2], "expire"), t2 = true); return t2; } info(t2) { let e2 = this.#l.get(t2); if (e2 === void 0) return; let s2 = this.#s[e2], i2 = this.#c(s2) ? s2.__staleWhileFetching : s2; if (i2 === void 0) return; let n2 = { value: i2 }; if (this.#v && this.#x) { let o2 = this.#v[e2], h2 = this.#x[e2]; if (o2 && h2) { let a2 = o2 - (this.#u.now() - h2); n2.ttl = a2, n2.start = Date.now(); } } return this.#O && (n2.size = this.#O[e2]), n2; } dump() { let t2 = []; for (let e2 of this.#A({ allowStale: true })) { let s2 = this.#a[e2], i2 = this.#s[e2], n2 = this.#c(i2) ? i2.__staleWhileFetching : i2; if (n2 === void 0 || s2 === void 0) continue; let o2 = { value: n2 }; if (this.#v && this.#x) { o2.ttl = this.#v[e2]; let h2 = this.#u.now() - this.#x[e2]; o2.start = Math.floor(Date.now() - h2); } this.#O && (o2.size = this.#O[e2]), t2.unshift([s2, o2]); } return t2; } load(t2) { this.clear(); for (let [e2, s2] of t2) { if (s2.start) { let i2 = Date.now() - s2.start; s2.start = this.#u.now() - i2; } this.#D(e2, s2.value, s2); } } set(t2, e2, s2 = {}) { let { status: i2 = O.metrics.hasSubscribers ? {} : void 0 } = s2; s2.status = i2, i2 && (i2.op = "set", i2.key = t2, e2 !== void 0 && (i2.value = e2), i2.cache = this); let n2 = this.#D(t2, e2, s2); return i2 && O.metrics.hasSubscribers && O.metrics.publish(i2), n2; } #D(t2, e2, s2, i2) { let { ttl: n2 = this.ttl, start: o2, noDisposeOnSet: h2 = this.noDisposeOnSet, sizeCalculation: a2 = this.sizeCalculation, status: l2 } = s2, c2 = this.#c(e2); if (e2 === void 0) return l2 && (l2.set = "deleted"), this.delete(t2), this; let { noUpdateTTL: u2 = this.noUpdateTTL } = s2; l2 && !c2 && (l2.value = e2); let f2 = this.#B(t2, e2, s2.size || 0, a2, l2); if (this.maxEntrySize && f2 > this.maxEntrySize) return this.#W(t2, "set"), l2 && (l2.set = "miss", l2.maxEntrySizeExceeded = true), this; let p2 = this.#h === 0 ? void 0 : this.#l.get(t2); if (p2 === void 0) p2 = this.#h === 0 ? this.#g : this.#w.length !== 0 ? this.#w.pop() : this.#h === this.#t ? this.#$(false) : this.#h, this.#a[p2] = t2, this.#s[p2] = e2, this.#l.set(t2, p2), this.#b[this.#g] = p2, this.#E[p2] = this.#g, this.#g = p2, this.#h++, this.#j(p2, f2, l2), l2 && (l2.set = "add"), u2 = false, this.#P && !c2 && this.#o?.(e2, t2, "add"); else { this.#K(p2); let g2 = this.#s[p2]; if (e2 !== g2) { if (!h2) if (this.#c(g2)) { g2 !== i2 && g2.__abortController.abort(new Error("replaced")); let { __staleWhileFetching: d2 } = g2; d2 !== void 0 && d2 !== e2 && (this.#S && this.#i?.(d2, t2, "set"), this.#e && this.#p?.push([d2, t2, "set"])); } else this.#S && this.#i?.(g2, t2, "set"), this.#e && this.#p?.push([g2, t2, "set"]); if (this.#N(p2), this.#j(p2, f2, l2), this.#s[p2] = e2, !c2) { let d2 = g2 && this.#c(g2) ? g2.__staleWhileFetching : g2, b2 = d2 === void 0 ? "add" : e2 !== d2 ? "replace" : "update"; l2 && (l2.set = b2, d2 !== void 0 && (l2.oldValue = d2)), this.#P && this.onInsert?.(e2, t2, b2); } } else c2 || (l2 && (l2.set = "update"), this.#P && this.onInsert?.(e2, t2, "update")); } if (n2 !== 0 && !this.#v && this.#T(), this.#v && (u2 || this.#z(p2, n2, o2), l2 && this.#F(l2, p2)), !h2 && this.#e && this.#p) { let g2 = this.#p, d2; for (; d2 = g2?.shift(); ) this.#r?.(...d2); } return this; } pop() { try { for (; this.#h; ) { let t2 = this.#s[this.#y]; if (this.#$(true), this.#c(t2)) { if (t2.__staleWhileFetching) return t2.__staleWhileFetching; } else if (t2 !== void 0) return t2; } } finally { if (this.#e && this.#p) { let t2 = this.#p, e2; for (; e2 = t2?.shift(); ) this.#r?.(...e2); } } } #$(t2) { let e2 = this.#y, s2 = this.#a[e2], i2 = this.#s[e2], n2 = this.#c(i2); n2 && i2.__abortController.abort(new Error("evicted")); let o2 = n2 ? i2.__staleWhileFetching : i2; return (this.#S || this.#e) && o2 !== void 0 && (this.#S && this.#i?.(o2, s2, "evict"), this.#e && this.#p?.push([o2, s2, "evict"])), this.#N(e2), this.#_?.[e2] && (clearTimeout(this.#_[e2]), this.#_[e2] = void 0), t2 && (this.#a[e2] = void 0, this.#s[e2] = void 0, this.#w.push(e2)), this.#h === 1 ? (this.#y = this.#g = 0, this.#w.length = 0) : this.#y = this.#b[e2], this.#l.delete(s2), this.#h--, e2; } has(t2, e2 = {}) { let { status: s2 = O.metrics.hasSubscribers ? {} : void 0 } = e2; e2.status = s2, s2 && (s2.op = "has", s2.key = t2, s2.cache = this); let i2 = this.#V(t2, e2); return O.metrics.hasSubscribers && O.metrics.publish(s2), i2; } #V(t2, e2 = {}) { let { updateAgeOnHas: s2 = this.updateAgeOnHas, status: i2 } = e2, n2 = this.#l.get(t2); if (n2 !== void 0) { let o2 = this.#s[n2]; if (this.#c(o2) && o2.__staleWhileFetching === void 0) return false; if (this.#C(n2)) i2 && (i2.has = "stale", this.#F(i2, n2)); else return s2 && this.#k(n2), i2 && (i2.has = "hit", this.#F(i2, n2)), true; } else i2 && (i2.has = "miss"); return false; } peek(t2, e2 = {}) { let { status: s2 = Ie() ? {} : void 0 } = e2; s2 && (s2.op = "peek", s2.key = t2, s2.cache = this), e2.status = s2; let i2 = this.#q(t2, e2); return O.metrics.hasSubscribers && O.metrics.publish(s2), i2; } #q(t2, e2) { let { status: s2, allowStale: i2 = this.allowStale } = e2, n2 = this.#l.get(t2); if (n2 === void 0 || !i2 && this.#C(n2)) { s2 && (s2.peek = n2 === void 0 ? "miss" : "stale"); return; } let o2 = this.#s[n2], h2 = this.#c(o2) ? o2.__staleWhileFetching : o2; return s2 && (h2 !== void 0 ? (s2.peek = "hit", s2.value = h2) : s2.peek = "miss"), h2; } #L(t2, e2, s2, i2) { let n2 = e2 === void 0 ? void 0 : this.#s[e2]; if (this.#c(n2)) return n2; let o2 = new AbortController(), { signal: h2 } = s2; h2?.addEventListener("abort", () => o2.abort(h2.reason), { signal: o2.signal }); let a2 = { signal: o2.signal, options: s2, context: i2 }, l2 = (d2, b2 = false) => { let { aborted: m2 } = o2.signal, y2 = s2.ignoreFetchAbort && d2 !== void 0, _2 = s2.ignoreFetchAbort || !!(s2.allowStaleOnFetchAbort && d2 !== void 0); if (s2.status && (m2 && !b2 ? (s2.status.fetchAborted = true, s2.status.fetchError = o2.signal.reason, y2 && (s2.status.fetchAbortIgnored = true)) : s2.status.fetchResolved = true), m2 && !y2 && !b2) return u2(o2.signal.reason, _2); let v2 = p2, S = this.#s[e2]; return (S === p2 || S === void 0 && y2 && b2) && (d2 === void 0 ? v2.__staleWhileFetching !== void 0 ? this.#s[e2] = v2.__staleWhileFetching : this.#W(t2, "fetch") : (s2.status && (s2.status.fetchUpdated = true), this.#D(t2, d2, a2.options, v2))), d2; }, c2 = (d2) => (s2.status && (s2.status.fetchRejected = true, s2.status.fetchError = d2), u2(d2, false)), u2 = (d2, b2) => { let { aborted: m2 } = o2.signal, y2 = m2 && s2.allowStaleOnFetchAbort, _2 = y2 || s2.allowStaleOnFetchRejection, v2 = _2 || s2.noDeleteOnFetchRejection, S = p2; if (this.#s[e2] === p2 && (!v2 || !b2 && S.__staleWhileFetching === void 0 ? this.#W(t2, "fetch") : y2 || (this.#s[e2] = S.__staleWhileFetching)), _2) return s2.status && S.__staleWhileFetching !== void 0 && (s2.status.returnedStale = true), S.__staleWhileFetching; if (S.__returned === S) throw d2; }, f2 = (d2, b2) => { let m2 = this.#d?.(t2, n2, a2); o2.signal.addEventListener("abort", () => { (!s2.ignoreFetchAbort || s2.allowStaleOnFetchAbort) && (d2(void 0), s2.allowStaleOnFetchAbort && (d2 = (y2) => l2(y2, true))); }), m2 && m2 instanceof Promise ? m2.then((y2) => d2(y2 === void 0 ? void 0 : y2), b2) : m2 !== void 0 && d2(m2); }; s2.status && (s2.status.fetchDispatched = true); let p2 = new Promise(f2).then(l2, c2), g2 = Object.assign(p2, { __abortController: o2, __staleWhileFetching: n2, __returned: void 0 }); return e2 === void 0 ? (this.#D(t2, g2, { ...a2.options, status: void 0 }), e2 = this.#l.get(t2)) : this.#s[e2] = g2, g2; } #c(t2) { if (!this.#M) return false; let e2 = t2; return !!e2 && e2 instanceof Promise && e2.hasOwnProperty("__staleWhileFetching") && e2.__abortController instanceof AbortController; } fetch(t2, e2 = {}) { let s2 = O.tracing.hasSubscribers, { status: i2 = Ie() ? {} : void 0 } = e2; e2.status = i2, i2 && e2.context && (i2.context = e2.context); let n2 = this.#H(t2, e2); return i2 && s2 && (i2.trace = true, O.tracing.tracePromise(() => n2, i2).catch(() => { })), n2; } async #H(t2, e2 = {}) { let { allowStale: s2 = this.allowStale, updateAgeOnGet: i2 = this.updateAgeOnGet, noDeleteOnStaleGet: n2 = this.noDeleteOnStaleGet, ttl: o2 = this.ttl, noDisposeOnSet: h2 = this.noDisposeOnSet, size: a2 = 0, sizeCalculation: l2 = this.sizeCalculation, noUpdateTTL: c2 = this.noUpdateTTL, noDeleteOnFetchRejection: u2 = this.noDeleteOnFetchRejection, allowStaleOnFetchRejection: f2 = this.allowStaleOnFetchRejection, ignoreFetchAbort: p2 = this.ignoreFetchAbort, allowStaleOnFetchAbort: g2 = this.allowStaleOnFetchAbort, context: d2, forceRefresh: b2 = false, status: m2, signal: y2 } = e2; if (m2 && (m2.op = "fetch", m2.key = t2, b2 && (m2.forceRefresh = true), m2.cache = this), !this.#M) return m2 && (m2.fetch = "get"), this.#X(t2, { allowStale: s2, updateAgeOnGet: i2, noDeleteOnStaleGet: n2, status: m2 }); let _2 = { allowStale: s2, updateAgeOnGet: i2, noDeleteOnStaleGet: n2, ttl: o2, noDisposeOnSet: h2, size: a2, sizeCalculation: l2, noUpdateTTL: c2, noDeleteOnFetchRejection: u2, allowStaleOnFetchRejection: f2, allowStaleOnFetchAbort: g2, ignoreFetchAbort: p2, status: m2, signal: y2 }, v2 = this.#l.get(t2); if (v2 === void 0) { m2 && (m2.fetch = "miss"); let S = this.#L(t2, v2, _2, d2); return S.__returned = S; } else { let S = this.#s[v2]; if (this.#c(S)) { let rt = s2 && S.__staleWhileFetching !== void 0; return m2 && (m2.fetch = "inflight", rt && (m2.returnedStale = true)), rt ? S.__staleWhileFetching : S.__returned = S; } let K = this.#C(v2); if (!b2 && !K) return m2 && (m2.fetch = "hit"), this.#K(v2), i2 && this.#k(v2), m2 && this.#F(m2, v2), S; let B = this.#L(t2, v2, _2, d2), U = B.__staleWhileFetching !== void 0 && s2; return m2 && (m2.fetch = K ? "stale" : "refresh", U && K && (m2.returnedStale = true)), U ? B.__staleWhileFetching : B.__returned = B; } } forceFetch(t2, e2 = {}) { let s2 = O.tracing.hasSubscribers, { status: i2 = Ie() ? {} : void 0 } = e2; e2.status = i2, i2 && e2.context && (i2.context = e2.context); let n2 = this.#I(t2, e2); return i2 && s2 && (i2.trace = true, O.tracing.tracePromise(() => n2, i2).catch(() => { })), n2; } async #I(t2, e2 = {}) { let s2 = await this.#H(t2, e2); if (s2 === void 0) throw new Error("fetch() returned undefined"); return s2; } memo(t2, e2 = {}) { let { status: s2 = O.metrics.hasSubscribers ? {} : void 0 } = e2; e2.status = s2, s2 && (s2.op = "memo", s2.key = t2, e2.context && (s2.context = e2.context), s2.cache = this); let i2 = this.#Z(t2, e2); return s2 && (s2.value = i2), O.metrics.hasSubscribers && O.metrics.publish(s2), i2; } #Z(t2, e2 = {}) { let s2 = this.#f; if (!s2) throw new Error("no memoMethod provided to constructor"); let { context: i2, status: n2, forceRefresh: o2, ...h2 } = e2; n2 && o2 && (n2.forceRefresh = true); let a2 = this.#X(t2, h2), l2 = o2 || a2 === void 0; if (n2 && (n2.memo = l2 ? "miss" : "hit", l2 || (n2.value = a2)), !l2) return a2; let c2 = s2(t2, a2, { options: h2, context: i2 }); return n2 && (n2.value = c2), this.#D(t2, c2, h2), c2; } get(t2, e2 = {}) { let { status: s2 = O.metrics.hasSubscribers ? {} : void 0 } = e2; e2.status = s2, s2 && (s2.op = "get", s2.key = t2, s2.cache = this); let i2 = this.#X(t2, e2); return s2 && (i2 !== void 0 && (s2.value = i2), O.metrics.hasSubscribers && O.metrics.publish(s2)), i2; } #X(t2, e2 = {}) { let { allowStale: s2 = this.allowStale, updateAgeOnGet: i2 = this.updateAgeOnGet, noDeleteOnStaleGet: n2 = this.noDeleteOnStaleGet, status: o2 } = e2, h2 = this.#l.get(t2); if (h2 === void 0) { o2 && (o2.get = "miss"); return; } let a2 = this.#s[h2], l2 = this.#c(a2); return o2 && this.#F(o2, h2), this.#C(h2) ? l2 ? (o2 && (o2.get = "stale-fetching"), s2 && a2.__staleWhileFetching !== void 0 ? (o2 && (o2.returnedStale = true), a2.__staleWhileFetching) : void 0) : (n2 || this.#W(t2, "expire"), o2 && (o2.get = "stale"), s2 ? (o2 && (o2.returnedStale = true), a2) : void 0) : (o2 && (o2.get = l2 ? "fetching" : "hit"), this.#K(h2), i2 && this.#k(h2), l2 ? a2.__staleWhileFetching : a2); } #Y(t2, e2) { this.#E[e2] = t2, this.#b[t2] = e2; } #K(t2) { t2 !== this.#g && (t2 === this.#y ? this.#y = this.#b[t2] : this.#Y(this.#E[t2], this.#b[t2]), this.#Y(this.#g, t2), this.#g = t2); } delete(t2) { return this.#W(t2, "delete"); } #W(t2, e2) { O.metrics.hasSubscribers && O.metrics.publish({ op: "delete", delete: e2, key: t2, cache: this }); let s2 = false; if (this.#h !== 0) { let i2 = this.#l.get(t2); if (i2 !== void 0) if (this.#_?.[i2] && (clearTimeout(this.#_[i2]), this.#_[i2] = void 0), s2 = true, this.#h === 1) this.#J(e2); else { this.#N(i2); let n2 = this.#s[i2]; if (this.#c(n2) ? n2.__abortController.abort(new Error("deleted")) : (this.#S || this.#e) && (this.#S && this.#i?.(n2, t2, e2), this.#e && this.#p?.push([n2, t2, e2])), this.#l.delete(t2), this.#a[i2] = void 0, this.#s[i2] = void 0, i2 === this.#g) this.#g = this.#E[i2]; else if (i2 === this.#y) this.#y = this.#b[i2]; else { let o2 = this.#E[i2]; this.#b[o2] = this.#b[i2]; let h2 = this.#b[i2]; this.#E[h2] = this.#E[i2]; } this.#h--, this.#w.push(i2); } } if (this.#e && this.#p?.length) { let i2 = this.#p, n2; for (; n2 = i2?.shift(); ) this.#r?.(...n2); } return s2; } clear() { return this.#J("delete"); } #J(t2) { for (let e2 of this.#R({ allowStale: true })) { let s2 = this.#s[e2]; if (this.#c(s2)) s2.__abortController.abort(new Error("deleted")); else { let i2 = this.#a[e2]; this.#S && this.#i?.(s2, i2, t2), this.#e && this.#p?.push([s2, i2, t2]); } } if (this.#l.clear(), this.#s.fill(void 0), this.#a.fill(void 0), this.#v && this.#x) { this.#v.fill(0), this.#x.fill(0); for (let e2 of this.#_ ?? []) e2 !== void 0 && clearTimeout(e2); this.#_?.fill(void 0); } if (this.#O && this.#O.fill(0), this.#y = 0, this.#g = 0, this.#w.length = 0, this.#m = 0, this.#h = 0, this.#e && this.#p) { let e2 = this.#p, s2; for (; s2 = e2?.shift(); ) this.#r?.(...s2); } } }; Xt.LRUCache = jn; }); var Ye = C2((j) => { "use strict"; var Nn = j && j.__importDefault || function(r2) { return r2 && r2.__esModule ? r2 : { default: r2 }; }; Object.defineProperty(j, "__esModule", { value: true }); j.Minipass = j.isWritable = j.isReadable = j.isStream = void 0; var Js = typeof process == "object" && process ? process : { stdout: null, stderr: null }, Ve = require("node:events"), ei = Nn(require("node:stream")), Dn = require("node:string_decoder"), Ln = (r2) => !!r2 && typeof r2 == "object" && (r2 instanceof te || r2 instanceof ei.default || (0, j.isReadable)(r2) || (0, j.isWritable)(r2)); j.isStream = Ln; var Wn = (r2) => !!r2 && typeof r2 == "object" && r2 instanceof Ve.EventEmitter && typeof r2.pipe == "function" && r2.pipe !== ei.default.Writable.prototype.pipe; j.isReadable = Wn; var zn = (r2) => !!r2 && typeof r2 == "object" && r2 instanceof Ve.EventEmitter && typeof r2.write == "function" && typeof r2.end == "function"; j.isWritable = zn; var H = /* @__PURE__ */ Symbol("EOF"), X = /* @__PURE__ */ Symbol("maybeEmitEnd"), Z = /* @__PURE__ */ Symbol("emittedEnd"), Kt = /* @__PURE__ */ Symbol("emittingEnd"), gt = /* @__PURE__ */ Symbol("emittedError"), Vt = /* @__PURE__ */ Symbol("closed"), Zs = /* @__PURE__ */ Symbol("read"), Yt = /* @__PURE__ */ Symbol("flush"), Qs = /* @__PURE__ */ Symbol("flushChunk"), W = /* @__PURE__ */ Symbol("encoding"), at = /* @__PURE__ */ Symbol("decoder"), M = /* @__PURE__ */ Symbol("flowing"), wt = /* @__PURE__ */ Symbol("paused"), lt = /* @__PURE__ */ Symbol("resume"), k = /* @__PURE__ */ Symbol("buffer"), F = /* @__PURE__ */ Symbol("pipes"), A2 = /* @__PURE__ */ Symbol("bufferLength"), $e = /* @__PURE__ */ Symbol("bufferPush"), Jt = /* @__PURE__ */ Symbol("bufferShift"), P2 = /* @__PURE__ */ Symbol("objectMode"), x2 = /* @__PURE__ */ Symbol("destroyed"), Ue = /* @__PURE__ */ Symbol("error"), qe = /* @__PURE__ */ Symbol("emitData"), ti = /* @__PURE__ */ Symbol("emitEnd"), He = /* @__PURE__ */ Symbol("emitEnd2"), G = /* @__PURE__ */ Symbol("async"), Xe = /* @__PURE__ */ Symbol("abort"), Zt = /* @__PURE__ */ Symbol("aborted"), bt = /* @__PURE__ */ Symbol("signal"), st = /* @__PURE__ */ Symbol("dataListeners"), N = /* @__PURE__ */ Symbol("discarded"), yt = (r2) => Promise.resolve().then(r2), Bn = (r2) => r2(), Gn = (r2) => r2 === "end" || r2 === "finish" || r2 === "prefinish", In = (r2) => r2 instanceof ArrayBuffer || !!r2 && typeof r2 == "object" && r2.constructor && r2.constructor.name === "ArrayBuffer" && r2.byteLength >= 0, $n = (r2) => !Buffer.isBuffer(r2) && ArrayBuffer.isView(r2), Qt = class { src; dest; opts; ondrain; constructor(t2, e2, s2) { this.src = t2, this.dest = e2, this.opts = s2, this.ondrain = () => t2[lt](), this.dest.on("drain", this.ondrain); } unpipe() { this.dest.removeListener("drain", this.ondrain); } proxyErrors(t2) { } end() { this.unpipe(), this.opts.end && this.dest.end(); } }, Ke = class extends Qt { unpipe() { this.src.removeListener("error", this.proxyErrors), super.unpipe(); } constructor(t2, e2, s2) { super(t2, e2, s2), this.proxyErrors = (i2) => this.dest.emit("error", i2), t2.on("error", this.proxyErrors); } }, Un = (r2) => !!r2.objectMode, qn = (r2) => !r2.objectMode && !!r2.encoding && r2.encoding !== "buffer", te = class extends Ve.EventEmitter { [M] = false; [wt] = false; [F] = []; [k] = []; [P2]; [W]; [G]; [at]; [H] = false; [Z] = false; [Kt] = false; [Vt] = false; [gt] = null; [A2] = 0; [x2] = false; [bt]; [Zt] = false; [st] = 0; [N] = false; writable = true; readable = true; constructor(...t2) { let e2 = t2[0] || {}; if (super(), e2.objectMode && typeof e2.encoding == "string") throw new TypeError("Encoding and objectMode may not be used together"); Un(e2) ? (this[P2] = true, this[W] = null) : qn(e2) ? (this[W] = e2.encoding, this[P2] = false) : (this[P2] = false, this[W] = null), this[G] = !!e2.async, this[at] = this[W] ? new Dn.StringDecoder(this[W]) : null, e2 && e2.debugExposeBuffer === true && Object.defineProperty(this, "buffer", { get: () => this[k] }), e2 && e2.debugExposePipes === true && Object.defineProperty(this, "pipes", { get: () => this[F] }); let { signal: s2 } = e2; s2 && (this[bt] = s2, s2.aborted ? this[Xe]() : s2.addEventListener("abort", () => this[Xe]())); } get bufferLength() { return this[A2]; } get encoding() { return this[W]; } set encoding(t2) { throw new Error("Encoding must be set at instantiation time"); } setEncoding(t2) { throw new Error("Encoding must be set at instantiation time"); } get objectMode() { return this[P2]; } set objectMode(t2) { throw new Error("objectMode must be set at instantiation time"); } get async() { return this[G]; } set async(t2) { this[G] = this[G] || !!t2; } [Xe]() { this[Zt] = true, this.emit("abort", this[bt]?.reason), this.destroy(this[bt]?.reason); } get aborted() { return this[Zt]; } set aborted(t2) { } write(t2, e2, s2) { if (this[Zt]) return false; if (this[H]) throw new Error("write after end"); if (this[x2]) return this.emit("error", Object.assign(new Error("Cannot call write after a stream was destroyed"), { code: "ERR_STREAM_DESTROYED" })), true; typeof e2 == "function" && (s2 = e2, e2 = "utf8"), e2 || (e2 = "utf8"); let i2 = this[G] ? yt : Bn; if (!this[P2] && !Buffer.isBuffer(t2)) { if ($n(t2)) t2 = Buffer.from(t2.buffer, t2.byteOffset, t2.byteLength); else if (In(t2)) t2 = Buffer.from(t2); else if (typeof t2 != "string") throw new Error("Non-contiguous data written to non-objectMode stream"); } return this[P2] ? (this[M] && this[A2] !== 0 && this[Yt](true), this[M] ? this.emit("data", t2) : this[$e](t2), this[A2] !== 0 && this.emit("readable"), s2 && i2(s2), this[M]) : t2.length ? (typeof t2 == "string" && !(e2 === this[W] && !this[at]?.lastNeed) && (t2 = Buffer.from(t2, e2)), Buffer.isBuffer(t2) && this[W] && (t2 = this[at].write(t2)), this[M] && this[A2] !== 0 && this[Yt](true), this[M] ? this.emit("data", t2) : this[$e](t2), this[A2] !== 0 && this.emit("readable"), s2 && i2(s2), this[M]) : (this[A2] !== 0 && this.emit("readable"), s2 && i2(s2), this[M]); } read(t2) { if (this[x2]) return null; if (this[N] = false, this[A2] === 0 || t2 === 0 || t2 && t2 > this[A2]) return this[X](), null; this[P2] && (t2 = null), this[k].length > 1 && !this[P2] && (this[k] = [this[W] ? this[k].join("") : Buffer.concat(this[k], this[A2])]); let e2 = this[Zs](t2 || null, this[k][0]); return this[X](), e2; } [Zs](t2, e2) { if (this[P2]) this[Jt](); else { let s2 = e2; t2 === s2.length || t2 === null ? this[Jt]() : typeof s2 == "string" ? (this[k][0] = s2.slice(t2), e2 = s2.slice(0, t2), this[A2] -= t2) : (this[k][0] = s2.subarray(t2), e2 = s2.subarray(0, t2), this[A2] -= t2); } return this.emit("data", e2), !this[k].length && !this[H] && this.emit("drain"), e2; } end(t2, e2, s2) { return typeof t2 == "function" && (s2 = t2, t2 = void 0), typeof e2 == "function" && (s2 = e2, e2 = "utf8"), t2 !== void 0 && this.write(t2, e2), s2 && this.once("end", s2), this[H] = true, this.writable = false, (this[M] || !this[wt]) && this[X](), this; } [lt]() { this[x2] || (!this[st] && !this[F].length && (this[N] = true), this[wt] = false, this[M] = true, this.emit("resume"), this[k].length ? this[Yt]() : this[H] ? this[X]() : this.emit("drain")); } resume() { return this[lt](); } pause() { this[M] = false, this[wt] = true, this[N] = false; } get destroyed() { return this[x2]; } get flowing() { return this[M]; } get paused() { return this[wt]; } [$e](t2) { this[P2] ? this[A2] += 1 : this[A2] += t2.length, this[k].push(t2); } [Jt]() { return this[P2] ? this[A2] -= 1 : this[A2] -= this[k][0].length, this[k].shift(); } [Yt](t2 = false) { do ; while (this[Qs](this[Jt]()) && this[k].length); !t2 && !this[k].length && !this[H] && this.emit("drain"); } [Qs](t2) { return this.emit("data", t2), this[M]; } pipe(t2, e2) { if (this[x2]) return t2; this[N] = false; let s2 = this[Z]; return e2 = e2 || {}, t2 === Js.stdout || t2 === Js.stderr ? e2.end = false : e2.end = e2.end !== false, e2.proxyErrors = !!e2.proxyErrors, s2 ? e2.end && t2.end() : (this[F].push(e2.proxyErrors ? new Ke(this, t2, e2) : new Qt(this, t2, e2)), this[G] ? yt(() => this[lt]()) : this[lt]()), t2; } unpipe(t2) { let e2 = this[F].find((s2) => s2.dest === t2); e2 && (this[F].length === 1 ? (this[M] && this[st] === 0 && (this[M] = false), this[F] = []) : this[F].splice(this[F].indexOf(e2), 1), e2.unpipe()); } addListener(t2, e2) { return this.on(t2, e2); } on(t2, e2) { let s2 = super.on(t2, e2); if (t2 === "data") this[N] = false, this[st]++, !this[F].length && !this[M] && this[lt](); else if (t2 === "readable" && this[A2] !== 0) super.emit("readable"); else if (Gn(t2) && this[Z]) super.emit(t2), this.removeAllListeners(t2); else if (t2 === "error" && this[gt]) { let i2 = e2; this[G] ? yt(() => i2.call(this, this[gt])) : i2.call(this, this[gt]); } return s2; } removeListener(t2, e2) { return this.off(t2, e2); } off(t2, e2) { let s2 = super.off(t2, e2); return t2 === "data" && (this[st] = this.listeners("data").length, this[st] === 0 && !this[N] && !this[F].length && (this[M] = false)), s2; } removeAllListeners(t2) { let e2 = super.removeAllListeners(t2); return (t2 === "data" || t2 === void 0) && (this[st] = 0, !this[N] && !this[F].length && (this[M] = false)), e2; } get emittedEnd() { return this[Z]; } [X]() { !this[Kt] && !this[Z] && !this[x2] && this[k].length === 0 && this[H] && (this[Kt] = true, this.emit("end"), this.emit("prefinish"), this.emit("finish"), this[Vt] && this.emit("close"), this[Kt] = false); } emit(t2, ...e2) { let s2 = e2[0]; if (t2 !== "error" && t2 !== "close" && t2 !== x2 && this[x2]) return false; if (t2 === "data") return !this[P2] && !s2 ? false : this[G] ? (yt(() => this[qe](s2)), true) : this[qe](s2); if (t2 === "end") return this[ti](); if (t2 === "close") { if (this[Vt] = true, !this[Z] && !this[x2]) return false; let n2 = super.emit("close"); return this.removeAllListeners("close"), n2; } else if (t2 === "error") { this[gt] = s2, super.emit(Ue, s2); let n2 = !this[bt] || this.listeners("error").length ? super.emit("error", s2) : false; return this[X](), n2; } else if (t2 === "resume") { let n2 = super.emit("resume"); return this[X](), n2; } else if (t2 === "finish" || t2 === "prefinish") { let n2 = super.emit(t2); return this.removeAllListeners(t2), n2; } let i2 = super.emit(t2, ...e2); return this[X](), i2; } [qe](t2) { for (let s2 of this[F]) s2.dest.write(t2) === false && this.pause(); let e2 = this[N] ? false : super.emit("data", t2); return this[X](), e2; } [ti]() { return this[Z] ? false : (this[Z] = true, this.readable = false, this[G] ? (yt(() => this[He]()), true) : this[He]()); } [He]() { if (this[at]) { let e2 = this[at].end(); if (e2) { for (let s2 of this[F]) s2.dest.write(e2); this[N] || super.emit("data", e2); } } for (let e2 of this[F]) e2.end(); let t2 = super.emit("end"); return this.removeAllListeners("end"), t2; } async collect() { let t2 = Object.assign([], { dataLength: 0 }); this[P2] || (t2.dataLength = 0); let e2 = this.promise(); return this.on("data", (s2) => { t2.push(s2), this[P2] || (t2.dataLength += s2.length); }), await e2, t2; } async concat() { if (this[P2]) throw new Error("cannot concat in objectMode"); let t2 = await this.collect(); return this[W] ? t2.join("") : Buffer.concat(t2, t2.dataLength); } async promise() { return new Promise((t2, e2) => { this.on(x2, () => e2(new Error("stream destroyed"))), this.on("error", (s2) => e2(s2)), this.on("end", () => t2()); }); } [Symbol.asyncIterator]() { this[N] = false; let t2 = false, e2 = async () => (this.pause(), t2 = true, { value: void 0, done: true }); return { next: () => { if (t2) return e2(); let i2 = this.read(); if (i2 !== null) return Promise.resolve({ done: false, value: i2 }); if (this[H]) return e2(); let n2, o2, h2 = (u2) => { this.off("data", a2), this.off("end", l2), this.off(x2, c2), e2(), o2(u2); }, a2 = (u2) => { this.off("error", h2), this.off("end", l2), this.off(x2, c2), this.pause(), n2({ value: u2, done: !!this[H] }); }, l2 = () => { this.off("error", h2), this.off("data", a2), this.off(x2, c2), e2(), n2({ done: true, value: void 0 }); }, c2 = () => h2(new Error("stream destroyed")); return new Promise((u2, f2) => { o2 = f2, n2 = u2, this.once(x2, c2), this.once("error", h2), this.once("end", l2), this.once("data", a2); }); }, throw: e2, return: e2, [Symbol.asyncIterator]() { return this; }, [Symbol.asyncDispose]: async () => { } }; } [Symbol.iterator]() { this[N] = false; let t2 = false, e2 = () => (this.pause(), this.off(Ue, e2), this.off(x2, e2), this.off("end", e2), t2 = true, { done: true, value: void 0 }), s2 = () => { if (t2) return e2(); let i2 = this.read(); return i2 === null ? e2() : { done: false, value: i2 }; }; return this.once("end", e2), this.once(Ue, e2), this.once(x2, e2), { next: s2, throw: e2, return: e2, [Symbol.iterator]() { return this; }, [Symbol.dispose]: () => { } }; } destroy(t2) { if (this[x2]) return t2 ? this.emit("error", t2) : this.emit(x2), this; this[x2] = true, this[N] = true, this[k].length = 0, this[A2] = 0; let e2 = this; return typeof e2.close == "function" && !this[Vt] && e2.close(), t2 ? this.emit("error", t2) : this.emit(x2), this; } static get isStream() { return j.isStream; } }; j.Minipass = te; }); var mi = C2((E) => { "use strict"; var Hn = E && E.__createBinding || (Object.create ? (function(r2, t2, e2, s2) { s2 === void 0 && (s2 = e2); var i2 = Object.getOwnPropertyDescriptor(t2, e2); (!i2 || ("get" in i2 ? !t2.__esModule : i2.writable || i2.configurable)) && (i2 = { enumerable: true, get: function() { return t2[e2]; } }), Object.defineProperty(r2, s2, i2); }) : (function(r2, t2, e2, s2) { s2 === void 0 && (s2 = e2), r2[s2] = t2[e2]; })), Xn = E && E.__setModuleDefault || (Object.create ? (function(r2, t2) { Object.defineProperty(r2, "default", { enumerable: true, value: t2 }); }) : function(r2, t2) { r2.default = t2; }), Kn = E && E.__importStar || /* @__PURE__ */ (function() { var r2 = function(t2) { return r2 = Object.getOwnPropertyNames || function(e2) { var s2 = []; for (var i2 in e2) Object.prototype.hasOwnProperty.call(e2, i2) && (s2[s2.length] = i2); return s2; }, r2(t2); }; return function(t2) { if (t2 && t2.__esModule) return t2; var e2 = {}; if (t2 != null) for (var s2 = r2(t2), i2 = 0; i2 < s2.length; i2++) s2[i2] !== "default" && Hn(e2, t2, s2[i2]); return Xn(e2, t2), e2; }; })(); Object.defineProperty(E, "__esModule", { value: true }); E.PathScurry = E.Path = E.PathScurryDarwin = E.PathScurryPosix = E.PathScurryWin32 = E.PathScurryBase = E.PathPosix = E.PathWin32 = E.PathBase = E.ChildrenCache = E.ResolveCache = void 0; var ae = Ys(), re = require("node:path"), Vn = require("node:url"), vt = require("fs"), Yn = Kn(require("node:fs")), Jn = vt.realpathSync.native, ee = require("node:fs/promises"), si = Ye(), _t = { lstatSync: vt.lstatSync, readdir: vt.readdir, readdirSync: vt.readdirSync, readlinkSync: vt.readlinkSync, realpathSync: Jn, promises: { lstat: ee.lstat, readdir: ee.readdir, readlink: ee.readlink, realpath: ee.realpath } }, ai = (r2) => !r2 || r2 === _t || r2 === Yn ? _t : { ..._t, ...r2, promises: { ..._t.promises, ...r2.promises } }, Zn = /^\\\\\?\\([a-z]:)\\?$/i, Qn = /^\\\\\?\\UNC\\([^\\]+\\[^\\]+)\\?$/i, tr = /^\\\\[^\\?]+\\[^\\]+$/, ii = (r2) => r2.replace(/\//g, "\\").replace(Zn, "$1\\").replace(Qn, "\\\\$1\\").replace(tr, "$&\\"), er = /^[\\/]{2}\?[\\/]unc[\\/][^\\/]+[\\/][^\\/]+(?:[\\/]|$)/i, sr = /^[\\/]{2}\?[\\/](?=[a-z]:)/i, ir = /^[\\/]{2}\?[\\/]unc(?=[\\/][^\\/]+[\\/][^\\/])/i, nr = /[\\/]/, L = 0, li = 1, ci = 2, I = 4, ui = 6, fi = 8, it = 10, di = 12, D = 15, St = ~D, Je = 16, ni = 32, Et = 64, z = 128, se = 256, ne = 512, ri = Et | z | ne, rr = 1023, Ze = (r2) => r2.isFile() ? fi : r2.isDirectory() ? I : r2.isSymbolicLink() ? it : r2.isCharacterDevice() ? ci : r2.isBlockDevice() ? ui : r2.isSocket() ? di : r2.isFIFO() ? li : L, oi = new ae.LRUCache({ max: 2 ** 12 }), Ot = (r2) => { let t2 = oi.get(r2); if (t2) return t2; let e2 = r2.normalize("NFKD"); return oi.set(r2, e2), e2; }, hi = new ae.LRUCache({ max: 2 ** 12 }), ie = (r2) => { let t2 = hi.get(r2); if (t2) return t2; let e2 = Ot(r2.toLowerCase()); return hi.set(r2, e2), e2; }, xt = class extends ae.LRUCache { constructor() { super({ max: 256 }); } }; E.ResolveCache = xt; var oe = class extends ae.LRUCache { constructor(t2 = 16 * 1024) { super({ maxSize: t2, sizeCalculation: (e2) => e2.length + 1 }); } }; E.ChildrenCache = oe; var pi = /* @__PURE__ */ Symbol("PathScurry setAsCwd"), R = class { name; root; roots; parent; nocase; isCWD = false; #t; #n; get dev() { return this.#n; } #i; get mode() { return this.#i; } #o; get nlink() { return this.#o; } #r; get uid() { return this.#r; } #d; get gid() { return this.#d; } #f; get rdev() { return this.#f; } #u; get blksize() { return this.#u; } #h; get ino() { return this.#h; } #m; get size() { return this.#m; } #l; get blocks() { return this.#l; } #a; get atimeMs() { return this.#a; } #s; get mtimeMs() { return this.#s; } #b; get ctimeMs() { return this.#b; } #E; get birthtimeMs() { return this.#E; } #y; get atime() { return this.#y; } #g; get mtime() { return this.#g; } #w; get ctime() { return this.#w; } #p; get birthtime() { return this.#p; } #O; #x; #v; #_; #S; #M; #e; #P; #T; #k; get parentPath() { return (this.parent || this).fullpath(); } get path() { return this.parentPath; } constructor(t2, e2 = L, s2, i2, n2, o2, h2) { this.name = t2, this.#O = n2 ? ie(t2) : Ot(t2), this.#e = e2 & rr, this.nocase = n2, this.roots = i2, this.root = s2 || this, this.#P = o2, this.#v = h2.fullpath, this.#S = h2.relative, this.#M = h2.relativePosix, this.parent = h2.parent, this.parent ? this.#t = this.parent.#t : this.#t = ai(h2.fs); } get fs() { return this.#t; } depth() { return this.#x !== void 0 ? this.#x : this.parent ? this.#x = this.parent.depth() + 1 : this.#x = 0; } childrenCache() { return this.#P; } resolve(t2) { if (!t2) return this; let e2 = this.getRootString(t2), i2 = t2.substring(e2.length).split(this.splitSep); return e2 ? this.getRoot(e2).#F(i2) : this.#F(i2); } #F(t2) { let e2 = this; for (let s2 of t2) e2 = e2.child(s2); return e2; } children() { let t2 = this.#P.get(this); if (t2) return t2; let e2 = Object.assign([], { provisional: 0 }); return this.#P.set(this, e2), this.#e &= ~Je, e2; } child(t2, e2) { if (t2 === "" || t2 === ".") return this; if (t2 === "..") return this.parent || this; let s2 = this.children(), i2 = this.nocase ? ie(t2) : Ot(t2); for (let a2 of s2) if (a2.#O === i2) return a2; let n2 = this.parent ? this.sep : "", o2 = this.#v ? this.#v + n2 + t2 : void 0, h2 = this.newChild(t2, L, { ...e2, parent: this, fullpath: o2 }); return this.canReaddir() || (h2.#e |= z), s2.push(h2), h2; } relative() { if (this.isCWD) return ""; if (this.#S !== void 0) return this.#S; let t2 = this.name, e2 = this.parent; if (!e2) return this.#S = this.name; let s2 = e2.relative(); return s2 + (!s2 || !e2.parent ? "" : this.sep) + t2; } relativePosix() { if (this.sep === "/") return this.relative(); if (this.isCWD) return ""; if (this.#M !== void 0) return this.#M; let t2 = this.name, e2 = this.parent; if (!e2) return this.#M = this.fullpathPosix(); let s2 = e2.relativePosix(); return s2 + (!s2 || !e2.parent ? "" : "/") + t2; } fullpath() { if (this.#v !== void 0) return this.#v; let t2 = this.name, e2 = this.parent; if (!e2) return this.#v = this.name; let i2 = e2.fullpath() + (e2.parent ? this.sep : "") + t2; return this.#v = i2; } fullpathPosix() { if (this.#_ !== void 0) return this.#_; if (this.sep === "/") return this.#_ = this.fullpath(); if (!this.parent) { let i2 = this.fullpath().replace(/\\/g, "/"); return /^[a-z]:\//i.test(i2) ? this.#_ = `//?/${i2}` : this.#_ = i2; } let t2 = this.parent, e2 = t2.fullpathPosix(), s2 = e2 + (!e2 || !t2.parent ? "" : "/") + this.name; return this.#_ = s2; } isUnknown() { return (this.#e & D) === L; } isType(t2) { return this[`is${t2}`](); } getType() { return this.isUnknown() ? "Unknown" : this.isDirectory() ? "Directory" : this.isFile() ? "File" : this.isSymbolicLink() ? "SymbolicLink" : this.isFIFO() ? "FIFO" : this.isCharacterDevice() ? "CharacterDevice" : this.isBlockDevice() ? "BlockDevice" : this.isSocket() ? "Socket" : "Unknown"; } isFile() { return (this.#e & D) === fi; } isDirectory() { return (this.#e & D) === I; } isCharacterDevice() { return (this.#e & D) === ci; } isBlockDevice() { return (this.#e & D) === ui; } isFIFO() { return (this.#e & D) === li; } isSocket() { return (this.#e & D) === di; } isSymbolicLink() { return (this.#e & it) === it; } lstatCached() { return this.#e & ni ? this : void 0; } readlinkCached() { return this.#T; } realpathCached() { return this.#k; } readdirCached() { let t2 = this.children(); return t2.slice(0, t2.provisional); } canReadlink() { if (this.#T) return true; if (!this.parent) return false; let t2 = this.#e & D; return !(t2 !== L && t2 !== it || this.#e & se || this.#e & z); } calledReaddir() { return !!(this.#e & Je); } isENOENT() { return !!(this.#e & z); } isNamed(t2) { return this.nocase ? this.#O === ie(t2) : this.#O === Ot(t2); } async readlink() { let t2 = this.#T; if (t2) return t2; if (this.canReadlink() && this.parent) try { let e2 = await this.#t.promises.readlink(this.fullpath()), s2 = (await this.parent.realpath())?.resolve(e2); if (s2) return this.#T = s2; } catch (e2) { this.#R(e2.code); return; } } readlinkSync() { let t2 = this.#T; if (t2) return t2; if (this.canReadlink() && this.parent) try { let e2 = this.#t.readlinkSync(this.fullpath()), s2 = this.parent.realpathSync()?.resolve(e2); if (s2) return this.#T = s2; } catch (e2) { this.#R(e2.code); return; } } #z(t2) { this.#e |= Je; for (let e2 = t2.provisional; e2 < t2.length; e2++) { let s2 = t2[e2]; s2 && s2.#C(); } } #C() { this.#e & z || (this.#e = (this.#e | z) & St, this.#U()); } #U() { let t2 = this.children(); t2.provisional = 0; for (let e2 of t2) e2.#C(); } #N() { this.#e |= ne, this.#j(); } #j() { if (this.#e & Et) return; let t2 = this.#e; (t2 & D) === I && (t2 &= St), this.#e = t2 | Et, this.#U(); } #B(t2 = "") { t2 === "ENOTDIR" || t2 === "EPERM" ? this.#j() : t2 === "ENOENT" ? this.#C() : this.children().provisional = 0; } #A(t2 = "") { t2 === "ENOTDIR" ? this.parent.#j() : t2 === "ENOENT" && this.#C(); } #R(t2 = "") { let e2 = this.#e; e2 |= se, t2 === "ENOENT" && (e2 |= z), (t2 === "EINVAL" || t2 === "UNKNOWN") && (e2 &= St), this.#e = e2, t2 === "ENOTDIR" && this.parent && this.parent.#j(); } #G(t2, e2) { return this.#$(t2, e2) || this.#D(t2, e2); } #D(t2, e2) { let s2 = Ze(t2), i2 = this.newChild(t2.name, s2, { parent: this }), n2 = i2.#e & D; return n2 !== I && n2 !== it && n2 !== L && (i2.#e |= Et), e2.unshift(i2), e2.provisional++, i2; } #$(t2, e2) { for (let s2 = e2.provisional; s2 < e2.length; s2++) { let i2 = e2[s2]; if ((this.nocase ? ie(t2.name) : Ot(t2.name)) === i2.#O) return this.#V(t2, i2, s2, e2); } } #V(t2, e2, s2, i2) { let n2 = e2.name; return e2.#e = e2.#e & St | Ze(t2), n2 !== t2.name && (e2.name = t2.name), s2 !== i2.provisional && (s2 === i2.length - 1 ? i2.pop() : i2.splice(s2, 1), i2.unshift(e2)), i2.provisional++, e2; } async lstat() { if ((this.#e & z) === 0) try { return this.#q(await this.#t.promises.lstat(this.fullpath())), this; } catch (t2) { this.#A(t2.code); } } lstatSync() { if ((this.#e & z) === 0) try { return this.#q(this.#t.lstatSync(this.fullpath())), this; } catch (t2) { this.#A(t2.code); } } #q(t2) { let { atime: e2, atimeMs: s2, birthtime: i2, birthtimeMs: n2, blksize: o2, blocks: h2, ctime: a2, ctimeMs: l2, dev: c2, gid: u2, ino: f2, mode: p2, mtime: g2, mtimeMs: d2, nlink: b2, rdev: m2, size: y2, uid: _2 } = t2; this.#y = e2, this.#a = s2, this.#p = i2, this.#E = n2, this.#u = o2, this.#l = h2, this.#w = a2, this.#b = l2, this.#n = c2, this.#d = u2, this.#h = f2, this.#i = p2, this.#g = g2, this.#s = d2, this.#o = b2, this.#f = m2, this.#m = y2, this.#r = _2; let v2 = Ze(t2); this.#e = this.#e & St | v2 | ni, v2 !== L && v2 !== I && v2 !== it && (this.#e |= Et); } #L = []; #c = false; #H(t2) { this.#c = false; let e2 = this.#L.slice(); this.#L.length = 0, e2.forEach((s2) => s2(null, t2)); } readdirCB(t2, e2 = false) { if (!this.canReaddir()) { e2 ? t2(null, []) : queueMicrotask(() => t2(null, [])); return; } let s2 = this.children(); if (this.calledReaddir()) { let n2 = s2.slice(0, s2.provisional); e2 ? t2(null, n2) : queueMicrotask(() => t2(null, n2)); return; } if (this.#L.push(t2), this.#c) return; this.#c = true; let i2 = this.fullpath(); this.#t.readdir(i2, { withFileTypes: true }, (n2, o2) => { if (n2) this.#B(n2.code), s2.provisional = 0; else { for (let h2 of o2) this.#G(h2, s2); this.#z(s2); } this.#H(s2.slice(0, s2.provisional)); }); } #I; async readdir() { if (!this.canReaddir()) return []; let t2 = this.children(); if (this.calledReaddir()) return t2.slice(0, t2.provisional); let e2 = this.fullpath(); if (this.#I) await this.#I; else { let s2 = () => { }; this.#I = new Promise((i2) => s2 = i2); try { for (let i2 of await this.#t.promises.readdir(e2, { withFileTypes: true })) this.#G(i2, t2); this.#z(t2); } catch (i2) { this.#B(i2.code), t2.provisional = 0; } this.#I = void 0, s2(); } return t2.slice(0, t2.provisional); } readdirSync() { if (!this.canReaddir()) return []; let t2 = this.children(); if (this.calledReaddir()) return t2.slice(0, t2.provisional); let e2 = this.fullpath(); try { for (let s2 of this.#t.readdirSync(e2, { withFileTypes: true })) this.#G(s2, t2); this.#z(t2); } catch (s2) { this.#B(s2.code), t2.provisional = 0; } return t2.slice(0, t2.provisional); } canReaddir() { if (this.#e & ri) return false; let t2 = D & this.#e; return t2 === L || t2 === I || t2 === it; } shouldWalk(t2, e2) { return (this.#e & I) === I && !(this.#e & ri) && !t2.has(this) && (!e2 || e2(this)); } async realpath() { if (this.#k) return this.#k; if (!((ne | se | z) & this.#e)) try { let t2 = await this.#t.promises.realpath(this.fullpath()); return this.#k = this.resolve(t2); } catch { this.#N(); } } realpathSync() { if (this.#k) return this.#k; if (!((ne | se | z) & this.#e)) try { let t2 = this.#t.realpathSync(this.fullpath()); return this.#k = this.resolve(t2); } catch { this.#N(); } } [pi](t2) { if (t2 === this) return; t2.isCWD = false, this.isCWD = true; let e2 = /* @__PURE__ */ new Set([]), s2 = [], i2 = this; for (; i2 && i2.parent; ) e2.add(i2), i2.#S = s2.join(this.sep), i2.#M = s2.join("/"), i2 = i2.parent, s2.push(".."); for (i2 = t2; i2 && i2.parent && !e2.has(i2); ) i2.#S = void 0, i2.#M = void 0, i2 = i2.parent; } }; E.PathBase = R; var Ct = class r2 extends R { sep = "\\"; splitSep = nr; constructor(t2, e2 = L, s2, i2, n2, o2, h2) { super(t2, e2, s2, i2, n2, o2, h2); } newChild(t2, e2 = L, s2 = {}) { return new r2(t2, e2, this.root, this.roots, this.nocase, this.childrenCache(), s2); } getRootString(t2) { return er.exec(t2)?.[0] ?? re.win32.parse(t2).root; } getRoot(t2) { if (t2 = ii(t2.toUpperCase()), t2 === this.root.name || /^[\\/]$/.test(t2)) return this.root; for (let [e2, s2] of Object.entries(this.roots)) if (this.sameRoot(t2, e2)) return this.roots[t2] = s2; return this.roots[t2] = new At(t2, { nocase: this.nocase, fs: this.fs }).root; } sameRoot(t2, e2 = this.root.name) { return ii(t2.toUpperCase()) === e2; } }; E.PathWin32 = Ct; var Mt = class r2 extends R { splitSep = "/"; sep = "/"; constructor(t2, e2 = L, s2, i2, n2, o2, h2) { super(t2, e2, s2, i2, n2, o2, h2); } getRootString(t2) { return t2.startsWith("/") ? "/" : ""; } getRoot(t2) { return this.root; } newChild(t2, e2 = L, s2 = {}) { return new r2(t2, e2, this.root, this.roots, this.nocase, this.childrenCache(), s2); } }; E.PathPosix = Mt; var kt = class { root; rootPath; roots; cwd; #t; #n; #i; nocase; #o; constructor(t2 = process.cwd(), e2, s2, { nocase: i2, childrenCacheSize: n2 = 16 * 1024, fs: o2 = _t } = {}) { this.#o = ai(o2), (t2 instanceof URL || t2.startsWith("file://")) && (t2 = (0, Vn.fileURLToPath)(t2)); let h2 = e2.resolve(t2); this.roots = /* @__PURE__ */ Object.create(null), this.rootPath = this.parseRootPath(h2), this.#t = new xt(), this.#n = new xt(), this.#i = new oe(n2); let a2 = h2.substring(this.rootPath.length).split(s2); if (a2.length === 1 && !a2[0] && a2.pop(), i2 === void 0) throw new TypeError("must provide nocase setting to PathScurryBase ctor"); this.nocase = i2, this.root = this.newRoot(this.#o), this.roots[this.rootPath] = this.root; let l2 = this.root, c2 = a2.length - 1, u2 = e2.sep, f2 = this.rootPath, p2 = false; for (let g2 of a2) { let d2 = c2--; l2 = l2.child(g2, { relative: new Array(d2).fill("..").join(u2), relativePosix: new Array(d2).fill("..").join("/"), fullpath: f2 += (p2 ? "" : u2) + g2 }), p2 = true; } this.cwd = l2; } depth(t2 = this.cwd) { return typeof t2 == "string" && (t2 = this.cwd.resolve(t2)), t2.depth(); } childrenCache() { return this.#i; } resolve(...t2) { let e2 = ""; for (let n2 = t2.length - 1; n2 >= 0; n2--) { let o2 = t2[n2]; if (!(!o2 || o2 === ".") && (e2 = e2 ? `${o2}/${e2}` : o2, this.isAbsolute(o2))) break; } let s2 = this.#t.get(e2); if (s2 !== void 0) return s2; let i2 = this.cwd.resolve(e2).fullpath(); return this.#t.set(e2, i2), i2; } resolvePosix(...t2) { let e2 = ""; for (let n2 = t2.length - 1; n2 >= 0; n2--) { let o2 = t2[n2]; if (!(!o2 || o2 === ".") && (e2 = e2 ? `${o2}/${e2}` : o2, this.isAbsolute(o2))) break; } let s2 = this.#n.get(e2); if (s2 !== void 0) return s2; let i2 = this.cwd.resolve(e2).fullpathPosix(); return this.#n.set(e2, i2), i2; } relative(t2 = this.cwd) { return typeof t2 == "string" && (t2 = this.cwd.resolve(t2)), t2.relative(); } relativePosix(t2 = this.cwd) { return typeof t2 == "string" && (t2 = this.cwd.resolve(t2)), t2.relativePosix(); } basename(t2 = this.cwd) { return typeof t2 == "string" && (t2 = this.cwd.resolve(t2)), t2.name; } dirname(t2 = this.cwd) { return typeof t2 == "string" && (t2 = this.cwd.resolve(t2)), (t2.parent || t2).fullpath(); } async readdir(t2 = this.cwd, e2 = { withFileTypes: true }) { typeof t2 == "string" ? t2 = this.cwd.resolve(t2) : t2 instanceof R || (e2 = t2, t2 = this.cwd); let { withFileTypes: s2 } = e2; if (t2.canReaddir()) { let i2 = await t2.readdir(); return s2 ? i2 : i2.map((n2) => n2.name); } else return []; } readdirSync(t2 = this.cwd, e2 = { withFileTypes: true }) { typeof t2 == "string" ? t2 = this.cwd.resolve(t2) : t2 instanceof R || (e2 = t2, t2 = this.cwd); let { withFileTypes: s2 = true } = e2; return t2.canReaddir() ? s2 ? t2.readdirSync() : t2.readdirSync().map((i2) => i2.name) : []; } async lstat(t2 = this.cwd) { return typeof t2 == "string" && (t2 = this.cwd.resolve(t2)), t2.lstat(); } lstatSync(t2 = this.cwd) { return typeof t2 == "string" && (t2 = this.cwd.resolve(t2)), t2.lstatSync(); } async readlink(t2 = this.cwd, { withFileTypes: e2 } = { withFileTypes: false }) { typeof t2 == "string" ? t2 = this.cwd.resolve(t2) : t2 instanceof R || (e2 = t2.withFileTypes, t2 = this.cwd); let s2 = await t2.readlink(); return e2 ? s2 : s2?.fullpath(); } readlinkSync(t2 = this.cwd, { withFileTypes: e2 } = { withFileTypes: false }) { typeof t2 == "string" ? t2 = this.cwd.resolve(t2) : t2 instanceof R || (e2 = t2.withFileTypes, t2 = this.cwd); let s2 = t2.readlinkSync(); return e2 ? s2 : s2?.fullpath(); } async realpath(t2 = this.cwd, { withFileTypes: e2 } = { withFileTypes: false }) { typeof t2 == "string" ? t2 = this.cwd.resolve(t2) : t2 instanceof R || (e2 = t2.withFileTypes, t2 = this.cwd); let s2 = await t2.realpath(); return e2 ? s2 : s2?.fullpath(); } realpathSync(t2 = this.cwd, { withFileTypes: e2 } = { withFileTypes: false }) { typeof t2 == "string" ? t2 = this.cwd.resolve(t2) : t2 instanceof R || (e2 = t2.withFileTypes, t2 = this.cwd); let s2 = t2.realpathSync(); return e2 ? s2 : s2?.fullpath(); } async walk(t2 = this.cwd, e2 = {}) { typeof t2 == "string" ? t2 = this.cwd.resolve(t2) : t2 instanceof R || (e2 = t2, t2 = this.cwd); let { withFileTypes: s2 = true, follow: i2 = false, filter: n2, walkFilter: o2 } = e2, h2 = []; (!n2 || n2(t2)) && h2.push(s2 ? t2 : t2.fullpath()); let a2 = /* @__PURE__ */ new Set(), l2 = (u2, f2) => { a2.add(u2), u2.readdirCB((p2, g2) => { if (p2) return f2(p2); let d2 = g2.length; if (!d2) return f2(); let b2 = () => { --d2 === 0 && f2(); }; for (let m2 of g2) (!n2 || n2(m2)) && h2.push(s2 ? m2 : m2.fullpath()), i2 && m2.isSymbolicLink() ? m2.realpath().then((y2) => y2?.isUnknown() ? y2.lstat() : y2).then((y2) => y2?.shouldWalk(a2, o2) ? l2(y2, b2) : b2()) : m2.shouldWalk(a2, o2) ? l2(m2, b2) : b2(); }, true); }, c2 = t2; return new Promise((u2, f2) => { l2(c2, (p2) => { if (p2) return f2(p2); u2(h2); }); }); } walkSync(t2 = this.cwd, e2 = {}) { typeof t2 == "string" ? t2 = this.cwd.resolve(t2) : t2 instanceof R || (e2 = t2, t2 = this.cwd); let { withFileTypes: s2 = true, follow: i2 = false, filter: n2, walkFilter: o2 } = e2, h2 = []; (!n2 || n2(t2)) && h2.push(s2 ? t2 : t2.fullpath()); let a2 = /* @__PURE__ */ new Set([t2]); for (let l2 of a2) { let c2 = l2.readdirSync(); for (let u2 of c2) { (!n2 || n2(u2)) && h2.push(s2 ? u2 : u2.fullpath()); let f2 = u2; if (u2.isSymbolicLink()) { if (!(i2 && (f2 = u2.realpathSync()))) continue; f2.isUnknown() && f2.lstatSync(); } f2.shouldWalk(a2, o2) && a2.add(f2); } } return h2; } [Symbol.asyncIterator]() { return this.iterate(); } iterate(t2 = this.cwd, e2 = {}) { return typeof t2 == "string" ? t2 = this.cwd.resolve(t2) : t2 instanceof R || (e2 = t2, t2 = this.cwd), this.stream(t2, e2)[Symbol.asyncIterator](); } [Symbol.iterator]() { return this.iterateSync(); } *iterateSync(t2 = this.cwd, e2 = {}) { typeof t2 == "string" ? t2 = this.cwd.resolve(t2) : t2 instanceof R || (e2 = t2, t2 = this.cwd); let { withFileTypes: s2 = true, follow: i2 = false, filter: n2, walkFilter: o2 } = e2; (!n2 || n2(t2)) && (yield s2 ? t2 : t2.fullpath()); let h2 = /* @__PURE__ */ new Set([t2]); for (let a2 of h2) { let l2 = a2.readdirSync(); for (let c2 of l2) { (!n2 || n2(c2)) && (yield s2 ? c2 : c2.fullpath()); let u2 = c2; if (c2.isSymbolicLink()) { if (!(i2 && (u2 = c2.realpathSync()))) continue; u2.isUnknown() && u2.lstatSync(); } u2.shouldWalk(h2, o2) && h2.add(u2); } } } stream(t2 = this.cwd, e2 = {}) { typeof t2 == "string" ? t2 = this.cwd.resolve(t2) : t2 instanceof R || (e2 = t2, t2 = this.cwd); let { withFileTypes: s2 = true, follow: i2 = false, filter: n2, walkFilter: o2 } = e2, h2 = new si.Minipass({ objectMode: true }); (!n2 || n2(t2)) && h2.write(s2 ? t2 : t2.fullpath()); let a2 = /* @__PURE__ */ new Set(), l2 = [t2], c2 = 0, u2 = () => { let f2 = false; for (; !f2; ) { let p2 = l2.shift(); if (!p2) { c2 === 0 && h2.end(); return; } c2++, a2.add(p2); let g2 = (b2, m2, y2 = false) => { if (b2) return h2.emit("error", b2); if (i2 && !y2) { let _2 = []; for (let v2 of m2) v2.isSymbolicLink() && _2.push(v2.realpath().then((S) => S?.isUnknown() ? S.lstat() : S)); if (_2.length) { Promise.all(_2).then(() => g2(null, m2, true)); return; } } for (let _2 of m2) _2 && (!n2 || n2(_2)) && (h2.write(s2 ? _2 : _2.fullpath()) || (f2 = true)); c2--; for (let _2 of m2) { let v2 = _2.realpathCached() || _2; v2.shouldWalk(a2, o2) && l2.push(v2); } f2 && !h2.flowing ? h2.once("drain", u2) : d2 || u2(); }, d2 = true; p2.readdirCB(g2, true), d2 = false; } }; return u2(), h2; } streamSync(t2 = this.cwd, e2 = {}) { typeof t2 == "string" ? t2 = this.cwd.resolve(t2) : t2 instanceof R || (e2 = t2, t2 = this.cwd); let { withFileTypes: s2 = true, follow: i2 = false, filter: n2, walkFilter: o2 } = e2, h2 = new si.Minipass({ objectMode: true }), a2 = /* @__PURE__ */ new Set(); (!n2 || n2(t2)) && h2.write(s2 ? t2 : t2.fullpath()); let l2 = [t2], c2 = 0, u2 = () => { let f2 = false; for (; !f2; ) { let p2 = l2.shift(); if (!p2) { c2 === 0 && h2.end(); return; } c2++, a2.add(p2); let g2 = p2.readdirSync(); for (let d2 of g2) (!n2 || n2(d2)) && (h2.write(s2 ? d2 : d2.fullpath()) || (f2 = true)); c2--; for (let d2 of g2) { let b2 = d2; if (d2.isSymbolicLink()) { if (!(i2 && (b2 = d2.realpathSync()))) continue; b2.isUnknown() && b2.lstatSync(); } b2.shouldWalk(a2, o2) && l2.push(b2); } } f2 && !h2.flowing && h2.once("drain", u2); }; return u2(), h2; } chdir(t2 = this.cwd) { let e2 = this.cwd; this.cwd = typeof t2 == "string" ? this.cwd.resolve(t2) : t2, this.cwd[pi](e2); } }; E.PathScurryBase = kt; var At = class extends kt { sep = "\\"; constructor(t2 = process.cwd(), e2 = {}) { let { nocase: s2 = true } = e2; typeof t2 == "string" && !t2.startsWith("file://") && (t2 = t2.replace(sr, "").replace(ir, "\\")), super(t2, re.win32, "\\", { ...e2, nocase: s2 }), this.nocase = s2; for (let i2 = this.cwd; i2; i2 = i2.parent) i2.nocase = this.nocase; } parseRootPath(t2) { return re.win32.parse(t2).root.toUpperCase(); } newRoot(t2) { return new Ct(this.rootPath, I, void 0, this.roots, this.nocase, this.childrenCache(), { fs: t2 }); } isAbsolute(t2) { return t2.startsWith("/") || t2.startsWith("\\") || /^[a-z]:(\/|\\)/i.test(t2); } }; E.PathScurryWin32 = At; var Rt = class extends kt { sep = "/"; constructor(t2 = process.cwd(), e2 = {}) { let { nocase: s2 = false } = e2; super(t2, re.posix, "/", { ...e2, nocase: s2 }), this.nocase = s2; } parseRootPath(t2) { return "/"; } newRoot(t2) { return new Mt(this.rootPath, I, void 0, this.roots, this.nocase, this.childrenCache(), { fs: t2 }); } isAbsolute(t2) { return t2.startsWith("/"); } }; E.PathScurryPosix = Rt; var he = class extends Rt { constructor(t2 = process.cwd(), e2 = {}) { let { nocase: s2 = true } = e2; super(t2, { ...e2, nocase: s2 }); } }; E.PathScurryDarwin = he; E.Path = process.platform === "win32" ? Ct : Mt; E.PathScurry = process.platform === "win32" ? At : process.platform === "darwin" ? he : Rt; }); var ts = C2((le) => { "use strict"; Object.defineProperty(le, "__esModule", { value: true }); le.Pattern = void 0; var or = Y(), hr = (r2) => r2.length >= 1, ar = (r2) => r2.length >= 1, lr = /* @__PURE__ */ Symbol.for("nodejs.util.inspect.custom"), Qe = class r2 { #t; #n; #i; length; #o; #r; #d; #f; #u; #h; #m = true; constructor(t2, e2, s2, i2) { if (!hr(t2)) throw new TypeError("empty pattern list"); if (!ar(e2)) throw new TypeError("empty glob list"); if (e2.length !== t2.length) throw new TypeError("mismatched pattern list and glob list lengths"); if (this.length = t2.length, s2 < 0 || s2 >= this.length) throw new TypeError("index out of range"); if (this.#t = t2, this.#n = e2, this.#i = s2, this.#o = i2, this.#i === 0) { if (this.isUNC()) { let n2 = this.#l() ? 6 : 4, o2 = this.#t.slice(0, n2), h2 = this.#n.slice(0, n2), a2 = this.#t.slice(n2), l2 = this.#n.slice(n2); a2[0] === "" && (a2.shift(), l2.shift()); let c2 = [...o2, ""].join("/"), u2 = [...h2, ""].join("/"); this.#t = [c2, ...a2], this.#n = [u2, ...l2], this.length = this.#t.length; } else if (this.isDrive() || this.isAbsolute()) { let [n2, ...o2] = this.#t, [h2, ...a2] = this.#n; o2[0] === "" && (o2.shift(), a2.shift()); let l2 = `${n2}/`, c2 = `${h2}/`; this.#t = [l2, ...o2], this.#n = [c2, ...a2], this.length = this.#t.length; } } } [lr]() { return `Pattern <${this.#n.slice(this.#i).join("/")}>`; } pattern() { return this.#t[this.#i]; } isString() { return typeof this.#t[this.#i] == "string"; } isGlobstar() { return this.#t[this.#i] === or.GLOBSTAR; } isMatcher() { return typeof this.#t[this.#i] == "object"; } globString() { return this.#d = this.#d || (this.#i === 0 ? this.isAbsolute() ? this.#n[0] + this.#n.slice(1).join("/") : this.#n.join("/") : this.#n.slice(this.#i).join("/")); } hasMore() { return this.length > this.#i + 1; } rest() { return this.#r !== void 0 ? this.#r : this.hasMore() ? (this.#r = new r2(this.#t, this.#n, this.#i + 1, this.#o), this.#r.#h = this.#h, this.#r.#u = this.#u, this.#r.#f = this.#f, this.#r) : this.#r = null; } #l() { let t2 = this.#t; return t2[2] === "?" && typeof t2[3] == "string" && /^unc$/i.test(t2[3]); } isUNC() { let t2 = this.#t, e2 = this.#l() ? 4 : 2; return this.#u !== void 0 ? this.#u : this.#u = this.#o === "win32" && this.#i === 0 && t2[0] === "" && t2[1] === "" && typeof t2[e2] == "string" && !!t2[e2] && typeof t2[e2 + 1] == "string" && !!t2[e2 + 1]; } isDrive() { let t2 = this.#t; return this.#f !== void 0 ? this.#f : this.#f = this.#o === "win32" && this.#i === 0 && this.length > 1 && typeof t2[0] == "string" && /^[a-z]:$/i.test(t2[0]); } isAbsolute() { let t2 = this.#t; return this.#h !== void 0 ? this.#h : this.#h = t2[0] === "" && t2.length > 1 || this.isDrive() || this.isUNC(); } root() { let t2 = this.#t[0]; return typeof t2 == "string" && this.isAbsolute() && this.#i === 0 ? t2 : ""; } checkFollowGlobstar() { return !(this.#i === 0 || !this.isGlobstar() || !this.#m); } markFollowGlobstar() { return this.#i === 0 || !this.isGlobstar() || !this.#m ? false : (this.#m = false, true); } }; le.Pattern = Qe; }); var is = C2((ce) => { "use strict"; Object.defineProperty(ce, "__esModule", { value: true }); ce.Ignore = void 0; var es = Y(), cr = ts(), ur = typeof process == "object" && process && typeof process.platform == "string" ? process.platform : "linux", ss = class { relative; relativeChildren; absolute; absoluteChildren; platform; mmopts; slashRoot; constructor(t2, { nobrace: e2, nocase: s2, noext: i2, noglobstar: n2, normalize: o2, platform: h2 = ur, root: a2, windowsPathsNoEscape: l2, allowWindowsEscape: c2, braceExpandMax: u2 = 1e4 }, f2) { this.relative = [], this.absolute = [], this.relativeChildren = [], this.absoluteChildren = [], this.platform = h2, l2 = !!l2 || c2 === false, this.mmopts = { braceExpandMax: u2, dot: true, nobrace: e2, nocase: s2, noext: i2, noglobstar: n2, normalize: o2, optimizationLevel: 2, platform: h2, nocomment: true, nonegate: true, windowsPathsNoEscape: l2 }; let p2 = f2?.resolve(a2 ?? "/").fullpath() ?? "/"; this.slashRoot = (0, es.escape)(p2.replace(/\\/g, "/").replace(/\/$/, ""), { magicalBraces: true, windowsPathsNoEscape: l2 }); for (let g2 of t2) this.add(g2); } add(t2) { let e2 = new es.Minimatch(t2, this.mmopts); for (let s2 = 0; s2 < e2.set.length; s2++) { let i2 = e2.set[s2], n2 = e2.globParts[s2]; if (!i2 || !n2) throw new Error("invalid pattern object"); for (; i2[0] === "." && n2[0] === "."; ) i2.shift(), n2.shift(); let o2 = new cr.Pattern(i2, n2, 0, this.platform), h2 = o2.root() === "/" ? `${this.slashRoot}/${o2.rest()?.globString() ?? ""}` : o2.globString(), a2 = new es.Minimatch(h2, this.mmopts), l2 = n2[n2.length - 1] === "**", c2 = o2.isAbsolute(); c2 ? this.absolute.push(a2) : this.relative.push(a2), l2 && (c2 ? this.absoluteChildren.push(a2) : this.relativeChildren.push(a2)); } } ignored(t2) { let e2 = t2.fullpath(), s2 = `${e2}/`, i2 = t2.relative() || ".", n2 = `${i2}/`; for (let o2 of this.relative) if (o2.match(i2) || o2.match(n2)) return true; for (let o2 of this.absolute) if (o2.match(e2) || o2.match(s2)) return true; return false; } childrenIgnored(t2) { let e2 = `${t2.fullpath()}/`, s2 = `${t2.relative() || "."}/`; for (let i2 of this.relativeChildren) if (i2.match(s2)) return true; for (let i2 of this.absoluteChildren) if (i2.match(e2)) return true; return false; } }; ce.Ignore = ss; }); var wi = C2(($) => { "use strict"; Object.defineProperty($, "__esModule", { value: true }); $.Processor = $.SubWalks = $.MatchRecord = $.HasWalkedCache = void 0; var gi = Y(), ue = class r2 { parent; store; constructor(t2) { this.parent = t2; } copy() { return new r2(this); } #t(t2) { let e2 = this.store?.get(t2); return e2 || !this.parent ? e2 : this.parent.#t(t2); } hasWalked(t2, e2) { return !!this.#t(t2.fullpath())?.has(e2.globString()); } storeWalked(t2, e2) { let s2 = t2.fullpath(), i2 = this.#t(s2); i2 ? i2.add(e2.globString()) : (this.store ??= /* @__PURE__ */ new Map()).set(s2, /* @__PURE__ */ new Set([e2.globString()])); } }; $.HasWalkedCache = ue; var fe = class r2 { static ABSOLUTE = 2; static IF_DIR = 1; store = /* @__PURE__ */ new Map(); add(t2, e2, s2) { let i2 = (e2 ? r2.ABSOLUTE : 0) | (s2 ? r2.IF_DIR : 0), n2 = this.store.get(t2); this.store.set(t2, n2 === void 0 ? i2 : i2 & n2); } }; $.MatchRecord = fe; var de = class { store = /* @__PURE__ */ new Map(); add(t2, e2) { if (!t2.canReaddir()) return; let s2 = this.store.get(t2); s2 ? s2.find((i2) => i2.globString() === e2.globString()) || s2.push(e2) : this.store.set(t2, [e2]); } get(t2) { let e2 = this.store.get(t2); if (!e2) throw new Error("attempting to walk unknown path"); return e2; } entries() { return this.keys().map((t2) => [t2, this.store.get(t2)]); } keys() { return [...this.store.keys()].filter((t2) => t2.canReaddir()); } }; $.SubWalks = de; var ns = class r2 { hasWalkedCache; matches = new fe(); subwalks = new de(); patterns; follow; dot; opts; constructor(t2, e2) { this.opts = t2, this.follow = !!t2.follow, this.dot = !!t2.dot, this.hasWalkedCache = e2 ? e2.copy() : new ue(); } processPatterns(t2, e2) { this.patterns = e2; let s2 = e2.map((i2) => [t2, i2]); for (let [i2, n2] of s2) { this.hasWalkedCache.storeWalked(i2, n2); let o2 = n2.root(), h2 = n2.isAbsolute() && this.opts.absolute !== false; if (o2) { i2 = i2.resolve(o2 === "/" && this.opts.root !== void 0 ? this.opts.root : o2); let u2 = n2.rest(); if (u2) n2 = u2; else { this.matches.add(i2, true, false); continue; } } if (i2.isENOENT()) continue; let a2, l2, c2 = false; for (; typeof (a2 = n2.pattern()) == "string" && (l2 = n2.rest()); ) i2 = i2.resolve(a2), n2 = l2, c2 = true; if (a2 = n2.pattern(), l2 = n2.rest(), c2) { if (this.hasWalkedCache.hasWalked(i2, n2)) continue; this.hasWalkedCache.storeWalked(i2, n2); } if (typeof a2 == "string") { let u2 = a2 === ".." || a2 === "" || a2 === "."; this.matches.add(i2.resolve(a2), h2, u2); continue; } else if (a2 === gi.GLOBSTAR) { (!i2.isSymbolicLink() || this.follow || n2.checkFollowGlobstar()) && this.subwalks.add(i2, n2); let u2 = l2?.pattern(), f2 = l2?.rest(); if (!l2 || (u2 === "" || u2 === ".") && !f2) this.matches.add(i2, h2, u2 === "" || u2 === "."); else if (u2 === "..") { let p2 = i2.parent || i2; f2 ? this.hasWalkedCache.hasWalked(p2, f2) || this.subwalks.add(p2, f2) : this.matches.add(p2, h2, true); } } else typeof a2 == "object" && this.subwalks.add(i2, n2); } return this; } subwalkTargets() { return this.subwalks.keys(); } child() { return new r2(this.opts, this.hasWalkedCache); } filterEntries(t2, e2) { let s2 = this.subwalks.get(t2), i2 = this.child(); for (let n2 of e2) for (let o2 of s2) { let h2 = o2.isAbsolute(), a2 = o2.pattern(), l2 = o2.rest(); a2 === gi.GLOBSTAR ? i2.testGlobstar(n2, o2, l2, h2) : typeof a2 == "object" ? i2.testMatcher(n2, a2, l2, h2) : i2.testString(n2, a2, l2, h2); } return i2; } testGlobstar(t2, e2, s2, i2) { if ((this.dot || !t2.name.startsWith(".")) && (e2.hasMore() || this.matches.add(t2, i2, false), t2.canReaddir() && (this.follow || !t2.isSymbolicLink() ? this.subwalks.add(t2, e2) : t2.isSymbolicLink() && (s2 && e2.checkFollowGlobstar() ? this.subwalks.add(t2, s2) : e2.markFollowGlobstar() && this.subwalks.add(t2, e2)))), s2) { let n2 = s2.pattern(); if (typeof n2 == "string" && n2 !== ".." && n2 !== "" && n2 !== ".") this.testString(t2, n2, s2.rest(), i2); else if (n2 === "..") { let o2 = t2.parent || t2; this.subwalks.add(o2, s2); } else typeof n2 == "object" && this.testMatcher(t2, n2, s2.rest(), i2); } } testMatcher(t2, e2, s2, i2) { e2.testUnchecked(t2.name) && (s2 ? this.subwalks.add(t2, s2) : this.matches.add(t2, i2, false)); } testString(t2, e2, s2, i2) { t2.isNamed(e2) && (s2 ? this.subwalks.add(t2, s2) : this.matches.add(t2, i2, false)); } }; $.Processor = ns; }); var yi = C2((Q) => { "use strict"; Object.defineProperty(Q, "__esModule", { value: true }); Q.GlobStream = Q.GlobWalker = Q.GlobUtil = void 0; var fr = Ye(), bi = is(), rs = wi(), { ABSOLUTE: pe, IF_DIR: me } = rs.MatchRecord, dr = (r2, t2, e2) => typeof r2 == "string" ? new bi.Ignore([r2], t2, e2) : Array.isArray(r2) ? new bi.Ignore(r2, t2, e2) : r2, Pt = class { path; patterns; opts; seen = /* @__PURE__ */ new Set(); paused = false; aborted = false; #t = []; #n; #i; signal; maxDepth; includeChildMatches; constructor(t2, e2, s2) { if (this.patterns = t2, this.path = e2, this.opts = s2, this.#i = !s2.posix && s2.platform === "win32" ? "\\" : "/", this.includeChildMatches = s2.includeChildMatches !== false, (s2.ignore || !this.includeChildMatches) && (this.#n = dr(s2.ignore ?? [], s2, e2), !this.includeChildMatches && typeof this.#n.add != "function")) { let i2 = "cannot ignore child matches, ignore lacks add() method."; throw new Error(i2); } this.maxDepth = s2.maxDepth || 1 / 0, s2.signal && (this.signal = s2.signal, this.signal.addEventListener("abort", () => { this.#t.length = 0; })); } #o(t2) { return this.seen.has(t2) || !!this.#n?.ignored?.(t2); } #r(t2) { return !!this.#n?.childrenIgnored?.(t2); } pause() { this.paused = true; } resume() { if (this.signal?.aborted) return; this.paused = false; let t2; for (; !this.paused && (t2 = this.#t.shift()); ) t2(); } onResume(t2) { this.paused ? this.#t.push(t2) : t2(); } async matchCheck(t2, e2) { if (e2 && this.opts.nodir) return; let s2, i2; if (this.opts.realpath) { if (s2 = t2.realpathCached() || await t2.realpath(), !s2) return; i2 = s2; } else i2 = t2; let o2 = i2.isUnknown() || this.opts.stat ? await i2.lstat() : i2; if (this.opts.follow && this.opts.nodir && o2?.isSymbolicLink()) { let h2 = await o2.realpath(); h2 && (h2.isUnknown() || this.opts.stat) && await h2.lstat(); } return this.matchCheckTest(o2, e2); } matchCheckTest(t2, e2) { return t2 && (this.maxDepth === 1 / 0 || t2.depth() <= this.maxDepth) && (!e2 || t2.canReaddir()) && (!this.opts.nodir || !t2.isDirectory()) && (!this.opts.nodir || !this.opts.follow || !t2.isSymbolicLink() || !t2.realpathCached()?.isDirectory()) && !this.#o(t2) ? t2 : void 0; } matchCheckSync(t2, e2) { if (e2 && this.opts.nodir) return; let s2, i2; if (this.opts.realpath) { if (s2 = t2.realpathCached() || t2.realpathSync(), !s2) return; i2 = s2; } else i2 = t2; let o2 = i2.isUnknown() || this.opts.stat ? i2.lstatSync() : i2; if (this.opts.follow && this.opts.nodir && o2?.isSymbolicLink()) { let h2 = o2.realpathSync(); h2 && (h2?.isUnknown() || this.opts.stat) && h2.lstatSync(); } return this.matchCheckTest(o2, e2); } matchFinish(t2, e2) { this.#o(t2) || this.#d(t2, e2); } #d(t2, e2) { if (!this.includeChildMatches && this.#n?.add) { let n2 = `${t2.relativePosix()}/**`; this.#n.add(n2); } let s2 = this.opts.absolute === void 0 ? e2 : this.opts.absolute; this.seen.add(t2); let i2 = this.opts.mark && t2.isDirectory() ? this.#i : ""; if (this.opts.withFileTypes) this.matchEmit(t2); else if (s2) { let n2 = this.opts.posix ? t2.fullpathPosix() : t2.fullpath(); this.matchEmit(n2 + i2); } else { let n2 = this.opts.posix ? t2.relativePosix() : t2.relative(), o2 = this.opts.dotRelative && !n2.startsWith(`..${this.#i}`) ? `.${this.#i}` : ""; this.matchEmit(n2 ? o2 + n2 + i2 : `.${i2}`); } } async match(t2, e2, s2) { let i2 = await this.matchCheck(t2, s2); i2 && this.matchFinish(i2, e2); } matchSync(t2, e2, s2) { let i2 = this.matchCheckSync(t2, s2); i2 && this.#d(i2, e2); } walkCB(t2, e2, s2) { if (this.signal?.aborted) return s2(); this.walkCB2(t2, e2, new rs.Processor(this.opts), s2); } walkCB2(t2, e2, s2, i2) { if (this.#r(t2) || this.signal?.aborted) return i2(); if (this.paused) { this.onResume(() => this.walkCB2(t2, e2, s2, i2)); return; } s2.processPatterns(t2, e2); let n2 = 1, o2 = () => { --n2 === 0 && i2(); }; for (let [h2, a2] of s2.matches.store) this.#o(h2) || (n2++, this.match(h2, !!(a2 & pe), !!(a2 & me)).then(() => o2())); for (let h2 of s2.subwalkTargets()) { if (this.maxDepth !== 1 / 0 && h2.depth() >= this.maxDepth) continue; n2++; let a2 = h2.readdirCached(); h2.calledReaddir() ? this.walkCB3(h2, a2, s2, o2) : h2.readdirCB((l2, c2) => this.walkCB3(h2, c2, s2, o2), true); } o2(); } walkCB3(t2, e2, s2, i2) { let n2 = s2.filterEntries(t2, e2), o2 = 1, h2 = () => { --o2 === 0 && i2(); }; for (let [a2, l2] of n2.matches.store) this.#o(a2) || (o2++, this.match(a2, !!(l2 & pe), !!(l2 & me)).then(() => h2())); for (let [a2, l2] of n2.subwalks.entries()) o2++, this.walkCB2(a2, l2, n2.child(), h2); h2(); } walkCBSync(t2, e2, s2) { if (this.signal?.aborted) return s2(); this.walkCB2Sync(t2, e2, new rs.Processor(this.opts), s2); } walkCB2Sync(t2, e2, s2, i2) { if (this.#r(t2) || this.signal?.aborted) return i2(); if (this.paused) { this.onResume(() => this.walkCB2Sync(t2, e2, s2, i2)); return; } s2.processPatterns(t2, e2); let n2 = 1, o2 = () => { --n2 === 0 && i2(); }; for (let [h2, a2] of s2.matches.store) this.#o(h2) || this.matchSync(h2, !!(a2 & pe), !!(a2 & me)); for (let h2 of s2.subwalkTargets()) { if (this.maxDepth !== 1 / 0 && h2.depth() >= this.maxDepth) continue; n2++; let a2 = h2.readdirSync(); this.walkCB3Sync(h2, a2, s2, o2); } o2(); } walkCB3Sync(t2, e2, s2, i2) { let n2 = s2.filterEntries(t2, e2), o2 = 1, h2 = () => { --o2 === 0 && i2(); }; for (let [a2, l2] of n2.matches.store) this.#o(a2) || this.matchSync(a2, !!(l2 & pe), !!(l2 & me)); for (let [a2, l2] of n2.subwalks.entries()) o2++, this.walkCB2Sync(a2, l2, n2.child(), h2); h2(); } }; Q.GlobUtil = Pt; var os2 = class extends Pt { matches = []; constructor(t2, e2, s2) { super(t2, e2, s2); } matchEmit(t2) { this.matches.push(t2); } async walk() { if (this.signal?.aborted) throw this.signal.reason; return this.path.isUnknown() && await this.path.lstat(), await new Promise((t2, e2) => { this.walkCB(this.path, this.patterns, () => { this.signal?.aborted ? e2(this.signal.reason) : t2(this.matches); }); }), this.matches; } walkSync() { if (this.signal?.aborted) throw this.signal.reason; return this.path.isUnknown() && this.path.lstatSync(), this.walkCBSync(this.path, this.patterns, () => { if (this.signal?.aborted) throw this.signal.reason; }), this.matches; } }; Q.GlobWalker = os2; var hs = class extends Pt { results; constructor(t2, e2, s2) { super(t2, e2, s2), this.results = new fr.Minipass({ signal: this.signal, objectMode: true }), this.results.on("drain", () => this.resume()), this.results.on("resume", () => this.resume()); } matchEmit(t2) { this.results.write(t2), this.results.flowing || this.pause(); } stream() { let t2 = this.path; return t2.isUnknown() ? t2.lstat().then(() => { this.walkCB(t2, this.patterns, () => this.results.end()); }) : this.walkCB(t2, this.patterns, () => this.results.end()), this.results; } streamSync() { return this.path.isUnknown() && this.path.lstatSync(), this.walkCBSync(this.path, this.patterns, () => this.results.end()), this.results; } }; Q.GlobStream = hs; }); var ls = C2((be) => { "use strict"; Object.defineProperty(be, "__esModule", { value: true }); be.Glob = void 0; var pr = Y(), mr = require("node:url"), ge = mi(), gr = ts(), we = yi(), wr = typeof process == "object" && process && typeof process.platform == "string" ? process.platform : "linux", as = class { absolute; cwd; root; dot; dotRelative; follow; ignore; magicalBraces; mark; matchBase; maxDepth; nobrace; nocase; nodir; noext; noglobstar; pattern; platform; realpath; scurry; stat; signal; windowsPathsNoEscape; withFileTypes; includeChildMatches; opts; patterns; constructor(t2, e2) { if (!e2) throw new TypeError("glob options required"); if (this.withFileTypes = !!e2.withFileTypes, this.signal = e2.signal, this.follow = !!e2.follow, this.dot = !!e2.dot, this.dotRelative = !!e2.dotRelative, this.nodir = !!e2.nodir, this.mark = !!e2.mark, e2.cwd ? (e2.cwd instanceof URL || e2.cwd.startsWith("file://")) && (e2.cwd = (0, mr.fileURLToPath)(e2.cwd)) : this.cwd = "", this.cwd = e2.cwd || "", this.root = e2.root, this.magicalBraces = !!e2.magicalBraces, this.nobrace = !!e2.nobrace, this.noext = !!e2.noext, this.realpath = !!e2.realpath, this.absolute = e2.absolute, this.includeChildMatches = e2.includeChildMatches !== false, this.noglobstar = !!e2.noglobstar, this.matchBase = !!e2.matchBase, this.maxDepth = typeof e2.maxDepth == "number" ? e2.maxDepth : 1 / 0, this.stat = !!e2.stat, this.ignore = e2.ignore, this.withFileTypes && this.absolute !== void 0) throw new Error("cannot set absolute and withFileTypes:true"); let s2 = typeof t2 == "string" ? [t2] : t2; if (this.windowsPathsNoEscape = !!e2.windowsPathsNoEscape || e2.allowWindowsEscape === false, this.windowsPathsNoEscape && (s2 = s2.map((l2) => l2.replace(/\\/g, "/"))), this.matchBase) { if (e2.noglobstar) throw new TypeError("base matching requires globstar"); s2 = s2.map((l2) => l2.includes("/") ? l2 : `./**/${l2}`); } if (this.pattern = s2, this.platform = e2.platform || wr, this.opts = { ...e2, platform: this.platform }, e2.scurry) { if (this.scurry = e2.scurry, e2.nocase !== void 0 && e2.nocase !== e2.scurry.nocase) throw new Error("nocase option contradicts provided scurry option"); } else { let l2 = e2.platform === "win32" ? ge.PathScurryWin32 : e2.platform === "darwin" ? ge.PathScurryDarwin : e2.platform ? ge.PathScurryPosix : ge.PathScurry; this.scurry = new l2(this.cwd, { nocase: e2.nocase, fs: e2.fs }); } this.nocase = this.scurry.nocase; let i2 = this.platform === "darwin" || this.platform === "win32", n2 = { braceExpandMax: 1e4, ...e2, dot: this.dot, matchBase: this.matchBase, nobrace: this.nobrace, nocase: this.nocase, nocaseMagicOnly: i2, nocomment: true, noext: this.noext, nonegate: true, optimizationLevel: 2, platform: this.platform, windowsPathsNoEscape: this.windowsPathsNoEscape }, o2 = this.pattern.map((l2) => new pr.Minimatch(l2, n2)), [h2, a2] = o2.reduce((l2, c2) => (l2[0].push(...c2.set), l2[1].push(...c2.globParts), l2), [[], []]); this.patterns = h2.map((l2, c2) => { let u2 = a2[c2]; if (!u2) throw new Error("invalid pattern object"); return new gr.Pattern(l2, u2, 0, this.platform); }); } async walk() { return await new we.GlobWalker(this.patterns, this.scurry.cwd, { ...this.opts, maxDepth: this.maxDepth !== 1 / 0 ? this.maxDepth + this.scurry.cwd.depth() : 1 / 0, platform: this.platform, nocase: this.nocase, includeChildMatches: this.includeChildMatches }).walk(); } walkSync() { return new we.GlobWalker(this.patterns, this.scurry.cwd, { ...this.opts, maxDepth: this.maxDepth !== 1 / 0 ? this.maxDepth + this.scurry.cwd.depth() : 1 / 0, platform: this.platform, nocase: this.nocase, includeChildMatches: this.includeChildMatches }).walkSync(); } stream() { return new we.GlobStream(this.patterns, this.scurry.cwd, { ...this.opts, maxDepth: this.maxDepth !== 1 / 0 ? this.maxDepth + this.scurry.cwd.depth() : 1 / 0, platform: this.platform, nocase: this.nocase, includeChildMatches: this.includeChildMatches }).stream(); } streamSync() { return new we.GlobStream(this.patterns, this.scurry.cwd, { ...this.opts, maxDepth: this.maxDepth !== 1 / 0 ? this.maxDepth + this.scurry.cwd.depth() : 1 / 0, platform: this.platform, nocase: this.nocase, includeChildMatches: this.includeChildMatches }).streamSync(); } iterateSync() { return this.streamSync()[Symbol.iterator](); } [Symbol.iterator]() { return this.iterateSync(); } iterate() { return this.stream()[Symbol.asyncIterator](); } [Symbol.asyncIterator]() { return this.iterate(); } }; be.Glob = as; }); var cs = C2((ye) => { "use strict"; Object.defineProperty(ye, "__esModule", { value: true }); ye.hasMagic = void 0; var br = Y(), yr = (r2, t2 = {}) => { for (let e2 of Array.isArray(r2) ? r2 : [r2]) if (new br.Minimatch(e2, t2).hasMagic()) return true; return false; }; ye.hasMagic = yr; }); Object.defineProperty(exports2, "__esModule", { value: true }); exports2.glob = exports2.sync = exports2.iterate = exports2.iterateSync = exports2.stream = exports2.streamSync = exports2.Ignore = exports2.hasMagic = exports2.Glob = exports2.unescape = exports2.escape = void 0; exports2.globStreamSync = Tt; exports2.globStream = us; exports2.globSync = fs2; exports2.globIterateSync = Ft; exports2.globIterate = ds; var Si = Y(); var nt = ls(); var Sr = cs(); var _i = Y(); Object.defineProperty(exports2, "escape", { enumerable: true, get: function() { return _i.escape; } }); Object.defineProperty(exports2, "unescape", { enumerable: true, get: function() { return _i.unescape; } }); var vr = ls(); Object.defineProperty(exports2, "Glob", { enumerable: true, get: function() { return vr.Glob; } }); var _r = cs(); Object.defineProperty(exports2, "hasMagic", { enumerable: true, get: function() { return _r.hasMagic; } }); var Er = is(); Object.defineProperty(exports2, "Ignore", { enumerable: true, get: function() { return Er.Ignore; } }); function Tt(r2, t2 = {}) { return new nt.Glob(r2, t2).streamSync(); } function us(r2, t2 = {}) { return new nt.Glob(r2, t2).stream(); } function fs2(r2, t2 = {}) { return new nt.Glob(r2, t2).walkSync(); } async function vi(r2, t2 = {}) { return new nt.Glob(r2, t2).walk(); } function Ft(r2, t2 = {}) { return new nt.Glob(r2, t2).iterateSync(); } function ds(r2, t2 = {}) { return new nt.Glob(r2, t2).iterate(); } exports2.streamSync = Tt; exports2.stream = Object.assign(us, { sync: Tt }); exports2.iterateSync = Ft; exports2.iterate = Object.assign(ds, { sync: Ft }); exports2.sync = Object.assign(fs2, { stream: Tt, iterate: Ft }); exports2.glob = Object.assign(vi, { glob: vi, globSync: fs2, sync: exports2.sync, globStream: us, stream: exports2.stream, globStreamSync: Tt, streamSync: exports2.streamSync, globIterate: ds, iterate: exports2.iterate, globIterateSync: Ft, iterateSync: exports2.iterateSync, Glob: nt.Glob, hasMagic: Sr.hasMagic, escape: Si.escape, unescape: Si.unescape }); exports2.glob.glob = exports2.glob; } }); // node_modules/balanced-match/dist/commonjs/index.js var require_commonjs = __commonJS({ "node_modules/balanced-match/dist/commonjs/index.js"(exports2) { "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); exports2.range = exports2.balanced = void 0; var balanced2 = (a2, b2, str) => { const ma = a2 instanceof RegExp ? maybeMatch2(a2, str) : a2; const mb = b2 instanceof RegExp ? maybeMatch2(b2, str) : b2; const r2 = ma !== null && mb != null && (0, exports2.range)(ma, mb, str); return r2 && { start: r2[0], end: r2[1], pre: str.slice(0, r2[0]), body: str.slice(r2[0] + ma.length, r2[1]), post: str.slice(r2[1] + mb.length) }; }; exports2.balanced = balanced2; var maybeMatch2 = (reg, str) => { const m2 = str.match(reg); return m2 ? m2[0] : null; }; var range2 = (a2, b2, str) => { let begs, beg, left, right = void 0, result; let ai = str.indexOf(a2); let bi = str.indexOf(b2, ai + 1); let i2 = ai; if (ai >= 0 && bi > 0) { if (a2 === b2) { return [ai, bi]; } begs = []; left = str.length; while (i2 >= 0 && !result) { if (i2 === ai) { begs.push(i2); ai = str.indexOf(a2, i2 + 1); } else if (begs.length === 1) { const r2 = begs.pop(); if (r2 !== void 0) result = [r2, bi]; } else { beg = begs.pop(); if (beg !== void 0 && beg < left) { left = beg; right = bi; } bi = str.indexOf(b2, i2 + 1); } i2 = ai < bi && ai >= 0 ? ai : bi; } if (begs.length && right !== void 0) { result = [left, right]; } } return result; }; exports2.range = range2; } }); // node_modules/brace-expansion/dist/commonjs/index.js var require_commonjs2 = __commonJS({ "node_modules/brace-expansion/dist/commonjs/index.js"(exports2) { "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); exports2.EXPANSION_MAX_REWRITES = exports2.EXPANSION_MAX_DEPTH = exports2.EXPANSION_MAX_LENGTH = exports2.EXPANSION_MAX = void 0; exports2.expand = expand3; var balanced_match_1 = require_commonjs(); var escSlash2 = "\0SLASH" + Math.random() + "\0"; var escOpen2 = "\0OPEN" + Math.random() + "\0"; var escClose2 = "\0CLOSE" + Math.random() + "\0"; var escComma2 = "\0COMMA" + Math.random() + "\0"; var escPeriod2 = "\0PERIOD" + Math.random() + "\0"; var escSlashPattern2 = new RegExp(escSlash2, "g"); var escOpenPattern2 = new RegExp(escOpen2, "g"); var escClosePattern2 = new RegExp(escClose2, "g"); var escCommaPattern2 = new RegExp(escComma2, "g"); var escPeriodPattern2 = new RegExp(escPeriod2, "g"); var slashPattern2 = /\\\\/g; var openPattern2 = /\\{/g; var closePattern2 = /\\}/g; var commaPattern2 = /\\,/g; var periodPattern2 = /\\\./g; exports2.EXPANSION_MAX = 1e5; exports2.EXPANSION_MAX_LENGTH = 4e6; exports2.EXPANSION_MAX_DEPTH = 1e3; exports2.EXPANSION_MAX_REWRITES = 1e3; function numeric2(str) { return !isNaN(str) ? parseInt(str, 10) : str.charCodeAt(0); } function escapeBraces2(str) { return str.replace(slashPattern2, escSlash2).replace(openPattern2, escOpen2).replace(closePattern2, escClose2).replace(commaPattern2, escComma2).replace(periodPattern2, escPeriod2); } function unescapeBraces2(str) { return str.replace(escSlashPattern2, "\\").replace(escOpenPattern2, "{").replace(escClosePattern2, "}").replace(escCommaPattern2, ",").replace(escPeriodPattern2, "."); } function pushAll2(target, items) { for (let i2 = 0; i2 < items.length; i2++) { target.push(items[i2]); } } function parseCommaParts2(str) { const parts = []; let carry = ""; for (; ; ) { const m2 = (0, balanced_match_1.balanced)("{", "}", str); if (!m2) { const tail = str.split(","); tail[0] = carry + tail[0]; pushAll2(parts, tail); return parts; } const { pre, body, post } = m2; const p2 = pre.split(","); p2[0] = carry + p2[0]; p2[p2.length - 1] += "{" + body + "}"; if (!post.length) { pushAll2(parts, p2); return parts; } carry = p2.pop(); pushAll2(parts, p2); str = post; } } function expand3(str, options3 = {}) { if (!str) { return []; } const { max = exports2.EXPANSION_MAX, maxLength = exports2.EXPANSION_MAX_LENGTH, maxDepth = exports2.EXPANSION_MAX_DEPTH, maxRewrites = exports2.EXPANSION_MAX_REWRITES } = options3; if (str.slice(0, 2) === "{}") { str = "\\{\\}" + str.slice(2); } return expand_2(escapeBraces2(str), max, maxLength, maxDepth, 0, maxRewrites, true).map(unescapeBraces2); } function embrace2(str) { return "{" + str + "}"; } function isPadded2(el) { return /^-?0\d/.test(el); } function lte2(i2, y2) { return i2 <= y2; } function gte2(i2, y2) { return i2 >= y2; } function combine2(acc, pre, values, max, maxLength, dropEmpties) { const out = []; let length = 0; for (let a2 = 0; a2 < acc.length; a2++) { for (let v2 = 0; v2 < values.length; v2++) { if (out.length >= max) return out; const expansion = acc[a2] + pre + values[v2]; if (dropEmpties && !expansion) continue; if (length + expansion.length > maxLength) return out; out.push(expansion); length += expansion.length; } } return out; } function expandSequence2(body, isAlphaSequence, max, maxLength) { const n2 = body.split(/\.\./); const N = []; if (n2[0] === void 0 || n2[1] === void 0) { return N; } const x2 = numeric2(n2[0]); const y2 = numeric2(n2[1]); const width = Math.max(n2[0].length, n2[1].length); let incr = n2.length === 3 && n2[2] !== void 0 ? Math.max(Math.abs(numeric2(n2[2])), 1) : 1; let test = lte2; const reverse = y2 < x2; if (reverse) { incr *= -1; test = gte2; } const pad2 = n2.some(isPadded2); let length = 0; for (let i2 = x2; test(i2, y2) && N.length < max; i2 += incr) { let c2; if (isAlphaSequence) { c2 = String.fromCharCode(i2); if (c2 === "\\") { c2 = ""; } } else { c2 = String(i2); if (pad2) { const need = width - c2.length; if (need > 0) { const z = new Array(need + 1).join("0"); if (i2 < 0) { c2 = "-" + z + c2.slice(1); } else { c2 = z + c2; } } } } if (length + c2.length > maxLength) break; N.push(c2); length += c2.length; } return N; } function expand_2(str, max, maxLength, maxDepth, depth, maxRewrites, isTop) { if (depth > maxDepth) { return [str]; } let acc = [""]; let rewrites = 0; let dropEmpties = false; let firstGroup = true; for (; ; ) { const m2 = (0, balanced_match_1.balanced)("{", "}", str); if (!m2) { return combine2(acc, str, [""], max, maxLength, dropEmpties); } const pre = m2.pre; if (/\$$/.test(pre)) { acc = combine2(acc, pre + "{" + m2.body + "}", [""], max, maxLength, dropEmpties && !m2.post.length); firstGroup = false; if (!m2.post.length) break; str = m2.post; continue; } const isNumericSequence = /^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(m2.body); const isAlphaSequence = /^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(m2.body); const isSequence = isNumericSequence || isAlphaSequence; const isOptions = m2.body.indexOf(",") >= 0; if (!isSequence && !isOptions) { if (rewrites < maxRewrites && m2.post.match(/,(?!,).*\}/)) { rewrites++; str = m2.pre + "{" + m2.body + escClose2 + m2.post; isTop = true; continue; } return combine2(acc, pre + "{" + m2.body + "}" + m2.post, [""], max, maxLength, dropEmpties); } if (firstGroup) { dropEmpties = isTop && !isSequence; firstGroup = false; } let values; if (isSequence) { values = expandSequence2(m2.body, isAlphaSequence, max, maxLength); } else { let n2 = parseCommaParts2(m2.body); if (n2.length === 1 && n2[0] !== void 0) { n2 = expand_2(n2[0], max, maxLength, maxDepth, depth + 1, maxRewrites, false).map(embrace2); if (n2.length === 1) { acc = combine2(acc, pre + n2[0], [""], max, maxLength, dropEmpties && !m2.post.length); if (!m2.post.length) break; str = m2.post; continue; } } let dropsEmpties = dropEmpties && !m2.post.length && !pre; for (let d2 = 0; dropsEmpties && d2 < acc.length; d2++) { if (acc[d2]) { dropsEmpties = false; } } values = []; let valuesLength = 0; outer: for (let j = 0; j < n2.length; j++) { const expanded = expand_2(n2[j], max, maxLength, maxDepth, depth + 1, maxRewrites, false); for (let k = 0; k < expanded.length; k++) { const v2 = expanded[k]; if (dropsEmpties && !v2) continue; if (values.length >= max || valuesLength + v2.length > maxLength) { break outer; } values.push(v2); valuesLength += v2.length; } } } acc = combine2(acc, pre, values, max, maxLength, dropEmpties && !m2.post.length); if (!m2.post.length) break; str = m2.post; } return acc; } } }); // node_modules/@isaacs/nonrecursive-glob-match/dist/commonjs/numeric-range.js var require_numeric_range = __commonJS({ "node_modules/@isaacs/nonrecursive-glob-match/dist/commonjs/numeric-range.js"(exports2) { "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); exports2.numericRange = void 0; var digit2 = (a2, b2) => a2 === b2 ? { t: "lit", ch: String(a2) } : { t: "class", re: new RegExp(`^[${a2}-${b2}]$`) }; var prefix2 = (d2, alts) => alts.map((s2) => [digit2(d2, d2), ...s2]); var fixed2 = (a2, b2) => { if (!a2) return [[]]; let lo = +a2[0]; let hi = +b2[0]; const ra = a2.slice(1); const rb = b2.slice(1); if (lo === hi) return prefix2(lo, fixed2(ra, rb)); const zeros = "0".repeat(ra.length); const nines = "9".repeat(ra.length); const out = []; if (ra !== zeros) out.push(...prefix2(lo++, fixed2(ra, nines))); const last = rb === nines ? [] : prefix2(hi--, fixed2(zeros, rb)); if (lo <= hi) { out.push([digit2(lo, hi), ...Array.from(ra, () => digit2(0, 9))]); } out.push(...last); return out; }; var nonneg2 = (a2, b2, width) => { if (width) { return fixed2(String(a2).padStart(width, "0"), String(b2).padStart(width, "0")); } const out = []; for (let len = String(a2).length; len <= String(b2).length; len++) { const lo = Math.max(a2, len === 1 ? 0 : 10 ** (len - 1)); const hi = Math.min(b2, 10 ** len - 1); out.push(...fixed2(String(lo), String(hi))); } return out; }; var numericRange2 = (loStr, hiStr) => { let lo = Number(loStr); let hi = Number(hiStr); if (!Number.isSafeInteger(lo) || !Number.isSafeInteger(hi)) return; if (lo > hi) [lo, hi] = [hi, lo]; const padded = /^-?0\d/.test(loStr) || /^-?0\d/.test(hiStr); const width = padded ? Math.max(loStr.length, hiStr.length) : 0; const out = []; if (lo < 0) { const neg = nonneg2(Math.max(-hi, 1), -lo, width && width - 1); out.push(...neg.map((s2) => [{ t: "lit", ch: "-" }, ...s2])); } if (hi >= 0) out.push(...nonneg2(Math.max(lo, 0), hi, width)); return out; }; exports2.numericRange = numericRange2; } }); // node_modules/@isaacs/nonrecursive-glob-match/dist/commonjs/parse-class.js var require_parse_class = __commonJS({ "node_modules/@isaacs/nonrecursive-glob-match/dist/commonjs/parse-class.js"(exports2) { "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); exports2.parseClass = void 0; var posixClasses2 = { "[:alnum:]": ["\\p{L}\\p{Nl}\\p{Nd}"], "[:alpha:]": ["\\p{L}\\p{Nl}"], "[:ascii:]": ["\\x00-\\x7f"], "[:blank:]": ["\\p{Zs}\\t"], "[:cntrl:]": ["\\p{Cc}"], "[:digit:]": ["\\p{Nd}"], "[:graph:]": ["\\p{Z}\\p{C}", true], "[:lower:]": ["\\p{Ll}"], "[:print:]": ["\\p{C}", true], "[:punct:]": ["\\p{P}\\p{S}"], "[:space:]": ["\\p{Z}\\t\\r\\n\\v\\f"], "[:upper:]": ["\\p{Lu}"], "[:word:]": ["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}"], "[:xdigit:]": ["A-Fa-f0-9"] }; var braceEscape2 = (s2) => s2.replace(/[[\]\\-]/g, "\\$&"); var noMatch2 = /$./; var parseClass2 = (glob2, position, nocase = false, form) => { const norm = (c2) => { const n2 = form ? c2.normalize(form) : c2; return [...n2].length === 1 ? n2 : c2; }; const pos = position; if (glob2.charAt(pos) !== "[") { throw new Error("not in a brace expression"); } const ranges = []; const negs = []; let i2 = pos + 1; let sawStart = false; let escaping = false; let negate = false; let endPos = pos; let rangeStart = ""; WHILE: while (i2 < glob2.length) { const c2 = String.fromCodePoint(glob2.codePointAt(i2)); if ((c2 === "!" || c2 === "^") && i2 === pos + 1) { negate = true; i2++; continue; } if (c2 === "]" && sawStart && !escaping) { endPos = i2 + 1; break; } sawStart = true; if (c2 === "\\") { if (!escaping) { escaping = true; i2++; continue; } } if (c2 === "[" && !escaping) { for (const [cls, [unip, neg]] of Object.entries(posixClasses2)) { if (glob2.startsWith(cls, i2)) { if (rangeStart) { return [noMatch2, glob2.length - pos]; } i2 += cls.length; if (neg) negs.push(unip); else ranges.push(unip); continue WHILE; } } } escaping = false; const n2 = norm(c2); if (rangeStart) { if (n2.codePointAt(0) > rangeStart.codePointAt(0)) { ranges.push(braceEscape2(rangeStart) + "-" + braceEscape2(n2)); } else if (n2 === rangeStart) { ranges.push(braceEscape2(n2)); } rangeStart = ""; i2 += c2.length; continue; } if (glob2.startsWith("-]", i2 + c2.length)) { ranges.push(braceEscape2(n2 + "-")); i2 += c2.length + 1; continue; } if (glob2.startsWith("-", i2 + c2.length)) { rangeStart = n2; i2 += c2.length + 1; continue; } ranges.push(braceEscape2(n2)); i2 += c2.length; } if (endPos < i2) { return [noMatch2, 0]; } if (!ranges.length && !negs.length) { return [noMatch2, glob2.length - pos]; } const sranges = "[" + (negate ? "^" : "") + ranges.join("") + "]"; const snegs = "[" + (negate ? "" : "^") + negs.join("") + "]"; const comb = "^" + (ranges.length && negs.length ? "(" + sranges + "|" + snegs + ")" : ranges.length ? sranges : snegs); return [new RegExp(comb, nocase ? "iu" : "u"), endPos - pos]; }; exports2.parseClass = parseClass2; } }); // node_modules/@isaacs/nonrecursive-glob-match/dist/commonjs/index.js var require_commonjs3 = __commonJS({ "node_modules/@isaacs/nonrecursive-glob-match/dist/commonjs/index.js"(exports2) { "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); exports2.Matcher = void 0; var numeric_range_js_1 = require_numeric_range(); var parse_class_js_1 = require_parse_class(); var MATCH2 = { t: "match", id: 0 }; var extTypes2 = "!?+*@"; var lit2 = (ch) => ({ t: "lit", ch }); var reEscape2 = (s2) => s2.replace(/[\\^$.*+?()[\]{}|/]/g, "\\$&"); var newFoldRe2 = (s2) => new RegExp(`^${reEscape2(s2)}$`, "iu"); var foldCache2 = /* @__PURE__ */ new Map(); var foldRe2 = (ch) => { let re = foldCache2.get(ch); if (!re) { re = newFoldRe2(ch); if (foldCache2.size >= 1e3) foldCache2.clear(); foldCache2.set(ch, re); } return re; }; var litMatch2 = (l2, c2) => { if (c2 === l2.ch) return true; if (!l2.re) return false; const code = c2.charCodeAt(0); if (code >= 128) return l2.re.test(c2); const ascii = l2.ascii ??= new Uint8Array(128); ascii[code] ||= l2.re.test(c2) ? 1 : 2; return ascii[code] === 1; }; var tokenize2 = (p2, nocase, noext, form, mark) => { const toks = []; for (let i2 = 0; i2 < p2.length; ) { const c2 = String.fromCodePoint(p2.codePointAt(i2)); if (mark) { const m2 = c2 === "\\" && p2.startsWith(mark, i2 + 1) ? 1 : 0; if (m2 || c2 === mark) { const start = i2 + m2 + mark.length; const end = p2.indexOf(mark, start); const r2 = /^(-?\d+)\.\.(-?\d+)$/.exec(p2.slice(start, end)); const alts = end !== -1 && r2 && (0, numeric_range_js_1.numericRange)(r2[1], r2[2]); if (alts) { toks.push({ t: "ext", type: "@", alts }); i2 = end + mark.length; continue; } } } if (c2 === "\\") { const e2 = p2.codePointAt(i2 + 1); const ch = e2 === void 0 ? c2 : String.fromCodePoint(e2); toks.push(lit2(ch)); i2 += 1 + ch.length; continue; } if (c2 === "[") { const [re, consumed] = (0, parse_class_js_1.parseClass)(p2, i2, nocase, form); if (consumed) { toks.push({ t: "class", re }); i2 += consumed; continue; } } if (!noext && extTypes2.includes(c2) && p2[i2 + 1] === "(") { toks.push({ t: "open", type: c2 }); i2 += 2; continue; } toks.push(!noext && c2 === "|" ? { t: "bar" } : !noext && c2 === ")" ? { t: "close" } : c2 === "*" ? { t: "star" } : c2 === "?" ? { t: "any" } : lit2(c2)); i2 += c2.length; } return toks; }; var pair2 = (toks) => { const pairs = /* @__PURE__ */ new Map(); const stack = []; toks.forEach((tok, i2) => { if (tok.t === "open") stack.push(i2); else if (tok.t === "close" && stack.length) pairs.set(stack.pop(), i2); }); return pairs; }; var build2 = (toks, pairs, start, end, top) => { let seq = []; const alts = [seq]; for (let i2 = start; i2 < end; i2++) { const tok = toks[i2]; const close = pairs.get(i2); if (tok.t === "open" && close !== void 0) { const sub = build2(toks, pairs, i2 + 1, close, false); seq.push({ t: "ext", type: tok.type, alts: sub }); i2 = close; } else if (tok.t === "bar" && !top) { alts.push(seq = []); } else if (tok.t === "open") { seq.push(lit2(tok.type), lit2("(")); } else if (tok.t === "bar") { seq.push(lit2("|")); } else if (tok.t === "close") { seq.push(lit2(")")); } else { seq.push(tok); } } return alts; }; var normalize2 = (items, form) => { const out = []; let run = ""; const flush = () => { for (const ch of run.normalize(form)) out.push(lit2(ch)); run = ""; }; for (const it of items) { if (it.t === "lit") { run += it.ch; continue; } flush(); out.push(it.t === "ext" ? { ...it, alts: it.alts.map((a2) => normalize2(a2, form)) } : it); } flush(); return out; }; var compile2 = (items, nocase) => { let id2 = 1; const split = (out) => ({ t: "split", id: id2++, out }); const seq = (items2, next) => items2.reduceRight((next2, it) => item(it, next2), next); const item = (it, next) => { switch (it.t) { case "lit": const re = nocase ? foldRe2(it.ch) : void 0; return { t: "lit", id: id2++, ch: it.ch, re, next }; case "any": case "star": return { t: it.t, id: id2++, next }; case "class": return { t: "class", id: id2++, re: it.re, next }; } const alts = (next2) => it.alts.map((a2) => seq(a2, next2)); switch (it.type) { case "@": return split(alts(next)); case "?": return split([next, ...alts(next)]); case "!": return { t: "neg", id: id2++, sub: split(alts(MATCH2)), next }; } const after = split([]); const entry = split(alts(after)); after.out.push(next, entry); return it.type === "*" ? after : entry; }; const start = seq(items, MATCH2); return [start, id2]; }; var show2 = (start) => { const lines = []; const seen = /* @__PURE__ */ new Set(); const ref = (n2) => n2.t === "match" ? "match" : String(n2.id); const walk2 = (n2, indent) => { if (n2.t === "match" || seen.has(n2)) return; seen.add(n2); const line = (desc) => lines.push(`${indent}${n2.id}: ${desc}`); switch (n2.t) { case "split": line(`split -> ${n2.out.map(ref).join(", ")}`); for (const o2 of n2.out) walk2(o2, indent); return; case "neg": line(`!(${ref(n2.sub)}) -> ${ref(n2.next)}`); walk2(n2.sub, indent + " "); return walk2(n2.next, indent); case "lit": line(`${JSON.stringify(n2.ch)} -> ${ref(n2.next)}`); break; case "class": line(`${n2.re} -> ${ref(n2.next)}`); break; default: line(`${n2.t === "any" ? "?" : "*"} -> ${ref(n2.next)}`); } walk2(n2.next, indent); }; walk2(start, ""); return [`start -> ${ref(start)}`, ...lines].join("\n"); }; var State3 = class { // set by the Sim, to mark the nodes that this state has gen; threads = []; match = false; runs = []; // the sorted ids of the threads, with 0 for a match, once the // state is done ids = []; constructor(gen) { this.gen = gen; } // no threads, so nothing more can match get dead() { return !this.threads.length && !this.match && !this.runs.length; } }; var sameState2 = (a2, b2) => { if (a2.ids.length !== b2.ids.length) return false; if (a2.runs.length !== b2.runs.length) return false; if (a2.ids.some((id2, i2) => id2 !== b2.ids[i2])) return false; return a2.runs.every((r2) => b2.runs.some((o2) => o2.neg === r2.neg && sameState2(o2.state, r2.state))); }; var marks2 = (size) => ({ has: new Float64Array(size), seen: new Float64Array(size), gen: 0 }); var Sim2 = class { // `.` and `..` only match literal dots, even with `dot:true` dots; // the string starts with `.`, and `dot:true` is not set dotStart; #marks; constructor(dots, dotStart, marks3) { this.dots = dots; this.dotStart = dotStart; this.#marks = marks3; } state() { return new State3(++this.#marks.gen); } // sort the ids of a state, once it has all of its threads done(state) { state.ids = state.threads.map((n2) => n2.id).sort((a2, b2) => a2 - b2); if (state.match) state.ids.unshift(MATCH2.id); return state; } // true the first time that the state walks through the node, so // that loops in the graph stop #visit(state, node) { const { seen } = this.#marks; if (seen[node.id] === state.gen) return false; seen[node.id] = state.gen; return true; } #addThread(state, node) { const { has: has2 } = this.#marks; if (has2[node.id] === state.gen) return false; has2[node.id] = state.gen; state.threads.push(node); return true; } // wildcards only match a leading dot if `dot:true`. In a negated // sub-pattern, this does not apply, because the negation itself // can not match a leading dot. restricted(i2, top) { return top && (this.dots || this.dotStart && i2 === 0); } add(state, node, i2, top) { switch (node.t) { case "split": if (!this.#visit(state, node)) return; for (const o2 of node.out) this.add(state, o2, i2, top); return; case "neg": if (!this.#visit(state, node)) return; const sub = this.state(); this.add(sub, node.sub, i2, false); this.done(sub); return this.addRun(state, { t: "run", neg: node, state: sub }, i2, top); case "star": if (this.restricted(i2, top)) return; if (this.#addThread(state, node)) this.add(state, node.next, i2, top); return; case "match": state.match = true; return; default: this.#addThread(state, node); } } addRun(state, run, i2, top) { for (const r2 of state.runs) { if (r2.neg === run.neg && sameState2(r2.state, run.state)) return; } state.runs.push(run); if (!run.state.match) { this.add(state, run.neg.next, i2, top); } } // the threads after char `c`, at index `i` step(state, c2, i2, top) { const next = this.state(); for (const th of state.threads) { switch (th.t) { case "lit": if (litMatch2(th, c2)) { this.add(next, th.next, i2 + 1, top); } break; case "any": if (!this.restricted(i2, top)) this.add(next, th.next, i2 + 1, top); break; case "class": if (!this.restricted(i2, top) && th.re.test(c2)) { this.add(next, th.next, i2 + 1, top); } break; case "star": if (!this.restricted(i2, top)) this.add(next, th, i2 + 1, top); } } if (!this.restricted(i2, top)) { for (const run of state.runs) { if (run.state.dead) { this.addRun(next, run, i2 + 1, top); continue; } const sub = this.step(run.state, c2, i2, false); this.addRun(next, { t: "run", neg: run.neg, state: sub }, i2 + 1, top); } } return this.done(next); } }; var stateKey2 = (state) => { const ids = state.ids.join(); if (!state.runs.length) return ids; const runs = state.runs.map((r2) => `${r2.neg.id}(${stateKey2(r2.state)})`); return `${ids}|${runs.sort().join("|")}`; }; var DFA_BUDGET2 = 1 << 18; var Dfa2 = class { #start; #states = /* @__PURE__ */ new Map(); #size = 0; #plain; #dotStart; #sim; #dotSim; constructor(start, marks3) { this.#start = start; this.#sim = new Sim2(false, false, marks3); this.#dotSim = new Sim2(false, true, marks3); } #make(state) { return { state, match: state.match, dead: state.dead, next: /* @__PURE__ */ new Map() }; } #intern(state) { const key = stateKey2(state); const found = this.#states.get(key); if (found) return found; if (this.#size > DFA_BUDGET2) this.#clear(); const d2 = this.#make(state); this.#states.set(key, d2); this.#size += key.length + 1; return d2; } #clear() { this.#states.clear(); this.#size = 0; this.#plain = void 0; this.#dotStart = void 0; } start(dotStart) { if (dotStart) { if (this.#dotStart) return this.#dotStart; const state2 = this.#dotSim.state(); this.#dotSim.add(state2, this.#start, 0, true); return this.#dotStart = this.#make(this.#dotSim.done(state2)); } if (this.#plain) return this.#plain; const state = this.#sim.state(); this.#sim.add(state, this.#start, 0, true); return this.#plain = this.#intern(this.#sim.done(state)); } // the next state, after a miss in `d.ascii` next(d2, c2) { const code = c2.charCodeAt(0); const found = code < 128 ? void 0 : d2.next.get(c2); if (found) return found; const n2 = d2 === this.#dotStart ? this.#intern(this.#dotSim.step(d2.state, c2, 0, true)) : this.#intern(this.#sim.step(d2.state, c2, 1, true)); if (code < 128) { if (!d2.ascii) { d2.ascii = new Array(128); this.#size += 128; } d2.ascii[code] = n2; } else { d2.next.set(c2, n2); } this.#size++; return n2; } }; var linear2 = (start) => { const nodes = []; for (let n2 = start; n2.t !== "match"; n2 = n2.next) { if (n2.t === "split" || n2.t === "neg") return void 0; nodes.push(n2); } return nodes; }; var testLinear2 = (nodes, chars, start, end) => { let ni = 0; let ci = start; let starNi = -1; let starCi = 0; while (ci < end) { const n2 = nodes[ni]; if (n2?.t === "star") { starNi = ni++; starCi = ci; continue; } const c2 = chars[ci]; if (n2 && (n2.t === "any" || n2.t === "lit" && litMatch2(n2, c2) || n2.t === "class" && n2.re.test(c2))) { ni++; ci++; continue; } if (starNi === -1) return false; ni = starNi + 1; ci = ++starCi; } while (nodes[ni]?.t === "star") ni++; return ni === nodes.length; }; var lengths2 = (items) => { let min = 0; let max = 0; for (const it of items) { const [lo, hi] = itemLengths2(it); min += lo; max += hi; } return [min, max]; }; var itemLengths2 = (it) => { if (it.t === "star") return [0, Infinity]; if (it.t !== "ext") return [1, 1]; if (it.type === "!") return [0, Infinity]; const alts = it.alts.map(lengths2); const min = Math.min(...alts.map((a2) => a2[0])); const max = Math.max(...alts.map((a2) => a2[1])); const loop = max === 0 ? 0 : Infinity; return it.type === "@" ? [min, max] : it.type === "?" ? [0, max] : it.type === "*" ? [0, loop] : [min, loop]; }; var hasAffix2 = (lits, chars, start) => { for (let j = 0; j < lits.length; j++) { if (!litMatch2(lits[j], chars[start + j])) return false; } return true; }; var slashOrSurrogate2 = /[/\ud800-\udfff]/; var surrogate2 = /[\ud800-\udfff]/; var codePoints2 = (s2) => surrogate2.test(s2) ? [...s2] : s2; var noSlash2 = (s2) => { if (s2.includes("/")) { throw new Error("can only match a single path portion, got: " + s2); } }; var Matcher2 = class { pattern; options; #start; // the number of node ids #size; #marks; // the Sim for strings that are only `.` or `..` #dotsSim; // the string to compare, if the pattern has no magic. With // `nocase:true`, the RegExp that folds case is made when it is // first used. #literal; #literalFold = false; #literalRe; // the nodes between the prefix and suffix, if the graph is a // single chain #linear; // the linear nodes are only `*` and `?`, so the length bounds and // the prefix and suffix decide the match #wild = false; // the least and most chars that a match can have #min = 0; #max = Infinity; // the literals that a match must start and end with. Each one // matches exactly one char, and they are distinct items in the // pattern, so a string that does not have them can not match. #prefix = []; #suffix = []; // the prefix and suffix as strings, if they do not fold case #prefixStr; #suffixStr; // there is a prefix or suffix to check #affix = false; #dfa; #form; constructor(pattern, options3 = {}) { if (pattern.includes("/")) { throw new Error("can only match a single path portion, got pattern: " + pattern); } this.pattern = pattern; this.options = options3; const { nocase = false, noext = false, normalize: n2 } = options3; this.#form = n2 === true ? "NFC" : n2 || void 0; const literal2 = /^[?*+@]\(\)$/.test(pattern); const toks = tokenize2(pattern, nocase, noext || literal2, this.#form, options3.rangeMark); let [items] = build2(toks, pair2(toks), 0, toks.length, true); if (this.#form) items = normalize2(items, this.#form); const [start, size] = compile2(items, nocase); this.#start = start; this.#size = size; if (items.every((it) => it.t === "lit")) { this.#literal = items.map((it) => it.ch).join(""); this.#literalFold = nocase; } else { const lit3 = (it) => it.t !== "lit" ? void 0 : nocase ? { ch: it.ch, re: foldRe2(it.ch) } : { ch: it.ch }; for (const it of items) { const l2 = lit3(it); if (!l2) break; this.#prefix.push(l2); } for (let j = items.length - 1; j >= 0; j--) { const l2 = lit3(items[j]); if (!l2) break; this.#suffix.unshift(l2); } this.#affix = !!(this.#prefix.length || this.#suffix.length); if (!nocase) { this.#prefixStr = this.#prefix.map((l2) => l2.ch).join(""); this.#suffixStr = this.#suffix.map((l2) => l2.ch).join(""); } this.#linear = linear2(this.#start)?.slice(this.#prefix.length, -this.#suffix.length || void 0); this.#wild = !!this.#linear?.every((n3) => n3.t === "star" || n3.t === "any"); const [min, max] = lengths2(items); this.#min = min; this.#max = max; } } test(s2) { if (this.#form) { noSlash2(s2); return this.#test(s2.normalize(this.#form)); } if (slashOrSurrogate2.test(s2)) { noSlash2(s2); return this.#test(s2, [...s2]); } return this.#test(s2, s2); } /** * The same as {@link Matcher#test}, but the string is not checked * for `/` chars, so the result for a string that has one is not * defined. Only use it for a string that is known to be one path * portion, such as a part of a path that was split on `/`. It can * be faster, because some patterns do not need to look at each char * of the string. */ testUnchecked(s2) { return this.#test(this.#form ? s2.normalize(this.#form) : s2); } // Test a string that has no `/`. `chars` indexes it by code point. // If it is not given, it is only found if a step needs it. #test(s2, chars) { if (this.#literal !== void 0) { return this.#literalFold ? (this.#literalRe ??= newFoldRe2(this.#literal)).test(s2) : s2 === this.#literal; } const min = this.#min; const max = this.#max; if (chars === void 0) { const most = s2.length; const least = most + 1 >> 1; if (most < min || least > max) return false; if (least < min || most > max) chars = codePoints2(s2); } if (chars !== void 0 && (chars.length < min || chars.length > max)) { return false; } const prefix2 = this.#prefix.length; if (this.#affix) { if (this.#prefixStr !== void 0 && this.#suffixStr !== void 0) { if (!s2.startsWith(this.#prefixStr) || !s2.endsWith(this.#suffixStr)) { return false; } } else { chars ??= codePoints2(s2); const end = chars.length - this.#suffix.length; if (!hasAffix2(this.#prefix, chars, 0) || !hasAffix2(this.#suffix, chars, end)) { return false; } } } const dotStart = !this.options.dot && s2.startsWith("."); if (this.#linear) { if (s2 === "." || s2 === "..") return false; if (dotStart && !prefix2) return false; if (this.#wild) return true; chars ??= codePoints2(s2); const end = chars.length - this.#suffix.length; return testLinear2(this.#linear, chars, prefix2, end); } chars ??= codePoints2(s2); if (s2 === "." || s2 === "..") { this.#marks ??= marks2(this.#size); const sim = this.#dotsSim ??= new Sim2(true, false, this.#marks); const start = sim.state(); sim.add(start, this.#start, 0, true); let state = sim.done(start); for (let i2 = 0; i2 < chars.length; i2++) { state = sim.step(state, chars[i2], i2, true); } return state.match; } this.#marks ??= marks2(this.#size); const dfa = this.#dfa ??= new Dfa2(this.#start, this.#marks); let d2 = dfa.start(dotStart); const str = chars === s2; for (let i2 = 0; i2 < chars.length; i2++) { if (d2.dead) return false; const code = str ? s2.charCodeAt(i2) : chars[i2].charCodeAt(0); d2 = d2.ascii?.[code] ?? dfa.next(d2, chars[i2]); } return d2.match; } /** a readable listing of the state machine */ toString() { return show2(this.#start); } }; exports2.Matcher = Matcher2; } }); // node_modules/minimatch/dist/commonjs/assert-valid-pattern.js var require_assert_valid_pattern = __commonJS({ "node_modules/minimatch/dist/commonjs/assert-valid-pattern.js"(exports2) { "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); exports2.assertValidPattern = void 0; var MAX_PATTERN_LENGTH2 = 1024 * 64; var assertValidPattern2 = (pattern) => { if (typeof pattern !== "string") { throw new TypeError("invalid pattern"); } if (pattern.length > MAX_PATTERN_LENGTH2) { throw new TypeError("pattern is too long"); } }; exports2.assertValidPattern = assertValidPattern2; } }); // node_modules/minimatch/dist/commonjs/escape.js var require_escape = __commonJS({ "node_modules/minimatch/dist/commonjs/escape.js"(exports2) { "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); exports2.escape = void 0; var escape3 = (s2, { windowsPathsNoEscape = false, magicalBraces = false } = {}) => { const e2 = magicalBraces ? windowsPathsNoEscape ? s2.replace(/[?*()[\]{}]/g, "[$&]") : s2.replace(/[?*()[\]\\{}]/g, "\\$&") : windowsPathsNoEscape ? s2.replace(/[?*()[\]]/g, "[$&]") : s2.replace(/[?*()[\]\\]/g, "\\$&"); const c2 = e2.charAt(0); if (c2 === "#") { return (windowsPathsNoEscape ? "[#]" : "\\#") + e2.slice(1); } if (c2 === "!") { return (windowsPathsNoEscape ? "@(!)" : "\\!") + e2.slice(1); } return e2; }; exports2.escape = escape3; } }); // node_modules/minimatch/dist/commonjs/unescape.js var require_unescape = __commonJS({ "node_modules/minimatch/dist/commonjs/unescape.js"(exports2) { "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); exports2.unescape = void 0; var unescape4 = (s2, { windowsPathsNoEscape = false, magicalBraces = true } = {}) => { if (windowsPathsNoEscape && s2.startsWith("@(!)")) { return "!" + (0, exports2.unescape)(s2.slice(4), { windowsPathsNoEscape, magicalBraces }); } if (magicalBraces) { return windowsPathsNoEscape ? s2.replace(/\[([^/\\])\]/g, "$1") : s2.replace(/((?!\\).|^)\[([^/\\])\]/g, "$1$2").replace(/\\([^/])/g, "$1"); } return windowsPathsNoEscape ? s2.replace(/\[([^/\\{}])\]/g, "$1") : s2.replace(/((?!\\).|^)\[([^/\\{}])\]/g, "$1$2").replace(/\\([^/{}])/g, "$1"); }; exports2.unescape = unescape4; } }); // node_modules/minimatch/dist/commonjs/index.js var require_commonjs4 = __commonJS({ "node_modules/minimatch/dist/commonjs/index.js"(exports2) { "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); exports2.unescape = exports2.escape = exports2.Minimatch = exports2.match = exports2.braceExpand = exports2.defaults = exports2.filter = exports2.GLOBSTAR = exports2.sep = exports2.minimatch = void 0; var brace_expansion_1 = require_commonjs2(); var nonrecursive_glob_match_1 = require_commonjs3(); var assert_valid_pattern_js_1 = require_assert_valid_pattern(); var escape_js_1 = require_escape(); var unescape_js_1 = require_unescape(); var DEFAULT_BRACE_EXPAND_MAX2 = 1e5; var DEFAULT_GLOB_STAR_RECURSION_MAX2 = 200; var AWE_KEY2 = "allowWindowsEscape"; var minimatch3 = (p2, pattern, options3) => { (0, assert_valid_pattern_js_1.assertValidPattern)(pattern); if (!options3?.nocomment && pattern.charAt(0) === "#") { return false; } return cachedMinimatch2(pattern, options3).match(p2); }; exports2.minimatch = minimatch3; var cache2 = /* @__PURE__ */ new Map(); var oldCache2 = /* @__PURE__ */ new Map(); var cacheSize2 = 0; var cacheTotalWeight2 = 0; var cacheMax2 = 256; var cacheMaxWeight2 = 1 << 15; var cacheMaxEntryWeight2 = 1 << 12; var cacheWeight2 = (mm) => { let w2 = mm.pattern.length; for (const s2 of mm.globSet) { w2 += s2.length + 1; if (w2 > cacheMaxEntryWeight2) break; } return w2; }; var tri2 = (v2) => v2 === void 0 ? 0 : v2 ? 2 : 1; var booleanWeights2 = new Map(Object.keys({ nobrace: 0, nocomment: 0, nonegate: 0, noglobstar: 0, noext: 0, nonull: 0, partial: 0, dot: 0, nocase: 0, nocaseMagicOnly: 0, magicalBraces: 0, matchBase: 0, flipNegate: 0, preserveMultipleSlashes: 0, windowsNoMagicRoot: 0 }).map((k, i2) => [k, 24 * 3 ** i2])); var optionsKey2 = (o2) => { let n2 = 0; let wpe = false; for (const k in o2) { const v2 = o2[k]; switch (k) { // the same test as the Minimatch constructor case "windowsPathsNoEscape": if (v2) wpe = true; break; case AWE_KEY2: if (v2 === false) wpe = true; break; case "platform": { const p2 = v2 || defaultPlatform2; if (p2 === defaultPlatform2) break; if (p2 === "darwin") n2 += 3; else if (p2 === "win32") n2 += 6; else if (p2 === "linux") n2 += 9; else return JSON.stringify(o2); break; } case "optimizationLevel": if (v2 === void 0) break; n2 += v2 >= 2 ? 1 : v2 >= 1 ? 0 : 2; break; case "braceExpandMax": if (v2 !== void 0 && v2 !== DEFAULT_BRACE_EXPAND_MAX2) { return JSON.stringify(o2); } break; case "maxGlobstarRecursion": if (v2 !== void 0 && v2 !== DEFAULT_GLOB_STAR_RECURSION_MAX2) { return JSON.stringify(o2); } break; case "normalize": if (v2 !== void 0) return JSON.stringify(o2); break; default: n2 += (booleanWeights2.get(k) ?? 0) * tri2(v2); } } return wpe ? n2 + 12 : n2; }; var copyOptions2 = (o2) => { const copy = {}; for (const k in o2) copy[k] = o2[k]; return copy; }; var cachedMinimatch2 = (pattern, options3) => { const key = options3 ? optionsKey2(options3) : 0; let mm = cache2.get(key)?.get(pattern); if (mm) return mm; mm = oldCache2.get(key)?.get(pattern) ?? new Minimatch2(pattern, copyOptions2(options3)); const weight = cacheWeight2(mm); if (weight > cacheMaxEntryWeight2) return mm; if (cacheSize2 >= cacheMax2 || cacheTotalWeight2 + weight > cacheMaxWeight2) { oldCache2 = cache2; cache2 = /* @__PURE__ */ new Map(); cacheSize2 = 0; cacheTotalWeight2 = 0; } let byPattern = cache2.get(key); if (!byPattern) cache2.set(key, byPattern = /* @__PURE__ */ new Map()); byPattern.set(pattern, mm); cacheSize2++; cacheTotalWeight2 += weight; return mm; }; var defaultPlatform2 = typeof process === "object" && process ? process.env?.__MINIMATCH_TESTING_PLATFORM__ || process.platform : "posix"; var path4 = { win32: { sep: "\\" }, posix: { sep: "/" } }; exports2.sep = defaultPlatform2 === "win32" ? path4.win32.sep : path4.posix.sep; exports2.minimatch.sep = exports2.sep; exports2.GLOBSTAR = /* @__PURE__ */ Symbol("globstar **"); exports2.minimatch.GLOBSTAR = exports2.GLOBSTAR; var filter3 = (pattern, options3) => { let mm; return (p2) => (mm ??= cachedMinimatch2(pattern, options3)).match(p2); }; exports2.filter = filter3; exports2.minimatch.filter = exports2.filter; var ext2 = (a2, b2 = {}) => Object.assign({}, a2, b2); var defaults2 = (def) => { if (!def || typeof def !== "object" || !Object.keys(def).length) { return exports2.minimatch; } const orig = exports2.minimatch; const m2 = (p2, pattern, options3 = {}) => orig(p2, pattern, ext2(def, options3)); return Object.assign(m2, { Minimatch: class Minimatch extends orig.Minimatch { constructor(pattern, options3 = {}) { super(pattern, ext2(def, options3)); } static defaults(options3) { return orig.defaults(ext2(def, options3)).Minimatch; } }, unescape: (s2, options3 = {}) => orig.unescape(s2, ext2(def, options3)), escape: (s2, options3 = {}) => orig.escape(s2, ext2(def, options3)), filter: (pattern, options3 = {}) => orig.filter(pattern, ext2(def, options3)), defaults: (options3) => orig.defaults(ext2(def, options3)), braceExpand: (pattern, options3 = {}) => orig.braceExpand(pattern, ext2(def, options3)), match: (list2, pattern, options3 = {}) => orig.match(list2, pattern, ext2(def, options3)), sep: orig.sep, GLOBSTAR: exports2.GLOBSTAR }); }; exports2.defaults = defaults2; exports2.minimatch.defaults = exports2.defaults; var braceExpand2 = (pattern, options3 = {}) => { (0, assert_valid_pattern_js_1.assertValidPattern)(pattern); if (options3.nobrace || !/\{(?:(?!\{).)*\}/.test(pattern)) { return [pattern]; } let p2 = pattern.replace(/\\\\/g, "\\\\\\\\"); if (options3.windowsPathsNoEscape || options3[AWE_KEY2] === false) { p2 = p2.replace(/\[([{}])\]/g, "[\\$1]"); } return (0, brace_expansion_1.expand)(p2, { max: options3.braceExpandMax }); }; exports2.braceExpand = braceExpand2; exports2.minimatch.braceExpand = exports2.braceExpand; var RANGE_MIN2 = 100; var rangeRe2 = /(? { const stack = []; for (let i2 = 0; i2 < portion.length; i2++) { const c2 = portion.charAt(i2); if (c2 === "\\") { i2++; } else if (c2 === mark) { if (stack.some((t2) => t2 !== "@" && t2 !== "?")) return true; } else if (portion.charAt(i2 + 1) === "(" && "!?+*@".includes(c2)) { stack.push(c2); i2++; } else if (c2 === ")") { stack.pop(); } } return false; }; var match2 = (list2, pattern, options3 = {}) => { const mm = new Minimatch2(pattern, options3); list2 = list2.filter((f2) => mm.match(f2)); if (mm.options.nonull && !list2.length) { list2.push(pattern); } return list2; }; exports2.match = match2; exports2.minimatch.match = exports2.match; var globMagic2 = /[?*]|[+@!]\(.*?\)|\[|\]/; var classEnd2 = (pattern, start) => { let i2 = start + 1; if (pattern.charAt(i2) === "!" || pattern.charAt(i2) === "^") i2++; let sawStart = false; for (; i2 < pattern.length; i2++) { const c2 = pattern.charAt(i2); if (c2 === "]" && sawStart) return i2; sawStart = true; if (c2 === "\\") i2++; } return -1; }; var literal2 = (pattern, noext) => { if (!noext && (pattern === "+()" || pattern === "@()")) return pattern; let lit2 = ""; for (let i2 = 0; i2 < pattern.length; i2++) { const c2 = pattern.charAt(i2); if (c2 === "\\") { lit2 += pattern.charAt(++i2) || c2; } else if (c2 === "*" || c2 === "?") { return void 0; } else if (c2 === "[") { const close = classEnd2(pattern, i2); if (close === -1) { lit2 += c2; continue; } let body = pattern.slice(i2 + 1, close); if (body.startsWith("\\")) body = body.slice(1); if ([...body].length !== 1 || "!^".includes(pattern.charAt(i2 + 1))) { return void 0; } lit2 += body; i2 = close; } else if (!noext && "+@!".includes(c2) && pattern.charAt(i2 + 1) === "(" && pattern.includes(")", i2 + 2)) { return void 0; } else { lit2 += c2; } } return lit2; }; var MAX_EXTGLOBS2 = 256; var extglobCount2 = (pattern) => { let n2 = 0; for (let i2 = 0; i2 < pattern.length - 1; i2++) { const c2 = pattern.charAt(i2); if (c2 === "\\") { i2++; } else if ("+@!?*".includes(c2) && pattern.charAt(i2 + 1) === "(") { n2++; i2++; } } return n2; }; var assertValidExtglobs2 = (pattern) => { if (extglobCount2(pattern) > MAX_EXTGLOBS2) { throw new TypeError("pattern has too many extglobs"); } }; var extSafe2 = (pattern) => { if (/^[?*+@]\(\)$/.test(pattern) || pattern.includes("[:")) return false; let depth = 0; for (let i2 = 0; i2 < pattern.length; i2++) { const c2 = pattern.charAt(i2); if (c2 === "\\") { if (++i2 === pattern.length) return false; } else if (c2 === "[") { const close = classEnd2(pattern, i2); if (close !== -1) i2 = close; } else if ("+@!?*".includes(c2) && pattern.charAt(i2 + 1) === "(") { depth++; i2++; } else if (c2 === ")") { if (!depth--) return false; } else if (c2 === "|" && !depth) { return false; } } return !depth; }; var lastSplit2; var lastChecked2; var portionMatch2 = (p2, f2) => typeof p2 === "string" ? f2 === p2 : f2 !== "" && p2.testUnchecked(f2); var endIndex2 = (p2, last, lastStart, prev, prevStart) => portionMatch2(p2, last) ? lastStart : prev !== void 0 && portionMatch2(p2, prev) ? prevStart : -1; var isDots2 = (p2) => p2 === "." || p2 === ".."; var isDrive2 = (p2) => typeof p2 === "string" && /^[a-z]:$/i.test(p2); var isLongUNC2 = (p2) => typeof p2 === "string" && /^unc$/i.test(p2); var uncHost2 = (p2) => { if (p2[0] !== "" || p2[1] !== "") return -1; const h2 = p2[2] !== "?" ? 2 : isLongUNC2(p2[3]) ? 4 : -1; const host = p2[h2]; const share = p2[h2 + 1]; return h2 !== -1 && host !== void 0 && host !== "" && host !== exports2.GLOBSTAR && share !== void 0 && share !== "" && share !== exports2.GLOBSTAR ? h2 : -1; }; var walkable2 = (p2, dot) => !isDots2(p2) && (dot || !p2.startsWith(".")); var dotPortion2 = (f2, start, end, dot, sep2) => { for (let k = start; k < end; ) { if (f2.charCodeAt(k) === 46) { if (!dot) return true; const n2 = f2.charCodeAt(k + 1) === 46 ? k + 2 : k + 1; if (n2 >= end || isSep2(f2.charCodeAt(n2), sep2)) return true; } const s2 = nextSep2(f2, k, sep2); if (s2 === -1) return false; k = s2 + 1; while (k < end && isSep2(f2.charCodeAt(k), sep2)) k++; } return false; }; var isSep2 = (c2, sep2) => sep2 === "/" ? c2 === 47 : sep2 === "\\" ? c2 === 92 : c2 === 47 || c2 === 92; var nextSep2 = (f2, from, sep2) => { if (sep2 !== "both") return f2.indexOf(sep2, from); const s2 = f2.indexOf("/", from); const b2 = f2.indexOf("\\", from); return s2 === -1 ? b2 : b2 === -1 ? s2 : Math.min(s2, b2); }; var lastSep2 = (f2, from, sep2) => sep2 !== "both" ? f2.lastIndexOf(sep2, from) : Math.max(f2.lastIndexOf("/", from), f2.lastIndexOf("\\", from)); var PENDING2 = {}; var Minimatch2 = class { options; set; pattern; windowsPathsNoEscape; nonegate; negate; comment; empty; preserveMultipleSlashes; partial; globSet; globParts; nocase; isWindows; platform; windowsNoMagicRoot; maxGlobstarRecursion; // the path can be checked against the last portion, and the string // portions, of each row before it is split. See #canMatch. #endCheck; #literalCheck; // level 2 resolves `.` and `..` portions in the path #level2; // the unicode normalization form, if any #form; // the string portions of each row in the set #literals = []; // the rows that #canMatch can match without splitting the path #shapes = []; // the rows whose last portion can be checked against the path's #endRows = []; // brace expansion can make the same portion in many rows, so they // share one Matcher, and the states that it caches #matchers = /* @__PURE__ */ new Map(); // parse() returns PENDING in place of a Matcher #pending = false; // the char that marks numeric ranges in globSet, if any #rangeMark; // the GlobstarParts of each pattern row, by start index and partial #globstarParts = /* @__PURE__ */ new WeakMap(); constructor(pattern, options3 = {}) { (0, assert_valid_pattern_js_1.assertValidPattern)(pattern); options3 = options3 || {}; this.options = options3; this.maxGlobstarRecursion = options3.maxGlobstarRecursion ?? DEFAULT_GLOB_STAR_RECURSION_MAX2; this.pattern = pattern; this.platform = options3.platform || defaultPlatform2; this.isWindows = this.platform === "win32"; this.windowsPathsNoEscape = !!options3.windowsPathsNoEscape || options3[AWE_KEY2] === false; if (this.windowsPathsNoEscape) { this.pattern = this.pattern.replace(/\\/g, "/"); } this.preserveMultipleSlashes = !!options3.preserveMultipleSlashes; this.negate = false; this.nonegate = !!options3.nonegate; this.comment = false; this.empty = false; this.partial = !!options3.partial; this.nocase = !!this.options.nocase; this.windowsNoMagicRoot = options3.windowsNoMagicRoot !== void 0 ? options3.windowsNoMagicRoot : !!(this.isWindows && this.nocase); this.globSet = []; this.globParts = []; this.set = []; this.#endCheck = !this.preserveMultipleSlashes; this.#level2 = (options3.optimizationLevel ?? 1) >= 2; const n2 = options3.normalize; this.#form = n2 === true ? "NFC" : n2 || void 0; this.make(); const drives = this.set.map((row) => this.#rootIndex(row)); this.#endRows = this.set.map((row, r2) => this.#endCheck && row.length - 1 > drives[r2]); this.#literals = this.set.map((row, r2) => { const end = this.#endRows[r2] ? row.length - 1 : row.length; const lits = row.slice(drives[r2] + 1, end).filter((p2) => typeof p2 === "string" && !!p2); return [...new Set(lits)]; }); this.#literalCheck = this.#literals.some((l2) => l2.length); this.#shapes = this.set.map((row, r2) => { const [p0, p1, p2] = row; if (this.#endRows[r2] && row.length === 2) { if (p0 === exports2.GLOBSTAR && p1 !== exports2.GLOBSTAR) return "tail"; } if (this.#endRows[r2] && options3.matchBase && row.length === 1 && p0 !== exports2.GLOBSTAR && p0 !== "") { return "base"; } if (!this.#endCheck || drives[r2] !== -1) return void 0; if (row.length === 3 && p0 === exports2.GLOBSTAR && p2 === exports2.GLOBSTAR && p1 !== exports2.GLOBSTAR && p1 !== "" && // the portion between is only matched below this limit this.maxGlobstarRecursion > 0) { return "mid"; } if (row.length === 2 && p1 === exports2.GLOBSTAR && p0 !== exports2.GLOBSTAR && p0 !== "") { return "head"; } return void 0; }); } // a string portion of a pattern, normalized if the option is set #norm(p2) { return this.#form ? p2.normalize(this.#form) : p2; } // On Windows, the index of the last root portion of a row, as // #matchRow finds it: 0 for `c:/...`, 3 for `//?/c:/...` and // `//host/share/...`, and 5 for `//?/UNC/host/share/...`. Otherwise // -1. #rootIndex(row) { if (!this.isWindows) return -1; if (isDrive2(row[0])) return 0; const uncDrive = row[0] === "" && row[1] === "" && row[2] === "?" && isDrive2(row[3]); if (uncDrive) return 3; const h2 = uncHost2(row); return h2 === -1 ? -1 : h2 + 1; } hasMagic() { if (this.options.magicalBraces && this.set.length > 1) { return true; } for (const pattern of this.set) { for (const part of pattern) { if (typeof part !== "string") return true; } } return false; } make() { const pattern = this.pattern; const options3 = this.options; if (!options3.nocomment && pattern.charAt(0) === "#") { this.comment = true; return; } if (!pattern) { this.empty = true; return; } this.parseNegate(); this.globSet = [...new Set(this.#expandBraces())]; const rawGlobParts = this.globSet.map((s2) => this.#slashSplit(s2)); this.globParts = this.preprocess(rawGlobParts); this.#pending = true; let set = this.globParts.map((s2, _2, __) => { if (this.isWindows && this.windowsNoMagicRoot) { const n2 = s2[2] === "?" && isLongUNC2(s2[3]) ? 6 : 4; const isUNC = s2[0] === "" && s2[1] === "" && (s2[2] === "?" || !globMagic2.test(s2[2])) && s2.slice(3, n2).every((p2) => !globMagic2.test(p2)); const isDrive3 = /^[a-z]:/i.test(s2[0]); if (isUNC) { return [ ...s2.slice(0, n2).map((p2) => this.#norm(p2)), ...s2.slice(n2).map((ss) => this.parse(ss)) ]; } else if (isDrive3) { return [ this.#norm(s2[0]), ...s2.slice(1).map((ss) => this.parse(ss)) ]; } } return s2.map((ss) => this.parse(ss)); }); this.set = set.filter((s2) => s2.indexOf(false) === -1); if (this.isWindows) { for (let i2 = 0; i2 < this.set.length; i2++) { const p2 = this.set[i2]; if (p2[0] === "" && p2[1] === "" && this.globParts[i2][2] === "?" && (isDrive2(p2[3]) || isLongUNC2(this.globParts[i2][3]))) { if (isLongUNC2(this.globParts[i2][3])) p2[3] = "UNC"; p2[2] = "?"; } } } if (!options3.noext) this.mergeRows(); this.#pending = false; this.set.forEach((row, i2) => { for (let k = 0; k < row.length; k++) { if (row[k] === PENDING2) { row[k] = this.parse(this.globParts[i2][k]); } } }); } // Merge rows that only differ in one portion, where each of them // is a Matcher, into one row that matches any of them with // `@(a|b|...)`. Then a path is only walked once for all of them, // for example with `**/*.{js,ts}`. mergeRows() { let merged = true; while (merged) { merged = false; if (this.set.length < 2) return; let keys = this.#mergeKeys(); const len = Math.max(0, ...this.set.map((r2) => r2.length)); for (let k = 0; k < len; k++) { const groups = /* @__PURE__ */ new Map(); const R = this.set.length + 1; this.set.forEach((row, i2) => { if (!(row[k] instanceof nonrecursive_glob_match_1.Matcher || row[k] === PENDING2) || !extSafe2(this.globParts[i2][k])) { return; } const { pre, suf } = keys[i2]; const key = pre[k] * R + suf[k + 1]; const g2 = groups.get(key); if (g2) g2.push(i2); else groups.set(key, [i2]); }); const drop = /* @__PURE__ */ new Set(); for (const g2 of groups.values()) { if (g2.length < 2) continue; const [first, ...rest] = g2; const alts = g2.map((i2) => this.globParts[i2][k]); const glob2 = `@(${alts.join("|")})`; if (extglobCount2(glob2) > MAX_EXTGLOBS2) continue; this.globParts[first][k] = glob2; this.set[first][k] = this.parse(glob2); for (const i2 of rest) drop.add(i2); } if (drop.size) { merged = true; this.set = this.set.filter((_2, i2) => !drop.has(i2)); this.globParts = this.globParts.filter((_2, i2) => !drop.has(i2)); if (this.set.length < 2) return; keys = this.#mergeKeys(); } } } } // For each row, number ids for its prefixes and suffixes, such that // pre[k] identifies parts[0..k) and suf[k] identifies parts[k..n). // Two rows are the same other than at portion k exactly when they // have the same pre[k] and suf[k + 1]. This is linear in the size of // the rows, where joining the whole row for every k was quadratic. #mergeKeys() { const partIds = /* @__PURE__ */ new Map(); const ids = this.globParts.map((parts) => parts.map((s2) => { let id2 = partIds.get(s2); if (id2 === void 0) partIds.set(s2, id2 = partIds.size); return id2; })); const P2 = partIds.size; const len = Math.max(0, ...ids.map((r2) => r2.length)); const keys = ids.map((r2) => ({ pre: [0], suf: new Array(r2.length + 1).fill(0) })); for (let k = 0; k < len; k++) { const m2 = /* @__PURE__ */ new Map(); ids.forEach((r2, i2) => { if (k >= r2.length) return; const { pre } = keys[i2]; const key = pre[k] * P2 + r2[k]; let id2 = m2.get(key); if (id2 === void 0) m2.set(key, id2 = m2.size + 1); pre.push(id2); }); } for (let k = len - 1; k >= 0; k--) { const m2 = /* @__PURE__ */ new Map(); ids.forEach((r2, i2) => { if (k >= r2.length) return; const { suf } = keys[i2]; const key = suf[k + 1] * P2 + r2[k]; let id2 = m2.get(key); if (id2 === void 0) m2.set(key, id2 = m2.size + 1); suf[k] = id2; }); } return keys; } // various transforms to equivalent pattern sets that are // faster to process in a filesystem walk. The goal is to // eliminate what we can, and push all ** patterns as far // to the right as possible, even if it increases the number // of patterns that we have to process. preprocess(globParts) { if (this.options.noglobstar) { for (const partset of globParts) { for (let j = 0; j < partset.length; j++) { if (partset[j] === "**") { partset[j] = "*"; } } } } const { optimizationLevel = 1 } = this.options; if (optimizationLevel >= 2) { globParts = this.firstPhasePreProcess(globParts); globParts = this.secondPhasePreProcess(globParts); } else if (optimizationLevel >= 1) { globParts = this.levelOneOptimize(globParts); } else { globParts = this.adjascentGlobstarOptimize(globParts); } return globParts; } // just get rid of adjascent ** portions adjascentGlobstarOptimize(globParts) { return globParts.map((parts) => { let gs = -1; while (-1 !== (gs = parts.indexOf("**", gs + 1))) { let i2 = gs; while (parts[i2 + 1] === "**") { i2++; } if (i2 !== gs) { parts.splice(gs, i2 - gs); } } return parts; }); } // get rid of adjascent ** and resolve .. portions levelOneOptimize(globParts) { return globParts.map((parts) => { const root = this.#rootIndex(parts) + 1; parts = parts.reduce((set, part) => { const prev = set[set.length - 1]; if (part === "**" && prev === "**") { return set; } if (part === "..") { if (set.length > root && prev && prev !== ".." && prev !== "." && prev !== "**") { set.pop(); return set; } } set.push(part); return set; }, []); return parts.length === 0 ? [""] : parts; }); } // Check the path against each row before it is split. 'no' if no // row can match, so it does not need to be split. 'yes' if a row of // `**` and one more portion matches. 'maybe' if it must be split to // know. None of this applies with partial, where the path can end // before the row does. // // On Windows, `\` is a separator in the path too, and the portions of // a row up to its drive letter or UNC share are not checked (see // #rootIndex). // // Each string portion of a row must be a portion of the path, so the // path must contain it. Level 2 can only take portions out of the // path, so this is still true then. // // The last portion of a row must match the last portion of the path, // or the one before a trailing `/` (as a/* and a/**/* match a/b/). // This does not apply to rows that end in **, rows that end in a // root, or preserveMultipleSlashes (which can leave more // than one '' at the end). At level 2, it does not apply if that // portion is `.` or `..`, which can be // resolved away. Level 2 only takes other portions out of the // middle of the path. // // A row of `**/x` then matches if the ** can walk the portions // before the one that x matches, the same as #matchGlobstar. At // level 2, this is only known if none of them are `.` or `..`, so // that the path does not change when it is resolved. #canMatch(f2) { const sep2 = !this.isWindows || !f2.includes("\\") ? "/" : f2.includes("/") ? "both" : "\\"; let ends = this.#endCheck ? 0 : -1; let last = ""; let lastStart = 0; let prev; let prevStart = 0; const dot = !!this.options.dot; ROWS: for (let r2 = 0; r2 < this.set.length; r2++) { const row = this.set[r2]; const p2 = row[row.length - 1]; let end = ends !== -1 && this.#endRows[r2] && p2 !== exports2.GLOBSTAR; if (end && ends === 0) { const i2 = lastSep2(f2, f2.length, sep2); lastStart = i2 + 1; last = f2.slice(lastStart); if (last === "" && i2 >= 0) { let j = i2; while (j > 0 && isSep2(f2.charCodeAt(j - 1), sep2)) j--; prevStart = j === 0 ? 0 : lastSep2(f2, j - 1, sep2) + 1; prev = f2.slice(prevStart, j); } const resolves = this.#level2 && (isDots2(last) || last === "" && prev !== void 0 && isDots2(prev)); ends = resolves ? -1 : 1; end = !resolves; } let tailStart = -1; if (end && typeof p2 === "string") { tailStart = endIndex2(p2, last, lastStart, prev, prevStart); if (tailStart === -1) continue; } if (this.#literalCheck) { for (const l2 of this.#literals[r2]) { if (!f2.includes(l2)) continue ROWS; } } if (end && typeof p2 === "object") { tailStart = endIndex2(p2, last, lastStart, prev, prevStart); if (tailStart === -1) continue; } const shape = this.#shapes[r2]; if (shape === "base" && end) return "yes"; if (shape === "tail" && end) { if (this.#level2 && dotPortion2(f2, 0, tailStart, true, sep2)) { return "maybe"; } if (!dotPortion2(f2, 0, tailStart, dot, sep2)) return "yes"; continue; } if (shape === "mid" || shape === "head") { const m2 = this.#walk(f2, row, shape === "head", dot, sep2); if (m2 !== "no") return m2; continue; } return "maybe"; } return "no"; } // Match a row of a known shape against the split path, the same as // #matchGlobstar and #matchGlobStarBodySections do. None of these // rows have a drive letter, so they start at the first portion. #matchShape(file, row, shape) { const dot = !!this.options.dot; const n2 = file.length; if (shape === "head") { if (n2 < 2 || !portionMatch2(row[0], file[0])) { return false; } for (let i2 = 1; i2 < n2; i2++) if (!walkable2(file[i2], dot)) return false; return true; } const x2 = row[1]; if (shape === "tail") { let t2 = n2 - 1; if (!portionMatch2(x2, file[t2])) { if (file[t2] !== "" || n2 === 1 || !portionMatch2(x2, file[--t2])) { return false; } } for (let i2 = 0; i2 < t2; i2++) if (!walkable2(file[i2], dot)) return false; return true; } for (let k = 0; k < n2; k++) { if (portionMatch2(x2, file[k]) && k + 1 < n2) { let i2 = k + 1; while (i2 < n2 && walkable2(file[i2], dot)) i2++; if (i2 === n2) return true; } if (!walkable2(file[k], dot)) return false; } return false; } // Match a row of `**/x/**` or `x/**` against the path, the same as // #matchGlobstar and #matchGlobStarBodySections do once it is split. // x must match a portion (the first one, for `x/**`), the ** before // it must be able to walk the portions before that one, and there // must be a portion after it, which the ** after it can walk. At // level 2, this is only known if no portion is `.` or `..`. #walk(f2, row, head, dot, sep2) { if (this.#level2 && dotPortion2(f2, 0, f2.length, true, sep2)) return "maybe"; const x2 = row[head ? 0 : 1]; let s2 = 0; for (let e2 = nextSep2(f2, s2, sep2); e2 !== -1; e2 = nextSep2(f2, s2, sep2)) { let next = e2 + 1; while (next < f2.length && isSep2(f2.charCodeAt(next), sep2)) next++; const hit = typeof x2 === "string" ? e2 - s2 === x2.length && f2.startsWith(x2, s2) : e2 > s2 && x2.testUnchecked(f2.slice(s2, e2)); if (hit && !dotPortion2(f2, next, f2.length, dot, sep2)) return "yes"; if (head || dotPortion2(f2, s2, next, dot, sep2)) return "no"; s2 = next; } return "no"; } // the last split, if it was the same path with the same split // settings #cachedSplit(f2) { const last = lastSplit2; return last?.f === f2 && last.isWindows === this.isWindows && last.preserveMultipleSlashes === this.preserveMultipleSlashes && last.normalize === this.#form ? last : void 0; } // split a path for match(), and keep the parts for the next call #split(f2) { const { isWindows: isWindows2, preserveMultipleSlashes } = this; let parts = this.#slashSplit(isWindows2 ? f2.split("\\").join("/") : f2); const normalize2 = this.#form; if (normalize2) parts = parts.map((p2) => p2.normalize(normalize2)); lastSplit2 = { f: f2, isWindows: isWindows2, preserveMultipleSlashes, normalize: normalize2, parts }; return lastSplit2; } // resolve `.` and `..` portions of a path, for level 2 #levelTwoFileOptimize(file) { const parts = [...file]; let didSomething = false; do { didSomething = false; if (!this.preserveMultipleSlashes) { for (let i2 = 1; i2 < parts.length - 1; i2++) { const p2 = parts[i2]; if (i2 === 1 && p2 === "" && parts[0] === "") continue; if (p2 === "." || p2 === "") { didSomething = true; parts.splice(i2, 1); i2--; } } if (parts[0] === "." && parts.length === 2 && (parts[1] === "." || parts[1] === "")) { didSomething = true; parts.pop(); } } const root = this.#rootIndex(parts) + 1; let dd = root; while (-1 !== (dd = parts.indexOf("..", dd + 1))) { const p2 = parts[dd - 1]; if (p2 && p2 !== "." && p2 !== ".." && p2 !== "**") { didSomething = true; parts.splice(dd - 1, 2); dd = Math.max(dd - 2, root); } } } while (didSomething); return parts.length === 0 ? [""] : parts; } // First phase: single-pattern processing //
 is 1 or more portions
      //  is 1 or more portions
      // 

is any portion other than ., .., '', or ** // is . or '' // // **/.. is *brutal* for filesystem walking performance, because // it effectively resets the recursive walk each time it occurs, // and ** cannot be reduced out by a .. pattern part like a regexp // or most strings (other than .., ., and '') can be. // //

/**/../

/

/ -> {

/../

/

/,

/**/

/

/} //

// -> 
/
      // 
/

/../ ->

/
      // **/**/ -> **/
      //
      // **/*/ -> */**/ <== not valid because ** doesn't follow
      // this WOULD be allowed if ** did follow symlinks, or * didn't
      firstPhasePreProcess(globParts) {
        const { braceExpandMax = DEFAULT_BRACE_EXPAND_MAX2 } = this.options;
        let splitCells2 = 0;
        const maxSplitCells = 1e6;
        let didSomething = false;
        do {
          didSomething = false;
          for (let parts of globParts) {
            let gs = -1;
            while (-1 !== (gs = parts.indexOf("**", gs + 1))) {
              let gss = gs;
              while (parts[gss + 1] === "**") {
                gss++;
              }
              if (gss > gs) {
                parts.splice(gs + 1, gss - gs);
              }
              let next = parts[gs + 1];
              const p2 = parts[gs + 2];
              const p22 = parts[gs + 3];
              if (next !== "..")
                continue;
              if (!p2 || p2 === "." || p2 === ".." || !p22 || p22 === "." || p22 === "..") {
                continue;
              }
              const addedCells = parts.length - 1;
              if (globParts.length >= braceExpandMax || splitCells2 + addedCells > maxSplitCells) {
                throw new RangeError(`optimizationLevel 2: too many patterns from '**/..'`);
              }
              didSomething = true;
              parts.splice(gs, 1);
              const other = parts.slice(0);
              other[gs] = "**";
              splitCells2 += addedCells;
              globParts.push(other);
              gs--;
            }
            if (!this.preserveMultipleSlashes) {
              for (let i2 = 1; i2 < parts.length - 1; i2++) {
                const p2 = parts[i2];
                if (i2 === 1 && p2 === "" && parts[0] === "")
                  continue;
                if (p2 === "." || p2 === "") {
                  didSomething = true;
                  parts.splice(i2, 1);
                  i2--;
                }
              }
              if (parts[0] === "." && parts.length === 2 && (parts[1] === "." || parts[1] === "")) {
                didSomething = true;
                parts.pop();
              }
            }
            const root = this.#rootIndex(parts) + 1;
            let dd = root;
            while (-1 !== (dd = parts.indexOf("..", dd + 1))) {
              const p2 = parts[dd - 1];
              if (p2 && p2 !== "." && p2 !== ".." && p2 !== "**") {
                didSomething = true;
                const needDot = dd === 1 && parts[dd + 1] === "**";
                const splin = needDot ? ["."] : [];
                parts.splice(dd - 1, 2, ...splin);
                if (parts.length === 0)
                  parts.push("");
                dd = Math.max(dd - 2, root);
              }
            }
          }
        } while (didSomething);
        return globParts;
      }
      // second phase: multi-pattern dedupes
      // {
/,
/} -> 
/
      // {
/*/,
/

/} ->

/*/
      secondPhasePreProcess(globParts) {
        const keys = /* @__PURE__ */ new Set();
        const rows = globParts.filter((parts) => {
          const key = parts.join("/");
          if (keys.has(key))
            return false;
          keys.add(key);
          return true;
        });
        const stars = /* @__PURE__ */ new Map();
        for (const parts of rows) {
          const s2 = [];
          for (let i2 = 0; i2 < parts.length; i2++) {
            if (parts[i2] === "*")
              s2.push(i2);
          }
          if (s2.length)
            stars.set(s2.join(","), s2);
        }
        if (!stars.size || rows.length * stars.size > 1e5)
          return rows;
        const { dot } = this.options;
        return rows.filter((parts) => {
          for (const s2 of stars.values()) {
            if (s2[s2.length - 1] >= parts.length)
              continue;
            const c2 = [...parts];
            let ok = true;
            let changed = false;
            for (const i2 of s2) {
              const p2 = parts[i2];
              if (p2 === "*")
                continue;
              if (!p2 || p2 === "**" || !dot && p2.startsWith(".")) {
                ok = false;
                break;
              }
              c2[i2] = "*";
              changed = true;
            }
            if (ok && changed && keys.has(c2.join("/")))
              return false;
          }
          return true;
        });
      }
      parseNegate() {
        if (this.nonegate)
          return;
        const pattern = this.pattern;
        let negate = false;
        let negateOffset = 0;
        for (let i2 = 0; i2 < pattern.length && pattern.charAt(i2) === "!"; i2++) {
          negate = !negate;
          negateOffset++;
        }
        if (negateOffset)
          this.pattern = pattern.slice(negateOffset);
        this.negate = negate;
      }
      // Match the parts of a path against one row of the set. `resolved`
      // is the parts after level 2 resolves `.` and `..` in them, or the
      // same parts below level 2. Set partial to true to test if, for
      // example, "/a/b" matches the start of "/*/b/*/d". Partial means, if
      // you run out of file before you run out of pattern, then that's
      // fine, as long as all the parts match.
      #matchRow(file, resolved, pattern, partial) {
        let fileStartIndex = 0;
        let patternStartIndex = 0;
        const fh = this.isWindows ? uncHost2(resolved) : -1;
        const ph = fh === -1 ? -1 : uncHost2(pattern);
        if (ph !== -1) {
          const host = pattern[ph];
          const share = pattern[ph + 1];
          if (typeof host !== "string" || typeof share !== "string") {
            fileStartIndex = fh;
            patternStartIndex = ph;
          } else if (resolved[fh].toLowerCase() === host.toLowerCase() && resolved[fh + 1].toLowerCase() === share.toLowerCase()) {
            fileStartIndex = fh + 2;
            patternStartIndex = ph + 2;
          }
        } else if (this.isWindows) {
          const fileDrive = typeof file[0] === "string" && /^[a-z]:$/i.test(file[0]);
          const fileUNC = !fileDrive && file[0] === "" && file[1] === "" && file[2] === "?" && /^[a-z]:$/i.test(file[3]);
          const patternDrive = typeof pattern[0] === "string" && /^[a-z]:$/i.test(pattern[0]);
          const patternUNC = !patternDrive && pattern[0] === "" && pattern[1] === "" && pattern[2] === "?" && typeof pattern[3] === "string" && /^[a-z]:$/i.test(pattern[3]);
          const fdi = fileUNC ? 3 : fileDrive ? 0 : void 0;
          const pdi = patternUNC ? 3 : patternDrive ? 0 : void 0;
          if (typeof fdi === "number" && typeof pdi === "number") {
            const [fd, pd] = [
              file[fdi],
              pattern[pdi]
            ];
            if (fd.toLowerCase() === pd.toLowerCase()) {
              patternStartIndex = pdi + 1;
              fileStartIndex = fdi + 1;
            }
          }
        }
        file = resolved;
        if (pattern.includes(exports2.GLOBSTAR)) {
          return this.#matchGlobstar(file, pattern, partial, fileStartIndex, patternStartIndex);
        }
        return this.#matchOne(file, pattern, partial, fileStartIndex, patternStartIndex);
      }
      #matchGlobstar(file, pattern, partial, fileIndex, patternIndex) {
        const { head, body, tail, segments } = this.#getGlobstarParts(pattern, partial, patternIndex);
        if (head.length) {
          const headEnd = fileIndex + head.length;
          if (!this.#matchOne(file, head, partial, fileIndex, 0, headEnd)) {
            return false;
          }
          fileIndex += head.length;
          patternIndex += head.length;
        }
        let fileTailMatch = 0;
        if (tail.length) {
          if (tail.length + fileIndex > file.length)
            return false;
          let tailStart = file.length - tail.length;
          if (this.#matchOne(file, tail, partial, tailStart, 0)) {
            fileTailMatch = tail.length;
          } else {
            if (file[file.length - 1] !== "" || fileIndex + tail.length === file.length) {
              return false;
            }
            tailStart--;
            if (!this.#matchOne(file, tail, partial, tailStart, 0)) {
              return false;
            }
            fileTailMatch = tail.length + 1;
          }
        }
        if (!body.length) {
          let sawSome = !!fileTailMatch;
          for (let i2 = fileIndex; i2 < file.length - fileTailMatch; i2++) {
            const f2 = String(file[i2]);
            sawSome = true;
            if (f2 === "." || f2 === ".." || !this.options.dot && f2.startsWith(".")) {
              return false;
            }
          }
          return partial || sawSome;
        }
        return !!this.#matchGlobStarBodySections(file, segments, file.length - fileTailMatch, fileIndex, 0, partial, 0, !!fileTailMatch, /* @__PURE__ */ new Set());
      }
      // Split the pattern into head, tail, and middle of ** delimited
      // parts. The tail has to be at the end, and the others just have to
      // be found in order from the head. These only depend on the pattern
      // row, so they are kept for the next path.
      #getGlobstarParts(pattern, partial, patternIndex) {
        let byStart = this.#globstarParts.get(pattern);
        if (!byStart) {
          byStart = [];
          this.#globstarParts.set(pattern, byStart);
        }
        const key = patternIndex * 2 + (partial ? 1 : 0);
        const found = byStart[key];
        if (found)
          return found;
        const firstgs = pattern.indexOf(exports2.GLOBSTAR, patternIndex);
        const lastgs = pattern.lastIndexOf(exports2.GLOBSTAR);
        const head = pattern.slice(patternIndex, firstgs);
        const body = pattern.slice(firstgs + 1, partial ? void 0 : lastgs);
        const tail = partial ? [] : pattern.slice(lastgs + 1);
        const segments = [[[], 0]];
        let current = segments[0];
        let nonGsParts = 0;
        const nonGsPartsSums = [0];
        for (const b2 of body) {
          if (b2 === exports2.GLOBSTAR) {
            nonGsPartsSums.push(nonGsParts);
            current = [[], 0];
            segments.push(current);
          } else {
            current[0].push(b2);
            nonGsParts++;
          }
        }
        segments.forEach((b2, i2) => {
          b2[1] = nonGsParts - nonGsPartsSums[i2];
        });
        const parts = { head, body, tail, segments };
        byStart[key] = parts;
        return parts;
      }
      // return false for "nope, not matching"
      // return null for "not matching, cannot keep trying"
      #matchGlobStarBodySections(file, bodySegments, fileLength, fileIndex, bodyIndex, partial, globStarDepth, sawTail, tried) {
        const bs = bodySegments[bodyIndex];
        if (!bs) {
          if (partial) {
            return fileIndex >= fileLength || fileIndex === fileLength - 1 && file[fileIndex] === "";
          }
          for (let i2 = fileIndex; i2 < fileLength; i2++) {
            sawTail = true;
            const f2 = file[i2];
            if (f2 === "." || f2 === ".." || !this.options.dot && f2.startsWith(".")) {
              return false;
            }
          }
          return sawTail;
        }
        const [body, need] = bs;
        const after = partial ? fileLength : fileLength - need;
        while (fileIndex <= after) {
          const key = bodyIndex * (file.length + 1) + fileIndex;
          if (tried.has(key))
            return false;
          tried.add(key);
          const m2 = this.#matchOne(file, body, partial, fileIndex, 0, fileIndex + body.length);
          if (m2 && globStarDepth < this.maxGlobstarRecursion) {
            const sub = this.#matchGlobStarBodySections(file, bodySegments, fileLength, fileIndex + body.length, bodyIndex + 1, partial, globStarDepth + 1, sawTail, tried);
            if (sub !== false) {
              return sub;
            }
          }
          if (fileIndex === after)
            break;
          const f2 = file[fileIndex];
          if (f2 === "." || f2 === ".." || !this.options.dot && f2.startsWith(".")) {
            return false;
          }
          fileIndex++;
        }
        return partial || null;
      }
      #matchOne(file, pattern, partial, fileIndex, patternIndex, fileEnd = file.length) {
        let fi;
        let pi;
        let pl;
        let fl;
        for (fi = fileIndex, pi = patternIndex, fl = Math.min(fileEnd, file.length), pl = pattern.length; fi < fl && pi < pl; fi++, pi++) {
          let p2 = pattern[pi];
          let f2 = file[fi];
          if (p2 === false || p2 === exports2.GLOBSTAR) {
            return false;
          }
          if (!portionMatch2(p2, f2))
            return false;
        }
        if (fi === fl && pi === pl) {
          return true;
        } else if (fi === fl) {
          return partial;
        } else if (pi === pl) {
          return fi === fl - 1 && file[fi] === "";
        } else {
          throw new Error("wtf?");
        }
      }
      braceExpand() {
        return (0, exports2.braceExpand)(this.pattern, this.options);
      }
      // Expand braces, except numeric ranges such as {0..999} with at
      // least RANGE_MIN values. Each of those stays in its pattern as
      // `0..999`, for the Matcher to test. If a range might
      // be inside a [...] class, expand all of them instead.
      #expandBraces() {
        const { pattern } = this;
        if (this.options.nobrace)
          return this.braceExpand();
        let code = 57344;
        while (pattern.includes(String.fromCharCode(code))) {
          if (++code > 63743)
            return this.braceExpand();
        }
        const mark = String.fromCharCode(code);
        let found = false;
        const marked2 = pattern.replace(rangeRe2, (m2, lo, hi) => {
          const a2 = Number(lo);
          const b2 = Number(hi);
          if (!Number.isSafeInteger(a2) || !Number.isSafeInteger(b2) || Math.abs(a2 - b2) + 1 < RANGE_MIN2) {
            return m2;
          }
          found = true;
          return `${mark}${lo}..${hi}${mark}`;
        });
        if (!found)
          return this.braceExpand();
        const set = (0, exports2.braceExpand)(marked2, this.options);
        for (const p2 of set) {
          for (const portion of p2.split("/")) {
            const c2 = portion.indexOf("[");
            if (c2 !== -1 && c2 < portion.lastIndexOf(mark)) {
              return this.braceExpand();
            }
            if (!this.options.noext && inRepeatOrNegExt2(portion, mark)) {
              return this.braceExpand();
            }
          }
        }
        this.#rangeMark = mark;
        return set;
      }
      parse(pattern) {
        (0, assert_valid_pattern_js_1.assertValidPattern)(pattern);
        const options3 = this.options;
        if (pattern === "**")
          return exports2.GLOBSTAR;
        if (pattern === "")
          return "";
        const { nocase, nocaseMagicOnly, noext = false, dot, normalize: normalize2 } = options3;
        const rangeMark = this.#rangeMark;
        const lit2 = rangeMark && pattern.includes(rangeMark) ? void 0 : literal2(pattern, noext);
        if (lit2 !== void 0 && !(nocase && !nocaseMagicOnly && pattern.toUpperCase() !== pattern.toLowerCase())) {
          return this.#norm(lit2);
        }
        if (this.#pending)
          return PENDING2;
        let m2 = this.#matchers.get(pattern);
        if (!m2) {
          if (!noext)
            assertValidExtglobs2(pattern);
          m2 = new nonrecursive_glob_match_1.Matcher(pattern, {
            nocase,
            noext,
            dot,
            normalize: normalize2,
            ...rangeMark && { rangeMark }
          });
          this.#matchers.set(pattern, m2);
        }
        return m2;
      }
      #slashSplit(p2) {
        if (this.preserveMultipleSlashes) {
          return p2.split("/");
        } else if (this.isWindows && /^\/\/[^/]+/.test(p2)) {
          return ["", ...p2.split(/\/+/)];
        } else {
          return p2.split(/\/+/);
        }
      }
      match(f2, partial = this.partial) {
        if (this.comment) {
          return false;
        }
        if (this.empty) {
          return f2 === "";
        }
        if (f2 === "/" && partial) {
          return true;
        }
        const options3 = this.options;
        let split = this.#cachedSplit(f2);
        if (!split) {
          if (!partial && !this.#form && (this.#endCheck || this.#literalCheck) && lastChecked2 !== f2) {
            lastChecked2 = f2;
            const can = this.#canMatch(f2);
            if (can === "no")
              return options3.flipNegate ? false : this.negate;
            if (can === "yes")
              return options3.flipNegate ? true : !this.negate;
          }
          split = this.#split(f2);
        }
        const ff = split.parts;
        const resolved = this.#level2 ? split.resolved ??= this.#levelTwoFileOptimize(ff) : ff;
        const set = this.set;
        let filename = ff[ff.length - 1];
        if (!filename) {
          for (let i2 = ff.length - 2; !filename && i2 >= 0; i2--) {
            filename = ff[i2];
          }
        }
        for (let r2 = 0; r2 < set.length; r2++) {
          const pattern = set[r2];
          const shape = partial ? void 0 : this.#shapes[r2];
          const hit = shape === "base" ? portionMatch2(pattern[0], filename) : shape ? this.#matchShape(resolved, pattern, shape) : options3.matchBase && pattern.length === 1 ? this.#matchRow([filename], [filename], pattern, partial) : this.#matchRow(ff, resolved, pattern, partial);
          if (hit) {
            if (options3.flipNegate) {
              return true;
            }
            return !this.negate;
          }
        }
        if (options3.flipNegate) {
          return false;
        }
        return this.negate;
      }
      static defaults(def) {
        return exports2.minimatch.defaults(def).Minimatch;
      }
    };
    exports2.Minimatch = Minimatch2;
    var escape_js_2 = require_escape();
    Object.defineProperty(exports2, "escape", { enumerable: true, get: function() {
      return escape_js_2.escape;
    } });
    var unescape_js_2 = require_unescape();
    Object.defineProperty(exports2, "unescape", { enumerable: true, get: function() {
      return unescape_js_2.unescape;
    } });
    exports2.minimatch.Minimatch = Minimatch2;
    exports2.minimatch.escape = escape_js_1.escape;
    exports2.minimatch.unescape = unescape_js_1.unescape;
  }
});

// node_modules/isexe/dist/commonjs/index.min.js
var require_index_min2 = __commonJS({
  "node_modules/isexe/dist/commonjs/index.min.js"(exports2) {
    "use strict";
    var a2 = (t2, e2) => () => (e2 || t2((e2 = { exports: {} }).exports, e2), e2.exports);
    var _2 = a2((i2) => {
      "use strict";
      Object.defineProperty(i2, "__esModule", { value: true });
      i2.sync = i2.isexe = void 0;
      var M = require("node:fs"), x2 = require("node:fs/promises"), q = async (t2, e2 = {}) => {
        let { ignoreErrors: r2 = false } = e2;
        try {
          return d2(await (0, x2.stat)(t2), e2);
        } catch (s2) {
          let n2 = s2;
          if (r2 || n2.code === "EACCES") return false;
          throw n2;
        }
      };
      i2.isexe = q;
      var m2 = (t2, e2 = {}) => {
        let { ignoreErrors: r2 = false } = e2;
        try {
          return d2((0, M.statSync)(t2), e2);
        } catch (s2) {
          let n2 = s2;
          if (r2 || n2.code === "EACCES") return false;
          throw n2;
        }
      };
      i2.sync = m2;
      var d2 = (t2, e2) => t2.isFile() && A2(t2, e2), A2 = (t2, e2) => {
        let r2 = e2.uid ?? process.getuid?.(), s2 = e2.groups ?? process.getgroups?.() ?? [], n2 = e2.gid ?? process.getgid?.() ?? s2[0];
        if (r2 === void 0 || n2 === void 0) throw new Error("cannot get uid or gid");
        let u2 = /* @__PURE__ */ new Set([n2, ...s2]), c2 = t2.mode, S = t2.uid, P2 = t2.gid, f2 = parseInt("100", 8), l2 = parseInt("010", 8), j = parseInt("001", 8), C2 = f2 | l2;
        return !!(c2 & j || c2 & l2 && u2.has(P2) || c2 & f2 && S === r2 || c2 & C2 && r2 === 0);
      };
    });
    var g2 = a2((o2) => {
      "use strict";
      Object.defineProperty(o2, "__esModule", { value: true });
      o2.sync = o2.isexe = void 0;
      var T = require("node:fs"), I = require("node:fs/promises"), D = require("node:path"), F = async (t2, e2 = {}) => {
        let { ignoreErrors: r2 = false } = e2;
        try {
          return y2(await (0, I.stat)(t2), t2, e2);
        } catch (s2) {
          let n2 = s2;
          if (r2 || n2.code === "EACCES") return false;
          throw n2;
        }
      };
      o2.isexe = F;
      var L = (t2, e2 = {}) => {
        let { ignoreErrors: r2 = false } = e2;
        try {
          return y2((0, T.statSync)(t2), t2, e2);
        } catch (s2) {
          let n2 = s2;
          if (r2 || n2.code === "EACCES") return false;
          throw n2;
        }
      };
      o2.sync = L;
      var B = (t2, e2) => {
        let { pathExt: r2 = process.env.PATHEXT || "" } = e2, s2 = r2.split(D.delimiter);
        if (s2.indexOf("") !== -1) return true;
        for (let n2 of s2) {
          let u2 = n2.toLowerCase(), c2 = t2.substring(t2.length - u2.length).toLowerCase();
          if (u2 && c2 === u2) return true;
        }
        return false;
      }, y2 = (t2, e2, r2) => t2.isFile() && B(e2, r2);
    });
    var p2 = a2((h2) => {
      "use strict";
      Object.defineProperty(h2, "__esModule", { value: true });
    });
    var v2 = exports2 && exports2.__createBinding || (Object.create ? (function(t2, e2, r2, s2) {
      s2 === void 0 && (s2 = r2);
      var n2 = Object.getOwnPropertyDescriptor(e2, r2);
      (!n2 || ("get" in n2 ? !e2.__esModule : n2.writable || n2.configurable)) && (n2 = { enumerable: true, get: function() {
        return e2[r2];
      } }), Object.defineProperty(t2, s2, n2);
    }) : (function(t2, e2, r2, s2) {
      s2 === void 0 && (s2 = r2), t2[s2] = e2[r2];
    }));
    var G = exports2 && exports2.__setModuleDefault || (Object.create ? (function(t2, e2) {
      Object.defineProperty(t2, "default", { enumerable: true, value: e2 });
    }) : function(t2, e2) {
      t2.default = e2;
    });
    var w2 = exports2 && exports2.__importStar || /* @__PURE__ */ (function() {
      var t2 = function(e2) {
        return t2 = Object.getOwnPropertyNames || function(r2) {
          var s2 = [];
          for (var n2 in r2) Object.prototype.hasOwnProperty.call(r2, n2) && (s2[s2.length] = n2);
          return s2;
        }, t2(e2);
      };
      return function(e2) {
        if (e2 && e2.__esModule) return e2;
        var r2 = {};
        if (e2 != null) for (var s2 = t2(e2), n2 = 0; n2 < s2.length; n2++) s2[n2] !== "default" && v2(r2, e2, s2[n2]);
        return G(r2, e2), r2;
      };
    })();
    var X = exports2 && exports2.__exportStar || function(t2, e2) {
      for (var r2 in t2) r2 !== "default" && !Object.prototype.hasOwnProperty.call(e2, r2) && v2(e2, t2, r2);
    };
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.sync = exports2.isexe = exports2.posix = exports2.win32 = void 0;
    var E = w2(_2());
    exports2.posix = E;
    var O = w2(g2());
    exports2.win32 = O;
    X(p2(), exports2);
    var H = process.env._ISEXE_TEST_PLATFORM_ || process.platform;
    var b2 = H === "win32" ? O : E;
    exports2.isexe = b2.isexe;
    exports2.sync = b2.sync;
  }
});

// node_modules/which/lib/index.js
var require_lib = __commonJS({
  "node_modules/which/lib/index.js"(exports2, module2) {
    var { isexe, sync: isexeSync } = require_index_min2();
    var { join, delimiter, sep: sep2, posix } = require("path");
    var isWindows2 = process.platform === "win32";
    var rSlash = new RegExp(`[${posix.sep}${sep2 === posix.sep ? "" : sep2}]`.replace(/(\\)/g, "\\$1"));
    var rRel = new RegExp(`^\\.${rSlash.source}`);
    var getNotFoundError = (cmd) => Object.assign(new Error(`not found: ${cmd}`), { code: "ENOENT" });
    var getPathInfo = (cmd, {
      path: optPath = process.env.PATH,
      pathExt: optPathExt = process.env.PATHEXT,
      delimiter: optDelimiter = delimiter
    }) => {
      const pathEnv = cmd.match(rSlash) ? [""] : [
        // windows always checks the cwd first
        ...isWindows2 ? [process.cwd()] : [],
        ...(optPath || /* istanbul ignore next: very unusual */
        "").split(optDelimiter)
      ];
      if (isWindows2) {
        const pathExtExe = optPathExt || [".EXE", ".CMD", ".BAT", ".COM"].join(optDelimiter);
        const pathExt = pathExtExe.split(optDelimiter).flatMap((item) => [item, item.toLowerCase()]);
        if (cmd.includes(".") && pathExt[0] !== "") {
          pathExt.unshift("");
        }
        return { pathEnv, pathExt, pathExtExe };
      }
      return { pathEnv, pathExt: [""] };
    };
    var getPathPart = (raw, cmd) => {
      const pathPart = /^".*"$/.test(raw) ? raw.slice(1, -1) : raw;
      const prefix2 = !pathPart && rRel.test(cmd) ? cmd.slice(0, 2) : "";
      return prefix2 + join(pathPart, cmd);
    };
    var which2 = async (cmd, opt = {}) => {
      const { pathEnv, pathExt, pathExtExe } = getPathInfo(cmd, opt);
      const found = [];
      for (const envPart of pathEnv) {
        const p2 = getPathPart(envPart, cmd);
        for (const ext2 of pathExt) {
          const withExt = p2 + ext2;
          const is = await isexe(withExt, { pathExt: pathExtExe, ignoreErrors: true });
          if (is) {
            if (!opt.all) {
              return withExt;
            }
            found.push(withExt);
          }
        }
      }
      if (opt.all && found.length) {
        return found;
      }
      if (opt.nothrow) {
        return null;
      }
      throw getNotFoundError(cmd);
    };
    var whichSync = (cmd, opt = {}) => {
      const { pathEnv, pathExt, pathExtExe } = getPathInfo(cmd, opt);
      const found = [];
      for (const pathEnvPart of pathEnv) {
        const p2 = getPathPart(pathEnvPart, cmd);
        for (const ext2 of pathExt) {
          const withExt = p2 + ext2;
          const is = isexeSync(withExt, { pathExt: pathExtExe, ignoreErrors: true });
          if (is) {
            if (!opt.all) {
              return withExt;
            }
            found.push(withExt);
          }
        }
      }
      if (opt.all && found.length) {
        return found;
      }
      if (opt.nothrow) {
        return null;
      }
      throw getNotFoundError(cmd);
    };
    module2.exports = which2;
    which2.sync = whichSync;
  }
});

// node_modules/semver/internal/constants.js
var require_constants = __commonJS({
  "node_modules/semver/internal/constants.js"(exports2, module2) {
    "use strict";
    var SEMVER_SPEC_VERSION = "2.0.0";
    var MAX_LENGTH = 256;
    var MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER || /* istanbul ignore next */
    9007199254740991;
    var MAX_SAFE_COMPONENT_LENGTH = 16;
    var MAX_SAFE_BUILD_LENGTH = MAX_LENGTH - 6;
    var WHITESPACE_CHARACTERS = [
      "	",
      "\n",
      "\v",
      "\f",
      "\r",
      " ",
      "\xA0",
      "\u1680",
      "\u2000",
      "\u2001",
      "\u2002",
      "\u2003",
      "\u2004",
      "\u2005",
      "\u2006",
      "\u2007",
      "\u2008",
      "\u2009",
      "\u200A",
      "\u2028",
      "\u2029",
      "\u202F",
      "\u205F",
      "\u3000",
      "\uFEFF"
    ];
    var RELEASE_TYPES = [
      "major",
      "premajor",
      "minor",
      "preminor",
      "patch",
      "prepatch",
      "prerelease"
    ];
    module2.exports = {
      MAX_LENGTH,
      MAX_SAFE_COMPONENT_LENGTH,
      MAX_SAFE_BUILD_LENGTH,
      MAX_SAFE_INTEGER,
      WHITESPACE_CHARACTERS,
      RELEASE_TYPES,
      SEMVER_SPEC_VERSION,
      FLAG_INCLUDE_PRERELEASE: 1,
      FLAG_LOOSE: 2
    };
  }
});

// node_modules/semver/internal/debug.js
var require_debug = __commonJS({
  "node_modules/semver/internal/debug.js"(exports2, module2) {
    "use strict";
    var debug4 = typeof process === "object" && process.env && process.env.NODE_DEBUG && /\bsemver\b/i.test(process.env.NODE_DEBUG) ? (...args) => console.error("SEMVER", ...args) : () => {
    };
    module2.exports = debug4;
  }
});

// node_modules/semver/internal/re.js
var require_re = __commonJS({
  "node_modules/semver/internal/re.js"(exports2, module2) {
    "use strict";
    var {
      MAX_SAFE_COMPONENT_LENGTH,
      MAX_SAFE_BUILD_LENGTH,
      MAX_LENGTH
    } = require_constants();
    var debug4 = require_debug();
    exports2 = module2.exports = {};
    var re = exports2.re = [];
    var safeRe = exports2.safeRe = [];
    var src = exports2.src = [];
    var safeSrc = exports2.safeSrc = [];
    var t2 = exports2.t = {};
    var R = 0;
    var LETTERDASHNUMBER = "[a-zA-Z0-9-]";
    var safeRegexReplacements = [
      ["\\s", 1],
      ["\\d", MAX_LENGTH],
      [LETTERDASHNUMBER, MAX_SAFE_BUILD_LENGTH]
    ];
    var makeSafeRegex = (value) => {
      for (const [token, max] of safeRegexReplacements) {
        value = value.split(`${token}*`).join(`${token}{0,${max}}`).split(`${token}+`).join(`${token}{1,${max}}`);
      }
      return value;
    };
    var createToken = (name2, value, isGlobal) => {
      const safe = makeSafeRegex(value);
      const index = R++;
      debug4(name2, index, value);
      t2[name2] = index;
      src[index] = value;
      safeSrc[index] = safe;
      re[index] = new RegExp(value, isGlobal ? "g" : void 0);
      safeRe[index] = new RegExp(safe, isGlobal ? "g" : void 0);
    };
    createToken("NUMERICIDENTIFIER", "0|[1-9]\\d*");
    createToken("NUMERICIDENTIFIERLOOSE", "\\d+");
    createToken("NONNUMERICIDENTIFIER", `\\d*[a-zA-Z-]${LETTERDASHNUMBER}*`);
    createToken("MAINVERSION", `(${src[t2.NUMERICIDENTIFIER]})\\.(${src[t2.NUMERICIDENTIFIER]})\\.(${src[t2.NUMERICIDENTIFIER]})`);
    createToken("MAINVERSIONLOOSE", `(${src[t2.NUMERICIDENTIFIERLOOSE]})\\.(${src[t2.NUMERICIDENTIFIERLOOSE]})\\.(${src[t2.NUMERICIDENTIFIERLOOSE]})`);
    createToken("PRERELEASEIDENTIFIER", `(?:${src[t2.NONNUMERICIDENTIFIER]}|${src[t2.NUMERICIDENTIFIER]})`);
    createToken("PRERELEASEIDENTIFIERLOOSE", `(?:${src[t2.NONNUMERICIDENTIFIER]}|${src[t2.NUMERICIDENTIFIERLOOSE]})`);
    createToken("PRERELEASE", `(?:-(${src[t2.PRERELEASEIDENTIFIER]}(?:\\.${src[t2.PRERELEASEIDENTIFIER]})*))`);
    createToken("PRERELEASELOOSE", `(?:-?(${src[t2.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${src[t2.PRERELEASEIDENTIFIERLOOSE]})*))`);
    createToken("BUILDIDENTIFIER", `${LETTERDASHNUMBER}+`);
    createToken("BUILD", `(?:\\+(${src[t2.BUILDIDENTIFIER]}(?:\\.${src[t2.BUILDIDENTIFIER]})*))`);
    createToken("FULLPLAIN", `v?${src[t2.MAINVERSION]}${src[t2.PRERELEASE]}?${src[t2.BUILD]}?`);
    createToken("FULL", `^${src[t2.FULLPLAIN]}$`);
    createToken("LOOSEPLAIN", `[v=\\s]*${src[t2.MAINVERSIONLOOSE]}${src[t2.PRERELEASELOOSE]}?${src[t2.BUILD]}?`);
    createToken("LOOSE", `^${src[t2.LOOSEPLAIN]}$`);
    createToken("GTLT", "((?:<|>)?=?)");
    createToken("XRANGEIDENTIFIERLOOSE", `${src[t2.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);
    createToken("XRANGEIDENTIFIER", `${src[t2.NUMERICIDENTIFIER]}|x|X|\\*`);
    createToken("XRANGEPLAIN", `[v=\\s]*(${src[t2.XRANGEIDENTIFIER]})(?:\\.(${src[t2.XRANGEIDENTIFIER]})(?:\\.(${src[t2.XRANGEIDENTIFIER]})(?:${src[t2.PRERELEASE]})?${src[t2.BUILD]}?)?)?`);
    createToken("XRANGEPLAINLOOSE", `[v=\\s]*(${src[t2.XRANGEIDENTIFIERLOOSE]})(?:\\.(${src[t2.XRANGEIDENTIFIERLOOSE]})(?:\\.(${src[t2.XRANGEIDENTIFIERLOOSE]})(?:${src[t2.PRERELEASELOOSE]})?${src[t2.BUILD]}?)?)?`);
    createToken("XRANGE", `^${src[t2.GTLT]}\\s*${src[t2.XRANGEPLAIN]}$`);
    createToken("XRANGELOOSE", `^${src[t2.GTLT]}\\s*${src[t2.XRANGEPLAINLOOSE]}$`);
    createToken("COERCEPLAIN", `${"(^|[^\\d])(\\d{1,"}${MAX_SAFE_COMPONENT_LENGTH}})(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?`);
    createToken("COERCE", `${src[t2.COERCEPLAIN]}(?:$|[^\\d])`);
    createToken("COERCEFULL", src[t2.COERCEPLAIN] + `(?:${src[t2.PRERELEASE]})?(?:${src[t2.BUILD]})?(?:$|[^\\d])`);
    createToken("COERCERTL", src[t2.COERCE], true);
    createToken("COERCERTLFULL", src[t2.COERCEFULL], true);
    createToken("LONETILDE", "(?:~>?)");
    createToken("TILDETRIM", `(\\s*)${src[t2.LONETILDE]}\\s+`, true);
    exports2.tildeTrimReplace = "$1~";
    createToken("TILDE", `^${src[t2.LONETILDE]}${src[t2.XRANGEPLAIN]}$`);
    createToken("TILDELOOSE", `^${src[t2.LONETILDE]}${src[t2.XRANGEPLAINLOOSE]}$`);
    createToken("LONECARET", "(?:\\^)");
    createToken("CARETTRIM", `(\\s*)${src[t2.LONECARET]}\\s+`, true);
    exports2.caretTrimReplace = "$1^";
    createToken("CARET", `^${src[t2.LONECARET]}${src[t2.XRANGEPLAIN]}$`);
    createToken("CARETLOOSE", `^${src[t2.LONECARET]}${src[t2.XRANGEPLAINLOOSE]}$`);
    createToken("COMPARATORLOOSE", `^${src[t2.GTLT]}\\s*(${src[t2.LOOSEPLAIN]})$|^$`);
    createToken("COMPARATOR", `^${src[t2.GTLT]}\\s*(${src[t2.FULLPLAIN]})$|^$`);
    createToken("COMPARATORTRIM", `(\\s*)${src[t2.GTLT]}\\s*(${src[t2.LOOSEPLAIN]}|${src[t2.XRANGEPLAIN]})`, true);
    exports2.comparatorTrimReplace = "$1$2$3";
    createToken("HYPHENRANGE", `^\\s*(${src[t2.XRANGEPLAIN]})\\s+-\\s+(${src[t2.XRANGEPLAIN]})\\s*$`);
    createToken("HYPHENRANGELOOSE", `^\\s*(${src[t2.XRANGEPLAINLOOSE]})\\s+-\\s+(${src[t2.XRANGEPLAINLOOSE]})\\s*$`);
    createToken("STAR", "(<|>)?=?\\s*\\*");
    createToken("GTE0", "^\\s*>=\\s*0\\.0\\.0\\s*$");
    createToken("GTE0PRE", "^\\s*>=\\s*0\\.0\\.0-0\\s*$");
  }
});

// node_modules/semver/internal/parse-options.js
var require_parse_options = __commonJS({
  "node_modules/semver/internal/parse-options.js"(exports2, module2) {
    "use strict";
    var looseOption = Object.freeze({ loose: true });
    var emptyOpts = Object.freeze({});
    var parseOptions = (options3) => {
      if (!options3) {
        return emptyOpts;
      }
      if (typeof options3 !== "object") {
        return looseOption;
      }
      return options3;
    };
    module2.exports = parseOptions;
  }
});

// node_modules/semver/internal/identifiers.js
var require_identifiers = __commonJS({
  "node_modules/semver/internal/identifiers.js"(exports2, module2) {
    "use strict";
    var numeric2 = /^[0-9]+$/;
    var compareIdentifiers = (a2, b2) => {
      if (typeof a2 === "number" && typeof b2 === "number") {
        return a2 === b2 ? 0 : a2 < b2 ? -1 : 1;
      }
      const anum = numeric2.test(a2);
      const bnum = numeric2.test(b2);
      if (anum && bnum) {
        a2 = +a2;
        b2 = +b2;
      }
      return a2 === b2 ? 0 : anum && !bnum ? -1 : bnum && !anum ? 1 : a2 < b2 ? -1 : 1;
    };
    var rcompareIdentifiers = (a2, b2) => compareIdentifiers(b2, a2);
    module2.exports = {
      compareIdentifiers,
      rcompareIdentifiers
    };
  }
});

// node_modules/semver/classes/semver.js
var require_semver = __commonJS({
  "node_modules/semver/classes/semver.js"(exports2, module2) {
    "use strict";
    var debug4 = require_debug();
    var { MAX_LENGTH, MAX_SAFE_INTEGER } = require_constants();
    var { safeRe: re, t: t2 } = require_re();
    var parseOptions = require_parse_options();
    var { compareIdentifiers } = require_identifiers();
    var isPrereleaseIdentifier = (prerelease, identifier) => {
      const identifiers = identifier.split(".");
      if (identifiers.length > prerelease.length) {
        return false;
      }
      for (let i2 = 0; i2 < identifiers.length; i2++) {
        if (compareIdentifiers(prerelease[i2], identifiers[i2]) !== 0) {
          return false;
        }
      }
      return true;
    };
    var SemVer = class _SemVer {
      constructor(version2, options3) {
        options3 = parseOptions(options3);
        if (version2 instanceof _SemVer) {
          if (version2.loose === !!options3.loose && version2.includePrerelease === !!options3.includePrerelease) {
            return version2;
          } else {
            version2 = version2.version;
          }
        } else if (typeof version2 !== "string") {
          throw new TypeError(`Invalid version. Must be a string. Got type "${typeof version2}".`);
        }
        if (version2.length > MAX_LENGTH) {
          throw new TypeError(
            `version is longer than ${MAX_LENGTH} characters`
          );
        }
        debug4("SemVer", version2, options3);
        this.options = options3;
        this.loose = !!options3.loose;
        this.includePrerelease = !!options3.includePrerelease;
        const m2 = version2.trim().match(options3.loose ? re[t2.LOOSE] : re[t2.FULL]);
        if (!m2) {
          throw new TypeError(`Invalid Version: ${version2}`);
        }
        this.raw = version2;
        this.major = +m2[1];
        this.minor = +m2[2];
        this.patch = +m2[3];
        if (this.major > MAX_SAFE_INTEGER || this.major < 0) {
          throw new TypeError("Invalid major version");
        }
        if (this.minor > MAX_SAFE_INTEGER || this.minor < 0) {
          throw new TypeError("Invalid minor version");
        }
        if (this.patch > MAX_SAFE_INTEGER || this.patch < 0) {
          throw new TypeError("Invalid patch version");
        }
        if (!m2[4]) {
          this.prerelease = [];
        } else {
          this.prerelease = m2[4].split(".").map((id2) => {
            if (/^[0-9]+$/.test(id2)) {
              const num = +id2;
              if (num >= 0 && num < MAX_SAFE_INTEGER) {
                return num;
              }
            }
            return id2;
          });
        }
        this.build = m2[5] ? m2[5].split(".") : [];
        this.format();
      }
      format() {
        this.version = `${this.major}.${this.minor}.${this.patch}`;
        if (this.prerelease.length) {
          this.version += `-${this.prerelease.join(".")}`;
        }
        return this.version;
      }
      toString() {
        return this.version;
      }
      compare(other) {
        debug4("SemVer.compare", this.version, this.options, other);
        if (!(other instanceof _SemVer)) {
          if (typeof other === "string" && other === this.version) {
            return 0;
          }
          other = new _SemVer(other, this.options);
        }
        if (other.version === this.version) {
          return 0;
        }
        return this.compareMain(other) || this.comparePre(other);
      }
      compareMain(other) {
        if (!(other instanceof _SemVer)) {
          other = new _SemVer(other, this.options);
        }
        if (this.major < other.major) {
          return -1;
        }
        if (this.major > other.major) {
          return 1;
        }
        if (this.minor < other.minor) {
          return -1;
        }
        if (this.minor > other.minor) {
          return 1;
        }
        if (this.patch < other.patch) {
          return -1;
        }
        if (this.patch > other.patch) {
          return 1;
        }
        return 0;
      }
      comparePre(other) {
        if (!(other instanceof _SemVer)) {
          other = new _SemVer(other, this.options);
        }
        if (this.prerelease.length && !other.prerelease.length) {
          return -1;
        } else if (!this.prerelease.length && other.prerelease.length) {
          return 1;
        } else if (!this.prerelease.length && !other.prerelease.length) {
          return 0;
        }
        let i2 = 0;
        do {
          const a2 = this.prerelease[i2];
          const b2 = other.prerelease[i2];
          debug4("prerelease compare", i2, a2, b2);
          if (a2 === void 0 && b2 === void 0) {
            return 0;
          } else if (b2 === void 0) {
            return 1;
          } else if (a2 === void 0) {
            return -1;
          } else if (a2 === b2) {
            continue;
          } else {
            return compareIdentifiers(a2, b2);
          }
        } while (++i2);
      }
      compareBuild(other) {
        if (!(other instanceof _SemVer)) {
          other = new _SemVer(other, this.options);
        }
        let i2 = 0;
        do {
          const a2 = this.build[i2];
          const b2 = other.build[i2];
          debug4("build compare", i2, a2, b2);
          if (a2 === void 0 && b2 === void 0) {
            return 0;
          } else if (b2 === void 0) {
            return 1;
          } else if (a2 === void 0) {
            return -1;
          } else if (a2 === b2) {
            continue;
          } else {
            return compareIdentifiers(a2, b2);
          }
        } while (++i2);
      }
      // preminor will bump the version up to the next minor release, and immediately
      // down to pre-release. premajor and prepatch work the same way.
      inc(release, identifier, identifierBase) {
        if (release.startsWith("pre")) {
          if (!identifier && identifierBase === false) {
            throw new Error("invalid increment argument: identifier is empty");
          }
          if (identifier) {
            const match2 = `-${identifier}`.match(this.options.loose ? re[t2.PRERELEASELOOSE] : re[t2.PRERELEASE]);
            if (!match2 || match2[1] !== identifier) {
              throw new Error(`invalid identifier: ${identifier}`);
            }
          }
        }
        switch (release) {
          case "premajor":
            this.prerelease.length = 0;
            this.patch = 0;
            this.minor = 0;
            this.major++;
            this.inc("pre", identifier, identifierBase);
            break;
          case "preminor":
            this.prerelease.length = 0;
            this.patch = 0;
            this.minor++;
            this.inc("pre", identifier, identifierBase);
            break;
          case "prepatch":
            this.prerelease.length = 0;
            this.inc("patch", identifier, identifierBase);
            this.inc("pre", identifier, identifierBase);
            break;
          // If the input is a non-prerelease version, this acts the same as
          // prepatch.
          case "prerelease":
            if (this.prerelease.length === 0) {
              this.inc("patch", identifier, identifierBase);
            }
            this.inc("pre", identifier, identifierBase);
            break;
          case "release":
            if (this.prerelease.length === 0) {
              throw new Error(`version ${this.raw} is not a prerelease`);
            }
            this.prerelease.length = 0;
            break;
          case "major":
            if (this.minor !== 0 || this.patch !== 0 || this.prerelease.length === 0) {
              this.major++;
            }
            this.minor = 0;
            this.patch = 0;
            this.prerelease = [];
            break;
          case "minor":
            if (this.patch !== 0 || this.prerelease.length === 0) {
              this.minor++;
            }
            this.patch = 0;
            this.prerelease = [];
            break;
          case "patch":
            if (this.prerelease.length === 0) {
              this.patch++;
            }
            this.prerelease = [];
            break;
          // This probably shouldn't be used publicly.
          // 1.0.0 'pre' would become 1.0.0-0 which is the wrong direction.
          case "pre": {
            const base = Number(identifierBase) ? 1 : 0;
            if (this.prerelease.length === 0) {
              this.prerelease = [base];
            } else {
              let i2 = this.prerelease.length;
              while (--i2 >= 0) {
                if (typeof this.prerelease[i2] === "number") {
                  this.prerelease[i2]++;
                  i2 = -2;
                }
              }
              if (i2 === -1) {
                if (identifier === this.prerelease.join(".") && identifierBase === false) {
                  throw new Error("invalid increment argument: identifier already exists");
                }
                this.prerelease.push(base);
              }
            }
            if (identifier) {
              let prerelease = [identifier, base];
              if (identifierBase === false) {
                prerelease = [identifier];
              }
              if (isPrereleaseIdentifier(this.prerelease, identifier)) {
                const prereleaseBase = this.prerelease[identifier.split(".").length];
                if (isNaN(prereleaseBase)) {
                  this.prerelease = prerelease;
                }
              } else {
                this.prerelease = prerelease;
              }
            }
            break;
          }
          default:
            throw new Error(`invalid increment argument: ${release}`);
        }
        this.raw = this.format();
        if (this.build.length) {
          this.raw += `+${this.build.join(".")}`;
        }
        return this;
      }
    };
    module2.exports = SemVer;
  }
});

// node_modules/semver/functions/parse.js
var require_parse = __commonJS({
  "node_modules/semver/functions/parse.js"(exports2, module2) {
    "use strict";
    var SemVer = require_semver();
    var parse4 = (version2, options3, throwErrors = false) => {
      if (version2 instanceof SemVer) {
        return version2;
      }
      try {
        return new SemVer(version2, options3);
      } catch (er) {
        if (!throwErrors) {
          return null;
        }
        throw er;
      }
    };
    module2.exports = parse4;
  }
});

// node_modules/semver/functions/valid.js
var require_valid = __commonJS({
  "node_modules/semver/functions/valid.js"(exports2, module2) {
    "use strict";
    var parse4 = require_parse();
    var valid = (version2, options3) => {
      const v2 = parse4(version2, options3);
      return v2 ? v2.version : null;
    };
    module2.exports = valid;
  }
});

// node_modules/semver/functions/clean.js
var require_clean = __commonJS({
  "node_modules/semver/functions/clean.js"(exports2, module2) {
    "use strict";
    var parse4 = require_parse();
    var clean = (version2, options3) => {
      const s2 = parse4(version2.trim().replace(/^[=v]+/, ""), options3);
      return s2 ? s2.version : null;
    };
    module2.exports = clean;
  }
});

// node_modules/semver/functions/inc.js
var require_inc = __commonJS({
  "node_modules/semver/functions/inc.js"(exports2, module2) {
    "use strict";
    var SemVer = require_semver();
    var inc = (version2, release, options3, identifier, identifierBase) => {
      if (typeof options3 === "string") {
        identifierBase = identifier;
        identifier = options3;
        options3 = void 0;
      }
      try {
        return new SemVer(
          version2 instanceof SemVer ? version2.version : version2,
          options3
        ).inc(release, identifier, identifierBase).version;
      } catch (er) {
        return null;
      }
    };
    module2.exports = inc;
  }
});

// node_modules/semver/functions/diff.js
var require_diff = __commonJS({
  "node_modules/semver/functions/diff.js"(exports2, module2) {
    "use strict";
    var parse4 = require_parse();
    var diff = (version1, version2) => {
      const v1 = parse4(version1, null, true);
      const v2 = parse4(version2, null, true);
      const comparison = v1.compare(v2);
      if (comparison === 0) {
        return null;
      }
      const v1Higher = comparison > 0;
      const highVersion = v1Higher ? v1 : v2;
      const lowVersion = v1Higher ? v2 : v1;
      const highHasPre = !!highVersion.prerelease.length;
      const lowHasPre = !!lowVersion.prerelease.length;
      if (lowHasPre && !highHasPre) {
        if (!lowVersion.patch && !lowVersion.minor) {
          return "major";
        }
        if (lowVersion.compareMain(highVersion) === 0) {
          if (lowVersion.minor && !lowVersion.patch) {
            return "minor";
          }
          return "patch";
        }
      }
      const prefix2 = highHasPre ? "pre" : "";
      if (v1.major !== v2.major) {
        return prefix2 + "major";
      }
      if (v1.minor !== v2.minor) {
        return prefix2 + "minor";
      }
      if (v1.patch !== v2.patch) {
        return prefix2 + "patch";
      }
      return "prerelease";
    };
    module2.exports = diff;
  }
});

// node_modules/semver/functions/major.js
var require_major = __commonJS({
  "node_modules/semver/functions/major.js"(exports2, module2) {
    "use strict";
    var SemVer = require_semver();
    var major = (a2, loose) => new SemVer(a2, loose).major;
    module2.exports = major;
  }
});

// node_modules/semver/functions/minor.js
var require_minor = __commonJS({
  "node_modules/semver/functions/minor.js"(exports2, module2) {
    "use strict";
    var SemVer = require_semver();
    var minor = (a2, loose) => new SemVer(a2, loose).minor;
    module2.exports = minor;
  }
});

// node_modules/semver/functions/patch.js
var require_patch = __commonJS({
  "node_modules/semver/functions/patch.js"(exports2, module2) {
    "use strict";
    var SemVer = require_semver();
    var patch = (a2, loose) => new SemVer(a2, loose).patch;
    module2.exports = patch;
  }
});

// node_modules/semver/functions/prerelease.js
var require_prerelease = __commonJS({
  "node_modules/semver/functions/prerelease.js"(exports2, module2) {
    "use strict";
    var parse4 = require_parse();
    var prerelease = (version2, options3) => {
      const parsed = parse4(version2, options3);
      return parsed && parsed.prerelease.length ? parsed.prerelease : null;
    };
    module2.exports = prerelease;
  }
});

// node_modules/semver/functions/compare.js
var require_compare = __commonJS({
  "node_modules/semver/functions/compare.js"(exports2, module2) {
    "use strict";
    var SemVer = require_semver();
    var compare2 = (a2, b2, loose) => new SemVer(a2, loose).compare(new SemVer(b2, loose));
    module2.exports = compare2;
  }
});

// node_modules/semver/functions/rcompare.js
var require_rcompare = __commonJS({
  "node_modules/semver/functions/rcompare.js"(exports2, module2) {
    "use strict";
    var compare2 = require_compare();
    var rcompare = (a2, b2, loose) => compare2(b2, a2, loose);
    module2.exports = rcompare;
  }
});

// node_modules/semver/functions/compare-loose.js
var require_compare_loose = __commonJS({
  "node_modules/semver/functions/compare-loose.js"(exports2, module2) {
    "use strict";
    var compare2 = require_compare();
    var compareLoose = (a2, b2) => compare2(a2, b2, true);
    module2.exports = compareLoose;
  }
});

// node_modules/semver/functions/compare-build.js
var require_compare_build = __commonJS({
  "node_modules/semver/functions/compare-build.js"(exports2, module2) {
    "use strict";
    var SemVer = require_semver();
    var compareBuild = (a2, b2, loose) => {
      const versionA = new SemVer(a2, loose);
      const versionB = new SemVer(b2, loose);
      return versionA.compare(versionB) || versionA.compareBuild(versionB);
    };
    module2.exports = compareBuild;
  }
});

// node_modules/semver/functions/sort.js
var require_sort = __commonJS({
  "node_modules/semver/functions/sort.js"(exports2, module2) {
    "use strict";
    var compareBuild = require_compare_build();
    var sort = (list2, loose) => list2.sort((a2, b2) => compareBuild(a2, b2, loose));
    module2.exports = sort;
  }
});

// node_modules/semver/functions/rsort.js
var require_rsort = __commonJS({
  "node_modules/semver/functions/rsort.js"(exports2, module2) {
    "use strict";
    var compareBuild = require_compare_build();
    var rsort = (list2, loose) => list2.sort((a2, b2) => compareBuild(b2, a2, loose));
    module2.exports = rsort;
  }
});

// node_modules/semver/functions/gt.js
var require_gt = __commonJS({
  "node_modules/semver/functions/gt.js"(exports2, module2) {
    "use strict";
    var compare2 = require_compare();
    var gt = (a2, b2, loose) => compare2(a2, b2, loose) > 0;
    module2.exports = gt;
  }
});

// node_modules/semver/functions/lt.js
var require_lt = __commonJS({
  "node_modules/semver/functions/lt.js"(exports2, module2) {
    "use strict";
    var compare2 = require_compare();
    var lt = (a2, b2, loose) => compare2(a2, b2, loose) < 0;
    module2.exports = lt;
  }
});

// node_modules/semver/functions/eq.js
var require_eq = __commonJS({
  "node_modules/semver/functions/eq.js"(exports2, module2) {
    "use strict";
    var compare2 = require_compare();
    var eq = (a2, b2, loose) => compare2(a2, b2, loose) === 0;
    module2.exports = eq;
  }
});

// node_modules/semver/functions/neq.js
var require_neq = __commonJS({
  "node_modules/semver/functions/neq.js"(exports2, module2) {
    "use strict";
    var compare2 = require_compare();
    var neq = (a2, b2, loose) => compare2(a2, b2, loose) !== 0;
    module2.exports = neq;
  }
});

// node_modules/semver/functions/gte.js
var require_gte = __commonJS({
  "node_modules/semver/functions/gte.js"(exports2, module2) {
    "use strict";
    var compare2 = require_compare();
    var gte2 = (a2, b2, loose) => compare2(a2, b2, loose) >= 0;
    module2.exports = gte2;
  }
});

// node_modules/semver/functions/lte.js
var require_lte = __commonJS({
  "node_modules/semver/functions/lte.js"(exports2, module2) {
    "use strict";
    var compare2 = require_compare();
    var lte2 = (a2, b2, loose) => compare2(a2, b2, loose) <= 0;
    module2.exports = lte2;
  }
});

// node_modules/semver/functions/cmp.js
var require_cmp = __commonJS({
  "node_modules/semver/functions/cmp.js"(exports2, module2) {
    "use strict";
    var eq = require_eq();
    var neq = require_neq();
    var gt = require_gt();
    var gte2 = require_gte();
    var lt = require_lt();
    var lte2 = require_lte();
    var cmp = (a2, op, b2, loose) => {
      switch (op) {
        case "===":
          if (typeof a2 === "object") {
            a2 = a2.version;
          }
          if (typeof b2 === "object") {
            b2 = b2.version;
          }
          return a2 === b2;
        case "!==":
          if (typeof a2 === "object") {
            a2 = a2.version;
          }
          if (typeof b2 === "object") {
            b2 = b2.version;
          }
          return a2 !== b2;
        case "":
        case "=":
        case "==":
          return eq(a2, b2, loose);
        case "!=":
          return neq(a2, b2, loose);
        case ">":
          return gt(a2, b2, loose);
        case ">=":
          return gte2(a2, b2, loose);
        case "<":
          return lt(a2, b2, loose);
        case "<=":
          return lte2(a2, b2, loose);
        default:
          throw new TypeError(`Invalid operator: ${op}`);
      }
    };
    module2.exports = cmp;
  }
});

// node_modules/semver/functions/coerce.js
var require_coerce = __commonJS({
  "node_modules/semver/functions/coerce.js"(exports2, module2) {
    "use strict";
    var SemVer = require_semver();
    var parse4 = require_parse();
    var { safeRe: re, t: t2 } = require_re();
    var coerce = (version2, options3) => {
      if (version2 instanceof SemVer) {
        return version2;
      }
      if (typeof version2 === "number") {
        version2 = String(version2);
      }
      if (typeof version2 !== "string") {
        return null;
      }
      options3 = options3 || {};
      let match2 = null;
      if (!options3.rtl) {
        match2 = version2.match(options3.includePrerelease ? re[t2.COERCEFULL] : re[t2.COERCE]);
      } else {
        const coerceRtlRegex = options3.includePrerelease ? re[t2.COERCERTLFULL] : re[t2.COERCERTL];
        let next;
        while ((next = coerceRtlRegex.exec(version2)) && (!match2 || match2.index + match2[0].length !== version2.length)) {
          if (!match2 || next.index + next[0].length !== match2.index + match2[0].length) {
            match2 = next;
          }
          coerceRtlRegex.lastIndex = next.index + next[1].length + next[2].length;
        }
        coerceRtlRegex.lastIndex = -1;
      }
      if (match2 === null) {
        return null;
      }
      const major = match2[2];
      const minor = match2[3] || "0";
      const patch = match2[4] || "0";
      const prerelease = options3.includePrerelease && match2[5] ? `-${match2[5]}` : "";
      const build2 = options3.includePrerelease && match2[6] ? `+${match2[6]}` : "";
      return parse4(`${major}.${minor}.${patch}${prerelease}${build2}`, options3);
    };
    module2.exports = coerce;
  }
});

// node_modules/semver/functions/truncate.js
var require_truncate = __commonJS({
  "node_modules/semver/functions/truncate.js"(exports2, module2) {
    "use strict";
    var parse4 = require_parse();
    var constants = require_constants();
    var SemVer = require_semver();
    var truncate = (version2, truncation, options3) => {
      if (!constants.RELEASE_TYPES.includes(truncation)) {
        return null;
      }
      const clonedVersion = cloneInputVersion(version2, options3);
      return clonedVersion && doTruncation(clonedVersion, truncation);
    };
    var cloneInputVersion = (version2, options3) => {
      const versionStringToParse = version2 instanceof SemVer ? version2.version : version2;
      return parse4(versionStringToParse, options3);
    };
    var doTruncation = (version2, truncation) => {
      if (isPrerelease(truncation)) {
        return version2.version;
      }
      version2.prerelease = [];
      switch (truncation) {
        case "major":
          version2.minor = 0;
          version2.patch = 0;
          break;
        case "minor":
          version2.patch = 0;
          break;
      }
      return version2.format();
    };
    var isPrerelease = (type) => {
      return type.startsWith("pre");
    };
    module2.exports = truncate;
  }
});

// node_modules/semver/internal/lrucache.js
var require_lrucache = __commonJS({
  "node_modules/semver/internal/lrucache.js"(exports2, module2) {
    "use strict";
    var LRUCache2 = class {
      constructor() {
        this.max = 1e3;
        this.map = /* @__PURE__ */ new Map();
      }
      get(key) {
        const value = this.map.get(key);
        if (value === void 0) {
          return void 0;
        } else {
          this.map.delete(key);
          this.map.set(key, value);
          return value;
        }
      }
      delete(key) {
        return this.map.delete(key);
      }
      set(key, value) {
        const deleted = this.delete(key);
        if (!deleted && value !== void 0) {
          if (this.map.size >= this.max) {
            const firstKey = this.map.keys().next().value;
            this.delete(firstKey);
          }
          this.map.set(key, value);
        }
        return this;
      }
    };
    module2.exports = LRUCache2;
  }
});

// node_modules/semver/internal/trim-comparator-whitespace.js
var require_trim_comparator_whitespace = __commonJS({
  "node_modules/semver/internal/trim-comparator-whitespace.js"(exports2, module2) {
    "use strict";
    var {
      MAX_LENGTH,
      MAX_SAFE_BUILD_LENGTH,
      WHITESPACE_CHARACTERS
    } = require_constants();
    var whitespace = new Uint8Array(65536);
    for (const char of WHITESPACE_CHARACTERS) {
      whitespace[char.charCodeAt(0)] = 1;
    }
    var isWhitespace = (char) => char !== void 0 && whitespace[char.charCodeAt(0)] === 1;
    var isVersionPrefix = (char) => char === "v" || char === "=" || isWhitespace(char);
    var isDigit2 = (char) => char !== void 0 && char >= "0" && char <= "9";
    var isLetter = (char) => char !== void 0 && (char >= "a" && char <= "z" || char >= "A" && char <= "Z");
    var isIdentifierCharacter = (char) => isDigit2(char) || isLetter(char) || char === "-";
    var isVersionStart = (char) => isDigit2(char) || char === "x" || char === "X" || char === "*";
    var findDigitsEndIndex = (range2, start, limit, digitRuns) => {
      if (!isDigit2(range2[start])) {
        return start;
      }
      if (start >= digitRuns.start && start < digitRuns.end) {
        return Math.min(start + limit, digitRuns.end);
      }
      if (start >= digitRuns.previousStart && start < digitRuns.previousEnd) {
        return Math.min(start + limit, digitRuns.previousEnd);
      }
      let end = start + 1;
      while (isDigit2(range2[end])) {
        end++;
      }
      digitRuns.previousStart = digitRuns.start;
      digitRuns.previousEnd = digitRuns.end;
      digitRuns.start = start;
      digitRuns.end = end;
      return Math.min(start + limit, end);
    };
    var findVersionNumberEndIndex = (range2, start, loose, digitRuns) => {
      if (!loose && range2[start] === "0") {
        return start + 1;
      }
      return findDigitsEndIndex(range2, start, loose ? MAX_LENGTH : MAX_LENGTH + 1, digitRuns);
    };
    var findPrereleaseIdentifierEndIndex = (range2, start, loose, digitRuns) => {
      const digitsEnd = findDigitsEndIndex(range2, start, MAX_LENGTH, digitRuns);
      if (isLetter(range2[digitsEnd]) || range2[digitsEnd] === "-") {
        let end = digitsEnd + 1;
        const limit = end + MAX_SAFE_BUILD_LENGTH;
        while (end < limit && isIdentifierCharacter(range2[end])) {
          end++;
        }
        return end;
      }
      return findVersionNumberEndIndex(range2, start, loose, digitRuns);
    };
    var findPrereleaseEndIndex = (range2, start, loose, digitRuns) => {
      const hyphen = range2[start] === "-";
      if (!loose && !hyphen) {
        return start;
      }
      const identifierStart = start + (hyphen ? 1 : 0);
      let end = findPrereleaseIdentifierEndIndex(range2, identifierStart, loose, digitRuns);
      if (end === identifierStart) {
        if (!loose || !hyphen) {
          return start;
        }
        end = findPrereleaseIdentifierEndIndex(range2, start, loose, digitRuns);
      }
      while (range2[end] === ".") {
        const next = findPrereleaseIdentifierEndIndex(range2, end + 1, loose, digitRuns);
        if (next === end + 1) {
          break;
        }
        end = next;
      }
      return end;
    };
    var findBuildIdentifierEndIndex = (range2, start) => {
      let end = start;
      while (end - start < MAX_SAFE_BUILD_LENGTH && isIdentifierCharacter(range2[end])) {
        end++;
      }
      return end;
    };
    var findBuildEndIndex = (range2, start) => {
      if (range2[start] !== "+") {
        return start;
      }
      let end = findBuildIdentifierEndIndex(range2, start + 1);
      if (end === start + 1) {
        return start;
      }
      while (range2[end] === ".") {
        const next = findBuildIdentifierEndIndex(range2, end + 1);
        if (next === end + 1) {
          break;
        }
        end = next;
      }
      return end;
    };
    var findLooseFullVersionEndIndex = (range2, start, digitRuns) => {
      let end = start;
      for (let component = 0; component < 3; component++) {
        const next = findVersionNumberEndIndex(range2, end, true, digitRuns);
        if (next === end) {
          return start;
        }
        end = next;
        if (component < 2) {
          if (range2[end] !== ".") {
            return start;
          }
          end++;
        }
      }
      const prereleaseEnd = findPrereleaseEndIndex(range2, end, true, digitRuns);
      return findBuildEndIndex(range2, prereleaseEnd);
    };
    var findPartialVersionComponentEndIndex = (range2, start, digitRuns) => {
      if (isDigit2(range2[start])) {
        return findVersionNumberEndIndex(range2, start, false, digitRuns);
      }
      return isVersionStart(range2[start]) ? start + 1 : start;
    };
    var findPartialVersionEndIndex = (range2, start, digitRuns) => {
      let end = findPartialVersionComponentEndIndex(range2, start, digitRuns);
      for (let component = 0; component < 2; component++) {
        if (range2[end] !== ".") {
          return end;
        }
        const next = findPartialVersionComponentEndIndex(range2, end + 1, digitRuns);
        if (next === end + 1) {
          return end;
        }
        end = next;
      }
      const prereleaseEnd = findPrereleaseEndIndex(range2, end, false, digitRuns);
      return findBuildEndIndex(range2, prereleaseEnd);
    };
    var findVersionEndIndex = (range2, start, digitRuns) => {
      const fullVersionEnd = findLooseFullVersionEndIndex(range2, start, digitRuns);
      return fullVersionEnd !== start ? fullVersionEnd : findPartialVersionEndIndex(range2, start, digitRuns);
    };
    var findRemovableWhitespaceIndex = (range2, matchStart) => {
      let position = matchStart;
      if (isWhitespace(range2[position])) {
        position++;
      }
      if (range2[position] === "<" || range2[position] === ">") {
        position++;
      }
      if (range2[position] === "=") {
        position++;
      }
      return isWhitespace(range2[position]) ? position : -1;
    };
    var trimComparatorWhitespace = (range2) => {
      let result = "";
      let copyFrom = 0;
      let cursor = 0;
      const digitRuns = { start: -1, end: -1, previousStart: -1, previousEnd: -1 };
      while (cursor < range2.length) {
        const matchStart = cursor;
        if (range2[cursor] === "<" || range2[cursor] === ">") {
          cursor++;
        } else if (!isVersionPrefix(range2[cursor]) && !isVersionStart(range2[cursor])) {
          cursor++;
          continue;
        }
        while (cursor < range2.length && isVersionPrefix(range2[cursor])) {
          cursor++;
        }
        if (!isVersionStart(range2[cursor])) {
          continue;
        }
        const whitespacePosition = findRemovableWhitespaceIndex(range2, matchStart);
        if (whitespacePosition !== -1) {
          result += range2.slice(copyFrom, whitespacePosition);
          copyFrom = whitespacePosition + 1;
        }
        cursor = findVersionEndIndex(range2, cursor, digitRuns);
      }
      return result + range2.slice(copyFrom);
    };
    module2.exports = trimComparatorWhitespace;
  }
});

// node_modules/semver/classes/range.js
var require_range = __commonJS({
  "node_modules/semver/classes/range.js"(exports2, module2) {
    "use strict";
    var SPACE_CHARACTERS = /\s+/g;
    var Range11 = class _Range {
      constructor(range2, options3) {
        options3 = parseOptions(options3);
        if (range2 instanceof _Range) {
          if (range2.loose === !!options3.loose && range2.includePrerelease === !!options3.includePrerelease) {
            return range2;
          } else {
            return new _Range(range2.raw, options3);
          }
        }
        if (range2 instanceof Comparator) {
          this.raw = range2.value;
          this.set = [[range2]];
          this.formatted = void 0;
          return this;
        }
        this.options = options3;
        this.loose = !!options3.loose;
        this.includePrerelease = !!options3.includePrerelease;
        this.raw = range2.trim().replace(SPACE_CHARACTERS, " ");
        this.set = this.raw.split("||").map((r2) => this.parseRange(r2.trim())).filter((c2) => c2.length);
        if (!this.set.length) {
          throw new TypeError(`Invalid SemVer Range: ${this.raw}`);
        }
        if (this.set.length > 1) {
          const first = this.set[0];
          this.set = this.set.filter((c2) => !isNullSet(c2[0]));
          if (this.set.length === 0) {
            this.set = [first];
          } else if (this.set.length > 1) {
            for (const c2 of this.set) {
              if (c2.length === 1 && isAny(c2[0])) {
                this.set = [c2];
                break;
              }
            }
          }
        }
        this.formatted = void 0;
      }
      get range() {
        if (this.formatted === void 0) {
          this.formatted = "";
          for (let i2 = 0; i2 < this.set.length; i2++) {
            if (i2 > 0) {
              this.formatted += "||";
            }
            const comps = this.set[i2];
            for (let k = 0; k < comps.length; k++) {
              if (k > 0) {
                this.formatted += " ";
              }
              this.formatted += comps[k].toString().trim();
            }
          }
        }
        return this.formatted;
      }
      format() {
        return this.range;
      }
      toString() {
        return this.range;
      }
      parseRange(range2) {
        range2 = range2.replace(BUILDSTRIPRE, "");
        const memoOpts = (this.options.includePrerelease && FLAG_INCLUDE_PRERELEASE) | (this.options.loose && FLAG_LOOSE);
        const memoKey = memoOpts + ":" + range2;
        const cached = cache2.get(memoKey);
        if (cached) {
          return cached;
        }
        const loose = this.options.loose;
        const hr = loose ? re[t2.HYPHENRANGELOOSE] : re[t2.HYPHENRANGE];
        range2 = range2.replace(hr, hyphenReplace(this.options.includePrerelease));
        debug4("hyphen replace", range2);
        range2 = trimComparatorWhitespace(range2);
        debug4("comparator trim", range2);
        range2 = range2.replace(re[t2.TILDETRIM], tildeTrimReplace);
        debug4("tilde trim", range2);
        range2 = range2.replace(re[t2.CARETTRIM], caretTrimReplace);
        debug4("caret trim", range2);
        let rangeList = range2.split(" ").map((comp) => parseComparator(comp, this.options)).join(" ").split(/\s+/).map((comp) => replaceGTE0(comp, this.options));
        if (loose) {
          rangeList = rangeList.filter((comp) => {
            debug4("loose invalid filter", comp, this.options);
            return !!comp.match(re[t2.COMPARATORLOOSE]);
          });
        }
        debug4("range list", rangeList);
        const rangeMap = /* @__PURE__ */ new Map();
        const comparators = rangeList.map((comp) => new Comparator(comp, this.options));
        for (const comp of comparators) {
          if (isNullSet(comp)) {
            return [comp];
          }
          rangeMap.set(comp.value, comp);
        }
        if (rangeMap.size > 1 && rangeMap.has("")) {
          rangeMap.delete("");
        }
        const result = [...rangeMap.values()];
        cache2.set(memoKey, result);
        return result;
      }
      intersects(range2, options3) {
        if (!(range2 instanceof _Range)) {
          throw new TypeError("a Range is required");
        }
        return this.set.some((thisComparators) => {
          return isSatisfiable(thisComparators, options3) && range2.set.some((rangeComparators) => {
            return isSatisfiable(rangeComparators, options3) && thisComparators.every((thisComparator) => {
              return rangeComparators.every((rangeComparator) => {
                return thisComparator.intersects(rangeComparator, options3);
              });
            });
          });
        });
      }
      // if ANY of the sets match ALL of its comparators, then pass
      test(version2) {
        if (!version2) {
          return false;
        }
        if (typeof version2 === "string") {
          try {
            version2 = new SemVer(version2, this.options);
          } catch (er) {
            return false;
          }
        }
        for (let i2 = 0; i2 < this.set.length; i2++) {
          if (testSet(this.set[i2], version2, this.options)) {
            return true;
          }
        }
        return false;
      }
    };
    module2.exports = Range11;
    var LRU = require_lrucache();
    var cache2 = new LRU();
    var parseOptions = require_parse_options();
    var Comparator = require_comparator();
    var debug4 = require_debug();
    var SemVer = require_semver();
    var trimComparatorWhitespace = require_trim_comparator_whitespace();
    var {
      safeRe: re,
      src,
      t: t2,
      tildeTrimReplace,
      caretTrimReplace
    } = require_re();
    var { FLAG_INCLUDE_PRERELEASE, FLAG_LOOSE } = require_constants();
    var BUILDSTRIPRE = new RegExp(src[t2.BUILD], "g");
    var isNullSet = (c2) => c2.value === "<0.0.0-0";
    var isAny = (c2) => c2.value === "";
    var isSatisfiable = (comparators, options3) => {
      let result = true;
      const remainingComparators = comparators.slice();
      let testComparator = remainingComparators.pop();
      while (result && remainingComparators.length) {
        result = remainingComparators.every((otherComparator) => {
          return testComparator.intersects(otherComparator, options3);
        });
        testComparator = remainingComparators.pop();
      }
      return result;
    };
    var parseComparator = (comp, options3) => {
      comp = comp.replace(re[t2.BUILD], "");
      debug4("comp", comp, options3);
      comp = replaceCarets(comp, options3);
      debug4("caret", comp);
      comp = replaceTildes(comp, options3);
      debug4("tildes", comp);
      comp = replaceXRanges(comp, options3);
      debug4("xrange", comp);
      comp = replaceStars(comp, options3);
      debug4("stars", comp);
      return comp;
    };
    var isX = (id2) => !id2 || id2.toLowerCase() === "x" || id2 === "*";
    var invalidXRangeOrder = (M, m2, p2) => isX(M) && !isX(m2) || isX(m2) && p2 && !isX(p2);
    var replaceTildes = (comp, options3) => {
      return comp.trim().split(/\s+/).map((c2) => replaceTilde(c2, options3)).join(" ");
    };
    var replaceTilde = (comp, options3) => {
      const r2 = options3.loose ? re[t2.TILDELOOSE] : re[t2.TILDE];
      const z = options3.includePrerelease ? "-0" : "";
      return comp.replace(r2, (_2, M, m2, p2, pr) => {
        debug4("tilde", comp, _2, M, m2, p2, pr);
        let ret;
        if (isX(M)) {
          ret = "";
        } else if (isX(m2)) {
          ret = `>=${M}.0.0${z} <${+M + 1}.0.0-0`;
        } else if (isX(p2)) {
          ret = `>=${M}.${m2}.0${z} <${M}.${+m2 + 1}.0-0`;
        } else if (pr) {
          debug4("replaceTilde pr", pr);
          ret = `>=${M}.${m2}.${p2}-${pr} <${M}.${+m2 + 1}.0-0`;
        } else {
          ret = `>=${M}.${m2}.${p2} <${M}.${+m2 + 1}.0-0`;
        }
        debug4("tilde return", ret);
        return ret;
      });
    };
    var replaceCarets = (comp, options3) => {
      return comp.trim().split(/\s+/).map((c2) => replaceCaret(c2, options3)).join(" ");
    };
    var replaceCaret = (comp, options3) => {
      debug4("caret", comp, options3);
      const r2 = options3.loose ? re[t2.CARETLOOSE] : re[t2.CARET];
      const z = options3.includePrerelease ? "-0" : "";
      return comp.replace(r2, (_2, M, m2, p2, pr) => {
        debug4("caret", comp, _2, M, m2, p2, pr);
        let ret;
        if (isX(M)) {
          ret = "";
        } else if (isX(m2)) {
          ret = `>=${M}.0.0${z} <${+M + 1}.0.0-0`;
        } else if (isX(p2)) {
          if (M === "0") {
            ret = `>=${M}.${m2}.0${z} <${M}.${+m2 + 1}.0-0`;
          } else {
            ret = `>=${M}.${m2}.0${z} <${+M + 1}.0.0-0`;
          }
        } else if (pr) {
          debug4("replaceCaret pr", pr);
          if (M === "0") {
            if (m2 === "0") {
              ret = `>=${M}.${m2}.${p2}-${pr} <${M}.${m2}.${+p2 + 1}-0`;
            } else {
              ret = `>=${M}.${m2}.${p2}-${pr} <${M}.${+m2 + 1}.0-0`;
            }
          } else {
            ret = `>=${M}.${m2}.${p2}-${pr} <${+M + 1}.0.0-0`;
          }
        } else {
          debug4("no pr");
          if (M === "0") {
            if (m2 === "0") {
              ret = `>=${M}.${m2}.${p2} <${M}.${m2}.${+p2 + 1}-0`;
            } else {
              ret = `>=${M}.${m2}.${p2} <${M}.${+m2 + 1}.0-0`;
            }
          } else {
            ret = `>=${M}.${m2}.${p2} <${+M + 1}.0.0-0`;
          }
        }
        debug4("caret return", ret);
        return ret;
      });
    };
    var replaceXRanges = (comp, options3) => {
      debug4("replaceXRanges", comp, options3);
      return comp.split(/\s+/).map((c2) => replaceXRange(c2, options3)).join(" ");
    };
    var replaceXRange = (comp, options3) => {
      comp = comp.trim();
      const r2 = options3.loose ? re[t2.XRANGELOOSE] : re[t2.XRANGE];
      return comp.replace(r2, (ret, gtlt, M, m2, p2, pr) => {
        debug4("xRange", comp, ret, gtlt, M, m2, p2, pr);
        if (invalidXRangeOrder(M, m2, p2)) {
          return comp;
        }
        const xM = isX(M);
        const xm = xM || isX(m2);
        const xp = xm || isX(p2);
        const anyX = xp;
        if (gtlt === "=" && anyX) {
          gtlt = "";
        }
        pr = options3.includePrerelease ? "-0" : "";
        if (xM) {
          if (gtlt === ">" || gtlt === "<") {
            ret = "<0.0.0-0";
          } else {
            ret = "*";
          }
        } else if (gtlt && anyX) {
          if (xm) {
            m2 = 0;
          }
          p2 = 0;
          if (gtlt === ">") {
            gtlt = ">=";
            if (xm) {
              M = +M + 1;
              m2 = 0;
              p2 = 0;
            } else {
              m2 = +m2 + 1;
              p2 = 0;
            }
          } else if (gtlt === "<=") {
            gtlt = "<";
            if (xm) {
              M = +M + 1;
            } else {
              m2 = +m2 + 1;
            }
          }
          if (gtlt === "<") {
            pr = "-0";
          }
          ret = `${gtlt + M}.${m2}.${p2}${pr}`;
        } else if (xm) {
          ret = `>=${M}.0.0${pr} <${+M + 1}.0.0-0`;
        } else if (xp) {
          ret = `>=${M}.${m2}.0${pr} <${M}.${+m2 + 1}.0-0`;
        }
        debug4("xRange return", ret);
        return ret;
      });
    };
    var replaceStars = (comp, options3) => {
      debug4("replaceStars", comp, options3);
      return comp.trim().replace(re[t2.STAR], "");
    };
    var replaceGTE0 = (comp, options3) => {
      debug4("replaceGTE0", comp, options3);
      return comp.trim().replace(re[options3.includePrerelease ? t2.GTE0PRE : t2.GTE0], "");
    };
    var hyphenReplace = (incPr) => ($0, from, fM, fm, fp, fpr, fb, to, tM, tm, tp, tpr) => {
      if (isX(fM)) {
        from = "";
      } else if (isX(fm)) {
        from = `>=${fM}.0.0${incPr ? "-0" : ""}`;
      } else if (isX(fp)) {
        from = `>=${fM}.${fm}.0${incPr ? "-0" : ""}`;
      } else if (fpr) {
        from = `>=${from}`;
      } else {
        from = `>=${from}${incPr ? "-0" : ""}`;
      }
      if (isX(tM)) {
        to = "";
      } else if (isX(tm)) {
        to = `<${+tM + 1}.0.0-0`;
      } else if (isX(tp)) {
        to = `<${tM}.${+tm + 1}.0-0`;
      } else if (tpr) {
        to = `<=${tM}.${tm}.${tp}-${tpr}`;
      } else if (incPr) {
        to = `<${tM}.${tm}.${+tp + 1}-0`;
      } else {
        to = `<=${to}`;
      }
      return `${from} ${to}`.trim();
    };
    var testSet = (set, version2, options3) => {
      for (let i2 = 0; i2 < set.length; i2++) {
        if (!set[i2].test(version2)) {
          return false;
        }
      }
      if (version2.prerelease.length && !options3.includePrerelease) {
        for (let i2 = 0; i2 < set.length; i2++) {
          debug4(set[i2].semver);
          if (set[i2].semver === Comparator.ANY) {
            continue;
          }
          if (set[i2].semver.prerelease.length > 0) {
            const allowed = set[i2].semver;
            if (allowed.major === version2.major && allowed.minor === version2.minor && allowed.patch === version2.patch) {
              return true;
            }
          }
        }
        return false;
      }
      return true;
    };
  }
});

// node_modules/semver/classes/comparator.js
var require_comparator = __commonJS({
  "node_modules/semver/classes/comparator.js"(exports2, module2) {
    "use strict";
    var ANY = /* @__PURE__ */ Symbol("SemVer ANY");
    var Comparator = class _Comparator {
      static get ANY() {
        return ANY;
      }
      constructor(comp, options3) {
        options3 = parseOptions(options3);
        if (comp instanceof _Comparator) {
          if (comp.loose === !!options3.loose) {
            return comp;
          } else {
            comp = comp.value;
          }
        }
        comp = comp.trim().split(/\s+/).join(" ");
        debug4("comparator", comp, options3);
        this.options = options3;
        this.loose = !!options3.loose;
        this.parse(comp);
        if (this.semver === ANY) {
          this.value = "";
        } else {
          this.value = this.operator + this.semver.version;
        }
        debug4("comp", this);
      }
      parse(comp) {
        const r2 = this.options.loose ? re[t2.COMPARATORLOOSE] : re[t2.COMPARATOR];
        const m2 = comp.match(r2);
        if (!m2) {
          throw new TypeError(`Invalid comparator: ${comp}`);
        }
        this.operator = m2[1] !== void 0 ? m2[1] : "";
        if (this.operator === "=") {
          this.operator = "";
        }
        if (!m2[2]) {
          this.semver = ANY;
        } else {
          this.semver = new SemVer(m2[2], this.options.loose);
        }
      }
      toString() {
        return this.value;
      }
      test(version2) {
        debug4("Comparator.test", version2, this.options.loose);
        if (this.semver === ANY || version2 === ANY) {
          return true;
        }
        if (typeof version2 === "string") {
          try {
            version2 = new SemVer(version2, this.options);
          } catch (er) {
            return false;
          }
        }
        return cmp(version2, this.operator, this.semver, this.options);
      }
      intersects(comp, options3) {
        if (!(comp instanceof _Comparator)) {
          throw new TypeError("a Comparator is required");
        }
        if (this.operator === "") {
          if (this.value === "") {
            return true;
          }
          return new Range11(comp.value, options3).test(this.value);
        } else if (comp.operator === "") {
          if (comp.value === "") {
            return true;
          }
          return new Range11(this.value, options3).test(comp.semver);
        }
        options3 = parseOptions(options3);
        if (options3.includePrerelease && (this.value === "<0.0.0-0" || comp.value === "<0.0.0-0")) {
          return false;
        }
        if (!options3.includePrerelease && (this.value.startsWith("<0.0.0") || comp.value.startsWith("<0.0.0"))) {
          return false;
        }
        if (this.operator.startsWith(">") && comp.operator.startsWith(">")) {
          return true;
        }
        if (this.operator.startsWith("<") && comp.operator.startsWith("<")) {
          return true;
        }
        if (this.semver.version === comp.semver.version && this.operator.includes("=") && comp.operator.includes("=")) {
          return true;
        }
        if (cmp(this.semver, "<", comp.semver, options3) && this.operator.startsWith(">") && comp.operator.startsWith("<")) {
          return true;
        }
        if (cmp(this.semver, ">", comp.semver, options3) && this.operator.startsWith("<") && comp.operator.startsWith(">")) {
          return true;
        }
        return false;
      }
    };
    module2.exports = Comparator;
    var parseOptions = require_parse_options();
    var { safeRe: re, t: t2 } = require_re();
    var cmp = require_cmp();
    var debug4 = require_debug();
    var SemVer = require_semver();
    var Range11 = require_range();
  }
});

// node_modules/semver/functions/satisfies.js
var require_satisfies = __commonJS({
  "node_modules/semver/functions/satisfies.js"(exports2, module2) {
    "use strict";
    var Range11 = require_range();
    var satisfies = (version2, range2, options3) => {
      try {
        range2 = new Range11(range2, options3);
      } catch (er) {
        return false;
      }
      return range2.test(version2);
    };
    module2.exports = satisfies;
  }
});

// node_modules/semver/ranges/to-comparators.js
var require_to_comparators = __commonJS({
  "node_modules/semver/ranges/to-comparators.js"(exports2, module2) {
    "use strict";
    var Range11 = require_range();
    var toComparators = (range2, options3) => new Range11(range2, options3).set.map((comp) => comp.map((c2) => c2.value).join(" ").trim().split(" "));
    module2.exports = toComparators;
  }
});

// node_modules/semver/ranges/max-satisfying.js
var require_max_satisfying = __commonJS({
  "node_modules/semver/ranges/max-satisfying.js"(exports2, module2) {
    "use strict";
    var SemVer = require_semver();
    var Range11 = require_range();
    var maxSatisfying = (versions, range2, options3) => {
      let max = null;
      let maxSV = null;
      let rangeObj = null;
      try {
        rangeObj = new Range11(range2, options3);
      } catch (er) {
        return null;
      }
      versions.forEach((v2) => {
        if (rangeObj.test(v2)) {
          if (!max || maxSV.compare(v2) === -1) {
            max = v2;
            maxSV = new SemVer(max, options3);
          }
        }
      });
      return max;
    };
    module2.exports = maxSatisfying;
  }
});

// node_modules/semver/ranges/min-satisfying.js
var require_min_satisfying = __commonJS({
  "node_modules/semver/ranges/min-satisfying.js"(exports2, module2) {
    "use strict";
    var SemVer = require_semver();
    var Range11 = require_range();
    var minSatisfying = (versions, range2, options3) => {
      let min = null;
      let minSV = null;
      let rangeObj = null;
      try {
        rangeObj = new Range11(range2, options3);
      } catch (er) {
        return null;
      }
      versions.forEach((v2) => {
        if (rangeObj.test(v2)) {
          if (!min || minSV.compare(v2) === 1) {
            min = v2;
            minSV = new SemVer(min, options3);
          }
        }
      });
      return min;
    };
    module2.exports = minSatisfying;
  }
});

// node_modules/semver/ranges/min-version.js
var require_min_version = __commonJS({
  "node_modules/semver/ranges/min-version.js"(exports2, module2) {
    "use strict";
    var SemVer = require_semver();
    var Range11 = require_range();
    var gt = require_gt();
    var minVersion = (range2, loose) => {
      range2 = new Range11(range2, loose);
      let minver = new SemVer("0.0.0");
      if (range2.test(minver)) {
        return minver;
      }
      minver = new SemVer("0.0.0-0");
      if (range2.test(minver)) {
        return minver;
      }
      minver = null;
      for (let i2 = 0; i2 < range2.set.length; ++i2) {
        const comparators = range2.set[i2];
        let setMin = null;
        comparators.forEach((comparator) => {
          const compver = new SemVer(comparator.semver.version);
          switch (comparator.operator) {
            case ">":
              if (compver.prerelease.length === 0) {
                compver.patch++;
              } else {
                compver.prerelease.push(0);
              }
              compver.raw = compver.format();
            /* fallthrough */
            case "":
            case ">=":
              if (!setMin || gt(compver, setMin)) {
                setMin = compver;
              }
              break;
            case "<":
            case "<=":
              break;
            /* istanbul ignore next */
            default:
              throw new Error(`Unexpected operation: ${comparator.operator}`);
          }
        });
        if (setMin && (!minver || gt(minver, setMin))) {
          minver = setMin;
        }
      }
      if (minver && range2.test(minver)) {
        return minver;
      }
      return null;
    };
    module2.exports = minVersion;
  }
});

// node_modules/semver/ranges/valid.js
var require_valid2 = __commonJS({
  "node_modules/semver/ranges/valid.js"(exports2, module2) {
    "use strict";
    var Range11 = require_range();
    var validRange2 = (range2, options3) => {
      try {
        return new Range11(range2, options3).range || "*";
      } catch (er) {
        return null;
      }
    };
    module2.exports = validRange2;
  }
});

// node_modules/semver/ranges/outside.js
var require_outside = __commonJS({
  "node_modules/semver/ranges/outside.js"(exports2, module2) {
    "use strict";
    var SemVer = require_semver();
    var Comparator = require_comparator();
    var { ANY } = Comparator;
    var Range11 = require_range();
    var satisfies = require_satisfies();
    var gt = require_gt();
    var lt = require_lt();
    var lte2 = require_lte();
    var gte2 = require_gte();
    var outside = (version2, range2, hilo, options3) => {
      version2 = new SemVer(version2, options3);
      range2 = new Range11(range2, options3);
      let gtfn, ltefn, ltfn, comp, ecomp;
      switch (hilo) {
        case ">":
          gtfn = gt;
          ltefn = lte2;
          ltfn = lt;
          comp = ">";
          ecomp = ">=";
          break;
        case "<":
          gtfn = lt;
          ltefn = gte2;
          ltfn = gt;
          comp = "<";
          ecomp = "<=";
          break;
        default:
          throw new TypeError('Must provide a hilo val of "<" or ">"');
      }
      if (satisfies(version2, range2, options3)) {
        return false;
      }
      for (let i2 = 0; i2 < range2.set.length; ++i2) {
        const comparators = range2.set[i2];
        let high = null;
        let low = null;
        comparators.forEach((comparator) => {
          if (comparator.semver === ANY) {
            comparator = new Comparator(">=0.0.0");
          }
          high = high || comparator;
          low = low || comparator;
          if (gtfn(comparator.semver, high.semver, options3)) {
            high = comparator;
          } else if (ltfn(comparator.semver, low.semver, options3)) {
            low = comparator;
          }
        });
        if (high.operator === comp || high.operator === ecomp) {
          return false;
        }
        if ((!low.operator || low.operator === comp) && ltefn(version2, low.semver)) {
          return false;
        } else if (low.operator === ecomp && ltfn(version2, low.semver)) {
          return false;
        }
      }
      return true;
    };
    module2.exports = outside;
  }
});

// node_modules/semver/ranges/gtr.js
var require_gtr = __commonJS({
  "node_modules/semver/ranges/gtr.js"(exports2, module2) {
    "use strict";
    var outside = require_outside();
    var gtr = (version2, range2, options3) => outside(version2, range2, ">", options3);
    module2.exports = gtr;
  }
});

// node_modules/semver/ranges/ltr.js
var require_ltr = __commonJS({
  "node_modules/semver/ranges/ltr.js"(exports2, module2) {
    "use strict";
    var outside = require_outside();
    var ltr = (version2, range2, options3) => outside(version2, range2, "<", options3);
    module2.exports = ltr;
  }
});

// node_modules/semver/ranges/intersects.js
var require_intersects = __commonJS({
  "node_modules/semver/ranges/intersects.js"(exports2, module2) {
    "use strict";
    var Range11 = require_range();
    var intersects = (r1, r2, options3) => {
      r1 = new Range11(r1, options3);
      r2 = new Range11(r2, options3);
      return r1.intersects(r2, options3);
    };
    module2.exports = intersects;
  }
});

// node_modules/semver/ranges/simplify.js
var require_simplify = __commonJS({
  "node_modules/semver/ranges/simplify.js"(exports2, module2) {
    "use strict";
    var satisfies = require_satisfies();
    var compare2 = require_compare();
    module2.exports = (versions, range2, options3) => {
      const set = [];
      let first = null;
      let prev = null;
      const v2 = versions.sort((a2, b2) => compare2(a2, b2, options3));
      for (const version2 of v2) {
        const included = satisfies(version2, range2, options3);
        if (included) {
          prev = version2;
          if (!first) {
            first = version2;
          }
        } else {
          if (prev) {
            set.push([first, prev]);
          }
          prev = null;
          first = null;
        }
      }
      if (first) {
        set.push([first, null]);
      }
      const ranges = [];
      for (const [min, max] of set) {
        if (min === max) {
          ranges.push(min);
        } else if (!max && min === v2[0]) {
          ranges.push("*");
        } else if (!max) {
          ranges.push(`>=${min}`);
        } else if (min === v2[0]) {
          ranges.push(`<=${max}`);
        } else {
          ranges.push(`${min} - ${max}`);
        }
      }
      const simplified = ranges.join(" || ");
      const original = typeof range2.raw === "string" ? range2.raw : String(range2);
      return simplified.length < original.length ? simplified : range2;
    };
  }
});

// node_modules/semver/ranges/subset.js
var require_subset = __commonJS({
  "node_modules/semver/ranges/subset.js"(exports2, module2) {
    "use strict";
    var Range11 = require_range();
    var Comparator = require_comparator();
    var { ANY } = Comparator;
    var satisfies = require_satisfies();
    var compare2 = require_compare();
    var subset = (sub, dom, options3 = {}) => {
      if (sub === dom) {
        return true;
      }
      sub = new Range11(sub, options3);
      dom = new Range11(dom, options3);
      let sawNonNull = false;
      OUTER: for (const simpleSub of sub.set) {
        for (const simpleDom of dom.set) {
          const isSub = simpleSubset(simpleSub, simpleDom, options3);
          sawNonNull = sawNonNull || isSub !== null;
          if (isSub) {
            continue OUTER;
          }
        }
        if (sawNonNull) {
          return false;
        }
      }
      return true;
    };
    var minimumVersionWithPreRelease = [new Comparator(">=0.0.0-0")];
    var minimumVersion = [new Comparator(">=0.0.0")];
    var simpleSubset = (sub, dom, options3) => {
      if (sub === dom) {
        return true;
      }
      if (sub.length === 1 && sub[0].semver === ANY) {
        if (dom.length === 1 && dom[0].semver === ANY) {
          return true;
        } else if (options3.includePrerelease) {
          sub = minimumVersionWithPreRelease;
        } else {
          sub = minimumVersion;
        }
      }
      if (dom.length === 1 && dom[0].semver === ANY) {
        if (options3.includePrerelease) {
          return true;
        } else {
          dom = minimumVersion;
        }
      }
      const eqSet = /* @__PURE__ */ new Set();
      let gt, lt;
      for (const c2 of sub) {
        if (c2.operator === ">" || c2.operator === ">=") {
          gt = higherGT(gt, c2, options3);
        } else if (c2.operator === "<" || c2.operator === "<=") {
          lt = lowerLT(lt, c2, options3);
        } else {
          eqSet.add(c2.semver);
        }
      }
      if (eqSet.size > 1) {
        return null;
      }
      let gtltComp;
      if (gt && lt) {
        gtltComp = compare2(gt.semver, lt.semver, options3);
        if (gtltComp > 0) {
          return null;
        } else if (gtltComp === 0 && (gt.operator !== ">=" || lt.operator !== "<=")) {
          return null;
        }
      }
      for (const eq of eqSet) {
        if (gt && !satisfies(eq, String(gt), options3)) {
          return null;
        }
        if (lt && !satisfies(eq, String(lt), options3)) {
          return null;
        }
        for (const c2 of dom) {
          if (!satisfies(eq, String(c2), options3)) {
            return false;
          }
        }
        return true;
      }
      let higher, lower;
      let hasDomLT, hasDomGT;
      let needDomLTPre = lt && !options3.includePrerelease && lt.semver.prerelease.length ? lt.semver : false;
      let needDomGTPre = gt && !options3.includePrerelease && gt.semver.prerelease.length ? gt.semver : false;
      if (needDomLTPre && needDomLTPre.prerelease.length === 1 && lt.operator === "<" && needDomLTPre.prerelease[0] === 0) {
        needDomLTPre = false;
      }
      for (const c2 of dom) {
        hasDomGT = hasDomGT || c2.operator === ">" || c2.operator === ">=";
        hasDomLT = hasDomLT || c2.operator === "<" || c2.operator === "<=";
        if (gt) {
          if (needDomGTPre) {
            if (c2.semver.prerelease && c2.semver.prerelease.length && c2.semver.major === needDomGTPre.major && c2.semver.minor === needDomGTPre.minor && c2.semver.patch === needDomGTPre.patch) {
              needDomGTPre = false;
            }
          }
          if (c2.operator === ">" || c2.operator === ">=") {
            higher = higherGT(gt, c2, options3);
            if (higher === c2 && higher !== gt) {
              return false;
            }
          } else if (gt.operator === ">=" && !c2.test(gt.semver)) {
            return false;
          }
        }
        if (lt) {
          if (needDomLTPre) {
            if (c2.semver.prerelease && c2.semver.prerelease.length && c2.semver.major === needDomLTPre.major && c2.semver.minor === needDomLTPre.minor && c2.semver.patch === needDomLTPre.patch) {
              needDomLTPre = false;
            }
          }
          if (c2.operator === "<" || c2.operator === "<=") {
            lower = lowerLT(lt, c2, options3);
            if (lower === c2 && lower !== lt) {
              return false;
            }
          } else if (lt.operator === "<=" && !c2.test(lt.semver)) {
            return false;
          }
        }
        if (!c2.operator && (lt || gt) && gtltComp !== 0) {
          return false;
        }
      }
      if (gt && hasDomLT && !lt && gtltComp !== 0) {
        return false;
      }
      if (lt && hasDomGT && !gt && gtltComp !== 0) {
        return false;
      }
      if (needDomGTPre || needDomLTPre) {
        return false;
      }
      return true;
    };
    var higherGT = (a2, b2, options3) => {
      if (!a2) {
        return b2;
      }
      const comp = compare2(a2.semver, b2.semver, options3);
      return comp > 0 ? a2 : comp < 0 ? b2 : b2.operator === ">" && a2.operator === ">=" ? b2 : a2;
    };
    var lowerLT = (a2, b2, options3) => {
      if (!a2) {
        return b2;
      }
      const comp = compare2(a2.semver, b2.semver, options3);
      return comp < 0 ? a2 : comp > 0 ? b2 : b2.operator === "<" && a2.operator === "<=" ? b2 : a2;
    };
    module2.exports = subset;
  }
});

// node_modules/semver/index.js
var require_semver2 = __commonJS({
  "node_modules/semver/index.js"(exports2, module2) {
    "use strict";
    var internalRe = require_re();
    var constants = require_constants();
    var SemVer = require_semver();
    var identifiers = require_identifiers();
    var parse4 = require_parse();
    var valid = require_valid();
    var clean = require_clean();
    var inc = require_inc();
    var diff = require_diff();
    var major = require_major();
    var minor = require_minor();
    var patch = require_patch();
    var prerelease = require_prerelease();
    var compare2 = require_compare();
    var rcompare = require_rcompare();
    var compareLoose = require_compare_loose();
    var compareBuild = require_compare_build();
    var sort = require_sort();
    var rsort = require_rsort();
    var gt = require_gt();
    var lt = require_lt();
    var eq = require_eq();
    var neq = require_neq();
    var gte2 = require_gte();
    var lte2 = require_lte();
    var cmp = require_cmp();
    var coerce = require_coerce();
    var truncate = require_truncate();
    var Comparator = require_comparator();
    var Range11 = require_range();
    var satisfies = require_satisfies();
    var toComparators = require_to_comparators();
    var maxSatisfying = require_max_satisfying();
    var minSatisfying = require_min_satisfying();
    var minVersion = require_min_version();
    var validRange2 = require_valid2();
    var outside = require_outside();
    var gtr = require_gtr();
    var ltr = require_ltr();
    var intersects = require_intersects();
    var simplifyRange = require_simplify();
    var subset = require_subset();
    module2.exports = {
      parse: parse4,
      valid,
      clean,
      inc,
      diff,
      major,
      minor,
      patch,
      prerelease,
      compare: compare2,
      rcompare,
      compareLoose,
      compareBuild,
      sort,
      rsort,
      gt,
      lt,
      eq,
      neq,
      gte: gte2,
      lte: lte2,
      cmp,
      coerce,
      truncate,
      Comparator,
      Range: Range11,
      satisfies,
      toComparators,
      maxSatisfying,
      minSatisfying,
      minVersion,
      validRange: validRange2,
      outside,
      gtr,
      ltr,
      intersects,
      simplifyRange,
      subset,
      SemVer,
      re: internalRe.re,
      src: internalRe.src,
      tokens: internalRe.t,
      SEMVER_SPEC_VERSION: constants.SEMVER_SPEC_VERSION,
      RELEASE_TYPES: constants.RELEASE_TYPES,
      compareIdentifiers: identifiers.compareIdentifiers,
      rcompareIdentifiers: identifiers.rcompareIdentifiers
    };
  }
});

// node_modules/fast-diff/diff.js
var require_diff2 = __commonJS({
  "node_modules/fast-diff/diff.js"(exports2, module2) {
    var DIFF_DELETE = -1;
    var DIFF_INSERT = 1;
    var DIFF_EQUAL = 0;
    function diff_main(text1, text2, cursor_pos, cleanup, _fix_unicode) {
      if (text1 === text2) {
        if (text1) {
          return [[DIFF_EQUAL, text1]];
        }
        return [];
      }
      if (cursor_pos != null) {
        var editdiff = find_cursor_edit_diff(text1, text2, cursor_pos);
        if (editdiff) {
          return editdiff;
        }
      }
      var commonlength = diff_commonPrefix(text1, text2);
      var commonprefix = text1.substring(0, commonlength);
      text1 = text1.substring(commonlength);
      text2 = text2.substring(commonlength);
      commonlength = diff_commonSuffix(text1, text2);
      var commonsuffix = text1.substring(text1.length - commonlength);
      text1 = text1.substring(0, text1.length - commonlength);
      text2 = text2.substring(0, text2.length - commonlength);
      var diffs = diff_compute_(text1, text2);
      if (commonprefix) {
        diffs.unshift([DIFF_EQUAL, commonprefix]);
      }
      if (commonsuffix) {
        diffs.push([DIFF_EQUAL, commonsuffix]);
      }
      diff_cleanupMerge(diffs, _fix_unicode);
      if (cleanup) {
        diff_cleanupSemantic(diffs);
      }
      return diffs;
    }
    function diff_compute_(text1, text2) {
      var diffs;
      if (!text1) {
        return [[DIFF_INSERT, text2]];
      }
      if (!text2) {
        return [[DIFF_DELETE, text1]];
      }
      var longtext = text1.length > text2.length ? text1 : text2;
      var shorttext = text1.length > text2.length ? text2 : text1;
      var i2 = longtext.indexOf(shorttext);
      if (i2 !== -1) {
        diffs = [
          [DIFF_INSERT, longtext.substring(0, i2)],
          [DIFF_EQUAL, shorttext],
          [DIFF_INSERT, longtext.substring(i2 + shorttext.length)]
        ];
        if (text1.length > text2.length) {
          diffs[0][0] = diffs[2][0] = DIFF_DELETE;
        }
        return diffs;
      }
      if (shorttext.length === 1) {
        return [
          [DIFF_DELETE, text1],
          [DIFF_INSERT, text2]
        ];
      }
      var hm = diff_halfMatch_(text1, text2);
      if (hm) {
        var text1_a = hm[0];
        var text1_b = hm[1];
        var text2_a = hm[2];
        var text2_b = hm[3];
        var mid_common = hm[4];
        var diffs_a = diff_main(text1_a, text2_a);
        var diffs_b = diff_main(text1_b, text2_b);
        return diffs_a.concat([[DIFF_EQUAL, mid_common]], diffs_b);
      }
      return diff_bisect_(text1, text2);
    }
    function diff_bisect_(text1, text2) {
      var text1_length = text1.length;
      var text2_length = text2.length;
      var max_d = Math.ceil((text1_length + text2_length) / 2);
      var v_offset = max_d;
      var v_length = 2 * max_d;
      var v1 = new Array(v_length);
      var v2 = new Array(v_length);
      for (var x2 = 0; x2 < v_length; x2++) {
        v1[x2] = -1;
        v2[x2] = -1;
      }
      v1[v_offset + 1] = 0;
      v2[v_offset + 1] = 0;
      var delta = text1_length - text2_length;
      var front = delta % 2 !== 0;
      var k1start = 0;
      var k1end = 0;
      var k2start = 0;
      var k2end = 0;
      for (var d2 = 0; d2 < max_d; d2++) {
        for (var k1 = -d2 + k1start; k1 <= d2 - k1end; k1 += 2) {
          var k1_offset = v_offset + k1;
          var x1;
          if (k1 === -d2 || k1 !== d2 && v1[k1_offset - 1] < v1[k1_offset + 1]) {
            x1 = v1[k1_offset + 1];
          } else {
            x1 = v1[k1_offset - 1] + 1;
          }
          var y1 = x1 - k1;
          while (x1 < text1_length && y1 < text2_length && text1.charAt(x1) === text2.charAt(y1)) {
            x1++;
            y1++;
          }
          v1[k1_offset] = x1;
          if (x1 > text1_length) {
            k1end += 2;
          } else if (y1 > text2_length) {
            k1start += 2;
          } else if (front) {
            var k2_offset = v_offset + delta - k1;
            if (k2_offset >= 0 && k2_offset < v_length && v2[k2_offset] !== -1) {
              var x22 = text1_length - v2[k2_offset];
              if (x1 >= x22) {
                return diff_bisectSplit_(text1, text2, x1, y1);
              }
            }
          }
        }
        for (var k2 = -d2 + k2start; k2 <= d2 - k2end; k2 += 2) {
          var k2_offset = v_offset + k2;
          var x22;
          if (k2 === -d2 || k2 !== d2 && v2[k2_offset - 1] < v2[k2_offset + 1]) {
            x22 = v2[k2_offset + 1];
          } else {
            x22 = v2[k2_offset - 1] + 1;
          }
          var y2 = x22 - k2;
          while (x22 < text1_length && y2 < text2_length && text1.charAt(text1_length - x22 - 1) === text2.charAt(text2_length - y2 - 1)) {
            x22++;
            y2++;
          }
          v2[k2_offset] = x22;
          if (x22 > text1_length) {
            k2end += 2;
          } else if (y2 > text2_length) {
            k2start += 2;
          } else if (!front) {
            var k1_offset = v_offset + delta - k2;
            if (k1_offset >= 0 && k1_offset < v_length && v1[k1_offset] !== -1) {
              var x1 = v1[k1_offset];
              var y1 = v_offset + x1 - k1_offset;
              x22 = text1_length - x22;
              if (x1 >= x22) {
                return diff_bisectSplit_(text1, text2, x1, y1);
              }
            }
          }
        }
      }
      return [
        [DIFF_DELETE, text1],
        [DIFF_INSERT, text2]
      ];
    }
    function diff_bisectSplit_(text1, text2, x2, y2) {
      var text1a = text1.substring(0, x2);
      var text2a = text2.substring(0, y2);
      var text1b = text1.substring(x2);
      var text2b = text2.substring(y2);
      var diffs = diff_main(text1a, text2a);
      var diffsb = diff_main(text1b, text2b);
      return diffs.concat(diffsb);
    }
    function diff_commonPrefix(text1, text2) {
      if (!text1 || !text2 || text1.charAt(0) !== text2.charAt(0)) {
        return 0;
      }
      var pointermin = 0;
      var pointermax = Math.min(text1.length, text2.length);
      var pointermid = pointermax;
      var pointerstart = 0;
      while (pointermin < pointermid) {
        if (text1.substring(pointerstart, pointermid) == text2.substring(pointerstart, pointermid)) {
          pointermin = pointermid;
          pointerstart = pointermin;
        } else {
          pointermax = pointermid;
        }
        pointermid = Math.floor((pointermax - pointermin) / 2 + pointermin);
      }
      if (is_surrogate_pair_start(text1.charCodeAt(pointermid - 1))) {
        pointermid--;
      }
      return pointermid;
    }
    function diff_commonOverlap_(text1, text2) {
      var text1_length = text1.length;
      var text2_length = text2.length;
      if (text1_length == 0 || text2_length == 0) {
        return 0;
      }
      if (text1_length > text2_length) {
        text1 = text1.substring(text1_length - text2_length);
      } else if (text1_length < text2_length) {
        text2 = text2.substring(0, text1_length);
      }
      var text_length = Math.min(text1_length, text2_length);
      if (text1 == text2) {
        return text_length;
      }
      var best = 0;
      var length = 1;
      while (true) {
        var pattern = text1.substring(text_length - length);
        var found = text2.indexOf(pattern);
        if (found == -1) {
          return best;
        }
        length += found;
        if (found == 0 || text1.substring(text_length - length) == text2.substring(0, length)) {
          best = length;
          length++;
        }
      }
    }
    function diff_commonSuffix(text1, text2) {
      if (!text1 || !text2 || text1.slice(-1) !== text2.slice(-1)) {
        return 0;
      }
      var pointermin = 0;
      var pointermax = Math.min(text1.length, text2.length);
      var pointermid = pointermax;
      var pointerend = 0;
      while (pointermin < pointermid) {
        if (text1.substring(text1.length - pointermid, text1.length - pointerend) == text2.substring(text2.length - pointermid, text2.length - pointerend)) {
          pointermin = pointermid;
          pointerend = pointermin;
        } else {
          pointermax = pointermid;
        }
        pointermid = Math.floor((pointermax - pointermin) / 2 + pointermin);
      }
      if (is_surrogate_pair_end(text1.charCodeAt(text1.length - pointermid))) {
        pointermid--;
      }
      return pointermid;
    }
    function diff_halfMatch_(text1, text2) {
      var longtext = text1.length > text2.length ? text1 : text2;
      var shorttext = text1.length > text2.length ? text2 : text1;
      if (longtext.length < 4 || shorttext.length * 2 < longtext.length) {
        return null;
      }
      function diff_halfMatchI_(longtext2, shorttext2, i2) {
        var seed = longtext2.substring(i2, i2 + Math.floor(longtext2.length / 4));
        var j = -1;
        var best_common = "";
        var best_longtext_a, best_longtext_b, best_shorttext_a, best_shorttext_b;
        while ((j = shorttext2.indexOf(seed, j + 1)) !== -1) {
          var prefixLength = diff_commonPrefix(
            longtext2.substring(i2),
            shorttext2.substring(j)
          );
          var suffixLength = diff_commonSuffix(
            longtext2.substring(0, i2),
            shorttext2.substring(0, j)
          );
          if (best_common.length < suffixLength + prefixLength) {
            best_common = shorttext2.substring(j - suffixLength, j) + shorttext2.substring(j, j + prefixLength);
            best_longtext_a = longtext2.substring(0, i2 - suffixLength);
            best_longtext_b = longtext2.substring(i2 + prefixLength);
            best_shorttext_a = shorttext2.substring(0, j - suffixLength);
            best_shorttext_b = shorttext2.substring(j + prefixLength);
          }
        }
        if (best_common.length * 2 >= longtext2.length) {
          return [
            best_longtext_a,
            best_longtext_b,
            best_shorttext_a,
            best_shorttext_b,
            best_common
          ];
        } else {
          return null;
        }
      }
      var hm1 = diff_halfMatchI_(
        longtext,
        shorttext,
        Math.ceil(longtext.length / 4)
      );
      var hm2 = diff_halfMatchI_(
        longtext,
        shorttext,
        Math.ceil(longtext.length / 2)
      );
      var hm;
      if (!hm1 && !hm2) {
        return null;
      } else if (!hm2) {
        hm = hm1;
      } else if (!hm1) {
        hm = hm2;
      } else {
        hm = hm1[4].length > hm2[4].length ? hm1 : hm2;
      }
      var text1_a, text1_b, text2_a, text2_b;
      if (text1.length > text2.length) {
        text1_a = hm[0];
        text1_b = hm[1];
        text2_a = hm[2];
        text2_b = hm[3];
      } else {
        text2_a = hm[0];
        text2_b = hm[1];
        text1_a = hm[2];
        text1_b = hm[3];
      }
      var mid_common = hm[4];
      return [text1_a, text1_b, text2_a, text2_b, mid_common];
    }
    function diff_cleanupSemantic(diffs) {
      var changes = false;
      var equalities = [];
      var equalitiesLength = 0;
      var lastequality = null;
      var pointer = 0;
      var length_insertions1 = 0;
      var length_deletions1 = 0;
      var length_insertions2 = 0;
      var length_deletions2 = 0;
      while (pointer < diffs.length) {
        if (diffs[pointer][0] == DIFF_EQUAL) {
          equalities[equalitiesLength++] = pointer;
          length_insertions1 = length_insertions2;
          length_deletions1 = length_deletions2;
          length_insertions2 = 0;
          length_deletions2 = 0;
          lastequality = diffs[pointer][1];
        } else {
          if (diffs[pointer][0] == DIFF_INSERT) {
            length_insertions2 += diffs[pointer][1].length;
          } else {
            length_deletions2 += diffs[pointer][1].length;
          }
          if (lastequality && lastequality.length <= Math.max(length_insertions1, length_deletions1) && lastequality.length <= Math.max(length_insertions2, length_deletions2)) {
            diffs.splice(equalities[equalitiesLength - 1], 0, [
              DIFF_DELETE,
              lastequality
            ]);
            diffs[equalities[equalitiesLength - 1] + 1][0] = DIFF_INSERT;
            equalitiesLength--;
            equalitiesLength--;
            pointer = equalitiesLength > 0 ? equalities[equalitiesLength - 1] : -1;
            length_insertions1 = 0;
            length_deletions1 = 0;
            length_insertions2 = 0;
            length_deletions2 = 0;
            lastequality = null;
            changes = true;
          }
        }
        pointer++;
      }
      if (changes) {
        diff_cleanupMerge(diffs);
      }
      diff_cleanupSemanticLossless(diffs);
      pointer = 1;
      while (pointer < diffs.length) {
        if (diffs[pointer - 1][0] == DIFF_DELETE && diffs[pointer][0] == DIFF_INSERT) {
          var deletion = diffs[pointer - 1][1];
          var insertion = diffs[pointer][1];
          var overlap_length1 = diff_commonOverlap_(deletion, insertion);
          var overlap_length2 = diff_commonOverlap_(insertion, deletion);
          if (overlap_length1 >= overlap_length2) {
            if (overlap_length1 >= deletion.length / 2 || overlap_length1 >= insertion.length / 2) {
              diffs.splice(pointer, 0, [
                DIFF_EQUAL,
                insertion.substring(0, overlap_length1)
              ]);
              diffs[pointer - 1][1] = deletion.substring(
                0,
                deletion.length - overlap_length1
              );
              diffs[pointer + 1][1] = insertion.substring(overlap_length1);
              pointer++;
            }
          } else {
            if (overlap_length2 >= deletion.length / 2 || overlap_length2 >= insertion.length / 2) {
              diffs.splice(pointer, 0, [
                DIFF_EQUAL,
                deletion.substring(0, overlap_length2)
              ]);
              diffs[pointer - 1][0] = DIFF_INSERT;
              diffs[pointer - 1][1] = insertion.substring(
                0,
                insertion.length - overlap_length2
              );
              diffs[pointer + 1][0] = DIFF_DELETE;
              diffs[pointer + 1][1] = deletion.substring(overlap_length2);
              pointer++;
            }
          }
          pointer++;
        }
        pointer++;
      }
    }
    var nonAlphaNumericRegex_ = /[^a-zA-Z0-9]/;
    var whitespaceRegex_ = /\s/;
    var linebreakRegex_ = /[\r\n]/;
    var blanklineEndRegex_ = /\n\r?\n$/;
    var blanklineStartRegex_ = /^\r?\n\r?\n/;
    function diff_cleanupSemanticLossless(diffs) {
      function diff_cleanupSemanticScore_(one, two) {
        if (!one || !two) {
          return 6;
        }
        var char1 = one.charAt(one.length - 1);
        var char2 = two.charAt(0);
        var nonAlphaNumeric1 = char1.match(nonAlphaNumericRegex_);
        var nonAlphaNumeric2 = char2.match(nonAlphaNumericRegex_);
        var whitespace1 = nonAlphaNumeric1 && char1.match(whitespaceRegex_);
        var whitespace2 = nonAlphaNumeric2 && char2.match(whitespaceRegex_);
        var lineBreak1 = whitespace1 && char1.match(linebreakRegex_);
        var lineBreak2 = whitespace2 && char2.match(linebreakRegex_);
        var blankLine1 = lineBreak1 && one.match(blanklineEndRegex_);
        var blankLine2 = lineBreak2 && two.match(blanklineStartRegex_);
        if (blankLine1 || blankLine2) {
          return 5;
        } else if (lineBreak1 || lineBreak2) {
          return 4;
        } else if (nonAlphaNumeric1 && !whitespace1 && whitespace2) {
          return 3;
        } else if (whitespace1 || whitespace2) {
          return 2;
        } else if (nonAlphaNumeric1 || nonAlphaNumeric2) {
          return 1;
        }
        return 0;
      }
      var pointer = 1;
      while (pointer < diffs.length - 1) {
        if (diffs[pointer - 1][0] == DIFF_EQUAL && diffs[pointer + 1][0] == DIFF_EQUAL) {
          var equality1 = diffs[pointer - 1][1];
          var edit2 = diffs[pointer][1];
          var equality2 = diffs[pointer + 1][1];
          var commonOffset = diff_commonSuffix(equality1, edit2);
          if (commonOffset) {
            var commonString = edit2.substring(edit2.length - commonOffset);
            equality1 = equality1.substring(0, equality1.length - commonOffset);
            edit2 = commonString + edit2.substring(0, edit2.length - commonOffset);
            equality2 = commonString + equality2;
          }
          var bestEquality1 = equality1;
          var bestEdit = edit2;
          var bestEquality2 = equality2;
          var bestScore = diff_cleanupSemanticScore_(equality1, edit2) + diff_cleanupSemanticScore_(edit2, equality2);
          while (edit2.charAt(0) === equality2.charAt(0)) {
            equality1 += edit2.charAt(0);
            edit2 = edit2.substring(1) + equality2.charAt(0);
            equality2 = equality2.substring(1);
            var score3 = diff_cleanupSemanticScore_(equality1, edit2) + diff_cleanupSemanticScore_(edit2, equality2);
            if (score3 >= bestScore) {
              bestScore = score3;
              bestEquality1 = equality1;
              bestEdit = edit2;
              bestEquality2 = equality2;
            }
          }
          if (diffs[pointer - 1][1] != bestEquality1) {
            if (bestEquality1) {
              diffs[pointer - 1][1] = bestEquality1;
            } else {
              diffs.splice(pointer - 1, 1);
              pointer--;
            }
            diffs[pointer][1] = bestEdit;
            if (bestEquality2) {
              diffs[pointer + 1][1] = bestEquality2;
            } else {
              diffs.splice(pointer + 1, 1);
              pointer--;
            }
          }
        }
        pointer++;
      }
    }
    function diff_cleanupMerge(diffs, fix_unicode) {
      diffs.push([DIFF_EQUAL, ""]);
      var pointer = 0;
      var count_delete = 0;
      var count_insert = 0;
      var text_delete = "";
      var text_insert = "";
      var commonlength;
      while (pointer < diffs.length) {
        if (pointer < diffs.length - 1 && !diffs[pointer][1]) {
          diffs.splice(pointer, 1);
          continue;
        }
        switch (diffs[pointer][0]) {
          case DIFF_INSERT:
            count_insert++;
            text_insert += diffs[pointer][1];
            pointer++;
            break;
          case DIFF_DELETE:
            count_delete++;
            text_delete += diffs[pointer][1];
            pointer++;
            break;
          case DIFF_EQUAL:
            var previous_equality = pointer - count_insert - count_delete - 1;
            if (fix_unicode) {
              if (previous_equality >= 0 && ends_with_pair_start(diffs[previous_equality][1])) {
                var stray = diffs[previous_equality][1].slice(-1);
                diffs[previous_equality][1] = diffs[previous_equality][1].slice(
                  0,
                  -1
                );
                text_delete = stray + text_delete;
                text_insert = stray + text_insert;
                if (!diffs[previous_equality][1]) {
                  diffs.splice(previous_equality, 1);
                  pointer--;
                  var k = previous_equality - 1;
                  if (diffs[k] && diffs[k][0] === DIFF_INSERT) {
                    count_insert++;
                    text_insert = diffs[k][1] + text_insert;
                    k--;
                  }
                  if (diffs[k] && diffs[k][0] === DIFF_DELETE) {
                    count_delete++;
                    text_delete = diffs[k][1] + text_delete;
                    k--;
                  }
                  previous_equality = k;
                }
              }
              if (starts_with_pair_end(diffs[pointer][1])) {
                var stray = diffs[pointer][1].charAt(0);
                diffs[pointer][1] = diffs[pointer][1].slice(1);
                text_delete += stray;
                text_insert += stray;
              }
            }
            if (pointer < diffs.length - 1 && !diffs[pointer][1]) {
              diffs.splice(pointer, 1);
              break;
            }
            if (text_delete.length > 0 || text_insert.length > 0) {
              if (text_delete.length > 0 && text_insert.length > 0) {
                commonlength = diff_commonPrefix(text_insert, text_delete);
                if (commonlength !== 0) {
                  if (previous_equality >= 0) {
                    diffs[previous_equality][1] += text_insert.substring(
                      0,
                      commonlength
                    );
                  } else {
                    diffs.splice(0, 0, [
                      DIFF_EQUAL,
                      text_insert.substring(0, commonlength)
                    ]);
                    pointer++;
                  }
                  text_insert = text_insert.substring(commonlength);
                  text_delete = text_delete.substring(commonlength);
                }
                commonlength = diff_commonSuffix(text_insert, text_delete);
                if (commonlength !== 0) {
                  diffs[pointer][1] = text_insert.substring(text_insert.length - commonlength) + diffs[pointer][1];
                  text_insert = text_insert.substring(
                    0,
                    text_insert.length - commonlength
                  );
                  text_delete = text_delete.substring(
                    0,
                    text_delete.length - commonlength
                  );
                }
              }
              var n2 = count_insert + count_delete;
              if (text_delete.length === 0 && text_insert.length === 0) {
                diffs.splice(pointer - n2, n2);
                pointer = pointer - n2;
              } else if (text_delete.length === 0) {
                diffs.splice(pointer - n2, n2, [DIFF_INSERT, text_insert]);
                pointer = pointer - n2 + 1;
              } else if (text_insert.length === 0) {
                diffs.splice(pointer - n2, n2, [DIFF_DELETE, text_delete]);
                pointer = pointer - n2 + 1;
              } else {
                diffs.splice(
                  pointer - n2,
                  n2,
                  [DIFF_DELETE, text_delete],
                  [DIFF_INSERT, text_insert]
                );
                pointer = pointer - n2 + 2;
              }
            }
            if (pointer !== 0 && diffs[pointer - 1][0] === DIFF_EQUAL) {
              diffs[pointer - 1][1] += diffs[pointer][1];
              diffs.splice(pointer, 1);
            } else {
              pointer++;
            }
            count_insert = 0;
            count_delete = 0;
            text_delete = "";
            text_insert = "";
            break;
        }
      }
      if (diffs[diffs.length - 1][1] === "") {
        diffs.pop();
      }
      var changes = false;
      pointer = 1;
      while (pointer < diffs.length - 1) {
        if (diffs[pointer - 1][0] === DIFF_EQUAL && diffs[pointer + 1][0] === DIFF_EQUAL) {
          if (diffs[pointer][1].substring(
            diffs[pointer][1].length - diffs[pointer - 1][1].length
          ) === diffs[pointer - 1][1]) {
            diffs[pointer][1] = diffs[pointer - 1][1] + diffs[pointer][1].substring(
              0,
              diffs[pointer][1].length - diffs[pointer - 1][1].length
            );
            diffs[pointer + 1][1] = diffs[pointer - 1][1] + diffs[pointer + 1][1];
            diffs.splice(pointer - 1, 1);
            changes = true;
          } else if (diffs[pointer][1].substring(0, diffs[pointer + 1][1].length) == diffs[pointer + 1][1]) {
            diffs[pointer - 1][1] += diffs[pointer + 1][1];
            diffs[pointer][1] = diffs[pointer][1].substring(diffs[pointer + 1][1].length) + diffs[pointer + 1][1];
            diffs.splice(pointer + 1, 1);
            changes = true;
          }
        }
        pointer++;
      }
      if (changes) {
        diff_cleanupMerge(diffs, fix_unicode);
      }
    }
    function is_surrogate_pair_start(charCode) {
      return charCode >= 55296 && charCode <= 56319;
    }
    function is_surrogate_pair_end(charCode) {
      return charCode >= 56320 && charCode <= 57343;
    }
    function starts_with_pair_end(str) {
      return is_surrogate_pair_end(str.charCodeAt(0));
    }
    function ends_with_pair_start(str) {
      return is_surrogate_pair_start(str.charCodeAt(str.length - 1));
    }
    function remove_empty_tuples(tuples) {
      var ret = [];
      for (var i2 = 0; i2 < tuples.length; i2++) {
        if (tuples[i2][1].length > 0) {
          ret.push(tuples[i2]);
        }
      }
      return ret;
    }
    function make_edit_splice(before, oldMiddle, newMiddle, after) {
      if (ends_with_pair_start(before) || starts_with_pair_end(after)) {
        return null;
      }
      return remove_empty_tuples([
        [DIFF_EQUAL, before],
        [DIFF_DELETE, oldMiddle],
        [DIFF_INSERT, newMiddle],
        [DIFF_EQUAL, after]
      ]);
    }
    function find_cursor_edit_diff(oldText, newText, cursor_pos) {
      var oldRange = typeof cursor_pos === "number" ? { index: cursor_pos, length: 0 } : cursor_pos.oldRange;
      var newRange = typeof cursor_pos === "number" ? null : cursor_pos.newRange;
      var oldLength = oldText.length;
      var newLength = newText.length;
      if (oldRange.length === 0 && (newRange === null || newRange.length === 0)) {
        var oldCursor = oldRange.index;
        var oldBefore = oldText.slice(0, oldCursor);
        var oldAfter = oldText.slice(oldCursor);
        var maybeNewCursor = newRange ? newRange.index : null;
        editBefore: {
          var newCursor = oldCursor + newLength - oldLength;
          if (maybeNewCursor !== null && maybeNewCursor !== newCursor) {
            break editBefore;
          }
          if (newCursor < 0 || newCursor > newLength) {
            break editBefore;
          }
          var newBefore = newText.slice(0, newCursor);
          var newAfter = newText.slice(newCursor);
          if (newAfter !== oldAfter) {
            break editBefore;
          }
          var prefixLength = Math.min(oldCursor, newCursor);
          var oldPrefix = oldBefore.slice(0, prefixLength);
          var newPrefix = newBefore.slice(0, prefixLength);
          if (oldPrefix !== newPrefix) {
            break editBefore;
          }
          var oldMiddle = oldBefore.slice(prefixLength);
          var newMiddle = newBefore.slice(prefixLength);
          return make_edit_splice(oldPrefix, oldMiddle, newMiddle, oldAfter);
        }
        editAfter: {
          if (maybeNewCursor !== null && maybeNewCursor !== oldCursor) {
            break editAfter;
          }
          var cursor = oldCursor;
          var newBefore = newText.slice(0, cursor);
          var newAfter = newText.slice(cursor);
          if (newBefore !== oldBefore) {
            break editAfter;
          }
          var suffixLength = Math.min(oldLength - cursor, newLength - cursor);
          var oldSuffix = oldAfter.slice(oldAfter.length - suffixLength);
          var newSuffix = newAfter.slice(newAfter.length - suffixLength);
          if (oldSuffix !== newSuffix) {
            break editAfter;
          }
          var oldMiddle = oldAfter.slice(0, oldAfter.length - suffixLength);
          var newMiddle = newAfter.slice(0, newAfter.length - suffixLength);
          return make_edit_splice(oldBefore, oldMiddle, newMiddle, oldSuffix);
        }
      }
      if (oldRange.length > 0 && newRange && newRange.length === 0) {
        replaceRange: {
          var oldPrefix = oldText.slice(0, oldRange.index);
          var oldSuffix = oldText.slice(oldRange.index + oldRange.length);
          var prefixLength = oldPrefix.length;
          var suffixLength = oldSuffix.length;
          if (newLength < prefixLength + suffixLength) {
            break replaceRange;
          }
          var newPrefix = newText.slice(0, prefixLength);
          var newSuffix = newText.slice(newLength - suffixLength);
          if (oldPrefix !== newPrefix || oldSuffix !== newSuffix) {
            break replaceRange;
          }
          var oldMiddle = oldText.slice(prefixLength, oldLength - suffixLength);
          var newMiddle = newText.slice(prefixLength, newLength - suffixLength);
          return make_edit_splice(oldPrefix, oldMiddle, newMiddle, oldSuffix);
        }
      }
      return null;
    }
    function diff(text1, text2, cursor_pos, cleanup) {
      return diff_main(text1, text2, cursor_pos, cleanup, true);
    }
    diff.INSERT = DIFF_INSERT;
    diff.DELETE = DIFF_DELETE;
    diff.EQUAL = DIFF_EQUAL;
    module2.exports = diff;
  }
});

// node_modules/unidecode/data/x00.js
var require_x00 = __commonJS({
  "node_modules/unidecode/data/x00.js"(exports2, module2) {
    module2.exports = [
      //  BLOCK U+0000
      "\\x00",
      "\\x01",
      "\\x02",
      "\\x03",
      "\\x04",
      "\\x05",
      "\\x06",
      "\\x07",
      "\\x08",
      "\\x09",
      "\\x0a",
      "\\x0b",
      "\\x0c",
      "\\x0d",
      "\\x0e",
      "\\x0f",
      // ^00      ^01       ^02       ^03       ^04       ^05       ^06       ^07       ^08       ^09       ^0a       ^0b       ^0c       ^0d       ^0e       ^0f       
      "\\x10",
      "\\x11",
      "\\x12",
      "\\x13",
      "\\x14",
      "\\x15",
      "\\x16",
      "\\x17",
      "\\x18",
      "\\x19",
      "\\x1a",
      "\\x1b",
      "\\x1c",
      "\\x1d",
      "\\x1e",
      "\\x1f",
      // ^10      ^11       ^12       ^13       ^14       ^15       ^16       ^17       ^18       ^19       ^1a       ^1b       ^1c       ^1d       ^1e       ^1f       
      " ",
      "!",
      '"',
      "#",
      "\\$",
      "%",
      "&",
      "'",
      "(",
      ")",
      "*",
      "+",
      ",",
      "-",
      ".",
      "/",
      // ^20  ^21    ^22    ^23    ^24     ^25    ^26    ^27    ^28    ^29    ^2a    ^2b    ^2c ^2d  ^2e    ^2f    ^30    
      "0",
      "1",
      "2",
      "3",
      "4",
      "5",
      "6",
      "7",
      "8",
      "9",
      ":",
      ";",
      "<",
      "=",
      ">",
      "?",
      // ^30  ^31  ^32  ^33  ^34  ^35  ^36  ^37  ^38  ^39  ^3a    ^3b    ^3c    ^3d    ^3e    ^3f    
      "\\@",
      "A",
      "B",
      "C",
      "D",
      "E",
      "F",
      "G",
      "H",
      "I",
      "J",
      "K",
      "L",
      "M",
      "N",
      "O",
      // ^40    ^41  ^42  ^43  ^44  ^45  ^46  ^47  ^48  ^49  ^4a  ^4b  ^4c  ^4d  ^4e  ^4f  
      "P",
      "Q",
      "R",
      "S",
      "T",
      "U",
      "V",
      "W",
      "X",
      "Y",
      "Z",
      "[",
      "\\\\",
      "]",
      "^",
      "_",
      // ^50  ^51  ^52  ^53  ^54  ^55  ^56  ^57  ^58  ^59  ^5a  ^5b    ^5c     ^5d    ^5e    ^5f    
      "`",
      "a",
      "b",
      "c",
      "d",
      "e",
      "f",
      "g",
      "h",
      "i",
      "j",
      "k",
      "l",
      "m",
      "n",
      "o",
      // ^60   ^61  ^62  ^63  ^64  ^65  ^66  ^67  ^68  ^69  ^6a  ^6b  ^6c  ^6d  ^6e  ^6f  
      "p",
      "q",
      "r",
      "s",
      "t",
      "u",
      "v",
      "w",
      "x",
      "y",
      "z",
      "\\{",
      "|",
      "\\}",
      "~",
      "\\x7f",
      // ^70  ^71  ^72  ^73  ^74  ^75  ^76  ^77  ^78  ^79  ^7a  ^7b     ^7c    ^7d     ^7e    ^7f       
      // ======================================================================
      //  Strictly speaking, these are the Unicode values:
      //  "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "",
      //  ^80 ^81 ^82 ^83 ^84 ^85 ^86 ^87 ^88 ^89 ^8a ^8b ^8c ^8d ^8e ^8f  
      //  "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "",
      //  ^90 ^91 ^92 ^93 ^94 ^95 ^96 ^97 ^98 ^99 ^9a ^9b ^9c ^9d ^9e ^9f  
      // 
      //  But I've decided to tolerate Win-1252 input:
      "EUR",
      "",
      ",",
      "f",
      ",,",
      "...",
      "+",
      "++",
      "^",
      "%0",
      "S",
      "<",
      "OE",
      "",
      "Z",
      "",
      "",
      "'",
      "'",
      '"',
      '"',
      "*",
      "-",
      "--",
      "~",
      "tm",
      "s",
      ">",
      "oe",
      "",
      "z",
      "Y",
      //  See: https://en.wikipedia.org/wiki/Latin-1_Supplement_%28Unicode_block%29
      // ======================================================================
      //  And now, back to Latin-1 = Unicode values...
      " ",
      "!",
      "C/",
      "PS",
      "\\$?",
      "Y=",
      "|",
      "SS",
      '"',
      "(c)",
      "a",
      "<<",
      "!",
      "",
      "(r)",
      "-",
      // ^a0  ^a1    ^a2     ^a3   ^a4      ^a5     ^a6    ^a7   ^a8    ^a9      ^aa  ^ab     ^ac   ^ad  ^ae      ^af    
      "deg",
      "+-",
      "2",
      "3",
      "'",
      "u",
      "P",
      "*",
      ",",
      "1",
      "o",
      ">>",
      "1/4",
      "1/2",
      "3/4",
      "?",
      // ^b0   ^b1     ^b2  ^b3  ^b4    ^b5  ^b6  ^b7    ^b8 ^b9  ^ba  ^bb  ^bc     ^bd      ^be      ^bf      ^c0    
      "A",
      "A",
      "A",
      "A",
      "A",
      "A",
      "AE",
      "C",
      "E",
      "E",
      "E",
      "E",
      "I",
      "I",
      "I",
      "I",
      // ^c0  ^c1  ^c2  ^c3  ^c4  ^c5  ^c6   ^c7  ^c8  ^c9  ^ca  ^cb  ^cc  ^cd  ^ce  ^cf  
      "D",
      "N",
      "O",
      "O",
      "O",
      "O",
      "O",
      "x",
      "O",
      "U",
      "U",
      "U",
      "U",
      "Y",
      "Th",
      "ss",
      // ^d0  ^d1  ^d2  ^d3  ^d4  ^d5  ^d6  ^d7  ^d8  ^d9  ^da  ^db  ^dc  ^dd  ^de   ^df   
      "a",
      "a",
      "a",
      "a",
      "a",
      "a",
      "ae",
      "c",
      "e",
      "e",
      "e",
      "e",
      "i",
      "i",
      "i",
      "i",
      // ^e0  ^e1  ^e2  ^e3  ^e4  ^e5  ^e6   ^e7  ^e8  ^e9  ^ea  ^eb  ^ec  ^ed  ^ee  ^ef  
      "d",
      "n",
      "o",
      "o",
      "o",
      "o",
      "o",
      "/",
      "o",
      "u",
      "u",
      "u",
      "u",
      "y",
      "th",
      "y"
      // ^f0  ^f1  ^f2  ^f3  ^f4  ^f5  ^f6  ^f7    ^f8  ^f9  ^fa  ^fb  ^fc  ^fd  ^fe   ^ff  
    ];
  }
});

// node_modules/unidecode/data/x01.js
var require_x01 = __commonJS({
  "node_modules/unidecode/data/x01.js"(exports2, module2) {
    module2.exports = [
      "A",
      "a",
      "A",
      "a",
      "A",
      "a",
      "C",
      "c",
      "C",
      "c",
      "C",
      "c",
      "C",
      "c",
      "D",
      "d",
      "D",
      "d",
      "E",
      "e",
      "E",
      "e",
      "E",
      "e",
      "E",
      "e",
      "E",
      "e",
      "G",
      "g",
      "G",
      "g",
      "G",
      "g",
      "G",
      "g",
      "H",
      "h",
      "H",
      "h",
      "I",
      "i",
      "I",
      "i",
      "I",
      "i",
      "I",
      "i",
      "I",
      "i",
      "IJ",
      "ij",
      "J",
      "j",
      "K",
      "k",
      "k",
      "L",
      "l",
      "L",
      "l",
      "L",
      "l",
      "L",
      "l",
      "L",
      "l",
      "N",
      "n",
      "N",
      "n",
      "N",
      "n",
      "'n",
      "ng",
      "NG",
      "O",
      "o",
      "O",
      "o",
      "O",
      "o",
      "OE",
      "oe",
      "R",
      "r",
      "R",
      "r",
      "R",
      "r",
      "S",
      "s",
      "S",
      "s",
      "S",
      "s",
      "S",
      "s",
      "T",
      "t",
      "T",
      "t",
      "T",
      "t",
      "U",
      "u",
      "U",
      "u",
      "U",
      "u",
      "U",
      "u",
      "U",
      "u",
      "U",
      "u",
      "W",
      "w",
      "Y",
      "y",
      "Y",
      "Z",
      "z",
      "Z",
      "z",
      "Z",
      "z",
      "s",
      "b",
      "B",
      "B",
      "b",
      "6",
      "6",
      "O",
      "C",
      "c",
      "D",
      "D",
      "D",
      "d",
      "d",
      "3",
      "\\@",
      "E",
      "F",
      "f",
      "G",
      "G",
      "hv",
      "I",
      "I",
      "K",
      "k",
      "l",
      "l",
      "W",
      "N",
      "n",
      "O",
      "O",
      "o",
      "OI",
      "oi",
      "P",
      "p",
      "YR",
      "2",
      "2",
      "SH",
      "sh",
      "t",
      "T",
      "t",
      "T",
      "U",
      "u",
      "Y",
      "V",
      "Y",
      "y",
      "Z",
      "z",
      "ZH",
      "ZH",
      "zh",
      "zh",
      "2",
      "5",
      "5",
      "ts",
      "w",
      "|",
      "||",
      "|=",
      "!",
      "DZ",
      "Dz",
      "dz",
      "LJ",
      "Lj",
      "lj",
      "NJ",
      "Nj",
      "nj",
      "A",
      "a",
      "I",
      "i",
      "O",
      "o",
      "U",
      "u",
      "U",
      "u",
      "U",
      "u",
      "U",
      "u",
      "U",
      "u",
      "\\@",
      "A",
      "a",
      "A",
      "a",
      "AE",
      "ae",
      "G",
      "g",
      "G",
      "g",
      "K",
      "k",
      "O",
      "o",
      "O",
      "o",
      "ZH",
      "zh",
      "j",
      "DZ",
      "Dz",
      "dz",
      "G",
      "g",
      "HV",
      "W",
      "N",
      "n",
      "A",
      "a",
      "AE",
      "ae",
      "O",
      "o"
    ];
  }
});

// node_modules/unidecode/data/x02.js
var require_x02 = __commonJS({
  "node_modules/unidecode/data/x02.js"(exports2, module2) {
    module2.exports = [
      "A",
      "a",
      "A",
      "a",
      "E",
      "e",
      "E",
      "e",
      "I",
      "i",
      "I",
      "i",
      "O",
      "o",
      "O",
      "o",
      "R",
      "r",
      "R",
      "r",
      "U",
      "u",
      "U",
      "u",
      "S",
      "s",
      "T",
      "t",
      "Y",
      "y",
      "H",
      "h",
      "N",
      "d",
      "OU",
      "ou",
      "Z",
      "z",
      "A",
      "a",
      "E",
      "e",
      "O",
      "o",
      "O",
      "o",
      "O",
      "o",
      "O",
      "o",
      "Y",
      "y",
      "l",
      //  0x34
      "n",
      //  0x35
      "t",
      //  0x36
      "j",
      //  0x37
      "db",
      //  0x38
      "qp",
      //  0x39
      "A",
      //  0x3a
      "C",
      //  0x3b
      "c",
      //  0x3c
      "L",
      //  0x3d
      "T",
      //  0x3e
      "s",
      //  0x3f
      "z",
      //  0x40
      "[?]",
      "[?]",
      "B",
      //  0x43
      "U",
      //  0x44
      "^",
      //  0x45
      "E",
      //  0x46
      "e",
      //  0x47
      "J",
      //  0x48
      "j",
      //  0x49
      "q",
      //  0x4a
      "q",
      //  0x4b
      "R",
      //  0x4c
      "r",
      //  0x4d
      "Y",
      //  0x4e
      "y",
      //  0x4f
      "a",
      "a",
      "a",
      "b",
      "o",
      "c",
      "d",
      "d",
      "e",
      "\\@",
      "\\@",
      "e",
      "e",
      "e",
      "e",
      "j",
      "g",
      "g",
      "g",
      "g",
      "u",
      "Y",
      "h",
      "h",
      "i",
      "i",
      "I",
      "l",
      "l",
      "l",
      "lZ",
      "W",
      "W",
      "m",
      "n",
      "n",
      "n",
      "o",
      "OE",
      "O",
      "F",
      "r",
      "r",
      "r",
      "r",
      "r",
      "r",
      "r",
      "R",
      "R",
      "s",
      "S",
      "j",
      "S",
      "S",
      "t",
      "t",
      "u",
      "U",
      "v",
      "^",
      "w",
      "y",
      "Y",
      "z",
      "z",
      "Z",
      "Z",
      "?",
      "?",
      "?",
      "C",
      "\\@",
      "B",
      "E",
      "G",
      "H",
      "j",
      "k",
      "L",
      "q",
      "?",
      "?",
      "dz",
      "dZ",
      "dz",
      "ts",
      "tS",
      "tC",
      "fN",
      "ls",
      "lz",
      "WW",
      "]]",
      "h",
      "h",
      "h",
      "h",
      "j",
      "r",
      "r",
      "r",
      "r",
      "w",
      "y",
      "'",
      '"',
      "`",
      "'",
      "`",
      "`",
      "'",
      "?",
      "?",
      "<",
      ">",
      "^",
      "V",
      "^",
      "V",
      "'",
      "-",
      "/",
      "\\\\",
      ",",
      "_",
      "\\\\",
      "/",
      ":",
      ".",
      "`",
      "'",
      "^",
      "V",
      "+",
      "-",
      "V",
      ".",
      "\\@",
      ",",
      "~",
      '"',
      "R",
      "X",
      "G",
      "l",
      "s",
      "x",
      "?",
      //  U+2e5 ...
      //  ˥   ˦    ˧    ˨     ˩   ˪    ˫
      "5",
      "4",
      "3",
      "2",
      "1",
      "/",
      "\\",
      "V",
      "=",
      '"',
      "V",
      //  ˬ  02EF	MODIFIER LETTER LOW DOWN ARROWHEAD
      //  ...and also 16 UPA modifiers:
      //  ˰ ˱ ˲ ˳ ˴ ˵ ˶ ˷ ˸ ˹ ˺ ˻ ˼ ˽ ˾ ˿
      "^",
      //  02F0	MODIFIER LETTER LOW UP ARROWHEAD
      "<",
      //  02F1	MODIFIER LETTER LOW LEFT ARROWHEAD
      ">",
      //  02F2	MODIFIER LETTER LOW RIGHT ARROWHEAD
      "o",
      //  02F3	MODIFIER LETTER LOW RING
      "`",
      //  02F4	MODIFIER LETTER MIDDLE GRAVE ACCENT
      "``",
      //  02F5	MODIFIER LETTER MIDDLE DOUBLE GRAVE ACCENT
      "//",
      //  02F6	MODIFIER LETTER MIDDLE DOUBLE ACUTE ACCENT
      "~",
      //  02F7	MODIFIER LETTER LOW TILDE
      ":",
      //  02F8	MODIFIER LETTER RAISED COLON
      "[-",
      //  02F9	MODIFIER LETTER BEGIN HIGH TONE
      "-]",
      //  02FA	MODIFIER LETTER END HIGH TONE
      "[_",
      //  02FB	MODIFIER LETTER BEGIN LOW TONE
      "_]",
      //  02FC	MODIFIER LETTER END LOW TONE
      "_",
      //  02FD	MODIFIER LETTER SHELF
      "_",
      //  02FE	MODIFIER LETTER OPEN SHELF
      "<"
      //  02FF	MODIFIER LETTER LOW LEFT ARROW
    ];
  }
});

// node_modules/unidecode/data/x03.js
var require_x03 = __commonJS({
  "node_modules/unidecode/data/x03.js"(exports2, module2) {
    module2.exports = [
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "",
      "",
      "",
      // '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]',
      "a",
      //  0x63
      "e",
      //  0x64
      "i",
      //  0x65
      "o",
      //  0x66
      "u",
      //  0x67
      "c",
      //  0x68
      "d",
      //  0x69
      "h",
      //  0x6a
      "m",
      //  0x6b
      "r",
      //  0x6c
      "t",
      //  0x6d
      "v",
      //  0x6e
      "x",
      //  0x6f
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "'",
      ",",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "",
      "[?]",
      "[?]",
      "[?]",
      "?",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "",
      "",
      "A",
      ";",
      "E",
      "E",
      "I",
      "[?]",
      "O",
      "[?]",
      "U",
      "O",
      "I",
      "A",
      "B",
      "G",
      "D",
      "E",
      "Z",
      "E",
      "Th",
      "I",
      "K",
      "L",
      "M",
      "N",
      "Ks",
      "O",
      "P",
      "R",
      "[?]",
      "S",
      "T",
      "U",
      "Ph",
      "Kh",
      "Ps",
      "O",
      "I",
      "U",
      "a",
      "e",
      "e",
      "i",
      "u",
      "a",
      "b",
      "g",
      "d",
      "e",
      "z",
      "e",
      "th",
      "i",
      "k",
      "l",
      "m",
      "n",
      "x",
      "o",
      "p",
      "r",
      "s",
      "s",
      "t",
      "u",
      "ph",
      "kh",
      "ps",
      "o",
      "i",
      "u",
      "o",
      "u",
      "o",
      "[?]",
      "b",
      "th",
      "U",
      "U",
      "U",
      "ph",
      "p",
      "&",
      "[?]",
      "[?]",
      "St",
      "st",
      "W",
      "w",
      "Q",
      "q",
      "Sp",
      "sp",
      "Sh",
      "sh",
      "F",
      "f",
      "Kh",
      "kh",
      "H",
      "h",
      "G",
      "g",
      "CH",
      "ch",
      "Ti",
      "ti",
      // 03F0:
      //  ϰ ϱ ϲ ϳ  
      "k",
      "r",
      "c",
      "j",
      //  ϴ ϵ ϶ Ϸ 
      "TH",
      "e",
      "e",
      "Sh",
      //  ϸ Ϲ Ϻ ϻ
      "sh",
      "s",
      "[?]",
      "[?]",
      //  ϼ Ͻ Ͼ Ͽ
      "r/",
      "S",
      "S.",
      "S."
    ];
  }
});

// node_modules/unidecode/data/x04.js
var require_x04 = __commonJS({
  "node_modules/unidecode/data/x04.js"(exports2, module2) {
    module2.exports = [
      "Ie",
      "Io",
      "Dj",
      "Gj",
      "E",
      "Dz",
      "I",
      "Yi",
      "J",
      "Lj",
      "Nj",
      "Tsh",
      "Kj",
      "I",
      "U",
      "Dzh",
      "A",
      "B",
      "V",
      "G",
      "D",
      "E",
      "Zh",
      "Z",
      "I",
      "I",
      "K",
      "L",
      "M",
      "N",
      "O",
      "P",
      "R",
      "S",
      "T",
      "U",
      "F",
      "Kh",
      "Ts",
      "Ch",
      "Sh",
      "Shch",
      "",
      "Y",
      "'",
      "E",
      "Iu",
      "Ia",
      "a",
      "b",
      "v",
      "g",
      "d",
      "e",
      "zh",
      "z",
      "i",
      "i",
      "k",
      "l",
      "m",
      "n",
      "o",
      "p",
      "r",
      "s",
      "t",
      "u",
      "f",
      "kh",
      "ts",
      "ch",
      "sh",
      "shch",
      "",
      "y",
      "'",
      "e",
      "iu",
      "ia",
      "ie",
      "io",
      "dj",
      "gj",
      "ie",
      "dz",
      "i",
      "yi",
      "j",
      "lj",
      "nj",
      "tsh",
      "kj",
      "i",
      "u",
      "dzh",
      "O",
      "o",
      "E",
      "e",
      "Ie",
      "ie",
      "E",
      "e",
      "Ie",
      "ie",
      "O",
      "o",
      "Io",
      "io",
      "Ks",
      "ks",
      "Ps",
      "ps",
      "F",
      "f",
      "Y",
      "y",
      "Y",
      "y",
      "u",
      "u",
      "O",
      "o",
      "O",
      "o",
      "Ot",
      "ot",
      "Q",
      "q",
      "*1000*",
      "",
      "",
      "",
      "",
      "[?]",
      "*100.000*",
      "*1.000.000*",
      "[?]",
      "[?]",
      '"',
      '"',
      "R'",
      "r'",
      "G'",
      "g'",
      "G'",
      "g'",
      "G'",
      "g'",
      "Zh'",
      "zh'",
      "Z'",
      "z'",
      "K'",
      "k'",
      "K'",
      "k'",
      "K'",
      "k'",
      "K'",
      "k'",
      "N'",
      "n'",
      "Ng",
      "ng",
      "P'",
      "p'",
      "Kh",
      "kh",
      "S'",
      "s'",
      "T'",
      "t'",
      "U",
      "u",
      "U'",
      "u'",
      "Kh'",
      "kh'",
      "Tts",
      "tts",
      "Ch'",
      "ch'",
      "Ch'",
      "ch'",
      "H",
      "h",
      "Ch",
      "ch",
      "Ch'",
      "ch'",
      "`",
      "Zh",
      "zh",
      "K'",
      "k'",
      "[?]",
      "[?]",
      "N'",
      "n'",
      "[?]",
      "[?]",
      "Ch",
      "ch",
      "[?]",
      "[?]",
      "[?]",
      "a",
      "a",
      "A",
      "a",
      "Ae",
      "ae",
      "Ie",
      "ie",
      "\\@",
      "\\@",
      "\\@",
      "\\@",
      "Zh",
      "zh",
      "Z",
      "z",
      "Dz",
      "dz",
      "I",
      "i",
      "I",
      "i",
      "O",
      "o",
      "O",
      "o",
      "O",
      "o",
      "E",
      "e",
      "U",
      "u",
      "U",
      "u",
      "U",
      "u",
      "Ch",
      "ch",
      "[?]",
      "[?]",
      "Y",
      "y",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]"
    ];
  }
});

// node_modules/unidecode/data/x05.js
var require_x05 = __commonJS({
  "node_modules/unidecode/data/x05.js"(exports2, module2) {
    module2.exports = [
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "A",
      "B",
      "G",
      "D",
      "E",
      "Z",
      "E",
      "E",
      "T`",
      "Zh",
      "I",
      "L",
      "Kh",
      "Ts",
      "K",
      "H",
      "Dz",
      "Gh",
      "Ch",
      "M",
      "Y",
      "N",
      "Sh",
      "O",
      "Ch`",
      "P",
      "J",
      "Rh",
      "S",
      "V",
      "T",
      "R",
      "Ts`",
      "W",
      "P`",
      "K`",
      "O",
      "F",
      "[?]",
      "[?]",
      "<",
      "'",
      "/",
      "!",
      ",",
      "?",
      ".",
      "[?]",
      "a",
      "b",
      "g",
      "d",
      "e",
      "z",
      "e",
      "e",
      "t`",
      "zh",
      "i",
      "l",
      "kh",
      "ts",
      "k",
      "h",
      "dz",
      "gh",
      "ch",
      "m",
      "y",
      "n",
      "sh",
      "o",
      "ch`",
      "p",
      "j",
      "rh",
      "s",
      "v",
      "t",
      "r",
      "ts`",
      "w",
      "p`",
      "k`",
      "o",
      "f",
      "ew",
      "[?]",
      ".",
      "-",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "[?]",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "\\@",
      "e",
      "a",
      "o",
      "i",
      "e",
      "e",
      "a",
      "a",
      "o",
      "[?]",
      "u",
      "'",
      "",
      "",
      "",
      //  u+05c0:
      "|",
      "",
      "",
      ":",
      "",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "",
      "b",
      "g",
      "d",
      "h",
      "v",
      "z",
      "kh",
      "t",
      "y",
      "k",
      "k",
      "l",
      "m",
      "m",
      "n",
      "n",
      "s",
      "`",
      "p",
      "p",
      "ts",
      "ts",
      "q",
      "r",
      "sh",
      "t",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "V",
      "oy",
      "i",
      "'",
      '"',
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]"
    ];
  }
});

// node_modules/unidecode/data/x06.js
var require_x06 = __commonJS({
  "node_modules/unidecode/data/x06.js"(exports2, module2) {
    module2.exports = [
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      ",",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      ";",
      "[?]",
      "[?]",
      "[?]",
      "?",
      "[?]",
      "",
      "a",
      "'",
      "w'",
      "",
      "y'",
      "",
      "b",
      "\\@",
      "t",
      "th",
      "j",
      "H",
      "kh",
      "d",
      "dh",
      "r",
      "z",
      "s",
      "sh",
      "S",
      "D",
      "T",
      "Z",
      "`",
      "G",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "",
      "f",
      "q",
      "k",
      "l",
      "m",
      "n",
      "h",
      "w",
      "~",
      "y",
      "an",
      "un",
      "in",
      "a",
      "u",
      "i",
      "W",
      "",
      "",
      "'",
      "'",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "0",
      "1",
      "2",
      "3",
      "4",
      "5",
      "6",
      "7",
      "8",
      "9",
      "%",
      ".",
      ",",
      "*",
      "[?]",
      "[?]",
      "",
      "'",
      "'",
      "'",
      "",
      "'",
      "'w",
      "'u",
      "'y",
      "tt",
      "tth",
      "b",
      "t",
      "T",
      "p",
      "th",
      "bh",
      "'h",
      "H",
      "ny",
      "dy",
      "H",
      "ch",
      "cch",
      "dd",
      "D",
      "D",
      "Dt",
      "dh",
      "ddh",
      "d",
      "D",
      "D",
      "rr",
      "R",
      "R",
      "R",
      "R",
      "R",
      "R",
      "j",
      "R",
      "S",
      "S",
      "S",
      "S",
      "S",
      "T",
      "GH",
      "F",
      "F",
      "F",
      "v",
      "f",
      "ph",
      "Q",
      "Q",
      "kh",
      "k",
      "K",
      "K",
      "ng",
      "K",
      "g",
      "G",
      "N",
      "G",
      "G",
      "G",
      "L",
      "L",
      "L",
      "L",
      "N",
      "N",
      "N",
      "N",
      "N",
      "h",
      "Ch",
      "hy",
      "h",
      "H",
      "\\@",
      "W",
      "oe",
      "oe",
      "u",
      "yu",
      "yu",
      "W",
      "v",
      "y",
      "Y",
      "Y",
      "W",
      "",
      "",
      "y",
      "y'",
      ".",
      "ae",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "\\@",
      "#",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "^",
      "",
      "",
      "",
      "",
      "[?]",
      "[?]",
      "0",
      "1",
      "2",
      "3",
      "4",
      "5",
      "6",
      "7",
      "8",
      "9",
      "Sh",
      "D",
      "Gh",
      "&",
      "+m",
      "h"
    ];
  }
});

// node_modules/unidecode/data/x07.js
var require_x07 = __commonJS({
  "node_modules/unidecode/data/x07.js"(exports2, module2) {
    module2.exports = [
      "//",
      "/",
      ",",
      "!",
      "!",
      "-",
      ",",
      ",",
      ";",
      "?",
      "~",
      "\\{",
      "\\}",
      "*",
      "[?]",
      "",
      "'",
      "",
      "b",
      "g",
      "g",
      "d",
      "d",
      "h",
      "w",
      "z",
      "H",
      "t",
      "t",
      "y",
      "yh",
      "k",
      "l",
      "m",
      "n",
      "s",
      "s",
      "`",
      "p",
      "p",
      "S",
      "q",
      "r",
      "sh",
      "t",
      "[?]",
      "[?]",
      "[?]",
      "a",
      "a",
      "a",
      "A",
      "A",
      "A",
      "e",
      "e",
      "e",
      "E",
      "i",
      "i",
      "u",
      "u",
      "u",
      "o",
      "",
      "`",
      "'",
      "",
      "",
      "X",
      "Q",
      "\\@",
      "\\@",
      "|",
      "+",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "h",
      "sh",
      "n",
      "r",
      "b",
      "L",
      "k",
      "'",
      "v",
      "m",
      "f",
      "dh",
      "th",
      "l",
      "g",
      "ny",
      "s",
      "d",
      "z",
      "t",
      "y",
      "p",
      "j",
      "ch",
      "tt",
      "hh",
      "kh",
      "th",
      "z",
      "sh",
      "s",
      "d",
      "t",
      "z",
      "`",
      "gh",
      "q",
      "w",
      "a",
      "aa",
      "i",
      "ee",
      "u",
      "oo",
      "e",
      "ey",
      "o",
      "oa",
      "",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]"
    ];
  }
});

// node_modules/unidecode/data/x09.js
var require_x09 = __commonJS({
  "node_modules/unidecode/data/x09.js"(exports2, module2) {
    module2.exports = [
      "[?]",
      "N",
      "N",
      "H",
      "[?]",
      "a",
      "aa",
      "i",
      "ii",
      "u",
      "uu",
      "R",
      "L",
      "eN",
      "e",
      "e",
      "ai",
      "oN",
      "o",
      "o",
      "au",
      "k",
      "kh",
      "g",
      "gh",
      "ng",
      "c",
      "ch",
      "j",
      "jh",
      "ny",
      "tt",
      "tth",
      "dd",
      "ddh",
      "nn",
      "t",
      "th",
      "d",
      "dh",
      "n",
      "nnn",
      "p",
      "ph",
      "b",
      "bh",
      "m",
      "y",
      "r",
      "rr",
      "l",
      "l",
      "lll",
      "v",
      "sh",
      "ss",
      "s",
      "h",
      "[?]",
      "[?]",
      "'",
      "'",
      "aa",
      "i",
      "ii",
      "u",
      "uu",
      "R",
      "RR",
      "eN",
      "e",
      "e",
      "ai",
      "oN",
      "o",
      "o",
      "au",
      "",
      "[?]",
      "[?]",
      "AUM",
      "'",
      "'",
      "`",
      "'",
      "[?]",
      "[?]",
      "[?]",
      "q",
      "khh",
      "ghh",
      "z",
      "dddh",
      "rh",
      "f",
      "yy",
      "RR",
      "LL",
      "L",
      "LL",
      " / ",
      " // ",
      "0",
      "1",
      "2",
      "3",
      "4",
      "5",
      "6",
      "7",
      "8",
      "9",
      ".",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "N",
      "N",
      "H",
      "[?]",
      "a",
      "aa",
      "i",
      "ii",
      "u",
      "uu",
      "R",
      "RR",
      "[?]",
      "[?]",
      "e",
      "ai",
      "[?]",
      "[?]",
      "o",
      "au",
      "k",
      "kh",
      "g",
      "gh",
      "ng",
      "c",
      "ch",
      "j",
      "jh",
      "ny",
      "tt",
      "tth",
      "dd",
      "ddh",
      "nn",
      "t",
      "th",
      "d",
      "dh",
      "n",
      "[?]",
      "p",
      "ph",
      "b",
      "bh",
      "m",
      "y",
      "r",
      "[?]",
      "l",
      "[?]",
      "[?]",
      "[?]",
      "sh",
      "ss",
      "s",
      "h",
      "[?]",
      "[?]",
      "'",
      "[?]",
      "aa",
      "i",
      "ii",
      "u",
      "uu",
      "R",
      "RR",
      "[?]",
      "[?]",
      "e",
      "ai",
      "[?]",
      "[?]",
      "o",
      "au",
      "",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "+",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "rr",
      "rh",
      "[?]",
      "yy",
      "RR",
      "LL",
      "L",
      "LL",
      "[?]",
      "[?]",
      "0",
      "1",
      "2",
      "3",
      "4",
      "5",
      "6",
      "7",
      "8",
      "9",
      "r'",
      "r`",
      "Rs",
      "Rs",
      "1/",
      "2/",
      "3/",
      "4/",
      " 1 - 1/",
      "/16",
      "",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]"
    ];
  }
});

// node_modules/unidecode/data/x0a.js
var require_x0a = __commonJS({
  "node_modules/unidecode/data/x0a.js"(exports2, module2) {
    module2.exports = [
      "[?]",
      "[?]",
      "N",
      "[?]",
      "[?]",
      "a",
      "aa",
      "i",
      "ii",
      "u",
      "uu",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "ee",
      "ai",
      "[?]",
      "[?]",
      "oo",
      "au",
      "k",
      "kh",
      "g",
      "gh",
      "ng",
      "c",
      "ch",
      "j",
      "jh",
      "ny",
      "tt",
      "tth",
      "dd",
      "ddh",
      "nn",
      "t",
      "th",
      "d",
      "dh",
      "n",
      "[?]",
      "p",
      "ph",
      "b",
      "bb",
      "m",
      "y",
      "r",
      "[?]",
      "l",
      "ll",
      "[?]",
      "v",
      "sh",
      "[?]",
      "s",
      "h",
      "[?]",
      "[?]",
      "'",
      "[?]",
      "aa",
      "i",
      "ii",
      "u",
      "uu",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "ee",
      "ai",
      "[?]",
      "[?]",
      "oo",
      "au",
      "",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "khh",
      "ghh",
      "z",
      "rr",
      "[?]",
      "f",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "0",
      "1",
      "2",
      "3",
      "4",
      "5",
      "6",
      "7",
      "8",
      "9",
      "N",
      "H",
      "",
      "",
      "G.E.O.",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "N",
      "N",
      "H",
      "[?]",
      "a",
      "aa",
      "i",
      "ii",
      "u",
      "uu",
      "R",
      "[?]",
      "eN",
      "[?]",
      "e",
      "ai",
      "oN",
      "[?]",
      "o",
      "au",
      "k",
      "kh",
      "g",
      "gh",
      "ng",
      "c",
      "ch",
      "j",
      "jh",
      "ny",
      "tt",
      "tth",
      "dd",
      "ddh",
      "nn",
      "t",
      "th",
      "d",
      "dh",
      "n",
      "[?]",
      "p",
      "ph",
      "b",
      "bh",
      "m",
      "ya",
      "r",
      "[?]",
      "l",
      "ll",
      "[?]",
      "v",
      "sh",
      "ss",
      "s",
      "h",
      "[?]",
      "[?]",
      "'",
      "'",
      "aa",
      "i",
      "ii",
      "u",
      "uu",
      "R",
      "RR",
      "eN",
      "[?]",
      "e",
      "ai",
      "oN",
      "[?]",
      "o",
      "au",
      "",
      "[?]",
      "[?]",
      "AUM",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "RR",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "0",
      "1",
      "2",
      "3",
      "4",
      "5",
      "6",
      "7",
      "8",
      "9",
      ".",
      "R",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "zh",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]"
    ];
  }
});

// node_modules/unidecode/data/x0b.js
var require_x0b = __commonJS({
  "node_modules/unidecode/data/x0b.js"(exports2, module2) {
    module2.exports = [
      "[?]",
      "N",
      "N",
      "H",
      "[?]",
      "a",
      "aa",
      "i",
      "ii",
      "u",
      "uu",
      "R",
      "L",
      "[?]",
      "[?]",
      "e",
      "ai",
      "[?]",
      "[?]",
      "o",
      "au",
      "k",
      "kh",
      "g",
      "gh",
      "ng",
      "c",
      "ch",
      "j",
      "jh",
      "ny",
      "tt",
      "tth",
      "dd",
      "ddh",
      "nn",
      "t",
      "th",
      "d",
      "dh",
      "n",
      "[?]",
      "p",
      "ph",
      "b",
      "bh",
      "m",
      "y",
      "r",
      "[?]",
      "l",
      "ll",
      "[?]",
      "",
      "sh",
      "ss",
      "s",
      "h",
      "[?]",
      "[?]",
      "'",
      "'",
      "aa",
      "i",
      "ii",
      "u",
      "uu",
      "R",
      "[?]",
      "[?]",
      "[?]",
      "e",
      "ai",
      "[?]",
      "[?]",
      "o",
      "au",
      "",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "+",
      "+",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "rr",
      "rh",
      "[?]",
      "yy",
      "RR",
      "LL",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "0",
      "1",
      "2",
      "3",
      "4",
      "5",
      "6",
      "7",
      "8",
      "9",
      "",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "N",
      "H",
      "[?]",
      "a",
      "aa",
      "i",
      "ii",
      "u",
      "uu",
      "[?]",
      "[?]",
      "[?]",
      "e",
      "ee",
      "ai",
      "[?]",
      "o",
      "oo",
      "au",
      "k",
      "[?]",
      "[?]",
      "[?]",
      "ng",
      "c",
      "[?]",
      "j",
      "[?]",
      "ny",
      "tt",
      "[?]",
      "[?]",
      "[?]",
      "nn",
      "t",
      "[?]",
      "[?]",
      "[?]",
      "n",
      "nnn",
      "p",
      "[?]",
      "[?]",
      "[?]",
      "m",
      "y",
      "r",
      "rr",
      "l",
      "ll",
      "lll",
      "v",
      "[?]",
      "ss",
      "s",
      "h",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "aa",
      "i",
      "ii",
      "u",
      "uu",
      "[?]",
      "[?]",
      "[?]",
      "e",
      "ee",
      "ai",
      "[?]",
      "o",
      "oo",
      "au",
      "",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "+",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "0",
      "1",
      "2",
      "3",
      "4",
      "5",
      "6",
      "7",
      "8",
      "9",
      "+10+",
      "+100+",
      "+1000+",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]"
    ];
  }
});

// node_modules/unidecode/data/x0c.js
var require_x0c = __commonJS({
  "node_modules/unidecode/data/x0c.js"(exports2, module2) {
    module2.exports = [
      "[?]",
      "N",
      "N",
      "H",
      "[?]",
      "a",
      "aa",
      "i",
      "ii",
      "u",
      "uu",
      "R",
      "L",
      "[?]",
      "e",
      "ee",
      "ai",
      "[?]",
      "o",
      "oo",
      "au",
      "k",
      "kh",
      "g",
      "gh",
      "ng",
      "c",
      "ch",
      "j",
      "jh",
      "ny",
      "tt",
      "tth",
      "dd",
      "ddh",
      "nn",
      "t",
      "th",
      "d",
      "dh",
      "n",
      "[?]",
      "p",
      "ph",
      "b",
      "bh",
      "m",
      "y",
      "r",
      "rr",
      "l",
      "ll",
      "[?]",
      "v",
      "sh",
      "ss",
      "s",
      "h",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "aa",
      "i",
      "ii",
      "u",
      "uu",
      "R",
      "RR",
      "[?]",
      "e",
      "ee",
      "ai",
      "[?]",
      "o",
      "oo",
      "au",
      "",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "+",
      "+",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "RR",
      "LL",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "0",
      "1",
      "2",
      "3",
      "4",
      "5",
      "6",
      "7",
      "8",
      "9",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "N",
      "H",
      "[?]",
      "a",
      "aa",
      "i",
      "ii",
      "u",
      "uu",
      "R",
      "L",
      "[?]",
      "e",
      "ee",
      "ai",
      "[?]",
      "o",
      "oo",
      "au",
      "k",
      "kh",
      "g",
      "gh",
      "ng",
      "c",
      "ch",
      "j",
      "jh",
      "ny",
      "tt",
      "tth",
      "dd",
      "ddh",
      "nn",
      "t",
      "th",
      "d",
      "dh",
      "n",
      "[?]",
      "p",
      "ph",
      "b",
      "bh",
      "m",
      "y",
      "r",
      "rr",
      "l",
      "ll",
      "[?]",
      "v",
      "sh",
      "ss",
      "s",
      "h",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "aa",
      "i",
      "ii",
      "u",
      "uu",
      "R",
      "RR",
      "[?]",
      "e",
      "ee",
      "ai",
      "[?]",
      "o",
      "oo",
      "au",
      "",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "+",
      "+",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "lll",
      "[?]",
      "RR",
      "LL",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "0",
      "1",
      "2",
      "3",
      "4",
      "5",
      "6",
      "7",
      "8",
      "9",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]"
    ];
  }
});

// node_modules/unidecode/data/x0d.js
var require_x0d = __commonJS({
  "node_modules/unidecode/data/x0d.js"(exports2, module2) {
    module2.exports = [
      "[?]",
      "[?]",
      "N",
      "H",
      "[?]",
      "a",
      "aa",
      "i",
      "ii",
      "u",
      "uu",
      "R",
      "L",
      "[?]",
      "e",
      "ee",
      "ai",
      "[?]",
      "o",
      "oo",
      "au",
      "k",
      "kh",
      "g",
      "gh",
      "ng",
      "c",
      "ch",
      "j",
      "jh",
      "ny",
      "tt",
      "tth",
      "dd",
      "ddh",
      "nn",
      "t",
      "th",
      "d",
      "dh",
      "n",
      "[?]",
      "p",
      "ph",
      "b",
      "bh",
      "m",
      "y",
      "r",
      "rr",
      "l",
      "ll",
      "lll",
      "v",
      "sh",
      "ss",
      "s",
      "h",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "aa",
      "i",
      "ii",
      "u",
      "uu",
      "R",
      "[?]",
      "[?]",
      "e",
      "ee",
      "ai",
      "",
      "o",
      "oo",
      "au",
      "",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "+",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "RR",
      "LL",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "0",
      "1",
      "2",
      "3",
      "4",
      "5",
      "6",
      "7",
      "8",
      "9",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "N",
      "H",
      "[?]",
      "a",
      "aa",
      "ae",
      "aae",
      "i",
      "ii",
      "u",
      "uu",
      "R",
      "RR",
      "L",
      "LL",
      "e",
      "ee",
      "ai",
      "o",
      "oo",
      "au",
      "[?]",
      "[?]",
      "[?]",
      "k",
      "kh",
      "g",
      "gh",
      "ng",
      "nng",
      "c",
      "ch",
      "j",
      "jh",
      "ny",
      "jny",
      "nyj",
      "tt",
      "tth",
      "dd",
      "ddh",
      "nn",
      "nndd",
      "t",
      "th",
      "d",
      "dh",
      "n",
      "[?]",
      "nd",
      "p",
      "ph",
      "b",
      "bh",
      "m",
      "mb",
      "y",
      "r",
      "[?]",
      "l",
      "[?]",
      "[?]",
      "v",
      "sh",
      "ss",
      "s",
      "h",
      "ll",
      "f",
      "[?]",
      "[?]",
      "[?]",
      "",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "aa",
      "ae",
      "aae",
      "i",
      "ii",
      "u",
      "[?]",
      "uu",
      "[?]",
      "R",
      "e",
      "ee",
      "ai",
      "o",
      "oo",
      "au",
      "L",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "RR",
      "LL",
      " . ",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]"
    ];
  }
});

// node_modules/unidecode/data/x0e.js
var require_x0e = __commonJS({
  "node_modules/unidecode/data/x0e.js"(exports2, module2) {
    module2.exports = [
      "[?]",
      "k",
      "kh",
      "kh",
      "kh",
      "kh",
      "kh",
      "ng",
      "cch",
      "ch",
      "ch",
      "ch",
      "ch",
      "y",
      "d",
      "t",
      "th",
      "th",
      "th",
      "n",
      "d",
      "t",
      "th",
      "th",
      "th",
      "n",
      "b",
      "p",
      "ph",
      "f",
      "ph",
      "f",
      "ph",
      "m",
      "y",
      "r",
      "R",
      "l",
      "L",
      "w",
      "s",
      "s",
      "s",
      "h",
      "l",
      "`",
      "h",
      "~",
      "a",
      "a",
      "aa",
      "am",
      "i",
      "ii",
      "ue",
      "uue",
      "u",
      "uu",
      "'",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "Bh.",
      "e",
      "ae",
      "o",
      "ai",
      "ai",
      "ao",
      "+",
      "",
      "",
      "",
      "",
      "",
      "",
      "M",
      "",
      " * ",
      "0",
      "1",
      "2",
      "3",
      "4",
      "5",
      "6",
      "7",
      "8",
      "9",
      " // ",
      " /// ",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "k",
      "kh",
      "[?]",
      "kh",
      "[?]",
      "[?]",
      "ng",
      "ch",
      "[?]",
      "s",
      "[?]",
      "[?]",
      "ny",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "d",
      "h",
      "th",
      "th",
      "[?]",
      "n",
      "b",
      "p",
      "ph",
      "f",
      "ph",
      "f",
      "[?]",
      "m",
      "y",
      "r",
      "[?]",
      "l",
      "[?]",
      "w",
      "[?]",
      "[?]",
      "s",
      "h",
      "[?]",
      "`",
      "",
      "~",
      "a",
      "",
      "aa",
      "am",
      "i",
      "ii",
      "y",
      "yy",
      "u",
      "uu",
      "[?]",
      "o",
      "l",
      "ny",
      "[?]",
      "[?]",
      "e",
      "ei",
      "o",
      "ay",
      "ai",
      "[?]",
      "+",
      "[?]",
      "",
      "",
      "",
      "",
      "",
      "M",
      "[?]",
      "[?]",
      "0",
      "1",
      "2",
      "3",
      "4",
      "5",
      "6",
      "7",
      "8",
      "9",
      "[?]",
      "[?]",
      "hn",
      "hm",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]"
    ];
  }
});

// node_modules/unidecode/data/x0f.js
var require_x0f = __commonJS({
  "node_modules/unidecode/data/x0f.js"(exports2, module2) {
    module2.exports = [
      "AUM",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      " // ",
      " * ",
      "",
      "-",
      " / ",
      " / ",
      " // ",
      " -/ ",
      " +/ ",
      " X/ ",
      " /XX/ ",
      " /X/ ",
      ", ",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "0",
      "1",
      "2",
      "3",
      "4",
      "5",
      "6",
      "7",
      "8",
      "9",
      ".5",
      "1.5",
      "2.5",
      "3.5",
      "4.5",
      "5.5",
      "6.5",
      "7.5",
      "8.5",
      "-.5",
      "+",
      "*",
      "^",
      "_",
      "",
      "~",
      "[?]",
      "]",
      "[[",
      "]]",
      "",
      "",
      "k",
      "kh",
      "g",
      "gh",
      "ng",
      "c",
      "ch",
      "j",
      "[?]",
      "ny",
      "tt",
      "tth",
      "dd",
      "ddh",
      "nn",
      "t",
      "th",
      "d",
      "dh",
      "n",
      "p",
      "ph",
      "b",
      "bh",
      "m",
      "ts",
      "tsh",
      "dz",
      "dzh",
      "w",
      "zh",
      "z",
      "'",
      "y",
      "r",
      "l",
      "sh",
      "ssh",
      "s",
      "h",
      "a",
      "kss",
      "r",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "aa",
      "i",
      "ii",
      "u",
      "uu",
      "R",
      "RR",
      "L",
      "LL",
      "e",
      "ee",
      "o",
      "oo",
      "M",
      "H",
      "i",
      "ii",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "k",
      "kh",
      "g",
      "gh",
      "ng",
      "c",
      "ch",
      "j",
      "[?]",
      "ny",
      "tt",
      "tth",
      "dd",
      "ddh",
      "nn",
      "t",
      "th",
      "d",
      "dh",
      "n",
      "p",
      "ph",
      "b",
      "bh",
      "m",
      "ts",
      "tsh",
      "dz",
      "dzh",
      "w",
      "zh",
      "z",
      "'",
      "y",
      "r",
      "l",
      "sh",
      "ss",
      "s",
      "h",
      "a",
      "kss",
      "w",
      "y",
      "r",
      "[?]",
      "X",
      " :X: ",
      " /O/ ",
      " /o/ ",
      " \\\\o\\\\ ",
      " (O) ",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "[?]",
      "[?]",
      "",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]"
    ];
  }
});

// node_modules/unidecode/data/x10.js
var require_x10 = __commonJS({
  "node_modules/unidecode/data/x10.js"(exports2, module2) {
    module2.exports = [
      "k",
      "kh",
      "g",
      "gh",
      "ng",
      "c",
      "ch",
      "j",
      "jh",
      "ny",
      "nny",
      "tt",
      "tth",
      "dd",
      "ddh",
      "nn",
      "tt",
      "th",
      "d",
      "dh",
      "n",
      "p",
      "ph",
      "b",
      "bh",
      "m",
      "y",
      "r",
      "l",
      "w",
      "s",
      "h",
      "ll",
      "a",
      "[?]",
      "i",
      "ii",
      "u",
      "uu",
      "e",
      "[?]",
      "o",
      "au",
      "[?]",
      "aa",
      "i",
      "ii",
      "u",
      "uu",
      "e",
      "ai",
      "[?]",
      "[?]",
      "[?]",
      "N",
      "'",
      ":",
      "",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "0",
      "1",
      "2",
      "3",
      "4",
      "5",
      "6",
      "7",
      "8",
      "9",
      " / ",
      " // ",
      "n*",
      "r*",
      "l*",
      "e*",
      "sh",
      "ss",
      "R",
      "RR",
      "L",
      "LL",
      "R",
      "RR",
      "L",
      "LL",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "A",
      "B",
      "G",
      "D",
      "E",
      "V",
      "Z",
      "T`",
      "I",
      "K",
      "L",
      "M",
      "N",
      "O",
      "P",
      "Zh",
      "R",
      "S",
      "T",
      "U",
      "P`",
      "K`",
      "G'",
      "Q",
      "Sh",
      "Ch`",
      "C`",
      "Z'",
      "C",
      "Ch",
      "X",
      "J",
      "H",
      "E",
      "Y",
      "W",
      "Xh",
      "OE",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "a",
      "b",
      "g",
      "d",
      "e",
      "v",
      "z",
      "t`",
      "i",
      "k",
      "l",
      "m",
      "n",
      "o",
      "p",
      "zh",
      "r",
      "s",
      "t",
      "u",
      "p`",
      "k`",
      "g'",
      "q",
      "sh",
      "ch`",
      "c`",
      "z'",
      "c",
      "ch",
      "x",
      "j",
      "h",
      "e",
      "y",
      "w",
      "xh",
      "oe",
      "f",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      " // ",
      "[?]",
      "[?]",
      "[?]",
      "[?]"
    ];
  }
});

// node_modules/unidecode/data/x11.js
var require_x11 = __commonJS({
  "node_modules/unidecode/data/x11.js"(exports2, module2) {
    module2.exports = [
      "g",
      "gg",
      "n",
      "d",
      "dd",
      "r",
      "m",
      "b",
      "bb",
      "s",
      "ss",
      "",
      "j",
      "jj",
      "c",
      "k",
      "t",
      "p",
      "h",
      "ng",
      "nn",
      "nd",
      "nb",
      "dg",
      "rn",
      "rr",
      "rh",
      "rN",
      "mb",
      "mN",
      "bg",
      "bn",
      "",
      "bs",
      "bsg",
      "bst",
      "bsb",
      "bss",
      "bsj",
      "bj",
      "bc",
      "bt",
      "bp",
      "bN",
      "bbN",
      "sg",
      "sn",
      "sd",
      "sr",
      "sm",
      "sb",
      "sbg",
      "sss",
      "s",
      "sj",
      "sc",
      "sk",
      "st",
      "sp",
      "sh",
      "",
      "",
      "",
      "",
      "Z",
      "g",
      "d",
      "m",
      "b",
      "s",
      "Z",
      "",
      "j",
      "c",
      "t",
      "p",
      "N",
      "j",
      "",
      "",
      "",
      "",
      "ck",
      "ch",
      "",
      "",
      "pb",
      "pN",
      "hh",
      "Q",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "",
      "",
      "a",
      "ae",
      "ya",
      "yae",
      "eo",
      "e",
      "yeo",
      "ye",
      "o",
      "wa",
      "wae",
      "oe",
      "yo",
      "u",
      "weo",
      "we",
      "wi",
      "yu",
      "eu",
      "yi",
      "i",
      "a-o",
      "a-u",
      "ya-o",
      "ya-yo",
      "eo-o",
      "eo-u",
      "eo-eu",
      "yeo-o",
      "yeo-u",
      "o-eo",
      "o-e",
      "o-ye",
      "o-o",
      "o-u",
      "yo-ya",
      "yo-yae",
      "yo-yeo",
      "yo-o",
      "yo-i",
      "u-a",
      "u-ae",
      "u-eo-eu",
      "u-ye",
      "u-u",
      "yu-a",
      "yu-eo",
      "yu-e",
      "yu-yeo",
      "yu-ye",
      "yu-u",
      "yu-i",
      "eu-u",
      "eu-eu",
      "yi-u",
      "i-a",
      "i-ya",
      "i-o",
      "i-u",
      "i-eu",
      "i-U",
      "U",
      "U-eo",
      "U-u",
      "U-i",
      "UU",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "g",
      "gg",
      "gs",
      "n",
      "nj",
      "nh",
      "d",
      "l",
      "lg",
      "lm",
      "lb",
      "ls",
      "lt",
      "lp",
      "lh",
      "m",
      "b",
      "bs",
      "s",
      "ss",
      "ng",
      "j",
      "c",
      "k",
      "t",
      "p",
      "h",
      "gl",
      "gsg",
      "ng",
      "nd",
      "ns",
      "nZ",
      "nt",
      "dg",
      "tl",
      "lgs",
      "ln",
      "ld",
      "lth",
      "ll",
      "lmg",
      "lms",
      "lbs",
      "lbh",
      "rNp",
      "lss",
      "lZ",
      "lk",
      "lQ",
      "mg",
      "ml",
      "mb",
      "ms",
      "mss",
      "mZ",
      "mc",
      "mh",
      "mN",
      "bl",
      "bp",
      "ph",
      "pN",
      "sg",
      "sd",
      "sl",
      "sb",
      "Z",
      "g",
      "ss",
      "",
      "kh",
      "N",
      "Ns",
      "NZ",
      "pb",
      "pN",
      "hn",
      "hl",
      "hm",
      "hb",
      "Q",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]"
    ];
  }
});

// node_modules/unidecode/data/x12.js
var require_x12 = __commonJS({
  "node_modules/unidecode/data/x12.js"(exports2, module2) {
    module2.exports = [
      "ha",
      "hu",
      "hi",
      "haa",
      "hee",
      "he",
      "ho",
      "[?]",
      "la",
      "lu",
      "li",
      "laa",
      "lee",
      "le",
      "lo",
      "lwa",
      "hha",
      "hhu",
      "hhi",
      "hhaa",
      "hhee",
      "hhe",
      "hho",
      "hhwa",
      "ma",
      "mu",
      "mi",
      "maa",
      "mee",
      "me",
      "mo",
      "mwa",
      "sza",
      "szu",
      "szi",
      "szaa",
      "szee",
      "sze",
      "szo",
      "szwa",
      "ra",
      "ru",
      "ri",
      "raa",
      "ree",
      "re",
      "ro",
      "rwa",
      "sa",
      "su",
      "si",
      "saa",
      "see",
      "se",
      "so",
      "swa",
      "sha",
      "shu",
      "shi",
      "shaa",
      "shee",
      "she",
      "sho",
      "shwa",
      "qa",
      "qu",
      "qi",
      "qaa",
      "qee",
      "qe",
      "qo",
      "[?]",
      "qwa",
      "[?]",
      "qwi",
      "qwaa",
      "qwee",
      "qwe",
      "[?]",
      "[?]",
      "qha",
      "qhu",
      "qhi",
      "qhaa",
      "qhee",
      "qhe",
      "qho",
      "[?]",
      "qhwa",
      "[?]",
      "qhwi",
      "qhwaa",
      "qhwee",
      "qhwe",
      "[?]",
      "[?]",
      "ba",
      "bu",
      "bi",
      "baa",
      "bee",
      "be",
      "bo",
      "bwa",
      "va",
      "vu",
      "vi",
      "vaa",
      "vee",
      "ve",
      "vo",
      "vwa",
      "ta",
      "tu",
      "ti",
      "taa",
      "tee",
      "te",
      "to",
      "twa",
      "ca",
      "cu",
      "ci",
      "caa",
      "cee",
      "ce",
      "co",
      "cwa",
      "xa",
      "xu",
      "xi",
      "xaa",
      "xee",
      "xe",
      "xo",
      "[?]",
      "xwa",
      "[?]",
      "xwi",
      "xwaa",
      "xwee",
      "xwe",
      "[?]",
      "[?]",
      "na",
      "nu",
      "ni",
      "naa",
      "nee",
      "ne",
      "no",
      "nwa",
      "nya",
      "nyu",
      "nyi",
      "nyaa",
      "nyee",
      "nye",
      "nyo",
      "nywa",
      "'a",
      "'u",
      "[?]",
      "'aa",
      "'ee",
      "'e",
      "'o",
      "'wa",
      "ka",
      "ku",
      "ki",
      "kaa",
      "kee",
      "ke",
      "ko",
      "[?]",
      "kwa",
      "[?]",
      "kwi",
      "kwaa",
      "kwee",
      "kwe",
      "[?]",
      "[?]",
      "kxa",
      "kxu",
      "kxi",
      "kxaa",
      "kxee",
      "kxe",
      "kxo",
      "[?]",
      "kxwa",
      "[?]",
      "kxwi",
      "kxwaa",
      "kxwee",
      "kxwe",
      "[?]",
      "[?]",
      "wa",
      "wu",
      "wi",
      "waa",
      "wee",
      "we",
      "wo",
      "[?]",
      "`a",
      "`u",
      "`i",
      "`aa",
      "`ee",
      "`e",
      "`o",
      "[?]",
      "za",
      "zu",
      "zi",
      "zaa",
      "zee",
      "ze",
      "zo",
      "zwa",
      "zha",
      "zhu",
      "zhi",
      "zhaa",
      "zhee",
      "zhe",
      "zho",
      "zhwa",
      "ya",
      "yu",
      "yi",
      "yaa",
      "yee",
      "ye",
      "yo",
      "[?]",
      "da",
      "du",
      "di",
      "daa",
      "dee",
      "de",
      "do",
      "dwa",
      "dda",
      "ddu",
      "ddi",
      "ddaa",
      "ddee",
      "dde",
      "ddo",
      "ddwa"
    ];
  }
});

// node_modules/unidecode/data/x13.js
var require_x13 = __commonJS({
  "node_modules/unidecode/data/x13.js"(exports2, module2) {
    module2.exports = [
      "ja",
      "ju",
      "ji",
      "jaa",
      "jee",
      "je",
      "jo",
      "jwa",
      "ga",
      "gu",
      "gi",
      "gaa",
      "gee",
      "ge",
      "go",
      "[?]",
      "gwa",
      "[?]",
      "gwi",
      "gwaa",
      "gwee",
      "gwe",
      "[?]",
      "[?]",
      "gga",
      "ggu",
      "ggi",
      "ggaa",
      "ggee",
      "gge",
      "ggo",
      "[?]",
      "tha",
      "thu",
      "thi",
      "thaa",
      "thee",
      "the",
      "tho",
      "thwa",
      "cha",
      "chu",
      "chi",
      "chaa",
      "chee",
      "che",
      "cho",
      "chwa",
      "pha",
      "phu",
      "phi",
      "phaa",
      "phee",
      "phe",
      "pho",
      "phwa",
      "tsa",
      "tsu",
      "tsi",
      "tsaa",
      "tsee",
      "tse",
      "tso",
      "tswa",
      "tza",
      "tzu",
      "tzi",
      "tzaa",
      "tzee",
      "tze",
      "tzo",
      "[?]",
      "fa",
      "fu",
      "fi",
      "faa",
      "fee",
      "fe",
      "fo",
      "fwa",
      "pa",
      "pu",
      "pi",
      "paa",
      "pee",
      "pe",
      "po",
      "pwa",
      "rya",
      "mya",
      "fya",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      " ",
      ".",
      ",",
      ";",
      ":",
      ":: ",
      "?",
      "//",
      "1",
      "2",
      "3",
      "4",
      "5",
      "6",
      "7",
      "8",
      "9",
      "10+",
      "20+",
      "30+",
      "40+",
      "50+",
      "60+",
      "70+",
      "80+",
      "90+",
      "100+",
      "10,000+",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "a",
      "e",
      "i",
      "o",
      "u",
      "v",
      "ga",
      "ka",
      "ge",
      "gi",
      "go",
      "gu",
      "gv",
      "ha",
      "he",
      "hi",
      "ho",
      "hu",
      "hv",
      "la",
      "le",
      "li",
      "lo",
      "lu",
      "lv",
      "ma",
      "me",
      "mi",
      "mo",
      "mu",
      "na",
      "hna",
      "nah",
      "ne",
      "ni",
      "no",
      "nu",
      "nv",
      "qua",
      "que",
      "qui",
      "quo",
      "quu",
      "quv",
      "sa",
      "s",
      "se",
      "si",
      "so",
      "su",
      "sv",
      "da",
      "ta",
      "de",
      "te",
      "di",
      "ti",
      "do",
      "du",
      "dv",
      "dla",
      "tla",
      "tle",
      "tli",
      "tlo",
      "tlu",
      "tlv",
      "tsa",
      "tse",
      "tsi",
      "tso",
      "tsu",
      "tsv",
      "wa",
      "we",
      "wi",
      "wo",
      "wu",
      "wv",
      "ya",
      "ye",
      "yi",
      "yo",
      "yu",
      "yv",
      "MV",
      "[?]",
      "[?]",
      "ye",
      "yi",
      "yo",
      "yu",
      "yv",
      "mv",
      "[?]",
      "[?]"
    ];
  }
});

// node_modules/unidecode/data/x14.js
var require_x14 = __commonJS({
  "node_modules/unidecode/data/x14.js"(exports2, module2) {
    module2.exports = [
      "[?]",
      "e",
      "aai",
      "i",
      "ii",
      "o",
      "oo",
      "oo",
      "ee",
      "i",
      "a",
      "aa",
      "we",
      "we",
      "wi",
      "wi",
      "wii",
      "wii",
      "wo",
      "wo",
      "woo",
      "woo",
      "woo",
      "wa",
      "wa",
      "waa",
      "waa",
      "waa",
      "ai",
      "w",
      "'",
      "t",
      "k",
      "sh",
      "s",
      "n",
      "w",
      "n",
      "[?]",
      "w",
      "c",
      "?",
      "l",
      "en",
      "in",
      "on",
      "an",
      "pe",
      "paai",
      "pi",
      "pii",
      "po",
      "poo",
      "poo",
      "hee",
      "hi",
      "pa",
      "paa",
      "pwe",
      "pwe",
      "pwi",
      "pwi",
      "pwii",
      "pwii",
      "pwo",
      "pwo",
      "pwoo",
      "pwoo",
      "pwa",
      "pwa",
      "pwaa",
      "pwaa",
      "pwaa",
      "p",
      "p",
      "h",
      "te",
      "taai",
      "ti",
      "tii",
      "to",
      "too",
      "too",
      "dee",
      "di",
      "ta",
      "taa",
      "twe",
      "twe",
      "twi",
      "twi",
      "twii",
      "twii",
      "two",
      "two",
      "twoo",
      "twoo",
      "twa",
      "twa",
      "twaa",
      "twaa",
      "twaa",
      "t",
      "tte",
      "tti",
      "tto",
      "tta",
      "ke",
      "kaai",
      "ki",
      "kii",
      "ko",
      "koo",
      "koo",
      "ka",
      "kaa",
      "kwe",
      "kwe",
      "kwi",
      "kwi",
      "kwii",
      "kwii",
      "kwo",
      "kwo",
      "kwoo",
      "kwoo",
      "kwa",
      "kwa",
      "kwaa",
      "kwaa",
      "kwaa",
      "k",
      "kw",
      "keh",
      "kih",
      "koh",
      "kah",
      "ce",
      "caai",
      "ci",
      "cii",
      "co",
      "coo",
      "coo",
      "ca",
      "caa",
      "cwe",
      "cwe",
      "cwi",
      "cwi",
      "cwii",
      "cwii",
      "cwo",
      "cwo",
      "cwoo",
      "cwoo",
      "cwa",
      "cwa",
      "cwaa",
      "cwaa",
      "cwaa",
      "c",
      "th",
      "me",
      "maai",
      "mi",
      "mii",
      "mo",
      "moo",
      "moo",
      "ma",
      "maa",
      "mwe",
      "mwe",
      "mwi",
      "mwi",
      "mwii",
      "mwii",
      "mwo",
      "mwo",
      "mwoo",
      "mwoo",
      "mwa",
      "mwa",
      "mwaa",
      "mwaa",
      "mwaa",
      "m",
      "m",
      "mh",
      "m",
      "m",
      "ne",
      "naai",
      "ni",
      "nii",
      "no",
      "noo",
      "noo",
      "na",
      "naa",
      "nwe",
      "nwe",
      "nwa",
      "nwa",
      "nwaa",
      "nwaa",
      "nwaa",
      "n",
      "ng",
      "nh",
      "le",
      "laai",
      "li",
      "lii",
      "lo",
      "loo",
      "loo",
      "la",
      "laa",
      "lwe",
      "lwe",
      "lwi",
      "lwi",
      "lwii",
      "lwii",
      "lwo",
      "lwo",
      "lwoo",
      "lwoo",
      "lwa",
      "lwa",
      "lwaa",
      "lwaa",
      "l",
      "l",
      "l",
      "se",
      "saai",
      "si",
      "sii",
      "so",
      "soo",
      "soo",
      "sa",
      "saa",
      "swe",
      "swe",
      "swi",
      "swi",
      "swii",
      "swii",
      "swo",
      "swo",
      "swoo",
      "swoo"
    ];
  }
});

// node_modules/unidecode/data/x15.js
var require_x15 = __commonJS({
  "node_modules/unidecode/data/x15.js"(exports2, module2) {
    module2.exports = [
      "swa",
      "swa",
      "swaa",
      "swaa",
      "swaa",
      "s",
      "s",
      "sw",
      "s",
      "sk",
      "skw",
      "sW",
      "spwa",
      "stwa",
      "skwa",
      "scwa",
      "she",
      "shi",
      "shii",
      "sho",
      "shoo",
      "sha",
      "shaa",
      "shwe",
      "shwe",
      "shwi",
      "shwi",
      "shwii",
      "shwii",
      "shwo",
      "shwo",
      "shwoo",
      "shwoo",
      "shwa",
      "shwa",
      "shwaa",
      "shwaa",
      "sh",
      "ye",
      "yaai",
      "yi",
      "yii",
      "yo",
      "yoo",
      "yoo",
      "ya",
      "yaa",
      "ywe",
      "ywe",
      "ywi",
      "ywi",
      "ywii",
      "ywii",
      "ywo",
      "ywo",
      "ywoo",
      "ywoo",
      "ywa",
      "ywa",
      "ywaa",
      "ywaa",
      "ywaa",
      "y",
      "y",
      "y",
      "yi",
      "re",
      "re",
      "le",
      "raai",
      "ri",
      "rii",
      "ro",
      "roo",
      "lo",
      "ra",
      "raa",
      "la",
      "rwaa",
      "rwaa",
      "r",
      "r",
      "r",
      "fe",
      "faai",
      "fi",
      "fii",
      "fo",
      "foo",
      "fa",
      "faa",
      "fwaa",
      "fwaa",
      "f",
      "the",
      "the",
      "thi",
      "thi",
      "thii",
      "thii",
      "tho",
      "thoo",
      "tha",
      "thaa",
      "thwaa",
      "thwaa",
      "th",
      "tthe",
      "tthi",
      "ttho",
      "ttha",
      "tth",
      "tye",
      "tyi",
      "tyo",
      "tya",
      "he",
      "hi",
      "hii",
      "ho",
      "hoo",
      "ha",
      "haa",
      "h",
      "h",
      "hk",
      "qaai",
      "qi",
      "qii",
      "qo",
      "qoo",
      "qa",
      "qaa",
      "q",
      "tlhe",
      "tlhi",
      "tlho",
      "tlha",
      "re",
      "ri",
      "ro",
      "ra",
      "ngaai",
      "ngi",
      "ngii",
      "ngo",
      "ngoo",
      "nga",
      "ngaa",
      "ng",
      "nng",
      "she",
      "shi",
      "sho",
      "sha",
      "the",
      "thi",
      "tho",
      "tha",
      "th",
      "lhi",
      "lhii",
      "lho",
      "lhoo",
      "lha",
      "lhaa",
      "lh",
      "the",
      "thi",
      "thii",
      "tho",
      "thoo",
      "tha",
      "thaa",
      "th",
      "b",
      "e",
      "i",
      "o",
      "a",
      "we",
      "wi",
      "wo",
      "wa",
      "ne",
      "ni",
      "no",
      "na",
      "ke",
      "ki",
      "ko",
      "ka",
      "he",
      "hi",
      "ho",
      "ha",
      "ghu",
      "gho",
      "ghe",
      "ghee",
      "ghi",
      "gha",
      "ru",
      "ro",
      "re",
      "ree",
      "ri",
      "ra",
      "wu",
      "wo",
      "we",
      "wee",
      "wi",
      "wa",
      "hwu",
      "hwo",
      "hwe",
      "hwee",
      "hwi",
      "hwa",
      "thu",
      "tho",
      "the",
      "thee",
      "thi",
      "tha",
      "ttu",
      "tto",
      "tte",
      "ttee",
      "tti",
      "tta",
      "pu",
      "po",
      "pe",
      "pee",
      "pi",
      "pa",
      "p",
      "gu",
      "go",
      "ge",
      "gee",
      "gi",
      "ga",
      "khu",
      "kho",
      "khe",
      "khee",
      "khi",
      "kha",
      "kku",
      "kko",
      "kke",
      "kkee",
      "kki"
    ];
  }
});

// node_modules/unidecode/data/x16.js
var require_x16 = __commonJS({
  "node_modules/unidecode/data/x16.js"(exports2, module2) {
    module2.exports = [
      "kka",
      "kk",
      "nu",
      "no",
      "ne",
      "nee",
      "ni",
      "na",
      "mu",
      "mo",
      "me",
      "mee",
      "mi",
      "ma",
      "yu",
      "yo",
      "ye",
      "yee",
      "yi",
      "ya",
      "ju",
      "ju",
      "jo",
      "je",
      "jee",
      "ji",
      "ji",
      "ja",
      "jju",
      "jjo",
      "jje",
      "jjee",
      "jji",
      "jja",
      "lu",
      "lo",
      "le",
      "lee",
      "li",
      "la",
      "dlu",
      "dlo",
      "dle",
      "dlee",
      "dli",
      "dla",
      "lhu",
      "lho",
      "lhe",
      "lhee",
      "lhi",
      "lha",
      "tlhu",
      "tlho",
      "tlhe",
      "tlhee",
      "tlhi",
      "tlha",
      "tlu",
      "tlo",
      "tle",
      "tlee",
      "tli",
      "tla",
      "zu",
      "zo",
      "ze",
      "zee",
      "zi",
      "za",
      "z",
      "z",
      "dzu",
      "dzo",
      "dze",
      "dzee",
      "dzi",
      "dza",
      "su",
      "so",
      "se",
      "see",
      "si",
      "sa",
      "shu",
      "sho",
      "she",
      "shee",
      "shi",
      "sha",
      "sh",
      "tsu",
      "tso",
      "tse",
      "tsee",
      "tsi",
      "tsa",
      "chu",
      "cho",
      "che",
      "chee",
      "chi",
      "cha",
      "ttsu",
      "ttso",
      "ttse",
      "ttsee",
      "ttsi",
      "ttsa",
      "X",
      ".",
      "qai",
      "ngai",
      "nngi",
      "nngii",
      "nngo",
      "nngoo",
      "nnga",
      "nngaa",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      " ",
      "b",
      "l",
      "f",
      "s",
      "n",
      "h",
      "d",
      "t",
      "c",
      "q",
      "m",
      "g",
      "ng",
      "z",
      "r",
      "a",
      "o",
      "u",
      "e",
      "i",
      "ch",
      "th",
      "ph",
      "p",
      "x",
      "p",
      "<",
      ">",
      "[?]",
      "[?]",
      "[?]",
      "f",
      "v",
      "u",
      "yr",
      "y",
      "w",
      "th",
      "th",
      "a",
      "o",
      "ac",
      "ae",
      "o",
      "o",
      "o",
      "oe",
      "on",
      "r",
      "k",
      "c",
      "k",
      "g",
      "ng",
      "g",
      "g",
      "w",
      "h",
      "h",
      "h",
      "h",
      "n",
      "n",
      "n",
      "i",
      "e",
      "j",
      "g",
      "ae",
      "a",
      "eo",
      "p",
      "z",
      "s",
      "s",
      "s",
      "c",
      "z",
      "t",
      "t",
      "d",
      "b",
      "b",
      "p",
      "p",
      "e",
      "m",
      "m",
      "m",
      "l",
      "l",
      "ng",
      "ng",
      "d",
      "o",
      "ear",
      "ior",
      "qu",
      "qu",
      "qu",
      "s",
      "yr",
      "yr",
      "yr",
      "q",
      "x",
      ".",
      ":",
      "+",
      "17",
      "18",
      "19",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]"
    ];
  }
});

// node_modules/unidecode/data/x17.js
var require_x17 = __commonJS({
  "node_modules/unidecode/data/x17.js"(exports2, module2) {
    module2.exports = [
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "k",
      "kh",
      "g",
      "gh",
      "ng",
      "c",
      "ch",
      "j",
      "jh",
      "ny",
      "t",
      "tth",
      "d",
      "ddh",
      "nn",
      "t",
      "th",
      "d",
      "dh",
      "n",
      "p",
      "ph",
      "b",
      "bh",
      "m",
      "y",
      "r",
      "l",
      "v",
      "sh",
      "ss",
      "s",
      "h",
      "l",
      "q",
      "a",
      "aa",
      "i",
      "ii",
      "u",
      "uk",
      "uu",
      "uuv",
      "ry",
      "ryy",
      "ly",
      "lyy",
      "e",
      "ai",
      "oo",
      "oo",
      "au",
      "a",
      "aa",
      "aa",
      "i",
      "ii",
      "y",
      "yy",
      "u",
      "uu",
      "ua",
      "oe",
      "ya",
      "ie",
      "e",
      "ae",
      "ai",
      "oo",
      "au",
      "M",
      "H",
      "a`",
      "",
      "",
      "",
      "r",
      "",
      "!",
      "",
      "",
      "",
      "",
      "",
      ".",
      " // ",
      ":",
      "+",
      "++",
      " * ",
      " /// ",
      "KR",
      "'",
      "[?]",
      "[?]",
      "[?]",
      "0",
      "1",
      "2",
      "3",
      "4",
      "5",
      "6",
      "7",
      "8",
      "9",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]"
    ];
  }
});

// node_modules/unidecode/data/x18.js
var require_x18 = __commonJS({
  "node_modules/unidecode/data/x18.js"(exports2, module2) {
    module2.exports = [
      " \\@ ",
      " ... ",
      ", ",
      ". ",
      ": ",
      " // ",
      "",
      "-",
      ", ",
      ". ",
      "",
      "",
      "",
      "",
      "",
      "[?]",
      "0",
      "1",
      "2",
      "3",
      "4",
      "5",
      "6",
      "7",
      "8",
      "9",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "a",
      "e",
      "i",
      "o",
      "u",
      "O",
      "U",
      "ee",
      "n",
      "ng",
      "b",
      "p",
      "q",
      "g",
      "m",
      "l",
      "s",
      "sh",
      "t",
      "d",
      "ch",
      "j",
      "y",
      "r",
      "w",
      "f",
      "k",
      "kha",
      "ts",
      "z",
      "h",
      "zr",
      "lh",
      "zh",
      "ch",
      "-",
      "e",
      "i",
      "o",
      "u",
      "O",
      "U",
      "ng",
      "b",
      "p",
      "q",
      "g",
      "m",
      "t",
      "d",
      "ch",
      "j",
      "ts",
      "y",
      "w",
      "k",
      "g",
      "h",
      "jy",
      "ny",
      "dz",
      "e",
      "i",
      "iy",
      "U",
      "u",
      "ng",
      "k",
      "g",
      "h",
      "p",
      "sh",
      "t",
      "d",
      "j",
      "f",
      "g",
      "h",
      "ts",
      "z",
      "r",
      "ch",
      "zh",
      "i",
      "k",
      "r",
      "f",
      "zh",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "H",
      "X",
      "W",
      "M",
      " 3 ",
      " 333 ",
      "a",
      "i",
      "k",
      "ng",
      "c",
      "tt",
      "tth",
      "dd",
      "nn",
      "t",
      "d",
      "p",
      "ph",
      "ss",
      "zh",
      "z",
      "a",
      "t",
      "zh",
      "gh",
      "ng",
      "c",
      "jh",
      "tta",
      "ddh",
      "t",
      "dh",
      "ss",
      "cy",
      "zh",
      "z",
      "u",
      "y",
      "bh",
      "'",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]"
    ];
  }
});

// node_modules/unidecode/data/x19.js
var require_x19 = __commonJS({
  "node_modules/unidecode/data/x19.js"(exports2, module2) {
    module2.exports = [
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]"
    ];
  }
});

// node_modules/unidecode/data/x1a.js
var require_x1a = __commonJS({
  "node_modules/unidecode/data/x1a.js"(exports2, module2) {
    module2.exports = [
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]"
    ];
  }
});

// node_modules/unidecode/data/x1b.js
var require_x1b = __commonJS({
  "node_modules/unidecode/data/x1b.js"(exports2, module2) {
    module2.exports = [
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]"
    ];
  }
});

// node_modules/unidecode/data/x1c.js
var require_x1c = __commonJS({
  "node_modules/unidecode/data/x1c.js"(exports2, module2) {
    module2.exports = [
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]"
    ];
  }
});

// node_modules/unidecode/data/x1d.js
var require_x1d = __commonJS({
  "node_modules/unidecode/data/x1d.js"(exports2, module2) {
    module2.exports = [
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]"
    ];
  }
});

// node_modules/unidecode/data/x1e.js
var require_x1e = __commonJS({
  "node_modules/unidecode/data/x1e.js"(exports2, module2) {
    module2.exports = [
      "A",
      "a",
      "B",
      "b",
      "B",
      "b",
      "B",
      "b",
      "C",
      "c",
      "D",
      "d",
      "D",
      "d",
      "D",
      "d",
      "D",
      "d",
      "D",
      "d",
      "E",
      "e",
      "E",
      "e",
      "E",
      "e",
      "E",
      "e",
      "E",
      "e",
      "F",
      "f",
      "G",
      "g",
      "H",
      "h",
      "H",
      "h",
      "H",
      "h",
      "H",
      "h",
      "H",
      "h",
      "I",
      "i",
      "I",
      "i",
      "K",
      "k",
      "K",
      "k",
      "K",
      "k",
      "L",
      "l",
      "L",
      "l",
      "L",
      "l",
      "L",
      "l",
      "M",
      "m",
      "M",
      "m",
      "M",
      "m",
      "N",
      "n",
      "N",
      "n",
      "N",
      "n",
      "N",
      "n",
      "O",
      "o",
      "O",
      "o",
      "O",
      "o",
      "O",
      "o",
      "P",
      "p",
      "P",
      "p",
      "R",
      "r",
      "R",
      "r",
      "R",
      "r",
      "R",
      "r",
      "S",
      "s",
      "S",
      "s",
      "S",
      "s",
      "S",
      "s",
      "S",
      "s",
      "T",
      "t",
      "T",
      "t",
      "T",
      "t",
      "T",
      "t",
      "U",
      "u",
      "U",
      "u",
      "U",
      "u",
      "U",
      "u",
      "U",
      "u",
      "V",
      "v",
      "V",
      "v",
      "W",
      "w",
      "W",
      "w",
      "W",
      "w",
      "W",
      "w",
      "W",
      "w",
      "X",
      "x",
      "X",
      "x",
      "Y",
      "y",
      "Z",
      "z",
      "Z",
      "z",
      "Z",
      "z",
      "h",
      "t",
      "w",
      "y",
      "a",
      "s",
      "s",
      "s",
      "Ss",
      "d",
      "A",
      "a",
      "A",
      "a",
      "A",
      "a",
      "A",
      "a",
      "A",
      "a",
      "A",
      "a",
      "A",
      "a",
      "A",
      "a",
      "A",
      "a",
      "A",
      "a",
      "A",
      "a",
      "A",
      "a",
      "E",
      "e",
      "E",
      "e",
      "E",
      "e",
      "E",
      "e",
      "E",
      "e",
      "E",
      "e",
      "E",
      "e",
      "E",
      "e",
      "I",
      "i",
      "I",
      "i",
      "O",
      "o",
      "O",
      "o",
      "O",
      "o",
      "O",
      "o",
      "O",
      "o",
      "O",
      "o",
      "O",
      "o",
      "O",
      "o",
      "O",
      "o",
      "O",
      "o",
      "O",
      "o",
      "O",
      "o",
      "U",
      "u",
      "U",
      "u",
      "U",
      "u",
      "U",
      "u",
      "U",
      "u",
      "U",
      "u",
      //  0x1EF_:
      "U",
      // 1EF0	LATIN CAPITAL LETTER U WITH HORN AND DOT BELOW
      // 	: 01AF 0323
      "u",
      // 1EF1	LATIN SMALL LETTER U WITH HORN AND DOT BELOW
      // 	: 01B0 0323
      // @		Latin general extensions
      "Y",
      // 1EF2	LATIN CAPITAL LETTER Y WITH GRAVE
      // 	: 0059 0300
      "y",
      // 1EF3	LATIN SMALL LETTER Y WITH GRAVE
      // 	* Welsh
      // 	: 0079 0300
      "Y",
      // 1EF4	LATIN CAPITAL LETTER Y WITH DOT BELOW
      // 	: 0059 0323
      "y",
      // 1EF5	LATIN SMALL LETTER Y WITH DOT BELOW
      // 	: 0079 0323
      "Y",
      // 1EF6	LATIN CAPITAL LETTER Y WITH HOOK ABOVE
      // 	: 0059 0309
      "y",
      // 1EF7	LATIN SMALL LETTER Y WITH HOOK ABOVE
      // 	: 0079 0309
      "Y",
      // 1EF8	LATIN CAPITAL LETTER Y WITH TILDE
      // 	: 0059 0303
      "y",
      // 1EF9	LATIN SMALL LETTER Y WITH TILDE
      // 	: 0079 0303
      // @		Medievalist additions
      "LL",
      // 1EFA	LATIN CAPITAL LETTER MIDDLE-WELSH LL
      "ll",
      // 1EFB	LATIN SMALL LETTER MIDDLE-WELSH LL
      "V",
      // 1EFC	LATIN CAPITAL LETTER MIDDLE-WELSH V
      "v",
      // 1EFD	LATIN SMALL LETTER MIDDLE-WELSH V
      "Y",
      // 1EFE	LATIN CAPITAL LETTER Y WITH LOOP
      "y"
      // 1EFF	LATIN SMALL LETTER Y WITH LOOP
    ];
  }
});

// node_modules/unidecode/data/x1f.js
var require_x1f = __commonJS({
  "node_modules/unidecode/data/x1f.js"(exports2, module2) {
    module2.exports = [
      "a",
      "a",
      "a",
      "a",
      "a",
      "a",
      "a",
      "a",
      "A",
      "A",
      "A",
      "A",
      "A",
      "A",
      "A",
      "A",
      "e",
      "e",
      "e",
      "e",
      "e",
      "e",
      "[?]",
      "[?]",
      "E",
      "E",
      "E",
      "E",
      "E",
      "E",
      "[?]",
      "[?]",
      "e",
      "e",
      "e",
      "e",
      "e",
      "e",
      "e",
      "e",
      "E",
      "E",
      "E",
      "E",
      "E",
      "E",
      "E",
      "E",
      "i",
      "i",
      "i",
      "i",
      "i",
      "i",
      "i",
      "i",
      "I",
      "I",
      "I",
      "I",
      "I",
      "I",
      "I",
      "I",
      "o",
      "o",
      "o",
      "o",
      "o",
      "o",
      "[?]",
      "[?]",
      "O",
      "O",
      "O",
      "O",
      "O",
      "O",
      "[?]",
      "[?]",
      "u",
      "u",
      "u",
      "u",
      "u",
      "u",
      "u",
      "u",
      "[?]",
      "U",
      "[?]",
      "U",
      "[?]",
      "U",
      "[?]",
      "U",
      "o",
      "o",
      "o",
      "o",
      "o",
      "o",
      "o",
      "o",
      "O",
      "O",
      "O",
      "O",
      "O",
      "O",
      "O",
      "O",
      "a",
      "a",
      "e",
      "e",
      "e",
      "e",
      "i",
      "i",
      "o",
      "o",
      "u",
      "u",
      "o",
      "o",
      "[?]",
      "[?]",
      "a",
      "a",
      "a",
      "a",
      "a",
      "a",
      "a",
      "a",
      "A",
      "A",
      "A",
      "A",
      "A",
      "A",
      "A",
      "A",
      "e",
      "e",
      "e",
      "e",
      "e",
      "e",
      "e",
      "e",
      "E",
      "E",
      "E",
      "E",
      "E",
      "E",
      "E",
      "E",
      "o",
      "o",
      "o",
      "o",
      "o",
      "o",
      "o",
      "o",
      "O",
      "O",
      "O",
      "O",
      "O",
      "O",
      "O",
      "O",
      "a",
      "a",
      "a",
      "a",
      "a",
      "[?]",
      "a",
      "a",
      "A",
      "A",
      "A",
      "A",
      "A",
      "'",
      "i",
      "'",
      "~",
      '"~',
      "e",
      "e",
      "e",
      "[?]",
      "e",
      "e",
      "E",
      "E",
      "E",
      "E",
      "E",
      "'`",
      "''",
      "'~",
      "i",
      "i",
      "i",
      "i",
      "[?]",
      "[?]",
      "i",
      "i",
      "I",
      "I",
      "I",
      "I",
      "[?]",
      "`'",
      "`'",
      "`~",
      "u",
      "u",
      "u",
      "u",
      "R",
      "R",
      "u",
      "u",
      "U",
      "U",
      "U",
      "U",
      "R",
      '"`',
      `"'`,
      "`",
      "[?]",
      "[?]",
      "o",
      "o",
      "o",
      "[?]",
      "o",
      "o",
      "O",
      "O",
      "O",
      "O",
      "O",
      "'",
      "`",
      "[?]"
    ];
  }
});

// node_modules/unidecode/data/x20.js
var require_x20 = __commonJS({
  "node_modules/unidecode/data/x20.js"(exports2, module2) {
    module2.exports = [
      " ",
      " ",
      " ",
      " ",
      " ",
      " ",
      " ",
      " ",
      " ",
      " ",
      " ",
      " ",
      "",
      "",
      "",
      "",
      "-",
      "-",
      "-",
      "-",
      "--",
      "--",
      "||",
      "_",
      "'",
      "'",
      ",",
      "'",
      '"',
      '"',
      ",,",
      '"',
      "+",
      "++",
      "*",
      "*>",
      ".",
      "..",
      "...",
      ".",
      "\\n",
      "\\n\\n",
      "",
      "",
      "",
      "",
      "",
      " ",
      "%0",
      "%00",
      "'",
      "''",
      "'''",
      "`",
      "``",
      "```",
      "^",
      "<",
      ">",
      "*",
      "!!",
      "!?",
      "-",
      "_",
      "-",
      "^",
      "***",
      "--",
      "/",
      "-[",
      "]-",
      "[?]",
      "?!",
      "!?",
      "7",
      "PP",
      "(]",
      "[)",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "",
      "",
      "",
      "",
      "",
      "",
      "0",
      "",
      "",
      "",
      "4",
      "5",
      "6",
      "7",
      "8",
      "9",
      "+",
      "-",
      "=",
      "(",
      ")",
      "n",
      "0",
      "1",
      "2",
      "3",
      "4",
      "5",
      "6",
      "7",
      "8",
      "9",
      "+",
      "-",
      "=",
      "(",
      ")",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "ECU",
      "CL",
      "Cr",
      "FF",
      "L",
      "mil",
      "N",
      "Pts",
      "Rs",
      "W",
      "NS",
      "D",
      "EUR",
      "K",
      "T",
      "Dr",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]"
    ];
  }
});

// node_modules/unidecode/data/x21.js
var require_x21 = __commonJS({
  "node_modules/unidecode/data/x21.js"(exports2, module2) {
    module2.exports = [
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "tm",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      " 1/3 ",
      " 2/3 ",
      " 1/5 ",
      " 2/5 ",
      " 3/5 ",
      " 4/5 ",
      " 1/6 ",
      " 5/6 ",
      " 1/8 ",
      " 3/8 ",
      " 5/8 ",
      " 7/8 ",
      " 1/",
      "I",
      "II",
      "III",
      "IV",
      "V",
      "VI",
      "VII",
      "VIII",
      "IX",
      "X",
      "XI",
      "XII",
      "L",
      "C",
      "D",
      "M",
      "i",
      "ii",
      "iii",
      "iv",
      "v",
      "vi",
      "vii",
      "viii",
      "ix",
      "x",
      "xi",
      "xii",
      "l",
      "c",
      "d",
      "m",
      "(D",
      "D)",
      "((|))",
      ")",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "-",
      "|",
      "-",
      "|",
      "-",
      "|",
      "\\\\",
      "/",
      "\\\\",
      "/",
      "-",
      "-",
      "~",
      "~",
      "-",
      "|",
      "-",
      "|",
      "-",
      "-",
      "-",
      "|",
      "-",
      "|",
      "|",
      "-",
      "-",
      "-",
      "-",
      "-",
      "-",
      "|",
      "|",
      "|",
      "|",
      "|",
      "|",
      "|",
      "^",
      "V",
      "\\\\",
      "=",
      "V",
      "^",
      "-",
      "-",
      "|",
      "|",
      "-",
      "-",
      "|",
      "|",
      "=",
      "|",
      "=",
      "=",
      "|",
      "=",
      "|",
      "=",
      "=",
      "=",
      "=",
      "=",
      "=",
      "|",
      "=",
      "|",
      "=",
      "|",
      "\\\\",
      "/",
      "\\\\",
      "/",
      "=",
      "=",
      "~",
      "~",
      "|",
      "|",
      "-",
      "|",
      "-",
      "|",
      "-",
      "-",
      "-",
      "|",
      "-",
      "|",
      "|",
      "|",
      "|",
      "|",
      "|",
      "|",
      "-",
      "\\\\",
      "\\\\",
      "|",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]"
    ];
  }
});

// node_modules/unidecode/data/x22.js
var require_x22 = __commonJS({
  "node_modules/unidecode/data/x22.js"(exports2, module2) {
    module2.exports = [
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]"
    ];
  }
});

// node_modules/unidecode/data/x23.js
var require_x23 = __commonJS({
  "node_modules/unidecode/data/x23.js"(exports2, module2) {
    module2.exports = [
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]"
    ];
  }
});

// node_modules/unidecode/data/x24.js
var require_x24 = __commonJS({
  "node_modules/unidecode/data/x24.js"(exports2, module2) {
    module2.exports = [
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]"
    ];
  }
});

// node_modules/unidecode/data/x25.js
var require_x25 = __commonJS({
  "node_modules/unidecode/data/x25.js"(exports2, module2) {
    module2.exports = [
      "-",
      "-",
      "|",
      "|",
      "-",
      "-",
      "|",
      "|",
      "-",
      "-",
      "|",
      "|",
      "+",
      "+",
      "+",
      "+",
      "+",
      "+",
      "+",
      "+",
      "+",
      "+",
      "+",
      "+",
      "+",
      "+",
      "+",
      "+",
      "+",
      "+",
      "+",
      "+",
      "+",
      "+",
      "+",
      "+",
      "+",
      "+",
      "+",
      "+",
      "+",
      "+",
      "+",
      "+",
      "+",
      "+",
      "+",
      "+",
      "+",
      "+",
      "+",
      "+",
      "+",
      "+",
      "+",
      "+",
      "+",
      "+",
      "+",
      "+",
      "+",
      "+",
      "+",
      "+",
      "+",
      "+",
      "+",
      "+",
      "+",
      "+",
      "+",
      "+",
      "+",
      "+",
      "+",
      "+",
      "-",
      "-",
      "|",
      "|",
      "-",
      "|",
      "+",
      "+",
      "+",
      "+",
      "+",
      "+",
      "+",
      "+",
      "+",
      "+",
      "+",
      "+",
      "+",
      "+",
      "+",
      "+",
      "+",
      "+",
      "+",
      "+",
      "+",
      "+",
      "+",
      "+",
      "+",
      "+",
      "+",
      "+",
      "+",
      "+",
      "+",
      "/",
      "\\\\",
      "X",
      "-",
      "|",
      "-",
      "|",
      "-",
      "|",
      "-",
      "|",
      "-",
      "|",
      "-",
      "|",
      "#",
      "#",
      "#",
      "#",
      "#",
      "#",
      "#",
      "#",
      "#",
      "#",
      "#",
      "#",
      "#",
      "#",
      "#",
      "#",
      "#",
      "#",
      "#",
      "#",
      "-",
      "|",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "#",
      "#",
      "#",
      "#",
      "#",
      "#",
      "#",
      "#",
      "#",
      "#",
      "#",
      "#",
      "#",
      "#",
      "#",
      "#",
      "#",
      "#",
      "^",
      "^",
      "^",
      "^",
      ">",
      ">",
      ">",
      ">",
      ">",
      ">",
      "V",
      "V",
      "V",
      "V",
      "<",
      "<",
      "<",
      "<",
      "<",
      "<",
      "*",
      "*",
      "*",
      "*",
      "*",
      "*",
      "*",
      "*",
      "*",
      "*",
      "*",
      "*",
      "*",
      "*",
      "*",
      "*",
      "*",
      "*",
      "*",
      "*",
      "*",
      "*",
      "*",
      "*",
      "*",
      "*",
      "*",
      "*",
      "*",
      "*",
      "*",
      "*",
      "*",
      "#",
      "#",
      "#",
      "#",
      "#",
      "^",
      "^",
      "^",
      "O",
      "#",
      "#",
      "#",
      "#",
      "O",
      "O",
      "O",
      "O",
      "/",
      "\\",
      "\\",
      "#",
      "#",
      "#",
      "#",
      "/"
    ];
  }
});

// node_modules/unidecode/data/x26.js
var require_x26 = __commonJS({
  "node_modules/unidecode/data/x26.js"(exports2, module2) {
    module2.exports = [
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]"
    ];
  }
});

// node_modules/unidecode/data/x27.js
var require_x27 = __commonJS({
  "node_modules/unidecode/data/x27.js"(exports2, module2) {
    module2.exports = [
      "[?]",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "[?]",
      "[?]",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "[?]",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]"
    ];
  }
});

// node_modules/unidecode/data/x28.js
var require_x28 = __commonJS({
  "node_modules/unidecode/data/x28.js"(exports2, module2) {
    module2.exports = [
      " ",
      "a",
      "1",
      "b",
      "'",
      "k",
      "2",
      "l",
      "\\@",
      "c",
      "i",
      "f",
      "/",
      "m",
      "s",
      "p",
      '"',
      "e",
      "3",
      "h",
      "9",
      "o",
      "6",
      "r",
      "^",
      "d",
      "j",
      "g",
      ">",
      "n",
      "t",
      "q",
      ",",
      "*",
      "5",
      "<",
      "-",
      "u",
      "8",
      "v",
      ".",
      "%",
      "[",
      "\\$",
      "+",
      "x",
      "!",
      "&",
      ";",
      ":",
      "4",
      "\\\\",
      "0",
      "z",
      "7",
      "(",
      "_",
      "?",
      "w",
      "]",
      "#",
      "y",
      ")",
      "=",
      "[d7]",
      "[d17]",
      "[d27]",
      "[d127]",
      "[d37]",
      "[d137]",
      "[d237]",
      "[d1237]",
      "[d47]",
      "[d147]",
      "[d247]",
      "[d1247]",
      "[d347]",
      "[d1347]",
      "[d2347]",
      "[d12347]",
      "[d57]",
      "[d157]",
      "[d257]",
      "[d1257]",
      "[d357]",
      "[d1357]",
      "[d2357]",
      "[d12357]",
      "[d457]",
      "[d1457]",
      "[d2457]",
      "[d12457]",
      "[d3457]",
      "[d13457]",
      "[d23457]",
      "[d123457]",
      "[d67]",
      "[d167]",
      "[d267]",
      "[d1267]",
      "[d367]",
      "[d1367]",
      "[d2367]",
      "[d12367]",
      "[d467]",
      "[d1467]",
      "[d2467]",
      "[d12467]",
      "[d3467]",
      "[d13467]",
      "[d23467]",
      "[d123467]",
      "[d567]",
      "[d1567]",
      "[d2567]",
      "[d12567]",
      "[d3567]",
      "[d13567]",
      "[d23567]",
      "[d123567]",
      "[d4567]",
      "[d14567]",
      "[d24567]",
      "[d124567]",
      "[d34567]",
      "[d134567]",
      "[d234567]",
      "[d1234567]",
      "[d8]",
      "[d18]",
      "[d28]",
      "[d128]",
      "[d38]",
      "[d138]",
      "[d238]",
      "[d1238]",
      "[d48]",
      "[d148]",
      "[d248]",
      "[d1248]",
      "[d348]",
      "[d1348]",
      "[d2348]",
      "[d12348]",
      "[d58]",
      "[d158]",
      "[d258]",
      "[d1258]",
      "[d358]",
      "[d1358]",
      "[d2358]",
      "[d12358]",
      "[d458]",
      "[d1458]",
      "[d2458]",
      "[d12458]",
      "[d3458]",
      "[d13458]",
      "[d23458]",
      "[d123458]",
      "[d68]",
      "[d168]",
      "[d268]",
      "[d1268]",
      "[d368]",
      "[d1368]",
      "[d2368]",
      "[d12368]",
      "[d468]",
      "[d1468]",
      "[d2468]",
      "[d12468]",
      "[d3468]",
      "[d13468]",
      "[d23468]",
      "[d123468]",
      "[d568]",
      "[d1568]",
      "[d2568]",
      "[d12568]",
      "[d3568]",
      "[d13568]",
      "[d23568]",
      "[d123568]",
      "[d4568]",
      "[d14568]",
      "[d24568]",
      "[d124568]",
      "[d34568]",
      "[d134568]",
      "[d234568]",
      "[d1234568]",
      "[d78]",
      "[d178]",
      "[d278]",
      "[d1278]",
      "[d378]",
      "[d1378]",
      "[d2378]",
      "[d12378]",
      "[d478]",
      "[d1478]",
      "[d2478]",
      "[d12478]",
      "[d3478]",
      "[d13478]",
      "[d23478]",
      "[d123478]",
      "[d578]",
      "[d1578]",
      "[d2578]",
      "[d12578]",
      "[d3578]",
      "[d13578]",
      "[d23578]",
      "[d123578]",
      "[d4578]",
      "[d14578]",
      "[d24578]",
      "[d124578]",
      "[d34578]",
      "[d134578]",
      "[d234578]",
      "[d1234578]",
      "[d678]",
      "[d1678]",
      "[d2678]",
      "[d12678]",
      "[d3678]",
      "[d13678]",
      "[d23678]",
      "[d123678]",
      "[d4678]",
      "[d14678]",
      "[d24678]",
      "[d124678]",
      "[d34678]",
      "[d134678]",
      "[d234678]",
      "[d1234678]",
      "[d5678]",
      "[d15678]",
      "[d25678]",
      "[d125678]",
      "[d35678]",
      "[d135678]",
      "[d235678]",
      "[d1235678]",
      "[d45678]",
      "[d145678]",
      "[d245678]",
      "[d1245678]",
      "[d345678]",
      "[d1345678]",
      "[d2345678]",
      "[d12345678]"
    ];
  }
});

// node_modules/unidecode/data/x2e.js
var require_x2e = __commonJS({
  "node_modules/unidecode/data/x2e.js"(exports2, module2) {
    module2.exports = [
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?]",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]"
    ];
  }
});

// node_modules/unidecode/data/x2f.js
var require_x2f = __commonJS({
  "node_modules/unidecode/data/x2f.js"(exports2, module2) {
    module2.exports = [
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?]",
      "[?]",
      "[?]",
      "[?]"
    ];
  }
});

// node_modules/unidecode/data/x30.js
var require_x30 = __commonJS({
  "node_modules/unidecode/data/x30.js"(exports2, module2) {
    module2.exports = [
      " ",
      ", ",
      ". ",
      '"',
      "[JIS]",
      '"',
      "/",
      "0",
      "<",
      "> ",
      "<<",
      ">> ",
      "[",
      "] ",
      "\\{",
      "\\} ",
      "[(",
      ")] ",
      "\\@",
      "X ",
      "[",
      "] ",
      "[[",
      "]] ",
      "((",
      ")) ",
      "[[",
      "]] ",
      "~ ",
      "``",
      "''",
      ",,",
      "\\@",
      "1",
      "2",
      "3",
      "4",
      "5",
      "6",
      "7",
      "8",
      "9",
      "",
      "",
      "",
      "",
      "",
      "",
      "~",
      "+",
      "+",
      "+",
      "+",
      "",
      "\\@",
      " // ",
      "+10+",
      "+20+",
      "+30+",
      "[?]",
      "[?]",
      "[?]",
      "",
      "",
      "[?]",
      "a",
      "a",
      "i",
      "i",
      "u",
      "u",
      "e",
      "e",
      "o",
      "o",
      "ka",
      "ga",
      "ki",
      "gi",
      "ku",
      "gu",
      "ke",
      "ge",
      "ko",
      "go",
      "sa",
      "za",
      "si",
      "zi",
      "su",
      "zu",
      "se",
      "ze",
      "so",
      "zo",
      "ta",
      "da",
      "ti",
      "di",
      "tu",
      "tu",
      "du",
      "te",
      "de",
      "to",
      "do",
      "na",
      "ni",
      "nu",
      "ne",
      "no",
      "ha",
      "ba",
      "pa",
      "hi",
      "bi",
      "pi",
      "hu",
      "bu",
      "pu",
      "he",
      "be",
      "pe",
      "ho",
      "bo",
      "po",
      "ma",
      "mi",
      "mu",
      "me",
      "mo",
      "ya",
      "ya",
      "yu",
      "yu",
      "yo",
      "yo",
      "ra",
      "ri",
      "ru",
      "re",
      "ro",
      "wa",
      "wa",
      "wi",
      "we",
      "wo",
      "n",
      "vu",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "",
      "",
      "",
      "",
      '"',
      '"',
      "[?]",
      "[?]",
      "a",
      "a",
      "i",
      "i",
      "u",
      "u",
      "e",
      "e",
      "o",
      "o",
      "ka",
      "ga",
      "ki",
      "gi",
      "ku",
      "gu",
      "ke",
      "ge",
      "ko",
      "go",
      "sa",
      "za",
      "si",
      "zi",
      "su",
      "zu",
      "se",
      "ze",
      "so",
      "zo",
      "ta",
      "da",
      "ti",
      "di",
      "tu",
      "tu",
      "du",
      "te",
      "de",
      "to",
      "do",
      "na",
      "ni",
      "nu",
      "ne",
      "no",
      "ha",
      "ba",
      "pa",
      "hi",
      "bi",
      "pi",
      "hu",
      "bu",
      "pu",
      "he",
      "be",
      "pe",
      "ho",
      "bo",
      "po",
      "ma",
      "mi",
      "mu",
      "me",
      "mo",
      "ya",
      "ya",
      "yu",
      "yu",
      "yo",
      "yo",
      "ra",
      "ri",
      "ru",
      "re",
      "ro",
      "wa",
      "wa",
      "wi",
      "we",
      "wo",
      "n",
      "vu",
      "ka",
      "ke",
      "va",
      "vi",
      "ve",
      "vo",
      "",
      "",
      '"',
      '"',
      "koto"
    ];
  }
});

// node_modules/unidecode/data/x31.js
var require_x31 = __commonJS({
  "node_modules/unidecode/data/x31.js"(exports2, module2) {
    module2.exports = [
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "B",
      "P",
      "M",
      "F",
      "D",
      "T",
      "N",
      "L",
      "G",
      "K",
      "H",
      "J",
      "Q",
      "X",
      "ZH",
      "CH",
      "SH",
      "R",
      "Z",
      "C",
      "S",
      "A",
      "O",
      "E",
      "EH",
      "AI",
      "EI",
      "AU",
      "OU",
      "AN",
      "EN",
      "ANG",
      "ENG",
      "ER",
      "I",
      "U",
      "IU",
      "V",
      "NG",
      "GN",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "g",
      "gg",
      "gs",
      "n",
      "nj",
      "nh",
      "d",
      "dd",
      "r",
      "lg",
      "lm",
      "lb",
      "ls",
      "lt",
      "lp",
      "rh",
      "m",
      "b",
      "bb",
      "bs",
      "s",
      "ss",
      "",
      "j",
      "jj",
      "c",
      "k",
      "t",
      "p",
      "h",
      "a",
      "ae",
      "ya",
      "yae",
      "eo",
      "e",
      "yeo",
      "ye",
      "o",
      "wa",
      "wae",
      "oe",
      "yo",
      "u",
      "weo",
      "we",
      "wi",
      "yu",
      "eu",
      "yi",
      "i",
      "",
      "nn",
      "nd",
      "ns",
      "nZ",
      "lgs",
      "ld",
      "lbs",
      "lZ",
      "lQ",
      "mb",
      "ms",
      "mZ",
      "mN",
      "bg",
      "",
      "bsg",
      "bst",
      "bj",
      "bt",
      "bN",
      "bbN",
      "sg",
      "sn",
      "sd",
      "sb",
      "sj",
      "Z",
      "",
      "N",
      "Ns",
      "NZ",
      "pN",
      "hh",
      "Q",
      "yo-ya",
      "yo-yae",
      "yo-i",
      "yu-yeo",
      "yu-ye",
      "yu-i",
      "U",
      "U-i",
      "[?]",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "BU",
      "ZI",
      "JI",
      "GU",
      "EE",
      "ENN",
      "OO",
      "ONN",
      "IR",
      "ANN",
      "INN",
      "UNN",
      "IM",
      "NGG",
      "AINN",
      "AUNN",
      "AM",
      "OM",
      "ONG",
      "INNN",
      "P",
      "T",
      "K",
      "H",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]"
    ];
  }
});

// node_modules/unidecode/data/x32.js
var require_x32 = __commonJS({
  "node_modules/unidecode/data/x32.js"(exports2, module2) {
    module2.exports = [
      "(g)",
      "(n)",
      "(d)",
      "(r)",
      "(m)",
      "(b)",
      "(s)",
      "()",
      "(j)",
      "(c)",
      "(k)",
      "(t)",
      "(p)",
      "(h)",
      "(ga)",
      "(na)",
      "(da)",
      "(ra)",
      "(ma)",
      "(ba)",
      "(sa)",
      "(a)",
      "(ja)",
      "(ca)",
      "(ka)",
      "(ta)",
      "(pa)",
      "(ha)",
      "(ju)",
      "[?]",
      "[?]",
      "[?]",
      "(1) ",
      "(2) ",
      "(3) ",
      "(4) ",
      "(5) ",
      "(6) ",
      "(7) ",
      "(8) ",
      "(9) ",
      "(10) ",
      "(Yue) ",
      "(Huo) ",
      "(Shui) ",
      "(Mu) ",
      "(Jin) ",
      "(Tu) ",
      "(Ri) ",
      "(Zhu) ",
      "(You) ",
      "(She) ",
      "(Ming) ",
      "(Te) ",
      "(Cai) ",
      "(Zhu) ",
      "(Lao) ",
      "(Dai) ",
      "(Hu) ",
      "(Xue) ",
      "(Jian) ",
      "(Qi) ",
      "(Zi) ",
      "(Xie) ",
      "(Ji) ",
      "(Xiu) ",
      "<<",
      ">>",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "(g)",
      "(n)",
      "(d)",
      "(r)",
      "(m)",
      "(b)",
      "(s)",
      "()",
      "(j)",
      "(c)",
      "(k)",
      "(t)",
      "(p)",
      "(h)",
      "(ga)",
      "(na)",
      "(da)",
      "(ra)",
      "(ma)",
      "(ba)",
      "(sa)",
      "(a)",
      "(ja)",
      "(ca)",
      "(ka)",
      "(ta)",
      "(pa)",
      "(ha)",
      "[?]",
      "[?]",
      "[?]",
      "KIS ",
      "(1) ",
      "(2) ",
      "(3) ",
      "(4) ",
      "(5) ",
      "(6) ",
      "(7) ",
      "(8) ",
      "(9) ",
      "(10) ",
      "(Yue) ",
      "(Huo) ",
      "(Shui) ",
      "(Mu) ",
      "(Jin) ",
      "(Tu) ",
      "(Ri) ",
      "(Zhu) ",
      "(You) ",
      "(She) ",
      "(Ming) ",
      "(Te) ",
      "(Cai) ",
      "(Zhu) ",
      "(Lao) ",
      "(Mi) ",
      "(Nan) ",
      "(Nu) ",
      "(Shi) ",
      "(You) ",
      "(Yin) ",
      "(Zhu) ",
      "(Xiang) ",
      "(Xiu) ",
      "(Xie) ",
      "(Zheng) ",
      "(Shang) ",
      "(Zhong) ",
      "(Xia) ",
      "(Zuo) ",
      "(You) ",
      "(Yi) ",
      "(Zong) ",
      "(Xue) ",
      "(Jian) ",
      "(Qi) ",
      "(Zi) ",
      "(Xie) ",
      "(Ye) ",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "1M",
      "2M",
      "3M",
      "4M",
      "5M",
      "6M",
      "7M",
      "8M",
      "9M",
      "10M",
      "11M",
      "12M",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "a",
      "i",
      "u",
      "u",
      "o",
      "ka",
      "ki",
      "ku",
      "ke",
      "ko",
      "sa",
      "si",
      "su",
      "se",
      "so",
      "ta",
      "ti",
      "tu",
      "te",
      "to",
      "na",
      "ni",
      "nu",
      "ne",
      "no",
      "ha",
      "hi",
      "hu",
      "he",
      "ho",
      "ma",
      "mi",
      "mu",
      "me",
      "mo",
      "ya",
      "yu",
      "yo",
      "ra",
      "ri",
      "ru",
      "re",
      "ro",
      "wa",
      "wi",
      "we",
      "wo",
      "[?]"
    ];
  }
});

// node_modules/unidecode/data/x33.js
var require_x33 = __commonJS({
  "node_modules/unidecode/data/x33.js"(exports2, module2) {
    module2.exports = [
      "apartment",
      "alpha",
      "ampere",
      "are",
      "inning",
      "inch",
      "won",
      "escudo",
      "acre",
      "ounce",
      "ohm",
      "kai-ri",
      "carat",
      "calorie",
      "gallon",
      "gamma",
      "giga",
      "guinea",
      "curie",
      "guilder",
      "kilo",
      "kilogram",
      "kilometer",
      "kilowatt",
      "gram",
      "gram ton",
      "cruzeiro",
      "krone",
      "case",
      "koruna",
      "co-op",
      "cycle",
      "centime",
      "shilling",
      "centi",
      "cent",
      "dozen",
      "desi",
      "dollar",
      "ton",
      "nano",
      "knot",
      "heights",
      "percent",
      "parts",
      "barrel",
      "piaster",
      "picul",
      "pico",
      "building",
      "farad",
      "feet",
      "bushel",
      "franc",
      "hectare",
      "peso",
      "pfennig",
      "hertz",
      "pence",
      "page",
      "beta",
      "point",
      "volt",
      "hon",
      "pound",
      "hall",
      "horn",
      "micro",
      "mile",
      "mach",
      "mark",
      "mansion",
      "micron",
      "milli",
      "millibar",
      "mega",
      "megaton",
      "meter",
      "yard",
      "yard",
      "yuan",
      "liter",
      "lira",
      "rupee",
      "ruble",
      "rem",
      "roentgen",
      "watt",
      "0h",
      "1h",
      "2h",
      "3h",
      "4h",
      "5h",
      "6h",
      "7h",
      "8h",
      "9h",
      "10h",
      "11h",
      "12h",
      "13h",
      "14h",
      "15h",
      "16h",
      "17h",
      "18h",
      "19h",
      "20h",
      "21h",
      "22h",
      "23h",
      "24h",
      "HPA",
      "da",
      "AU",
      "bar",
      "oV",
      "pc",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "Heisei",
      "Syouwa",
      "Taisyou",
      "Meiji",
      "Inc.",
      "pA",
      "nA",
      "microamp",
      "mA",
      "kA",
      "kB",
      "MB",
      "GB",
      "cal",
      "kcal",
      "pF",
      "nF",
      "microFarad",
      "microgram",
      "mg",
      "kg",
      "Hz",
      "kHz",
      "MHz",
      "GHz",
      "THz",
      "microliter",
      "ml",
      "dl",
      "kl",
      "fm",
      "nm",
      "micrometer",
      "mm",
      "cm",
      "km",
      "mm^2",
      "cm^2",
      "m^2",
      "km^2",
      "mm^4",
      "cm^3",
      "m^3",
      "km^3",
      "m/s",
      "m/s^2",
      "Pa",
      "kPa",
      "MPa",
      "GPa",
      "rad",
      "rad/s",
      "rad/s^2",
      "ps",
      "ns",
      "microsecond",
      "ms",
      "pV",
      "nV",
      "microvolt",
      "mV",
      "kV",
      "MV",
      "pW",
      "nW",
      "microwatt",
      "mW",
      "kW",
      "MW",
      "kOhm",
      "MOhm",
      "a.m.",
      "Bq",
      "cc",
      "cd",
      "C/kg",
      "Co.",
      "dB",
      "Gy",
      "ha",
      "HP",
      "in",
      "K.K.",
      "KM",
      "kt",
      "lm",
      "ln",
      "log",
      "lx",
      "mb",
      "mil",
      "mol",
      "pH",
      "p.m.",
      "PPM",
      "PR",
      "sr",
      "Sv",
      "Wb",
      "[?]",
      "[?]",
      "1d",
      "2d",
      "3d",
      "4d",
      "5d",
      "6d",
      "7d",
      "8d",
      "9d",
      "10d",
      "11d",
      "12d",
      "13d",
      "14d",
      "15d",
      "16d",
      "17d",
      "18d",
      "19d",
      "20d",
      "21d",
      "22d",
      "23d",
      "24d",
      "25d",
      "26d",
      "27d",
      "28d",
      "29d",
      "30d",
      "31d",
      "gal"
    ];
  }
});

// node_modules/unidecode/data/x4d.js
var require_x4d = __commonJS({
  "node_modules/unidecode/data/x4d.js"(exports2, module2) {
    module2.exports = [
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]"
    ];
  }
});

// node_modules/unidecode/data/x4e.js
var require_x4e = __commonJS({
  "node_modules/unidecode/data/x4e.js"(exports2, module2) {
    module2.exports = [
      "Yi ",
      "Ding ",
      "Kao ",
      "Qi ",
      "Shang ",
      "Xia ",
      "[?] ",
      "Mo ",
      "Zhang ",
      "San ",
      "Shang ",
      "Xia ",
      "Ji ",
      "Bu ",
      "Yu ",
      "Mian ",
      "Gai ",
      "Chou ",
      "Chou ",
      "Zhuan ",
      "Qie ",
      "Pi ",
      "Shi ",
      "Shi ",
      "Qiu ",
      "Bing ",
      "Ye ",
      "Cong ",
      "Dong ",
      "Si ",
      "Cheng ",
      "Diu ",
      "Qiu ",
      "Liang ",
      "Diu ",
      "You ",
      "Liang ",
      "Yan ",
      "Bing ",
      "Sang ",
      "Gun ",
      "Jiu ",
      "Ge ",
      "Ya ",
      "Qiang ",
      "Zhong ",
      "Ji ",
      "Jie ",
      "Feng ",
      "Guan ",
      "Chuan ",
      "Chan ",
      "Lin ",
      "Zhuo ",
      "Zhu ",
      "Ha ",
      "Wan ",
      "Dan ",
      "Wei ",
      "Zhu ",
      "Jing ",
      "Li ",
      "Ju ",
      "Pie ",
      "Fu ",
      "Yi ",
      "Yi ",
      "Nai ",
      "Shime ",
      "Jiu ",
      "Jiu ",
      "Zhe ",
      "Yao ",
      "Yi ",
      "[?] ",
      "Zhi ",
      "Wu ",
      "Zha ",
      "Hu ",
      "Fa ",
      "Le ",
      "Zhong ",
      "Ping ",
      "Pang ",
      "Qiao ",
      "Hu ",
      "Guai ",
      "Cheng ",
      "Cheng ",
      "Yi ",
      "Yin ",
      "[?] ",
      "Mie ",
      "Jiu ",
      "Qi ",
      "Ye ",
      "Xi ",
      "Xiang ",
      "Gai ",
      "Diu ",
      "Hal ",
      "[?] ",
      "Shu ",
      "Twul ",
      "Shi ",
      "Ji ",
      "Nang ",
      "Jia ",
      "Kel ",
      "Shi ",
      "[?] ",
      "Ol ",
      "Mai ",
      "Luan ",
      "Cal ",
      "Ru ",
      "Xue ",
      "Yan ",
      "Fu ",
      "Sha ",
      "Na ",
      "Gan ",
      "Sol ",
      "El ",
      "Cwul ",
      "[?] ",
      "Gan ",
      "Chi ",
      "Gui ",
      "Gan ",
      "Luan ",
      "Lin ",
      "Yi ",
      "Jue ",
      "Liao ",
      "Ma ",
      "Yu ",
      "Zheng ",
      "Shi ",
      "Shi ",
      "Er ",
      "Chu ",
      "Yu ",
      "Yu ",
      "Yu ",
      "Yun ",
      "Hu ",
      "Qi ",
      "Wu ",
      "Jing ",
      "Si ",
      "Sui ",
      "Gen ",
      "Gen ",
      "Ya ",
      "Xie ",
      "Ya ",
      "Qi ",
      "Ya ",
      "Ji ",
      "Tou ",
      "Wang ",
      "Kang ",
      "Ta ",
      "Jiao ",
      "Hai ",
      "Yi ",
      "Chan ",
      "Heng ",
      "Mu ",
      "[?] ",
      "Xiang ",
      "Jing ",
      "Ting ",
      "Liang ",
      "Xiang ",
      "Jing ",
      "Ye ",
      "Qin ",
      "Bo ",
      "You ",
      "Xie ",
      "Dan ",
      "Lian ",
      "Duo ",
      "Wei ",
      "Ren ",
      "Ren ",
      "Ji ",
      "La ",
      "Wang ",
      "Yi ",
      "Shi ",
      "Ren ",
      "Le ",
      "Ding ",
      "Ze ",
      "Jin ",
      "Pu ",
      "Chou ",
      "Ba ",
      "Zhang ",
      "Jin ",
      "Jie ",
      "Bing ",
      "Reng ",
      "Cong ",
      "Fo ",
      "San ",
      "Lun ",
      "Sya ",
      "Cang ",
      "Zi ",
      "Shi ",
      "Ta ",
      "Zhang ",
      "Fu ",
      "Xian ",
      "Xian ",
      "Tuo ",
      "Hong ",
      "Tong ",
      "Ren ",
      "Qian ",
      "Gan ",
      "Yi ",
      "Di ",
      "Dai ",
      "Ling ",
      "Yi ",
      "Chao ",
      "Chang ",
      "Sa ",
      "[?] ",
      "Yi ",
      "Mu ",
      "Men ",
      "Ren ",
      "Jia ",
      "Chao ",
      "Yang ",
      "Qian ",
      "Zhong ",
      "Pi ",
      "Wan ",
      "Wu ",
      "Jian ",
      "Jie ",
      "Yao ",
      "Feng ",
      "Cang ",
      "Ren ",
      "Wang ",
      "Fen ",
      "Di ",
      "Fang "
    ];
  }
});

// node_modules/unidecode/data/x4f.js
var require_x4f = __commonJS({
  "node_modules/unidecode/data/x4f.js"(exports2, module2) {
    module2.exports = [
      "Zhong ",
      "Qi ",
      "Pei ",
      "Yu ",
      "Diao ",
      "Dun ",
      "Wen ",
      "Yi ",
      "Xin ",
      "Kang ",
      "Yi ",
      "Ji ",
      "Ai ",
      "Wu ",
      "Ji ",
      "Fu ",
      "Fa ",
      "Xiu ",
      "Jin ",
      "Bei ",
      "Dan ",
      "Fu ",
      "Tang ",
      "Zhong ",
      "You ",
      "Huo ",
      "Hui ",
      "Yu ",
      "Cui ",
      "Chuan ",
      "San ",
      "Wei ",
      "Chuan ",
      "Che ",
      "Ya ",
      "Xian ",
      "Shang ",
      "Chang ",
      "Lun ",
      "Cang ",
      "Xun ",
      "Xin ",
      "Wei ",
      "Zhu ",
      "[?] ",
      "Xuan ",
      "Nu ",
      "Bo ",
      "Gu ",
      "Ni ",
      "Ni ",
      "Xie ",
      "Ban ",
      "Xu ",
      "Ling ",
      "Zhou ",
      "Shen ",
      "Qu ",
      "Si ",
      "Beng ",
      "Si ",
      "Jia ",
      "Pi ",
      "Yi ",
      "Si ",
      "Ai ",
      "Zheng ",
      "Dian ",
      "Han ",
      "Mai ",
      "Dan ",
      "Zhu ",
      "Bu ",
      "Qu ",
      "Bi ",
      "Shao ",
      "Ci ",
      "Wei ",
      "Di ",
      "Zhu ",
      "Zuo ",
      "You ",
      "Yang ",
      "Ti ",
      "Zhan ",
      "He ",
      "Bi ",
      "Tuo ",
      "She ",
      "Yu ",
      "Yi ",
      "Fo ",
      "Zuo ",
      "Kou ",
      "Ning ",
      "Tong ",
      "Ni ",
      "Xuan ",
      "Qu ",
      "Yong ",
      "Wa ",
      "Qian ",
      "[?] ",
      "Ka ",
      "[?] ",
      "Pei ",
      "Huai ",
      "He ",
      "Lao ",
      "Xiang ",
      "Ge ",
      "Yang ",
      "Bai ",
      "Fa ",
      "Ming ",
      "Jia ",
      "Er ",
      "Bing ",
      "Ji ",
      "Hen ",
      "Huo ",
      "Gui ",
      "Quan ",
      "Tiao ",
      "Jiao ",
      "Ci ",
      "Yi ",
      "Shi ",
      "Xing ",
      "Shen ",
      "Tuo ",
      "Kan ",
      "Zhi ",
      "Gai ",
      "Lai ",
      "Yi ",
      "Chi ",
      "Kua ",
      "Guang ",
      "Li ",
      "Yin ",
      "Shi ",
      "Mi ",
      "Zhu ",
      "Xu ",
      "You ",
      "An ",
      "Lu ",
      "Mou ",
      "Er ",
      "Lun ",
      "Tong ",
      "Cha ",
      "Chi ",
      "Xun ",
      "Gong ",
      "Zhou ",
      "Yi ",
      "Ru ",
      "Jian ",
      "Xia ",
      "Jia ",
      "Zai ",
      "Lu ",
      "Ko ",
      "Jiao ",
      "Zhen ",
      "Ce ",
      "Qiao ",
      "Kuai ",
      "Chai ",
      "Ning ",
      "Nong ",
      "Jin ",
      "Wu ",
      "Hou ",
      "Jiong ",
      "Cheng ",
      "Zhen ",
      "Zuo ",
      "Chou ",
      "Qin ",
      "Lu ",
      "Ju ",
      "Shu ",
      "Ting ",
      "Shen ",
      "Tuo ",
      "Bo ",
      "Nan ",
      "Hao ",
      "Bian ",
      "Tui ",
      "Yu ",
      "Xi ",
      "Cu ",
      "E ",
      "Qiu ",
      "Xu ",
      "Kuang ",
      "Ku ",
      "Wu ",
      "Jun ",
      "Yi ",
      "Fu ",
      "Lang ",
      "Zu ",
      "Qiao ",
      "Li ",
      "Yong ",
      "Hun ",
      "Jing ",
      "Xian ",
      "San ",
      "Pai ",
      "Su ",
      "Fu ",
      "Xi ",
      "Li ",
      "Fu ",
      "Ping ",
      "Bao ",
      "Yu ",
      "Si ",
      "Xia ",
      "Xin ",
      "Xiu ",
      "Yu ",
      "Ti ",
      "Che ",
      "Chou ",
      "[?] ",
      "Yan ",
      "Lia ",
      "Li ",
      "Lai ",
      "[?] ",
      "Jian ",
      "Xiu ",
      "Fu ",
      "He ",
      "Ju ",
      "Xiao ",
      "Pai ",
      "Jian ",
      "Biao ",
      "Chu ",
      "Fei ",
      "Feng ",
      "Ya ",
      "An ",
      "Bei ",
      "Yu ",
      "Xin ",
      "Bi ",
      "Jian "
    ];
  }
});

// node_modules/unidecode/data/x50.js
var require_x50 = __commonJS({
  "node_modules/unidecode/data/x50.js"(exports2, module2) {
    module2.exports = [
      "Chang ",
      "Chi ",
      "Bing ",
      "Zan ",
      "Yao ",
      "Cui ",
      "Lia ",
      "Wan ",
      "Lai ",
      "Cang ",
      "Zong ",
      "Ge ",
      "Guan ",
      "Bei ",
      "Tian ",
      "Shu ",
      "Shu ",
      "Men ",
      "Dao ",
      "Tan ",
      "Jue ",
      "Chui ",
      "Xing ",
      "Peng ",
      "Tang ",
      "Hou ",
      "Yi ",
      "Qi ",
      "Ti ",
      "Gan ",
      "Jing ",
      "Jie ",
      "Sui ",
      "Chang ",
      "Jie ",
      "Fang ",
      "Zhi ",
      "Kong ",
      "Juan ",
      "Zong ",
      "Ju ",
      "Qian ",
      "Ni ",
      "Lun ",
      "Zhuo ",
      "Wei ",
      "Luo ",
      "Song ",
      "Leng ",
      "Hun ",
      "Dong ",
      "Zi ",
      "Ben ",
      "Wu ",
      "Ju ",
      "Nai ",
      "Cai ",
      "Jian ",
      "Zhai ",
      "Ye ",
      "Zhi ",
      "Sha ",
      "Qing ",
      "[?] ",
      "Ying ",
      "Cheng ",
      "Jian ",
      "Yan ",
      "Nuan ",
      "Zhong ",
      "Chun ",
      "Jia ",
      "Jie ",
      "Wei ",
      "Yu ",
      "Bing ",
      "Ruo ",
      "Ti ",
      "Wei ",
      "Pian ",
      "Yan ",
      "Feng ",
      "Tang ",
      "Wo ",
      "E ",
      "Xie ",
      "Che ",
      "Sheng ",
      "Kan ",
      "Di ",
      "Zuo ",
      "Cha ",
      "Ting ",
      "Bei ",
      "Ye ",
      "Huang ",
      "Yao ",
      "Zhan ",
      "Chou ",
      "Yan ",
      "You ",
      "Jian ",
      "Xu ",
      "Zha ",
      "Ci ",
      "Fu ",
      "Bi ",
      "Zhi ",
      "Zong ",
      "Mian ",
      "Ji ",
      "Yi ",
      "Xie ",
      "Xun ",
      "Si ",
      "Duan ",
      "Ce ",
      "Zhen ",
      "Ou ",
      "Tou ",
      "Tou ",
      "Bei ",
      "Za ",
      "Lu ",
      "Jie ",
      "Wei ",
      "Fen ",
      "Chang ",
      "Gui ",
      "Sou ",
      "Zhi ",
      "Su ",
      "Xia ",
      "Fu ",
      "Yuan ",
      "Rong ",
      "Li ",
      "Ru ",
      "Yun ",
      "Gou ",
      "Ma ",
      "Bang ",
      "Dian ",
      "Tang ",
      "Hao ",
      "Jie ",
      "Xi ",
      "Shan ",
      "Qian ",
      "Jue ",
      "Cang ",
      "Chu ",
      "San ",
      "Bei ",
      "Xiao ",
      "Yong ",
      "Yao ",
      "Tan ",
      "Suo ",
      "Yang ",
      "Fa ",
      "Bing ",
      "Jia ",
      "Dai ",
      "Zai ",
      "Tang ",
      "[?] ",
      "Bin ",
      "Chu ",
      "Nuo ",
      "Can ",
      "Lei ",
      "Cui ",
      "Yong ",
      "Zao ",
      "Zong ",
      "Peng ",
      "Song ",
      "Ao ",
      "Chuan ",
      "Yu ",
      "Zhai ",
      "Cou ",
      "Shang ",
      "Qiang ",
      "Jing ",
      "Chi ",
      "Sha ",
      "Han ",
      "Zhang ",
      "Qing ",
      "Yan ",
      "Di ",
      "Xi ",
      "Lu ",
      "Bei ",
      "Piao ",
      "Jin ",
      "Lian ",
      "Lu ",
      "Man ",
      "Qian ",
      "Xian ",
      "Tan ",
      "Ying ",
      "Dong ",
      "Zhuan ",
      "Xiang ",
      "Shan ",
      "Qiao ",
      "Jiong ",
      "Tui ",
      "Zun ",
      "Pu ",
      "Xi ",
      "Lao ",
      "Chang ",
      "Guang ",
      "Liao ",
      "Qi ",
      "Deng ",
      "Chan ",
      "Wei ",
      "Ji ",
      "Fan ",
      "Hui ",
      "Chuan ",
      "Jian ",
      "Dan ",
      "Jiao ",
      "Jiu ",
      "Seng ",
      "Fen ",
      "Xian ",
      "Jue ",
      "E ",
      "Jiao ",
      "Jian ",
      "Tong ",
      "Lin ",
      "Bo ",
      "Gu ",
      "[?] ",
      "Su ",
      "Xian ",
      "Jiang ",
      "Min ",
      "Ye ",
      "Jin ",
      "Jia ",
      "Qiao ",
      "Pi ",
      "Feng ",
      "Zhou ",
      "Ai ",
      "Sai "
    ];
  }
});

// node_modules/unidecode/data/x51.js
var require_x51 = __commonJS({
  "node_modules/unidecode/data/x51.js"(exports2, module2) {
    module2.exports = [
      "Yi ",
      "Jun ",
      "Nong ",
      "Chan ",
      "Yi ",
      "Dang ",
      "Jing ",
      "Xuan ",
      "Kuai ",
      "Jian ",
      "Chu ",
      "Dan ",
      "Jiao ",
      "Sha ",
      "Zai ",
      "[?] ",
      "Bin ",
      "An ",
      "Ru ",
      "Tai ",
      "Chou ",
      "Chai ",
      "Lan ",
      "Ni ",
      "Jin ",
      "Qian ",
      "Meng ",
      "Wu ",
      "Ning ",
      "Qiong ",
      "Ni ",
      "Chang ",
      "Lie ",
      "Lei ",
      "Lu ",
      "Kuang ",
      "Bao ",
      "Du ",
      "Biao ",
      "Zan ",
      "Zhi ",
      "Si ",
      "You ",
      "Hao ",
      "Chen ",
      "Chen ",
      "Li ",
      "Teng ",
      "Wei ",
      "Long ",
      "Chu ",
      "Chan ",
      "Rang ",
      "Shu ",
      "Hui ",
      "Li ",
      "Luo ",
      "Zan ",
      "Nuo ",
      "Tang ",
      "Yan ",
      "Lei ",
      "Nang ",
      "Er ",
      "Wu ",
      "Yun ",
      "Zan ",
      "Yuan ",
      "Xiong ",
      "Chong ",
      "Zhao ",
      "Xiong ",
      "Xian ",
      "Guang ",
      "Dui ",
      "Ke ",
      "Dui ",
      "Mian ",
      "Tu ",
      "Chang ",
      "Er ",
      "Dui ",
      "Er ",
      "Xin ",
      "Tu ",
      "Si ",
      "Yan ",
      "Yan ",
      "Shi ",
      "Shi ",
      "Dang ",
      "Qian ",
      "Dou ",
      "Fen ",
      "Mao ",
      "Shen ",
      "Dou ",
      "Bai ",
      "Jing ",
      "Li ",
      "Huang ",
      "Ru ",
      "Wang ",
      "Nei ",
      "Quan ",
      "Liang ",
      "Yu ",
      "Ba ",
      "Gong ",
      "Liu ",
      "Xi ",
      "[?] ",
      "Lan ",
      "Gong ",
      "Tian ",
      "Guan ",
      "Xing ",
      "Bing ",
      "Qi ",
      "Ju ",
      "Dian ",
      "Zi ",
      "Ppwun ",
      "Yang ",
      "Jian ",
      "Shou ",
      "Ji ",
      "Yi ",
      "Ji ",
      "Chan ",
      "Jiong ",
      "Mao ",
      "Ran ",
      "Nei ",
      "Yuan ",
      "Mao ",
      "Gang ",
      "Ran ",
      "Ce ",
      "Jiong ",
      "Ce ",
      "Zai ",
      "Gua ",
      "Jiong ",
      "Mao ",
      "Zhou ",
      "Mou ",
      "Gou ",
      "Xu ",
      "Mian ",
      "Mi ",
      "Rong ",
      "Yin ",
      "Xie ",
      "Kan ",
      "Jun ",
      "Nong ",
      "Yi ",
      "Mi ",
      "Shi ",
      "Guan ",
      "Meng ",
      "Zhong ",
      "Ju ",
      "Yuan ",
      "Ming ",
      "Kou ",
      "Lam ",
      "Fu ",
      "Xie ",
      "Mi ",
      "Bing ",
      "Dong ",
      "Tai ",
      "Gang ",
      "Feng ",
      "Bing ",
      "Hu ",
      "Chong ",
      "Jue ",
      "Hu ",
      "Kuang ",
      "Ye ",
      "Leng ",
      "Pan ",
      "Fu ",
      "Min ",
      "Dong ",
      "Xian ",
      "Lie ",
      "Xia ",
      "Jian ",
      "Jing ",
      "Shu ",
      "Mei ",
      "Tu ",
      "Qi ",
      "Gu ",
      "Zhun ",
      "Song ",
      "Jing ",
      "Liang ",
      "Qing ",
      "Diao ",
      "Ling ",
      "Dong ",
      "Gan ",
      "Jian ",
      "Yin ",
      "Cou ",
      "Yi ",
      "Li ",
      "Cang ",
      "Ming ",
      "Zhuen ",
      "Cui ",
      "Si ",
      "Duo ",
      "Jin ",
      "Lin ",
      "Lin ",
      "Ning ",
      "Xi ",
      "Du ",
      "Ji ",
      "Fan ",
      "Fan ",
      "Fan ",
      "Feng ",
      "Ju ",
      "Chu ",
      "Tako ",
      "Feng ",
      "Mok ",
      "Ci ",
      "Fu ",
      "Feng ",
      "Ping ",
      "Feng ",
      "Kai ",
      "Huang ",
      "Kai ",
      "Gan ",
      "Deng ",
      "Ping ",
      "Qu ",
      "Xiong ",
      "Kuai ",
      "Tu ",
      "Ao ",
      "Chu ",
      "Ji ",
      "Dang ",
      "Han ",
      "Han ",
      "Zao "
    ];
  }
});

// node_modules/unidecode/data/x52.js
var require_x52 = __commonJS({
  "node_modules/unidecode/data/x52.js"(exports2, module2) {
    module2.exports = [
      "Dao ",
      "Diao ",
      "Dao ",
      "Ren ",
      "Ren ",
      "Chuang ",
      "Fen ",
      "Qie ",
      "Yi ",
      "Ji ",
      "Kan ",
      "Qian ",
      "Cun ",
      "Chu ",
      "Wen ",
      "Ji ",
      "Dan ",
      "Xing ",
      "Hua ",
      "Wan ",
      "Jue ",
      "Li ",
      "Yue ",
      "Lie ",
      "Liu ",
      "Ze ",
      "Gang ",
      "Chuang ",
      "Fu ",
      "Chu ",
      "Qu ",
      "Ju ",
      "Shan ",
      "Min ",
      "Ling ",
      "Zhong ",
      "Pan ",
      "Bie ",
      "Jie ",
      "Jie ",
      "Bao ",
      "Li ",
      "Shan ",
      "Bie ",
      "Chan ",
      "Jing ",
      "Gua ",
      "Gen ",
      "Dao ",
      "Chuang ",
      "Kui ",
      "Ku ",
      "Duo ",
      "Er ",
      "Zhi ",
      "Shua ",
      "Quan ",
      "Cha ",
      "Ci ",
      "Ke ",
      "Jie ",
      "Gui ",
      "Ci ",
      "Gui ",
      "Kai ",
      "Duo ",
      "Ji ",
      "Ti ",
      "Jing ",
      "Lou ",
      "Gen ",
      "Ze ",
      "Yuan ",
      "Cuo ",
      "Xue ",
      "Ke ",
      "La ",
      "Qian ",
      "Cha ",
      "Chuang ",
      "Gua ",
      "Jian ",
      "Cuo ",
      "Li ",
      "Ti ",
      "Fei ",
      "Pou ",
      "Chan ",
      "Qi ",
      "Chuang ",
      "Zi ",
      "Gang ",
      "Wan ",
      "Bo ",
      "Ji ",
      "Duo ",
      "Qing ",
      "Yan ",
      "Zhuo ",
      "Jian ",
      "Ji ",
      "Bo ",
      "Yan ",
      "Ju ",
      "Huo ",
      "Sheng ",
      "Jian ",
      "Duo ",
      "Duan ",
      "Wu ",
      "Gua ",
      "Fu ",
      "Sheng ",
      "Jian ",
      "Ge ",
      "Zha ",
      "Kai ",
      "Chuang ",
      "Juan ",
      "Chan ",
      "Tuan ",
      "Lu ",
      "Li ",
      "Fou ",
      "Shan ",
      "Piao ",
      "Kou ",
      "Jiao ",
      "Gua ",
      "Qiao ",
      "Jue ",
      "Hua ",
      "Zha ",
      "Zhuo ",
      "Lian ",
      "Ju ",
      "Pi ",
      "Liu ",
      "Gui ",
      "Jiao ",
      "Gui ",
      "Jian ",
      "Jian ",
      "Tang ",
      "Huo ",
      "Ji ",
      "Jian ",
      "Yi ",
      "Jian ",
      "Zhi ",
      "Chan ",
      "Cuan ",
      "Mo ",
      "Li ",
      "Zhu ",
      "Li ",
      "Ya ",
      "Quan ",
      "Ban ",
      "Gong ",
      "Jia ",
      "Wu ",
      "Mai ",
      "Lie ",
      "Jin ",
      "Keng ",
      "Xie ",
      "Zhi ",
      "Dong ",
      "Zhu ",
      "Nu ",
      "Jie ",
      "Qu ",
      "Shao ",
      "Yi ",
      "Zhu ",
      "Miao ",
      "Li ",
      "Jing ",
      "Lao ",
      "Lao ",
      "Juan ",
      "Kou ",
      "Yang ",
      "Wa ",
      "Xiao ",
      "Mou ",
      "Kuang ",
      "Jie ",
      "Lie ",
      "He ",
      "Shi ",
      "Ke ",
      "Jing ",
      "Hao ",
      "Bo ",
      "Min ",
      "Chi ",
      "Lang ",
      "Yong ",
      "Yong ",
      "Mian ",
      "Ke ",
      "Xun ",
      "Juan ",
      "Qing ",
      "Lu ",
      "Pou ",
      "Meng ",
      "Lai ",
      "Le ",
      "Kai ",
      "Mian ",
      "Dong ",
      "Xu ",
      "Xu ",
      "Kan ",
      "Wu ",
      "Yi ",
      "Xun ",
      "Weng ",
      "Sheng ",
      "Lao ",
      "Mu ",
      "Lu ",
      "Piao ",
      "Shi ",
      "Ji ",
      "Qin ",
      "Qiang ",
      "Jiao ",
      "Quan ",
      "Yang ",
      "Yi ",
      "Jue ",
      "Fan ",
      "Juan ",
      "Tong ",
      "Ju ",
      "Dan ",
      "Xie ",
      "Mai ",
      "Xun ",
      "Xun ",
      "Lu ",
      "Li ",
      "Che ",
      "Rang ",
      "Quan ",
      "Bao ",
      "Shao ",
      "Yun ",
      "Jiu ",
      "Bao ",
      "Gou ",
      "Wu "
    ];
  }
});

// node_modules/unidecode/data/x53.js
var require_x53 = __commonJS({
  "node_modules/unidecode/data/x53.js"(exports2, module2) {
    module2.exports = [
      "Yun ",
      "Mwun ",
      "Nay ",
      "Gai ",
      "Gai ",
      "Bao ",
      "Cong ",
      "[?] ",
      "Xiong ",
      "Peng ",
      "Ju ",
      "Tao ",
      "Ge ",
      "Pu ",
      "An ",
      "Pao ",
      "Fu ",
      "Gong ",
      "Da ",
      "Jiu ",
      "Qiong ",
      "Bi ",
      "Hua ",
      "Bei ",
      "Nao ",
      "Chi ",
      "Fang ",
      "Jiu ",
      "Yi ",
      "Za ",
      "Jiang ",
      "Kang ",
      "Jiang ",
      "Kuang ",
      "Hu ",
      "Xia ",
      "Qu ",
      "Bian ",
      "Gui ",
      "Qie ",
      "Zang ",
      "Kuang ",
      "Fei ",
      "Hu ",
      "Tou ",
      "Gui ",
      "Gui ",
      "Hui ",
      "Dan ",
      "Gui ",
      "Lian ",
      "Lian ",
      "Suan ",
      "Du ",
      "Jiu ",
      "Qu ",
      "Xi ",
      "Pi ",
      "Qu ",
      "Yi ",
      "Qia ",
      "Yan ",
      "Bian ",
      "Ni ",
      "Qu ",
      "Shi ",
      "Xin ",
      "Qian ",
      "Nian ",
      "Sa ",
      "Zu ",
      "Sheng ",
      "Wu ",
      "Hui ",
      "Ban ",
      "Shi ",
      "Xi ",
      "Wan ",
      "Hua ",
      "Xie ",
      "Wan ",
      "Bei ",
      "Zu ",
      "Zhuo ",
      "Xie ",
      "Dan ",
      "Mai ",
      "Nan ",
      "Dan ",
      "Ji ",
      "Bo ",
      "Shuai ",
      "Bu ",
      "Kuang ",
      "Bian ",
      "Bu ",
      "Zhan ",
      "Qia ",
      "Lu ",
      "You ",
      "Lu ",
      "Xi ",
      "Gua ",
      "Wo ",
      "Xie ",
      "Jie ",
      "Jie ",
      "Wei ",
      "Ang ",
      "Qiong ",
      "Zhi ",
      "Mao ",
      "Yin ",
      "Wei ",
      "Shao ",
      "Ji ",
      "Que ",
      "Luan ",
      "Shi ",
      "Juan ",
      "Xie ",
      "Xu ",
      "Jin ",
      "Que ",
      "Wu ",
      "Ji ",
      "E ",
      "Qing ",
      "Xi ",
      "[?] ",
      "Han ",
      "Zhan ",
      "E ",
      "Ting ",
      "Li ",
      "Zhe ",
      "Han ",
      "Li ",
      "Ya ",
      "Ya ",
      "Yan ",
      "She ",
      "Zhi ",
      "Zha ",
      "Pang ",
      "[?] ",
      "He ",
      "Ya ",
      "Zhi ",
      "Ce ",
      "Pang ",
      "Ti ",
      "Li ",
      "She ",
      "Hou ",
      "Ting ",
      "Zui ",
      "Cuo ",
      "Fei ",
      "Yuan ",
      "Ce ",
      "Yuan ",
      "Xiang ",
      "Yan ",
      "Li ",
      "Jue ",
      "Sha ",
      "Dian ",
      "Chu ",
      "Jiu ",
      "Qin ",
      "Ao ",
      "Gui ",
      "Yan ",
      "Si ",
      "Li ",
      "Chang ",
      "Lan ",
      "Li ",
      "Yan ",
      "Yan ",
      "Yuan ",
      "Si ",
      "Gong ",
      "Lin ",
      "Qiu ",
      "Qu ",
      "Qu ",
      "Uk ",
      "Lei ",
      "Du ",
      "Xian ",
      "Zhuan ",
      "San ",
      "Can ",
      "Can ",
      "Can ",
      "Can ",
      "Ai ",
      "Dai ",
      "You ",
      "Cha ",
      "Ji ",
      "You ",
      "Shuang ",
      "Fan ",
      "Shou ",
      "Guai ",
      "Ba ",
      "Fa ",
      "Ruo ",
      "Shi ",
      "Shu ",
      "Zhuo ",
      "Qu ",
      "Shou ",
      "Bian ",
      "Xu ",
      "Jia ",
      "Pan ",
      "Sou ",
      "Gao ",
      "Wei ",
      "Sou ",
      "Die ",
      "Rui ",
      "Cong ",
      "Kou ",
      "Gu ",
      "Ju ",
      "Ling ",
      "Gua ",
      "Tao ",
      "Kou ",
      "Zhi ",
      "Jiao ",
      "Zhao ",
      "Ba ",
      "Ding ",
      "Ke ",
      "Tai ",
      "Chi ",
      "Shi ",
      "You ",
      "Qiu ",
      "Po ",
      "Xie ",
      "Hao ",
      "Si ",
      "Tan ",
      "Chi ",
      "Le ",
      "Diao ",
      "Ji ",
      "[?] ",
      "Hong "
    ];
  }
});

// node_modules/unidecode/data/x54.js
var require_x54 = __commonJS({
  "node_modules/unidecode/data/x54.js"(exports2, module2) {
    module2.exports = [
      "Mie ",
      "Xu ",
      "Mang ",
      "Chi ",
      "Ge ",
      "Xuan ",
      "Yao ",
      "Zi ",
      "He ",
      "Ji ",
      "Diao ",
      "Cun ",
      "Tong ",
      "Ming ",
      "Hou ",
      "Li ",
      "Tu ",
      "Xiang ",
      "Zha ",
      "Xia ",
      "Ye ",
      "Lu ",
      "A ",
      "Ma ",
      "Ou ",
      "Xue ",
      "Yi ",
      "Jun ",
      "Chou ",
      "Lin ",
      "Tun ",
      "Yin ",
      "Fei ",
      "Bi ",
      "Qin ",
      "Qin ",
      "Jie ",
      "Bu ",
      "Fou ",
      "Ba ",
      "Dun ",
      "Fen ",
      "E ",
      "Han ",
      "Ting ",
      "Hang ",
      "Shun ",
      "Qi ",
      "Hong ",
      "Zhi ",
      "Shen ",
      "Wu ",
      "Wu ",
      "Chao ",
      "Ne ",
      "Xue ",
      "Xi ",
      "Chui ",
      "Dou ",
      "Wen ",
      "Hou ",
      "Ou ",
      "Wu ",
      "Gao ",
      "Ya ",
      "Jun ",
      "Lu ",
      "E ",
      "Ge ",
      "Mei ",
      "Ai ",
      "Qi ",
      "Cheng ",
      "Wu ",
      "Gao ",
      "Fu ",
      "Jiao ",
      "Hong ",
      "Chi ",
      "Sheng ",
      "Ne ",
      "Tun ",
      "Fu ",
      "Yi ",
      "Dai ",
      "Ou ",
      "Li ",
      "Bai ",
      "Yuan ",
      "Kuai ",
      "[?] ",
      "Qiang ",
      "Wu ",
      "E ",
      "Shi ",
      "Quan ",
      "Pen ",
      "Wen ",
      "Ni ",
      "M ",
      "Ling ",
      "Ran ",
      "You ",
      "Di ",
      "Zhou ",
      "Shi ",
      "Zhou ",
      "Tie ",
      "Xi ",
      "Yi ",
      "Qi ",
      "Ping ",
      "Zi ",
      "Gu ",
      "Zi ",
      "Wei ",
      "Xu ",
      "He ",
      "Nao ",
      "Xia ",
      "Pei ",
      "Yi ",
      "Xiao ",
      "Shen ",
      "Hu ",
      "Ming ",
      "Da ",
      "Qu ",
      "Ju ",
      "Gem ",
      "Za ",
      "Tuo ",
      "Duo ",
      "Pou ",
      "Pao ",
      "Bi ",
      "Fu ",
      "Yang ",
      "He ",
      "Zha ",
      "He ",
      "Hai ",
      "Jiu ",
      "Yong ",
      "Fu ",
      "Que ",
      "Zhou ",
      "Wa ",
      "Ka ",
      "Gu ",
      "Ka ",
      "Zuo ",
      "Bu ",
      "Long ",
      "Dong ",
      "Ning ",
      "Tha ",
      "Si ",
      "Xian ",
      "Huo ",
      "Qi ",
      "Er ",
      "E ",
      "Guang ",
      "Zha ",
      "Xi ",
      "Yi ",
      "Lie ",
      "Zi ",
      "Mie ",
      "Mi ",
      "Zhi ",
      "Yao ",
      "Ji ",
      "Zhou ",
      "Ge ",
      "Shuai ",
      "Zan ",
      "Xiao ",
      "Ke ",
      "Hui ",
      "Kua ",
      "Huai ",
      "Tao ",
      "Xian ",
      "E ",
      "Xuan ",
      "Xiu ",
      "Wai ",
      "Yan ",
      "Lao ",
      "Yi ",
      "Ai ",
      "Pin ",
      "Shen ",
      "Tong ",
      "Hong ",
      "Xiong ",
      "Chi ",
      "Wa ",
      "Ha ",
      "Zai ",
      "Yu ",
      "Di ",
      "Pai ",
      "Xiang ",
      "Ai ",
      "Hen ",
      "Kuang ",
      "Ya ",
      "Da ",
      "Xiao ",
      "Bi ",
      "Yue ",
      "[?] ",
      "Hua ",
      "Sasou ",
      "Kuai ",
      "Duo ",
      "[?] ",
      "Ji ",
      "Nong ",
      "Mou ",
      "Yo ",
      "Hao ",
      "Yuan ",
      "Long ",
      "Pou ",
      "Mang ",
      "Ge ",
      "E ",
      "Chi ",
      "Shao ",
      "Li ",
      "Na ",
      "Zu ",
      "He ",
      "Ku ",
      "Xiao ",
      "Xian ",
      "Lao ",
      "Bo ",
      "Zhe ",
      "Zha ",
      "Liang ",
      "Ba ",
      "Mie ",
      "Le ",
      "Sui ",
      "Fou ",
      "Bu ",
      "Han ",
      "Heng ",
      "Geng ",
      "Shuo ",
      "Ge "
    ];
  }
});

// node_modules/unidecode/data/x55.js
var require_x55 = __commonJS({
  "node_modules/unidecode/data/x55.js"(exports2, module2) {
    module2.exports = [
      "You ",
      "Yan ",
      "Gu ",
      "Gu ",
      "Bai ",
      "Han ",
      "Suo ",
      "Chun ",
      "Yi ",
      "Ai ",
      "Jia ",
      "Tu ",
      "Xian ",
      "Huan ",
      "Li ",
      "Xi ",
      "Tang ",
      "Zuo ",
      "Qiu ",
      "Che ",
      "Wu ",
      "Zao ",
      "Ya ",
      "Dou ",
      "Qi ",
      "Di ",
      "Qin ",
      "Ma ",
      "Mal ",
      "Hong ",
      "Dou ",
      "Kes ",
      "Lao ",
      "Liang ",
      "Suo ",
      "Zao ",
      "Huan ",
      "Lang ",
      "Sha ",
      "Ji ",
      "Zuo ",
      "Wo ",
      "Feng ",
      "Yin ",
      "Hu ",
      "Qi ",
      "Shou ",
      "Wei ",
      "Shua ",
      "Chang ",
      "Er ",
      "Li ",
      "Qiang ",
      "An ",
      "Jie ",
      "Yo ",
      "Nian ",
      "Yu ",
      "Tian ",
      "Lai ",
      "Sha ",
      "Xi ",
      "Tuo ",
      "Hu ",
      "Ai ",
      "Zhou ",
      "Nou ",
      "Ken ",
      "Zhuo ",
      "Zhuo ",
      "Shang ",
      "Di ",
      "Heng ",
      "Lan ",
      "A ",
      "Xiao ",
      "Xiang ",
      "Tun ",
      "Wu ",
      "Wen ",
      "Cui ",
      "Sha ",
      "Hu ",
      "Qi ",
      "Qi ",
      "Tao ",
      "Dan ",
      "Dan ",
      "Ye ",
      "Zi ",
      "Bi ",
      "Cui ",
      "Chuo ",
      "He ",
      "Ya ",
      "Qi ",
      "Zhe ",
      "Pei ",
      "Liang ",
      "Xian ",
      "Pi ",
      "Sha ",
      "La ",
      "Ze ",
      "Qing ",
      "Gua ",
      "Pa ",
      "Zhe ",
      "Se ",
      "Zhuan ",
      "Nie ",
      "Guo ",
      "Luo ",
      "Yan ",
      "Di ",
      "Quan ",
      "Tan ",
      "Bo ",
      "Ding ",
      "Lang ",
      "Xiao ",
      "[?] ",
      "Tang ",
      "Chi ",
      "Ti ",
      "An ",
      "Jiu ",
      "Dan ",
      "Ke ",
      "Yong ",
      "Wei ",
      "Nan ",
      "Shan ",
      "Yu ",
      "Zhe ",
      "La ",
      "Jie ",
      "Hou ",
      "Han ",
      "Die ",
      "Zhou ",
      "Chai ",
      "Wai ",
      "Re ",
      "Yu ",
      "Yin ",
      "Zan ",
      "Yao ",
      "Wo ",
      "Mian ",
      "Hu ",
      "Yun ",
      "Chuan ",
      "Hui ",
      "Huan ",
      "Huan ",
      "Xi ",
      "He ",
      "Ji ",
      "Kui ",
      "Zhong ",
      "Wei ",
      "Sha ",
      "Xu ",
      "Huang ",
      "Du ",
      "Nie ",
      "Xuan ",
      "Liang ",
      "Yu ",
      "Sang ",
      "Chi ",
      "Qiao ",
      "Yan ",
      "Dan ",
      "Pen ",
      "Can ",
      "Li ",
      "Yo ",
      "Zha ",
      "Wei ",
      "Miao ",
      "Ying ",
      "Pen ",
      "Phos ",
      "Kui ",
      "Xi ",
      "Yu ",
      "Jie ",
      "Lou ",
      "Ku ",
      "Sao ",
      "Huo ",
      "Ti ",
      "Yao ",
      "He ",
      "A ",
      "Xiu ",
      "Qiang ",
      "Se ",
      "Yong ",
      "Su ",
      "Hong ",
      "Xie ",
      "Yi ",
      "Suo ",
      "Ma ",
      "Cha ",
      "Hai ",
      "Ke ",
      "Ta ",
      "Sang ",
      "Tian ",
      "Ru ",
      "Sou ",
      "Wa ",
      "Ji ",
      "Pang ",
      "Wu ",
      "Xian ",
      "Shi ",
      "Ge ",
      "Zi ",
      "Jie ",
      "Luo ",
      "Weng ",
      "Wa ",
      "Si ",
      "Chi ",
      "Hao ",
      "Suo ",
      "Jia ",
      "Hai ",
      "Suo ",
      "Qin ",
      "Nie ",
      "He ",
      "Cis ",
      "Sai ",
      "Ng ",
      "Ge ",
      "Na ",
      "Dia ",
      "Ai ",
      "[?] ",
      "Tong ",
      "Bi ",
      "Ao ",
      "Ao ",
      "Lian ",
      "Cui ",
      "Zhe ",
      "Mo ",
      "Sou ",
      "Sou ",
      "Tan "
    ];
  }
});

// node_modules/unidecode/data/x56.js
var require_x56 = __commonJS({
  "node_modules/unidecode/data/x56.js"(exports2, module2) {
    module2.exports = [
      "Di ",
      "Qi ",
      "Jiao ",
      "Chong ",
      "Jiao ",
      "Kai ",
      "Tan ",
      "San ",
      "Cao ",
      "Jia ",
      "Ai ",
      "Xiao ",
      "Piao ",
      "Lou ",
      "Ga ",
      "Gu ",
      "Xiao ",
      "Hu ",
      "Hui ",
      "Guo ",
      "Ou ",
      "Xian ",
      "Ze ",
      "Chang ",
      "Xu ",
      "Po ",
      "De ",
      "Ma ",
      "Ma ",
      "Hu ",
      "Lei ",
      "Du ",
      "Ga ",
      "Tang ",
      "Ye ",
      "Beng ",
      "Ying ",
      "Saai ",
      "Jiao ",
      "Mi ",
      "Xiao ",
      "Hua ",
      "Mai ",
      "Ran ",
      "Zuo ",
      "Peng ",
      "Lao ",
      "Xiao ",
      "Ji ",
      "Zhu ",
      "Chao ",
      "Kui ",
      "Zui ",
      "Xiao ",
      "Si ",
      "Hao ",
      "Fu ",
      "Liao ",
      "Qiao ",
      "Xi ",
      "Xiu ",
      "Tan ",
      "Tan ",
      "Mo ",
      "Xun ",
      "E ",
      "Zun ",
      "Fan ",
      "Chi ",
      "Hui ",
      "Zan ",
      "Chuang ",
      "Cu ",
      "Dan ",
      "Yu ",
      "Tun ",
      "Cheng ",
      "Jiao ",
      "Ye ",
      "Xi ",
      "Qi ",
      "Hao ",
      "Lian ",
      "Xu ",
      "Deng ",
      "Hui ",
      "Yin ",
      "Pu ",
      "Jue ",
      "Qin ",
      "Xun ",
      "Nie ",
      "Lu ",
      "Si ",
      "Yan ",
      "Ying ",
      "Da ",
      "Dan ",
      "Yu ",
      "Zhou ",
      "Jin ",
      "Nong ",
      "Yue ",
      "Hui ",
      "Qi ",
      "E ",
      "Zao ",
      "Yi ",
      "Shi ",
      "Jiao ",
      "Yuan ",
      "Ai ",
      "Yong ",
      "Jue ",
      "Kuai ",
      "Yu ",
      "Pen ",
      "Dao ",
      "Ge ",
      "Xin ",
      "Dun ",
      "Dang ",
      "Sin ",
      "Sai ",
      "Pi ",
      "Pi ",
      "Yin ",
      "Zui ",
      "Ning ",
      "Di ",
      "Lan ",
      "Ta ",
      "Huo ",
      "Ru ",
      "Hao ",
      "Xia ",
      "Ya ",
      "Duo ",
      "Xi ",
      "Chou ",
      "Ji ",
      "Jin ",
      "Hao ",
      "Ti ",
      "Chang ",
      "[?] ",
      "[?] ",
      "Ca ",
      "Ti ",
      "Lu ",
      "Hui ",
      "Bo ",
      "You ",
      "Nie ",
      "Yin ",
      "Hu ",
      "Mo ",
      "Huang ",
      "Zhe ",
      "Li ",
      "Liu ",
      "Haai ",
      "Nang ",
      "Xiao ",
      "Mo ",
      "Yan ",
      "Li ",
      "Lu ",
      "Long ",
      "Fu ",
      "Dan ",
      "Chen ",
      "Pin ",
      "Pi ",
      "Xiang ",
      "Huo ",
      "Mo ",
      "Xi ",
      "Duo ",
      "Ku ",
      "Yan ",
      "Chan ",
      "Ying ",
      "Rang ",
      "Dian ",
      "La ",
      "Ta ",
      "Xiao ",
      "Jiao ",
      "Chuo ",
      "Huan ",
      "Huo ",
      "Zhuan ",
      "Nie ",
      "Xiao ",
      "Ca ",
      "Li ",
      "Chan ",
      "Chai ",
      "Li ",
      "Yi ",
      "Luo ",
      "Nang ",
      "Zan ",
      "Su ",
      "Xi ",
      "So ",
      "Jian ",
      "Za ",
      "Zhu ",
      "Lan ",
      "Nie ",
      "Nang ",
      "[?] ",
      "[?] ",
      "Wei ",
      "Hui ",
      "Yin ",
      "Qiu ",
      "Si ",
      "Nin ",
      "Jian ",
      "Hui ",
      "Xin ",
      "Yin ",
      "Nan ",
      "Tuan ",
      "Tuan ",
      "Dun ",
      "Kang ",
      "Yuan ",
      "Jiong ",
      "Pian ",
      "Yun ",
      "Cong ",
      "Hu ",
      "Hui ",
      "Yuan ",
      "You ",
      "Guo ",
      "Kun ",
      "Cong ",
      "Wei ",
      "Tu ",
      "Wei ",
      "Lun ",
      "Guo ",
      "Qun ",
      "Ri ",
      "Ling ",
      "Gu ",
      "Guo ",
      "Tai ",
      "Guo ",
      "Tu ",
      "You "
    ];
  }
});

// node_modules/unidecode/data/x57.js
var require_x57 = __commonJS({
  "node_modules/unidecode/data/x57.js"(exports2, module2) {
    module2.exports = [
      "Guo ",
      "Yin ",
      "Hun ",
      "Pu ",
      "Yu ",
      "Han ",
      "Yuan ",
      "Lun ",
      "Quan ",
      "Yu ",
      "Qing ",
      "Guo ",
      "Chuan ",
      "Wei ",
      "Yuan ",
      "Quan ",
      "Ku ",
      "Fu ",
      "Yuan ",
      "Yuan ",
      "E ",
      "Tu ",
      "Tu ",
      "Tu ",
      "Tuan ",
      "Lue ",
      "Hui ",
      "Yi ",
      "Yuan ",
      "Luan ",
      "Luan ",
      "Tu ",
      "Ya ",
      "Tu ",
      "Ting ",
      "Sheng ",
      "Pu ",
      "Lu ",
      "Iri ",
      "Ya ",
      "Zai ",
      "Wei ",
      "Ge ",
      "Yu ",
      "Wu ",
      "Gui ",
      "Pi ",
      "Yi ",
      "Di ",
      "Qian ",
      "Qian ",
      "Zhen ",
      "Zhuo ",
      "Dang ",
      "Qia ",
      "Akutsu ",
      "Yama ",
      "Kuang ",
      "Chang ",
      "Qi ",
      "Nie ",
      "Mo ",
      "Ji ",
      "Jia ",
      "Zhi ",
      "Zhi ",
      "Ban ",
      "Xun ",
      "Tou ",
      "Qin ",
      "Fen ",
      "Jun ",
      "Keng ",
      "Tun ",
      "Fang ",
      "Fen ",
      "Ben ",
      "Tan ",
      "Kan ",
      "Pi ",
      "Zuo ",
      "Keng ",
      "Bi ",
      "Xing ",
      "Di ",
      "Jing ",
      "Ji ",
      "Kuai ",
      "Di ",
      "Jing ",
      "Jian ",
      "Tan ",
      "Li ",
      "Ba ",
      "Wu ",
      "Fen ",
      "Zhui ",
      "Po ",
      "Pan ",
      "Tang ",
      "Kun ",
      "Qu ",
      "Tan ",
      "Zhi ",
      "Tuo ",
      "Gan ",
      "Ping ",
      "Dian ",
      "Gua ",
      "Ni ",
      "Tai ",
      "Pi ",
      "Jiong ",
      "Yang ",
      "Fo ",
      "Ao ",
      "Liu ",
      "Qiu ",
      "Mu ",
      "Ke ",
      "Gou ",
      "Xue ",
      "Ba ",
      "Chi ",
      "Che ",
      "Ling ",
      "Zhu ",
      "Fu ",
      "Hu ",
      "Zhi ",
      "Chui ",
      "La ",
      "Long ",
      "Long ",
      "Lu ",
      "Ao ",
      "Tay ",
      "Pao ",
      "[?] ",
      "Xing ",
      "Dong ",
      "Ji ",
      "Ke ",
      "Lu ",
      "Ci ",
      "Chi ",
      "Lei ",
      "Gai ",
      "Yin ",
      "Hou ",
      "Dui ",
      "Zhao ",
      "Fu ",
      "Guang ",
      "Yao ",
      "Duo ",
      "Duo ",
      "Gui ",
      "Cha ",
      "Yang ",
      "Yin ",
      "Fa ",
      "Gou ",
      "Yuan ",
      "Die ",
      "Xie ",
      "Ken ",
      "Jiong ",
      "Shou ",
      "E ",
      "Ha ",
      "Dian ",
      "Hong ",
      "Wu ",
      "Kua ",
      "[?] ",
      "Tao ",
      "Dang ",
      "Kai ",
      "Gake ",
      "Nao ",
      "An ",
      "Xing ",
      "Xian ",
      "Huan ",
      "Bang ",
      "Pei ",
      "Ba ",
      "Yi ",
      "Yin ",
      "Han ",
      "Xu ",
      "Chui ",
      "Cen ",
      "Geng ",
      "Ai ",
      "Peng ",
      "Fang ",
      "Que ",
      "Yong ",
      "Xun ",
      "Jia ",
      "Di ",
      "Mai ",
      "Lang ",
      "Xuan ",
      "Cheng ",
      "Yan ",
      "Jin ",
      "Zhe ",
      "Lei ",
      "Lie ",
      "Bu ",
      "Cheng ",
      "Gomi ",
      "Bu ",
      "Shi ",
      "Xun ",
      "Guo ",
      "Jiong ",
      "Ye ",
      "Nian ",
      "Di ",
      "Yu ",
      "Bu ",
      "Ya ",
      "Juan ",
      "Sui ",
      "Pi ",
      "Cheng ",
      "Wan ",
      "Ju ",
      "Lun ",
      "Zheng ",
      "Kong ",
      "Chong ",
      "Dong ",
      "Dai ",
      "Tan ",
      "An ",
      "Cai ",
      "Shu ",
      "Beng ",
      "Kan ",
      "Zhi ",
      "Duo ",
      "Yi ",
      "Zhi ",
      "Yi ",
      "Pei ",
      "Ji ",
      "Zhun ",
      "Qi ",
      "Sao ",
      "Ju ",
      "Ni "
    ];
  }
});

// node_modules/unidecode/data/x58.js
var require_x58 = __commonJS({
  "node_modules/unidecode/data/x58.js"(exports2, module2) {
    module2.exports = [
      "Ku ",
      "Ke ",
      "Tang ",
      "Kun ",
      "Ni ",
      "Jian ",
      "Dui ",
      "Jin ",
      "Gang ",
      "Yu ",
      "E ",
      "Peng ",
      "Gu ",
      "Tu ",
      "Leng ",
      "[?] ",
      "Ya ",
      "Qian ",
      "[?] ",
      "An ",
      "[?] ",
      "Duo ",
      "Nao ",
      "Tu ",
      "Cheng ",
      "Yin ",
      "Hun ",
      "Bi ",
      "Lian ",
      "Guo ",
      "Die ",
      "Zhuan ",
      "Hou ",
      "Bao ",
      "Bao ",
      "Yu ",
      "Di ",
      "Mao ",
      "Jie ",
      "Ruan ",
      "E ",
      "Geng ",
      "Kan ",
      "Zong ",
      "Yu ",
      "Huang ",
      "E ",
      "Yao ",
      "Yan ",
      "Bao ",
      "Ji ",
      "Mei ",
      "Chang ",
      "Du ",
      "Tuo ",
      "Yin ",
      "Feng ",
      "Zhong ",
      "Jie ",
      "Zhen ",
      "Feng ",
      "Gang ",
      "Chuan ",
      "Jian ",
      "Pyeng ",
      "Toride ",
      "Xiang ",
      "Huang ",
      "Leng ",
      "Duan ",
      "[?] ",
      "Xuan ",
      "Ji ",
      "Ji ",
      "Kuai ",
      "Ying ",
      "Ta ",
      "Cheng ",
      "Yong ",
      "Kai ",
      "Su ",
      "Su ",
      "Shi ",
      "Mi ",
      "Ta ",
      "Weng ",
      "Cheng ",
      "Tu ",
      "Tang ",
      "Que ",
      "Zhong ",
      "Li ",
      "Peng ",
      "Bang ",
      "Sai ",
      "Zang ",
      "Dui ",
      "Tian ",
      "Wu ",
      "Cheng ",
      "Xun ",
      "Ge ",
      "Zhen ",
      "Ai ",
      "Gong ",
      "Yan ",
      "Kan ",
      "Tian ",
      "Yuan ",
      "Wen ",
      "Xie ",
      "Liu ",
      "Ama ",
      "Lang ",
      "Chang ",
      "Peng ",
      "Beng ",
      "Chen ",
      "Cu ",
      "Lu ",
      "Ou ",
      "Qian ",
      "Mei ",
      "Mo ",
      "Zhuan ",
      "Shuang ",
      "Shu ",
      "Lou ",
      "Chi ",
      "Man ",
      "Biao ",
      "Jing ",
      "Qi ",
      "Shu ",
      "Di ",
      "Zhang ",
      "Kan ",
      "Yong ",
      "Dian ",
      "Chen ",
      "Zhi ",
      "Xi ",
      "Guo ",
      "Qiang ",
      "Jin ",
      "Di ",
      "Shang ",
      "Mu ",
      "Cui ",
      "Yan ",
      "Ta ",
      "Zeng ",
      "Qi ",
      "Qiang ",
      "Liang ",
      "[?] ",
      "Zhui ",
      "Qiao ",
      "Zeng ",
      "Xu ",
      "Shan ",
      "Shan ",
      "Ba ",
      "Pu ",
      "Kuai ",
      "Dong ",
      "Fan ",
      "Que ",
      "Mo ",
      "Dun ",
      "Dun ",
      "Dun ",
      "Di ",
      "Sheng ",
      "Duo ",
      "Duo ",
      "Tan ",
      "Deng ",
      "Wu ",
      "Fen ",
      "Huang ",
      "Tan ",
      "Da ",
      "Ye ",
      "Sho ",
      "Mama ",
      "Yu ",
      "Qiang ",
      "Ji ",
      "Qiao ",
      "Ken ",
      "Yi ",
      "Pi ",
      "Bi ",
      "Dian ",
      "Jiang ",
      "Ye ",
      "Yong ",
      "Bo ",
      "Tan ",
      "Lan ",
      "Ju ",
      "Huai ",
      "Dang ",
      "Rang ",
      "Qian ",
      "Xun ",
      "Lan ",
      "Xi ",
      "He ",
      "Ai ",
      "Ya ",
      "Dao ",
      "Hao ",
      "Ruan ",
      "Mama ",
      "Lei ",
      "Kuang ",
      "Lu ",
      "Yan ",
      "Tan ",
      "Wei ",
      "Huai ",
      "Long ",
      "Long ",
      "Rui ",
      "Li ",
      "Lin ",
      "Rang ",
      "Ten ",
      "Xun ",
      "Yan ",
      "Lei ",
      "Ba ",
      "[?] ",
      "Shi ",
      "Ren ",
      "[?] ",
      "Zhuang ",
      "Zhuang ",
      "Sheng ",
      "Yi ",
      "Mai ",
      "Ke ",
      "Zhu ",
      "Zhuang ",
      "Hu ",
      "Hu ",
      "Kun ",
      "Yi ",
      "Hu ",
      "Xu ",
      "Kun ",
      "Shou ",
      "Mang ",
      "Zun "
    ];
  }
});

// node_modules/unidecode/data/x59.js
var require_x59 = __commonJS({
  "node_modules/unidecode/data/x59.js"(exports2, module2) {
    module2.exports = [
      "Shou ",
      "Yi ",
      "Zhi ",
      "Gu ",
      "Chu ",
      "Jiang ",
      "Feng ",
      "Bei ",
      "Cay ",
      "Bian ",
      "Sui ",
      "Qun ",
      "Ling ",
      "Fu ",
      "Zuo ",
      "Xia ",
      "Xiong ",
      "[?] ",
      "Nao ",
      "Xia ",
      "Kui ",
      "Xi ",
      "Wai ",
      "Yuan ",
      "Mao ",
      "Su ",
      "Duo ",
      "Duo ",
      "Ye ",
      "Qing ",
      "Uys ",
      "Gou ",
      "Gou ",
      "Qi ",
      "Meng ",
      "Meng ",
      "Yin ",
      "Huo ",
      "Chen ",
      "Da ",
      "Ze ",
      "Tian ",
      "Tai ",
      "Fu ",
      "Guai ",
      "Yao ",
      "Yang ",
      "Hang ",
      "Gao ",
      "Shi ",
      "Ben ",
      "Tai ",
      "Tou ",
      "Yan ",
      "Bi ",
      "Yi ",
      "Kua ",
      "Jia ",
      "Duo ",
      "Kwu ",
      "Kuang ",
      "Yun ",
      "Jia ",
      "Pa ",
      "En ",
      "Lian ",
      "Huan ",
      "Di ",
      "Yan ",
      "Pao ",
      "Quan ",
      "Qi ",
      "Nai ",
      "Feng ",
      "Xie ",
      "Fen ",
      "Dian ",
      "[?] ",
      "Kui ",
      "Zou ",
      "Huan ",
      "Qi ",
      "Kai ",
      "Zha ",
      "Ben ",
      "Yi ",
      "Jiang ",
      "Tao ",
      "Zang ",
      "Ben ",
      "Xi ",
      "Xiang ",
      "Fei ",
      "Diao ",
      "Xun ",
      "Keng ",
      "Dian ",
      "Ao ",
      "She ",
      "Weng ",
      "Pan ",
      "Ao ",
      "Wu ",
      "Ao ",
      "Jiang ",
      "Lian ",
      "Duo ",
      "Yun ",
      "Jiang ",
      "Shi ",
      "Fen ",
      "Huo ",
      "Bi ",
      "Lian ",
      "Duo ",
      "Nu ",
      "Nu ",
      "Ding ",
      "Nai ",
      "Qian ",
      "Jian ",
      "Ta ",
      "Jiu ",
      "Nan ",
      "Cha ",
      "Hao ",
      "Xian ",
      "Fan ",
      "Ji ",
      "Shuo ",
      "Ru ",
      "Fei ",
      "Wang ",
      "Hong ",
      "Zhuang ",
      "Fu ",
      "Ma ",
      "Dan ",
      "Ren ",
      "Fu ",
      "Jing ",
      "Yan ",
      "Xie ",
      "Wen ",
      "Zhong ",
      "Pa ",
      "Du ",
      "Ji ",
      "Keng ",
      "Zhong ",
      "Yao ",
      "Jin ",
      "Yun ",
      "Miao ",
      "Pei ",
      "Shi ",
      "Yue ",
      "Zhuang ",
      "Niu ",
      "Yan ",
      "Na ",
      "Xin ",
      "Fen ",
      "Bi ",
      "Yu ",
      "Tuo ",
      "Feng ",
      "Yuan ",
      "Fang ",
      "Wu ",
      "Yu ",
      "Gui ",
      "Du ",
      "Ba ",
      "Ni ",
      "Zhou ",
      "Zhuo ",
      "Zhao ",
      "Da ",
      "Nai ",
      "Yuan ",
      "Tou ",
      "Xuan ",
      "Zhi ",
      "E ",
      "Mei ",
      "Mo ",
      "Qi ",
      "Bi ",
      "Shen ",
      "Qie ",
      "E ",
      "He ",
      "Xu ",
      "Fa ",
      "Zheng ",
      "Min ",
      "Ban ",
      "Mu ",
      "Fu ",
      "Ling ",
      "Zi ",
      "Zi ",
      "Shi ",
      "Ran ",
      "Shan ",
      "Yang ",
      "Man ",
      "Jie ",
      "Gu ",
      "Si ",
      "Xing ",
      "Wei ",
      "Zi ",
      "Ju ",
      "Shan ",
      "Pin ",
      "Ren ",
      "Yao ",
      "Tong ",
      "Jiang ",
      "Shu ",
      "Ji ",
      "Gai ",
      "Shang ",
      "Kuo ",
      "Juan ",
      "Jiao ",
      "Gou ",
      "Mu ",
      "Jian ",
      "Jian ",
      "Yi ",
      "Nian ",
      "Zhi ",
      "Ji ",
      "Ji ",
      "Xian ",
      "Heng ",
      "Guang ",
      "Jun ",
      "Kua ",
      "Yan ",
      "Ming ",
      "Lie ",
      "Pei ",
      "Yan ",
      "You ",
      "Yan ",
      "Cha ",
      "Shen ",
      "Yin ",
      "Chi ",
      "Gui ",
      "Quan ",
      "Zi "
    ];
  }
});

// node_modules/unidecode/data/x5a.js
var require_x5a = __commonJS({
  "node_modules/unidecode/data/x5a.js"(exports2, module2) {
    module2.exports = [
      "Song ",
      "Wei ",
      "Hong ",
      "Wa ",
      "Lou ",
      "Ya ",
      "Rao ",
      "Jiao ",
      "Luan ",
      "Ping ",
      "Xian ",
      "Shao ",
      "Li ",
      "Cheng ",
      "Xiao ",
      "Mang ",
      "Fu ",
      "Suo ",
      "Wu ",
      "Wei ",
      "Ke ",
      "Lai ",
      "Chuo ",
      "Ding ",
      "Niang ",
      "Xing ",
      "Nan ",
      "Yu ",
      "Nuo ",
      "Pei ",
      "Nei ",
      "Juan ",
      "Shen ",
      "Zhi ",
      "Han ",
      "Di ",
      "Zhuang ",
      "E ",
      "Pin ",
      "Tui ",
      "Han ",
      "Mian ",
      "Wu ",
      "Yan ",
      "Wu ",
      "Xi ",
      "Yan ",
      "Yu ",
      "Si ",
      "Yu ",
      "Wa ",
      "[?] ",
      "Xian ",
      "Ju ",
      "Qu ",
      "Shui ",
      "Qi ",
      "Xian ",
      "Zhui ",
      "Dong ",
      "Chang ",
      "Lu ",
      "Ai ",
      "E ",
      "E ",
      "Lou ",
      "Mian ",
      "Cong ",
      "Pou ",
      "Ju ",
      "Po ",
      "Cai ",
      "Ding ",
      "Wan ",
      "Biao ",
      "Xiao ",
      "Shu ",
      "Qi ",
      "Hui ",
      "Fu ",
      "E ",
      "Wo ",
      "Tan ",
      "Fei ",
      "Wei ",
      "Jie ",
      "Tian ",
      "Ni ",
      "Quan ",
      "Jing ",
      "Hun ",
      "Jing ",
      "Qian ",
      "Dian ",
      "Xing ",
      "Hu ",
      "Wa ",
      "Lai ",
      "Bi ",
      "Yin ",
      "Chou ",
      "Chuo ",
      "Fu ",
      "Jing ",
      "Lun ",
      "Yan ",
      "Lan ",
      "Kun ",
      "Yin ",
      "Ya ",
      "Ju ",
      "Li ",
      "Dian ",
      "Xian ",
      "Hwa ",
      "Hua ",
      "Ying ",
      "Chan ",
      "Shen ",
      "Ting ",
      "Dang ",
      "Yao ",
      "Wu ",
      "Nan ",
      "Ruo ",
      "Jia ",
      "Tou ",
      "Xu ",
      "Yu ",
      "Wei ",
      "Ti ",
      "Rou ",
      "Mei ",
      "Dan ",
      "Ruan ",
      "Qin ",
      "Hui ",
      "Wu ",
      "Qian ",
      "Chun ",
      "Mao ",
      "Fu ",
      "Jie ",
      "Duan ",
      "Xi ",
      "Zhong ",
      "Mei ",
      "Huang ",
      "Mian ",
      "An ",
      "Ying ",
      "Xuan ",
      "Jie ",
      "Wei ",
      "Mei ",
      "Yuan ",
      "Zhen ",
      "Qiu ",
      "Ti ",
      "Xie ",
      "Tuo ",
      "Lian ",
      "Mao ",
      "Ran ",
      "Si ",
      "Pian ",
      "Wei ",
      "Wa ",
      "Jiu ",
      "Hu ",
      "Ao ",
      "[?] ",
      "Bou ",
      "Xu ",
      "Tou ",
      "Gui ",
      "Zou ",
      "Yao ",
      "Pi ",
      "Xi ",
      "Yuan ",
      "Ying ",
      "Rong ",
      "Ru ",
      "Chi ",
      "Liu ",
      "Mei ",
      "Pan ",
      "Ao ",
      "Ma ",
      "Gou ",
      "Kui ",
      "Qin ",
      "Jia ",
      "Sao ",
      "Zhen ",
      "Yuan ",
      "Cha ",
      "Yong ",
      "Ming ",
      "Ying ",
      "Ji ",
      "Su ",
      "Niao ",
      "Xian ",
      "Tao ",
      "Pang ",
      "Lang ",
      "Nao ",
      "Bao ",
      "Ai ",
      "Pi ",
      "Pin ",
      "Yi ",
      "Piao ",
      "Yu ",
      "Lei ",
      "Xuan ",
      "Man ",
      "Yi ",
      "Zhang ",
      "Kang ",
      "Yong ",
      "Ni ",
      "Li ",
      "Di ",
      "Gui ",
      "Yan ",
      "Jin ",
      "Zhuan ",
      "Chang ",
      "Ce ",
      "Han ",
      "Nen ",
      "Lao ",
      "Mo ",
      "Zhe ",
      "Hu ",
      "Hu ",
      "Ao ",
      "Nen ",
      "Qiang ",
      "Ma ",
      "Pie ",
      "Gu ",
      "Wu ",
      "Jiao ",
      "Tuo ",
      "Zhan ",
      "Mao ",
      "Xian ",
      "Xian ",
      "Mo ",
      "Liao ",
      "Lian ",
      "Hua "
    ];
  }
});

// node_modules/unidecode/data/x5b.js
var require_x5b = __commonJS({
  "node_modules/unidecode/data/x5b.js"(exports2, module2) {
    module2.exports = [
      "Gui ",
      "Deng ",
      "Zhi ",
      "Xu ",
      "Yi ",
      "Hua ",
      "Xi ",
      "Hui ",
      "Rao ",
      "Xi ",
      "Yan ",
      "Chan ",
      "Jiao ",
      "Mei ",
      "Fan ",
      "Fan ",
      "Xian ",
      "Yi ",
      "Wei ",
      "Jiao ",
      "Fu ",
      "Shi ",
      "Bi ",
      "Shan ",
      "Sui ",
      "Qiang ",
      "Lian ",
      "Huan ",
      "Xin ",
      "Niao ",
      "Dong ",
      "Yi ",
      "Can ",
      "Ai ",
      "Niang ",
      "Neng ",
      "Ma ",
      "Tiao ",
      "Chou ",
      "Jin ",
      "Ci ",
      "Yu ",
      "Pin ",
      "Yong ",
      "Xu ",
      "Nai ",
      "Yan ",
      "Tai ",
      "Ying ",
      "Can ",
      "Niao ",
      "Wo ",
      "Ying ",
      "Mian ",
      "Kaka ",
      "Ma ",
      "Shen ",
      "Xing ",
      "Ni ",
      "Du ",
      "Liu ",
      "Yuan ",
      "Lan ",
      "Yan ",
      "Shuang ",
      "Ling ",
      "Jiao ",
      "Niang ",
      "Lan ",
      "Xian ",
      "Ying ",
      "Shuang ",
      "Shuai ",
      "Quan ",
      "Mi ",
      "Li ",
      "Luan ",
      "Yan ",
      "Zhu ",
      "Lan ",
      "Zi ",
      "Jie ",
      "Jue ",
      "Jue ",
      "Kong ",
      "Yun ",
      "Zi ",
      "Zi ",
      "Cun ",
      "Sun ",
      "Fu ",
      "Bei ",
      "Zi ",
      "Xiao ",
      "Xin ",
      "Meng ",
      "Si ",
      "Tai ",
      "Bao ",
      "Ji ",
      "Gu ",
      "Nu ",
      "Xue ",
      "[?] ",
      "Zhuan ",
      "Hai ",
      "Luan ",
      "Sun ",
      "Huai ",
      "Mie ",
      "Cong ",
      "Qian ",
      "Shu ",
      "Chan ",
      "Ya ",
      "Zi ",
      "Ni ",
      "Fu ",
      "Zi ",
      "Li ",
      "Xue ",
      "Bo ",
      "Ru ",
      "Lai ",
      "Nie ",
      "Nie ",
      "Ying ",
      "Luan ",
      "Mian ",
      "Zhu ",
      "Rong ",
      "Ta ",
      "Gui ",
      "Zhai ",
      "Qiong ",
      "Yu ",
      "Shou ",
      "An ",
      "Tu ",
      "Song ",
      "Wan ",
      "Rou ",
      "Yao ",
      "Hong ",
      "Yi ",
      "Jing ",
      "Zhun ",
      "Mi ",
      "Zhu ",
      "Dang ",
      "Hong ",
      "Zong ",
      "Guan ",
      "Zhou ",
      "Ding ",
      "Wan ",
      "Yi ",
      "Bao ",
      "Shi ",
      "Shi ",
      "Chong ",
      "Shen ",
      "Ke ",
      "Xuan ",
      "Shi ",
      "You ",
      "Huan ",
      "Yi ",
      "Tiao ",
      "Shi ",
      "Xian ",
      "Gong ",
      "Cheng ",
      "Qun ",
      "Gong ",
      "Xiao ",
      "Zai ",
      "Zha ",
      "Bao ",
      "Hai ",
      "Yan ",
      "Xiao ",
      "Jia ",
      "Shen ",
      "Chen ",
      "Rong ",
      "Huang ",
      "Mi ",
      "Kou ",
      "Kuan ",
      "Bin ",
      "Su ",
      "Cai ",
      "Zan ",
      "Ji ",
      "Yuan ",
      "Ji ",
      "Yin ",
      "Mi ",
      "Kou ",
      "Qing ",
      "Que ",
      "Zhen ",
      "Jian ",
      "Fu ",
      "Ning ",
      "Bing ",
      "Huan ",
      "Mei ",
      "Qin ",
      "Han ",
      "Yu ",
      "Shi ",
      "Ning ",
      "Qin ",
      "Ning ",
      "Zhi ",
      "Yu ",
      "Bao ",
      "Kuan ",
      "Ning ",
      "Qin ",
      "Mo ",
      "Cha ",
      "Ju ",
      "Gua ",
      "Qin ",
      "Hu ",
      "Wu ",
      "Liao ",
      "Shi ",
      "Zhu ",
      "Zhai ",
      "Shen ",
      "Wei ",
      "Xie ",
      "Kuan ",
      "Hui ",
      "Liao ",
      "Jun ",
      "Huan ",
      "Yi ",
      "Yi ",
      "Bao ",
      "Qin ",
      "Chong ",
      "Bao ",
      "Feng ",
      "Cun ",
      "Dui ",
      "Si ",
      "Xun ",
      "Dao ",
      "Lu ",
      "Dui ",
      "Shou "
    ];
  }
});

// node_modules/unidecode/data/x5c.js
var require_x5c = __commonJS({
  "node_modules/unidecode/data/x5c.js"(exports2, module2) {
    module2.exports = [
      "Po ",
      "Feng ",
      "Zhuan ",
      "Fu ",
      "She ",
      "Ke ",
      "Jiang ",
      "Jiang ",
      "Zhuan ",
      "Wei ",
      "Zun ",
      "Xun ",
      "Shu ",
      "Dui ",
      "Dao ",
      "Xiao ",
      "Ji ",
      "Shao ",
      "Er ",
      "Er ",
      "Er ",
      "Ga ",
      "Jian ",
      "Shu ",
      "Chen ",
      "Shang ",
      "Shang ",
      "Mo ",
      "Ga ",
      "Chang ",
      "Liao ",
      "Xian ",
      "Xian ",
      "[?] ",
      "Wang ",
      "Wang ",
      "You ",
      "Liao ",
      "Liao ",
      "Yao ",
      "Mang ",
      "Wang ",
      "Wang ",
      "Wang ",
      "Ga ",
      "Yao ",
      "Duo ",
      "Kui ",
      "Zhong ",
      "Jiu ",
      "Gan ",
      "Gu ",
      "Gan ",
      "Tui ",
      "Gan ",
      "Gan ",
      "Shi ",
      "Yin ",
      "Chi ",
      "Kao ",
      "Ni ",
      "Jin ",
      "Wei ",
      "Niao ",
      "Ju ",
      "Pi ",
      "Ceng ",
      "Xi ",
      "Bi ",
      "Ju ",
      "Jie ",
      "Tian ",
      "Qu ",
      "Ti ",
      "Jie ",
      "Wu ",
      "Diao ",
      "Shi ",
      "Shi ",
      "Ping ",
      "Ji ",
      "Xie ",
      "Chen ",
      "Xi ",
      "Ni ",
      "Zhan ",
      "Xi ",
      "[?] ",
      "Man ",
      "E ",
      "Lou ",
      "Ping ",
      "Ti ",
      "Fei ",
      "Shu ",
      "Xie ",
      "Tu ",
      "Lu ",
      "Lu ",
      "Xi ",
      "Ceng ",
      "Lu ",
      "Ju ",
      "Xie ",
      "Ju ",
      "Jue ",
      "Liao ",
      "Jue ",
      "Shu ",
      "Xi ",
      "Che ",
      "Tun ",
      "Ni ",
      "Shan ",
      "[?] ",
      "Xian ",
      "Li ",
      "Xue ",
      "Nata ",
      "[?] ",
      "Long ",
      "Yi ",
      "Qi ",
      "Ren ",
      "Wu ",
      "Han ",
      "Shen ",
      "Yu ",
      "Chu ",
      "Sui ",
      "Qi ",
      "[?] ",
      "Yue ",
      "Ban ",
      "Yao ",
      "Ang ",
      "Ya ",
      "Wu ",
      "Jie ",
      "E ",
      "Ji ",
      "Qian ",
      "Fen ",
      "Yuan ",
      "Qi ",
      "Cen ",
      "Qian ",
      "Qi ",
      "Cha ",
      "Jie ",
      "Qu ",
      "Gang ",
      "Xian ",
      "Ao ",
      "Lan ",
      "Dao ",
      "Ba ",
      "Zuo ",
      "Zuo ",
      "Yang ",
      "Ju ",
      "Gang ",
      "Ke ",
      "Gou ",
      "Xue ",
      "Bei ",
      "Li ",
      "Tiao ",
      "Ju ",
      "Yan ",
      "Fu ",
      "Xiu ",
      "Jia ",
      "Ling ",
      "Tuo ",
      "Pei ",
      "You ",
      "Dai ",
      "Kuang ",
      "Yue ",
      "Qu ",
      "Hu ",
      "Po ",
      "Min ",
      "An ",
      "Tiao ",
      "Ling ",
      "Chi ",
      "Yuri ",
      "Dong ",
      "Cem ",
      "Kui ",
      "Xiu ",
      "Mao ",
      "Tong ",
      "Xue ",
      "Yi ",
      "Kura ",
      "He ",
      "Ke ",
      "Luo ",
      "E ",
      "Fu ",
      "Xun ",
      "Die ",
      "Lu ",
      "An ",
      "Er ",
      "Gai ",
      "Quan ",
      "Tong ",
      "Yi ",
      "Mu ",
      "Shi ",
      "An ",
      "Wei ",
      "Hu ",
      "Zhi ",
      "Mi ",
      "Li ",
      "Ji ",
      "Tong ",
      "Wei ",
      "You ",
      "Sang ",
      "Xia ",
      "Li ",
      "Yao ",
      "Jiao ",
      "Zheng ",
      "Luan ",
      "Jiao ",
      "E ",
      "E ",
      "Yu ",
      "Ye ",
      "Bu ",
      "Qiao ",
      "Qun ",
      "Feng ",
      "Feng ",
      "Nao ",
      "Li ",
      "You ",
      "Xian ",
      "Hong ",
      "Dao ",
      "Shen ",
      "Cheng ",
      "Tu ",
      "Geng ",
      "Jun ",
      "Hao ",
      "Xia ",
      "Yin ",
      "Yu "
    ];
  }
});

// node_modules/unidecode/data/x5d.js
var require_x5d = __commonJS({
  "node_modules/unidecode/data/x5d.js"(exports2, module2) {
    module2.exports = [
      "Lang ",
      "Kan ",
      "Lao ",
      "Lai ",
      "Xian ",
      "Que ",
      "Kong ",
      "Chong ",
      "Chong ",
      "Ta ",
      "Lin ",
      "Hua ",
      "Ju ",
      "Lai ",
      "Qi ",
      "Min ",
      "Kun ",
      "Kun ",
      "Zu ",
      "Gu ",
      "Cui ",
      "Ya ",
      "Ya ",
      "Gang ",
      "Lun ",
      "Lun ",
      "Leng ",
      "Jue ",
      "Duo ",
      "Zheng ",
      "Guo ",
      "Yin ",
      "Dong ",
      "Han ",
      "Zheng ",
      "Wei ",
      "Yao ",
      "Pi ",
      "Yan ",
      "Song ",
      "Jie ",
      "Beng ",
      "Zu ",
      "Jue ",
      "Dong ",
      "Zhan ",
      "Gu ",
      "Yin ",
      "[?] ",
      "Ze ",
      "Huang ",
      "Yu ",
      "Wei ",
      "Yang ",
      "Feng ",
      "Qiu ",
      "Dun ",
      "Ti ",
      "Yi ",
      "Zhi ",
      "Shi ",
      "Zai ",
      "Yao ",
      "E ",
      "Zhu ",
      "Kan ",
      "Lu ",
      "Yan ",
      "Mei ",
      "Gan ",
      "Ji ",
      "Ji ",
      "Huan ",
      "Ting ",
      "Sheng ",
      "Mei ",
      "Qian ",
      "Wu ",
      "Yu ",
      "Zong ",
      "Lan ",
      "Jue ",
      "Yan ",
      "Yan ",
      "Wei ",
      "Zong ",
      "Cha ",
      "Sui ",
      "Rong ",
      "Yamashina ",
      "Qin ",
      "Yu ",
      "Kewashii ",
      "Lou ",
      "Tu ",
      "Dui ",
      "Xi ",
      "Weng ",
      "Cang ",
      "Dang ",
      "Hong ",
      "Jie ",
      "Ai ",
      "Liu ",
      "Wu ",
      "Song ",
      "Qiao ",
      "Zi ",
      "Wei ",
      "Beng ",
      "Dian ",
      "Cuo ",
      "Qian ",
      "Yong ",
      "Nie ",
      "Cuo ",
      "Ji ",
      "[?] ",
      "Tao ",
      "Song ",
      "Zong ",
      "Jiang ",
      "Liao ",
      "Kang ",
      "Chan ",
      "Die ",
      "Cen ",
      "Ding ",
      "Tu ",
      "Lou ",
      "Zhang ",
      "Zhan ",
      "Zhan ",
      "Ao ",
      "Cao ",
      "Qu ",
      "Qiang ",
      "Zui ",
      "Zui ",
      "Dao ",
      "Dao ",
      "Xi ",
      "Yu ",
      "Bo ",
      "Long ",
      "Xiang ",
      "Ceng ",
      "Bo ",
      "Qin ",
      "Jiao ",
      "Yan ",
      "Lao ",
      "Zhan ",
      "Lin ",
      "Liao ",
      "Liao ",
      "Jin ",
      "Deng ",
      "Duo ",
      "Zun ",
      "Jiao ",
      "Gui ",
      "Yao ",
      "Qiao ",
      "Yao ",
      "Jue ",
      "Zhan ",
      "Yi ",
      "Xue ",
      "Nao ",
      "Ye ",
      "Ye ",
      "Yi ",
      "E ",
      "Xian ",
      "Ji ",
      "Xie ",
      "Ke ",
      "Xi ",
      "Di ",
      "Ao ",
      "Zui ",
      "[?] ",
      "Ni ",
      "Rong ",
      "Dao ",
      "Ling ",
      "Za ",
      "Yu ",
      "Yue ",
      "Yin ",
      "[?] ",
      "Jie ",
      "Li ",
      "Sui ",
      "Long ",
      "Long ",
      "Dian ",
      "Ying ",
      "Xi ",
      "Ju ",
      "Chan ",
      "Ying ",
      "Kui ",
      "Yan ",
      "Wei ",
      "Nao ",
      "Quan ",
      "Chao ",
      "Cuan ",
      "Luan ",
      "Dian ",
      "Dian ",
      "[?] ",
      "Yan ",
      "Yan ",
      "Yan ",
      "Nao ",
      "Yan ",
      "Chuan ",
      "Gui ",
      "Chuan ",
      "Zhou ",
      "Huang ",
      "Jing ",
      "Xun ",
      "Chao ",
      "Chao ",
      "Lie ",
      "Gong ",
      "Zuo ",
      "Qiao ",
      "Ju ",
      "Gong ",
      "Kek ",
      "Wu ",
      "Pwu ",
      "Pwu ",
      "Chai ",
      "Qiu ",
      "Qiu ",
      "Ji ",
      "Yi ",
      "Si ",
      "Ba ",
      "Zhi ",
      "Zhao ",
      "Xiang ",
      "Yi ",
      "Jin ",
      "Xun ",
      "Juan ",
      "Phas ",
      "Xun ",
      "Jin ",
      "Fu "
    ];
  }
});

// node_modules/unidecode/data/x5e.js
var require_x5e = __commonJS({
  "node_modules/unidecode/data/x5e.js"(exports2, module2) {
    module2.exports = [
      "Za ",
      "Bi ",
      "Shi ",
      "Bu ",
      "Ding ",
      "Shuai ",
      "Fan ",
      "Nie ",
      "Shi ",
      "Fen ",
      "Pa ",
      "Zhi ",
      "Xi ",
      "Hu ",
      "Dan ",
      "Wei ",
      "Zhang ",
      "Tang ",
      "Dai ",
      "Ma ",
      "Pei ",
      "Pa ",
      "Tie ",
      "Fu ",
      "Lian ",
      "Zhi ",
      "Zhou ",
      "Bo ",
      "Zhi ",
      "Di ",
      "Mo ",
      "Yi ",
      "Yi ",
      "Ping ",
      "Qia ",
      "Juan ",
      "Ru ",
      "Shuai ",
      "Dai ",
      "Zheng ",
      "Shui ",
      "Qiao ",
      "Zhen ",
      "Shi ",
      "Qun ",
      "Xi ",
      "Bang ",
      "Dai ",
      "Gui ",
      "Chou ",
      "Ping ",
      "Zhang ",
      "Sha ",
      "Wan ",
      "Dai ",
      "Wei ",
      "Chang ",
      "Sha ",
      "Qi ",
      "Ze ",
      "Guo ",
      "Mao ",
      "Du ",
      "Hou ",
      "Zheng ",
      "Xu ",
      "Mi ",
      "Wei ",
      "Wo ",
      "Fu ",
      "Yi ",
      "Bang ",
      "Ping ",
      "Tazuna ",
      "Gong ",
      "Pan ",
      "Huang ",
      "Dao ",
      "Mi ",
      "Jia ",
      "Teng ",
      "Hui ",
      "Zhong ",
      "Shan ",
      "Man ",
      "Mu ",
      "Biao ",
      "Guo ",
      "Ze ",
      "Mu ",
      "Bang ",
      "Zhang ",
      "Jiong ",
      "Chan ",
      "Fu ",
      "Zhi ",
      "Hu ",
      "Fan ",
      "Chuang ",
      "Bi ",
      "Hei ",
      "[?] ",
      "Mi ",
      "Qiao ",
      "Chan ",
      "Fen ",
      "Meng ",
      "Bang ",
      "Chou ",
      "Mie ",
      "Chu ",
      "Jie ",
      "Xian ",
      "Lan ",
      "Gan ",
      "Ping ",
      "Nian ",
      "Qian ",
      "Bing ",
      "Bing ",
      "Xing ",
      "Gan ",
      "Yao ",
      "Huan ",
      "You ",
      "You ",
      "Ji ",
      "Yan ",
      "Pi ",
      "Ting ",
      "Ze ",
      "Guang ",
      "Zhuang ",
      "Mo ",
      "Qing ",
      "Bi ",
      "Qin ",
      "Dun ",
      "Chuang ",
      "Gui ",
      "Ya ",
      "Bai ",
      "Jie ",
      "Xu ",
      "Lu ",
      "Wu ",
      "[?] ",
      "Ku ",
      "Ying ",
      "Di ",
      "Pao ",
      "Dian ",
      "Ya ",
      "Miao ",
      "Geng ",
      "Ci ",
      "Fu ",
      "Tong ",
      "Pang ",
      "Fei ",
      "Xiang ",
      "Yi ",
      "Zhi ",
      "Tiao ",
      "Zhi ",
      "Xiu ",
      "Du ",
      "Zuo ",
      "Xiao ",
      "Tu ",
      "Gui ",
      "Ku ",
      "Pang ",
      "Ting ",
      "You ",
      "Bu ",
      "Ding ",
      "Cheng ",
      "Lai ",
      "Bei ",
      "Ji ",
      "An ",
      "Shu ",
      "Kang ",
      "Yong ",
      "Tuo ",
      "Song ",
      "Shu ",
      "Qing ",
      "Yu ",
      "Yu ",
      "Miao ",
      "Sou ",
      "Ce ",
      "Xiang ",
      "Fei ",
      "Jiu ",
      "He ",
      "Hui ",
      "Liu ",
      "Sha ",
      "Lian ",
      "Lang ",
      "Sou ",
      "Jian ",
      "Pou ",
      "Qing ",
      "Jiu ",
      "Jiu ",
      "Qin ",
      "Ao ",
      "Kuo ",
      "Lou ",
      "Yin ",
      "Liao ",
      "Dai ",
      "Lu ",
      "Yi ",
      "Chu ",
      "Chan ",
      "Tu ",
      "Si ",
      "Xin ",
      "Miao ",
      "Chang ",
      "Wu ",
      "Fei ",
      "Guang ",
      "Koc ",
      "Kuai ",
      "Bi ",
      "Qiang ",
      "Xie ",
      "Lin ",
      "Lin ",
      "Liao ",
      "Lu ",
      "[?] ",
      "Ying ",
      "Xian ",
      "Ting ",
      "Yong ",
      "Li ",
      "Ting ",
      "Yin ",
      "Xun ",
      "Yan ",
      "Ting ",
      "Di ",
      "Po ",
      "Jian ",
      "Hui ",
      "Nai ",
      "Hui ",
      "Gong ",
      "Nian "
    ];
  }
});

// node_modules/unidecode/data/x5f.js
var require_x5f = __commonJS({
  "node_modules/unidecode/data/x5f.js"(exports2, module2) {
    module2.exports = [
      "Kai ",
      "Bian ",
      "Yi ",
      "Qi ",
      "Nong ",
      "Fen ",
      "Ju ",
      "Yan ",
      "Yi ",
      "Zang ",
      "Bi ",
      "Yi ",
      "Yi ",
      "Er ",
      "San ",
      "Shi ",
      "Er ",
      "Shi ",
      "Shi ",
      "Gong ",
      "Diao ",
      "Yin ",
      "Hu ",
      "Fu ",
      "Hong ",
      "Wu ",
      "Tui ",
      "Chi ",
      "Jiang ",
      "Ba ",
      "Shen ",
      "Di ",
      "Zhang ",
      "Jue ",
      "Tao ",
      "Fu ",
      "Di ",
      "Mi ",
      "Xian ",
      "Hu ",
      "Chao ",
      "Nu ",
      "Jing ",
      "Zhen ",
      "Yi ",
      "Mi ",
      "Quan ",
      "Wan ",
      "Shao ",
      "Ruo ",
      "Xuan ",
      "Jing ",
      "Dun ",
      "Zhang ",
      "Jiang ",
      "Qiang ",
      "Peng ",
      "Dan ",
      "Qiang ",
      "Bi ",
      "Bi ",
      "She ",
      "Dan ",
      "Jian ",
      "Gou ",
      "Sei ",
      "Fa ",
      "Bi ",
      "Kou ",
      "Nagi ",
      "Bie ",
      "Xiao ",
      "Dan ",
      "Kuo ",
      "Qiang ",
      "Hong ",
      "Mi ",
      "Kuo ",
      "Wan ",
      "Jue ",
      "Ji ",
      "Ji ",
      "Gui ",
      "Dang ",
      "Lu ",
      "Lu ",
      "Tuan ",
      "Hui ",
      "Zhi ",
      "Hui ",
      "Hui ",
      "Yi ",
      "Yi ",
      "Yi ",
      "Yi ",
      "Huo ",
      "Huo ",
      "Shan ",
      "Xing ",
      "Wen ",
      "Tong ",
      "Yan ",
      "Yan ",
      "Yu ",
      "Chi ",
      "Cai ",
      "Biao ",
      "Diao ",
      "Bin ",
      "Peng ",
      "Yong ",
      "Piao ",
      "Zhang ",
      "Ying ",
      "Chi ",
      "Chi ",
      "Zhuo ",
      "Tuo ",
      "Ji ",
      "Pang ",
      "Zhong ",
      "Yi ",
      "Wang ",
      "Che ",
      "Bi ",
      "Chi ",
      "Ling ",
      "Fu ",
      "Wang ",
      "Zheng ",
      "Cu ",
      "Wang ",
      "Jing ",
      "Dai ",
      "Xi ",
      "Xun ",
      "Hen ",
      "Yang ",
      "Huai ",
      "Lu ",
      "Hou ",
      "Wa ",
      "Cheng ",
      "Zhi ",
      "Xu ",
      "Jing ",
      "Tu ",
      "Cong ",
      "[?] ",
      "Lai ",
      "Cong ",
      "De ",
      "Pai ",
      "Xi ",
      "[?] ",
      "Qi ",
      "Chang ",
      "Zhi ",
      "Cong ",
      "Zhou ",
      "Lai ",
      "Yu ",
      "Xie ",
      "Jie ",
      "Jian ",
      "Chi ",
      "Jia ",
      "Bian ",
      "Huang ",
      "Fu ",
      "Xun ",
      "Wei ",
      "Pang ",
      "Yao ",
      "Wei ",
      "Xi ",
      "Zheng ",
      "Piao ",
      "Chi ",
      "De ",
      "Zheng ",
      "Zheng ",
      "Bie ",
      "De ",
      "Chong ",
      "Che ",
      "Jiao ",
      "Wei ",
      "Jiao ",
      "Hui ",
      "Mei ",
      "Long ",
      "Xiang ",
      "Bao ",
      "Qu ",
      "Xin ",
      "Shu ",
      "Bi ",
      "Yi ",
      "Le ",
      "Ren ",
      "Dao ",
      "Ding ",
      "Gai ",
      "Ji ",
      "Ren ",
      "Ren ",
      "Chan ",
      "Tan ",
      "Te ",
      "Te ",
      "Gan ",
      "Qi ",
      "Shi ",
      "Cun ",
      "Zhi ",
      "Wang ",
      "Mang ",
      "Xi ",
      "Fan ",
      "Ying ",
      "Tian ",
      "Min ",
      "Min ",
      "Zhong ",
      "Chong ",
      "Wu ",
      "Ji ",
      "Wu ",
      "Xi ",
      "Ye ",
      "You ",
      "Wan ",
      "Cong ",
      "Zhong ",
      "Kuai ",
      "Yu ",
      "Bian ",
      "Zhi ",
      "Qi ",
      "Cui ",
      "Chen ",
      "Tai ",
      "Tun ",
      "Qian ",
      "Nian ",
      "Hun ",
      "Xiong ",
      "Niu ",
      "Wang ",
      "Xian ",
      "Xin ",
      "Kang ",
      "Hu ",
      "Kai ",
      "Fen "
    ];
  }
});

// node_modules/unidecode/data/x60.js
var require_x60 = __commonJS({
  "node_modules/unidecode/data/x60.js"(exports2, module2) {
    module2.exports = [
      "Huai ",
      "Tai ",
      "Song ",
      "Wu ",
      "Ou ",
      "Chang ",
      "Chuang ",
      "Ju ",
      "Yi ",
      "Bao ",
      "Chao ",
      "Min ",
      "Pei ",
      "Zuo ",
      "Zen ",
      "Yang ",
      "Kou ",
      "Ban ",
      "Nu ",
      "Nao ",
      "Zheng ",
      "Pa ",
      "Bu ",
      "Tie ",
      "Gu ",
      "Hu ",
      "Ju ",
      "Da ",
      "Lian ",
      "Si ",
      "Chou ",
      "Di ",
      "Dai ",
      "Yi ",
      "Tu ",
      "You ",
      "Fu ",
      "Ji ",
      "Peng ",
      "Xing ",
      "Yuan ",
      "Ni ",
      "Guai ",
      "Fu ",
      "Xi ",
      "Bi ",
      "You ",
      "Qie ",
      "Xuan ",
      "Cong ",
      "Bing ",
      "Huang ",
      "Xu ",
      "Chu ",
      "Pi ",
      "Xi ",
      "Xi ",
      "Tan ",
      "Koraeru ",
      "Zong ",
      "Dui ",
      "[?] ",
      "Ki ",
      "Yi ",
      "Chi ",
      "Ren ",
      "Xun ",
      "Shi ",
      "Xi ",
      "Lao ",
      "Heng ",
      "Kuang ",
      "Mu ",
      "Zhi ",
      "Xie ",
      "Lian ",
      "Tiao ",
      "Huang ",
      "Die ",
      "Hao ",
      "Kong ",
      "Gui ",
      "Heng ",
      "Xi ",
      "Xiao ",
      "Shu ",
      "S ",
      "Kua ",
      "Qiu ",
      "Yang ",
      "Hui ",
      "Hui ",
      "Chi ",
      "Jia ",
      "Yi ",
      "Xiong ",
      "Guai ",
      "Lin ",
      "Hui ",
      "Zi ",
      "Xu ",
      "Chi ",
      "Xiang ",
      "Nu ",
      "Hen ",
      "En ",
      "Ke ",
      "Tong ",
      "Tian ",
      "Gong ",
      "Quan ",
      "Xi ",
      "Qia ",
      "Yue ",
      "Peng ",
      "Ken ",
      "De ",
      "Hui ",
      "E ",
      "Kyuu ",
      "Tong ",
      "Yan ",
      "Kai ",
      "Ce ",
      "Nao ",
      "Yun ",
      "Mang ",
      "Yong ",
      "Yong ",
      "Yuan ",
      "Pi ",
      "Kun ",
      "Qiao ",
      "Yue ",
      "Yu ",
      "Yu ",
      "Jie ",
      "Xi ",
      "Zhe ",
      "Lin ",
      "Ti ",
      "Han ",
      "Hao ",
      "Qie ",
      "Ti ",
      "Bu ",
      "Yi ",
      "Qian ",
      "Hui ",
      "Xi ",
      "Bei ",
      "Man ",
      "Yi ",
      "Heng ",
      "Song ",
      "Quan ",
      "Cheng ",
      "Hui ",
      "Wu ",
      "Wu ",
      "You ",
      "Li ",
      "Liang ",
      "Huan ",
      "Cong ",
      "Yi ",
      "Yue ",
      "Li ",
      "Nin ",
      "Nao ",
      "E ",
      "Que ",
      "Xuan ",
      "Qian ",
      "Wu ",
      "Min ",
      "Cong ",
      "Fei ",
      "Bei ",
      "Duo ",
      "Cui ",
      "Chang ",
      "Men ",
      "Li ",
      "Ji ",
      "Guan ",
      "Guan ",
      "Xing ",
      "Dao ",
      "Qi ",
      "Kong ",
      "Tian ",
      "Lun ",
      "Xi ",
      "Kan ",
      "Kun ",
      "Ni ",
      "Qing ",
      "Chou ",
      "Dun ",
      "Guo ",
      "Chan ",
      "Liang ",
      "Wan ",
      "Yuan ",
      "Jin ",
      "Ji ",
      "Lin ",
      "Yu ",
      "Huo ",
      "He ",
      "Quan ",
      "Tan ",
      "Ti ",
      "Ti ",
      "Nie ",
      "Wang ",
      "Chuo ",
      "Bu ",
      "Hun ",
      "Xi ",
      "Tang ",
      "Xin ",
      "Wei ",
      "Hui ",
      "E ",
      "Rui ",
      "Zong ",
      "Jian ",
      "Yong ",
      "Dian ",
      "Ju ",
      "Can ",
      "Cheng ",
      "De ",
      "Bei ",
      "Qie ",
      "Can ",
      "Dan ",
      "Guan ",
      "Duo ",
      "Nao ",
      "Yun ",
      "Xiang ",
      "Zhui ",
      "Die ",
      "Huang ",
      "Chun ",
      "Qiong ",
      "Re ",
      "Xing ",
      "Ce ",
      "Bian ",
      "Hun ",
      "Zong ",
      "Ti "
    ];
  }
});

// node_modules/unidecode/data/x61.js
var require_x61 = __commonJS({
  "node_modules/unidecode/data/x61.js"(exports2, module2) {
    module2.exports = [
      "Qiao ",
      "Chou ",
      "Bei ",
      "Xuan ",
      "Wei ",
      "Ge ",
      "Qian ",
      "Wei ",
      "Yu ",
      "Yu ",
      "Bi ",
      "Xuan ",
      "Huan ",
      "Min ",
      "Bi ",
      "Yi ",
      "Mian ",
      "Yong ",
      "Kai ",
      "Dang ",
      "Yin ",
      "E ",
      "Chen ",
      "Mou ",
      "Ke ",
      "Ke ",
      "Yu ",
      "Ai ",
      "Qie ",
      "Yan ",
      "Nuo ",
      "Gan ",
      "Yun ",
      "Zong ",
      "Sai ",
      "Leng ",
      "Fen ",
      "[?] ",
      "Kui ",
      "Kui ",
      "Que ",
      "Gong ",
      "Yun ",
      "Su ",
      "Su ",
      "Qi ",
      "Yao ",
      "Song ",
      "Huang ",
      "Ji ",
      "Gu ",
      "Ju ",
      "Chuang ",
      "Ni ",
      "Xie ",
      "Kai ",
      "Zheng ",
      "Yong ",
      "Cao ",
      "Sun ",
      "Shen ",
      "Bo ",
      "Kai ",
      "Yuan ",
      "Xie ",
      "Hun ",
      "Yong ",
      "Yang ",
      "Li ",
      "Sao ",
      "Tao ",
      "Yin ",
      "Ci ",
      "Xu ",
      "Qian ",
      "Tai ",
      "Huang ",
      "Yun ",
      "Shen ",
      "Ming ",
      "[?] ",
      "She ",
      "Cong ",
      "Piao ",
      "Mo ",
      "Mu ",
      "Guo ",
      "Chi ",
      "Can ",
      "Can ",
      "Can ",
      "Cui ",
      "Min ",
      "Te ",
      "Zhang ",
      "Tong ",
      "Ao ",
      "Shuang ",
      "Man ",
      "Guan ",
      "Que ",
      "Zao ",
      "Jiu ",
      "Hui ",
      "Kai ",
      "Lian ",
      "Ou ",
      "Song ",
      "Jin ",
      "Yin ",
      "Lu ",
      "Shang ",
      "Wei ",
      "Tuan ",
      "Man ",
      "Qian ",
      "She ",
      "Yong ",
      "Qing ",
      "Kang ",
      "Di ",
      "Zhi ",
      "Lou ",
      "Juan ",
      "Qi ",
      "Qi ",
      "Yu ",
      "Ping ",
      "Liao ",
      "Cong ",
      "You ",
      "Chong ",
      "Zhi ",
      "Tong ",
      "Cheng ",
      "Qi ",
      "Qu ",
      "Peng ",
      "Bei ",
      "Bie ",
      "Chun ",
      "Jiao ",
      "Zeng ",
      "Chi ",
      "Lian ",
      "Ping ",
      "Kui ",
      "Hui ",
      "Qiao ",
      "Cheng ",
      "Yin ",
      "Yin ",
      "Xi ",
      "Xi ",
      "Dan ",
      "Tan ",
      "Duo ",
      "Dui ",
      "Dui ",
      "Su ",
      "Jue ",
      "Ce ",
      "Xiao ",
      "Fan ",
      "Fen ",
      "Lao ",
      "Lao ",
      "Chong ",
      "Han ",
      "Qi ",
      "Xian ",
      "Min ",
      "Jing ",
      "Liao ",
      "Wu ",
      "Can ",
      "Jue ",
      "Cu ",
      "Xian ",
      "Tan ",
      "Sheng ",
      "Pi ",
      "Yi ",
      "Chu ",
      "Xian ",
      "Nao ",
      "Dan ",
      "Tan ",
      "Jing ",
      "Song ",
      "Han ",
      "Jiao ",
      "Wai ",
      "Huan ",
      "Dong ",
      "Qin ",
      "Qin ",
      "Qu ",
      "Cao ",
      "Ken ",
      "Xie ",
      "Ying ",
      "Ao ",
      "Mao ",
      "Yi ",
      "Lin ",
      "Se ",
      "Jun ",
      "Huai ",
      "Men ",
      "Lan ",
      "Ai ",
      "Lin ",
      "Yan ",
      "Gua ",
      "Xia ",
      "Chi ",
      "Yu ",
      "Yin ",
      "Dai ",
      "Meng ",
      "Ai ",
      "Meng ",
      "Dui ",
      "Qi ",
      "Mo ",
      "Lan ",
      "Men ",
      "Chou ",
      "Zhi ",
      "Nuo ",
      "Nuo ",
      "Yan ",
      "Yang ",
      "Bo ",
      "Zhi ",
      "Kuang ",
      "Kuang ",
      "You ",
      "Fu ",
      "Liu ",
      "Mie ",
      "Cheng ",
      "[?] ",
      "Chan ",
      "Meng ",
      "Lan ",
      "Huai ",
      "Xuan ",
      "Rang ",
      "Chan ",
      "Ji ",
      "Ju ",
      "Huan ",
      "She ",
      "Yi "
    ];
  }
});

// node_modules/unidecode/data/x62.js
var require_x62 = __commonJS({
  "node_modules/unidecode/data/x62.js"(exports2, module2) {
    module2.exports = [
      "Lian ",
      "Nan ",
      "Mi ",
      "Tang ",
      "Jue ",
      "Gang ",
      "Gang ",
      "Gang ",
      "Ge ",
      "Yue ",
      "Wu ",
      "Jian ",
      "Xu ",
      "Shu ",
      "Rong ",
      "Xi ",
      "Cheng ",
      "Wo ",
      "Jie ",
      "Ge ",
      "Jian ",
      "Qiang ",
      "Huo ",
      "Qiang ",
      "Zhan ",
      "Dong ",
      "Qi ",
      "Jia ",
      "Die ",
      "Zei ",
      "Jia ",
      "Ji ",
      "Shi ",
      "Kan ",
      "Ji ",
      "Kui ",
      "Gai ",
      "Deng ",
      "Zhan ",
      "Chuang ",
      "Ge ",
      "Jian ",
      "Jie ",
      "Yu ",
      "Jian ",
      "Yan ",
      "Lu ",
      "Xi ",
      "Zhan ",
      "Xi ",
      "Xi ",
      "Chuo ",
      "Dai ",
      "Qu ",
      "Hu ",
      "Hu ",
      "Hu ",
      "E ",
      "Shi ",
      "Li ",
      "Mao ",
      "Hu ",
      "Li ",
      "Fang ",
      "Suo ",
      "Bian ",
      "Dian ",
      "Jiong ",
      "Shang ",
      "Yi ",
      "Yi ",
      "Shan ",
      "Hu ",
      "Fei ",
      "Yan ",
      "Shou ",
      "T ",
      "Cai ",
      "Zha ",
      "Qiu ",
      "Le ",
      "Bu ",
      "Ba ",
      "Da ",
      "Reng ",
      "Fu ",
      "Hameru ",
      "Zai ",
      "Tuo ",
      "Zhang ",
      "Diao ",
      "Kang ",
      "Yu ",
      "Ku ",
      "Han ",
      "Shen ",
      "Cha ",
      "Yi ",
      "Gu ",
      "Kou ",
      "Wu ",
      "Tuo ",
      "Qian ",
      "Zhi ",
      "Ren ",
      "Kuo ",
      "Men ",
      "Sao ",
      "Yang ",
      "Niu ",
      "Ban ",
      "Che ",
      "Rao ",
      "Xi ",
      "Qian ",
      "Ban ",
      "Jia ",
      "Yu ",
      "Fu ",
      "Ao ",
      "Xi ",
      "Pi ",
      "Zhi ",
      "Zi ",
      "E ",
      "Dun ",
      "Zhao ",
      "Cheng ",
      "Ji ",
      "Yan ",
      "Kuang ",
      "Bian ",
      "Chao ",
      "Ju ",
      "Wen ",
      "Hu ",
      "Yue ",
      "Jue ",
      "Ba ",
      "Qin ",
      "Zhen ",
      "Zheng ",
      "Yun ",
      "Wan ",
      "Nu ",
      "Yi ",
      "Shu ",
      "Zhua ",
      "Pou ",
      "Tou ",
      "Dou ",
      "Kang ",
      "Zhe ",
      "Pou ",
      "Fu ",
      "Pao ",
      "Ba ",
      "Ao ",
      "Ze ",
      "Tuan ",
      "Kou ",
      "Lun ",
      "Qiang ",
      "[?] ",
      "Hu ",
      "Bao ",
      "Bing ",
      "Zhi ",
      "Peng ",
      "Tan ",
      "Pu ",
      "Pi ",
      "Tai ",
      "Yao ",
      "Zhen ",
      "Zha ",
      "Yang ",
      "Bao ",
      "He ",
      "Ni ",
      "Yi ",
      "Di ",
      "Chi ",
      "Pi ",
      "Za ",
      "Mo ",
      "Mo ",
      "Shen ",
      "Ya ",
      "Chou ",
      "Qu ",
      "Min ",
      "Chu ",
      "Jia ",
      "Fu ",
      "Zhan ",
      "Zhu ",
      "Dan ",
      "Chai ",
      "Mu ",
      "Nian ",
      "La ",
      "Fu ",
      "Pao ",
      "Ban ",
      "Pai ",
      "Ling ",
      "Na ",
      "Guai ",
      "Qian ",
      "Ju ",
      "Tuo ",
      "Ba ",
      "Tuo ",
      "Tuo ",
      "Ao ",
      "Ju ",
      "Zhuo ",
      "Pan ",
      "Zhao ",
      "Bai ",
      "Bai ",
      "Di ",
      "Ni ",
      "Ju ",
      "Kuo ",
      "Long ",
      "Jian ",
      "[?] ",
      "Yong ",
      "Lan ",
      "Ning ",
      "Bo ",
      "Ze ",
      "Qian ",
      "Hen ",
      "Gua ",
      "Shi ",
      "Jie ",
      "Zheng ",
      "Nin ",
      "Gong ",
      "Gong ",
      "Quan ",
      "Shuan ",
      "Cun ",
      "Zan ",
      "Kao ",
      "Chi ",
      "Xie ",
      "Ce ",
      "Hui ",
      "Pin ",
      "Zhuai ",
      "Shi ",
      "Na "
    ];
  }
});

// node_modules/unidecode/data/x63.js
var require_x63 = __commonJS({
  "node_modules/unidecode/data/x63.js"(exports2, module2) {
    module2.exports = [
      "Bo ",
      "Chi ",
      "Gua ",
      "Zhi ",
      "Kuo ",
      "Duo ",
      "Duo ",
      "Zhi ",
      "Qie ",
      "An ",
      "Nong ",
      "Zhen ",
      "Ge ",
      "Jiao ",
      "Ku ",
      "Dong ",
      "Ru ",
      "Tiao ",
      "Lie ",
      "Zha ",
      "Lu ",
      "Die ",
      "Wa ",
      "Jue ",
      "Mushiru ",
      "Ju ",
      "Zhi ",
      "Luan ",
      "Ya ",
      "Zhua ",
      "Ta ",
      "Xie ",
      "Nao ",
      "Dang ",
      "Jiao ",
      "Zheng ",
      "Ji ",
      "Hui ",
      "Xun ",
      "Ku ",
      "Ai ",
      "Tuo ",
      "Nuo ",
      "Cuo ",
      "Bo ",
      "Geng ",
      "Ti ",
      "Zhen ",
      "Cheng ",
      "Suo ",
      "Suo ",
      "Keng ",
      "Mei ",
      "Long ",
      "Ju ",
      "Peng ",
      "Jian ",
      "Yi ",
      "Ting ",
      "Shan ",
      "Nuo ",
      "Wan ",
      "Xie ",
      "Cha ",
      "Feng ",
      "Jiao ",
      "Wu ",
      "Jun ",
      "Jiu ",
      "Tong ",
      "Kun ",
      "Huo ",
      "Tu ",
      "Zhuo ",
      "Pou ",
      "Le ",
      "Ba ",
      "Han ",
      "Shao ",
      "Nie ",
      "Juan ",
      "Ze ",
      "Song ",
      "Ye ",
      "Jue ",
      "Bu ",
      "Huan ",
      "Bu ",
      "Zun ",
      "Yi ",
      "Zhai ",
      "Lu ",
      "Sou ",
      "Tuo ",
      "Lao ",
      "Sun ",
      "Bang ",
      "Jian ",
      "Huan ",
      "Dao ",
      "[?] ",
      "Wan ",
      "Qin ",
      "Peng ",
      "She ",
      "Lie ",
      "Min ",
      "Men ",
      "Fu ",
      "Bai ",
      "Ju ",
      "Dao ",
      "Wo ",
      "Ai ",
      "Juan ",
      "Yue ",
      "Zong ",
      "Chen ",
      "Chui ",
      "Jie ",
      "Tu ",
      "Ben ",
      "Na ",
      "Nian ",
      "Nuo ",
      "Zu ",
      "Wo ",
      "Xi ",
      "Xian ",
      "Cheng ",
      "Dian ",
      "Sao ",
      "Lun ",
      "Qing ",
      "Gang ",
      "Duo ",
      "Shou ",
      "Diao ",
      "Pou ",
      "Di ",
      "Zhang ",
      "Gun ",
      "Ji ",
      "Tao ",
      "Qia ",
      "Qi ",
      "Pai ",
      "Shu ",
      "Qian ",
      "Ling ",
      "Yi ",
      "Ya ",
      "Jue ",
      "Zheng ",
      "Liang ",
      "Gua ",
      "Yi ",
      "Huo ",
      "Shan ",
      "Zheng ",
      "Lue ",
      "Cai ",
      "Tan ",
      "Che ",
      "Bing ",
      "Jie ",
      "Ti ",
      "Kong ",
      "Tui ",
      "Yan ",
      "Cuo ",
      "Zou ",
      "Ju ",
      "Tian ",
      "Qian ",
      "Ken ",
      "Bai ",
      "Shou ",
      "Jie ",
      "Lu ",
      "Guo ",
      "Haba ",
      "[?] ",
      "Zhi ",
      "Dan ",
      "Mang ",
      "Xian ",
      "Sao ",
      "Guan ",
      "Peng ",
      "Yuan ",
      "Nuo ",
      "Jian ",
      "Zhen ",
      "Jiu ",
      "Jian ",
      "Yu ",
      "Yan ",
      "Kui ",
      "Nan ",
      "Hong ",
      "Rou ",
      "Pi ",
      "Wei ",
      "Sai ",
      "Zou ",
      "Xuan ",
      "Miao ",
      "Ti ",
      "Nie ",
      "Cha ",
      "Shi ",
      "Zong ",
      "Zhen ",
      "Yi ",
      "Shun ",
      "Heng ",
      "Bian ",
      "Yang ",
      "Huan ",
      "Yan ",
      "Zuan ",
      "An ",
      "Xu ",
      "Ya ",
      "Wo ",
      "Ke ",
      "Chuai ",
      "Ji ",
      "Ti ",
      "La ",
      "La ",
      "Cheng ",
      "Kai ",
      "Jiu ",
      "Jiu ",
      "Tu ",
      "Jie ",
      "Hui ",
      "Geng ",
      "Chong ",
      "Shuo ",
      "She ",
      "Xie ",
      "Yuan ",
      "Qian ",
      "Ye ",
      "Cha ",
      "Zha ",
      "Bei ",
      "Yao ",
      "[?] ",
      "[?] ",
      "Lan ",
      "Wen ",
      "Qin "
    ];
  }
});

// node_modules/unidecode/data/x64.js
var require_x64 = __commonJS({
  "node_modules/unidecode/data/x64.js"(exports2, module2) {
    module2.exports = [
      "Chan ",
      "Ge ",
      "Lou ",
      "Zong ",
      "Geng ",
      "Jiao ",
      "Gou ",
      "Qin ",
      "Yong ",
      "Que ",
      "Chou ",
      "Chi ",
      "Zhan ",
      "Sun ",
      "Sun ",
      "Bo ",
      "Chu ",
      "Rong ",
      "Beng ",
      "Cuo ",
      "Sao ",
      "Ke ",
      "Yao ",
      "Dao ",
      "Zhi ",
      "Nu ",
      "Xie ",
      "Jian ",
      "Sou ",
      "Qiu ",
      "Gao ",
      "Xian ",
      "Shuo ",
      "Sang ",
      "Jin ",
      "Mie ",
      "E ",
      "Chui ",
      "Nuo ",
      "Shan ",
      "Ta ",
      "Jie ",
      "Tang ",
      "Pan ",
      "Ban ",
      "Da ",
      "Li ",
      "Tao ",
      "Hu ",
      "Zhi ",
      "Wa ",
      "Xia ",
      "Qian ",
      "Wen ",
      "Qiang ",
      "Tian ",
      "Zhen ",
      "E ",
      "Xi ",
      "Nuo ",
      "Quan ",
      "Cha ",
      "Zha ",
      "Ge ",
      "Wu ",
      "En ",
      "She ",
      "Kang ",
      "She ",
      "Shu ",
      "Bai ",
      "Yao ",
      "Bin ",
      "Sou ",
      "Tan ",
      "Sa ",
      "Chan ",
      "Suo ",
      "Liao ",
      "Chong ",
      "Chuang ",
      "Guo ",
      "Bing ",
      "Feng ",
      "Shuai ",
      "Di ",
      "Qi ",
      "Sou ",
      "Zhai ",
      "Lian ",
      "Tang ",
      "Chi ",
      "Guan ",
      "Lu ",
      "Luo ",
      "Lou ",
      "Zong ",
      "Gai ",
      "Hu ",
      "Zha ",
      "Chuang ",
      "Tang ",
      "Hua ",
      "Cui ",
      "Nai ",
      "Mo ",
      "Jiang ",
      "Gui ",
      "Ying ",
      "Zhi ",
      "Ao ",
      "Zhi ",
      "Nie ",
      "Man ",
      "Shan ",
      "Kou ",
      "Shu ",
      "Suo ",
      "Tuan ",
      "Jiao ",
      "Mo ",
      "Mo ",
      "Zhe ",
      "Xian ",
      "Keng ",
      "Piao ",
      "Jiang ",
      "Yin ",
      "Gou ",
      "Qian ",
      "Lue ",
      "Ji ",
      "Ying ",
      "Jue ",
      "Pie ",
      "Pie ",
      "Lao ",
      "Dun ",
      "Xian ",
      "Ruan ",
      "Kui ",
      "Zan ",
      "Yi ",
      "Xun ",
      "Cheng ",
      "Cheng ",
      "Sa ",
      "Nao ",
      "Heng ",
      "Si ",
      "Qian ",
      "Huang ",
      "Da ",
      "Zun ",
      "Nian ",
      "Lin ",
      "Zheng ",
      "Hui ",
      "Zhuang ",
      "Jiao ",
      "Ji ",
      "Cao ",
      "Dan ",
      "Dan ",
      "Che ",
      "Bo ",
      "Che ",
      "Jue ",
      "Xiao ",
      "Liao ",
      "Ben ",
      "Fu ",
      "Qiao ",
      "Bo ",
      "Cuo ",
      "Zhuo ",
      "Zhuan ",
      "Tuo ",
      "Pu ",
      "Qin ",
      "Dun ",
      "Nian ",
      "[?] ",
      "Xie ",
      "Lu ",
      "Jiao ",
      "Cuan ",
      "Ta ",
      "Han ",
      "Qiao ",
      "Zhua ",
      "Jian ",
      "Gan ",
      "Yong ",
      "Lei ",
      "Kuo ",
      "Lu ",
      "Shan ",
      "Zhuo ",
      "Ze ",
      "Pu ",
      "Chuo ",
      "Ji ",
      "Dang ",
      "Suo ",
      "Cao ",
      "Qing ",
      "Jing ",
      "Huan ",
      "Jie ",
      "Qin ",
      "Kuai ",
      "Dan ",
      "Xi ",
      "Ge ",
      "Pi ",
      "Bo ",
      "Ao ",
      "Ju ",
      "Ye ",
      "[?] ",
      "Mang ",
      "Sou ",
      "Mi ",
      "Ji ",
      "Tai ",
      "Zhuo ",
      "Dao ",
      "Xing ",
      "Lan ",
      "Ca ",
      "Ju ",
      "Ye ",
      "Ru ",
      "Ye ",
      "Ye ",
      "Ni ",
      "Hu ",
      "Ji ",
      "Bin ",
      "Ning ",
      "Ge ",
      "Zhi ",
      "Jie ",
      "Kuo ",
      "Mo ",
      "Jian ",
      "Xie ",
      "Lie ",
      "Tan ",
      "Bai ",
      "Sou ",
      "Lu ",
      "Lue ",
      "Rao ",
      "Zhi "
    ];
  }
});

// node_modules/unidecode/data/x65.js
var require_x65 = __commonJS({
  "node_modules/unidecode/data/x65.js"(exports2, module2) {
    module2.exports = [
      "Pan ",
      "Yang ",
      "Lei ",
      "Sa ",
      "Shu ",
      "Zan ",
      "Nian ",
      "Xian ",
      "Jun ",
      "Huo ",
      "Li ",
      "La ",
      "Han ",
      "Ying ",
      "Lu ",
      "Long ",
      "Qian ",
      "Qian ",
      "Zan ",
      "Qian ",
      "Lan ",
      "San ",
      "Ying ",
      "Mei ",
      "Rang ",
      "Chan ",
      "[?] ",
      "Cuan ",
      "Xi ",
      "She ",
      "Luo ",
      "Jun ",
      "Mi ",
      "Li ",
      "Zan ",
      "Luan ",
      "Tan ",
      "Zuan ",
      "Li ",
      "Dian ",
      "Wa ",
      "Dang ",
      "Jiao ",
      "Jue ",
      "Lan ",
      "Li ",
      "Nang ",
      "Zhi ",
      "Gui ",
      "Gui ",
      "Qi ",
      "Xin ",
      "Pu ",
      "Sui ",
      "Shou ",
      "Kao ",
      "You ",
      "Gai ",
      "Yi ",
      "Gong ",
      "Gan ",
      "Ban ",
      "Fang ",
      "Zheng ",
      "Bo ",
      "Dian ",
      "Kou ",
      "Min ",
      "Wu ",
      "Gu ",
      "He ",
      "Ce ",
      "Xiao ",
      "Mi ",
      "Chu ",
      "Ge ",
      "Di ",
      "Xu ",
      "Jiao ",
      "Min ",
      "Chen ",
      "Jiu ",
      "Zhen ",
      "Duo ",
      "Yu ",
      "Chi ",
      "Ao ",
      "Bai ",
      "Xu ",
      "Jiao ",
      "Duo ",
      "Lian ",
      "Nie ",
      "Bi ",
      "Chang ",
      "Dian ",
      "Duo ",
      "Yi ",
      "Gan ",
      "San ",
      "Ke ",
      "Yan ",
      "Dun ",
      "Qi ",
      "Dou ",
      "Xiao ",
      "Duo ",
      "Jiao ",
      "Jing ",
      "Yang ",
      "Xia ",
      "Min ",
      "Shu ",
      "Ai ",
      "Qiao ",
      "Ai ",
      "Zheng ",
      "Di ",
      "Zhen ",
      "Fu ",
      "Shu ",
      "Liao ",
      "Qu ",
      "Xiong ",
      "Xi ",
      "Jiao ",
      "Sen ",
      "Jiao ",
      "Zhuo ",
      "Yi ",
      "Lian ",
      "Bi ",
      "Li ",
      "Xiao ",
      "Xiao ",
      "Wen ",
      "Xue ",
      "Qi ",
      "Qi ",
      "Zhai ",
      "Bin ",
      "Jue ",
      "Zhai ",
      "[?] ",
      "Fei ",
      "Ban ",
      "Ban ",
      "Lan ",
      "Yu ",
      "Lan ",
      "Wei ",
      "Dou ",
      "Sheng ",
      "Liao ",
      "Jia ",
      "Hu ",
      "Xie ",
      "Jia ",
      "Yu ",
      "Zhen ",
      "Jiao ",
      "Wo ",
      "Tou ",
      "Chu ",
      "Jin ",
      "Chi ",
      "Yin ",
      "Fu ",
      "Qiang ",
      "Zhan ",
      "Qu ",
      "Zhuo ",
      "Zhan ",
      "Duan ",
      "Zhuo ",
      "Si ",
      "Xin ",
      "Zhuo ",
      "Zhuo ",
      "Qin ",
      "Lin ",
      "Zhuo ",
      "Chu ",
      "Duan ",
      "Zhu ",
      "Fang ",
      "Xie ",
      "Hang ",
      "Yu ",
      "Shi ",
      "Pei ",
      "You ",
      "Mye ",
      "Pang ",
      "Qi ",
      "Zhan ",
      "Mao ",
      "Lu ",
      "Pei ",
      "Pi ",
      "Liu ",
      "Fu ",
      "Fang ",
      "Xuan ",
      "Jing ",
      "Jing ",
      "Ni ",
      "Zu ",
      "Zhao ",
      "Yi ",
      "Liu ",
      "Shao ",
      "Jian ",
      "Es ",
      "Yi ",
      "Qi ",
      "Zhi ",
      "Fan ",
      "Piao ",
      "Fan ",
      "Zhan ",
      "Guai ",
      "Sui ",
      "Yu ",
      "Wu ",
      "Ji ",
      "Ji ",
      "Ji ",
      "Huo ",
      "Ri ",
      "Dan ",
      "Jiu ",
      "Zhi ",
      "Zao ",
      "Xie ",
      "Tiao ",
      "Xun ",
      "Xu ",
      "Xu ",
      "Xu ",
      "Gan ",
      "Han ",
      "Tai ",
      "Di ",
      "Xu ",
      "Chan ",
      "Shi ",
      "Kuang ",
      "Yang ",
      "Shi ",
      "Wang ",
      "Min ",
      "Min ",
      "Tun ",
      "Chun ",
      "Wu "
    ];
  }
});

// node_modules/unidecode/data/x66.js
var require_x66 = __commonJS({
  "node_modules/unidecode/data/x66.js"(exports2, module2) {
    module2.exports = [
      "Yun ",
      "Bei ",
      "Ang ",
      "Ze ",
      "Ban ",
      "Jie ",
      "Kun ",
      "Sheng ",
      "Hu ",
      "Fang ",
      "Hao ",
      "Gui ",
      "Chang ",
      "Xuan ",
      "Ming ",
      "Hun ",
      "Fen ",
      "Qin ",
      "Hu ",
      "Yi ",
      "Xi ",
      "Xin ",
      "Yan ",
      "Ze ",
      "Fang ",
      "Tan ",
      "Shen ",
      "Ju ",
      "Yang ",
      "Zan ",
      "Bing ",
      "Xing ",
      "Ying ",
      "Xuan ",
      "Pei ",
      "Zhen ",
      "Ling ",
      "Chun ",
      "Hao ",
      "Mei ",
      "Zuo ",
      "Mo ",
      "Bian ",
      "Xu ",
      "Hun ",
      "Zhao ",
      "Zong ",
      "Shi ",
      "Shi ",
      "Yu ",
      "Fei ",
      "Die ",
      "Mao ",
      "Ni ",
      "Chang ",
      "Wen ",
      "Dong ",
      "Ai ",
      "Bing ",
      "Ang ",
      "Zhou ",
      "Long ",
      "Xian ",
      "Kuang ",
      "Tiao ",
      "Chao ",
      "Shi ",
      "Huang ",
      "Huang ",
      "Xuan ",
      "Kui ",
      "Xu ",
      "Jiao ",
      "Jin ",
      "Zhi ",
      "Jin ",
      "Shang ",
      "Tong ",
      "Hong ",
      "Yan ",
      "Gai ",
      "Xiang ",
      "Shai ",
      "Xiao ",
      "Ye ",
      "Yun ",
      "Hui ",
      "Han ",
      "Han ",
      "Jun ",
      "Wan ",
      "Xian ",
      "Kun ",
      "Zhou ",
      "Xi ",
      "Cheng ",
      "Sheng ",
      "Bu ",
      "Zhe ",
      "Zhe ",
      "Wu ",
      "Han ",
      "Hui ",
      "Hao ",
      "Chen ",
      "Wan ",
      "Tian ",
      "Zhuo ",
      "Zui ",
      "Zhou ",
      "Pu ",
      "Jing ",
      "Xi ",
      "Shan ",
      "Yi ",
      "Xi ",
      "Qing ",
      "Qi ",
      "Jing ",
      "Gui ",
      "Zhen ",
      "Yi ",
      "Zhi ",
      "An ",
      "Wan ",
      "Lin ",
      "Liang ",
      "Chang ",
      "Wang ",
      "Xiao ",
      "Zan ",
      "Hi ",
      "Xuan ",
      "Xuan ",
      "Yi ",
      "Xia ",
      "Yun ",
      "Hui ",
      "Fu ",
      "Min ",
      "Kui ",
      "He ",
      "Ying ",
      "Du ",
      "Wei ",
      "Shu ",
      "Qing ",
      "Mao ",
      "Nan ",
      "Jian ",
      "Nuan ",
      "An ",
      "Yang ",
      "Chun ",
      "Yao ",
      "Suo ",
      "Jin ",
      "Ming ",
      "Jiao ",
      "Kai ",
      "Gao ",
      "Weng ",
      "Chang ",
      "Qi ",
      "Hao ",
      "Yan ",
      "Li ",
      "Ai ",
      "Ji ",
      "Gui ",
      "Men ",
      "Zan ",
      "Xie ",
      "Hao ",
      "Mu ",
      "Mo ",
      "Cong ",
      "Ni ",
      "Zhang ",
      "Hui ",
      "Bao ",
      "Han ",
      "Xuan ",
      "Chuan ",
      "Liao ",
      "Xian ",
      "Dan ",
      "Jing ",
      "Pie ",
      "Lin ",
      "Tun ",
      "Xi ",
      "Yi ",
      "Ji ",
      "Huang ",
      "Tai ",
      "Ye ",
      "Ye ",
      "Li ",
      "Tan ",
      "Tong ",
      "Xiao ",
      "Fei ",
      "Qin ",
      "Zhao ",
      "Hao ",
      "Yi ",
      "Xiang ",
      "Xing ",
      "Sen ",
      "Jiao ",
      "Bao ",
      "Jing ",
      "Yian ",
      "Ai ",
      "Ye ",
      "Ru ",
      "Shu ",
      "Meng ",
      "Xun ",
      "Yao ",
      "Pu ",
      "Li ",
      "Chen ",
      "Kuang ",
      "Die ",
      "[?] ",
      "Yan ",
      "Huo ",
      "Lu ",
      "Xi ",
      "Rong ",
      "Long ",
      "Nang ",
      "Luo ",
      "Luan ",
      "Shai ",
      "Tang ",
      "Yan ",
      "Chu ",
      "Yue ",
      "Yue ",
      "Qu ",
      "Yi ",
      "Geng ",
      "Ye ",
      "Hu ",
      "He ",
      "Shu ",
      "Cao ",
      "Cao ",
      "Noboru ",
      "Man ",
      "Ceng ",
      "Ceng ",
      "Ti "
    ];
  }
});

// node_modules/unidecode/data/x67.js
var require_x67 = __commonJS({
  "node_modules/unidecode/data/x67.js"(exports2, module2) {
    module2.exports = [
      "Zui ",
      "Can ",
      "Xu ",
      "Hui ",
      "Yin ",
      "Qie ",
      "Fen ",
      "Pi ",
      "Yue ",
      "You ",
      "Ruan ",
      "Peng ",
      "Ban ",
      "Fu ",
      "Ling ",
      "Fei ",
      "Qu ",
      "[?] ",
      "Nu ",
      "Tiao ",
      "Shuo ",
      "Zhen ",
      "Lang ",
      "Lang ",
      "Juan ",
      "Ming ",
      "Huang ",
      "Wang ",
      "Tun ",
      "Zhao ",
      "Ji ",
      "Qi ",
      "Ying ",
      "Zong ",
      "Wang ",
      "Tong ",
      "Lang ",
      "[?] ",
      "Meng ",
      "Long ",
      "Mu ",
      "Deng ",
      "Wei ",
      "Mo ",
      "Ben ",
      "Zha ",
      "Zhu ",
      "Zhu ",
      "[?] ",
      "Zhu ",
      "Ren ",
      "Ba ",
      "Po ",
      "Duo ",
      "Duo ",
      "Dao ",
      "Li ",
      "Qiu ",
      "Ji ",
      "Jiu ",
      "Bi ",
      "Xiu ",
      "Ting ",
      "Ci ",
      "Sha ",
      "Eburi ",
      "Za ",
      "Quan ",
      "Qian ",
      "Yu ",
      "Gan ",
      "Wu ",
      "Cha ",
      "Shan ",
      "Xun ",
      "Fan ",
      "Wu ",
      "Zi ",
      "Li ",
      "Xing ",
      "Cai ",
      "Cun ",
      "Ren ",
      "Shao ",
      "Tuo ",
      "Di ",
      "Zhang ",
      "Mang ",
      "Chi ",
      "Yi ",
      "Gu ",
      "Gong ",
      "Du ",
      "Yi ",
      "Qi ",
      "Shu ",
      "Gang ",
      "Tiao ",
      "Moku ",
      "Soma ",
      "Tochi ",
      "Lai ",
      "Sugi ",
      "Mang ",
      "Yang ",
      "Ma ",
      "Miao ",
      "Si ",
      "Yuan ",
      "Hang ",
      "Fei ",
      "Bei ",
      "Jie ",
      "Dong ",
      "Gao ",
      "Yao ",
      "Xian ",
      "Chu ",
      "Qun ",
      "Pa ",
      "Shu ",
      "Hua ",
      "Xin ",
      "Chou ",
      "Zhu ",
      "Chou ",
      "Song ",
      "Ban ",
      "Song ",
      "Ji ",
      "Yue ",
      "Jin ",
      "Gou ",
      "Ji ",
      "Mao ",
      "Pi ",
      "Bi ",
      "Wang ",
      "Ang ",
      "Fang ",
      "Fen ",
      "Yi ",
      "Fu ",
      "Nan ",
      "Xi ",
      "Hu ",
      "Ya ",
      "Dou ",
      "Xun ",
      "Zhen ",
      "Yao ",
      "Lin ",
      "Rui ",
      "E ",
      "Mei ",
      "Zhao ",
      "Guo ",
      "Zhi ",
      "Cong ",
      "Yun ",
      "Waku ",
      "Dou ",
      "Shu ",
      "Zao ",
      "[?] ",
      "Li ",
      "Haze ",
      "Jian ",
      "Cheng ",
      "Matsu ",
      "Qiang ",
      "Feng ",
      "Nan ",
      "Xiao ",
      "Xian ",
      "Ku ",
      "Ping ",
      "Yi ",
      "Xi ",
      "Zhi ",
      "Guai ",
      "Xiao ",
      "Jia ",
      "Jia ",
      "Gou ",
      "Fu ",
      "Mo ",
      "Yi ",
      "Ye ",
      "Ye ",
      "Shi ",
      "Nie ",
      "Bi ",
      "Duo ",
      "Yi ",
      "Ling ",
      "Bing ",
      "Ni ",
      "La ",
      "He ",
      "Pan ",
      "Fan ",
      "Zhong ",
      "Dai ",
      "Ci ",
      "Yang ",
      "Fu ",
      "Bo ",
      "Mou ",
      "Gan ",
      "Qi ",
      "Ran ",
      "Rou ",
      "Mao ",
      "Zhao ",
      "Song ",
      "Zhe ",
      "Xia ",
      "You ",
      "Shen ",
      "Ju ",
      "Tuo ",
      "Zuo ",
      "Nan ",
      "Ning ",
      "Yong ",
      "Di ",
      "Zhi ",
      "Zha ",
      "Cha ",
      "Dan ",
      "Gu ",
      "Pu ",
      "Jiu ",
      "Ao ",
      "Fu ",
      "Jian ",
      "Bo ",
      "Duo ",
      "Ke ",
      "Nai ",
      "Zhu ",
      "Bi ",
      "Liu ",
      "Chai ",
      "Zha ",
      "Si ",
      "Zhu ",
      "Pei ",
      "Shi ",
      "Guai ",
      "Cha ",
      "Yao ",
      "Jue ",
      "Jiu ",
      "Shi "
    ];
  }
});

// node_modules/unidecode/data/x68.js
var require_x68 = __commonJS({
  "node_modules/unidecode/data/x68.js"(exports2, module2) {
    module2.exports = [
      "Zhi ",
      "Liu ",
      "Mei ",
      "Hoy ",
      "Rong ",
      "Zha ",
      "[?] ",
      "Biao ",
      "Zhan ",
      "Jie ",
      "Long ",
      "Dong ",
      "Lu ",
      "Sayng ",
      "Li ",
      "Lan ",
      "Yong ",
      "Shu ",
      "Xun ",
      "Shuan ",
      "Qi ",
      "Zhen ",
      "Qi ",
      "Li ",
      "Yi ",
      "Xiang ",
      "Zhen ",
      "Li ",
      "Su ",
      "Gua ",
      "Kan ",
      "Bing ",
      "Ren ",
      "Xiao ",
      "Bo ",
      "Ren ",
      "Bing ",
      "Zi ",
      "Chou ",
      "Yi ",
      "Jie ",
      "Xu ",
      "Zhu ",
      "Jian ",
      "Zui ",
      "Er ",
      "Er ",
      "You ",
      "Fa ",
      "Gong ",
      "Kao ",
      "Lao ",
      "Zhan ",
      "Li ",
      "Yin ",
      "Yang ",
      "He ",
      "Gen ",
      "Zhi ",
      "Chi ",
      "Ge ",
      "Zai ",
      "Luan ",
      "Fu ",
      "Jie ",
      "Hang ",
      "Gui ",
      "Tao ",
      "Guang ",
      "Wei ",
      "Kuang ",
      "Ru ",
      "An ",
      "An ",
      "Juan ",
      "Yi ",
      "Zhuo ",
      "Ku ",
      "Zhi ",
      "Qiong ",
      "Tong ",
      "Sang ",
      "Sang ",
      "Huan ",
      "Jie ",
      "Jiu ",
      "Xue ",
      "Duo ",
      "Zhui ",
      "Yu ",
      "Zan ",
      "Kasei ",
      "Ying ",
      "Masu ",
      "[?] ",
      "Zhan ",
      "Ya ",
      "Nao ",
      "Zhen ",
      "Dang ",
      "Qi ",
      "Qiao ",
      "Hua ",
      "Kuai ",
      "Jiang ",
      "Zhuang ",
      "Xun ",
      "Suo ",
      "Sha ",
      "Zhen ",
      "Bei ",
      "Ting ",
      "Gua ",
      "Jing ",
      "Bo ",
      "Ben ",
      "Fu ",
      "Rui ",
      "Tong ",
      "Jue ",
      "Xi ",
      "Lang ",
      "Liu ",
      "Feng ",
      "Qi ",
      "Wen ",
      "Jun ",
      "Gan ",
      "Cu ",
      "Liang ",
      "Qiu ",
      "Ting ",
      "You ",
      "Mei ",
      "Bang ",
      "Long ",
      "Peng ",
      "Zhuang ",
      "Di ",
      "Xuan ",
      "Tu ",
      "Zao ",
      "Ao ",
      "Gu ",
      "Bi ",
      "Di ",
      "Han ",
      "Zi ",
      "Zhi ",
      "Ren ",
      "Bei ",
      "Geng ",
      "Jian ",
      "Huan ",
      "Wan ",
      "Nuo ",
      "Jia ",
      "Tiao ",
      "Ji ",
      "Xiao ",
      "Lu ",
      "Huan ",
      "Shao ",
      "Cen ",
      "Fen ",
      "Song ",
      "Meng ",
      "Wu ",
      "Li ",
      "Li ",
      "Dou ",
      "Cen ",
      "Ying ",
      "Suo ",
      "Ju ",
      "Ti ",
      "Jie ",
      "Kun ",
      "Zhuo ",
      "Shu ",
      "Chan ",
      "Fan ",
      "Wei ",
      "Jing ",
      "Li ",
      "Bing ",
      "Fumoto ",
      "Shikimi ",
      "Tao ",
      "Zhi ",
      "Lai ",
      "Lian ",
      "Jian ",
      "Zhuo ",
      "Ling ",
      "Li ",
      "Qi ",
      "Bing ",
      "Zhun ",
      "Cong ",
      "Qian ",
      "Mian ",
      "Qi ",
      "Qi ",
      "Cai ",
      "Gun ",
      "Chan ",
      "Te ",
      "Fei ",
      "Pai ",
      "Bang ",
      "Pou ",
      "Hun ",
      "Zong ",
      "Cheng ",
      "Zao ",
      "Ji ",
      "Li ",
      "Peng ",
      "Yu ",
      "Yu ",
      "Gu ",
      "Hun ",
      "Dong ",
      "Tang ",
      "Gang ",
      "Wang ",
      "Di ",
      "Xi ",
      "Fan ",
      "Cheng ",
      "Zhan ",
      "Qi ",
      "Yuan ",
      "Yan ",
      "Yu ",
      "Quan ",
      "Yi ",
      "Sen ",
      "Ren ",
      "Chui ",
      "Leng ",
      "Qi ",
      "Zhuo ",
      "Fu ",
      "Ke ",
      "Lai ",
      "Zou ",
      "Zou ",
      "Zhuo ",
      "Guan ",
      "Fen ",
      "Fen ",
      "Chen ",
      "Qiong ",
      "Nie "
    ];
  }
});

// node_modules/unidecode/data/x69.js
var require_x69 = __commonJS({
  "node_modules/unidecode/data/x69.js"(exports2, module2) {
    module2.exports = [
      "Wan ",
      "Guo ",
      "Lu ",
      "Hao ",
      "Jie ",
      "Yi ",
      "Chou ",
      "Ju ",
      "Ju ",
      "Cheng ",
      "Zuo ",
      "Liang ",
      "Qiang ",
      "Zhi ",
      "Zhui ",
      "Ya ",
      "Ju ",
      "Bei ",
      "Jiao ",
      "Zhuo ",
      "Zi ",
      "Bin ",
      "Peng ",
      "Ding ",
      "Chu ",
      "Chang ",
      "Kunugi ",
      "Momiji ",
      "Jian ",
      "Gui ",
      "Xi ",
      "Du ",
      "Qian ",
      "Kunugi ",
      "Soko ",
      "Shide ",
      "Luo ",
      "Zhi ",
      "Ken ",
      "Myeng ",
      "Tafu ",
      "[?] ",
      "Peng ",
      "Zhan ",
      "[?] ",
      "Tuo ",
      "Sen ",
      "Duo ",
      "Ye ",
      "Fou ",
      "Wei ",
      "Wei ",
      "Duan ",
      "Jia ",
      "Zong ",
      "Jian ",
      "Yi ",
      "Shen ",
      "Xi ",
      "Yan ",
      "Yan ",
      "Chuan ",
      "Zhan ",
      "Chun ",
      "Yu ",
      "He ",
      "Zha ",
      "Wo ",
      "Pian ",
      "Bi ",
      "Yao ",
      "Huo ",
      "Xu ",
      "Ruo ",
      "Yang ",
      "La ",
      "Yan ",
      "Ben ",
      "Hun ",
      "Kui ",
      "Jie ",
      "Kui ",
      "Si ",
      "Feng ",
      "Xie ",
      "Tuo ",
      "Zhi ",
      "Jian ",
      "Mu ",
      "Mao ",
      "Chu ",
      "Hu ",
      "Hu ",
      "Lian ",
      "Leng ",
      "Ting ",
      "Nan ",
      "Yu ",
      "You ",
      "Mei ",
      "Song ",
      "Xuan ",
      "Xuan ",
      "Ying ",
      "Zhen ",
      "Pian ",
      "Ye ",
      "Ji ",
      "Jie ",
      "Ye ",
      "Chu ",
      "Shun ",
      "Yu ",
      "Cou ",
      "Wei ",
      "Mei ",
      "Di ",
      "Ji ",
      "Jie ",
      "Kai ",
      "Qiu ",
      "Ying ",
      "Rou ",
      "Heng ",
      "Lou ",
      "Le ",
      "Hazou ",
      "Katsura ",
      "Pin ",
      "Muro ",
      "Gai ",
      "Tan ",
      "Lan ",
      "Yun ",
      "Yu ",
      "Chen ",
      "Lu ",
      "Ju ",
      "Sakaki ",
      "[?] ",
      "Pi ",
      "Xie ",
      "Jia ",
      "Yi ",
      "Zhan ",
      "Fu ",
      "Nai ",
      "Mi ",
      "Lang ",
      "Rong ",
      "Gu ",
      "Jian ",
      "Ju ",
      "Ta ",
      "Yao ",
      "Zhen ",
      "Bang ",
      "Sha ",
      "Yuan ",
      "Zi ",
      "Ming ",
      "Su ",
      "Jia ",
      "Yao ",
      "Jie ",
      "Huang ",
      "Gan ",
      "Fei ",
      "Zha ",
      "Qian ",
      "Ma ",
      "Sun ",
      "Yuan ",
      "Xie ",
      "Rong ",
      "Shi ",
      "Zhi ",
      "Cui ",
      "Yun ",
      "Ting ",
      "Liu ",
      "Rong ",
      "Tang ",
      "Que ",
      "Zhai ",
      "Si ",
      "Sheng ",
      "Ta ",
      "Ke ",
      "Xi ",
      "Gu ",
      "Qi ",
      "Kao ",
      "Gao ",
      "Sun ",
      "Pan ",
      "Tao ",
      "Ge ",
      "Xun ",
      "Dian ",
      "Nou ",
      "Ji ",
      "Shuo ",
      "Gou ",
      "Chui ",
      "Qiang ",
      "Cha ",
      "Qian ",
      "Huai ",
      "Mei ",
      "Xu ",
      "Gang ",
      "Gao ",
      "Zhuo ",
      "Tuo ",
      "Hashi ",
      "Yang ",
      "Dian ",
      "Jia ",
      "Jian ",
      "Zui ",
      "Kashi ",
      "Ori ",
      "Bin ",
      "Zhu ",
      "[?] ",
      "Xi ",
      "Qi ",
      "Lian ",
      "Hui ",
      "Yong ",
      "Qian ",
      "Guo ",
      "Gai ",
      "Gai ",
      "Tuan ",
      "Hua ",
      "Cu ",
      "Sen ",
      "Cui ",
      "Beng ",
      "You ",
      "Hu ",
      "Jiang ",
      "Hu ",
      "Huan ",
      "Kui ",
      "Yi ",
      "Nie ",
      "Gao ",
      "Kang ",
      "Gui ",
      "Gui ",
      "Cao ",
      "Man ",
      "Jin "
    ];
  }
});

// node_modules/unidecode/data/x6a.js
var require_x6a = __commonJS({
  "node_modules/unidecode/data/x6a.js"(exports2, module2) {
    module2.exports = [
      "Di ",
      "Zhuang ",
      "Le ",
      "Lang ",
      "Chen ",
      "Cong ",
      "Li ",
      "Xiu ",
      "Qing ",
      "Shuang ",
      "Fan ",
      "Tong ",
      "Guan ",
      "Ji ",
      "Suo ",
      "Lei ",
      "Lu ",
      "Liang ",
      "Mi ",
      "Lou ",
      "Chao ",
      "Su ",
      "Ke ",
      "Shu ",
      "Tang ",
      "Biao ",
      "Lu ",
      "Jiu ",
      "Shu ",
      "Zha ",
      "Shu ",
      "Zhang ",
      "Men ",
      "Mo ",
      "Niao ",
      "Yang ",
      "Tiao ",
      "Peng ",
      "Zhu ",
      "Sha ",
      "Xi ",
      "Quan ",
      "Heng ",
      "Jian ",
      "Cong ",
      "[?] ",
      "Hokuso ",
      "Qiang ",
      "Tara ",
      "Ying ",
      "Er ",
      "Xin ",
      "Zhi ",
      "Qiao ",
      "Zui ",
      "Cong ",
      "Pu ",
      "Shu ",
      "Hua ",
      "Kui ",
      "Zhen ",
      "Zun ",
      "Yue ",
      "Zhan ",
      "Xi ",
      "Xun ",
      "Dian ",
      "Fa ",
      "Gan ",
      "Mo ",
      "Wu ",
      "Qiao ",
      "Nao ",
      "Lin ",
      "Liu ",
      "Qiao ",
      "Xian ",
      "Run ",
      "Fan ",
      "Zhan ",
      "Tuo ",
      "Lao ",
      "Yun ",
      "Shun ",
      "Tui ",
      "Cheng ",
      "Tang ",
      "Meng ",
      "Ju ",
      "Cheng ",
      "Su ",
      "Jue ",
      "Jue ",
      "Tan ",
      "Hui ",
      "Ji ",
      "Nuo ",
      "Xiang ",
      "Tuo ",
      "Ning ",
      "Rui ",
      "Zhu ",
      "Chuang ",
      "Zeng ",
      "Fen ",
      "Qiong ",
      "Ran ",
      "Heng ",
      "Cen ",
      "Gu ",
      "Liu ",
      "Lao ",
      "Gao ",
      "Chu ",
      "Zusa ",
      "Nude ",
      "Ca ",
      "San ",
      "Ji ",
      "Dou ",
      "Shou ",
      "Lu ",
      "[?] ",
      "[?] ",
      "Yuan ",
      "Ta ",
      "Shu ",
      "Jiang ",
      "Tan ",
      "Lin ",
      "Nong ",
      "Yin ",
      "Xi ",
      "Sui ",
      "Shan ",
      "Zui ",
      "Xuan ",
      "Cheng ",
      "Gan ",
      "Ju ",
      "Zui ",
      "Yi ",
      "Qin ",
      "Pu ",
      "Yan ",
      "Lei ",
      "Feng ",
      "Hui ",
      "Dang ",
      "Ji ",
      "Sui ",
      "Bo ",
      "Bi ",
      "Ding ",
      "Chu ",
      "Zhua ",
      "Kuai ",
      "Ji ",
      "Jie ",
      "Jia ",
      "Qing ",
      "Zhe ",
      "Jian ",
      "Qiang ",
      "Dao ",
      "Yi ",
      "Biao ",
      "Song ",
      "She ",
      "Lin ",
      "Kunugi ",
      "Cha ",
      "Meng ",
      "Yin ",
      "Tao ",
      "Tai ",
      "Mian ",
      "Qi ",
      "Toan ",
      "Bin ",
      "Huo ",
      "Ji ",
      "Qian ",
      "Mi ",
      "Ning ",
      "Yi ",
      "Gao ",
      "Jian ",
      "Yin ",
      "Er ",
      "Qing ",
      "Yan ",
      "Qi ",
      "Mi ",
      "Zhao ",
      "Gui ",
      "Chun ",
      "Ji ",
      "Kui ",
      "Po ",
      "Deng ",
      "Chu ",
      "[?] ",
      "Mian ",
      "You ",
      "Zhi ",
      "Guang ",
      "Qian ",
      "Lei ",
      "Lei ",
      "Sa ",
      "Lu ",
      "Li ",
      "Cuan ",
      "Lu ",
      "Mie ",
      "Hui ",
      "Ou ",
      "Lu ",
      "Jie ",
      "Gao ",
      "Du ",
      "Yuan ",
      "Li ",
      "Fei ",
      "Zhuo ",
      "Sou ",
      "Lian ",
      "Tamo ",
      "Chu ",
      "[?] ",
      "Zhu ",
      "Lu ",
      "Yan ",
      "Li ",
      "Zhu ",
      "Chen ",
      "Jie ",
      "E ",
      "Su ",
      "Huai ",
      "Nie ",
      "Yu ",
      "Long ",
      "Lai ",
      "[?] ",
      "Xian ",
      "Kwi ",
      "Ju ",
      "Xiao ",
      "Ling ",
      "Ying ",
      "Jian ",
      "Yin ",
      "You ",
      "Ying "
    ];
  }
});

// node_modules/unidecode/data/x6b.js
var require_x6b = __commonJS({
  "node_modules/unidecode/data/x6b.js"(exports2, module2) {
    module2.exports = [
      "Xiang ",
      "Nong ",
      "Bo ",
      "Chan ",
      "Lan ",
      "Ju ",
      "Shuang ",
      "She ",
      "Wei ",
      "Cong ",
      "Quan ",
      "Qu ",
      "Cang ",
      "[?] ",
      "Yu ",
      "Luo ",
      "Li ",
      "Zan ",
      "Luan ",
      "Dang ",
      "Jue ",
      "Em ",
      "Lan ",
      "Lan ",
      "Zhu ",
      "Lei ",
      "Li ",
      "Ba ",
      "Nang ",
      "Yu ",
      "Ling ",
      "Tsuki ",
      "Qian ",
      "Ci ",
      "Huan ",
      "Xin ",
      "Yu ",
      "Yu ",
      "Qian ",
      "Ou ",
      "Xu ",
      "Chao ",
      "Chu ",
      "Chi ",
      "Kai ",
      "Yi ",
      "Jue ",
      "Xi ",
      "Xu ",
      "Xia ",
      "Yu ",
      "Kuai ",
      "Lang ",
      "Kuan ",
      "Shuo ",
      "Xi ",
      "Ai ",
      "Yi ",
      "Qi ",
      "Hu ",
      "Chi ",
      "Qin ",
      "Kuan ",
      "Kan ",
      "Kuan ",
      "Kan ",
      "Chuan ",
      "Sha ",
      "Gua ",
      "Yin ",
      "Xin ",
      "Xie ",
      "Yu ",
      "Qian ",
      "Xiao ",
      "Yi ",
      "Ge ",
      "Wu ",
      "Tan ",
      "Jin ",
      "Ou ",
      "Hu ",
      "Ti ",
      "Huan ",
      "Xu ",
      "Pen ",
      "Xi ",
      "Xiao ",
      "Xu ",
      "Xi ",
      "Sen ",
      "Lian ",
      "Chu ",
      "Yi ",
      "Kan ",
      "Yu ",
      "Chuo ",
      "Huan ",
      "Zhi ",
      "Zheng ",
      "Ci ",
      "Bu ",
      "Wu ",
      "Qi ",
      "Bu ",
      "Bu ",
      "Wai ",
      "Ju ",
      "Qian ",
      "Chi ",
      "Se ",
      "Chi ",
      "Se ",
      "Zhong ",
      "Sui ",
      "Sui ",
      "Li ",
      "Cuo ",
      "Yu ",
      "Li ",
      "Gui ",
      "Dai ",
      "Dai ",
      "Si ",
      "Jian ",
      "Zhe ",
      "Mo ",
      "Mo ",
      "Yao ",
      "Mo ",
      "Cu ",
      "Yang ",
      "Tian ",
      "Sheng ",
      "Dai ",
      "Shang ",
      "Xu ",
      "Xun ",
      "Shu ",
      "Can ",
      "Jue ",
      "Piao ",
      "Qia ",
      "Qiu ",
      "Su ",
      "Qing ",
      "Yun ",
      "Lian ",
      "Yi ",
      "Fou ",
      "Zhi ",
      "Ye ",
      "Can ",
      "Hun ",
      "Dan ",
      "Ji ",
      "Ye ",
      "Zhen ",
      "Yun ",
      "Wen ",
      "Chou ",
      "Bin ",
      "Ti ",
      "Jin ",
      "Shang ",
      "Yin ",
      "Diao ",
      "Cu ",
      "Hui ",
      "Cuan ",
      "Yi ",
      "Dan ",
      "Du ",
      "Jiang ",
      "Lian ",
      "Bin ",
      "Du ",
      "Tsukusu ",
      "Jian ",
      "Shu ",
      "Ou ",
      "Duan ",
      "Zhu ",
      "Yin ",
      "Qing ",
      "Yi ",
      "Sha ",
      "Que ",
      "Ke ",
      "Yao ",
      "Jun ",
      "Dian ",
      "Hui ",
      "Hui ",
      "Gu ",
      "Que ",
      "Ji ",
      "Yi ",
      "Ou ",
      "Hui ",
      "Duan ",
      "Yi ",
      "Xiao ",
      "Wu ",
      "Guan ",
      "Mu ",
      "Mei ",
      "Mei ",
      "Ai ",
      "Zuo ",
      "Du ",
      "Yu ",
      "Bi ",
      "Bi ",
      "Bi ",
      "Pi ",
      "Pi ",
      "Bi ",
      "Chan ",
      "Mao ",
      "[?] ",
      "[?] ",
      "Pu ",
      "Mushiru ",
      "Jia ",
      "Zhan ",
      "Sai ",
      "Mu ",
      "Tuo ",
      "Xun ",
      "Er ",
      "Rong ",
      "Xian ",
      "Ju ",
      "Mu ",
      "Hao ",
      "Qiu ",
      "Dou ",
      "Mushiru ",
      "Tan ",
      "Pei ",
      "Ju ",
      "Duo ",
      "Cui ",
      "Bi ",
      "San ",
      "[?] ",
      "Mao ",
      "Sui ",
      "Yu ",
      "Yu ",
      "Tuo ",
      "He ",
      "Jian ",
      "Ta ",
      "San "
    ];
  }
});

// node_modules/unidecode/data/x6c.js
var require_x6c = __commonJS({
  "node_modules/unidecode/data/x6c.js"(exports2, module2) {
    module2.exports = [
      "Lu ",
      "Mu ",
      "Li ",
      "Tong ",
      "Rong ",
      "Chang ",
      "Pu ",
      "Luo ",
      "Zhan ",
      "Sao ",
      "Zhan ",
      "Meng ",
      "Luo ",
      "Qu ",
      "Die ",
      "Shi ",
      "Di ",
      "Min ",
      "Jue ",
      "Mang ",
      "Qi ",
      "Pie ",
      "Nai ",
      "Qi ",
      "Dao ",
      "Xian ",
      "Chuan ",
      "Fen ",
      "Ri ",
      "Nei ",
      "[?] ",
      "Fu ",
      "Shen ",
      "Dong ",
      "Qing ",
      "Qi ",
      "Yin ",
      "Xi ",
      "Hai ",
      "Yang ",
      "An ",
      "Ya ",
      "Ke ",
      "Qing ",
      "Ya ",
      "Dong ",
      "Dan ",
      "Lu ",
      "Qing ",
      "Yang ",
      "Yun ",
      "Yun ",
      "Shui ",
      "San ",
      "Zheng ",
      "Bing ",
      "Yong ",
      "Dang ",
      "Shitamizu ",
      "Le ",
      "Ni ",
      "Tun ",
      "Fan ",
      "Gui ",
      "Ting ",
      "Zhi ",
      "Qiu ",
      "Bin ",
      "Ze ",
      "Mian ",
      "Cuan ",
      "Hui ",
      "Diao ",
      "Yi ",
      "Cha ",
      "Zhuo ",
      "Chuan ",
      "Wan ",
      "Fan ",
      "Dai ",
      "Xi ",
      "Tuo ",
      "Mang ",
      "Qiu ",
      "Qi ",
      "Shan ",
      "Pai ",
      "Han ",
      "Qian ",
      "Wu ",
      "Wu ",
      "Xun ",
      "Si ",
      "Ru ",
      "Gong ",
      "Jiang ",
      "Chi ",
      "Wu ",
      "Tsuchi ",
      "[?] ",
      "Tang ",
      "Zhi ",
      "Chi ",
      "Qian ",
      "Mi ",
      "Yu ",
      "Wang ",
      "Qing ",
      "Jing ",
      "Rui ",
      "Jun ",
      "Hong ",
      "Tai ",
      "Quan ",
      "Ji ",
      "Bian ",
      "Bian ",
      "Gan ",
      "Wen ",
      "Zhong ",
      "Fang ",
      "Xiong ",
      "Jue ",
      "Hang ",
      "Niou ",
      "Qi ",
      "Fen ",
      "Xu ",
      "Xu ",
      "Qin ",
      "Yi ",
      "Wo ",
      "Yun ",
      "Yuan ",
      "Hang ",
      "Yan ",
      "Chen ",
      "Chen ",
      "Dan ",
      "You ",
      "Dun ",
      "Hu ",
      "Huo ",
      "Qie ",
      "Mu ",
      "Rou ",
      "Mei ",
      "Ta ",
      "Mian ",
      "Wu ",
      "Chong ",
      "Tian ",
      "Bi ",
      "Sha ",
      "Zhi ",
      "Pei ",
      "Pan ",
      "Zhui ",
      "Za ",
      "Gou ",
      "Liu ",
      "Mei ",
      "Ze ",
      "Feng ",
      "Ou ",
      "Li ",
      "Lun ",
      "Cang ",
      "Feng ",
      "Wei ",
      "Hu ",
      "Mo ",
      "Mei ",
      "Shu ",
      "Ju ",
      "Zan ",
      "Tuo ",
      "Tuo ",
      "Tuo ",
      "He ",
      "Li ",
      "Mi ",
      "Yi ",
      "Fa ",
      "Fei ",
      "You ",
      "Tian ",
      "Zhi ",
      "Zhao ",
      "Gu ",
      "Zhan ",
      "Yan ",
      "Si ",
      "Kuang ",
      "Jiong ",
      "Ju ",
      "Xie ",
      "Qiu ",
      "Yi ",
      "Jia ",
      "Zhong ",
      "Quan ",
      "Bo ",
      "Hui ",
      "Mi ",
      "Ben ",
      "Zhuo ",
      "Chu ",
      "Le ",
      "You ",
      "Gu ",
      "Hong ",
      "Gan ",
      "Fa ",
      "Mao ",
      "Si ",
      "Hu ",
      "Ping ",
      "Ci ",
      "Fan ",
      "Chi ",
      "Su ",
      "Ning ",
      "Cheng ",
      "Ling ",
      "Pao ",
      "Bo ",
      "Qi ",
      "Si ",
      "Ni ",
      "Ju ",
      "Yue ",
      "Zhu ",
      "Sheng ",
      "Lei ",
      "Xuan ",
      "Xue ",
      "Fu ",
      "Pan ",
      "Min ",
      "Tai ",
      "Yang ",
      "Ji ",
      "Yong ",
      "Guan ",
      "Beng ",
      "Xue ",
      "Long ",
      "Lu ",
      "[?] ",
      "Bo ",
      "Xie ",
      "Po ",
      "Ze ",
      "Jing ",
      "Yin "
    ];
  }
});

// node_modules/unidecode/data/x6d.js
var require_x6d = __commonJS({
  "node_modules/unidecode/data/x6d.js"(exports2, module2) {
    module2.exports = [
      "Zhou ",
      "Ji ",
      "Yi ",
      "Hui ",
      "Hui ",
      "Zui ",
      "Cheng ",
      "Yin ",
      "Wei ",
      "Hou ",
      "Jian ",
      "Yang ",
      "Lie ",
      "Si ",
      "Ji ",
      "Er ",
      "Xing ",
      "Fu ",
      "Sa ",
      "Suo ",
      "Zhi ",
      "Yin ",
      "Wu ",
      "Xi ",
      "Kao ",
      "Zhu ",
      "Jiang ",
      "Luo ",
      "[?] ",
      "An ",
      "Dong ",
      "Yi ",
      "Mou ",
      "Lei ",
      "Yi ",
      "Mi ",
      "Quan ",
      "Jin ",
      "Mo ",
      "Wei ",
      "Xiao ",
      "Xie ",
      "Hong ",
      "Xu ",
      "Shuo ",
      "Kuang ",
      "Tao ",
      "Qie ",
      "Ju ",
      "Er ",
      "Zhou ",
      "Ru ",
      "Ping ",
      "Xun ",
      "Xiong ",
      "Zhi ",
      "Guang ",
      "Huan ",
      "Ming ",
      "Huo ",
      "Wa ",
      "Qia ",
      "Pai ",
      "Wu ",
      "Qu ",
      "Liu ",
      "Yi ",
      "Jia ",
      "Jing ",
      "Qian ",
      "Jiang ",
      "Jiao ",
      "Cheng ",
      "Shi ",
      "Zhuo ",
      "Ce ",
      "Pal ",
      "Kuai ",
      "Ji ",
      "Liu ",
      "Chan ",
      "Hun ",
      "Hu ",
      "Nong ",
      "Xun ",
      "Jin ",
      "Lie ",
      "Qiu ",
      "Wei ",
      "Zhe ",
      "Jun ",
      "Han ",
      "Bang ",
      "Mang ",
      "Zhuo ",
      "You ",
      "Xi ",
      "Bo ",
      "Dou ",
      "Wan ",
      "Hong ",
      "Yi ",
      "Pu ",
      "Ying ",
      "Lan ",
      "Hao ",
      "Lang ",
      "Han ",
      "Li ",
      "Geng ",
      "Fu ",
      "Wu ",
      "Lian ",
      "Chun ",
      "Feng ",
      "Yi ",
      "Yu ",
      "Tong ",
      "Lao ",
      "Hai ",
      "Jin ",
      "Jia ",
      "Chong ",
      "Weng ",
      "Mei ",
      "Sui ",
      "Cheng ",
      "Pei ",
      "Xian ",
      "Shen ",
      "Tu ",
      "Kun ",
      "Pin ",
      "Nie ",
      "Han ",
      "Jing ",
      "Xiao ",
      "She ",
      "Nian ",
      "Tu ",
      "Yong ",
      "Xiao ",
      "Xian ",
      "Ting ",
      "E ",
      "Su ",
      "Tun ",
      "Juan ",
      "Cen ",
      "Ti ",
      "Li ",
      "Shui ",
      "Si ",
      "Lei ",
      "Shui ",
      "Tao ",
      "Du ",
      "Lao ",
      "Lai ",
      "Lian ",
      "Wei ",
      "Wo ",
      "Yun ",
      "Huan ",
      "Di ",
      "[?] ",
      "Run ",
      "Jian ",
      "Zhang ",
      "Se ",
      "Fu ",
      "Guan ",
      "Xing ",
      "Shou ",
      "Shuan ",
      "Ya ",
      "Chuo ",
      "Zhang ",
      "Ye ",
      "Kong ",
      "Wo ",
      "Han ",
      "Tuo ",
      "Dong ",
      "He ",
      "Wo ",
      "Ju ",
      "Gan ",
      "Liang ",
      "Hun ",
      "Ta ",
      "Zhuo ",
      "Dian ",
      "Qie ",
      "De ",
      "Juan ",
      "Zi ",
      "Xi ",
      "Yao ",
      "Qi ",
      "Gu ",
      "Guo ",
      "Han ",
      "Lin ",
      "Tang ",
      "Zhou ",
      "Peng ",
      "Hao ",
      "Chang ",
      "Shu ",
      "Qi ",
      "Fang ",
      "Chi ",
      "Lu ",
      "Nao ",
      "Ju ",
      "Tao ",
      "Cong ",
      "Lei ",
      "Zhi ",
      "Peng ",
      "Fei ",
      "Song ",
      "Tian ",
      "Pi ",
      "Dan ",
      "Yu ",
      "Ni ",
      "Yu ",
      "Lu ",
      "Gan ",
      "Mi ",
      "Jing ",
      "Ling ",
      "Lun ",
      "Yin ",
      "Cui ",
      "Qu ",
      "Huai ",
      "Yu ",
      "Nian ",
      "Shen ",
      "Piao ",
      "Chun ",
      "Wa ",
      "Yuan ",
      "Lai ",
      "Hun ",
      "Qing ",
      "Yan ",
      "Qian ",
      "Tian ",
      "Miao ",
      "Zhi ",
      "Yin ",
      "Mi "
    ];
  }
});

// node_modules/unidecode/data/x6e.js
var require_x6e = __commonJS({
  "node_modules/unidecode/data/x6e.js"(exports2, module2) {
    module2.exports = [
      "Ben ",
      "Yuan ",
      "Wen ",
      "Re ",
      "Fei ",
      "Qing ",
      "Yuan ",
      "Ke ",
      "Ji ",
      "She ",
      "Yuan ",
      "Shibui ",
      "Lu ",
      "Zi ",
      "Du ",
      "[?] ",
      "Jian ",
      "Min ",
      "Pi ",
      "Tani ",
      "Yu ",
      "Yuan ",
      "Shen ",
      "Shen ",
      "Rou ",
      "Huan ",
      "Zhu ",
      "Jian ",
      "Nuan ",
      "Yu ",
      "Qiu ",
      "Ting ",
      "Qu ",
      "Du ",
      "Feng ",
      "Zha ",
      "Bo ",
      "Wo ",
      "Wo ",
      "Di ",
      "Wei ",
      "Wen ",
      "Ru ",
      "Xie ",
      "Ce ",
      "Wei ",
      "Ge ",
      "Gang ",
      "Yan ",
      "Hong ",
      "Xuan ",
      "Mi ",
      "Ke ",
      "Mao ",
      "Ying ",
      "Yan ",
      "You ",
      "Hong ",
      "Miao ",
      "Xing ",
      "Mei ",
      "Zai ",
      "Hun ",
      "Nai ",
      "Kui ",
      "Shi ",
      "E ",
      "Pai ",
      "Mei ",
      "Lian ",
      "Qi ",
      "Qi ",
      "Mei ",
      "Tian ",
      "Cou ",
      "Wei ",
      "Can ",
      "Tuan ",
      "Mian ",
      "Hui ",
      "Mo ",
      "Xu ",
      "Ji ",
      "Pen ",
      "Jian ",
      "Jian ",
      "Hu ",
      "Feng ",
      "Xiang ",
      "Yi ",
      "Yin ",
      "Zhan ",
      "Shi ",
      "Jie ",
      "Cheng ",
      "Huang ",
      "Tan ",
      "Yu ",
      "Bi ",
      "Min ",
      "Shi ",
      "Tu ",
      "Sheng ",
      "Yong ",
      "Qu ",
      "Zhong ",
      "Suei ",
      "Jiu ",
      "Jiao ",
      "Qiou ",
      "Yin ",
      "Tang ",
      "Long ",
      "Huo ",
      "Yuan ",
      "Nan ",
      "Ban ",
      "You ",
      "Quan ",
      "Chui ",
      "Liang ",
      "Chan ",
      "Yan ",
      "Chun ",
      "Nie ",
      "Zi ",
      "Wan ",
      "Shi ",
      "Man ",
      "Ying ",
      "Ratsu ",
      "Kui ",
      "[?] ",
      "Jian ",
      "Xu ",
      "Lu ",
      "Gui ",
      "Gai ",
      "[?] ",
      "[?] ",
      "Po ",
      "Jin ",
      "Gui ",
      "Tang ",
      "Yuan ",
      "Suo ",
      "Yuan ",
      "Lian ",
      "Yao ",
      "Meng ",
      "Zhun ",
      "Sheng ",
      "Ke ",
      "Tai ",
      "Da ",
      "Wa ",
      "Liu ",
      "Gou ",
      "Sao ",
      "Ming ",
      "Zha ",
      "Shi ",
      "Yi ",
      "Lun ",
      "Ma ",
      "Pu ",
      "Wei ",
      "Li ",
      "Cai ",
      "Wu ",
      "Xi ",
      "Wen ",
      "Qiang ",
      "Ze ",
      "Shi ",
      "Su ",
      "Yi ",
      "Zhen ",
      "Sou ",
      "Yun ",
      "Xiu ",
      "Yin ",
      "Rong ",
      "Hun ",
      "Su ",
      "Su ",
      "Ni ",
      "Ta ",
      "Shi ",
      "Ru ",
      "Wei ",
      "Pan ",
      "Chu ",
      "Chu ",
      "Pang ",
      "Weng ",
      "Cang ",
      "Mie ",
      "He ",
      "Dian ",
      "Hao ",
      "Huang ",
      "Xi ",
      "Zi ",
      "Di ",
      "Zhi ",
      "Ying ",
      "Fu ",
      "Jie ",
      "Hua ",
      "Ge ",
      "Zi ",
      "Tao ",
      "Teng ",
      "Sui ",
      "Bi ",
      "Jiao ",
      "Hui ",
      "Gun ",
      "Yin ",
      "Gao ",
      "Long ",
      "Zhi ",
      "Yan ",
      "She ",
      "Man ",
      "Ying ",
      "Chun ",
      "Lu ",
      "Lan ",
      "Luan ",
      "[?] ",
      "Bin ",
      "Tan ",
      "Yu ",
      "Sou ",
      "Hu ",
      "Bi ",
      "Biao ",
      "Zhi ",
      "Jiang ",
      "Kou ",
      "Shen ",
      "Shang ",
      "Di ",
      "Mi ",
      "Ao ",
      "Lu ",
      "Hu ",
      "Hu ",
      "You ",
      "Chan ",
      "Fan ",
      "Yong ",
      "Gun ",
      "Man "
    ];
  }
});

// node_modules/unidecode/data/x6f.js
var require_x6f = __commonJS({
  "node_modules/unidecode/data/x6f.js"(exports2, module2) {
    module2.exports = [
      "Qing ",
      "Yu ",
      "Piao ",
      "Ji ",
      "Ya ",
      "Jiao ",
      "Qi ",
      "Xi ",
      "Ji ",
      "Lu ",
      "Lu ",
      "Long ",
      "Jin ",
      "Guo ",
      "Cong ",
      "Lou ",
      "Zhi ",
      "Gai ",
      "Qiang ",
      "Li ",
      "Yan ",
      "Cao ",
      "Jiao ",
      "Cong ",
      "Qun ",
      "Tuan ",
      "Ou ",
      "Teng ",
      "Ye ",
      "Xi ",
      "Mi ",
      "Tang ",
      "Mo ",
      "Shang ",
      "Han ",
      "Lian ",
      "Lan ",
      "Wa ",
      "Li ",
      "Qian ",
      "Feng ",
      "Xuan ",
      "Yi ",
      "Man ",
      "Zi ",
      "Mang ",
      "Kang ",
      "Lei ",
      "Peng ",
      "Shu ",
      "Zhang ",
      "Zhang ",
      "Chong ",
      "Xu ",
      "Huan ",
      "Kuo ",
      "Jian ",
      "Yan ",
      "Chuang ",
      "Liao ",
      "Cui ",
      "Ti ",
      "Yang ",
      "Jiang ",
      "Cong ",
      "Ying ",
      "Hong ",
      "Xun ",
      "Shu ",
      "Guan ",
      "Ying ",
      "Xiao ",
      "[?] ",
      "[?] ",
      "Xu ",
      "Lian ",
      "Zhi ",
      "Wei ",
      "Pi ",
      "Jue ",
      "Jiao ",
      "Po ",
      "Dang ",
      "Hui ",
      "Jie ",
      "Wu ",
      "Pa ",
      "Ji ",
      "Pan ",
      "Gui ",
      "Xiao ",
      "Qian ",
      "Qian ",
      "Xi ",
      "Lu ",
      "Xi ",
      "Xuan ",
      "Dun ",
      "Huang ",
      "Min ",
      "Run ",
      "Su ",
      "Liao ",
      "Zhen ",
      "Zhong ",
      "Yi ",
      "Di ",
      "Wan ",
      "Dan ",
      "Tan ",
      "Chao ",
      "Xun ",
      "Kui ",
      "Yie ",
      "Shao ",
      "Tu ",
      "Zhu ",
      "San ",
      "Hei ",
      "Bi ",
      "Shan ",
      "Chan ",
      "Chan ",
      "Shu ",
      "Tong ",
      "Pu ",
      "Lin ",
      "Wei ",
      "Se ",
      "Se ",
      "Cheng ",
      "Jiong ",
      "Cheng ",
      "Hua ",
      "Jiao ",
      "Lao ",
      "Che ",
      "Gan ",
      "Cun ",
      "Heng ",
      "Si ",
      "Shu ",
      "Peng ",
      "Han ",
      "Yun ",
      "Liu ",
      "Hong ",
      "Fu ",
      "Hao ",
      "He ",
      "Xian ",
      "Jian ",
      "Shan ",
      "Xi ",
      "Oki ",
      "[?] ",
      "Lan ",
      "[?] ",
      "Yu ",
      "Lin ",
      "Min ",
      "Zao ",
      "Dang ",
      "Wan ",
      "Ze ",
      "Xie ",
      "Yu ",
      "Li ",
      "Shi ",
      "Xue ",
      "Ling ",
      "Man ",
      "Zi ",
      "Yong ",
      "Kuai ",
      "Can ",
      "Lian ",
      "Dian ",
      "Ye ",
      "Ao ",
      "Huan ",
      "Zhen ",
      "Chan ",
      "Man ",
      "Dan ",
      "Dan ",
      "Yi ",
      "Sui ",
      "Pi ",
      "Ju ",
      "Ta ",
      "Qin ",
      "Ji ",
      "Zhuo ",
      "Lian ",
      "Nong ",
      "Guo ",
      "Jin ",
      "Fen ",
      "Se ",
      "Ji ",
      "Sui ",
      "Hui ",
      "Chu ",
      "Ta ",
      "Song ",
      "Ding ",
      "[?] ",
      "Zhu ",
      "Lai ",
      "Bin ",
      "Lian ",
      "Mi ",
      "Shi ",
      "Shu ",
      "Mi ",
      "Ning ",
      "Ying ",
      "Ying ",
      "Meng ",
      "Jin ",
      "Qi ",
      "Pi ",
      "Ji ",
      "Hao ",
      "Ru ",
      "Zui ",
      "Wo ",
      "Tao ",
      "Yin ",
      "Yin ",
      "Dui ",
      "Ci ",
      "Huo ",
      "Jing ",
      "Lan ",
      "Jun ",
      "Ai ",
      "Pu ",
      "Zhuo ",
      "Wei ",
      "Bin ",
      "Gu ",
      "Qian ",
      "Xing ",
      "Hama ",
      "Kuo ",
      "Fei ",
      "[?] ",
      "Boku ",
      "Jian ",
      "Wei ",
      "Luo ",
      "Zan ",
      "Lu ",
      "Li "
    ];
  }
});

// node_modules/unidecode/data/x70.js
var require_x70 = __commonJS({
  "node_modules/unidecode/data/x70.js"(exports2, module2) {
    module2.exports = [
      "You ",
      "Yang ",
      "Lu ",
      "Si ",
      "Jie ",
      "Ying ",
      "Du ",
      "Wang ",
      "Hui ",
      "Xie ",
      "Pan ",
      "Shen ",
      "Biao ",
      "Chan ",
      "Mo ",
      "Liu ",
      "Jian ",
      "Pu ",
      "Se ",
      "Cheng ",
      "Gu ",
      "Bin ",
      "Huo ",
      "Xian ",
      "Lu ",
      "Qin ",
      "Han ",
      "Ying ",
      "Yong ",
      "Li ",
      "Jing ",
      "Xiao ",
      "Ying ",
      "Sui ",
      "Wei ",
      "Xie ",
      "Huai ",
      "Hao ",
      "Zhu ",
      "Long ",
      "Lai ",
      "Dui ",
      "Fan ",
      "Hu ",
      "Lai ",
      "[?] ",
      "[?] ",
      "Ying ",
      "Mi ",
      "Ji ",
      "Lian ",
      "Jian ",
      "Ying ",
      "Fen ",
      "Lin ",
      "Yi ",
      "Jian ",
      "Yue ",
      "Chan ",
      "Dai ",
      "Rang ",
      "Jian ",
      "Lan ",
      "Fan ",
      "Shuang ",
      "Yuan ",
      "Zhuo ",
      "Feng ",
      "She ",
      "Lei ",
      "Lan ",
      "Cong ",
      "Qu ",
      "Yong ",
      "Qian ",
      "Fa ",
      "Guan ",
      "Que ",
      "Yan ",
      "Hao ",
      "Hyeng ",
      "Sa ",
      "Zan ",
      "Luan ",
      "Yan ",
      "Li ",
      "Mi ",
      "Shan ",
      "Tan ",
      "Dang ",
      "Jiao ",
      "Chan ",
      "[?] ",
      "Hao ",
      "Ba ",
      "Zhu ",
      "Lan ",
      "Lan ",
      "Nang ",
      "Wan ",
      "Luan ",
      "Xun ",
      "Xian ",
      "Yan ",
      "Gan ",
      "Yan ",
      "Yu ",
      "Huo ",
      "Si ",
      "Mie ",
      "Guang ",
      "Deng ",
      "Hui ",
      "Xiao ",
      "Xiao ",
      "Hu ",
      "Hong ",
      "Ling ",
      "Zao ",
      "Zhuan ",
      "Jiu ",
      "Zha ",
      "Xie ",
      "Chi ",
      "Zhuo ",
      "Zai ",
      "Zai ",
      "Can ",
      "Yang ",
      "Qi ",
      "Zhong ",
      "Fen ",
      "Niu ",
      "Jiong ",
      "Wen ",
      "Po ",
      "Yi ",
      "Lu ",
      "Chui ",
      "Pi ",
      "Kai ",
      "Pan ",
      "Yan ",
      "Kai ",
      "Pang ",
      "Mu ",
      "Chao ",
      "Liao ",
      "Gui ",
      "Kang ",
      "Tun ",
      "Guang ",
      "Xin ",
      "Zhi ",
      "Guang ",
      "Guang ",
      "Wei ",
      "Qiang ",
      "[?] ",
      "Da ",
      "Xia ",
      "Zheng ",
      "Zhu ",
      "Ke ",
      "Zhao ",
      "Fu ",
      "Ba ",
      "Duo ",
      "Duo ",
      "Ling ",
      "Zhuo ",
      "Xuan ",
      "Ju ",
      "Tan ",
      "Pao ",
      "Jiong ",
      "Pao ",
      "Tai ",
      "Tai ",
      "Bing ",
      "Yang ",
      "Tong ",
      "Han ",
      "Zhu ",
      "Zha ",
      "Dian ",
      "Wei ",
      "Shi ",
      "Lian ",
      "Chi ",
      "Huang ",
      "[?] ",
      "Hu ",
      "Shuo ",
      "Lan ",
      "Jing ",
      "Jiao ",
      "Xu ",
      "Xing ",
      "Quan ",
      "Lie ",
      "Huan ",
      "Yang ",
      "Xiao ",
      "Xiu ",
      "Xian ",
      "Yin ",
      "Wu ",
      "Zhou ",
      "Yao ",
      "Shi ",
      "Wei ",
      "Tong ",
      "Xue ",
      "Zai ",
      "Kai ",
      "Hong ",
      "Luo ",
      "Xia ",
      "Zhu ",
      "Xuan ",
      "Zheng ",
      "Po ",
      "Yan ",
      "Hui ",
      "Guang ",
      "Zhe ",
      "Hui ",
      "Kao ",
      "[?] ",
      "Fan ",
      "Shao ",
      "Ye ",
      "Hui ",
      "[?] ",
      "Tang ",
      "Jin ",
      "Re ",
      "[?] ",
      "Xi ",
      "Fu ",
      "Jiong ",
      "Che ",
      "Pu ",
      "Jing ",
      "Zhuo ",
      "Ting ",
      "Wan ",
      "Hai ",
      "Peng ",
      "Lang ",
      "Shan ",
      "Hu ",
      "Feng ",
      "Chi ",
      "Rong "
    ];
  }
});

// node_modules/unidecode/data/x71.js
var require_x71 = __commonJS({
  "node_modules/unidecode/data/x71.js"(exports2, module2) {
    module2.exports = [
      "Hu ",
      "Xi ",
      "Shu ",
      "He ",
      "Xun ",
      "Ku ",
      "Jue ",
      "Xiao ",
      "Xi ",
      "Yan ",
      "Han ",
      "Zhuang ",
      "Jun ",
      "Di ",
      "Xie ",
      "Ji ",
      "Wu ",
      "[?] ",
      "[?] ",
      "Han ",
      "Yan ",
      "Huan ",
      "Men ",
      "Ju ",
      "Chou ",
      "Bei ",
      "Fen ",
      "Lin ",
      "Kun ",
      "Hun ",
      "Tun ",
      "Xi ",
      "Cui ",
      "Wu ",
      "Hong ",
      "Ju ",
      "Fu ",
      "Wo ",
      "Jiao ",
      "Cong ",
      "Feng ",
      "Ping ",
      "Qiong ",
      "Ruo ",
      "Xi ",
      "Qiong ",
      "Xin ",
      "Zhuo ",
      "Yan ",
      "Yan ",
      "Yi ",
      "Jue ",
      "Yu ",
      "Gang ",
      "Ran ",
      "Pi ",
      "Gu ",
      "[?] ",
      "Sheng ",
      "Chang ",
      "Shao ",
      "[?] ",
      "[?] ",
      "[?] ",
      "[?] ",
      "Chen ",
      "He ",
      "Kui ",
      "Zhong ",
      "Duan ",
      "Xia ",
      "Hui ",
      "Feng ",
      "Lian ",
      "Xuan ",
      "Xing ",
      "Huang ",
      "Jiao ",
      "Jian ",
      "Bi ",
      "Ying ",
      "Zhu ",
      "Wei ",
      "Tuan ",
      "Tian ",
      "Xi ",
      "Nuan ",
      "Nuan ",
      "Chan ",
      "Yan ",
      "Jiong ",
      "Jiong ",
      "Yu ",
      "Mei ",
      "Sha ",
      "Wei ",
      "Ye ",
      "Xin ",
      "Qiong ",
      "Rou ",
      "Mei ",
      "Huan ",
      "Xu ",
      "Zhao ",
      "Wei ",
      "Fan ",
      "Qiu ",
      "Sui ",
      "Yang ",
      "Lie ",
      "Zhu ",
      "Jie ",
      "Gao ",
      "Gua ",
      "Bao ",
      "Hu ",
      "Yun ",
      "Xia ",
      "[?] ",
      "[?] ",
      "Bian ",
      "Gou ",
      "Tui ",
      "Tang ",
      "Chao ",
      "Shan ",
      "N ",
      "Bo ",
      "Huang ",
      "Xie ",
      "Xi ",
      "Wu ",
      "Xi ",
      "Yun ",
      "He ",
      "He ",
      "Xi ",
      "Yun ",
      "Xiong ",
      "Nai ",
      "Shan ",
      "Qiong ",
      "Yao ",
      "Xun ",
      "Mi ",
      "Lian ",
      "Ying ",
      "Wen ",
      "Rong ",
      "Oozutsu ",
      "[?] ",
      "Qiang ",
      "Liu ",
      "Xi ",
      "Bi ",
      "Biao ",
      "Zong ",
      "Lu ",
      "Jian ",
      "Shou ",
      "Yi ",
      "Lou ",
      "Feng ",
      "Sui ",
      "Yi ",
      "Tong ",
      "Jue ",
      "Zong ",
      "Yun ",
      "Hu ",
      "Yi ",
      "Zhi ",
      "Ao ",
      "Wei ",
      "Liao ",
      "Han ",
      "Ou ",
      "Re ",
      "Jiong ",
      "Man ",
      "[?] ",
      "Shang ",
      "Cuan ",
      "Zeng ",
      "Jian ",
      "Xi ",
      "Xi ",
      "Xi ",
      "Yi ",
      "Xiao ",
      "Chi ",
      "Huang ",
      "Chan ",
      "Ye ",
      "Qian ",
      "Ran ",
      "Yan ",
      "Xian ",
      "Qiao ",
      "Zun ",
      "Deng ",
      "Dun ",
      "Shen ",
      "Jiao ",
      "Fen ",
      "Si ",
      "Liao ",
      "Yu ",
      "Lin ",
      "Tong ",
      "Shao ",
      "Fen ",
      "Fan ",
      "Yan ",
      "Xun ",
      "Lan ",
      "Mei ",
      "Tang ",
      "Yi ",
      "Jing ",
      "Men ",
      "[?] ",
      "[?] ",
      "Ying ",
      "Yu ",
      "Yi ",
      "Xue ",
      "Lan ",
      "Tai ",
      "Zao ",
      "Can ",
      "Sui ",
      "Xi ",
      "Que ",
      "Cong ",
      "Lian ",
      "Hui ",
      "Zhu ",
      "Xie ",
      "Ling ",
      "Wei ",
      "Yi ",
      "Xie ",
      "Zhao ",
      "Hui ",
      "Tatsu ",
      "Nung ",
      "Lan ",
      "Ru ",
      "Xian ",
      "Kao ",
      "Xun ",
      "Jin ",
      "Chou ",
      "Chou ",
      "Yao "
    ];
  }
});

// node_modules/unidecode/data/x72.js
var require_x72 = __commonJS({
  "node_modules/unidecode/data/x72.js"(exports2, module2) {
    module2.exports = [
      "He ",
      "Lan ",
      "Biao ",
      "Rong ",
      "Li ",
      "Mo ",
      "Bao ",
      "Ruo ",
      "Lu ",
      "La ",
      "Ao ",
      "Xun ",
      "Kuang ",
      "Shuo ",
      "[?] ",
      "Li ",
      "Lu ",
      "Jue ",
      "Liao ",
      "Yan ",
      "Xi ",
      "Xie ",
      "Long ",
      "Ye ",
      "[?] ",
      "Rang ",
      "Yue ",
      "Lan ",
      "Cong ",
      "Jue ",
      "Tong ",
      "Guan ",
      "[?] ",
      "Che ",
      "Mi ",
      "Tang ",
      "Lan ",
      "Zhu ",
      "[?] ",
      "Ling ",
      "Cuan ",
      "Yu ",
      "Zhua ",
      "Tsumekanmuri ",
      "Pa ",
      "Zheng ",
      "Pao ",
      "Cheng ",
      "Yuan ",
      "Ai ",
      "Wei ",
      "[?] ",
      "Jue ",
      "Jue ",
      "Fu ",
      "Ye ",
      "Ba ",
      "Die ",
      "Ye ",
      "Yao ",
      "Zu ",
      "Shuang ",
      "Er ",
      "Qiang ",
      "Chuang ",
      "Ge ",
      "Zang ",
      "Die ",
      "Qiang ",
      "Yong ",
      "Qiang ",
      "Pian ",
      "Ban ",
      "Pan ",
      "Shao ",
      "Jian ",
      "Pai ",
      "Du ",
      "Chuang ",
      "Tou ",
      "Zha ",
      "Bian ",
      "Die ",
      "Bang ",
      "Bo ",
      "Chuang ",
      "You ",
      "[?] ",
      "Du ",
      "Ya ",
      "Cheng ",
      "Niu ",
      "Ushihen ",
      "Pin ",
      "Jiu ",
      "Mou ",
      "Tuo ",
      "Mu ",
      "Lao ",
      "Ren ",
      "Mang ",
      "Fang ",
      "Mao ",
      "Mu ",
      "Gang ",
      "Wu ",
      "Yan ",
      "Ge ",
      "Bei ",
      "Si ",
      "Jian ",
      "Gu ",
      "You ",
      "Ge ",
      "Sheng ",
      "Mu ",
      "Di ",
      "Qian ",
      "Quan ",
      "Quan ",
      "Zi ",
      "Te ",
      "Xi ",
      "Mang ",
      "Keng ",
      "Qian ",
      "Wu ",
      "Gu ",
      "Xi ",
      "Li ",
      "Li ",
      "Pou ",
      "Ji ",
      "Gang ",
      "Zhi ",
      "Ben ",
      "Quan ",
      "Run ",
      "Du ",
      "Ju ",
      "Jia ",
      "Jian ",
      "Feng ",
      "Pian ",
      "Ke ",
      "Ju ",
      "Kao ",
      "Chu ",
      "Xi ",
      "Bei ",
      "Luo ",
      "Jie ",
      "Ma ",
      "San ",
      "Wei ",
      "Li ",
      "Dun ",
      "Tong ",
      "[?] ",
      "Jiang ",
      "Ikenie ",
      "Li ",
      "Du ",
      "Lie ",
      "Pi ",
      "Piao ",
      "Bao ",
      "Xi ",
      "Chou ",
      "Wei ",
      "Kui ",
      "Chou ",
      "Quan ",
      "Fan ",
      "Ba ",
      "Fan ",
      "Qiu ",
      "Ji ",
      "Cai ",
      "Chuo ",
      "An ",
      "Jie ",
      "Zhuang ",
      "Guang ",
      "Ma ",
      "You ",
      "Kang ",
      "Bo ",
      "Hou ",
      "Ya ",
      "Yin ",
      "Huan ",
      "Zhuang ",
      "Yun ",
      "Kuang ",
      "Niu ",
      "Di ",
      "Qing ",
      "Zhong ",
      "Mu ",
      "Bei ",
      "Pi ",
      "Ju ",
      "Ni ",
      "Sheng ",
      "Pao ",
      "Xia ",
      "Tuo ",
      "Hu ",
      "Ling ",
      "Fei ",
      "Pi ",
      "Ni ",
      "Ao ",
      "You ",
      "Gou ",
      "Yue ",
      "Ju ",
      "Dan ",
      "Po ",
      "Gu ",
      "Xian ",
      "Ning ",
      "Huan ",
      "Hen ",
      "Jiao ",
      "He ",
      "Zhao ",
      "Ji ",
      "Xun ",
      "Shan ",
      "Ta ",
      "Rong ",
      "Shou ",
      "Tong ",
      "Lao ",
      "Du ",
      "Xia ",
      "Shi ",
      "Hua ",
      "Zheng ",
      "Yu ",
      "Sun ",
      "Yu ",
      "Bi ",
      "Mang ",
      "Xi ",
      "Juan ",
      "Li ",
      "Xia ",
      "Yin ",
      "Suan ",
      "Lang ",
      "Bei ",
      "Zhi ",
      "Yan "
    ];
  }
});

// node_modules/unidecode/data/x73.js
var require_x73 = __commonJS({
  "node_modules/unidecode/data/x73.js"(exports2, module2) {
    module2.exports = [
      "Sha ",
      "Li ",
      "Han ",
      "Xian ",
      "Jing ",
      "Pai ",
      "Fei ",
      "Yao ",
      "Ba ",
      "Qi ",
      "Ni ",
      "Biao ",
      "Yin ",
      "Lai ",
      "Xi ",
      "Jian ",
      "Qiang ",
      "Kun ",
      "Yan ",
      "Guo ",
      "Zong ",
      "Mi ",
      "Chang ",
      "Yi ",
      "Zhi ",
      "Zheng ",
      "Ya ",
      "Meng ",
      "Cai ",
      "Cu ",
      "She ",
      "Kari ",
      "Cen ",
      "Luo ",
      "Hu ",
      "Zong ",
      "Ji ",
      "Wei ",
      "Feng ",
      "Wo ",
      "Yuan ",
      "Xing ",
      "Zhu ",
      "Mao ",
      "Wei ",
      "Yuan ",
      "Xian ",
      "Tuan ",
      "Ya ",
      "Nao ",
      "Xie ",
      "Jia ",
      "Hou ",
      "Bian ",
      "You ",
      "You ",
      "Mei ",
      "Zha ",
      "Yao ",
      "Sun ",
      "Bo ",
      "Ming ",
      "Hua ",
      "Yuan ",
      "Sou ",
      "Ma ",
      "Yuan ",
      "Dai ",
      "Yu ",
      "Shi ",
      "Hao ",
      "[?] ",
      "Yi ",
      "Zhen ",
      "Chuang ",
      "Hao ",
      "Man ",
      "Jing ",
      "Jiang ",
      "Mu ",
      "Zhang ",
      "Chan ",
      "Ao ",
      "Ao ",
      "Hao ",
      "Cui ",
      "Fen ",
      "Jue ",
      "Bi ",
      "Bi ",
      "Huang ",
      "Pu ",
      "Lin ",
      "Yu ",
      "Tong ",
      "Yao ",
      "Liao ",
      "Shuo ",
      "Xiao ",
      "Swu ",
      "Ton ",
      "Xi ",
      "Ge ",
      "Juan ",
      "Du ",
      "Hui ",
      "Kuai ",
      "Xian ",
      "Xie ",
      "Ta ",
      "Xian ",
      "Xun ",
      "Ning ",
      "Pin ",
      "Huo ",
      "Nou ",
      "Meng ",
      "Lie ",
      "Nao ",
      "Guang ",
      "Shou ",
      "Lu ",
      "Ta ",
      "Xian ",
      "Mi ",
      "Rang ",
      "Huan ",
      "Nao ",
      "Luo ",
      "Xian ",
      "Qi ",
      "Jue ",
      "Xuan ",
      "Miao ",
      "Zi ",
      "Lu ",
      "Lu ",
      "Yu ",
      "Su ",
      "Wang ",
      "Qiu ",
      "Ga ",
      "Ding ",
      "Le ",
      "Ba ",
      "Ji ",
      "Hong ",
      "Di ",
      "Quan ",
      "Gan ",
      "Jiu ",
      "Yu ",
      "Ji ",
      "Yu ",
      "Yang ",
      "Ma ",
      "Gong ",
      "Wu ",
      "Fu ",
      "Wen ",
      "Jie ",
      "Ya ",
      "Fen ",
      "Bian ",
      "Beng ",
      "Yue ",
      "Jue ",
      "Yun ",
      "Jue ",
      "Wan ",
      "Jian ",
      "Mei ",
      "Dan ",
      "Pi ",
      "Wei ",
      "Huan ",
      "Xian ",
      "Qiang ",
      "Ling ",
      "Dai ",
      "Yi ",
      "An ",
      "Ping ",
      "Dian ",
      "Fu ",
      "Xuan ",
      "Xi ",
      "Bo ",
      "Ci ",
      "Gou ",
      "Jia ",
      "Shao ",
      "Po ",
      "Ci ",
      "Ke ",
      "Ran ",
      "Sheng ",
      "Shen ",
      "Yi ",
      "Zu ",
      "Jia ",
      "Min ",
      "Shan ",
      "Liu ",
      "Bi ",
      "Zhen ",
      "Zhen ",
      "Jue ",
      "Fa ",
      "Long ",
      "Jin ",
      "Jiao ",
      "Jian ",
      "Li ",
      "Guang ",
      "Xian ",
      "Zhou ",
      "Gong ",
      "Yan ",
      "Xiu ",
      "Yang ",
      "Xu ",
      "Luo ",
      "Su ",
      "Zhu ",
      "Qin ",
      "Ken ",
      "Xun ",
      "Bao ",
      "Er ",
      "Xiang ",
      "Yao ",
      "Xia ",
      "Heng ",
      "Gui ",
      "Chong ",
      "Xu ",
      "Ban ",
      "Pei ",
      "[?] ",
      "Dang ",
      "Ei ",
      "Hun ",
      "Wen ",
      "E ",
      "Cheng ",
      "Ti ",
      "Wu ",
      "Wu ",
      "Cheng ",
      "Jun ",
      "Mei ",
      "Bei ",
      "Ting ",
      "Xian ",
      "Chuo "
    ];
  }
});

// node_modules/unidecode/data/x74.js
var require_x74 = __commonJS({
  "node_modules/unidecode/data/x74.js"(exports2, module2) {
    module2.exports = [
      "Han ",
      "Xuan ",
      "Yan ",
      "Qiu ",
      "Quan ",
      "Lang ",
      "Li ",
      "Xiu ",
      "Fu ",
      "Liu ",
      "Ye ",
      "Xi ",
      "Ling ",
      "Li ",
      "Jin ",
      "Lian ",
      "Suo ",
      "Chiisai ",
      "[?] ",
      "Wan ",
      "Dian ",
      "Pin ",
      "Zhan ",
      "Cui ",
      "Min ",
      "Yu ",
      "Ju ",
      "Chen ",
      "Lai ",
      "Wen ",
      "Sheng ",
      "Wei ",
      "Dian ",
      "Chu ",
      "Zhuo ",
      "Pei ",
      "Cheng ",
      "Hu ",
      "Qi ",
      "E ",
      "Kun ",
      "Chang ",
      "Qi ",
      "Beng ",
      "Wan ",
      "Lu ",
      "Cong ",
      "Guan ",
      "Yan ",
      "Diao ",
      "Bei ",
      "Lin ",
      "Qin ",
      "Pi ",
      "Pa ",
      "Que ",
      "Zhuo ",
      "Qin ",
      "Fa ",
      "[?] ",
      "Qiong ",
      "Du ",
      "Jie ",
      "Hun ",
      "Yu ",
      "Mao ",
      "Mei ",
      "Chun ",
      "Xuan ",
      "Ti ",
      "Xing ",
      "Dai ",
      "Rou ",
      "Min ",
      "Zhen ",
      "Wei ",
      "Ruan ",
      "Huan ",
      "Jie ",
      "Chuan ",
      "Jian ",
      "Zhuan ",
      "Yang ",
      "Lian ",
      "Quan ",
      "Xia ",
      "Duan ",
      "Yuan ",
      "Ye ",
      "Nao ",
      "Hu ",
      "Ying ",
      "Yu ",
      "Huang ",
      "Rui ",
      "Se ",
      "Liu ",
      "Shi ",
      "Rong ",
      "Suo ",
      "Yao ",
      "Wen ",
      "Wu ",
      "Jin ",
      "Jin ",
      "Ying ",
      "Ma ",
      "Tao ",
      "Liu ",
      "Tang ",
      "Li ",
      "Lang ",
      "Gui ",
      "Zhen ",
      "Qiang ",
      "Cuo ",
      "Jue ",
      "Zhao ",
      "Yao ",
      "Ai ",
      "Bin ",
      "Tu ",
      "Chang ",
      "Kun ",
      "Zhuan ",
      "Cong ",
      "Jin ",
      "Yi ",
      "Cui ",
      "Cong ",
      "Qi ",
      "Li ",
      "Ying ",
      "Suo ",
      "Qiu ",
      "Xuan ",
      "Ao ",
      "Lian ",
      "Man ",
      "Zhang ",
      "Yin ",
      "[?] ",
      "Ying ",
      "Zhi ",
      "Lu ",
      "Wu ",
      "Deng ",
      "Xiou ",
      "Zeng ",
      "Xun ",
      "Qu ",
      "Dang ",
      "Lin ",
      "Liao ",
      "Qiong ",
      "Su ",
      "Huang ",
      "Gui ",
      "Pu ",
      "Jing ",
      "Fan ",
      "Jin ",
      "Liu ",
      "Ji ",
      "[?] ",
      "Jing ",
      "Ai ",
      "Bi ",
      "Can ",
      "Qu ",
      "Zao ",
      "Dang ",
      "Jiao ",
      "Gun ",
      "Tan ",
      "Hui ",
      "Huan ",
      "Se ",
      "Sui ",
      "Tian ",
      "[?] ",
      "Yu ",
      "Jin ",
      "Lu ",
      "Bin ",
      "Shou ",
      "Wen ",
      "Zui ",
      "Lan ",
      "Xi ",
      "Ji ",
      "Xuan ",
      "Ruan ",
      "Huo ",
      "Gai ",
      "Lei ",
      "Du ",
      "Li ",
      "Zhi ",
      "Rou ",
      "Li ",
      "Zan ",
      "Qiong ",
      "Zhe ",
      "Gui ",
      "Sui ",
      "La ",
      "Long ",
      "Lu ",
      "Li ",
      "Zan ",
      "Lan ",
      "Ying ",
      "Mi ",
      "Xiang ",
      "Xi ",
      "Guan ",
      "Dao ",
      "Zan ",
      "Huan ",
      "Gua ",
      "Bo ",
      "Die ",
      "Bao ",
      "Hu ",
      "Zhi ",
      "Piao ",
      "Ban ",
      "Rang ",
      "Li ",
      "Wa ",
      "Dekaguramu ",
      "Jiang ",
      "Qian ",
      "Fan ",
      "Pen ",
      "Fang ",
      "Dan ",
      "Weng ",
      "Ou ",
      "Deshiguramu ",
      "Miriguramu ",
      "Thon ",
      "Hu ",
      "Ling ",
      "Yi ",
      "Ping ",
      "Ci ",
      "Hekutogura ",
      "Juan ",
      "Chang ",
      "Chi ",
      "Sarake ",
      "Dang ",
      "Meng ",
      "Pou "
    ];
  }
});

// node_modules/unidecode/data/x75.js
var require_x75 = __commonJS({
  "node_modules/unidecode/data/x75.js"(exports2, module2) {
    module2.exports = [
      "Zhui ",
      "Ping ",
      "Bian ",
      "Zhou ",
      "Zhen ",
      "Senchigura ",
      "Ci ",
      "Ying ",
      "Qi ",
      "Xian ",
      "Lou ",
      "Di ",
      "Ou ",
      "Meng ",
      "Zhuan ",
      "Peng ",
      "Lin ",
      "Zeng ",
      "Wu ",
      "Pi ",
      "Dan ",
      "Weng ",
      "Ying ",
      "Yan ",
      "Gan ",
      "Dai ",
      "Shen ",
      "Tian ",
      "Tian ",
      "Han ",
      "Chang ",
      "Sheng ",
      "Qing ",
      "Sheng ",
      "Chan ",
      "Chan ",
      "Rui ",
      "Sheng ",
      "Su ",
      "Sen ",
      "Yong ",
      "Shuai ",
      "Lu ",
      "Fu ",
      "Yong ",
      "Beng ",
      "Feng ",
      "Ning ",
      "Tian ",
      "You ",
      "Jia ",
      "Shen ",
      "Zha ",
      "Dian ",
      "Fu ",
      "Nan ",
      "Dian ",
      "Ping ",
      "Ting ",
      "Hua ",
      "Ting ",
      "Quan ",
      "Zi ",
      "Meng ",
      "Bi ",
      "Qi ",
      "Liu ",
      "Xun ",
      "Liu ",
      "Chang ",
      "Mu ",
      "Yun ",
      "Fan ",
      "Fu ",
      "Geng ",
      "Tian ",
      "Jie ",
      "Jie ",
      "Quan ",
      "Wei ",
      "Fu ",
      "Tian ",
      "Mu ",
      "Tap ",
      "Pan ",
      "Jiang ",
      "Wa ",
      "Da ",
      "Nan ",
      "Liu ",
      "Ben ",
      "Zhen ",
      "Chu ",
      "Mu ",
      "Mu ",
      "Ce ",
      "Cen ",
      "Gai ",
      "Bi ",
      "Da ",
      "Zhi ",
      "Lue ",
      "Qi ",
      "Lue ",
      "Pan ",
      "Kesa ",
      "Fan ",
      "Hua ",
      "Yu ",
      "Yu ",
      "Mu ",
      "Jun ",
      "Yi ",
      "Liu ",
      "Yu ",
      "Die ",
      "Chou ",
      "Hua ",
      "Dang ",
      "Chuo ",
      "Ji ",
      "Wan ",
      "Jiang ",
      "Sheng ",
      "Chang ",
      "Tuan ",
      "Lei ",
      "Ji ",
      "Cha ",
      "Liu ",
      "Tatamu ",
      "Tuan ",
      "Lin ",
      "Jiang ",
      "Jiang ",
      "Chou ",
      "Bo ",
      "Die ",
      "Die ",
      "Pi ",
      "Nie ",
      "Dan ",
      "Shu ",
      "Shu ",
      "Zhi ",
      "Yi ",
      "Chuang ",
      "Nai ",
      "Ding ",
      "Bi ",
      "Jie ",
      "Liao ",
      "Gong ",
      "Ge ",
      "Jiu ",
      "Zhou ",
      "Xia ",
      "Shan ",
      "Xu ",
      "Nue ",
      "Li ",
      "Yang ",
      "Chen ",
      "You ",
      "Ba ",
      "Jie ",
      "Jue ",
      "Zhi ",
      "Xia ",
      "Cui ",
      "Bi ",
      "Yi ",
      "Li ",
      "Zong ",
      "Chuang ",
      "Feng ",
      "Zhu ",
      "Pao ",
      "Pi ",
      "Gan ",
      "Ke ",
      "Ci ",
      "Xie ",
      "Qi ",
      "Dan ",
      "Zhen ",
      "Fa ",
      "Zhi ",
      "Teng ",
      "Ju ",
      "Ji ",
      "Fei ",
      "Qu ",
      "Dian ",
      "Jia ",
      "Xian ",
      "Cha ",
      "Bing ",
      "Ni ",
      "Zheng ",
      "Yong ",
      "Jing ",
      "Quan ",
      "Chong ",
      "Tong ",
      "Yi ",
      "Kai ",
      "Wei ",
      "Hui ",
      "Duo ",
      "Yang ",
      "Chi ",
      "Zhi ",
      "Hen ",
      "Ya ",
      "Mei ",
      "Dou ",
      "Jing ",
      "Xiao ",
      "Tong ",
      "Tu ",
      "Mang ",
      "Pi ",
      "Xiao ",
      "Suan ",
      "Pu ",
      "Li ",
      "Zhi ",
      "Cuo ",
      "Duo ",
      "Wu ",
      "Sha ",
      "Lao ",
      "Shou ",
      "Huan ",
      "Xian ",
      "Yi ",
      "Peng ",
      "Zhang ",
      "Guan ",
      "Tan ",
      "Fei ",
      "Ma ",
      "Lin ",
      "Chi ",
      "Ji ",
      "Dian ",
      "An ",
      "Chi ",
      "Bi ",
      "Bei ",
      "Min ",
      "Gu ",
      "Dui ",
      "E ",
      "Wei "
    ];
  }
});

// node_modules/unidecode/data/x76.js
var require_x76 = __commonJS({
  "node_modules/unidecode/data/x76.js"(exports2, module2) {
    module2.exports = [
      "Yu ",
      "Cui ",
      "Ya ",
      "Zhu ",
      "Cu ",
      "Dan ",
      "Shen ",
      "Zhung ",
      "Ji ",
      "Yu ",
      "Hou ",
      "Feng ",
      "La ",
      "Yang ",
      "Shen ",
      "Tu ",
      "Yu ",
      "Gua ",
      "Wen ",
      "Huan ",
      "Ku ",
      "Jia ",
      "Yin ",
      "Yi ",
      "Lu ",
      "Sao ",
      "Jue ",
      "Chi ",
      "Xi ",
      "Guan ",
      "Yi ",
      "Wen ",
      "Ji ",
      "Chuang ",
      "Ban ",
      "Lei ",
      "Liu ",
      "Chai ",
      "Shou ",
      "Nue ",
      "Dian ",
      "Da ",
      "Pie ",
      "Tan ",
      "Zhang ",
      "Biao ",
      "Shen ",
      "Cu ",
      "Luo ",
      "Yi ",
      "Zong ",
      "Chou ",
      "Zhang ",
      "Zhai ",
      "Sou ",
      "Suo ",
      "Que ",
      "Diao ",
      "Lou ",
      "Lu ",
      "Mo ",
      "Jin ",
      "Yin ",
      "Ying ",
      "Huang ",
      "Fu ",
      "Liao ",
      "Long ",
      "Qiao ",
      "Liu ",
      "Lao ",
      "Xian ",
      "Fei ",
      "Dan ",
      "Yin ",
      "He ",
      "Yan ",
      "Ban ",
      "Xian ",
      "Guan ",
      "Guai ",
      "Nong ",
      "Yu ",
      "Wei ",
      "Yi ",
      "Yong ",
      "Pi ",
      "Lei ",
      "Li ",
      "Shu ",
      "Dan ",
      "Lin ",
      "Dian ",
      "Lin ",
      "Lai ",
      "Pie ",
      "Ji ",
      "Chi ",
      "Yang ",
      "Xian ",
      "Jie ",
      "Zheng ",
      "[?] ",
      "Li ",
      "Huo ",
      "Lai ",
      "Shaku ",
      "Dian ",
      "Xian ",
      "Ying ",
      "Yin ",
      "Qu ",
      "Yong ",
      "Tan ",
      "Dian ",
      "Luo ",
      "Luan ",
      "Luan ",
      "Bo ",
      "[?] ",
      "Gui ",
      "Po ",
      "Fa ",
      "Deng ",
      "Fa ",
      "Bai ",
      "Bai ",
      "Qie ",
      "Bi ",
      "Zao ",
      "Zao ",
      "Mao ",
      "De ",
      "Pa ",
      "Jie ",
      "Huang ",
      "Gui ",
      "Ci ",
      "Ling ",
      "Gao ",
      "Mo ",
      "Ji ",
      "Jiao ",
      "Peng ",
      "Gao ",
      "Ai ",
      "E ",
      "Hao ",
      "Han ",
      "Bi ",
      "Wan ",
      "Chou ",
      "Qian ",
      "Xi ",
      "Ai ",
      "Jiong ",
      "Hao ",
      "Huang ",
      "Hao ",
      "Ze ",
      "Cui ",
      "Hao ",
      "Xiao ",
      "Ye ",
      "Po ",
      "Hao ",
      "Jiao ",
      "Ai ",
      "Xing ",
      "Huang ",
      "Li ",
      "Piao ",
      "He ",
      "Jiao ",
      "Pi ",
      "Gan ",
      "Pao ",
      "Zhou ",
      "Jun ",
      "Qiu ",
      "Cun ",
      "Que ",
      "Zha ",
      "Gu ",
      "Jun ",
      "Jun ",
      "Zhou ",
      "Zha ",
      "Gu ",
      "Zhan ",
      "Du ",
      "Min ",
      "Qi ",
      "Ying ",
      "Yu ",
      "Bei ",
      "Zhao ",
      "Zhong ",
      "Pen ",
      "He ",
      "Ying ",
      "He ",
      "Yi ",
      "Bo ",
      "Wan ",
      "He ",
      "Ang ",
      "Zhan ",
      "Yan ",
      "Jian ",
      "He ",
      "Yu ",
      "Kui ",
      "Fan ",
      "Gai ",
      "Dao ",
      "Pan ",
      "Fu ",
      "Qiu ",
      "Sheng ",
      "Dao ",
      "Lu ",
      "Zhan ",
      "Meng ",
      "Li ",
      "Jin ",
      "Xu ",
      "Jian ",
      "Pan ",
      "Guan ",
      "An ",
      "Lu ",
      "Shu ",
      "Zhou ",
      "Dang ",
      "An ",
      "Gu ",
      "Li ",
      "Mu ",
      "Cheng ",
      "Gan ",
      "Xu ",
      "Mang ",
      "Mang ",
      "Zhi ",
      "Qi ",
      "Ruan ",
      "Tian ",
      "Xiang ",
      "Dun ",
      "Xin ",
      "Xi ",
      "Pan ",
      "Feng ",
      "Dun ",
      "Min "
    ];
  }
});

// node_modules/unidecode/data/x77.js
var require_x77 = __commonJS({
  "node_modules/unidecode/data/x77.js"(exports2, module2) {
    module2.exports = [
      "Ming ",
      "Sheng ",
      "Shi ",
      "Yun ",
      "Mian ",
      "Pan ",
      "Fang ",
      "Miao ",
      "Dan ",
      "Mei ",
      "Mao ",
      "Kan ",
      "Xian ",
      "Ou ",
      "Shi ",
      "Yang ",
      "Zheng ",
      "Yao ",
      "Shen ",
      "Huo ",
      "Da ",
      "Zhen ",
      "Kuang ",
      "Ju ",
      "Shen ",
      "Chi ",
      "Sheng ",
      "Mei ",
      "Mo ",
      "Zhu ",
      "Zhen ",
      "Zhen ",
      "Mian ",
      "Di ",
      "Yuan ",
      "Die ",
      "Yi ",
      "Zi ",
      "Zi ",
      "Chao ",
      "Zha ",
      "Xuan ",
      "Bing ",
      "Mi ",
      "Long ",
      "Sui ",
      "Dong ",
      "Mi ",
      "Die ",
      "Yi ",
      "Er ",
      "Ming ",
      "Xuan ",
      "Chi ",
      "Kuang ",
      "Juan ",
      "Mou ",
      "Zhen ",
      "Tiao ",
      "Yang ",
      "Yan ",
      "Mo ",
      "Zhong ",
      "Mai ",
      "Zhao ",
      "Zheng ",
      "Mei ",
      "Jun ",
      "Shao ",
      "Han ",
      "Huan ",
      "Di ",
      "Cheng ",
      "Cuo ",
      "Juan ",
      "E ",
      "Wan ",
      "Xian ",
      "Xi ",
      "Kun ",
      "Lai ",
      "Jian ",
      "Shan ",
      "Tian ",
      "Hun ",
      "Wan ",
      "Ling ",
      "Shi ",
      "Qiong ",
      "Lie ",
      "Yai ",
      "Jing ",
      "Zheng ",
      "Li ",
      "Lai ",
      "Sui ",
      "Juan ",
      "Shui ",
      "Sui ",
      "Du ",
      "Bi ",
      "Bi ",
      "Mu ",
      "Hun ",
      "Ni ",
      "Lu ",
      "Yi ",
      "Jie ",
      "Cai ",
      "Zhou ",
      "Yu ",
      "Hun ",
      "Ma ",
      "Xia ",
      "Xing ",
      "Xi ",
      "Gun ",
      "Cai ",
      "Chun ",
      "Jian ",
      "Mei ",
      "Du ",
      "Hou ",
      "Xuan ",
      "Ti ",
      "Kui ",
      "Gao ",
      "Rui ",
      "Mou ",
      "Xu ",
      "Fa ",
      "Wen ",
      "Miao ",
      "Chou ",
      "Kui ",
      "Mi ",
      "Weng ",
      "Kou ",
      "Dang ",
      "Chen ",
      "Ke ",
      "Sou ",
      "Xia ",
      "Qiong ",
      "Mao ",
      "Ming ",
      "Man ",
      "Shui ",
      "Ze ",
      "Zhang ",
      "Yi ",
      "Diao ",
      "Ou ",
      "Mo ",
      "Shun ",
      "Cong ",
      "Lou ",
      "Chi ",
      "Man ",
      "Piao ",
      "Cheng ",
      "Ji ",
      "Meng ",
      "[?] ",
      "Run ",
      "Pie ",
      "Xi ",
      "Qiao ",
      "Pu ",
      "Zhu ",
      "Deng ",
      "Shen ",
      "Shun ",
      "Liao ",
      "Che ",
      "Xian ",
      "Kan ",
      "Ye ",
      "Xu ",
      "Tong ",
      "Mou ",
      "Lin ",
      "Kui ",
      "Xian ",
      "Ye ",
      "Ai ",
      "Hui ",
      "Zhan ",
      "Jian ",
      "Gu ",
      "Zhao ",
      "Qu ",
      "Wei ",
      "Chou ",
      "Sao ",
      "Ning ",
      "Xun ",
      "Yao ",
      "Huo ",
      "Meng ",
      "Mian ",
      "Bin ",
      "Mian ",
      "Li ",
      "Kuang ",
      "Jue ",
      "Xuan ",
      "Mian ",
      "Huo ",
      "Lu ",
      "Meng ",
      "Long ",
      "Guan ",
      "Man ",
      "Xi ",
      "Chu ",
      "Tang ",
      "Kan ",
      "Zhu ",
      "Mao ",
      "Jin ",
      "Lin ",
      "Yu ",
      "Shuo ",
      "Ce ",
      "Jue ",
      "Shi ",
      "Yi ",
      "Shen ",
      "Zhi ",
      "Hou ",
      "Shen ",
      "Ying ",
      "Ju ",
      "Zhou ",
      "Jiao ",
      "Cuo ",
      "Duan ",
      "Ai ",
      "Jiao ",
      "Zeng ",
      "Huo ",
      "Bai ",
      "Shi ",
      "Ding ",
      "Qi ",
      "Ji ",
      "Zi ",
      "Gan ",
      "Wu ",
      "Tuo ",
      "Ku ",
      "Qiang ",
      "Xi ",
      "Fan ",
      "Kuang "
    ];
  }
});

// node_modules/unidecode/data/x78.js
var require_x78 = __commonJS({
  "node_modules/unidecode/data/x78.js"(exports2, module2) {
    module2.exports = [
      "Dang ",
      "Ma ",
      "Sha ",
      "Dan ",
      "Jue ",
      "Li ",
      "Fu ",
      "Min ",
      "Nuo ",
      "Huo ",
      "Kang ",
      "Zhi ",
      "Qi ",
      "Kan ",
      "Jie ",
      "Fen ",
      "E ",
      "Ya ",
      "Pi ",
      "Zhe ",
      "Yan ",
      "Sui ",
      "Zhuan ",
      "Che ",
      "Dun ",
      "Pan ",
      "Yan ",
      "[?] ",
      "Feng ",
      "Fa ",
      "Mo ",
      "Zha ",
      "Qu ",
      "Yu ",
      "Luo ",
      "Tuo ",
      "Tuo ",
      "Di ",
      "Zhai ",
      "Zhen ",
      "Ai ",
      "Fei ",
      "Mu ",
      "Zhu ",
      "Li ",
      "Bian ",
      "Nu ",
      "Ping ",
      "Peng ",
      "Ling ",
      "Pao ",
      "Le ",
      "Po ",
      "Bo ",
      "Po ",
      "Shen ",
      "Za ",
      "Nuo ",
      "Li ",
      "Long ",
      "Tong ",
      "[?] ",
      "Li ",
      "Aragane ",
      "Chu ",
      "Keng ",
      "Quan ",
      "Zhu ",
      "Kuang ",
      "Huo ",
      "E ",
      "Nao ",
      "Jia ",
      "Lu ",
      "Wei ",
      "Ai ",
      "Luo ",
      "Ken ",
      "Xing ",
      "Yan ",
      "Tong ",
      "Peng ",
      "Xi ",
      "[?] ",
      "Hong ",
      "Shuo ",
      "Xia ",
      "Qiao ",
      "[?] ",
      "Wei ",
      "Qiao ",
      "[?] ",
      "Keng ",
      "Xiao ",
      "Que ",
      "Chan ",
      "Lang ",
      "Hong ",
      "Yu ",
      "Xiao ",
      "Xia ",
      "Mang ",
      "Long ",
      "Iong ",
      "Che ",
      "Che ",
      "E ",
      "Liu ",
      "Ying ",
      "Mang ",
      "Que ",
      "Yan ",
      "Sha ",
      "Kun ",
      "Yu ",
      "[?] ",
      "Kaki ",
      "Lu ",
      "Chen ",
      "Jian ",
      "Nue ",
      "Song ",
      "Zhuo ",
      "Keng ",
      "Peng ",
      "Yan ",
      "Zhui ",
      "Kong ",
      "Ceng ",
      "Qi ",
      "Zong ",
      "Qing ",
      "Lin ",
      "Jun ",
      "Bo ",
      "Ding ",
      "Min ",
      "Diao ",
      "Jian ",
      "He ",
      "Lu ",
      "Ai ",
      "Sui ",
      "Que ",
      "Ling ",
      "Bei ",
      "Yin ",
      "Dui ",
      "Wu ",
      "Qi ",
      "Lun ",
      "Wan ",
      "Dian ",
      "Gang ",
      "Pei ",
      "Qi ",
      "Chen ",
      "Ruan ",
      "Yan ",
      "Die ",
      "Ding ",
      "Du ",
      "Tuo ",
      "Jie ",
      "Ying ",
      "Bian ",
      "Ke ",
      "Bi ",
      "Wei ",
      "Shuo ",
      "Zhen ",
      "Duan ",
      "Xia ",
      "Dang ",
      "Ti ",
      "Nao ",
      "Peng ",
      "Jian ",
      "Di ",
      "Tan ",
      "Cha ",
      "Seki ",
      "Qi ",
      "[?] ",
      "Feng ",
      "Xuan ",
      "Que ",
      "Que ",
      "Ma ",
      "Gong ",
      "Nian ",
      "Su ",
      "E ",
      "Ci ",
      "Liu ",
      "Si ",
      "Tang ",
      "Bang ",
      "Hua ",
      "Pi ",
      "Wei ",
      "Sang ",
      "Lei ",
      "Cuo ",
      "Zhen ",
      "Xia ",
      "Qi ",
      "Lian ",
      "Pan ",
      "Wei ",
      "Yun ",
      "Dui ",
      "Zhe ",
      "Ke ",
      "La ",
      "[?] ",
      "Qing ",
      "Gun ",
      "Zhuan ",
      "Chan ",
      "Qi ",
      "Ao ",
      "Peng ",
      "Lu ",
      "Lu ",
      "Kan ",
      "Qiang ",
      "Chen ",
      "Yin ",
      "Lei ",
      "Biao ",
      "Qi ",
      "Mo ",
      "Qi ",
      "Cui ",
      "Zong ",
      "Qing ",
      "Chuo ",
      "[?] ",
      "Ji ",
      "Shan ",
      "Lao ",
      "Qu ",
      "Zeng ",
      "Deng ",
      "Jian ",
      "Xi ",
      "Lin ",
      "Ding ",
      "Dian ",
      "Huang ",
      "Pan ",
      "Za ",
      "Qiao ",
      "Di ",
      "Li "
    ];
  }
});

// node_modules/unidecode/data/x79.js
var require_x79 = __commonJS({
  "node_modules/unidecode/data/x79.js"(exports2, module2) {
    module2.exports = [
      "Tani ",
      "Jiao ",
      "[?] ",
      "Zhang ",
      "Qiao ",
      "Dun ",
      "Xian ",
      "Yu ",
      "Zhui ",
      "He ",
      "Huo ",
      "Zhai ",
      "Lei ",
      "Ke ",
      "Chu ",
      "Ji ",
      "Que ",
      "Dang ",
      "Yi ",
      "Jiang ",
      "Pi ",
      "Pi ",
      "Yu ",
      "Pin ",
      "Qi ",
      "Ai ",
      "Kai ",
      "Jian ",
      "Yu ",
      "Ruan ",
      "Meng ",
      "Pao ",
      "Ci ",
      "[?] ",
      "[?] ",
      "Mie ",
      "Ca ",
      "Xian ",
      "Kuang ",
      "Lei ",
      "Lei ",
      "Zhi ",
      "Li ",
      "Li ",
      "Fan ",
      "Que ",
      "Pao ",
      "Ying ",
      "Li ",
      "Long ",
      "Long ",
      "Mo ",
      "Bo ",
      "Shuang ",
      "Guan ",
      "Lan ",
      "Zan ",
      "Yan ",
      "Shi ",
      "Shi ",
      "Li ",
      "Reng ",
      "She ",
      "Yue ",
      "Si ",
      "Qi ",
      "Ta ",
      "Ma ",
      "Xie ",
      "Xian ",
      "Xian ",
      "Zhi ",
      "Qi ",
      "Zhi ",
      "Beng ",
      "Dui ",
      "Zhong ",
      "[?] ",
      "Yi ",
      "Shi ",
      "You ",
      "Zhi ",
      "Tiao ",
      "Fu ",
      "Fu ",
      "Mi ",
      "Zu ",
      "Zhi ",
      "Suan ",
      "Mei ",
      "Zuo ",
      "Qu ",
      "Hu ",
      "Zhu ",
      "Shen ",
      "Sui ",
      "Ci ",
      "Chai ",
      "Mi ",
      "Lu ",
      "Yu ",
      "Xiang ",
      "Wu ",
      "Tiao ",
      "Piao ",
      "Zhu ",
      "Gui ",
      "Xia ",
      "Zhi ",
      "Ji ",
      "Gao ",
      "Zhen ",
      "Gao ",
      "Shui ",
      "Jin ",
      "Chen ",
      "Gai ",
      "Kun ",
      "Di ",
      "Dao ",
      "Huo ",
      "Tao ",
      "Qi ",
      "Gu ",
      "Guan ",
      "Zui ",
      "Ling ",
      "Lu ",
      "Bing ",
      "Jin ",
      "Dao ",
      "Zhi ",
      "Lu ",
      "Shan ",
      "Bei ",
      "Zhe ",
      "Hui ",
      "You ",
      "Xi ",
      "Yin ",
      "Zi ",
      "Huo ",
      "Zhen ",
      "Fu ",
      "Yuan ",
      "Wu ",
      "Xian ",
      "Yang ",
      "Ti ",
      "Yi ",
      "Mei ",
      "Si ",
      "Di ",
      "[?] ",
      "Zhuo ",
      "Zhen ",
      "Yong ",
      "Ji ",
      "Gao ",
      "Tang ",
      "Si ",
      "Ma ",
      "Ta ",
      "[?] ",
      "Xuan ",
      "Qi ",
      "Yu ",
      "Xi ",
      "Ji ",
      "Si ",
      "Chan ",
      "Tan ",
      "Kuai ",
      "Sui ",
      "Li ",
      "Nong ",
      "Ni ",
      "Dao ",
      "Li ",
      "Rang ",
      "Yue ",
      "Ti ",
      "Zan ",
      "Lei ",
      "Rou ",
      "Yu ",
      "Yu ",
      "Chi ",
      "Xie ",
      "Qin ",
      "He ",
      "Tu ",
      "Xiu ",
      "Si ",
      "Ren ",
      "Tu ",
      "Zi ",
      "Cha ",
      "Gan ",
      "Yi ",
      "Xian ",
      "Bing ",
      "Nian ",
      "Qiu ",
      "Qiu ",
      "Chong ",
      "Fen ",
      "Hao ",
      "Yun ",
      "Ke ",
      "Miao ",
      "Zhi ",
      "Geng ",
      "Bi ",
      "Zhi ",
      "Yu ",
      "Mi ",
      "Ku ",
      "Ban ",
      "Pi ",
      "Ni ",
      "Li ",
      "You ",
      "Zu ",
      "Pi ",
      "Ba ",
      "Ling ",
      "Mo ",
      "Cheng ",
      "Nian ",
      "Qin ",
      "Yang ",
      "Zuo ",
      "Zhi ",
      "Zhi ",
      "Shu ",
      "Ju ",
      "Zi ",
      "Huo ",
      "Ji ",
      "Cheng ",
      "Tong ",
      "Zhi ",
      "Huo ",
      "He ",
      "Yin ",
      "Zi ",
      "Zhi ",
      "Jie ",
      "Ren ",
      "Du ",
      "Yi ",
      "Zhu ",
      "Hui ",
      "Nong ",
      "Fu "
    ];
  }
});

// node_modules/unidecode/data/x7a.js
var require_x7a = __commonJS({
  "node_modules/unidecode/data/x7a.js"(exports2, module2) {
    module2.exports = [
      "Xi ",
      "Kao ",
      "Lang ",
      "Fu ",
      "Ze ",
      "Shui ",
      "Lu ",
      "Kun ",
      "Gan ",
      "Geng ",
      "Ti ",
      "Cheng ",
      "Tu ",
      "Shao ",
      "Shui ",
      "Ya ",
      "Lun ",
      "Lu ",
      "Gu ",
      "Zuo ",
      "Ren ",
      "Zhun ",
      "Bang ",
      "Bai ",
      "Ji ",
      "Zhi ",
      "Zhi ",
      "Kun ",
      "Leng ",
      "Peng ",
      "Ke ",
      "Bing ",
      "Chou ",
      "Zu ",
      "Yu ",
      "Su ",
      "Lue ",
      "[?] ",
      "Yi ",
      "Xi ",
      "Bian ",
      "Ji ",
      "Fu ",
      "Bi ",
      "Nuo ",
      "Jie ",
      "Zhong ",
      "Zong ",
      "Xu ",
      "Cheng ",
      "Dao ",
      "Wen ",
      "Lian ",
      "Zi ",
      "Yu ",
      "Ji ",
      "Xu ",
      "Zhen ",
      "Zhi ",
      "Dao ",
      "Jia ",
      "Ji ",
      "Gao ",
      "Gao ",
      "Gu ",
      "Rong ",
      "Sui ",
      "You ",
      "Ji ",
      "Kang ",
      "Mu ",
      "Shan ",
      "Men ",
      "Zhi ",
      "Ji ",
      "Lu ",
      "Su ",
      "Ji ",
      "Ying ",
      "Wen ",
      "Qiu ",
      "Se ",
      "[?] ",
      "Yi ",
      "Huang ",
      "Qie ",
      "Ji ",
      "Sui ",
      "Xiao ",
      "Pu ",
      "Jiao ",
      "Zhuo ",
      "Tong ",
      "Sai ",
      "Lu ",
      "Sui ",
      "Nong ",
      "Se ",
      "Hui ",
      "Rang ",
      "Nuo ",
      "Yu ",
      "Bin ",
      "Ji ",
      "Tui ",
      "Wen ",
      "Cheng ",
      "Huo ",
      "Gong ",
      "Lu ",
      "Biao ",
      "[?] ",
      "Rang ",
      "Zhuo ",
      "Li ",
      "Zan ",
      "Xue ",
      "Wa ",
      "Jiu ",
      "Qiong ",
      "Xi ",
      "Qiong ",
      "Kong ",
      "Yu ",
      "Sen ",
      "Jing ",
      "Yao ",
      "Chuan ",
      "Zhun ",
      "Tu ",
      "Lao ",
      "Qie ",
      "Zhai ",
      "Yao ",
      "Bian ",
      "Bao ",
      "Yao ",
      "Bing ",
      "Wa ",
      "Zhu ",
      "Jiao ",
      "Qiao ",
      "Diao ",
      "Wu ",
      "Gui ",
      "Yao ",
      "Zhi ",
      "Chuang ",
      "Yao ",
      "Tiao ",
      "Jiao ",
      "Chuang ",
      "Jiong ",
      "Xiao ",
      "Cheng ",
      "Kou ",
      "Cuan ",
      "Wo ",
      "Dan ",
      "Ku ",
      "Ke ",
      "Zhui ",
      "Xu ",
      "Su ",
      "Guan ",
      "Kui ",
      "Dou ",
      "[?] ",
      "Yin ",
      "Wo ",
      "Wa ",
      "Ya ",
      "Yu ",
      "Ju ",
      "Qiong ",
      "Yao ",
      "Yao ",
      "Tiao ",
      "Chao ",
      "Yu ",
      "Tian ",
      "Diao ",
      "Ju ",
      "Liao ",
      "Xi ",
      "Wu ",
      "Kui ",
      "Chuang ",
      "Zhao ",
      "[?] ",
      "Kuan ",
      "Long ",
      "Cheng ",
      "Cui ",
      "Piao ",
      "Zao ",
      "Cuan ",
      "Qiao ",
      "Qiong ",
      "Dou ",
      "Zao ",
      "Long ",
      "Qie ",
      "Li ",
      "Chu ",
      "Shi ",
      "Fou ",
      "Qian ",
      "Chu ",
      "Hong ",
      "Qi ",
      "Qian ",
      "Gong ",
      "Shi ",
      "Shu ",
      "Miao ",
      "Ju ",
      "Zhan ",
      "Zhu ",
      "Ling ",
      "Long ",
      "Bing ",
      "Jing ",
      "Jing ",
      "Zhang ",
      "Yi ",
      "Si ",
      "Jun ",
      "Hong ",
      "Tong ",
      "Song ",
      "Jing ",
      "Diao ",
      "Yi ",
      "Shu ",
      "Jing ",
      "Qu ",
      "Jie ",
      "Ping ",
      "Duan ",
      "Shao ",
      "Zhuan ",
      "Ceng ",
      "Deng ",
      "Cui ",
      "Huai ",
      "Jing ",
      "Kan ",
      "Jing ",
      "Zhu ",
      "Zhu ",
      "Le ",
      "Peng ",
      "Yu ",
      "Chi ",
      "Gan "
    ];
  }
});

// node_modules/unidecode/data/x7b.js
var require_x7b = __commonJS({
  "node_modules/unidecode/data/x7b.js"(exports2, module2) {
    module2.exports = [
      "Mang ",
      "Zhu ",
      "Utsubo ",
      "Du ",
      "Ji ",
      "Xiao ",
      "Ba ",
      "Suan ",
      "Ji ",
      "Zhen ",
      "Zhao ",
      "Sun ",
      "Ya ",
      "Zhui ",
      "Yuan ",
      "Hu ",
      "Gang ",
      "Xiao ",
      "Cen ",
      "Pi ",
      "Bi ",
      "Jian ",
      "Yi ",
      "Dong ",
      "Shan ",
      "Sheng ",
      "Xia ",
      "Di ",
      "Zhu ",
      "Na ",
      "Chi ",
      "Gu ",
      "Li ",
      "Qie ",
      "Min ",
      "Bao ",
      "Tiao ",
      "Si ",
      "Fu ",
      "Ce ",
      "Ben ",
      "Pei ",
      "Da ",
      "Zi ",
      "Di ",
      "Ling ",
      "Ze ",
      "Nu ",
      "Fu ",
      "Gou ",
      "Fan ",
      "Jia ",
      "Ge ",
      "Fan ",
      "Shi ",
      "Mao ",
      "Po ",
      "Sey ",
      "Jian ",
      "Qiong ",
      "Long ",
      "Souke ",
      "Bian ",
      "Luo ",
      "Gui ",
      "Qu ",
      "Chi ",
      "Yin ",
      "Yao ",
      "Xian ",
      "Bi ",
      "Qiong ",
      "Gua ",
      "Deng ",
      "Jiao ",
      "Jin ",
      "Quan ",
      "Sun ",
      "Ru ",
      "Fa ",
      "Kuang ",
      "Zhu ",
      "Tong ",
      "Ji ",
      "Da ",
      "Xing ",
      "Ce ",
      "Zhong ",
      "Kou ",
      "Lai ",
      "Bi ",
      "Shai ",
      "Dang ",
      "Zheng ",
      "Ce ",
      "Fu ",
      "Yun ",
      "Tu ",
      "Pa ",
      "Li ",
      "Lang ",
      "Ju ",
      "Guan ",
      "Jian ",
      "Han ",
      "Tong ",
      "Xia ",
      "Zhi ",
      "Cheng ",
      "Suan ",
      "Shi ",
      "Zhu ",
      "Zuo ",
      "Xiao ",
      "Shao ",
      "Ting ",
      "Ce ",
      "Yan ",
      "Gao ",
      "Kuai ",
      "Gan ",
      "Chou ",
      "Kago ",
      "Gang ",
      "Yun ",
      "O ",
      "Qian ",
      "Xiao ",
      "Jian ",
      "Pu ",
      "Lai ",
      "Zou ",
      "Bi ",
      "Bi ",
      "Bi ",
      "Ge ",
      "Chi ",
      "Guai ",
      "Yu ",
      "Jian ",
      "Zhao ",
      "Gu ",
      "Chi ",
      "Zheng ",
      "Jing ",
      "Sha ",
      "Zhou ",
      "Lu ",
      "Bo ",
      "Ji ",
      "Lin ",
      "Suan ",
      "Jun ",
      "Fu ",
      "Zha ",
      "Gu ",
      "Kong ",
      "Qian ",
      "Quan ",
      "Jun ",
      "Chui ",
      "Guan ",
      "Yuan ",
      "Ce ",
      "Ju ",
      "Bo ",
      "Ze ",
      "Qie ",
      "Tuo ",
      "Luo ",
      "Dan ",
      "Xiao ",
      "Ruo ",
      "Jian ",
      "Xuan ",
      "Bian ",
      "Sun ",
      "Xiang ",
      "Xian ",
      "Ping ",
      "Zhen ",
      "Sheng ",
      "Hu ",
      "Shi ",
      "Zhu ",
      "Yue ",
      "Chun ",
      "Lu ",
      "Wu ",
      "Dong ",
      "Xiao ",
      "Ji ",
      "Jie ",
      "Huang ",
      "Xing ",
      "Mei ",
      "Fan ",
      "Chui ",
      "Zhuan ",
      "Pian ",
      "Feng ",
      "Zhu ",
      "Hong ",
      "Qie ",
      "Hou ",
      "Qiu ",
      "Miao ",
      "Qian ",
      "[?] ",
      "Kui ",
      "Sik ",
      "Lou ",
      "Yun ",
      "He ",
      "Tang ",
      "Yue ",
      "Chou ",
      "Gao ",
      "Fei ",
      "Ruo ",
      "Zheng ",
      "Gou ",
      "Nie ",
      "Qian ",
      "Xiao ",
      "Cuan ",
      "Gong ",
      "Pang ",
      "Du ",
      "Li ",
      "Bi ",
      "Zhuo ",
      "Chu ",
      "Shai ",
      "Chi ",
      "Zhu ",
      "Qiang ",
      "Long ",
      "Lan ",
      "Jian ",
      "Bu ",
      "Li ",
      "Hui ",
      "Bi ",
      "Di ",
      "Cong ",
      "Yan ",
      "Peng ",
      "Sen ",
      "Zhuan ",
      "Pai ",
      "Piao ",
      "Dou ",
      "Yu ",
      "Mie ",
      "Zhuan "
    ];
  }
});

// node_modules/unidecode/data/x7c.js
var require_x7c = __commonJS({
  "node_modules/unidecode/data/x7c.js"(exports2, module2) {
    module2.exports = [
      "Ze ",
      "Xi ",
      "Guo ",
      "Yi ",
      "Hu ",
      "Chan ",
      "Kou ",
      "Cu ",
      "Ping ",
      "Chou ",
      "Ji ",
      "Gui ",
      "Su ",
      "Lou ",
      "Zha ",
      "Lu ",
      "Nian ",
      "Suo ",
      "Cuan ",
      "Sasara ",
      "Suo ",
      "Le ",
      "Duan ",
      "Yana ",
      "Xiao ",
      "Bo ",
      "Mi ",
      "Si ",
      "Dang ",
      "Liao ",
      "Dan ",
      "Dian ",
      "Fu ",
      "Jian ",
      "Min ",
      "Kui ",
      "Dai ",
      "Qiao ",
      "Deng ",
      "Huang ",
      "Sun ",
      "Lao ",
      "Zan ",
      "Xiao ",
      "Du ",
      "Shi ",
      "Zan ",
      "[?] ",
      "Pai ",
      "Hata ",
      "Pai ",
      "Gan ",
      "Ju ",
      "Du ",
      "Lu ",
      "Yan ",
      "Bo ",
      "Dang ",
      "Sai ",
      "Ke ",
      "Long ",
      "Qian ",
      "Lian ",
      "Bo ",
      "Zhou ",
      "Lai ",
      "[?] ",
      "Lan ",
      "Kui ",
      "Yu ",
      "Yue ",
      "Hao ",
      "Zhen ",
      "Tai ",
      "Ti ",
      "Mi ",
      "Chou ",
      "Ji ",
      "[?] ",
      "Hata ",
      "Teng ",
      "Zhuan ",
      "Zhou ",
      "Fan ",
      "Sou ",
      "Zhou ",
      "Kuji ",
      "Zhuo ",
      "Teng ",
      "Lu ",
      "Lu ",
      "Jian ",
      "Tuo ",
      "Ying ",
      "Yu ",
      "Lai ",
      "Long ",
      "Shinshi ",
      "Lian ",
      "Lan ",
      "Qian ",
      "Yue ",
      "Zhong ",
      "Qu ",
      "Lian ",
      "Bian ",
      "Duan ",
      "Zuan ",
      "Li ",
      "Si ",
      "Luo ",
      "Ying ",
      "Yue ",
      "Zhuo ",
      "Xu ",
      "Mi ",
      "Di ",
      "Fan ",
      "Shen ",
      "Zhe ",
      "Shen ",
      "Nu ",
      "Xie ",
      "Lei ",
      "Xian ",
      "Zi ",
      "Ni ",
      "Cun ",
      "[?] ",
      "Qian ",
      "Kume ",
      "Bi ",
      "Ban ",
      "Wu ",
      "Sha ",
      "Kang ",
      "Rou ",
      "Fen ",
      "Bi ",
      "Cui ",
      "[?] ",
      "Li ",
      "Chi ",
      "Nukamiso ",
      "Ro ",
      "Ba ",
      "Li ",
      "Gan ",
      "Ju ",
      "Po ",
      "Mo ",
      "Cu ",
      "Nian ",
      "Zhou ",
      "Li ",
      "Su ",
      "Tiao ",
      "Li ",
      "Qi ",
      "Su ",
      "Hong ",
      "Tong ",
      "Zi ",
      "Ce ",
      "Yue ",
      "Zhou ",
      "Lin ",
      "Zhuang ",
      "Bai ",
      "[?] ",
      "Fen ",
      "Ji ",
      "[?] ",
      "Sukumo ",
      "Liang ",
      "Xian ",
      "Fu ",
      "Liang ",
      "Can ",
      "Geng ",
      "Li ",
      "Yue ",
      "Lu ",
      "Ju ",
      "Qi ",
      "Cui ",
      "Bai ",
      "Zhang ",
      "Lin ",
      "Zong ",
      "Jing ",
      "Guo ",
      "Kouji ",
      "San ",
      "San ",
      "Tang ",
      "Bian ",
      "Rou ",
      "Mian ",
      "Hou ",
      "Xu ",
      "Zong ",
      "Hu ",
      "Jian ",
      "Zan ",
      "Ci ",
      "Li ",
      "Xie ",
      "Fu ",
      "Ni ",
      "Bei ",
      "Gu ",
      "Xiu ",
      "Gao ",
      "Tang ",
      "Qiu ",
      "Sukumo ",
      "Cao ",
      "Zhuang ",
      "Tang ",
      "Mi ",
      "San ",
      "Fen ",
      "Zao ",
      "Kang ",
      "Jiang ",
      "Mo ",
      "San ",
      "San ",
      "Nuo ",
      "Xi ",
      "Liang ",
      "Jiang ",
      "Kuai ",
      "Bo ",
      "Huan ",
      "[?] ",
      "Zong ",
      "Xian ",
      "Nuo ",
      "Tuan ",
      "Nie ",
      "Li ",
      "Zuo ",
      "Di ",
      "Nie ",
      "Tiao ",
      "Lan ",
      "Mi ",
      "Jiao ",
      "Jiu ",
      "Xi ",
      "Gong ",
      "Zheng ",
      "Jiu ",
      "You "
    ];
  }
});

// node_modules/unidecode/data/x7d.js
var require_x7d = __commonJS({
  "node_modules/unidecode/data/x7d.js"(exports2, module2) {
    module2.exports = [
      "Ji ",
      "Cha ",
      "Zhou ",
      "Xun ",
      "Yue ",
      "Hong ",
      "Yu ",
      "He ",
      "Wan ",
      "Ren ",
      "Wen ",
      "Wen ",
      "Qiu ",
      "Na ",
      "Zi ",
      "Tou ",
      "Niu ",
      "Fou ",
      "Jie ",
      "Shu ",
      "Chun ",
      "Pi ",
      "Yin ",
      "Sha ",
      "Hong ",
      "Zhi ",
      "Ji ",
      "Fen ",
      "Yun ",
      "Ren ",
      "Dan ",
      "Jin ",
      "Su ",
      "Fang ",
      "Suo ",
      "Cui ",
      "Jiu ",
      "Zha ",
      "Kinu ",
      "Jin ",
      "Fu ",
      "Zhi ",
      "Ci ",
      "Zi ",
      "Chou ",
      "Hong ",
      "Zha ",
      "Lei ",
      "Xi ",
      "Fu ",
      "Xie ",
      "Shen ",
      "Bei ",
      "Zhu ",
      "Qu ",
      "Ling ",
      "Zhu ",
      "Shao ",
      "Gan ",
      "Yang ",
      "Fu ",
      "Tuo ",
      "Zhen ",
      "Dai ",
      "Zhuo ",
      "Shi ",
      "Zhong ",
      "Xian ",
      "Zu ",
      "Jiong ",
      "Ban ",
      "Ju ",
      "Mo ",
      "Shu ",
      "Zui ",
      "Wata ",
      "Jing ",
      "Ren ",
      "Heng ",
      "Xie ",
      "Jie ",
      "Zhu ",
      "Chou ",
      "Gua ",
      "Bai ",
      "Jue ",
      "Kuang ",
      "Hu ",
      "Ci ",
      "Geng ",
      "Geng ",
      "Tao ",
      "Xie ",
      "Ku ",
      "Jiao ",
      "Quan ",
      "Gai ",
      "Luo ",
      "Xuan ",
      "Bing ",
      "Xian ",
      "Fu ",
      "Gei ",
      "Tong ",
      "Rong ",
      "Tiao ",
      "Yin ",
      "Lei ",
      "Xie ",
      "Quan ",
      "Xu ",
      "Lun ",
      "Die ",
      "Tong ",
      "Si ",
      "Jiang ",
      "Xiang ",
      "Hui ",
      "Jue ",
      "Zhi ",
      "Jian ",
      "Juan ",
      "Chi ",
      "Mian ",
      "Zhen ",
      "Lu ",
      "Cheng ",
      "Qiu ",
      "Shu ",
      "Bang ",
      "Tong ",
      "Xiao ",
      "Wan ",
      "Qin ",
      "Geng ",
      "Xiu ",
      "Ti ",
      "Xiu ",
      "Xie ",
      "Hong ",
      "Xi ",
      "Fu ",
      "Ting ",
      "Sui ",
      "Dui ",
      "Kun ",
      "Fu ",
      "Jing ",
      "Hu ",
      "Zhi ",
      "Yan ",
      "Jiong ",
      "Feng ",
      "Ji ",
      "Sok ",
      "Kase ",
      "Zong ",
      "Lin ",
      "Duo ",
      "Li ",
      "Lu ",
      "Liang ",
      "Chou ",
      "Quan ",
      "Shao ",
      "Qi ",
      "Qi ",
      "Zhun ",
      "Qi ",
      "Wan ",
      "Qian ",
      "Xian ",
      "Shou ",
      "Wei ",
      "Qi ",
      "Tao ",
      "Wan ",
      "Gang ",
      "Wang ",
      "Beng ",
      "Zhui ",
      "Cai ",
      "Guo ",
      "Cui ",
      "Lun ",
      "Liu ",
      "Qi ",
      "Zhan ",
      "Bei ",
      "Chuo ",
      "Ling ",
      "Mian ",
      "Qi ",
      "Qie ",
      "Tan ",
      "Zong ",
      "Gun ",
      "Zou ",
      "Yi ",
      "Zi ",
      "Xing ",
      "Liang ",
      "Jin ",
      "Fei ",
      "Rui ",
      "Min ",
      "Yu ",
      "Zong ",
      "Fan ",
      "Lu ",
      "Xu ",
      "Yingl ",
      "Zhang ",
      "Kasuri ",
      "Xu ",
      "Xiang ",
      "Jian ",
      "Ke ",
      "Xian ",
      "Ruan ",
      "Mian ",
      "Qi ",
      "Duan ",
      "Zhong ",
      "Di ",
      "Min ",
      "Miao ",
      "Yuan ",
      "Xie ",
      "Bao ",
      "Si ",
      "Qiu ",
      "Bian ",
      "Huan ",
      "Geng ",
      "Cong ",
      "Mian ",
      "Wei ",
      "Fu ",
      "Wei ",
      "Yu ",
      "Gou ",
      "Miao ",
      "Xie ",
      "Lian ",
      "Zong ",
      "Bian ",
      "Yun ",
      "Yin ",
      "Ti ",
      "Gua ",
      "Zhi ",
      "Yun ",
      "Cheng ",
      "Chan ",
      "Dai "
    ];
  }
});

// node_modules/unidecode/data/x7e.js
var require_x7e = __commonJS({
  "node_modules/unidecode/data/x7e.js"(exports2, module2) {
    module2.exports = [
      "Xia ",
      "Yuan ",
      "Zong ",
      "Xu ",
      "Nawa ",
      "Odoshi ",
      "Geng ",
      "Sen ",
      "Ying ",
      "Jin ",
      "Yi ",
      "Zhui ",
      "Ni ",
      "Bang ",
      "Gu ",
      "Pan ",
      "Zhou ",
      "Jian ",
      "Cuo ",
      "Quan ",
      "Shuang ",
      "Yun ",
      "Xia ",
      "Shuai ",
      "Xi ",
      "Rong ",
      "Tao ",
      "Fu ",
      "Yun ",
      "Zhen ",
      "Gao ",
      "Ru ",
      "Hu ",
      "Zai ",
      "Teng ",
      "Xian ",
      "Su ",
      "Zhen ",
      "Zong ",
      "Tao ",
      "Horo ",
      "Cai ",
      "Bi ",
      "Feng ",
      "Cu ",
      "Li ",
      "Suo ",
      "Yin ",
      "Xi ",
      "Zong ",
      "Lei ",
      "Zhuan ",
      "Qian ",
      "Man ",
      "Zhi ",
      "Lu ",
      "Mo ",
      "Piao ",
      "Lian ",
      "Mi ",
      "Xuan ",
      "Zong ",
      "Ji ",
      "Shan ",
      "Sui ",
      "Fan ",
      "Shuai ",
      "Beng ",
      "Yi ",
      "Sao ",
      "Mou ",
      "Zhou ",
      "Qiang ",
      "Hun ",
      "Sem ",
      "Xi ",
      "Jung ",
      "Xiu ",
      "Ran ",
      "Xuan ",
      "Hui ",
      "Qiao ",
      "Zeng ",
      "Zuo ",
      "Zhi ",
      "Shan ",
      "San ",
      "Lin ",
      "Yu ",
      "Fan ",
      "Liao ",
      "Chuo ",
      "Zun ",
      "Jian ",
      "Rao ",
      "Chan ",
      "Rui ",
      "Xiu ",
      "Hui ",
      "Hua ",
      "Zuan ",
      "Xi ",
      "Qiang ",
      "Un ",
      "Da ",
      "Sheng ",
      "Hui ",
      "Xi ",
      "Se ",
      "Jian ",
      "Jiang ",
      "Huan ",
      "Zao ",
      "Cong ",
      "Jie ",
      "Jiao ",
      "Bo ",
      "Chan ",
      "Yi ",
      "Nao ",
      "Sui ",
      "Yi ",
      "Shai ",
      "Xu ",
      "Ji ",
      "Bin ",
      "Qian ",
      "Lan ",
      "Pu ",
      "Xun ",
      "Zuan ",
      "Qi ",
      "Peng ",
      "Li ",
      "Mo ",
      "Lei ",
      "Xie ",
      "Zuan ",
      "Kuang ",
      "You ",
      "Xu ",
      "Lei ",
      "Xian ",
      "Chan ",
      "Kou ",
      "Lu ",
      "Chan ",
      "Ying ",
      "Cai ",
      "Xiang ",
      "Xian ",
      "Zui ",
      "Zuan ",
      "Luo ",
      "Xi ",
      "Dao ",
      "Lan ",
      "Lei ",
      "Lian ",
      "Si ",
      "Jiu ",
      "Yu ",
      "Hong ",
      "Zhou ",
      "Xian ",
      "He ",
      "Yue ",
      "Ji ",
      "Wan ",
      "Kuang ",
      "Ji ",
      "Ren ",
      "Wei ",
      "Yun ",
      "Hong ",
      "Chun ",
      "Pi ",
      "Sha ",
      "Gang ",
      "Na ",
      "Ren ",
      "Zong ",
      "Lun ",
      "Fen ",
      "Zhi ",
      "Wen ",
      "Fang ",
      "Zhu ",
      "Yin ",
      "Niu ",
      "Shu ",
      "Xian ",
      "Gan ",
      "Xie ",
      "Fu ",
      "Lian ",
      "Zu ",
      "Shen ",
      "Xi ",
      "Zhi ",
      "Zhong ",
      "Zhou ",
      "Ban ",
      "Fu ",
      "Zhuo ",
      "Shao ",
      "Yi ",
      "Jing ",
      "Dai ",
      "Bang ",
      "Rong ",
      "Jie ",
      "Ku ",
      "Rao ",
      "Die ",
      "Heng ",
      "Hui ",
      "Gei ",
      "Xuan ",
      "Jiang ",
      "Luo ",
      "Jue ",
      "Jiao ",
      "Tong ",
      "Geng ",
      "Xiao ",
      "Juan ",
      "Xiu ",
      "Xi ",
      "Sui ",
      "Tao ",
      "Ji ",
      "Ti ",
      "Ji ",
      "Xu ",
      "Ling ",
      "[?] ",
      "Xu ",
      "Qi ",
      "Fei ",
      "Chuo ",
      "Zhang ",
      "Gun ",
      "Sheng ",
      "Wei ",
      "Mian ",
      "Shou ",
      "Beng ",
      "Chou ",
      "Tao ",
      "Liu ",
      "Quan ",
      "Zong ",
      "Zhan ",
      "Wan ",
      "Lu "
    ];
  }
});

// node_modules/unidecode/data/x7f.js
var require_x7f = __commonJS({
  "node_modules/unidecode/data/x7f.js"(exports2, module2) {
    module2.exports = [
      "Zhui ",
      "Zi ",
      "Ke ",
      "Xiang ",
      "Jian ",
      "Mian ",
      "Lan ",
      "Ti ",
      "Miao ",
      "Qi ",
      "Yun ",
      "Hui ",
      "Si ",
      "Duo ",
      "Duan ",
      "Bian ",
      "Xian ",
      "Gou ",
      "Zhui ",
      "Huan ",
      "Di ",
      "Lu ",
      "Bian ",
      "Min ",
      "Yuan ",
      "Jin ",
      "Fu ",
      "Ru ",
      "Zhen ",
      "Feng ",
      "Shuai ",
      "Gao ",
      "Chan ",
      "Li ",
      "Yi ",
      "Jian ",
      "Bin ",
      "Piao ",
      "Man ",
      "Lei ",
      "Ying ",
      "Suo ",
      "Mou ",
      "Sao ",
      "Xie ",
      "Liao ",
      "Shan ",
      "Zeng ",
      "Jiang ",
      "Qian ",
      "Zao ",
      "Huan ",
      "Jiao ",
      "Zuan ",
      "Fou ",
      "Xie ",
      "Gang ",
      "Fou ",
      "Que ",
      "Fou ",
      "Kaakeru ",
      "Bo ",
      "Ping ",
      "Hou ",
      "[?] ",
      "Gang ",
      "Ying ",
      "Ying ",
      "Qing ",
      "Xia ",
      "Guan ",
      "Zun ",
      "Tan ",
      "Chang ",
      "Qi ",
      "Weng ",
      "Ying ",
      "Lei ",
      "Tan ",
      "Lu ",
      "Guan ",
      "Wang ",
      "Wang ",
      "Gang ",
      "Wang ",
      "Han ",
      "[?] ",
      "Luo ",
      "Fu ",
      "Mi ",
      "Fa ",
      "Gu ",
      "Zhu ",
      "Ju ",
      "Mao ",
      "Gu ",
      "Min ",
      "Gang ",
      "Ba ",
      "Gua ",
      "Ti ",
      "Juan ",
      "Fu ",
      "Lin ",
      "Yan ",
      "Zhao ",
      "Zui ",
      "Gua ",
      "Zhuo ",
      "Yu ",
      "Zhi ",
      "An ",
      "Fa ",
      "Nan ",
      "Shu ",
      "Si ",
      "Pi ",
      "Ma ",
      "Liu ",
      "Ba ",
      "Fa ",
      "Li ",
      "Chao ",
      "Wei ",
      "Bi ",
      "Ji ",
      "Zeng ",
      "Tong ",
      "Liu ",
      "Ji ",
      "Juan ",
      "Mi ",
      "Zhao ",
      "Luo ",
      "Pi ",
      "Ji ",
      "Ji ",
      "Luan ",
      "Yang ",
      "Mie ",
      "Qiang ",
      "Ta ",
      "Mei ",
      "Yang ",
      "You ",
      "You ",
      "Fen ",
      "Ba ",
      "Gao ",
      "Yang ",
      "Gu ",
      "Qiang ",
      "Zang ",
      "Gao ",
      "Ling ",
      "Yi ",
      "Zhu ",
      "Di ",
      "Xiu ",
      "Qian ",
      "Yi ",
      "Xian ",
      "Rong ",
      "Qun ",
      "Qun ",
      "Qian ",
      "Huan ",
      "Zui ",
      "Xian ",
      "Yi ",
      "Yashinau ",
      "Qiang ",
      "Xian ",
      "Yu ",
      "Geng ",
      "Jie ",
      "Tang ",
      "Yuan ",
      "Xi ",
      "Fan ",
      "Shan ",
      "Fen ",
      "Shan ",
      "Lian ",
      "Lei ",
      "Geng ",
      "Nou ",
      "Qiang ",
      "Chan ",
      "Yu ",
      "Gong ",
      "Yi ",
      "Chong ",
      "Weng ",
      "Fen ",
      "Hong ",
      "Chi ",
      "Chi ",
      "Cui ",
      "Fu ",
      "Xia ",
      "Pen ",
      "Yi ",
      "La ",
      "Yi ",
      "Pi ",
      "Ling ",
      "Liu ",
      "Zhi ",
      "Qu ",
      "Xi ",
      "Xie ",
      "Xiang ",
      "Xi ",
      "Xi ",
      "Qi ",
      "Qiao ",
      "Hui ",
      "Hui ",
      "Xiao ",
      "Se ",
      "Hong ",
      "Jiang ",
      "Di ",
      "Cui ",
      "Fei ",
      "Tao ",
      "Sha ",
      "Chi ",
      "Zhu ",
      "Jian ",
      "Xuan ",
      "Shi ",
      "Pian ",
      "Zong ",
      "Wan ",
      "Hui ",
      "Hou ",
      "He ",
      "He ",
      "Han ",
      "Ao ",
      "Piao ",
      "Yi ",
      "Lian ",
      "Qu ",
      "[?] ",
      "Lin ",
      "Pen ",
      "Qiao ",
      "Ao ",
      "Fan ",
      "Yi ",
      "Hui ",
      "Xuan ",
      "Dao "
    ];
  }
});

// node_modules/unidecode/data/x80.js
var require_x80 = __commonJS({
  "node_modules/unidecode/data/x80.js"(exports2, module2) {
    module2.exports = [
      "Yao ",
      "Lao ",
      "[?] ",
      "Kao ",
      "Mao ",
      "Zhe ",
      "Qi ",
      "Gou ",
      "Gou ",
      "Gou ",
      "Die ",
      "Die ",
      "Er ",
      "Shua ",
      "Ruan ",
      "Er ",
      "Nai ",
      "Zhuan ",
      "Lei ",
      "Ting ",
      "Zi ",
      "Geng ",
      "Chao ",
      "Hao ",
      "Yun ",
      "Pa ",
      "Pi ",
      "Chi ",
      "Si ",
      "Chu ",
      "Jia ",
      "Ju ",
      "He ",
      "Chu ",
      "Lao ",
      "Lun ",
      "Ji ",
      "Tang ",
      "Ou ",
      "Lou ",
      "Nou ",
      "Gou ",
      "Pang ",
      "Ze ",
      "Lou ",
      "Ji ",
      "Lao ",
      "Huo ",
      "You ",
      "Mo ",
      "Huai ",
      "Er ",
      "Zhe ",
      "Ting ",
      "Ye ",
      "Da ",
      "Song ",
      "Qin ",
      "Yun ",
      "Chi ",
      "Dan ",
      "Dan ",
      "Hong ",
      "Geng ",
      "Zhi ",
      "[?] ",
      "Nie ",
      "Dan ",
      "Zhen ",
      "Che ",
      "Ling ",
      "Zheng ",
      "You ",
      "Wa ",
      "Liao ",
      "Long ",
      "Zhi ",
      "Ning ",
      "Tiao ",
      "Er ",
      "Ya ",
      "Die ",
      "Gua ",
      "[?] ",
      "Lian ",
      "Hao ",
      "Sheng ",
      "Lie ",
      "Pin ",
      "Jing ",
      "Ju ",
      "Bi ",
      "Di ",
      "Guo ",
      "Wen ",
      "Xu ",
      "Ping ",
      "Cong ",
      "Shikato ",
      "[?] ",
      "Ting ",
      "Yu ",
      "Cong ",
      "Kui ",
      "Tsuraneru ",
      "Kui ",
      "Cong ",
      "Lian ",
      "Weng ",
      "Kui ",
      "Lian ",
      "Lian ",
      "Cong ",
      "Ao ",
      "Sheng ",
      "Song ",
      "Ting ",
      "Kui ",
      "Nie ",
      "Zhi ",
      "Dan ",
      "Ning ",
      "Qie ",
      "Ji ",
      "Ting ",
      "Ting ",
      "Long ",
      "Yu ",
      "Yu ",
      "Zhao ",
      "Si ",
      "Su ",
      "Yi ",
      "Su ",
      "Si ",
      "Zhao ",
      "Zhao ",
      "Rou ",
      "Yi ",
      "Le ",
      "Ji ",
      "Qiu ",
      "Ken ",
      "Cao ",
      "Ge ",
      "Di ",
      "Huan ",
      "Huang ",
      "Yi ",
      "Ren ",
      "Xiao ",
      "Ru ",
      "Zhou ",
      "Yuan ",
      "Du ",
      "Gang ",
      "Rong ",
      "Gan ",
      "Cha ",
      "Wo ",
      "Chang ",
      "Gu ",
      "Zhi ",
      "Han ",
      "Fu ",
      "Fei ",
      "Fen ",
      "Pei ",
      "Pang ",
      "Jian ",
      "Fang ",
      "Zhun ",
      "You ",
      "Na ",
      "Hang ",
      "Ken ",
      "Ran ",
      "Gong ",
      "Yu ",
      "Wen ",
      "Yao ",
      "Jin ",
      "Pi ",
      "Qian ",
      "Xi ",
      "Xi ",
      "Fei ",
      "Ken ",
      "Jing ",
      "Tai ",
      "Shen ",
      "Zhong ",
      "Zhang ",
      "Xie ",
      "Shen ",
      "Wei ",
      "Zhou ",
      "Die ",
      "Dan ",
      "Fei ",
      "Ba ",
      "Bo ",
      "Qu ",
      "Tian ",
      "Bei ",
      "Gua ",
      "Tai ",
      "Zi ",
      "Ku ",
      "Zhi ",
      "Ni ",
      "Ping ",
      "Zi ",
      "Fu ",
      "Pang ",
      "Zhen ",
      "Xian ",
      "Zuo ",
      "Pei ",
      "Jia ",
      "Sheng ",
      "Zhi ",
      "Bao ",
      "Mu ",
      "Qu ",
      "Hu ",
      "Ke ",
      "Yi ",
      "Yin ",
      "Xu ",
      "Yang ",
      "Long ",
      "Dong ",
      "Ka ",
      "Lu ",
      "Jing ",
      "Nu ",
      "Yan ",
      "Pang ",
      "Kua ",
      "Yi ",
      "Guang ",
      "Gai ",
      "Ge ",
      "Dong ",
      "Zhi ",
      "Xiao ",
      "Xiong ",
      "Xiong ",
      "Er ",
      "E ",
      "Xing ",
      "Pian ",
      "Neng ",
      "Zi ",
      "Gui "
    ];
  }
});

// node_modules/unidecode/data/x81.js
var require_x81 = __commonJS({
  "node_modules/unidecode/data/x81.js"(exports2, module2) {
    module2.exports = [
      "Cheng ",
      "Tiao ",
      "Zhi ",
      "Cui ",
      "Mei ",
      "Xie ",
      "Cui ",
      "Xie ",
      "Mo ",
      "Mai ",
      "Ji ",
      "Obiyaakasu ",
      "[?] ",
      "Kuai ",
      "Sa ",
      "Zang ",
      "Qi ",
      "Nao ",
      "Mi ",
      "Nong ",
      "Luan ",
      "Wan ",
      "Bo ",
      "Wen ",
      "Guan ",
      "Qiu ",
      "Jiao ",
      "Jing ",
      "Rou ",
      "Heng ",
      "Cuo ",
      "Lie ",
      "Shan ",
      "Ting ",
      "Mei ",
      "Chun ",
      "Shen ",
      "Xie ",
      "De ",
      "Zui ",
      "Cu ",
      "Xiu ",
      "Xin ",
      "Tuo ",
      "Pao ",
      "Cheng ",
      "Nei ",
      "Fu ",
      "Dou ",
      "Tuo ",
      "Niao ",
      "Noy ",
      "Pi ",
      "Gu ",
      "Gua ",
      "Li ",
      "Lian ",
      "Zhang ",
      "Cui ",
      "Jie ",
      "Liang ",
      "Zhou ",
      "Pi ",
      "Biao ",
      "Lun ",
      "Pian ",
      "Guo ",
      "Kui ",
      "Chui ",
      "Dan ",
      "Tian ",
      "Nei ",
      "Jing ",
      "Jie ",
      "La ",
      "Yi ",
      "An ",
      "Ren ",
      "Shen ",
      "Chuo ",
      "Fu ",
      "Fu ",
      "Ju ",
      "Fei ",
      "Qiang ",
      "Wan ",
      "Dong ",
      "Pi ",
      "Guo ",
      "Zong ",
      "Ding ",
      "Wu ",
      "Mei ",
      "Ruan ",
      "Zhuan ",
      "Zhi ",
      "Cou ",
      "Gua ",
      "Ou ",
      "Di ",
      "An ",
      "Xing ",
      "Nao ",
      "Yu ",
      "Chuan ",
      "Nan ",
      "Yun ",
      "Zhong ",
      "Rou ",
      "E ",
      "Sai ",
      "Tu ",
      "Yao ",
      "Jian ",
      "Wei ",
      "Jiao ",
      "Yu ",
      "Jia ",
      "Duan ",
      "Bi ",
      "Chang ",
      "Fu ",
      "Xian ",
      "Ni ",
      "Mian ",
      "Wa ",
      "Teng ",
      "Tui ",
      "Bang ",
      "Qian ",
      "Lu ",
      "Wa ",
      "Sou ",
      "Tang ",
      "Su ",
      "Zhui ",
      "Ge ",
      "Yi ",
      "Bo ",
      "Liao ",
      "Ji ",
      "Pi ",
      "Xie ",
      "Gao ",
      "Lu ",
      "Bin ",
      "Ou ",
      "Chang ",
      "Lu ",
      "Guo ",
      "Pang ",
      "Chuai ",
      "Piao ",
      "Jiang ",
      "Fu ",
      "Tang ",
      "Mo ",
      "Xi ",
      "Zhuan ",
      "Lu ",
      "Jiao ",
      "Ying ",
      "Lu ",
      "Zhi ",
      "Tara ",
      "Chun ",
      "Lian ",
      "Tong ",
      "Peng ",
      "Ni ",
      "Zha ",
      "Liao ",
      "Cui ",
      "Gui ",
      "Xiao ",
      "Teng ",
      "Fan ",
      "Zhi ",
      "Jiao ",
      "Shan ",
      "Wu ",
      "Cui ",
      "Run ",
      "Xiang ",
      "Sui ",
      "Fen ",
      "Ying ",
      "Tan ",
      "Zhua ",
      "Dan ",
      "Kuai ",
      "Nong ",
      "Tun ",
      "Lian ",
      "Bi ",
      "Yong ",
      "Jue ",
      "Chu ",
      "Yi ",
      "Juan ",
      "La ",
      "Lian ",
      "Sao ",
      "Tun ",
      "Gu ",
      "Qi ",
      "Cui ",
      "Bin ",
      "Xun ",
      "Ru ",
      "Huo ",
      "Zang ",
      "Xian ",
      "Biao ",
      "Xing ",
      "Kuan ",
      "La ",
      "Yan ",
      "Lu ",
      "Huo ",
      "Zang ",
      "Luo ",
      "Qu ",
      "Zang ",
      "Luan ",
      "Ni ",
      "Zang ",
      "Chen ",
      "Qian ",
      "Wo ",
      "Guang ",
      "Zang ",
      "Lin ",
      "Guang ",
      "Zi ",
      "Jiao ",
      "Nie ",
      "Chou ",
      "Ji ",
      "Gao ",
      "Chou ",
      "Mian ",
      "Nie ",
      "Zhi ",
      "Zhi ",
      "Ge ",
      "Jian ",
      "Die ",
      "Zhi ",
      "Xiu ",
      "Tai ",
      "Zhen ",
      "Jiu ",
      "Xian ",
      "Yu ",
      "Cha "
    ];
  }
});

// node_modules/unidecode/data/x82.js
var require_x82 = __commonJS({
  "node_modules/unidecode/data/x82.js"(exports2, module2) {
    module2.exports = [
      "Yao ",
      "Yu ",
      "Chong ",
      "Xi ",
      "Xi ",
      "Jiu ",
      "Yu ",
      "Yu ",
      "Xing ",
      "Ju ",
      "Jiu ",
      "Xin ",
      "She ",
      "She ",
      "Yadoru ",
      "Jiu ",
      "Shi ",
      "Tan ",
      "Shu ",
      "Shi ",
      "Tian ",
      "Dan ",
      "Pu ",
      "Pu ",
      "Guan ",
      "Hua ",
      "Tan ",
      "Chuan ",
      "Shun ",
      "Xia ",
      "Wu ",
      "Zhou ",
      "Dao ",
      "Gang ",
      "Shan ",
      "Yi ",
      "[?] ",
      "Pa ",
      "Tai ",
      "Fan ",
      "Ban ",
      "Chuan ",
      "Hang ",
      "Fang ",
      "Ban ",
      "Que ",
      "Hesaki ",
      "Zhong ",
      "Jian ",
      "Cang ",
      "Ling ",
      "Zhu ",
      "Ze ",
      "Duo ",
      "Bo ",
      "Xian ",
      "Ge ",
      "Chuan ",
      "Jia ",
      "Lu ",
      "Hong ",
      "Pang ",
      "Xi ",
      "[?] ",
      "Fu ",
      "Zao ",
      "Feng ",
      "Li ",
      "Shao ",
      "Yu ",
      "Lang ",
      "Ting ",
      "[?] ",
      "Wei ",
      "Bo ",
      "Meng ",
      "Nian ",
      "Ju ",
      "Huang ",
      "Shou ",
      "Zong ",
      "Bian ",
      "Mao ",
      "Die ",
      "[?] ",
      "Bang ",
      "Cha ",
      "Yi ",
      "Sao ",
      "Cang ",
      "Cao ",
      "Lou ",
      "Dai ",
      "Sori ",
      "Yao ",
      "Tong ",
      "Yofune ",
      "Dang ",
      "Tan ",
      "Lu ",
      "Yi ",
      "Jie ",
      "Jian ",
      "Huo ",
      "Meng ",
      "Qi ",
      "Lu ",
      "Lu ",
      "Chan ",
      "Shuang ",
      "Gen ",
      "Liang ",
      "Jian ",
      "Jian ",
      "Se ",
      "Yan ",
      "Fu ",
      "Ping ",
      "Yan ",
      "Yan ",
      "Cao ",
      "Cao ",
      "Yi ",
      "Le ",
      "Ting ",
      "Qiu ",
      "Ai ",
      "Nai ",
      "Tiao ",
      "Jiao ",
      "Jie ",
      "Peng ",
      "Wan ",
      "Yi ",
      "Chai ",
      "Mian ",
      "Mie ",
      "Gan ",
      "Qian ",
      "Yu ",
      "Yu ",
      "Shuo ",
      "Qiong ",
      "Tu ",
      "Xia ",
      "Qi ",
      "Mang ",
      "Zi ",
      "Hui ",
      "Sui ",
      "Zhi ",
      "Xiang ",
      "Bi ",
      "Fu ",
      "Tun ",
      "Wei ",
      "Wu ",
      "Zhi ",
      "Qi ",
      "Shan ",
      "Wen ",
      "Qian ",
      "Ren ",
      "Fou ",
      "Kou ",
      "Jie ",
      "Lu ",
      "Xu ",
      "Ji ",
      "Qin ",
      "Qi ",
      "Yuan ",
      "Fen ",
      "Ba ",
      "Rui ",
      "Xin ",
      "Ji ",
      "Hua ",
      "Hua ",
      "Fang ",
      "Wu ",
      "Jue ",
      "Gou ",
      "Zhi ",
      "Yun ",
      "Qin ",
      "Ao ",
      "Chu ",
      "Mao ",
      "Ya ",
      "Fei ",
      "Reng ",
      "Hang ",
      "Cong ",
      "Yin ",
      "You ",
      "Bian ",
      "Yi ",
      "Susa ",
      "Wei ",
      "Li ",
      "Pi ",
      "E ",
      "Xian ",
      "Chang ",
      "Cang ",
      "Meng ",
      "Su ",
      "Yi ",
      "Yuan ",
      "Ran ",
      "Ling ",
      "Tai ",
      "Tiao ",
      "Di ",
      "Miao ",
      "Qiong ",
      "Li ",
      "Yong ",
      "Ke ",
      "Mu ",
      "Pei ",
      "Bao ",
      "Gou ",
      "Min ",
      "Yi ",
      "Yi ",
      "Ju ",
      "Pi ",
      "Ruo ",
      "Ku ",
      "Zhu ",
      "Ni ",
      "Bo ",
      "Bing ",
      "Shan ",
      "Qiu ",
      "Yao ",
      "Xian ",
      "Ben ",
      "Hong ",
      "Ying ",
      "Zha ",
      "Dong ",
      "Ju ",
      "Die ",
      "Nie ",
      "Gan ",
      "Hu ",
      "Ping ",
      "Mei ",
      "Fu ",
      "Sheng ",
      "Gu ",
      "Bi ",
      "Wei "
    ];
  }
});

// node_modules/unidecode/data/x83.js
var require_x83 = __commonJS({
  "node_modules/unidecode/data/x83.js"(exports2, module2) {
    module2.exports = [
      "Fu ",
      "Zhuo ",
      "Mao ",
      "Fan ",
      "Qie ",
      "Mao ",
      "Mao ",
      "Ba ",
      "Zi ",
      "Mo ",
      "Zi ",
      "Di ",
      "Chi ",
      "Ji ",
      "Jing ",
      "Long ",
      "[?] ",
      "Niao ",
      "[?] ",
      "Xue ",
      "Ying ",
      "Qiong ",
      "Ge ",
      "Ming ",
      "Li ",
      "Rong ",
      "Yin ",
      "Gen ",
      "Qian ",
      "Chai ",
      "Chen ",
      "Yu ",
      "Xiu ",
      "Zi ",
      "Lie ",
      "Wu ",
      "Ji ",
      "Kui ",
      "Ce ",
      "Chong ",
      "Ci ",
      "Gou ",
      "Guang ",
      "Mang ",
      "Chi ",
      "Jiao ",
      "Jiao ",
      "Fu ",
      "Yu ",
      "Zhu ",
      "Zi ",
      "Jiang ",
      "Hui ",
      "Yin ",
      "Cha ",
      "Fa ",
      "Rong ",
      "Ru ",
      "Chong ",
      "Mang ",
      "Tong ",
      "Zhong ",
      "[?] ",
      "Zhu ",
      "Xun ",
      "Huan ",
      "Kua ",
      "Quan ",
      "Gai ",
      "Da ",
      "Jing ",
      "Xing ",
      "Quan ",
      "Cao ",
      "Jing ",
      "Er ",
      "An ",
      "Shou ",
      "Chi ",
      "Ren ",
      "Jian ",
      "Ti ",
      "Huang ",
      "Ping ",
      "Li ",
      "Jin ",
      "Lao ",
      "Shu ",
      "Zhuang ",
      "Da ",
      "Jia ",
      "Rao ",
      "Bi ",
      "Ze ",
      "Qiao ",
      "Hui ",
      "Qi ",
      "Dang ",
      "[?] ",
      "Rong ",
      "Hun ",
      "Ying ",
      "Luo ",
      "Ying ",
      "Xun ",
      "Jin ",
      "Sun ",
      "Yin ",
      "Mai ",
      "Hong ",
      "Zhou ",
      "Yao ",
      "Du ",
      "Wei ",
      "Chu ",
      "Dou ",
      "Fu ",
      "Ren ",
      "Yin ",
      "He ",
      "Bi ",
      "Bu ",
      "Yun ",
      "Di ",
      "Tu ",
      "Sui ",
      "Sui ",
      "Cheng ",
      "Chen ",
      "Wu ",
      "Bie ",
      "Xi ",
      "Geng ",
      "Li ",
      "Fu ",
      "Zhu ",
      "Mo ",
      "Li ",
      "Zhuang ",
      "Ji ",
      "Duo ",
      "Qiu ",
      "Sha ",
      "Suo ",
      "Chen ",
      "Feng ",
      "Ju ",
      "Mei ",
      "Meng ",
      "Xing ",
      "Jing ",
      "Che ",
      "Xin ",
      "Jun ",
      "Yan ",
      "Ting ",
      "Diao ",
      "Cuo ",
      "Wan ",
      "Han ",
      "You ",
      "Cuo ",
      "Jia ",
      "Wang ",
      "You ",
      "Niu ",
      "Shao ",
      "Xian ",
      "Lang ",
      "Fu ",
      "E ",
      "Mo ",
      "Wen ",
      "Jie ",
      "Nan ",
      "Mu ",
      "Kan ",
      "Lai ",
      "Lian ",
      "Shi ",
      "Wo ",
      "Usagi ",
      "Lian ",
      "Huo ",
      "You ",
      "Ying ",
      "Ying ",
      "Nuc ",
      "Chun ",
      "Mang ",
      "Mang ",
      "Ci ",
      "Wan ",
      "Jing ",
      "Di ",
      "Qu ",
      "Dong ",
      "Jian ",
      "Zou ",
      "Gu ",
      "La ",
      "Lu ",
      "Ju ",
      "Wei ",
      "Jun ",
      "Nie ",
      "Kun ",
      "He ",
      "Pu ",
      "Zi ",
      "Gao ",
      "Guo ",
      "Fu ",
      "Lun ",
      "Chang ",
      "Chou ",
      "Song ",
      "Chui ",
      "Zhan ",
      "Men ",
      "Cai ",
      "Ba ",
      "Li ",
      "Tu ",
      "Bo ",
      "Han ",
      "Bao ",
      "Qin ",
      "Juan ",
      "Xi ",
      "Qin ",
      "Di ",
      "Jie ",
      "Pu ",
      "Dang ",
      "Jin ",
      "Zhao ",
      "Tai ",
      "Geng ",
      "Hua ",
      "Gu ",
      "Ling ",
      "Fei ",
      "Jin ",
      "An ",
      "Wang ",
      "Beng ",
      "Zhou ",
      "Yan ",
      "Ju ",
      "Jian ",
      "Lin ",
      "Tan ",
      "Shu ",
      "Tian ",
      "Dao "
    ];
  }
});

// node_modules/unidecode/data/x84.js
var require_x84 = __commonJS({
  "node_modules/unidecode/data/x84.js"(exports2, module2) {
    module2.exports = [
      "Hu ",
      "Qi ",
      "He ",
      "Cui ",
      "Tao ",
      "Chun ",
      "Bei ",
      "Chang ",
      "Huan ",
      "Fei ",
      "Lai ",
      "Qi ",
      "Meng ",
      "Ping ",
      "Wei ",
      "Dan ",
      "Sha ",
      "Huan ",
      "Yan ",
      "Yi ",
      "Tiao ",
      "Qi ",
      "Wan ",
      "Ce ",
      "Nai ",
      "Kutabireru ",
      "Tuo ",
      "Jiu ",
      "Tie ",
      "Luo ",
      "[?] ",
      "[?] ",
      "Meng ",
      "[?] ",
      "Yaji ",
      "[?] ",
      "Ying ",
      "Ying ",
      "Ying ",
      "Xiao ",
      "Sa ",
      "Qiu ",
      "Ke ",
      "Xiang ",
      "Wan ",
      "Yu ",
      "Yu ",
      "Fu ",
      "Lian ",
      "Xuan ",
      "Yuan ",
      "Nan ",
      "Ze ",
      "Wo ",
      "Chun ",
      "Xiao ",
      "Yu ",
      "Pian ",
      "Mao ",
      "An ",
      "E ",
      "Luo ",
      "Ying ",
      "Huo ",
      "Gua ",
      "Jiang ",
      "Mian ",
      "Zuo ",
      "Zuo ",
      "Ju ",
      "Bao ",
      "Rou ",
      "Xi ",
      "Xie ",
      "An ",
      "Qu ",
      "Jian ",
      "Fu ",
      "Lu ",
      "Jing ",
      "Pen ",
      "Feng ",
      "Hong ",
      "Hong ",
      "Hou ",
      "Yan ",
      "Tu ",
      "Zhu ",
      "Zi ",
      "Xiang ",
      "Shen ",
      "Ge ",
      "Jie ",
      "Jing ",
      "Mi ",
      "Huang ",
      "Shen ",
      "Pu ",
      "Gai ",
      "Dong ",
      "Zhou ",
      "Qian ",
      "Wei ",
      "Bo ",
      "Wei ",
      "Pa ",
      "Ji ",
      "Hu ",
      "Zang ",
      "Jia ",
      "Duan ",
      "Yao ",
      "Jun ",
      "Cong ",
      "Quan ",
      "Wei ",
      "Xian ",
      "Kui ",
      "Ting ",
      "Hun ",
      "Xi ",
      "Shi ",
      "Qi ",
      "Lan ",
      "Zong ",
      "Yao ",
      "Yuan ",
      "Mei ",
      "Yun ",
      "Shu ",
      "Di ",
      "Zhuan ",
      "Guan ",
      "Sukumo ",
      "Xue ",
      "Chan ",
      "Kai ",
      "Kui ",
      "[?] ",
      "Jiang ",
      "Lou ",
      "Wei ",
      "Pai ",
      "[?] ",
      "Sou ",
      "Yin ",
      "Shi ",
      "Chun ",
      "Shi ",
      "Yun ",
      "Zhen ",
      "Lang ",
      "Nu ",
      "Meng ",
      "He ",
      "Que ",
      "Suan ",
      "Yuan ",
      "Li ",
      "Ju ",
      "Xi ",
      "Pang ",
      "Chu ",
      "Xu ",
      "Tu ",
      "Liu ",
      "Wo ",
      "Zhen ",
      "Qian ",
      "Zu ",
      "Po ",
      "Cuo ",
      "Yuan ",
      "Chu ",
      "Yu ",
      "Kuai ",
      "Pan ",
      "Pu ",
      "Pu ",
      "Na ",
      "Shuo ",
      "Xi ",
      "Fen ",
      "Yun ",
      "Zheng ",
      "Jian ",
      "Ji ",
      "Ruo ",
      "Cang ",
      "En ",
      "Mi ",
      "Hao ",
      "Sun ",
      "Zhen ",
      "Ming ",
      "Sou ",
      "Xu ",
      "Liu ",
      "Xi ",
      "Gu ",
      "Lang ",
      "Rong ",
      "Weng ",
      "Gai ",
      "Cuo ",
      "Shi ",
      "Tang ",
      "Luo ",
      "Ru ",
      "Suo ",
      "Xian ",
      "Bei ",
      "Yao ",
      "Gui ",
      "Bi ",
      "Zong ",
      "Gun ",
      "Za ",
      "Xiu ",
      "Ce ",
      "Hai ",
      "Lan ",
      "[?] ",
      "Ji ",
      "Li ",
      "Can ",
      "Lang ",
      "Yu ",
      "[?] ",
      "Ying ",
      "Mo ",
      "Diao ",
      "Tiao ",
      "Mao ",
      "Tong ",
      "Zhu ",
      "Peng ",
      "An ",
      "Lian ",
      "Cong ",
      "Xi ",
      "Ping ",
      "Qiu ",
      "Jin ",
      "Chun ",
      "Jie ",
      "Wei ",
      "Tui ",
      "Cao ",
      "Yu ",
      "Yi ",
      "Ji ",
      "Liao ",
      "Bi ",
      "Lu ",
      "Su "
    ];
  }
});

// node_modules/unidecode/data/x85.js
var require_x85 = __commonJS({
  "node_modules/unidecode/data/x85.js"(exports2, module2) {
    module2.exports = [
      "Bu ",
      "Zhang ",
      "Luo ",
      "Jiang ",
      "Man ",
      "Yan ",
      "Ling ",
      "Ji ",
      "Piao ",
      "Gun ",
      "Han ",
      "Di ",
      "Su ",
      "Lu ",
      "She ",
      "Shang ",
      "Di ",
      "Mie ",
      "Xun ",
      "Man ",
      "Bo ",
      "Di ",
      "Cuo ",
      "Zhe ",
      "Sen ",
      "Xuan ",
      "Wei ",
      "Hu ",
      "Ao ",
      "Mi ",
      "Lou ",
      "Cu ",
      "Zhong ",
      "Cai ",
      "Po ",
      "Jiang ",
      "Mi ",
      "Cong ",
      "Niao ",
      "Hui ",
      "Jun ",
      "Yin ",
      "Jian ",
      "Yan ",
      "Shu ",
      "Yin ",
      "Kui ",
      "Chen ",
      "Hu ",
      "Sha ",
      "Kou ",
      "Qian ",
      "Ma ",
      "Zang ",
      "Sonoko ",
      "Qiang ",
      "Dou ",
      "Lian ",
      "Lin ",
      "Kou ",
      "Ai ",
      "Bi ",
      "Li ",
      "Wei ",
      "Ji ",
      "Xun ",
      "Sheng ",
      "Fan ",
      "Meng ",
      "Ou ",
      "Chan ",
      "Dian ",
      "Xun ",
      "Jiao ",
      "Rui ",
      "Rui ",
      "Lei ",
      "Yu ",
      "Qiao ",
      "Chu ",
      "Hua ",
      "Jian ",
      "Mai ",
      "Yun ",
      "Bao ",
      "You ",
      "Qu ",
      "Lu ",
      "Rao ",
      "Hui ",
      "E ",
      "Teng ",
      "Fei ",
      "Jue ",
      "Zui ",
      "Fa ",
      "Ru ",
      "Fen ",
      "Kui ",
      "Shun ",
      "Rui ",
      "Ya ",
      "Xu ",
      "Fu ",
      "Jue ",
      "Dang ",
      "Wu ",
      "Tong ",
      "Si ",
      "Xiao ",
      "Xi ",
      "Long ",
      "Yun ",
      "[?] ",
      "Qi ",
      "Jian ",
      "Yun ",
      "Sun ",
      "Ling ",
      "Yu ",
      "Xia ",
      "Yong ",
      "Ji ",
      "Hong ",
      "Si ",
      "Nong ",
      "Lei ",
      "Xuan ",
      "Yun ",
      "Yu ",
      "Xi ",
      "Hao ",
      "Bo ",
      "Hao ",
      "Ai ",
      "Wei ",
      "Hui ",
      "Wei ",
      "Ji ",
      "Ci ",
      "Xiang ",
      "Luan ",
      "Mie ",
      "Yi ",
      "Leng ",
      "Jiang ",
      "Can ",
      "Shen ",
      "Qiang ",
      "Lian ",
      "Ke ",
      "Yuan ",
      "Da ",
      "Ti ",
      "Tang ",
      "Xie ",
      "Bi ",
      "Zhan ",
      "Sun ",
      "Lian ",
      "Fan ",
      "Ding ",
      "Jie ",
      "Gu ",
      "Xie ",
      "Shu ",
      "Jian ",
      "Kao ",
      "Hong ",
      "Sa ",
      "Xin ",
      "Xun ",
      "Yao ",
      "Hie ",
      "Sou ",
      "Shu ",
      "Xun ",
      "Dui ",
      "Pin ",
      "Wei ",
      "Neng ",
      "Chou ",
      "Mai ",
      "Ru ",
      "Piao ",
      "Tai ",
      "Qi ",
      "Zao ",
      "Chen ",
      "Zhen ",
      "Er ",
      "Ni ",
      "Ying ",
      "Gao ",
      "Cong ",
      "Xiao ",
      "Qi ",
      "Fa ",
      "Jian ",
      "Xu ",
      "Kui ",
      "Jie ",
      "Bian ",
      "Diao ",
      "Mi ",
      "Lan ",
      "Jin ",
      "Cang ",
      "Miao ",
      "Qiong ",
      "Qie ",
      "Xian ",
      "[?] ",
      "Ou ",
      "Xian ",
      "Su ",
      "Lu ",
      "Yi ",
      "Xu ",
      "Xie ",
      "Li ",
      "Yi ",
      "La ",
      "Lei ",
      "Xiao ",
      "Di ",
      "Zhi ",
      "Bei ",
      "Teng ",
      "Yao ",
      "Mo ",
      "Huan ",
      "Piao ",
      "Fan ",
      "Sou ",
      "Tan ",
      "Tui ",
      "Qiong ",
      "Qiao ",
      "Wei ",
      "Liu ",
      "Hui ",
      "[?] ",
      "Gao ",
      "Yun ",
      "[?] ",
      "Li ",
      "Shu ",
      "Chu ",
      "Ai ",
      "Lin ",
      "Zao ",
      "Xuan ",
      "Chen ",
      "Lai ",
      "Huo "
    ];
  }
});

// node_modules/unidecode/data/x86.js
var require_x86 = __commonJS({
  "node_modules/unidecode/data/x86.js"(exports2, module2) {
    module2.exports = [
      "Tuo ",
      "Wu ",
      "Rui ",
      "Rui ",
      "Qi ",
      "Heng ",
      "Lu ",
      "Su ",
      "Tui ",
      "Mang ",
      "Yun ",
      "Pin ",
      "Yu ",
      "Xun ",
      "Ji ",
      "Jiong ",
      "Xian ",
      "Mo ",
      "Hagi ",
      "Su ",
      "Jiong ",
      "[?] ",
      "Nie ",
      "Bo ",
      "Rang ",
      "Yi ",
      "Xian ",
      "Yu ",
      "Ju ",
      "Lian ",
      "Lian ",
      "Yin ",
      "Qiang ",
      "Ying ",
      "Long ",
      "Tong ",
      "Wei ",
      "Yue ",
      "Ling ",
      "Qu ",
      "Yao ",
      "Fan ",
      "Mi ",
      "Lan ",
      "Kui ",
      "Lan ",
      "Ji ",
      "Dang ",
      "Katsura ",
      "Lei ",
      "Lei ",
      "Hua ",
      "Feng ",
      "Zhi ",
      "Wei ",
      "Kui ",
      "Zhan ",
      "Huai ",
      "Li ",
      "Ji ",
      "Mi ",
      "Lei ",
      "Huai ",
      "Luo ",
      "Ji ",
      "Kui ",
      "Lu ",
      "Jian ",
      "San ",
      "[?] ",
      "Lei ",
      "Quan ",
      "Xiao ",
      "Yi ",
      "Luan ",
      "Men ",
      "Bie ",
      "Hu ",
      "Hu ",
      "Lu ",
      "Nue ",
      "Lu ",
      "Si ",
      "Xiao ",
      "Qian ",
      "Chu ",
      "Hu ",
      "Xu ",
      "Cuo ",
      "Fu ",
      "Xu ",
      "Xu ",
      "Lu ",
      "Hu ",
      "Yu ",
      "Hao ",
      "Jiao ",
      "Ju ",
      "Guo ",
      "Bao ",
      "Yan ",
      "Zhan ",
      "Zhan ",
      "Kui ",
      "Ban ",
      "Xi ",
      "Shu ",
      "Chong ",
      "Qiu ",
      "Diao ",
      "Ji ",
      "Qiu ",
      "Cheng ",
      "Shi ",
      "[?] ",
      "Di ",
      "Zhe ",
      "She ",
      "Yu ",
      "Gan ",
      "Zi ",
      "Hong ",
      "Hui ",
      "Meng ",
      "Ge ",
      "Sui ",
      "Xia ",
      "Chai ",
      "Shi ",
      "Yi ",
      "Ma ",
      "Xiang ",
      "Fang ",
      "E ",
      "Pa ",
      "Chi ",
      "Qian ",
      "Wen ",
      "Wen ",
      "Rui ",
      "Bang ",
      "Bi ",
      "Yue ",
      "Yue ",
      "Jun ",
      "Qi ",
      "Ran ",
      "Yin ",
      "Qi ",
      "Tian ",
      "Yuan ",
      "Jue ",
      "Hui ",
      "Qin ",
      "Qi ",
      "Zhong ",
      "Ya ",
      "Ci ",
      "Mu ",
      "Wang ",
      "Fen ",
      "Fen ",
      "Hang ",
      "Gong ",
      "Zao ",
      "Fu ",
      "Ran ",
      "Jie ",
      "Fu ",
      "Chi ",
      "Dou ",
      "Piao ",
      "Xian ",
      "Ni ",
      "Te ",
      "Qiu ",
      "You ",
      "Zha ",
      "Ping ",
      "Chi ",
      "You ",
      "He ",
      "Han ",
      "Ju ",
      "Li ",
      "Fu ",
      "Ran ",
      "Zha ",
      "Gou ",
      "Pi ",
      "Bo ",
      "Xian ",
      "Zhu ",
      "Diao ",
      "Bie ",
      "Bing ",
      "Gu ",
      "Ran ",
      "Qu ",
      "She ",
      "Tie ",
      "Ling ",
      "Gu ",
      "Dan ",
      "Gu ",
      "Ying ",
      "Li ",
      "Cheng ",
      "Qu ",
      "Mou ",
      "Ge ",
      "Ci ",
      "Hui ",
      "Hui ",
      "Mang ",
      "Fu ",
      "Yang ",
      "Wa ",
      "Lie ",
      "Zhu ",
      "Yi ",
      "Xian ",
      "Kuo ",
      "Jiao ",
      "Li ",
      "Yi ",
      "Ping ",
      "Ji ",
      "Ha ",
      "She ",
      "Yi ",
      "Wang ",
      "Mo ",
      "Qiong ",
      "Qie ",
      "Gui ",
      "Gong ",
      "Zhi ",
      "Man ",
      "Ebi ",
      "Zhi ",
      "Jia ",
      "Rao ",
      "Si ",
      "Qi ",
      "Xing ",
      "Lie ",
      "Qiu ",
      "Shao ",
      "Yong ",
      "Jia ",
      "Shui ",
      "Che ",
      "Bai ",
      "E ",
      "Han "
    ];
  }
});

// node_modules/unidecode/data/x87.js
var require_x87 = __commonJS({
  "node_modules/unidecode/data/x87.js"(exports2, module2) {
    module2.exports = [
      "Shu ",
      "Xuan ",
      "Feng ",
      "Shen ",
      "Zhen ",
      "Fu ",
      "Xian ",
      "Zhe ",
      "Wu ",
      "Fu ",
      "Li ",
      "Lang ",
      "Bi ",
      "Chu ",
      "Yuan ",
      "You ",
      "Jie ",
      "Dan ",
      "Yan ",
      "Ting ",
      "Dian ",
      "Shui ",
      "Hui ",
      "Gua ",
      "Zhi ",
      "Song ",
      "Fei ",
      "Ju ",
      "Mi ",
      "Qi ",
      "Qi ",
      "Yu ",
      "Jun ",
      "Zha ",
      "Meng ",
      "Qiang ",
      "Si ",
      "Xi ",
      "Lun ",
      "Li ",
      "Die ",
      "Tiao ",
      "Tao ",
      "Kun ",
      "Gan ",
      "Han ",
      "Yu ",
      "Bang ",
      "Fei ",
      "Pi ",
      "Wei ",
      "Dun ",
      "Yi ",
      "Yuan ",
      "Su ",
      "Quan ",
      "Qian ",
      "Rui ",
      "Ni ",
      "Qing ",
      "Wei ",
      "Liang ",
      "Guo ",
      "Wan ",
      "Dong ",
      "E ",
      "Ban ",
      "Di ",
      "Wang ",
      "Can ",
      "Yang ",
      "Ying ",
      "Guo ",
      "Chan ",
      "[?] ",
      "La ",
      "Ke ",
      "Ji ",
      "He ",
      "Ting ",
      "Mai ",
      "Xu ",
      "Mian ",
      "Yu ",
      "Jie ",
      "Shi ",
      "Xuan ",
      "Huang ",
      "Yan ",
      "Bian ",
      "Rou ",
      "Wei ",
      "Fu ",
      "Yuan ",
      "Mei ",
      "Wei ",
      "Fu ",
      "Ruan ",
      "Xie ",
      "You ",
      "Qiu ",
      "Mao ",
      "Xia ",
      "Ying ",
      "Shi ",
      "Chong ",
      "Tang ",
      "Zhu ",
      "Zong ",
      "Ti ",
      "Fu ",
      "Yuan ",
      "Hui ",
      "Meng ",
      "La ",
      "Du ",
      "Hu ",
      "Qiu ",
      "Die ",
      "Li ",
      "Gua ",
      "Yun ",
      "Ju ",
      "Nan ",
      "Lou ",
      "Qun ",
      "Rong ",
      "Ying ",
      "Jiang ",
      "[?] ",
      "Lang ",
      "Pang ",
      "Si ",
      "Xi ",
      "Ci ",
      "Xi ",
      "Yuan ",
      "Weng ",
      "Lian ",
      "Sou ",
      "Ban ",
      "Rong ",
      "Rong ",
      "Ji ",
      "Wu ",
      "Qiu ",
      "Han ",
      "Qin ",
      "Yi ",
      "Bi ",
      "Hua ",
      "Tang ",
      "Yi ",
      "Du ",
      "Nai ",
      "He ",
      "Hu ",
      "Hui ",
      "Ma ",
      "Ming ",
      "Yi ",
      "Wen ",
      "Ying ",
      "Teng ",
      "Yu ",
      "Cang ",
      "So ",
      "Ebi ",
      "Man ",
      "[?] ",
      "Shang ",
      "Zhe ",
      "Cao ",
      "Chi ",
      "Di ",
      "Ao ",
      "Lu ",
      "Wei ",
      "Zhi ",
      "Tang ",
      "Chen ",
      "Piao ",
      "Qu ",
      "Pi ",
      "Yu ",
      "Jian ",
      "Luo ",
      "Lou ",
      "Qin ",
      "Zhong ",
      "Yin ",
      "Jiang ",
      "Shuai ",
      "Wen ",
      "Jiao ",
      "Wan ",
      "Zhi ",
      "Zhe ",
      "Ma ",
      "Ma ",
      "Guo ",
      "Liu ",
      "Mao ",
      "Xi ",
      "Cong ",
      "Li ",
      "Man ",
      "Xiao ",
      "Kamakiri ",
      "Zhang ",
      "Mang ",
      "Xiang ",
      "Mo ",
      "Zui ",
      "Si ",
      "Qiu ",
      "Te ",
      "Zhi ",
      "Peng ",
      "Peng ",
      "Jiao ",
      "Qu ",
      "Bie ",
      "Liao ",
      "Pan ",
      "Gui ",
      "Xi ",
      "Ji ",
      "Zhuan ",
      "Huang ",
      "Fei ",
      "Lao ",
      "Jue ",
      "Jue ",
      "Hui ",
      "Yin ",
      "Chan ",
      "Jiao ",
      "Shan ",
      "Rao ",
      "Xiao ",
      "Mou ",
      "Chong ",
      "Xun ",
      "Si ",
      "[?] ",
      "Cheng ",
      "Dang ",
      "Li ",
      "Xie ",
      "Shan ",
      "Yi ",
      "Jing ",
      "Da ",
      "Chan ",
      "Qi "
    ];
  }
});

// node_modules/unidecode/data/x88.js
var require_x88 = __commonJS({
  "node_modules/unidecode/data/x88.js"(exports2, module2) {
    module2.exports = [
      "Ci ",
      "Xiang ",
      "She ",
      "Luo ",
      "Qin ",
      "Ying ",
      "Chai ",
      "Li ",
      "Ze ",
      "Xuan ",
      "Lian ",
      "Zhu ",
      "Ze ",
      "Xie ",
      "Mang ",
      "Xie ",
      "Qi ",
      "Rong ",
      "Jian ",
      "Meng ",
      "Hao ",
      "Ruan ",
      "Huo ",
      "Zhuo ",
      "Jie ",
      "Bin ",
      "He ",
      "Mie ",
      "Fan ",
      "Lei ",
      "Jie ",
      "La ",
      "Mi ",
      "Li ",
      "Chun ",
      "Li ",
      "Qiu ",
      "Nie ",
      "Lu ",
      "Du ",
      "Xiao ",
      "Zhu ",
      "Long ",
      "Li ",
      "Long ",
      "Feng ",
      "Ye ",
      "Beng ",
      "Shang ",
      "Gu ",
      "Juan ",
      "Ying ",
      "[?] ",
      "Xi ",
      "Can ",
      "Qu ",
      "Quan ",
      "Du ",
      "Can ",
      "Man ",
      "Jue ",
      "Jie ",
      "Zhu ",
      "Zha ",
      "Xie ",
      "Huang ",
      "Niu ",
      "Pei ",
      "Nu ",
      "Xin ",
      "Zhong ",
      "Mo ",
      "Er ",
      "Ke ",
      "Mie ",
      "Xi ",
      "Xing ",
      "Yan ",
      "Kan ",
      "Yuan ",
      "[?] ",
      "Ling ",
      "Xuan ",
      "Shu ",
      "Xian ",
      "Tong ",
      "Long ",
      "Jie ",
      "Xian ",
      "Ya ",
      "Hu ",
      "Wei ",
      "Dao ",
      "Chong ",
      "Wei ",
      "Dao ",
      "Zhun ",
      "Heng ",
      "Qu ",
      "Yi ",
      "Yi ",
      "Bu ",
      "Gan ",
      "Yu ",
      "Biao ",
      "Cha ",
      "Yi ",
      "Shan ",
      "Chen ",
      "Fu ",
      "Gun ",
      "Fen ",
      "Shuai ",
      "Jie ",
      "Na ",
      "Zhong ",
      "Dan ",
      "Ri ",
      "Zhong ",
      "Zhong ",
      "Xie ",
      "Qi ",
      "Xie ",
      "Ran ",
      "Zhi ",
      "Ren ",
      "Qin ",
      "Jin ",
      "Jun ",
      "Yuan ",
      "Mei ",
      "Chai ",
      "Ao ",
      "Niao ",
      "Hui ",
      "Ran ",
      "Jia ",
      "Tuo ",
      "Ling ",
      "Dai ",
      "Bao ",
      "Pao ",
      "Yao ",
      "Zuo ",
      "Bi ",
      "Shao ",
      "Tan ",
      "Ju ",
      "He ",
      "Shu ",
      "Xiu ",
      "Zhen ",
      "Yi ",
      "Pa ",
      "Bo ",
      "Di ",
      "Wa ",
      "Fu ",
      "Gun ",
      "Zhi ",
      "Zhi ",
      "Ran ",
      "Pan ",
      "Yi ",
      "Mao ",
      "Tuo ",
      "Na ",
      "Kou ",
      "Xian ",
      "Chan ",
      "Qu ",
      "Bei ",
      "Gun ",
      "Xi ",
      "Ne ",
      "Bo ",
      "Horo ",
      "Fu ",
      "Yi ",
      "Chi ",
      "Ku ",
      "Ren ",
      "Jiang ",
      "Jia ",
      "Cun ",
      "Mo ",
      "Jie ",
      "Er ",
      "Luo ",
      "Ru ",
      "Zhu ",
      "Gui ",
      "Yin ",
      "Cai ",
      "Lie ",
      "Kamishimo ",
      "Yuki ",
      "Zhuang ",
      "Dang ",
      "[?] ",
      "Kun ",
      "Ken ",
      "Niao ",
      "Shu ",
      "Jia ",
      "Kun ",
      "Cheng ",
      "Li ",
      "Juan ",
      "Shen ",
      "Pou ",
      "Ge ",
      "Yi ",
      "Yu ",
      "Zhen ",
      "Liu ",
      "Qiu ",
      "Qun ",
      "Ji ",
      "Yi ",
      "Bu ",
      "Zhuang ",
      "Shui ",
      "Sha ",
      "Qun ",
      "Li ",
      "Lian ",
      "Lian ",
      "Ku ",
      "Jian ",
      "Fou ",
      "Chan ",
      "Bi ",
      "Gun ",
      "Tao ",
      "Yuan ",
      "Ling ",
      "Chi ",
      "Chang ",
      "Chou ",
      "Duo ",
      "Biao ",
      "Liang ",
      "Chang ",
      "Pei ",
      "Pei ",
      "Fei ",
      "Yuan ",
      "Luo ",
      "Guo ",
      "Yan ",
      "Du ",
      "Xi ",
      "Zhi ",
      "Ju ",
      "Qi "
    ];
  }
});

// node_modules/unidecode/data/x89.js
var require_x89 = __commonJS({
  "node_modules/unidecode/data/x89.js"(exports2, module2) {
    module2.exports = [
      "Ji ",
      "Zhi ",
      "Gua ",
      "Ken ",
      "Che ",
      "Ti ",
      "Ti ",
      "Fu ",
      "Chong ",
      "Xie ",
      "Bian ",
      "Die ",
      "Kun ",
      "Duan ",
      "Xiu ",
      "Xiu ",
      "He ",
      "Yuan ",
      "Bao ",
      "Bao ",
      "Fu ",
      "Yu ",
      "Tuan ",
      "Yan ",
      "Hui ",
      "Bei ",
      "Chu ",
      "Lu ",
      "Ena ",
      "Hitoe ",
      "Yun ",
      "Da ",
      "Gou ",
      "Da ",
      "Huai ",
      "Rong ",
      "Yuan ",
      "Ru ",
      "Nai ",
      "Jiong ",
      "Suo ",
      "Ban ",
      "Tun ",
      "Chi ",
      "Sang ",
      "Niao ",
      "Ying ",
      "Jie ",
      "Qian ",
      "Huai ",
      "Ku ",
      "Lian ",
      "Bao ",
      "Li ",
      "Zhe ",
      "Shi ",
      "Lu ",
      "Yi ",
      "Die ",
      "Xie ",
      "Xian ",
      "Wei ",
      "Biao ",
      "Cao ",
      "Ji ",
      "Jiang ",
      "Sen ",
      "Bao ",
      "Xiang ",
      "Chihaya ",
      "Pu ",
      "Jian ",
      "Zhuan ",
      "Jian ",
      "Zui ",
      "Ji ",
      "Dan ",
      "Za ",
      "Fan ",
      "Bo ",
      "Xiang ",
      "Xin ",
      "Bie ",
      "Rao ",
      "Man ",
      "Lan ",
      "Ao ",
      "Duo ",
      "Gui ",
      "Cao ",
      "Sui ",
      "Nong ",
      "Chan ",
      "Lian ",
      "Bi ",
      "Jin ",
      "Dang ",
      "Shu ",
      "Tan ",
      "Bi ",
      "Lan ",
      "Pu ",
      "Ru ",
      "Zhi ",
      "[?] ",
      "Shu ",
      "Wa ",
      "Shi ",
      "Bai ",
      "Xie ",
      "Bo ",
      "Chen ",
      "Lai ",
      "Long ",
      "Xi ",
      "Xian ",
      "Lan ",
      "Zhe ",
      "Dai ",
      "Tasuki ",
      "Zan ",
      "Shi ",
      "Jian ",
      "Pan ",
      "Yi ",
      "Ran ",
      "Ya ",
      "Xi ",
      "Xi ",
      "Yao ",
      "Feng ",
      "Tan ",
      "[?] ",
      "Biao ",
      "Fu ",
      "Ba ",
      "He ",
      "Ji ",
      "Ji ",
      "Jian ",
      "Guan ",
      "Bian ",
      "Yan ",
      "Gui ",
      "Jue ",
      "Pian ",
      "Mao ",
      "Mi ",
      "Mi ",
      "Mie ",
      "Shi ",
      "Si ",
      "Zhan ",
      "Luo ",
      "Jue ",
      "Mi ",
      "Tiao ",
      "Lian ",
      "Yao ",
      "Zhi ",
      "Jun ",
      "Xi ",
      "Shan ",
      "Wei ",
      "Xi ",
      "Tian ",
      "Yu ",
      "Lan ",
      "E ",
      "Du ",
      "Qin ",
      "Pang ",
      "Ji ",
      "Ming ",
      "Ying ",
      "Gou ",
      "Qu ",
      "Zhan ",
      "Jin ",
      "Guan ",
      "Deng ",
      "Jian ",
      "Luo ",
      "Qu ",
      "Jian ",
      "Wei ",
      "Jue ",
      "Qu ",
      "Luo ",
      "Lan ",
      "Shen ",
      "Di ",
      "Guan ",
      "Jian ",
      "Guan ",
      "Yan ",
      "Gui ",
      "Mi ",
      "Shi ",
      "Zhan ",
      "Lan ",
      "Jue ",
      "Ji ",
      "Xi ",
      "Di ",
      "Tian ",
      "Yu ",
      "Gou ",
      "Jin ",
      "Qu ",
      "Jiao ",
      "Jiu ",
      "Jin ",
      "Cu ",
      "Jue ",
      "Zhi ",
      "Chao ",
      "Ji ",
      "Gu ",
      "Dan ",
      "Zui ",
      "Di ",
      "Shang ",
      "Hua ",
      "Quan ",
      "Ge ",
      "Chi ",
      "Jie ",
      "Gui ",
      "Gong ",
      "Hong ",
      "Jie ",
      "Hun ",
      "Qiu ",
      "Xing ",
      "Su ",
      "Ni ",
      "Ji ",
      "Lu ",
      "Zhi ",
      "Zha ",
      "Bi ",
      "Xing ",
      "Hu ",
      "Shang ",
      "Gong ",
      "Zhi ",
      "Xue ",
      "Chu ",
      "Xi ",
      "Yi ",
      "Lu ",
      "Jue ",
      "Xi ",
      "Yan ",
      "Xi "
    ];
  }
});

// node_modules/unidecode/data/x8a.js
var require_x8a = __commonJS({
  "node_modules/unidecode/data/x8a.js"(exports2, module2) {
    module2.exports = [
      "Yan ",
      "Yan ",
      "Ding ",
      "Fu ",
      "Qiu ",
      "Qiu ",
      "Jiao ",
      "Hong ",
      "Ji ",
      "Fan ",
      "Xun ",
      "Diao ",
      "Hong ",
      "Cha ",
      "Tao ",
      "Xu ",
      "Jie ",
      "Yi ",
      "Ren ",
      "Xun ",
      "Yin ",
      "Shan ",
      "Qi ",
      "Tuo ",
      "Ji ",
      "Xun ",
      "Yin ",
      "E ",
      "Fen ",
      "Ya ",
      "Yao ",
      "Song ",
      "Shen ",
      "Yin ",
      "Xin ",
      "Jue ",
      "Xiao ",
      "Ne ",
      "Chen ",
      "You ",
      "Zhi ",
      "Xiong ",
      "Fang ",
      "Xin ",
      "Chao ",
      "She ",
      "Xian ",
      "Sha ",
      "Tun ",
      "Xu ",
      "Yi ",
      "Yi ",
      "Su ",
      "Chi ",
      "He ",
      "Shen ",
      "He ",
      "Xu ",
      "Zhen ",
      "Zhu ",
      "Zheng ",
      "Gou ",
      "Zi ",
      "Zi ",
      "Zhan ",
      "Gu ",
      "Fu ",
      "Quan ",
      "Die ",
      "Ling ",
      "Di ",
      "Yang ",
      "Li ",
      "Nao ",
      "Pan ",
      "Zhou ",
      "Gan ",
      "Yi ",
      "Ju ",
      "Ao ",
      "Zha ",
      "Tuo ",
      "Yi ",
      "Qu ",
      "Zhao ",
      "Ping ",
      "Bi ",
      "Xiong ",
      "Qu ",
      "Ba ",
      "Da ",
      "Zu ",
      "Tao ",
      "Zhu ",
      "Ci ",
      "Zhe ",
      "Yong ",
      "Xu ",
      "Xun ",
      "Yi ",
      "Huang ",
      "He ",
      "Shi ",
      "Cha ",
      "Jiao ",
      "Shi ",
      "Hen ",
      "Cha ",
      "Gou ",
      "Gui ",
      "Quan ",
      "Hui ",
      "Jie ",
      "Hua ",
      "Gai ",
      "Xiang ",
      "Wei ",
      "Shen ",
      "Chou ",
      "Tong ",
      "Mi ",
      "Zhan ",
      "Ming ",
      "E ",
      "Hui ",
      "Yan ",
      "Xiong ",
      "Gua ",
      "Er ",
      "Beng ",
      "Tiao ",
      "Chi ",
      "Lei ",
      "Zhu ",
      "Kuang ",
      "Kua ",
      "Wu ",
      "Yu ",
      "Teng ",
      "Ji ",
      "Zhi ",
      "Ren ",
      "Su ",
      "Lang ",
      "E ",
      "Kuang ",
      "E ",
      "Shi ",
      "Ting ",
      "Dan ",
      "Bo ",
      "Chan ",
      "You ",
      "Heng ",
      "Qiao ",
      "Qin ",
      "Shua ",
      "An ",
      "Yu ",
      "Xiao ",
      "Cheng ",
      "Jie ",
      "Xian ",
      "Wu ",
      "Wu ",
      "Gao ",
      "Song ",
      "Pu ",
      "Hui ",
      "Jing ",
      "Shuo ",
      "Zhen ",
      "Shuo ",
      "Du ",
      "Yasashi ",
      "Chang ",
      "Shui ",
      "Jie ",
      "Ke ",
      "Qu ",
      "Cong ",
      "Xiao ",
      "Sui ",
      "Wang ",
      "Xuan ",
      "Fei ",
      "Chi ",
      "Ta ",
      "Yi ",
      "Na ",
      "Yin ",
      "Diao ",
      "Pi ",
      "Chuo ",
      "Chan ",
      "Chen ",
      "Zhun ",
      "Ji ",
      "Qi ",
      "Tan ",
      "Zhui ",
      "Wei ",
      "Ju ",
      "Qing ",
      "Jian ",
      "Zheng ",
      "Ze ",
      "Zou ",
      "Qian ",
      "Zhuo ",
      "Liang ",
      "Jian ",
      "Zhu ",
      "Hao ",
      "Lun ",
      "Shen ",
      "Biao ",
      "Huai ",
      "Pian ",
      "Yu ",
      "Die ",
      "Xu ",
      "Pian ",
      "Shi ",
      "Xuan ",
      "Shi ",
      "Hun ",
      "Hua ",
      "E ",
      "Zhong ",
      "Di ",
      "Xie ",
      "Fu ",
      "Pu ",
      "Ting ",
      "Jian ",
      "Qi ",
      "Yu ",
      "Zi ",
      "Chuan ",
      "Xi ",
      "Hui ",
      "Yin ",
      "An ",
      "Xian ",
      "Nan ",
      "Chen ",
      "Feng ",
      "Zhu ",
      "Yang ",
      "Yan ",
      "Heng ",
      "Xuan ",
      "Ge ",
      "Nuo ",
      "Qi "
    ];
  }
});

// node_modules/unidecode/data/x8b.js
var require_x8b = __commonJS({
  "node_modules/unidecode/data/x8b.js"(exports2, module2) {
    module2.exports = [
      "Mou ",
      "Ye ",
      "Wei ",
      "[?] ",
      "Teng ",
      "Zou ",
      "Shan ",
      "Jian ",
      "Bo ",
      "Ku ",
      "Huang ",
      "Huo ",
      "Ge ",
      "Ying ",
      "Mi ",
      "Xiao ",
      "Mi ",
      "Xi ",
      "Qiang ",
      "Chen ",
      "Nue ",
      "Ti ",
      "Su ",
      "Bang ",
      "Chi ",
      "Qian ",
      "Shi ",
      "Jiang ",
      "Yuan ",
      "Xie ",
      "Xue ",
      "Tao ",
      "Yao ",
      "Yao ",
      "[?] ",
      "Yu ",
      "Biao ",
      "Cong ",
      "Qing ",
      "Li ",
      "Mo ",
      "Mo ",
      "Shang ",
      "Zhe ",
      "Miu ",
      "Jian ",
      "Ze ",
      "Jie ",
      "Lian ",
      "Lou ",
      "Can ",
      "Ou ",
      "Guan ",
      "Xi ",
      "Zhuo ",
      "Ao ",
      "Ao ",
      "Jin ",
      "Zhe ",
      "Yi ",
      "Hu ",
      "Jiang ",
      "Man ",
      "Chao ",
      "Han ",
      "Hua ",
      "Chan ",
      "Xu ",
      "Zeng ",
      "Se ",
      "Xi ",
      "She ",
      "Dui ",
      "Zheng ",
      "Nao ",
      "Lan ",
      "E ",
      "Ying ",
      "Jue ",
      "Ji ",
      "Zun ",
      "Jiao ",
      "Bo ",
      "Hui ",
      "Zhuan ",
      "Mu ",
      "Zen ",
      "Zha ",
      "Shi ",
      "Qiao ",
      "Tan ",
      "Zen ",
      "Pu ",
      "Sheng ",
      "Xuan ",
      "Zao ",
      "Tan ",
      "Dang ",
      "Sui ",
      "Qian ",
      "Ji ",
      "Jiao ",
      "Jing ",
      "Lian ",
      "Nou ",
      "Yi ",
      "Ai ",
      "Zhan ",
      "Pi ",
      "Hui ",
      "Hua ",
      "Yi ",
      "Yi ",
      "Shan ",
      "Rang ",
      "Nou ",
      "Qian ",
      "Zhui ",
      "Ta ",
      "Hu ",
      "Zhou ",
      "Hao ",
      "Ye ",
      "Ying ",
      "Jian ",
      "Yu ",
      "Jian ",
      "Hui ",
      "Du ",
      "Zhe ",
      "Xuan ",
      "Zan ",
      "Lei ",
      "Shen ",
      "Wei ",
      "Chan ",
      "Li ",
      "Yi ",
      "Bian ",
      "Zhe ",
      "Yan ",
      "E ",
      "Chou ",
      "Wei ",
      "Chou ",
      "Yao ",
      "Chan ",
      "Rang ",
      "Yin ",
      "Lan ",
      "Chen ",
      "Huo ",
      "Zhe ",
      "Huan ",
      "Zan ",
      "Yi ",
      "Dang ",
      "Zhan ",
      "Yan ",
      "Du ",
      "Yan ",
      "Ji ",
      "Ding ",
      "Fu ",
      "Ren ",
      "Ji ",
      "Jie ",
      "Hong ",
      "Tao ",
      "Rang ",
      "Shan ",
      "Qi ",
      "Tuo ",
      "Xun ",
      "Yi ",
      "Xun ",
      "Ji ",
      "Ren ",
      "Jiang ",
      "Hui ",
      "Ou ",
      "Ju ",
      "Ya ",
      "Ne ",
      "Xu ",
      "E ",
      "Lun ",
      "Xiong ",
      "Song ",
      "Feng ",
      "She ",
      "Fang ",
      "Jue ",
      "Zheng ",
      "Gu ",
      "He ",
      "Ping ",
      "Zu ",
      "Shi ",
      "Xiong ",
      "Zha ",
      "Su ",
      "Zhen ",
      "Di ",
      "Zou ",
      "Ci ",
      "Qu ",
      "Zhao ",
      "Bi ",
      "Yi ",
      "Yi ",
      "Kuang ",
      "Lei ",
      "Shi ",
      "Gua ",
      "Shi ",
      "Jie ",
      "Hui ",
      "Cheng ",
      "Zhu ",
      "Shen ",
      "Hua ",
      "Dan ",
      "Gou ",
      "Quan ",
      "Gui ",
      "Xun ",
      "Yi ",
      "Zheng ",
      "Gai ",
      "Xiang ",
      "Cha ",
      "Hun ",
      "Xu ",
      "Zhou ",
      "Jie ",
      "Wu ",
      "Yu ",
      "Qiao ",
      "Wu ",
      "Gao ",
      "You ",
      "Hui ",
      "Kuang ",
      "Shuo ",
      "Song ",
      "Ai ",
      "Qing ",
      "Zhu ",
      "Zou ",
      "Nuo ",
      "Du ",
      "Zhuo ",
      "Fei ",
      "Ke ",
      "Wei "
    ];
  }
});

// node_modules/unidecode/data/x8c.js
var require_x8c = __commonJS({
  "node_modules/unidecode/data/x8c.js"(exports2, module2) {
    module2.exports = [
      "Yu ",
      "Shui ",
      "Shen ",
      "Diao ",
      "Chan ",
      "Liang ",
      "Zhun ",
      "Sui ",
      "Tan ",
      "Shen ",
      "Yi ",
      "Mou ",
      "Chen ",
      "Die ",
      "Huang ",
      "Jian ",
      "Xie ",
      "Nue ",
      "Ye ",
      "Wei ",
      "E ",
      "Yu ",
      "Xuan ",
      "Chan ",
      "Zi ",
      "An ",
      "Yan ",
      "Di ",
      "Mi ",
      "Pian ",
      "Xu ",
      "Mo ",
      "Dang ",
      "Su ",
      "Xie ",
      "Yao ",
      "Bang ",
      "Shi ",
      "Qian ",
      "Mi ",
      "Jin ",
      "Man ",
      "Zhe ",
      "Jian ",
      "Miu ",
      "Tan ",
      "Zen ",
      "Qiao ",
      "Lan ",
      "Pu ",
      "Jue ",
      "Yan ",
      "Qian ",
      "Zhan ",
      "Chen ",
      "Gu ",
      "Qian ",
      "Hong ",
      "Xia ",
      "Jue ",
      "Hong ",
      "Han ",
      "Hong ",
      "Xi ",
      "Xi ",
      "Huo ",
      "Liao ",
      "Han ",
      "Du ",
      "Long ",
      "Dou ",
      "Jiang ",
      "Qi ",
      "Shi ",
      "Li ",
      "Deng ",
      "Wan ",
      "Bi ",
      "Shu ",
      "Xian ",
      "Feng ",
      "Zhi ",
      "Zhi ",
      "Yan ",
      "Yan ",
      "Shi ",
      "Chu ",
      "Hui ",
      "Tun ",
      "Yi ",
      "Tun ",
      "Yi ",
      "Jian ",
      "Ba ",
      "Hou ",
      "E ",
      "Cu ",
      "Xiang ",
      "Huan ",
      "Jian ",
      "Ken ",
      "Gai ",
      "Qu ",
      "Fu ",
      "Xi ",
      "Bin ",
      "Hao ",
      "Yu ",
      "Zhu ",
      "Jia ",
      "[?] ",
      "Xi ",
      "Bo ",
      "Wen ",
      "Huan ",
      "Bin ",
      "Di ",
      "Zong ",
      "Fen ",
      "Yi ",
      "Zhi ",
      "Bao ",
      "Chai ",
      "Han ",
      "Pi ",
      "Na ",
      "Pi ",
      "Gou ",
      "Na ",
      "You ",
      "Diao ",
      "Mo ",
      "Si ",
      "Xiu ",
      "Huan ",
      "Kun ",
      "He ",
      "He ",
      "Mo ",
      "Han ",
      "Mao ",
      "Li ",
      "Ni ",
      "Bi ",
      "Yu ",
      "Jia ",
      "Tuan ",
      "Mao ",
      "Pi ",
      "Xi ",
      "E ",
      "Ju ",
      "Mo ",
      "Chu ",
      "Tan ",
      "Huan ",
      "Jue ",
      "Bei ",
      "Zhen ",
      "Yuan ",
      "Fu ",
      "Cai ",
      "Gong ",
      "Te ",
      "Yi ",
      "Hang ",
      "Wan ",
      "Pin ",
      "Huo ",
      "Fan ",
      "Tan ",
      "Guan ",
      "Ze ",
      "Zhi ",
      "Er ",
      "Zhu ",
      "Shi ",
      "Bi ",
      "Zi ",
      "Er ",
      "Gui ",
      "Pian ",
      "Bian ",
      "Mai ",
      "Dai ",
      "Sheng ",
      "Kuang ",
      "Fei ",
      "Tie ",
      "Yi ",
      "Chi ",
      "Mao ",
      "He ",
      "Bi ",
      "Lu ",
      "Ren ",
      "Hui ",
      "Gai ",
      "Pian ",
      "Zi ",
      "Jia ",
      "Xu ",
      "Zei ",
      "Jiao ",
      "Gai ",
      "Zang ",
      "Jian ",
      "Ying ",
      "Xun ",
      "Zhen ",
      "She ",
      "Bin ",
      "Bin ",
      "Qiu ",
      "She ",
      "Chuan ",
      "Zang ",
      "Zhou ",
      "Lai ",
      "Zan ",
      "Si ",
      "Chen ",
      "Shang ",
      "Tian ",
      "Pei ",
      "Geng ",
      "Xian ",
      "Mai ",
      "Jian ",
      "Sui ",
      "Fu ",
      "Tan ",
      "Cong ",
      "Cong ",
      "Zhi ",
      "Ji ",
      "Zhang ",
      "Du ",
      "Jin ",
      "Xiong ",
      "Shun ",
      "Yun ",
      "Bao ",
      "Zai ",
      "Lai ",
      "Feng ",
      "Cang ",
      "Ji ",
      "Sheng ",
      "Ai ",
      "Zhuan ",
      "Fu ",
      "Gou ",
      "Sai ",
      "Ze ",
      "Liao "
    ];
  }
});

// node_modules/unidecode/data/x8d.js
var require_x8d = __commonJS({
  "node_modules/unidecode/data/x8d.js"(exports2, module2) {
    module2.exports = [
      "Wei ",
      "Bai ",
      "Chen ",
      "Zhuan ",
      "Zhi ",
      "Zhui ",
      "Biao ",
      "Yun ",
      "Zeng ",
      "Tan ",
      "Zan ",
      "Yan ",
      "[?] ",
      "Shan ",
      "Wan ",
      "Ying ",
      "Jin ",
      "Gan ",
      "Xian ",
      "Zang ",
      "Bi ",
      "Du ",
      "Shu ",
      "Yan ",
      "[?] ",
      "Xuan ",
      "Long ",
      "Gan ",
      "Zang ",
      "Bei ",
      "Zhen ",
      "Fu ",
      "Yuan ",
      "Gong ",
      "Cai ",
      "Ze ",
      "Xian ",
      "Bai ",
      "Zhang ",
      "Huo ",
      "Zhi ",
      "Fan ",
      "Tan ",
      "Pin ",
      "Bian ",
      "Gou ",
      "Zhu ",
      "Guan ",
      "Er ",
      "Jian ",
      "Bi ",
      "Shi ",
      "Tie ",
      "Gui ",
      "Kuang ",
      "Dai ",
      "Mao ",
      "Fei ",
      "He ",
      "Yi ",
      "Zei ",
      "Zhi ",
      "Jia ",
      "Hui ",
      "Zi ",
      "Ren ",
      "Lu ",
      "Zang ",
      "Zi ",
      "Gai ",
      "Jin ",
      "Qiu ",
      "Zhen ",
      "Lai ",
      "She ",
      "Fu ",
      "Du ",
      "Ji ",
      "Shu ",
      "Shang ",
      "Si ",
      "Bi ",
      "Zhou ",
      "Geng ",
      "Pei ",
      "Tan ",
      "Lai ",
      "Feng ",
      "Zhui ",
      "Fu ",
      "Zhuan ",
      "Sai ",
      "Ze ",
      "Yan ",
      "Zan ",
      "Yun ",
      "Zeng ",
      "Shan ",
      "Ying ",
      "Gan ",
      "Chi ",
      "Xi ",
      "She ",
      "Nan ",
      "Xiong ",
      "Xi ",
      "Cheng ",
      "He ",
      "Cheng ",
      "Zhe ",
      "Xia ",
      "Tang ",
      "Zou ",
      "Zou ",
      "Li ",
      "Jiu ",
      "Fu ",
      "Zhao ",
      "Gan ",
      "Qi ",
      "Shan ",
      "Qiong ",
      "Qin ",
      "Xian ",
      "Ci ",
      "Jue ",
      "Qin ",
      "Chi ",
      "Ci ",
      "Chen ",
      "Chen ",
      "Die ",
      "Ju ",
      "Chao ",
      "Di ",
      "Se ",
      "Zhan ",
      "Zhu ",
      "Yue ",
      "Qu ",
      "Jie ",
      "Chi ",
      "Chu ",
      "Gua ",
      "Xue ",
      "Ci ",
      "Tiao ",
      "Duo ",
      "Lie ",
      "Gan ",
      "Suo ",
      "Cu ",
      "Xi ",
      "Zhao ",
      "Su ",
      "Yin ",
      "Ju ",
      "Jian ",
      "Que ",
      "Tang ",
      "Chuo ",
      "Cui ",
      "Lu ",
      "Qu ",
      "Dang ",
      "Qiu ",
      "Zi ",
      "Ti ",
      "Qu ",
      "Chi ",
      "Huang ",
      "Qiao ",
      "Qiao ",
      "Yao ",
      "Zao ",
      "Ti ",
      "[?] ",
      "Zan ",
      "Zan ",
      "Zu ",
      "Pa ",
      "Bao ",
      "Ku ",
      "Ke ",
      "Dun ",
      "Jue ",
      "Fu ",
      "Chen ",
      "Jian ",
      "Fang ",
      "Zhi ",
      "Sa ",
      "Yue ",
      "Pa ",
      "Qi ",
      "Yue ",
      "Qiang ",
      "Tuo ",
      "Tai ",
      "Yi ",
      "Nian ",
      "Ling ",
      "Mei ",
      "Ba ",
      "Die ",
      "Ku ",
      "Tuo ",
      "Jia ",
      "Ci ",
      "Pao ",
      "Qia ",
      "Zhu ",
      "Ju ",
      "Die ",
      "Zhi ",
      "Fu ",
      "Pan ",
      "Ju ",
      "Shan ",
      "Bo ",
      "Ni ",
      "Ju ",
      "Li ",
      "Gen ",
      "Yi ",
      "Ji ",
      "Dai ",
      "Xian ",
      "Jiao ",
      "Duo ",
      "Zhu ",
      "Zhuan ",
      "Kua ",
      "Zhuai ",
      "Gui ",
      "Qiong ",
      "Kui ",
      "Xiang ",
      "Chi ",
      "Lu ",
      "Beng ",
      "Zhi ",
      "Jia ",
      "Tiao ",
      "Cai ",
      "Jian ",
      "Ta ",
      "Qiao ",
      "Bi ",
      "Xian ",
      "Duo ",
      "Ji ",
      "Ju ",
      "Ji ",
      "Shu ",
      "Tu "
    ];
  }
});

// node_modules/unidecode/data/x8e.js
var require_x8e = __commonJS({
  "node_modules/unidecode/data/x8e.js"(exports2, module2) {
    module2.exports = [
      "Chu ",
      "Jing ",
      "Nie ",
      "Xiao ",
      "Bo ",
      "Chi ",
      "Qun ",
      "Mou ",
      "Shu ",
      "Lang ",
      "Yong ",
      "Jiao ",
      "Chou ",
      "Qiao ",
      "[?] ",
      "Ta ",
      "Jian ",
      "Qi ",
      "Wo ",
      "Wei ",
      "Zhuo ",
      "Jie ",
      "Ji ",
      "Nie ",
      "Ju ",
      "Ju ",
      "Lun ",
      "Lu ",
      "Leng ",
      "Huai ",
      "Ju ",
      "Chi ",
      "Wan ",
      "Quan ",
      "Ti ",
      "Bo ",
      "Zu ",
      "Qie ",
      "Ji ",
      "Cu ",
      "Zong ",
      "Cai ",
      "Zong ",
      "Peng ",
      "Zhi ",
      "Zheng ",
      "Dian ",
      "Zhi ",
      "Yu ",
      "Duo ",
      "Dun ",
      "Chun ",
      "Yong ",
      "Zhong ",
      "Di ",
      "Zhe ",
      "Chen ",
      "Chuai ",
      "Jian ",
      "Gua ",
      "Tang ",
      "Ju ",
      "Fu ",
      "Zu ",
      "Die ",
      "Pian ",
      "Rou ",
      "Nuo ",
      "Ti ",
      "Cha ",
      "Tui ",
      "Jian ",
      "Dao ",
      "Cuo ",
      "Xi ",
      "Ta ",
      "Qiang ",
      "Zhan ",
      "Dian ",
      "Ti ",
      "Ji ",
      "Nie ",
      "Man ",
      "Liu ",
      "Zhan ",
      "Bi ",
      "Chong ",
      "Lu ",
      "Liao ",
      "Cu ",
      "Tang ",
      "Dai ",
      "Suo ",
      "Xi ",
      "Kui ",
      "Ji ",
      "Zhi ",
      "Qiang ",
      "Di ",
      "Man ",
      "Zong ",
      "Lian ",
      "Beng ",
      "Zao ",
      "Nian ",
      "Bie ",
      "Tui ",
      "Ju ",
      "Deng ",
      "Ceng ",
      "Xian ",
      "Fan ",
      "Chu ",
      "Zhong ",
      "Dun ",
      "Bo ",
      "Cu ",
      "Zu ",
      "Jue ",
      "Jue ",
      "Lin ",
      "Ta ",
      "Qiao ",
      "Qiao ",
      "Pu ",
      "Liao ",
      "Dun ",
      "Cuan ",
      "Kuang ",
      "Zao ",
      "Ta ",
      "Bi ",
      "Bi ",
      "Zhu ",
      "Ju ",
      "Chu ",
      "Qiao ",
      "Dun ",
      "Chou ",
      "Ji ",
      "Wu ",
      "Yue ",
      "Nian ",
      "Lin ",
      "Lie ",
      "Zhi ",
      "Li ",
      "Zhi ",
      "Chan ",
      "Chu ",
      "Duan ",
      "Wei ",
      "Long ",
      "Lin ",
      "Xian ",
      "Wei ",
      "Zuan ",
      "Lan ",
      "Xie ",
      "Rang ",
      "Xie ",
      "Nie ",
      "Ta ",
      "Qu ",
      "Jie ",
      "Cuan ",
      "Zuan ",
      "Xi ",
      "Kui ",
      "Jue ",
      "Lin ",
      "Shen ",
      "Gong ",
      "Dan ",
      "Segare ",
      "Qu ",
      "Ti ",
      "Duo ",
      "Duo ",
      "Gong ",
      "Lang ",
      "Nerau ",
      "Luo ",
      "Ai ",
      "Ji ",
      "Ju ",
      "Tang ",
      "Utsuke ",
      "[?] ",
      "Yan ",
      "Shitsuke ",
      "Kang ",
      "Qu ",
      "Lou ",
      "Lao ",
      "Tuo ",
      "Zhi ",
      "Yagate ",
      "Ti ",
      "Dao ",
      "Yagate ",
      "Yu ",
      "Che ",
      "Ya ",
      "Gui ",
      "Jun ",
      "Wei ",
      "Yue ",
      "Xin ",
      "Di ",
      "Xuan ",
      "Fan ",
      "Ren ",
      "Shan ",
      "Qiang ",
      "Shu ",
      "Tun ",
      "Chen ",
      "Dai ",
      "E ",
      "Na ",
      "Qi ",
      "Mao ",
      "Ruan ",
      "Ren ",
      "Fan ",
      "Zhuan ",
      "Hong ",
      "Hu ",
      "Qu ",
      "Huang ",
      "Di ",
      "Ling ",
      "Dai ",
      "Ao ",
      "Zhen ",
      "Fan ",
      "Kuang ",
      "Ang ",
      "Peng ",
      "Bei ",
      "Gu ",
      "Ku ",
      "Pao ",
      "Zhu ",
      "Rong ",
      "E ",
      "Ba ",
      "Zhou ",
      "Zhi ",
      "Yao ",
      "Ke ",
      "Yi ",
      "Qing ",
      "Shi ",
      "Ping "
    ];
  }
});

// node_modules/unidecode/data/x8f.js
var require_x8f = __commonJS({
  "node_modules/unidecode/data/x8f.js"(exports2, module2) {
    module2.exports = [
      "Er ",
      "Qiong ",
      "Ju ",
      "Jiao ",
      "Guang ",
      "Lu ",
      "Kai ",
      "Quan ",
      "Zhou ",
      "Zai ",
      "Zhi ",
      "She ",
      "Liang ",
      "Yu ",
      "Shao ",
      "You ",
      "Huan ",
      "Yun ",
      "Zhe ",
      "Wan ",
      "Fu ",
      "Qing ",
      "Zhou ",
      "Ni ",
      "Ling ",
      "Zhe ",
      "Zhan ",
      "Liang ",
      "Zi ",
      "Hui ",
      "Wang ",
      "Chuo ",
      "Guo ",
      "Kan ",
      "Yi ",
      "Peng ",
      "Qian ",
      "Gun ",
      "Nian ",
      "Pian ",
      "Guan ",
      "Bei ",
      "Lun ",
      "Pai ",
      "Liang ",
      "Ruan ",
      "Rou ",
      "Ji ",
      "Yang ",
      "Xian ",
      "Chuan ",
      "Cou ",
      "Qun ",
      "Ge ",
      "You ",
      "Hong ",
      "Shu ",
      "Fu ",
      "Zi ",
      "Fu ",
      "Wen ",
      "Ben ",
      "Zhan ",
      "Yu ",
      "Wen ",
      "Tao ",
      "Gu ",
      "Zhen ",
      "Xia ",
      "Yuan ",
      "Lu ",
      "Jiu ",
      "Chao ",
      "Zhuan ",
      "Wei ",
      "Hun ",
      "Sori ",
      "Che ",
      "Jiao ",
      "Zhan ",
      "Pu ",
      "Lao ",
      "Fen ",
      "Fan ",
      "Lin ",
      "Ge ",
      "Se ",
      "Kan ",
      "Huan ",
      "Yi ",
      "Ji ",
      "Dui ",
      "Er ",
      "Yu ",
      "Xian ",
      "Hong ",
      "Lei ",
      "Pei ",
      "Li ",
      "Li ",
      "Lu ",
      "Lin ",
      "Che ",
      "Ya ",
      "Gui ",
      "Xuan ",
      "Di ",
      "Ren ",
      "Zhuan ",
      "E ",
      "Lun ",
      "Ruan ",
      "Hong ",
      "Ku ",
      "Ke ",
      "Lu ",
      "Zhou ",
      "Zhi ",
      "Yi ",
      "Hu ",
      "Zhen ",
      "Li ",
      "Yao ",
      "Qing ",
      "Shi ",
      "Zai ",
      "Zhi ",
      "Jiao ",
      "Zhou ",
      "Quan ",
      "Lu ",
      "Jiao ",
      "Zhe ",
      "Fu ",
      "Liang ",
      "Nian ",
      "Bei ",
      "Hui ",
      "Gun ",
      "Wang ",
      "Liang ",
      "Chuo ",
      "Zi ",
      "Cou ",
      "Fu ",
      "Ji ",
      "Wen ",
      "Shu ",
      "Pei ",
      "Yuan ",
      "Xia ",
      "Zhan ",
      "Lu ",
      "Che ",
      "Lin ",
      "Xin ",
      "Gu ",
      "Ci ",
      "Ci ",
      "Pi ",
      "Zui ",
      "Bian ",
      "La ",
      "La ",
      "Ci ",
      "Xue ",
      "Ban ",
      "Bian ",
      "Bian ",
      "Bian ",
      "[?] ",
      "Bian ",
      "Ban ",
      "Ci ",
      "Bian ",
      "Bian ",
      "Chen ",
      "Ru ",
      "Nong ",
      "Nong ",
      "Zhen ",
      "Chuo ",
      "Chuo ",
      "Suberu ",
      "Reng ",
      "Bian ",
      "Bian ",
      "Sip ",
      "Ip ",
      "Liao ",
      "Da ",
      "Chan ",
      "Gan ",
      "Qian ",
      "Yu ",
      "Yu ",
      "Qi ",
      "Xun ",
      "Yi ",
      "Guo ",
      "Mai ",
      "Qi ",
      "Za ",
      "Wang ",
      "Jia ",
      "Zhun ",
      "Ying ",
      "Ti ",
      "Yun ",
      "Jin ",
      "Hang ",
      "Ya ",
      "Fan ",
      "Wu ",
      "Da ",
      "E ",
      "Huan ",
      "Zhe ",
      "Totemo ",
      "Jin ",
      "Yuan ",
      "Wei ",
      "Lian ",
      "Chi ",
      "Che ",
      "Ni ",
      "Tiao ",
      "Zhi ",
      "Yi ",
      "Jiong ",
      "Jia ",
      "Chen ",
      "Dai ",
      "Er ",
      "Di ",
      "Po ",
      "Wang ",
      "Die ",
      "Ze ",
      "Tao ",
      "Shu ",
      "Tuo ",
      "Kep ",
      "Jing ",
      "Hui ",
      "Tong ",
      "You ",
      "Mi ",
      "Beng ",
      "Ji ",
      "Nai ",
      "Yi ",
      "Jie ",
      "Zhui ",
      "Lie ",
      "Xun "
    ];
  }
});

// node_modules/unidecode/data/x90.js
var require_x90 = __commonJS({
  "node_modules/unidecode/data/x90.js"(exports2, module2) {
    module2.exports = [
      "Tui ",
      "Song ",
      "Gua ",
      "Tao ",
      "Pang ",
      "Hou ",
      "Ni ",
      "Dun ",
      "Jiong ",
      "Xuan ",
      "Xun ",
      "Bu ",
      "You ",
      "Xiao ",
      "Qiu ",
      "Tou ",
      "Zhu ",
      "Qiu ",
      "Di ",
      "Di ",
      "Tu ",
      "Jing ",
      "Ti ",
      "Dou ",
      "Yi ",
      "Zhe ",
      "Tong ",
      "Guang ",
      "Wu ",
      "Shi ",
      "Cheng ",
      "Su ",
      "Zao ",
      "Qun ",
      "Feng ",
      "Lian ",
      "Suo ",
      "Hui ",
      "Li ",
      "Sako ",
      "Lai ",
      "Ben ",
      "Cuo ",
      "Jue ",
      "Beng ",
      "Huan ",
      "Dai ",
      "Lu ",
      "You ",
      "Zhou ",
      "Jin ",
      "Yu ",
      "Chuo ",
      "Kui ",
      "Wei ",
      "Ti ",
      "Yi ",
      "Da ",
      "Yuan ",
      "Luo ",
      "Bi ",
      "Nuo ",
      "Yu ",
      "Dang ",
      "Sui ",
      "Dun ",
      "Sui ",
      "Yan ",
      "Chuan ",
      "Chi ",
      "Ti ",
      "Yu ",
      "Shi ",
      "Zhen ",
      "You ",
      "Yun ",
      "E ",
      "Bian ",
      "Guo ",
      "E ",
      "Xia ",
      "Huang ",
      "Qiu ",
      "Dao ",
      "Da ",
      "Wei ",
      "Appare ",
      "Yi ",
      "Gou ",
      "Yao ",
      "Chu ",
      "Liu ",
      "Xun ",
      "Ta ",
      "Di ",
      "Chi ",
      "Yuan ",
      "Su ",
      "Ta ",
      "Qian ",
      "[?] ",
      "Yao ",
      "Guan ",
      "Zhang ",
      "Ao ",
      "Shi ",
      "Ce ",
      "Chi ",
      "Su ",
      "Zao ",
      "Zhe ",
      "Dun ",
      "Di ",
      "Lou ",
      "Chi ",
      "Cuo ",
      "Lin ",
      "Zun ",
      "Rao ",
      "Qian ",
      "Xuan ",
      "Yu ",
      "Yi ",
      "Wu ",
      "Liao ",
      "Ju ",
      "Shi ",
      "Bi ",
      "Yao ",
      "Mai ",
      "Xie ",
      "Sui ",
      "Huan ",
      "Zhan ",
      "Teng ",
      "Er ",
      "Miao ",
      "Bian ",
      "Bian ",
      "La ",
      "Li ",
      "Yuan ",
      "Yao ",
      "Luo ",
      "Li ",
      "Yi ",
      "Ting ",
      "Deng ",
      "Qi ",
      "Yong ",
      "Shan ",
      "Han ",
      "Yu ",
      "Mang ",
      "Ru ",
      "Qiong ",
      "[?] ",
      "Kuang ",
      "Fu ",
      "Kang ",
      "Bin ",
      "Fang ",
      "Xing ",
      "Na ",
      "Xin ",
      "Shen ",
      "Bang ",
      "Yuan ",
      "Cun ",
      "Huo ",
      "Xie ",
      "Bang ",
      "Wu ",
      "Ju ",
      "You ",
      "Han ",
      "Tai ",
      "Qiu ",
      "Bi ",
      "Pei ",
      "Bing ",
      "Shao ",
      "Bei ",
      "Wa ",
      "Di ",
      "Zou ",
      "Ye ",
      "Lin ",
      "Kuang ",
      "Gui ",
      "Zhu ",
      "Shi ",
      "Ku ",
      "Yu ",
      "Gai ",
      "Ge ",
      "Xi ",
      "Zhi ",
      "Ji ",
      "Xun ",
      "Hou ",
      "Xing ",
      "Jiao ",
      "Xi ",
      "Gui ",
      "Nuo ",
      "Lang ",
      "Jia ",
      "Kuai ",
      "Zheng ",
      "Otoko ",
      "Yun ",
      "Yan ",
      "Cheng ",
      "Dou ",
      "Chi ",
      "Lu ",
      "Fu ",
      "Wu ",
      "Fu ",
      "Gao ",
      "Hao ",
      "Lang ",
      "Jia ",
      "Geng ",
      "Jun ",
      "Ying ",
      "Bo ",
      "Xi ",
      "Bei ",
      "Li ",
      "Yun ",
      "Bu ",
      "Xiao ",
      "Qi ",
      "Pi ",
      "Qing ",
      "Guo ",
      "Zhou ",
      "Tan ",
      "Zou ",
      "Ping ",
      "Lai ",
      "Ni ",
      "Chen ",
      "You ",
      "Bu ",
      "Xiang ",
      "Dan ",
      "Ju ",
      "Yong ",
      "Qiao ",
      "Yi ",
      "Du ",
      "Yan ",
      "Mei "
    ];
  }
});

// node_modules/unidecode/data/x91.js
var require_x91 = __commonJS({
  "node_modules/unidecode/data/x91.js"(exports2, module2) {
    module2.exports = [
      "Ruo ",
      "Bei ",
      "E ",
      "Yu ",
      "Juan ",
      "Yu ",
      "Yun ",
      "Hou ",
      "Kui ",
      "Xiang ",
      "Xiang ",
      "Sou ",
      "Tang ",
      "Ming ",
      "Xi ",
      "Ru ",
      "Chu ",
      "Zi ",
      "Zou ",
      "Ju ",
      "Wu ",
      "Xiang ",
      "Yun ",
      "Hao ",
      "Yong ",
      "Bi ",
      "Mo ",
      "Chao ",
      "Fu ",
      "Liao ",
      "Yin ",
      "Zhuan ",
      "Hu ",
      "Qiao ",
      "Yan ",
      "Zhang ",
      "Fan ",
      "Qiao ",
      "Xu ",
      "Deng ",
      "Bi ",
      "Xin ",
      "Bi ",
      "Ceng ",
      "Wei ",
      "Zheng ",
      "Mao ",
      "Shan ",
      "Lin ",
      "Po ",
      "Dan ",
      "Meng ",
      "Ye ",
      "Cao ",
      "Kuai ",
      "Feng ",
      "Meng ",
      "Zou ",
      "Kuang ",
      "Lian ",
      "Zan ",
      "Chan ",
      "You ",
      "Qi ",
      "Yan ",
      "Chan ",
      "Zan ",
      "Ling ",
      "Huan ",
      "Xi ",
      "Feng ",
      "Zan ",
      "Li ",
      "You ",
      "Ding ",
      "Qiu ",
      "Zhuo ",
      "Pei ",
      "Zhou ",
      "Yi ",
      "Hang ",
      "Yu ",
      "Jiu ",
      "Yan ",
      "Zui ",
      "Mao ",
      "Dan ",
      "Xu ",
      "Tou ",
      "Zhen ",
      "Fen ",
      "Sakenomoto ",
      "[?] ",
      "Yun ",
      "Tai ",
      "Tian ",
      "Qia ",
      "Tuo ",
      "Zuo ",
      "Han ",
      "Gu ",
      "Su ",
      "Po ",
      "Chou ",
      "Zai ",
      "Ming ",
      "Luo ",
      "Chuo ",
      "Chou ",
      "You ",
      "Tong ",
      "Zhi ",
      "Xian ",
      "Jiang ",
      "Cheng ",
      "Yin ",
      "Tu ",
      "Xiao ",
      "Mei ",
      "Ku ",
      "Suan ",
      "Lei ",
      "Pu ",
      "Zui ",
      "Hai ",
      "Yan ",
      "Xi ",
      "Niang ",
      "Wei ",
      "Lu ",
      "Lan ",
      "Yan ",
      "Tao ",
      "Pei ",
      "Zhan ",
      "Chun ",
      "Tan ",
      "Zui ",
      "Chuo ",
      "Cu ",
      "Kun ",
      "Ti ",
      "Mian ",
      "Du ",
      "Hu ",
      "Xu ",
      "Xing ",
      "Tan ",
      "Jiu ",
      "Chun ",
      "Yun ",
      "Po ",
      "Ke ",
      "Sou ",
      "Mi ",
      "Quan ",
      "Chou ",
      "Cuo ",
      "Yun ",
      "Yong ",
      "Ang ",
      "Zha ",
      "Hai ",
      "Tang ",
      "Jiang ",
      "Piao ",
      "Shan ",
      "Yu ",
      "Li ",
      "Zao ",
      "Lao ",
      "Yi ",
      "Jiang ",
      "Pu ",
      "Jiao ",
      "Xi ",
      "Tan ",
      "Po ",
      "Nong ",
      "Yi ",
      "Li ",
      "Ju ",
      "Jiao ",
      "Yi ",
      "Niang ",
      "Ru ",
      "Xun ",
      "Chou ",
      "Yan ",
      "Ling ",
      "Mi ",
      "Mi ",
      "Niang ",
      "Xin ",
      "Jiao ",
      "Xi ",
      "Mi ",
      "Yan ",
      "Bian ",
      "Cai ",
      "Shi ",
      "You ",
      "Shi ",
      "Shi ",
      "Li ",
      "Zhong ",
      "Ye ",
      "Liang ",
      "Li ",
      "Jin ",
      "Jin ",
      "Qiu ",
      "Yi ",
      "Diao ",
      "Dao ",
      "Zhao ",
      "Ding ",
      "Po ",
      "Qiu ",
      "He ",
      "Fu ",
      "Zhen ",
      "Zhi ",
      "Ba ",
      "Luan ",
      "Fu ",
      "Nai ",
      "Diao ",
      "Shan ",
      "Qiao ",
      "Kou ",
      "Chuan ",
      "Zi ",
      "Fan ",
      "Yu ",
      "Hua ",
      "Han ",
      "Gong ",
      "Qi ",
      "Mang ",
      "Ri ",
      "Di ",
      "Si ",
      "Xi ",
      "Yi ",
      "Chai ",
      "Shi ",
      "Tu ",
      "Xi ",
      "Nu ",
      "Qian ",
      "Ishiyumi ",
      "Jian ",
      "Pi ",
      "Ye ",
      "Yin "
    ];
  }
});

// node_modules/unidecode/data/x92.js
var require_x92 = __commonJS({
  "node_modules/unidecode/data/x92.js"(exports2, module2) {
    module2.exports = [
      "Ba ",
      "Fang ",
      "Chen ",
      "Xing ",
      "Tou ",
      "Yue ",
      "Yan ",
      "Fu ",
      "Pi ",
      "Na ",
      "Xin ",
      "E ",
      "Jue ",
      "Dun ",
      "Gou ",
      "Yin ",
      "Qian ",
      "Ban ",
      "Ji ",
      "Ren ",
      "Chao ",
      "Niu ",
      "Fen ",
      "Yun ",
      "Ji ",
      "Qin ",
      "Pi ",
      "Guo ",
      "Hong ",
      "Yin ",
      "Jun ",
      "Shi ",
      "Yi ",
      "Zhong ",
      "Nie ",
      "Gai ",
      "Ri ",
      "Huo ",
      "Tai ",
      "Kang ",
      "Habaki ",
      "Irori ",
      "Ngaak ",
      "[?] ",
      "Duo ",
      "Zi ",
      "Ni ",
      "Tu ",
      "Shi ",
      "Min ",
      "Gu ",
      "E ",
      "Ling ",
      "Bing ",
      "Yi ",
      "Gu ",
      "Ba ",
      "Pi ",
      "Yu ",
      "Si ",
      "Zuo ",
      "Bu ",
      "You ",
      "Dian ",
      "Jia ",
      "Zhen ",
      "Shi ",
      "Shi ",
      "Tie ",
      "Ju ",
      "Zhan ",
      "Shi ",
      "She ",
      "Xuan ",
      "Zhao ",
      "Bao ",
      "He ",
      "Bi ",
      "Sheng ",
      "Chu ",
      "Shi ",
      "Bo ",
      "Zhu ",
      "Chi ",
      "Za ",
      "Po ",
      "Tong ",
      "Qian ",
      "Fu ",
      "Zhai ",
      "Liu ",
      "Qian ",
      "Fu ",
      "Li ",
      "Yue ",
      "Pi ",
      "Yang ",
      "Ban ",
      "Bo ",
      "Jie ",
      "Gou ",
      "Shu ",
      "Zheng ",
      "Mu ",
      "Ni ",
      "Nie ",
      "Di ",
      "Jia ",
      "Mu ",
      "Dan ",
      "Shen ",
      "Yi ",
      "Si ",
      "Kuang ",
      "Ka ",
      "Bei ",
      "Jian ",
      "Tong ",
      "Xing ",
      "Hong ",
      "Jiao ",
      "Chi ",
      "Er ",
      "Ge ",
      "Bing ",
      "Shi ",
      "Mou ",
      "Jia ",
      "Yin ",
      "Jun ",
      "Zhou ",
      "Chong ",
      "Shang ",
      "Tong ",
      "Mo ",
      "Lei ",
      "Ji ",
      "Yu ",
      "Xu ",
      "Ren ",
      "Zun ",
      "Zhi ",
      "Qiong ",
      "Shan ",
      "Chi ",
      "Xian ",
      "Xing ",
      "Quan ",
      "Pi ",
      "Tie ",
      "Zhu ",
      "Hou ",
      "Ming ",
      "Kua ",
      "Yao ",
      "Xian ",
      "Xian ",
      "Xiu ",
      "Jun ",
      "Cha ",
      "Lao ",
      "Ji ",
      "Pi ",
      "Ru ",
      "Mi ",
      "Yi ",
      "Yin ",
      "Guang ",
      "An ",
      "Diou ",
      "You ",
      "Se ",
      "Kao ",
      "Qian ",
      "Luan ",
      "Kasugai ",
      "Ai ",
      "Diao ",
      "Han ",
      "Rui ",
      "Shi ",
      "Keng ",
      "Qiu ",
      "Xiao ",
      "Zhe ",
      "Xiu ",
      "Zang ",
      "Ti ",
      "Cuo ",
      "Gua ",
      "Gong ",
      "Zhong ",
      "Dou ",
      "Lu ",
      "Mei ",
      "Lang ",
      "Wan ",
      "Xin ",
      "Yun ",
      "Bei ",
      "Wu ",
      "Su ",
      "Yu ",
      "Chan ",
      "Ting ",
      "Bo ",
      "Han ",
      "Jia ",
      "Hong ",
      "Cuan ",
      "Feng ",
      "Chan ",
      "Wan ",
      "Zhi ",
      "Si ",
      "Xuan ",
      "Wu ",
      "Wu ",
      "Tiao ",
      "Gong ",
      "Zhuo ",
      "Lue ",
      "Xing ",
      "Qian ",
      "Shen ",
      "Han ",
      "Lue ",
      "Xie ",
      "Chu ",
      "Zheng ",
      "Ju ",
      "Xian ",
      "Tie ",
      "Mang ",
      "Pu ",
      "Li ",
      "Pan ",
      "Rui ",
      "Cheng ",
      "Gao ",
      "Li ",
      "Te ",
      "Pyeng ",
      "Zhu ",
      "[?] ",
      "Tu ",
      "Liu ",
      "Zui ",
      "Ju ",
      "Chang ",
      "Yuan ",
      "Jian ",
      "Gang ",
      "Diao ",
      "Tao ",
      "Chang "
    ];
  }
});

// node_modules/unidecode/data/x93.js
var require_x93 = __commonJS({
  "node_modules/unidecode/data/x93.js"(exports2, module2) {
    module2.exports = [
      "Lun ",
      "Kua ",
      "Ling ",
      "Bei ",
      "Lu ",
      "Li ",
      "Qiang ",
      "Pou ",
      "Juan ",
      "Min ",
      "Zui ",
      "Peng ",
      "An ",
      "Pi ",
      "Xian ",
      "Ya ",
      "Zhui ",
      "Lei ",
      "A ",
      "Kong ",
      "Ta ",
      "Kun ",
      "Du ",
      "Wei ",
      "Chui ",
      "Zi ",
      "Zheng ",
      "Ben ",
      "Nie ",
      "Cong ",
      "Qun ",
      "Tan ",
      "Ding ",
      "Qi ",
      "Qian ",
      "Zhuo ",
      "Qi ",
      "Yu ",
      "Jin ",
      "Guan ",
      "Mao ",
      "Chang ",
      "Tian ",
      "Xi ",
      "Lian ",
      "Tao ",
      "Gu ",
      "Cuo ",
      "Shu ",
      "Zhen ",
      "Lu ",
      "Meng ",
      "Lu ",
      "Hua ",
      "Biao ",
      "Ga ",
      "Lai ",
      "Ken ",
      "Kazari ",
      "Bu ",
      "Nai ",
      "Wan ",
      "Zan ",
      "[?] ",
      "De ",
      "Xian ",
      "[?] ",
      "Huo ",
      "Liang ",
      "[?] ",
      "Men ",
      "Kai ",
      "Ying ",
      "Di ",
      "Lian ",
      "Guo ",
      "Xian ",
      "Du ",
      "Tu ",
      "Wei ",
      "Cong ",
      "Fu ",
      "Rou ",
      "Ji ",
      "E ",
      "Rou ",
      "Chen ",
      "Ti ",
      "Zha ",
      "Hong ",
      "Yang ",
      "Duan ",
      "Xia ",
      "Yu ",
      "Keng ",
      "Xing ",
      "Huang ",
      "Wei ",
      "Fu ",
      "Zhao ",
      "Cha ",
      "Qie ",
      "She ",
      "Hong ",
      "Kui ",
      "Tian ",
      "Mou ",
      "Qiao ",
      "Qiao ",
      "Hou ",
      "Tou ",
      "Cong ",
      "Huan ",
      "Ye ",
      "Min ",
      "Jian ",
      "Duan ",
      "Jian ",
      "Song ",
      "Kui ",
      "Hu ",
      "Xuan ",
      "Duo ",
      "Jie ",
      "Zhen ",
      "Bian ",
      "Zhong ",
      "Zi ",
      "Xiu ",
      "Ye ",
      "Mei ",
      "Pai ",
      "Ai ",
      "Jie ",
      "[?] ",
      "Mei ",
      "Chuo ",
      "Ta ",
      "Bang ",
      "Xia ",
      "Lian ",
      "Suo ",
      "Xi ",
      "Liu ",
      "Zu ",
      "Ye ",
      "Nou ",
      "Weng ",
      "Rong ",
      "Tang ",
      "Suo ",
      "Qiang ",
      "Ge ",
      "Shuo ",
      "Chui ",
      "Bo ",
      "Pan ",
      "Sa ",
      "Bi ",
      "Sang ",
      "Gang ",
      "Zi ",
      "Wu ",
      "Ying ",
      "Huang ",
      "Tiao ",
      "Liu ",
      "Kai ",
      "Sun ",
      "Sha ",
      "Sou ",
      "Wan ",
      "Hao ",
      "Zhen ",
      "Zhen ",
      "Luo ",
      "Yi ",
      "Yuan ",
      "Tang ",
      "Nie ",
      "Xi ",
      "Jia ",
      "Ge ",
      "Ma ",
      "Juan ",
      "Kasugai ",
      "Habaki ",
      "Suo ",
      "[?] ",
      "[?] ",
      "[?] ",
      "Na ",
      "Lu ",
      "Suo ",
      "Ou ",
      "Zu ",
      "Tuan ",
      "Xiu ",
      "Guan ",
      "Xuan ",
      "Lian ",
      "Shou ",
      "Ao ",
      "Man ",
      "Mo ",
      "Luo ",
      "Bi ",
      "Wei ",
      "Liu ",
      "Di ",
      "Qiao ",
      "Cong ",
      "Yi ",
      "Lu ",
      "Ao ",
      "Keng ",
      "Qiang ",
      "Cui ",
      "Qi ",
      "Chang ",
      "Tang ",
      "Man ",
      "Yong ",
      "Chan ",
      "Feng ",
      "Jing ",
      "Biao ",
      "Shu ",
      "Lou ",
      "Xiu ",
      "Cong ",
      "Long ",
      "Zan ",
      "Jian ",
      "Cao ",
      "Li ",
      "Xia ",
      "Xi ",
      "Kang ",
      "[?] ",
      "Beng ",
      "[?] ",
      "[?] ",
      "Zheng ",
      "Lu ",
      "Hua ",
      "Ji ",
      "Pu ",
      "Hui ",
      "Qiang ",
      "Po ",
      "Lin ",
      "Suo ",
      "Xiu ",
      "San ",
      "Cheng "
    ];
  }
});

// node_modules/unidecode/data/x94.js
var require_x94 = __commonJS({
  "node_modules/unidecode/data/x94.js"(exports2, module2) {
    module2.exports = [
      "Kui ",
      "Si ",
      "Liu ",
      "Nao ",
      "Heng ",
      "Pie ",
      "Sui ",
      "Fan ",
      "Qiao ",
      "Quan ",
      "Yang ",
      "Tang ",
      "Xiang ",
      "Jue ",
      "Jiao ",
      "Zun ",
      "Liao ",
      "Jie ",
      "Lao ",
      "Dui ",
      "Tan ",
      "Zan ",
      "Ji ",
      "Jian ",
      "Zhong ",
      "Deng ",
      "Ya ",
      "Ying ",
      "Dui ",
      "Jue ",
      "Nou ",
      "Ti ",
      "Pu ",
      "Tie ",
      "[?] ",
      "[?] ",
      "Ding ",
      "Shan ",
      "Kai ",
      "Jian ",
      "Fei ",
      "Sui ",
      "Lu ",
      "Juan ",
      "Hui ",
      "Yu ",
      "Lian ",
      "Zhuo ",
      "Qiao ",
      "Qian ",
      "Zhuo ",
      "Lei ",
      "Bi ",
      "Tie ",
      "Huan ",
      "Ye ",
      "Duo ",
      "Guo ",
      "Dang ",
      "Ju ",
      "Fen ",
      "Da ",
      "Bei ",
      "Yi ",
      "Ai ",
      "Zong ",
      "Xun ",
      "Diao ",
      "Zhu ",
      "Heng ",
      "Zhui ",
      "Ji ",
      "Nie ",
      "Ta ",
      "Huo ",
      "Qing ",
      "Bin ",
      "Ying ",
      "Kui ",
      "Ning ",
      "Xu ",
      "Jian ",
      "Jian ",
      "Yari ",
      "Cha ",
      "Zhi ",
      "Mie ",
      "Li ",
      "Lei ",
      "Ji ",
      "Zuan ",
      "Kuang ",
      "Shang ",
      "Peng ",
      "La ",
      "Du ",
      "Shuo ",
      "Chuo ",
      "Lu ",
      "Biao ",
      "Bao ",
      "Lu ",
      "[?] ",
      "[?] ",
      "Long ",
      "E ",
      "Lu ",
      "Xin ",
      "Jian ",
      "Lan ",
      "Bo ",
      "Jian ",
      "Yao ",
      "Chan ",
      "Xiang ",
      "Jian ",
      "Xi ",
      "Guan ",
      "Cang ",
      "Nie ",
      "Lei ",
      "Cuan ",
      "Qu ",
      "Pan ",
      "Luo ",
      "Zuan ",
      "Luan ",
      "Zao ",
      "Nie ",
      "Jue ",
      "Tang ",
      "Shu ",
      "Lan ",
      "Jin ",
      "Qiu ",
      "Yi ",
      "Zhen ",
      "Ding ",
      "Zhao ",
      "Po ",
      "Diao ",
      "Tu ",
      "Qian ",
      "Chuan ",
      "Shan ",
      "Ji ",
      "Fan ",
      "Diao ",
      "Men ",
      "Nu ",
      "Xi ",
      "Chai ",
      "Xing ",
      "Gai ",
      "Bu ",
      "Tai ",
      "Ju ",
      "Dun ",
      "Chao ",
      "Zhong ",
      "Na ",
      "Bei ",
      "Gang ",
      "Ban ",
      "Qian ",
      "Yao ",
      "Qin ",
      "Jun ",
      "Wu ",
      "Gou ",
      "Kang ",
      "Fang ",
      "Huo ",
      "Tou ",
      "Niu ",
      "Ba ",
      "Yu ",
      "Qian ",
      "Zheng ",
      "Qian ",
      "Gu ",
      "Bo ",
      "E ",
      "Po ",
      "Bu ",
      "Ba ",
      "Yue ",
      "Zuan ",
      "Mu ",
      "Dan ",
      "Jia ",
      "Dian ",
      "You ",
      "Tie ",
      "Bo ",
      "Ling ",
      "Shuo ",
      "Qian ",
      "Liu ",
      "Bao ",
      "Shi ",
      "Xuan ",
      "She ",
      "Bi ",
      "Ni ",
      "Pi ",
      "Duo ",
      "Xing ",
      "Kao ",
      "Lao ",
      "Er ",
      "Mang ",
      "Ya ",
      "You ",
      "Cheng ",
      "Jia ",
      "Ye ",
      "Nao ",
      "Zhi ",
      "Dang ",
      "Tong ",
      "Lu ",
      "Diao ",
      "Yin ",
      "Kai ",
      "Zha ",
      "Zhu ",
      "Xian ",
      "Ting ",
      "Diu ",
      "Xian ",
      "Hua ",
      "Quan ",
      "Sha ",
      "Jia ",
      "Yao ",
      "Ge ",
      "Ming ",
      "Zheng ",
      "Se ",
      "Jiao ",
      "Yi ",
      "Chan ",
      "Chong ",
      "Tang ",
      "An ",
      "Yin ",
      "Ru ",
      "Zhu ",
      "Lao ",
      "Pu ",
      "Wu ",
      "Lai ",
      "Te ",
      "Lian ",
      "Keng "
    ];
  }
});

// node_modules/unidecode/data/x95.js
var require_x95 = __commonJS({
  "node_modules/unidecode/data/x95.js"(exports2, module2) {
    module2.exports = [
      "Xiao ",
      "Suo ",
      "Li ",
      "Zheng ",
      "Chu ",
      "Guo ",
      "Gao ",
      "Tie ",
      "Xiu ",
      "Cuo ",
      "Lue ",
      "Feng ",
      "Xin ",
      "Liu ",
      "Kai ",
      "Jian ",
      "Rui ",
      "Ti ",
      "Lang ",
      "Qian ",
      "Ju ",
      "A ",
      "Qiang ",
      "Duo ",
      "Tian ",
      "Cuo ",
      "Mao ",
      "Ben ",
      "Qi ",
      "De ",
      "Kua ",
      "Kun ",
      "Chang ",
      "Xi ",
      "Gu ",
      "Luo ",
      "Chui ",
      "Zhui ",
      "Jin ",
      "Zhi ",
      "Xian ",
      "Juan ",
      "Huo ",
      "Pou ",
      "Tan ",
      "Ding ",
      "Jian ",
      "Ju ",
      "Meng ",
      "Zi ",
      "Qie ",
      "Ying ",
      "Kai ",
      "Qiang ",
      "Song ",
      "E ",
      "Cha ",
      "Qiao ",
      "Zhong ",
      "Duan ",
      "Sou ",
      "Huang ",
      "Huan ",
      "Ai ",
      "Du ",
      "Mei ",
      "Lou ",
      "Zi ",
      "Fei ",
      "Mei ",
      "Mo ",
      "Zhen ",
      "Bo ",
      "Ge ",
      "Nie ",
      "Tang ",
      "Juan ",
      "Nie ",
      "Na ",
      "Liu ",
      "Hao ",
      "Bang ",
      "Yi ",
      "Jia ",
      "Bin ",
      "Rong ",
      "Biao ",
      "Tang ",
      "Man ",
      "Luo ",
      "Beng ",
      "Yong ",
      "Jing ",
      "Di ",
      "Zu ",
      "Xuan ",
      "Liu ",
      "Tan ",
      "Jue ",
      "Liao ",
      "Pu ",
      "Lu ",
      "Dui ",
      "Lan ",
      "Pu ",
      "Cuan ",
      "Qiang ",
      "Deng ",
      "Huo ",
      "Lei ",
      "Huan ",
      "Zhuo ",
      "Lian ",
      "Yi ",
      "Cha ",
      "Biao ",
      "La ",
      "Chan ",
      "Xiang ",
      "Chang ",
      "Chang ",
      "Jiu ",
      "Ao ",
      "Die ",
      "Qu ",
      "Liao ",
      "Mi ",
      "Chang ",
      "Men ",
      "Ma ",
      "Shuan ",
      "Shan ",
      "Huo ",
      "Men ",
      "Yan ",
      "Bi ",
      "Han ",
      "Bi ",
      "San ",
      "Kai ",
      "Kang ",
      "Beng ",
      "Hong ",
      "Run ",
      "San ",
      "Xian ",
      "Xian ",
      "Jian ",
      "Min ",
      "Xia ",
      "Yuru ",
      "Dou ",
      "Zha ",
      "Nao ",
      "Jian ",
      "Peng ",
      "Xia ",
      "Ling ",
      "Bian ",
      "Bi ",
      "Run ",
      "He ",
      "Guan ",
      "Ge ",
      "Ge ",
      "Fa ",
      "Chu ",
      "Hong ",
      "Gui ",
      "Min ",
      "Se ",
      "Kun ",
      "Lang ",
      "Lu ",
      "Ting ",
      "Sha ",
      "Ju ",
      "Yue ",
      "Yue ",
      "Chan ",
      "Qu ",
      "Lin ",
      "Chang ",
      "Shai ",
      "Kun ",
      "Yan ",
      "Min ",
      "Yan ",
      "E ",
      "Hun ",
      "Yu ",
      "Wen ",
      "Xiang ",
      "Bao ",
      "Xiang ",
      "Qu ",
      "Yao ",
      "Wen ",
      "Ban ",
      "An ",
      "Wei ",
      "Yin ",
      "Kuo ",
      "Que ",
      "Lan ",
      "Du ",
      "[?] ",
      "Phwung ",
      "Tian ",
      "Nie ",
      "Ta ",
      "Kai ",
      "He ",
      "Que ",
      "Chuang ",
      "Guan ",
      "Dou ",
      "Qi ",
      "Kui ",
      "Tang ",
      "Guan ",
      "Piao ",
      "Kan ",
      "Xi ",
      "Hui ",
      "Chan ",
      "Pi ",
      "Dang ",
      "Huan ",
      "Ta ",
      "Wen ",
      "[?] ",
      "Men ",
      "Shuan ",
      "Shan ",
      "Yan ",
      "Han ",
      "Bi ",
      "Wen ",
      "Chuang ",
      "Run ",
      "Wei ",
      "Xian ",
      "Hong ",
      "Jian ",
      "Min ",
      "Kang ",
      "Men ",
      "Zha ",
      "Nao ",
      "Gui ",
      "Wen ",
      "Ta ",
      "Min ",
      "Lu ",
      "Kai "
    ];
  }
});

// node_modules/unidecode/data/x96.js
var require_x96 = __commonJS({
  "node_modules/unidecode/data/x96.js"(exports2, module2) {
    module2.exports = [
      "Fa ",
      "Ge ",
      "He ",
      "Kun ",
      "Jiu ",
      "Yue ",
      "Lang ",
      "Du ",
      "Yu ",
      "Yan ",
      "Chang ",
      "Xi ",
      "Wen ",
      "Hun ",
      "Yan ",
      "E ",
      "Chan ",
      "Lan ",
      "Qu ",
      "Hui ",
      "Kuo ",
      "Que ",
      "Ge ",
      "Tian ",
      "Ta ",
      "Que ",
      "Kan ",
      "Huan ",
      "Fu ",
      "Fu ",
      "Le ",
      "Dui ",
      "Xin ",
      "Qian ",
      "Wu ",
      "Yi ",
      "Tuo ",
      "Yin ",
      "Yang ",
      "Dou ",
      "E ",
      "Sheng ",
      "Ban ",
      "Pei ",
      "Keng ",
      "Yun ",
      "Ruan ",
      "Zhi ",
      "Pi ",
      "Jing ",
      "Fang ",
      "Yang ",
      "Yin ",
      "Zhen ",
      "Jie ",
      "Cheng ",
      "E ",
      "Qu ",
      "Di ",
      "Zu ",
      "Zuo ",
      "Dian ",
      "Ling ",
      "A ",
      "Tuo ",
      "Tuo ",
      "Po ",
      "Bing ",
      "Fu ",
      "Ji ",
      "Lu ",
      "Long ",
      "Chen ",
      "Xing ",
      "Duo ",
      "Lou ",
      "Mo ",
      "Jiang ",
      "Shu ",
      "Duo ",
      "Xian ",
      "Er ",
      "Gui ",
      "Yu ",
      "Gai ",
      "Shan ",
      "Xun ",
      "Qiao ",
      "Xing ",
      "Chun ",
      "Fu ",
      "Bi ",
      "Xia ",
      "Shan ",
      "Sheng ",
      "Zhi ",
      "Pu ",
      "Dou ",
      "Yuan ",
      "Zhen ",
      "Chu ",
      "Xian ",
      "Tou ",
      "Nie ",
      "Yun ",
      "Xian ",
      "Pei ",
      "Pei ",
      "Zou ",
      "Yi ",
      "Dui ",
      "Lun ",
      "Yin ",
      "Ju ",
      "Chui ",
      "Chen ",
      "Pi ",
      "Ling ",
      "Tao ",
      "Xian ",
      "Lu ",
      "Sheng ",
      "Xian ",
      "Yin ",
      "Zhu ",
      "Yang ",
      "Reng ",
      "Shan ",
      "Chong ",
      "Yan ",
      "Yin ",
      "Yu ",
      "Ti ",
      "Yu ",
      "Long ",
      "Wei ",
      "Wei ",
      "Nie ",
      "Dui ",
      "Sui ",
      "An ",
      "Huang ",
      "Jie ",
      "Sui ",
      "Yin ",
      "Gai ",
      "Yan ",
      "Hui ",
      "Ge ",
      "Yun ",
      "Wu ",
      "Wei ",
      "Ai ",
      "Xi ",
      "Tang ",
      "Ji ",
      "Zhang ",
      "Dao ",
      "Ao ",
      "Xi ",
      "Yin ",
      "[?] ",
      "Rao ",
      "Lin ",
      "Tui ",
      "Deng ",
      "Pi ",
      "Sui ",
      "Sui ",
      "Yu ",
      "Xian ",
      "Fen ",
      "Ni ",
      "Er ",
      "Ji ",
      "Dao ",
      "Xi ",
      "Yin ",
      "E ",
      "Hui ",
      "Long ",
      "Xi ",
      "Li ",
      "Li ",
      "Li ",
      "Zhui ",
      "He ",
      "Zhi ",
      "Zhun ",
      "Jun ",
      "Nan ",
      "Yi ",
      "Que ",
      "Yan ",
      "Qian ",
      "Ya ",
      "Xiong ",
      "Ya ",
      "Ji ",
      "Gu ",
      "Huan ",
      "Zhi ",
      "Gou ",
      "Jun ",
      "Ci ",
      "Yong ",
      "Ju ",
      "Chu ",
      "Hu ",
      "Za ",
      "Luo ",
      "Yu ",
      "Chou ",
      "Diao ",
      "Sui ",
      "Han ",
      "Huo ",
      "Shuang ",
      "Guan ",
      "Chu ",
      "Za ",
      "Yong ",
      "Ji ",
      "Xi ",
      "Chou ",
      "Liu ",
      "Li ",
      "Nan ",
      "Xue ",
      "Za ",
      "Ji ",
      "Ji ",
      "Yu ",
      "Yu ",
      "Xue ",
      "Na ",
      "Fou ",
      "Se ",
      "Mu ",
      "Wen ",
      "Fen ",
      "Pang ",
      "Yun ",
      "Li ",
      "Li ",
      "Ang ",
      "Ling ",
      "Lei ",
      "An ",
      "Bao ",
      "Meng ",
      "Dian ",
      "Dang ",
      "Xing ",
      "Wu ",
      "Zhao "
    ];
  }
});

// node_modules/unidecode/data/x97.js
var require_x97 = __commonJS({
  "node_modules/unidecode/data/x97.js"(exports2, module2) {
    module2.exports = [
      "Xu ",
      "Ji ",
      "Mu ",
      "Chen ",
      "Xiao ",
      "Zha ",
      "Ting ",
      "Zhen ",
      "Pei ",
      "Mei ",
      "Ling ",
      "Qi ",
      "Chou ",
      "Huo ",
      "Sha ",
      "Fei ",
      "Weng ",
      "Zhan ",
      "Yin ",
      "Ni ",
      "Chou ",
      "Tun ",
      "Lin ",
      "[?] ",
      "Dong ",
      "Ying ",
      "Wu ",
      "Ling ",
      "Shuang ",
      "Ling ",
      "Xia ",
      "Hong ",
      "Yin ",
      "Mo ",
      "Mai ",
      "Yun ",
      "Liu ",
      "Meng ",
      "Bin ",
      "Wu ",
      "Wei ",
      "Huo ",
      "Yin ",
      "Xi ",
      "Yi ",
      "Ai ",
      "Dan ",
      "Deng ",
      "Xian ",
      "Yu ",
      "Lu ",
      "Long ",
      "Dai ",
      "Ji ",
      "Pang ",
      "Yang ",
      "Ba ",
      "Pi ",
      "Wei ",
      "[?] ",
      "Xi ",
      "Ji ",
      "Mai ",
      "Meng ",
      "Meng ",
      "Lei ",
      "Li ",
      "Huo ",
      "Ai ",
      "Fei ",
      "Dai ",
      "Long ",
      "Ling ",
      "Ai ",
      "Feng ",
      "Li ",
      "Bao ",
      "[?] ",
      "He ",
      "He ",
      "Bing ",
      "Qing ",
      "Qing ",
      "Jing ",
      "Tian ",
      "Zhen ",
      "Jing ",
      "Cheng ",
      "Qing ",
      "Jing ",
      "Jing ",
      "Dian ",
      "Jing ",
      "Tian ",
      "Fei ",
      "Fei ",
      "Kao ",
      "Mi ",
      "Mian ",
      "Mian ",
      "Pao ",
      "Ye ",
      "Tian ",
      "Hui ",
      "Ye ",
      "Ge ",
      "Ding ",
      "Cha ",
      "Jian ",
      "Ren ",
      "Di ",
      "Du ",
      "Wu ",
      "Ren ",
      "Qin ",
      "Jin ",
      "Xue ",
      "Niu ",
      "Ba ",
      "Yin ",
      "Sa ",
      "Na ",
      "Mo ",
      "Zu ",
      "Da ",
      "Ban ",
      "Yi ",
      "Yao ",
      "Tao ",
      "Tuo ",
      "Jia ",
      "Hong ",
      "Pao ",
      "Yang ",
      "Tomo ",
      "Yin ",
      "Jia ",
      "Tao ",
      "Ji ",
      "Xie ",
      "An ",
      "An ",
      "Hen ",
      "Gong ",
      "Kohaze ",
      "Da ",
      "Qiao ",
      "Ting ",
      "Wan ",
      "Ying ",
      "Sui ",
      "Tiao ",
      "Qiao ",
      "Xuan ",
      "Kong ",
      "Beng ",
      "Ta ",
      "Zhang ",
      "Bing ",
      "Kuo ",
      "Ju ",
      "La ",
      "Xie ",
      "Rou ",
      "Bang ",
      "Yi ",
      "Qiu ",
      "Qiu ",
      "He ",
      "Xiao ",
      "Mu ",
      "Ju ",
      "Jian ",
      "Bian ",
      "Di ",
      "Jian ",
      "On ",
      "Tao ",
      "Gou ",
      "Ta ",
      "Bei ",
      "Xie ",
      "Pan ",
      "Ge ",
      "Bi ",
      "Kuo ",
      "Tang ",
      "Lou ",
      "Gui ",
      "Qiao ",
      "Xue ",
      "Ji ",
      "Jian ",
      "Jiang ",
      "Chan ",
      "Da ",
      "Huo ",
      "Xian ",
      "Qian ",
      "Du ",
      "Wa ",
      "Jian ",
      "Lan ",
      "Wei ",
      "Ren ",
      "Fu ",
      "Mei ",
      "Juan ",
      "Ge ",
      "Wei ",
      "Qiao ",
      "Han ",
      "Chang ",
      "[?] ",
      "Rou ",
      "Xun ",
      "She ",
      "Wei ",
      "Ge ",
      "Bei ",
      "Tao ",
      "Gou ",
      "Yun ",
      "[?] ",
      "Bi ",
      "Wei ",
      "Hui ",
      "Du ",
      "Wa ",
      "Du ",
      "Wei ",
      "Ren ",
      "Fu ",
      "Han ",
      "Wei ",
      "Yun ",
      "Tao ",
      "Jiu ",
      "Jiu ",
      "Xian ",
      "Xie ",
      "Xian ",
      "Ji ",
      "Yin ",
      "Za ",
      "Yun ",
      "Shao ",
      "Le ",
      "Peng ",
      "Heng ",
      "Ying ",
      "Yun ",
      "Peng ",
      "Yin ",
      "Yin ",
      "Xiang "
    ];
  }
});

// node_modules/unidecode/data/x98.js
var require_x98 = __commonJS({
  "node_modules/unidecode/data/x98.js"(exports2, module2) {
    module2.exports = [
      "Hu ",
      "Ye ",
      "Ding ",
      "Qing ",
      "Pan ",
      "Xiang ",
      "Shun ",
      "Han ",
      "Xu ",
      "Yi ",
      "Xu ",
      "Gu ",
      "Song ",
      "Kui ",
      "Qi ",
      "Hang ",
      "Yu ",
      "Wan ",
      "Ban ",
      "Dun ",
      "Di ",
      "Dan ",
      "Pan ",
      "Po ",
      "Ling ",
      "Ce ",
      "Jing ",
      "Lei ",
      "He ",
      "Qiao ",
      "E ",
      "E ",
      "Wei ",
      "Jie ",
      "Gua ",
      "Shen ",
      "Yi ",
      "Shen ",
      "Hai ",
      "Dui ",
      "Pian ",
      "Ping ",
      "Lei ",
      "Fu ",
      "Jia ",
      "Tou ",
      "Hui ",
      "Kui ",
      "Jia ",
      "Le ",
      "Tian ",
      "Cheng ",
      "Ying ",
      "Jun ",
      "Hu ",
      "Han ",
      "Jing ",
      "Tui ",
      "Tui ",
      "Pin ",
      "Lai ",
      "Tui ",
      "Zi ",
      "Zi ",
      "Chui ",
      "Ding ",
      "Lai ",
      "Yan ",
      "Han ",
      "Jian ",
      "Ke ",
      "Cui ",
      "Jiong ",
      "Qin ",
      "Yi ",
      "Sai ",
      "Ti ",
      "E ",
      "E ",
      "Yan ",
      "Hun ",
      "Kan ",
      "Yong ",
      "Zhuan ",
      "Yan ",
      "Xian ",
      "Xin ",
      "Yi ",
      "Yuan ",
      "Sang ",
      "Dian ",
      "Dian ",
      "Jiang ",
      "Ku ",
      "Lei ",
      "Liao ",
      "Piao ",
      "Yi ",
      "Man ",
      "Qi ",
      "Rao ",
      "Hao ",
      "Qiao ",
      "Gu ",
      "Xun ",
      "Qian ",
      "Hui ",
      "Zhan ",
      "Ru ",
      "Hong ",
      "Bin ",
      "Xian ",
      "Pin ",
      "Lu ",
      "Lan ",
      "Nie ",
      "Quan ",
      "Ye ",
      "Ding ",
      "Qing ",
      "Han ",
      "Xiang ",
      "Shun ",
      "Xu ",
      "Xu ",
      "Wan ",
      "Gu ",
      "Dun ",
      "Qi ",
      "Ban ",
      "Song ",
      "Hang ",
      "Yu ",
      "Lu ",
      "Ling ",
      "Po ",
      "Jing ",
      "Jie ",
      "Jia ",
      "Tian ",
      "Han ",
      "Ying ",
      "Jiong ",
      "Hai ",
      "Yi ",
      "Pin ",
      "Hui ",
      "Tui ",
      "Han ",
      "Ying ",
      "Ying ",
      "Ke ",
      "Ti ",
      "Yong ",
      "E ",
      "Zhuan ",
      "Yan ",
      "E ",
      "Nie ",
      "Man ",
      "Dian ",
      "Sang ",
      "Hao ",
      "Lei ",
      "Zhan ",
      "Ru ",
      "Pin ",
      "Quan ",
      "Feng ",
      "Biao ",
      "Oroshi ",
      "Fu ",
      "Xia ",
      "Zhan ",
      "Biao ",
      "Sa ",
      "Ba ",
      "Tai ",
      "Lie ",
      "Gua ",
      "Xuan ",
      "Shao ",
      "Ju ",
      "Bi ",
      "Si ",
      "Wei ",
      "Yang ",
      "Yao ",
      "Sou ",
      "Kai ",
      "Sao ",
      "Fan ",
      "Liu ",
      "Xi ",
      "Liao ",
      "Piao ",
      "Piao ",
      "Liu ",
      "Biao ",
      "Biao ",
      "Biao ",
      "Liao ",
      "[?] ",
      "Se ",
      "Feng ",
      "Biao ",
      "Feng ",
      "Yang ",
      "Zhan ",
      "Biao ",
      "Sa ",
      "Ju ",
      "Si ",
      "Sou ",
      "Yao ",
      "Liu ",
      "Piao ",
      "Biao ",
      "Biao ",
      "Fei ",
      "Fan ",
      "Fei ",
      "Fei ",
      "Shi ",
      "Shi ",
      "Can ",
      "Ji ",
      "Ding ",
      "Si ",
      "Tuo ",
      "Zhan ",
      "Sun ",
      "Xiang ",
      "Tun ",
      "Ren ",
      "Yu ",
      "Juan ",
      "Chi ",
      "Yin ",
      "Fan ",
      "Fan ",
      "Sun ",
      "Yin ",
      "Zhu ",
      "Yi ",
      "Zhai ",
      "Bi ",
      "Jie ",
      "Tao ",
      "Liu ",
      "Ci ",
      "Tie ",
      "Si ",
      "Bao ",
      "Shi ",
      "Duo "
    ];
  }
});

// node_modules/unidecode/data/x99.js
var require_x99 = __commonJS({
  "node_modules/unidecode/data/x99.js"(exports2, module2) {
    module2.exports = [
      "Hai ",
      "Ren ",
      "Tian ",
      "Jiao ",
      "Jia ",
      "Bing ",
      "Yao ",
      "Tong ",
      "Ci ",
      "Xiang ",
      "Yang ",
      "Yang ",
      "Er ",
      "Yan ",
      "Le ",
      "Yi ",
      "Can ",
      "Bo ",
      "Nei ",
      "E ",
      "Bu ",
      "Jun ",
      "Dou ",
      "Su ",
      "Yu ",
      "Shi ",
      "Yao ",
      "Hun ",
      "Guo ",
      "Shi ",
      "Jian ",
      "Zhui ",
      "Bing ",
      "Xian ",
      "Bu ",
      "Ye ",
      "Tan ",
      "Fei ",
      "Zhang ",
      "Wei ",
      "Guan ",
      "E ",
      "Nuan ",
      "Hun ",
      "Hu ",
      "Huang ",
      "Tie ",
      "Hui ",
      "Jian ",
      "Hou ",
      "He ",
      "Xing ",
      "Fen ",
      "Wei ",
      "Gu ",
      "Cha ",
      "Song ",
      "Tang ",
      "Bo ",
      "Gao ",
      "Xi ",
      "Kui ",
      "Liu ",
      "Sou ",
      "Tao ",
      "Ye ",
      "Yun ",
      "Mo ",
      "Tang ",
      "Man ",
      "Bi ",
      "Yu ",
      "Xiu ",
      "Jin ",
      "San ",
      "Kui ",
      "Zhuan ",
      "Shan ",
      "Chi ",
      "Dan ",
      "Yi ",
      "Ji ",
      "Rao ",
      "Cheng ",
      "Yong ",
      "Tao ",
      "Hui ",
      "Xiang ",
      "Zhan ",
      "Fen ",
      "Hai ",
      "Meng ",
      "Yan ",
      "Mo ",
      "Chan ",
      "Xiang ",
      "Luo ",
      "Zuan ",
      "Nang ",
      "Shi ",
      "Ding ",
      "Ji ",
      "Tuo ",
      "Xing ",
      "Tun ",
      "Xi ",
      "Ren ",
      "Yu ",
      "Chi ",
      "Fan ",
      "Yin ",
      "Jian ",
      "Shi ",
      "Bao ",
      "Si ",
      "Duo ",
      "Yi ",
      "Er ",
      "Rao ",
      "Xiang ",
      "Jia ",
      "Le ",
      "Jiao ",
      "Yi ",
      "Bing ",
      "Bo ",
      "Dou ",
      "E ",
      "Yu ",
      "Nei ",
      "Jun ",
      "Guo ",
      "Hun ",
      "Xian ",
      "Guan ",
      "Cha ",
      "Kui ",
      "Gu ",
      "Sou ",
      "Chan ",
      "Ye ",
      "Mo ",
      "Bo ",
      "Liu ",
      "Xiu ",
      "Jin ",
      "Man ",
      "San ",
      "Zhuan ",
      "Nang ",
      "Shou ",
      "Kui ",
      "Guo ",
      "Xiang ",
      "Fen ",
      "Ba ",
      "Ni ",
      "Bi ",
      "Bo ",
      "Tu ",
      "Han ",
      "Fei ",
      "Jian ",
      "An ",
      "Ai ",
      "Fu ",
      "Xian ",
      "Wen ",
      "Xin ",
      "Fen ",
      "Bin ",
      "Xing ",
      "Ma ",
      "Yu ",
      "Feng ",
      "Han ",
      "Di ",
      "Tuo ",
      "Tuo ",
      "Chi ",
      "Xun ",
      "Zhu ",
      "Zhi ",
      "Pei ",
      "Xin ",
      "Ri ",
      "Sa ",
      "Yin ",
      "Wen ",
      "Zhi ",
      "Dan ",
      "Lu ",
      "You ",
      "Bo ",
      "Bao ",
      "Kuai ",
      "Tuo ",
      "Yi ",
      "Qu ",
      "[?] ",
      "Qu ",
      "Jiong ",
      "Bo ",
      "Zhao ",
      "Yuan ",
      "Peng ",
      "Zhou ",
      "Ju ",
      "Zhu ",
      "Nu ",
      "Ju ",
      "Pi ",
      "Zang ",
      "Jia ",
      "Ling ",
      "Zhen ",
      "Tai ",
      "Fu ",
      "Yang ",
      "Shi ",
      "Bi ",
      "Tuo ",
      "Tuo ",
      "Si ",
      "Liu ",
      "Ma ",
      "Pian ",
      "Tao ",
      "Zhi ",
      "Rong ",
      "Teng ",
      "Dong ",
      "Xun ",
      "Quan ",
      "Shen ",
      "Jiong ",
      "Er ",
      "Hai ",
      "Bo ",
      "Zhu ",
      "Yin ",
      "Luo ",
      "Shuu ",
      "Dan ",
      "Xie ",
      "Liu ",
      "Ju ",
      "Song ",
      "Qin ",
      "Mang ",
      "Liang ",
      "Han ",
      "Tu ",
      "Xuan ",
      "Tui ",
      "Jun "
    ];
  }
});

// node_modules/unidecode/data/x9a.js
var require_x9a = __commonJS({
  "node_modules/unidecode/data/x9a.js"(exports2, module2) {
    module2.exports = [
      "E ",
      "Cheng ",
      "Xin ",
      "Ai ",
      "Lu ",
      "Zhui ",
      "Zhou ",
      "She ",
      "Pian ",
      "Kun ",
      "Tao ",
      "Lai ",
      "Zong ",
      "Ke ",
      "Qi ",
      "Qi ",
      "Yan ",
      "Fei ",
      "Sao ",
      "Yan ",
      "Jie ",
      "Yao ",
      "Wu ",
      "Pian ",
      "Cong ",
      "Pian ",
      "Qian ",
      "Fei ",
      "Huang ",
      "Jian ",
      "Huo ",
      "Yu ",
      "Ti ",
      "Quan ",
      "Xia ",
      "Zong ",
      "Kui ",
      "Rou ",
      "Si ",
      "Gua ",
      "Tuo ",
      "Kui ",
      "Sou ",
      "Qian ",
      "Cheng ",
      "Zhi ",
      "Liu ",
      "Pang ",
      "Teng ",
      "Xi ",
      "Cao ",
      "Du ",
      "Yan ",
      "Yuan ",
      "Zou ",
      "Sao ",
      "Shan ",
      "Li ",
      "Zhi ",
      "Shuang ",
      "Lu ",
      "Xi ",
      "Luo ",
      "Zhang ",
      "Mo ",
      "Ao ",
      "Can ",
      "Piao ",
      "Cong ",
      "Qu ",
      "Bi ",
      "Zhi ",
      "Yu ",
      "Xu ",
      "Hua ",
      "Bo ",
      "Su ",
      "Xiao ",
      "Lin ",
      "Chan ",
      "Dun ",
      "Liu ",
      "Tuo ",
      "Zeng ",
      "Tan ",
      "Jiao ",
      "Tie ",
      "Yan ",
      "Luo ",
      "Zhan ",
      "Jing ",
      "Yi ",
      "Ye ",
      "Tuo ",
      "Bin ",
      "Zou ",
      "Yan ",
      "Peng ",
      "Lu ",
      "Teng ",
      "Xiang ",
      "Ji ",
      "Shuang ",
      "Ju ",
      "Xi ",
      "Huan ",
      "Li ",
      "Biao ",
      "Ma ",
      "Yu ",
      "Tuo ",
      "Xun ",
      "Chi ",
      "Qu ",
      "Ri ",
      "Bo ",
      "Lu ",
      "Zang ",
      "Shi ",
      "Si ",
      "Fu ",
      "Ju ",
      "Zou ",
      "Zhu ",
      "Tuo ",
      "Nu ",
      "Jia ",
      "Yi ",
      "Tai ",
      "Xiao ",
      "Ma ",
      "Yin ",
      "Jiao ",
      "Hua ",
      "Luo ",
      "Hai ",
      "Pian ",
      "Biao ",
      "Li ",
      "Cheng ",
      "Yan ",
      "Xin ",
      "Qin ",
      "Jun ",
      "Qi ",
      "Qi ",
      "Ke ",
      "Zhui ",
      "Zong ",
      "Su ",
      "Can ",
      "Pian ",
      "Zhi ",
      "Kui ",
      "Sao ",
      "Wu ",
      "Ao ",
      "Liu ",
      "Qian ",
      "Shan ",
      "Piao ",
      "Luo ",
      "Cong ",
      "Chan ",
      "Zou ",
      "Ji ",
      "Shuang ",
      "Xiang ",
      "Gu ",
      "Wei ",
      "Wei ",
      "Wei ",
      "Yu ",
      "Gan ",
      "Yi ",
      "Ang ",
      "Tou ",
      "Xie ",
      "Bao ",
      "Bi ",
      "Chi ",
      "Ti ",
      "Di ",
      "Ku ",
      "Hai ",
      "Qiao ",
      "Gou ",
      "Kua ",
      "Ge ",
      "Tui ",
      "Geng ",
      "Pian ",
      "Bi ",
      "Ke ",
      "Ka ",
      "Yu ",
      "Sui ",
      "Lou ",
      "Bo ",
      "Xiao ",
      "Pang ",
      "Bo ",
      "Ci ",
      "Kuan ",
      "Bin ",
      "Mo ",
      "Liao ",
      "Lou ",
      "Nao ",
      "Du ",
      "Zang ",
      "Sui ",
      "Ti ",
      "Bin ",
      "Kuan ",
      "Lu ",
      "Gao ",
      "Gao ",
      "Qiao ",
      "Kao ",
      "Qiao ",
      "Lao ",
      "Zao ",
      "Biao ",
      "Kun ",
      "Kun ",
      "Ti ",
      "Fang ",
      "Xiu ",
      "Ran ",
      "Mao ",
      "Dan ",
      "Kun ",
      "Bin ",
      "Fa ",
      "Tiao ",
      "Peng ",
      "Zi ",
      "Fa ",
      "Ran ",
      "Ti ",
      "Pao ",
      "Pi ",
      "Mao ",
      "Fu ",
      "Er ",
      "Rong ",
      "Qu ",
      "Gong ",
      "Xiu ",
      "Gua ",
      "Ji ",
      "Peng ",
      "Zhua ",
      "Shao ",
      "Sha "
    ];
  }
});

// node_modules/unidecode/data/x9b.js
var require_x9b = __commonJS({
  "node_modules/unidecode/data/x9b.js"(exports2, module2) {
    module2.exports = [
      "Ti ",
      "Li ",
      "Bin ",
      "Zong ",
      "Ti ",
      "Peng ",
      "Song ",
      "Zheng ",
      "Quan ",
      "Zong ",
      "Shun ",
      "Jian ",
      "Duo ",
      "Hu ",
      "La ",
      "Jiu ",
      "Qi ",
      "Lian ",
      "Zhen ",
      "Bin ",
      "Peng ",
      "Mo ",
      "San ",
      "Man ",
      "Man ",
      "Seng ",
      "Xu ",
      "Lie ",
      "Qian ",
      "Qian ",
      "Nong ",
      "Huan ",
      "Kuai ",
      "Ning ",
      "Bin ",
      "Lie ",
      "Rang ",
      "Dou ",
      "Dou ",
      "Nao ",
      "Hong ",
      "Xi ",
      "Dou ",
      "Han ",
      "Dou ",
      "Dou ",
      "Jiu ",
      "Chang ",
      "Yu ",
      "Yu ",
      "Li ",
      "Juan ",
      "Fu ",
      "Qian ",
      "Gui ",
      "Zong ",
      "Liu ",
      "Gui ",
      "Shang ",
      "Yu ",
      "Gui ",
      "Mei ",
      "Ji ",
      "Qi ",
      "Jie ",
      "Kui ",
      "Hun ",
      "Ba ",
      "Po ",
      "Mei ",
      "Xu ",
      "Yan ",
      "Xiao ",
      "Liang ",
      "Yu ",
      "Tui ",
      "Qi ",
      "Wang ",
      "Liang ",
      "Wei ",
      "Jian ",
      "Chi ",
      "Piao ",
      "Bi ",
      "Mo ",
      "Ji ",
      "Xu ",
      "Chou ",
      "Yan ",
      "Zhan ",
      "Yu ",
      "Dao ",
      "Ren ",
      "Ji ",
      "Eri ",
      "Gong ",
      "Tuo ",
      "Diao ",
      "Ji ",
      "Xu ",
      "E ",
      "E ",
      "Sha ",
      "Hang ",
      "Tun ",
      "Mo ",
      "Jie ",
      "Shen ",
      "Fan ",
      "Yuan ",
      "Bi ",
      "Lu ",
      "Wen ",
      "Hu ",
      "Lu ",
      "Za ",
      "Fang ",
      "Fen ",
      "Na ",
      "You ",
      "Namazu ",
      "Todo ",
      "He ",
      "Xia ",
      "Qu ",
      "Han ",
      "Pi ",
      "Ling ",
      "Tuo ",
      "Bo ",
      "Qiu ",
      "Ping ",
      "Fu ",
      "Bi ",
      "Ji ",
      "Wei ",
      "Ju ",
      "Diao ",
      "Bo ",
      "You ",
      "Gun ",
      "Pi ",
      "Nian ",
      "Xing ",
      "Tai ",
      "Bao ",
      "Fu ",
      "Zha ",
      "Ju ",
      "Gu ",
      "Kajika ",
      "Tong ",
      "[?] ",
      "Ta ",
      "Jie ",
      "Shu ",
      "Hou ",
      "Xiang ",
      "Er ",
      "An ",
      "Wei ",
      "Tiao ",
      "Zhu ",
      "Yin ",
      "Lie ",
      "Luo ",
      "Tong ",
      "Yi ",
      "Qi ",
      "Bing ",
      "Wei ",
      "Jiao ",
      "Bu ",
      "Gui ",
      "Xian ",
      "Ge ",
      "Hui ",
      "Bora ",
      "Mate ",
      "Kao ",
      "Gori ",
      "Duo ",
      "Jun ",
      "Ti ",
      "Man ",
      "Xiao ",
      "Za ",
      "Sha ",
      "Qin ",
      "Yu ",
      "Nei ",
      "Zhe ",
      "Gun ",
      "Geng ",
      "Su ",
      "Wu ",
      "Qiu ",
      "Ting ",
      "Fu ",
      "Wan ",
      "You ",
      "Li ",
      "Sha ",
      "Sha ",
      "Gao ",
      "Meng ",
      "Ugui ",
      "Asari ",
      "Subashiri ",
      "Kazunoko ",
      "Yong ",
      "Ni ",
      "Zi ",
      "Qi ",
      "Qing ",
      "Xiang ",
      "Nei ",
      "Chun ",
      "Ji ",
      "Diao ",
      "Qie ",
      "Gu ",
      "Zhou ",
      "Dong ",
      "Lai ",
      "Fei ",
      "Ni ",
      "Yi ",
      "Kun ",
      "Lu ",
      "Jiu ",
      "Chang ",
      "Jing ",
      "Lun ",
      "Ling ",
      "Zou ",
      "Li ",
      "Meng ",
      "Zong ",
      "Zhi ",
      "Nian ",
      "Shachi ",
      "Dojou ",
      "Sukesou ",
      "Shi ",
      "Shen ",
      "Hun ",
      "Shi ",
      "Hou ",
      "Xing ",
      "Zhu ",
      "La ",
      "Zong ",
      "Ji ",
      "Bian ",
      "Bian "
    ];
  }
});

// node_modules/unidecode/data/x9c.js
var require_x9c = __commonJS({
  "node_modules/unidecode/data/x9c.js"(exports2, module2) {
    module2.exports = [
      "Huan ",
      "Quan ",
      "Ze ",
      "Wei ",
      "Wei ",
      "Yu ",
      "Qun ",
      "Rou ",
      "Die ",
      "Huang ",
      "Lian ",
      "Yan ",
      "Qiu ",
      "Qiu ",
      "Jian ",
      "Bi ",
      "E ",
      "Yang ",
      "Fu ",
      "Sai ",
      "Jian ",
      "Xia ",
      "Tuo ",
      "Hu ",
      "Muroaji ",
      "Ruo ",
      "Haraka ",
      "Wen ",
      "Jian ",
      "Hao ",
      "Wu ",
      "Fang ",
      "Sao ",
      "Liu ",
      "Ma ",
      "Shi ",
      "Shi ",
      "Yin ",
      "Z ",
      "Teng ",
      "Ta ",
      "Yao ",
      "Ge ",
      "Rong ",
      "Qian ",
      "Qi ",
      "Wen ",
      "Ruo ",
      "Hatahata ",
      "Lian ",
      "Ao ",
      "Le ",
      "Hui ",
      "Min ",
      "Ji ",
      "Tiao ",
      "Qu ",
      "Jian ",
      "Sao ",
      "Man ",
      "Xi ",
      "Qiu ",
      "Biao ",
      "Ji ",
      "Ji ",
      "Zhu ",
      "Jiang ",
      "Qiu ",
      "Zhuan ",
      "Yong ",
      "Zhang ",
      "Kang ",
      "Xue ",
      "Bie ",
      "Jue ",
      "Qu ",
      "Xiang ",
      "Bo ",
      "Jiao ",
      "Xun ",
      "Su ",
      "Huang ",
      "Zun ",
      "Shan ",
      "Shan ",
      "Fan ",
      "Jue ",
      "Lin ",
      "Xun ",
      "Miao ",
      "Xi ",
      "Eso ",
      "Kyou ",
      "Fen ",
      "Guan ",
      "Hou ",
      "Kuai ",
      "Zei ",
      "Sao ",
      "Zhan ",
      "Gan ",
      "Gui ",
      "Sheng ",
      "Li ",
      "Chang ",
      "Hatahata ",
      "Shiira ",
      "Mutsu ",
      "Ru ",
      "Ji ",
      "Xu ",
      "Huo ",
      "Shiira ",
      "Li ",
      "Lie ",
      "Li ",
      "Mie ",
      "Zhen ",
      "Xiang ",
      "E ",
      "Lu ",
      "Guan ",
      "Li ",
      "Xian ",
      "Yu ",
      "Dao ",
      "Ji ",
      "You ",
      "Tun ",
      "Lu ",
      "Fang ",
      "Ba ",
      "He ",
      "Bo ",
      "Ping ",
      "Nian ",
      "Lu ",
      "You ",
      "Zha ",
      "Fu ",
      "Bo ",
      "Bao ",
      "Hou ",
      "Pi ",
      "Tai ",
      "Gui ",
      "Jie ",
      "Kao ",
      "Wei ",
      "Er ",
      "Tong ",
      "Ze ",
      "Hou ",
      "Kuai ",
      "Ji ",
      "Jiao ",
      "Xian ",
      "Za ",
      "Xiang ",
      "Xun ",
      "Geng ",
      "Li ",
      "Lian ",
      "Jian ",
      "Li ",
      "Shi ",
      "Tiao ",
      "Gun ",
      "Sha ",
      "Wan ",
      "Jun ",
      "Ji ",
      "Yong ",
      "Qing ",
      "Ling ",
      "Qi ",
      "Zou ",
      "Fei ",
      "Kun ",
      "Chang ",
      "Gu ",
      "Ni ",
      "Nian ",
      "Diao ",
      "Jing ",
      "Shen ",
      "Shi ",
      "Zi ",
      "Fen ",
      "Die ",
      "Bi ",
      "Chang ",
      "Shi ",
      "Wen ",
      "Wei ",
      "Sai ",
      "E ",
      "Qiu ",
      "Fu ",
      "Huang ",
      "Quan ",
      "Jiang ",
      "Bian ",
      "Sao ",
      "Ao ",
      "Qi ",
      "Ta ",
      "Yin ",
      "Yao ",
      "Fang ",
      "Jian ",
      "Le ",
      "Biao ",
      "Xue ",
      "Bie ",
      "Man ",
      "Min ",
      "Yong ",
      "Wei ",
      "Xi ",
      "Jue ",
      "Shan ",
      "Lin ",
      "Zun ",
      "Huo ",
      "Gan ",
      "Li ",
      "Zhan ",
      "Guan ",
      "Niao ",
      "Yi ",
      "Fu ",
      "Li ",
      "Jiu ",
      "Bu ",
      "Yan ",
      "Fu ",
      "Diao ",
      "Ji ",
      "Feng ",
      "Nio ",
      "Gan ",
      "Shi ",
      "Feng ",
      "Ming ",
      "Bao ",
      "Yuan ",
      "Zhi ",
      "Hu ",
      "Qin ",
      "Fu ",
      "Fen ",
      "Wen ",
      "Jian ",
      "Shi ",
      "Yu "
    ];
  }
});

// node_modules/unidecode/data/x9d.js
var require_x9d = __commonJS({
  "node_modules/unidecode/data/x9d.js"(exports2, module2) {
    module2.exports = [
      "Fou ",
      "Yiao ",
      "Jue ",
      "Jue ",
      "Pi ",
      "Huan ",
      "Zhen ",
      "Bao ",
      "Yan ",
      "Ya ",
      "Zheng ",
      "Fang ",
      "Feng ",
      "Wen ",
      "Ou ",
      "Te ",
      "Jia ",
      "Nu ",
      "Ling ",
      "Mie ",
      "Fu ",
      "Tuo ",
      "Wen ",
      "Li ",
      "Bian ",
      "Zhi ",
      "Ge ",
      "Yuan ",
      "Zi ",
      "Qu ",
      "Xiao ",
      "Zhi ",
      "Dan ",
      "Ju ",
      "You ",
      "Gu ",
      "Zhong ",
      "Yu ",
      "Yang ",
      "Rong ",
      "Ya ",
      "Tie ",
      "Yu ",
      "Shigi ",
      "Ying ",
      "Zhui ",
      "Wu ",
      "Er ",
      "Gua ",
      "Ai ",
      "Zhi ",
      "Yan ",
      "Heng ",
      "Jiao ",
      "Ji ",
      "Lie ",
      "Zhu ",
      "Ren ",
      "Yi ",
      "Hong ",
      "Luo ",
      "Ru ",
      "Mou ",
      "Ge ",
      "Ren ",
      "Jiao ",
      "Xiu ",
      "Zhou ",
      "Zhi ",
      "Luo ",
      "Chidori ",
      "Toki ",
      "Ten ",
      "Luan ",
      "Jia ",
      "Ji ",
      "Yu ",
      "Huan ",
      "Tuo ",
      "Bu ",
      "Wu ",
      "Juan ",
      "Yu ",
      "Bo ",
      "Xun ",
      "Xun ",
      "Bi ",
      "Xi ",
      "Jun ",
      "Ju ",
      "Tu ",
      "Jing ",
      "Ti ",
      "E ",
      "E ",
      "Kuang ",
      "Hu ",
      "Wu ",
      "Shen ",
      "Lai ",
      "Ikaruga ",
      "Kakesu ",
      "Lu ",
      "Ping ",
      "Shu ",
      "Fu ",
      "An ",
      "Zhao ",
      "Peng ",
      "Qin ",
      "Qian ",
      "Bei ",
      "Diao ",
      "Lu ",
      "Que ",
      "Jian ",
      "Ju ",
      "Tu ",
      "Ya ",
      "Yuan ",
      "Qi ",
      "Li ",
      "Ye ",
      "Zhui ",
      "Kong ",
      "Zhui ",
      "Kun ",
      "Sheng ",
      "Qi ",
      "Jing ",
      "Yi ",
      "Yi ",
      "Jing ",
      "Zi ",
      "Lai ",
      "Dong ",
      "Qi ",
      "Chun ",
      "Geng ",
      "Ju ",
      "Qu ",
      "Isuka ",
      "Kikuitadaki ",
      "Ji ",
      "Shu ",
      "[?] ",
      "Chi ",
      "Miao ",
      "Rou ",
      "An ",
      "Qiu ",
      "Ti ",
      "Hu ",
      "Ti ",
      "E ",
      "Jie ",
      "Mao ",
      "Fu ",
      "Chun ",
      "Tu ",
      "Yan ",
      "He ",
      "Yuan ",
      "Pian ",
      "Yun ",
      "Mei ",
      "Hu ",
      "Ying ",
      "Dun ",
      "Mu ",
      "Ju ",
      "Tsugumi ",
      "Cang ",
      "Fang ",
      "Gu ",
      "Ying ",
      "Yuan ",
      "Xuan ",
      "Weng ",
      "Shi ",
      "He ",
      "Chu ",
      "Tang ",
      "Xia ",
      "Ruo ",
      "Liu ",
      "Ji ",
      "Gu ",
      "Jian ",
      "Zhun ",
      "Han ",
      "Zi ",
      "Zi ",
      "Ni ",
      "Yao ",
      "Yan ",
      "Ji ",
      "Li ",
      "Tian ",
      "Kou ",
      "Ti ",
      "Ti ",
      "Ni ",
      "Tu ",
      "Ma ",
      "Jiao ",
      "Gao ",
      "Tian ",
      "Chen ",
      "Li ",
      "Zhuan ",
      "Zhe ",
      "Ao ",
      "Yao ",
      "Yi ",
      "Ou ",
      "Chi ",
      "Zhi ",
      "Liao ",
      "Rong ",
      "Lou ",
      "Bi ",
      "Shuang ",
      "Zhuo ",
      "Yu ",
      "Wu ",
      "Jue ",
      "Yin ",
      "Quan ",
      "Si ",
      "Jiao ",
      "Yi ",
      "Hua ",
      "Bi ",
      "Ying ",
      "Su ",
      "Huang ",
      "Fan ",
      "Jiao ",
      "Liao ",
      "Yan ",
      "Kao ",
      "Jiu ",
      "Xian ",
      "Xian ",
      "Tu ",
      "Mai ",
      "Zun ",
      "Yu ",
      "Ying ",
      "Lu ",
      "Tuan ",
      "Xian ",
      "Xue ",
      "Yi ",
      "Pi "
    ];
  }
});

// node_modules/unidecode/data/x9e.js
var require_x9e = __commonJS({
  "node_modules/unidecode/data/x9e.js"(exports2, module2) {
    module2.exports = [
      "Shu ",
      "Luo ",
      "Qi ",
      "Yi ",
      "Ji ",
      "Zhe ",
      "Yu ",
      "Zhan ",
      "Ye ",
      "Yang ",
      "Pi ",
      "Ning ",
      "Huo ",
      "Mi ",
      "Ying ",
      "Meng ",
      "Di ",
      "Yue ",
      "Yu ",
      "Lei ",
      "Bao ",
      "Lu ",
      "He ",
      "Long ",
      "Shuang ",
      "Yue ",
      "Ying ",
      "Guan ",
      "Qu ",
      "Li ",
      "Luan ",
      "Niao ",
      "Jiu ",
      "Ji ",
      "Yuan ",
      "Ming ",
      "Shi ",
      "Ou ",
      "Ya ",
      "Cang ",
      "Bao ",
      "Zhen ",
      "Gu ",
      "Dong ",
      "Lu ",
      "Ya ",
      "Xiao ",
      "Yang ",
      "Ling ",
      "Zhi ",
      "Qu ",
      "Yuan ",
      "Xue ",
      "Tuo ",
      "Si ",
      "Zhi ",
      "Er ",
      "Gua ",
      "Xiu ",
      "Heng ",
      "Zhou ",
      "Ge ",
      "Luan ",
      "Hong ",
      "Wu ",
      "Bo ",
      "Li ",
      "Juan ",
      "Hu ",
      "E ",
      "Yu ",
      "Xian ",
      "Ti ",
      "Wu ",
      "Que ",
      "Miao ",
      "An ",
      "Kun ",
      "Bei ",
      "Peng ",
      "Qian ",
      "Chun ",
      "Geng ",
      "Yuan ",
      "Su ",
      "Hu ",
      "He ",
      "E ",
      "Gu ",
      "Qiu ",
      "Zi ",
      "Mei ",
      "Mu ",
      "Ni ",
      "Yao ",
      "Weng ",
      "Liu ",
      "Ji ",
      "Ni ",
      "Jian ",
      "He ",
      "Yi ",
      "Ying ",
      "Zhe ",
      "Liao ",
      "Liao ",
      "Jiao ",
      "Jiu ",
      "Yu ",
      "Lu ",
      "Xuan ",
      "Zhan ",
      "Ying ",
      "Huo ",
      "Meng ",
      "Guan ",
      "Shuang ",
      "Lu ",
      "Jin ",
      "Ling ",
      "Jian ",
      "Xian ",
      "Cuo ",
      "Jian ",
      "Jian ",
      "Yan ",
      "Cuo ",
      "Lu ",
      "You ",
      "Cu ",
      "Ji ",
      "Biao ",
      "Cu ",
      "Biao ",
      "Zhu ",
      "Jun ",
      "Zhu ",
      "Jian ",
      "Mi ",
      "Mi ",
      "Wu ",
      "Liu ",
      "Chen ",
      "Jun ",
      "Lin ",
      "Ni ",
      "Qi ",
      "Lu ",
      "Jiu ",
      "Jun ",
      "Jing ",
      "Li ",
      "Xiang ",
      "Yan ",
      "Jia ",
      "Mi ",
      "Li ",
      "She ",
      "Zhang ",
      "Lin ",
      "Jing ",
      "Ji ",
      "Ling ",
      "Yan ",
      "Cu ",
      "Mai ",
      "Mai ",
      "Ge ",
      "Chao ",
      "Fu ",
      "Mian ",
      "Mian ",
      "Fu ",
      "Pao ",
      "Qu ",
      "Qu ",
      "Mou ",
      "Fu ",
      "Xian ",
      "Lai ",
      "Qu ",
      "Mian ",
      "[?] ",
      "Feng ",
      "Fu ",
      "Qu ",
      "Mian ",
      "Ma ",
      "Mo ",
      "Mo ",
      "Hui ",
      "Ma ",
      "Zou ",
      "Nen ",
      "Fen ",
      "Huang ",
      "Huang ",
      "Jin ",
      "Guang ",
      "Tian ",
      "Tou ",
      "Heng ",
      "Xi ",
      "Kuang ",
      "Heng ",
      "Shu ",
      "Li ",
      "Nian ",
      "Chi ",
      "Hei ",
      "Hei ",
      "Yi ",
      "Qian ",
      "Dan ",
      "Xi ",
      "Tuan ",
      "Mo ",
      "Mo ",
      "Qian ",
      "Dai ",
      "Chu ",
      "You ",
      "Dian ",
      "Yi ",
      "Xia ",
      "Yan ",
      "Qu ",
      "Mei ",
      "Yan ",
      "Jing ",
      "Yu ",
      "Li ",
      "Dang ",
      "Du ",
      "Can ",
      "Yin ",
      "An ",
      "Yan ",
      "Tan ",
      "An ",
      "Zhen ",
      "Dai ",
      "Can ",
      "Yi ",
      "Mei ",
      "Dan ",
      "Yan ",
      "Du ",
      "Lu ",
      "Zhi ",
      "Fen ",
      "Fu ",
      "Fu ",
      "Min ",
      "Min ",
      "Yuan "
    ];
  }
});

// node_modules/unidecode/data/x9f.js
var require_x9f = __commonJS({
  "node_modules/unidecode/data/x9f.js"(exports2, module2) {
    module2.exports = [
      "Cu ",
      "Qu ",
      "Chao ",
      "Wa ",
      "Zhu ",
      "Zhi ",
      "Mang ",
      "Ao ",
      "Bie ",
      "Tuo ",
      "Bi ",
      "Yuan ",
      "Chao ",
      "Tuo ",
      "Ding ",
      "Mi ",
      "Nai ",
      "Ding ",
      "Zi ",
      "Gu ",
      "Gu ",
      "Dong ",
      "Fen ",
      "Tao ",
      "Yuan ",
      "Pi ",
      "Chang ",
      "Gao ",
      "Qi ",
      "Yuan ",
      "Tang ",
      "Teng ",
      "Shu ",
      "Shu ",
      "Fen ",
      "Fei ",
      "Wen ",
      "Ba ",
      "Diao ",
      "Tuo ",
      "Tong ",
      "Qu ",
      "Sheng ",
      "Shi ",
      "You ",
      "Shi ",
      "Ting ",
      "Wu ",
      "Nian ",
      "Jing ",
      "Hun ",
      "Ju ",
      "Yan ",
      "Tu ",
      "Ti ",
      "Xi ",
      "Xian ",
      "Yan ",
      "Lei ",
      "Bi ",
      "Yao ",
      "Qiu ",
      "Han ",
      "Wu ",
      "Wu ",
      "Hou ",
      "Xi ",
      "Ge ",
      "Zha ",
      "Xiu ",
      "Weng ",
      "Zha ",
      "Nong ",
      "Nang ",
      "Qi ",
      "Zhai ",
      "Ji ",
      "Zi ",
      "Ji ",
      "Ji ",
      "Qi ",
      "Ji ",
      "Chi ",
      "Chen ",
      "Chen ",
      "He ",
      "Ya ",
      "Ken ",
      "Xie ",
      "Pao ",
      "Cuo ",
      "Shi ",
      "Zi ",
      "Chi ",
      "Nian ",
      "Ju ",
      "Tiao ",
      "Ling ",
      "Ling ",
      "Chu ",
      "Quan ",
      "Xie ",
      "Ken ",
      "Nie ",
      "Jiu ",
      "Yao ",
      "Chuo ",
      "Kun ",
      "Yu ",
      "Chu ",
      "Yi ",
      "Ni ",
      "Cuo ",
      "Zou ",
      "Qu ",
      "Nen ",
      "Xian ",
      "Ou ",
      "E ",
      "Wo ",
      "Yi ",
      "Chuo ",
      "Zou ",
      "Dian ",
      "Chu ",
      "Jin ",
      "Ya ",
      "Chi ",
      "Chen ",
      "He ",
      "Ken ",
      "Ju ",
      "Ling ",
      "Pao ",
      "Tiao ",
      "Zi ",
      "Ken ",
      "Yu ",
      "Chuo ",
      "Qu ",
      "Wo ",
      "Long ",
      "Pang ",
      "Gong ",
      "Pang ",
      "Yan ",
      "Long ",
      "Long ",
      "Gong ",
      "Kan ",
      "Ta ",
      "Ling ",
      "Ta ",
      "Long ",
      "Gong ",
      "Kan ",
      "Gui ",
      "Qiu ",
      "Bie ",
      "Gui ",
      "Yue ",
      "Chui ",
      "He ",
      "Jue ",
      "Xie ",
      "Yu ",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]"
    ];
  }
});

// node_modules/unidecode/data/xa0.js
var require_xa0 = __commonJS({
  "node_modules/unidecode/data/xa0.js"(exports2, module2) {
    module2.exports = [
      "it",
      "ix",
      "i",
      "ip",
      "iet",
      "iex",
      "ie",
      "iep",
      "at",
      "ax",
      "a",
      "ap",
      "uox",
      "uo",
      "uop",
      "ot",
      "ox",
      "o",
      "op",
      "ex",
      "e",
      "wu",
      "bit",
      "bix",
      "bi",
      "bip",
      "biet",
      "biex",
      "bie",
      "biep",
      "bat",
      "bax",
      "ba",
      "bap",
      "buox",
      "buo",
      "buop",
      "bot",
      "box",
      "bo",
      "bop",
      "bex",
      "be",
      "bep",
      "but",
      "bux",
      "bu",
      "bup",
      "burx",
      "bur",
      "byt",
      "byx",
      "by",
      "byp",
      "byrx",
      "byr",
      "pit",
      "pix",
      "pi",
      "pip",
      "piex",
      "pie",
      "piep",
      "pat",
      "pax",
      "pa",
      "pap",
      "puox",
      "puo",
      "puop",
      "pot",
      "pox",
      "po",
      "pop",
      "put",
      "pux",
      "pu",
      "pup",
      "purx",
      "pur",
      "pyt",
      "pyx",
      "py",
      "pyp",
      "pyrx",
      "pyr",
      "bbit",
      "bbix",
      "bbi",
      "bbip",
      "bbiet",
      "bbiex",
      "bbie",
      "bbiep",
      "bbat",
      "bbax",
      "bba",
      "bbap",
      "bbuox",
      "bbuo",
      "bbuop",
      "bbot",
      "bbox",
      "bbo",
      "bbop",
      "bbex",
      "bbe",
      "bbep",
      "bbut",
      "bbux",
      "bbu",
      "bbup",
      "bburx",
      "bbur",
      "bbyt",
      "bbyx",
      "bby",
      "bbyp",
      "nbit",
      "nbix",
      "nbi",
      "nbip",
      "nbiex",
      "nbie",
      "nbiep",
      "nbat",
      "nbax",
      "nba",
      "nbap",
      "nbot",
      "nbox",
      "nbo",
      "nbop",
      "nbut",
      "nbux",
      "nbu",
      "nbup",
      "nburx",
      "nbur",
      "nbyt",
      "nbyx",
      "nby",
      "nbyp",
      "nbyrx",
      "nbyr",
      "hmit",
      "hmix",
      "hmi",
      "hmip",
      "hmiex",
      "hmie",
      "hmiep",
      "hmat",
      "hmax",
      "hma",
      "hmap",
      "hmuox",
      "hmuo",
      "hmuop",
      "hmot",
      "hmox",
      "hmo",
      "hmop",
      "hmut",
      "hmux",
      "hmu",
      "hmup",
      "hmurx",
      "hmur",
      "hmyx",
      "hmy",
      "hmyp",
      "hmyrx",
      "hmyr",
      "mit",
      "mix",
      "mi",
      "mip",
      "miex",
      "mie",
      "miep",
      "mat",
      "max",
      "ma",
      "map",
      "muot",
      "muox",
      "muo",
      "muop",
      "mot",
      "mox",
      "mo",
      "mop",
      "mex",
      "me",
      "mut",
      "mux",
      "mu",
      "mup",
      "murx",
      "mur",
      "myt",
      "myx",
      "my",
      "myp",
      "fit",
      "fix",
      "fi",
      "fip",
      "fat",
      "fax",
      "fa",
      "fap",
      "fox",
      "fo",
      "fop",
      "fut",
      "fux",
      "fu",
      "fup",
      "furx",
      "fur",
      "fyt",
      "fyx",
      "fy",
      "fyp",
      "vit",
      "vix",
      "vi",
      "vip",
      "viet",
      "viex",
      "vie",
      "viep",
      "vat",
      "vax",
      "va",
      "vap",
      "vot",
      "vox",
      "vo",
      "vop",
      "vex",
      "vep",
      "vut",
      "vux",
      "vu",
      "vup",
      "vurx",
      "vur",
      "vyt",
      "vyx",
      "vy",
      "vyp",
      "vyrx",
      "vyr"
    ];
  }
});

// node_modules/unidecode/data/xa1.js
var require_xa1 = __commonJS({
  "node_modules/unidecode/data/xa1.js"(exports2, module2) {
    module2.exports = [
      "dit",
      "dix",
      "di",
      "dip",
      "diex",
      "die",
      "diep",
      "dat",
      "dax",
      "da",
      "dap",
      "duox",
      "duo",
      "dot",
      "dox",
      "do",
      "dop",
      "dex",
      "de",
      "dep",
      "dut",
      "dux",
      "du",
      "dup",
      "durx",
      "dur",
      "tit",
      "tix",
      "ti",
      "tip",
      "tiex",
      "tie",
      "tiep",
      "tat",
      "tax",
      "ta",
      "tap",
      "tuot",
      "tuox",
      "tuo",
      "tuop",
      "tot",
      "tox",
      "to",
      "top",
      "tex",
      "te",
      "tep",
      "tut",
      "tux",
      "tu",
      "tup",
      "turx",
      "tur",
      "ddit",
      "ddix",
      "ddi",
      "ddip",
      "ddiex",
      "ddie",
      "ddiep",
      "ddat",
      "ddax",
      "dda",
      "ddap",
      "dduox",
      "dduo",
      "dduop",
      "ddot",
      "ddox",
      "ddo",
      "ddop",
      "ddex",
      "dde",
      "ddep",
      "ddut",
      "ddux",
      "ddu",
      "ddup",
      "ddurx",
      "ddur",
      "ndit",
      "ndix",
      "ndi",
      "ndip",
      "ndiex",
      "ndie",
      "ndat",
      "ndax",
      "nda",
      "ndap",
      "ndot",
      "ndox",
      "ndo",
      "ndop",
      "ndex",
      "nde",
      "ndep",
      "ndut",
      "ndux",
      "ndu",
      "ndup",
      "ndurx",
      "ndur",
      "hnit",
      "hnix",
      "hni",
      "hnip",
      "hniet",
      "hniex",
      "hnie",
      "hniep",
      "hnat",
      "hnax",
      "hna",
      "hnap",
      "hnuox",
      "hnuo",
      "hnot",
      "hnox",
      "hnop",
      "hnex",
      "hne",
      "hnep",
      "hnut",
      "nit",
      "nix",
      "ni",
      "nip",
      "niex",
      "nie",
      "niep",
      "nax",
      "na",
      "nap",
      "nuox",
      "nuo",
      "nuop",
      "not",
      "nox",
      "no",
      "nop",
      "nex",
      "ne",
      "nep",
      "nut",
      "nux",
      "nu",
      "nup",
      "nurx",
      "nur",
      "hlit",
      "hlix",
      "hli",
      "hlip",
      "hliex",
      "hlie",
      "hliep",
      "hlat",
      "hlax",
      "hla",
      "hlap",
      "hluox",
      "hluo",
      "hluop",
      "hlox",
      "hlo",
      "hlop",
      "hlex",
      "hle",
      "hlep",
      "hlut",
      "hlux",
      "hlu",
      "hlup",
      "hlurx",
      "hlur",
      "hlyt",
      "hlyx",
      "hly",
      "hlyp",
      "hlyrx",
      "hlyr",
      "lit",
      "lix",
      "li",
      "lip",
      "liet",
      "liex",
      "lie",
      "liep",
      "lat",
      "lax",
      "la",
      "lap",
      "luot",
      "luox",
      "luo",
      "luop",
      "lot",
      "lox",
      "lo",
      "lop",
      "lex",
      "le",
      "lep",
      "lut",
      "lux",
      "lu",
      "lup",
      "lurx",
      "lur",
      "lyt",
      "lyx",
      "ly",
      "lyp",
      "lyrx",
      "lyr",
      "git",
      "gix",
      "gi",
      "gip",
      "giet",
      "giex",
      "gie",
      "giep",
      "gat",
      "gax",
      "ga",
      "gap",
      "guot",
      "guox",
      "guo",
      "guop",
      "got",
      "gox",
      "go",
      "gop",
      "get",
      "gex",
      "ge",
      "gep",
      "gut",
      "gux",
      "gu",
      "gup",
      "gurx",
      "gur",
      "kit",
      "kix",
      "ki",
      "kip",
      "kiex",
      "kie",
      "kiep",
      "kat"
    ];
  }
});

// node_modules/unidecode/data/xa2.js
var require_xa2 = __commonJS({
  "node_modules/unidecode/data/xa2.js"(exports2, module2) {
    module2.exports = [
      "kax",
      "ka",
      "kap",
      "kuox",
      "kuo",
      "kuop",
      "kot",
      "kox",
      "ko",
      "kop",
      "ket",
      "kex",
      "ke",
      "kep",
      "kut",
      "kux",
      "ku",
      "kup",
      "kurx",
      "kur",
      "ggit",
      "ggix",
      "ggi",
      "ggiex",
      "ggie",
      "ggiep",
      "ggat",
      "ggax",
      "gga",
      "ggap",
      "gguot",
      "gguox",
      "gguo",
      "gguop",
      "ggot",
      "ggox",
      "ggo",
      "ggop",
      "gget",
      "ggex",
      "gge",
      "ggep",
      "ggut",
      "ggux",
      "ggu",
      "ggup",
      "ggurx",
      "ggur",
      "mgiex",
      "mgie",
      "mgat",
      "mgax",
      "mga",
      "mgap",
      "mguox",
      "mguo",
      "mguop",
      "mgot",
      "mgox",
      "mgo",
      "mgop",
      "mgex",
      "mge",
      "mgep",
      "mgut",
      "mgux",
      "mgu",
      "mgup",
      "mgurx",
      "mgur",
      "hxit",
      "hxix",
      "hxi",
      "hxip",
      "hxiet",
      "hxiex",
      "hxie",
      "hxiep",
      "hxat",
      "hxax",
      "hxa",
      "hxap",
      "hxuot",
      "hxuox",
      "hxuo",
      "hxuop",
      "hxot",
      "hxox",
      "hxo",
      "hxop",
      "hxex",
      "hxe",
      "hxep",
      "ngiex",
      "ngie",
      "ngiep",
      "ngat",
      "ngax",
      "nga",
      "ngap",
      "nguot",
      "nguox",
      "nguo",
      "ngot",
      "ngox",
      "ngo",
      "ngop",
      "ngex",
      "nge",
      "ngep",
      "hit",
      "hiex",
      "hie",
      "hat",
      "hax",
      "ha",
      "hap",
      "huot",
      "huox",
      "huo",
      "huop",
      "hot",
      "hox",
      "ho",
      "hop",
      "hex",
      "he",
      "hep",
      "wat",
      "wax",
      "wa",
      "wap",
      "wuox",
      "wuo",
      "wuop",
      "wox",
      "wo",
      "wop",
      "wex",
      "we",
      "wep",
      "zit",
      "zix",
      "zi",
      "zip",
      "ziex",
      "zie",
      "ziep",
      "zat",
      "zax",
      "za",
      "zap",
      "zuox",
      "zuo",
      "zuop",
      "zot",
      "zox",
      "zo",
      "zop",
      "zex",
      "ze",
      "zep",
      "zut",
      "zux",
      "zu",
      "zup",
      "zurx",
      "zur",
      "zyt",
      "zyx",
      "zy",
      "zyp",
      "zyrx",
      "zyr",
      "cit",
      "cix",
      "ci",
      "cip",
      "ciet",
      "ciex",
      "cie",
      "ciep",
      "cat",
      "cax",
      "ca",
      "cap",
      "cuox",
      "cuo",
      "cuop",
      "cot",
      "cox",
      "co",
      "cop",
      "cex",
      "ce",
      "cep",
      "cut",
      "cux",
      "cu",
      "cup",
      "curx",
      "cur",
      "cyt",
      "cyx",
      "cy",
      "cyp",
      "cyrx",
      "cyr",
      "zzit",
      "zzix",
      "zzi",
      "zzip",
      "zziet",
      "zziex",
      "zzie",
      "zziep",
      "zzat",
      "zzax",
      "zza",
      "zzap",
      "zzox",
      "zzo",
      "zzop",
      "zzex",
      "zze",
      "zzep",
      "zzux",
      "zzu",
      "zzup",
      "zzurx",
      "zzur",
      "zzyt",
      "zzyx",
      "zzy",
      "zzyp",
      "zzyrx",
      "zzyr",
      "nzit",
      "nzix",
      "nzi",
      "nzip",
      "nziex",
      "nzie",
      "nziep",
      "nzat",
      "nzax",
      "nza",
      "nzap",
      "nzuox",
      "nzuo",
      "nzox",
      "nzop",
      "nzex",
      "nze",
      "nzux",
      "nzu"
    ];
  }
});

// node_modules/unidecode/data/xa3.js
var require_xa3 = __commonJS({
  "node_modules/unidecode/data/xa3.js"(exports2, module2) {
    module2.exports = [
      "nzup",
      "nzurx",
      "nzur",
      "nzyt",
      "nzyx",
      "nzy",
      "nzyp",
      "nzyrx",
      "nzyr",
      "sit",
      "six",
      "si",
      "sip",
      "siex",
      "sie",
      "siep",
      "sat",
      "sax",
      "sa",
      "sap",
      "suox",
      "suo",
      "suop",
      "sot",
      "sox",
      "so",
      "sop",
      "sex",
      "se",
      "sep",
      "sut",
      "sux",
      "su",
      "sup",
      "surx",
      "sur",
      "syt",
      "syx",
      "sy",
      "syp",
      "syrx",
      "syr",
      "ssit",
      "ssix",
      "ssi",
      "ssip",
      "ssiex",
      "ssie",
      "ssiep",
      "ssat",
      "ssax",
      "ssa",
      "ssap",
      "ssot",
      "ssox",
      "sso",
      "ssop",
      "ssex",
      "sse",
      "ssep",
      "ssut",
      "ssux",
      "ssu",
      "ssup",
      "ssyt",
      "ssyx",
      "ssy",
      "ssyp",
      "ssyrx",
      "ssyr",
      "zhat",
      "zhax",
      "zha",
      "zhap",
      "zhuox",
      "zhuo",
      "zhuop",
      "zhot",
      "zhox",
      "zho",
      "zhop",
      "zhet",
      "zhex",
      "zhe",
      "zhep",
      "zhut",
      "zhux",
      "zhu",
      "zhup",
      "zhurx",
      "zhur",
      "zhyt",
      "zhyx",
      "zhy",
      "zhyp",
      "zhyrx",
      "zhyr",
      "chat",
      "chax",
      "cha",
      "chap",
      "chuot",
      "chuox",
      "chuo",
      "chuop",
      "chot",
      "chox",
      "cho",
      "chop",
      "chet",
      "chex",
      "che",
      "chep",
      "chux",
      "chu",
      "chup",
      "churx",
      "chur",
      "chyt",
      "chyx",
      "chy",
      "chyp",
      "chyrx",
      "chyr",
      "rrax",
      "rra",
      "rruox",
      "rruo",
      "rrot",
      "rrox",
      "rro",
      "rrop",
      "rret",
      "rrex",
      "rre",
      "rrep",
      "rrut",
      "rrux",
      "rru",
      "rrup",
      "rrurx",
      "rrur",
      "rryt",
      "rryx",
      "rry",
      "rryp",
      "rryrx",
      "rryr",
      "nrat",
      "nrax",
      "nra",
      "nrap",
      "nrox",
      "nro",
      "nrop",
      "nret",
      "nrex",
      "nre",
      "nrep",
      "nrut",
      "nrux",
      "nru",
      "nrup",
      "nrurx",
      "nrur",
      "nryt",
      "nryx",
      "nry",
      "nryp",
      "nryrx",
      "nryr",
      "shat",
      "shax",
      "sha",
      "shap",
      "shuox",
      "shuo",
      "shuop",
      "shot",
      "shox",
      "sho",
      "shop",
      "shet",
      "shex",
      "she",
      "shep",
      "shut",
      "shux",
      "shu",
      "shup",
      "shurx",
      "shur",
      "shyt",
      "shyx",
      "shy",
      "shyp",
      "shyrx",
      "shyr",
      "rat",
      "rax",
      "ra",
      "rap",
      "ruox",
      "ruo",
      "ruop",
      "rot",
      "rox",
      "ro",
      "rop",
      "rex",
      "re",
      "rep",
      "rut",
      "rux",
      "ru",
      "rup",
      "rurx",
      "rur",
      "ryt",
      "ryx",
      "ry",
      "ryp",
      "ryrx",
      "ryr",
      "jit",
      "jix",
      "ji",
      "jip",
      "jiet",
      "jiex",
      "jie",
      "jiep",
      "juot",
      "juox",
      "juo",
      "juop",
      "jot",
      "jox",
      "jo",
      "jop",
      "jut",
      "jux",
      "ju",
      "jup",
      "jurx",
      "jur",
      "jyt",
      "jyx",
      "jy",
      "jyp",
      "jyrx",
      "jyr",
      "qit",
      "qix",
      "qi",
      "qip"
    ];
  }
});

// node_modules/unidecode/data/xa4.js
var require_xa4 = __commonJS({
  "node_modules/unidecode/data/xa4.js"(exports2, module2) {
    module2.exports = [
      "qiet",
      "qiex",
      "qie",
      "qiep",
      "quot",
      "quox",
      "quo",
      "quop",
      "qot",
      "qox",
      "qo",
      "qop",
      "qut",
      "qux",
      "qu",
      "qup",
      "qurx",
      "qur",
      "qyt",
      "qyx",
      "qy",
      "qyp",
      "qyrx",
      "qyr",
      "jjit",
      "jjix",
      "jji",
      "jjip",
      "jjiet",
      "jjiex",
      "jjie",
      "jjiep",
      "jjuox",
      "jjuo",
      "jjuop",
      "jjot",
      "jjox",
      "jjo",
      "jjop",
      "jjut",
      "jjux",
      "jju",
      "jjup",
      "jjurx",
      "jjur",
      "jjyt",
      "jjyx",
      "jjy",
      "jjyp",
      "njit",
      "njix",
      "nji",
      "njip",
      "njiet",
      "njiex",
      "njie",
      "njiep",
      "njuox",
      "njuo",
      "njot",
      "njox",
      "njo",
      "njop",
      "njux",
      "nju",
      "njup",
      "njurx",
      "njur",
      "njyt",
      "njyx",
      "njy",
      "njyp",
      "njyrx",
      "njyr",
      "nyit",
      "nyix",
      "nyi",
      "nyip",
      "nyiet",
      "nyiex",
      "nyie",
      "nyiep",
      "nyuox",
      "nyuo",
      "nyuop",
      "nyot",
      "nyox",
      "nyo",
      "nyop",
      "nyut",
      "nyux",
      "nyu",
      "nyup",
      "xit",
      "xix",
      "xi",
      "xip",
      "xiet",
      "xiex",
      "xie",
      "xiep",
      "xuox",
      "xuo",
      "xot",
      "xox",
      "xo",
      "xop",
      "xyt",
      "xyx",
      "xy",
      "xyp",
      "xyrx",
      "xyr",
      "yit",
      "yix",
      "yi",
      "yip",
      "yiet",
      "yiex",
      "yie",
      "yiep",
      "yuot",
      "yuox",
      "yuo",
      "yuop",
      "yot",
      "yox",
      "yo",
      "yop",
      "yut",
      "yux",
      "yu",
      "yup",
      "yurx",
      "yur",
      "yyt",
      "yyx",
      "yy",
      "yyp",
      "yyrx",
      "yyr",
      "[?]",
      "[?]",
      "[?]",
      "Qot",
      "Li",
      "Kit",
      "Nyip",
      "Cyp",
      "Ssi",
      "Ggop",
      "Gep",
      "Mi",
      "Hxit",
      "Lyr",
      "Bbut",
      "Mop",
      "Yo",
      "Put",
      "Hxuo",
      "Tat",
      "Ga",
      "[?]",
      "[?]",
      "Ddur",
      "Bur",
      "Gguo",
      "Nyop",
      "Tu",
      "Op",
      "Jjut",
      "Zot",
      "Pyt",
      "Hmo",
      "Yit",
      "Vur",
      "Shy",
      "Vep",
      "Za",
      "Jo",
      "[?]",
      "Jjy",
      "Got",
      "Jjie",
      "Wo",
      "Du",
      "Shur",
      "Lie",
      "Cy",
      "Cuop",
      "Cip",
      "Hxop",
      "Shat",
      "[?]",
      "Shop",
      "Che",
      "Zziet",
      "[?]",
      "Ke",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]"
    ];
  }
});

// node_modules/unidecode/data/xac.js
var require_xac = __commonJS({
  "node_modules/unidecode/data/xac.js"(exports2, module2) {
    module2.exports = [
      "ga",
      "gag",
      "gagg",
      "gags",
      "gan",
      "ganj",
      "ganh",
      "gad",
      "gal",
      "galg",
      "galm",
      "galb",
      "gals",
      "galt",
      "galp",
      "galh",
      "gam",
      "gab",
      "gabs",
      "gas",
      "gass",
      "gang",
      "gaj",
      "gac",
      "gak",
      "gat",
      "gap",
      "gah",
      "gae",
      "gaeg",
      "gaegg",
      "gaegs",
      "gaen",
      "gaenj",
      "gaenh",
      "gaed",
      "gael",
      "gaelg",
      "gaelm",
      "gaelb",
      "gaels",
      "gaelt",
      "gaelp",
      "gaelh",
      "gaem",
      "gaeb",
      "gaebs",
      "gaes",
      "gaess",
      "gaeng",
      "gaej",
      "gaec",
      "gaek",
      "gaet",
      "gaep",
      "gaeh",
      "gya",
      "gyag",
      "gyagg",
      "gyags",
      "gyan",
      "gyanj",
      "gyanh",
      "gyad",
      "gyal",
      "gyalg",
      "gyalm",
      "gyalb",
      "gyals",
      "gyalt",
      "gyalp",
      "gyalh",
      "gyam",
      "gyab",
      "gyabs",
      "gyas",
      "gyass",
      "gyang",
      "gyaj",
      "gyac",
      "gyak",
      "gyat",
      "gyap",
      "gyah",
      "gyae",
      "gyaeg",
      "gyaegg",
      "gyaegs",
      "gyaen",
      "gyaenj",
      "gyaenh",
      "gyaed",
      "gyael",
      "gyaelg",
      "gyaelm",
      "gyaelb",
      "gyaels",
      "gyaelt",
      "gyaelp",
      "gyaelh",
      "gyaem",
      "gyaeb",
      "gyaebs",
      "gyaes",
      "gyaess",
      "gyaeng",
      "gyaej",
      "gyaec",
      "gyaek",
      "gyaet",
      "gyaep",
      "gyaeh",
      "geo",
      "geog",
      "geogg",
      "geogs",
      "geon",
      "geonj",
      "geonh",
      "geod",
      "geol",
      "geolg",
      "geolm",
      "geolb",
      "geols",
      "geolt",
      "geolp",
      "geolh",
      "geom",
      "geob",
      "geobs",
      "geos",
      "geoss",
      "geong",
      "geoj",
      "geoc",
      "geok",
      "geot",
      "geop",
      "geoh",
      "ge",
      "geg",
      "gegg",
      "gegs",
      "gen",
      "genj",
      "genh",
      "ged",
      "gel",
      "gelg",
      "gelm",
      "gelb",
      "gels",
      "gelt",
      "gelp",
      "gelh",
      "gem",
      "geb",
      "gebs",
      "ges",
      "gess",
      "geng",
      "gej",
      "gec",
      "gek",
      "get",
      "gep",
      "geh",
      "gyeo",
      "gyeog",
      "gyeogg",
      "gyeogs",
      "gyeon",
      "gyeonj",
      "gyeonh",
      "gyeod",
      "gyeol",
      "gyeolg",
      "gyeolm",
      "gyeolb",
      "gyeols",
      "gyeolt",
      "gyeolp",
      "gyeolh",
      "gyeom",
      "gyeob",
      "gyeobs",
      "gyeos",
      "gyeoss",
      "gyeong",
      "gyeoj",
      "gyeoc",
      "gyeok",
      "gyeot",
      "gyeop",
      "gyeoh",
      "gye",
      "gyeg",
      "gyegg",
      "gyegs",
      "gyen",
      "gyenj",
      "gyenh",
      "gyed",
      "gyel",
      "gyelg",
      "gyelm",
      "gyelb",
      "gyels",
      "gyelt",
      "gyelp",
      "gyelh",
      "gyem",
      "gyeb",
      "gyebs",
      "gyes",
      "gyess",
      "gyeng",
      "gyej",
      "gyec",
      "gyek",
      "gyet",
      "gyep",
      "gyeh",
      "go",
      "gog",
      "gogg",
      "gogs",
      "gon",
      "gonj",
      "gonh",
      "god",
      "gol",
      "golg",
      "golm",
      "golb",
      "gols",
      "golt",
      "golp",
      "golh",
      "gom",
      "gob",
      "gobs",
      "gos",
      "goss",
      "gong",
      "goj",
      "goc",
      "gok",
      "got",
      "gop",
      "goh",
      "gwa",
      "gwag",
      "gwagg",
      "gwags"
    ];
  }
});

// node_modules/unidecode/data/xad.js
var require_xad = __commonJS({
  "node_modules/unidecode/data/xad.js"(exports2, module2) {
    module2.exports = [
      "gwan",
      "gwanj",
      "gwanh",
      "gwad",
      "gwal",
      "gwalg",
      "gwalm",
      "gwalb",
      "gwals",
      "gwalt",
      "gwalp",
      "gwalh",
      "gwam",
      "gwab",
      "gwabs",
      "gwas",
      "gwass",
      "gwang",
      "gwaj",
      "gwac",
      "gwak",
      "gwat",
      "gwap",
      "gwah",
      "gwae",
      "gwaeg",
      "gwaegg",
      "gwaegs",
      "gwaen",
      "gwaenj",
      "gwaenh",
      "gwaed",
      "gwael",
      "gwaelg",
      "gwaelm",
      "gwaelb",
      "gwaels",
      "gwaelt",
      "gwaelp",
      "gwaelh",
      "gwaem",
      "gwaeb",
      "gwaebs",
      "gwaes",
      "gwaess",
      "gwaeng",
      "gwaej",
      "gwaec",
      "gwaek",
      "gwaet",
      "gwaep",
      "gwaeh",
      "goe",
      "goeg",
      "goegg",
      "goegs",
      "goen",
      "goenj",
      "goenh",
      "goed",
      "goel",
      "goelg",
      "goelm",
      "goelb",
      "goels",
      "goelt",
      "goelp",
      "goelh",
      "goem",
      "goeb",
      "goebs",
      "goes",
      "goess",
      "goeng",
      "goej",
      "goec",
      "goek",
      "goet",
      "goep",
      "goeh",
      "gyo",
      "gyog",
      "gyogg",
      "gyogs",
      "gyon",
      "gyonj",
      "gyonh",
      "gyod",
      "gyol",
      "gyolg",
      "gyolm",
      "gyolb",
      "gyols",
      "gyolt",
      "gyolp",
      "gyolh",
      "gyom",
      "gyob",
      "gyobs",
      "gyos",
      "gyoss",
      "gyong",
      "gyoj",
      "gyoc",
      "gyok",
      "gyot",
      "gyop",
      "gyoh",
      "gu",
      "gug",
      "gugg",
      "gugs",
      "gun",
      "gunj",
      "gunh",
      "gud",
      "gul",
      "gulg",
      "gulm",
      "gulb",
      "guls",
      "gult",
      "gulp",
      "gulh",
      "gum",
      "gub",
      "gubs",
      "gus",
      "guss",
      "gung",
      "guj",
      "guc",
      "guk",
      "gut",
      "gup",
      "guh",
      "gweo",
      "gweog",
      "gweogg",
      "gweogs",
      "gweon",
      "gweonj",
      "gweonh",
      "gweod",
      "gweol",
      "gweolg",
      "gweolm",
      "gweolb",
      "gweols",
      "gweolt",
      "gweolp",
      "gweolh",
      "gweom",
      "gweob",
      "gweobs",
      "gweos",
      "gweoss",
      "gweong",
      "gweoj",
      "gweoc",
      "gweok",
      "gweot",
      "gweop",
      "gweoh",
      "gwe",
      "gweg",
      "gwegg",
      "gwegs",
      "gwen",
      "gwenj",
      "gwenh",
      "gwed",
      "gwel",
      "gwelg",
      "gwelm",
      "gwelb",
      "gwels",
      "gwelt",
      "gwelp",
      "gwelh",
      "gwem",
      "gweb",
      "gwebs",
      "gwes",
      "gwess",
      "gweng",
      "gwej",
      "gwec",
      "gwek",
      "gwet",
      "gwep",
      "gweh",
      "gwi",
      "gwig",
      "gwigg",
      "gwigs",
      "gwin",
      "gwinj",
      "gwinh",
      "gwid",
      "gwil",
      "gwilg",
      "gwilm",
      "gwilb",
      "gwils",
      "gwilt",
      "gwilp",
      "gwilh",
      "gwim",
      "gwib",
      "gwibs",
      "gwis",
      "gwiss",
      "gwing",
      "gwij",
      "gwic",
      "gwik",
      "gwit",
      "gwip",
      "gwih",
      "gyu",
      "gyug",
      "gyugg",
      "gyugs",
      "gyun",
      "gyunj",
      "gyunh",
      "gyud",
      "gyul",
      "gyulg",
      "gyulm",
      "gyulb",
      "gyuls",
      "gyult",
      "gyulp",
      "gyulh",
      "gyum",
      "gyub",
      "gyubs",
      "gyus",
      "gyuss",
      "gyung",
      "gyuj",
      "gyuc",
      "gyuk",
      "gyut",
      "gyup",
      "gyuh",
      "geu",
      "geug",
      "geugg",
      "geugs",
      "geun",
      "geunj",
      "geunh",
      "geud"
    ];
  }
});

// node_modules/unidecode/data/xae.js
var require_xae = __commonJS({
  "node_modules/unidecode/data/xae.js"(exports2, module2) {
    module2.exports = [
      "geul",
      "geulg",
      "geulm",
      "geulb",
      "geuls",
      "geult",
      "geulp",
      "geulh",
      "geum",
      "geub",
      "geubs",
      "geus",
      "geuss",
      "geung",
      "geuj",
      "geuc",
      "geuk",
      "geut",
      "geup",
      "geuh",
      "gyi",
      "gyig",
      "gyigg",
      "gyigs",
      "gyin",
      "gyinj",
      "gyinh",
      "gyid",
      "gyil",
      "gyilg",
      "gyilm",
      "gyilb",
      "gyils",
      "gyilt",
      "gyilp",
      "gyilh",
      "gyim",
      "gyib",
      "gyibs",
      "gyis",
      "gyiss",
      "gying",
      "gyij",
      "gyic",
      "gyik",
      "gyit",
      "gyip",
      "gyih",
      "gi",
      "gig",
      "gigg",
      "gigs",
      "gin",
      "ginj",
      "ginh",
      "gid",
      "gil",
      "gilg",
      "gilm",
      "gilb",
      "gils",
      "gilt",
      "gilp",
      "gilh",
      "gim",
      "gib",
      "gibs",
      "gis",
      "giss",
      "ging",
      "gij",
      "gic",
      "gik",
      "git",
      "gip",
      "gih",
      "gga",
      "ggag",
      "ggagg",
      "ggags",
      "ggan",
      "gganj",
      "gganh",
      "ggad",
      "ggal",
      "ggalg",
      "ggalm",
      "ggalb",
      "ggals",
      "ggalt",
      "ggalp",
      "ggalh",
      "ggam",
      "ggab",
      "ggabs",
      "ggas",
      "ggass",
      "ggang",
      "ggaj",
      "ggac",
      "ggak",
      "ggat",
      "ggap",
      "ggah",
      "ggae",
      "ggaeg",
      "ggaegg",
      "ggaegs",
      "ggaen",
      "ggaenj",
      "ggaenh",
      "ggaed",
      "ggael",
      "ggaelg",
      "ggaelm",
      "ggaelb",
      "ggaels",
      "ggaelt",
      "ggaelp",
      "ggaelh",
      "ggaem",
      "ggaeb",
      "ggaebs",
      "ggaes",
      "ggaess",
      "ggaeng",
      "ggaej",
      "ggaec",
      "ggaek",
      "ggaet",
      "ggaep",
      "ggaeh",
      "ggya",
      "ggyag",
      "ggyagg",
      "ggyags",
      "ggyan",
      "ggyanj",
      "ggyanh",
      "ggyad",
      "ggyal",
      "ggyalg",
      "ggyalm",
      "ggyalb",
      "ggyals",
      "ggyalt",
      "ggyalp",
      "ggyalh",
      "ggyam",
      "ggyab",
      "ggyabs",
      "ggyas",
      "ggyass",
      "ggyang",
      "ggyaj",
      "ggyac",
      "ggyak",
      "ggyat",
      "ggyap",
      "ggyah",
      "ggyae",
      "ggyaeg",
      "ggyaegg",
      "ggyaegs",
      "ggyaen",
      "ggyaenj",
      "ggyaenh",
      "ggyaed",
      "ggyael",
      "ggyaelg",
      "ggyaelm",
      "ggyaelb",
      "ggyaels",
      "ggyaelt",
      "ggyaelp",
      "ggyaelh",
      "ggyaem",
      "ggyaeb",
      "ggyaebs",
      "ggyaes",
      "ggyaess",
      "ggyaeng",
      "ggyaej",
      "ggyaec",
      "ggyaek",
      "ggyaet",
      "ggyaep",
      "ggyaeh",
      "ggeo",
      "ggeog",
      "ggeogg",
      "ggeogs",
      "ggeon",
      "ggeonj",
      "ggeonh",
      "ggeod",
      "ggeol",
      "ggeolg",
      "ggeolm",
      "ggeolb",
      "ggeols",
      "ggeolt",
      "ggeolp",
      "ggeolh",
      "ggeom",
      "ggeob",
      "ggeobs",
      "ggeos",
      "ggeoss",
      "ggeong",
      "ggeoj",
      "ggeoc",
      "ggeok",
      "ggeot",
      "ggeop",
      "ggeoh",
      "gge",
      "ggeg",
      "ggegg",
      "ggegs",
      "ggen",
      "ggenj",
      "ggenh",
      "gged",
      "ggel",
      "ggelg",
      "ggelm",
      "ggelb",
      "ggels",
      "ggelt",
      "ggelp",
      "ggelh",
      "ggem",
      "ggeb",
      "ggebs",
      "gges",
      "ggess",
      "ggeng",
      "ggej",
      "ggec",
      "ggek",
      "gget",
      "ggep",
      "ggeh",
      "ggyeo",
      "ggyeog",
      "ggyeogg",
      "ggyeogs",
      "ggyeon",
      "ggyeonj",
      "ggyeonh",
      "ggyeod",
      "ggyeol",
      "ggyeolg",
      "ggyeolm",
      "ggyeolb"
    ];
  }
});

// node_modules/unidecode/data/xaf.js
var require_xaf = __commonJS({
  "node_modules/unidecode/data/xaf.js"(exports2, module2) {
    module2.exports = [
      "ggyeols",
      "ggyeolt",
      "ggyeolp",
      "ggyeolh",
      "ggyeom",
      "ggyeob",
      "ggyeobs",
      "ggyeos",
      "ggyeoss",
      "ggyeong",
      "ggyeoj",
      "ggyeoc",
      "ggyeok",
      "ggyeot",
      "ggyeop",
      "ggyeoh",
      "ggye",
      "ggyeg",
      "ggyegg",
      "ggyegs",
      "ggyen",
      "ggyenj",
      "ggyenh",
      "ggyed",
      "ggyel",
      "ggyelg",
      "ggyelm",
      "ggyelb",
      "ggyels",
      "ggyelt",
      "ggyelp",
      "ggyelh",
      "ggyem",
      "ggyeb",
      "ggyebs",
      "ggyes",
      "ggyess",
      "ggyeng",
      "ggyej",
      "ggyec",
      "ggyek",
      "ggyet",
      "ggyep",
      "ggyeh",
      "ggo",
      "ggog",
      "ggogg",
      "ggogs",
      "ggon",
      "ggonj",
      "ggonh",
      "ggod",
      "ggol",
      "ggolg",
      "ggolm",
      "ggolb",
      "ggols",
      "ggolt",
      "ggolp",
      "ggolh",
      "ggom",
      "ggob",
      "ggobs",
      "ggos",
      "ggoss",
      "ggong",
      "ggoj",
      "ggoc",
      "ggok",
      "ggot",
      "ggop",
      "ggoh",
      "ggwa",
      "ggwag",
      "ggwagg",
      "ggwags",
      "ggwan",
      "ggwanj",
      "ggwanh",
      "ggwad",
      "ggwal",
      "ggwalg",
      "ggwalm",
      "ggwalb",
      "ggwals",
      "ggwalt",
      "ggwalp",
      "ggwalh",
      "ggwam",
      "ggwab",
      "ggwabs",
      "ggwas",
      "ggwass",
      "ggwang",
      "ggwaj",
      "ggwac",
      "ggwak",
      "ggwat",
      "ggwap",
      "ggwah",
      "ggwae",
      "ggwaeg",
      "ggwaegg",
      "ggwaegs",
      "ggwaen",
      "ggwaenj",
      "ggwaenh",
      "ggwaed",
      "ggwael",
      "ggwaelg",
      "ggwaelm",
      "ggwaelb",
      "ggwaels",
      "ggwaelt",
      "ggwaelp",
      "ggwaelh",
      "ggwaem",
      "ggwaeb",
      "ggwaebs",
      "ggwaes",
      "ggwaess",
      "ggwaeng",
      "ggwaej",
      "ggwaec",
      "ggwaek",
      "ggwaet",
      "ggwaep",
      "ggwaeh",
      "ggoe",
      "ggoeg",
      "ggoegg",
      "ggoegs",
      "ggoen",
      "ggoenj",
      "ggoenh",
      "ggoed",
      "ggoel",
      "ggoelg",
      "ggoelm",
      "ggoelb",
      "ggoels",
      "ggoelt",
      "ggoelp",
      "ggoelh",
      "ggoem",
      "ggoeb",
      "ggoebs",
      "ggoes",
      "ggoess",
      "ggoeng",
      "ggoej",
      "ggoec",
      "ggoek",
      "ggoet",
      "ggoep",
      "ggoeh",
      "ggyo",
      "ggyog",
      "ggyogg",
      "ggyogs",
      "ggyon",
      "ggyonj",
      "ggyonh",
      "ggyod",
      "ggyol",
      "ggyolg",
      "ggyolm",
      "ggyolb",
      "ggyols",
      "ggyolt",
      "ggyolp",
      "ggyolh",
      "ggyom",
      "ggyob",
      "ggyobs",
      "ggyos",
      "ggyoss",
      "ggyong",
      "ggyoj",
      "ggyoc",
      "ggyok",
      "ggyot",
      "ggyop",
      "ggyoh",
      "ggu",
      "ggug",
      "ggugg",
      "ggugs",
      "ggun",
      "ggunj",
      "ggunh",
      "ggud",
      "ggul",
      "ggulg",
      "ggulm",
      "ggulb",
      "gguls",
      "ggult",
      "ggulp",
      "ggulh",
      "ggum",
      "ggub",
      "ggubs",
      "ggus",
      "gguss",
      "ggung",
      "gguj",
      "gguc",
      "gguk",
      "ggut",
      "ggup",
      "gguh",
      "ggweo",
      "ggweog",
      "ggweogg",
      "ggweogs",
      "ggweon",
      "ggweonj",
      "ggweonh",
      "ggweod",
      "ggweol",
      "ggweolg",
      "ggweolm",
      "ggweolb",
      "ggweols",
      "ggweolt",
      "ggweolp",
      "ggweolh",
      "ggweom",
      "ggweob",
      "ggweobs",
      "ggweos",
      "ggweoss",
      "ggweong",
      "ggweoj",
      "ggweoc",
      "ggweok",
      "ggweot",
      "ggweop",
      "ggweoh",
      "ggwe",
      "ggweg",
      "ggwegg",
      "ggwegs",
      "ggwen",
      "ggwenj",
      "ggwenh",
      "ggwed",
      "ggwel",
      "ggwelg",
      "ggwelm",
      "ggwelb",
      "ggwels",
      "ggwelt",
      "ggwelp",
      "ggwelh"
    ];
  }
});

// node_modules/unidecode/data/xb0.js
var require_xb0 = __commonJS({
  "node_modules/unidecode/data/xb0.js"(exports2, module2) {
    module2.exports = [
      "ggwem",
      "ggweb",
      "ggwebs",
      "ggwes",
      "ggwess",
      "ggweng",
      "ggwej",
      "ggwec",
      "ggwek",
      "ggwet",
      "ggwep",
      "ggweh",
      "ggwi",
      "ggwig",
      "ggwigg",
      "ggwigs",
      "ggwin",
      "ggwinj",
      "ggwinh",
      "ggwid",
      "ggwil",
      "ggwilg",
      "ggwilm",
      "ggwilb",
      "ggwils",
      "ggwilt",
      "ggwilp",
      "ggwilh",
      "ggwim",
      "ggwib",
      "ggwibs",
      "ggwis",
      "ggwiss",
      "ggwing",
      "ggwij",
      "ggwic",
      "ggwik",
      "ggwit",
      "ggwip",
      "ggwih",
      "ggyu",
      "ggyug",
      "ggyugg",
      "ggyugs",
      "ggyun",
      "ggyunj",
      "ggyunh",
      "ggyud",
      "ggyul",
      "ggyulg",
      "ggyulm",
      "ggyulb",
      "ggyuls",
      "ggyult",
      "ggyulp",
      "ggyulh",
      "ggyum",
      "ggyub",
      "ggyubs",
      "ggyus",
      "ggyuss",
      "ggyung",
      "ggyuj",
      "ggyuc",
      "ggyuk",
      "ggyut",
      "ggyup",
      "ggyuh",
      "ggeu",
      "ggeug",
      "ggeugg",
      "ggeugs",
      "ggeun",
      "ggeunj",
      "ggeunh",
      "ggeud",
      "ggeul",
      "ggeulg",
      "ggeulm",
      "ggeulb",
      "ggeuls",
      "ggeult",
      "ggeulp",
      "ggeulh",
      "ggeum",
      "ggeub",
      "ggeubs",
      "ggeus",
      "ggeuss",
      "ggeung",
      "ggeuj",
      "ggeuc",
      "ggeuk",
      "ggeut",
      "ggeup",
      "ggeuh",
      "ggyi",
      "ggyig",
      "ggyigg",
      "ggyigs",
      "ggyin",
      "ggyinj",
      "ggyinh",
      "ggyid",
      "ggyil",
      "ggyilg",
      "ggyilm",
      "ggyilb",
      "ggyils",
      "ggyilt",
      "ggyilp",
      "ggyilh",
      "ggyim",
      "ggyib",
      "ggyibs",
      "ggyis",
      "ggyiss",
      "ggying",
      "ggyij",
      "ggyic",
      "ggyik",
      "ggyit",
      "ggyip",
      "ggyih",
      "ggi",
      "ggig",
      "ggigg",
      "ggigs",
      "ggin",
      "gginj",
      "gginh",
      "ggid",
      "ggil",
      "ggilg",
      "ggilm",
      "ggilb",
      "ggils",
      "ggilt",
      "ggilp",
      "ggilh",
      "ggim",
      "ggib",
      "ggibs",
      "ggis",
      "ggiss",
      "gging",
      "ggij",
      "ggic",
      "ggik",
      "ggit",
      "ggip",
      "ggih",
      "na",
      "nag",
      "nagg",
      "nags",
      "nan",
      "nanj",
      "nanh",
      "nad",
      "nal",
      "nalg",
      "nalm",
      "nalb",
      "nals",
      "nalt",
      "nalp",
      "nalh",
      "nam",
      "nab",
      "nabs",
      "nas",
      "nass",
      "nang",
      "naj",
      "nac",
      "nak",
      "nat",
      "nap",
      "nah",
      "nae",
      "naeg",
      "naegg",
      "naegs",
      "naen",
      "naenj",
      "naenh",
      "naed",
      "nael",
      "naelg",
      "naelm",
      "naelb",
      "naels",
      "naelt",
      "naelp",
      "naelh",
      "naem",
      "naeb",
      "naebs",
      "naes",
      "naess",
      "naeng",
      "naej",
      "naec",
      "naek",
      "naet",
      "naep",
      "naeh",
      "nya",
      "nyag",
      "nyagg",
      "nyags",
      "nyan",
      "nyanj",
      "nyanh",
      "nyad",
      "nyal",
      "nyalg",
      "nyalm",
      "nyalb",
      "nyals",
      "nyalt",
      "nyalp",
      "nyalh",
      "nyam",
      "nyab",
      "nyabs",
      "nyas",
      "nyass",
      "nyang",
      "nyaj",
      "nyac",
      "nyak",
      "nyat",
      "nyap",
      "nyah",
      "nyae",
      "nyaeg",
      "nyaegg",
      "nyaegs",
      "nyaen",
      "nyaenj",
      "nyaenh",
      "nyaed",
      "nyael",
      "nyaelg",
      "nyaelm",
      "nyaelb",
      "nyaels",
      "nyaelt",
      "nyaelp",
      "nyaelh",
      "nyaem",
      "nyaeb",
      "nyaebs",
      "nyaes"
    ];
  }
});

// node_modules/unidecode/data/xb1.js
var require_xb1 = __commonJS({
  "node_modules/unidecode/data/xb1.js"(exports2, module2) {
    module2.exports = [
      "nyaess",
      "nyaeng",
      "nyaej",
      "nyaec",
      "nyaek",
      "nyaet",
      "nyaep",
      "nyaeh",
      "neo",
      "neog",
      "neogg",
      "neogs",
      "neon",
      "neonj",
      "neonh",
      "neod",
      "neol",
      "neolg",
      "neolm",
      "neolb",
      "neols",
      "neolt",
      "neolp",
      "neolh",
      "neom",
      "neob",
      "neobs",
      "neos",
      "neoss",
      "neong",
      "neoj",
      "neoc",
      "neok",
      "neot",
      "neop",
      "neoh",
      "ne",
      "neg",
      "negg",
      "negs",
      "nen",
      "nenj",
      "nenh",
      "ned",
      "nel",
      "nelg",
      "nelm",
      "nelb",
      "nels",
      "nelt",
      "nelp",
      "nelh",
      "nem",
      "neb",
      "nebs",
      "nes",
      "ness",
      "neng",
      "nej",
      "nec",
      "nek",
      "net",
      "nep",
      "neh",
      "nyeo",
      "nyeog",
      "nyeogg",
      "nyeogs",
      "nyeon",
      "nyeonj",
      "nyeonh",
      "nyeod",
      "nyeol",
      "nyeolg",
      "nyeolm",
      "nyeolb",
      "nyeols",
      "nyeolt",
      "nyeolp",
      "nyeolh",
      "nyeom",
      "nyeob",
      "nyeobs",
      "nyeos",
      "nyeoss",
      "nyeong",
      "nyeoj",
      "nyeoc",
      "nyeok",
      "nyeot",
      "nyeop",
      "nyeoh",
      "nye",
      "nyeg",
      "nyegg",
      "nyegs",
      "nyen",
      "nyenj",
      "nyenh",
      "nyed",
      "nyel",
      "nyelg",
      "nyelm",
      "nyelb",
      "nyels",
      "nyelt",
      "nyelp",
      "nyelh",
      "nyem",
      "nyeb",
      "nyebs",
      "nyes",
      "nyess",
      "nyeng",
      "nyej",
      "nyec",
      "nyek",
      "nyet",
      "nyep",
      "nyeh",
      "no",
      "nog",
      "nogg",
      "nogs",
      "non",
      "nonj",
      "nonh",
      "nod",
      "nol",
      "nolg",
      "nolm",
      "nolb",
      "nols",
      "nolt",
      "nolp",
      "nolh",
      "nom",
      "nob",
      "nobs",
      "nos",
      "noss",
      "nong",
      "noj",
      "noc",
      "nok",
      "not",
      "nop",
      "noh",
      "nwa",
      "nwag",
      "nwagg",
      "nwags",
      "nwan",
      "nwanj",
      "nwanh",
      "nwad",
      "nwal",
      "nwalg",
      "nwalm",
      "nwalb",
      "nwals",
      "nwalt",
      "nwalp",
      "nwalh",
      "nwam",
      "nwab",
      "nwabs",
      "nwas",
      "nwass",
      "nwang",
      "nwaj",
      "nwac",
      "nwak",
      "nwat",
      "nwap",
      "nwah",
      "nwae",
      "nwaeg",
      "nwaegg",
      "nwaegs",
      "nwaen",
      "nwaenj",
      "nwaenh",
      "nwaed",
      "nwael",
      "nwaelg",
      "nwaelm",
      "nwaelb",
      "nwaels",
      "nwaelt",
      "nwaelp",
      "nwaelh",
      "nwaem",
      "nwaeb",
      "nwaebs",
      "nwaes",
      "nwaess",
      "nwaeng",
      "nwaej",
      "nwaec",
      "nwaek",
      "nwaet",
      "nwaep",
      "nwaeh",
      "noe",
      "noeg",
      "noegg",
      "noegs",
      "noen",
      "noenj",
      "noenh",
      "noed",
      "noel",
      "noelg",
      "noelm",
      "noelb",
      "noels",
      "noelt",
      "noelp",
      "noelh",
      "noem",
      "noeb",
      "noebs",
      "noes",
      "noess",
      "noeng",
      "noej",
      "noec",
      "noek",
      "noet",
      "noep",
      "noeh",
      "nyo",
      "nyog",
      "nyogg",
      "nyogs",
      "nyon",
      "nyonj",
      "nyonh",
      "nyod",
      "nyol",
      "nyolg",
      "nyolm",
      "nyolb",
      "nyols",
      "nyolt",
      "nyolp",
      "nyolh",
      "nyom",
      "nyob",
      "nyobs",
      "nyos",
      "nyoss",
      "nyong",
      "nyoj",
      "nyoc"
    ];
  }
});

// node_modules/unidecode/data/xb2.js
var require_xb2 = __commonJS({
  "node_modules/unidecode/data/xb2.js"(exports2, module2) {
    module2.exports = [
      "nyok",
      "nyot",
      "nyop",
      "nyoh",
      "nu",
      "nug",
      "nugg",
      "nugs",
      "nun",
      "nunj",
      "nunh",
      "nud",
      "nul",
      "nulg",
      "nulm",
      "nulb",
      "nuls",
      "nult",
      "nulp",
      "nulh",
      "num",
      "nub",
      "nubs",
      "nus",
      "nuss",
      "nung",
      "nuj",
      "nuc",
      "nuk",
      "nut",
      "nup",
      "nuh",
      "nweo",
      "nweog",
      "nweogg",
      "nweogs",
      "nweon",
      "nweonj",
      "nweonh",
      "nweod",
      "nweol",
      "nweolg",
      "nweolm",
      "nweolb",
      "nweols",
      "nweolt",
      "nweolp",
      "nweolh",
      "nweom",
      "nweob",
      "nweobs",
      "nweos",
      "nweoss",
      "nweong",
      "nweoj",
      "nweoc",
      "nweok",
      "nweot",
      "nweop",
      "nweoh",
      "nwe",
      "nweg",
      "nwegg",
      "nwegs",
      "nwen",
      "nwenj",
      "nwenh",
      "nwed",
      "nwel",
      "nwelg",
      "nwelm",
      "nwelb",
      "nwels",
      "nwelt",
      "nwelp",
      "nwelh",
      "nwem",
      "nweb",
      "nwebs",
      "nwes",
      "nwess",
      "nweng",
      "nwej",
      "nwec",
      "nwek",
      "nwet",
      "nwep",
      "nweh",
      "nwi",
      "nwig",
      "nwigg",
      "nwigs",
      "nwin",
      "nwinj",
      "nwinh",
      "nwid",
      "nwil",
      "nwilg",
      "nwilm",
      "nwilb",
      "nwils",
      "nwilt",
      "nwilp",
      "nwilh",
      "nwim",
      "nwib",
      "nwibs",
      "nwis",
      "nwiss",
      "nwing",
      "nwij",
      "nwic",
      "nwik",
      "nwit",
      "nwip",
      "nwih",
      "nyu",
      "nyug",
      "nyugg",
      "nyugs",
      "nyun",
      "nyunj",
      "nyunh",
      "nyud",
      "nyul",
      "nyulg",
      "nyulm",
      "nyulb",
      "nyuls",
      "nyult",
      "nyulp",
      "nyulh",
      "nyum",
      "nyub",
      "nyubs",
      "nyus",
      "nyuss",
      "nyung",
      "nyuj",
      "nyuc",
      "nyuk",
      "nyut",
      "nyup",
      "nyuh",
      "neu",
      "neug",
      "neugg",
      "neugs",
      "neun",
      "neunj",
      "neunh",
      "neud",
      "neul",
      "neulg",
      "neulm",
      "neulb",
      "neuls",
      "neult",
      "neulp",
      "neulh",
      "neum",
      "neub",
      "neubs",
      "neus",
      "neuss",
      "neung",
      "neuj",
      "neuc",
      "neuk",
      "neut",
      "neup",
      "neuh",
      "nyi",
      "nyig",
      "nyigg",
      "nyigs",
      "nyin",
      "nyinj",
      "nyinh",
      "nyid",
      "nyil",
      "nyilg",
      "nyilm",
      "nyilb",
      "nyils",
      "nyilt",
      "nyilp",
      "nyilh",
      "nyim",
      "nyib",
      "nyibs",
      "nyis",
      "nyiss",
      "nying",
      "nyij",
      "nyic",
      "nyik",
      "nyit",
      "nyip",
      "nyih",
      "ni",
      "nig",
      "nigg",
      "nigs",
      "nin",
      "ninj",
      "ninh",
      "nid",
      "nil",
      "nilg",
      "nilm",
      "nilb",
      "nils",
      "nilt",
      "nilp",
      "nilh",
      "nim",
      "nib",
      "nibs",
      "nis",
      "niss",
      "ning",
      "nij",
      "nic",
      "nik",
      "nit",
      "nip",
      "nih",
      "da",
      "dag",
      "dagg",
      "dags",
      "dan",
      "danj",
      "danh",
      "dad",
      "dal",
      "dalg",
      "dalm",
      "dalb",
      "dals",
      "dalt",
      "dalp",
      "dalh",
      "dam",
      "dab",
      "dabs",
      "das",
      "dass",
      "dang",
      "daj",
      "dac",
      "dak",
      "dat",
      "dap",
      "dah"
    ];
  }
});

// node_modules/unidecode/data/xb3.js
var require_xb3 = __commonJS({
  "node_modules/unidecode/data/xb3.js"(exports2, module2) {
    module2.exports = [
      "dae",
      "daeg",
      "daegg",
      "daegs",
      "daen",
      "daenj",
      "daenh",
      "daed",
      "dael",
      "daelg",
      "daelm",
      "daelb",
      "daels",
      "daelt",
      "daelp",
      "daelh",
      "daem",
      "daeb",
      "daebs",
      "daes",
      "daess",
      "daeng",
      "daej",
      "daec",
      "daek",
      "daet",
      "daep",
      "daeh",
      "dya",
      "dyag",
      "dyagg",
      "dyags",
      "dyan",
      "dyanj",
      "dyanh",
      "dyad",
      "dyal",
      "dyalg",
      "dyalm",
      "dyalb",
      "dyals",
      "dyalt",
      "dyalp",
      "dyalh",
      "dyam",
      "dyab",
      "dyabs",
      "dyas",
      "dyass",
      "dyang",
      "dyaj",
      "dyac",
      "dyak",
      "dyat",
      "dyap",
      "dyah",
      "dyae",
      "dyaeg",
      "dyaegg",
      "dyaegs",
      "dyaen",
      "dyaenj",
      "dyaenh",
      "dyaed",
      "dyael",
      "dyaelg",
      "dyaelm",
      "dyaelb",
      "dyaels",
      "dyaelt",
      "dyaelp",
      "dyaelh",
      "dyaem",
      "dyaeb",
      "dyaebs",
      "dyaes",
      "dyaess",
      "dyaeng",
      "dyaej",
      "dyaec",
      "dyaek",
      "dyaet",
      "dyaep",
      "dyaeh",
      "deo",
      "deog",
      "deogg",
      "deogs",
      "deon",
      "deonj",
      "deonh",
      "deod",
      "deol",
      "deolg",
      "deolm",
      "deolb",
      "deols",
      "deolt",
      "deolp",
      "deolh",
      "deom",
      "deob",
      "deobs",
      "deos",
      "deoss",
      "deong",
      "deoj",
      "deoc",
      "deok",
      "deot",
      "deop",
      "deoh",
      "de",
      "deg",
      "degg",
      "degs",
      "den",
      "denj",
      "denh",
      "ded",
      "del",
      "delg",
      "delm",
      "delb",
      "dels",
      "delt",
      "delp",
      "delh",
      "dem",
      "deb",
      "debs",
      "des",
      "dess",
      "deng",
      "dej",
      "dec",
      "dek",
      "det",
      "dep",
      "deh",
      "dyeo",
      "dyeog",
      "dyeogg",
      "dyeogs",
      "dyeon",
      "dyeonj",
      "dyeonh",
      "dyeod",
      "dyeol",
      "dyeolg",
      "dyeolm",
      "dyeolb",
      "dyeols",
      "dyeolt",
      "dyeolp",
      "dyeolh",
      "dyeom",
      "dyeob",
      "dyeobs",
      "dyeos",
      "dyeoss",
      "dyeong",
      "dyeoj",
      "dyeoc",
      "dyeok",
      "dyeot",
      "dyeop",
      "dyeoh",
      "dye",
      "dyeg",
      "dyegg",
      "dyegs",
      "dyen",
      "dyenj",
      "dyenh",
      "dyed",
      "dyel",
      "dyelg",
      "dyelm",
      "dyelb",
      "dyels",
      "dyelt",
      "dyelp",
      "dyelh",
      "dyem",
      "dyeb",
      "dyebs",
      "dyes",
      "dyess",
      "dyeng",
      "dyej",
      "dyec",
      "dyek",
      "dyet",
      "dyep",
      "dyeh",
      "do",
      "dog",
      "dogg",
      "dogs",
      "don",
      "donj",
      "donh",
      "dod",
      "dol",
      "dolg",
      "dolm",
      "dolb",
      "dols",
      "dolt",
      "dolp",
      "dolh",
      "dom",
      "dob",
      "dobs",
      "dos",
      "doss",
      "dong",
      "doj",
      "doc",
      "dok",
      "dot",
      "dop",
      "doh",
      "dwa",
      "dwag",
      "dwagg",
      "dwags",
      "dwan",
      "dwanj",
      "dwanh",
      "dwad",
      "dwal",
      "dwalg",
      "dwalm",
      "dwalb",
      "dwals",
      "dwalt",
      "dwalp",
      "dwalh",
      "dwam",
      "dwab",
      "dwabs",
      "dwas",
      "dwass",
      "dwang",
      "dwaj",
      "dwac",
      "dwak",
      "dwat",
      "dwap",
      "dwah",
      "dwae",
      "dwaeg",
      "dwaegg",
      "dwaegs"
    ];
  }
});

// node_modules/unidecode/data/xb4.js
var require_xb4 = __commonJS({
  "node_modules/unidecode/data/xb4.js"(exports2, module2) {
    module2.exports = [
      "dwaen",
      "dwaenj",
      "dwaenh",
      "dwaed",
      "dwael",
      "dwaelg",
      "dwaelm",
      "dwaelb",
      "dwaels",
      "dwaelt",
      "dwaelp",
      "dwaelh",
      "dwaem",
      "dwaeb",
      "dwaebs",
      "dwaes",
      "dwaess",
      "dwaeng",
      "dwaej",
      "dwaec",
      "dwaek",
      "dwaet",
      "dwaep",
      "dwaeh",
      "doe",
      "doeg",
      "doegg",
      "doegs",
      "doen",
      "doenj",
      "doenh",
      "doed",
      "doel",
      "doelg",
      "doelm",
      "doelb",
      "doels",
      "doelt",
      "doelp",
      "doelh",
      "doem",
      "doeb",
      "doebs",
      "does",
      "doess",
      "doeng",
      "doej",
      "doec",
      "doek",
      "doet",
      "doep",
      "doeh",
      "dyo",
      "dyog",
      "dyogg",
      "dyogs",
      "dyon",
      "dyonj",
      "dyonh",
      "dyod",
      "dyol",
      "dyolg",
      "dyolm",
      "dyolb",
      "dyols",
      "dyolt",
      "dyolp",
      "dyolh",
      "dyom",
      "dyob",
      "dyobs",
      "dyos",
      "dyoss",
      "dyong",
      "dyoj",
      "dyoc",
      "dyok",
      "dyot",
      "dyop",
      "dyoh",
      "du",
      "dug",
      "dugg",
      "dugs",
      "dun",
      "dunj",
      "dunh",
      "dud",
      "dul",
      "dulg",
      "dulm",
      "dulb",
      "duls",
      "dult",
      "dulp",
      "dulh",
      "dum",
      "dub",
      "dubs",
      "dus",
      "duss",
      "dung",
      "duj",
      "duc",
      "duk",
      "dut",
      "dup",
      "duh",
      "dweo",
      "dweog",
      "dweogg",
      "dweogs",
      "dweon",
      "dweonj",
      "dweonh",
      "dweod",
      "dweol",
      "dweolg",
      "dweolm",
      "dweolb",
      "dweols",
      "dweolt",
      "dweolp",
      "dweolh",
      "dweom",
      "dweob",
      "dweobs",
      "dweos",
      "dweoss",
      "dweong",
      "dweoj",
      "dweoc",
      "dweok",
      "dweot",
      "dweop",
      "dweoh",
      "dwe",
      "dweg",
      "dwegg",
      "dwegs",
      "dwen",
      "dwenj",
      "dwenh",
      "dwed",
      "dwel",
      "dwelg",
      "dwelm",
      "dwelb",
      "dwels",
      "dwelt",
      "dwelp",
      "dwelh",
      "dwem",
      "dweb",
      "dwebs",
      "dwes",
      "dwess",
      "dweng",
      "dwej",
      "dwec",
      "dwek",
      "dwet",
      "dwep",
      "dweh",
      "dwi",
      "dwig",
      "dwigg",
      "dwigs",
      "dwin",
      "dwinj",
      "dwinh",
      "dwid",
      "dwil",
      "dwilg",
      "dwilm",
      "dwilb",
      "dwils",
      "dwilt",
      "dwilp",
      "dwilh",
      "dwim",
      "dwib",
      "dwibs",
      "dwis",
      "dwiss",
      "dwing",
      "dwij",
      "dwic",
      "dwik",
      "dwit",
      "dwip",
      "dwih",
      "dyu",
      "dyug",
      "dyugg",
      "dyugs",
      "dyun",
      "dyunj",
      "dyunh",
      "dyud",
      "dyul",
      "dyulg",
      "dyulm",
      "dyulb",
      "dyuls",
      "dyult",
      "dyulp",
      "dyulh",
      "dyum",
      "dyub",
      "dyubs",
      "dyus",
      "dyuss",
      "dyung",
      "dyuj",
      "dyuc",
      "dyuk",
      "dyut",
      "dyup",
      "dyuh",
      "deu",
      "deug",
      "deugg",
      "deugs",
      "deun",
      "deunj",
      "deunh",
      "deud",
      "deul",
      "deulg",
      "deulm",
      "deulb",
      "deuls",
      "deult",
      "deulp",
      "deulh",
      "deum",
      "deub",
      "deubs",
      "deus",
      "deuss",
      "deung",
      "deuj",
      "deuc",
      "deuk",
      "deut",
      "deup",
      "deuh",
      "dyi",
      "dyig",
      "dyigg",
      "dyigs",
      "dyin",
      "dyinj",
      "dyinh",
      "dyid"
    ];
  }
});

// node_modules/unidecode/data/xb5.js
var require_xb5 = __commonJS({
  "node_modules/unidecode/data/xb5.js"(exports2, module2) {
    module2.exports = [
      "dyil",
      "dyilg",
      "dyilm",
      "dyilb",
      "dyils",
      "dyilt",
      "dyilp",
      "dyilh",
      "dyim",
      "dyib",
      "dyibs",
      "dyis",
      "dyiss",
      "dying",
      "dyij",
      "dyic",
      "dyik",
      "dyit",
      "dyip",
      "dyih",
      "di",
      "dig",
      "digg",
      "digs",
      "din",
      "dinj",
      "dinh",
      "did",
      "dil",
      "dilg",
      "dilm",
      "dilb",
      "dils",
      "dilt",
      "dilp",
      "dilh",
      "dim",
      "dib",
      "dibs",
      "dis",
      "diss",
      "ding",
      "dij",
      "dic",
      "dik",
      "dit",
      "dip",
      "dih",
      "dda",
      "ddag",
      "ddagg",
      "ddags",
      "ddan",
      "ddanj",
      "ddanh",
      "ddad",
      "ddal",
      "ddalg",
      "ddalm",
      "ddalb",
      "ddals",
      "ddalt",
      "ddalp",
      "ddalh",
      "ddam",
      "ddab",
      "ddabs",
      "ddas",
      "ddass",
      "ddang",
      "ddaj",
      "ddac",
      "ddak",
      "ddat",
      "ddap",
      "ddah",
      "ddae",
      "ddaeg",
      "ddaegg",
      "ddaegs",
      "ddaen",
      "ddaenj",
      "ddaenh",
      "ddaed",
      "ddael",
      "ddaelg",
      "ddaelm",
      "ddaelb",
      "ddaels",
      "ddaelt",
      "ddaelp",
      "ddaelh",
      "ddaem",
      "ddaeb",
      "ddaebs",
      "ddaes",
      "ddaess",
      "ddaeng",
      "ddaej",
      "ddaec",
      "ddaek",
      "ddaet",
      "ddaep",
      "ddaeh",
      "ddya",
      "ddyag",
      "ddyagg",
      "ddyags",
      "ddyan",
      "ddyanj",
      "ddyanh",
      "ddyad",
      "ddyal",
      "ddyalg",
      "ddyalm",
      "ddyalb",
      "ddyals",
      "ddyalt",
      "ddyalp",
      "ddyalh",
      "ddyam",
      "ddyab",
      "ddyabs",
      "ddyas",
      "ddyass",
      "ddyang",
      "ddyaj",
      "ddyac",
      "ddyak",
      "ddyat",
      "ddyap",
      "ddyah",
      "ddyae",
      "ddyaeg",
      "ddyaegg",
      "ddyaegs",
      "ddyaen",
      "ddyaenj",
      "ddyaenh",
      "ddyaed",
      "ddyael",
      "ddyaelg",
      "ddyaelm",
      "ddyaelb",
      "ddyaels",
      "ddyaelt",
      "ddyaelp",
      "ddyaelh",
      "ddyaem",
      "ddyaeb",
      "ddyaebs",
      "ddyaes",
      "ddyaess",
      "ddyaeng",
      "ddyaej",
      "ddyaec",
      "ddyaek",
      "ddyaet",
      "ddyaep",
      "ddyaeh",
      "ddeo",
      "ddeog",
      "ddeogg",
      "ddeogs",
      "ddeon",
      "ddeonj",
      "ddeonh",
      "ddeod",
      "ddeol",
      "ddeolg",
      "ddeolm",
      "ddeolb",
      "ddeols",
      "ddeolt",
      "ddeolp",
      "ddeolh",
      "ddeom",
      "ddeob",
      "ddeobs",
      "ddeos",
      "ddeoss",
      "ddeong",
      "ddeoj",
      "ddeoc",
      "ddeok",
      "ddeot",
      "ddeop",
      "ddeoh",
      "dde",
      "ddeg",
      "ddegg",
      "ddegs",
      "dden",
      "ddenj",
      "ddenh",
      "dded",
      "ddel",
      "ddelg",
      "ddelm",
      "ddelb",
      "ddels",
      "ddelt",
      "ddelp",
      "ddelh",
      "ddem",
      "ddeb",
      "ddebs",
      "ddes",
      "ddess",
      "ddeng",
      "ddej",
      "ddec",
      "ddek",
      "ddet",
      "ddep",
      "ddeh",
      "ddyeo",
      "ddyeog",
      "ddyeogg",
      "ddyeogs",
      "ddyeon",
      "ddyeonj",
      "ddyeonh",
      "ddyeod",
      "ddyeol",
      "ddyeolg",
      "ddyeolm",
      "ddyeolb",
      "ddyeols",
      "ddyeolt",
      "ddyeolp",
      "ddyeolh",
      "ddyeom",
      "ddyeob",
      "ddyeobs",
      "ddyeos",
      "ddyeoss",
      "ddyeong",
      "ddyeoj",
      "ddyeoc",
      "ddyeok",
      "ddyeot",
      "ddyeop",
      "ddyeoh",
      "ddye",
      "ddyeg",
      "ddyegg",
      "ddyegs",
      "ddyen",
      "ddyenj",
      "ddyenh",
      "ddyed",
      "ddyel",
      "ddyelg",
      "ddyelm",
      "ddyelb"
    ];
  }
});

// node_modules/unidecode/data/xb6.js
var require_xb6 = __commonJS({
  "node_modules/unidecode/data/xb6.js"(exports2, module2) {
    module2.exports = [
      "ddyels",
      "ddyelt",
      "ddyelp",
      "ddyelh",
      "ddyem",
      "ddyeb",
      "ddyebs",
      "ddyes",
      "ddyess",
      "ddyeng",
      "ddyej",
      "ddyec",
      "ddyek",
      "ddyet",
      "ddyep",
      "ddyeh",
      "ddo",
      "ddog",
      "ddogg",
      "ddogs",
      "ddon",
      "ddonj",
      "ddonh",
      "ddod",
      "ddol",
      "ddolg",
      "ddolm",
      "ddolb",
      "ddols",
      "ddolt",
      "ddolp",
      "ddolh",
      "ddom",
      "ddob",
      "ddobs",
      "ddos",
      "ddoss",
      "ddong",
      "ddoj",
      "ddoc",
      "ddok",
      "ddot",
      "ddop",
      "ddoh",
      "ddwa",
      "ddwag",
      "ddwagg",
      "ddwags",
      "ddwan",
      "ddwanj",
      "ddwanh",
      "ddwad",
      "ddwal",
      "ddwalg",
      "ddwalm",
      "ddwalb",
      "ddwals",
      "ddwalt",
      "ddwalp",
      "ddwalh",
      "ddwam",
      "ddwab",
      "ddwabs",
      "ddwas",
      "ddwass",
      "ddwang",
      "ddwaj",
      "ddwac",
      "ddwak",
      "ddwat",
      "ddwap",
      "ddwah",
      "ddwae",
      "ddwaeg",
      "ddwaegg",
      "ddwaegs",
      "ddwaen",
      "ddwaenj",
      "ddwaenh",
      "ddwaed",
      "ddwael",
      "ddwaelg",
      "ddwaelm",
      "ddwaelb",
      "ddwaels",
      "ddwaelt",
      "ddwaelp",
      "ddwaelh",
      "ddwaem",
      "ddwaeb",
      "ddwaebs",
      "ddwaes",
      "ddwaess",
      "ddwaeng",
      "ddwaej",
      "ddwaec",
      "ddwaek",
      "ddwaet",
      "ddwaep",
      "ddwaeh",
      "ddoe",
      "ddoeg",
      "ddoegg",
      "ddoegs",
      "ddoen",
      "ddoenj",
      "ddoenh",
      "ddoed",
      "ddoel",
      "ddoelg",
      "ddoelm",
      "ddoelb",
      "ddoels",
      "ddoelt",
      "ddoelp",
      "ddoelh",
      "ddoem",
      "ddoeb",
      "ddoebs",
      "ddoes",
      "ddoess",
      "ddoeng",
      "ddoej",
      "ddoec",
      "ddoek",
      "ddoet",
      "ddoep",
      "ddoeh",
      "ddyo",
      "ddyog",
      "ddyogg",
      "ddyogs",
      "ddyon",
      "ddyonj",
      "ddyonh",
      "ddyod",
      "ddyol",
      "ddyolg",
      "ddyolm",
      "ddyolb",
      "ddyols",
      "ddyolt",
      "ddyolp",
      "ddyolh",
      "ddyom",
      "ddyob",
      "ddyobs",
      "ddyos",
      "ddyoss",
      "ddyong",
      "ddyoj",
      "ddyoc",
      "ddyok",
      "ddyot",
      "ddyop",
      "ddyoh",
      "ddu",
      "ddug",
      "ddugg",
      "ddugs",
      "ddun",
      "ddunj",
      "ddunh",
      "ddud",
      "ddul",
      "ddulg",
      "ddulm",
      "ddulb",
      "dduls",
      "ddult",
      "ddulp",
      "ddulh",
      "ddum",
      "ddub",
      "ddubs",
      "ddus",
      "dduss",
      "ddung",
      "dduj",
      "dduc",
      "dduk",
      "ddut",
      "ddup",
      "dduh",
      "ddweo",
      "ddweog",
      "ddweogg",
      "ddweogs",
      "ddweon",
      "ddweonj",
      "ddweonh",
      "ddweod",
      "ddweol",
      "ddweolg",
      "ddweolm",
      "ddweolb",
      "ddweols",
      "ddweolt",
      "ddweolp",
      "ddweolh",
      "ddweom",
      "ddweob",
      "ddweobs",
      "ddweos",
      "ddweoss",
      "ddweong",
      "ddweoj",
      "ddweoc",
      "ddweok",
      "ddweot",
      "ddweop",
      "ddweoh",
      "ddwe",
      "ddweg",
      "ddwegg",
      "ddwegs",
      "ddwen",
      "ddwenj",
      "ddwenh",
      "ddwed",
      "ddwel",
      "ddwelg",
      "ddwelm",
      "ddwelb",
      "ddwels",
      "ddwelt",
      "ddwelp",
      "ddwelh",
      "ddwem",
      "ddweb",
      "ddwebs",
      "ddwes",
      "ddwess",
      "ddweng",
      "ddwej",
      "ddwec",
      "ddwek",
      "ddwet",
      "ddwep",
      "ddweh",
      "ddwi",
      "ddwig",
      "ddwigg",
      "ddwigs",
      "ddwin",
      "ddwinj",
      "ddwinh",
      "ddwid",
      "ddwil",
      "ddwilg",
      "ddwilm",
      "ddwilb",
      "ddwils",
      "ddwilt",
      "ddwilp",
      "ddwilh"
    ];
  }
});

// node_modules/unidecode/data/xb7.js
var require_xb7 = __commonJS({
  "node_modules/unidecode/data/xb7.js"(exports2, module2) {
    module2.exports = [
      "ddwim",
      "ddwib",
      "ddwibs",
      "ddwis",
      "ddwiss",
      "ddwing",
      "ddwij",
      "ddwic",
      "ddwik",
      "ddwit",
      "ddwip",
      "ddwih",
      "ddyu",
      "ddyug",
      "ddyugg",
      "ddyugs",
      "ddyun",
      "ddyunj",
      "ddyunh",
      "ddyud",
      "ddyul",
      "ddyulg",
      "ddyulm",
      "ddyulb",
      "ddyuls",
      "ddyult",
      "ddyulp",
      "ddyulh",
      "ddyum",
      "ddyub",
      "ddyubs",
      "ddyus",
      "ddyuss",
      "ddyung",
      "ddyuj",
      "ddyuc",
      "ddyuk",
      "ddyut",
      "ddyup",
      "ddyuh",
      "ddeu",
      "ddeug",
      "ddeugg",
      "ddeugs",
      "ddeun",
      "ddeunj",
      "ddeunh",
      "ddeud",
      "ddeul",
      "ddeulg",
      "ddeulm",
      "ddeulb",
      "ddeuls",
      "ddeult",
      "ddeulp",
      "ddeulh",
      "ddeum",
      "ddeub",
      "ddeubs",
      "ddeus",
      "ddeuss",
      "ddeung",
      "ddeuj",
      "ddeuc",
      "ddeuk",
      "ddeut",
      "ddeup",
      "ddeuh",
      "ddyi",
      "ddyig",
      "ddyigg",
      "ddyigs",
      "ddyin",
      "ddyinj",
      "ddyinh",
      "ddyid",
      "ddyil",
      "ddyilg",
      "ddyilm",
      "ddyilb",
      "ddyils",
      "ddyilt",
      "ddyilp",
      "ddyilh",
      "ddyim",
      "ddyib",
      "ddyibs",
      "ddyis",
      "ddyiss",
      "ddying",
      "ddyij",
      "ddyic",
      "ddyik",
      "ddyit",
      "ddyip",
      "ddyih",
      "ddi",
      "ddig",
      "ddigg",
      "ddigs",
      "ddin",
      "ddinj",
      "ddinh",
      "ddid",
      "ddil",
      "ddilg",
      "ddilm",
      "ddilb",
      "ddils",
      "ddilt",
      "ddilp",
      "ddilh",
      "ddim",
      "ddib",
      "ddibs",
      "ddis",
      "ddiss",
      "dding",
      "ddij",
      "ddic",
      "ddik",
      "ddit",
      "ddip",
      "ddih",
      "ra",
      "rag",
      "ragg",
      "rags",
      "ran",
      "ranj",
      "ranh",
      "rad",
      "ral",
      "ralg",
      "ralm",
      "ralb",
      "rals",
      "ralt",
      "ralp",
      "ralh",
      "ram",
      "rab",
      "rabs",
      "ras",
      "rass",
      "rang",
      "raj",
      "rac",
      "rak",
      "rat",
      "rap",
      "rah",
      "rae",
      "raeg",
      "raegg",
      "raegs",
      "raen",
      "raenj",
      "raenh",
      "raed",
      "rael",
      "raelg",
      "raelm",
      "raelb",
      "raels",
      "raelt",
      "raelp",
      "raelh",
      "raem",
      "raeb",
      "raebs",
      "raes",
      "raess",
      "raeng",
      "raej",
      "raec",
      "raek",
      "raet",
      "raep",
      "raeh",
      "rya",
      "ryag",
      "ryagg",
      "ryags",
      "ryan",
      "ryanj",
      "ryanh",
      "ryad",
      "ryal",
      "ryalg",
      "ryalm",
      "ryalb",
      "ryals",
      "ryalt",
      "ryalp",
      "ryalh",
      "ryam",
      "ryab",
      "ryabs",
      "ryas",
      "ryass",
      "ryang",
      "ryaj",
      "ryac",
      "ryak",
      "ryat",
      "ryap",
      "ryah",
      "ryae",
      "ryaeg",
      "ryaegg",
      "ryaegs",
      "ryaen",
      "ryaenj",
      "ryaenh",
      "ryaed",
      "ryael",
      "ryaelg",
      "ryaelm",
      "ryaelb",
      "ryaels",
      "ryaelt",
      "ryaelp",
      "ryaelh",
      "ryaem",
      "ryaeb",
      "ryaebs",
      "ryaes",
      "ryaess",
      "ryaeng",
      "ryaej",
      "ryaec",
      "ryaek",
      "ryaet",
      "ryaep",
      "ryaeh",
      "reo",
      "reog",
      "reogg",
      "reogs",
      "reon",
      "reonj",
      "reonh",
      "reod",
      "reol",
      "reolg",
      "reolm",
      "reolb",
      "reols",
      "reolt",
      "reolp",
      "reolh",
      "reom",
      "reob",
      "reobs",
      "reos"
    ];
  }
});

// node_modules/unidecode/data/xb8.js
var require_xb8 = __commonJS({
  "node_modules/unidecode/data/xb8.js"(exports2, module2) {
    module2.exports = [
      "reoss",
      "reong",
      "reoj",
      "reoc",
      "reok",
      "reot",
      "reop",
      "reoh",
      "re",
      "reg",
      "regg",
      "regs",
      "ren",
      "renj",
      "renh",
      "red",
      "rel",
      "relg",
      "relm",
      "relb",
      "rels",
      "relt",
      "relp",
      "relh",
      "rem",
      "reb",
      "rebs",
      "res",
      "ress",
      "reng",
      "rej",
      "rec",
      "rek",
      "ret",
      "rep",
      "reh",
      "ryeo",
      "ryeog",
      "ryeogg",
      "ryeogs",
      "ryeon",
      "ryeonj",
      "ryeonh",
      "ryeod",
      "ryeol",
      "ryeolg",
      "ryeolm",
      "ryeolb",
      "ryeols",
      "ryeolt",
      "ryeolp",
      "ryeolh",
      "ryeom",
      "ryeob",
      "ryeobs",
      "ryeos",
      "ryeoss",
      "ryeong",
      "ryeoj",
      "ryeoc",
      "ryeok",
      "ryeot",
      "ryeop",
      "ryeoh",
      "rye",
      "ryeg",
      "ryegg",
      "ryegs",
      "ryen",
      "ryenj",
      "ryenh",
      "ryed",
      "ryel",
      "ryelg",
      "ryelm",
      "ryelb",
      "ryels",
      "ryelt",
      "ryelp",
      "ryelh",
      "ryem",
      "ryeb",
      "ryebs",
      "ryes",
      "ryess",
      "ryeng",
      "ryej",
      "ryec",
      "ryek",
      "ryet",
      "ryep",
      "ryeh",
      "ro",
      "rog",
      "rogg",
      "rogs",
      "ron",
      "ronj",
      "ronh",
      "rod",
      "rol",
      "rolg",
      "rolm",
      "rolb",
      "rols",
      "rolt",
      "rolp",
      "rolh",
      "rom",
      "rob",
      "robs",
      "ros",
      "ross",
      "rong",
      "roj",
      "roc",
      "rok",
      "rot",
      "rop",
      "roh",
      "rwa",
      "rwag",
      "rwagg",
      "rwags",
      "rwan",
      "rwanj",
      "rwanh",
      "rwad",
      "rwal",
      "rwalg",
      "rwalm",
      "rwalb",
      "rwals",
      "rwalt",
      "rwalp",
      "rwalh",
      "rwam",
      "rwab",
      "rwabs",
      "rwas",
      "rwass",
      "rwang",
      "rwaj",
      "rwac",
      "rwak",
      "rwat",
      "rwap",
      "rwah",
      "rwae",
      "rwaeg",
      "rwaegg",
      "rwaegs",
      "rwaen",
      "rwaenj",
      "rwaenh",
      "rwaed",
      "rwael",
      "rwaelg",
      "rwaelm",
      "rwaelb",
      "rwaels",
      "rwaelt",
      "rwaelp",
      "rwaelh",
      "rwaem",
      "rwaeb",
      "rwaebs",
      "rwaes",
      "rwaess",
      "rwaeng",
      "rwaej",
      "rwaec",
      "rwaek",
      "rwaet",
      "rwaep",
      "rwaeh",
      "roe",
      "roeg",
      "roegg",
      "roegs",
      "roen",
      "roenj",
      "roenh",
      "roed",
      "roel",
      "roelg",
      "roelm",
      "roelb",
      "roels",
      "roelt",
      "roelp",
      "roelh",
      "roem",
      "roeb",
      "roebs",
      "roes",
      "roess",
      "roeng",
      "roej",
      "roec",
      "roek",
      "roet",
      "roep",
      "roeh",
      "ryo",
      "ryog",
      "ryogg",
      "ryogs",
      "ryon",
      "ryonj",
      "ryonh",
      "ryod",
      "ryol",
      "ryolg",
      "ryolm",
      "ryolb",
      "ryols",
      "ryolt",
      "ryolp",
      "ryolh",
      "ryom",
      "ryob",
      "ryobs",
      "ryos",
      "ryoss",
      "ryong",
      "ryoj",
      "ryoc",
      "ryok",
      "ryot",
      "ryop",
      "ryoh",
      "ru",
      "rug",
      "rugg",
      "rugs",
      "run",
      "runj",
      "runh",
      "rud",
      "rul",
      "rulg",
      "rulm",
      "rulb",
      "ruls",
      "rult",
      "rulp",
      "rulh",
      "rum",
      "rub",
      "rubs",
      "rus",
      "russ",
      "rung",
      "ruj",
      "ruc"
    ];
  }
});

// node_modules/unidecode/data/xb9.js
var require_xb9 = __commonJS({
  "node_modules/unidecode/data/xb9.js"(exports2, module2) {
    module2.exports = [
      "ruk",
      "rut",
      "rup",
      "ruh",
      "rweo",
      "rweog",
      "rweogg",
      "rweogs",
      "rweon",
      "rweonj",
      "rweonh",
      "rweod",
      "rweol",
      "rweolg",
      "rweolm",
      "rweolb",
      "rweols",
      "rweolt",
      "rweolp",
      "rweolh",
      "rweom",
      "rweob",
      "rweobs",
      "rweos",
      "rweoss",
      "rweong",
      "rweoj",
      "rweoc",
      "rweok",
      "rweot",
      "rweop",
      "rweoh",
      "rwe",
      "rweg",
      "rwegg",
      "rwegs",
      "rwen",
      "rwenj",
      "rwenh",
      "rwed",
      "rwel",
      "rwelg",
      "rwelm",
      "rwelb",
      "rwels",
      "rwelt",
      "rwelp",
      "rwelh",
      "rwem",
      "rweb",
      "rwebs",
      "rwes",
      "rwess",
      "rweng",
      "rwej",
      "rwec",
      "rwek",
      "rwet",
      "rwep",
      "rweh",
      "rwi",
      "rwig",
      "rwigg",
      "rwigs",
      "rwin",
      "rwinj",
      "rwinh",
      "rwid",
      "rwil",
      "rwilg",
      "rwilm",
      "rwilb",
      "rwils",
      "rwilt",
      "rwilp",
      "rwilh",
      "rwim",
      "rwib",
      "rwibs",
      "rwis",
      "rwiss",
      "rwing",
      "rwij",
      "rwic",
      "rwik",
      "rwit",
      "rwip",
      "rwih",
      "ryu",
      "ryug",
      "ryugg",
      "ryugs",
      "ryun",
      "ryunj",
      "ryunh",
      "ryud",
      "ryul",
      "ryulg",
      "ryulm",
      "ryulb",
      "ryuls",
      "ryult",
      "ryulp",
      "ryulh",
      "ryum",
      "ryub",
      "ryubs",
      "ryus",
      "ryuss",
      "ryung",
      "ryuj",
      "ryuc",
      "ryuk",
      "ryut",
      "ryup",
      "ryuh",
      "reu",
      "reug",
      "reugg",
      "reugs",
      "reun",
      "reunj",
      "reunh",
      "reud",
      "reul",
      "reulg",
      "reulm",
      "reulb",
      "reuls",
      "reult",
      "reulp",
      "reulh",
      "reum",
      "reub",
      "reubs",
      "reus",
      "reuss",
      "reung",
      "reuj",
      "reuc",
      "reuk",
      "reut",
      "reup",
      "reuh",
      "ryi",
      "ryig",
      "ryigg",
      "ryigs",
      "ryin",
      "ryinj",
      "ryinh",
      "ryid",
      "ryil",
      "ryilg",
      "ryilm",
      "ryilb",
      "ryils",
      "ryilt",
      "ryilp",
      "ryilh",
      "ryim",
      "ryib",
      "ryibs",
      "ryis",
      "ryiss",
      "rying",
      "ryij",
      "ryic",
      "ryik",
      "ryit",
      "ryip",
      "ryih",
      "ri",
      "rig",
      "rigg",
      "rigs",
      "rin",
      "rinj",
      "rinh",
      "rid",
      "ril",
      "rilg",
      "rilm",
      "rilb",
      "rils",
      "rilt",
      "rilp",
      "rilh",
      "rim",
      "rib",
      "ribs",
      "ris",
      "riss",
      "ring",
      "rij",
      "ric",
      "rik",
      "rit",
      "rip",
      "rih",
      "ma",
      "mag",
      "magg",
      "mags",
      "man",
      "manj",
      "manh",
      "mad",
      "mal",
      "malg",
      "malm",
      "malb",
      "mals",
      "malt",
      "malp",
      "malh",
      "mam",
      "mab",
      "mabs",
      "mas",
      "mass",
      "mang",
      "maj",
      "mac",
      "mak",
      "mat",
      "map",
      "mah",
      "mae",
      "maeg",
      "maegg",
      "maegs",
      "maen",
      "maenj",
      "maenh",
      "maed",
      "mael",
      "maelg",
      "maelm",
      "maelb",
      "maels",
      "maelt",
      "maelp",
      "maelh",
      "maem",
      "maeb",
      "maebs",
      "maes",
      "maess",
      "maeng",
      "maej",
      "maec",
      "maek",
      "maet",
      "maep",
      "maeh"
    ];
  }
});

// node_modules/unidecode/data/xba.js
var require_xba = __commonJS({
  "node_modules/unidecode/data/xba.js"(exports2, module2) {
    module2.exports = [
      "mya",
      "myag",
      "myagg",
      "myags",
      "myan",
      "myanj",
      "myanh",
      "myad",
      "myal",
      "myalg",
      "myalm",
      "myalb",
      "myals",
      "myalt",
      "myalp",
      "myalh",
      "myam",
      "myab",
      "myabs",
      "myas",
      "myass",
      "myang",
      "myaj",
      "myac",
      "myak",
      "myat",
      "myap",
      "myah",
      "myae",
      "myaeg",
      "myaegg",
      "myaegs",
      "myaen",
      "myaenj",
      "myaenh",
      "myaed",
      "myael",
      "myaelg",
      "myaelm",
      "myaelb",
      "myaels",
      "myaelt",
      "myaelp",
      "myaelh",
      "myaem",
      "myaeb",
      "myaebs",
      "myaes",
      "myaess",
      "myaeng",
      "myaej",
      "myaec",
      "myaek",
      "myaet",
      "myaep",
      "myaeh",
      "meo",
      "meog",
      "meogg",
      "meogs",
      "meon",
      "meonj",
      "meonh",
      "meod",
      "meol",
      "meolg",
      "meolm",
      "meolb",
      "meols",
      "meolt",
      "meolp",
      "meolh",
      "meom",
      "meob",
      "meobs",
      "meos",
      "meoss",
      "meong",
      "meoj",
      "meoc",
      "meok",
      "meot",
      "meop",
      "meoh",
      "me",
      "meg",
      "megg",
      "megs",
      "men",
      "menj",
      "menh",
      "med",
      "mel",
      "melg",
      "melm",
      "melb",
      "mels",
      "melt",
      "melp",
      "melh",
      "mem",
      "meb",
      "mebs",
      "mes",
      "mess",
      "meng",
      "mej",
      "mec",
      "mek",
      "met",
      "mep",
      "meh",
      "myeo",
      "myeog",
      "myeogg",
      "myeogs",
      "myeon",
      "myeonj",
      "myeonh",
      "myeod",
      "myeol",
      "myeolg",
      "myeolm",
      "myeolb",
      "myeols",
      "myeolt",
      "myeolp",
      "myeolh",
      "myeom",
      "myeob",
      "myeobs",
      "myeos",
      "myeoss",
      "myeong",
      "myeoj",
      "myeoc",
      "myeok",
      "myeot",
      "myeop",
      "myeoh",
      "mye",
      "myeg",
      "myegg",
      "myegs",
      "myen",
      "myenj",
      "myenh",
      "myed",
      "myel",
      "myelg",
      "myelm",
      "myelb",
      "myels",
      "myelt",
      "myelp",
      "myelh",
      "myem",
      "myeb",
      "myebs",
      "myes",
      "myess",
      "myeng",
      "myej",
      "myec",
      "myek",
      "myet",
      "myep",
      "myeh",
      "mo",
      "mog",
      "mogg",
      "mogs",
      "mon",
      "monj",
      "monh",
      "mod",
      "mol",
      "molg",
      "molm",
      "molb",
      "mols",
      "molt",
      "molp",
      "molh",
      "mom",
      "mob",
      "mobs",
      "mos",
      "moss",
      "mong",
      "moj",
      "moc",
      "mok",
      "mot",
      "mop",
      "moh",
      "mwa",
      "mwag",
      "mwagg",
      "mwags",
      "mwan",
      "mwanj",
      "mwanh",
      "mwad",
      "mwal",
      "mwalg",
      "mwalm",
      "mwalb",
      "mwals",
      "mwalt",
      "mwalp",
      "mwalh",
      "mwam",
      "mwab",
      "mwabs",
      "mwas",
      "mwass",
      "mwang",
      "mwaj",
      "mwac",
      "mwak",
      "mwat",
      "mwap",
      "mwah",
      "mwae",
      "mwaeg",
      "mwaegg",
      "mwaegs",
      "mwaen",
      "mwaenj",
      "mwaenh",
      "mwaed",
      "mwael",
      "mwaelg",
      "mwaelm",
      "mwaelb",
      "mwaels",
      "mwaelt",
      "mwaelp",
      "mwaelh",
      "mwaem",
      "mwaeb",
      "mwaebs",
      "mwaes",
      "mwaess",
      "mwaeng",
      "mwaej",
      "mwaec",
      "mwaek",
      "mwaet",
      "mwaep",
      "mwaeh",
      "moe",
      "moeg",
      "moegg",
      "moegs"
    ];
  }
});

// node_modules/unidecode/data/xbb.js
var require_xbb = __commonJS({
  "node_modules/unidecode/data/xbb.js"(exports2, module2) {
    module2.exports = [
      "moen",
      "moenj",
      "moenh",
      "moed",
      "moel",
      "moelg",
      "moelm",
      "moelb",
      "moels",
      "moelt",
      "moelp",
      "moelh",
      "moem",
      "moeb",
      "moebs",
      "moes",
      "moess",
      "moeng",
      "moej",
      "moec",
      "moek",
      "moet",
      "moep",
      "moeh",
      "myo",
      "myog",
      "myogg",
      "myogs",
      "myon",
      "myonj",
      "myonh",
      "myod",
      "myol",
      "myolg",
      "myolm",
      "myolb",
      "myols",
      "myolt",
      "myolp",
      "myolh",
      "myom",
      "myob",
      "myobs",
      "myos",
      "myoss",
      "myong",
      "myoj",
      "myoc",
      "myok",
      "myot",
      "myop",
      "myoh",
      "mu",
      "mug",
      "mugg",
      "mugs",
      "mun",
      "munj",
      "munh",
      "mud",
      "mul",
      "mulg",
      "mulm",
      "mulb",
      "muls",
      "mult",
      "mulp",
      "mulh",
      "mum",
      "mub",
      "mubs",
      "mus",
      "muss",
      "mung",
      "muj",
      "muc",
      "muk",
      "mut",
      "mup",
      "muh",
      "mweo",
      "mweog",
      "mweogg",
      "mweogs",
      "mweon",
      "mweonj",
      "mweonh",
      "mweod",
      "mweol",
      "mweolg",
      "mweolm",
      "mweolb",
      "mweols",
      "mweolt",
      "mweolp",
      "mweolh",
      "mweom",
      "mweob",
      "mweobs",
      "mweos",
      "mweoss",
      "mweong",
      "mweoj",
      "mweoc",
      "mweok",
      "mweot",
      "mweop",
      "mweoh",
      "mwe",
      "mweg",
      "mwegg",
      "mwegs",
      "mwen",
      "mwenj",
      "mwenh",
      "mwed",
      "mwel",
      "mwelg",
      "mwelm",
      "mwelb",
      "mwels",
      "mwelt",
      "mwelp",
      "mwelh",
      "mwem",
      "mweb",
      "mwebs",
      "mwes",
      "mwess",
      "mweng",
      "mwej",
      "mwec",
      "mwek",
      "mwet",
      "mwep",
      "mweh",
      "mwi",
      "mwig",
      "mwigg",
      "mwigs",
      "mwin",
      "mwinj",
      "mwinh",
      "mwid",
      "mwil",
      "mwilg",
      "mwilm",
      "mwilb",
      "mwils",
      "mwilt",
      "mwilp",
      "mwilh",
      "mwim",
      "mwib",
      "mwibs",
      "mwis",
      "mwiss",
      "mwing",
      "mwij",
      "mwic",
      "mwik",
      "mwit",
      "mwip",
      "mwih",
      "myu",
      "myug",
      "myugg",
      "myugs",
      "myun",
      "myunj",
      "myunh",
      "myud",
      "myul",
      "myulg",
      "myulm",
      "myulb",
      "myuls",
      "myult",
      "myulp",
      "myulh",
      "myum",
      "myub",
      "myubs",
      "myus",
      "myuss",
      "myung",
      "myuj",
      "myuc",
      "myuk",
      "myut",
      "myup",
      "myuh",
      "meu",
      "meug",
      "meugg",
      "meugs",
      "meun",
      "meunj",
      "meunh",
      "meud",
      "meul",
      "meulg",
      "meulm",
      "meulb",
      "meuls",
      "meult",
      "meulp",
      "meulh",
      "meum",
      "meub",
      "meubs",
      "meus",
      "meuss",
      "meung",
      "meuj",
      "meuc",
      "meuk",
      "meut",
      "meup",
      "meuh",
      "myi",
      "myig",
      "myigg",
      "myigs",
      "myin",
      "myinj",
      "myinh",
      "myid",
      "myil",
      "myilg",
      "myilm",
      "myilb",
      "myils",
      "myilt",
      "myilp",
      "myilh",
      "myim",
      "myib",
      "myibs",
      "myis",
      "myiss",
      "mying",
      "myij",
      "myic",
      "myik",
      "myit",
      "myip",
      "myih",
      "mi",
      "mig",
      "migg",
      "migs",
      "min",
      "minj",
      "minh",
      "mid"
    ];
  }
});

// node_modules/unidecode/data/xbc.js
var require_xbc = __commonJS({
  "node_modules/unidecode/data/xbc.js"(exports2, module2) {
    module2.exports = [
      "mil",
      "milg",
      "milm",
      "milb",
      "mils",
      "milt",
      "milp",
      "milh",
      "mim",
      "mib",
      "mibs",
      "mis",
      "miss",
      "ming",
      "mij",
      "mic",
      "mik",
      "mit",
      "mip",
      "mih",
      "ba",
      "bag",
      "bagg",
      "bags",
      "ban",
      "banj",
      "banh",
      "bad",
      "bal",
      "balg",
      "balm",
      "balb",
      "bals",
      "balt",
      "balp",
      "balh",
      "bam",
      "bab",
      "babs",
      "bas",
      "bass",
      "bang",
      "baj",
      "bac",
      "bak",
      "bat",
      "bap",
      "bah",
      "bae",
      "baeg",
      "baegg",
      "baegs",
      "baen",
      "baenj",
      "baenh",
      "baed",
      "bael",
      "baelg",
      "baelm",
      "baelb",
      "baels",
      "baelt",
      "baelp",
      "baelh",
      "baem",
      "baeb",
      "baebs",
      "baes",
      "baess",
      "baeng",
      "baej",
      "baec",
      "baek",
      "baet",
      "baep",
      "baeh",
      "bya",
      "byag",
      "byagg",
      "byags",
      "byan",
      "byanj",
      "byanh",
      "byad",
      "byal",
      "byalg",
      "byalm",
      "byalb",
      "byals",
      "byalt",
      "byalp",
      "byalh",
      "byam",
      "byab",
      "byabs",
      "byas",
      "byass",
      "byang",
      "byaj",
      "byac",
      "byak",
      "byat",
      "byap",
      "byah",
      "byae",
      "byaeg",
      "byaegg",
      "byaegs",
      "byaen",
      "byaenj",
      "byaenh",
      "byaed",
      "byael",
      "byaelg",
      "byaelm",
      "byaelb",
      "byaels",
      "byaelt",
      "byaelp",
      "byaelh",
      "byaem",
      "byaeb",
      "byaebs",
      "byaes",
      "byaess",
      "byaeng",
      "byaej",
      "byaec",
      "byaek",
      "byaet",
      "byaep",
      "byaeh",
      "beo",
      "beog",
      "beogg",
      "beogs",
      "beon",
      "beonj",
      "beonh",
      "beod",
      "beol",
      "beolg",
      "beolm",
      "beolb",
      "beols",
      "beolt",
      "beolp",
      "beolh",
      "beom",
      "beob",
      "beobs",
      "beos",
      "beoss",
      "beong",
      "beoj",
      "beoc",
      "beok",
      "beot",
      "beop",
      "beoh",
      "be",
      "beg",
      "begg",
      "begs",
      "ben",
      "benj",
      "benh",
      "bed",
      "bel",
      "belg",
      "belm",
      "belb",
      "bels",
      "belt",
      "belp",
      "belh",
      "bem",
      "beb",
      "bebs",
      "bes",
      "bess",
      "beng",
      "bej",
      "bec",
      "bek",
      "bet",
      "bep",
      "beh",
      "byeo",
      "byeog",
      "byeogg",
      "byeogs",
      "byeon",
      "byeonj",
      "byeonh",
      "byeod",
      "byeol",
      "byeolg",
      "byeolm",
      "byeolb",
      "byeols",
      "byeolt",
      "byeolp",
      "byeolh",
      "byeom",
      "byeob",
      "byeobs",
      "byeos",
      "byeoss",
      "byeong",
      "byeoj",
      "byeoc",
      "byeok",
      "byeot",
      "byeop",
      "byeoh",
      "bye",
      "byeg",
      "byegg",
      "byegs",
      "byen",
      "byenj",
      "byenh",
      "byed",
      "byel",
      "byelg",
      "byelm",
      "byelb",
      "byels",
      "byelt",
      "byelp",
      "byelh",
      "byem",
      "byeb",
      "byebs",
      "byes",
      "byess",
      "byeng",
      "byej",
      "byec",
      "byek",
      "byet",
      "byep",
      "byeh",
      "bo",
      "bog",
      "bogg",
      "bogs",
      "bon",
      "bonj",
      "bonh",
      "bod",
      "bol",
      "bolg",
      "bolm",
      "bolb"
    ];
  }
});

// node_modules/unidecode/data/xbd.js
var require_xbd = __commonJS({
  "node_modules/unidecode/data/xbd.js"(exports2, module2) {
    module2.exports = [
      "bols",
      "bolt",
      "bolp",
      "bolh",
      "bom",
      "bob",
      "bobs",
      "bos",
      "boss",
      "bong",
      "boj",
      "boc",
      "bok",
      "bot",
      "bop",
      "boh",
      "bwa",
      "bwag",
      "bwagg",
      "bwags",
      "bwan",
      "bwanj",
      "bwanh",
      "bwad",
      "bwal",
      "bwalg",
      "bwalm",
      "bwalb",
      "bwals",
      "bwalt",
      "bwalp",
      "bwalh",
      "bwam",
      "bwab",
      "bwabs",
      "bwas",
      "bwass",
      "bwang",
      "bwaj",
      "bwac",
      "bwak",
      "bwat",
      "bwap",
      "bwah",
      "bwae",
      "bwaeg",
      "bwaegg",
      "bwaegs",
      "bwaen",
      "bwaenj",
      "bwaenh",
      "bwaed",
      "bwael",
      "bwaelg",
      "bwaelm",
      "bwaelb",
      "bwaels",
      "bwaelt",
      "bwaelp",
      "bwaelh",
      "bwaem",
      "bwaeb",
      "bwaebs",
      "bwaes",
      "bwaess",
      "bwaeng",
      "bwaej",
      "bwaec",
      "bwaek",
      "bwaet",
      "bwaep",
      "bwaeh",
      "boe",
      "boeg",
      "boegg",
      "boegs",
      "boen",
      "boenj",
      "boenh",
      "boed",
      "boel",
      "boelg",
      "boelm",
      "boelb",
      "boels",
      "boelt",
      "boelp",
      "boelh",
      "boem",
      "boeb",
      "boebs",
      "boes",
      "boess",
      "boeng",
      "boej",
      "boec",
      "boek",
      "boet",
      "boep",
      "boeh",
      "byo",
      "byog",
      "byogg",
      "byogs",
      "byon",
      "byonj",
      "byonh",
      "byod",
      "byol",
      "byolg",
      "byolm",
      "byolb",
      "byols",
      "byolt",
      "byolp",
      "byolh",
      "byom",
      "byob",
      "byobs",
      "byos",
      "byoss",
      "byong",
      "byoj",
      "byoc",
      "byok",
      "byot",
      "byop",
      "byoh",
      "bu",
      "bug",
      "bugg",
      "bugs",
      "bun",
      "bunj",
      "bunh",
      "bud",
      "bul",
      "bulg",
      "bulm",
      "bulb",
      "buls",
      "bult",
      "bulp",
      "bulh",
      "bum",
      "bub",
      "bubs",
      "bus",
      "buss",
      "bung",
      "buj",
      "buc",
      "buk",
      "but",
      "bup",
      "buh",
      "bweo",
      "bweog",
      "bweogg",
      "bweogs",
      "bweon",
      "bweonj",
      "bweonh",
      "bweod",
      "bweol",
      "bweolg",
      "bweolm",
      "bweolb",
      "bweols",
      "bweolt",
      "bweolp",
      "bweolh",
      "bweom",
      "bweob",
      "bweobs",
      "bweos",
      "bweoss",
      "bweong",
      "bweoj",
      "bweoc",
      "bweok",
      "bweot",
      "bweop",
      "bweoh",
      "bwe",
      "bweg",
      "bwegg",
      "bwegs",
      "bwen",
      "bwenj",
      "bwenh",
      "bwed",
      "bwel",
      "bwelg",
      "bwelm",
      "bwelb",
      "bwels",
      "bwelt",
      "bwelp",
      "bwelh",
      "bwem",
      "bweb",
      "bwebs",
      "bwes",
      "bwess",
      "bweng",
      "bwej",
      "bwec",
      "bwek",
      "bwet",
      "bwep",
      "bweh",
      "bwi",
      "bwig",
      "bwigg",
      "bwigs",
      "bwin",
      "bwinj",
      "bwinh",
      "bwid",
      "bwil",
      "bwilg",
      "bwilm",
      "bwilb",
      "bwils",
      "bwilt",
      "bwilp",
      "bwilh",
      "bwim",
      "bwib",
      "bwibs",
      "bwis",
      "bwiss",
      "bwing",
      "bwij",
      "bwic",
      "bwik",
      "bwit",
      "bwip",
      "bwih",
      "byu",
      "byug",
      "byugg",
      "byugs",
      "byun",
      "byunj",
      "byunh",
      "byud",
      "byul",
      "byulg",
      "byulm",
      "byulb",
      "byuls",
      "byult",
      "byulp",
      "byulh"
    ];
  }
});

// node_modules/unidecode/data/xbe.js
var require_xbe = __commonJS({
  "node_modules/unidecode/data/xbe.js"(exports2, module2) {
    module2.exports = [
      "byum",
      "byub",
      "byubs",
      "byus",
      "byuss",
      "byung",
      "byuj",
      "byuc",
      "byuk",
      "byut",
      "byup",
      "byuh",
      "beu",
      "beug",
      "beugg",
      "beugs",
      "beun",
      "beunj",
      "beunh",
      "beud",
      "beul",
      "beulg",
      "beulm",
      "beulb",
      "beuls",
      "beult",
      "beulp",
      "beulh",
      "beum",
      "beub",
      "beubs",
      "beus",
      "beuss",
      "beung",
      "beuj",
      "beuc",
      "beuk",
      "beut",
      "beup",
      "beuh",
      "byi",
      "byig",
      "byigg",
      "byigs",
      "byin",
      "byinj",
      "byinh",
      "byid",
      "byil",
      "byilg",
      "byilm",
      "byilb",
      "byils",
      "byilt",
      "byilp",
      "byilh",
      "byim",
      "byib",
      "byibs",
      "byis",
      "byiss",
      "bying",
      "byij",
      "byic",
      "byik",
      "byit",
      "byip",
      "byih",
      "bi",
      "big",
      "bigg",
      "bigs",
      "bin",
      "binj",
      "binh",
      "bid",
      "bil",
      "bilg",
      "bilm",
      "bilb",
      "bils",
      "bilt",
      "bilp",
      "bilh",
      "bim",
      "bib",
      "bibs",
      "bis",
      "biss",
      "bing",
      "bij",
      "bic",
      "bik",
      "bit",
      "bip",
      "bih",
      "bba",
      "bbag",
      "bbagg",
      "bbags",
      "bban",
      "bbanj",
      "bbanh",
      "bbad",
      "bbal",
      "bbalg",
      "bbalm",
      "bbalb",
      "bbals",
      "bbalt",
      "bbalp",
      "bbalh",
      "bbam",
      "bbab",
      "bbabs",
      "bbas",
      "bbass",
      "bbang",
      "bbaj",
      "bbac",
      "bbak",
      "bbat",
      "bbap",
      "bbah",
      "bbae",
      "bbaeg",
      "bbaegg",
      "bbaegs",
      "bbaen",
      "bbaenj",
      "bbaenh",
      "bbaed",
      "bbael",
      "bbaelg",
      "bbaelm",
      "bbaelb",
      "bbaels",
      "bbaelt",
      "bbaelp",
      "bbaelh",
      "bbaem",
      "bbaeb",
      "bbaebs",
      "bbaes",
      "bbaess",
      "bbaeng",
      "bbaej",
      "bbaec",
      "bbaek",
      "bbaet",
      "bbaep",
      "bbaeh",
      "bbya",
      "bbyag",
      "bbyagg",
      "bbyags",
      "bbyan",
      "bbyanj",
      "bbyanh",
      "bbyad",
      "bbyal",
      "bbyalg",
      "bbyalm",
      "bbyalb",
      "bbyals",
      "bbyalt",
      "bbyalp",
      "bbyalh",
      "bbyam",
      "bbyab",
      "bbyabs",
      "bbyas",
      "bbyass",
      "bbyang",
      "bbyaj",
      "bbyac",
      "bbyak",
      "bbyat",
      "bbyap",
      "bbyah",
      "bbyae",
      "bbyaeg",
      "bbyaegg",
      "bbyaegs",
      "bbyaen",
      "bbyaenj",
      "bbyaenh",
      "bbyaed",
      "bbyael",
      "bbyaelg",
      "bbyaelm",
      "bbyaelb",
      "bbyaels",
      "bbyaelt",
      "bbyaelp",
      "bbyaelh",
      "bbyaem",
      "bbyaeb",
      "bbyaebs",
      "bbyaes",
      "bbyaess",
      "bbyaeng",
      "bbyaej",
      "bbyaec",
      "bbyaek",
      "bbyaet",
      "bbyaep",
      "bbyaeh",
      "bbeo",
      "bbeog",
      "bbeogg",
      "bbeogs",
      "bbeon",
      "bbeonj",
      "bbeonh",
      "bbeod",
      "bbeol",
      "bbeolg",
      "bbeolm",
      "bbeolb",
      "bbeols",
      "bbeolt",
      "bbeolp",
      "bbeolh",
      "bbeom",
      "bbeob",
      "bbeobs",
      "bbeos",
      "bbeoss",
      "bbeong",
      "bbeoj",
      "bbeoc",
      "bbeok",
      "bbeot",
      "bbeop",
      "bbeoh",
      "bbe",
      "bbeg",
      "bbegg",
      "bbegs",
      "bben",
      "bbenj",
      "bbenh",
      "bbed",
      "bbel",
      "bbelg",
      "bbelm",
      "bbelb",
      "bbels",
      "bbelt",
      "bbelp",
      "bbelh",
      "bbem",
      "bbeb",
      "bbebs",
      "bbes"
    ];
  }
});

// node_modules/unidecode/data/xbf.js
var require_xbf = __commonJS({
  "node_modules/unidecode/data/xbf.js"(exports2, module2) {
    module2.exports = [
      "bbess",
      "bbeng",
      "bbej",
      "bbec",
      "bbek",
      "bbet",
      "bbep",
      "bbeh",
      "bbyeo",
      "bbyeog",
      "bbyeogg",
      "bbyeogs",
      "bbyeon",
      "bbyeonj",
      "bbyeonh",
      "bbyeod",
      "bbyeol",
      "bbyeolg",
      "bbyeolm",
      "bbyeolb",
      "bbyeols",
      "bbyeolt",
      "bbyeolp",
      "bbyeolh",
      "bbyeom",
      "bbyeob",
      "bbyeobs",
      "bbyeos",
      "bbyeoss",
      "bbyeong",
      "bbyeoj",
      "bbyeoc",
      "bbyeok",
      "bbyeot",
      "bbyeop",
      "bbyeoh",
      "bbye",
      "bbyeg",
      "bbyegg",
      "bbyegs",
      "bbyen",
      "bbyenj",
      "bbyenh",
      "bbyed",
      "bbyel",
      "bbyelg",
      "bbyelm",
      "bbyelb",
      "bbyels",
      "bbyelt",
      "bbyelp",
      "bbyelh",
      "bbyem",
      "bbyeb",
      "bbyebs",
      "bbyes",
      "bbyess",
      "bbyeng",
      "bbyej",
      "bbyec",
      "bbyek",
      "bbyet",
      "bbyep",
      "bbyeh",
      "bbo",
      "bbog",
      "bbogg",
      "bbogs",
      "bbon",
      "bbonj",
      "bbonh",
      "bbod",
      "bbol",
      "bbolg",
      "bbolm",
      "bbolb",
      "bbols",
      "bbolt",
      "bbolp",
      "bbolh",
      "bbom",
      "bbob",
      "bbobs",
      "bbos",
      "bboss",
      "bbong",
      "bboj",
      "bboc",
      "bbok",
      "bbot",
      "bbop",
      "bboh",
      "bbwa",
      "bbwag",
      "bbwagg",
      "bbwags",
      "bbwan",
      "bbwanj",
      "bbwanh",
      "bbwad",
      "bbwal",
      "bbwalg",
      "bbwalm",
      "bbwalb",
      "bbwals",
      "bbwalt",
      "bbwalp",
      "bbwalh",
      "bbwam",
      "bbwab",
      "bbwabs",
      "bbwas",
      "bbwass",
      "bbwang",
      "bbwaj",
      "bbwac",
      "bbwak",
      "bbwat",
      "bbwap",
      "bbwah",
      "bbwae",
      "bbwaeg",
      "bbwaegg",
      "bbwaegs",
      "bbwaen",
      "bbwaenj",
      "bbwaenh",
      "bbwaed",
      "bbwael",
      "bbwaelg",
      "bbwaelm",
      "bbwaelb",
      "bbwaels",
      "bbwaelt",
      "bbwaelp",
      "bbwaelh",
      "bbwaem",
      "bbwaeb",
      "bbwaebs",
      "bbwaes",
      "bbwaess",
      "bbwaeng",
      "bbwaej",
      "bbwaec",
      "bbwaek",
      "bbwaet",
      "bbwaep",
      "bbwaeh",
      "bboe",
      "bboeg",
      "bboegg",
      "bboegs",
      "bboen",
      "bboenj",
      "bboenh",
      "bboed",
      "bboel",
      "bboelg",
      "bboelm",
      "bboelb",
      "bboels",
      "bboelt",
      "bboelp",
      "bboelh",
      "bboem",
      "bboeb",
      "bboebs",
      "bboes",
      "bboess",
      "bboeng",
      "bboej",
      "bboec",
      "bboek",
      "bboet",
      "bboep",
      "bboeh",
      "bbyo",
      "bbyog",
      "bbyogg",
      "bbyogs",
      "bbyon",
      "bbyonj",
      "bbyonh",
      "bbyod",
      "bbyol",
      "bbyolg",
      "bbyolm",
      "bbyolb",
      "bbyols",
      "bbyolt",
      "bbyolp",
      "bbyolh",
      "bbyom",
      "bbyob",
      "bbyobs",
      "bbyos",
      "bbyoss",
      "bbyong",
      "bbyoj",
      "bbyoc",
      "bbyok",
      "bbyot",
      "bbyop",
      "bbyoh",
      "bbu",
      "bbug",
      "bbugg",
      "bbugs",
      "bbun",
      "bbunj",
      "bbunh",
      "bbud",
      "bbul",
      "bbulg",
      "bbulm",
      "bbulb",
      "bbuls",
      "bbult",
      "bbulp",
      "bbulh",
      "bbum",
      "bbub",
      "bbubs",
      "bbus",
      "bbuss",
      "bbung",
      "bbuj",
      "bbuc",
      "bbuk",
      "bbut",
      "bbup",
      "bbuh",
      "bbweo",
      "bbweog",
      "bbweogg",
      "bbweogs",
      "bbweon",
      "bbweonj",
      "bbweonh",
      "bbweod",
      "bbweol",
      "bbweolg",
      "bbweolm",
      "bbweolb",
      "bbweols",
      "bbweolt",
      "bbweolp",
      "bbweolh",
      "bbweom",
      "bbweob",
      "bbweobs",
      "bbweos",
      "bbweoss",
      "bbweong",
      "bbweoj",
      "bbweoc"
    ];
  }
});

// node_modules/unidecode/data/xc0.js
var require_xc0 = __commonJS({
  "node_modules/unidecode/data/xc0.js"(exports2, module2) {
    module2.exports = [
      "bbweok",
      "bbweot",
      "bbweop",
      "bbweoh",
      "bbwe",
      "bbweg",
      "bbwegg",
      "bbwegs",
      "bbwen",
      "bbwenj",
      "bbwenh",
      "bbwed",
      "bbwel",
      "bbwelg",
      "bbwelm",
      "bbwelb",
      "bbwels",
      "bbwelt",
      "bbwelp",
      "bbwelh",
      "bbwem",
      "bbweb",
      "bbwebs",
      "bbwes",
      "bbwess",
      "bbweng",
      "bbwej",
      "bbwec",
      "bbwek",
      "bbwet",
      "bbwep",
      "bbweh",
      "bbwi",
      "bbwig",
      "bbwigg",
      "bbwigs",
      "bbwin",
      "bbwinj",
      "bbwinh",
      "bbwid",
      "bbwil",
      "bbwilg",
      "bbwilm",
      "bbwilb",
      "bbwils",
      "bbwilt",
      "bbwilp",
      "bbwilh",
      "bbwim",
      "bbwib",
      "bbwibs",
      "bbwis",
      "bbwiss",
      "bbwing",
      "bbwij",
      "bbwic",
      "bbwik",
      "bbwit",
      "bbwip",
      "bbwih",
      "bbyu",
      "bbyug",
      "bbyugg",
      "bbyugs",
      "bbyun",
      "bbyunj",
      "bbyunh",
      "bbyud",
      "bbyul",
      "bbyulg",
      "bbyulm",
      "bbyulb",
      "bbyuls",
      "bbyult",
      "bbyulp",
      "bbyulh",
      "bbyum",
      "bbyub",
      "bbyubs",
      "bbyus",
      "bbyuss",
      "bbyung",
      "bbyuj",
      "bbyuc",
      "bbyuk",
      "bbyut",
      "bbyup",
      "bbyuh",
      "bbeu",
      "bbeug",
      "bbeugg",
      "bbeugs",
      "bbeun",
      "bbeunj",
      "bbeunh",
      "bbeud",
      "bbeul",
      "bbeulg",
      "bbeulm",
      "bbeulb",
      "bbeuls",
      "bbeult",
      "bbeulp",
      "bbeulh",
      "bbeum",
      "bbeub",
      "bbeubs",
      "bbeus",
      "bbeuss",
      "bbeung",
      "bbeuj",
      "bbeuc",
      "bbeuk",
      "bbeut",
      "bbeup",
      "bbeuh",
      "bbyi",
      "bbyig",
      "bbyigg",
      "bbyigs",
      "bbyin",
      "bbyinj",
      "bbyinh",
      "bbyid",
      "bbyil",
      "bbyilg",
      "bbyilm",
      "bbyilb",
      "bbyils",
      "bbyilt",
      "bbyilp",
      "bbyilh",
      "bbyim",
      "bbyib",
      "bbyibs",
      "bbyis",
      "bbyiss",
      "bbying",
      "bbyij",
      "bbyic",
      "bbyik",
      "bbyit",
      "bbyip",
      "bbyih",
      "bbi",
      "bbig",
      "bbigg",
      "bbigs",
      "bbin",
      "bbinj",
      "bbinh",
      "bbid",
      "bbil",
      "bbilg",
      "bbilm",
      "bbilb",
      "bbils",
      "bbilt",
      "bbilp",
      "bbilh",
      "bbim",
      "bbib",
      "bbibs",
      "bbis",
      "bbiss",
      "bbing",
      "bbij",
      "bbic",
      "bbik",
      "bbit",
      "bbip",
      "bbih",
      "sa",
      "sag",
      "sagg",
      "sags",
      "san",
      "sanj",
      "sanh",
      "sad",
      "sal",
      "salg",
      "salm",
      "salb",
      "sals",
      "salt",
      "salp",
      "salh",
      "sam",
      "sab",
      "sabs",
      "sas",
      "sass",
      "sang",
      "saj",
      "sac",
      "sak",
      "sat",
      "sap",
      "sah",
      "sae",
      "saeg",
      "saegg",
      "saegs",
      "saen",
      "saenj",
      "saenh",
      "saed",
      "sael",
      "saelg",
      "saelm",
      "saelb",
      "saels",
      "saelt",
      "saelp",
      "saelh",
      "saem",
      "saeb",
      "saebs",
      "saes",
      "saess",
      "saeng",
      "saej",
      "saec",
      "saek",
      "saet",
      "saep",
      "saeh",
      "sya",
      "syag",
      "syagg",
      "syags",
      "syan",
      "syanj",
      "syanh",
      "syad",
      "syal",
      "syalg",
      "syalm",
      "syalb",
      "syals",
      "syalt",
      "syalp",
      "syalh",
      "syam",
      "syab",
      "syabs",
      "syas",
      "syass",
      "syang",
      "syaj",
      "syac",
      "syak",
      "syat",
      "syap",
      "syah"
    ];
  }
});

// node_modules/unidecode/data/xc1.js
var require_xc1 = __commonJS({
  "node_modules/unidecode/data/xc1.js"(exports2, module2) {
    module2.exports = [
      "syae",
      "syaeg",
      "syaegg",
      "syaegs",
      "syaen",
      "syaenj",
      "syaenh",
      "syaed",
      "syael",
      "syaelg",
      "syaelm",
      "syaelb",
      "syaels",
      "syaelt",
      "syaelp",
      "syaelh",
      "syaem",
      "syaeb",
      "syaebs",
      "syaes",
      "syaess",
      "syaeng",
      "syaej",
      "syaec",
      "syaek",
      "syaet",
      "syaep",
      "syaeh",
      "seo",
      "seog",
      "seogg",
      "seogs",
      "seon",
      "seonj",
      "seonh",
      "seod",
      "seol",
      "seolg",
      "seolm",
      "seolb",
      "seols",
      "seolt",
      "seolp",
      "seolh",
      "seom",
      "seob",
      "seobs",
      "seos",
      "seoss",
      "seong",
      "seoj",
      "seoc",
      "seok",
      "seot",
      "seop",
      "seoh",
      "se",
      "seg",
      "segg",
      "segs",
      "sen",
      "senj",
      "senh",
      "sed",
      "sel",
      "selg",
      "selm",
      "selb",
      "sels",
      "selt",
      "selp",
      "selh",
      "sem",
      "seb",
      "sebs",
      "ses",
      "sess",
      "seng",
      "sej",
      "sec",
      "sek",
      "set",
      "sep",
      "seh",
      "syeo",
      "syeog",
      "syeogg",
      "syeogs",
      "syeon",
      "syeonj",
      "syeonh",
      "syeod",
      "syeol",
      "syeolg",
      "syeolm",
      "syeolb",
      "syeols",
      "syeolt",
      "syeolp",
      "syeolh",
      "syeom",
      "syeob",
      "syeobs",
      "syeos",
      "syeoss",
      "syeong",
      "syeoj",
      "syeoc",
      "syeok",
      "syeot",
      "syeop",
      "syeoh",
      "sye",
      "syeg",
      "syegg",
      "syegs",
      "syen",
      "syenj",
      "syenh",
      "syed",
      "syel",
      "syelg",
      "syelm",
      "syelb",
      "syels",
      "syelt",
      "syelp",
      "syelh",
      "syem",
      "syeb",
      "syebs",
      "syes",
      "syess",
      "syeng",
      "syej",
      "syec",
      "syek",
      "syet",
      "syep",
      "syeh",
      "so",
      "sog",
      "sogg",
      "sogs",
      "son",
      "sonj",
      "sonh",
      "sod",
      "sol",
      "solg",
      "solm",
      "solb",
      "sols",
      "solt",
      "solp",
      "solh",
      "som",
      "sob",
      "sobs",
      "sos",
      "soss",
      "song",
      "soj",
      "soc",
      "sok",
      "sot",
      "sop",
      "soh",
      "swa",
      "swag",
      "swagg",
      "swags",
      "swan",
      "swanj",
      "swanh",
      "swad",
      "swal",
      "swalg",
      "swalm",
      "swalb",
      "swals",
      "swalt",
      "swalp",
      "swalh",
      "swam",
      "swab",
      "swabs",
      "swas",
      "swass",
      "swang",
      "swaj",
      "swac",
      "swak",
      "swat",
      "swap",
      "swah",
      "swae",
      "swaeg",
      "swaegg",
      "swaegs",
      "swaen",
      "swaenj",
      "swaenh",
      "swaed",
      "swael",
      "swaelg",
      "swaelm",
      "swaelb",
      "swaels",
      "swaelt",
      "swaelp",
      "swaelh",
      "swaem",
      "swaeb",
      "swaebs",
      "swaes",
      "swaess",
      "swaeng",
      "swaej",
      "swaec",
      "swaek",
      "swaet",
      "swaep",
      "swaeh",
      "soe",
      "soeg",
      "soegg",
      "soegs",
      "soen",
      "soenj",
      "soenh",
      "soed",
      "soel",
      "soelg",
      "soelm",
      "soelb",
      "soels",
      "soelt",
      "soelp",
      "soelh",
      "soem",
      "soeb",
      "soebs",
      "soes",
      "soess",
      "soeng",
      "soej",
      "soec",
      "soek",
      "soet",
      "soep",
      "soeh",
      "syo",
      "syog",
      "syogg",
      "syogs"
    ];
  }
});

// node_modules/unidecode/data/xc2.js
var require_xc2 = __commonJS({
  "node_modules/unidecode/data/xc2.js"(exports2, module2) {
    module2.exports = [
      "syon",
      "syonj",
      "syonh",
      "syod",
      "syol",
      "syolg",
      "syolm",
      "syolb",
      "syols",
      "syolt",
      "syolp",
      "syolh",
      "syom",
      "syob",
      "syobs",
      "syos",
      "syoss",
      "syong",
      "syoj",
      "syoc",
      "syok",
      "syot",
      "syop",
      "syoh",
      "su",
      "sug",
      "sugg",
      "sugs",
      "sun",
      "sunj",
      "sunh",
      "sud",
      "sul",
      "sulg",
      "sulm",
      "sulb",
      "suls",
      "sult",
      "sulp",
      "sulh",
      "sum",
      "sub",
      "subs",
      "sus",
      "suss",
      "sung",
      "suj",
      "suc",
      "suk",
      "sut",
      "sup",
      "suh",
      "sweo",
      "sweog",
      "sweogg",
      "sweogs",
      "sweon",
      "sweonj",
      "sweonh",
      "sweod",
      "sweol",
      "sweolg",
      "sweolm",
      "sweolb",
      "sweols",
      "sweolt",
      "sweolp",
      "sweolh",
      "sweom",
      "sweob",
      "sweobs",
      "sweos",
      "sweoss",
      "sweong",
      "sweoj",
      "sweoc",
      "sweok",
      "sweot",
      "sweop",
      "sweoh",
      "swe",
      "sweg",
      "swegg",
      "swegs",
      "swen",
      "swenj",
      "swenh",
      "swed",
      "swel",
      "swelg",
      "swelm",
      "swelb",
      "swels",
      "swelt",
      "swelp",
      "swelh",
      "swem",
      "sweb",
      "swebs",
      "swes",
      "swess",
      "sweng",
      "swej",
      "swec",
      "swek",
      "swet",
      "swep",
      "sweh",
      "swi",
      "swig",
      "swigg",
      "swigs",
      "swin",
      "swinj",
      "swinh",
      "swid",
      "swil",
      "swilg",
      "swilm",
      "swilb",
      "swils",
      "swilt",
      "swilp",
      "swilh",
      "swim",
      "swib",
      "swibs",
      "swis",
      "swiss",
      "swing",
      "swij",
      "swic",
      "swik",
      "swit",
      "swip",
      "swih",
      "syu",
      "syug",
      "syugg",
      "syugs",
      "syun",
      "syunj",
      "syunh",
      "syud",
      "syul",
      "syulg",
      "syulm",
      "syulb",
      "syuls",
      "syult",
      "syulp",
      "syulh",
      "syum",
      "syub",
      "syubs",
      "syus",
      "syuss",
      "syung",
      "syuj",
      "syuc",
      "syuk",
      "syut",
      "syup",
      "syuh",
      "seu",
      "seug",
      "seugg",
      "seugs",
      "seun",
      "seunj",
      "seunh",
      "seud",
      "seul",
      "seulg",
      "seulm",
      "seulb",
      "seuls",
      "seult",
      "seulp",
      "seulh",
      "seum",
      "seub",
      "seubs",
      "seus",
      "seuss",
      "seung",
      "seuj",
      "seuc",
      "seuk",
      "seut",
      "seup",
      "seuh",
      "syi",
      "syig",
      "syigg",
      "syigs",
      "syin",
      "syinj",
      "syinh",
      "syid",
      "syil",
      "syilg",
      "syilm",
      "syilb",
      "syils",
      "syilt",
      "syilp",
      "syilh",
      "syim",
      "syib",
      "syibs",
      "syis",
      "syiss",
      "sying",
      "syij",
      "syic",
      "syik",
      "syit",
      "syip",
      "syih",
      "si",
      "sig",
      "sigg",
      "sigs",
      "sin",
      "sinj",
      "sinh",
      "sid",
      "sil",
      "silg",
      "silm",
      "silb",
      "sils",
      "silt",
      "silp",
      "silh",
      "sim",
      "sib",
      "sibs",
      "sis",
      "siss",
      "sing",
      "sij",
      "sic",
      "sik",
      "sit",
      "sip",
      "sih",
      "ssa",
      "ssag",
      "ssagg",
      "ssags",
      "ssan",
      "ssanj",
      "ssanh",
      "ssad"
    ];
  }
});

// node_modules/unidecode/data/xc3.js
var require_xc3 = __commonJS({
  "node_modules/unidecode/data/xc3.js"(exports2, module2) {
    module2.exports = [
      "ssal",
      "ssalg",
      "ssalm",
      "ssalb",
      "ssals",
      "ssalt",
      "ssalp",
      "ssalh",
      "ssam",
      "ssab",
      "ssabs",
      "ssas",
      "ssass",
      "ssang",
      "ssaj",
      "ssac",
      "ssak",
      "ssat",
      "ssap",
      "ssah",
      "ssae",
      "ssaeg",
      "ssaegg",
      "ssaegs",
      "ssaen",
      "ssaenj",
      "ssaenh",
      "ssaed",
      "ssael",
      "ssaelg",
      "ssaelm",
      "ssaelb",
      "ssaels",
      "ssaelt",
      "ssaelp",
      "ssaelh",
      "ssaem",
      "ssaeb",
      "ssaebs",
      "ssaes",
      "ssaess",
      "ssaeng",
      "ssaej",
      "ssaec",
      "ssaek",
      "ssaet",
      "ssaep",
      "ssaeh",
      "ssya",
      "ssyag",
      "ssyagg",
      "ssyags",
      "ssyan",
      "ssyanj",
      "ssyanh",
      "ssyad",
      "ssyal",
      "ssyalg",
      "ssyalm",
      "ssyalb",
      "ssyals",
      "ssyalt",
      "ssyalp",
      "ssyalh",
      "ssyam",
      "ssyab",
      "ssyabs",
      "ssyas",
      "ssyass",
      "ssyang",
      "ssyaj",
      "ssyac",
      "ssyak",
      "ssyat",
      "ssyap",
      "ssyah",
      "ssyae",
      "ssyaeg",
      "ssyaegg",
      "ssyaegs",
      "ssyaen",
      "ssyaenj",
      "ssyaenh",
      "ssyaed",
      "ssyael",
      "ssyaelg",
      "ssyaelm",
      "ssyaelb",
      "ssyaels",
      "ssyaelt",
      "ssyaelp",
      "ssyaelh",
      "ssyaem",
      "ssyaeb",
      "ssyaebs",
      "ssyaes",
      "ssyaess",
      "ssyaeng",
      "ssyaej",
      "ssyaec",
      "ssyaek",
      "ssyaet",
      "ssyaep",
      "ssyaeh",
      "sseo",
      "sseog",
      "sseogg",
      "sseogs",
      "sseon",
      "sseonj",
      "sseonh",
      "sseod",
      "sseol",
      "sseolg",
      "sseolm",
      "sseolb",
      "sseols",
      "sseolt",
      "sseolp",
      "sseolh",
      "sseom",
      "sseob",
      "sseobs",
      "sseos",
      "sseoss",
      "sseong",
      "sseoj",
      "sseoc",
      "sseok",
      "sseot",
      "sseop",
      "sseoh",
      "sse",
      "sseg",
      "ssegg",
      "ssegs",
      "ssen",
      "ssenj",
      "ssenh",
      "ssed",
      "ssel",
      "sselg",
      "sselm",
      "sselb",
      "ssels",
      "sselt",
      "sselp",
      "sselh",
      "ssem",
      "sseb",
      "ssebs",
      "sses",
      "ssess",
      "sseng",
      "ssej",
      "ssec",
      "ssek",
      "sset",
      "ssep",
      "sseh",
      "ssyeo",
      "ssyeog",
      "ssyeogg",
      "ssyeogs",
      "ssyeon",
      "ssyeonj",
      "ssyeonh",
      "ssyeod",
      "ssyeol",
      "ssyeolg",
      "ssyeolm",
      "ssyeolb",
      "ssyeols",
      "ssyeolt",
      "ssyeolp",
      "ssyeolh",
      "ssyeom",
      "ssyeob",
      "ssyeobs",
      "ssyeos",
      "ssyeoss",
      "ssyeong",
      "ssyeoj",
      "ssyeoc",
      "ssyeok",
      "ssyeot",
      "ssyeop",
      "ssyeoh",
      "ssye",
      "ssyeg",
      "ssyegg",
      "ssyegs",
      "ssyen",
      "ssyenj",
      "ssyenh",
      "ssyed",
      "ssyel",
      "ssyelg",
      "ssyelm",
      "ssyelb",
      "ssyels",
      "ssyelt",
      "ssyelp",
      "ssyelh",
      "ssyem",
      "ssyeb",
      "ssyebs",
      "ssyes",
      "ssyess",
      "ssyeng",
      "ssyej",
      "ssyec",
      "ssyek",
      "ssyet",
      "ssyep",
      "ssyeh",
      "sso",
      "ssog",
      "ssogg",
      "ssogs",
      "sson",
      "ssonj",
      "ssonh",
      "ssod",
      "ssol",
      "ssolg",
      "ssolm",
      "ssolb",
      "ssols",
      "ssolt",
      "ssolp",
      "ssolh",
      "ssom",
      "ssob",
      "ssobs",
      "ssos",
      "ssoss",
      "ssong",
      "ssoj",
      "ssoc",
      "ssok",
      "ssot",
      "ssop",
      "ssoh",
      "sswa",
      "sswag",
      "sswagg",
      "sswags",
      "sswan",
      "sswanj",
      "sswanh",
      "sswad",
      "sswal",
      "sswalg",
      "sswalm",
      "sswalb"
    ];
  }
});

// node_modules/unidecode/data/xc4.js
var require_xc4 = __commonJS({
  "node_modules/unidecode/data/xc4.js"(exports2, module2) {
    module2.exports = [
      "sswals",
      "sswalt",
      "sswalp",
      "sswalh",
      "sswam",
      "sswab",
      "sswabs",
      "sswas",
      "sswass",
      "sswang",
      "sswaj",
      "sswac",
      "sswak",
      "sswat",
      "sswap",
      "sswah",
      "sswae",
      "sswaeg",
      "sswaegg",
      "sswaegs",
      "sswaen",
      "sswaenj",
      "sswaenh",
      "sswaed",
      "sswael",
      "sswaelg",
      "sswaelm",
      "sswaelb",
      "sswaels",
      "sswaelt",
      "sswaelp",
      "sswaelh",
      "sswaem",
      "sswaeb",
      "sswaebs",
      "sswaes",
      "sswaess",
      "sswaeng",
      "sswaej",
      "sswaec",
      "sswaek",
      "sswaet",
      "sswaep",
      "sswaeh",
      "ssoe",
      "ssoeg",
      "ssoegg",
      "ssoegs",
      "ssoen",
      "ssoenj",
      "ssoenh",
      "ssoed",
      "ssoel",
      "ssoelg",
      "ssoelm",
      "ssoelb",
      "ssoels",
      "ssoelt",
      "ssoelp",
      "ssoelh",
      "ssoem",
      "ssoeb",
      "ssoebs",
      "ssoes",
      "ssoess",
      "ssoeng",
      "ssoej",
      "ssoec",
      "ssoek",
      "ssoet",
      "ssoep",
      "ssoeh",
      "ssyo",
      "ssyog",
      "ssyogg",
      "ssyogs",
      "ssyon",
      "ssyonj",
      "ssyonh",
      "ssyod",
      "ssyol",
      "ssyolg",
      "ssyolm",
      "ssyolb",
      "ssyols",
      "ssyolt",
      "ssyolp",
      "ssyolh",
      "ssyom",
      "ssyob",
      "ssyobs",
      "ssyos",
      "ssyoss",
      "ssyong",
      "ssyoj",
      "ssyoc",
      "ssyok",
      "ssyot",
      "ssyop",
      "ssyoh",
      "ssu",
      "ssug",
      "ssugg",
      "ssugs",
      "ssun",
      "ssunj",
      "ssunh",
      "ssud",
      "ssul",
      "ssulg",
      "ssulm",
      "ssulb",
      "ssuls",
      "ssult",
      "ssulp",
      "ssulh",
      "ssum",
      "ssub",
      "ssubs",
      "ssus",
      "ssuss",
      "ssung",
      "ssuj",
      "ssuc",
      "ssuk",
      "ssut",
      "ssup",
      "ssuh",
      "ssweo",
      "ssweog",
      "ssweogg",
      "ssweogs",
      "ssweon",
      "ssweonj",
      "ssweonh",
      "ssweod",
      "ssweol",
      "ssweolg",
      "ssweolm",
      "ssweolb",
      "ssweols",
      "ssweolt",
      "ssweolp",
      "ssweolh",
      "ssweom",
      "ssweob",
      "ssweobs",
      "ssweos",
      "ssweoss",
      "ssweong",
      "ssweoj",
      "ssweoc",
      "ssweok",
      "ssweot",
      "ssweop",
      "ssweoh",
      "sswe",
      "ssweg",
      "sswegg",
      "sswegs",
      "sswen",
      "sswenj",
      "sswenh",
      "sswed",
      "sswel",
      "sswelg",
      "sswelm",
      "sswelb",
      "sswels",
      "sswelt",
      "sswelp",
      "sswelh",
      "sswem",
      "ssweb",
      "sswebs",
      "sswes",
      "sswess",
      "ssweng",
      "sswej",
      "sswec",
      "sswek",
      "sswet",
      "sswep",
      "ssweh",
      "sswi",
      "sswig",
      "sswigg",
      "sswigs",
      "sswin",
      "sswinj",
      "sswinh",
      "sswid",
      "sswil",
      "sswilg",
      "sswilm",
      "sswilb",
      "sswils",
      "sswilt",
      "sswilp",
      "sswilh",
      "sswim",
      "sswib",
      "sswibs",
      "sswis",
      "sswiss",
      "sswing",
      "sswij",
      "sswic",
      "sswik",
      "sswit",
      "sswip",
      "sswih",
      "ssyu",
      "ssyug",
      "ssyugg",
      "ssyugs",
      "ssyun",
      "ssyunj",
      "ssyunh",
      "ssyud",
      "ssyul",
      "ssyulg",
      "ssyulm",
      "ssyulb",
      "ssyuls",
      "ssyult",
      "ssyulp",
      "ssyulh",
      "ssyum",
      "ssyub",
      "ssyubs",
      "ssyus",
      "ssyuss",
      "ssyung",
      "ssyuj",
      "ssyuc",
      "ssyuk",
      "ssyut",
      "ssyup",
      "ssyuh",
      "sseu",
      "sseug",
      "sseugg",
      "sseugs",
      "sseun",
      "sseunj",
      "sseunh",
      "sseud",
      "sseul",
      "sseulg",
      "sseulm",
      "sseulb",
      "sseuls",
      "sseult",
      "sseulp",
      "sseulh"
    ];
  }
});

// node_modules/unidecode/data/xc5.js
var require_xc5 = __commonJS({
  "node_modules/unidecode/data/xc5.js"(exports2, module2) {
    module2.exports = [
      "sseum",
      "sseub",
      "sseubs",
      "sseus",
      "sseuss",
      "sseung",
      "sseuj",
      "sseuc",
      "sseuk",
      "sseut",
      "sseup",
      "sseuh",
      "ssyi",
      "ssyig",
      "ssyigg",
      "ssyigs",
      "ssyin",
      "ssyinj",
      "ssyinh",
      "ssyid",
      "ssyil",
      "ssyilg",
      "ssyilm",
      "ssyilb",
      "ssyils",
      "ssyilt",
      "ssyilp",
      "ssyilh",
      "ssyim",
      "ssyib",
      "ssyibs",
      "ssyis",
      "ssyiss",
      "ssying",
      "ssyij",
      "ssyic",
      "ssyik",
      "ssyit",
      "ssyip",
      "ssyih",
      "ssi",
      "ssig",
      "ssigg",
      "ssigs",
      "ssin",
      "ssinj",
      "ssinh",
      "ssid",
      "ssil",
      "ssilg",
      "ssilm",
      "ssilb",
      "ssils",
      "ssilt",
      "ssilp",
      "ssilh",
      "ssim",
      "ssib",
      "ssibs",
      "ssis",
      "ssiss",
      "ssing",
      "ssij",
      "ssic",
      "ssik",
      "ssit",
      "ssip",
      "ssih",
      "a",
      "ag",
      "agg",
      "ags",
      "an",
      "anj",
      "anh",
      "ad",
      "al",
      "alg",
      "alm",
      "alb",
      "als",
      "alt",
      "alp",
      "alh",
      "am",
      "ab",
      "abs",
      "as",
      "ass",
      "ang",
      "aj",
      "ac",
      "ak",
      "at",
      "ap",
      "ah",
      "ae",
      "aeg",
      "aegg",
      "aegs",
      "aen",
      "aenj",
      "aenh",
      "aed",
      "ael",
      "aelg",
      "aelm",
      "aelb",
      "aels",
      "aelt",
      "aelp",
      "aelh",
      "aem",
      "aeb",
      "aebs",
      "aes",
      "aess",
      "aeng",
      "aej",
      "aec",
      "aek",
      "aet",
      "aep",
      "aeh",
      "ya",
      "yag",
      "yagg",
      "yags",
      "yan",
      "yanj",
      "yanh",
      "yad",
      "yal",
      "yalg",
      "yalm",
      "yalb",
      "yals",
      "yalt",
      "yalp",
      "yalh",
      "yam",
      "yab",
      "yabs",
      "yas",
      "yass",
      "yang",
      "yaj",
      "yac",
      "yak",
      "yat",
      "yap",
      "yah",
      "yae",
      "yaeg",
      "yaegg",
      "yaegs",
      "yaen",
      "yaenj",
      "yaenh",
      "yaed",
      "yael",
      "yaelg",
      "yaelm",
      "yaelb",
      "yaels",
      "yaelt",
      "yaelp",
      "yaelh",
      "yaem",
      "yaeb",
      "yaebs",
      "yaes",
      "yaess",
      "yaeng",
      "yaej",
      "yaec",
      "yaek",
      "yaet",
      "yaep",
      "yaeh",
      "eo",
      "eog",
      "eogg",
      "eogs",
      "eon",
      "eonj",
      "eonh",
      "eod",
      "eol",
      "eolg",
      "eolm",
      "eolb",
      "eols",
      "eolt",
      "eolp",
      "eolh",
      "eom",
      "eob",
      "eobs",
      "eos",
      "eoss",
      "eong",
      "eoj",
      "eoc",
      "eok",
      "eot",
      "eop",
      "eoh",
      "e",
      "eg",
      "egg",
      "egs",
      "en",
      "enj",
      "enh",
      "ed",
      "el",
      "elg",
      "elm",
      "elb",
      "els",
      "elt",
      "elp",
      "elh",
      "em",
      "eb",
      "ebs",
      "es",
      "ess",
      "eng",
      "ej",
      "ec",
      "ek",
      "et",
      "ep",
      "eh",
      "yeo",
      "yeog",
      "yeogg",
      "yeogs",
      "yeon",
      "yeonj",
      "yeonh",
      "yeod",
      "yeol",
      "yeolg",
      "yeolm",
      "yeolb",
      "yeols",
      "yeolt",
      "yeolp",
      "yeolh",
      "yeom",
      "yeob",
      "yeobs",
      "yeos"
    ];
  }
});

// node_modules/unidecode/data/xc6.js
var require_xc6 = __commonJS({
  "node_modules/unidecode/data/xc6.js"(exports2, module2) {
    module2.exports = [
      "yeoss",
      "yeong",
      "yeoj",
      "yeoc",
      "yeok",
      "yeot",
      "yeop",
      "yeoh",
      "ye",
      "yeg",
      "yegg",
      "yegs",
      "yen",
      "yenj",
      "yenh",
      "yed",
      "yel",
      "yelg",
      "yelm",
      "yelb",
      "yels",
      "yelt",
      "yelp",
      "yelh",
      "yem",
      "yeb",
      "yebs",
      "yes",
      "yess",
      "yeng",
      "yej",
      "yec",
      "yek",
      "yet",
      "yep",
      "yeh",
      "o",
      "og",
      "ogg",
      "ogs",
      "on",
      "onj",
      "onh",
      "od",
      "ol",
      "olg",
      "olm",
      "olb",
      "ols",
      "olt",
      "olp",
      "olh",
      "om",
      "ob",
      "obs",
      "os",
      "oss",
      "ong",
      "oj",
      "oc",
      "ok",
      "ot",
      "op",
      "oh",
      "wa",
      "wag",
      "wagg",
      "wags",
      "wan",
      "wanj",
      "wanh",
      "wad",
      "wal",
      "walg",
      "walm",
      "walb",
      "wals",
      "walt",
      "walp",
      "walh",
      "wam",
      "wab",
      "wabs",
      "was",
      "wass",
      "wang",
      "waj",
      "wac",
      "wak",
      "wat",
      "wap",
      "wah",
      "wae",
      "waeg",
      "waegg",
      "waegs",
      "waen",
      "waenj",
      "waenh",
      "waed",
      "wael",
      "waelg",
      "waelm",
      "waelb",
      "waels",
      "waelt",
      "waelp",
      "waelh",
      "waem",
      "waeb",
      "waebs",
      "waes",
      "waess",
      "waeng",
      "waej",
      "waec",
      "waek",
      "waet",
      "waep",
      "waeh",
      "oe",
      "oeg",
      "oegg",
      "oegs",
      "oen",
      "oenj",
      "oenh",
      "oed",
      "oel",
      "oelg",
      "oelm",
      "oelb",
      "oels",
      "oelt",
      "oelp",
      "oelh",
      "oem",
      "oeb",
      "oebs",
      "oes",
      "oess",
      "oeng",
      "oej",
      "oec",
      "oek",
      "oet",
      "oep",
      "oeh",
      "yo",
      "yog",
      "yogg",
      "yogs",
      "yon",
      "yonj",
      "yonh",
      "yod",
      "yol",
      "yolg",
      "yolm",
      "yolb",
      "yols",
      "yolt",
      "yolp",
      "yolh",
      "yom",
      "yob",
      "yobs",
      "yos",
      "yoss",
      "yong",
      "yoj",
      "yoc",
      "yok",
      "yot",
      "yop",
      "yoh",
      "u",
      "ug",
      "ugg",
      "ugs",
      "un",
      "unj",
      "unh",
      "ud",
      "ul",
      "ulg",
      "ulm",
      "ulb",
      "uls",
      "ult",
      "ulp",
      "ulh",
      "um",
      "ub",
      "ubs",
      "us",
      "uss",
      "ung",
      "uj",
      "uc",
      "uk",
      "ut",
      "up",
      "uh",
      "weo",
      "weog",
      "weogg",
      "weogs",
      "weon",
      "weonj",
      "weonh",
      "weod",
      "weol",
      "weolg",
      "weolm",
      "weolb",
      "weols",
      "weolt",
      "weolp",
      "weolh",
      "weom",
      "weob",
      "weobs",
      "weos",
      "weoss",
      "weong",
      "weoj",
      "weoc",
      "weok",
      "weot",
      "weop",
      "weoh",
      "we",
      "weg",
      "wegg",
      "wegs",
      "wen",
      "wenj",
      "wenh",
      "wed",
      "wel",
      "welg",
      "welm",
      "welb",
      "wels",
      "welt",
      "welp",
      "welh",
      "wem",
      "web",
      "webs",
      "wes",
      "wess",
      "weng",
      "wej",
      "wec"
    ];
  }
});

// node_modules/unidecode/data/xc7.js
var require_xc7 = __commonJS({
  "node_modules/unidecode/data/xc7.js"(exports2, module2) {
    module2.exports = [
      "wek",
      "wet",
      "wep",
      "weh",
      "wi",
      "wig",
      "wigg",
      "wigs",
      "win",
      "winj",
      "winh",
      "wid",
      "wil",
      "wilg",
      "wilm",
      "wilb",
      "wils",
      "wilt",
      "wilp",
      "wilh",
      "wim",
      "wib",
      "wibs",
      "wis",
      "wiss",
      "wing",
      "wij",
      "wic",
      "wik",
      "wit",
      "wip",
      "wih",
      "yu",
      "yug",
      "yugg",
      "yugs",
      "yun",
      "yunj",
      "yunh",
      "yud",
      "yul",
      "yulg",
      "yulm",
      "yulb",
      "yuls",
      "yult",
      "yulp",
      "yulh",
      "yum",
      "yub",
      "yubs",
      "yus",
      "yuss",
      "yung",
      "yuj",
      "yuc",
      "yuk",
      "yut",
      "yup",
      "yuh",
      "eu",
      "eug",
      "eugg",
      "eugs",
      "eun",
      "eunj",
      "eunh",
      "eud",
      "eul",
      "eulg",
      "eulm",
      "eulb",
      "euls",
      "eult",
      "eulp",
      "eulh",
      "eum",
      "eub",
      "eubs",
      "eus",
      "euss",
      "eung",
      "euj",
      "euc",
      "euk",
      "eut",
      "eup",
      "euh",
      "yi",
      "yig",
      "yigg",
      "yigs",
      "yin",
      "yinj",
      "yinh",
      "yid",
      "yil",
      "yilg",
      "yilm",
      "yilb",
      "yils",
      "yilt",
      "yilp",
      "yilh",
      "yim",
      "yib",
      "yibs",
      "yis",
      "yiss",
      "ying",
      "yij",
      "yic",
      "yik",
      "yit",
      "yip",
      "yih",
      "i",
      "ig",
      "igg",
      "igs",
      "in",
      "inj",
      "inh",
      "id",
      "il",
      "ilg",
      "ilm",
      "ilb",
      "ils",
      "ilt",
      "ilp",
      "ilh",
      "im",
      "ib",
      "ibs",
      "is",
      "iss",
      "ing",
      "ij",
      "ic",
      "ik",
      "it",
      "ip",
      "ih",
      "ja",
      "jag",
      "jagg",
      "jags",
      "jan",
      "janj",
      "janh",
      "jad",
      "jal",
      "jalg",
      "jalm",
      "jalb",
      "jals",
      "jalt",
      "jalp",
      "jalh",
      "jam",
      "jab",
      "jabs",
      "jas",
      "jass",
      "jang",
      "jaj",
      "jac",
      "jak",
      "jat",
      "jap",
      "jah",
      "jae",
      "jaeg",
      "jaegg",
      "jaegs",
      "jaen",
      "jaenj",
      "jaenh",
      "jaed",
      "jael",
      "jaelg",
      "jaelm",
      "jaelb",
      "jaels",
      "jaelt",
      "jaelp",
      "jaelh",
      "jaem",
      "jaeb",
      "jaebs",
      "jaes",
      "jaess",
      "jaeng",
      "jaej",
      "jaec",
      "jaek",
      "jaet",
      "jaep",
      "jaeh",
      "jya",
      "jyag",
      "jyagg",
      "jyags",
      "jyan",
      "jyanj",
      "jyanh",
      "jyad",
      "jyal",
      "jyalg",
      "jyalm",
      "jyalb",
      "jyals",
      "jyalt",
      "jyalp",
      "jyalh",
      "jyam",
      "jyab",
      "jyabs",
      "jyas",
      "jyass",
      "jyang",
      "jyaj",
      "jyac",
      "jyak",
      "jyat",
      "jyap",
      "jyah",
      "jyae",
      "jyaeg",
      "jyaegg",
      "jyaegs",
      "jyaen",
      "jyaenj",
      "jyaenh",
      "jyaed",
      "jyael",
      "jyaelg",
      "jyaelm",
      "jyaelb",
      "jyaels",
      "jyaelt",
      "jyaelp",
      "jyaelh",
      "jyaem",
      "jyaeb",
      "jyaebs",
      "jyaes",
      "jyaess",
      "jyaeng",
      "jyaej",
      "jyaec",
      "jyaek",
      "jyaet",
      "jyaep",
      "jyaeh"
    ];
  }
});

// node_modules/unidecode/data/xc8.js
var require_xc8 = __commonJS({
  "node_modules/unidecode/data/xc8.js"(exports2, module2) {
    module2.exports = [
      "jeo",
      "jeog",
      "jeogg",
      "jeogs",
      "jeon",
      "jeonj",
      "jeonh",
      "jeod",
      "jeol",
      "jeolg",
      "jeolm",
      "jeolb",
      "jeols",
      "jeolt",
      "jeolp",
      "jeolh",
      "jeom",
      "jeob",
      "jeobs",
      "jeos",
      "jeoss",
      "jeong",
      "jeoj",
      "jeoc",
      "jeok",
      "jeot",
      "jeop",
      "jeoh",
      "je",
      "jeg",
      "jegg",
      "jegs",
      "jen",
      "jenj",
      "jenh",
      "jed",
      "jel",
      "jelg",
      "jelm",
      "jelb",
      "jels",
      "jelt",
      "jelp",
      "jelh",
      "jem",
      "jeb",
      "jebs",
      "jes",
      "jess",
      "jeng",
      "jej",
      "jec",
      "jek",
      "jet",
      "jep",
      "jeh",
      "jyeo",
      "jyeog",
      "jyeogg",
      "jyeogs",
      "jyeon",
      "jyeonj",
      "jyeonh",
      "jyeod",
      "jyeol",
      "jyeolg",
      "jyeolm",
      "jyeolb",
      "jyeols",
      "jyeolt",
      "jyeolp",
      "jyeolh",
      "jyeom",
      "jyeob",
      "jyeobs",
      "jyeos",
      "jyeoss",
      "jyeong",
      "jyeoj",
      "jyeoc",
      "jyeok",
      "jyeot",
      "jyeop",
      "jyeoh",
      "jye",
      "jyeg",
      "jyegg",
      "jyegs",
      "jyen",
      "jyenj",
      "jyenh",
      "jyed",
      "jyel",
      "jyelg",
      "jyelm",
      "jyelb",
      "jyels",
      "jyelt",
      "jyelp",
      "jyelh",
      "jyem",
      "jyeb",
      "jyebs",
      "jyes",
      "jyess",
      "jyeng",
      "jyej",
      "jyec",
      "jyek",
      "jyet",
      "jyep",
      "jyeh",
      "jo",
      "jog",
      "jogg",
      "jogs",
      "jon",
      "jonj",
      "jonh",
      "jod",
      "jol",
      "jolg",
      "jolm",
      "jolb",
      "jols",
      "jolt",
      "jolp",
      "jolh",
      "jom",
      "job",
      "jobs",
      "jos",
      "joss",
      "jong",
      "joj",
      "joc",
      "jok",
      "jot",
      "jop",
      "joh",
      "jwa",
      "jwag",
      "jwagg",
      "jwags",
      "jwan",
      "jwanj",
      "jwanh",
      "jwad",
      "jwal",
      "jwalg",
      "jwalm",
      "jwalb",
      "jwals",
      "jwalt",
      "jwalp",
      "jwalh",
      "jwam",
      "jwab",
      "jwabs",
      "jwas",
      "jwass",
      "jwang",
      "jwaj",
      "jwac",
      "jwak",
      "jwat",
      "jwap",
      "jwah",
      "jwae",
      "jwaeg",
      "jwaegg",
      "jwaegs",
      "jwaen",
      "jwaenj",
      "jwaenh",
      "jwaed",
      "jwael",
      "jwaelg",
      "jwaelm",
      "jwaelb",
      "jwaels",
      "jwaelt",
      "jwaelp",
      "jwaelh",
      "jwaem",
      "jwaeb",
      "jwaebs",
      "jwaes",
      "jwaess",
      "jwaeng",
      "jwaej",
      "jwaec",
      "jwaek",
      "jwaet",
      "jwaep",
      "jwaeh",
      "joe",
      "joeg",
      "joegg",
      "joegs",
      "joen",
      "joenj",
      "joenh",
      "joed",
      "joel",
      "joelg",
      "joelm",
      "joelb",
      "joels",
      "joelt",
      "joelp",
      "joelh",
      "joem",
      "joeb",
      "joebs",
      "joes",
      "joess",
      "joeng",
      "joej",
      "joec",
      "joek",
      "joet",
      "joep",
      "joeh",
      "jyo",
      "jyog",
      "jyogg",
      "jyogs",
      "jyon",
      "jyonj",
      "jyonh",
      "jyod",
      "jyol",
      "jyolg",
      "jyolm",
      "jyolb",
      "jyols",
      "jyolt",
      "jyolp",
      "jyolh",
      "jyom",
      "jyob",
      "jyobs",
      "jyos",
      "jyoss",
      "jyong",
      "jyoj",
      "jyoc",
      "jyok",
      "jyot",
      "jyop",
      "jyoh",
      "ju",
      "jug",
      "jugg",
      "jugs"
    ];
  }
});

// node_modules/unidecode/data/xc9.js
var require_xc9 = __commonJS({
  "node_modules/unidecode/data/xc9.js"(exports2, module2) {
    module2.exports = [
      "jun",
      "junj",
      "junh",
      "jud",
      "jul",
      "julg",
      "julm",
      "julb",
      "juls",
      "jult",
      "julp",
      "julh",
      "jum",
      "jub",
      "jubs",
      "jus",
      "juss",
      "jung",
      "juj",
      "juc",
      "juk",
      "jut",
      "jup",
      "juh",
      "jweo",
      "jweog",
      "jweogg",
      "jweogs",
      "jweon",
      "jweonj",
      "jweonh",
      "jweod",
      "jweol",
      "jweolg",
      "jweolm",
      "jweolb",
      "jweols",
      "jweolt",
      "jweolp",
      "jweolh",
      "jweom",
      "jweob",
      "jweobs",
      "jweos",
      "jweoss",
      "jweong",
      "jweoj",
      "jweoc",
      "jweok",
      "jweot",
      "jweop",
      "jweoh",
      "jwe",
      "jweg",
      "jwegg",
      "jwegs",
      "jwen",
      "jwenj",
      "jwenh",
      "jwed",
      "jwel",
      "jwelg",
      "jwelm",
      "jwelb",
      "jwels",
      "jwelt",
      "jwelp",
      "jwelh",
      "jwem",
      "jweb",
      "jwebs",
      "jwes",
      "jwess",
      "jweng",
      "jwej",
      "jwec",
      "jwek",
      "jwet",
      "jwep",
      "jweh",
      "jwi",
      "jwig",
      "jwigg",
      "jwigs",
      "jwin",
      "jwinj",
      "jwinh",
      "jwid",
      "jwil",
      "jwilg",
      "jwilm",
      "jwilb",
      "jwils",
      "jwilt",
      "jwilp",
      "jwilh",
      "jwim",
      "jwib",
      "jwibs",
      "jwis",
      "jwiss",
      "jwing",
      "jwij",
      "jwic",
      "jwik",
      "jwit",
      "jwip",
      "jwih",
      "jyu",
      "jyug",
      "jyugg",
      "jyugs",
      "jyun",
      "jyunj",
      "jyunh",
      "jyud",
      "jyul",
      "jyulg",
      "jyulm",
      "jyulb",
      "jyuls",
      "jyult",
      "jyulp",
      "jyulh",
      "jyum",
      "jyub",
      "jyubs",
      "jyus",
      "jyuss",
      "jyung",
      "jyuj",
      "jyuc",
      "jyuk",
      "jyut",
      "jyup",
      "jyuh",
      "jeu",
      "jeug",
      "jeugg",
      "jeugs",
      "jeun",
      "jeunj",
      "jeunh",
      "jeud",
      "jeul",
      "jeulg",
      "jeulm",
      "jeulb",
      "jeuls",
      "jeult",
      "jeulp",
      "jeulh",
      "jeum",
      "jeub",
      "jeubs",
      "jeus",
      "jeuss",
      "jeung",
      "jeuj",
      "jeuc",
      "jeuk",
      "jeut",
      "jeup",
      "jeuh",
      "jyi",
      "jyig",
      "jyigg",
      "jyigs",
      "jyin",
      "jyinj",
      "jyinh",
      "jyid",
      "jyil",
      "jyilg",
      "jyilm",
      "jyilb",
      "jyils",
      "jyilt",
      "jyilp",
      "jyilh",
      "jyim",
      "jyib",
      "jyibs",
      "jyis",
      "jyiss",
      "jying",
      "jyij",
      "jyic",
      "jyik",
      "jyit",
      "jyip",
      "jyih",
      "ji",
      "jig",
      "jigg",
      "jigs",
      "jin",
      "jinj",
      "jinh",
      "jid",
      "jil",
      "jilg",
      "jilm",
      "jilb",
      "jils",
      "jilt",
      "jilp",
      "jilh",
      "jim",
      "jib",
      "jibs",
      "jis",
      "jiss",
      "jing",
      "jij",
      "jic",
      "jik",
      "jit",
      "jip",
      "jih",
      "jja",
      "jjag",
      "jjagg",
      "jjags",
      "jjan",
      "jjanj",
      "jjanh",
      "jjad",
      "jjal",
      "jjalg",
      "jjalm",
      "jjalb",
      "jjals",
      "jjalt",
      "jjalp",
      "jjalh",
      "jjam",
      "jjab",
      "jjabs",
      "jjas",
      "jjass",
      "jjang",
      "jjaj",
      "jjac",
      "jjak",
      "jjat",
      "jjap",
      "jjah",
      "jjae",
      "jjaeg",
      "jjaegg",
      "jjaegs",
      "jjaen",
      "jjaenj",
      "jjaenh",
      "jjaed"
    ];
  }
});

// node_modules/unidecode/data/xca.js
var require_xca = __commonJS({
  "node_modules/unidecode/data/xca.js"(exports2, module2) {
    module2.exports = [
      "jjael",
      "jjaelg",
      "jjaelm",
      "jjaelb",
      "jjaels",
      "jjaelt",
      "jjaelp",
      "jjaelh",
      "jjaem",
      "jjaeb",
      "jjaebs",
      "jjaes",
      "jjaess",
      "jjaeng",
      "jjaej",
      "jjaec",
      "jjaek",
      "jjaet",
      "jjaep",
      "jjaeh",
      "jjya",
      "jjyag",
      "jjyagg",
      "jjyags",
      "jjyan",
      "jjyanj",
      "jjyanh",
      "jjyad",
      "jjyal",
      "jjyalg",
      "jjyalm",
      "jjyalb",
      "jjyals",
      "jjyalt",
      "jjyalp",
      "jjyalh",
      "jjyam",
      "jjyab",
      "jjyabs",
      "jjyas",
      "jjyass",
      "jjyang",
      "jjyaj",
      "jjyac",
      "jjyak",
      "jjyat",
      "jjyap",
      "jjyah",
      "jjyae",
      "jjyaeg",
      "jjyaegg",
      "jjyaegs",
      "jjyaen",
      "jjyaenj",
      "jjyaenh",
      "jjyaed",
      "jjyael",
      "jjyaelg",
      "jjyaelm",
      "jjyaelb",
      "jjyaels",
      "jjyaelt",
      "jjyaelp",
      "jjyaelh",
      "jjyaem",
      "jjyaeb",
      "jjyaebs",
      "jjyaes",
      "jjyaess",
      "jjyaeng",
      "jjyaej",
      "jjyaec",
      "jjyaek",
      "jjyaet",
      "jjyaep",
      "jjyaeh",
      "jjeo",
      "jjeog",
      "jjeogg",
      "jjeogs",
      "jjeon",
      "jjeonj",
      "jjeonh",
      "jjeod",
      "jjeol",
      "jjeolg",
      "jjeolm",
      "jjeolb",
      "jjeols",
      "jjeolt",
      "jjeolp",
      "jjeolh",
      "jjeom",
      "jjeob",
      "jjeobs",
      "jjeos",
      "jjeoss",
      "jjeong",
      "jjeoj",
      "jjeoc",
      "jjeok",
      "jjeot",
      "jjeop",
      "jjeoh",
      "jje",
      "jjeg",
      "jjegg",
      "jjegs",
      "jjen",
      "jjenj",
      "jjenh",
      "jjed",
      "jjel",
      "jjelg",
      "jjelm",
      "jjelb",
      "jjels",
      "jjelt",
      "jjelp",
      "jjelh",
      "jjem",
      "jjeb",
      "jjebs",
      "jjes",
      "jjess",
      "jjeng",
      "jjej",
      "jjec",
      "jjek",
      "jjet",
      "jjep",
      "jjeh",
      "jjyeo",
      "jjyeog",
      "jjyeogg",
      "jjyeogs",
      "jjyeon",
      "jjyeonj",
      "jjyeonh",
      "jjyeod",
      "jjyeol",
      "jjyeolg",
      "jjyeolm",
      "jjyeolb",
      "jjyeols",
      "jjyeolt",
      "jjyeolp",
      "jjyeolh",
      "jjyeom",
      "jjyeob",
      "jjyeobs",
      "jjyeos",
      "jjyeoss",
      "jjyeong",
      "jjyeoj",
      "jjyeoc",
      "jjyeok",
      "jjyeot",
      "jjyeop",
      "jjyeoh",
      "jjye",
      "jjyeg",
      "jjyegg",
      "jjyegs",
      "jjyen",
      "jjyenj",
      "jjyenh",
      "jjyed",
      "jjyel",
      "jjyelg",
      "jjyelm",
      "jjyelb",
      "jjyels",
      "jjyelt",
      "jjyelp",
      "jjyelh",
      "jjyem",
      "jjyeb",
      "jjyebs",
      "jjyes",
      "jjyess",
      "jjyeng",
      "jjyej",
      "jjyec",
      "jjyek",
      "jjyet",
      "jjyep",
      "jjyeh",
      "jjo",
      "jjog",
      "jjogg",
      "jjogs",
      "jjon",
      "jjonj",
      "jjonh",
      "jjod",
      "jjol",
      "jjolg",
      "jjolm",
      "jjolb",
      "jjols",
      "jjolt",
      "jjolp",
      "jjolh",
      "jjom",
      "jjob",
      "jjobs",
      "jjos",
      "jjoss",
      "jjong",
      "jjoj",
      "jjoc",
      "jjok",
      "jjot",
      "jjop",
      "jjoh",
      "jjwa",
      "jjwag",
      "jjwagg",
      "jjwags",
      "jjwan",
      "jjwanj",
      "jjwanh",
      "jjwad",
      "jjwal",
      "jjwalg",
      "jjwalm",
      "jjwalb",
      "jjwals",
      "jjwalt",
      "jjwalp",
      "jjwalh",
      "jjwam",
      "jjwab",
      "jjwabs",
      "jjwas",
      "jjwass",
      "jjwang",
      "jjwaj",
      "jjwac",
      "jjwak",
      "jjwat",
      "jjwap",
      "jjwah",
      "jjwae",
      "jjwaeg",
      "jjwaegg",
      "jjwaegs",
      "jjwaen",
      "jjwaenj",
      "jjwaenh",
      "jjwaed",
      "jjwael",
      "jjwaelg",
      "jjwaelm",
      "jjwaelb"
    ];
  }
});

// node_modules/unidecode/data/xcb.js
var require_xcb = __commonJS({
  "node_modules/unidecode/data/xcb.js"(exports2, module2) {
    module2.exports = [
      "jjwaels",
      "jjwaelt",
      "jjwaelp",
      "jjwaelh",
      "jjwaem",
      "jjwaeb",
      "jjwaebs",
      "jjwaes",
      "jjwaess",
      "jjwaeng",
      "jjwaej",
      "jjwaec",
      "jjwaek",
      "jjwaet",
      "jjwaep",
      "jjwaeh",
      "jjoe",
      "jjoeg",
      "jjoegg",
      "jjoegs",
      "jjoen",
      "jjoenj",
      "jjoenh",
      "jjoed",
      "jjoel",
      "jjoelg",
      "jjoelm",
      "jjoelb",
      "jjoels",
      "jjoelt",
      "jjoelp",
      "jjoelh",
      "jjoem",
      "jjoeb",
      "jjoebs",
      "jjoes",
      "jjoess",
      "jjoeng",
      "jjoej",
      "jjoec",
      "jjoek",
      "jjoet",
      "jjoep",
      "jjoeh",
      "jjyo",
      "jjyog",
      "jjyogg",
      "jjyogs",
      "jjyon",
      "jjyonj",
      "jjyonh",
      "jjyod",
      "jjyol",
      "jjyolg",
      "jjyolm",
      "jjyolb",
      "jjyols",
      "jjyolt",
      "jjyolp",
      "jjyolh",
      "jjyom",
      "jjyob",
      "jjyobs",
      "jjyos",
      "jjyoss",
      "jjyong",
      "jjyoj",
      "jjyoc",
      "jjyok",
      "jjyot",
      "jjyop",
      "jjyoh",
      "jju",
      "jjug",
      "jjugg",
      "jjugs",
      "jjun",
      "jjunj",
      "jjunh",
      "jjud",
      "jjul",
      "jjulg",
      "jjulm",
      "jjulb",
      "jjuls",
      "jjult",
      "jjulp",
      "jjulh",
      "jjum",
      "jjub",
      "jjubs",
      "jjus",
      "jjuss",
      "jjung",
      "jjuj",
      "jjuc",
      "jjuk",
      "jjut",
      "jjup",
      "jjuh",
      "jjweo",
      "jjweog",
      "jjweogg",
      "jjweogs",
      "jjweon",
      "jjweonj",
      "jjweonh",
      "jjweod",
      "jjweol",
      "jjweolg",
      "jjweolm",
      "jjweolb",
      "jjweols",
      "jjweolt",
      "jjweolp",
      "jjweolh",
      "jjweom",
      "jjweob",
      "jjweobs",
      "jjweos",
      "jjweoss",
      "jjweong",
      "jjweoj",
      "jjweoc",
      "jjweok",
      "jjweot",
      "jjweop",
      "jjweoh",
      "jjwe",
      "jjweg",
      "jjwegg",
      "jjwegs",
      "jjwen",
      "jjwenj",
      "jjwenh",
      "jjwed",
      "jjwel",
      "jjwelg",
      "jjwelm",
      "jjwelb",
      "jjwels",
      "jjwelt",
      "jjwelp",
      "jjwelh",
      "jjwem",
      "jjweb",
      "jjwebs",
      "jjwes",
      "jjwess",
      "jjweng",
      "jjwej",
      "jjwec",
      "jjwek",
      "jjwet",
      "jjwep",
      "jjweh",
      "jjwi",
      "jjwig",
      "jjwigg",
      "jjwigs",
      "jjwin",
      "jjwinj",
      "jjwinh",
      "jjwid",
      "jjwil",
      "jjwilg",
      "jjwilm",
      "jjwilb",
      "jjwils",
      "jjwilt",
      "jjwilp",
      "jjwilh",
      "jjwim",
      "jjwib",
      "jjwibs",
      "jjwis",
      "jjwiss",
      "jjwing",
      "jjwij",
      "jjwic",
      "jjwik",
      "jjwit",
      "jjwip",
      "jjwih",
      "jjyu",
      "jjyug",
      "jjyugg",
      "jjyugs",
      "jjyun",
      "jjyunj",
      "jjyunh",
      "jjyud",
      "jjyul",
      "jjyulg",
      "jjyulm",
      "jjyulb",
      "jjyuls",
      "jjyult",
      "jjyulp",
      "jjyulh",
      "jjyum",
      "jjyub",
      "jjyubs",
      "jjyus",
      "jjyuss",
      "jjyung",
      "jjyuj",
      "jjyuc",
      "jjyuk",
      "jjyut",
      "jjyup",
      "jjyuh",
      "jjeu",
      "jjeug",
      "jjeugg",
      "jjeugs",
      "jjeun",
      "jjeunj",
      "jjeunh",
      "jjeud",
      "jjeul",
      "jjeulg",
      "jjeulm",
      "jjeulb",
      "jjeuls",
      "jjeult",
      "jjeulp",
      "jjeulh",
      "jjeum",
      "jjeub",
      "jjeubs",
      "jjeus",
      "jjeuss",
      "jjeung",
      "jjeuj",
      "jjeuc",
      "jjeuk",
      "jjeut",
      "jjeup",
      "jjeuh",
      "jjyi",
      "jjyig",
      "jjyigg",
      "jjyigs",
      "jjyin",
      "jjyinj",
      "jjyinh",
      "jjyid",
      "jjyil",
      "jjyilg",
      "jjyilm",
      "jjyilb",
      "jjyils",
      "jjyilt",
      "jjyilp",
      "jjyilh"
    ];
  }
});

// node_modules/unidecode/data/xcc.js
var require_xcc = __commonJS({
  "node_modules/unidecode/data/xcc.js"(exports2, module2) {
    module2.exports = [
      "jjyim",
      "jjyib",
      "jjyibs",
      "jjyis",
      "jjyiss",
      "jjying",
      "jjyij",
      "jjyic",
      "jjyik",
      "jjyit",
      "jjyip",
      "jjyih",
      "jji",
      "jjig",
      "jjigg",
      "jjigs",
      "jjin",
      "jjinj",
      "jjinh",
      "jjid",
      "jjil",
      "jjilg",
      "jjilm",
      "jjilb",
      "jjils",
      "jjilt",
      "jjilp",
      "jjilh",
      "jjim",
      "jjib",
      "jjibs",
      "jjis",
      "jjiss",
      "jjing",
      "jjij",
      "jjic",
      "jjik",
      "jjit",
      "jjip",
      "jjih",
      "ca",
      "cag",
      "cagg",
      "cags",
      "can",
      "canj",
      "canh",
      "cad",
      "cal",
      "calg",
      "calm",
      "calb",
      "cals",
      "calt",
      "calp",
      "calh",
      "cam",
      "cab",
      "cabs",
      "cas",
      "cass",
      "cang",
      "caj",
      "cac",
      "cak",
      "cat",
      "cap",
      "cah",
      "cae",
      "caeg",
      "caegg",
      "caegs",
      "caen",
      "caenj",
      "caenh",
      "caed",
      "cael",
      "caelg",
      "caelm",
      "caelb",
      "caels",
      "caelt",
      "caelp",
      "caelh",
      "caem",
      "caeb",
      "caebs",
      "caes",
      "caess",
      "caeng",
      "caej",
      "caec",
      "caek",
      "caet",
      "caep",
      "caeh",
      "cya",
      "cyag",
      "cyagg",
      "cyags",
      "cyan",
      "cyanj",
      "cyanh",
      "cyad",
      "cyal",
      "cyalg",
      "cyalm",
      "cyalb",
      "cyals",
      "cyalt",
      "cyalp",
      "cyalh",
      "cyam",
      "cyab",
      "cyabs",
      "cyas",
      "cyass",
      "cyang",
      "cyaj",
      "cyac",
      "cyak",
      "cyat",
      "cyap",
      "cyah",
      "cyae",
      "cyaeg",
      "cyaegg",
      "cyaegs",
      "cyaen",
      "cyaenj",
      "cyaenh",
      "cyaed",
      "cyael",
      "cyaelg",
      "cyaelm",
      "cyaelb",
      "cyaels",
      "cyaelt",
      "cyaelp",
      "cyaelh",
      "cyaem",
      "cyaeb",
      "cyaebs",
      "cyaes",
      "cyaess",
      "cyaeng",
      "cyaej",
      "cyaec",
      "cyaek",
      "cyaet",
      "cyaep",
      "cyaeh",
      "ceo",
      "ceog",
      "ceogg",
      "ceogs",
      "ceon",
      "ceonj",
      "ceonh",
      "ceod",
      "ceol",
      "ceolg",
      "ceolm",
      "ceolb",
      "ceols",
      "ceolt",
      "ceolp",
      "ceolh",
      "ceom",
      "ceob",
      "ceobs",
      "ceos",
      "ceoss",
      "ceong",
      "ceoj",
      "ceoc",
      "ceok",
      "ceot",
      "ceop",
      "ceoh",
      "ce",
      "ceg",
      "cegg",
      "cegs",
      "cen",
      "cenj",
      "cenh",
      "ced",
      "cel",
      "celg",
      "celm",
      "celb",
      "cels",
      "celt",
      "celp",
      "celh",
      "cem",
      "ceb",
      "cebs",
      "ces",
      "cess",
      "ceng",
      "cej",
      "cec",
      "cek",
      "cet",
      "cep",
      "ceh",
      "cyeo",
      "cyeog",
      "cyeogg",
      "cyeogs",
      "cyeon",
      "cyeonj",
      "cyeonh",
      "cyeod",
      "cyeol",
      "cyeolg",
      "cyeolm",
      "cyeolb",
      "cyeols",
      "cyeolt",
      "cyeolp",
      "cyeolh",
      "cyeom",
      "cyeob",
      "cyeobs",
      "cyeos",
      "cyeoss",
      "cyeong",
      "cyeoj",
      "cyeoc",
      "cyeok",
      "cyeot",
      "cyeop",
      "cyeoh",
      "cye",
      "cyeg",
      "cyegg",
      "cyegs",
      "cyen",
      "cyenj",
      "cyenh",
      "cyed",
      "cyel",
      "cyelg",
      "cyelm",
      "cyelb",
      "cyels",
      "cyelt",
      "cyelp",
      "cyelh",
      "cyem",
      "cyeb",
      "cyebs",
      "cyes"
    ];
  }
});

// node_modules/unidecode/data/xcd.js
var require_xcd = __commonJS({
  "node_modules/unidecode/data/xcd.js"(exports2, module2) {
    module2.exports = [
      "cyess",
      "cyeng",
      "cyej",
      "cyec",
      "cyek",
      "cyet",
      "cyep",
      "cyeh",
      "co",
      "cog",
      "cogg",
      "cogs",
      "con",
      "conj",
      "conh",
      "cod",
      "col",
      "colg",
      "colm",
      "colb",
      "cols",
      "colt",
      "colp",
      "colh",
      "com",
      "cob",
      "cobs",
      "cos",
      "coss",
      "cong",
      "coj",
      "coc",
      "cok",
      "cot",
      "cop",
      "coh",
      "cwa",
      "cwag",
      "cwagg",
      "cwags",
      "cwan",
      "cwanj",
      "cwanh",
      "cwad",
      "cwal",
      "cwalg",
      "cwalm",
      "cwalb",
      "cwals",
      "cwalt",
      "cwalp",
      "cwalh",
      "cwam",
      "cwab",
      "cwabs",
      "cwas",
      "cwass",
      "cwang",
      "cwaj",
      "cwac",
      "cwak",
      "cwat",
      "cwap",
      "cwah",
      "cwae",
      "cwaeg",
      "cwaegg",
      "cwaegs",
      "cwaen",
      "cwaenj",
      "cwaenh",
      "cwaed",
      "cwael",
      "cwaelg",
      "cwaelm",
      "cwaelb",
      "cwaels",
      "cwaelt",
      "cwaelp",
      "cwaelh",
      "cwaem",
      "cwaeb",
      "cwaebs",
      "cwaes",
      "cwaess",
      "cwaeng",
      "cwaej",
      "cwaec",
      "cwaek",
      "cwaet",
      "cwaep",
      "cwaeh",
      "coe",
      "coeg",
      "coegg",
      "coegs",
      "coen",
      "coenj",
      "coenh",
      "coed",
      "coel",
      "coelg",
      "coelm",
      "coelb",
      "coels",
      "coelt",
      "coelp",
      "coelh",
      "coem",
      "coeb",
      "coebs",
      "coes",
      "coess",
      "coeng",
      "coej",
      "coec",
      "coek",
      "coet",
      "coep",
      "coeh",
      "cyo",
      "cyog",
      "cyogg",
      "cyogs",
      "cyon",
      "cyonj",
      "cyonh",
      "cyod",
      "cyol",
      "cyolg",
      "cyolm",
      "cyolb",
      "cyols",
      "cyolt",
      "cyolp",
      "cyolh",
      "cyom",
      "cyob",
      "cyobs",
      "cyos",
      "cyoss",
      "cyong",
      "cyoj",
      "cyoc",
      "cyok",
      "cyot",
      "cyop",
      "cyoh",
      "cu",
      "cug",
      "cugg",
      "cugs",
      "cun",
      "cunj",
      "cunh",
      "cud",
      "cul",
      "culg",
      "culm",
      "culb",
      "culs",
      "cult",
      "culp",
      "culh",
      "cum",
      "cub",
      "cubs",
      "cus",
      "cuss",
      "cung",
      "cuj",
      "cuc",
      "cuk",
      "cut",
      "cup",
      "cuh",
      "cweo",
      "cweog",
      "cweogg",
      "cweogs",
      "cweon",
      "cweonj",
      "cweonh",
      "cweod",
      "cweol",
      "cweolg",
      "cweolm",
      "cweolb",
      "cweols",
      "cweolt",
      "cweolp",
      "cweolh",
      "cweom",
      "cweob",
      "cweobs",
      "cweos",
      "cweoss",
      "cweong",
      "cweoj",
      "cweoc",
      "cweok",
      "cweot",
      "cweop",
      "cweoh",
      "cwe",
      "cweg",
      "cwegg",
      "cwegs",
      "cwen",
      "cwenj",
      "cwenh",
      "cwed",
      "cwel",
      "cwelg",
      "cwelm",
      "cwelb",
      "cwels",
      "cwelt",
      "cwelp",
      "cwelh",
      "cwem",
      "cweb",
      "cwebs",
      "cwes",
      "cwess",
      "cweng",
      "cwej",
      "cwec",
      "cwek",
      "cwet",
      "cwep",
      "cweh",
      "cwi",
      "cwig",
      "cwigg",
      "cwigs",
      "cwin",
      "cwinj",
      "cwinh",
      "cwid",
      "cwil",
      "cwilg",
      "cwilm",
      "cwilb",
      "cwils",
      "cwilt",
      "cwilp",
      "cwilh",
      "cwim",
      "cwib",
      "cwibs",
      "cwis",
      "cwiss",
      "cwing",
      "cwij",
      "cwic"
    ];
  }
});

// node_modules/unidecode/data/xce.js
var require_xce = __commonJS({
  "node_modules/unidecode/data/xce.js"(exports2, module2) {
    module2.exports = [
      "cwik",
      "cwit",
      "cwip",
      "cwih",
      "cyu",
      "cyug",
      "cyugg",
      "cyugs",
      "cyun",
      "cyunj",
      "cyunh",
      "cyud",
      "cyul",
      "cyulg",
      "cyulm",
      "cyulb",
      "cyuls",
      "cyult",
      "cyulp",
      "cyulh",
      "cyum",
      "cyub",
      "cyubs",
      "cyus",
      "cyuss",
      "cyung",
      "cyuj",
      "cyuc",
      "cyuk",
      "cyut",
      "cyup",
      "cyuh",
      "ceu",
      "ceug",
      "ceugg",
      "ceugs",
      "ceun",
      "ceunj",
      "ceunh",
      "ceud",
      "ceul",
      "ceulg",
      "ceulm",
      "ceulb",
      "ceuls",
      "ceult",
      "ceulp",
      "ceulh",
      "ceum",
      "ceub",
      "ceubs",
      "ceus",
      "ceuss",
      "ceung",
      "ceuj",
      "ceuc",
      "ceuk",
      "ceut",
      "ceup",
      "ceuh",
      "cyi",
      "cyig",
      "cyigg",
      "cyigs",
      "cyin",
      "cyinj",
      "cyinh",
      "cyid",
      "cyil",
      "cyilg",
      "cyilm",
      "cyilb",
      "cyils",
      "cyilt",
      "cyilp",
      "cyilh",
      "cyim",
      "cyib",
      "cyibs",
      "cyis",
      "cyiss",
      "cying",
      "cyij",
      "cyic",
      "cyik",
      "cyit",
      "cyip",
      "cyih",
      "ci",
      "cig",
      "cigg",
      "cigs",
      "cin",
      "cinj",
      "cinh",
      "cid",
      "cil",
      "cilg",
      "cilm",
      "cilb",
      "cils",
      "cilt",
      "cilp",
      "cilh",
      "cim",
      "cib",
      "cibs",
      "cis",
      "ciss",
      "cing",
      "cij",
      "cic",
      "cik",
      "cit",
      "cip",
      "cih",
      "ka",
      "kag",
      "kagg",
      "kags",
      "kan",
      "kanj",
      "kanh",
      "kad",
      "kal",
      "kalg",
      "kalm",
      "kalb",
      "kals",
      "kalt",
      "kalp",
      "kalh",
      "kam",
      "kab",
      "kabs",
      "kas",
      "kass",
      "kang",
      "kaj",
      "kac",
      "kak",
      "kat",
      "kap",
      "kah",
      "kae",
      "kaeg",
      "kaegg",
      "kaegs",
      "kaen",
      "kaenj",
      "kaenh",
      "kaed",
      "kael",
      "kaelg",
      "kaelm",
      "kaelb",
      "kaels",
      "kaelt",
      "kaelp",
      "kaelh",
      "kaem",
      "kaeb",
      "kaebs",
      "kaes",
      "kaess",
      "kaeng",
      "kaej",
      "kaec",
      "kaek",
      "kaet",
      "kaep",
      "kaeh",
      "kya",
      "kyag",
      "kyagg",
      "kyags",
      "kyan",
      "kyanj",
      "kyanh",
      "kyad",
      "kyal",
      "kyalg",
      "kyalm",
      "kyalb",
      "kyals",
      "kyalt",
      "kyalp",
      "kyalh",
      "kyam",
      "kyab",
      "kyabs",
      "kyas",
      "kyass",
      "kyang",
      "kyaj",
      "kyac",
      "kyak",
      "kyat",
      "kyap",
      "kyah",
      "kyae",
      "kyaeg",
      "kyaegg",
      "kyaegs",
      "kyaen",
      "kyaenj",
      "kyaenh",
      "kyaed",
      "kyael",
      "kyaelg",
      "kyaelm",
      "kyaelb",
      "kyaels",
      "kyaelt",
      "kyaelp",
      "kyaelh",
      "kyaem",
      "kyaeb",
      "kyaebs",
      "kyaes",
      "kyaess",
      "kyaeng",
      "kyaej",
      "kyaec",
      "kyaek",
      "kyaet",
      "kyaep",
      "kyaeh",
      "keo",
      "keog",
      "keogg",
      "keogs",
      "keon",
      "keonj",
      "keonh",
      "keod",
      "keol",
      "keolg",
      "keolm",
      "keolb",
      "keols",
      "keolt",
      "keolp",
      "keolh",
      "keom",
      "keob",
      "keobs",
      "keos",
      "keoss",
      "keong",
      "keoj",
      "keoc",
      "keok",
      "keot",
      "keop",
      "keoh"
    ];
  }
});

// node_modules/unidecode/data/xcf.js
var require_xcf = __commonJS({
  "node_modules/unidecode/data/xcf.js"(exports2, module2) {
    module2.exports = [
      "ke",
      "keg",
      "kegg",
      "kegs",
      "ken",
      "kenj",
      "kenh",
      "ked",
      "kel",
      "kelg",
      "kelm",
      "kelb",
      "kels",
      "kelt",
      "kelp",
      "kelh",
      "kem",
      "keb",
      "kebs",
      "kes",
      "kess",
      "keng",
      "kej",
      "kec",
      "kek",
      "ket",
      "kep",
      "keh",
      "kyeo",
      "kyeog",
      "kyeogg",
      "kyeogs",
      "kyeon",
      "kyeonj",
      "kyeonh",
      "kyeod",
      "kyeol",
      "kyeolg",
      "kyeolm",
      "kyeolb",
      "kyeols",
      "kyeolt",
      "kyeolp",
      "kyeolh",
      "kyeom",
      "kyeob",
      "kyeobs",
      "kyeos",
      "kyeoss",
      "kyeong",
      "kyeoj",
      "kyeoc",
      "kyeok",
      "kyeot",
      "kyeop",
      "kyeoh",
      "kye",
      "kyeg",
      "kyegg",
      "kyegs",
      "kyen",
      "kyenj",
      "kyenh",
      "kyed",
      "kyel",
      "kyelg",
      "kyelm",
      "kyelb",
      "kyels",
      "kyelt",
      "kyelp",
      "kyelh",
      "kyem",
      "kyeb",
      "kyebs",
      "kyes",
      "kyess",
      "kyeng",
      "kyej",
      "kyec",
      "kyek",
      "kyet",
      "kyep",
      "kyeh",
      "ko",
      "kog",
      "kogg",
      "kogs",
      "kon",
      "konj",
      "konh",
      "kod",
      "kol",
      "kolg",
      "kolm",
      "kolb",
      "kols",
      "kolt",
      "kolp",
      "kolh",
      "kom",
      "kob",
      "kobs",
      "kos",
      "koss",
      "kong",
      "koj",
      "koc",
      "kok",
      "kot",
      "kop",
      "koh",
      "kwa",
      "kwag",
      "kwagg",
      "kwags",
      "kwan",
      "kwanj",
      "kwanh",
      "kwad",
      "kwal",
      "kwalg",
      "kwalm",
      "kwalb",
      "kwals",
      "kwalt",
      "kwalp",
      "kwalh",
      "kwam",
      "kwab",
      "kwabs",
      "kwas",
      "kwass",
      "kwang",
      "kwaj",
      "kwac",
      "kwak",
      "kwat",
      "kwap",
      "kwah",
      "kwae",
      "kwaeg",
      "kwaegg",
      "kwaegs",
      "kwaen",
      "kwaenj",
      "kwaenh",
      "kwaed",
      "kwael",
      "kwaelg",
      "kwaelm",
      "kwaelb",
      "kwaels",
      "kwaelt",
      "kwaelp",
      "kwaelh",
      "kwaem",
      "kwaeb",
      "kwaebs",
      "kwaes",
      "kwaess",
      "kwaeng",
      "kwaej",
      "kwaec",
      "kwaek",
      "kwaet",
      "kwaep",
      "kwaeh",
      "koe",
      "koeg",
      "koegg",
      "koegs",
      "koen",
      "koenj",
      "koenh",
      "koed",
      "koel",
      "koelg",
      "koelm",
      "koelb",
      "koels",
      "koelt",
      "koelp",
      "koelh",
      "koem",
      "koeb",
      "koebs",
      "koes",
      "koess",
      "koeng",
      "koej",
      "koec",
      "koek",
      "koet",
      "koep",
      "koeh",
      "kyo",
      "kyog",
      "kyogg",
      "kyogs",
      "kyon",
      "kyonj",
      "kyonh",
      "kyod",
      "kyol",
      "kyolg",
      "kyolm",
      "kyolb",
      "kyols",
      "kyolt",
      "kyolp",
      "kyolh",
      "kyom",
      "kyob",
      "kyobs",
      "kyos",
      "kyoss",
      "kyong",
      "kyoj",
      "kyoc",
      "kyok",
      "kyot",
      "kyop",
      "kyoh",
      "ku",
      "kug",
      "kugg",
      "kugs",
      "kun",
      "kunj",
      "kunh",
      "kud",
      "kul",
      "kulg",
      "kulm",
      "kulb",
      "kuls",
      "kult",
      "kulp",
      "kulh",
      "kum",
      "kub",
      "kubs",
      "kus",
      "kuss",
      "kung",
      "kuj",
      "kuc",
      "kuk",
      "kut",
      "kup",
      "kuh",
      "kweo",
      "kweog",
      "kweogg",
      "kweogs"
    ];
  }
});

// node_modules/unidecode/data/xd0.js
var require_xd0 = __commonJS({
  "node_modules/unidecode/data/xd0.js"(exports2, module2) {
    module2.exports = [
      "kweon",
      "kweonj",
      "kweonh",
      "kweod",
      "kweol",
      "kweolg",
      "kweolm",
      "kweolb",
      "kweols",
      "kweolt",
      "kweolp",
      "kweolh",
      "kweom",
      "kweob",
      "kweobs",
      "kweos",
      "kweoss",
      "kweong",
      "kweoj",
      "kweoc",
      "kweok",
      "kweot",
      "kweop",
      "kweoh",
      "kwe",
      "kweg",
      "kwegg",
      "kwegs",
      "kwen",
      "kwenj",
      "kwenh",
      "kwed",
      "kwel",
      "kwelg",
      "kwelm",
      "kwelb",
      "kwels",
      "kwelt",
      "kwelp",
      "kwelh",
      "kwem",
      "kweb",
      "kwebs",
      "kwes",
      "kwess",
      "kweng",
      "kwej",
      "kwec",
      "kwek",
      "kwet",
      "kwep",
      "kweh",
      "kwi",
      "kwig",
      "kwigg",
      "kwigs",
      "kwin",
      "kwinj",
      "kwinh",
      "kwid",
      "kwil",
      "kwilg",
      "kwilm",
      "kwilb",
      "kwils",
      "kwilt",
      "kwilp",
      "kwilh",
      "kwim",
      "kwib",
      "kwibs",
      "kwis",
      "kwiss",
      "kwing",
      "kwij",
      "kwic",
      "kwik",
      "kwit",
      "kwip",
      "kwih",
      "kyu",
      "kyug",
      "kyugg",
      "kyugs",
      "kyun",
      "kyunj",
      "kyunh",
      "kyud",
      "kyul",
      "kyulg",
      "kyulm",
      "kyulb",
      "kyuls",
      "kyult",
      "kyulp",
      "kyulh",
      "kyum",
      "kyub",
      "kyubs",
      "kyus",
      "kyuss",
      "kyung",
      "kyuj",
      "kyuc",
      "kyuk",
      "kyut",
      "kyup",
      "kyuh",
      "keu",
      "keug",
      "keugg",
      "keugs",
      "keun",
      "keunj",
      "keunh",
      "keud",
      "keul",
      "keulg",
      "keulm",
      "keulb",
      "keuls",
      "keult",
      "keulp",
      "keulh",
      "keum",
      "keub",
      "keubs",
      "keus",
      "keuss",
      "keung",
      "keuj",
      "keuc",
      "keuk",
      "keut",
      "keup",
      "keuh",
      "kyi",
      "kyig",
      "kyigg",
      "kyigs",
      "kyin",
      "kyinj",
      "kyinh",
      "kyid",
      "kyil",
      "kyilg",
      "kyilm",
      "kyilb",
      "kyils",
      "kyilt",
      "kyilp",
      "kyilh",
      "kyim",
      "kyib",
      "kyibs",
      "kyis",
      "kyiss",
      "kying",
      "kyij",
      "kyic",
      "kyik",
      "kyit",
      "kyip",
      "kyih",
      "ki",
      "kig",
      "kigg",
      "kigs",
      "kin",
      "kinj",
      "kinh",
      "kid",
      "kil",
      "kilg",
      "kilm",
      "kilb",
      "kils",
      "kilt",
      "kilp",
      "kilh",
      "kim",
      "kib",
      "kibs",
      "kis",
      "kiss",
      "king",
      "kij",
      "kic",
      "kik",
      "kit",
      "kip",
      "kih",
      "ta",
      "tag",
      "tagg",
      "tags",
      "tan",
      "tanj",
      "tanh",
      "tad",
      "tal",
      "talg",
      "talm",
      "talb",
      "tals",
      "talt",
      "talp",
      "talh",
      "tam",
      "tab",
      "tabs",
      "tas",
      "tass",
      "tang",
      "taj",
      "tac",
      "tak",
      "tat",
      "tap",
      "tah",
      "tae",
      "taeg",
      "taegg",
      "taegs",
      "taen",
      "taenj",
      "taenh",
      "taed",
      "tael",
      "taelg",
      "taelm",
      "taelb",
      "taels",
      "taelt",
      "taelp",
      "taelh",
      "taem",
      "taeb",
      "taebs",
      "taes",
      "taess",
      "taeng",
      "taej",
      "taec",
      "taek",
      "taet",
      "taep",
      "taeh",
      "tya",
      "tyag",
      "tyagg",
      "tyags",
      "tyan",
      "tyanj",
      "tyanh",
      "tyad"
    ];
  }
});

// node_modules/unidecode/data/xd1.js
var require_xd1 = __commonJS({
  "node_modules/unidecode/data/xd1.js"(exports2, module2) {
    module2.exports = [
      "tyal",
      "tyalg",
      "tyalm",
      "tyalb",
      "tyals",
      "tyalt",
      "tyalp",
      "tyalh",
      "tyam",
      "tyab",
      "tyabs",
      "tyas",
      "tyass",
      "tyang",
      "tyaj",
      "tyac",
      "tyak",
      "tyat",
      "tyap",
      "tyah",
      "tyae",
      "tyaeg",
      "tyaegg",
      "tyaegs",
      "tyaen",
      "tyaenj",
      "tyaenh",
      "tyaed",
      "tyael",
      "tyaelg",
      "tyaelm",
      "tyaelb",
      "tyaels",
      "tyaelt",
      "tyaelp",
      "tyaelh",
      "tyaem",
      "tyaeb",
      "tyaebs",
      "tyaes",
      "tyaess",
      "tyaeng",
      "tyaej",
      "tyaec",
      "tyaek",
      "tyaet",
      "tyaep",
      "tyaeh",
      "teo",
      "teog",
      "teogg",
      "teogs",
      "teon",
      "teonj",
      "teonh",
      "teod",
      "teol",
      "teolg",
      "teolm",
      "teolb",
      "teols",
      "teolt",
      "teolp",
      "teolh",
      "teom",
      "teob",
      "teobs",
      "teos",
      "teoss",
      "teong",
      "teoj",
      "teoc",
      "teok",
      "teot",
      "teop",
      "teoh",
      "te",
      "teg",
      "tegg",
      "tegs",
      "ten",
      "tenj",
      "tenh",
      "ted",
      "tel",
      "telg",
      "telm",
      "telb",
      "tels",
      "telt",
      "telp",
      "telh",
      "tem",
      "teb",
      "tebs",
      "tes",
      "tess",
      "teng",
      "tej",
      "tec",
      "tek",
      "tet",
      "tep",
      "teh",
      "tyeo",
      "tyeog",
      "tyeogg",
      "tyeogs",
      "tyeon",
      "tyeonj",
      "tyeonh",
      "tyeod",
      "tyeol",
      "tyeolg",
      "tyeolm",
      "tyeolb",
      "tyeols",
      "tyeolt",
      "tyeolp",
      "tyeolh",
      "tyeom",
      "tyeob",
      "tyeobs",
      "tyeos",
      "tyeoss",
      "tyeong",
      "tyeoj",
      "tyeoc",
      "tyeok",
      "tyeot",
      "tyeop",
      "tyeoh",
      "tye",
      "tyeg",
      "tyegg",
      "tyegs",
      "tyen",
      "tyenj",
      "tyenh",
      "tyed",
      "tyel",
      "tyelg",
      "tyelm",
      "tyelb",
      "tyels",
      "tyelt",
      "tyelp",
      "tyelh",
      "tyem",
      "tyeb",
      "tyebs",
      "tyes",
      "tyess",
      "tyeng",
      "tyej",
      "tyec",
      "tyek",
      "tyet",
      "tyep",
      "tyeh",
      "to",
      "tog",
      "togg",
      "togs",
      "ton",
      "tonj",
      "tonh",
      "tod",
      "tol",
      "tolg",
      "tolm",
      "tolb",
      "tols",
      "tolt",
      "tolp",
      "tolh",
      "tom",
      "tob",
      "tobs",
      "tos",
      "toss",
      "tong",
      "toj",
      "toc",
      "tok",
      "tot",
      "top",
      "toh",
      "twa",
      "twag",
      "twagg",
      "twags",
      "twan",
      "twanj",
      "twanh",
      "twad",
      "twal",
      "twalg",
      "twalm",
      "twalb",
      "twals",
      "twalt",
      "twalp",
      "twalh",
      "twam",
      "twab",
      "twabs",
      "twas",
      "twass",
      "twang",
      "twaj",
      "twac",
      "twak",
      "twat",
      "twap",
      "twah",
      "twae",
      "twaeg",
      "twaegg",
      "twaegs",
      "twaen",
      "twaenj",
      "twaenh",
      "twaed",
      "twael",
      "twaelg",
      "twaelm",
      "twaelb",
      "twaels",
      "twaelt",
      "twaelp",
      "twaelh",
      "twaem",
      "twaeb",
      "twaebs",
      "twaes",
      "twaess",
      "twaeng",
      "twaej",
      "twaec",
      "twaek",
      "twaet",
      "twaep",
      "twaeh",
      "toe",
      "toeg",
      "toegg",
      "toegs",
      "toen",
      "toenj",
      "toenh",
      "toed",
      "toel",
      "toelg",
      "toelm",
      "toelb"
    ];
  }
});

// node_modules/unidecode/data/xd2.js
var require_xd2 = __commonJS({
  "node_modules/unidecode/data/xd2.js"(exports2, module2) {
    module2.exports = [
      "toels",
      "toelt",
      "toelp",
      "toelh",
      "toem",
      "toeb",
      "toebs",
      "toes",
      "toess",
      "toeng",
      "toej",
      "toec",
      "toek",
      "toet",
      "toep",
      "toeh",
      "tyo",
      "tyog",
      "tyogg",
      "tyogs",
      "tyon",
      "tyonj",
      "tyonh",
      "tyod",
      "tyol",
      "tyolg",
      "tyolm",
      "tyolb",
      "tyols",
      "tyolt",
      "tyolp",
      "tyolh",
      "tyom",
      "tyob",
      "tyobs",
      "tyos",
      "tyoss",
      "tyong",
      "tyoj",
      "tyoc",
      "tyok",
      "tyot",
      "tyop",
      "tyoh",
      "tu",
      "tug",
      "tugg",
      "tugs",
      "tun",
      "tunj",
      "tunh",
      "tud",
      "tul",
      "tulg",
      "tulm",
      "tulb",
      "tuls",
      "tult",
      "tulp",
      "tulh",
      "tum",
      "tub",
      "tubs",
      "tus",
      "tuss",
      "tung",
      "tuj",
      "tuc",
      "tuk",
      "tut",
      "tup",
      "tuh",
      "tweo",
      "tweog",
      "tweogg",
      "tweogs",
      "tweon",
      "tweonj",
      "tweonh",
      "tweod",
      "tweol",
      "tweolg",
      "tweolm",
      "tweolb",
      "tweols",
      "tweolt",
      "tweolp",
      "tweolh",
      "tweom",
      "tweob",
      "tweobs",
      "tweos",
      "tweoss",
      "tweong",
      "tweoj",
      "tweoc",
      "tweok",
      "tweot",
      "tweop",
      "tweoh",
      "twe",
      "tweg",
      "twegg",
      "twegs",
      "twen",
      "twenj",
      "twenh",
      "twed",
      "twel",
      "twelg",
      "twelm",
      "twelb",
      "twels",
      "twelt",
      "twelp",
      "twelh",
      "twem",
      "tweb",
      "twebs",
      "twes",
      "twess",
      "tweng",
      "twej",
      "twec",
      "twek",
      "twet",
      "twep",
      "tweh",
      "twi",
      "twig",
      "twigg",
      "twigs",
      "twin",
      "twinj",
      "twinh",
      "twid",
      "twil",
      "twilg",
      "twilm",
      "twilb",
      "twils",
      "twilt",
      "twilp",
      "twilh",
      "twim",
      "twib",
      "twibs",
      "twis",
      "twiss",
      "twing",
      "twij",
      "twic",
      "twik",
      "twit",
      "twip",
      "twih",
      "tyu",
      "tyug",
      "tyugg",
      "tyugs",
      "tyun",
      "tyunj",
      "tyunh",
      "tyud",
      "tyul",
      "tyulg",
      "tyulm",
      "tyulb",
      "tyuls",
      "tyult",
      "tyulp",
      "tyulh",
      "tyum",
      "tyub",
      "tyubs",
      "tyus",
      "tyuss",
      "tyung",
      "tyuj",
      "tyuc",
      "tyuk",
      "tyut",
      "tyup",
      "tyuh",
      "teu",
      "teug",
      "teugg",
      "teugs",
      "teun",
      "teunj",
      "teunh",
      "teud",
      "teul",
      "teulg",
      "teulm",
      "teulb",
      "teuls",
      "teult",
      "teulp",
      "teulh",
      "teum",
      "teub",
      "teubs",
      "teus",
      "teuss",
      "teung",
      "teuj",
      "teuc",
      "teuk",
      "teut",
      "teup",
      "teuh",
      "tyi",
      "tyig",
      "tyigg",
      "tyigs",
      "tyin",
      "tyinj",
      "tyinh",
      "tyid",
      "tyil",
      "tyilg",
      "tyilm",
      "tyilb",
      "tyils",
      "tyilt",
      "tyilp",
      "tyilh",
      "tyim",
      "tyib",
      "tyibs",
      "tyis",
      "tyiss",
      "tying",
      "tyij",
      "tyic",
      "tyik",
      "tyit",
      "tyip",
      "tyih",
      "ti",
      "tig",
      "tigg",
      "tigs",
      "tin",
      "tinj",
      "tinh",
      "tid",
      "til",
      "tilg",
      "tilm",
      "tilb",
      "tils",
      "tilt",
      "tilp",
      "tilh"
    ];
  }
});

// node_modules/unidecode/data/xd3.js
var require_xd3 = __commonJS({
  "node_modules/unidecode/data/xd3.js"(exports2, module2) {
    module2.exports = [
      "tim",
      "tib",
      "tibs",
      "tis",
      "tiss",
      "ting",
      "tij",
      "tic",
      "tik",
      "tit",
      "tip",
      "tih",
      "pa",
      "pag",
      "pagg",
      "pags",
      "pan",
      "panj",
      "panh",
      "pad",
      "pal",
      "palg",
      "palm",
      "palb",
      "pals",
      "palt",
      "palp",
      "palh",
      "pam",
      "pab",
      "pabs",
      "pas",
      "pass",
      "pang",
      "paj",
      "pac",
      "pak",
      "pat",
      "pap",
      "pah",
      "pae",
      "paeg",
      "paegg",
      "paegs",
      "paen",
      "paenj",
      "paenh",
      "paed",
      "pael",
      "paelg",
      "paelm",
      "paelb",
      "paels",
      "paelt",
      "paelp",
      "paelh",
      "paem",
      "paeb",
      "paebs",
      "paes",
      "paess",
      "paeng",
      "paej",
      "paec",
      "paek",
      "paet",
      "paep",
      "paeh",
      "pya",
      "pyag",
      "pyagg",
      "pyags",
      "pyan",
      "pyanj",
      "pyanh",
      "pyad",
      "pyal",
      "pyalg",
      "pyalm",
      "pyalb",
      "pyals",
      "pyalt",
      "pyalp",
      "pyalh",
      "pyam",
      "pyab",
      "pyabs",
      "pyas",
      "pyass",
      "pyang",
      "pyaj",
      "pyac",
      "pyak",
      "pyat",
      "pyap",
      "pyah",
      "pyae",
      "pyaeg",
      "pyaegg",
      "pyaegs",
      "pyaen",
      "pyaenj",
      "pyaenh",
      "pyaed",
      "pyael",
      "pyaelg",
      "pyaelm",
      "pyaelb",
      "pyaels",
      "pyaelt",
      "pyaelp",
      "pyaelh",
      "pyaem",
      "pyaeb",
      "pyaebs",
      "pyaes",
      "pyaess",
      "pyaeng",
      "pyaej",
      "pyaec",
      "pyaek",
      "pyaet",
      "pyaep",
      "pyaeh",
      "peo",
      "peog",
      "peogg",
      "peogs",
      "peon",
      "peonj",
      "peonh",
      "peod",
      "peol",
      "peolg",
      "peolm",
      "peolb",
      "peols",
      "peolt",
      "peolp",
      "peolh",
      "peom",
      "peob",
      "peobs",
      "peos",
      "peoss",
      "peong",
      "peoj",
      "peoc",
      "peok",
      "peot",
      "peop",
      "peoh",
      "pe",
      "peg",
      "pegg",
      "pegs",
      "pen",
      "penj",
      "penh",
      "ped",
      "pel",
      "pelg",
      "pelm",
      "pelb",
      "pels",
      "pelt",
      "pelp",
      "pelh",
      "pem",
      "peb",
      "pebs",
      "pes",
      "pess",
      "peng",
      "pej",
      "pec",
      "pek",
      "pet",
      "pep",
      "peh",
      "pyeo",
      "pyeog",
      "pyeogg",
      "pyeogs",
      "pyeon",
      "pyeonj",
      "pyeonh",
      "pyeod",
      "pyeol",
      "pyeolg",
      "pyeolm",
      "pyeolb",
      "pyeols",
      "pyeolt",
      "pyeolp",
      "pyeolh",
      "pyeom",
      "pyeob",
      "pyeobs",
      "pyeos",
      "pyeoss",
      "pyeong",
      "pyeoj",
      "pyeoc",
      "pyeok",
      "pyeot",
      "pyeop",
      "pyeoh",
      "pye",
      "pyeg",
      "pyegg",
      "pyegs",
      "pyen",
      "pyenj",
      "pyenh",
      "pyed",
      "pyel",
      "pyelg",
      "pyelm",
      "pyelb",
      "pyels",
      "pyelt",
      "pyelp",
      "pyelh",
      "pyem",
      "pyeb",
      "pyebs",
      "pyes",
      "pyess",
      "pyeng",
      "pyej",
      "pyec",
      "pyek",
      "pyet",
      "pyep",
      "pyeh",
      "po",
      "pog",
      "pogg",
      "pogs",
      "pon",
      "ponj",
      "ponh",
      "pod",
      "pol",
      "polg",
      "polm",
      "polb",
      "pols",
      "polt",
      "polp",
      "polh",
      "pom",
      "pob",
      "pobs",
      "pos"
    ];
  }
});

// node_modules/unidecode/data/xd4.js
var require_xd4 = __commonJS({
  "node_modules/unidecode/data/xd4.js"(exports2, module2) {
    module2.exports = [
      "poss",
      "pong",
      "poj",
      "poc",
      "pok",
      "pot",
      "pop",
      "poh",
      "pwa",
      "pwag",
      "pwagg",
      "pwags",
      "pwan",
      "pwanj",
      "pwanh",
      "pwad",
      "pwal",
      "pwalg",
      "pwalm",
      "pwalb",
      "pwals",
      "pwalt",
      "pwalp",
      "pwalh",
      "pwam",
      "pwab",
      "pwabs",
      "pwas",
      "pwass",
      "pwang",
      "pwaj",
      "pwac",
      "pwak",
      "pwat",
      "pwap",
      "pwah",
      "pwae",
      "pwaeg",
      "pwaegg",
      "pwaegs",
      "pwaen",
      "pwaenj",
      "pwaenh",
      "pwaed",
      "pwael",
      "pwaelg",
      "pwaelm",
      "pwaelb",
      "pwaels",
      "pwaelt",
      "pwaelp",
      "pwaelh",
      "pwaem",
      "pwaeb",
      "pwaebs",
      "pwaes",
      "pwaess",
      "pwaeng",
      "pwaej",
      "pwaec",
      "pwaek",
      "pwaet",
      "pwaep",
      "pwaeh",
      "poe",
      "poeg",
      "poegg",
      "poegs",
      "poen",
      "poenj",
      "poenh",
      "poed",
      "poel",
      "poelg",
      "poelm",
      "poelb",
      "poels",
      "poelt",
      "poelp",
      "poelh",
      "poem",
      "poeb",
      "poebs",
      "poes",
      "poess",
      "poeng",
      "poej",
      "poec",
      "poek",
      "poet",
      "poep",
      "poeh",
      "pyo",
      "pyog",
      "pyogg",
      "pyogs",
      "pyon",
      "pyonj",
      "pyonh",
      "pyod",
      "pyol",
      "pyolg",
      "pyolm",
      "pyolb",
      "pyols",
      "pyolt",
      "pyolp",
      "pyolh",
      "pyom",
      "pyob",
      "pyobs",
      "pyos",
      "pyoss",
      "pyong",
      "pyoj",
      "pyoc",
      "pyok",
      "pyot",
      "pyop",
      "pyoh",
      "pu",
      "pug",
      "pugg",
      "pugs",
      "pun",
      "punj",
      "punh",
      "pud",
      "pul",
      "pulg",
      "pulm",
      "pulb",
      "puls",
      "pult",
      "pulp",
      "pulh",
      "pum",
      "pub",
      "pubs",
      "pus",
      "puss",
      "pung",
      "puj",
      "puc",
      "puk",
      "put",
      "pup",
      "puh",
      "pweo",
      "pweog",
      "pweogg",
      "pweogs",
      "pweon",
      "pweonj",
      "pweonh",
      "pweod",
      "pweol",
      "pweolg",
      "pweolm",
      "pweolb",
      "pweols",
      "pweolt",
      "pweolp",
      "pweolh",
      "pweom",
      "pweob",
      "pweobs",
      "pweos",
      "pweoss",
      "pweong",
      "pweoj",
      "pweoc",
      "pweok",
      "pweot",
      "pweop",
      "pweoh",
      "pwe",
      "pweg",
      "pwegg",
      "pwegs",
      "pwen",
      "pwenj",
      "pwenh",
      "pwed",
      "pwel",
      "pwelg",
      "pwelm",
      "pwelb",
      "pwels",
      "pwelt",
      "pwelp",
      "pwelh",
      "pwem",
      "pweb",
      "pwebs",
      "pwes",
      "pwess",
      "pweng",
      "pwej",
      "pwec",
      "pwek",
      "pwet",
      "pwep",
      "pweh",
      "pwi",
      "pwig",
      "pwigg",
      "pwigs",
      "pwin",
      "pwinj",
      "pwinh",
      "pwid",
      "pwil",
      "pwilg",
      "pwilm",
      "pwilb",
      "pwils",
      "pwilt",
      "pwilp",
      "pwilh",
      "pwim",
      "pwib",
      "pwibs",
      "pwis",
      "pwiss",
      "pwing",
      "pwij",
      "pwic",
      "pwik",
      "pwit",
      "pwip",
      "pwih",
      "pyu",
      "pyug",
      "pyugg",
      "pyugs",
      "pyun",
      "pyunj",
      "pyunh",
      "pyud",
      "pyul",
      "pyulg",
      "pyulm",
      "pyulb",
      "pyuls",
      "pyult",
      "pyulp",
      "pyulh",
      "pyum",
      "pyub",
      "pyubs",
      "pyus",
      "pyuss",
      "pyung",
      "pyuj",
      "pyuc"
    ];
  }
});

// node_modules/unidecode/data/xd5.js
var require_xd5 = __commonJS({
  "node_modules/unidecode/data/xd5.js"(exports2, module2) {
    module2.exports = [
      "pyuk",
      "pyut",
      "pyup",
      "pyuh",
      "peu",
      "peug",
      "peugg",
      "peugs",
      "peun",
      "peunj",
      "peunh",
      "peud",
      "peul",
      "peulg",
      "peulm",
      "peulb",
      "peuls",
      "peult",
      "peulp",
      "peulh",
      "peum",
      "peub",
      "peubs",
      "peus",
      "peuss",
      "peung",
      "peuj",
      "peuc",
      "peuk",
      "peut",
      "peup",
      "peuh",
      "pyi",
      "pyig",
      "pyigg",
      "pyigs",
      "pyin",
      "pyinj",
      "pyinh",
      "pyid",
      "pyil",
      "pyilg",
      "pyilm",
      "pyilb",
      "pyils",
      "pyilt",
      "pyilp",
      "pyilh",
      "pyim",
      "pyib",
      "pyibs",
      "pyis",
      "pyiss",
      "pying",
      "pyij",
      "pyic",
      "pyik",
      "pyit",
      "pyip",
      "pyih",
      "pi",
      "pig",
      "pigg",
      "pigs",
      "pin",
      "pinj",
      "pinh",
      "pid",
      "pil",
      "pilg",
      "pilm",
      "pilb",
      "pils",
      "pilt",
      "pilp",
      "pilh",
      "pim",
      "pib",
      "pibs",
      "pis",
      "piss",
      "ping",
      "pij",
      "pic",
      "pik",
      "pit",
      "pip",
      "pih",
      "ha",
      "hag",
      "hagg",
      "hags",
      "han",
      "hanj",
      "hanh",
      "had",
      "hal",
      "halg",
      "halm",
      "halb",
      "hals",
      "halt",
      "halp",
      "halh",
      "ham",
      "hab",
      "habs",
      "has",
      "hass",
      "hang",
      "haj",
      "hac",
      "hak",
      "hat",
      "hap",
      "hah",
      "hae",
      "haeg",
      "haegg",
      "haegs",
      "haen",
      "haenj",
      "haenh",
      "haed",
      "hael",
      "haelg",
      "haelm",
      "haelb",
      "haels",
      "haelt",
      "haelp",
      "haelh",
      "haem",
      "haeb",
      "haebs",
      "haes",
      "haess",
      "haeng",
      "haej",
      "haec",
      "haek",
      "haet",
      "haep",
      "haeh",
      "hya",
      "hyag",
      "hyagg",
      "hyags",
      "hyan",
      "hyanj",
      "hyanh",
      "hyad",
      "hyal",
      "hyalg",
      "hyalm",
      "hyalb",
      "hyals",
      "hyalt",
      "hyalp",
      "hyalh",
      "hyam",
      "hyab",
      "hyabs",
      "hyas",
      "hyass",
      "hyang",
      "hyaj",
      "hyac",
      "hyak",
      "hyat",
      "hyap",
      "hyah",
      "hyae",
      "hyaeg",
      "hyaegg",
      "hyaegs",
      "hyaen",
      "hyaenj",
      "hyaenh",
      "hyaed",
      "hyael",
      "hyaelg",
      "hyaelm",
      "hyaelb",
      "hyaels",
      "hyaelt",
      "hyaelp",
      "hyaelh",
      "hyaem",
      "hyaeb",
      "hyaebs",
      "hyaes",
      "hyaess",
      "hyaeng",
      "hyaej",
      "hyaec",
      "hyaek",
      "hyaet",
      "hyaep",
      "hyaeh",
      "heo",
      "heog",
      "heogg",
      "heogs",
      "heon",
      "heonj",
      "heonh",
      "heod",
      "heol",
      "heolg",
      "heolm",
      "heolb",
      "heols",
      "heolt",
      "heolp",
      "heolh",
      "heom",
      "heob",
      "heobs",
      "heos",
      "heoss",
      "heong",
      "heoj",
      "heoc",
      "heok",
      "heot",
      "heop",
      "heoh",
      "he",
      "heg",
      "hegg",
      "hegs",
      "hen",
      "henj",
      "henh",
      "hed",
      "hel",
      "helg",
      "helm",
      "helb",
      "hels",
      "helt",
      "help",
      "helh",
      "hem",
      "heb",
      "hebs",
      "hes",
      "hess",
      "heng",
      "hej",
      "hec",
      "hek",
      "het",
      "hep",
      "heh"
    ];
  }
});

// node_modules/unidecode/data/xd6.js
var require_xd6 = __commonJS({
  "node_modules/unidecode/data/xd6.js"(exports2, module2) {
    module2.exports = [
      "hyeo",
      "hyeog",
      "hyeogg",
      "hyeogs",
      "hyeon",
      "hyeonj",
      "hyeonh",
      "hyeod",
      "hyeol",
      "hyeolg",
      "hyeolm",
      "hyeolb",
      "hyeols",
      "hyeolt",
      "hyeolp",
      "hyeolh",
      "hyeom",
      "hyeob",
      "hyeobs",
      "hyeos",
      "hyeoss",
      "hyeong",
      "hyeoj",
      "hyeoc",
      "hyeok",
      "hyeot",
      "hyeop",
      "hyeoh",
      "hye",
      "hyeg",
      "hyegg",
      "hyegs",
      "hyen",
      "hyenj",
      "hyenh",
      "hyed",
      "hyel",
      "hyelg",
      "hyelm",
      "hyelb",
      "hyels",
      "hyelt",
      "hyelp",
      "hyelh",
      "hyem",
      "hyeb",
      "hyebs",
      "hyes",
      "hyess",
      "hyeng",
      "hyej",
      "hyec",
      "hyek",
      "hyet",
      "hyep",
      "hyeh",
      "ho",
      "hog",
      "hogg",
      "hogs",
      "hon",
      "honj",
      "honh",
      "hod",
      "hol",
      "holg",
      "holm",
      "holb",
      "hols",
      "holt",
      "holp",
      "holh",
      "hom",
      "hob",
      "hobs",
      "hos",
      "hoss",
      "hong",
      "hoj",
      "hoc",
      "hok",
      "hot",
      "hop",
      "hoh",
      "hwa",
      "hwag",
      "hwagg",
      "hwags",
      "hwan",
      "hwanj",
      "hwanh",
      "hwad",
      "hwal",
      "hwalg",
      "hwalm",
      "hwalb",
      "hwals",
      "hwalt",
      "hwalp",
      "hwalh",
      "hwam",
      "hwab",
      "hwabs",
      "hwas",
      "hwass",
      "hwang",
      "hwaj",
      "hwac",
      "hwak",
      "hwat",
      "hwap",
      "hwah",
      "hwae",
      "hwaeg",
      "hwaegg",
      "hwaegs",
      "hwaen",
      "hwaenj",
      "hwaenh",
      "hwaed",
      "hwael",
      "hwaelg",
      "hwaelm",
      "hwaelb",
      "hwaels",
      "hwaelt",
      "hwaelp",
      "hwaelh",
      "hwaem",
      "hwaeb",
      "hwaebs",
      "hwaes",
      "hwaess",
      "hwaeng",
      "hwaej",
      "hwaec",
      "hwaek",
      "hwaet",
      "hwaep",
      "hwaeh",
      "hoe",
      "hoeg",
      "hoegg",
      "hoegs",
      "hoen",
      "hoenj",
      "hoenh",
      "hoed",
      "hoel",
      "hoelg",
      "hoelm",
      "hoelb",
      "hoels",
      "hoelt",
      "hoelp",
      "hoelh",
      "hoem",
      "hoeb",
      "hoebs",
      "hoes",
      "hoess",
      "hoeng",
      "hoej",
      "hoec",
      "hoek",
      "hoet",
      "hoep",
      "hoeh",
      "hyo",
      "hyog",
      "hyogg",
      "hyogs",
      "hyon",
      "hyonj",
      "hyonh",
      "hyod",
      "hyol",
      "hyolg",
      "hyolm",
      "hyolb",
      "hyols",
      "hyolt",
      "hyolp",
      "hyolh",
      "hyom",
      "hyob",
      "hyobs",
      "hyos",
      "hyoss",
      "hyong",
      "hyoj",
      "hyoc",
      "hyok",
      "hyot",
      "hyop",
      "hyoh",
      "hu",
      "hug",
      "hugg",
      "hugs",
      "hun",
      "hunj",
      "hunh",
      "hud",
      "hul",
      "hulg",
      "hulm",
      "hulb",
      "huls",
      "hult",
      "hulp",
      "hulh",
      "hum",
      "hub",
      "hubs",
      "hus",
      "huss",
      "hung",
      "huj",
      "huc",
      "huk",
      "hut",
      "hup",
      "huh",
      "hweo",
      "hweog",
      "hweogg",
      "hweogs",
      "hweon",
      "hweonj",
      "hweonh",
      "hweod",
      "hweol",
      "hweolg",
      "hweolm",
      "hweolb",
      "hweols",
      "hweolt",
      "hweolp",
      "hweolh",
      "hweom",
      "hweob",
      "hweobs",
      "hweos",
      "hweoss",
      "hweong",
      "hweoj",
      "hweoc",
      "hweok",
      "hweot",
      "hweop",
      "hweoh",
      "hwe",
      "hweg",
      "hwegg",
      "hwegs"
    ];
  }
});

// node_modules/unidecode/data/xd7.js
var require_xd7 = __commonJS({
  "node_modules/unidecode/data/xd7.js"(exports2, module2) {
    module2.exports = [
      "hwen",
      "hwenj",
      "hwenh",
      "hwed",
      "hwel",
      "hwelg",
      "hwelm",
      "hwelb",
      "hwels",
      "hwelt",
      "hwelp",
      "hwelh",
      "hwem",
      "hweb",
      "hwebs",
      "hwes",
      "hwess",
      "hweng",
      "hwej",
      "hwec",
      "hwek",
      "hwet",
      "hwep",
      "hweh",
      "hwi",
      "hwig",
      "hwigg",
      "hwigs",
      "hwin",
      "hwinj",
      "hwinh",
      "hwid",
      "hwil",
      "hwilg",
      "hwilm",
      "hwilb",
      "hwils",
      "hwilt",
      "hwilp",
      "hwilh",
      "hwim",
      "hwib",
      "hwibs",
      "hwis",
      "hwiss",
      "hwing",
      "hwij",
      "hwic",
      "hwik",
      "hwit",
      "hwip",
      "hwih",
      "hyu",
      "hyug",
      "hyugg",
      "hyugs",
      "hyun",
      "hyunj",
      "hyunh",
      "hyud",
      "hyul",
      "hyulg",
      "hyulm",
      "hyulb",
      "hyuls",
      "hyult",
      "hyulp",
      "hyulh",
      "hyum",
      "hyub",
      "hyubs",
      "hyus",
      "hyuss",
      "hyung",
      "hyuj",
      "hyuc",
      "hyuk",
      "hyut",
      "hyup",
      "hyuh",
      "heu",
      "heug",
      "heugg",
      "heugs",
      "heun",
      "heunj",
      "heunh",
      "heud",
      "heul",
      "heulg",
      "heulm",
      "heulb",
      "heuls",
      "heult",
      "heulp",
      "heulh",
      "heum",
      "heub",
      "heubs",
      "heus",
      "heuss",
      "heung",
      "heuj",
      "heuc",
      "heuk",
      "heut",
      "heup",
      "heuh",
      "hyi",
      "hyig",
      "hyigg",
      "hyigs",
      "hyin",
      "hyinj",
      "hyinh",
      "hyid",
      "hyil",
      "hyilg",
      "hyilm",
      "hyilb",
      "hyils",
      "hyilt",
      "hyilp",
      "hyilh",
      "hyim",
      "hyib",
      "hyibs",
      "hyis",
      "hyiss",
      "hying",
      "hyij",
      "hyic",
      "hyik",
      "hyit",
      "hyip",
      "hyih",
      "hi",
      "hig",
      "higg",
      "higs",
      "hin",
      "hinj",
      "hinh",
      "hid",
      "hil",
      "hilg",
      "hilm",
      "hilb",
      "hils",
      "hilt",
      "hilp",
      "hilh",
      "him",
      "hib",
      "hibs",
      "his",
      "hiss",
      "hing",
      "hij",
      "hic",
      "hik",
      "hit",
      "hip",
      "hih",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]"
    ];
  }
});

// node_modules/unidecode/data/xf9.js
var require_xf9 = __commonJS({
  "node_modules/unidecode/data/xf9.js"(exports2, module2) {
    module2.exports = [
      "Kay ",
      "Kayng ",
      "Ke ",
      "Ko ",
      "Kol ",
      "Koc ",
      "Kwi ",
      "Kwi ",
      "Kyun ",
      "Kul ",
      "Kum ",
      "Na ",
      "Na ",
      "Na ",
      "La ",
      "Na ",
      "Na ",
      "Na ",
      "Na ",
      "Na ",
      "Nak ",
      "Nak ",
      "Nak ",
      "Nak ",
      "Nak ",
      "Nak ",
      "Nak ",
      "Nan ",
      "Nan ",
      "Nan ",
      "Nan ",
      "Nan ",
      "Nan ",
      "Nam ",
      "Nam ",
      "Nam ",
      "Nam ",
      "Nap ",
      "Nap ",
      "Nap ",
      "Nang ",
      "Nang ",
      "Nang ",
      "Nang ",
      "Nang ",
      "Nay ",
      "Nayng ",
      "No ",
      "No ",
      "No ",
      "No ",
      "No ",
      "No ",
      "No ",
      "No ",
      "No ",
      "No ",
      "No ",
      "No ",
      "Nok ",
      "Nok ",
      "Nok ",
      "Nok ",
      "Nok ",
      "Nok ",
      "Non ",
      "Nong ",
      "Nong ",
      "Nong ",
      "Nong ",
      "Noy ",
      "Noy ",
      "Noy ",
      "Noy ",
      "Nwu ",
      "Nwu ",
      "Nwu ",
      "Nwu ",
      "Nwu ",
      "Nwu ",
      "Nwu ",
      "Nwu ",
      "Nuk ",
      "Nuk ",
      "Num ",
      "Nung ",
      "Nung ",
      "Nung ",
      "Nung ",
      "Nung ",
      "Twu ",
      "La ",
      "Lak ",
      "Lak ",
      "Lan ",
      "Lyeng ",
      "Lo ",
      "Lyul ",
      "Li ",
      "Pey ",
      "Pen ",
      "Pyen ",
      "Pwu ",
      "Pwul ",
      "Pi ",
      "Sak ",
      "Sak ",
      "Sam ",
      "Sayk ",
      "Sayng ",
      "Sep ",
      "Sey ",
      "Sway ",
      "Sin ",
      "Sim ",
      "Sip ",
      "Ya ",
      "Yak ",
      "Yak ",
      "Yang ",
      "Yang ",
      "Yang ",
      "Yang ",
      "Yang ",
      "Yang ",
      "Yang ",
      "Yang ",
      "Ye ",
      "Ye ",
      "Ye ",
      "Ye ",
      "Ye ",
      "Ye ",
      "Ye ",
      "Ye ",
      "Ye ",
      "Ye ",
      "Ye ",
      "Yek ",
      "Yek ",
      "Yek ",
      "Yek ",
      "Yen ",
      "Yen ",
      "Yen ",
      "Yen ",
      "Yen ",
      "Yen ",
      "Yen ",
      "Yen ",
      "Yen ",
      "Yen ",
      "Yen ",
      "Yen ",
      "Yen ",
      "Yen ",
      "Yel ",
      "Yel ",
      "Yel ",
      "Yel ",
      "Yel ",
      "Yel ",
      "Yem ",
      "Yem ",
      "Yem ",
      "Yem ",
      "Yem ",
      "Yep ",
      "Yeng ",
      "Yeng ",
      "Yeng ",
      "Yeng ",
      "Yeng ",
      "Yeng ",
      "Yeng ",
      "Yeng ",
      "Yeng ",
      "Yeng ",
      "Yeng ",
      "Yeng ",
      "Yeng ",
      "Yey ",
      "Yey ",
      "Yey ",
      "Yey ",
      "O ",
      "Yo ",
      "Yo ",
      "Yo ",
      "Yo ",
      "Yo ",
      "Yo ",
      "Yo ",
      "Yo ",
      "Yo ",
      "Yo ",
      "Yong ",
      "Wun ",
      "Wen ",
      "Yu ",
      "Yu ",
      "Yu ",
      "Yu ",
      "Yu ",
      "Yu ",
      "Yu ",
      "Yu ",
      "Yu ",
      "Yu ",
      "Yuk ",
      "Yuk ",
      "Yuk ",
      "Yun ",
      "Yun ",
      "Yun ",
      "Yun ",
      "Yul ",
      "Yul ",
      "Yul ",
      "Yul ",
      "Yung ",
      "I ",
      "I ",
      "I ",
      "I ",
      "I ",
      "I ",
      "I ",
      "I ",
      "I ",
      "I ",
      "I ",
      "I ",
      "I ",
      "I ",
      "Ik ",
      "Ik ",
      "In ",
      "In ",
      "In ",
      "In ",
      "In ",
      "In ",
      "In ",
      "Im ",
      "Im ",
      "Im ",
      "Ip ",
      "Ip ",
      "Ip ",
      "Cang ",
      "Cek ",
      "Ci ",
      "Cip ",
      "Cha ",
      "Chek "
    ];
  }
});

// node_modules/unidecode/data/xfa.js
var require_xfa = __commonJS({
  "node_modules/unidecode/data/xfa.js"(exports2, module2) {
    module2.exports = [
      "Chey ",
      "Thak ",
      "Thak ",
      "Thang ",
      "Thayk ",
      "Thong ",
      "Pho ",
      "Phok ",
      "Hang ",
      "Hang ",
      "Hyen ",
      "Hwak ",
      "Wu ",
      "Huo ",
      "[?] ",
      "[?] ",
      "Zhong ",
      "[?] ",
      "Qing ",
      "[?] ",
      "[?] ",
      "Xi ",
      "Zhu ",
      "Yi ",
      "Li ",
      "Shen ",
      "Xiang ",
      "Fu ",
      "Jing ",
      "Jing ",
      "Yu ",
      "[?] ",
      "Hagi ",
      "[?] ",
      "Zhu ",
      "[?] ",
      "[?] ",
      "Yi ",
      "Du ",
      "[?] ",
      "[?] ",
      "[?] ",
      "Fan ",
      "Si ",
      "Guan ",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]"
    ];
  }
});

// node_modules/unidecode/data/xfb.js
var require_xfb = __commonJS({
  "node_modules/unidecode/data/xfb.js"(exports2, module2) {
    module2.exports = [
      "ff",
      "fi",
      "fl",
      "ffi",
      "ffl",
      "st",
      "st",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "mn",
      "me",
      "mi",
      "vn",
      "mkh",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "yi",
      "",
      "ay",
      "`",
      "",
      "d",
      "h",
      "k",
      "l",
      "m",
      "m",
      "t",
      "+",
      "sh",
      "s",
      "sh",
      "s",
      "a",
      "a",
      "",
      "b",
      "g",
      "d",
      "h",
      "v",
      "z",
      "[?]",
      "t",
      "y",
      "k",
      "k",
      "l",
      "[?]",
      "l",
      "[?]",
      "n",
      "n",
      "[?]",
      "p",
      "p",
      "[?]",
      "ts",
      "ts",
      "r",
      "sh",
      "t",
      "vo",
      "b",
      "k",
      "p",
      "l",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      ""
    ];
  }
});

// node_modules/unidecode/data/xfc.js
var require_xfc = __commonJS({
  "node_modules/unidecode/data/xfc.js"(exports2, module2) {
    module2.exports = [
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      ""
    ];
  }
});

// node_modules/unidecode/data/xfd.js
var require_xfd = __commonJS({
  "node_modules/unidecode/data/xfd.js"(exports2, module2) {
    module2.exports = [
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "[?]",
      "[?]",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      // ======================================================================
      //  FFD0 to FFEF = "Not A Character..."
      // FDD0
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      // FDE0
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      // ======================================================================
      // ======================================================================
      // perl -CO -e 'for( 0xFDF0 .. 0xFDFD) { printf "\"\",//  %04X p%cq\n", $_, $_; }'
      "{Salla}",
      //  FDF0 pï·°q
      //   FDF0	ARABIC LIGATURE SALLA USED AS KORANIC STOP SIGN ISOLATED FORM
      "{Qala}",
      //  FDF1 pï·±q
      //   FDF1	ARABIC LIGATURE QALA USED AS KORANIC STOP SIGN ISOLATED FORM
      "Allah",
      //  FDF2 pï·²q
      //   FDF2	ARABIC LIGATURE ALLAH ISOLATED FORM
      "Akbar",
      //  FDF3 pï·³q
      //   FDF3	ARABIC LIGATURE AKBAR ISOLATED FORM
      "Mohammed",
      //  FDF4 pï·´q
      //   FDF4	ARABIC LIGATURE MOHAMMAD ISOLATED FORM
      "SL`M",
      //  FDF5 pï·µq
      //   FDF5	ARABIC LIGATURE SALAM ISOLATED FORM
      "Rasul",
      //  FDF6 pï·¶q
      //   FDF6	ARABIC LIGATURE RASOUL ISOLATED FORM
      "{Alayhi}",
      //  FDF7 pï··q
      //   FDF7	ARABIC LIGATURE ALAYHE ISOLATED FORM
      "{WaSallam}",
      //  FDF8 pï·¸q
      //   FDF8	ARABIC LIGATURE WASALLAM ISOLATED FORM
      "{Salla}",
      //  FDF9 pï·¹q
      //   FDF9	ARABIC LIGATURE SALLA ISOLATED FORM
      "{Salla Llahu Alayhi WaSallam}",
      //  FDFA pï·ºq
      //   FDFA	ARABIC LIGATURE SALLALLAHOU ALAYHE WASALLAM
      "{Jalla Jalalahu}",
      //  FDFB pï·»q
      //   FDFB	ARABIC LIGATURE JALLAJALALOUHOU
      "Rial ",
      //  FDFC pï·¼q
      //   FDFC	RIAL SIGN
      "{Bismillah Ar-Rahman Ar-Rahimi}",
      //  FDFD pï·½q
      //   FDFD	ARABIC LIGATURE BISMILLAH AR-RAHMAN AR-RAHEEM
      //  And unassigned:
      "[?]",
      // FDFE
      "[?]"
      // FDFF
    ];
  }
});

// node_modules/unidecode/data/xfe.js
var require_xfe = __commonJS({
  "node_modules/unidecode/data/xfe.js"(exports2, module2) {
    module2.exports = [
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "",
      "",
      "",
      "~",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "..",
      "--",
      "-",
      "_",
      "_",
      "(",
      ") ",
      "\\{",
      "\\} ",
      "[",
      "] ",
      "[(",
      ")] ",
      "<<",
      ">> ",
      "<",
      "> ",
      "[",
      "] ",
      "\\{",
      "\\}",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      ",",
      ",",
      ".",
      "",
      ";",
      ":",
      "?",
      "!",
      "-",
      "(",
      ")",
      "\\{",
      "\\}",
      "\\{",
      "\\}",
      "#",
      "&",
      "*",
      "+",
      "-",
      "<",
      ">",
      "=",
      "",
      "\\\\",
      "\\$",
      "%",
      "\\@",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "",
      "",
      "",
      "[?]",
      "",
      "[?]",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "[?]",
      "[?]",
      ""
    ];
  }
});

// node_modules/unidecode/data/xff.js
var require_xff = __commonJS({
  "node_modules/unidecode/data/xff.js"(exports2, module2) {
    module2.exports = [
      "[?]",
      "!",
      '"',
      "#",
      "\\$",
      "%",
      "&",
      "'",
      "(",
      ")",
      "*",
      "+",
      ",",
      "-",
      ".",
      "/",
      "0",
      "1",
      "2",
      "3",
      "4",
      "5",
      "6",
      "7",
      "8",
      "9",
      ":",
      ";",
      "<",
      "=",
      ">",
      "?",
      "\\@",
      "A",
      "B",
      "C",
      "D",
      "E",
      "F",
      "G",
      "H",
      "I",
      "J",
      "K",
      "L",
      "M",
      "N",
      "O",
      "P",
      "Q",
      "R",
      "S",
      "T",
      "U",
      "V",
      "W",
      "X",
      "Y",
      "Z",
      "[",
      "\\\\",
      "]",
      "^",
      "_",
      "`",
      "a",
      "b",
      "c",
      "d",
      "e",
      "f",
      "g",
      "h",
      "i",
      "j",
      "k",
      "l",
      "m",
      "n",
      "o",
      "p",
      "q",
      "r",
      "s",
      "t",
      "u",
      "v",
      "w",
      "x",
      "y",
      "z",
      "\\{",
      "|",
      "\\}",
      "~",
      "[?]",
      "[?]",
      ".",
      "[",
      "]",
      ",",
      "*",
      "wo",
      "a",
      "i",
      "u",
      "e",
      "o",
      "ya",
      "yu",
      "yo",
      "tu",
      "+",
      "a",
      "i",
      "u",
      "e",
      "o",
      "ka",
      "ki",
      "ku",
      "ke",
      "ko",
      "sa",
      "si",
      "su",
      "se",
      "so",
      "ta",
      "ti",
      "tu",
      "te",
      "to",
      "na",
      "ni",
      "nu",
      "ne",
      "no",
      "ha",
      "hi",
      "hu",
      "he",
      "ho",
      "ma",
      "mi",
      "mu",
      "me",
      "mo",
      "ya",
      "yu",
      "yo",
      "ra",
      "ri",
      "ru",
      "re",
      "ro",
      "wa",
      "n",
      ":",
      ";",
      "",
      "g",
      "gg",
      "gs",
      "n",
      "nj",
      "nh",
      "d",
      "dd",
      "r",
      "lg",
      "lm",
      "lb",
      "ls",
      "lt",
      "lp",
      "rh",
      "m",
      "b",
      "bb",
      "bs",
      "s",
      "ss",
      "",
      "j",
      "jj",
      "c",
      "k",
      "t",
      "p",
      "h",
      "[?]",
      "[?]",
      "[?]",
      "a",
      "ae",
      "ya",
      "yae",
      "eo",
      "e",
      "[?]",
      "[?]",
      "yeo",
      "ye",
      "o",
      "wa",
      "wae",
      "oe",
      "[?]",
      "[?]",
      "yo",
      "u",
      "weo",
      "we",
      "wi",
      "yu",
      "[?]",
      "[?]",
      "eu",
      "yi",
      "i",
      "[?]",
      "[?]",
      "[?]",
      "/C",
      "PS",
      "!",
      "-",
      "|",
      "Y=",
      "W=",
      "[?]",
      "|",
      "-",
      "|",
      "-",
      "|",
      "#",
      "O",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "[?]",
      "\\{",
      "|",
      "\\}",
      "",
      "",
      "",
      ""
    ];
  }
});

// node_modules/unidecode/unidecode.js
var require_unidecode = __commonJS({
  "node_modules/unidecode/unidecode.js"(exports2, module2) {
    "use strict";
    var tr = {};
    var utf8_rx = /(?![\x00-\x7F]|[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3})./g;
    module2.exports = function(str, sub) {
      return str.replace(utf8_rx, function(match2) {
        return unidecode_internal_replace(match2, sub);
      });
    };
    function unidecode_internal_replace(match2, sub) {
      if (sub === null || sub === void 0) {
        sub = "";
      }
      var utf16 = utf8_to_utf16(match2);
      if (utf16 > 65535) {
        return sub;
      } else {
        var h2 = utf16 >> 8;
        var l2 = utf16 & 255;
        if (h2 > 24 && h2 < 30) return sub;
        if (h2 > 215 && h2 < 249) return sub;
        if (!tr[h2]) {
          switch (dec2hex(h2)) {
            case "00":
              tr[h2] = require_x00();
              break;
            case "01":
              tr[h2] = require_x01();
              break;
            case "02":
              tr[h2] = require_x02();
              break;
            case "03":
              tr[h2] = require_x03();
              break;
            case "04":
              tr[h2] = require_x04();
              break;
            case "05":
              tr[h2] = require_x05();
              break;
            case "06":
              tr[h2] = require_x06();
              break;
            case "07":
              tr[h2] = require_x07();
              break;
            case "09":
              tr[h2] = require_x09();
              break;
            case "0a":
              tr[h2] = require_x0a();
              break;
            case "0b":
              tr[h2] = require_x0b();
              break;
            case "0c":
              tr[h2] = require_x0c();
              break;
            case "0d":
              tr[h2] = require_x0d();
              break;
            case "0e":
              tr[h2] = require_x0e();
              break;
            case "0f":
              tr[h2] = require_x0f();
              break;
            case "10":
              tr[h2] = require_x10();
              break;
            case "11":
              tr[h2] = require_x11();
              break;
            case "12":
              tr[h2] = require_x12();
              break;
            case "13":
              tr[h2] = require_x13();
              break;
            case "14":
              tr[h2] = require_x14();
              break;
            case "15":
              tr[h2] = require_x15();
              break;
            case "16":
              tr[h2] = require_x16();
              break;
            case "17":
              tr[h2] = require_x17();
              break;
            case "18":
              tr[h2] = require_x18();
              break;
            case "19":
              tr[h2] = require_x19();
              break;
            case "1a":
              tr[h2] = require_x1a();
              break;
            case "1b":
              tr[h2] = require_x1b();
              break;
            case "1c":
              tr[h2] = require_x1c();
              break;
            case "1d":
              tr[h2] = require_x1d();
              break;
            case "1e":
              tr[h2] = require_x1e();
              break;
            case "1f":
              tr[h2] = require_x1f();
              break;
            case "20":
              tr[h2] = require_x20();
              break;
            case "21":
              tr[h2] = require_x21();
              break;
            case "22":
              tr[h2] = require_x22();
              break;
            case "23":
              tr[h2] = require_x23();
              break;
            case "24":
              tr[h2] = require_x24();
              break;
            case "25":
              tr[h2] = require_x25();
              break;
            case "26":
              tr[h2] = require_x26();
              break;
            case "27":
              tr[h2] = require_x27();
              break;
            case "28":
              tr[h2] = require_x28();
              break;
            case "2e":
              tr[h2] = require_x2e();
              break;
            case "2f":
              tr[h2] = require_x2f();
              break;
            case "30":
              tr[h2] = require_x30();
              break;
            case "31":
              tr[h2] = require_x31();
              break;
            case "32":
              tr[h2] = require_x32();
              break;
            case "33":
              tr[h2] = require_x33();
              break;
            case "4d":
              tr[h2] = require_x4d();
              break;
            case "4e":
              tr[h2] = require_x4e();
              break;
            case "4f":
              tr[h2] = require_x4f();
              break;
            case "50":
              tr[h2] = require_x50();
              break;
            case "51":
              tr[h2] = require_x51();
              break;
            case "52":
              tr[h2] = require_x52();
              break;
            case "53":
              tr[h2] = require_x53();
              break;
            case "54":
              tr[h2] = require_x54();
              break;
            case "55":
              tr[h2] = require_x55();
              break;
            case "56":
              tr[h2] = require_x56();
              break;
            case "57":
              tr[h2] = require_x57();
              break;
            case "58":
              tr[h2] = require_x58();
              break;
            case "59":
              tr[h2] = require_x59();
              break;
            case "5a":
              tr[h2] = require_x5a();
              break;
            case "5b":
              tr[h2] = require_x5b();
              break;
            case "5c":
              tr[h2] = require_x5c();
              break;
            case "5d":
              tr[h2] = require_x5d();
              break;
            case "5e":
              tr[h2] = require_x5e();
              break;
            case "5f":
              tr[h2] = require_x5f();
              break;
            case "60":
              tr[h2] = require_x60();
              break;
            case "61":
              tr[h2] = require_x61();
              break;
            case "62":
              tr[h2] = require_x62();
              break;
            case "63":
              tr[h2] = require_x63();
              break;
            case "64":
              tr[h2] = require_x64();
              break;
            case "65":
              tr[h2] = require_x65();
              break;
            case "66":
              tr[h2] = require_x66();
              break;
            case "67":
              tr[h2] = require_x67();
              break;
            case "68":
              tr[h2] = require_x68();
              break;
            case "69":
              tr[h2] = require_x69();
              break;
            case "6a":
              tr[h2] = require_x6a();
              break;
            case "6b":
              tr[h2] = require_x6b();
              break;
            case "6c":
              tr[h2] = require_x6c();
              break;
            case "6d":
              tr[h2] = require_x6d();
              break;
            case "6e":
              tr[h2] = require_x6e();
              break;
            case "6f":
              tr[h2] = require_x6f();
              break;
            case "70":
              tr[h2] = require_x70();
              break;
            case "71":
              tr[h2] = require_x71();
              break;
            case "72":
              tr[h2] = require_x72();
              break;
            case "73":
              tr[h2] = require_x73();
              break;
            case "74":
              tr[h2] = require_x74();
              break;
            case "75":
              tr[h2] = require_x75();
              break;
            case "76":
              tr[h2] = require_x76();
              break;
            case "77":
              tr[h2] = require_x77();
              break;
            case "78":
              tr[h2] = require_x78();
              break;
            case "79":
              tr[h2] = require_x79();
              break;
            case "7a":
              tr[h2] = require_x7a();
              break;
            case "7b":
              tr[h2] = require_x7b();
              break;
            case "7c":
              tr[h2] = require_x7c();
              break;
            case "7d":
              tr[h2] = require_x7d();
              break;
            case "7e":
              tr[h2] = require_x7e();
              break;
            case "7f":
              tr[h2] = require_x7f();
              break;
            case "80":
              tr[h2] = require_x80();
              break;
            case "81":
              tr[h2] = require_x81();
              break;
            case "82":
              tr[h2] = require_x82();
              break;
            case "83":
              tr[h2] = require_x83();
              break;
            case "84":
              tr[h2] = require_x84();
              break;
            case "85":
              tr[h2] = require_x85();
              break;
            case "86":
              tr[h2] = require_x86();
              break;
            case "87":
              tr[h2] = require_x87();
              break;
            case "88":
              tr[h2] = require_x88();
              break;
            case "89":
              tr[h2] = require_x89();
              break;
            case "8a":
              tr[h2] = require_x8a();
              break;
            case "8b":
              tr[h2] = require_x8b();
              break;
            case "8c":
              tr[h2] = require_x8c();
              break;
            case "8d":
              tr[h2] = require_x8d();
              break;
            case "8e":
              tr[h2] = require_x8e();
              break;
            case "8f":
              tr[h2] = require_x8f();
              break;
            case "90":
              tr[h2] = require_x90();
              break;
            case "91":
              tr[h2] = require_x91();
              break;
            case "92":
              tr[h2] = require_x92();
              break;
            case "93":
              tr[h2] = require_x93();
              break;
            case "94":
              tr[h2] = require_x94();
              break;
            case "95":
              tr[h2] = require_x95();
              break;
            case "96":
              tr[h2] = require_x96();
              break;
            case "97":
              tr[h2] = require_x97();
              break;
            case "98":
              tr[h2] = require_x98();
              break;
            case "99":
              tr[h2] = require_x99();
              break;
            case "9a":
              tr[h2] = require_x9a();
              break;
            case "9b":
              tr[h2] = require_x9b();
              break;
            case "9c":
              tr[h2] = require_x9c();
              break;
            case "9d":
              tr[h2] = require_x9d();
              break;
            case "9e":
              tr[h2] = require_x9e();
              break;
            case "9f":
              tr[h2] = require_x9f();
              break;
            case "a0":
              tr[h2] = require_xa0();
              break;
            case "a1":
              tr[h2] = require_xa1();
              break;
            case "a2":
              tr[h2] = require_xa2();
              break;
            case "a3":
              tr[h2] = require_xa3();
              break;
            case "a4":
              tr[h2] = require_xa4();
              break;
            case "ac":
              tr[h2] = require_xac();
              break;
            case "ad":
              tr[h2] = require_xad();
              break;
            case "ae":
              tr[h2] = require_xae();
              break;
            case "af":
              tr[h2] = require_xaf();
              break;
            case "b0":
              tr[h2] = require_xb0();
              break;
            case "b1":
              tr[h2] = require_xb1();
              break;
            case "b2":
              tr[h2] = require_xb2();
              break;
            case "b3":
              tr[h2] = require_xb3();
              break;
            case "b4":
              tr[h2] = require_xb4();
              break;
            case "b5":
              tr[h2] = require_xb5();
              break;
            case "b6":
              tr[h2] = require_xb6();
              break;
            case "b7":
              tr[h2] = require_xb7();
              break;
            case "b8":
              tr[h2] = require_xb8();
              break;
            case "b9":
              tr[h2] = require_xb9();
              break;
            case "ba":
              tr[h2] = require_xba();
              break;
            case "bb":
              tr[h2] = require_xbb();
              break;
            case "bc":
              tr[h2] = require_xbc();
              break;
            case "bd":
              tr[h2] = require_xbd();
              break;
            case "be":
              tr[h2] = require_xbe();
              break;
            case "bf":
              tr[h2] = require_xbf();
              break;
            case "c0":
              tr[h2] = require_xc0();
              break;
            case "c1":
              tr[h2] = require_xc1();
              break;
            case "c2":
              tr[h2] = require_xc2();
              break;
            case "c3":
              tr[h2] = require_xc3();
              break;
            case "c4":
              tr[h2] = require_xc4();
              break;
            case "c5":
              tr[h2] = require_xc5();
              break;
            case "c6":
              tr[h2] = require_xc6();
              break;
            case "c7":
              tr[h2] = require_xc7();
              break;
            case "c8":
              tr[h2] = require_xc8();
              break;
            case "c9":
              tr[h2] = require_xc9();
              break;
            case "ca":
              tr[h2] = require_xca();
              break;
            case "cb":
              tr[h2] = require_xcb();
              break;
            case "cc":
              tr[h2] = require_xcc();
              break;
            case "cd":
              tr[h2] = require_xcd();
              break;
            case "ce":
              tr[h2] = require_xce();
              break;
            case "cf":
              tr[h2] = require_xcf();
              break;
            case "d0":
              tr[h2] = require_xd0();
              break;
            case "d1":
              tr[h2] = require_xd1();
              break;
            case "d2":
              tr[h2] = require_xd2();
              break;
            case "d3":
              tr[h2] = require_xd3();
              break;
            case "d4":
              tr[h2] = require_xd4();
              break;
            case "d5":
              tr[h2] = require_xd5();
              break;
            case "d6":
              tr[h2] = require_xd6();
              break;
            case "d7":
              tr[h2] = require_xd7();
              break;
            case "f9":
              tr[h2] = require_xf9();
              break;
            case "fa":
              tr[h2] = require_xfa();
              break;
            case "fb":
              tr[h2] = require_xfb();
              break;
            case "fc":
              tr[h2] = require_xfc();
              break;
            case "fd":
              tr[h2] = require_xfd();
              break;
            case "fe":
              tr[h2] = require_xfe();
              break;
            case "ff":
              tr[h2] = require_xff();
              break;
            default:
              return sub;
          }
        }
        if (tr[h2][l2]) {
          return tr[h2][l2];
        } else {
          return sub;
        }
      }
    }
    function dec2hex(i2) {
      return (i2 + 256).toString(16).substr(-2);
    }
    function utf8_to_utf16(raw) {
      var b1, b2, b3, b4, x2, y2, z;
      while (Array.isArray(raw)) raw = raw[0];
      switch (raw.length) {
        case 1:
          return ord(raw);
        // http://en.wikipedia.org/wiki/UTF-8
        case 2:
          b1 = ord(raw.substr(0, 1));
          b2 = ord(raw.substr(1, 1));
          x2 = (b1 & 3) << 6 | b2 & 63;
          y2 = (b1 & 28) >> 2;
          return y2 << 8 | x2;
        case 3:
          b1 = ord(raw.substr(0, 1));
          b2 = ord(raw.substr(1, 1));
          b3 = ord(raw.substr(2, 1));
          x2 = (b2 & 3) << 6 | b3 & 63;
          y2 = (b1 & 15) << 4 | (b2 & 60) >> 2;
          return y2 << 8 | x2;
        default:
          b1 = ord(raw.substr(0, 1));
          b2 = ord(raw.substr(1, 1));
          b3 = ord(raw.substr(2, 1));
          b4 = ord(raw.substr(3, 1));
          x2 = (b3 & 3) << 6 | b4 & 63;
          y2 = (b2 & 15) << 4 | (b3 & 60) >> 2;
          z = (b1 & 7) << 5 | (b2 & 48) >> 4;
          return z << 16 | y2 << 8 | x2;
      }
    }
    function ord(string2) {
      var str = string2 + "", code = str.charCodeAt(0);
      if (55296 <= code && code <= 56319) {
        var hi = code;
        if (str.length === 1) {
          return code;
        }
        var low = str.charCodeAt(1);
        return (hi - 55296) * 1024 + (low - 56320) + 65536;
      }
      if (56320 <= code && code <= 57343) {
        return code;
      }
      return code;
    }
  }
});

// src/util/node.ts
var import_util, fs, path, os, crypto2, styles2, stripAnsi, debounce2, readline, child_process, glob, minimatch, which, semver, vm, net, fastDiff, unidecode;
var init_node = __esm({
  "src/util/node.ts"() {
    "use strict";
    import_util = require("util");
    fs = require("fs");
    path = require("path");
    os = require("os");
    crypto2 = require("crypto");
    styles2 = (init_ansi_styles(), __toCommonJS(ansi_styles_exports)).default;
    stripAnsi = import_util.stripVTControlCharacters;
    debounce2 = (init_debounce(), __toCommonJS(debounce_exports)).default;
    readline = require("readline");
    child_process = require("child_process");
    glob = require_index_min();
    ({ minimatch } = require_commonjs4());
    which = require_lib();
    semver = require_semver2();
    vm = require("vm");
    net = require("net");
    fastDiff = require_diff2();
    unidecode = require_unidecode();
  }
});

// src/logger/log.ts
function textToLogLevel(level2) {
  let str = level2.toLowerCase();
  switch (str) {
    case "trace":
      return 0 /* Trace */;
    case "debug":
      return 1 /* Debug */;
    case "info":
      return 2 /* Info */;
    case "error":
      return 4 /* Error */;
    case "warn":
    case "warning":
      return 3 /* Warning */;
    case "off":
      return 5 /* Off */;
    default:
      return 2 /* Info */;
  }
}
function format2(args, depth = 2, color = false, hidden = false) {
  let result = "";
  for (let i2 = 0; i2 < args.length; i2++) {
    let a2 = args[i2];
    if (typeof a2 === "object") {
      try {
        a2 = (0, import_util.inspect)(a2, hidden, depth, color);
      } catch (e2) {
      }
    }
    if (color && (typeof a2 === "boolean" || typeof a2 === "number")) {
      a2 = `${yellowOpen}${a2}${yellowClose}`;
    }
    result += (i2 > 0 ? " " : "") + a2;
  }
  return result;
}
function stringifyLogLevel(level2) {
  switch (level2) {
    case 1 /* Debug */:
      return "DEBUG";
    case 4 /* Error */:
      return "ERROR";
    case 2 /* Info */:
      return "INFO";
    case 0 /* Trace */:
      return "TRACE";
    case 3 /* Warning */:
      return "WARN";
  }
  return "";
}
function getTimestamp(date) {
  return `${toTwoDigits(date.getHours())}:${toTwoDigits(date.getMinutes())}:${toTwoDigits(date.getSeconds())}.${toThreeDigits(date.getMilliseconds())}`;
}
var MAX_FILE_SIZE, yellowOpen, yellowClose, DEFAULT_LOG_LEVEL, toTwoDigits, toThreeDigits, AbstractLogger, FileLogger;
var init_log = __esm({
  "src/logger/log.ts"() {
    "use strict";
    init_node();
    MAX_FILE_SIZE = 5 * 1024 * 1024;
    yellowOpen = "\x1B[33m";
    yellowClose = "\x1B[39m";
    DEFAULT_LOG_LEVEL = 2 /* Info */;
    toTwoDigits = (v2) => v2 < 10 ? `0${v2}` : v2.toString();
    toThreeDigits = (v2) => v2 < 10 ? `00${v2}` : v2 < 100 ? `0${v2}` : v2.toString();
    AbstractLogger = class {
      level = DEFAULT_LOG_LEVEL;
      setLevel(level2) {
        if (this.level !== level2) {
          this.level = level2;
        }
      }
      getLevel() {
        return this.level;
      }
    };
    FileLogger = class extends AbstractLogger {
      constructor(fsPath2, level2, config) {
        super();
        this.fsPath = fsPath2;
        this.config = Object.assign({
          userFormatters: true,
          color: false,
          depth: 2,
          showHidden: false
        }, config);
        this.setLevel(level2);
        this.promise = this.initialize();
      }
      fsPath;
      promise;
      backupIndex = 1;
      config;
      useConsole = false;
      loggers = /* @__PURE__ */ new Map();
      switchConsole() {
        this.useConsole = !this.useConsole;
      }
      format(args) {
        let { color, showHidden, depth } = this.config;
        return format2(args, depth, color, showHidden);
      }
      createLogger(scope) {
        let logger75 = this.loggers.has(scope) ? this.loggers.get(scope) : {
          category: scope,
          mark: () => {
          },
          getLevel: () => {
            return this.getLevel();
          },
          trace: (...args) => {
            if (this.level <= 0 /* Trace */) {
              this._log(0 /* Trace */, scope, args, this.getCurrentTimestamp());
            }
          },
          debug: (...args) => {
            if (this.level <= 1 /* Debug */) {
              this._log(1 /* Debug */, scope, args, this.getCurrentTimestamp());
            }
          },
          log: (...args) => {
            if (this.level <= 2 /* Info */) {
              this._log(2 /* Info */, scope, args, this.getCurrentTimestamp());
            }
          },
          info: (...args) => {
            if (this.level <= 2 /* Info */) {
              this._log(2 /* Info */, scope, args, this.getCurrentTimestamp());
            }
          },
          warn: (...args) => {
            if (this.level <= 3 /* Warning */) {
              this._log(3 /* Warning */, scope, args, this.getCurrentTimestamp());
            }
          },
          error: (...args) => {
            if (this.level <= 4 /* Error */) {
              this._log(4 /* Error */, scope, args, this.getCurrentTimestamp());
            }
          },
          fatal: (...args) => {
            if (this.level <= 4 /* Error */) {
              this._log(4 /* Error */, scope, args, this.getCurrentTimestamp());
            }
          },
          /**
           * An operation to flush the contents. Can be synchronous.
           */
          flush: () => {
            return this.promise;
          }
        };
        this.loggers.set(scope, logger75);
        return logger75;
      }
      async initialize() {
        return Promise.resolve();
      }
      shouldBackup(size) {
        return size > MAX_FILE_SIZE;
      }
      _log(level2, scope, args, time) {
        if (this.useConsole) {
          let method = level2 === 4 /* Error */ ? "error" : "log";
          console[method](`${stringifyLogLevel(level2)} [${scope}]`, format2(args, null, true));
        } else {
          let message = this.format(args);
          this.promise = this.promise.then(() => {
            let fn = async () => {
              let text;
              if (this.config.userFormatters !== false) {
                let parts = [time, stringifyLogLevel(level2), `(pid:${process.pid})`, `[${scope}]`];
                text = `${parts.join(" ")} - ${message}
`;
              } else {
                text = message;
              }
              await fs.promises.appendFile(this.fsPath, text, { encoding: "utf8", flag: "a+" });
              let stat = await fs.promises.stat(this.fsPath);
              if (this.shouldBackup(stat.size)) {
                let newFile = this.getBackupResource();
                await fs.promises.rename(this.fsPath, newFile);
              }
            };
            return fn();
          }).catch((err) => {
            if (false) {
              console.error(err);
            }
          });
        }
      }
      getCurrentTimestamp() {
        const currentTime = /* @__PURE__ */ new Date();
        return `${currentTime.getFullYear()}-${toTwoDigits(currentTime.getMonth() + 1)}-${toTwoDigits(currentTime.getDate())}T${getTimestamp(currentTime)}`;
      }
      getBackupResource() {
        this.backupIndex = this.backupIndex > 5 ? 1 : this.backupIndex;
        return path.join(path.dirname(this.fsPath), `${path.basename(this.fsPath)}_${this.backupIndex++}`);
      }
    };
  }
});

// src/util/index.ts
function sha256(data) {
  return crypto2.createHash("sha256").update(data).digest("hex");
}
function getConditionValue(value, testValue) {
  return isTester ? testValue : value;
}
function defaultValue(val, defaultValue2) {
  return val == null ? defaultValue2 : val;
}
function wait(ms) {
  if (ms <= 0) return Promise.resolve(void 0);
  return new Promise((resolve) => {
    let timer = setTimeout(() => {
      resolve(void 0);
    }, ms);
    timer.unref();
  });
}
function waitWithToken(ms, token) {
  if (token.isCancellationRequested || !ms) return Promise.resolve(true);
  return new Promise((resolve) => {
    let disposable = token.onCancellationRequested(() => {
      disposable.dispose();
      clearTimeout(timer);
      resolve(true);
    });
    let timer = setTimeout(() => {
      disposable.dispose();
      resolve(false);
    }, ms);
    timer.unref();
  });
}
function waitNextTick() {
  return new Promise((resolve) => {
    process.nextTick(() => {
      resolve(void 0);
    });
  });
}
function waitImmediate() {
  return new Promise((resolve) => {
    setImmediate(() => {
      resolve(void 0);
    });
  });
}
function concurrent(arr, fn, limit = 3) {
  if (arr.length == 0) return Promise.resolve();
  let finished = 0;
  let total = arr.length;
  let remain = arr.slice();
  return new Promise((resolve) => {
    let run = (val) => {
      let cb = () => {
        finished = finished + 1;
        if (finished == total) {
          resolve();
        } else if (remain.length) {
          let next = remain.shift();
          run(next);
        }
      };
      fn(val).then(cb, cb);
    };
    for (let i2 = 0; i2 < Math.min(limit, remain.length); i2++) {
      let val = remain.shift();
      run(val);
    }
  });
}
function disposeAll(disposables) {
  while (disposables.length) {
    const item = disposables.pop();
    item?.dispose();
  }
}
var isTester, pariedCharacters;
var init_util = __esm({
  "src/util/index.ts"() {
    "use strict";
    init_node();
    isTester = process.env.COC_TESTER === "1";
    pariedCharacters = /* @__PURE__ */ new Map([
      ["<", ">"],
      [">", "<"],
      ["{", "}"],
      ["[", "]"],
      ["(", ")"]
    ]);
  }
});

// src/logger/index.ts
var logger_exports = {};
__export(logger_exports, {
  createLogger: () => createLogger,
  emptyFile: () => emptyFile,
  getLoggerFile: () => getLoggerFile,
  getTimestamp: () => getTimestamp,
  logger: () => logger,
  resolveLogFilepath: () => resolveLogFilepath
});
function resolveLogFilepath() {
  let file = process.env.NVIM_COC_LOG_FILE;
  if (file) return file;
  let dir = process.env.XDG_RUNTIME_DIR;
  if (dir) {
    try {
      fs.accessSync(dir, fs.constants.R_OK | fs.constants.W_OK);
      return path.join(dir, `coc-nvim-${process.pid}.log`);
    } catch (err) {
    }
  }
  let tmpdir = os.tmpdir();
  dir = path.join(tmpdir, `coc.nvim-${process.pid}`);
  fs.mkdirSync(dir, { recursive: true });
  return path.join(dir, `coc-nvim.log`);
}
function emptyFile(filepath) {
  if (fs.existsSync(filepath)) {
    try {
      fs.writeFileSync(filepath, "", { encoding: "utf8", mode: 438 });
    } catch (e2) {
    }
  }
}
function getLoggerFile() {
  return logfile;
}
function createLogger(category = "coc.nvim") {
  return logger.createLogger(category);
}
var logfile, level, logger;
var init_logger = __esm({
  "src/logger/index.ts"() {
    "use strict";
    init_log();
    init_node();
    init_util();
    init_log();
    logfile = resolveLogFilepath();
    emptyFile(logfile);
    level = getConditionValue(process.env.NVIM_COC_LOG_LEVEL || "info", "off");
    logger = new FileLogger(logfile, textToLogLevel(level), {
      color: false,
      userFormatters: true
    });
  }
});

// src/util/extensionId.ts
var extensionId_exports = {};
__export(extensionId_exports, {
  extensionContext: () => extensionContext,
  extensionIdSymbol: () => extensionIdSymbol,
  getExtensionId: () => getExtensionId,
  prefixExtensionError: () => prefixExtensionError,
  setExtensionId: () => setExtensionId,
  wrapCallbackWithExtension: () => wrapCallbackWithExtension
});
function getExtensionId(target) {
  if (typeof target === "function" || typeof target === "object" && target !== null) {
    return target[extensionIdSymbol];
  }
  return void 0;
}
function setExtensionId(target, extensionId) {
  if (typeof target === "function" || typeof target === "object" && target !== null) {
    try {
      Object.defineProperty(target, extensionIdSymbol, {
        value: extensionId,
        enumerable: false,
        configurable: true,
        writable: true
      });
    } catch (e2) {
    }
  }
}
function wrapCallbackWithExtension(callback, extensionId) {
  const wrapped = function(...args) {
    try {
      const res = extensionContext.run(extensionId, () => callback.apply(this, args));
      if (res != null && typeof res.then === "function") {
        return Promise.resolve(res).catch((e2) => {
          throw prefixExtensionError(e2, extensionId);
        });
      }
      return res;
    } catch (e2) {
      throw prefixExtensionError(e2, extensionId);
    }
  };
  setExtensionId(wrapped, extensionId);
  return wrapped;
}
function prefixExtensionError(error, extensionId) {
  if (typeof error !== "object" || error === null) return error;
  let target = error;
  let originalMessage = "";
  try {
    if (typeof target.message === "string") {
      originalMessage = target.message;
    }
  } catch (e2) {
    return error;
  }
  if (originalMessage.startsWith("[extension:")) return error;
  const message = `[extension: ${extensionId}] ${originalMessage}`;
  try {
    target.message = message;
  } catch (e2) {
    return new Error(message, { cause: error });
  }
  return error;
}
var import_node_async_hooks, extensionContext, extensionIdSymbol;
var init_extensionId = __esm({
  "src/util/extensionId.ts"() {
    "use strict";
    import_node_async_hooks = require("node:async_hooks");
    extensionContext = new import_node_async_hooks.AsyncLocalStorage();
    extensionIdSymbol = /* @__PURE__ */ Symbol.for("coc.nvim.internal.extensionId");
  }
});

// node_modules/@msgpack/msgpack/dist.esm/utils/utf8.mjs
function utf8Count(str) {
  const strLength = str.length;
  let byteLength2 = 0;
  let pos = 0;
  while (pos < strLength) {
    let value = str.charCodeAt(pos++);
    if ((value & 4294967168) === 0) {
      byteLength2++;
      continue;
    } else if ((value & 4294965248) === 0) {
      byteLength2 += 2;
    } else {
      if (value >= 55296 && value <= 56319) {
        if (pos < strLength) {
          const extra = str.charCodeAt(pos);
          if ((extra & 64512) === 56320) {
            ++pos;
            value = ((value & 1023) << 10) + (extra & 1023) + 65536;
          }
        }
      }
      if ((value & 4294901760) === 0) {
        byteLength2 += 3;
      } else {
        byteLength2 += 4;
      }
    }
  }
  return byteLength2;
}
function utf8EncodeJs(str, output, outputOffset) {
  const strLength = str.length;
  let offset = outputOffset;
  let pos = 0;
  while (pos < strLength) {
    let value = str.charCodeAt(pos++);
    if ((value & 4294967168) === 0) {
      output[offset++] = value;
      continue;
    } else if ((value & 4294965248) === 0) {
      output[offset++] = value >> 6 & 31 | 192;
    } else {
      if (value >= 55296 && value <= 56319) {
        if (pos < strLength) {
          const extra = str.charCodeAt(pos);
          if ((extra & 64512) === 56320) {
            ++pos;
            value = ((value & 1023) << 10) + (extra & 1023) + 65536;
          }
        }
      }
      if ((value & 4294901760) === 0) {
        output[offset++] = value >> 12 & 15 | 224;
        output[offset++] = value >> 6 & 63 | 128;
      } else {
        output[offset++] = value >> 18 & 7 | 240;
        output[offset++] = value >> 12 & 63 | 128;
        output[offset++] = value >> 6 & 63 | 128;
      }
    }
    output[offset++] = value & 63 | 128;
  }
}
function utf8EncodeTE(str, output, outputOffset) {
  sharedTextEncoder.encodeInto(str, output.subarray(outputOffset));
}
function utf8Encode(str, output, outputOffset) {
  if (str.length > TEXT_ENCODER_THRESHOLD) {
    utf8EncodeTE(str, output, outputOffset);
  } else {
    utf8EncodeJs(str, output, outputOffset);
  }
}
function utf8DecodeJs(bytes2, inputOffset, byteLength2) {
  let offset = inputOffset;
  const end = offset + byteLength2;
  const units = [];
  let result = "";
  while (offset < end) {
    const byte1 = bytes2[offset++];
    if ((byte1 & 128) === 0) {
      units.push(byte1);
    } else if ((byte1 & 224) === 192) {
      const byte2 = bytes2[offset++] & 63;
      units.push((byte1 & 31) << 6 | byte2);
    } else if ((byte1 & 240) === 224) {
      const byte2 = bytes2[offset++] & 63;
      const byte3 = bytes2[offset++] & 63;
      units.push((byte1 & 31) << 12 | byte2 << 6 | byte3);
    } else if ((byte1 & 248) === 240) {
      const byte2 = bytes2[offset++] & 63;
      const byte3 = bytes2[offset++] & 63;
      const byte4 = bytes2[offset++] & 63;
      let unit = (byte1 & 7) << 18 | byte2 << 12 | byte3 << 6 | byte4;
      if (unit > 65535) {
        unit -= 65536;
        units.push(unit >>> 10 & 1023 | 55296);
        unit = 56320 | unit & 1023;
      }
      units.push(unit);
    } else {
      units.push(byte1);
    }
    if (units.length >= CHUNK_SIZE) {
      result += String.fromCharCode(...units);
      units.length = 0;
    }
  }
  if (units.length > 0) {
    result += String.fromCharCode(...units);
  }
  return result;
}
function utf8DecodeTD(bytes2, inputOffset, byteLength2) {
  const stringBytes = bytes2.subarray(inputOffset, inputOffset + byteLength2);
  return sharedTextDecoder.decode(stringBytes);
}
function utf8Decode(bytes2, inputOffset, byteLength2) {
  if (byteLength2 > TEXT_DECODER_THRESHOLD) {
    return utf8DecodeTD(bytes2, inputOffset, byteLength2);
  } else {
    return utf8DecodeJs(bytes2, inputOffset, byteLength2);
  }
}
var sharedTextEncoder, TEXT_ENCODER_THRESHOLD, CHUNK_SIZE, sharedTextDecoder, TEXT_DECODER_THRESHOLD;
var init_utf8 = __esm({
  "node_modules/@msgpack/msgpack/dist.esm/utils/utf8.mjs"() {
    sharedTextEncoder = new TextEncoder();
    TEXT_ENCODER_THRESHOLD = 50;
    CHUNK_SIZE = 4096;
    sharedTextDecoder = new TextDecoder();
    TEXT_DECODER_THRESHOLD = 200;
  }
});

// node_modules/@msgpack/msgpack/dist.esm/ExtData.mjs
var ExtData;
var init_ExtData = __esm({
  "node_modules/@msgpack/msgpack/dist.esm/ExtData.mjs"() {
    ExtData = class {
      type;
      data;
      constructor(type, data) {
        this.type = type;
        this.data = data;
      }
    };
  }
});

// node_modules/@msgpack/msgpack/dist.esm/DecodeError.mjs
var DecodeError;
var init_DecodeError = __esm({
  "node_modules/@msgpack/msgpack/dist.esm/DecodeError.mjs"() {
    DecodeError = class _DecodeError extends Error {
      constructor(message) {
        super(message);
        const proto = Object.create(_DecodeError.prototype);
        Object.setPrototypeOf(this, proto);
        Object.defineProperty(this, "name", {
          configurable: true,
          enumerable: false,
          value: _DecodeError.name
        });
      }
    };
  }
});

// node_modules/@msgpack/msgpack/dist.esm/utils/int.mjs
function setUint64(view, offset, value) {
  const high = value / 4294967296;
  const low = value;
  view.setUint32(offset, high);
  view.setUint32(offset + 4, low);
}
function setInt64(view, offset, value) {
  const high = Math.floor(value / 4294967296);
  const low = value;
  view.setUint32(offset, high);
  view.setUint32(offset + 4, low);
}
function getInt64(view, offset) {
  const high = view.getInt32(offset);
  const low = view.getUint32(offset + 4);
  return high * 4294967296 + low;
}
function getUint64(view, offset) {
  const high = view.getUint32(offset);
  const low = view.getUint32(offset + 4);
  return high * 4294967296 + low;
}
var UINT32_MAX;
var init_int = __esm({
  "node_modules/@msgpack/msgpack/dist.esm/utils/int.mjs"() {
    UINT32_MAX = 4294967295;
  }
});

// node_modules/@msgpack/msgpack/dist.esm/timestamp.mjs
function encodeTimeSpecToTimestamp({ sec, nsec }) {
  if (sec >= 0 && nsec >= 0 && sec <= TIMESTAMP64_MAX_SEC) {
    if (nsec === 0 && sec <= TIMESTAMP32_MAX_SEC) {
      const rv = new Uint8Array(4);
      const view = new DataView(rv.buffer);
      view.setUint32(0, sec);
      return rv;
    } else {
      const secHigh = sec / 4294967296;
      const secLow = sec & 4294967295;
      const rv = new Uint8Array(8);
      const view = new DataView(rv.buffer);
      view.setUint32(0, nsec << 2 | secHigh & 3);
      view.setUint32(4, secLow);
      return rv;
    }
  } else {
    const rv = new Uint8Array(12);
    const view = new DataView(rv.buffer);
    view.setUint32(0, nsec);
    setInt64(view, 4, sec);
    return rv;
  }
}
function encodeDateToTimeSpec(date) {
  const msec = date.getTime();
  const sec = Math.floor(msec / 1e3);
  const nsec = (msec - sec * 1e3) * 1e6;
  const nsecInSec = Math.floor(nsec / 1e9);
  return {
    sec: sec + nsecInSec,
    nsec: nsec - nsecInSec * 1e9
  };
}
function encodeTimestampExtension(object) {
  if (object instanceof Date) {
    const timeSpec = encodeDateToTimeSpec(object);
    return encodeTimeSpecToTimestamp(timeSpec);
  } else {
    return null;
  }
}
function decodeTimestampToTimeSpec(data) {
  const view = new DataView(data.buffer, data.byteOffset, data.byteLength);
  switch (data.byteLength) {
    case 4: {
      const sec = view.getUint32(0);
      const nsec = 0;
      return { sec, nsec };
    }
    case 8: {
      const nsec30AndSecHigh2 = view.getUint32(0);
      const secLow32 = view.getUint32(4);
      const sec = (nsec30AndSecHigh2 & 3) * 4294967296 + secLow32;
      const nsec = nsec30AndSecHigh2 >>> 2;
      return { sec, nsec };
    }
    case 12: {
      const sec = getInt64(view, 4);
      const nsec = view.getUint32(0);
      return { sec, nsec };
    }
    default:
      throw new DecodeError(`Unrecognized data size for timestamp (expected 4, 8, or 12): ${data.length}`);
  }
}
function decodeTimestampExtension(data) {
  const timeSpec = decodeTimestampToTimeSpec(data);
  return new Date(timeSpec.sec * 1e3 + timeSpec.nsec / 1e6);
}
var EXT_TIMESTAMP, TIMESTAMP32_MAX_SEC, TIMESTAMP64_MAX_SEC, timestampExtension;
var init_timestamp = __esm({
  "node_modules/@msgpack/msgpack/dist.esm/timestamp.mjs"() {
    init_DecodeError();
    init_int();
    EXT_TIMESTAMP = -1;
    TIMESTAMP32_MAX_SEC = 4294967296 - 1;
    TIMESTAMP64_MAX_SEC = 17179869184 - 1;
    timestampExtension = {
      type: EXT_TIMESTAMP,
      encode: encodeTimestampExtension,
      decode: decodeTimestampExtension
    };
  }
});

// node_modules/@msgpack/msgpack/dist.esm/ExtensionCodec.mjs
var ExtensionCodec;
var init_ExtensionCodec = __esm({
  "node_modules/@msgpack/msgpack/dist.esm/ExtensionCodec.mjs"() {
    init_ExtData();
    init_timestamp();
    ExtensionCodec = class _ExtensionCodec {
      static defaultCodec = new _ExtensionCodec();
      // ensures ExtensionCodecType matches ExtensionCodec
      // this will make type errors a lot more clear
      // eslint-disable-next-line @typescript-eslint/naming-convention
      __brand;
      // built-in extensions
      builtInEncoders = [];
      builtInDecoders = [];
      // custom extensions
      encoders = [];
      decoders = [];
      constructor() {
        this.register(timestampExtension);
      }
      register({ type, encode: encode2, decode: decode2 }) {
        if (type >= 0) {
          this.encoders[type] = encode2;
          this.decoders[type] = decode2;
        } else {
          const index = -1 - type;
          this.builtInEncoders[index] = encode2;
          this.builtInDecoders[index] = decode2;
        }
      }
      tryToEncode(object, context) {
        for (let i2 = 0; i2 < this.builtInEncoders.length; i2++) {
          const encodeExt = this.builtInEncoders[i2];
          if (encodeExt != null) {
            const data = encodeExt(object, context);
            if (data != null) {
              const type = -1 - i2;
              return new ExtData(type, data);
            }
          }
        }
        for (let i2 = 0; i2 < this.encoders.length; i2++) {
          const encodeExt = this.encoders[i2];
          if (encodeExt != null) {
            const data = encodeExt(object, context);
            if (data != null) {
              const type = i2;
              return new ExtData(type, data);
            }
          }
        }
        if (object instanceof ExtData) {
          return object;
        }
        return null;
      }
      decode(data, type, context) {
        const decodeExt = type < 0 ? this.builtInDecoders[-1 - type] : this.decoders[type];
        if (decodeExt) {
          return decodeExt(data, type, context);
        } else {
          return new ExtData(type, data);
        }
      }
    };
  }
});

// node_modules/@msgpack/msgpack/dist.esm/utils/typedArrays.mjs
function isArrayBufferLike(buffer) {
  return buffer instanceof ArrayBuffer || typeof SharedArrayBuffer !== "undefined" && buffer instanceof SharedArrayBuffer;
}
function ensureUint8Array(buffer) {
  if (buffer instanceof Uint8Array) {
    return buffer;
  } else if (ArrayBuffer.isView(buffer)) {
    return new Uint8Array(buffer.buffer, buffer.byteOffset, buffer.byteLength);
  } else if (isArrayBufferLike(buffer)) {
    return new Uint8Array(buffer);
  } else {
    return Uint8Array.from(buffer);
  }
}
var init_typedArrays = __esm({
  "node_modules/@msgpack/msgpack/dist.esm/utils/typedArrays.mjs"() {
  }
});

// node_modules/@msgpack/msgpack/dist.esm/Encoder.mjs
var DEFAULT_MAX_DEPTH, DEFAULT_INITIAL_BUFFER_SIZE, Encoder;
var init_Encoder = __esm({
  "node_modules/@msgpack/msgpack/dist.esm/Encoder.mjs"() {
    init_utf8();
    init_ExtensionCodec();
    init_int();
    init_typedArrays();
    DEFAULT_MAX_DEPTH = 100;
    DEFAULT_INITIAL_BUFFER_SIZE = 2048;
    Encoder = class _Encoder {
      extensionCodec;
      context;
      useBigInt64;
      maxDepth;
      initialBufferSize;
      sortKeys;
      forceFloat32;
      ignoreUndefined;
      forceIntegerToFloat;
      pos;
      view;
      bytes;
      entered = false;
      constructor(options3) {
        this.extensionCodec = options3?.extensionCodec ?? ExtensionCodec.defaultCodec;
        this.context = options3?.context;
        this.useBigInt64 = options3?.useBigInt64 ?? false;
        this.maxDepth = options3?.maxDepth ?? DEFAULT_MAX_DEPTH;
        this.initialBufferSize = options3?.initialBufferSize ?? DEFAULT_INITIAL_BUFFER_SIZE;
        this.sortKeys = options3?.sortKeys ?? false;
        this.forceFloat32 = options3?.forceFloat32 ?? false;
        this.ignoreUndefined = options3?.ignoreUndefined ?? false;
        this.forceIntegerToFloat = options3?.forceIntegerToFloat ?? false;
        this.pos = 0;
        this.view = new DataView(new ArrayBuffer(this.initialBufferSize));
        this.bytes = new Uint8Array(this.view.buffer);
      }
      clone() {
        return new _Encoder({
          extensionCodec: this.extensionCodec,
          context: this.context,
          useBigInt64: this.useBigInt64,
          maxDepth: this.maxDepth,
          initialBufferSize: this.initialBufferSize,
          sortKeys: this.sortKeys,
          forceFloat32: this.forceFloat32,
          ignoreUndefined: this.ignoreUndefined,
          forceIntegerToFloat: this.forceIntegerToFloat
        });
      }
      reinitializeState() {
        this.pos = 0;
      }
      /**
       * This is almost equivalent to {@link Encoder#encode}, but it returns an reference of the encoder's internal buffer and thus much faster than {@link Encoder#encode}.
       *
       * @returns Encodes the object and returns a shared reference the encoder's internal buffer.
       */
      encodeSharedRef(object) {
        if (this.entered) {
          const instance2 = this.clone();
          return instance2.encodeSharedRef(object);
        }
        try {
          this.entered = true;
          this.reinitializeState();
          this.doEncode(object, 1);
          return this.bytes.subarray(0, this.pos);
        } finally {
          this.entered = false;
        }
      }
      /**
       * @returns Encodes the object and returns a copy of the encoder's internal buffer.
       */
      encode(object) {
        if (this.entered) {
          const instance2 = this.clone();
          return instance2.encode(object);
        }
        try {
          this.entered = true;
          this.reinitializeState();
          this.doEncode(object, 1);
          return this.bytes.slice(0, this.pos);
        } finally {
          this.entered = false;
        }
      }
      doEncode(object, depth) {
        if (depth > this.maxDepth) {
          throw new Error(`Too deep objects in depth ${depth}`);
        }
        if (object == null) {
          this.encodeNil();
        } else if (typeof object === "boolean") {
          this.encodeBoolean(object);
        } else if (typeof object === "number") {
          if (!this.forceIntegerToFloat) {
            this.encodeNumber(object);
          } else {
            this.encodeNumberAsFloat(object);
          }
        } else if (typeof object === "string") {
          this.encodeString(object);
        } else if (this.useBigInt64 && typeof object === "bigint") {
          this.encodeBigInt64(object);
        } else {
          this.encodeObject(object, depth);
        }
      }
      ensureBufferSizeToWrite(sizeToWrite) {
        const requiredSize = this.pos + sizeToWrite;
        if (this.view.byteLength < requiredSize) {
          this.resizeBuffer(requiredSize * 2);
        }
      }
      resizeBuffer(newSize) {
        const newBuffer = new ArrayBuffer(newSize);
        const newBytes = new Uint8Array(newBuffer);
        const newView = new DataView(newBuffer);
        newBytes.set(this.bytes);
        this.view = newView;
        this.bytes = newBytes;
      }
      encodeNil() {
        this.writeU8(192);
      }
      encodeBoolean(object) {
        if (object === false) {
          this.writeU8(194);
        } else {
          this.writeU8(195);
        }
      }
      encodeNumber(object) {
        if (!this.forceIntegerToFloat && Number.isSafeInteger(object)) {
          if (object >= 0) {
            if (object < 128) {
              this.writeU8(object);
            } else if (object < 256) {
              this.writeU8(204);
              this.writeU8(object);
            } else if (object < 65536) {
              this.writeU8(205);
              this.writeU16(object);
            } else if (object < 4294967296) {
              this.writeU8(206);
              this.writeU32(object);
            } else if (!this.useBigInt64) {
              this.writeU8(207);
              this.writeU64(object);
            } else {
              this.encodeNumberAsFloat(object);
            }
          } else {
            if (object >= -32) {
              this.writeU8(224 | object + 32);
            } else if (object >= -128) {
              this.writeU8(208);
              this.writeI8(object);
            } else if (object >= -32768) {
              this.writeU8(209);
              this.writeI16(object);
            } else if (object >= -2147483648) {
              this.writeU8(210);
              this.writeI32(object);
            } else if (!this.useBigInt64) {
              this.writeU8(211);
              this.writeI64(object);
            } else {
              this.encodeNumberAsFloat(object);
            }
          }
        } else {
          this.encodeNumberAsFloat(object);
        }
      }
      encodeNumberAsFloat(object) {
        if (this.forceFloat32) {
          this.writeU8(202);
          this.writeF32(object);
        } else {
          this.writeU8(203);
          this.writeF64(object);
        }
      }
      encodeBigInt64(object) {
        if (object >= BigInt(0)) {
          this.writeU8(207);
          this.writeBigUint64(object);
        } else {
          this.writeU8(211);
          this.writeBigInt64(object);
        }
      }
      writeStringHeader(byteLength2) {
        if (byteLength2 < 32) {
          this.writeU8(160 + byteLength2);
        } else if (byteLength2 < 256) {
          this.writeU8(217);
          this.writeU8(byteLength2);
        } else if (byteLength2 < 65536) {
          this.writeU8(218);
          this.writeU16(byteLength2);
        } else if (byteLength2 < 4294967296) {
          this.writeU8(219);
          this.writeU32(byteLength2);
        } else {
          throw new Error(`Too long string: ${byteLength2} bytes in UTF-8`);
        }
      }
      encodeString(object) {
        const maxHeaderSize = 1 + 4;
        const byteLength2 = utf8Count(object);
        this.ensureBufferSizeToWrite(maxHeaderSize + byteLength2);
        this.writeStringHeader(byteLength2);
        utf8Encode(object, this.bytes, this.pos);
        this.pos += byteLength2;
      }
      encodeObject(object, depth) {
        const ext2 = this.extensionCodec.tryToEncode(object, this.context);
        if (ext2 != null) {
          this.encodeExtension(ext2);
        } else if (Array.isArray(object)) {
          this.encodeArray(object, depth);
        } else if (ArrayBuffer.isView(object)) {
          this.encodeBinary(object);
        } else if (typeof object === "object") {
          this.encodeMap(object, depth);
        } else {
          throw new Error(`Unrecognized object: ${Object.prototype.toString.apply(object)}`);
        }
      }
      encodeBinary(object) {
        const size = object.byteLength;
        if (size < 256) {
          this.writeU8(196);
          this.writeU8(size);
        } else if (size < 65536) {
          this.writeU8(197);
          this.writeU16(size);
        } else if (size < 4294967296) {
          this.writeU8(198);
          this.writeU32(size);
        } else {
          throw new Error(`Too large binary: ${size}`);
        }
        const bytes2 = ensureUint8Array(object);
        this.writeU8a(bytes2);
      }
      encodeArray(object, depth) {
        const size = object.length;
        if (size < 16) {
          this.writeU8(144 + size);
        } else if (size < 65536) {
          this.writeU8(220);
          this.writeU16(size);
        } else if (size < 4294967296) {
          this.writeU8(221);
          this.writeU32(size);
        } else {
          throw new Error(`Too large array: ${size}`);
        }
        for (const item of object) {
          this.doEncode(item, depth + 1);
        }
      }
      countWithoutUndefined(object, keys) {
        let count = 0;
        for (const key of keys) {
          if (object[key] !== void 0) {
            count++;
          }
        }
        return count;
      }
      encodeMap(object, depth) {
        const keys = Object.keys(object);
        if (this.sortKeys) {
          keys.sort();
        }
        const size = this.ignoreUndefined ? this.countWithoutUndefined(object, keys) : keys.length;
        if (size < 16) {
          this.writeU8(128 + size);
        } else if (size < 65536) {
          this.writeU8(222);
          this.writeU16(size);
        } else if (size < 4294967296) {
          this.writeU8(223);
          this.writeU32(size);
        } else {
          throw new Error(`Too large map object: ${size}`);
        }
        for (const key of keys) {
          const value = object[key];
          if (!(this.ignoreUndefined && value === void 0)) {
            this.encodeString(key);
            this.doEncode(value, depth + 1);
          }
        }
      }
      encodeExtension(ext2) {
        if (typeof ext2.data === "function") {
          const data = ext2.data(this.pos + 6);
          const size2 = data.length;
          if (size2 >= 4294967296) {
            throw new Error(`Too large extension object: ${size2}`);
          }
          this.writeU8(201);
          this.writeU32(size2);
          this.writeI8(ext2.type);
          this.writeU8a(data);
          return;
        }
        const size = ext2.data.length;
        if (size === 1) {
          this.writeU8(212);
        } else if (size === 2) {
          this.writeU8(213);
        } else if (size === 4) {
          this.writeU8(214);
        } else if (size === 8) {
          this.writeU8(215);
        } else if (size === 16) {
          this.writeU8(216);
        } else if (size < 256) {
          this.writeU8(199);
          this.writeU8(size);
        } else if (size < 65536) {
          this.writeU8(200);
          this.writeU16(size);
        } else if (size < 4294967296) {
          this.writeU8(201);
          this.writeU32(size);
        } else {
          throw new Error(`Too large extension object: ${size}`);
        }
        this.writeI8(ext2.type);
        this.writeU8a(ext2.data);
      }
      writeU8(value) {
        this.ensureBufferSizeToWrite(1);
        this.view.setUint8(this.pos, value);
        this.pos++;
      }
      writeU8a(values) {
        const size = values.length;
        this.ensureBufferSizeToWrite(size);
        this.bytes.set(values, this.pos);
        this.pos += size;
      }
      writeI8(value) {
        this.ensureBufferSizeToWrite(1);
        this.view.setInt8(this.pos, value);
        this.pos++;
      }
      writeU16(value) {
        this.ensureBufferSizeToWrite(2);
        this.view.setUint16(this.pos, value);
        this.pos += 2;
      }
      writeI16(value) {
        this.ensureBufferSizeToWrite(2);
        this.view.setInt16(this.pos, value);
        this.pos += 2;
      }
      writeU32(value) {
        this.ensureBufferSizeToWrite(4);
        this.view.setUint32(this.pos, value);
        this.pos += 4;
      }
      writeI32(value) {
        this.ensureBufferSizeToWrite(4);
        this.view.setInt32(this.pos, value);
        this.pos += 4;
      }
      writeF32(value) {
        this.ensureBufferSizeToWrite(4);
        this.view.setFloat32(this.pos, value);
        this.pos += 4;
      }
      writeF64(value) {
        this.ensureBufferSizeToWrite(8);
        this.view.setFloat64(this.pos, value);
        this.pos += 8;
      }
      writeU64(value) {
        this.ensureBufferSizeToWrite(8);
        setUint64(this.view, this.pos, value);
        this.pos += 8;
      }
      writeI64(value) {
        this.ensureBufferSizeToWrite(8);
        setInt64(this.view, this.pos, value);
        this.pos += 8;
      }
      writeBigUint64(value) {
        this.ensureBufferSizeToWrite(8);
        this.view.setBigUint64(this.pos, value);
        this.pos += 8;
      }
      writeBigInt64(value) {
        this.ensureBufferSizeToWrite(8);
        this.view.setBigInt64(this.pos, value);
        this.pos += 8;
      }
    };
  }
});

// node_modules/@msgpack/msgpack/dist.esm/encode.mjs
function encode(value, options3) {
  const encoder = new Encoder(options3);
  return encoder.encodeSharedRef(value);
}
var init_encode = __esm({
  "node_modules/@msgpack/msgpack/dist.esm/encode.mjs"() {
    init_Encoder();
  }
});

// node_modules/@msgpack/msgpack/dist.esm/utils/prettyByte.mjs
function prettyByte(byte) {
  return `${byte < 0 ? "-" : ""}0x${Math.abs(byte).toString(16).padStart(2, "0")}`;
}
var init_prettyByte = __esm({
  "node_modules/@msgpack/msgpack/dist.esm/utils/prettyByte.mjs"() {
  }
});

// node_modules/@msgpack/msgpack/dist.esm/CachedKeyDecoder.mjs
var DEFAULT_MAX_KEY_LENGTH, DEFAULT_MAX_LENGTH_PER_KEY, CachedKeyDecoder;
var init_CachedKeyDecoder = __esm({
  "node_modules/@msgpack/msgpack/dist.esm/CachedKeyDecoder.mjs"() {
    init_utf8();
    DEFAULT_MAX_KEY_LENGTH = 16;
    DEFAULT_MAX_LENGTH_PER_KEY = 16;
    CachedKeyDecoder = class {
      hit = 0;
      miss = 0;
      caches;
      maxKeyLength;
      maxLengthPerKey;
      constructor(maxKeyLength = DEFAULT_MAX_KEY_LENGTH, maxLengthPerKey = DEFAULT_MAX_LENGTH_PER_KEY) {
        this.maxKeyLength = maxKeyLength;
        this.maxLengthPerKey = maxLengthPerKey;
        this.caches = [];
        for (let i2 = 0; i2 < this.maxKeyLength; i2++) {
          this.caches.push([]);
        }
      }
      canBeCached(byteLength2) {
        return byteLength2 > 0 && byteLength2 <= this.maxKeyLength;
      }
      find(bytes2, inputOffset, byteLength2) {
        const records = this.caches[byteLength2 - 1];
        FIND_CHUNK: for (const record of records) {
          const recordBytes = record.bytes;
          for (let j = 0; j < byteLength2; j++) {
            if (recordBytes[j] !== bytes2[inputOffset + j]) {
              continue FIND_CHUNK;
            }
          }
          return record.str;
        }
        return null;
      }
      store(bytes2, value) {
        const records = this.caches[bytes2.length - 1];
        const record = { bytes: bytes2, str: value };
        if (records.length >= this.maxLengthPerKey) {
          records[Math.random() * records.length | 0] = record;
        } else {
          records.push(record);
        }
      }
      decode(bytes2, inputOffset, byteLength2) {
        const cachedValue = this.find(bytes2, inputOffset, byteLength2);
        if (cachedValue != null) {
          this.hit++;
          return cachedValue;
        }
        this.miss++;
        const str = utf8DecodeJs(bytes2, inputOffset, byteLength2);
        const slicedCopyOfBytes = Uint8Array.prototype.slice.call(bytes2, inputOffset, inputOffset + byteLength2);
        this.store(slicedCopyOfBytes, str);
        return str;
      }
    };
  }
});

// node_modules/@msgpack/msgpack/dist.esm/Decoder.mjs
var STATE_ARRAY, STATE_MAP_KEY, STATE_MAP_VALUE, mapKeyConverter, StackPool, HEAD_BYTE_REQUIRED, EMPTY_VIEW, EMPTY_BYTES, MORE_DATA, sharedCachedKeyDecoder, Decoder;
var init_Decoder = __esm({
  "node_modules/@msgpack/msgpack/dist.esm/Decoder.mjs"() {
    init_prettyByte();
    init_ExtensionCodec();
    init_int();
    init_utf8();
    init_typedArrays();
    init_CachedKeyDecoder();
    init_DecodeError();
    STATE_ARRAY = "array";
    STATE_MAP_KEY = "map_key";
    STATE_MAP_VALUE = "map_value";
    mapKeyConverter = (key) => {
      if (typeof key === "string" || typeof key === "number") {
        return key;
      }
      throw new DecodeError("The type of key must be string or number but " + typeof key);
    };
    StackPool = class {
      stack = [];
      stackHeadPosition = -1;
      get length() {
        return this.stackHeadPosition + 1;
      }
      top() {
        return this.stack[this.stackHeadPosition];
      }
      pushArrayState(size) {
        const state = this.getUninitializedStateFromPool();
        state.type = STATE_ARRAY;
        state.position = 0;
        state.size = size;
        state.array = new Array(size);
      }
      pushMapState(size) {
        const state = this.getUninitializedStateFromPool();
        state.type = STATE_MAP_KEY;
        state.readCount = 0;
        state.size = size;
        state.map = {};
      }
      getUninitializedStateFromPool() {
        this.stackHeadPosition++;
        if (this.stackHeadPosition === this.stack.length) {
          const partialState = {
            type: void 0,
            size: 0,
            array: void 0,
            position: 0,
            readCount: 0,
            map: void 0,
            key: null
          };
          this.stack.push(partialState);
        }
        return this.stack[this.stackHeadPosition];
      }
      release(state) {
        const topStackState = this.stack[this.stackHeadPosition];
        if (topStackState !== state) {
          throw new Error("Invalid stack state. Released state is not on top of the stack.");
        }
        if (state.type === STATE_ARRAY) {
          const partialState = state;
          partialState.size = 0;
          partialState.array = void 0;
          partialState.position = 0;
          partialState.type = void 0;
        }
        if (state.type === STATE_MAP_KEY || state.type === STATE_MAP_VALUE) {
          const partialState = state;
          partialState.size = 0;
          partialState.map = void 0;
          partialState.readCount = 0;
          partialState.type = void 0;
        }
        this.stackHeadPosition--;
      }
      reset() {
        this.stack.length = 0;
        this.stackHeadPosition = -1;
      }
    };
    HEAD_BYTE_REQUIRED = -1;
    EMPTY_VIEW = new DataView(new ArrayBuffer(0));
    EMPTY_BYTES = new Uint8Array(EMPTY_VIEW.buffer);
    try {
      EMPTY_VIEW.getInt8(0);
    } catch (e2) {
      if (!(e2 instanceof RangeError)) {
        throw new Error("This module is not supported in the current JavaScript engine because DataView does not throw RangeError on out-of-bounds access");
      }
    }
    MORE_DATA = new RangeError("Insufficient data");
    sharedCachedKeyDecoder = new CachedKeyDecoder();
    Decoder = class _Decoder {
      extensionCodec;
      context;
      useBigInt64;
      rawStrings;
      maxStrLength;
      maxBinLength;
      maxArrayLength;
      maxMapLength;
      maxExtLength;
      keyDecoder;
      mapKeyConverter;
      totalPos = 0;
      pos = 0;
      view = EMPTY_VIEW;
      bytes = EMPTY_BYTES;
      headByte = HEAD_BYTE_REQUIRED;
      stack = new StackPool();
      entered = false;
      constructor(options3) {
        this.extensionCodec = options3?.extensionCodec ?? ExtensionCodec.defaultCodec;
        this.context = options3?.context;
        this.useBigInt64 = options3?.useBigInt64 ?? false;
        this.rawStrings = options3?.rawStrings ?? false;
        this.maxStrLength = options3?.maxStrLength ?? UINT32_MAX;
        this.maxBinLength = options3?.maxBinLength ?? UINT32_MAX;
        this.maxArrayLength = options3?.maxArrayLength ?? UINT32_MAX;
        this.maxMapLength = options3?.maxMapLength ?? UINT32_MAX;
        this.maxExtLength = options3?.maxExtLength ?? UINT32_MAX;
        this.keyDecoder = options3?.keyDecoder !== void 0 ? options3.keyDecoder : sharedCachedKeyDecoder;
        this.mapKeyConverter = options3?.mapKeyConverter ?? mapKeyConverter;
      }
      clone() {
        return new _Decoder({
          extensionCodec: this.extensionCodec,
          context: this.context,
          useBigInt64: this.useBigInt64,
          rawStrings: this.rawStrings,
          maxStrLength: this.maxStrLength,
          maxBinLength: this.maxBinLength,
          maxArrayLength: this.maxArrayLength,
          maxMapLength: this.maxMapLength,
          maxExtLength: this.maxExtLength,
          keyDecoder: this.keyDecoder
        });
      }
      reinitializeState() {
        this.totalPos = 0;
        this.headByte = HEAD_BYTE_REQUIRED;
        this.stack.reset();
      }
      setBuffer(buffer) {
        const bytes2 = ensureUint8Array(buffer);
        this.bytes = bytes2;
        this.view = new DataView(bytes2.buffer, bytes2.byteOffset, bytes2.byteLength);
        this.pos = 0;
      }
      appendBuffer(buffer) {
        if (this.headByte === HEAD_BYTE_REQUIRED && !this.hasRemaining(1)) {
          this.setBuffer(buffer);
        } else {
          const remainingData = this.bytes.subarray(this.pos);
          const newData = ensureUint8Array(buffer);
          const newBuffer = new Uint8Array(remainingData.length + newData.length);
          newBuffer.set(remainingData);
          newBuffer.set(newData, remainingData.length);
          this.setBuffer(newBuffer);
        }
      }
      hasRemaining(size) {
        return this.view.byteLength - this.pos >= size;
      }
      createExtraByteError(posToShow) {
        const { view, pos } = this;
        return new RangeError(`Extra ${view.byteLength - pos} of ${view.byteLength} byte(s) found at buffer[${posToShow}]`);
      }
      /**
       * @throws {@link DecodeError}
       * @throws {@link RangeError}
       */
      decode(buffer) {
        if (this.entered) {
          const instance2 = this.clone();
          return instance2.decode(buffer);
        }
        try {
          this.entered = true;
          this.reinitializeState();
          this.setBuffer(buffer);
          const object = this.doDecodeSync();
          if (this.hasRemaining(1)) {
            throw this.createExtraByteError(this.pos);
          }
          return object;
        } finally {
          this.entered = false;
        }
      }
      *decodeMulti(buffer) {
        if (this.entered) {
          const instance2 = this.clone();
          yield* instance2.decodeMulti(buffer);
          return;
        }
        try {
          this.entered = true;
          this.reinitializeState();
          this.setBuffer(buffer);
          while (this.hasRemaining(1)) {
            yield this.doDecodeSync();
          }
        } finally {
          this.entered = false;
        }
      }
      async decodeAsync(stream) {
        if (this.entered) {
          const instance2 = this.clone();
          return instance2.decodeAsync(stream);
        }
        try {
          this.entered = true;
          let decoded = false;
          let object;
          for await (const buffer of stream) {
            if (decoded) {
              this.entered = false;
              throw this.createExtraByteError(this.totalPos);
            }
            this.appendBuffer(buffer);
            try {
              object = this.doDecodeSync();
              decoded = true;
            } catch (e2) {
              if (!(e2 instanceof RangeError)) {
                throw e2;
              }
            }
            this.totalPos += this.pos;
          }
          if (decoded) {
            if (this.hasRemaining(1)) {
              throw this.createExtraByteError(this.totalPos);
            }
            return object;
          }
          const { headByte, pos, totalPos } = this;
          throw new RangeError(`Insufficient data in parsing ${prettyByte(headByte)} at ${totalPos} (${pos} in the current buffer)`);
        } finally {
          this.entered = false;
        }
      }
      decodeArrayStream(stream) {
        return this.decodeMultiAsync(stream, true);
      }
      decodeStream(stream) {
        return this.decodeMultiAsync(stream, false);
      }
      async *decodeMultiAsync(stream, isArray) {
        if (this.entered) {
          const instance2 = this.clone();
          yield* instance2.decodeMultiAsync(stream, isArray);
          return;
        }
        try {
          this.entered = true;
          let isArrayHeaderRequired = isArray;
          let arrayItemsLeft = -1;
          for await (const buffer of stream) {
            if (isArray && arrayItemsLeft === 0) {
              throw this.createExtraByteError(this.totalPos);
            }
            this.appendBuffer(buffer);
            if (isArrayHeaderRequired) {
              arrayItemsLeft = this.readArraySize();
              isArrayHeaderRequired = false;
              this.complete();
            }
            try {
              while (true) {
                yield this.doDecodeSync();
                if (--arrayItemsLeft === 0) {
                  break;
                }
              }
            } catch (e2) {
              if (!(e2 instanceof RangeError)) {
                throw e2;
              }
            }
            this.totalPos += this.pos;
          }
        } finally {
          this.entered = false;
        }
      }
      doDecodeSync() {
        DECODE: while (true) {
          const headByte = this.readHeadByte();
          let object;
          if (headByte >= 224) {
            object = headByte - 256;
          } else if (headByte < 192) {
            if (headByte < 128) {
              object = headByte;
            } else if (headByte < 144) {
              const size = headByte - 128;
              if (size !== 0) {
                this.pushMapState(size);
                this.complete();
                continue DECODE;
              } else {
                object = {};
              }
            } else if (headByte < 160) {
              const size = headByte - 144;
              if (size !== 0) {
                this.pushArrayState(size);
                this.complete();
                continue DECODE;
              } else {
                object = [];
              }
            } else {
              const byteLength2 = headByte - 160;
              object = this.decodeString(byteLength2, 0);
            }
          } else if (headByte === 192) {
            object = null;
          } else if (headByte === 194) {
            object = false;
          } else if (headByte === 195) {
            object = true;
          } else if (headByte === 202) {
            object = this.readF32();
          } else if (headByte === 203) {
            object = this.readF64();
          } else if (headByte === 204) {
            object = this.readU8();
          } else if (headByte === 205) {
            object = this.readU16();
          } else if (headByte === 206) {
            object = this.readU32();
          } else if (headByte === 207) {
            if (this.useBigInt64) {
              object = this.readU64AsBigInt();
            } else {
              object = this.readU64();
            }
          } else if (headByte === 208) {
            object = this.readI8();
          } else if (headByte === 209) {
            object = this.readI16();
          } else if (headByte === 210) {
            object = this.readI32();
          } else if (headByte === 211) {
            if (this.useBigInt64) {
              object = this.readI64AsBigInt();
            } else {
              object = this.readI64();
            }
          } else if (headByte === 217) {
            const byteLength2 = this.lookU8();
            object = this.decodeString(byteLength2, 1);
          } else if (headByte === 218) {
            const byteLength2 = this.lookU16();
            object = this.decodeString(byteLength2, 2);
          } else if (headByte === 219) {
            const byteLength2 = this.lookU32();
            object = this.decodeString(byteLength2, 4);
          } else if (headByte === 220) {
            const size = this.readU16();
            if (size !== 0) {
              this.pushArrayState(size);
              this.complete();
              continue DECODE;
            } else {
              object = [];
            }
          } else if (headByte === 221) {
            const size = this.readU32();
            if (size !== 0) {
              this.pushArrayState(size);
              this.complete();
              continue DECODE;
            } else {
              object = [];
            }
          } else if (headByte === 222) {
            const size = this.readU16();
            if (size !== 0) {
              this.pushMapState(size);
              this.complete();
              continue DECODE;
            } else {
              object = {};
            }
          } else if (headByte === 223) {
            const size = this.readU32();
            if (size !== 0) {
              this.pushMapState(size);
              this.complete();
              continue DECODE;
            } else {
              object = {};
            }
          } else if (headByte === 196) {
            const size = this.lookU8();
            object = this.decodeBinary(size, 1);
          } else if (headByte === 197) {
            const size = this.lookU16();
            object = this.decodeBinary(size, 2);
          } else if (headByte === 198) {
            const size = this.lookU32();
            object = this.decodeBinary(size, 4);
          } else if (headByte === 212) {
            object = this.decodeExtension(1, 0);
          } else if (headByte === 213) {
            object = this.decodeExtension(2, 0);
          } else if (headByte === 214) {
            object = this.decodeExtension(4, 0);
          } else if (headByte === 215) {
            object = this.decodeExtension(8, 0);
          } else if (headByte === 216) {
            object = this.decodeExtension(16, 0);
          } else if (headByte === 199) {
            const size = this.lookU8();
            object = this.decodeExtension(size, 1);
          } else if (headByte === 200) {
            const size = this.lookU16();
            object = this.decodeExtension(size, 2);
          } else if (headByte === 201) {
            const size = this.lookU32();
            object = this.decodeExtension(size, 4);
          } else {
            throw new DecodeError(`Unrecognized type byte: ${prettyByte(headByte)}`);
          }
          this.complete();
          const stack = this.stack;
          while (stack.length > 0) {
            const state = stack.top();
            if (state.type === STATE_ARRAY) {
              state.array[state.position] = object;
              state.position++;
              if (state.position === state.size) {
                object = state.array;
                stack.release(state);
              } else {
                continue DECODE;
              }
            } else if (state.type === STATE_MAP_KEY) {
              if (object === "__proto__") {
                throw new DecodeError("The key __proto__ is not allowed");
              }
              state.key = this.mapKeyConverter(object);
              state.type = STATE_MAP_VALUE;
              continue DECODE;
            } else {
              state.map[state.key] = object;
              state.readCount++;
              if (state.readCount === state.size) {
                object = state.map;
                stack.release(state);
              } else {
                state.key = null;
                state.type = STATE_MAP_KEY;
                continue DECODE;
              }
            }
          }
          return object;
        }
      }
      readHeadByte() {
        if (this.headByte === HEAD_BYTE_REQUIRED) {
          this.headByte = this.readU8();
        }
        return this.headByte;
      }
      complete() {
        this.headByte = HEAD_BYTE_REQUIRED;
      }
      readArraySize() {
        const headByte = this.readHeadByte();
        switch (headByte) {
          case 220:
            return this.readU16();
          case 221:
            return this.readU32();
          default: {
            if (headByte < 160) {
              return headByte - 144;
            } else {
              throw new DecodeError(`Unrecognized array type byte: ${prettyByte(headByte)}`);
            }
          }
        }
      }
      pushMapState(size) {
        if (size > this.maxMapLength) {
          throw new DecodeError(`Max length exceeded: map length (${size}) > maxMapLengthLength (${this.maxMapLength})`);
        }
        this.stack.pushMapState(size);
      }
      pushArrayState(size) {
        if (size > this.maxArrayLength) {
          throw new DecodeError(`Max length exceeded: array length (${size}) > maxArrayLength (${this.maxArrayLength})`);
        }
        this.stack.pushArrayState(size);
      }
      decodeString(byteLength2, headerOffset) {
        if (!this.rawStrings || this.stateIsMapKey()) {
          return this.decodeUtf8String(byteLength2, headerOffset);
        }
        return this.decodeBinary(byteLength2, headerOffset);
      }
      /**
       * @throws {@link RangeError}
       */
      decodeUtf8String(byteLength2, headerOffset) {
        if (byteLength2 > this.maxStrLength) {
          throw new DecodeError(`Max length exceeded: UTF-8 byte length (${byteLength2}) > maxStrLength (${this.maxStrLength})`);
        }
        if (this.bytes.byteLength < this.pos + headerOffset + byteLength2) {
          throw MORE_DATA;
        }
        const offset = this.pos + headerOffset;
        let object;
        if (this.stateIsMapKey() && this.keyDecoder?.canBeCached(byteLength2)) {
          object = this.keyDecoder.decode(this.bytes, offset, byteLength2);
        } else {
          object = utf8Decode(this.bytes, offset, byteLength2);
        }
        this.pos += headerOffset + byteLength2;
        return object;
      }
      stateIsMapKey() {
        if (this.stack.length > 0) {
          const state = this.stack.top();
          return state.type === STATE_MAP_KEY;
        }
        return false;
      }
      /**
       * @throws {@link RangeError}
       */
      decodeBinary(byteLength2, headOffset) {
        if (byteLength2 > this.maxBinLength) {
          throw new DecodeError(`Max length exceeded: bin length (${byteLength2}) > maxBinLength (${this.maxBinLength})`);
        }
        if (!this.hasRemaining(byteLength2 + headOffset)) {
          throw MORE_DATA;
        }
        const offset = this.pos + headOffset;
        const object = this.bytes.subarray(offset, offset + byteLength2);
        this.pos += headOffset + byteLength2;
        return object;
      }
      decodeExtension(size, headOffset) {
        if (size > this.maxExtLength) {
          throw new DecodeError(`Max length exceeded: ext length (${size}) > maxExtLength (${this.maxExtLength})`);
        }
        const extType = this.view.getInt8(this.pos + headOffset);
        const data = this.decodeBinary(
          size,
          headOffset + 1
          /* extType */
        );
        return this.extensionCodec.decode(data, extType, this.context);
      }
      lookU8() {
        return this.view.getUint8(this.pos);
      }
      lookU16() {
        return this.view.getUint16(this.pos);
      }
      lookU32() {
        return this.view.getUint32(this.pos);
      }
      readU8() {
        const value = this.view.getUint8(this.pos);
        this.pos++;
        return value;
      }
      readI8() {
        const value = this.view.getInt8(this.pos);
        this.pos++;
        return value;
      }
      readU16() {
        const value = this.view.getUint16(this.pos);
        this.pos += 2;
        return value;
      }
      readI16() {
        const value = this.view.getInt16(this.pos);
        this.pos += 2;
        return value;
      }
      readU32() {
        const value = this.view.getUint32(this.pos);
        this.pos += 4;
        return value;
      }
      readI32() {
        const value = this.view.getInt32(this.pos);
        this.pos += 4;
        return value;
      }
      readU64() {
        const value = getUint64(this.view, this.pos);
        this.pos += 8;
        return value;
      }
      readI64() {
        const value = getInt64(this.view, this.pos);
        this.pos += 8;
        return value;
      }
      readU64AsBigInt() {
        const value = this.view.getBigUint64(this.pos);
        this.pos += 8;
        return value;
      }
      readI64AsBigInt() {
        const value = this.view.getBigInt64(this.pos);
        this.pos += 8;
        return value;
      }
      readF32() {
        const value = this.view.getFloat32(this.pos);
        this.pos += 4;
        return value;
      }
      readF64() {
        const value = this.view.getFloat64(this.pos);
        this.pos += 8;
        return value;
      }
    };
  }
});

// node_modules/@msgpack/msgpack/dist.esm/decode.mjs
function decode(buffer, options3) {
  const decoder = new Decoder(options3);
  return decoder.decode(buffer);
}
function decodeMulti(buffer, options3) {
  const decoder = new Decoder(options3);
  return decoder.decodeMulti(buffer);
}
var init_decode = __esm({
  "node_modules/@msgpack/msgpack/dist.esm/decode.mjs"() {
    init_Decoder();
  }
});

// node_modules/@msgpack/msgpack/dist.esm/utils/stream.mjs
function isAsyncIterable(object) {
  return object[Symbol.asyncIterator] != null;
}
async function* asyncIterableFromStream(stream) {
  const reader = stream.getReader();
  try {
    while (true) {
      const { done, value } = await reader.read();
      if (done) {
        return;
      }
      yield value;
    }
  } finally {
    reader.releaseLock();
  }
}
function ensureAsyncIterable(streamLike) {
  if (isAsyncIterable(streamLike)) {
    return streamLike;
  } else {
    return asyncIterableFromStream(streamLike);
  }
}
var init_stream = __esm({
  "node_modules/@msgpack/msgpack/dist.esm/utils/stream.mjs"() {
  }
});

// node_modules/@msgpack/msgpack/dist.esm/decodeAsync.mjs
async function decodeAsync(streamLike, options3) {
  const stream = ensureAsyncIterable(streamLike);
  const decoder = new Decoder(options3);
  return decoder.decodeAsync(stream);
}
function decodeArrayStream(streamLike, options3) {
  const stream = ensureAsyncIterable(streamLike);
  const decoder = new Decoder(options3);
  return decoder.decodeArrayStream(stream);
}
function decodeMultiStream(streamLike, options3) {
  const stream = ensureAsyncIterable(streamLike);
  const decoder = new Decoder(options3);
  return decoder.decodeStream(stream);
}
var init_decodeAsync = __esm({
  "node_modules/@msgpack/msgpack/dist.esm/decodeAsync.mjs"() {
    init_Decoder();
    init_stream();
  }
});

// node_modules/@msgpack/msgpack/dist.esm/index.mjs
var dist_exports = {};
__export(dist_exports, {
  DecodeError: () => DecodeError,
  Decoder: () => Decoder,
  EXT_TIMESTAMP: () => EXT_TIMESTAMP,
  Encoder: () => Encoder,
  ExtData: () => ExtData,
  ExtensionCodec: () => ExtensionCodec,
  decode: () => decode,
  decodeArrayStream: () => decodeArrayStream,
  decodeAsync: () => decodeAsync,
  decodeMulti: () => decodeMulti,
  decodeMultiStream: () => decodeMultiStream,
  decodeTimestampExtension: () => decodeTimestampExtension,
  decodeTimestampToTimeSpec: () => decodeTimestampToTimeSpec,
  encode: () => encode,
  encodeDateToTimeSpec: () => encodeDateToTimeSpec,
  encodeTimeSpecToTimestamp: () => encodeTimeSpecToTimestamp,
  encodeTimestampExtension: () => encodeTimestampExtension
});
var init_dist = __esm({
  "node_modules/@msgpack/msgpack/dist.esm/index.mjs"() {
    init_encode();
    init_decode();
    init_decodeAsync();
    init_Decoder();
    init_DecodeError();
    init_Encoder();
    init_ExtensionCodec();
    init_ExtData();
    init_timestamp();
  }
});

// node_modules/@chemzqm/neovim/lib/utils/error.js
var require_error = __commonJS({
  "node_modules/@chemzqm/neovim/lib/utils/error.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.disconnectedText = void 0;
    exports2.shouldIgnore = shouldIgnore2;
    exports2.disconnectedText = "transport disconnected";
    function shouldIgnore2(err) {
      if (err instanceof Error && err.message === exports2.disconnectedText)
        return true;
      return false;
    }
  }
});

// node_modules/@chemzqm/neovim/lib/utils/constants.js
var require_constants2 = __commonJS({
  "node_modules/@chemzqm/neovim/lib/utils/constants.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.isVim = exports2.isTester = exports2.isCocNvim = void 0;
    exports2.isCocNvim = true;
    exports2.isTester = process.env.COC_TESTER === "1";
    exports2.isVim = process.env.VIM_NODE_RPC === "1";
  }
});

// node_modules/@chemzqm/neovim/lib/api/Base.js
var require_Base = __commonJS({
  "node_modules/@chemzqm/neovim/lib/api/Base.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.BaseApi = void 0;
    var error_1 = require_error();
    var constants_1 = require_constants2();
    var BaseApi = class {
      constructor({ data, client }) {
        this.data = data;
        if (client) {
          this.client = client;
        } else {
          Object.defineProperty(this, "client", {
            enumerable: false,
            value: this
          });
        }
      }
      get transport() {
        return this.client.transport;
      }
      equals(other) {
        try {
          return String(this.data) === String(other.data);
        } catch (e2) {
          return false;
        }
      }
      async request(name2, args = [], skipConvert = false, skipErrorLog = false) {
        if (true)
          Error.captureStackTrace(args);
        return new Promise((resolve, reject) => {
          let converted = skipConvert ? args : this.getArgsByPrefix(args);
          this.transport.request(name2, converted, (err, res) => {
            if (err) {
              let e2 = new Error(err[1]);
              if (!skipErrorLog && !(0, error_1.shouldIgnore)(e2)) {
                e2.stack = `Error: request error on "${name2}" - ${err[1]}
` + (args["stack"] ? args["stack"].split(/\r?\n/).slice(3).join("\n") : "");
                this.client.logError(`request error on "${name2}"`, converted.map((o2) => o2 === this ? this.data : o2), e2);
              }
              reject(e2);
            } else {
              resolve(res);
            }
          });
        });
      }
      getArgsByPrefix(args) {
        if (this.prefix !== "nvim_" && args[0] !== this) {
          let id2 = constants_1.isVim ? this.data : this;
          return [id2, ...args];
        }
        return args;
      }
      /** Retrieves a scoped variable depending on type (using `this.prefix`) */
      getVar(name2) {
        return this.request(`${this.prefix}get_var`, [name2], false, true).then((res) => res, (_err) => {
          return null;
        });
      }
      setVar(name2, value, isNotify = false) {
        if (isNotify) {
          this.notify(`${this.prefix}set_var`, [name2, value]);
          return;
        }
        return this.request(`${this.prefix}set_var`, [name2, value]);
      }
      /** Delete a scoped variable */
      deleteVar(name2) {
        this.notify(`${this.prefix}del_var`, [name2]);
      }
      /** Retrieves a scoped option depending on type of `this` */
      getOption(name2) {
        return this.request(`${this.prefix}get_option`, [name2]);
      }
      setOption(name2, value, isNotify) {
        if (isNotify) {
          this.notify(`${this.prefix}set_option`, [name2, value]);
          return;
        }
        return this.request(`${this.prefix}set_option`, [name2, value]);
      }
      /** `request` is basically the same except you can choose to wait forpromise to be resolved */
      notify(name2, args = [], skipConvert = false) {
        this.transport.notify(name2, skipConvert ? args : this.getArgsByPrefix(args));
      }
      toJSON() {
        var _a;
        return (_a = this.data) !== null && _a !== void 0 ? _a : 0;
      }
    };
    exports2.BaseApi = BaseApi;
  }
});

// node_modules/@chemzqm/neovim/lib/api/Buffer.js
var require_Buffer = __commonJS({
  "node_modules/@chemzqm/neovim/lib/api/Buffer.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.Buffer = void 0;
    var constants_1 = require_constants2();
    var Base_1 = require_Base();
    var Buffer3 = class extends Base_1.BaseApi {
      constructor() {
        super(...arguments);
        this.prefix = "nvim_buf_";
      }
      /**
       * Attach to buffer to listen to buffer events
       * @param sendBuffer Set to true if the initial notification should contain
       * the whole buffer. If so, the first notification will be a
       * `nvim_buf_lines_event`. Otherwise, the first notification will be
       * a `nvim_buf_changedtick_event`
       */
      async attach(sendBuffer = false, options3 = {}) {
        return await this.request(`${this.prefix}attach`, [sendBuffer, options3]);
      }
      /**
       * Detach from buffer to stop listening to buffer events
       */
      async detach() {
        return await this.request(`${this.prefix}detach`, []);
      }
      /** Retrieves a scoped option depending on type of `this` */
      getOption(name2) {
        if (constants_1.isCocNvim)
          return this.request(`nvim_get_option_value`, [name2, { buf: this.id }], true);
        return super.getOption(name2);
      }
      setOption(name2, value, isNotify) {
        if (constants_1.isCocNvim)
          return this[isNotify ? "notify" : "request"](`nvim_set_option_value`, [name2, value, { buf: this.id }], true);
        return this[isNotify ? "notify" : "request"](`${this.prefix}set_option`, [name2, value]);
      }
      /**
       * Get the bufnr of Buffer
       */
      get id() {
        return this.data;
      }
      /** Total number of lines in buffer */
      get length() {
        return this.request(`${this.prefix}line_count`, []);
      }
      /** Get lines in buffer */
      get lines() {
        return this.getLines();
      }
      /** Gets a changed tick of a buffer */
      get changedtick() {
        return this.request(`${this.prefix}get_changedtick`, []);
      }
      get commands() {
        return this.getCommands();
      }
      getCommands(options3 = {}) {
        return this.request(`${this.prefix}get_commands`, [options3]);
      }
      /** Get specific lines of buffer */
      getLines({ start, end, strictIndexing } = { start: 0, end: -1, strictIndexing: true }) {
        const indexing = typeof strictIndexing === "undefined" ? true : strictIndexing;
        return this.request(`${this.prefix}get_lines`, [
          start,
          end,
          indexing
        ]);
      }
      setLines(lines, opts, notify = false) {
        let { start, end, strictIndexing } = opts !== null && opts !== void 0 ? opts : {};
        start = start !== null && start !== void 0 ? start : 0;
        end = end !== null && end !== void 0 ? end : start + 1;
        const indexing = strictIndexing !== null && strictIndexing !== void 0 ? strictIndexing : true;
        const method = notify ? "notify" : "request";
        return this[method](`${this.prefix}set_lines`, [
          start,
          end,
          indexing,
          typeof lines === "string" ? [lines] : lines
        ]);
      }
      /**
       * Set virtual text for a line, works on nvim >= 0.5.0 and vim9
       * @public
       * @param {number} src_id - Source group to use or 0 to use a new group, or -1
       * @param {number} line - Line to annotate with virtual text (zero-indexed)
       * @param {Chunk[]} chunks - List with [text, hl_group]
       * @param {{[index} opts
       * @returns {Promise}
       */
      setVirtualText(src_id, line, chunks, opts = {}) {
        this.client.call("coc#vtext#add", [this.id, src_id, line, chunks, opts], true);
        return Promise.resolve(src_id);
      }
      /**
       * Removes an ext mark by notification.
       * @public
       * @param {number} ns_id - Namespace id
       * @param {number} id - Extmark id
       */
      deleteExtMark(ns_id, id2) {
        this.notify(`${this.prefix}del_extmark`, [
          ns_id,
          id2
        ]);
      }
      /**
       * Gets the position (0-indexed) of an extmark.
       * @param {number} ns_id - Namespace id
       * @param {number} id - Extmark id
       * @param {Object} opts - Optional parameters.
       * @returns {Promise<[] | [number, number] | [number, number, ExtmarkDetails]>}
       */
      async getExtMarkById(ns_id, id2, opts = {}) {
        return this.request(`${this.prefix}get_extmark_by_id`, [ns_id, id2, opts]);
      }
      /**
       * Gets extmarks in "traversal order" from a |charwise| region defined by
       * buffer positions (inclusive, 0-indexed |api-indexing|).
       *
       * Region can be given as (row,col) tuples, or valid extmark ids (whose
       * positions define the bounds). 0 and -1 are understood as (0,0) and (-1,-1)
       * respectively, thus the following are equivalent:
       *
       * nvim_buf_get_extmarks(0, my_ns, 0, -1, {})
       * nvim_buf_get_extmarks(0, my_ns, [0,0], [-1,-1], {})
       * @param {number} ns_id - Namespace id
       * @param {[number, number] | number} start
       * @param {[number, number] | number} end
       * @param {Object} opts
       * @returns {Promise<[number, number, number, ExtmarkDetails?][]>}
       */
      async getExtMarks(ns_id, start, end, opts = {}) {
        return this.request(`${this.prefix}get_extmarks`, [ns_id, start, end, opts]);
      }
      /**
       * Creates or updates an extmark by notification, `:h nvim_buf_set_extmark`.
       * @param {number} ns_id
       * @param {number} line
       * @param {number} col
       * @param {ExtmarkOptions} opts
       * @returns {void}
       */
      setExtMark(ns_id, line, col, opts = {}) {
        this.notify(`${this.prefix}set_extmark`, [
          ns_id,
          line,
          col,
          opts
        ]);
      }
      /** Insert lines at `start` index */
      insert(lines, start) {
        return this.setLines(lines, {
          start,
          end: start,
          strictIndexing: true
        });
      }
      /** Replace lines starting at `start` index */
      replace(_lines, start) {
        const lines = typeof _lines === "string" ? [_lines] : _lines;
        return this.setLines(lines, {
          start,
          end: start + lines.length,
          strictIndexing: false
        });
      }
      /** Remove lines at index */
      remove(start, end, strictIndexing = false) {
        return this.setLines([], { start, end, strictIndexing });
      }
      /** Append a string or list of lines to end of buffer */
      append(lines) {
        return this.setLines(lines, {
          start: -1,
          end: -1,
          strictIndexing: false
        });
      }
      /** Get buffer name */
      get name() {
        return this.request(`${this.prefix}get_name`, []);
      }
      /** Set current buffer name */
      setName(value) {
        return this.request(`${this.prefix}set_name`, [value]);
      }
      /** Is current buffer valid */
      get valid() {
        return this.request(`${this.prefix}is_valid`, []);
      }
      /** Get mark position given mark name */
      mark(name2) {
        return this.request(`${this.prefix}get_mark`, [name2]);
      }
      // range(start, end) {
      // """Return a `Range` object, which represents part of the Buffer."""
      // return Range(this, start, end)
      // }
      /** Gets keymap */
      getKeymap(mode) {
        return this.request(`${this.prefix}get_keymap`, [mode]);
      }
      /**
       * Add buffer keymap by notification, replace keycodes for expr keymap enabled by default.
       */
      setKeymap(mode, lhs, rhs, opts = {}) {
        let option = opts.expr ? Object.assign({ replace_keycodes: true }, opts) : opts;
        this.notify(`${this.prefix}set_keymap`, [mode, lhs, rhs, option]);
      }
      deleteKeymap(mode, lhs) {
        this.notify(`${this.prefix}del_keymap`, [mode, lhs]);
      }
      /**
       * Checks if a buffer is valid and loaded. See |api-buffer| for
       * more info about unloaded buffers.
       */
      get loaded() {
        return this.request(`${this.prefix}is_loaded`, []);
      }
      /**
       * Returns the byte offset for a line.
       *
       * Line 1 (index=0) has offset 0. UTF-8 bytes are counted. EOL is
       * one byte. 'fileformat' and 'fileencoding' are ignored. The
       * line index just after the last line gives the total byte-count
       * of the buffer. A final EOL byte is counted if it would be
       * written, see 'eol'.
       *
       * Unlike |line2byte()|, throws error for out-of-bounds indexing.
       * Returns -1 for unloaded buffer.
       * @return {Number} Integer byte offset, or -1 for unloaded buffer.
       */
      getOffset(index) {
        return this.request(`${this.prefix}get_offset`, [index]);
      }
      /**
       * Adds a highlight to buffer.
       *
       * This can be used for plugins which dynamically generate
       * highlights to a buffer (like a semantic highlighter or
       * linter). The function adds a single highlight to a buffer.
       * Unlike matchaddpos() highlights follow changes to line
       * numbering (as lines are inserted/removed above the highlighted
       * line), like signs and marks do.
       *
       * "src_id" is useful for batch deletion/updating of a set of
       * highlights. When called with src_id = 0, an unique source id
       * is generated and returned. Successive calls can pass in it as
       * "src_id" to add new highlights to the same source group. All
       * highlights in the same group can then be cleared with
       * nvim_buf_clear_namespace. If the highlight never will be
       * manually deleted pass in -1 for "src_id".
       *
       * If "hl_group" is the empty string no highlight is added, but a
       * new src_id is still returned. This is useful for an external
       * plugin to synchrounously request an unique src_id at
       * initialization, and later asynchronously add and clear
       * highlights in response to buffer changes.
       */
      addHighlight({ hlGroup, line, colStart: _start, colEnd: _end, srcId: _srcId }) {
        if (!hlGroup)
          throw new Error("hlGroup should not empty");
        const colEnd = typeof _end !== "undefined" ? _end : -1;
        const colStart = typeof _start !== "undefined" ? _start : -0;
        const srcId4 = typeof _srcId !== "undefined" ? _srcId : -1;
        const method = srcId4 == 0 ? "request" : "notify";
        let res = this[method](`${this.prefix}add_highlight`, [
          srcId4,
          hlGroup,
          line,
          colStart,
          colEnd
        ]);
        return method === "request" ? res : Promise.resolve(null);
      }
      /**
       * Clear highlights of specified lines.
       * @deprecated use clearNamespace() instead.
       */
      clearHighlight(args = {}) {
        const defaults2 = {
          srcId: -1,
          lineStart: 0,
          lineEnd: -1
        };
        const { srcId: srcId4, lineStart, lineEnd } = Object.assign({}, defaults2, args);
        return this.notify(`${this.prefix}clear_highlight`, [
          srcId4,
          lineStart,
          lineEnd
        ]);
      }
      /**
       * Add highlight to ranges by notification.
       * @param {string | number} srcId Unique key or namespace number.
       * @param {string} hlGroup Highlight group.
       * @param {Range[]} ranges List of highlight ranges
       */
      highlightRanges(srcId4, hlGroup, ranges, option) {
        this.client.call("coc#highlight#ranges", [this.id, srcId4, hlGroup, ranges, option !== null && option !== void 0 ? option : {}], true);
      }
      /**
       * Clear namespace by id or name.
       * @param key Unique key or namespace number, use -1 for all namespaces
       * @param lineStart Start of line, 0 based, default to 0.
       * @param lineEnd End of line, 0 based, default to -1.
       */
      clearNamespace(key, lineStart = 0, lineEnd = -1) {
        this.client.call("coc#highlight#clear_highlight", [this.id, key, lineStart, lineEnd], true);
      }
      /**
       * Add sign to buffer by notification.
       * @param {SignPlaceOption} sign
       * @returns {void}
       */
      placeSign(sign) {
        let opts = { lnum: sign.lnum };
        if (typeof sign.priority === "number")
          opts.priority = sign.priority;
        this.client.call("sign_place", [sign.id || 0, sign.group || "", sign.name, this.id, opts], true);
      }
      /**
       * Unplace signs by notification
       */
      unplaceSign(opts) {
        let details = { buffer: this.id };
        if (opts.id != null)
          details.id = opts.id;
        this.client.call("sign_unplace", [opts.group || "", details], true);
      }
      /**
       * Get signs by group name or id and lnum.
       * @param {SignPlacedOption} opts
       * @returns {Promise}
       */
      async getSigns(opts) {
        let res = await this.client.call("sign_getplaced", [this.id, opts || {}]);
        return res[0].signs;
      }
      /**
       * Get highlight items by name space (end inclusive).
       * @param {string} ns Namespace key.
       * @param {number} start 0 based line number.
       * @param {number} end 0 based line number.
       * @returns {Promise}
       */
      async getHighlights(ns, start = 0, end = -1) {
        let res = [];
        let arr = await this.client.call("coc#highlight#get_highlights", [this.id, ns, start, end]);
        for (let item of arr) {
          res.push({
            hlGroup: item[0],
            lnum: item[1],
            colStart: item[2],
            colEnd: item[3],
            id: item[4]
          });
        }
        return res;
      }
      /**
       * Update highlight items by notification.
       * @param {string | number} ns Namespace key or id.
       * @param {HighlightItem[]} highlights Highlight items.
       * @param {HighlightOption} opts Optional options.
       * @returns {void}
       */
      updateHighlights(ns, highlights, opts = {}) {
        if (typeof opts === "number") {
          this.client.logError("Bad option for buffer.updateHighlights()", new Error());
          return;
        }
        let start = typeof opts.start === "number" ? opts.start : 0;
        let end = typeof opts.end === "number" ? opts.end : -1;
        let changedtick = typeof opts.changedtick === "number" ? opts.changedtick : null;
        let priority = typeof opts.priority === "number" ? opts.priority : null;
        let arr = highlights.map((o2) => [o2.hlGroup, o2.lnum, o2.colStart, o2.colEnd, o2.combine === false ? 0 : 1, o2.start_incl ? 1 : 0, o2.end_incl ? 1 : 0]);
        if (start == 0 && end == -1) {
          this.client.call("coc#highlight#buffer_update", [this.id, ns, arr, priority, changedtick], true);
          return;
        }
        this.client.call("coc#highlight#update_highlights", [this.id, ns, arr, start, end, priority, changedtick], true);
      }
      /**
       * Listens to buffer for events
       */
      listen(eventName, cb, disposables) {
        this.client.attachBufferEvent(this.id, eventName, cb);
        if (disposables) {
          disposables.push({
            dispose: () => {
              this.client.detachBufferEvent(this.id, eventName, cb);
            }
          });
        }
      }
    };
    exports2.Buffer = Buffer3;
  }
});

// node_modules/@chemzqm/neovim/lib/api/Tabpage.js
var require_Tabpage = __commonJS({
  "node_modules/@chemzqm/neovim/lib/api/Tabpage.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.Tabpage = void 0;
    var Base_1 = require_Base();
    var Tabpage = class extends Base_1.BaseApi {
      constructor() {
        super(...arguments);
        this.prefix = "nvim_tabpage_";
      }
      /**
       * The windowid that not change within a Vim session
       */
      get id() {
        return this.data;
      }
      /** Returns all windows of tabpage */
      get windows() {
        return this.request(`${this.prefix}list_wins`, []);
      }
      /** Gets the current window of tabpage */
      get window() {
        return this.request(`${this.prefix}get_win`, []);
      }
      /** Is current tabpage valid */
      get valid() {
        return this.request(`${this.prefix}is_valid`, []);
      }
      /** Tabpage number */
      get number() {
        return this.request(`${this.prefix}get_number`, []);
      }
      /** Invalid */
      getOption() {
        throw new Error("Tabpage does not have `getOption`");
      }
      /** Invalid */
      setOption() {
        throw new Error("Tabpage does not have `setOption`");
      }
    };
    exports2.Tabpage = Tabpage;
  }
});

// node_modules/@chemzqm/neovim/lib/api/Window.js
var require_Window = __commonJS({
  "node_modules/@chemzqm/neovim/lib/api/Window.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.Window = void 0;
    var constants_1 = require_constants2();
    var Base_1 = require_Base();
    var Window3 = class extends Base_1.BaseApi {
      constructor() {
        super(...arguments);
        this.prefix = "nvim_win_";
      }
      /**
       * The windowid that not change within a Vim session
       */
      get id() {
        return this.data;
      }
      setBuffer(buffer) {
        return this.request(`${this.prefix}set_buf`, [buffer]);
      }
      /** Retrieves a scoped option depending on type of `this` */
      getOption(name2) {
        if (constants_1.isCocNvim)
          return this.request(`nvim_get_option_value`, [name2, { win: this.id }], true);
        return super.getOption(name2);
      }
      setOption(name2, value, isNotify) {
        if (constants_1.isCocNvim)
          return this[isNotify ? "notify" : "request"](`nvim_set_option_value`, [name2, value, { win: this.id }], true);
        return this[isNotify ? "notify" : "request"](`${this.prefix}set_option`, [name2, value]);
      }
      /** Get current buffer of window */
      get buffer() {
        return this.request(`${this.prefix}get_buf`, []);
      }
      /** Get the Tabpage that contains the window */
      get tabpage() {
        return this.request(`${this.prefix}get_tabpage`, []);
      }
      /** Get cursor position */
      get cursor() {
        return this.request(`${this.prefix}get_cursor`, []);
      }
      setCursor(pos, isNotify = false) {
        let method = isNotify ? "notify" : "request";
        return this[method](`${this.prefix}set_cursor`, [pos]);
      }
      /** Get window height by number of rows */
      get height() {
        return this.request(`${this.prefix}get_height`, []);
      }
      setHeight(height, isNotify = false) {
        let method = isNotify ? "notify" : "request";
        return this[method](`${this.prefix}set_height`, [height]);
      }
      /** Get window width by number of columns */
      get width() {
        return this.request(`${this.prefix}get_width`, []);
      }
      setWidth(width, isNotify = false) {
        let method = isNotify ? "notify" : "request";
        return this[method](`${this.prefix}set_width`, [width]);
      }
      /** Get window position */
      get position() {
        return this.request(`${this.prefix}get_position`, []);
      }
      /** 0-indexed, on-screen window position(row) in display cells. */
      get row() {
        return this.request(`${this.prefix}get_position`, []).then((position) => position[0]);
      }
      /** 0-indexed, on-screen window position(col) in display cells. */
      get col() {
        return this.request(`${this.prefix}get_position`, []).then((position) => position[1]);
      }
      /** Is window valid */
      get valid() {
        return this.request(`${this.prefix}is_valid`, []);
      }
      /** Get window number */
      get number() {
        return this.request(`${this.prefix}get_number`, []);
      }
      setConfig(options3, isNotify) {
        let method = isNotify ? "notify" : "request";
        return this[method](`${this.prefix}set_config`, [options3]);
      }
      getConfig() {
        return this.request(`${this.prefix}get_config`, []);
      }
      close(force, isNotify) {
        if (isNotify) {
          this.notify(`${this.prefix}close`, [force]);
          return null;
        }
        return this.request(`${this.prefix}close`, [force]);
      }
      highlightRanges(hlGroup, ranges, priority = 10, isNotify) {
        if (isNotify) {
          this.client.call("coc#highlight#match_ranges", [this.id, 0, ranges, hlGroup, priority], true);
          return void 0;
        }
        return this.client.call("coc#highlight#match_ranges", [this.id, 0, ranges, hlGroup, priority]);
      }
      /**
       * Clear match by highlight group.
       */
      clearMatchGroup(hlGroup) {
        this.client.call("coc#window#clear_match_group", [this.id, hlGroup], true);
      }
      /**
       * Clear match by match ids.
       */
      clearMatches(ids) {
        this.client.call("coc#window#clear_matches", [this.id, ids], true);
      }
    };
    exports2.Window = Window3;
  }
});

// node_modules/@chemzqm/neovim/lib/api/types.js
var require_types = __commonJS({
  "node_modules/@chemzqm/neovim/lib/api/types.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.Metadata = exports2.ExtType = void 0;
    var Buffer_1 = require_Buffer();
    var Tabpage_1 = require_Tabpage();
    var Window_1 = require_Window();
    var ExtType;
    (function(ExtType2) {
      ExtType2[ExtType2["Buffer"] = 0] = "Buffer";
      ExtType2[ExtType2["Window"] = 1] = "Window";
      ExtType2[ExtType2["Tabpage"] = 2] = "Tabpage";
    })(ExtType || (exports2.ExtType = ExtType = {}));
    exports2.Metadata = [
      {
        constructor: Buffer_1.Buffer,
        name: "Buffer",
        prefix: "nvim_buf_"
      },
      {
        constructor: Window_1.Window,
        name: "Window",
        prefix: "nvim_win_"
      },
      {
        constructor: Tabpage_1.Tabpage,
        name: "Tabpage",
        prefix: "nvim_tabpage_"
      }
    ];
  }
});

// node_modules/@chemzqm/neovim/lib/utils/logger.js
var require_logger = __commonJS({
  "node_modules/@chemzqm/neovim/lib/utils/logger.js"(exports2) {
    "use strict";
    var __importDefault = exports2 && exports2.__importDefault || function(mod) {
      return mod && mod.__esModule ? mod : { "default": mod };
    };
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.level = exports2.nullLogger = void 0;
    exports2.createLogger = createLogger2;
    var fs_1 = __importDefault(require("fs"));
    var os_1 = __importDefault(require("os"));
    var path_1 = __importDefault(require("path"));
    var util_1 = require("util");
    exports2.nullLogger = {
      debug: () => {
      },
      info: () => {
      },
      warn: () => {
      },
      error: () => {
      },
      trace: () => {
      }
    };
    function getLogFile() {
      let file = process.env.NODE_CLIENT_LOG_FILE;
      if (file)
        return file;
      let dir = process.env.XDG_RUNTIME_DIR;
      if (dir)
        return path_1.default.join(dir, "node-client.log");
      return path_1.default.join(os_1.default.tmpdir(), `node-client-${process.pid}.log`);
    }
    var debugging = process.env.COC_NODE_CLIENT_DEBUG == "1";
    var LOG_FILE_PATH = getLogFile();
    exports2.level = debugging ? "debug" : process.env.NODE_CLIENT_LOG_LEVEL || "info";
    var invalid = !debugging && process.getuid && process.getuid() == 0;
    if (!invalid && !debugging) {
      try {
        fs_1.default.mkdirSync(path_1.default.dirname(LOG_FILE_PATH), { recursive: true });
        fs_1.default.writeFileSync(LOG_FILE_PATH, "", { encoding: "utf8", mode: 438 });
      } catch (_e) {
        invalid = true;
      }
    }
    function toObject2(arg) {
      if (arg == null) {
        return arg;
      }
      if (Array.isArray(arg)) {
        return arg.map((o2) => toObject2(o2));
      }
      if (typeof arg == "object" && typeof arg.prefix == "string" && typeof arg.data == "number") {
        return "[" + arg.prefix + arg.data + "]";
      }
      return arg;
    }
    function toString(arg) {
      if (debugging)
        return (0, util_1.inspect)(arg, { depth: null, colors: true, compact: false });
      if (arg == null)
        return String(arg);
      if (arg instanceof Error)
        return arg.stack;
      if (typeof arg == "object")
        return JSON.stringify(arg, null, 2);
      return String(arg);
    }
    var toTwoDigits2 = (v2) => v2 < 10 ? `0${v2}` : v2.toString();
    var toThreeDigits2 = (v2) => v2 < 10 ? `00${v2}` : v2 < 100 ? `0${v2}` : v2.toString();
    function toTimeString(currentTime) {
      return `${toTwoDigits2(currentTime.getHours())}:${toTwoDigits2(currentTime.getMinutes())}:${toTwoDigits2(currentTime.getSeconds())}.${toThreeDigits2(currentTime.getMilliseconds())}`;
    }
    var writableStream;
    var Logger = class {
      constructor(name2) {
        this.name = name2;
      }
      get stream() {
        if (writableStream)
          return writableStream;
        if (debugging) {
          writableStream = process.stdout;
        } else {
          writableStream = fs_1.default.createWriteStream(LOG_FILE_PATH, { encoding: "utf8" });
        }
        return writableStream;
      }
      getText(level2, data, meta) {
        let more = "";
        if (meta.length) {
          let arr = toObject2(meta);
          more = " " + arr.map((o2) => toString(o2)).join(", ");
        }
        return `${toTimeString(/* @__PURE__ */ new Date())} ${level2.toUpperCase()} [${this.name}] - ${data}${more}
`;
      }
      debug(data, ...meta) {
        if (exports2.level != "debug" || invalid)
          return;
        this.stream.write(this.getText("debug", data, meta));
      }
      info(data, ...meta) {
        if (invalid)
          return;
        this.stream.write(this.getText("info", data, meta));
      }
      warn(data, ...meta) {
        if (invalid)
          return;
        this.stream.write(this.getText("warn", data, meta));
      }
      error(data, ...meta) {
        if (invalid)
          return;
        let stream = debugging ? process.stderr : this.stream;
        stream.write(this.getText("error", data, meta));
      }
      trace(data, ...meta) {
        if (exports2.level != "trace" || invalid)
          return;
        this.stream.write(this.getText("trace", data, meta));
      }
    };
    function createLogger2(name2) {
      return new Logger(name2);
    }
  }
});

// node_modules/@chemzqm/neovim/lib/transport/base.js
var require_base = __commonJS({
  "node_modules/@chemzqm/neovim/lib/transport/base.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    var events_1 = require("events");
    var logger_1 = require_logger();
    var debug4 = logger_1.level === "debug";
    var logger75 = (0, logger_1.createLogger)("transport");
    var Transport3 = class extends events_1.EventEmitter {
      constructor(logger76, isVim2) {
        super();
        this.logger = logger76;
        this.isVim = isVim2;
        this.pauseLevel = 0;
        this.paused = /* @__PURE__ */ new Map();
      }
      debug(key, ...meta) {
        if (!debug4)
          return;
        logger75.debug(key, ...meta);
      }
      debugMessage(msg) {
        if (!debug4)
          return;
        const msgType = msg[0];
        if (msgType === 0) {
          logger75.debug("receive request:", msg.slice(1));
        } else if (msgType === 1) {
        } else if (msgType === 2) {
          logger75.debug("receive notification:", msg.slice(1));
        } else {
          logger75.debug("unknown message:", msg);
        }
      }
      pauseNotification() {
        this.pauseLevel = this.pauseLevel + 1;
        this.paused.set(this.pauseLevel, []);
      }
      cancelNotification() {
        let { pauseLevel } = this;
        if (pauseLevel > 0) {
          this.paused.delete(pauseLevel);
          this.pauseLevel = pauseLevel - 1;
        }
      }
      resumeNotification(isNotify = false) {
        let { pauseLevel } = this;
        if (pauseLevel === 0)
          return isNotify ? null : Promise.resolve([[], null]);
        let obj = {};
        if (true)
          Error.captureStackTrace(obj);
        this.pauseLevel = pauseLevel - 1;
        let list2 = this.paused.get(pauseLevel);
        this.paused.delete(pauseLevel);
        if (list2 && list2.length) {
          return new Promise((resolve, reject) => {
            if (!isNotify) {
              return this.request("nvim_call_atomic", [list2], (err, res) => {
                if (err) {
                  let e2 = new Error(`call_atomic error: ${err[1]}`);
                  e2.stack = obj.stack ? obj.stack.replace(/^Error/, `Error: ${e2.message}`) : e2.stack;
                  return reject(e2);
                }
                if (Array.isArray(res) && res[1] !== null && res[1] !== void 0) {
                  let [index, errType, message] = res[1];
                  let [fname, args] = list2[index];
                  let e2 = new Error(`call_atomic request error on "${fname}": ${message}`);
                  e2.stack = obj.stack ? obj.stack.replace(/^Error/, `Error: ${e2.message}`) : e2.stack;
                  this.logger.error(`call_atomic request error ${errType} on "${fname}"`, args, message, e2);
                  return reject(e2);
                }
                resolve(res);
              });
            }
            this.notify("nvim_call_atomic", [list2]);
            resolve(void 0);
          });
        }
        return isNotify ? null : Promise.resolve([[], void 0]);
      }
    };
    exports2.default = Transport3;
  }
});

// node_modules/@chemzqm/neovim/lib/transport/nvim.js
var require_nvim = __commonJS({
  "node_modules/@chemzqm/neovim/lib/transport/nvim.js"(exports2) {
    "use strict";
    var __importDefault = exports2 && exports2.__importDefault || function(mod) {
      return mod && mod.__esModule ? mod : { "default": mod };
    };
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.NvimTransport = void 0;
    var msgpack_1 = (init_dist(), __toCommonJS(dist_exports));
    var error_1 = require_error();
    var types_1 = require_types();
    var base_1 = __importDefault(require_base());
    var constants_1 = require_constants2();
    var REQUEST_TIMEOUT = constants_1.isTester ? 3e3 : 0;
    var NvimTransport = class extends base_1.default {
      constructor(logger75) {
        super(logger75, false);
        this.pending = /* @__PURE__ */ new Map();
        this.nextRequestId = 1;
        this.extensionCodec = this.initializeExtensionCodec();
        this.encoder = new msgpack_1.Encoder({ extensionCodec: this.extensionCodec, ignoreUndefined: true });
        this.extEncoder = new msgpack_1.Encoder({ ignoreUndefined: true });
        this.decodeGeneration = 0;
        this.attached = false;
      }
      initializeExtensionCodec() {
        const codec = new msgpack_1.ExtensionCodec();
        types_1.Metadata.forEach(({ constructor }, id2) => {
          codec.register({
            type: id2,
            encode: (input) => {
              if (input instanceof constructor) {
                return this.extEncoder.encode(input.data);
              }
              return null;
            },
            decode: (data) => new constructor({
              client: this.client,
              data: (0, msgpack_1.decode)(data)
            })
          });
        });
        return codec;
      }
      encodeToBuffer(value) {
        const encoded = this.encoder.encode(value);
        return Buffer.from(encoded.buffer, encoded.byteOffset, encoded.byteLength);
      }
      parseMessage(msg) {
        if (!this.attached)
          return;
        const msgType = msg[0];
        this.debugMessage(msg);
        if (msgType === 0) {
          let method = msg[2].toString();
          this.emit("request", method, msg[3], this.createResponse(method, msg[1]));
        } else if (msgType === 1) {
          const id2 = msg[1];
          const handler = this.pending.get(id2);
          if (handler) {
            this.pending.delete(id2);
            let err = msg[2];
            if (err && err.length != 2) {
              err = [0, err.toString()];
            }
            handler(err, msg[3]);
          }
        } else if (msgType === 2) {
          this.emit("notification", msg[1].toString(), msg[2]);
        } else {
          console.error(`Invalid message type ${msgType}`);
        }
      }
      createDecodeSource(reader) {
        let readable = reader;
        if (typeof readable.iterator === "function") {
          return readable.iterator({ destroyOnReturn: false });
        }
        return reader;
      }
      async decodeLoop(iter, generation) {
        try {
          while (true) {
            const resolved = await iter.next();
            if (resolved.done || !this.attached || iter !== this.decodeIterator || generation !== this.decodeGeneration)
              return;
            if (Array.isArray(resolved.value)) {
              this.parseMessage(resolved.value);
            } else {
              console.error("invalid msgpack-RPC message: expected array");
            }
          }
        } catch (err) {
          if (iter !== this.decodeIterator || generation !== this.decodeGeneration)
            return;
          console.error("Decode stream error:", err);
          this.detach();
        }
      }
      attach(writer, reader, client) {
        this.writer = writer;
        this.reader = reader;
        this.client = client;
        this.attached = true;
        this.decodeGeneration = this.decodeGeneration + 1;
        const generation = this.decodeGeneration;
        this.onReaderEnd = () => {
          this.detach();
        };
        this.reader.once("end", this.onReaderEnd);
        const asyncDecodeGenerator = (0, msgpack_1.decodeMultiStream)(this.createDecodeSource(this.reader), {
          extensionCodec: this.extensionCodec
        });
        this.decodeIterator = asyncDecodeGenerator;
        void this.decodeLoop(asyncDecodeGenerator, generation);
      }
      detach() {
        if (!this.attached)
          return;
        this.attached = false;
        this.decodeGeneration = this.decodeGeneration + 1;
        if (this.onReaderEnd) {
          this.reader.off("end", this.onReaderEnd);
          this.onReaderEnd = void 0;
        }
        let iter = this.decodeIterator;
        this.decodeIterator = void 0;
        if (iter && typeof iter.return === "function") {
          void iter.return(void 0).catch((err) => {
            this.debug("decode iterator return error:", err);
          });
        }
        for (let handler of this.pending.values()) {
          handler([0, error_1.disconnectedText]);
        }
        this.pending.clear();
        this.emit("detach");
      }
      request(method, args, cb) {
        if (!this.attached)
          return cb([0, error_1.disconnectedText]);
        let id2 = this.nextRequestId;
        this.nextRequestId = this.nextRequestId + 1;
        let startTs = Date.now();
        this.debug("request to nvim:", id2, method, args);
        this.writer.write(this.encodeToBuffer([0, id2, method, args]));
        let timer;
        if (REQUEST_TIMEOUT > 0) {
          timer = setTimeout(() => {
            let handler = this.pending.get(id2);
            if (!handler)
              return;
            this.pending.delete(id2);
            handler([0, `Request "${method}" timed out after ${REQUEST_TIMEOUT}ms.`]);
          }, REQUEST_TIMEOUT);
        }
        this.pending.set(id2, (err, res) => {
          if (timer)
            clearTimeout(timer);
          this.debug("response of nvim:", id2, Date.now() - startTs, res, err);
          cb(err, res);
        });
      }
      notify(method, args) {
        if (!this.attached)
          return;
        if (this.pauseLevel != 0) {
          let arr = this.paused.get(this.pauseLevel);
          if (arr) {
            arr.push([method, args]);
            return;
          }
        }
        this.debug("nvim notification:", method, args);
        this.writer.write(this.encodeToBuffer([2, method, args]));
      }
      send(arr) {
        this.writer.write(this.encodeToBuffer(arr));
      }
      vimCommand(command, ..._args) {
        throw new Error(`Command "${command}"  not exists on nvim`);
      }
      vimRequest(command, _args) {
        throw new Error(`Command "${command}"  not exists on nvim`);
      }
      createResponse(_method, requestId) {
        let startTs = Date.now();
        let called = false;
        return {
          send: (resp, isError) => {
            if (called || !this.attached)
              return;
            this.debug("response of client:", requestId, `${Date.now() - startTs}ms`, resp, isError == true);
            called = true;
            this.writer.write(this.encodeToBuffer([
              1,
              requestId,
              isError ? resp : null,
              !isError ? resp : null
            ]));
          }
        };
      }
    };
    exports2.NvimTransport = NvimTransport;
  }
});

// node_modules/@chemzqm/neovim/lib/transport/connection.js
var require_connection = __commonJS({
  "node_modules/@chemzqm/neovim/lib/transport/connection.js"(exports2) {
    "use strict";
    var __importDefault = exports2 && exports2.__importDefault || function(mod) {
      return mod && mod.__esModule ? mod : { "default": mod };
    };
    Object.defineProperty(exports2, "__esModule", { value: true });
    var events_1 = __importDefault(require("events"));
    var logger_1 = require_logger();
    var logger75 = (0, logger_1.createLogger)("connection");
    var NR_CODE = 10;
    var Connection2 = class extends events_1.default {
      constructor(readable, writable) {
        super();
        this.writable = writable;
        let cached = [];
        let hasCache = false;
        readable.once("data", (buf) => {
          if (!Buffer.isBuffer(buf))
            throw new Error(`Vim connection expect Buffer from readable stream.`);
        });
        let onData = (buf) => {
          let start = 0;
          let len = buf.byteLength;
          for (let i2 = 0; i2 < len; i2++) {
            if (buf[i2] === NR_CODE) {
              let b2 = buf.slice(start, i2);
              if (hasCache) {
                cached.push(b2);
                let concated = Buffer.concat(cached);
                hasCache = false;
                cached = [];
                this.parseData(concated.toString("utf8"));
              } else {
                this.parseData(b2.toString("utf8"));
              }
              start = i2 + 1;
            }
          }
          if (start < len) {
            cached.push(start == 0 ? buf : buf.slice(start));
            hasCache = true;
          }
        };
        readable.on("data", onData);
        let onClose = () => {
          logger75.warn("readable stream closed.");
        };
        readable.on("close", onClose);
        this.clean = () => {
          readable.off("data", onData);
          readable.off("close", onClose);
        };
      }
      parseData(str) {
        if (str.length == 0)
          return;
        let arr;
        try {
          arr = JSON.parse(str);
        } catch (e2) {
          logger75.error(`Invalid data from vim: ${str}`);
          return;
        }
        let [id2, obj] = arr;
        if (id2 > 0) {
          logger75.debug("received request:", id2, obj);
          this.emit("request", id2, obj);
        } else if (id2 == 0) {
          logger75.debug("received notification:", obj);
          this.emit("notification", obj);
        } else {
          logger75.debug("received response:", id2, obj);
          this.emit("response", id2, obj);
        }
      }
      response(requestId, data) {
        this.send([requestId, data || null]);
      }
      notify(event, data) {
        this.send([0, [event, data || null]]);
      }
      send(arr) {
        logger75.debug("send to vim:", arr);
        this.writable.write(JSON.stringify(arr) + "\n");
      }
      redraw(force) {
        this.send(["redraw", force ? "force" : ""]);
      }
      ex(cmd) {
        this.send(["ex", cmd]);
      }
      expr(expr, requestId) {
        if (typeof requestId === "number") {
          this.send(["expr", expr, requestId]);
          return;
        }
        this.send(["expr", expr]);
      }
      call(func2, args, requestId) {
        if (typeof requestId === "number") {
          this.send(["call", func2, args, requestId]);
          return;
        }
        this.send(["call", func2, args]);
      }
      dispose() {
        if (typeof this.clean === "function") {
          this.clean();
          this.clean = void 0;
        }
        this.removeAllListeners();
      }
    };
    exports2.default = Connection2;
  }
});

// node_modules/@chemzqm/neovim/lib/transport/request.js
var require_request = __commonJS({
  "node_modules/@chemzqm/neovim/lib/transport/request.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    var constants_1 = require_constants2();
    var func2 = constants_1.isCocNvim ? "coc#api#Call" : "nvim#api#Call";
    var Request = class {
      constructor(connection, cb, id2) {
        this.connection = connection;
        this.cb = cb;
        this.id = id2;
        this.method = "";
        this._direct = false;
      }
      get isDirect() {
        return this._direct;
      }
      request(method, args = []) {
        this.method = method;
        this.connection.call(func2, [method.startsWith("nvim_") ? method.slice(5) : method, args], this.id);
      }
      call(method, args = []) {
        this._direct = true;
        this.method = "call";
        this.connection.call(method, args, this.id);
      }
      expr(expr) {
        this._direct = true;
        this.method = "expr";
        this.connection.expr(expr, this.id);
      }
      callback(client, err, result) {
        let { method, cb } = this;
        if (err)
          return cb([0, err.toString()]);
        switch (method) {
          case "nvim_list_wins":
          case "nvim_tabpage_list_wins":
            return cb(null, Array.isArray(result) ? result.map((o2) => client.createWindow(o2)) : []);
          case "nvim_tabpage_get_win":
          case "nvim_get_current_win":
          case "nvim_open_win":
            return cb(null, client.createWindow(result));
          case "nvim_list_bufs":
            return cb(null, Array.isArray(result) ? result.map((o2) => client.createBuffer(o2)) : []);
          case "nvim_win_get_buf":
          case "nvim_create_buf":
          case "nvim_get_current_buf":
            return cb(null, client.createBuffer(result));
          case "nvim_list_tabpages":
            return cb(null, Array.isArray(result) ? result.map((o2) => client.createTabpage(o2)) : []);
          case "nvim_win_get_tabpage":
          case "nvim_get_current_tabpage":
            return cb(null, client.createTabpage(result));
          default:
            return cb(null, result);
        }
      }
    };
    exports2.default = Request;
  }
});

// node_modules/@chemzqm/neovim/lib/transport/vim.js
var require_vim = __commonJS({
  "node_modules/@chemzqm/neovim/lib/transport/vim.js"(exports2) {
    "use strict";
    var __importDefault = exports2 && exports2.__importDefault || function(mod) {
      return mod && mod.__esModule ? mod : { "default": mod };
    };
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.VimTransport = void 0;
    var error_1 = require_error();
    var constants_1 = require_constants2();
    var base_1 = __importDefault(require_base());
    var connection_1 = __importDefault(require_connection());
    var request_1 = __importDefault(require_request());
    var notifyMethod = constants_1.isCocNvim ? "coc#api#Notify" : "nvim#api#Notify";
    var VimTransport = class extends base_1.default {
      constructor(logger75) {
        super(logger75, true);
        this.pending = /* @__PURE__ */ new Map();
        this.nextRequestId = -1;
        this.attached = false;
        this.errText = "";
        this.outText = "";
      }
      attach(writer, reader, client) {
        let connection = this.connection = new connection_1.default(reader, writer);
        this.attached = true;
        this.client = client;
        connection.on("request", (id2, obj) => {
          let [method, args] = obj;
          this.emit("request", method, args, this.createResponse(method, id2));
        });
        connection.on("notification", (obj) => {
          let [event, args] = obj;
          this.emit("notification", event.toString(), args);
        });
        connection.on("response", (id2, obj) => {
          let req = this.pending.get(id2);
          if (req) {
            this.pending.delete(id2);
            let err = null;
            let result = null;
            if (req.isDirect) {
              result = obj;
            } else {
              if (!Array.isArray(obj)) {
                err = obj;
              } else {
                err = obj[0];
                result = obj[1];
              }
            }
            req.callback(this.client, err, result);
          }
        });
      }
      send(arr) {
        this.connection.send(arr);
      }
      detach() {
        if (!this.attached)
          return;
        this.attached = false;
        this.connection.dispose();
        for (let req of this.pending.values()) {
          req.callback(this.client, "connection disconnected", null);
        }
        this.pending.clear();
      }
      vimCommand(command, ...args) {
        switch (command) {
          case "expr":
            this.connection.expr(args[0]);
            break;
          case "call":
            this.connection.call(args[0], args[1]);
            break;
          case "ex":
            this.connection.ex(args[0]);
            break;
          case "redraw":
            this.connection.redraw(args[0]);
            break;
          default:
            throw new Error(`command "${command}" not exists`);
        }
      }
      vimRequest(command, args) {
        if (!this.attached)
          return Promise.reject(new Error("transport disconnected"));
        if (true)
          Error.captureStackTrace(args);
        let id2 = this.nextRequestId;
        this.nextRequestId = this.nextRequestId - 1;
        return new Promise((resolve, reject) => {
          let req = new request_1.default(this.connection, (err, res) => {
            if (!err && res === "ERROR") {
              if (command === "eval") {
                err = new Error(`Invalid expression "${args[0]}", checkout v:errmsg`);
              } else {
                err = new Error(`Error on function "${args[0]}", checkout v:errmsg"`);
              }
            }
            if (err) {
              err.stack = `Error: vim "${command}" error - ${err}
` + (args["stack"] ? args["stack"].split(/\r?\n/).slice(3).join("\n") : "");
              this.client.logError(`Error on vim command "${command}"`, args, err);
              reject(err instanceof Error ? err : new Error(String(err)));
              return;
            }
            resolve(res);
          }, id2);
          this.pending.set(id2, req);
          if (command === "call") {
            req.call(args[0], args[1]);
          } else {
            req.expr(args[0]);
          }
        });
      }
      /**
       * Send request to vim
       */
      request(method, args, cb) {
        if (!this.attached)
          return cb([0, error_1.disconnectedText]);
        let id2 = this.nextRequestId;
        this.nextRequestId = this.nextRequestId - 1;
        let req = new request_1.default(this.connection, (err, res) => {
          cb(err, res);
        }, id2);
        this.pending.set(id2, req);
        req.request(method, args);
      }
      notify(method, args) {
        if (!this.attached)
          return;
        if (this.pauseLevel != 0) {
          let arr = this.paused.get(this.pauseLevel);
          if (arr) {
            arr.push([method, args]);
            return;
          }
        }
        let fname = method.slice(5);
        if (fname == "err_write") {
          this.errText = this.errText + args[0].toString();
          return;
        }
        if (fname == "out_write") {
          let msg = args[0].toString() || "";
          if (!msg.includes("\n")) {
            this.outText = this.outText + msg;
          } else {
            let text = this.outText + args[0].toString();
            this.outText = "";
            this.connection.call(notifyMethod, [fname, [text]]);
          }
          return;
        }
        if (fname == "err_writeln") {
          let text = this.errText + args[0].toString();
          this.errText = "";
          this.connection.call(notifyMethod, [fname, [text]]);
          return;
        }
        this.connection.call(notifyMethod, [fname, args]);
      }
      createResponse(_method, requestId) {
        let called = false;
        let { connection } = this;
        return {
          send: (resp, isError) => {
            if (called || !this.attached)
              return;
            called = true;
            let err = null;
            if (isError)
              err = typeof resp === "string" ? resp : resp.toString();
            connection.response(requestId, [err, isError ? null : resp]);
          }
        };
      }
    };
    exports2.VimTransport = VimTransport;
  }
});

// node_modules/@chemzqm/neovim/lib/api/Neovim.js
var require_Neovim = __commonJS({
  "node_modules/@chemzqm/neovim/lib/api/Neovim.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.Neovim = void 0;
    var constants_1 = require_constants2();
    var Base_1 = require_Base();
    function getArgs(args) {
      if (!args)
        return [];
      if (Array.isArray(args))
        return args;
      return [args];
    }
    var Neovim2 = class extends Base_1.BaseApi {
      constructor() {
        super(...arguments);
        this.prefix = "nvim_";
      }
      get apiInfo() {
        return this.request(`${this.prefix}get_api_info`);
      }
      /** Get list of all buffers */
      get buffers() {
        return this.request(`${this.prefix}list_bufs`);
      }
      /** Get current buffer */
      get buffer() {
        return this.request(`${this.prefix}get_current_buf`);
      }
      /** Retrieves a scoped option depending on type of `this` */
      getOption(name2) {
        if (constants_1.isCocNvim)
          return this.request(`${this.prefix}get_option_value`, [name2, {}]);
        return super.getOption(name2);
      }
      setOption(name2, value, isNotify) {
        if (constants_1.isCocNvim)
          return this[isNotify ? "notify" : "request"](`${this.prefix}set_option_value`, [name2, value, {}]);
        return this[isNotify ? "notify" : "request"](`${this.prefix}set_option`, [name2, value]);
      }
      /** Set current buffer */
      async setBuffer(buffer) {
        await this.request(`${this.prefix}set_current_buf`, [buffer]);
      }
      get chans() {
        return this.request(`${this.prefix}list_chans`);
      }
      getChanInfo(chan) {
        return this.request(`${this.prefix}get_chan_info`, [chan]);
      }
      createNamespace(name2 = "") {
        if (constants_1.isCocNvim)
          name2 = name2.startsWith("coc-") ? name2 : `coc-${name2}`;
        return this.request(`${this.prefix}create_namespace`, [name2]);
      }
      get namespaces() {
        return this.request(`${this.prefix}get_namespaces`, []);
      }
      get commands() {
        return this.getCommands();
      }
      getCommands(options3 = {}) {
        return this.request(`${this.prefix}get_commands`, [options3]);
      }
      /** Get list of all tabpages */
      get tabpages() {
        return this.request(`${this.prefix}list_tabpages`);
      }
      /** Get current tabpage */
      get tabpage() {
        return this.request(`${this.prefix}get_current_tabpage`);
      }
      /** Set current tabpage */
      async setTabpage(tabpage) {
        await this.request(`${this.prefix}set_current_tabpage`, [tabpage]);
      }
      /** Get list of all windows */
      get windows() {
        return this.getWindows();
      }
      /** Get current window */
      get window() {
        return this.request(`${this.prefix}get_current_win`);
      }
      /** Get list of all windows */
      getWindows() {
        return this.request(`${this.prefix}list_wins`);
      }
      async setWindow(win) {
        await this.request(`${this.prefix}set_current_win`, [win]);
      }
      /** Get list of all runtime paths */
      get runtimePaths() {
        return this.request(`${this.prefix}list_runtime_paths`);
      }
      /** Set current directory */
      setDirectory(dir) {
        return this.request(`${this.prefix}set_current_dir`, [dir]);
      }
      /** Get current line. Always returns a Promise. */
      get line() {
        return this.getLine();
      }
      createNewBuffer(listed = false, scratch = false) {
        return this.request(`${this.prefix}create_buf`, [listed, scratch]);
      }
      openFloatWindow(buffer, enter, options3) {
        return this.request(`${this.prefix}open_win`, [buffer, enter, options3]);
      }
      getLine() {
        return this.request(`${this.prefix}get_current_line`);
      }
      /** Set current line */
      setLine(line) {
        return this.request(`${this.prefix}set_current_line`, [line]);
      }
      /** Gets keymap */
      getKeymap(mode) {
        return this.request(`${this.prefix}get_keymap`, [mode]);
      }
      /**
       * Add keymap by notification, replace keycodes for expr keymap enabled by default.
       */
      setKeymap(mode, lhs, rhs, opts = {}) {
        let option = opts.expr ? Object.assign({ replace_keycodes: true }, opts) : opts;
        this.notify(`${this.prefix}set_keymap`, [mode, lhs, rhs, option]);
      }
      deleteKeymap(mode, lhs) {
        this.notify(`${this.prefix}del_keymap`, [mode, lhs]);
      }
      /** Gets current mode */
      get mode() {
        return this.request(`${this.prefix}get_mode`);
      }
      /** Gets map of defined colors */
      get colorMap() {
        return this.request(`${this.prefix}get_color_map`);
      }
      /** Get color by name */
      getColorByName(name2) {
        return this.request(`${this.prefix}get_color_by_name`, [name2]);
      }
      /** Get highlight by name or id */
      getHighlight(nameOrId, isRgb = true) {
        const functionName = typeof nameOrId === "string" ? "by_name" : "by_id";
        return this.request(`${this.prefix}get_hl_${functionName}`, [
          nameOrId,
          isRgb
        ]);
      }
      getHighlightByName(name2, isRgb = true) {
        return this.request(`${this.prefix}get_hl_by_name`, [name2, isRgb]);
      }
      getHighlightById(id2, isRgb = true) {
        return this.request(`${this.prefix}get_hl_by_id`, [id2, isRgb]);
      }
      /** Delete current line in buffer */
      deleteCurrentLine() {
        return this.request(`${this.prefix}del_current_line`);
      }
      /**
       * Evaluates a VimL expression (:help expression). Dictionaries
       * and Lists are recursively expanded. On VimL error: Returns a
       * generic error; v:errmsg is not updated.
       *
       */
      eval(expr) {
        return this.request(`${this.prefix}eval`, [expr]);
      }
      /**
       * Executes lua, it's possible neovim client does not support this
       */
      lua(code, args = []) {
        return this.request(`${this.prefix}exec_lua`, [code, args]);
      }
      // Alias for `lua()` to be consistent with neovim API
      executeLua(code, args = []) {
        const _args = getArgs(args);
        return this.lua(code, _args);
      }
      callDictFunction(dict, fname, args = []) {
        const _args = getArgs(args);
        return this.request(`${this.prefix}call_dict_function`, [
          dict,
          fname,
          _args
        ]);
      }
      callVim(fname, args = [], isNotify) {
        if (!constants_1.isVim)
          return this.call(fname, args, isNotify);
        const _args = getArgs(args);
        if (isNotify)
          return this.transport.vimCommand("call", fname, _args);
        return this.transport.vimRequest("call", [fname, _args]);
      }
      /**
       * Use direct expr command on vim9
       */
      evalVim(expr) {
        if (!constants_1.isVim)
          return this.request(`${this.prefix}eval`, [expr]);
        return this.transport.vimRequest("eval", [expr]);
      }
      /**
       * Use direct ex on vim9
       */
      exVim(arg) {
        if (!constants_1.isVim)
          return this.notify(`${this.prefix}command`, [arg]);
        this.transport.vimCommand("ex", arg);
      }
      call(fname, args = [], isNotify) {
        const _args = getArgs(args);
        if (isNotify) {
          this.notify(`${this.prefix}call_function`, [fname, _args]);
          return null;
        }
        return this.request(`${this.prefix}call_function`, [fname, _args]);
      }
      callTimer(fname, args = [], isNotify) {
        const _args = getArgs(args);
        if (isNotify) {
          this.notify(`${this.prefix}call_function`, ["coc#util#timer", [fname, _args]]);
          return null;
        }
        if (constants_1.isVim) {
          this.notify(`${this.prefix}call_function`, ["coc#util#timer", [fname, _args]]);
          return new Promise((resolve) => {
            setTimeout(() => {
              resolve(null);
            }, 20);
          });
        }
        return this.request(`${this.prefix}call_function`, ["coc#util#timer", [fname, _args]]);
      }
      callAsync(fname, args = []) {
        const _args = getArgs(args);
        return this.client.sendAsyncRequest(fname, _args);
      }
      /** Alias for `call` */
      callFunction(fname, args = []) {
        return this.call(fname, args);
      }
      /** Call Atomic calls */
      callAtomic(calls) {
        return this.request(`${this.prefix}call_atomic`, [calls]);
      }
      command(arg, isNotify) {
        if (isNotify) {
          this.notify(`${this.prefix}command`, [arg]);
          return null;
        }
        return this.request(`${this.prefix}command`, [arg]);
      }
      /**
       * Runs a command and returns output.
       * @deprecated Use exec instead.
       */
      commandOutput(arg) {
        return this.request(`${this.prefix}command_output`, [arg]);
      }
      /**
       * Executes Vimscript (multiline block of Ex-commands), like
       * anonymous |:source|
       */
      exec(src, output = false) {
        return this.request(`${this.prefix}exec`, [src, output]);
      }
      /** Gets a v: variable */
      getVvar(name2) {
        return this.request(`${this.prefix}get_vvar`, [name2]);
      }
      /** feedKeys */
      feedKeys(keys, mode, escapeCsi) {
        return this.request(`${this.prefix}feedkeys`, [keys, mode, escapeCsi]);
      }
      /** Sends input keys */
      input(keys) {
        return this.request(`${this.prefix}input`, [keys]);
      }
      /**
       * Send mouse event from GUI. Neovim only.
       * @param {MouseButton} button Mouse button: one of "left", "right", "middle", "wheel", "move".
       * @param {ButtonAction} action For ordinary buttons, one of "press", "drag", "release".
       * @param {string} modifier String of modifiers each represented by a single char.
       * @param {number} row Mouse row-position (zero-based, like redraw events)
       * @param {number} col Mouse column-position (zero-based, like redraw events)
       * @param {number} grid Grid number if the client uses |ui-multigrid|, else 0.
       * @returns {Promise}
       */
      inputMouse(button, action, modifier, row, col, grid = 0) {
        return this.request(`${this.prefix}input_mouse`, [button, action, modifier, grid, row, col]);
      }
      /**
       * Parse a VimL Expression
       *
       * TODO: return type, see :help
       */
      parseExpression(expr, flags, highlight) {
        return this.request(`${this.prefix}parse_expression`, [
          expr,
          flags,
          highlight
        ]);
      }
      getProc(pid) {
        return this.request(`${this.prefix}get_proc`, [pid]);
      }
      getProcChildren(pid) {
        return this.request(`${this.prefix}get_proc_children`, [pid]);
      }
      /** Replace term codes */
      replaceTermcodes(str, fromPart, doIt, special) {
        return this.request(`${this.prefix}replace_termcodes`, [
          str,
          fromPart,
          doIt,
          special
        ]);
      }
      /** Gets width of string */
      strWidth(str) {
        return this.request(`${this.prefix}strwidth`, [str]);
      }
      /** Write to output buffer */
      outWrite(str) {
        this.notify(`${this.prefix}out_write`, [str]);
      }
      outWriteLine(str) {
        this.outWrite(`${str}
`);
      }
      /** Write to error buffer */
      errWrite(str) {
        this.notify(`${this.prefix}err_write`, [str]);
      }
      /** Write to error buffer */
      errWriteLine(str) {
        this.notify(`${this.prefix}err_writeln`, [str]);
      }
      // TODO: add type
      get uis() {
        return this.request(`${this.prefix}list_uis`);
      }
      uiAttach(width, height, options3) {
        return this.request(`${this.prefix}ui_attach`, [width, height, options3]);
      }
      uiDetach() {
        return this.request(`${this.prefix}ui_detach`, []);
      }
      uiTryResize(width, height) {
        return this.request(`${this.prefix}ui_try_resize`, [width, height]);
      }
      /** Set UI Option */
      uiSetOption(name2, value) {
        return this.request(`${this.prefix}ui_set_option`, [name2, value]);
      }
      /** Subscribe to nvim event broadcasts */
      subscribe(event) {
        return this.request(`${this.prefix}subscribe`, [event]);
      }
      /** Unsubscribe to nvim event broadcasts */
      unsubscribe(event) {
        return this.request(`${this.prefix}unsubscribe`, [event]);
      }
      createAugroup(name2, option = {}, isNotify = false) {
        if (!isNotify)
          return this.request(`${this.prefix}create_augroup`, [name2, option]);
        this.notify(`${this.prefix}create_augroup`, [name2, option]);
      }
      createAutocmd(event, option = {}, isNotify = false) {
        if (!isNotify)
          return this.request(`${this.prefix}create_autocmd`, [event, option]);
        this.notify(`${this.prefix}create_autocmd`, [event, option]);
      }
      deleteAutocmd(id2) {
        this.notify(`${this.prefix}del_autocmd`, [id2]);
      }
      setClientInfo(name2, version2, type, methods2, attributes) {
        this.notify(`${this.prefix}set_client_info`, [
          name2,
          version2,
          type,
          methods2,
          attributes
        ]);
      }
      /** Quit nvim */
      async quit() {
        this.command("qa!", true);
        if (this.transport) {
          this.transport.detach();
        }
      }
    };
    exports2.Neovim = Neovim2;
  }
});

// node_modules/@chemzqm/neovim/lib/api/client.js
var require_client = __commonJS({
  "node_modules/@chemzqm/neovim/lib/api/client.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.NeovimClient = exports2.AsyncResponse = void 0;
    var events_1 = require("events");
    var nvim_1 = require_nvim();
    var vim_1 = require_vim();
    var constants_1 = require_constants2();
    var error_1 = require_error();
    var Buffer_1 = require_Buffer();
    var Neovim_1 = require_Neovim();
    var Tabpage_1 = require_Tabpage();
    var Window_1 = require_Window();
    var functionsOnVim = [
      "nvim_buf_attach",
      "nvim_get_mode",
      "nvim_list_runtime_paths",
      "nvim_win_del_var",
      "nvim_create_buf",
      "nvim_exec",
      "nvim_tabpage_list_wins",
      "nvim_buf_del_var",
      "nvim_buf_get_mark",
      "nvim_tabpage_set_var",
      "nvim_create_namespace",
      "nvim_win_get_position",
      "nvim_win_set_height",
      "nvim_call_atomic",
      "nvim_buf_detach",
      "nvim_buf_line_count",
      "nvim_set_current_buf",
      "nvim_set_current_dir",
      "nvim_get_var",
      "nvim_del_current_line",
      "nvim_win_set_width",
      "nvim_out_write",
      "nvim_win_is_valid",
      "nvim_set_current_win",
      "nvim_get_current_tabpage",
      "nvim_tabpage_is_valid",
      "nvim_set_var",
      "nvim_win_get_height",
      "nvim_win_get_buf",
      "nvim_win_get_width",
      "nvim_buf_set_name",
      "nvim_subscribe",
      "nvim_get_current_win",
      "nvim_feedkeys",
      "nvim_get_vvar",
      "nvim_tabpage_get_number",
      "nvim_get_current_buf",
      "nvim_win_get_option",
      "nvim_win_get_cursor",
      "nvim_get_current_line",
      "nvim_win_get_var",
      "nvim_buf_get_var",
      "nvim_set_current_tabpage",
      "nvim_buf_clear_namespace",
      "nvim_err_write",
      "nvim_del_var",
      "nvim_call_dict_function",
      "nvim_set_current_line",
      "nvim_get_api_info",
      "nvim_unsubscribe",
      "nvim_get_option",
      "nvim_list_wins",
      "nvim_set_client_info",
      "nvim_win_set_cursor",
      "nvim_win_set_option",
      "nvim_eval",
      "nvim_tabpage_get_var",
      "nvim_buf_get_option",
      "nvim_tabpage_del_var",
      "nvim_buf_get_name",
      "nvim_list_bufs",
      "nvim_win_set_buf",
      "nvim_win_close",
      "nvim_command_output",
      "nvim_command",
      "nvim_tabpage_get_win",
      "nvim_win_set_var",
      "nvim_buf_add_highlight",
      "nvim_buf_set_var",
      "nvim_win_get_number",
      "nvim_strwidth",
      "nvim_buf_set_lines",
      "nvim_err_writeln",
      "nvim_buf_set_option",
      "nvim_list_tabpages",
      "nvim_set_option",
      "nvim_buf_get_lines",
      "nvim_buf_get_changedtick",
      "nvim_win_get_tabpage",
      "nvim_call_function",
      "nvim_buf_is_valid"
    ];
    var AsyncResponse = class {
      constructor(requestId, cb) {
        this.requestId = requestId;
        this.cb = cb;
        this.finished = false;
      }
      finish(err, res) {
        if (this.finished)
          return;
        this.finished = true;
        if (err) {
          this.cb(new Error(err));
          return;
        }
        this.cb(null, res);
      }
    };
    exports2.AsyncResponse = AsyncResponse;
    function applyMixins(derivedCtor, constructors) {
      constructors.forEach((baseCtor) => {
        Object.getOwnPropertyNames(baseCtor.prototype).forEach((name2) => {
          Object.defineProperty(derivedCtor.prototype, name2, Object.getOwnPropertyDescriptor(baseCtor.prototype, name2) || /* @__PURE__ */ Object.create(null));
        });
      });
    }
    var NeovimClient = class extends Neovim_1.Neovim {
      constructor(logger75, isVim2) {
        super({});
        this.logger = logger75;
        this.isVim = isVim2;
        this.requestId = 1;
        this.responses = /* @__PURE__ */ new Map();
        this.attachedBuffers = /* @__PURE__ */ new Map();
        const transport = isVim2 ? new vim_1.VimTransport(logger75) : new nvim_1.NvimTransport(logger75);
        Object.defineProperty(this, "_transport", {
          enumerable: false,
          get: () => {
            return transport;
          }
        });
        this.handleRequest = this.handleRequest.bind(this);
        this.handleNotification = this.handleNotification.bind(this);
      }
      get transport() {
        return this._transport;
      }
      echoError(msg) {
        let prefix2 = constants_1.isCocNvim ? "[coc.nvim] " : "";
        if (msg instanceof Error) {
          if (!constants_1.isTester)
            this.errWriteLine(prefix2 + msg.message + " use :CocOpenLog for details");
          this.logError(msg.message || "Unknown error", msg);
        } else {
          if (!constants_1.isTester)
            this.errWriteLine(prefix2 + msg);
          this.logError(msg.toString(), new Error());
        }
      }
      logError(msg, ...args) {
        if (constants_1.isTester)
          console.error(msg, ...args);
        if (!this.logger)
          return;
        this.logger.error(msg, ...args);
      }
      createBuffer(id2) {
        return new Buffer_1.Buffer({
          data: id2,
          client: this
        });
      }
      createWindow(id2) {
        return new Window_1.Window({
          data: id2,
          client: this
        });
      }
      createTabpage(id2) {
        return new Tabpage_1.Tabpage({
          data: id2,
          client: this
        });
      }
      /**
       * Invoke redraw on vim, must called when screen need update.
       */
      redrawVim(force) {
        if (!this.isVim)
          return;
        this.transport.notify("nvim_command", [`redraw${force ? "!" : ""}`]);
      }
      /** Attaches msgpack to read/write streams * */
      attach({ reader, writer }, requestApi = true) {
        this.transport.attach(writer, reader, this);
        this.transport.on("request", this.handleRequest);
        this.transport.on("notification", this.handleNotification);
        this.transport.on("detach", () => {
          this.emit("disconnect");
          this.rejectPendingResponses();
          this.transport.removeAllListeners("request");
          this.transport.removeAllListeners("notification");
          this.transport.removeAllListeners("detach");
        });
        if (requestApi) {
          this._isReady = this.generateApi().catch((err) => {
            this.logger.error(err);
            return false;
          });
        } else {
          this._channelId = -1;
          this._isReady = Promise.resolve(true);
        }
      }
      /* called when attach process disconnected*/
      detach() {
        this.attachedBuffers.clear();
        this.rejectPendingResponses();
        this.transport.detach();
        this.removeAllListeners();
      }
      /**
       * Reject pending async responses. They will never be answered once the
       * transport is gone, and leaving them pending would keep callers like
       * `funcs.callAsync` blocked on the shared mutex forever.
       */
      rejectPendingResponses() {
        if (this.responses.size === 0)
          return;
        const err = new Error(error_1.disconnectedText);
        for (const response of this.responses.values()) {
          response.finish(err.message);
        }
        this.responses.clear();
      }
      get channelId() {
        return this._isReady.then(() => {
          return this._channelId;
        });
      }
      handleRequest(method, args, resp) {
        this.emit("request", method, args, resp);
      }
      sendAsyncRequest(method, args) {
        let id2 = this.requestId;
        this.requestId = id2 + 1;
        this.notify("nvim_call_function", ["coc#rpc#async_request", [id2, method, args || []]]);
        return new Promise((resolve, reject) => {
          let response = new AsyncResponse(id2, (err, res) => {
            if (err)
              return reject(err);
            resolve(res);
          });
          this.responses.set(id2, response);
        });
      }
      handleNotification(method, args) {
        if (method.endsWith("_event")) {
          if (method === "vim_buf_change_event") {
            const id2 = args[0];
            if (!this.attachedBuffers.has(id2))
              return;
            const bufferMap = this.attachedBuffers.get(id2);
            const cbs = bufferMap.get("vim_lines") || [];
            cbs.forEach((cb) => cb(...args));
            return;
          }
          if (method.startsWith("nvim_buf_")) {
            const shortName = method.replace(/nvim_buf_(.*)_event/, "$1");
            const { id: id2 } = args[0];
            if (!this.attachedBuffers.has(id2))
              return;
            const bufferMap = this.attachedBuffers.get(id2);
            const cbs = bufferMap.get(shortName) || [];
            cbs.forEach((cb) => cb(...args));
            if (shortName === "detach") {
              this.attachedBuffers.delete(id2);
            }
            return;
          }
          if (method === "nvim_async_request_event") {
            const [id2, method2, arr] = args;
            this.handleRequest(method2, arr, {
              send: (resp, isError) => {
                this.notify("nvim_call_function", ["coc#rpc#async_response", [id2, resp, isError]]);
              }
            });
            return;
          }
          if (method === "nvim_async_response_event") {
            const [id2, err, res] = args;
            const response = this.responses.get(id2);
            if (!response) {
              this.logError(`Response not found for request ${id2}`);
              return;
            }
            this.responses.delete(id2);
            response.finish(err, res);
            return;
          }
          if (method === "nvim_error_event") {
            this.logger.error(`Error event from nvim:`, args[0], args[1]);
            this.emit("vim_error", args[1]);
            return;
          }
          this.logger.warn(`Unhandled event: ${method}`, args);
        } else {
          this.emit("notification", method, args);
        }
      }
      requestApi() {
        return new Promise((resolve, reject) => {
          this.transport.request("nvim_get_api_info", [], (err, res) => {
            if (err) {
              reject(new Error(Array.isArray(err) ? err[1] : err.message || err.toString()));
            } else {
              resolve(res);
            }
          });
        });
      }
      async generateApi() {
        let results = await this.requestApi();
        const [channelId, metadata] = results;
        this._channelId = channelId;
        return true;
      }
      attachBufferEvent(bufnr, eventName, cb) {
        const bufferMap = this.attachedBuffers.get(bufnr) || /* @__PURE__ */ new Map();
        const cbs = bufferMap.get(eventName) || [];
        if (cbs.includes(cb))
          return;
        cbs.push(cb);
        bufferMap.set(eventName, cbs);
        this.attachedBuffers.set(bufnr, bufferMap);
        return;
      }
      /**
       * Returns `true` if buffer should be detached
       */
      detachBufferEvent(bufnr, eventName, cb) {
        const bufferMap = this.attachedBuffers.get(bufnr);
        if (!bufferMap || !bufferMap.has(eventName))
          return;
        const handlers = bufferMap.get(eventName).filter((handler) => handler !== cb);
        bufferMap.set(eventName, handlers);
      }
      pauseNotification() {
        let o2 = {};
        if (true)
          Error.captureStackTrace(o2);
        if (this.transport.pauseLevel !== 0) {
          this.logError(`Nested nvim.pauseNotification() detected, please avoid it:`, o2.stack);
        }
        this.transport.pauseNotification();
        process.nextTick(() => {
          if (this.transport.pauseLevel > 0) {
            this.logError(`resumeNotification not called within same tick:`, o2.stack);
          }
        });
      }
      resumeNotification(redrawVim, notify) {
        if (this.isVim && redrawVim) {
          this.transport.notify("nvim_command", ["redraw"]);
        }
        if (notify) {
          void this.transport.resumeNotification(true);
          return;
        }
        return this.transport.resumeNotification();
      }
      /**
       * @deprecated
       */
      hasFunction(name2) {
        if (!this.isVim)
          return true;
        return functionsOnVim.includes(name2);
      }
    };
    exports2.NeovimClient = NeovimClient;
    applyMixins(NeovimClient, [events_1.EventEmitter]);
  }
});

// node_modules/@chemzqm/neovim/lib/api/index.js
var require_api = __commonJS({
  "node_modules/@chemzqm/neovim/lib/api/index.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.Tabpage = exports2.Window = exports2.Buffer = exports2.NeovimClient = exports2.Neovim = void 0;
    var client_1 = require_client();
    Object.defineProperty(exports2, "Neovim", { enumerable: true, get: function() {
      return client_1.NeovimClient;
    } });
    var client_2 = require_client();
    Object.defineProperty(exports2, "NeovimClient", { enumerable: true, get: function() {
      return client_2.NeovimClient;
    } });
    var Buffer_1 = require_Buffer();
    Object.defineProperty(exports2, "Buffer", { enumerable: true, get: function() {
      return Buffer_1.Buffer;
    } });
    var Window_1 = require_Window();
    Object.defineProperty(exports2, "Window", { enumerable: true, get: function() {
      return Window_1.Window;
    } });
    var Tabpage_1 = require_Tabpage();
    Object.defineProperty(exports2, "Tabpage", { enumerable: true, get: function() {
      return Tabpage_1.Tabpage;
    } });
  }
});

// node_modules/@chemzqm/neovim/lib/attach/attach.js
var require_attach = __commonJS({
  "node_modules/@chemzqm/neovim/lib/attach/attach.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.attach = attach2;
    var net_1 = require("net");
    var constants_1 = require_constants2();
    var logger_1 = require_logger();
    var client_1 = require_client();
    function attach2({ reader: _reader, writer: _writer, proc, socket }, logger75 = null, requestApi = true) {
      let writer;
      let reader;
      let neovim;
      if (!logger75)
        logger75 = logger_1.nullLogger;
      if (socket) {
        const client = (0, net_1.createConnection)(socket);
        writer = client;
        reader = client;
        client.once("close", () => {
          neovim.detach();
        });
      } else if (_reader && _writer) {
        writer = _writer;
        reader = _reader;
      } else if (proc) {
        writer = proc.stdin;
        reader = proc.stdout;
        proc.once("disconnect", () => {
          neovim.detach();
        });
      }
      if (writer && reader) {
        neovim = new client_1.NeovimClient(logger75, constants_1.isVim);
        neovim.attach({
          writer,
          reader
        }, requestApi);
        writer.on("error", (err) => {
          if (err.code === "EPIPE") {
            neovim.detach();
          }
        });
        return neovim;
      }
      throw new Error("Invalid arguments, could not attach");
    }
  }
});

// node_modules/@chemzqm/neovim/lib/index.js
var require_lib2 = __commonJS({
  "node_modules/@chemzqm/neovim/lib/index.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.attach = exports2.Window = exports2.Tabpage = exports2.Neovim = exports2.Buffer = void 0;
    var index_1 = require_api();
    Object.defineProperty(exports2, "Buffer", { enumerable: true, get: function() {
      return index_1.Buffer;
    } });
    Object.defineProperty(exports2, "Neovim", { enumerable: true, get: function() {
      return index_1.Neovim;
    } });
    Object.defineProperty(exports2, "Tabpage", { enumerable: true, get: function() {
      return index_1.Tabpage;
    } });
    Object.defineProperty(exports2, "Window", { enumerable: true, get: function() {
      return index_1.Window;
    } });
    var attach_1 = require_attach();
    Object.defineProperty(exports2, "attach", { enumerable: true, get: function() {
      return attach_1.attach;
    } });
  }
});

// src/util/errors.ts
function assert(condition) {
  if (!condition) {
    throw new BugIndicatingError("Assertion Failed");
  }
}
function isCancellationError(error) {
  if (error instanceof CancellationError) {
    return true;
  }
  return error instanceof Error && error.name === canceledName && error.message === canceledName;
}
function shouldIgnore(err) {
  if (isCancellationError(err)) return true;
  if (err instanceof Error && err.message === disconnectedText) return true;
  return false;
}
function onUnexpectedError(e2) {
  if (shouldIgnore(e2)) return;
  if (e2.stack) {
    throw new Error(e2.message + "\n\n" + e2.stack);
  } else {
    throw e2;
  }
}
function notLoaded(uri) {
  return new Error(`File ${uri} not loaded`);
}
function illegalArgument(name2) {
  if (name2) {
    return new Error(`Illegal argument: ${name2}`);
  } else {
    return new Error("Illegal argument");
  }
}
function directoryNotExists(dir) {
  return new Error(`Directory ${dir} not exists`);
}
function fileExists(filepath) {
  return new Error(`File ${filepath} already exists`);
}
function fileNotExists(filepath) {
  return new Error(`File ${filepath} not exists`);
}
function shouldNotAsync(method) {
  return new Error(`${method} should not be called in an asynchronize manner`);
}
function badScheme(uri) {
  return new Error(`Change of ${uri} not supported`);
}
var canceledName, CancellationError, disconnectedText, BugIndicatingError;
var init_errors = __esm({
  "src/util/errors.ts"() {
    "use strict";
    canceledName = "Canceled";
    CancellationError = class extends Error {
      constructor() {
        super(canceledName);
        this.name = this.message;
      }
    };
    disconnectedText = "transport disconnected";
    BugIndicatingError = class _BugIndicatingError extends Error {
      constructor(message) {
        super(message);
        Object.setPrototypeOf(this, _BugIndicatingError.prototype);
        debugger;
      }
    };
  }
});

// node_modules/vscode-languageserver-types/lib/esm/main.js
var main_exports = {};
__export(main_exports, {
  AnnotatedTextEdit: () => AnnotatedTextEdit,
  ApplyKind: () => ApplyKind,
  ChangeAnnotation: () => ChangeAnnotation,
  ChangeAnnotationIdentifier: () => ChangeAnnotationIdentifier,
  CodeAction: () => CodeAction,
  CodeActionContext: () => CodeActionContext,
  CodeActionKind: () => CodeActionKind,
  CodeActionTag: () => CodeActionTag,
  CodeActionTriggerKind: () => CodeActionTriggerKind,
  CodeDescription: () => CodeDescription,
  CodeLens: () => CodeLens,
  Color: () => Color,
  ColorInformation: () => ColorInformation,
  ColorPresentation: () => ColorPresentation,
  Command: () => Command,
  CompletionItem: () => CompletionItem,
  CompletionItemKind: () => CompletionItemKind,
  CompletionItemLabelDetails: () => CompletionItemLabelDetails,
  CompletionItemTag: () => CompletionItemTag,
  CompletionList: () => CompletionList,
  CreateFile: () => CreateFile,
  DeleteFile: () => DeleteFile,
  Diagnostic: () => Diagnostic,
  DiagnosticRelatedInformation: () => DiagnosticRelatedInformation,
  DiagnosticSeverity: () => DiagnosticSeverity,
  DiagnosticTag: () => DiagnosticTag,
  DocumentHighlight: () => DocumentHighlight,
  DocumentHighlightKind: () => DocumentHighlightKind,
  DocumentLink: () => DocumentLink,
  DocumentSymbol: () => DocumentSymbol,
  DocumentUri: () => DocumentUri,
  EOL: () => EOL,
  FoldingRange: () => FoldingRange,
  FoldingRangeKind: () => FoldingRangeKind,
  FormattingOptions: () => FormattingOptions,
  Hover: () => Hover,
  InlayHint: () => InlayHint,
  InlayHintKind: () => InlayHintKind,
  InlayHintLabelPart: () => InlayHintLabelPart,
  InlineCompletionContext: () => InlineCompletionContext,
  InlineCompletionItem: () => InlineCompletionItem,
  InlineCompletionList: () => InlineCompletionList,
  InlineCompletionTriggerKind: () => InlineCompletionTriggerKind,
  InlineValueContext: () => InlineValueContext,
  InlineValueEvaluatableExpression: () => InlineValueEvaluatableExpression,
  InlineValueText: () => InlineValueText,
  InlineValueVariableLookup: () => InlineValueVariableLookup,
  InsertReplaceEdit: () => InsertReplaceEdit,
  InsertTextFormat: () => InsertTextFormat,
  InsertTextMode: () => InsertTextMode,
  LanguageKind: () => LanguageKind,
  Location: () => Location,
  LocationLink: () => LocationLink,
  MarkedString: () => MarkedString,
  MarkupContent: () => MarkupContent,
  MarkupKind: () => MarkupKind,
  OptionalVersionedTextDocumentIdentifier: () => OptionalVersionedTextDocumentIdentifier,
  ParameterInformation: () => ParameterInformation,
  Position: () => Position,
  Range: () => Range,
  RenameFile: () => RenameFile,
  SelectedCompletionInfo: () => SelectedCompletionInfo,
  SelectionRange: () => SelectionRange,
  SemanticTokenModifiers: () => SemanticTokenModifiers,
  SemanticTokenTypes: () => SemanticTokenTypes,
  SemanticTokens: () => SemanticTokens,
  SignatureInformation: () => SignatureInformation,
  SnippetTextEdit: () => SnippetTextEdit,
  StringValue: () => StringValue,
  SymbolInformation: () => SymbolInformation,
  SymbolKind: () => SymbolKind,
  SymbolTag: () => SymbolTag,
  TextDocument: () => TextDocument,
  TextDocumentEdit: () => TextDocumentEdit,
  TextDocumentIdentifier: () => TextDocumentIdentifier,
  TextDocumentItem: () => TextDocumentItem,
  TextEdit: () => TextEdit,
  URI: () => URI,
  VersionedTextDocumentIdentifier: () => VersionedTextDocumentIdentifier,
  WorkspaceChange: () => WorkspaceChange,
  WorkspaceEdit: () => WorkspaceEdit,
  WorkspaceFolder: () => WorkspaceFolder,
  WorkspaceSymbol: () => WorkspaceSymbol,
  integer: () => integer,
  uinteger: () => uinteger
});
var DocumentUri, URI, integer, uinteger, Position, Range, Location, LocationLink, Color, ColorInformation, ColorPresentation, FoldingRangeKind, FoldingRange, DiagnosticRelatedInformation, DiagnosticSeverity, DiagnosticTag, CodeDescription, Diagnostic, Command, TextEdit, ChangeAnnotation, ChangeAnnotationIdentifier, AnnotatedTextEdit, TextDocumentEdit, CreateFile, RenameFile, DeleteFile, WorkspaceEdit, TextEditChangeImpl, SnippetTextEdit, ChangeAnnotations, WorkspaceChange, TextDocumentIdentifier, VersionedTextDocumentIdentifier, OptionalVersionedTextDocumentIdentifier, LanguageKind, TextDocumentItem, MarkupKind, MarkupContent, CompletionItemKind, InsertTextFormat, CompletionItemTag, InsertReplaceEdit, InsertTextMode, ApplyKind, CompletionItemLabelDetails, CompletionItem, CompletionList, MarkedString, Hover, ParameterInformation, SignatureInformation, DocumentHighlightKind, DocumentHighlight, SymbolKind, SymbolTag, SymbolInformation, WorkspaceSymbol, DocumentSymbol, CodeActionKind, CodeActionTriggerKind, CodeActionContext, CodeActionTag, CodeAction, CodeLens, FormattingOptions, DocumentLink, SelectionRange, SemanticTokenTypes, SemanticTokenModifiers, SemanticTokens, InlineValueText, InlineValueVariableLookup, InlineValueEvaluatableExpression, InlineValueContext, InlayHintKind, InlayHintLabelPart, InlayHint, StringValue, InlineCompletionItem, InlineCompletionList, InlineCompletionTriggerKind, SelectedCompletionInfo, InlineCompletionContext, WorkspaceFolder, EOL, TextDocument, FullTextDocument, Is;
var init_main = __esm({
  "node_modules/vscode-languageserver-types/lib/esm/main.js"() {
    "use strict";
    (function(DocumentUri2) {
      function is(value) {
        return typeof value === "string";
      }
      DocumentUri2.is = is;
    })(DocumentUri || (DocumentUri = {}));
    (function(URI2) {
      function is(value) {
        return typeof value === "string";
      }
      URI2.is = is;
    })(URI || (URI = {}));
    (function(integer2) {
      integer2.MIN_VALUE = -2147483648;
      integer2.MAX_VALUE = 2147483647;
      function is(value) {
        return typeof value === "number" && integer2.MIN_VALUE <= value && value <= integer2.MAX_VALUE;
      }
      integer2.is = is;
    })(integer || (integer = {}));
    (function(uinteger3) {
      uinteger3.MIN_VALUE = 0;
      uinteger3.MAX_VALUE = 2147483647;
      function is(value) {
        return typeof value === "number" && uinteger3.MIN_VALUE <= value && value <= uinteger3.MAX_VALUE;
      }
      uinteger3.is = is;
    })(uinteger || (uinteger = {}));
    (function(Position12) {
      function create2(line, character) {
        if (line === Number.MAX_VALUE) {
          line = uinteger.MAX_VALUE;
        }
        if (character === Number.MAX_VALUE) {
          character = uinteger.MAX_VALUE;
        }
        return { line, character };
      }
      Position12.create = create2;
      function is(value) {
        const candidate = value;
        return Is.objectLiteral(candidate) && Is.uinteger(candidate.line) && Is.uinteger(candidate.character);
      }
      Position12.is = is;
    })(Position || (Position = {}));
    (function(Range11) {
      function create2(one, two, three, four) {
        if (Is.uinteger(one) && Is.uinteger(two) && Is.uinteger(three) && Is.uinteger(four)) {
          return { start: Position.create(one, two), end: Position.create(three, four) };
        } else if (Position.is(one) && Position.is(two)) {
          return { start: one, end: two };
        } else {
          throw new Error(`Range#create called with invalid arguments[${one}, ${two}, ${three}, ${four}]`);
        }
      }
      Range11.create = create2;
      function is(value) {
        const candidate = value;
        return Is.objectLiteral(candidate) && Position.is(candidate.start) && Position.is(candidate.end);
      }
      Range11.is = is;
    })(Range || (Range = {}));
    (function(Location3) {
      function create2(uri, range2) {
        return { uri, range: range2 };
      }
      Location3.create = create2;
      function is(value) {
        const candidate = value;
        return Is.objectLiteral(candidate) && Range.is(candidate.range) && (Is.string(candidate.uri) || Is.undefined(candidate.uri));
      }
      Location3.is = is;
    })(Location || (Location = {}));
    (function(LocationLink3) {
      function create2(targetUri, targetRange, targetSelectionRange, originSelectionRange) {
        return { targetUri, targetRange, targetSelectionRange, originSelectionRange };
      }
      LocationLink3.create = create2;
      function is(value) {
        const candidate = value;
        return Is.objectLiteral(candidate) && Range.is(candidate.targetRange) && Is.string(candidate.targetUri) && Range.is(candidate.targetSelectionRange) && (Range.is(candidate.originSelectionRange) || Is.undefined(candidate.originSelectionRange));
      }
      LocationLink3.is = is;
    })(LocationLink || (LocationLink = {}));
    (function(Color2) {
      function create2(red, green, blue2, alpha) {
        return {
          red,
          green,
          blue: blue2,
          alpha
        };
      }
      Color2.create = create2;
      function is(value) {
        const candidate = value;
        return Is.objectLiteral(candidate) && Is.numberRange(candidate.red, 0, 1) && Is.numberRange(candidate.green, 0, 1) && Is.numberRange(candidate.blue, 0, 1) && Is.numberRange(candidate.alpha, 0, 1);
      }
      Color2.is = is;
    })(Color || (Color = {}));
    (function(ColorInformation3) {
      function create2(range2, color) {
        return {
          range: range2,
          color
        };
      }
      ColorInformation3.create = create2;
      function is(value) {
        const candidate = value;
        return Is.objectLiteral(candidate) && Range.is(candidate.range) && Color.is(candidate.color);
      }
      ColorInformation3.is = is;
    })(ColorInformation || (ColorInformation = {}));
    (function(ColorPresentation3) {
      function create2(label, textEdit, additionalTextEdits) {
        return {
          label,
          textEdit,
          additionalTextEdits
        };
      }
      ColorPresentation3.create = create2;
      function is(value) {
        const candidate = value;
        return Is.objectLiteral(candidate) && Is.string(candidate.label) && (Is.undefined(candidate.textEdit) || TextEdit.is(candidate.textEdit)) && (Is.undefined(candidate.additionalTextEdits) || Is.typedArray(candidate.additionalTextEdits, TextEdit.is));
      }
      ColorPresentation3.is = is;
    })(ColorPresentation || (ColorPresentation = {}));
    (function(FoldingRangeKind3) {
      FoldingRangeKind3.Comment = "comment";
      FoldingRangeKind3.Imports = "imports";
      FoldingRangeKind3.Region = "region";
    })(FoldingRangeKind || (FoldingRangeKind = {}));
    (function(FoldingRange3) {
      function create2(startLine, endLine, startCharacter, endCharacter, kind, collapsedText) {
        const result = {
          startLine,
          endLine
        };
        if (Is.defined(startCharacter)) {
          result.startCharacter = startCharacter;
        }
        if (Is.defined(endCharacter)) {
          result.endCharacter = endCharacter;
        }
        if (Is.defined(kind)) {
          result.kind = kind;
        }
        if (Is.defined(collapsedText)) {
          result.collapsedText = collapsedText;
        }
        return result;
      }
      FoldingRange3.create = create2;
      function is(value) {
        const candidate = value;
        return Is.objectLiteral(candidate) && Is.uinteger(candidate.startLine) && Is.uinteger(candidate.endLine) && (Is.undefined(candidate.startCharacter) || Is.uinteger(candidate.startCharacter)) && (Is.undefined(candidate.endCharacter) || Is.uinteger(candidate.endCharacter)) && (Is.undefined(candidate.kind) || Is.string(candidate.kind));
      }
      FoldingRange3.is = is;
    })(FoldingRange || (FoldingRange = {}));
    (function(DiagnosticRelatedInformation2) {
      function create2(location, message) {
        return {
          location,
          message
        };
      }
      DiagnosticRelatedInformation2.create = create2;
      function is(value) {
        const candidate = value;
        return Is.objectLiteral(candidate) && Location.is(candidate.location) && Is.string(candidate.message);
      }
      DiagnosticRelatedInformation2.is = is;
    })(DiagnosticRelatedInformation || (DiagnosticRelatedInformation = {}));
    (function(DiagnosticSeverity2) {
      DiagnosticSeverity2.Error = 1;
      DiagnosticSeverity2.Warning = 2;
      DiagnosticSeverity2.Information = 3;
      DiagnosticSeverity2.Hint = 4;
    })(DiagnosticSeverity || (DiagnosticSeverity = {}));
    (function(DiagnosticTag2) {
      DiagnosticTag2.Unnecessary = 1;
      DiagnosticTag2.Deprecated = 2;
    })(DiagnosticTag || (DiagnosticTag = {}));
    (function(CodeDescription2) {
      function is(value) {
        const candidate = value;
        return Is.objectLiteral(candidate) && Is.string(candidate.href);
      }
      CodeDescription2.is = is;
    })(CodeDescription || (CodeDescription = {}));
    (function(Diagnostic9) {
      function create2(range2, message, severity, code, source, relatedInformation) {
        const result = { range: range2, message };
        if (Is.defined(severity)) {
          result.severity = severity;
        }
        if (Is.defined(code)) {
          result.code = code;
        }
        if (Is.defined(source)) {
          result.source = source;
        }
        if (Is.defined(relatedInformation)) {
          result.relatedInformation = relatedInformation;
        }
        return result;
      }
      Diagnostic9.create = create2;
      function is(value) {
        var _a;
        const candidate = value;
        return Is.objectLiteral(candidate) && Range.is(candidate.range) && (Is.string(candidate.message) || MarkupContent.is(candidate.message)) && (Is.number(candidate.severity) || Is.undefined(candidate.severity)) && (Is.integer(candidate.code) || Is.string(candidate.code) || Is.undefined(candidate.code)) && (Is.undefined(candidate.codeDescription) || Is.string((_a = candidate.codeDescription) === null || _a === void 0 ? void 0 : _a.href)) && (Is.string(candidate.source) || Is.undefined(candidate.source)) && (Is.undefined(candidate.relatedInformation) || Is.typedArray(candidate.relatedInformation, DiagnosticRelatedInformation.is));
      }
      Diagnostic9.is = is;
      function is3_17(value) {
        return Is.string(value.message);
      }
      Diagnostic9.is3_17 = is3_17;
      function getMessageString2(diagnostic) {
        if (Is.string(diagnostic.message)) {
          return diagnostic.message;
        } else if (MarkupContent.is(diagnostic.message)) {
          return diagnostic.message.value;
        } else {
          throw new Error(`Unknown message type ${typeof diagnostic.message}`);
        }
      }
      Diagnostic9.getMessageString = getMessageString2;
    })(Diagnostic || (Diagnostic = {}));
    (function(Command3) {
      function create2(title, command, ...args) {
        const result = { title, command };
        if (Is.defined(args) && args.length > 0) {
          result.arguments = args;
        }
        return result;
      }
      Command3.create = create2;
      function is(value) {
        const candidate = value;
        return Is.objectLiteral(candidate) && Is.string(candidate.title) && (candidate.tooltip === void 0 || Is.string(candidate.tooltip)) && Is.string(candidate.command);
      }
      Command3.is = is;
    })(Command || (Command = {}));
    (function(TextEdit11) {
      function replace(range2, newText) {
        return { range: range2, newText };
      }
      TextEdit11.replace = replace;
      function insert(position, newText) {
        return { range: { start: position, end: position }, newText };
      }
      TextEdit11.insert = insert;
      function del(range2) {
        return { range: range2, newText: "" };
      }
      TextEdit11.del = del;
      function is(value) {
        const candidate = value;
        return Is.objectLiteral(candidate) && Is.string(candidate.newText) && Range.is(candidate.range);
      }
      TextEdit11.is = is;
    })(TextEdit || (TextEdit = {}));
    (function(ChangeAnnotation5) {
      function create2(label, needsConfirmation, description) {
        const result = { label };
        if (needsConfirmation !== void 0) {
          result.needsConfirmation = needsConfirmation;
        }
        if (description !== void 0) {
          result.description = description;
        }
        return result;
      }
      ChangeAnnotation5.create = create2;
      function is(value) {
        const candidate = value;
        return Is.objectLiteral(candidate) && Is.string(candidate.label) && (Is.boolean(candidate.needsConfirmation) || candidate.needsConfirmation === void 0) && (Is.string(candidate.description) || candidate.description === void 0);
      }
      ChangeAnnotation5.is = is;
    })(ChangeAnnotation || (ChangeAnnotation = {}));
    (function(ChangeAnnotationIdentifier2) {
      function is(value) {
        const candidate = value;
        return Is.string(candidate);
      }
      ChangeAnnotationIdentifier2.is = is;
    })(ChangeAnnotationIdentifier || (ChangeAnnotationIdentifier = {}));
    (function(AnnotatedTextEdit2) {
      function replace(range2, newText, annotation) {
        return { range: range2, newText, annotationId: annotation };
      }
      AnnotatedTextEdit2.replace = replace;
      function insert(position, newText, annotation) {
        return { range: { start: position, end: position }, newText, annotationId: annotation };
      }
      AnnotatedTextEdit2.insert = insert;
      function del(range2, annotation) {
        return { range: range2, newText: "", annotationId: annotation };
      }
      AnnotatedTextEdit2.del = del;
      function is(value) {
        const candidate = value;
        return TextEdit.is(candidate) && (ChangeAnnotation.is(candidate.annotationId) || ChangeAnnotationIdentifier.is(candidate.annotationId));
      }
      AnnotatedTextEdit2.is = is;
    })(AnnotatedTextEdit || (AnnotatedTextEdit = {}));
    (function(TextDocumentEdit2) {
      function create2(textDocument, edits) {
        return { textDocument, edits };
      }
      TextDocumentEdit2.create = create2;
      function is(value) {
        const candidate = value;
        return Is.objectLiteral(candidate) && OptionalVersionedTextDocumentIdentifier.is(candidate.textDocument) && Array.isArray(candidate.edits);
      }
      TextDocumentEdit2.is = is;
    })(TextDocumentEdit || (TextDocumentEdit = {}));
    (function(CreateFile2) {
      function create2(uri, options3, annotation) {
        const result = {
          kind: "create",
          uri
        };
        if (options3 !== void 0 && (options3.overwrite !== void 0 || options3.ignoreIfExists !== void 0)) {
          result.options = options3;
        }
        if (annotation !== void 0) {
          result.annotationId = annotation;
        }
        return result;
      }
      CreateFile2.create = create2;
      function is(value) {
        const candidate = value;
        return candidate && candidate.kind === "create" && Is.string(candidate.uri) && (candidate.options === void 0 || (candidate.options.overwrite === void 0 || Is.boolean(candidate.options.overwrite)) && (candidate.options.ignoreIfExists === void 0 || Is.boolean(candidate.options.ignoreIfExists))) && (candidate.annotationId === void 0 || ChangeAnnotationIdentifier.is(candidate.annotationId));
      }
      CreateFile2.is = is;
    })(CreateFile || (CreateFile = {}));
    (function(RenameFile2) {
      function create2(oldUri, newUri, options3, annotation) {
        const result = {
          kind: "rename",
          oldUri,
          newUri
        };
        if (options3 !== void 0 && (options3.overwrite !== void 0 || options3.ignoreIfExists !== void 0)) {
          result.options = options3;
        }
        if (annotation !== void 0) {
          result.annotationId = annotation;
        }
        return result;
      }
      RenameFile2.create = create2;
      function is(value) {
        const candidate = value;
        return candidate && candidate.kind === "rename" && Is.string(candidate.oldUri) && Is.string(candidate.newUri) && (candidate.options === void 0 || (candidate.options.overwrite === void 0 || Is.boolean(candidate.options.overwrite)) && (candidate.options.ignoreIfExists === void 0 || Is.boolean(candidate.options.ignoreIfExists))) && (candidate.annotationId === void 0 || ChangeAnnotationIdentifier.is(candidate.annotationId));
      }
      RenameFile2.is = is;
    })(RenameFile || (RenameFile = {}));
    (function(DeleteFile2) {
      function create2(uri, options3, annotation) {
        const result = {
          kind: "delete",
          uri
        };
        if (options3 !== void 0 && (options3.recursive !== void 0 || options3.ignoreIfNotExists !== void 0)) {
          result.options = options3;
        }
        if (annotation !== void 0) {
          result.annotationId = annotation;
        }
        return result;
      }
      DeleteFile2.create = create2;
      function is(value) {
        const candidate = value;
        return candidate && candidate.kind === "delete" && Is.string(candidate.uri) && (candidate.options === void 0 || (candidate.options.recursive === void 0 || Is.boolean(candidate.options.recursive)) && (candidate.options.ignoreIfNotExists === void 0 || Is.boolean(candidate.options.ignoreIfNotExists))) && (candidate.annotationId === void 0 || ChangeAnnotationIdentifier.is(candidate.annotationId));
      }
      DeleteFile2.is = is;
    })(DeleteFile || (DeleteFile = {}));
    (function(WorkspaceEdit7) {
      function is(value) {
        const candidate = value;
        return candidate && (candidate.changes !== void 0 || candidate.documentChanges !== void 0) && (candidate.documentChanges === void 0 || candidate.documentChanges.every((change) => {
          if (Is.string(change.kind)) {
            return CreateFile.is(change) || RenameFile.is(change) || DeleteFile.is(change);
          } else {
            return TextDocumentEdit.is(change);
          }
        }));
      }
      WorkspaceEdit7.is = is;
    })(WorkspaceEdit || (WorkspaceEdit = {}));
    TextEditChangeImpl = class {
      constructor(edits, changeAnnotations) {
        this.edits = edits;
        this.changeAnnotations = changeAnnotations;
      }
      insert(position, newText, annotation) {
        let edit2;
        let id2;
        if (annotation === void 0) {
          edit2 = TextEdit.insert(position, newText);
        } else if (ChangeAnnotationIdentifier.is(annotation)) {
          id2 = annotation;
          edit2 = AnnotatedTextEdit.insert(position, newText, annotation);
        } else {
          this.assertChangeAnnotations(this.changeAnnotations);
          id2 = this.changeAnnotations.manage(annotation);
          edit2 = AnnotatedTextEdit.insert(position, newText, id2);
        }
        this.edits.push(edit2);
        if (id2 !== void 0) {
          return id2;
        }
      }
      replace(range2, newText, annotation) {
        let edit2;
        let id2;
        if (annotation === void 0) {
          edit2 = TextEdit.replace(range2, newText);
        } else if (ChangeAnnotationIdentifier.is(annotation)) {
          id2 = annotation;
          edit2 = AnnotatedTextEdit.replace(range2, newText, annotation);
        } else {
          this.assertChangeAnnotations(this.changeAnnotations);
          id2 = this.changeAnnotations.manage(annotation);
          edit2 = AnnotatedTextEdit.replace(range2, newText, id2);
        }
        this.edits.push(edit2);
        if (id2 !== void 0) {
          return id2;
        }
      }
      delete(range2, annotation) {
        let edit2;
        let id2;
        if (annotation === void 0) {
          edit2 = TextEdit.del(range2);
        } else if (ChangeAnnotationIdentifier.is(annotation)) {
          id2 = annotation;
          edit2 = AnnotatedTextEdit.del(range2, annotation);
        } else {
          this.assertChangeAnnotations(this.changeAnnotations);
          id2 = this.changeAnnotations.manage(annotation);
          edit2 = AnnotatedTextEdit.del(range2, id2);
        }
        this.edits.push(edit2);
        if (id2 !== void 0) {
          return id2;
        }
      }
      add(edit2) {
        this.edits.push(edit2);
      }
      all() {
        return this.edits;
      }
      clear() {
        this.edits.splice(0, this.edits.length);
      }
      assertChangeAnnotations(value) {
        if (value === void 0) {
          throw new Error(`Text edit change is not configured to manage change annotations.`);
        }
      }
    };
    (function(SnippetTextEdit3) {
      function is(value) {
        const candidate = value;
        return Is.objectLiteral(candidate) && Range.is(candidate.range) && StringValue.isSnippet(candidate.snippet) && (candidate.annotationId === void 0 || (ChangeAnnotation.is(candidate.annotationId) || ChangeAnnotationIdentifier.is(candidate.annotationId)));
      }
      SnippetTextEdit3.is = is;
    })(SnippetTextEdit || (SnippetTextEdit = {}));
    ChangeAnnotations = class {
      constructor(annotations) {
        this._annotations = annotations === void 0 ? /* @__PURE__ */ Object.create(null) : annotations;
        this._counter = 0;
        this._size = Object.keys(this._annotations).length;
      }
      all() {
        return this._annotations;
      }
      get size() {
        return this._size;
      }
      manage(idOrAnnotation, annotation) {
        let id2;
        if (ChangeAnnotationIdentifier.is(idOrAnnotation)) {
          id2 = idOrAnnotation;
        } else {
          id2 = this.nextId();
          annotation = idOrAnnotation;
        }
        if (this._annotations[id2] !== void 0) {
          throw new Error(`Id ${id2} is already in use.`);
        }
        if (annotation === void 0) {
          throw new Error(`No annotation provided for id ${id2}`);
        }
        this._annotations[id2] = annotation;
        this._size++;
        return id2;
      }
      nextId() {
        let id2;
        do {
          this._counter++;
          id2 = this._counter.toString();
        } while (this._annotations[id2] !== void 0);
        return id2;
      }
    };
    WorkspaceChange = class {
      constructor(workspaceEdit) {
        this._textEditChanges = /* @__PURE__ */ Object.create(null);
        if (workspaceEdit !== void 0) {
          this._workspaceEdit = workspaceEdit;
          if (workspaceEdit.documentChanges) {
            this._changeAnnotations = new ChangeAnnotations(workspaceEdit.changeAnnotations);
            workspaceEdit.changeAnnotations = this._changeAnnotations.all();
            workspaceEdit.documentChanges.forEach((change) => {
              if (TextDocumentEdit.is(change)) {
                const textEditChange = new TextEditChangeImpl(change.edits, this._changeAnnotations);
                this._textEditChanges[change.textDocument.uri] = textEditChange;
              }
            });
          } else if (workspaceEdit.changes) {
            Object.keys(workspaceEdit.changes).forEach((key) => {
              const textEditChange = new TextEditChangeImpl(workspaceEdit.changes[key]);
              this._textEditChanges[key] = textEditChange;
            });
          }
        } else {
          this._workspaceEdit = {};
        }
      }
      /**
       * Returns the underlying {@link WorkspaceEdit} literal
       * use to be returned from a workspace edit operation like rename.
       */
      get edit() {
        this.initDocumentChanges();
        if (this._changeAnnotations !== void 0) {
          if (this._changeAnnotations.size === 0) {
            this._workspaceEdit.changeAnnotations = void 0;
          } else {
            this._workspaceEdit.changeAnnotations = this._changeAnnotations.all();
          }
        }
        return this._workspaceEdit;
      }
      getTextEditChange(key) {
        if (OptionalVersionedTextDocumentIdentifier.is(key)) {
          this.initDocumentChanges();
          if (this._workspaceEdit.documentChanges === void 0) {
            throw new Error("Workspace edit is not configured for document changes.");
          }
          const textDocument = { uri: key.uri, version: key.version };
          let result = this._textEditChanges[textDocument.uri];
          if (!result) {
            const edits = [];
            const textDocumentEdit = {
              textDocument,
              edits
            };
            this._workspaceEdit.documentChanges.push(textDocumentEdit);
            result = new TextEditChangeImpl(edits, this._changeAnnotations);
            this._textEditChanges[textDocument.uri] = result;
          }
          return result;
        } else {
          this.initChanges();
          if (this._workspaceEdit.changes === void 0) {
            throw new Error("Workspace edit is not configured for normal text edit changes.");
          }
          let result = this._textEditChanges[key];
          if (!result) {
            const edits = [];
            this._workspaceEdit.changes[key] = edits;
            result = new TextEditChangeImpl(edits);
            this._textEditChanges[key] = result;
          }
          return result;
        }
      }
      initDocumentChanges() {
        if (this._workspaceEdit.documentChanges === void 0 && this._workspaceEdit.changes === void 0) {
          this._changeAnnotations = new ChangeAnnotations();
          this._workspaceEdit.documentChanges = [];
          this._workspaceEdit.changeAnnotations = this._changeAnnotations.all();
        }
      }
      initChanges() {
        if (this._workspaceEdit.documentChanges === void 0 && this._workspaceEdit.changes === void 0) {
          this._workspaceEdit.changes = /* @__PURE__ */ Object.create(null);
        }
      }
      createFile(uri, optionsOrAnnotation, options3) {
        this.initDocumentChanges();
        if (this._workspaceEdit.documentChanges === void 0) {
          throw new Error("Workspace edit is not configured for document changes.");
        }
        let annotation;
        if (ChangeAnnotation.is(optionsOrAnnotation) || ChangeAnnotationIdentifier.is(optionsOrAnnotation)) {
          annotation = optionsOrAnnotation;
        } else {
          options3 = optionsOrAnnotation;
        }
        let operation;
        let id2;
        if (annotation === void 0) {
          operation = CreateFile.create(uri, options3);
        } else {
          id2 = ChangeAnnotationIdentifier.is(annotation) ? annotation : this._changeAnnotations.manage(annotation);
          operation = CreateFile.create(uri, options3, id2);
        }
        this._workspaceEdit.documentChanges.push(operation);
        if (id2 !== void 0) {
          return id2;
        }
      }
      renameFile(oldUri, newUri, optionsOrAnnotation, options3) {
        this.initDocumentChanges();
        if (this._workspaceEdit.documentChanges === void 0) {
          throw new Error("Workspace edit is not configured for document changes.");
        }
        let annotation;
        if (ChangeAnnotation.is(optionsOrAnnotation) || ChangeAnnotationIdentifier.is(optionsOrAnnotation)) {
          annotation = optionsOrAnnotation;
        } else {
          options3 = optionsOrAnnotation;
        }
        let operation;
        let id2;
        if (annotation === void 0) {
          operation = RenameFile.create(oldUri, newUri, options3);
        } else {
          id2 = ChangeAnnotationIdentifier.is(annotation) ? annotation : this._changeAnnotations.manage(annotation);
          operation = RenameFile.create(oldUri, newUri, options3, id2);
        }
        this._workspaceEdit.documentChanges.push(operation);
        if (id2 !== void 0) {
          return id2;
        }
      }
      deleteFile(uri, optionsOrAnnotation, options3) {
        this.initDocumentChanges();
        if (this._workspaceEdit.documentChanges === void 0) {
          throw new Error("Workspace edit is not configured for document changes.");
        }
        let annotation;
        if (ChangeAnnotation.is(optionsOrAnnotation) || ChangeAnnotationIdentifier.is(optionsOrAnnotation)) {
          annotation = optionsOrAnnotation;
        } else {
          options3 = optionsOrAnnotation;
        }
        let operation;
        let id2;
        if (annotation === void 0) {
          operation = DeleteFile.create(uri, options3);
        } else {
          id2 = ChangeAnnotationIdentifier.is(annotation) ? annotation : this._changeAnnotations.manage(annotation);
          operation = DeleteFile.create(uri, options3, id2);
        }
        this._workspaceEdit.documentChanges.push(operation);
        if (id2 !== void 0) {
          return id2;
        }
      }
    };
    (function(TextDocumentIdentifier3) {
      function create2(uri) {
        return { uri };
      }
      TextDocumentIdentifier3.create = create2;
      function is(value) {
        const candidate = value;
        return Is.objectLiteral(candidate) && Is.string(candidate.uri);
      }
      TextDocumentIdentifier3.is = is;
    })(TextDocumentIdentifier || (TextDocumentIdentifier = {}));
    (function(VersionedTextDocumentIdentifier2) {
      function create2(uri, version2) {
        return { uri, version: version2 };
      }
      VersionedTextDocumentIdentifier2.create = create2;
      function is(value) {
        const candidate = value;
        return Is.objectLiteral(candidate) && Is.string(candidate.uri) && Is.integer(candidate.version);
      }
      VersionedTextDocumentIdentifier2.is = is;
    })(VersionedTextDocumentIdentifier || (VersionedTextDocumentIdentifier = {}));
    (function(OptionalVersionedTextDocumentIdentifier2) {
      function create2(uri, version2) {
        return { uri, version: version2 };
      }
      OptionalVersionedTextDocumentIdentifier2.create = create2;
      function is(value) {
        const candidate = value;
        return Is.objectLiteral(candidate) && Is.string(candidate.uri) && (candidate.version === null || Is.integer(candidate.version));
      }
      OptionalVersionedTextDocumentIdentifier2.is = is;
    })(OptionalVersionedTextDocumentIdentifier || (OptionalVersionedTextDocumentIdentifier = {}));
    (function(LanguageKind2) {
      LanguageKind2.ABAP = "abap";
      LanguageKind2.WindowsBat = "bat";
      LanguageKind2.BibTeX = "bibtex";
      LanguageKind2.Clojure = "clojure";
      LanguageKind2.Coffeescript = "coffeescript";
      LanguageKind2.C = "c";
      LanguageKind2.CPP = "cpp";
      LanguageKind2.CSharp = "csharp";
      LanguageKind2.CSS = "css";
      LanguageKind2.D = "d";
      LanguageKind2.Delphi = "pascal";
      LanguageKind2.Diff = "diff";
      LanguageKind2.Dart = "dart";
      LanguageKind2.Dockerfile = "dockerfile";
      LanguageKind2.Elixir = "elixir";
      LanguageKind2.Erlang = "erlang";
      LanguageKind2.FSharp = "fsharp";
      LanguageKind2.GitCommit = "git-commit";
      LanguageKind2.GitRebase = "git-rebase";
      LanguageKind2.Go = "go";
      LanguageKind2.Groovy = "groovy";
      LanguageKind2.Handlebars = "handlebars";
      LanguageKind2.Haskell = "haskell";
      LanguageKind2.HTML = "html";
      LanguageKind2.Ini = "ini";
      LanguageKind2.Java = "java";
      LanguageKind2.JavaScript = "javascript";
      LanguageKind2.JavaScriptReact = "javascriptreact";
      LanguageKind2.JSON = "json";
      LanguageKind2.LaTeX = "latex";
      LanguageKind2.Less = "less";
      LanguageKind2.Lua = "lua";
      LanguageKind2.Makefile = "makefile";
      LanguageKind2.Markdown = "markdown";
      LanguageKind2.ObjectiveC = "objective-c";
      LanguageKind2.ObjectiveCPP = "objective-cpp";
      LanguageKind2.Pascal = "pascal";
      LanguageKind2.Perl = "perl";
      LanguageKind2.Perl6 = "perl6";
      LanguageKind2.PHP = "php";
      LanguageKind2.Plaintext = "plaintext";
      LanguageKind2.Powershell = "powershell";
      LanguageKind2.Pug = "jade";
      LanguageKind2.Python = "python";
      LanguageKind2.R = "r";
      LanguageKind2.Razor = "razor";
      LanguageKind2.Ruby = "ruby";
      LanguageKind2.Rust = "rust";
      LanguageKind2.SCSS = "scss";
      LanguageKind2.SASS = "sass";
      LanguageKind2.Scala = "scala";
      LanguageKind2.ShaderLab = "shaderlab";
      LanguageKind2.ShellScript = "shellscript";
      LanguageKind2.SQL = "sql";
      LanguageKind2.Swift = "swift";
      LanguageKind2.TypeScript = "typescript";
      LanguageKind2.TypeScriptReact = "typescriptreact";
      LanguageKind2.TeX = "tex";
      LanguageKind2.VisualBasic = "vb";
      LanguageKind2.XML = "xml";
      LanguageKind2.XSL = "xsl";
      LanguageKind2.YAML = "yaml";
    })(LanguageKind || (LanguageKind = {}));
    (function(TextDocumentItem2) {
      function create2(uri, languageId, version2, text) {
        return { uri, languageId, version: version2, text };
      }
      TextDocumentItem2.create = create2;
      function is(value) {
        const candidate = value;
        return Is.objectLiteral(candidate) && Is.string(candidate.uri) && Is.string(candidate.languageId) && Is.integer(candidate.version) && Is.string(candidate.text);
      }
      TextDocumentItem2.is = is;
    })(TextDocumentItem || (TextDocumentItem = {}));
    (function(MarkupKind2) {
      MarkupKind2.PlainText = "plaintext";
      MarkupKind2.Markdown = "markdown";
      function is(value) {
        const candidate = value;
        return candidate === MarkupKind2.PlainText || candidate === MarkupKind2.Markdown;
      }
      MarkupKind2.is = is;
    })(MarkupKind || (MarkupKind = {}));
    (function(MarkupContent3) {
      function is(value) {
        const candidate = value;
        return Is.objectLiteral(value) && MarkupKind.is(candidate.kind) && Is.string(candidate.value);
      }
      MarkupContent3.is = is;
    })(MarkupContent || (MarkupContent = {}));
    (function(CompletionItemKind2) {
      CompletionItemKind2.Text = 1;
      CompletionItemKind2.Method = 2;
      CompletionItemKind2.Function = 3;
      CompletionItemKind2.Constructor = 4;
      CompletionItemKind2.Field = 5;
      CompletionItemKind2.Variable = 6;
      CompletionItemKind2.Class = 7;
      CompletionItemKind2.Interface = 8;
      CompletionItemKind2.Module = 9;
      CompletionItemKind2.Property = 10;
      CompletionItemKind2.Unit = 11;
      CompletionItemKind2.Value = 12;
      CompletionItemKind2.Enum = 13;
      CompletionItemKind2.Keyword = 14;
      CompletionItemKind2.Snippet = 15;
      CompletionItemKind2.Color = 16;
      CompletionItemKind2.File = 17;
      CompletionItemKind2.Reference = 18;
      CompletionItemKind2.Folder = 19;
      CompletionItemKind2.EnumMember = 20;
      CompletionItemKind2.Constant = 21;
      CompletionItemKind2.Struct = 22;
      CompletionItemKind2.Event = 23;
      CompletionItemKind2.Operator = 24;
      CompletionItemKind2.TypeParameter = 25;
    })(CompletionItemKind || (CompletionItemKind = {}));
    (function(InsertTextFormat2) {
      InsertTextFormat2.PlainText = 1;
      InsertTextFormat2.Snippet = 2;
    })(InsertTextFormat || (InsertTextFormat = {}));
    (function(CompletionItemTag2) {
      CompletionItemTag2.Deprecated = 1;
    })(CompletionItemTag || (CompletionItemTag = {}));
    (function(InsertReplaceEdit2) {
      function create2(newText, insert, replace) {
        return { newText, insert, replace };
      }
      InsertReplaceEdit2.create = create2;
      function is(value) {
        const candidate = value;
        return candidate && Is.string(candidate.newText) && Range.is(candidate.insert) && Range.is(candidate.replace);
      }
      InsertReplaceEdit2.is = is;
    })(InsertReplaceEdit || (InsertReplaceEdit = {}));
    (function(InsertTextMode3) {
      InsertTextMode3.asIs = 1;
      InsertTextMode3.adjustIndentation = 2;
    })(InsertTextMode || (InsertTextMode = {}));
    (function(ApplyKind2) {
      ApplyKind2.Replace = 1;
      ApplyKind2.Merge = 2;
    })(ApplyKind || (ApplyKind = {}));
    (function(CompletionItemLabelDetails3) {
      function is(value) {
        const candidate = value;
        return candidate && (Is.string(candidate.detail) || candidate.detail === void 0) && (Is.string(candidate.description) || candidate.description === void 0);
      }
      CompletionItemLabelDetails3.is = is;
    })(CompletionItemLabelDetails || (CompletionItemLabelDetails = {}));
    (function(CompletionItem6) {
      function create2(label) {
        return { label };
      }
      CompletionItem6.create = create2;
    })(CompletionItem || (CompletionItem = {}));
    (function(CompletionList4) {
      function create2(items, isIncomplete) {
        return { items: items ? items : [], isIncomplete: !!isIncomplete };
      }
      CompletionList4.create = create2;
    })(CompletionList || (CompletionList = {}));
    (function(MarkedString2) {
      function fromPlainText(plainText) {
        return plainText.replace(/[\\`*_{}[\]()#+\-.!]/g, "\\$&");
      }
      MarkedString2.fromPlainText = fromPlainText;
      function is(value) {
        const candidate = value;
        return Is.string(candidate) || Is.objectLiteral(candidate) && Is.string(candidate.language) && Is.string(candidate.value);
      }
      MarkedString2.is = is;
    })(MarkedString || (MarkedString = {}));
    (function(Hover5) {
      function is(value) {
        const candidate = value;
        return !!candidate && Is.objectLiteral(candidate) && (MarkupContent.is(candidate.contents) || MarkedString.is(candidate.contents) || Is.typedArray(candidate.contents, MarkedString.is)) && (value.range === void 0 || Range.is(value.range));
      }
      Hover5.is = is;
    })(Hover || (Hover = {}));
    (function(ParameterInformation2) {
      function create2(label, documentation) {
        return documentation ? { label, documentation } : { label };
      }
      ParameterInformation2.create = create2;
    })(ParameterInformation || (ParameterInformation = {}));
    (function(SignatureInformation2) {
      function create2(label, documentation, ...parameters) {
        const result = { label };
        if (Is.defined(documentation)) {
          result.documentation = documentation;
        }
        if (Is.defined(parameters)) {
          result.parameters = parameters;
        } else {
          result.parameters = [];
        }
        return result;
      }
      SignatureInformation2.create = create2;
    })(SignatureInformation || (SignatureInformation = {}));
    (function(DocumentHighlightKind2) {
      DocumentHighlightKind2.Text = 1;
      DocumentHighlightKind2.Read = 2;
      DocumentHighlightKind2.Write = 3;
    })(DocumentHighlightKind || (DocumentHighlightKind = {}));
    (function(DocumentHighlight4) {
      function create2(range2, kind) {
        const result = { range: range2 };
        if (Is.number(kind)) {
          result.kind = kind;
        }
        return result;
      }
      DocumentHighlight4.create = create2;
    })(DocumentHighlight || (DocumentHighlight = {}));
    (function(SymbolKind5) {
      SymbolKind5.File = 1;
      SymbolKind5.Module = 2;
      SymbolKind5.Namespace = 3;
      SymbolKind5.Package = 4;
      SymbolKind5.Class = 5;
      SymbolKind5.Method = 6;
      SymbolKind5.Property = 7;
      SymbolKind5.Field = 8;
      SymbolKind5.Constructor = 9;
      SymbolKind5.Enum = 10;
      SymbolKind5.Interface = 11;
      SymbolKind5.Function = 12;
      SymbolKind5.Variable = 13;
      SymbolKind5.Constant = 14;
      SymbolKind5.String = 15;
      SymbolKind5.Number = 16;
      SymbolKind5.Boolean = 17;
      SymbolKind5.Array = 18;
      SymbolKind5.Object = 19;
      SymbolKind5.Key = 20;
      SymbolKind5.Null = 21;
      SymbolKind5.EnumMember = 22;
      SymbolKind5.Struct = 23;
      SymbolKind5.Event = 24;
      SymbolKind5.Operator = 25;
      SymbolKind5.TypeParameter = 26;
    })(SymbolKind || (SymbolKind = {}));
    (function(SymbolTag2) {
      SymbolTag2.Deprecated = 1;
    })(SymbolTag || (SymbolTag = {}));
    (function(SymbolInformation5) {
      function create2(name2, kind, range2, uri, containerName) {
        const result = {
          name: name2,
          kind,
          location: { uri, range: range2 }
        };
        if (containerName) {
          result.containerName = containerName;
        }
        return result;
      }
      SymbolInformation5.create = create2;
    })(SymbolInformation || (SymbolInformation = {}));
    (function(WorkspaceSymbol7) {
      function create2(name2, kind, uri, range2) {
        return range2 !== void 0 ? { name: name2, kind, location: { uri, range: range2 } } : { name: name2, kind, location: { uri } };
      }
      WorkspaceSymbol7.create = create2;
    })(WorkspaceSymbol || (WorkspaceSymbol = {}));
    (function(DocumentSymbol8) {
      function create2(name2, detail, kind, range2, selectionRange, children) {
        const result = {
          name: name2,
          detail,
          kind,
          range: range2,
          selectionRange
        };
        if (children !== void 0) {
          result.children = children;
        }
        return result;
      }
      DocumentSymbol8.create = create2;
      function is(value) {
        const candidate = value;
        return candidate && Is.string(candidate.name) && Is.number(candidate.kind) && Range.is(candidate.range) && Range.is(candidate.selectionRange) && (candidate.detail === void 0 || Is.string(candidate.detail)) && (candidate.deprecated === void 0 || Is.boolean(candidate.deprecated)) && (candidate.children === void 0 || Array.isArray(candidate.children)) && (candidate.tags === void 0 || Array.isArray(candidate.tags));
      }
      DocumentSymbol8.is = is;
    })(DocumentSymbol || (DocumentSymbol = {}));
    (function(CodeActionKind6) {
      CodeActionKind6.Empty = "";
      CodeActionKind6.QuickFix = "quickfix";
      CodeActionKind6.Refactor = "refactor";
      CodeActionKind6.RefactorExtract = "refactor.extract";
      CodeActionKind6.RefactorInline = "refactor.inline";
      CodeActionKind6.RefactorMove = "refactor.move";
      CodeActionKind6.RefactorRewrite = "refactor.rewrite";
      CodeActionKind6.Source = "source";
      CodeActionKind6.SourceOrganizeImports = "source.organizeImports";
      CodeActionKind6.SourceFixAll = "source.fixAll";
      CodeActionKind6.Notebook = "notebook";
    })(CodeActionKind || (CodeActionKind = {}));
    (function(CodeActionTriggerKind2) {
      CodeActionTriggerKind2.Invoked = 1;
      CodeActionTriggerKind2.Automatic = 2;
    })(CodeActionTriggerKind || (CodeActionTriggerKind = {}));
    (function(CodeActionContext6) {
      function create2(diagnostics, only, triggerKind) {
        const result = { diagnostics };
        if (only !== void 0 && only !== null) {
          result.only = only;
        }
        if (triggerKind !== void 0 && triggerKind !== null) {
          result.triggerKind = triggerKind;
        }
        return result;
      }
      CodeActionContext6.create = create2;
      function is(value) {
        const candidate = value;
        return Is.objectLiteral(candidate) && Is.typedArray(candidate.diagnostics, Diagnostic.is) && (candidate.only === void 0 || Is.typedArray(candidate.only, Is.string)) && (candidate.triggerKind === void 0 || candidate.triggerKind === CodeActionTriggerKind.Invoked || candidate.triggerKind === CodeActionTriggerKind.Automatic);
      }
      CodeActionContext6.is = is;
    })(CodeActionContext || (CodeActionContext = {}));
    (function(CodeActionTag2) {
      CodeActionTag2.LLMGenerated = 1;
      function is(value) {
        return Is.defined(value) && value === CodeActionTag2.LLMGenerated;
      }
      CodeActionTag2.is = is;
    })(CodeActionTag || (CodeActionTag = {}));
    (function(CodeAction8) {
      function create2(title, kindOrCommandOrEdit, kind) {
        const result = { title };
        let checkKind = true;
        if (typeof kindOrCommandOrEdit === "string") {
          checkKind = false;
          result.kind = kindOrCommandOrEdit;
        } else if (Command.is(kindOrCommandOrEdit)) {
          result.command = kindOrCommandOrEdit;
        } else {
          result.edit = kindOrCommandOrEdit;
        }
        if (checkKind && kind !== void 0) {
          result.kind = kind;
        }
        return result;
      }
      CodeAction8.create = create2;
      function is(value) {
        const candidate = value;
        return candidate && Is.string(candidate.title) && (candidate.diagnostics === void 0 || Is.typedArray(candidate.diagnostics, Diagnostic.is)) && (candidate.kind === void 0 || Is.string(candidate.kind)) && (candidate.edit !== void 0 || candidate.command !== void 0) && (candidate.command === void 0 || Command.is(candidate.command)) && (candidate.isPreferred === void 0 || Is.boolean(candidate.isPreferred)) && (candidate.edit === void 0 || WorkspaceEdit.is(candidate.edit)) && (candidate.tags === void 0 || Is.typedArray(candidate.tags, CodeActionTag.is));
      }
      CodeAction8.is = is;
    })(CodeAction || (CodeAction = {}));
    (function(CodeLens3) {
      function create2(range2, data) {
        const result = { range: range2 };
        if (Is.defined(data)) {
          result.data = data;
        }
        return result;
      }
      CodeLens3.create = create2;
      function is(value) {
        const candidate = value;
        return Is.objectLiteral(candidate) && Range.is(candidate.range) && (Is.undefined(candidate.command) || Command.is(candidate.command));
      }
      CodeLens3.is = is;
    })(CodeLens || (CodeLens = {}));
    (function(FormattingOptions7) {
      function create2(tabSize, insertSpaces) {
        return { tabSize, insertSpaces };
      }
      FormattingOptions7.create = create2;
      function is(value) {
        const candidate = value;
        return Is.objectLiteral(candidate) && Is.uinteger(candidate.tabSize) && Is.boolean(candidate.insertSpaces);
      }
      FormattingOptions7.is = is;
    })(FormattingOptions || (FormattingOptions = {}));
    (function(DocumentLink3) {
      function create2(range2, target, data) {
        return { range: range2, target, data };
      }
      DocumentLink3.create = create2;
      function is(value) {
        const candidate = value;
        return Is.objectLiteral(candidate) && Range.is(candidate.range) && (Is.undefined(candidate.target) || Is.string(candidate.target));
      }
      DocumentLink3.is = is;
    })(DocumentLink || (DocumentLink = {}));
    (function(SelectionRange5) {
      function create2(range2, parent) {
        return { range: range2, parent };
      }
      SelectionRange5.create = create2;
      function is(value) {
        const candidate = value;
        return Is.objectLiteral(candidate) && Range.is(candidate.range) && (candidate.parent === void 0 || SelectionRange5.is(candidate.parent));
      }
      SelectionRange5.is = is;
    })(SelectionRange || (SelectionRange = {}));
    (function(SemanticTokenTypes2) {
      SemanticTokenTypes2["namespace"] = "namespace";
      SemanticTokenTypes2["type"] = "type";
      SemanticTokenTypes2["class"] = "class";
      SemanticTokenTypes2["enum"] = "enum";
      SemanticTokenTypes2["interface"] = "interface";
      SemanticTokenTypes2["struct"] = "struct";
      SemanticTokenTypes2["typeParameter"] = "typeParameter";
      SemanticTokenTypes2["parameter"] = "parameter";
      SemanticTokenTypes2["variable"] = "variable";
      SemanticTokenTypes2["property"] = "property";
      SemanticTokenTypes2["enumMember"] = "enumMember";
      SemanticTokenTypes2["event"] = "event";
      SemanticTokenTypes2["function"] = "function";
      SemanticTokenTypes2["method"] = "method";
      SemanticTokenTypes2["macro"] = "macro";
      SemanticTokenTypes2["keyword"] = "keyword";
      SemanticTokenTypes2["modifier"] = "modifier";
      SemanticTokenTypes2["comment"] = "comment";
      SemanticTokenTypes2["string"] = "string";
      SemanticTokenTypes2["number"] = "number";
      SemanticTokenTypes2["regexp"] = "regexp";
      SemanticTokenTypes2["operator"] = "operator";
      SemanticTokenTypes2["decorator"] = "decorator";
      SemanticTokenTypes2["label"] = "label";
    })(SemanticTokenTypes || (SemanticTokenTypes = {}));
    (function(SemanticTokenModifiers2) {
      SemanticTokenModifiers2["declaration"] = "declaration";
      SemanticTokenModifiers2["definition"] = "definition";
      SemanticTokenModifiers2["readonly"] = "readonly";
      SemanticTokenModifiers2["static"] = "static";
      SemanticTokenModifiers2["deprecated"] = "deprecated";
      SemanticTokenModifiers2["abstract"] = "abstract";
      SemanticTokenModifiers2["async"] = "async";
      SemanticTokenModifiers2["modification"] = "modification";
      SemanticTokenModifiers2["documentation"] = "documentation";
      SemanticTokenModifiers2["defaultLibrary"] = "defaultLibrary";
    })(SemanticTokenModifiers || (SemanticTokenModifiers = {}));
    (function(SemanticTokens6) {
      function is(value) {
        const candidate = value;
        return Is.objectLiteral(candidate) && (candidate.resultId === void 0 || typeof candidate.resultId === "string") && Array.isArray(candidate.data) && (candidate.data.length === 0 || typeof candidate.data[0] === "number");
      }
      SemanticTokens6.is = is;
    })(SemanticTokens || (SemanticTokens = {}));
    (function(InlineValueText2) {
      function create2(range2, text) {
        return { range: range2, text };
      }
      InlineValueText2.create = create2;
      function is(value) {
        const candidate = value;
        return candidate !== void 0 && candidate !== null && Range.is(candidate.range) && Is.string(candidate.text);
      }
      InlineValueText2.is = is;
    })(InlineValueText || (InlineValueText = {}));
    (function(InlineValueVariableLookup2) {
      function create2(range2, variableName, caseSensitiveLookup) {
        return { range: range2, variableName, caseSensitiveLookup };
      }
      InlineValueVariableLookup2.create = create2;
      function is(value) {
        const candidate = value;
        return candidate !== void 0 && candidate !== null && Range.is(candidate.range) && Is.boolean(candidate.caseSensitiveLookup) && (Is.string(candidate.variableName) || candidate.variableName === void 0);
      }
      InlineValueVariableLookup2.is = is;
    })(InlineValueVariableLookup || (InlineValueVariableLookup = {}));
    (function(InlineValueEvaluatableExpression2) {
      function create2(range2, expression) {
        return { range: range2, expression };
      }
      InlineValueEvaluatableExpression2.create = create2;
      function is(value) {
        const candidate = value;
        return candidate !== void 0 && candidate !== null && Range.is(candidate.range) && (Is.string(candidate.expression) || candidate.expression === void 0);
      }
      InlineValueEvaluatableExpression2.is = is;
    })(InlineValueEvaluatableExpression || (InlineValueEvaluatableExpression = {}));
    (function(InlineValueContext3) {
      function create2(frameId, stoppedLocation) {
        return { frameId, stoppedLocation };
      }
      InlineValueContext3.create = create2;
      function is(value) {
        const candidate = value;
        return Is.objectLiteral(candidate) && Range.is(value.stoppedLocation);
      }
      InlineValueContext3.is = is;
    })(InlineValueContext || (InlineValueContext = {}));
    (function(InlayHintKind2) {
      InlayHintKind2.Type = 1;
      InlayHintKind2.Parameter = 2;
      function is(value) {
        return value === 1 || value === 2;
      }
      InlayHintKind2.is = is;
    })(InlayHintKind || (InlayHintKind = {}));
    (function(InlayHintLabelPart2) {
      function create2(value) {
        return { value };
      }
      InlayHintLabelPart2.create = create2;
      function is(value) {
        const candidate = value;
        return Is.objectLiteral(candidate) && (candidate.tooltip === void 0 || Is.string(candidate.tooltip) || MarkupContent.is(candidate.tooltip)) && (candidate.location === void 0 || Location.is(candidate.location)) && (candidate.command === void 0 || Command.is(candidate.command));
      }
      InlayHintLabelPart2.is = is;
    })(InlayHintLabelPart || (InlayHintLabelPart = {}));
    (function(InlayHint3) {
      function create2(position, label, kind) {
        const result = { position, label };
        if (kind !== void 0) {
          result.kind = kind;
        }
        return result;
      }
      InlayHint3.create = create2;
      function is(value) {
        const candidate = value;
        return Is.objectLiteral(candidate) && Position.is(candidate.position) && (Is.string(candidate.label) || Is.typedArray(candidate.label, InlayHintLabelPart.is)) && (candidate.kind === void 0 || InlayHintKind.is(candidate.kind)) && candidate.textEdits === void 0 || Is.typedArray(candidate.textEdits, TextEdit.is) && (candidate.tooltip === void 0 || Is.string(candidate.tooltip) || MarkupContent.is(candidate.tooltip)) && (candidate.paddingLeft === void 0 || Is.boolean(candidate.paddingLeft)) && (candidate.paddingRight === void 0 || Is.boolean(candidate.paddingRight));
      }
      InlayHint3.is = is;
    })(InlayHint || (InlayHint = {}));
    (function(StringValue4) {
      function createSnippet(value) {
        return { kind: "snippet", value };
      }
      StringValue4.createSnippet = createSnippet;
      function isSnippet(value) {
        const candidate = value;
        return Is.objectLiteral(candidate) && candidate.kind === "snippet" && Is.string(candidate.value);
      }
      StringValue4.isSnippet = isSnippet;
    })(StringValue || (StringValue = {}));
    (function(InlineCompletionItem6) {
      function create2(insertText, filterText, range2, command) {
        return { insertText, filterText, range: range2, command };
      }
      InlineCompletionItem6.create = create2;
    })(InlineCompletionItem || (InlineCompletionItem = {}));
    (function(InlineCompletionList3) {
      function create2(items) {
        return { items };
      }
      InlineCompletionList3.create = create2;
    })(InlineCompletionList || (InlineCompletionList = {}));
    (function(InlineCompletionTriggerKind2) {
      InlineCompletionTriggerKind2.Invoked = 1;
      InlineCompletionTriggerKind2.Automatic = 2;
    })(InlineCompletionTriggerKind || (InlineCompletionTriggerKind = {}));
    (function(SelectedCompletionInfo3) {
      function create2(range2, text) {
        return { range: range2, text };
      }
      SelectedCompletionInfo3.create = create2;
    })(SelectedCompletionInfo || (SelectedCompletionInfo = {}));
    (function(InlineCompletionContext4) {
      function create2(triggerKind, selectedCompletionInfo) {
        return { triggerKind, selectedCompletionInfo };
      }
      InlineCompletionContext4.create = create2;
    })(InlineCompletionContext || (InlineCompletionContext = {}));
    (function(WorkspaceFolder2) {
      function is(value) {
        const candidate = value;
        return Is.objectLiteral(candidate) && URI.is(candidate.uri) && Is.string(candidate.name);
      }
      WorkspaceFolder2.is = is;
    })(WorkspaceFolder || (WorkspaceFolder = {}));
    EOL = ["\n", "\r\n", "\r"];
    (function(TextDocument3) {
      function create2(uri, languageId, version2, content) {
        return new FullTextDocument(uri, languageId, version2, content);
      }
      TextDocument3.create = create2;
      function is(value) {
        const candidate = value;
        return Is.objectLiteral(candidate) && Is.string(candidate.uri) && (Is.undefined(candidate.languageId) || Is.string(candidate.languageId)) && Is.uinteger(candidate.lineCount) && Is.func(candidate.getText) && Is.func(candidate.positionAt) && Is.func(candidate.offsetAt) ? true : false;
      }
      TextDocument3.is = is;
      function applyEdits3(document2, edits) {
        let text = document2.getText();
        const sortedEdits = mergeSort3(edits, (a2, b2) => {
          const diff = a2.range.start.line - b2.range.start.line;
          if (diff === 0) {
            return a2.range.start.character - b2.range.start.character;
          }
          return diff;
        });
        let lastModifiedOffset = text.length;
        for (let i2 = sortedEdits.length - 1; i2 >= 0; i2--) {
          const e2 = sortedEdits[i2];
          const startOffset = document2.offsetAt(e2.range.start);
          const endOffset = document2.offsetAt(e2.range.end);
          if (endOffset <= lastModifiedOffset) {
            text = text.substring(0, startOffset) + e2.newText + text.substring(endOffset, text.length);
          } else {
            throw new Error("Overlapping edit");
          }
          lastModifiedOffset = startOffset;
        }
        return text;
      }
      TextDocument3.applyEdits = applyEdits3;
      function mergeSort3(data, compare2) {
        if (data.length <= 1) {
          return data;
        }
        const p2 = data.length / 2 | 0;
        const left = data.slice(0, p2);
        const right = data.slice(p2);
        mergeSort3(left, compare2);
        mergeSort3(right, compare2);
        let leftIdx = 0;
        let rightIdx = 0;
        let i2 = 0;
        while (leftIdx < left.length && rightIdx < right.length) {
          const ret = compare2(left[leftIdx], right[rightIdx]);
          if (ret <= 0) {
            data[i2++] = left[leftIdx++];
          } else {
            data[i2++] = right[rightIdx++];
          }
        }
        while (leftIdx < left.length) {
          data[i2++] = left[leftIdx++];
        }
        while (rightIdx < right.length) {
          data[i2++] = right[rightIdx++];
        }
        return data;
      }
    })(TextDocument || (TextDocument = {}));
    FullTextDocument = class {
      constructor(uri, languageId, version2, content) {
        this._uri = uri;
        this._languageId = languageId;
        this._version = version2;
        this._content = content;
        this._lineOffsets = void 0;
      }
      get uri() {
        return this._uri;
      }
      get languageId() {
        return this._languageId;
      }
      get version() {
        return this._version;
      }
      getText(range2) {
        if (range2) {
          const start = this.offsetAt(range2.start);
          const end = this.offsetAt(range2.end);
          return this._content.substring(start, end);
        }
        return this._content;
      }
      update(event, version2) {
        this._content = event.text;
        this._version = version2;
        this._lineOffsets = void 0;
      }
      getLineOffsets() {
        if (this._lineOffsets === void 0) {
          const lineOffsets = [];
          const text = this._content;
          let isLineStart = true;
          for (let i2 = 0; i2 < text.length; i2++) {
            if (isLineStart) {
              lineOffsets.push(i2);
              isLineStart = false;
            }
            const ch = text.charAt(i2);
            isLineStart = ch === "\r" || ch === "\n";
            if (ch === "\r" && i2 + 1 < text.length && text.charAt(i2 + 1) === "\n") {
              i2++;
            }
          }
          if (isLineStart && text.length > 0) {
            lineOffsets.push(text.length);
          }
          this._lineOffsets = lineOffsets;
        }
        return this._lineOffsets;
      }
      positionAt(offset) {
        offset = Math.max(Math.min(offset, this._content.length), 0);
        const lineOffsets = this.getLineOffsets();
        let low = 0, high = lineOffsets.length;
        if (high === 0) {
          return Position.create(0, offset);
        }
        while (low < high) {
          const mid = Math.floor((low + high) / 2);
          if (lineOffsets[mid] > offset) {
            high = mid;
          } else {
            low = mid + 1;
          }
        }
        const line = low - 1;
        return Position.create(line, offset - lineOffsets[line]);
      }
      offsetAt(position) {
        const lineOffsets = this.getLineOffsets();
        if (position.line >= lineOffsets.length) {
          return this._content.length;
        } else if (position.line < 0) {
          return 0;
        }
        const lineOffset = lineOffsets[position.line];
        const nextLineOffset = position.line + 1 < lineOffsets.length ? lineOffsets[position.line + 1] : this._content.length;
        return Math.max(Math.min(lineOffset + position.character, nextLineOffset), lineOffset);
      }
      get lineCount() {
        return this.getLineOffsets().length;
      }
    };
    (function(Is2) {
      const toString = Object.prototype.toString;
      function defined(value) {
        return typeof value !== "undefined";
      }
      Is2.defined = defined;
      function undefined2(value) {
        return typeof value === "undefined";
      }
      Is2.undefined = undefined2;
      function boolean2(value) {
        return value === true || value === false;
      }
      Is2.boolean = boolean2;
      function string2(value) {
        return toString.call(value) === "[object String]";
      }
      Is2.string = string2;
      function number2(value) {
        return toString.call(value) === "[object Number]";
      }
      Is2.number = number2;
      function numberRange(value, min, max) {
        return toString.call(value) === "[object Number]" && min <= value && value <= max;
      }
      Is2.numberRange = numberRange;
      function integer2(value) {
        return toString.call(value) === "[object Number]" && -2147483648 <= value && value <= 2147483647;
      }
      Is2.integer = integer2;
      function uinteger3(value) {
        return toString.call(value) === "[object Number]" && 0 <= value && value <= 2147483647;
      }
      Is2.uinteger = uinteger3;
      function func2(value) {
        return toString.call(value) === "[object Function]";
      }
      Is2.func = func2;
      function objectLiteral2(value) {
        return value !== null && typeof value === "object";
      }
      Is2.objectLiteral = objectLiteral2;
      function typedArray2(value, check) {
        return Array.isArray(value) && value.every(check);
      }
      Is2.typedArray = typedArray2;
    })(Is || (Is = {}));
  }
});

// src/util/is.ts
function isUrl(url) {
  try {
    new URL(url);
    return true;
  } catch (e2) {
    return false;
  }
}
function isHover(value) {
  let candidate = value;
  return !!candidate && objectLiteral(candidate) && (MarkupContent.is(candidate.contents) || MarkedString.is(candidate.contents) || typedArray(candidate.contents, MarkedString.is)) && (value.range == null || Range.is(value.range));
}
function isEditRange(value) {
  if (!value) return false;
  if (Range.is(value)) return true;
  return Range.is(value.insert) && Range.is(value.replace);
}
function isCommand(obj) {
  if (!obj || !string(obj.title) || !string(obj.command) || obj.command.length == 0) return false;
  return true;
}
function isMarkdown(content) {
  if (content != null && content["kind"] == "markdown") {
    return true;
  }
  return false;
}
function isCompletionItem(obj) {
  return obj && typeof obj.label === "string";
}
function isCompletionList(obj) {
  return !Array.isArray(obj) && Array.isArray(obj.items);
}
function boolean(value) {
  return typeof value === "boolean";
}
function string(value) {
  return typeof value === "string";
}
function number(value) {
  return typeof value === "number";
}
function func(value) {
  return typeof value == "function";
}
function objectLiteral(obj) {
  return obj != null && typeof obj === "object" && !Array.isArray(obj) && !(obj instanceof RegExp) && !(obj instanceof Date);
}
function emptyObject(obj) {
  if (!objectLiteral(obj)) {
    return false;
  }
  for (let key in obj) {
    if (hasOwnProperty.call(obj, key)) {
      return false;
    }
  }
  return true;
}
function typedArray(value, check) {
  return Array.isArray(value) && value.every(check);
}
var hasOwnProperty;
var init_is = __esm({
  "src/util/is.ts"() {
    "use strict";
    init_main();
    hasOwnProperty = Object.prototype.hasOwnProperty;
  }
});

// src/util/object.ts
function isEmpty(obj) {
  if (!obj) return true;
  if (Array.isArray(obj)) return obj.length == 0;
  return Object.keys(obj).length == 0;
}
function toObject(obj) {
  return obj == null ? {} : obj;
}
function omitUndefined(obj) {
  const result = {};
  Object.entries(obj).forEach(([key, val]) => {
    if (val !== void 0) result[key] = val;
  });
  return result;
}
function deepIterate(obj, fn) {
  Object.entries(obj).forEach(([key, val]) => {
    fn(obj, key);
    if (Array.isArray(val)) {
      val.forEach((node) => {
        if (objectLiteral(node)) {
          deepIterate(node, fn);
        }
      });
    } else if (objectLiteral(val)) {
      deepIterate(val, fn);
    }
  });
  return obj;
}
function deepClone(obj) {
  if (!obj || typeof obj !== "object") {
    return obj;
  }
  if (obj instanceof RegExp) {
    return obj;
  }
  const result = Array.isArray(obj) ? [] : {};
  Object.keys(obj).forEach((key) => {
    if (obj[key] && typeof obj[key] === "object") {
      result[key] = deepClone(obj[key]);
    } else {
      result[key] = obj[key];
    }
  });
  return result;
}
function hasOwnProperty2(obj, key) {
  return _hasOwnProperty.call(obj, key);
}
function deepFreeze(obj) {
  if (!obj || typeof obj !== "object") {
    return obj;
  }
  const stack = [obj];
  while (stack.length > 0) {
    let obj2 = stack.shift();
    Object.freeze(obj2);
    for (const key of Object.keys(obj2)) {
      let prop = obj2[key];
      if (typeof prop === "object" && !Object.isFrozen(prop)) {
        stack.push(prop);
      }
    }
  }
  return obj;
}
function mixin(destination, source, overwrite = true) {
  if (!objectLiteral(destination)) {
    return source;
  }
  if (objectLiteral(source)) {
    Object.keys(source).forEach((key) => {
      if (key in destination) {
        if (overwrite) {
          if (objectLiteral(destination[key]) && objectLiteral(source[key])) {
            mixin(destination[key], source[key], overwrite);
          } else {
            destination[key] = source[key];
          }
        }
      } else {
        destination[key] = source[key];
      }
    });
  }
  return destination;
}
function equals(one, other) {
  if (one === other) {
    return true;
  }
  if (one === null || one === void 0 || other === null || other === void 0) {
    return false;
  }
  if (typeof one !== typeof other) {
    return false;
  }
  if (typeof one !== "object") {
    return false;
  }
  if (Array.isArray(one) !== Array.isArray(other)) {
    return false;
  }
  let i2;
  let key;
  if (Array.isArray(one)) {
    if (one.length !== other.length) {
      return false;
    }
    for (i2 = 0; i2 < one.length; i2++) {
      if (!equals(one[i2], other[i2])) {
        return false;
      }
    }
  } else {
    const oneKeys = [];
    for (key in one) {
      oneKeys.push(key);
    }
    oneKeys.sort();
    const otherKeys = [];
    for (key in other) {
      otherKeys.push(key);
    }
    otherKeys.sort();
    if (!equals(oneKeys, otherKeys)) {
      return false;
    }
    for (i2 = 0; i2 < oneKeys.length; i2++) {
      if (!equals(one[oneKeys[i2]], other[oneKeys[i2]])) {
        return false;
      }
    }
  }
  return true;
}
var _hasOwnProperty;
var init_object = __esm({
  "src/util/object.ts"() {
    "use strict";
    init_is();
    _hasOwnProperty = Object.prototype.hasOwnProperty;
  }
});

// node_modules/vscode-jsonrpc/lib/common/is.js
var require_is = __commonJS({
  "node_modules/vscode-jsonrpc/lib/common/is.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.boolean = boolean2;
    exports2.string = string2;
    exports2.number = number2;
    exports2.error = error;
    exports2.func = func2;
    exports2.array = array;
    exports2.stringArray = stringArray;
    function boolean2(value) {
      return value === true || value === false;
    }
    function string2(value) {
      return typeof value === "string" || value instanceof String;
    }
    function number2(value) {
      return typeof value === "number" || value instanceof Number;
    }
    function error(value) {
      return value instanceof Error;
    }
    function func2(value) {
      return typeof value === "function";
    }
    function array(value) {
      return Array.isArray(value);
    }
    function stringArray(value) {
      return array(value) && value.every((elem) => string2(elem));
    }
  }
});

// node_modules/vscode-jsonrpc/lib/common/messages.js
var require_messages = __commonJS({
  "node_modules/vscode-jsonrpc/lib/common/messages.js"(exports2) {
    "use strict";
    var __createBinding = exports2 && exports2.__createBinding || (Object.create ? (function(o2, m2, k, k2) {
      if (k2 === void 0) k2 = k;
      var desc = Object.getOwnPropertyDescriptor(m2, k);
      if (!desc || ("get" in desc ? !m2.__esModule : desc.writable || desc.configurable)) {
        desc = { enumerable: true, get: function() {
          return m2[k];
        } };
      }
      Object.defineProperty(o2, k2, desc);
    }) : (function(o2, m2, k, k2) {
      if (k2 === void 0) k2 = k;
      o2[k2] = m2[k];
    }));
    var __setModuleDefault = exports2 && exports2.__setModuleDefault || (Object.create ? (function(o2, v2) {
      Object.defineProperty(o2, "default", { enumerable: true, value: v2 });
    }) : function(o2, v2) {
      o2["default"] = v2;
    });
    var __importStar = exports2 && exports2.__importStar || /* @__PURE__ */ (function() {
      var ownKeys = function(o2) {
        ownKeys = Object.getOwnPropertyNames || function(o3) {
          var ar = [];
          for (var k in o3) if (Object.prototype.hasOwnProperty.call(o3, k)) ar[ar.length] = k;
          return ar;
        };
        return ownKeys(o2);
      };
      return function(mod) {
        if (mod && mod.__esModule) return mod;
        var result = {};
        if (mod != null) {
          for (var k = ownKeys(mod), i2 = 0; i2 < k.length; i2++) if (k[i2] !== "default") __createBinding(result, mod, k[i2]);
        }
        __setModuleDefault(result, mod);
        return result;
      };
    })();
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.Message = exports2.NotificationType9 = exports2.NotificationType8 = exports2.NotificationType7 = exports2.NotificationType6 = exports2.NotificationType5 = exports2.NotificationType4 = exports2.NotificationType3 = exports2.NotificationType2 = exports2.NotificationType1 = exports2.NotificationType0 = exports2.NotificationType = exports2.RequestType9 = exports2.RequestType8 = exports2.RequestType7 = exports2.RequestType6 = exports2.RequestType5 = exports2.RequestType4 = exports2.RequestType3 = exports2.RequestType2 = exports2.RequestType1 = exports2.RequestType = exports2.RequestType0 = exports2.AbstractMessageSignature = exports2.ParameterStructures = exports2.ResponseError = exports2.ErrorCodes = void 0;
    var is = __importStar(require_is());
    var ErrorCodes2;
    (function(ErrorCodes3) {
      ErrorCodes3.ParseError = -32700;
      ErrorCodes3.InvalidRequest = -32600;
      ErrorCodes3.MethodNotFound = -32601;
      ErrorCodes3.InvalidParams = -32602;
      ErrorCodes3.InternalError = -32603;
      ErrorCodes3.jsonrpcReservedErrorRangeStart = -32099;
      ErrorCodes3.serverErrorStart = -32099;
      ErrorCodes3.MessageWriteError = -32099;
      ErrorCodes3.MessageReadError = -32098;
      ErrorCodes3.PendingResponseRejected = -32097;
      ErrorCodes3.ConnectionInactive = -32096;
      ErrorCodes3.ServerNotInitialized = -32002;
      ErrorCodes3.UnknownErrorCode = -32001;
      ErrorCodes3.jsonrpcReservedErrorRangeEnd = -32e3;
      ErrorCodes3.serverErrorEnd = -32e3;
    })(ErrorCodes2 || (exports2.ErrorCodes = ErrorCodes2 = {}));
    var ResponseError3 = class _ResponseError extends Error {
      code;
      data;
      constructor(code, message, data) {
        super(message);
        this.code = is.number(code) ? code : ErrorCodes2.UnknownErrorCode;
        this.data = data;
        Object.setPrototypeOf(this, _ResponseError.prototype);
      }
      toJson() {
        const result = {
          code: this.code,
          message: this.message
        };
        if (this.data !== void 0) {
          result.data = this.data;
        }
        return result;
      }
    };
    exports2.ResponseError = ResponseError3;
    var ParameterStructures2 = class _ParameterStructures {
      kind;
      /**
       * The parameter structure is automatically inferred on the number of parameters
       * and the parameter type in case of a single param.
       */
      static auto = new _ParameterStructures("auto");
      /**
       * Forces `byPosition` parameter structure. This is useful if you have a single
       * parameter which has a literal type.
       */
      static byPosition = new _ParameterStructures("byPosition");
      /**
       * Forces `byName` parameter structure. This is only useful when having a single
       * parameter. The library will report errors if used with a different number of
       * parameters.
       */
      static byName = new _ParameterStructures("byName");
      constructor(kind) {
        this.kind = kind;
      }
      static is(value) {
        return value === _ParameterStructures.auto || value === _ParameterStructures.byName || value === _ParameterStructures.byPosition;
      }
      toString() {
        return this.kind;
      }
    };
    exports2.ParameterStructures = ParameterStructures2;
    var AbstractMessageSignature = class {
      method;
      numberOfParams;
      constructor(method, numberOfParams) {
        this.method = method;
        this.numberOfParams = numberOfParams;
      }
      get parameterStructures() {
        return ParameterStructures2.auto;
      }
    };
    exports2.AbstractMessageSignature = AbstractMessageSignature;
    var RequestType04 = class extends AbstractMessageSignature {
      /**
       * Clients must not use this property. It is here to ensure correct typing.
       */
      _;
      constructor(method) {
        super(method, 0);
      }
    };
    exports2.RequestType0 = RequestType04;
    var RequestType11 = class extends AbstractMessageSignature {
      _parameterStructures;
      /**
       * Clients must not use this property. It is here to ensure correct typing.
       */
      _;
      constructor(method, _parameterStructures = ParameterStructures2.auto) {
        super(method, 1);
        this._parameterStructures = _parameterStructures;
      }
      get parameterStructures() {
        return this._parameterStructures;
      }
    };
    exports2.RequestType = RequestType11;
    var RequestType12 = class extends AbstractMessageSignature {
      _parameterStructures;
      /**
       * Clients must not use this property. It is here to ensure correct typing.
       */
      _;
      constructor(method, _parameterStructures = ParameterStructures2.auto) {
        super(method, 1);
        this._parameterStructures = _parameterStructures;
      }
      get parameterStructures() {
        return this._parameterStructures;
      }
    };
    exports2.RequestType1 = RequestType12;
    var RequestType23 = class extends AbstractMessageSignature {
      /**
       * Clients must not use this property. It is here to ensure correct typing.
       */
      _;
      constructor(method) {
        super(method, 2);
      }
    };
    exports2.RequestType2 = RequestType23;
    var RequestType32 = class extends AbstractMessageSignature {
      /**
       * Clients must not use this property. It is here to ensure correct typing.
       */
      _;
      constructor(method) {
        super(method, 3);
      }
    };
    exports2.RequestType3 = RequestType32;
    var RequestType42 = class extends AbstractMessageSignature {
      /**
       * Clients must not use this property. It is here to ensure correct typing.
       */
      _;
      constructor(method) {
        super(method, 4);
      }
    };
    exports2.RequestType4 = RequestType42;
    var RequestType52 = class extends AbstractMessageSignature {
      /**
       * Clients must not use this property. It is here to ensure correct typing.
       */
      _;
      constructor(method) {
        super(method, 5);
      }
    };
    exports2.RequestType5 = RequestType52;
    var RequestType62 = class extends AbstractMessageSignature {
      /**
       * Clients must not use this property. It is here to ensure correct typing.
       */
      _;
      constructor(method) {
        super(method, 6);
      }
    };
    exports2.RequestType6 = RequestType62;
    var RequestType72 = class extends AbstractMessageSignature {
      /**
       * Clients must not use this property. It is here to ensure correct typing.
       */
      _;
      constructor(method) {
        super(method, 7);
      }
    };
    exports2.RequestType7 = RequestType72;
    var RequestType82 = class extends AbstractMessageSignature {
      /**
       * Clients must not use this property. It is here to ensure correct typing.
       */
      _;
      constructor(method) {
        super(method, 8);
      }
    };
    exports2.RequestType8 = RequestType82;
    var RequestType92 = class extends AbstractMessageSignature {
      /**
       * Clients must not use this property. It is here to ensure correct typing.
       */
      _;
      constructor(method) {
        super(method, 9);
      }
    };
    exports2.RequestType9 = RequestType92;
    var NotificationType11 = class extends AbstractMessageSignature {
      _parameterStructures;
      /**
       * Clients must not use this property. It is here to ensure correct typing.
       */
      _;
      constructor(method, _parameterStructures = ParameterStructures2.auto) {
        super(method, 1);
        this._parameterStructures = _parameterStructures;
      }
      get parameterStructures() {
        return this._parameterStructures;
      }
    };
    exports2.NotificationType = NotificationType11;
    var NotificationType04 = class extends AbstractMessageSignature {
      /**
       * Clients must not use this property. It is here to ensure correct typing.
       */
      _;
      constructor(method) {
        super(method, 0);
      }
    };
    exports2.NotificationType0 = NotificationType04;
    var NotificationType12 = class extends AbstractMessageSignature {
      _parameterStructures;
      /**
       * Clients must not use this property. It is here to ensure correct typing.
       */
      _;
      constructor(method, _parameterStructures = ParameterStructures2.auto) {
        super(method, 1);
        this._parameterStructures = _parameterStructures;
      }
      get parameterStructures() {
        return this._parameterStructures;
      }
    };
    exports2.NotificationType1 = NotificationType12;
    var NotificationType23 = class extends AbstractMessageSignature {
      /**
       * Clients must not use this property. It is here to ensure correct typing.
       */
      _;
      constructor(method) {
        super(method, 2);
      }
    };
    exports2.NotificationType2 = NotificationType23;
    var NotificationType32 = class extends AbstractMessageSignature {
      /**
       * Clients must not use this property. It is here to ensure correct typing.
       */
      _;
      constructor(method) {
        super(method, 3);
      }
    };
    exports2.NotificationType3 = NotificationType32;
    var NotificationType42 = class extends AbstractMessageSignature {
      /**
       * Clients must not use this property. It is here to ensure correct typing.
       */
      _;
      constructor(method) {
        super(method, 4);
      }
    };
    exports2.NotificationType4 = NotificationType42;
    var NotificationType52 = class extends AbstractMessageSignature {
      /**
       * Clients must not use this property. It is here to ensure correct typing.
       */
      _;
      constructor(method) {
        super(method, 5);
      }
    };
    exports2.NotificationType5 = NotificationType52;
    var NotificationType62 = class extends AbstractMessageSignature {
      /**
       * Clients must not use this property. It is here to ensure correct typing.
       */
      _;
      constructor(method) {
        super(method, 6);
      }
    };
    exports2.NotificationType6 = NotificationType62;
    var NotificationType72 = class extends AbstractMessageSignature {
      /**
       * Clients must not use this property. It is here to ensure correct typing.
       */
      _;
      constructor(method) {
        super(method, 7);
      }
    };
    exports2.NotificationType7 = NotificationType72;
    var NotificationType82 = class extends AbstractMessageSignature {
      /**
       * Clients must not use this property. It is here to ensure correct typing.
       */
      _;
      constructor(method) {
        super(method, 8);
      }
    };
    exports2.NotificationType8 = NotificationType82;
    var NotificationType92 = class extends AbstractMessageSignature {
      /**
       * Clients must not use this property. It is here to ensure correct typing.
       */
      _;
      constructor(method) {
        super(method, 9);
      }
    };
    exports2.NotificationType9 = NotificationType92;
    var Message2;
    (function(Message3) {
      function isRequest(message) {
        const candidate = message;
        return candidate && is.string(candidate.method) && (is.string(candidate.id) || is.number(candidate.id));
      }
      Message3.isRequest = isRequest;
      function isNotification(message) {
        const candidate = message;
        return candidate && is.string(candidate.method) && message.id === void 0;
      }
      Message3.isNotification = isNotification;
      function isResponse(message) {
        const candidate = message;
        return candidate && (candidate.result !== void 0 || !!candidate.error) && (is.string(candidate.id) || is.number(candidate.id) || candidate.id === null);
      }
      Message3.isResponse = isResponse;
    })(Message2 || (exports2.Message = Message2 = {}));
  }
});

// node_modules/vscode-jsonrpc/lib/common/linkedMap.js
var require_linkedMap = __commonJS({
  "node_modules/vscode-jsonrpc/lib/common/linkedMap.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.LRUCache = exports2.LinkedMap = exports2.Touch = void 0;
    var Touch2;
    (function(Touch3) {
      Touch3.None = 0;
      Touch3.First = 1;
      Touch3.AsOld = Touch3.First;
      Touch3.Last = 2;
      Touch3.AsNew = Touch3.Last;
    })(Touch2 || (exports2.Touch = Touch2 = {}));
    var LinkedMap2 = class {
      [Symbol.toStringTag] = "LinkedMap";
      _map;
      _head;
      _tail;
      _size;
      _state;
      constructor() {
        this._map = /* @__PURE__ */ new Map();
        this._head = void 0;
        this._tail = void 0;
        this._size = 0;
        this._state = 0;
      }
      clear() {
        this._map.clear();
        this._head = void 0;
        this._tail = void 0;
        this._size = 0;
        this._state++;
      }
      isEmpty() {
        return !this._head && !this._tail;
      }
      get size() {
        return this._size;
      }
      get first() {
        return this._head?.value;
      }
      get last() {
        return this._tail?.value;
      }
      before(key) {
        const item = this._map.get(key);
        return item ? item.previous?.value : void 0;
      }
      after(key) {
        const item = this._map.get(key);
        return item ? item.next?.value : void 0;
      }
      has(key) {
        return this._map.has(key);
      }
      get(key, touch = Touch2.None) {
        const item = this._map.get(key);
        if (!item) {
          return void 0;
        }
        if (touch !== Touch2.None) {
          this.touch(item, touch);
        }
        return item.value;
      }
      set(key, value, touch = Touch2.None) {
        let item = this._map.get(key);
        if (item) {
          item.value = value;
          if (touch !== Touch2.None) {
            this.touch(item, touch);
          }
        } else {
          item = { key, value, next: void 0, previous: void 0 };
          switch (touch) {
            case Touch2.None:
              this.addItemLast(item);
              break;
            case Touch2.First:
              this.addItemFirst(item);
              break;
            case Touch2.Last:
              this.addItemLast(item);
              break;
            default:
              this.addItemLast(item);
              break;
          }
          this._map.set(key, item);
          this._size++;
        }
        return this;
      }
      delete(key) {
        const existed = this._map.has(key);
        this.remove(key);
        return existed;
      }
      remove(key) {
        const item = this._map.get(key);
        if (!item) {
          return void 0;
        }
        this._map.delete(key);
        this.removeItem(item);
        this._size--;
        return item.value;
      }
      shift() {
        if (!this._head && !this._tail) {
          return void 0;
        }
        if (!this._head || !this._tail) {
          throw new Error("Invalid list");
        }
        const item = this._head;
        this._map.delete(item.key);
        this.removeItem(item);
        this._size--;
        return item.value;
      }
      forEach(callbackfn, thisArg) {
        const state = this._state;
        let current = this._head;
        while (current) {
          if (thisArg) {
            callbackfn.bind(thisArg)(current.value, current.key, this);
          } else {
            callbackfn(current.value, current.key, this);
          }
          if (this._state !== state) {
            throw new Error(`LinkedMap got modified during iteration.`);
          }
          current = current.next;
        }
      }
      keys() {
        const state = this._state;
        let current = this._head;
        const iterator = {
          [Symbol.iterator]: () => {
            return iterator;
          },
          next: () => {
            if (this._state !== state) {
              throw new Error(`LinkedMap got modified during iteration.`);
            }
            if (current) {
              const result = { value: current.key, done: false };
              current = current.next;
              return result;
            } else {
              return { value: void 0, done: true };
            }
          }
        };
        return iterator;
      }
      values() {
        const state = this._state;
        let current = this._head;
        const iterator = {
          [Symbol.iterator]: () => {
            return iterator;
          },
          next: () => {
            if (this._state !== state) {
              throw new Error(`LinkedMap got modified during iteration.`);
            }
            if (current) {
              const result = { value: current.value, done: false };
              current = current.next;
              return result;
            } else {
              return { value: void 0, done: true };
            }
          }
        };
        return iterator;
      }
      entries() {
        const state = this._state;
        let current = this._head;
        const iterator = {
          [Symbol.iterator]: () => {
            return iterator;
          },
          next: () => {
            if (this._state !== state) {
              throw new Error(`LinkedMap got modified during iteration.`);
            }
            if (current) {
              const result = { value: [current.key, current.value], done: false };
              current = current.next;
              return result;
            } else {
              return { value: void 0, done: true };
            }
          }
        };
        return iterator;
      }
      [Symbol.iterator]() {
        return this.entries();
      }
      trimOld(newSize) {
        if (newSize >= this.size) {
          return;
        }
        if (newSize === 0) {
          this.clear();
          return;
        }
        let current = this._head;
        let currentSize = this.size;
        while (current && currentSize > newSize) {
          this._map.delete(current.key);
          current = current.next;
          currentSize--;
        }
        this._head = current;
        this._size = currentSize;
        if (current) {
          current.previous = void 0;
        }
        this._state++;
      }
      addItemFirst(item) {
        if (!this._head && !this._tail) {
          this._tail = item;
        } else if (!this._head) {
          throw new Error("Invalid list");
        } else {
          item.next = this._head;
          this._head.previous = item;
        }
        this._head = item;
        this._state++;
      }
      addItemLast(item) {
        if (!this._head && !this._tail) {
          this._head = item;
        } else if (!this._tail) {
          throw new Error("Invalid list");
        } else {
          item.previous = this._tail;
          this._tail.next = item;
        }
        this._tail = item;
        this._state++;
      }
      removeItem(item) {
        if (item === this._head && item === this._tail) {
          this._head = void 0;
          this._tail = void 0;
        } else if (item === this._head) {
          if (!item.next) {
            throw new Error("Invalid list");
          }
          item.next.previous = void 0;
          this._head = item.next;
        } else if (item === this._tail) {
          if (!item.previous) {
            throw new Error("Invalid list");
          }
          item.previous.next = void 0;
          this._tail = item.previous;
        } else {
          const next = item.next;
          const previous = item.previous;
          if (!next || !previous) {
            throw new Error("Invalid list");
          }
          next.previous = previous;
          previous.next = next;
        }
        item.next = void 0;
        item.previous = void 0;
        this._state++;
      }
      touch(item, touch) {
        if (!this._head || !this._tail) {
          throw new Error("Invalid list");
        }
        if (touch !== Touch2.First && touch !== Touch2.Last) {
          return;
        }
        if (touch === Touch2.First) {
          if (item === this._head) {
            return;
          }
          const next = item.next;
          const previous = item.previous;
          if (item === this._tail) {
            previous.next = void 0;
            this._tail = previous;
          } else {
            next.previous = previous;
            previous.next = next;
          }
          item.previous = void 0;
          item.next = this._head;
          this._head.previous = item;
          this._head = item;
          this._state++;
        } else if (touch === Touch2.Last) {
          if (item === this._tail) {
            return;
          }
          const next = item.next;
          const previous = item.previous;
          if (item === this._head) {
            next.previous = void 0;
            this._head = next;
          } else {
            next.previous = previous;
            previous.next = next;
          }
          item.next = void 0;
          item.previous = this._tail;
          this._tail.next = item;
          this._tail = item;
          this._state++;
        }
      }
      toJSON() {
        const data = [];
        this.forEach((value, key) => {
          data.push([key, value]);
        });
        return data;
      }
      fromJSON(data) {
        this.clear();
        for (const [key, value] of data) {
          this.set(key, value);
        }
      }
    };
    exports2.LinkedMap = LinkedMap2;
    var LRUCache2 = class extends LinkedMap2 {
      _limit;
      _ratio;
      constructor(limit, ratio = 1) {
        super();
        this._limit = limit;
        this._ratio = Math.min(Math.max(0, ratio), 1);
      }
      get limit() {
        return this._limit;
      }
      set limit(limit) {
        this._limit = limit;
        this.checkTrim();
      }
      get ratio() {
        return this._ratio;
      }
      set ratio(ratio) {
        this._ratio = Math.min(Math.max(0, ratio), 1);
        this.checkTrim();
      }
      get(key, touch = Touch2.AsNew) {
        return super.get(key, touch);
      }
      peek(key) {
        return super.get(key, Touch2.None);
      }
      set(key, value) {
        super.set(key, value, Touch2.Last);
        this.checkTrim();
        return this;
      }
      checkTrim() {
        if (this.size > this._limit) {
          this.trimOld(Math.round(this._limit * this._ratio));
        }
      }
    };
    exports2.LRUCache = LRUCache2;
  }
});

// node_modules/vscode-jsonrpc/lib/common/disposable.js
var require_disposable = __commonJS({
  "node_modules/vscode-jsonrpc/lib/common/disposable.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.Disposable = void 0;
    var Disposable43;
    (function(Disposable44) {
      function create2(func2) {
        return {
          dispose: func2
        };
      }
      Disposable44.create = create2;
    })(Disposable43 || (exports2.Disposable = Disposable43 = {}));
  }
});

// node_modules/vscode-jsonrpc/lib/common/ral.js
var require_ral = __commonJS({
  "node_modules/vscode-jsonrpc/lib/common/ral.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    var _ral;
    function RAL2() {
      if (_ral === void 0) {
        throw new Error(`No runtime abstraction layer installed`);
      }
      return _ral;
    }
    (function(RAL3) {
      function install(ral) {
        if (ral === void 0) {
          throw new Error(`No runtime abstraction layer provided`);
        }
        _ral = ral;
      }
      RAL3.install = install;
    })(RAL2 || (RAL2 = {}));
    exports2.default = RAL2;
  }
});

// node_modules/vscode-jsonrpc/lib/common/events.js
var require_events = __commonJS({
  "node_modules/vscode-jsonrpc/lib/common/events.js"(exports2) {
    "use strict";
    var __importDefault = exports2 && exports2.__importDefault || function(mod) {
      return mod && mod.__esModule ? mod : { "default": mod };
    };
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.Emitter = exports2.Event = void 0;
    var ral_1 = __importDefault(require_ral());
    var Event48;
    (function(Event49) {
      const _disposable = { dispose() {
      } };
      Event49.None = function() {
        return _disposable;
      };
    })(Event48 || (exports2.Event = Event48 = {}));
    var CallbackList = class {
      _callbacks;
      _contexts;
      add(callback, context = null, bucket) {
        if (!this._callbacks) {
          this._callbacks = [];
          this._contexts = [];
        }
        this._callbacks.push(callback);
        this._contexts.push(context);
        if (Array.isArray(bucket)) {
          bucket.push({ dispose: () => this.remove(callback, context) });
        }
      }
      remove(callback, context = null) {
        if (!this._callbacks) {
          return;
        }
        let foundCallbackWithDifferentContext = false;
        for (let i2 = 0, len = this._callbacks.length; i2 < len; i2++) {
          if (this._callbacks[i2] === callback) {
            if (this._contexts[i2] === context) {
              this._callbacks.splice(i2, 1);
              this._contexts.splice(i2, 1);
              return;
            } else {
              foundCallbackWithDifferentContext = true;
            }
          }
        }
        if (foundCallbackWithDifferentContext) {
          throw new Error("When adding a listener with a context, you should remove it with the same context");
        }
      }
      invoke(...args) {
        if (!this._callbacks) {
          return [];
        }
        const ret = [], callbacks = this._callbacks.slice(0), contexts = this._contexts.slice(0);
        for (let i2 = 0, len = callbacks.length; i2 < len; i2++) {
          try {
            ret.push(callbacks[i2].apply(contexts[i2], args));
          } catch (e2) {
            (0, ral_1.default)().console.error(e2);
          }
        }
        return ret;
      }
      isEmpty() {
        return !this._callbacks || this._callbacks.length === 0;
      }
      dispose() {
        this._callbacks = void 0;
        this._contexts = void 0;
      }
    };
    var Emitter4 = class _Emitter {
      _options;
      static _noop = function() {
      };
      _event;
      _callbacks;
      constructor(_options) {
        this._options = _options;
      }
      /**
       * For the public to allow to subscribe
       * to events from this Emitter
       */
      get event() {
        if (!this._event) {
          this._event = (listener, thisArgs, disposables) => {
            if (!this._callbacks) {
              this._callbacks = new CallbackList();
            }
            if (this._options && this._options.onFirstListenerAdd && this._callbacks.isEmpty()) {
              this._options.onFirstListenerAdd(this);
            }
            this._callbacks.add(listener, thisArgs);
            const result = {
              dispose: () => {
                if (!this._callbacks) {
                  return;
                }
                this._callbacks.remove(listener, thisArgs);
                result.dispose = _Emitter._noop;
                if (this._options && this._options.onLastListenerRemove && this._callbacks.isEmpty()) {
                  this._options.onLastListenerRemove(this);
                }
              }
            };
            if (Array.isArray(disposables)) {
              disposables.push(result);
            }
            return result;
          };
        }
        return this._event;
      }
      /**
       * To be kept private to fire an event to
       * subscribers
       */
      fire(event) {
        if (this._callbacks) {
          this._callbacks.invoke.call(this._callbacks, event);
        }
      }
      dispose() {
        if (this._callbacks) {
          this._callbacks.dispose();
          this._callbacks = void 0;
        }
      }
    };
    exports2.Emitter = Emitter4;
  }
});

// node_modules/vscode-jsonrpc/lib/common/cancellation.js
var require_cancellation = __commonJS({
  "node_modules/vscode-jsonrpc/lib/common/cancellation.js"(exports2) {
    "use strict";
    var __createBinding = exports2 && exports2.__createBinding || (Object.create ? (function(o2, m2, k, k2) {
      if (k2 === void 0) k2 = k;
      var desc = Object.getOwnPropertyDescriptor(m2, k);
      if (!desc || ("get" in desc ? !m2.__esModule : desc.writable || desc.configurable)) {
        desc = { enumerable: true, get: function() {
          return m2[k];
        } };
      }
      Object.defineProperty(o2, k2, desc);
    }) : (function(o2, m2, k, k2) {
      if (k2 === void 0) k2 = k;
      o2[k2] = m2[k];
    }));
    var __setModuleDefault = exports2 && exports2.__setModuleDefault || (Object.create ? (function(o2, v2) {
      Object.defineProperty(o2, "default", { enumerable: true, value: v2 });
    }) : function(o2, v2) {
      o2["default"] = v2;
    });
    var __importStar = exports2 && exports2.__importStar || /* @__PURE__ */ (function() {
      var ownKeys = function(o2) {
        ownKeys = Object.getOwnPropertyNames || function(o3) {
          var ar = [];
          for (var k in o3) if (Object.prototype.hasOwnProperty.call(o3, k)) ar[ar.length] = k;
          return ar;
        };
        return ownKeys(o2);
      };
      return function(mod) {
        if (mod && mod.__esModule) return mod;
        var result = {};
        if (mod != null) {
          for (var k = ownKeys(mod), i2 = 0; i2 < k.length; i2++) if (k[i2] !== "default") __createBinding(result, mod, k[i2]);
        }
        __setModuleDefault(result, mod);
        return result;
      };
    })();
    var __importDefault = exports2 && exports2.__importDefault || function(mod) {
      return mod && mod.__esModule ? mod : { "default": mod };
    };
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.CancellationTokenSource = exports2.CancellationToken = void 0;
    var ral_1 = __importDefault(require_ral());
    var Is2 = __importStar(require_is());
    var events_1 = require_events();
    var CancellationToken30;
    (function(CancellationToken31) {
      CancellationToken31.None = Object.freeze({
        isCancellationRequested: false,
        onCancellationRequested: events_1.Event.None
      });
      CancellationToken31.Cancelled = Object.freeze({
        isCancellationRequested: true,
        onCancellationRequested: events_1.Event.None
      });
      function is(value) {
        const candidate = value;
        return candidate && (candidate === CancellationToken31.None || candidate === CancellationToken31.Cancelled || Is2.boolean(candidate.isCancellationRequested) && !!candidate.onCancellationRequested);
      }
      CancellationToken31.is = is;
    })(CancellationToken30 || (exports2.CancellationToken = CancellationToken30 = {}));
    var shortcutEvent = Object.freeze(function(callback, context) {
      const handle = (0, ral_1.default)().timer.setTimeout(callback.bind(context), 0);
      return { dispose() {
        handle.dispose();
      } };
    });
    var MutableToken = class {
      _isCancelled = false;
      _emitter;
      cancel() {
        if (!this._isCancelled) {
          this._isCancelled = true;
          if (this._emitter) {
            this._emitter.fire(void 0);
            this.dispose();
          }
        }
      }
      get isCancellationRequested() {
        return this._isCancelled;
      }
      get onCancellationRequested() {
        if (this._isCancelled) {
          return shortcutEvent;
        }
        if (!this._emitter) {
          this._emitter = new events_1.Emitter();
        }
        return this._emitter.event;
      }
      dispose() {
        if (this._emitter) {
          this._emitter.dispose();
          this._emitter = void 0;
        }
      }
    };
    var CancellationTokenSource2 = class {
      _token;
      get token() {
        if (!this._token) {
          this._token = new MutableToken();
        }
        return this._token;
      }
      cancel() {
        if (!this._token) {
          this._token = CancellationToken30.Cancelled;
        } else {
          this._token.cancel();
        }
      }
      dispose() {
        if (!this._token) {
          this._token = CancellationToken30.None;
        } else if (this._token instanceof MutableToken) {
          this._token.dispose();
        }
      }
    };
    exports2.CancellationTokenSource = CancellationTokenSource2;
  }
});

// node_modules/vscode-jsonrpc/lib/common/sharedArrayCancellation.js
var require_sharedArrayCancellation = __commonJS({
  "node_modules/vscode-jsonrpc/lib/common/sharedArrayCancellation.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.SharedArrayReceiverStrategy = exports2.SharedArraySenderStrategy = void 0;
    var cancellation_1 = require_cancellation();
    var CancellationState;
    (function(CancellationState2) {
      CancellationState2.Continue = 0;
      CancellationState2.Cancelled = 1;
    })(CancellationState || (CancellationState = {}));
    var SharedArraySenderStrategy = class {
      buffers;
      constructor() {
        this.buffers = /* @__PURE__ */ new Map();
      }
      enableCancellation(request2) {
        if (request2.id === null) {
          return;
        }
        const buffer = new SharedArrayBuffer(4);
        const data = new Int32Array(buffer, 0, 1);
        data[0] = CancellationState.Continue;
        this.buffers.set(request2.id, buffer);
        request2.$cancellationData = buffer;
      }
      async sendCancellation(_conn, id2) {
        const buffer = this.buffers.get(id2);
        if (buffer === void 0) {
          return;
        }
        const data = new Int32Array(buffer, 0, 1);
        Atomics.store(data, 0, CancellationState.Cancelled);
      }
      cleanup(id2) {
        this.buffers.delete(id2);
      }
      dispose() {
        this.buffers.clear();
      }
    };
    exports2.SharedArraySenderStrategy = SharedArraySenderStrategy;
    var SharedArrayBufferCancellationToken = class {
      data;
      constructor(buffer) {
        this.data = new Int32Array(buffer, 0, 1);
      }
      get isCancellationRequested() {
        return Atomics.load(this.data, 0) === CancellationState.Cancelled;
      }
      get onCancellationRequested() {
        throw new Error(`Cancellation over SharedArrayBuffer doesn't support cancellation events`);
      }
    };
    var SharedArrayBufferCancellationTokenSource = class {
      token;
      constructor(buffer) {
        this.token = new SharedArrayBufferCancellationToken(buffer);
      }
      cancel() {
      }
      dispose() {
      }
    };
    var SharedArrayReceiverStrategy = class {
      kind = "request";
      createCancellationTokenSource(request2) {
        const buffer = request2.$cancellationData;
        if (buffer === void 0) {
          return new cancellation_1.CancellationTokenSource();
        }
        return new SharedArrayBufferCancellationTokenSource(buffer);
      }
    };
    exports2.SharedArrayReceiverStrategy = SharedArrayReceiverStrategy;
  }
});

// node_modules/vscode-jsonrpc/lib/common/semaphore.js
var require_semaphore = __commonJS({
  "node_modules/vscode-jsonrpc/lib/common/semaphore.js"(exports2) {
    "use strict";
    var __importDefault = exports2 && exports2.__importDefault || function(mod) {
      return mod && mod.__esModule ? mod : { "default": mod };
    };
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.Semaphore = void 0;
    var ral_1 = __importDefault(require_ral());
    var Semaphore = class {
      _capacity;
      _active;
      _waiting;
      constructor(capacity = 1) {
        if (capacity <= 0) {
          throw new Error("Capacity must be greater than 0");
        }
        this._capacity = capacity;
        this._active = 0;
        this._waiting = [];
      }
      lock(thunk) {
        return new Promise((resolve, reject) => {
          this._waiting.push({ thunk, resolve, reject });
          this.runNext();
        });
      }
      get active() {
        return this._active;
      }
      runNext() {
        if (this._waiting.length === 0 || this._active === this._capacity) {
          return;
        }
        (0, ral_1.default)().timer.setImmediate(() => this.doRunNext());
      }
      doRunNext() {
        if (this._waiting.length === 0 || this._active === this._capacity) {
          return;
        }
        const next = this._waiting.shift();
        this._active++;
        if (this._active > this._capacity) {
          throw new Error(`Too many thunks active`);
        }
        try {
          const result = next.thunk();
          if (result instanceof Promise) {
            result.then((value) => {
              this._active--;
              next.resolve(value);
              this.runNext();
            }, (err) => {
              this._active--;
              next.reject(err);
              this.runNext();
            });
          } else {
            this._active--;
            next.resolve(result);
            this.runNext();
          }
        } catch (err) {
          this._active--;
          next.reject(err);
          this.runNext();
        }
      }
    };
    exports2.Semaphore = Semaphore;
  }
});

// node_modules/vscode-jsonrpc/lib/common/messageReader.js
var require_messageReader = __commonJS({
  "node_modules/vscode-jsonrpc/lib/common/messageReader.js"(exports2) {
    "use strict";
    var __createBinding = exports2 && exports2.__createBinding || (Object.create ? (function(o2, m2, k, k2) {
      if (k2 === void 0) k2 = k;
      var desc = Object.getOwnPropertyDescriptor(m2, k);
      if (!desc || ("get" in desc ? !m2.__esModule : desc.writable || desc.configurable)) {
        desc = { enumerable: true, get: function() {
          return m2[k];
        } };
      }
      Object.defineProperty(o2, k2, desc);
    }) : (function(o2, m2, k, k2) {
      if (k2 === void 0) k2 = k;
      o2[k2] = m2[k];
    }));
    var __setModuleDefault = exports2 && exports2.__setModuleDefault || (Object.create ? (function(o2, v2) {
      Object.defineProperty(o2, "default", { enumerable: true, value: v2 });
    }) : function(o2, v2) {
      o2["default"] = v2;
    });
    var __importStar = exports2 && exports2.__importStar || /* @__PURE__ */ (function() {
      var ownKeys = function(o2) {
        ownKeys = Object.getOwnPropertyNames || function(o3) {
          var ar = [];
          for (var k in o3) if (Object.prototype.hasOwnProperty.call(o3, k)) ar[ar.length] = k;
          return ar;
        };
        return ownKeys(o2);
      };
      return function(mod) {
        if (mod && mod.__esModule) return mod;
        var result = {};
        if (mod != null) {
          for (var k = ownKeys(mod), i2 = 0; i2 < k.length; i2++) if (k[i2] !== "default") __createBinding(result, mod, k[i2]);
        }
        __setModuleDefault(result, mod);
        return result;
      };
    })();
    var __importDefault = exports2 && exports2.__importDefault || function(mod) {
      return mod && mod.__esModule ? mod : { "default": mod };
    };
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.ReadableStreamMessageReader = exports2.AbstractMessageReader = exports2.MessageReader = void 0;
    var ral_1 = __importDefault(require_ral());
    var Is2 = __importStar(require_is());
    var events_1 = require_events();
    var semaphore_1 = require_semaphore();
    var MessageReader2;
    (function(MessageReader3) {
      function is(value) {
        const candidate = value;
        return candidate && Is2.func(candidate.listen) && Is2.func(candidate.dispose) && Is2.func(candidate.onError) && Is2.func(candidate.onClose) && Is2.func(candidate.onPartialMessage);
      }
      MessageReader3.is = is;
    })(MessageReader2 || (exports2.MessageReader = MessageReader2 = {}));
    var AbstractMessageReader = class {
      errorEmitter;
      closeEmitter;
      partialMessageEmitter;
      constructor() {
        this.errorEmitter = new events_1.Emitter();
        this.closeEmitter = new events_1.Emitter();
        this.partialMessageEmitter = new events_1.Emitter();
      }
      dispose() {
        this.errorEmitter.dispose();
        this.closeEmitter.dispose();
        this.partialMessageEmitter.dispose();
      }
      get onError() {
        return this.errorEmitter.event;
      }
      fireError(error) {
        this.errorEmitter.fire(this.asError(error));
      }
      get onClose() {
        return this.closeEmitter.event;
      }
      fireClose() {
        this.closeEmitter.fire(void 0);
      }
      get onPartialMessage() {
        return this.partialMessageEmitter.event;
      }
      firePartialMessage(info) {
        this.partialMessageEmitter.fire(info);
      }
      asError(error) {
        if (error instanceof Error) {
          return error;
        } else {
          return new Error(`Reader received error. Reason: ${Is2.string(error.message) ? error.message : "unknown"}`);
        }
      }
    };
    exports2.AbstractMessageReader = AbstractMessageReader;
    var ResolvedMessageReaderOptions;
    (function(ResolvedMessageReaderOptions2) {
      function fromOptions(options3) {
        let charset;
        let result;
        let contentDecoder;
        const contentDecoders = /* @__PURE__ */ new Map();
        let contentTypeDecoder;
        const contentTypeDecoders = /* @__PURE__ */ new Map();
        if (options3 === void 0 || typeof options3 === "string") {
          charset = options3 ?? "utf-8";
        } else {
          charset = options3.charset ?? "utf-8";
          if (options3.contentDecoder !== void 0) {
            contentDecoder = options3.contentDecoder;
            contentDecoders.set(contentDecoder.name, contentDecoder);
          }
          if (options3.contentDecoders !== void 0) {
            for (const decoder of options3.contentDecoders) {
              contentDecoders.set(decoder.name, decoder);
            }
          }
          if (options3.contentTypeDecoder !== void 0) {
            contentTypeDecoder = options3.contentTypeDecoder;
            contentTypeDecoders.set(contentTypeDecoder.name, contentTypeDecoder);
          }
          if (options3.contentTypeDecoders !== void 0) {
            for (const decoder of options3.contentTypeDecoders) {
              contentTypeDecoders.set(decoder.name, decoder);
            }
          }
        }
        if (contentTypeDecoder === void 0) {
          contentTypeDecoder = (0, ral_1.default)().applicationJson.decoder;
          contentTypeDecoders.set(contentTypeDecoder.name, contentTypeDecoder);
        }
        return { charset, contentDecoder, contentDecoders, contentTypeDecoder, contentTypeDecoders };
      }
      ResolvedMessageReaderOptions2.fromOptions = fromOptions;
    })(ResolvedMessageReaderOptions || (ResolvedMessageReaderOptions = {}));
    var ReadableStreamMessageReader = class extends AbstractMessageReader {
      readable;
      options;
      callback;
      nextMessageLength;
      messageToken;
      buffer;
      partialMessageTimer;
      _partialMessageTimeout;
      readSemaphore;
      constructor(readable, options3) {
        super();
        this.readable = readable;
        this.options = ResolvedMessageReaderOptions.fromOptions(options3);
        this.buffer = (0, ral_1.default)().messageBuffer.create(this.options.charset);
        this._partialMessageTimeout = 1e4;
        this.nextMessageLength = -1;
        this.messageToken = 0;
        this.readSemaphore = new semaphore_1.Semaphore(1);
      }
      set partialMessageTimeout(timeout2) {
        this._partialMessageTimeout = timeout2;
      }
      get partialMessageTimeout() {
        return this._partialMessageTimeout;
      }
      listen(callback) {
        this.nextMessageLength = -1;
        this.messageToken = 0;
        this.partialMessageTimer = void 0;
        this.callback = callback;
        const result = this.readable.onData((data) => {
          this.onData(data);
        });
        this.readable.onError((error) => this.fireError(error));
        this.readable.onClose(() => this.fireClose());
        return result;
      }
      onData(data) {
        try {
          this.buffer.append(data);
          while (true) {
            if (this.nextMessageLength === -1) {
              const headers = this.buffer.tryReadHeaders(true);
              if (!headers) {
                return;
              }
              const contentLength = headers.get("content-length");
              if (!contentLength) {
                this.fireError(new Error(`Header must provide a Content-Length property.
${JSON.stringify(Object.fromEntries(headers))}`));
                return;
              }
              const length = parseInt(contentLength);
              if (isNaN(length)) {
                this.fireError(new Error(`Content-Length value must be a number. Got ${contentLength}`));
                return;
              }
              this.nextMessageLength = length;
            }
            const body = this.buffer.tryReadBody(this.nextMessageLength);
            if (body === void 0) {
              this.setPartialMessageTimer();
              return;
            }
            this.clearPartialMessageTimer();
            this.nextMessageLength = -1;
            this.readSemaphore.lock(async () => {
              const bytes2 = this.options.contentDecoder !== void 0 ? await this.options.contentDecoder.decode(body) : body;
              const message = await this.options.contentTypeDecoder.decode(bytes2, this.options);
              this.callback(message);
            }).catch((error) => {
              this.fireError(error);
            });
          }
        } catch (error) {
          this.fireError(error);
        }
      }
      clearPartialMessageTimer() {
        if (this.partialMessageTimer) {
          this.partialMessageTimer.dispose();
          this.partialMessageTimer = void 0;
        }
      }
      setPartialMessageTimer() {
        this.clearPartialMessageTimer();
        if (this._partialMessageTimeout <= 0) {
          return;
        }
        this.partialMessageTimer = (0, ral_1.default)().timer.setTimeout((token, timeout2) => {
          this.partialMessageTimer = void 0;
          if (token === this.messageToken) {
            this.firePartialMessage({ messageToken: token, waitingTime: timeout2 });
            this.setPartialMessageTimer();
          }
        }, this._partialMessageTimeout, this.messageToken, this._partialMessageTimeout);
      }
    };
    exports2.ReadableStreamMessageReader = ReadableStreamMessageReader;
  }
});

// node_modules/vscode-jsonrpc/lib/common/messageWriter.js
var require_messageWriter = __commonJS({
  "node_modules/vscode-jsonrpc/lib/common/messageWriter.js"(exports2) {
    "use strict";
    var __createBinding = exports2 && exports2.__createBinding || (Object.create ? (function(o2, m2, k, k2) {
      if (k2 === void 0) k2 = k;
      var desc = Object.getOwnPropertyDescriptor(m2, k);
      if (!desc || ("get" in desc ? !m2.__esModule : desc.writable || desc.configurable)) {
        desc = { enumerable: true, get: function() {
          return m2[k];
        } };
      }
      Object.defineProperty(o2, k2, desc);
    }) : (function(o2, m2, k, k2) {
      if (k2 === void 0) k2 = k;
      o2[k2] = m2[k];
    }));
    var __setModuleDefault = exports2 && exports2.__setModuleDefault || (Object.create ? (function(o2, v2) {
      Object.defineProperty(o2, "default", { enumerable: true, value: v2 });
    }) : function(o2, v2) {
      o2["default"] = v2;
    });
    var __importStar = exports2 && exports2.__importStar || /* @__PURE__ */ (function() {
      var ownKeys = function(o2) {
        ownKeys = Object.getOwnPropertyNames || function(o3) {
          var ar = [];
          for (var k in o3) if (Object.prototype.hasOwnProperty.call(o3, k)) ar[ar.length] = k;
          return ar;
        };
        return ownKeys(o2);
      };
      return function(mod) {
        if (mod && mod.__esModule) return mod;
        var result = {};
        if (mod != null) {
          for (var k = ownKeys(mod), i2 = 0; i2 < k.length; i2++) if (k[i2] !== "default") __createBinding(result, mod, k[i2]);
        }
        __setModuleDefault(result, mod);
        return result;
      };
    })();
    var __importDefault = exports2 && exports2.__importDefault || function(mod) {
      return mod && mod.__esModule ? mod : { "default": mod };
    };
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.WriteableStreamMessageWriter = exports2.AbstractMessageWriter = exports2.MessageWriter = void 0;
    var ral_1 = __importDefault(require_ral());
    var Is2 = __importStar(require_is());
    var semaphore_1 = require_semaphore();
    var events_1 = require_events();
    var ContentLength = "Content-Length: ";
    var CRLF = "\r\n";
    var MessageWriter2;
    (function(MessageWriter3) {
      function is(value) {
        const candidate = value;
        return candidate && Is2.func(candidate.dispose) && Is2.func(candidate.onClose) && Is2.func(candidate.onError) && Is2.func(candidate.write);
      }
      MessageWriter3.is = is;
    })(MessageWriter2 || (exports2.MessageWriter = MessageWriter2 = {}));
    var AbstractMessageWriter = class {
      errorEmitter;
      closeEmitter;
      constructor() {
        this.errorEmitter = new events_1.Emitter();
        this.closeEmitter = new events_1.Emitter();
      }
      dispose() {
        this.errorEmitter.dispose();
        this.closeEmitter.dispose();
      }
      get onError() {
        return this.errorEmitter.event;
      }
      fireError(error, message, count) {
        this.errorEmitter.fire([this.asError(error), message, count]);
      }
      get onClose() {
        return this.closeEmitter.event;
      }
      fireClose() {
        this.closeEmitter.fire(void 0);
      }
      asError(error) {
        if (error instanceof Error) {
          return error;
        } else {
          return new Error(`Writer received error. Reason: ${Is2.string(error.message) ? error.message : "unknown"}`);
        }
      }
    };
    exports2.AbstractMessageWriter = AbstractMessageWriter;
    var ResolvedMessageWriterOptions;
    (function(ResolvedMessageWriterOptions2) {
      function fromOptions(options3) {
        if (options3 === void 0 || typeof options3 === "string") {
          return { charset: options3 ?? "utf-8", contentTypeEncoder: (0, ral_1.default)().applicationJson.encoder };
        } else {
          return { charset: options3.charset ?? "utf-8", contentEncoder: options3.contentEncoder, contentTypeEncoder: options3.contentTypeEncoder ?? (0, ral_1.default)().applicationJson.encoder };
        }
      }
      ResolvedMessageWriterOptions2.fromOptions = fromOptions;
    })(ResolvedMessageWriterOptions || (ResolvedMessageWriterOptions = {}));
    var WriteableStreamMessageWriter = class extends AbstractMessageWriter {
      writable;
      options;
      errorCount;
      writeSemaphore;
      constructor(writable, options3) {
        super();
        this.writable = writable;
        this.options = ResolvedMessageWriterOptions.fromOptions(options3);
        this.errorCount = 0;
        this.writeSemaphore = new semaphore_1.Semaphore(1);
        this.writable.onError((error) => this.fireError(error));
        this.writable.onClose(() => this.fireClose());
      }
      async write(msg) {
        return this.writeSemaphore.lock(async () => {
          const payload = this.options.contentTypeEncoder.encode(msg, this.options).then((buffer) => {
            if (this.options.contentEncoder !== void 0) {
              return this.options.contentEncoder.encode(buffer);
            } else {
              return buffer;
            }
          });
          return payload.then((buffer) => {
            const headers = [];
            headers.push(ContentLength, buffer.byteLength.toString(), CRLF);
            headers.push(CRLF);
            return this.doWrite(msg, headers, buffer);
          }, (error) => {
            this.fireError(error);
            throw error;
          });
        });
      }
      async doWrite(msg, headers, data) {
        try {
          await this.writable.write(headers.join(""), "ascii");
          return this.writable.write(data);
        } catch (error) {
          this.handleError(error, msg);
          return Promise.reject(error);
        }
      }
      handleError(error, msg) {
        this.errorCount++;
        this.fireError(error, msg, this.errorCount);
      }
      end() {
        this.writable.end();
      }
    };
    exports2.WriteableStreamMessageWriter = WriteableStreamMessageWriter;
  }
});

// node_modules/vscode-jsonrpc/lib/common/messageBuffer.js
var require_messageBuffer = __commonJS({
  "node_modules/vscode-jsonrpc/lib/common/messageBuffer.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.AbstractMessageBuffer = void 0;
    var CR = 13;
    var LF = 10;
    var CRLF = "\r\n";
    var AbstractMessageBuffer = class {
      _encoding;
      _chunks;
      _totalLength;
      constructor(encoding2 = "utf-8") {
        this._encoding = encoding2;
        this._chunks = [];
        this._totalLength = 0;
      }
      get encoding() {
        return this._encoding;
      }
      append(chunk) {
        const toAppend = typeof chunk === "string" ? this.fromString(chunk, this._encoding) : chunk;
        this._chunks.push(toAppend);
        this._totalLength += toAppend.byteLength;
      }
      tryReadHeaders(lowerCaseKeys = false) {
        if (this._chunks.length === 0) {
          return void 0;
        }
        let state = 0;
        let chunkIndex = 0;
        let offset = 0;
        let chunkBytesRead = 0;
        row: while (chunkIndex < this._chunks.length) {
          const chunk = this._chunks[chunkIndex];
          offset = 0;
          while (offset < chunk.length) {
            const value = chunk[offset];
            switch (value) {
              case CR:
                switch (state) {
                  case 0:
                    state = 1;
                    break;
                  case 2:
                    state = 3;
                    break;
                  default:
                    state = 0;
                }
                break;
              case LF:
                switch (state) {
                  case 1:
                    state = 2;
                    break;
                  case 3:
                    state = 4;
                    offset++;
                    break row;
                  default:
                    state = 0;
                }
                break;
              default:
                state = 0;
            }
            offset++;
          }
          chunkBytesRead += chunk.byteLength;
          chunkIndex++;
        }
        if (state !== 4) {
          return void 0;
        }
        const buffer = this._read(chunkBytesRead + offset);
        const result = /* @__PURE__ */ new Map();
        const headers = this.toString(buffer, "ascii").split(CRLF);
        if (headers.length < 2) {
          return result;
        }
        for (let i2 = 0; i2 < headers.length - 2; i2++) {
          const header = headers[i2];
          const index = header.indexOf(":");
          if (index === -1) {
            throw new Error(`Message header must separate key and value using ':'
${header}`);
          }
          const key = header.substr(0, index);
          const value = header.substr(index + 1).trim();
          result.set(lowerCaseKeys ? key.toLowerCase() : key, value);
        }
        return result;
      }
      tryReadBody(length) {
        if (this._totalLength < length) {
          return void 0;
        }
        return this._read(length);
      }
      get numberOfBytes() {
        return this._totalLength;
      }
      _read(byteCount) {
        if (byteCount === 0) {
          return this.emptyBuffer();
        }
        if (byteCount > this._totalLength) {
          throw new Error(`Cannot read so many bytes!`);
        }
        if (this._chunks[0].byteLength === byteCount) {
          const chunk = this._chunks[0];
          this._chunks.shift();
          this._totalLength -= byteCount;
          return this.asNative(chunk);
        }
        if (this._chunks[0].byteLength > byteCount) {
          const chunk = this._chunks[0];
          const result2 = this.asNative(chunk, byteCount);
          this._chunks[0] = chunk.slice(byteCount);
          this._totalLength -= byteCount;
          return result2;
        }
        const result = this.allocNative(byteCount);
        let resultOffset = 0;
        const chunkIndex = 0;
        while (byteCount > 0) {
          const chunk = this._chunks[chunkIndex];
          if (chunk.byteLength > byteCount) {
            const chunkPart = chunk.slice(0, byteCount);
            result.set(chunkPart, resultOffset);
            resultOffset += byteCount;
            this._chunks[chunkIndex] = chunk.slice(byteCount);
            this._totalLength -= byteCount;
            byteCount -= byteCount;
          } else {
            result.set(chunk, resultOffset);
            resultOffset += chunk.byteLength;
            this._chunks.shift();
            this._totalLength -= chunk.byteLength;
            byteCount -= chunk.byteLength;
          }
        }
        return result;
      }
    };
    exports2.AbstractMessageBuffer = AbstractMessageBuffer;
  }
});

// node_modules/vscode-jsonrpc/lib/common/connection.js
var require_connection2 = __commonJS({
  "node_modules/vscode-jsonrpc/lib/common/connection.js"(exports2) {
    "use strict";
    var __createBinding = exports2 && exports2.__createBinding || (Object.create ? (function(o2, m2, k, k2) {
      if (k2 === void 0) k2 = k;
      var desc = Object.getOwnPropertyDescriptor(m2, k);
      if (!desc || ("get" in desc ? !m2.__esModule : desc.writable || desc.configurable)) {
        desc = { enumerable: true, get: function() {
          return m2[k];
        } };
      }
      Object.defineProperty(o2, k2, desc);
    }) : (function(o2, m2, k, k2) {
      if (k2 === void 0) k2 = k;
      o2[k2] = m2[k];
    }));
    var __setModuleDefault = exports2 && exports2.__setModuleDefault || (Object.create ? (function(o2, v2) {
      Object.defineProperty(o2, "default", { enumerable: true, value: v2 });
    }) : function(o2, v2) {
      o2["default"] = v2;
    });
    var __importStar = exports2 && exports2.__importStar || /* @__PURE__ */ (function() {
      var ownKeys = function(o2) {
        ownKeys = Object.getOwnPropertyNames || function(o3) {
          var ar = [];
          for (var k in o3) if (Object.prototype.hasOwnProperty.call(o3, k)) ar[ar.length] = k;
          return ar;
        };
        return ownKeys(o2);
      };
      return function(mod) {
        if (mod && mod.__esModule) return mod;
        var result = {};
        if (mod != null) {
          for (var k = ownKeys(mod), i2 = 0; i2 < k.length; i2++) if (k[i2] !== "default") __createBinding(result, mod, k[i2]);
        }
        __setModuleDefault(result, mod);
        return result;
      };
    })();
    var __importDefault = exports2 && exports2.__importDefault || function(mod) {
      return mod && mod.__esModule ? mod : { "default": mod };
    };
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.ConnectionOptions = exports2.MessageStrategy = exports2.CancellationStrategy = exports2.CancellationSenderStrategy = exports2.CancellationReceiverStrategy = exports2.RequestCancellationReceiverStrategy = exports2.IdCancellationReceiverStrategy = exports2.ConnectionStrategy = exports2.ConnectionError = exports2.ConnectionErrors = exports2.LogTraceNotification = exports2.SetTraceNotification = exports2.TraceFormat = exports2.TraceValues = exports2.TraceValue = exports2.Trace = exports2.NullLogger = exports2.ProgressType = exports2.ProgressToken = void 0;
    exports2.createMessageConnection = createMessageConnection;
    var ral_1 = __importDefault(require_ral());
    var Is2 = __importStar(require_is());
    var messages_1 = require_messages();
    var linkedMap_1 = require_linkedMap();
    var events_1 = require_events();
    var cancellation_1 = require_cancellation();
    var CancelNotification;
    (function(CancelNotification2) {
      CancelNotification2.type = new messages_1.NotificationType("$/cancelRequest");
    })(CancelNotification || (CancelNotification = {}));
    var ProgressToken2;
    (function(ProgressToken3) {
      function is(value) {
        return typeof value === "string" || typeof value === "number";
      }
      ProgressToken3.is = is;
    })(ProgressToken2 || (exports2.ProgressToken = ProgressToken2 = {}));
    var ProgressNotification2;
    (function(ProgressNotification3) {
      ProgressNotification3.type = new messages_1.NotificationType("$/progress");
    })(ProgressNotification2 || (ProgressNotification2 = {}));
    var ProgressType3 = class {
      /**
       * Clients must not use these properties. They are here to ensure correct typing.
       * in TypeScript
       */
      __;
      _pr;
      constructor() {
      }
    };
    exports2.ProgressType = ProgressType3;
    var StarRequestHandler;
    (function(StarRequestHandler2) {
      function is(value) {
        return Is2.func(value);
      }
      StarRequestHandler2.is = is;
    })(StarRequestHandler || (StarRequestHandler = {}));
    exports2.NullLogger = Object.freeze({
      error: () => {
      },
      warn: () => {
      },
      info: () => {
      },
      log: () => {
      }
    });
    var Trace2;
    (function(Trace3) {
      Trace3[Trace3["Off"] = 0] = "Off";
      Trace3[Trace3["Messages"] = 1] = "Messages";
      Trace3[Trace3["Compact"] = 2] = "Compact";
      Trace3[Trace3["Verbose"] = 3] = "Verbose";
    })(Trace2 || (exports2.Trace = Trace2 = {}));
    var TraceValue;
    (function(TraceValue2) {
      TraceValue2.Off = "off";
      TraceValue2.Messages = "messages";
      TraceValue2.Compact = "compact";
      TraceValue2.Verbose = "verbose";
    })(TraceValue || (exports2.TraceValue = TraceValue = {}));
    exports2.TraceValues = TraceValue;
    (function(Trace3) {
      function fromString(value) {
        if (!Is2.string(value)) {
          return Trace3.Off;
        }
        value = value.toLowerCase();
        switch (value) {
          case "off":
            return Trace3.Off;
          case "messages":
            return Trace3.Messages;
          case "compact":
            return Trace3.Compact;
          case "verbose":
            return Trace3.Verbose;
          default:
            return Trace3.Off;
        }
      }
      Trace3.fromString = fromString;
      function toString(value) {
        switch (value) {
          case Trace3.Off:
            return "off";
          case Trace3.Messages:
            return "messages";
          case Trace3.Compact:
            return "compact";
          case Trace3.Verbose:
            return "verbose";
          default:
            return "off";
        }
      }
      Trace3.toString = toString;
    })(Trace2 || (exports2.Trace = Trace2 = {}));
    var TraceFormat2;
    (function(TraceFormat3) {
      TraceFormat3["Text"] = "text";
      TraceFormat3["JSON"] = "json";
    })(TraceFormat2 || (exports2.TraceFormat = TraceFormat2 = {}));
    (function(TraceFormat3) {
      function fromString(value) {
        if (!Is2.string(value)) {
          return TraceFormat3.Text;
        }
        value = value.toLowerCase();
        if (value === "json") {
          return TraceFormat3.JSON;
        } else {
          return TraceFormat3.Text;
        }
      }
      TraceFormat3.fromString = fromString;
    })(TraceFormat2 || (exports2.TraceFormat = TraceFormat2 = {}));
    var SetTraceNotification;
    (function(SetTraceNotification2) {
      SetTraceNotification2.type = new messages_1.NotificationType("$/setTrace");
    })(SetTraceNotification || (exports2.SetTraceNotification = SetTraceNotification = {}));
    var LogTraceNotification;
    (function(LogTraceNotification2) {
      LogTraceNotification2.type = new messages_1.NotificationType("$/logTrace");
    })(LogTraceNotification || (exports2.LogTraceNotification = LogTraceNotification = {}));
    var ConnectionErrors;
    (function(ConnectionErrors2) {
      ConnectionErrors2[ConnectionErrors2["Closed"] = 1] = "Closed";
      ConnectionErrors2[ConnectionErrors2["Disposed"] = 2] = "Disposed";
      ConnectionErrors2[ConnectionErrors2["AlreadyListening"] = 3] = "AlreadyListening";
    })(ConnectionErrors || (exports2.ConnectionErrors = ConnectionErrors = {}));
    var ConnectionError = class _ConnectionError extends Error {
      code;
      constructor(code, message) {
        super(message);
        this.code = code;
        Object.setPrototypeOf(this, _ConnectionError.prototype);
      }
    };
    exports2.ConnectionError = ConnectionError;
    var ConnectionStrategy2;
    (function(ConnectionStrategy3) {
      function is(value) {
        const candidate = value;
        return candidate && Is2.func(candidate.cancelUndispatched);
      }
      ConnectionStrategy3.is = is;
    })(ConnectionStrategy2 || (exports2.ConnectionStrategy = ConnectionStrategy2 = {}));
    var IdCancellationReceiverStrategy;
    (function(IdCancellationReceiverStrategy2) {
      function is(value) {
        const candidate = value;
        return candidate && (candidate.kind === void 0 || candidate.kind === "id") && Is2.func(candidate.createCancellationTokenSource) && (candidate.dispose === void 0 || Is2.func(candidate.dispose));
      }
      IdCancellationReceiverStrategy2.is = is;
    })(IdCancellationReceiverStrategy || (exports2.IdCancellationReceiverStrategy = IdCancellationReceiverStrategy = {}));
    var RequestCancellationReceiverStrategy;
    (function(RequestCancellationReceiverStrategy2) {
      function is(value) {
        const candidate = value;
        return candidate && candidate.kind === "request" && Is2.func(candidate.createCancellationTokenSource) && (candidate.dispose === void 0 || Is2.func(candidate.dispose));
      }
      RequestCancellationReceiverStrategy2.is = is;
    })(RequestCancellationReceiverStrategy || (exports2.RequestCancellationReceiverStrategy = RequestCancellationReceiverStrategy = {}));
    var CancellationReceiverStrategy;
    (function(CancellationReceiverStrategy2) {
      CancellationReceiverStrategy2.Message = Object.freeze({
        createCancellationTokenSource(_2) {
          return new cancellation_1.CancellationTokenSource();
        }
      });
      function is(value) {
        return IdCancellationReceiverStrategy.is(value) || RequestCancellationReceiverStrategy.is(value);
      }
      CancellationReceiverStrategy2.is = is;
    })(CancellationReceiverStrategy || (exports2.CancellationReceiverStrategy = CancellationReceiverStrategy = {}));
    var CancellationSenderStrategy;
    (function(CancellationSenderStrategy2) {
      CancellationSenderStrategy2.Message = Object.freeze({
        sendCancellation(conn, id2) {
          return conn.sendNotification(CancelNotification.type, { id: id2 });
        },
        cleanup(_2) {
        }
      });
      function is(value) {
        const candidate = value;
        return candidate && Is2.func(candidate.sendCancellation) && Is2.func(candidate.cleanup);
      }
      CancellationSenderStrategy2.is = is;
    })(CancellationSenderStrategy || (exports2.CancellationSenderStrategy = CancellationSenderStrategy = {}));
    var CancellationStrategy2;
    (function(CancellationStrategy3) {
      CancellationStrategy3.Message = Object.freeze({
        receiver: CancellationReceiverStrategy.Message,
        sender: CancellationSenderStrategy.Message
      });
      function is(value) {
        const candidate = value;
        return candidate && CancellationReceiverStrategy.is(candidate.receiver) && CancellationSenderStrategy.is(candidate.sender);
      }
      CancellationStrategy3.is = is;
    })(CancellationStrategy2 || (exports2.CancellationStrategy = CancellationStrategy2 = {}));
    var MessageStrategy;
    (function(MessageStrategy2) {
      function is(value) {
        const candidate = value;
        return candidate && Is2.func(candidate.handleMessage);
      }
      MessageStrategy2.is = is;
    })(MessageStrategy || (exports2.MessageStrategy = MessageStrategy = {}));
    var ConnectionOptions;
    (function(ConnectionOptions2) {
      function is(value) {
        const candidate = value;
        return candidate && (CancellationStrategy2.is(candidate.cancellationStrategy) || ConnectionStrategy2.is(candidate.connectionStrategy) || MessageStrategy.is(candidate.messageStrategy) || Is2.number(candidate.maxParallelism));
      }
      ConnectionOptions2.is = is;
    })(ConnectionOptions || (exports2.ConnectionOptions = ConnectionOptions = {}));
    var ConnectionState;
    (function(ConnectionState2) {
      ConnectionState2[ConnectionState2["New"] = 1] = "New";
      ConnectionState2[ConnectionState2["Listening"] = 2] = "Listening";
      ConnectionState2[ConnectionState2["Closed"] = 3] = "Closed";
      ConnectionState2[ConnectionState2["Disposed"] = 4] = "Disposed";
    })(ConnectionState || (ConnectionState = {}));
    function createMessageConnection(messageReader, messageWriter, _logger, options3) {
      const logger75 = _logger !== void 0 ? _logger : exports2.NullLogger;
      let sequenceNumber = 0;
      let notificationSequenceNumber = 0;
      let unknownResponseSequenceNumber = 0;
      const version2 = "2.0";
      const maxParallelism = options3?.maxParallelism ?? -1;
      let inFlight = 0;
      let starRequestHandler = void 0;
      const requestHandlers = /* @__PURE__ */ new Map();
      let starNotificationHandler = void 0;
      const notificationHandlers = /* @__PURE__ */ new Map();
      const progressHandlers = /* @__PURE__ */ new Map();
      let timer;
      let messageQueue = new linkedMap_1.LinkedMap();
      let responsePromises = /* @__PURE__ */ new Map();
      let knownCanceledRequests = /* @__PURE__ */ new Set();
      let requestTokens = /* @__PURE__ */ new Map();
      let trace = Trace2.Off;
      let traceFormat = TraceFormat2.Text;
      let tracer;
      let state = ConnectionState.New;
      const errorEmitter = new events_1.Emitter();
      const closeEmitter = new events_1.Emitter();
      const unhandledNotificationEmitter = new events_1.Emitter();
      const unhandledProgressEmitter = new events_1.Emitter();
      const disposeEmitter = new events_1.Emitter();
      const cancellationStrategy = options3 && options3.cancellationStrategy ? options3.cancellationStrategy : CancellationStrategy2.Message;
      function cancelUndispatched(_message) {
        return void 0;
      }
      function isListening() {
        return state === ConnectionState.Listening;
      }
      function isClosed() {
        return state === ConnectionState.Closed;
      }
      function isDisposed() {
        return state === ConnectionState.Disposed;
      }
      function closeHandler() {
        if (state === ConnectionState.New || state === ConnectionState.Listening) {
          state = ConnectionState.Closed;
          closeEmitter.fire(void 0);
        }
      }
      function readErrorHandler(error) {
        errorEmitter.fire([error, void 0, void 0]);
      }
      function writeErrorHandler(data) {
        errorEmitter.fire(data);
      }
      messageReader.onClose(closeHandler);
      messageReader.onError(readErrorHandler);
      messageWriter.onClose(closeHandler);
      messageWriter.onError(writeErrorHandler);
      function createRequestQueueKey(id2) {
        if (id2 === null) {
          throw new Error(`Can't send requests with id null since the response can't be correlated.`);
        }
        return "req-" + id2.toString();
      }
      function createResponseQueueKey(id2) {
        if (id2 === null) {
          return "res-unknown-" + (++unknownResponseSequenceNumber).toString();
        } else {
          return "res-" + id2.toString();
        }
      }
      function createNotificationQueueKey() {
        return "not-" + (++notificationSequenceNumber).toString();
      }
      function addMessageToQueue(queue, message) {
        if (messages_1.Message.isRequest(message)) {
          queue.set(createRequestQueueKey(message.id), message);
        } else if (messages_1.Message.isResponse(message)) {
          if (maxParallelism === -1) {
            queue.set(createResponseQueueKey(message.id), message);
          } else {
            handleResponse(message);
          }
        } else {
          queue.set(createNotificationQueueKey(), message);
        }
      }
      function triggerMessageQueue() {
        if (timer || messageQueue.size === 0) {
          return;
        }
        if (maxParallelism !== -1 && inFlight >= maxParallelism) {
          return;
        }
        timer = (0, ral_1.default)().timer.setImmediate(async () => {
          timer = void 0;
          if (messageQueue.size === 0) {
            return;
          }
          if (maxParallelism !== -1 && inFlight >= maxParallelism) {
            return;
          }
          const message = messageQueue.shift();
          let result;
          try {
            inFlight++;
            const messageStrategy = options3?.messageStrategy;
            if (MessageStrategy.is(messageStrategy)) {
              result = messageStrategy.handleMessage(message, handleMessage2);
            } else {
              result = handleMessage2(message);
            }
          } catch (error) {
            logger75.error(`Processing message queue failed: ${error.toString()}`);
          } finally {
            if (result instanceof Promise) {
              result.then(() => {
              }).catch((error) => {
                logger75.error(`Processing message queue failed: ${error.toString()}`);
              }).finally(() => {
                inFlight--;
                triggerMessageQueue();
              });
            } else {
              inFlight--;
            }
            triggerMessageQueue();
          }
        });
      }
      async function handleMessage2(message) {
        if (messages_1.Message.isRequest(message)) {
          return handleRequest(message);
        } else if (messages_1.Message.isNotification(message)) {
          return handleNotification(message);
        } else if (messages_1.Message.isResponse(message)) {
          return handleResponse(message);
        } else {
          return handleInvalidMessage(message);
        }
      }
      const callback = (message) => {
        try {
          if (messages_1.Message.isNotification(message) && message.method === CancelNotification.type.method) {
            const cancelId = message.params.id;
            const key = createRequestQueueKey(cancelId);
            const toCancel = messageQueue.get(key);
            if (messages_1.Message.isRequest(toCancel)) {
              const strategy = options3?.connectionStrategy;
              const response = strategy && strategy.cancelUndispatched ? strategy.cancelUndispatched(toCancel, cancelUndispatched) : cancelUndispatched(toCancel);
              if (response && (response.error !== void 0 || response.result !== void 0)) {
                messageQueue.delete(key);
                requestTokens.delete(cancelId);
                response.id = toCancel.id;
                traceSendingResponse(response, message.method, Date.now());
                messageWriter.write(response).catch(() => logger75.error(`Sending response for canceled message failed.`));
                return;
              }
            }
            const cancellationToken = requestTokens.get(cancelId);
            if (cancellationToken !== void 0) {
              cancellationToken.cancel();
              traceReceivedNotification(message);
              return;
            } else {
              knownCanceledRequests.add(cancelId);
            }
          }
          addMessageToQueue(messageQueue, message);
        } finally {
          triggerMessageQueue();
        }
      };
      async function handleRequest(requestMessage) {
        if (isDisposed()) {
          return Promise.resolve();
        }
        function reply(resultOrError, method, startTime2) {
          const message = {
            jsonrpc: version2,
            id: requestMessage.id
          };
          if (resultOrError instanceof messages_1.ResponseError) {
            message.error = resultOrError.toJson();
          } else {
            message.result = resultOrError === void 0 ? null : resultOrError;
          }
          traceSendingResponse(message, method, startTime2);
          return messageWriter.write(message);
        }
        function replyError(error, method, startTime2) {
          const message = {
            jsonrpc: version2,
            id: requestMessage.id,
            error: error.toJson()
          };
          traceSendingResponse(message, method, startTime2);
          return messageWriter.write(message);
        }
        traceReceivedRequest(requestMessage);
        const element = requestHandlers.get(requestMessage.method);
        let type;
        let requestHandler;
        if (element) {
          type = element.type;
          requestHandler = element.handler;
        }
        const startTime = Date.now();
        if (requestHandler || starRequestHandler) {
          const tokenKey = requestMessage.id ?? String(Date.now());
          const cancellationSource = IdCancellationReceiverStrategy.is(cancellationStrategy.receiver) ? cancellationStrategy.receiver.createCancellationTokenSource(tokenKey) : cancellationStrategy.receiver.createCancellationTokenSource(requestMessage);
          if (requestMessage.id !== null && knownCanceledRequests.has(requestMessage.id)) {
            cancellationSource.cancel();
          }
          if (requestMessage.id !== null) {
            requestTokens.set(tokenKey, cancellationSource);
          }
          try {
            let handlerResult;
            if (requestHandler) {
              if (requestMessage.params === void 0) {
                if (type !== void 0 && type.numberOfParams !== 0) {
                  return replyError(new messages_1.ResponseError(messages_1.ErrorCodes.InvalidParams, `Request ${requestMessage.method} defines ${type.numberOfParams} params but received none.`), requestMessage.method, startTime);
                }
                handlerResult = requestHandler(cancellationSource.token);
              } else if (Array.isArray(requestMessage.params)) {
                if (type !== void 0 && type.parameterStructures === messages_1.ParameterStructures.byName) {
                  return replyError(new messages_1.ResponseError(messages_1.ErrorCodes.InvalidParams, `Request ${requestMessage.method} defines parameters by name but received parameters by position`), requestMessage.method, startTime);
                }
                handlerResult = requestHandler(...requestMessage.params, cancellationSource.token);
              } else {
                if (type !== void 0 && type.parameterStructures === messages_1.ParameterStructures.byPosition) {
                  return replyError(new messages_1.ResponseError(messages_1.ErrorCodes.InvalidParams, `Request ${requestMessage.method} defines parameters by position but received parameters by name`), requestMessage.method, startTime);
                }
                handlerResult = requestHandler(requestMessage.params, cancellationSource.token);
              }
            } else if (starRequestHandler) {
              handlerResult = starRequestHandler(requestMessage.method, requestMessage.params, cancellationSource.token);
            }
            const resultOrError = await handlerResult;
            await reply(resultOrError, requestMessage.method, startTime);
          } catch (error) {
            if (error instanceof messages_1.ResponseError) {
              await reply(error, requestMessage.method, startTime);
            } else if (error && Is2.string(error.message)) {
              await replyError(new messages_1.ResponseError(messages_1.ErrorCodes.InternalError, `Request ${requestMessage.method} failed with message: ${error.message}`), requestMessage.method, startTime);
            } else {
              await replyError(new messages_1.ResponseError(messages_1.ErrorCodes.InternalError, `Request ${requestMessage.method} failed unexpectedly without providing any details.`), requestMessage.method, startTime);
            }
          } finally {
            requestTokens.delete(tokenKey);
          }
        } else {
          await replyError(new messages_1.ResponseError(messages_1.ErrorCodes.MethodNotFound, `Unhandled method ${requestMessage.method}`), requestMessage.method, startTime);
        }
      }
      function handleResponse(responseMessage) {
        if (isDisposed()) {
          return;
        }
        if (responseMessage.id === null) {
          if (responseMessage.error) {
            logger75.error(`Received response message without id: Error is: 
${JSON.stringify(responseMessage.error, void 0, 4)}`);
          } else {
            logger75.error(`Received response message without id. No further error information provided.`);
          }
        } else {
          const key = responseMessage.id;
          const responsePromise = responsePromises.get(key);
          traceReceivedResponse(responseMessage, responsePromise);
          if (responsePromise !== void 0) {
            responsePromises.delete(key);
            try {
              if (responseMessage.error) {
                const error = responseMessage.error;
                responsePromise.reject(new messages_1.ResponseError(error.code, error.message, error.data));
              } else if (responseMessage.result !== void 0) {
                responsePromise.resolve(responseMessage.result);
              } else {
                throw new Error("Should never happen.");
              }
            } catch (error) {
              if (error.message) {
                logger75.error(`Response handler '${responsePromise.method}' failed with message: ${error.message}`);
              } else {
                logger75.error(`Response handler '${responsePromise.method}' failed unexpectedly.`);
              }
            }
          }
        }
      }
      async function handleNotification(message) {
        if (isDisposed()) {
          return;
        }
        let type = void 0;
        let notificationHandler;
        if (message.method === CancelNotification.type.method) {
          const cancelId = message.params.id;
          knownCanceledRequests.delete(cancelId);
          traceReceivedNotification(message);
          return;
        } else {
          const element = notificationHandlers.get(message.method);
          if (element) {
            notificationHandler = element.handler;
            type = element.type;
          }
        }
        if (notificationHandler || starNotificationHandler) {
          try {
            traceReceivedNotification(message);
            if (notificationHandler) {
              if (message.params === void 0) {
                if (type !== void 0) {
                  if (type.numberOfParams !== 0 && type.parameterStructures !== messages_1.ParameterStructures.byName) {
                    logger75.error(`Notification ${message.method} defines ${type.numberOfParams} params but received none.`);
                  }
                }
                await notificationHandler();
              } else if (Array.isArray(message.params)) {
                const params = message.params;
                if (message.method === ProgressNotification2.type.method && params.length === 2 && ProgressToken2.is(params[0])) {
                  await notificationHandler({ token: params[0], value: params[1] });
                } else {
                  if (type !== void 0) {
                    if (type.parameterStructures === messages_1.ParameterStructures.byName) {
                      logger75.error(`Notification ${message.method} defines parameters by name but received parameters by position`);
                    }
                    if (type.numberOfParams !== message.params.length) {
                      logger75.error(`Notification ${message.method} defines ${type.numberOfParams} params but received ${params.length} arguments`);
                    }
                  }
                  await notificationHandler(...params);
                }
              } else {
                if (type !== void 0 && type.parameterStructures === messages_1.ParameterStructures.byPosition) {
                  logger75.error(`Notification ${message.method} defines parameters by position but received parameters by name`);
                }
                await notificationHandler(message.params);
              }
            } else if (starNotificationHandler) {
              await starNotificationHandler(message.method, message.params);
            }
          } catch (error) {
            if (error.message) {
              logger75.error(`Notification handler '${message.method}' failed with message: ${error.message}`);
            } else {
              logger75.error(`Notification handler '${message.method}' failed unexpectedly.`);
            }
          }
        } else {
          unhandledNotificationEmitter.fire(message);
        }
      }
      function handleInvalidMessage(message) {
        if (!message) {
          logger75.error("Received empty message.");
          return;
        }
        logger75.error(`Received message which is neither a response nor a notification message:
${JSON.stringify(message, null, 4)}`);
        const responseMessage = message;
        if (Is2.string(responseMessage.id) || Is2.number(responseMessage.id)) {
          const key = responseMessage.id;
          const responseHandler = responsePromises.get(key);
          if (responseHandler) {
            responseHandler.reject(new Error("The received response has neither a result nor an error property."));
          }
        }
      }
      function stringifyTrace(params) {
        if (params === void 0 || params === null) {
          return void 0;
        }
        switch (trace) {
          case Trace2.Verbose:
            return JSON.stringify(params, null, 4);
          case Trace2.Compact:
            return JSON.stringify(params);
          default:
            return void 0;
        }
      }
      function traceSendingRequest(message) {
        if (trace === Trace2.Off || !tracer) {
          return;
        }
        if (traceFormat === TraceFormat2.Text) {
          let data = void 0;
          if ((trace === Trace2.Verbose || trace === Trace2.Compact) && message.params) {
            data = `Params: ${stringifyTrace(message.params)}`;
          }
          tracer.log(`Sending request '${message.method} - (${message.id})'.`, data);
        } else {
          logLSPMessage("send-request", message);
        }
      }
      function traceSendingNotification(message) {
        if (trace === Trace2.Off || !tracer) {
          return;
        }
        if (traceFormat === TraceFormat2.Text) {
          let data = void 0;
          if (trace === Trace2.Verbose || trace === Trace2.Compact) {
            if (message.params) {
              data = `Params: ${stringifyTrace(message.params)}`;
            } else {
              data = "No parameters provided.";
            }
          }
          tracer.log(`Sending notification '${message.method}'.`, data);
        } else {
          logLSPMessage("send-notification", message);
        }
      }
      function traceSendingResponse(message, method, startTime) {
        if (trace === Trace2.Off || !tracer) {
          return;
        }
        if (traceFormat === TraceFormat2.Text) {
          let data = void 0;
          if (trace === Trace2.Verbose || trace === Trace2.Compact) {
            if (message.error && message.error.data) {
              data = `Error data: ${stringifyTrace(message.error.data)}`;
            } else {
              if (message.result) {
                data = `Result: ${stringifyTrace(message.result)}`;
              } else if (message.error === void 0) {
                data = "No result returned.";
              }
            }
          }
          const error = message.error ? ` Request failed: ${message.error.message} (${message.error.code}).` : "";
          tracer.log(`Sending response '${method} - (${message.id})'. Processing request took ${Date.now() - startTime}ms.${error}`, data);
        } else {
          logLSPMessage("send-response", message);
        }
      }
      function traceReceivedRequest(message) {
        if (trace === Trace2.Off || !tracer) {
          return;
        }
        if (traceFormat === TraceFormat2.Text) {
          let data = void 0;
          if ((trace === Trace2.Verbose || trace === Trace2.Compact) && message.params) {
            data = `Params: ${stringifyTrace(message.params)}`;
          }
          tracer.log(`Received request '${message.method} - (${message.id})'.`, data);
        } else {
          logLSPMessage("receive-request", message);
        }
      }
      function traceReceivedNotification(message) {
        if (trace === Trace2.Off || !tracer || message.method === LogTraceNotification.type.method) {
          return;
        }
        if (traceFormat === TraceFormat2.Text) {
          let data = void 0;
          if (trace === Trace2.Verbose || trace === Trace2.Compact) {
            if (message.params) {
              data = `Params: ${stringifyTrace(message.params)}`;
            } else {
              data = "No parameters provided.";
            }
          }
          tracer.log(`Received notification '${message.method}'.`, data);
        } else {
          logLSPMessage("receive-notification", message);
        }
      }
      function traceReceivedResponse(message, responsePromise) {
        if (trace === Trace2.Off || !tracer) {
          return;
        }
        if (traceFormat === TraceFormat2.Text) {
          let data = void 0;
          if (trace === Trace2.Verbose || trace === Trace2.Compact) {
            if (message.error && message.error.data) {
              data = `Error data: ${stringifyTrace(message.error.data)}`;
            } else {
              if (message.result) {
                data = `Result: ${stringifyTrace(message.result)}`;
              } else if (message.error === void 0) {
                data = "No result returned.";
              }
            }
          }
          if (responsePromise) {
            const error = message.error ? ` Request failed: ${message.error.message} (${message.error.code}).` : "";
            tracer.log(`Received response '${responsePromise.method} - (${message.id})' in ${Date.now() - responsePromise.timerStart}ms.${error}`, data);
          } else {
            tracer.log(`Received response ${message.id} without active response promise.`, data);
          }
        } else {
          logLSPMessage("receive-response", message);
        }
      }
      function logLSPMessage(type, message) {
        if (!tracer || trace === Trace2.Off) {
          return;
        }
        const lspMessage = {
          isLSPMessage: true,
          type,
          message,
          timestamp: Date.now()
        };
        tracer.log(lspMessage);
      }
      function throwIfClosedOrDisposed() {
        if (isClosed()) {
          throw new ConnectionError(ConnectionErrors.Closed, "Connection is closed.");
        }
        if (isDisposed()) {
          throw new ConnectionError(ConnectionErrors.Disposed, "Connection is disposed.");
        }
      }
      function throwIfListening() {
        if (isListening()) {
          throw new ConnectionError(ConnectionErrors.AlreadyListening, "Connection is already listening");
        }
      }
      function throwIfNotListening() {
        if (!isListening()) {
          throw new Error("Call listen() first.");
        }
      }
      function undefinedToNull(param) {
        if (param === void 0) {
          return null;
        } else {
          return param;
        }
      }
      function nullToUndefined(param) {
        if (param === null) {
          return void 0;
        } else {
          return param;
        }
      }
      function isNamedParam(param) {
        return param !== void 0 && param !== null && !Array.isArray(param) && typeof param === "object";
      }
      function computeSingleParam(parameterStructures, param) {
        switch (parameterStructures) {
          case messages_1.ParameterStructures.auto:
            if (isNamedParam(param)) {
              return nullToUndefined(param);
            } else {
              return [undefinedToNull(param)];
            }
          case messages_1.ParameterStructures.byName:
            if (!isNamedParam(param)) {
              throw new Error(`Received parameters by name but param is not an object literal.`);
            }
            return nullToUndefined(param);
          case messages_1.ParameterStructures.byPosition:
            return [undefinedToNull(param)];
          default:
            throw new Error(`Unknown parameter structure ${parameterStructures.toString()}`);
        }
      }
      function computeMessageParams(type, params) {
        let result;
        const numberOfParams = type.numberOfParams;
        switch (numberOfParams) {
          case 0:
            result = void 0;
            break;
          case 1:
            result = computeSingleParam(type.parameterStructures, params[0]);
            break;
          default:
            result = [];
            for (let i2 = 0; i2 < params.length && i2 < numberOfParams; i2++) {
              result.push(undefinedToNull(params[i2]));
            }
            if (params.length < numberOfParams) {
              for (let i2 = params.length; i2 < numberOfParams; i2++) {
                result.push(null);
              }
            }
            break;
        }
        return result;
      }
      const connection = {
        sendNotification: (type, ...args) => {
          throwIfClosedOrDisposed();
          let method;
          let messageParams;
          if (Is2.string(type)) {
            method = type;
            const first = args[0];
            let paramStart = 0;
            let parameterStructures = messages_1.ParameterStructures.auto;
            if (messages_1.ParameterStructures.is(first)) {
              paramStart = 1;
              parameterStructures = first;
            }
            const paramEnd = args.length;
            const numberOfParams = paramEnd - paramStart;
            switch (numberOfParams) {
              case 0:
                messageParams = void 0;
                break;
              case 1:
                messageParams = computeSingleParam(parameterStructures, args[paramStart]);
                break;
              default:
                if (parameterStructures === messages_1.ParameterStructures.byName) {
                  throw new Error(`Received ${numberOfParams} parameters for 'by Name' notification parameter structure.`);
                }
                messageParams = args.slice(paramStart, paramEnd).map((value) => undefinedToNull(value));
                break;
            }
          } else {
            const params = args;
            method = type.method;
            messageParams = computeMessageParams(type, params);
          }
          const notificationMessage = {
            jsonrpc: version2,
            method,
            params: messageParams
          };
          traceSendingNotification(notificationMessage);
          return messageWriter.write(notificationMessage).catch((error) => {
            logger75.error(`Sending notification failed.`);
            throw error;
          });
        },
        onNotification: (type, handler) => {
          throwIfClosedOrDisposed();
          let method;
          if (Is2.func(type)) {
            starNotificationHandler = type;
          } else if (handler) {
            if (Is2.string(type)) {
              method = type;
              notificationHandlers.set(type, { type: void 0, handler });
            } else {
              method = type.method;
              notificationHandlers.set(type.method, { type, handler });
            }
          }
          return {
            dispose: () => {
              if (method !== void 0) {
                if (notificationHandlers.get(method)?.handler === handler) {
                  notificationHandlers.delete(method);
                }
              } else if (starNotificationHandler === type) {
                starNotificationHandler = void 0;
              }
            }
          };
        },
        onProgress: (_type, token, handler) => {
          if (progressHandlers.has(token)) {
            throw new Error(`Progress handler for token ${token} already registered`);
          }
          progressHandlers.set(token, handler);
          return {
            dispose: () => {
              if (progressHandlers.get(token) === handler) {
                progressHandlers.delete(token);
              }
            }
          };
        },
        sendProgress: (_type, token, value) => {
          return connection.sendNotification(ProgressNotification2.type, { token, value });
        },
        onUnhandledProgress: unhandledProgressEmitter.event,
        sendRequest: (type, ...args) => {
          throwIfClosedOrDisposed();
          throwIfNotListening();
          function sendCancellation(connection2, id3) {
            const p2 = cancellationStrategy.sender.sendCancellation(connection2, id3);
            if (p2 === void 0) {
              logger75.log(`Received no promise from cancellation strategy when cancelling id ${id3}`);
            } else {
              p2.catch(() => {
                logger75.log(`Sending cancellation messages for id ${id3} failed.`);
              });
            }
          }
          let method;
          let messageParams;
          let token = void 0;
          if (Is2.string(type)) {
            method = type;
            const first = args[0];
            const last = args[args.length - 1];
            let paramStart = 0;
            let parameterStructures = messages_1.ParameterStructures.auto;
            if (messages_1.ParameterStructures.is(first)) {
              paramStart = 1;
              parameterStructures = first;
            }
            let paramEnd = args.length;
            if (cancellation_1.CancellationToken.is(last)) {
              paramEnd = paramEnd - 1;
              token = last;
            }
            const numberOfParams = paramEnd - paramStart;
            switch (numberOfParams) {
              case 0:
                messageParams = void 0;
                break;
              case 1:
                messageParams = computeSingleParam(parameterStructures, args[paramStart]);
                break;
              default:
                if (parameterStructures === messages_1.ParameterStructures.byName) {
                  throw new Error(`Received ${numberOfParams} parameters for 'by Name' request parameter structure.`);
                }
                messageParams = args.slice(paramStart, paramEnd).map((value) => undefinedToNull(value));
                break;
            }
          } else {
            const params = args;
            method = type.method;
            messageParams = computeMessageParams(type, params);
            const numberOfParams = type.numberOfParams;
            token = cancellation_1.CancellationToken.is(params[numberOfParams]) ? params[numberOfParams] : void 0;
          }
          const id2 = sequenceNumber++;
          let disposable;
          let tokenWasCancelled = false;
          if (token !== void 0) {
            if (token.isCancellationRequested) {
              tokenWasCancelled = true;
            } else {
              disposable = token.onCancellationRequested(() => {
                sendCancellation(connection, id2);
              });
            }
          }
          const requestMessage = {
            jsonrpc: version2,
            id: id2,
            method,
            params: messageParams
          };
          traceSendingRequest(requestMessage);
          if (typeof cancellationStrategy.sender.enableCancellation === "function") {
            cancellationStrategy.sender.enableCancellation(requestMessage);
          }
          return new Promise(async (resolve, reject) => {
            const resolveWithCleanup = (r2) => {
              resolve(r2);
              cancellationStrategy.sender.cleanup(id2);
              disposable?.dispose();
            };
            const rejectWithCleanup = (r2) => {
              reject(r2);
              cancellationStrategy.sender.cleanup(id2);
              disposable?.dispose();
            };
            const responsePromise = { method, timerStart: Date.now(), resolve: resolveWithCleanup, reject: rejectWithCleanup };
            try {
              responsePromises.set(id2, responsePromise);
              await messageWriter.write(requestMessage);
              if (tokenWasCancelled) {
                sendCancellation(connection, id2);
              }
            } catch (error) {
              responsePromises.delete(id2);
              responsePromise.reject(new messages_1.ResponseError(messages_1.ErrorCodes.MessageWriteError, error.message ? error.message : "Unknown reason"));
              logger75.error(`Sending request failed.`);
            }
          });
        },
        onRequest: (type, handler) => {
          throwIfClosedOrDisposed();
          let method = null;
          if (StarRequestHandler.is(type)) {
            method = void 0;
            starRequestHandler = type;
          } else if (Is2.string(type)) {
            method = null;
            if (handler !== void 0) {
              method = type;
              requestHandlers.set(type, { handler, type: void 0 });
            }
          } else {
            if (handler !== void 0) {
              method = type.method;
              requestHandlers.set(type.method, { type, handler });
            }
          }
          return {
            dispose: () => {
              if (method === null) {
                return;
              }
              if (method !== void 0) {
                if (requestHandlers.get(method)?.handler === handler) {
                  requestHandlers.delete(method);
                }
              } else if (starRequestHandler === type) {
                starRequestHandler = void 0;
              }
            }
          };
        },
        hasPendingResponse: () => {
          return responsePromises.size > 0;
        },
        trace: async (_value, _tracer, sendNotificationOrTraceOptions) => {
          let _sendNotification = false;
          let _traceFormat = TraceFormat2.Text;
          if (sendNotificationOrTraceOptions !== void 0) {
            if (Is2.boolean(sendNotificationOrTraceOptions)) {
              _sendNotification = sendNotificationOrTraceOptions;
            } else {
              _sendNotification = sendNotificationOrTraceOptions.sendNotification || false;
              _traceFormat = sendNotificationOrTraceOptions.traceFormat || TraceFormat2.Text;
            }
          }
          trace = _value;
          traceFormat = _traceFormat;
          if (trace === Trace2.Off) {
            tracer = void 0;
          } else {
            tracer = _tracer;
          }
          if (_sendNotification && !isClosed() && !isDisposed()) {
            await connection.sendNotification(SetTraceNotification.type, { value: Trace2.toString(_value) });
          }
        },
        onError: errorEmitter.event,
        onClose: closeEmitter.event,
        onUnhandledNotification: unhandledNotificationEmitter.event,
        onDispose: disposeEmitter.event,
        end: () => {
          messageWriter.end();
        },
        dispose: () => {
          if (isDisposed()) {
            return;
          }
          state = ConnectionState.Disposed;
          disposeEmitter.fire(void 0);
          const error = new messages_1.ResponseError(messages_1.ErrorCodes.PendingResponseRejected, "Pending response rejected since connection got disposed");
          for (const promise of responsePromises.values()) {
            promise.reject(error);
          }
          responsePromises = /* @__PURE__ */ new Map();
          requestTokens = /* @__PURE__ */ new Map();
          knownCanceledRequests = /* @__PURE__ */ new Set();
          messageQueue = new linkedMap_1.LinkedMap();
          if (Is2.func(messageWriter.dispose)) {
            messageWriter.dispose();
          }
          if (Is2.func(messageReader.dispose)) {
            messageReader.dispose();
          }
        },
        listen: () => {
          throwIfClosedOrDisposed();
          throwIfListening();
          state = ConnectionState.Listening;
          messageReader.listen(callback);
        },
        inspect: () => {
          (0, ral_1.default)().console.log("inspect");
        }
      };
      connection.onNotification(LogTraceNotification.type, (params) => {
        if (trace === Trace2.Off || !tracer) {
          return;
        }
        const verbose = trace === Trace2.Verbose || trace === Trace2.Compact;
        tracer.log(params.message, verbose ? params.verbose : void 0);
      });
      connection.onNotification(ProgressNotification2.type, async (params) => {
        const handler = progressHandlers.get(params.token);
        if (handler) {
          await handler(params.value);
        } else {
          unhandledProgressEmitter.fire(params);
        }
      });
      return connection;
    }
  }
});

// node_modules/vscode-jsonrpc/lib/common/api.js
var require_api2 = __commonJS({
  "node_modules/vscode-jsonrpc/lib/common/api.js"(exports2) {
    "use strict";
    var __importDefault = exports2 && exports2.__importDefault || function(mod) {
      return mod && mod.__esModule ? mod : { "default": mod };
    };
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.ProgressType = exports2.ProgressToken = exports2.createMessageConnection = exports2.NullLogger = exports2.ConnectionOptions = exports2.ConnectionStrategy = exports2.AbstractMessageBuffer = exports2.WriteableStreamMessageWriter = exports2.AbstractMessageWriter = exports2.MessageWriter = exports2.ReadableStreamMessageReader = exports2.AbstractMessageReader = exports2.MessageReader = exports2.SharedArrayReceiverStrategy = exports2.SharedArraySenderStrategy = exports2.CancellationToken = exports2.CancellationTokenSource = exports2.Emitter = exports2.Event = exports2.Disposable = exports2.LRUCache = exports2.Touch = exports2.LinkedMap = exports2.ParameterStructures = exports2.NotificationType9 = exports2.NotificationType8 = exports2.NotificationType7 = exports2.NotificationType6 = exports2.NotificationType5 = exports2.NotificationType4 = exports2.NotificationType3 = exports2.NotificationType2 = exports2.NotificationType1 = exports2.NotificationType0 = exports2.NotificationType = exports2.ErrorCodes = exports2.ResponseError = exports2.RequestType9 = exports2.RequestType8 = exports2.RequestType7 = exports2.RequestType6 = exports2.RequestType5 = exports2.RequestType4 = exports2.RequestType3 = exports2.RequestType2 = exports2.RequestType1 = exports2.RequestType0 = exports2.RequestType = exports2.Message = exports2.RAL = void 0;
    exports2.MessageStrategy = exports2.CancellationStrategy = exports2.CancellationSenderStrategy = exports2.RequestCancellationReceiverStrategy = exports2.IdCancellationReceiverStrategy = exports2.CancellationReceiverStrategy = exports2.ConnectionError = exports2.ConnectionErrors = exports2.LogTraceNotification = exports2.SetTraceNotification = exports2.TraceFormat = exports2.TraceValues = exports2.TraceValue = exports2.Trace = void 0;
    var messages_1 = require_messages();
    Object.defineProperty(exports2, "Message", { enumerable: true, get: function() {
      return messages_1.Message;
    } });
    Object.defineProperty(exports2, "RequestType", { enumerable: true, get: function() {
      return messages_1.RequestType;
    } });
    Object.defineProperty(exports2, "RequestType0", { enumerable: true, get: function() {
      return messages_1.RequestType0;
    } });
    Object.defineProperty(exports2, "RequestType1", { enumerable: true, get: function() {
      return messages_1.RequestType1;
    } });
    Object.defineProperty(exports2, "RequestType2", { enumerable: true, get: function() {
      return messages_1.RequestType2;
    } });
    Object.defineProperty(exports2, "RequestType3", { enumerable: true, get: function() {
      return messages_1.RequestType3;
    } });
    Object.defineProperty(exports2, "RequestType4", { enumerable: true, get: function() {
      return messages_1.RequestType4;
    } });
    Object.defineProperty(exports2, "RequestType5", { enumerable: true, get: function() {
      return messages_1.RequestType5;
    } });
    Object.defineProperty(exports2, "RequestType6", { enumerable: true, get: function() {
      return messages_1.RequestType6;
    } });
    Object.defineProperty(exports2, "RequestType7", { enumerable: true, get: function() {
      return messages_1.RequestType7;
    } });
    Object.defineProperty(exports2, "RequestType8", { enumerable: true, get: function() {
      return messages_1.RequestType8;
    } });
    Object.defineProperty(exports2, "RequestType9", { enumerable: true, get: function() {
      return messages_1.RequestType9;
    } });
    Object.defineProperty(exports2, "ResponseError", { enumerable: true, get: function() {
      return messages_1.ResponseError;
    } });
    Object.defineProperty(exports2, "ErrorCodes", { enumerable: true, get: function() {
      return messages_1.ErrorCodes;
    } });
    Object.defineProperty(exports2, "NotificationType", { enumerable: true, get: function() {
      return messages_1.NotificationType;
    } });
    Object.defineProperty(exports2, "NotificationType0", { enumerable: true, get: function() {
      return messages_1.NotificationType0;
    } });
    Object.defineProperty(exports2, "NotificationType1", { enumerable: true, get: function() {
      return messages_1.NotificationType1;
    } });
    Object.defineProperty(exports2, "NotificationType2", { enumerable: true, get: function() {
      return messages_1.NotificationType2;
    } });
    Object.defineProperty(exports2, "NotificationType3", { enumerable: true, get: function() {
      return messages_1.NotificationType3;
    } });
    Object.defineProperty(exports2, "NotificationType4", { enumerable: true, get: function() {
      return messages_1.NotificationType4;
    } });
    Object.defineProperty(exports2, "NotificationType5", { enumerable: true, get: function() {
      return messages_1.NotificationType5;
    } });
    Object.defineProperty(exports2, "NotificationType6", { enumerable: true, get: function() {
      return messages_1.NotificationType6;
    } });
    Object.defineProperty(exports2, "NotificationType7", { enumerable: true, get: function() {
      return messages_1.NotificationType7;
    } });
    Object.defineProperty(exports2, "NotificationType8", { enumerable: true, get: function() {
      return messages_1.NotificationType8;
    } });
    Object.defineProperty(exports2, "NotificationType9", { enumerable: true, get: function() {
      return messages_1.NotificationType9;
    } });
    Object.defineProperty(exports2, "ParameterStructures", { enumerable: true, get: function() {
      return messages_1.ParameterStructures;
    } });
    var linkedMap_1 = require_linkedMap();
    Object.defineProperty(exports2, "LinkedMap", { enumerable: true, get: function() {
      return linkedMap_1.LinkedMap;
    } });
    Object.defineProperty(exports2, "LRUCache", { enumerable: true, get: function() {
      return linkedMap_1.LRUCache;
    } });
    Object.defineProperty(exports2, "Touch", { enumerable: true, get: function() {
      return linkedMap_1.Touch;
    } });
    var disposable_1 = require_disposable();
    Object.defineProperty(exports2, "Disposable", { enumerable: true, get: function() {
      return disposable_1.Disposable;
    } });
    var events_1 = require_events();
    Object.defineProperty(exports2, "Event", { enumerable: true, get: function() {
      return events_1.Event;
    } });
    Object.defineProperty(exports2, "Emitter", { enumerable: true, get: function() {
      return events_1.Emitter;
    } });
    var cancellation_1 = require_cancellation();
    Object.defineProperty(exports2, "CancellationTokenSource", { enumerable: true, get: function() {
      return cancellation_1.CancellationTokenSource;
    } });
    Object.defineProperty(exports2, "CancellationToken", { enumerable: true, get: function() {
      return cancellation_1.CancellationToken;
    } });
    var sharedArrayCancellation_1 = require_sharedArrayCancellation();
    Object.defineProperty(exports2, "SharedArraySenderStrategy", { enumerable: true, get: function() {
      return sharedArrayCancellation_1.SharedArraySenderStrategy;
    } });
    Object.defineProperty(exports2, "SharedArrayReceiverStrategy", { enumerable: true, get: function() {
      return sharedArrayCancellation_1.SharedArrayReceiverStrategy;
    } });
    var messageReader_1 = require_messageReader();
    Object.defineProperty(exports2, "MessageReader", { enumerable: true, get: function() {
      return messageReader_1.MessageReader;
    } });
    Object.defineProperty(exports2, "AbstractMessageReader", { enumerable: true, get: function() {
      return messageReader_1.AbstractMessageReader;
    } });
    Object.defineProperty(exports2, "ReadableStreamMessageReader", { enumerable: true, get: function() {
      return messageReader_1.ReadableStreamMessageReader;
    } });
    var messageWriter_1 = require_messageWriter();
    Object.defineProperty(exports2, "MessageWriter", { enumerable: true, get: function() {
      return messageWriter_1.MessageWriter;
    } });
    Object.defineProperty(exports2, "AbstractMessageWriter", { enumerable: true, get: function() {
      return messageWriter_1.AbstractMessageWriter;
    } });
    Object.defineProperty(exports2, "WriteableStreamMessageWriter", { enumerable: true, get: function() {
      return messageWriter_1.WriteableStreamMessageWriter;
    } });
    var messageBuffer_1 = require_messageBuffer();
    Object.defineProperty(exports2, "AbstractMessageBuffer", { enumerable: true, get: function() {
      return messageBuffer_1.AbstractMessageBuffer;
    } });
    var connection_1 = require_connection2();
    Object.defineProperty(exports2, "ConnectionStrategy", { enumerable: true, get: function() {
      return connection_1.ConnectionStrategy;
    } });
    Object.defineProperty(exports2, "ConnectionOptions", { enumerable: true, get: function() {
      return connection_1.ConnectionOptions;
    } });
    Object.defineProperty(exports2, "NullLogger", { enumerable: true, get: function() {
      return connection_1.NullLogger;
    } });
    Object.defineProperty(exports2, "createMessageConnection", { enumerable: true, get: function() {
      return connection_1.createMessageConnection;
    } });
    Object.defineProperty(exports2, "ProgressToken", { enumerable: true, get: function() {
      return connection_1.ProgressToken;
    } });
    Object.defineProperty(exports2, "ProgressType", { enumerable: true, get: function() {
      return connection_1.ProgressType;
    } });
    Object.defineProperty(exports2, "Trace", { enumerable: true, get: function() {
      return connection_1.Trace;
    } });
    Object.defineProperty(exports2, "TraceValue", { enumerable: true, get: function() {
      return connection_1.TraceValue;
    } });
    Object.defineProperty(exports2, "TraceFormat", { enumerable: true, get: function() {
      return connection_1.TraceFormat;
    } });
    Object.defineProperty(exports2, "SetTraceNotification", { enumerable: true, get: function() {
      return connection_1.SetTraceNotification;
    } });
    Object.defineProperty(exports2, "LogTraceNotification", { enumerable: true, get: function() {
      return connection_1.LogTraceNotification;
    } });
    Object.defineProperty(exports2, "ConnectionErrors", { enumerable: true, get: function() {
      return connection_1.ConnectionErrors;
    } });
    Object.defineProperty(exports2, "ConnectionError", { enumerable: true, get: function() {
      return connection_1.ConnectionError;
    } });
    Object.defineProperty(exports2, "CancellationReceiverStrategy", { enumerable: true, get: function() {
      return connection_1.CancellationReceiverStrategy;
    } });
    Object.defineProperty(exports2, "IdCancellationReceiverStrategy", { enumerable: true, get: function() {
      return connection_1.IdCancellationReceiverStrategy;
    } });
    Object.defineProperty(exports2, "RequestCancellationReceiverStrategy", { enumerable: true, get: function() {
      return connection_1.RequestCancellationReceiverStrategy;
    } });
    Object.defineProperty(exports2, "CancellationSenderStrategy", { enumerable: true, get: function() {
      return connection_1.CancellationSenderStrategy;
    } });
    Object.defineProperty(exports2, "CancellationStrategy", { enumerable: true, get: function() {
      return connection_1.CancellationStrategy;
    } });
    Object.defineProperty(exports2, "MessageStrategy", { enumerable: true, get: function() {
      return connection_1.MessageStrategy;
    } });
    Object.defineProperty(exports2, "TraceValues", { enumerable: true, get: function() {
      return connection_1.TraceValues;
    } });
    var ral_1 = __importDefault(require_ral());
    exports2.RAL = ral_1.default;
  }
});

// node_modules/vscode-jsonrpc/lib/node/ril.js
var require_ril = __commonJS({
  "node_modules/vscode-jsonrpc/lib/node/ril.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    var util_1 = require("util");
    var crypto_1 = require("crypto");
    var api_1 = require_api2();
    var MessageBuffer = class _MessageBuffer extends api_1.AbstractMessageBuffer {
      static emptyBuffer = Buffer.allocUnsafe(0);
      constructor(encoding2 = "utf-8") {
        super(encoding2);
      }
      emptyBuffer() {
        return _MessageBuffer.emptyBuffer;
      }
      fromString(value, encoding2) {
        return Buffer.from(value, encoding2);
      }
      toString(value, encoding2) {
        if (value instanceof Buffer) {
          return value.toString(encoding2);
        } else {
          return new util_1.TextDecoder(encoding2).decode(value);
        }
      }
      asNative(buffer, length) {
        if (length === void 0) {
          return buffer instanceof Buffer ? buffer : Buffer.from(buffer);
        } else {
          return buffer instanceof Buffer ? buffer.slice(0, length) : Buffer.from(buffer.subarray(0, length));
        }
      }
      allocNative(length) {
        return Buffer.allocUnsafe(length);
      }
    };
    var ReadableStreamWrapper = class {
      stream;
      constructor(stream) {
        this.stream = stream;
      }
      onClose(listener) {
        this.stream.on("close", listener);
        return api_1.Disposable.create(() => this.stream.off("close", listener));
      }
      onError(listener) {
        this.stream.on("error", listener);
        return api_1.Disposable.create(() => this.stream.off("error", listener));
      }
      onEnd(listener) {
        this.stream.on("end", listener);
        return api_1.Disposable.create(() => this.stream.off("end", listener));
      }
      onData(listener) {
        this.stream.on("data", listener);
        return api_1.Disposable.create(() => this.stream.off("data", listener));
      }
    };
    var WritableStreamWrapper = class {
      stream;
      constructor(stream) {
        this.stream = stream;
      }
      onClose(listener) {
        this.stream.on("close", listener);
        return api_1.Disposable.create(() => this.stream.off("close", listener));
      }
      onError(listener) {
        this.stream.on("error", listener);
        return api_1.Disposable.create(() => this.stream.off("error", listener));
      }
      onEnd(listener) {
        this.stream.on("end", listener);
        return api_1.Disposable.create(() => this.stream.off("end", listener));
      }
      write(data, encoding2) {
        return new Promise((resolve, reject) => {
          const callback = (error) => {
            if (error === void 0 || error === null) {
              resolve();
            } else {
              reject(error);
            }
          };
          if (typeof data === "string") {
            this.stream.write(data, encoding2, callback);
          } else {
            this.stream.write(data, callback);
          }
        });
      }
      end() {
        this.stream.end();
      }
    };
    var _ril = Object.freeze({
      crypto: Object.freeze({
        randomUUID: () => (0, crypto_1.randomUUID)()
      }),
      messageBuffer: Object.freeze({
        create: (encoding2) => new MessageBuffer(encoding2)
      }),
      applicationJson: Object.freeze({
        encoder: Object.freeze({
          name: "application/json",
          encode: (msg, options3) => {
            try {
              return Promise.resolve(Buffer.from(JSON.stringify(msg, void 0, 0), options3.charset));
            } catch (err) {
              return Promise.reject(err);
            }
          }
        }),
        decoder: Object.freeze({
          name: "application/json",
          decode: (buffer, options3) => {
            try {
              if (buffer instanceof Buffer) {
                return Promise.resolve(JSON.parse(buffer.toString(options3.charset)));
              } else {
                return Promise.resolve(JSON.parse(new util_1.TextDecoder(options3.charset).decode(buffer)));
              }
            } catch (err) {
              return Promise.reject(err);
            }
          }
        })
      }),
      stream: Object.freeze({
        asReadableStream: (stream) => new ReadableStreamWrapper(stream),
        asWritableStream: (stream) => new WritableStreamWrapper(stream)
      }),
      console,
      timer: Object.freeze({
        setTimeout(callback, ms, ...args) {
          const handle = setTimeout(callback, ms, ...args);
          return { dispose: () => clearTimeout(handle) };
        },
        setImmediate(callback, ...args) {
          const handle = setImmediate(callback, ...args);
          return { dispose: () => clearImmediate(handle) };
        },
        setInterval(callback, ms, ...args) {
          const handle = setInterval(callback, ms, ...args);
          return { dispose: () => clearInterval(handle) };
        }
      })
    });
    function RIL() {
      return _ril;
    }
    (function(RIL2) {
      function install() {
        api_1.RAL.install(_ril);
      }
      RIL2.install = install;
    })(RIL || (RIL = {}));
    exports2.default = RIL;
  }
});

// node_modules/vscode-jsonrpc/lib/node/main.js
var require_main = __commonJS({
  "node_modules/vscode-jsonrpc/lib/node/main.js"(exports2) {
    "use strict";
    var __createBinding = exports2 && exports2.__createBinding || (Object.create ? (function(o2, m2, k, k2) {
      if (k2 === void 0) k2 = k;
      var desc = Object.getOwnPropertyDescriptor(m2, k);
      if (!desc || ("get" in desc ? !m2.__esModule : desc.writable || desc.configurable)) {
        desc = { enumerable: true, get: function() {
          return m2[k];
        } };
      }
      Object.defineProperty(o2, k2, desc);
    }) : (function(o2, m2, k, k2) {
      if (k2 === void 0) k2 = k;
      o2[k2] = m2[k];
    }));
    var __setModuleDefault = exports2 && exports2.__setModuleDefault || (Object.create ? (function(o2, v2) {
      Object.defineProperty(o2, "default", { enumerable: true, value: v2 });
    }) : function(o2, v2) {
      o2["default"] = v2;
    });
    var __importStar = exports2 && exports2.__importStar || /* @__PURE__ */ (function() {
      var ownKeys = function(o2) {
        ownKeys = Object.getOwnPropertyNames || function(o3) {
          var ar = [];
          for (var k in o3) if (Object.prototype.hasOwnProperty.call(o3, k)) ar[ar.length] = k;
          return ar;
        };
        return ownKeys(o2);
      };
      return function(mod) {
        if (mod && mod.__esModule) return mod;
        var result = {};
        if (mod != null) {
          for (var k = ownKeys(mod), i2 = 0; i2 < k.length; i2++) if (k[i2] !== "default") __createBinding(result, mod, k[i2]);
        }
        __setModuleDefault(result, mod);
        return result;
      };
    })();
    var __exportStar = exports2 && exports2.__exportStar || function(m2, exports3) {
      for (var p2 in m2) if (p2 !== "default" && !Object.prototype.hasOwnProperty.call(exports3, p2)) __createBinding(exports3, m2, p2);
    };
    var __importDefault = exports2 && exports2.__importDefault || function(mod) {
      return mod && mod.__esModule ? mod : { "default": mod };
    };
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.StreamMessageWriter = exports2.StreamMessageReader = exports2.SocketMessageWriter = exports2.SocketMessageReader = exports2.PortMessageWriter = exports2.PortMessageReader = exports2.IPCMessageWriter = exports2.IPCMessageReader = void 0;
    exports2.generateRandomPipeName = generateRandomPipeName2;
    exports2.createClientPipeTransport = createClientPipeTransport2;
    exports2.createServerPipeTransport = createServerPipeTransport;
    exports2.createClientSocketTransport = createClientSocketTransport2;
    exports2.createServerSocketTransport = createServerSocketTransport;
    exports2.createMessageConnection = createMessageConnection;
    var ril_1 = __importDefault(require_ril());
    ril_1.default.install();
    var path4 = __importStar(require("path"));
    var os2 = __importStar(require("os"));
    var fs2 = __importStar(require("fs"));
    var crypto_1 = require("crypto");
    var net_1 = require("net");
    var api_1 = require_api2();
    __exportStar(require_api2(), exports2);
    var IPCMessageReader2 = class extends api_1.AbstractMessageReader {
      process;
      constructor(process2) {
        super();
        this.process = process2;
        const eventEmitter = this.process;
        eventEmitter.on("error", (error) => this.fireError(error));
        eventEmitter.on("close", () => this.fireClose());
      }
      listen(callback) {
        this.process.on("message", callback);
        return api_1.Disposable.create(() => this.process.off("message", callback));
      }
    };
    exports2.IPCMessageReader = IPCMessageReader2;
    var IPCMessageWriter2 = class extends api_1.AbstractMessageWriter {
      process;
      errorCount;
      constructor(process2) {
        super();
        this.process = process2;
        this.errorCount = 0;
        const eventEmitter = this.process;
        eventEmitter.on("error", (error) => this.fireError(error));
        eventEmitter.on("close", () => this.fireClose());
      }
      write(msg) {
        try {
          if (typeof this.process.send === "function") {
            this.process.send(msg, void 0, void 0, (error) => {
              if (error) {
                this.errorCount++;
                this.handleError(error, msg);
              } else {
                this.errorCount = 0;
              }
            });
          }
          return Promise.resolve();
        } catch (error) {
          this.handleError(error, msg);
          return Promise.reject(error);
        }
      }
      handleError(error, msg) {
        this.errorCount++;
        this.fireError(error, msg, this.errorCount);
      }
      end() {
      }
    };
    exports2.IPCMessageWriter = IPCMessageWriter2;
    var PortMessageReader = class extends api_1.AbstractMessageReader {
      onData;
      constructor(port) {
        super();
        this.onData = new api_1.Emitter();
        port.on("close", () => this.fireClose());
        port.on("error", (error) => this.fireError(error));
        port.on("message", (message) => {
          this.onData.fire(message);
        });
      }
      listen(callback) {
        return this.onData.event(callback);
      }
    };
    exports2.PortMessageReader = PortMessageReader;
    var PortMessageWriter = class extends api_1.AbstractMessageWriter {
      port;
      errorCount;
      constructor(port) {
        super();
        this.port = port;
        this.errorCount = 0;
        port.on("close", () => this.fireClose());
        port.on("error", (error) => this.fireError(error));
      }
      write(msg) {
        try {
          this.port.postMessage(msg);
          return Promise.resolve();
        } catch (error) {
          this.handleError(error, msg);
          return Promise.reject(error);
        }
      }
      handleError(error, msg) {
        this.errorCount++;
        this.fireError(error, msg, this.errorCount);
      }
      end() {
      }
    };
    exports2.PortMessageWriter = PortMessageWriter;
    var SocketMessageReader2 = class extends api_1.ReadableStreamMessageReader {
      constructor(socket, encoding2 = "utf-8") {
        super((0, ril_1.default)().stream.asReadableStream(socket), encoding2);
      }
    };
    exports2.SocketMessageReader = SocketMessageReader2;
    var SocketMessageWriter2 = class extends api_1.WriteableStreamMessageWriter {
      socket;
      constructor(socket, options3) {
        super((0, ril_1.default)().stream.asWritableStream(socket), options3);
        this.socket = socket;
      }
      dispose() {
        super.dispose();
        this.socket.destroy();
      }
    };
    exports2.SocketMessageWriter = SocketMessageWriter2;
    var StreamMessageReader2 = class extends api_1.ReadableStreamMessageReader {
      constructor(readable, encoding2) {
        super((0, ril_1.default)().stream.asReadableStream(readable), encoding2);
      }
    };
    exports2.StreamMessageReader = StreamMessageReader2;
    var StreamMessageWriter2 = class extends api_1.WriteableStreamMessageWriter {
      constructor(writable, options3) {
        super((0, ril_1.default)().stream.asWritableStream(writable), options3);
      }
    };
    exports2.StreamMessageWriter = StreamMessageWriter2;
    var XDG_RUNTIME_DIR = process.env["XDG_RUNTIME_DIR"];
    var safeIpcPathLengths = /* @__PURE__ */ new Map([
      ["linux", 107],
      ["darwin", 102]
    ]);
    function generateRandomPipeName2() {
      if (process.platform === "win32") {
        return `\\\\.\\pipe\\lsp-${(0, crypto_1.randomBytes)(16).toString("hex")}-sock`;
      }
      let randomLength = 32;
      const fixedLength = "/lsp-.sock".length;
      const tmpDir = fs2.realpathSync(XDG_RUNTIME_DIR ?? os2.tmpdir());
      const limit = safeIpcPathLengths.get(process.platform);
      if (limit !== void 0) {
        randomLength = Math.min(limit - tmpDir.length - fixedLength, randomLength);
      }
      if (randomLength < 16) {
        throw new Error(`Unable to generate a random pipe name with ${randomLength} characters.`);
      }
      const randomSuffix = (0, crypto_1.randomBytes)(Math.floor(randomLength / 2)).toString("hex");
      return path4.join(tmpDir, `lsp-${randomSuffix}.sock`);
    }
    function createClientPipeTransport2(pipeName, encoding2 = "utf-8") {
      let connectResolve;
      const connected = new Promise((resolve, _reject) => {
        connectResolve = resolve;
      });
      return new Promise((resolve, reject) => {
        const server = (0, net_1.createServer)((socket) => {
          server.close();
          connectResolve([
            new SocketMessageReader2(socket, encoding2),
            new SocketMessageWriter2(socket, encoding2)
          ]);
        });
        server.on("error", reject);
        server.listen(pipeName, () => {
          server.removeListener("error", reject);
          resolve({
            onConnected: () => {
              return connected;
            },
            close: () => {
              server.close();
            }
          });
        });
      });
    }
    function createServerPipeTransport(pipeName, encoding2 = "utf-8") {
      const socket = (0, net_1.createConnection)(pipeName);
      return [
        new SocketMessageReader2(socket, encoding2),
        new SocketMessageWriter2(socket, encoding2)
      ];
    }
    function createClientSocketTransport2(port, encoding2 = "utf-8") {
      let connectResolve;
      const connected = new Promise((resolve, _reject) => {
        connectResolve = resolve;
      });
      return new Promise((resolve, reject) => {
        const server = (0, net_1.createServer)((socket) => {
          server.close();
          connectResolve([
            new SocketMessageReader2(socket, encoding2),
            new SocketMessageWriter2(socket, encoding2)
          ]);
        });
        server.on("error", reject);
        server.listen(port, "127.0.0.1", () => {
          server.removeListener("error", reject);
          const address = server.address();
          if (address === null || typeof address === "string") {
            reject(new Error(`Unexpected server address: ${address}`));
            return;
          }
          const boundPort = address.port;
          resolve({
            port: () => boundPort,
            onConnected: () => {
              return connected;
            },
            close: () => {
              server.close();
            }
          });
        });
      });
    }
    function createServerSocketTransport(port, encoding2 = "utf-8") {
      const socket = (0, net_1.createConnection)(port, "127.0.0.1");
      return [
        new SocketMessageReader2(socket, encoding2),
        new SocketMessageWriter2(socket, encoding2)
      ];
    }
    function isReadableStream(value) {
      const candidate = value;
      return candidate.read !== void 0 && candidate.addListener !== void 0;
    }
    function isWritableStream(value) {
      const candidate = value;
      return candidate.write !== void 0 && candidate.addListener !== void 0;
    }
    function createMessageConnection(input, output, logger75, options3) {
      if (!logger75) {
        logger75 = api_1.NullLogger;
      }
      const reader = isReadableStream(input) ? new StreamMessageReader2(input) : input;
      const writer = isWritableStream(output) ? new StreamMessageWriter2(output) : output;
      if (api_1.ConnectionStrategy.is(options3)) {
        options3 = { connectionStrategy: options3 };
      }
      return (0, api_1.createMessageConnection)(reader, writer, logger75, options3);
    }
  }
});

// node_modules/vscode-languageserver-protocol/lib/common/messages.js
var require_messages2 = __commonJS({
  "node_modules/vscode-languageserver-protocol/lib/common/messages.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.CM = exports2.ProtocolNotificationType = exports2.ProtocolNotificationType0 = exports2.ProtocolRequestType = exports2.ProtocolRequestType0 = exports2.RegistrationType = exports2.MessageDirection = void 0;
    var vscode_jsonrpc_1 = require_api2();
    var MessageDirection;
    (function(MessageDirection2) {
      MessageDirection2["clientToServer"] = "clientToServer";
      MessageDirection2["serverToClient"] = "serverToClient";
      MessageDirection2["both"] = "both";
    })(MessageDirection || (exports2.MessageDirection = MessageDirection = {}));
    var RegistrationType = class {
      /**
       * Clients must not use this property. It is here to ensure correct typing.
       */
      ____;
      method;
      constructor(method) {
        this.method = method;
      }
    };
    exports2.RegistrationType = RegistrationType;
    var ProtocolRequestType03 = class extends vscode_jsonrpc_1.RequestType0 {
      /**
       * Clients must not use these properties. They are here to ensure correct typing.
       * in TypeScript
       */
      __;
      ___;
      ____;
      _pr;
      constructor(method) {
        super(method);
      }
    };
    exports2.ProtocolRequestType0 = ProtocolRequestType03;
    var ProtocolRequestType3 = class extends vscode_jsonrpc_1.RequestType {
      /**
       * Clients must not use this property. It is here to ensure correct typing.
       */
      __;
      ___;
      ____;
      _pr;
      constructor(method) {
        super(method, vscode_jsonrpc_1.ParameterStructures.byName);
      }
    };
    exports2.ProtocolRequestType = ProtocolRequestType3;
    var ProtocolNotificationType03 = class extends vscode_jsonrpc_1.NotificationType0 {
      /**
       * Clients must not use this property. It is here to ensure correct typing.
       */
      ___;
      ____;
      constructor(method) {
        super(method);
      }
    };
    exports2.ProtocolNotificationType0 = ProtocolNotificationType03;
    var ProtocolNotificationType3 = class extends vscode_jsonrpc_1.NotificationType {
      /**
       * Clients must not use this property. It is here to ensure correct typing.
       */
      ___;
      ____;
      constructor(method) {
        super(method, vscode_jsonrpc_1.ParameterStructures.byName);
      }
    };
    exports2.ProtocolNotificationType = ProtocolNotificationType3;
    var CM;
    (function(CM2) {
      function create2(client, server) {
        return { client, server };
      }
      CM2.create = create2;
    })(CM || (exports2.CM = CM = {}));
  }
});

// node_modules/vscode-languageserver-protocol/lib/common/utils/is.js
var require_is2 = __commonJS({
  "node_modules/vscode-languageserver-protocol/lib/common/utils/is.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.boolean = boolean2;
    exports2.string = string2;
    exports2.number = number2;
    exports2.error = error;
    exports2.func = func2;
    exports2.array = array;
    exports2.stringArray = stringArray;
    exports2.typedArray = typedArray2;
    exports2.objectLiteral = objectLiteral2;
    function boolean2(value) {
      return value === true || value === false;
    }
    function string2(value) {
      return typeof value === "string" || value instanceof String;
    }
    function number2(value) {
      return typeof value === "number" || value instanceof Number;
    }
    function error(value) {
      return value instanceof Error;
    }
    function func2(value) {
      return typeof value === "function";
    }
    function array(value) {
      return Array.isArray(value);
    }
    function stringArray(value) {
      return array(value) && value.every((elem) => string2(elem));
    }
    function typedArray2(value, check) {
      return Array.isArray(value) && value.every(check);
    }
    function objectLiteral2(value) {
      return value !== null && typeof value === "object";
    }
  }
});

// node_modules/vscode-languageserver-protocol/lib/common/protocol.implementation.js
var require_protocol_implementation = __commonJS({
  "node_modules/vscode-languageserver-protocol/lib/common/protocol.implementation.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.ImplementationRequest = void 0;
    var messages_1 = require_messages2();
    var ImplementationRequest3;
    (function(ImplementationRequest4) {
      ImplementationRequest4.method = "textDocument/implementation";
      ImplementationRequest4.messageDirection = messages_1.MessageDirection.clientToServer;
      ImplementationRequest4.type = new messages_1.ProtocolRequestType(ImplementationRequest4.method);
      ImplementationRequest4.capabilities = messages_1.CM.create("textDocument.implementation", "implementationProvider");
    })(ImplementationRequest3 || (exports2.ImplementationRequest = ImplementationRequest3 = {}));
  }
});

// node_modules/vscode-languageserver-protocol/lib/common/protocol.typeDefinition.js
var require_protocol_typeDefinition = __commonJS({
  "node_modules/vscode-languageserver-protocol/lib/common/protocol.typeDefinition.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.TypeDefinitionRequest = void 0;
    var messages_1 = require_messages2();
    var TypeDefinitionRequest3;
    (function(TypeDefinitionRequest4) {
      TypeDefinitionRequest4.method = "textDocument/typeDefinition";
      TypeDefinitionRequest4.messageDirection = messages_1.MessageDirection.clientToServer;
      TypeDefinitionRequest4.type = new messages_1.ProtocolRequestType(TypeDefinitionRequest4.method);
      TypeDefinitionRequest4.capabilities = messages_1.CM.create("textDocument.typeDefinition", "typeDefinitionProvider");
    })(TypeDefinitionRequest3 || (exports2.TypeDefinitionRequest = TypeDefinitionRequest3 = {}));
  }
});

// node_modules/vscode-languageserver-protocol/lib/common/protocol.workspaceFolder.js
var require_protocol_workspaceFolder = __commonJS({
  "node_modules/vscode-languageserver-protocol/lib/common/protocol.workspaceFolder.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.DidChangeWorkspaceFoldersNotification = exports2.WorkspaceFoldersRequest = void 0;
    var messages_1 = require_messages2();
    var WorkspaceFoldersRequest2;
    (function(WorkspaceFoldersRequest3) {
      WorkspaceFoldersRequest3.method = "workspace/workspaceFolders";
      WorkspaceFoldersRequest3.messageDirection = messages_1.MessageDirection.serverToClient;
      WorkspaceFoldersRequest3.type = new messages_1.ProtocolRequestType0(WorkspaceFoldersRequest3.method);
      WorkspaceFoldersRequest3.capabilities = messages_1.CM.create("workspace.workspaceFolders", "workspace.workspaceFolders");
    })(WorkspaceFoldersRequest2 || (exports2.WorkspaceFoldersRequest = WorkspaceFoldersRequest2 = {}));
    var DidChangeWorkspaceFoldersNotification3;
    (function(DidChangeWorkspaceFoldersNotification4) {
      DidChangeWorkspaceFoldersNotification4.method = "workspace/didChangeWorkspaceFolders";
      DidChangeWorkspaceFoldersNotification4.messageDirection = messages_1.MessageDirection.clientToServer;
      DidChangeWorkspaceFoldersNotification4.type = new messages_1.ProtocolNotificationType(DidChangeWorkspaceFoldersNotification4.method);
      DidChangeWorkspaceFoldersNotification4.capabilities = messages_1.CM.create(void 0, "workspace.workspaceFolders.changeNotifications");
    })(DidChangeWorkspaceFoldersNotification3 || (exports2.DidChangeWorkspaceFoldersNotification = DidChangeWorkspaceFoldersNotification3 = {}));
  }
});

// node_modules/vscode-languageserver-protocol/lib/common/protocol.configuration.js
var require_protocol_configuration = __commonJS({
  "node_modules/vscode-languageserver-protocol/lib/common/protocol.configuration.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.ConfigurationRequest = void 0;
    var messages_1 = require_messages2();
    var ConfigurationRequest3;
    (function(ConfigurationRequest4) {
      ConfigurationRequest4.method = "workspace/configuration";
      ConfigurationRequest4.messageDirection = messages_1.MessageDirection.serverToClient;
      ConfigurationRequest4.type = new messages_1.ProtocolRequestType(ConfigurationRequest4.method);
      ConfigurationRequest4.capabilities = messages_1.CM.create("workspace.configuration", void 0);
    })(ConfigurationRequest3 || (exports2.ConfigurationRequest = ConfigurationRequest3 = {}));
  }
});

// node_modules/vscode-languageserver-protocol/lib/common/protocol.colorProvider.js
var require_protocol_colorProvider = __commonJS({
  "node_modules/vscode-languageserver-protocol/lib/common/protocol.colorProvider.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.ColorPresentationRequest = exports2.DocumentColorRequest = void 0;
    var messages_1 = require_messages2();
    var DocumentColorRequest3;
    (function(DocumentColorRequest4) {
      DocumentColorRequest4.method = "textDocument/documentColor";
      DocumentColorRequest4.messageDirection = messages_1.MessageDirection.clientToServer;
      DocumentColorRequest4.type = new messages_1.ProtocolRequestType(DocumentColorRequest4.method);
      DocumentColorRequest4.capabilities = messages_1.CM.create("textDocument.colorProvider", "colorProvider");
    })(DocumentColorRequest3 || (exports2.DocumentColorRequest = DocumentColorRequest3 = {}));
    var ColorPresentationRequest2;
    (function(ColorPresentationRequest3) {
      ColorPresentationRequest3.method = "textDocument/colorPresentation";
      ColorPresentationRequest3.messageDirection = messages_1.MessageDirection.clientToServer;
      ColorPresentationRequest3.type = new messages_1.ProtocolRequestType(ColorPresentationRequest3.method);
      ColorPresentationRequest3.capabilities = messages_1.CM.create("textDocument.colorProvider", "colorProvider");
    })(ColorPresentationRequest2 || (exports2.ColorPresentationRequest = ColorPresentationRequest2 = {}));
  }
});

// node_modules/vscode-languageserver-protocol/lib/common/protocol.foldingRange.js
var require_protocol_foldingRange = __commonJS({
  "node_modules/vscode-languageserver-protocol/lib/common/protocol.foldingRange.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.FoldingRangeRefreshRequest = exports2.FoldingRangeRequest = void 0;
    var messages_1 = require_messages2();
    var FoldingRangeRequest3;
    (function(FoldingRangeRequest4) {
      FoldingRangeRequest4.method = "textDocument/foldingRange";
      FoldingRangeRequest4.messageDirection = messages_1.MessageDirection.clientToServer;
      FoldingRangeRequest4.type = new messages_1.ProtocolRequestType(FoldingRangeRequest4.method);
      FoldingRangeRequest4.capabilities = messages_1.CM.create("textDocument.foldingRange", "foldingRangeProvider");
    })(FoldingRangeRequest3 || (exports2.FoldingRangeRequest = FoldingRangeRequest3 = {}));
    var FoldingRangeRefreshRequest2;
    (function(FoldingRangeRefreshRequest3) {
      FoldingRangeRefreshRequest3.method = `workspace/foldingRange/refresh`;
      FoldingRangeRefreshRequest3.messageDirection = messages_1.MessageDirection.serverToClient;
      FoldingRangeRefreshRequest3.type = new messages_1.ProtocolRequestType0(FoldingRangeRefreshRequest3.method);
      FoldingRangeRefreshRequest3.capabilities = messages_1.CM.create("workspace.foldingRange.refreshSupport", void 0);
    })(FoldingRangeRefreshRequest2 || (exports2.FoldingRangeRefreshRequest = FoldingRangeRefreshRequest2 = {}));
  }
});

// node_modules/vscode-languageserver-protocol/lib/common/protocol.declaration.js
var require_protocol_declaration = __commonJS({
  "node_modules/vscode-languageserver-protocol/lib/common/protocol.declaration.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.DeclarationRequest = void 0;
    var messages_1 = require_messages2();
    var DeclarationRequest3;
    (function(DeclarationRequest4) {
      DeclarationRequest4.method = "textDocument/declaration";
      DeclarationRequest4.messageDirection = messages_1.MessageDirection.clientToServer;
      DeclarationRequest4.type = new messages_1.ProtocolRequestType(DeclarationRequest4.method);
      DeclarationRequest4.capabilities = messages_1.CM.create("textDocument.declaration", "declarationProvider");
    })(DeclarationRequest3 || (exports2.DeclarationRequest = DeclarationRequest3 = {}));
  }
});

// node_modules/vscode-languageserver-protocol/lib/common/protocol.selectionRange.js
var require_protocol_selectionRange = __commonJS({
  "node_modules/vscode-languageserver-protocol/lib/common/protocol.selectionRange.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.SelectionRangeRequest = void 0;
    var messages_1 = require_messages2();
    var SelectionRangeRequest3;
    (function(SelectionRangeRequest4) {
      SelectionRangeRequest4.method = "textDocument/selectionRange";
      SelectionRangeRequest4.messageDirection = messages_1.MessageDirection.clientToServer;
      SelectionRangeRequest4.type = new messages_1.ProtocolRequestType(SelectionRangeRequest4.method);
      SelectionRangeRequest4.capabilities = messages_1.CM.create("textDocument.selectionRange", "selectionRangeProvider");
    })(SelectionRangeRequest3 || (exports2.SelectionRangeRequest = SelectionRangeRequest3 = {}));
  }
});

// node_modules/vscode-languageserver-protocol/lib/common/protocol.progress.js
var require_protocol_progress = __commonJS({
  "node_modules/vscode-languageserver-protocol/lib/common/protocol.progress.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.WorkDoneProgressCancelNotification = exports2.WorkDoneProgressCreateRequest = exports2.WorkDoneProgress = void 0;
    var vscode_jsonrpc_1 = require_api2();
    var messages_1 = require_messages2();
    var WorkDoneProgress2;
    (function(WorkDoneProgress3) {
      WorkDoneProgress3.type = new vscode_jsonrpc_1.ProgressType();
      function is(value) {
        return value === WorkDoneProgress3.type;
      }
      WorkDoneProgress3.is = is;
    })(WorkDoneProgress2 || (exports2.WorkDoneProgress = WorkDoneProgress2 = {}));
    var WorkDoneProgressCreateRequest3;
    (function(WorkDoneProgressCreateRequest4) {
      WorkDoneProgressCreateRequest4.method = "window/workDoneProgress/create";
      WorkDoneProgressCreateRequest4.messageDirection = messages_1.MessageDirection.serverToClient;
      WorkDoneProgressCreateRequest4.type = new messages_1.ProtocolRequestType(WorkDoneProgressCreateRequest4.method);
      WorkDoneProgressCreateRequest4.capabilities = messages_1.CM.create("window.workDoneProgress", void 0);
    })(WorkDoneProgressCreateRequest3 || (exports2.WorkDoneProgressCreateRequest = WorkDoneProgressCreateRequest3 = {}));
    var WorkDoneProgressCancelNotification2;
    (function(WorkDoneProgressCancelNotification3) {
      WorkDoneProgressCancelNotification3.method = "window/workDoneProgress/cancel";
      WorkDoneProgressCancelNotification3.messageDirection = messages_1.MessageDirection.clientToServer;
      WorkDoneProgressCancelNotification3.type = new messages_1.ProtocolNotificationType(WorkDoneProgressCancelNotification3.method);
    })(WorkDoneProgressCancelNotification2 || (exports2.WorkDoneProgressCancelNotification = WorkDoneProgressCancelNotification2 = {}));
  }
});

// node_modules/vscode-languageserver-protocol/lib/common/protocol.callHierarchy.js
var require_protocol_callHierarchy = __commonJS({
  "node_modules/vscode-languageserver-protocol/lib/common/protocol.callHierarchy.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.CallHierarchyOutgoingCallsRequest = exports2.CallHierarchyIncomingCallsRequest = exports2.CallHierarchyPrepareRequest = void 0;
    var messages_1 = require_messages2();
    var CallHierarchyPrepareRequest3;
    (function(CallHierarchyPrepareRequest4) {
      CallHierarchyPrepareRequest4.method = "textDocument/prepareCallHierarchy";
      CallHierarchyPrepareRequest4.messageDirection = messages_1.MessageDirection.clientToServer;
      CallHierarchyPrepareRequest4.type = new messages_1.ProtocolRequestType(CallHierarchyPrepareRequest4.method);
      CallHierarchyPrepareRequest4.capabilities = messages_1.CM.create("textDocument.callHierarchy", "callHierarchyProvider");
    })(CallHierarchyPrepareRequest3 || (exports2.CallHierarchyPrepareRequest = CallHierarchyPrepareRequest3 = {}));
    var CallHierarchyIncomingCallsRequest2;
    (function(CallHierarchyIncomingCallsRequest3) {
      CallHierarchyIncomingCallsRequest3.method = "callHierarchy/incomingCalls";
      CallHierarchyIncomingCallsRequest3.messageDirection = messages_1.MessageDirection.clientToServer;
      CallHierarchyIncomingCallsRequest3.type = new messages_1.ProtocolRequestType(CallHierarchyIncomingCallsRequest3.method);
      CallHierarchyIncomingCallsRequest3.capabilities = messages_1.CM.create("textDocument.callHierarchy", "callHierarchyProvider");
    })(CallHierarchyIncomingCallsRequest2 || (exports2.CallHierarchyIncomingCallsRequest = CallHierarchyIncomingCallsRequest2 = {}));
    var CallHierarchyOutgoingCallsRequest2;
    (function(CallHierarchyOutgoingCallsRequest3) {
      CallHierarchyOutgoingCallsRequest3.method = "callHierarchy/outgoingCalls";
      CallHierarchyOutgoingCallsRequest3.messageDirection = messages_1.MessageDirection.clientToServer;
      CallHierarchyOutgoingCallsRequest3.type = new messages_1.ProtocolRequestType(CallHierarchyOutgoingCallsRequest3.method);
      CallHierarchyOutgoingCallsRequest3.capabilities = messages_1.CM.create("textDocument.callHierarchy", "callHierarchyProvider");
    })(CallHierarchyOutgoingCallsRequest2 || (exports2.CallHierarchyOutgoingCallsRequest = CallHierarchyOutgoingCallsRequest2 = {}));
  }
});

// node_modules/vscode-languageserver-protocol/lib/common/protocol.semanticTokens.js
var require_protocol_semanticTokens = __commonJS({
  "node_modules/vscode-languageserver-protocol/lib/common/protocol.semanticTokens.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.SemanticTokensRefreshRequest = exports2.SemanticTokensRangeRequest = exports2.SemanticTokensDeltaRequest = exports2.SemanticTokensRequest = exports2.SemanticTokensRegistrationType = exports2.TokenFormat = void 0;
    var messages_1 = require_messages2();
    var TokenFormat2;
    (function(TokenFormat3) {
      TokenFormat3.Relative = "relative";
    })(TokenFormat2 || (exports2.TokenFormat = TokenFormat2 = {}));
    var SemanticTokensRegistrationType3;
    (function(SemanticTokensRegistrationType4) {
      SemanticTokensRegistrationType4.method = "textDocument/semanticTokens";
      SemanticTokensRegistrationType4.type = new messages_1.RegistrationType(SemanticTokensRegistrationType4.method);
    })(SemanticTokensRegistrationType3 || (exports2.SemanticTokensRegistrationType = SemanticTokensRegistrationType3 = {}));
    var SemanticTokensRequest2;
    (function(SemanticTokensRequest3) {
      SemanticTokensRequest3.method = "textDocument/semanticTokens/full";
      SemanticTokensRequest3.messageDirection = messages_1.MessageDirection.clientToServer;
      SemanticTokensRequest3.type = new messages_1.ProtocolRequestType(SemanticTokensRequest3.method);
      SemanticTokensRequest3.registrationMethod = SemanticTokensRegistrationType3.method;
      SemanticTokensRequest3.capabilities = messages_1.CM.create("textDocument.semanticTokens", "semanticTokensProvider");
    })(SemanticTokensRequest2 || (exports2.SemanticTokensRequest = SemanticTokensRequest2 = {}));
    var SemanticTokensDeltaRequest2;
    (function(SemanticTokensDeltaRequest3) {
      SemanticTokensDeltaRequest3.method = "textDocument/semanticTokens/full/delta";
      SemanticTokensDeltaRequest3.messageDirection = messages_1.MessageDirection.clientToServer;
      SemanticTokensDeltaRequest3.type = new messages_1.ProtocolRequestType(SemanticTokensDeltaRequest3.method);
      SemanticTokensDeltaRequest3.registrationMethod = SemanticTokensRegistrationType3.method;
      SemanticTokensDeltaRequest3.capabilities = messages_1.CM.create("textDocument.semanticTokens.requests.full.delta", "semanticTokensProvider.full.delta");
    })(SemanticTokensDeltaRequest2 || (exports2.SemanticTokensDeltaRequest = SemanticTokensDeltaRequest2 = {}));
    var SemanticTokensRangeRequest2;
    (function(SemanticTokensRangeRequest3) {
      SemanticTokensRangeRequest3.method = "textDocument/semanticTokens/range";
      SemanticTokensRangeRequest3.messageDirection = messages_1.MessageDirection.clientToServer;
      SemanticTokensRangeRequest3.type = new messages_1.ProtocolRequestType(SemanticTokensRangeRequest3.method);
      SemanticTokensRangeRequest3.registrationMethod = SemanticTokensRegistrationType3.method;
      SemanticTokensRangeRequest3.capabilities = messages_1.CM.create("textDocument.semanticTokens.requests.range", "semanticTokensProvider.range");
    })(SemanticTokensRangeRequest2 || (exports2.SemanticTokensRangeRequest = SemanticTokensRangeRequest2 = {}));
    var SemanticTokensRefreshRequest2;
    (function(SemanticTokensRefreshRequest3) {
      SemanticTokensRefreshRequest3.method = `workspace/semanticTokens/refresh`;
      SemanticTokensRefreshRequest3.messageDirection = messages_1.MessageDirection.serverToClient;
      SemanticTokensRefreshRequest3.type = new messages_1.ProtocolRequestType0(SemanticTokensRefreshRequest3.method);
      SemanticTokensRefreshRequest3.capabilities = messages_1.CM.create("workspace.semanticTokens.refreshSupport", void 0);
    })(SemanticTokensRefreshRequest2 || (exports2.SemanticTokensRefreshRequest = SemanticTokensRefreshRequest2 = {}));
  }
});

// node_modules/vscode-languageserver-protocol/lib/common/protocol.showDocument.js
var require_protocol_showDocument = __commonJS({
  "node_modules/vscode-languageserver-protocol/lib/common/protocol.showDocument.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.ShowDocumentRequest = void 0;
    var messages_1 = require_messages2();
    var ShowDocumentRequest2;
    (function(ShowDocumentRequest3) {
      ShowDocumentRequest3.method = "window/showDocument";
      ShowDocumentRequest3.messageDirection = messages_1.MessageDirection.serverToClient;
      ShowDocumentRequest3.type = new messages_1.ProtocolRequestType(ShowDocumentRequest3.method);
      ShowDocumentRequest3.capabilities = messages_1.CM.create("window.showDocument.support", void 0);
    })(ShowDocumentRequest2 || (exports2.ShowDocumentRequest = ShowDocumentRequest2 = {}));
  }
});

// node_modules/vscode-languageserver-protocol/lib/common/protocol.linkedEditingRange.js
var require_protocol_linkedEditingRange = __commonJS({
  "node_modules/vscode-languageserver-protocol/lib/common/protocol.linkedEditingRange.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.LinkedEditingRangeRequest = void 0;
    var messages_1 = require_messages2();
    var LinkedEditingRangeRequest3;
    (function(LinkedEditingRangeRequest4) {
      LinkedEditingRangeRequest4.method = "textDocument/linkedEditingRange";
      LinkedEditingRangeRequest4.messageDirection = messages_1.MessageDirection.clientToServer;
      LinkedEditingRangeRequest4.type = new messages_1.ProtocolRequestType(LinkedEditingRangeRequest4.method);
      LinkedEditingRangeRequest4.capabilities = messages_1.CM.create("textDocument.linkedEditingRange", "linkedEditingRangeProvider");
    })(LinkedEditingRangeRequest3 || (exports2.LinkedEditingRangeRequest = LinkedEditingRangeRequest3 = {}));
  }
});

// node_modules/vscode-languageserver-protocol/lib/common/protocol.fileOperations.js
var require_protocol_fileOperations = __commonJS({
  "node_modules/vscode-languageserver-protocol/lib/common/protocol.fileOperations.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.WillDeleteFilesRequest = exports2.DidDeleteFilesNotification = exports2.DidRenameFilesNotification = exports2.WillRenameFilesRequest = exports2.DidCreateFilesNotification = exports2.WillCreateFilesRequest = exports2.FileOperationPatternKind = void 0;
    var messages_1 = require_messages2();
    var FileOperationPatternKind2;
    (function(FileOperationPatternKind3) {
      FileOperationPatternKind3.file = "file";
      FileOperationPatternKind3.folder = "folder";
    })(FileOperationPatternKind2 || (exports2.FileOperationPatternKind = FileOperationPatternKind2 = {}));
    var WillCreateFilesRequest3;
    (function(WillCreateFilesRequest4) {
      WillCreateFilesRequest4.method = "workspace/willCreateFiles";
      WillCreateFilesRequest4.messageDirection = messages_1.MessageDirection.clientToServer;
      WillCreateFilesRequest4.type = new messages_1.ProtocolRequestType(WillCreateFilesRequest4.method);
      WillCreateFilesRequest4.capabilities = messages_1.CM.create("workspace.fileOperations.willCreate", "workspace.fileOperations.willCreate");
    })(WillCreateFilesRequest3 || (exports2.WillCreateFilesRequest = WillCreateFilesRequest3 = {}));
    var DidCreateFilesNotification3;
    (function(DidCreateFilesNotification4) {
      DidCreateFilesNotification4.method = "workspace/didCreateFiles";
      DidCreateFilesNotification4.messageDirection = messages_1.MessageDirection.clientToServer;
      DidCreateFilesNotification4.type = new messages_1.ProtocolNotificationType(DidCreateFilesNotification4.method);
      DidCreateFilesNotification4.capabilities = messages_1.CM.create("workspace.fileOperations.didCreate", "workspace.fileOperations.didCreate");
    })(DidCreateFilesNotification3 || (exports2.DidCreateFilesNotification = DidCreateFilesNotification3 = {}));
    var WillRenameFilesRequest3;
    (function(WillRenameFilesRequest4) {
      WillRenameFilesRequest4.method = "workspace/willRenameFiles";
      WillRenameFilesRequest4.messageDirection = messages_1.MessageDirection.clientToServer;
      WillRenameFilesRequest4.type = new messages_1.ProtocolRequestType(WillRenameFilesRequest4.method);
      WillRenameFilesRequest4.capabilities = messages_1.CM.create("workspace.fileOperations.willRename", "workspace.fileOperations.willRename");
    })(WillRenameFilesRequest3 || (exports2.WillRenameFilesRequest = WillRenameFilesRequest3 = {}));
    var DidRenameFilesNotification3;
    (function(DidRenameFilesNotification4) {
      DidRenameFilesNotification4.method = "workspace/didRenameFiles";
      DidRenameFilesNotification4.messageDirection = messages_1.MessageDirection.clientToServer;
      DidRenameFilesNotification4.type = new messages_1.ProtocolNotificationType(DidRenameFilesNotification4.method);
      DidRenameFilesNotification4.capabilities = messages_1.CM.create("workspace.fileOperations.didRename", "workspace.fileOperations.didRename");
    })(DidRenameFilesNotification3 || (exports2.DidRenameFilesNotification = DidRenameFilesNotification3 = {}));
    var DidDeleteFilesNotification3;
    (function(DidDeleteFilesNotification4) {
      DidDeleteFilesNotification4.method = "workspace/didDeleteFiles";
      DidDeleteFilesNotification4.messageDirection = messages_1.MessageDirection.clientToServer;
      DidDeleteFilesNotification4.type = new messages_1.ProtocolNotificationType(DidDeleteFilesNotification4.method);
      DidDeleteFilesNotification4.capabilities = messages_1.CM.create("workspace.fileOperations.didDelete", "workspace.fileOperations.didDelete");
    })(DidDeleteFilesNotification3 || (exports2.DidDeleteFilesNotification = DidDeleteFilesNotification3 = {}));
    var WillDeleteFilesRequest3;
    (function(WillDeleteFilesRequest4) {
      WillDeleteFilesRequest4.method = "workspace/willDeleteFiles";
      WillDeleteFilesRequest4.messageDirection = messages_1.MessageDirection.clientToServer;
      WillDeleteFilesRequest4.type = new messages_1.ProtocolRequestType(WillDeleteFilesRequest4.method);
      WillDeleteFilesRequest4.capabilities = messages_1.CM.create("workspace.fileOperations.willDelete", "workspace.fileOperations.willDelete");
    })(WillDeleteFilesRequest3 || (exports2.WillDeleteFilesRequest = WillDeleteFilesRequest3 = {}));
  }
});

// node_modules/vscode-languageserver-protocol/lib/common/protocol.moniker.js
var require_protocol_moniker = __commonJS({
  "node_modules/vscode-languageserver-protocol/lib/common/protocol.moniker.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.MonikerRequest = exports2.MonikerKind = exports2.UniquenessLevel = void 0;
    var messages_1 = require_messages2();
    var UniquenessLevel2;
    (function(UniquenessLevel3) {
      UniquenessLevel3.document = "document";
      UniquenessLevel3.project = "project";
      UniquenessLevel3.group = "group";
      UniquenessLevel3.scheme = "scheme";
      UniquenessLevel3.global = "global";
    })(UniquenessLevel2 || (exports2.UniquenessLevel = UniquenessLevel2 = {}));
    var MonikerKind2;
    (function(MonikerKind3) {
      MonikerKind3.$import = "import";
      MonikerKind3.$export = "export";
      MonikerKind3.local = "local";
    })(MonikerKind2 || (exports2.MonikerKind = MonikerKind2 = {}));
    var MonikerRequest;
    (function(MonikerRequest2) {
      MonikerRequest2.method = "textDocument/moniker";
      MonikerRequest2.messageDirection = messages_1.MessageDirection.clientToServer;
      MonikerRequest2.type = new messages_1.ProtocolRequestType(MonikerRequest2.method);
      MonikerRequest2.capabilities = messages_1.CM.create("textDocument.moniker", "monikerProvider");
    })(MonikerRequest || (exports2.MonikerRequest = MonikerRequest = {}));
  }
});

// node_modules/vscode-languageserver-protocol/lib/common/protocol.typeHierarchy.js
var require_protocol_typeHierarchy = __commonJS({
  "node_modules/vscode-languageserver-protocol/lib/common/protocol.typeHierarchy.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.TypeHierarchySubtypesRequest = exports2.TypeHierarchySupertypesRequest = exports2.TypeHierarchyPrepareRequest = void 0;
    var messages_1 = require_messages2();
    var TypeHierarchyPrepareRequest3;
    (function(TypeHierarchyPrepareRequest4) {
      TypeHierarchyPrepareRequest4.method = "textDocument/prepareTypeHierarchy";
      TypeHierarchyPrepareRequest4.messageDirection = messages_1.MessageDirection.clientToServer;
      TypeHierarchyPrepareRequest4.type = new messages_1.ProtocolRequestType(TypeHierarchyPrepareRequest4.method);
      TypeHierarchyPrepareRequest4.capabilities = messages_1.CM.create("textDocument.typeHierarchy", "typeHierarchyProvider");
    })(TypeHierarchyPrepareRequest3 || (exports2.TypeHierarchyPrepareRequest = TypeHierarchyPrepareRequest3 = {}));
    var TypeHierarchySupertypesRequest2;
    (function(TypeHierarchySupertypesRequest3) {
      TypeHierarchySupertypesRequest3.method = "typeHierarchy/supertypes";
      TypeHierarchySupertypesRequest3.messageDirection = messages_1.MessageDirection.clientToServer;
      TypeHierarchySupertypesRequest3.type = new messages_1.ProtocolRequestType(TypeHierarchySupertypesRequest3.method);
    })(TypeHierarchySupertypesRequest2 || (exports2.TypeHierarchySupertypesRequest = TypeHierarchySupertypesRequest2 = {}));
    var TypeHierarchySubtypesRequest2;
    (function(TypeHierarchySubtypesRequest3) {
      TypeHierarchySubtypesRequest3.method = "typeHierarchy/subtypes";
      TypeHierarchySubtypesRequest3.messageDirection = messages_1.MessageDirection.clientToServer;
      TypeHierarchySubtypesRequest3.type = new messages_1.ProtocolRequestType(TypeHierarchySubtypesRequest3.method);
    })(TypeHierarchySubtypesRequest2 || (exports2.TypeHierarchySubtypesRequest = TypeHierarchySubtypesRequest2 = {}));
  }
});

// node_modules/vscode-languageserver-protocol/lib/common/protocol.inlineValue.js
var require_protocol_inlineValue = __commonJS({
  "node_modules/vscode-languageserver-protocol/lib/common/protocol.inlineValue.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.InlineValueRefreshRequest = exports2.InlineValueRequest = void 0;
    var messages_1 = require_messages2();
    var InlineValueRequest3;
    (function(InlineValueRequest4) {
      InlineValueRequest4.method = "textDocument/inlineValue";
      InlineValueRequest4.messageDirection = messages_1.MessageDirection.clientToServer;
      InlineValueRequest4.type = new messages_1.ProtocolRequestType(InlineValueRequest4.method);
      InlineValueRequest4.capabilities = messages_1.CM.create("textDocument.inlineValue", "inlineValueProvider");
    })(InlineValueRequest3 || (exports2.InlineValueRequest = InlineValueRequest3 = {}));
    var InlineValueRefreshRequest2;
    (function(InlineValueRefreshRequest3) {
      InlineValueRefreshRequest3.method = `workspace/inlineValue/refresh`;
      InlineValueRefreshRequest3.messageDirection = messages_1.MessageDirection.serverToClient;
      InlineValueRefreshRequest3.type = new messages_1.ProtocolRequestType0(InlineValueRefreshRequest3.method);
      InlineValueRefreshRequest3.capabilities = messages_1.CM.create("workspace.inlineValue.refreshSupport", void 0);
    })(InlineValueRefreshRequest2 || (exports2.InlineValueRefreshRequest = InlineValueRefreshRequest2 = {}));
  }
});

// node_modules/vscode-languageserver-protocol/lib/common/protocol.inlayHint.js
var require_protocol_inlayHint = __commonJS({
  "node_modules/vscode-languageserver-protocol/lib/common/protocol.inlayHint.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.InlayHintRefreshRequest = exports2.InlayHintResolveRequest = exports2.InlayHintRequest = void 0;
    var messages_1 = require_messages2();
    var InlayHintRequest2;
    (function(InlayHintRequest3) {
      InlayHintRequest3.method = "textDocument/inlayHint";
      InlayHintRequest3.messageDirection = messages_1.MessageDirection.clientToServer;
      InlayHintRequest3.type = new messages_1.ProtocolRequestType(InlayHintRequest3.method);
      InlayHintRequest3.capabilities = messages_1.CM.create("textDocument.inlayHint", "inlayHintProvider");
    })(InlayHintRequest2 || (exports2.InlayHintRequest = InlayHintRequest2 = {}));
    var InlayHintResolveRequest2;
    (function(InlayHintResolveRequest3) {
      InlayHintResolveRequest3.method = "inlayHint/resolve";
      InlayHintResolveRequest3.messageDirection = messages_1.MessageDirection.clientToServer;
      InlayHintResolveRequest3.type = new messages_1.ProtocolRequestType(InlayHintResolveRequest3.method);
      InlayHintResolveRequest3.capabilities = messages_1.CM.create("textDocument.inlayHint.resolveSupport", "inlayHintProvider.resolveProvider");
    })(InlayHintResolveRequest2 || (exports2.InlayHintResolveRequest = InlayHintResolveRequest2 = {}));
    var InlayHintRefreshRequest2;
    (function(InlayHintRefreshRequest3) {
      InlayHintRefreshRequest3.method = `workspace/inlayHint/refresh`;
      InlayHintRefreshRequest3.messageDirection = messages_1.MessageDirection.serverToClient;
      InlayHintRefreshRequest3.type = new messages_1.ProtocolRequestType0(InlayHintRefreshRequest3.method);
      InlayHintRefreshRequest3.capabilities = messages_1.CM.create("workspace.inlayHint.refreshSupport", void 0);
    })(InlayHintRefreshRequest2 || (exports2.InlayHintRefreshRequest = InlayHintRefreshRequest2 = {}));
  }
});

// node_modules/vscode-languageserver-protocol/lib/common/protocol.diagnostic.js
var require_protocol_diagnostic = __commonJS({
  "node_modules/vscode-languageserver-protocol/lib/common/protocol.diagnostic.js"(exports2) {
    "use strict";
    var __createBinding = exports2 && exports2.__createBinding || (Object.create ? (function(o2, m2, k, k2) {
      if (k2 === void 0) k2 = k;
      var desc = Object.getOwnPropertyDescriptor(m2, k);
      if (!desc || ("get" in desc ? !m2.__esModule : desc.writable || desc.configurable)) {
        desc = { enumerable: true, get: function() {
          return m2[k];
        } };
      }
      Object.defineProperty(o2, k2, desc);
    }) : (function(o2, m2, k, k2) {
      if (k2 === void 0) k2 = k;
      o2[k2] = m2[k];
    }));
    var __setModuleDefault = exports2 && exports2.__setModuleDefault || (Object.create ? (function(o2, v2) {
      Object.defineProperty(o2, "default", { enumerable: true, value: v2 });
    }) : function(o2, v2) {
      o2["default"] = v2;
    });
    var __importStar = exports2 && exports2.__importStar || /* @__PURE__ */ (function() {
      var ownKeys = function(o2) {
        ownKeys = Object.getOwnPropertyNames || function(o3) {
          var ar = [];
          for (var k in o3) if (Object.prototype.hasOwnProperty.call(o3, k)) ar[ar.length] = k;
          return ar;
        };
        return ownKeys(o2);
      };
      return function(mod) {
        if (mod && mod.__esModule) return mod;
        var result = {};
        if (mod != null) {
          for (var k = ownKeys(mod), i2 = 0; i2 < k.length; i2++) if (k[i2] !== "default") __createBinding(result, mod, k[i2]);
        }
        __setModuleDefault(result, mod);
        return result;
      };
    })();
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.DiagnosticRefreshRequest = exports2.WorkspaceDiagnosticRequest = exports2.DocumentDiagnosticRequest = exports2.DocumentDiagnosticReportKind = exports2.DiagnosticServerCancellationData = void 0;
    var vscode_jsonrpc_1 = require_api2();
    var Is2 = __importStar(require_is2());
    var messages_1 = require_messages2();
    var DiagnosticServerCancellationData2;
    (function(DiagnosticServerCancellationData3) {
      function is(value) {
        const candidate = value;
        return candidate && Is2.boolean(candidate.retriggerRequest);
      }
      DiagnosticServerCancellationData3.is = is;
    })(DiagnosticServerCancellationData2 || (exports2.DiagnosticServerCancellationData = DiagnosticServerCancellationData2 = {}));
    var DocumentDiagnosticReportKind2;
    (function(DocumentDiagnosticReportKind3) {
      DocumentDiagnosticReportKind3.Full = "full";
      DocumentDiagnosticReportKind3.Unchanged = "unchanged";
    })(DocumentDiagnosticReportKind2 || (exports2.DocumentDiagnosticReportKind = DocumentDiagnosticReportKind2 = {}));
    var DocumentDiagnosticRequest3;
    (function(DocumentDiagnosticRequest4) {
      DocumentDiagnosticRequest4.method = "textDocument/diagnostic";
      DocumentDiagnosticRequest4.messageDirection = messages_1.MessageDirection.clientToServer;
      DocumentDiagnosticRequest4.type = new messages_1.ProtocolRequestType(DocumentDiagnosticRequest4.method);
      DocumentDiagnosticRequest4.partialResult = new vscode_jsonrpc_1.ProgressType();
      DocumentDiagnosticRequest4.capabilities = messages_1.CM.create("textDocument.diagnostic", "diagnosticProvider");
    })(DocumentDiagnosticRequest3 || (exports2.DocumentDiagnosticRequest = DocumentDiagnosticRequest3 = {}));
    var WorkspaceDiagnosticRequest2;
    (function(WorkspaceDiagnosticRequest3) {
      WorkspaceDiagnosticRequest3.method = "workspace/diagnostic";
      WorkspaceDiagnosticRequest3.messageDirection = messages_1.MessageDirection.clientToServer;
      WorkspaceDiagnosticRequest3.type = new messages_1.ProtocolRequestType(WorkspaceDiagnosticRequest3.method);
      WorkspaceDiagnosticRequest3.partialResult = new vscode_jsonrpc_1.ProgressType();
      WorkspaceDiagnosticRequest3.capabilities = messages_1.CM.create("workspace.diagnostics", "diagnosticProvider.workspaceDiagnostics");
    })(WorkspaceDiagnosticRequest2 || (exports2.WorkspaceDiagnosticRequest = WorkspaceDiagnosticRequest2 = {}));
    var DiagnosticRefreshRequest2;
    (function(DiagnosticRefreshRequest3) {
      DiagnosticRefreshRequest3.method = `workspace/diagnostic/refresh`;
      DiagnosticRefreshRequest3.messageDirection = messages_1.MessageDirection.serverToClient;
      DiagnosticRefreshRequest3.type = new messages_1.ProtocolRequestType0(DiagnosticRefreshRequest3.method);
      DiagnosticRefreshRequest3.capabilities = messages_1.CM.create("workspace.diagnostics.refreshSupport", void 0);
    })(DiagnosticRefreshRequest2 || (exports2.DiagnosticRefreshRequest = DiagnosticRefreshRequest2 = {}));
  }
});

// node_modules/vscode-languageserver-protocol/lib/common/protocol.notebook.js
var require_protocol_notebook = __commonJS({
  "node_modules/vscode-languageserver-protocol/lib/common/protocol.notebook.js"(exports2) {
    "use strict";
    var __createBinding = exports2 && exports2.__createBinding || (Object.create ? (function(o2, m2, k, k2) {
      if (k2 === void 0) k2 = k;
      var desc = Object.getOwnPropertyDescriptor(m2, k);
      if (!desc || ("get" in desc ? !m2.__esModule : desc.writable || desc.configurable)) {
        desc = { enumerable: true, get: function() {
          return m2[k];
        } };
      }
      Object.defineProperty(o2, k2, desc);
    }) : (function(o2, m2, k, k2) {
      if (k2 === void 0) k2 = k;
      o2[k2] = m2[k];
    }));
    var __setModuleDefault = exports2 && exports2.__setModuleDefault || (Object.create ? (function(o2, v2) {
      Object.defineProperty(o2, "default", { enumerable: true, value: v2 });
    }) : function(o2, v2) {
      o2["default"] = v2;
    });
    var __importStar = exports2 && exports2.__importStar || /* @__PURE__ */ (function() {
      var ownKeys = function(o2) {
        ownKeys = Object.getOwnPropertyNames || function(o3) {
          var ar = [];
          for (var k in o3) if (Object.prototype.hasOwnProperty.call(o3, k)) ar[ar.length] = k;
          return ar;
        };
        return ownKeys(o2);
      };
      return function(mod) {
        if (mod && mod.__esModule) return mod;
        var result = {};
        if (mod != null) {
          for (var k = ownKeys(mod), i2 = 0; i2 < k.length; i2++) if (k[i2] !== "default") __createBinding(result, mod, k[i2]);
        }
        __setModuleDefault(result, mod);
        return result;
      };
    })();
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.DidCloseNotebookDocumentNotification = exports2.DidSaveNotebookDocumentNotification = exports2.DidChangeNotebookDocumentNotification = exports2.NotebookCellArrayChange = exports2.DidOpenNotebookDocumentNotification = exports2.NotebookDocumentSyncRegistrationType = exports2.NotebookDocument = exports2.NotebookCell = exports2.ExecutionSummary = exports2.NotebookCellKind = void 0;
    var vscode_languageserver_types_1 = (init_main(), __toCommonJS(main_exports));
    var Is2 = __importStar(require_is2());
    var messages_1 = require_messages2();
    var NotebookCellKind;
    (function(NotebookCellKind2) {
      NotebookCellKind2.Markup = 1;
      NotebookCellKind2.Code = 2;
      function is(value) {
        return value === 1 || value === 2;
      }
      NotebookCellKind2.is = is;
    })(NotebookCellKind || (exports2.NotebookCellKind = NotebookCellKind = {}));
    var ExecutionSummary;
    (function(ExecutionSummary2) {
      function create2(executionOrder, success) {
        const result = { executionOrder };
        if (success === true || success === false) {
          result.success = success;
        }
        return result;
      }
      ExecutionSummary2.create = create2;
      function is(value) {
        const candidate = value;
        return Is2.objectLiteral(candidate) && vscode_languageserver_types_1.uinteger.is(candidate.executionOrder) && (candidate.success === void 0 || Is2.boolean(candidate.success));
      }
      ExecutionSummary2.is = is;
      function equals2(one, other) {
        if (one === other) {
          return true;
        }
        if (one === null || one === void 0 || other === null || other === void 0) {
          return false;
        }
        return one.executionOrder === other.executionOrder && one.success === other.success;
      }
      ExecutionSummary2.equals = equals2;
    })(ExecutionSummary || (exports2.ExecutionSummary = ExecutionSummary = {}));
    var NotebookCell;
    (function(NotebookCell2) {
      function create2(kind, document2) {
        return { kind, document: document2 };
      }
      NotebookCell2.create = create2;
      function is(value) {
        const candidate = value;
        return Is2.objectLiteral(candidate) && NotebookCellKind.is(candidate.kind) && vscode_languageserver_types_1.DocumentUri.is(candidate.document) && (candidate.metadata === void 0 || Is2.objectLiteral(candidate.metadata));
      }
      NotebookCell2.is = is;
      function diff(one, two) {
        const result = /* @__PURE__ */ new Set();
        if (one.document !== two.document) {
          result.add("document");
        }
        if (one.kind !== two.kind) {
          result.add("kind");
        }
        if (one.executionSummary !== two.executionSummary) {
          result.add("executionSummary");
        }
        if ((one.metadata !== void 0 || two.metadata !== void 0) && !equalsMetadata(one.metadata, two.metadata)) {
          result.add("metadata");
        }
        if ((one.executionSummary !== void 0 || two.executionSummary !== void 0) && !ExecutionSummary.equals(one.executionSummary, two.executionSummary)) {
          result.add("executionSummary");
        }
        return result;
      }
      NotebookCell2.diff = diff;
      function equalsMetadata(one, other) {
        if (one === other) {
          return true;
        }
        if (one === null || one === void 0 || other === null || other === void 0) {
          return false;
        }
        if (typeof one !== typeof other) {
          return false;
        }
        if (typeof one !== "object") {
          return false;
        }
        const oneArray = Array.isArray(one);
        const otherArray = Array.isArray(other);
        if (oneArray !== otherArray) {
          return false;
        }
        if (oneArray && otherArray) {
          if (one.length !== other.length) {
            return false;
          }
          for (let i2 = 0; i2 < one.length; i2++) {
            if (!equalsMetadata(one[i2], other[i2])) {
              return false;
            }
          }
        }
        if (Is2.objectLiteral(one) && Is2.objectLiteral(other)) {
          const oneKeys = Object.keys(one);
          const otherKeys = Object.keys(other);
          if (oneKeys.length !== otherKeys.length) {
            return false;
          }
          oneKeys.sort();
          otherKeys.sort();
          if (!equalsMetadata(oneKeys, otherKeys)) {
            return false;
          }
          for (let i2 = 0; i2 < oneKeys.length; i2++) {
            const prop = oneKeys[i2];
            if (!equalsMetadata(one[prop], other[prop])) {
              return false;
            }
          }
        }
        return true;
      }
    })(NotebookCell || (exports2.NotebookCell = NotebookCell = {}));
    var NotebookDocument;
    (function(NotebookDocument2) {
      function create2(uri, notebookType, version2, cells) {
        return { uri, notebookType, version: version2, cells };
      }
      NotebookDocument2.create = create2;
      function is(value) {
        const candidate = value;
        return Is2.objectLiteral(candidate) && Is2.string(candidate.uri) && vscode_languageserver_types_1.integer.is(candidate.version) && Is2.typedArray(candidate.cells, NotebookCell.is);
      }
      NotebookDocument2.is = is;
    })(NotebookDocument || (exports2.NotebookDocument = NotebookDocument = {}));
    var NotebookDocumentSyncRegistrationType;
    (function(NotebookDocumentSyncRegistrationType2) {
      NotebookDocumentSyncRegistrationType2.method = "notebookDocument/sync";
      NotebookDocumentSyncRegistrationType2.messageDirection = messages_1.MessageDirection.clientToServer;
      NotebookDocumentSyncRegistrationType2.type = new messages_1.RegistrationType(NotebookDocumentSyncRegistrationType2.method);
    })(NotebookDocumentSyncRegistrationType || (exports2.NotebookDocumentSyncRegistrationType = NotebookDocumentSyncRegistrationType = {}));
    var DidOpenNotebookDocumentNotification;
    (function(DidOpenNotebookDocumentNotification2) {
      DidOpenNotebookDocumentNotification2.method = "notebookDocument/didOpen";
      DidOpenNotebookDocumentNotification2.messageDirection = messages_1.MessageDirection.clientToServer;
      DidOpenNotebookDocumentNotification2.type = new messages_1.ProtocolNotificationType(DidOpenNotebookDocumentNotification2.method);
      DidOpenNotebookDocumentNotification2.registrationMethod = NotebookDocumentSyncRegistrationType.method;
    })(DidOpenNotebookDocumentNotification || (exports2.DidOpenNotebookDocumentNotification = DidOpenNotebookDocumentNotification = {}));
    var NotebookCellArrayChange;
    (function(NotebookCellArrayChange2) {
      function is(value) {
        const candidate = value;
        return Is2.objectLiteral(candidate) && vscode_languageserver_types_1.uinteger.is(candidate.start) && vscode_languageserver_types_1.uinteger.is(candidate.deleteCount) && (candidate.cells === void 0 || Is2.typedArray(candidate.cells, NotebookCell.is));
      }
      NotebookCellArrayChange2.is = is;
      function create2(start, deleteCount, cells) {
        const result = { start, deleteCount };
        if (cells !== void 0) {
          result.cells = cells;
        }
        return result;
      }
      NotebookCellArrayChange2.create = create2;
    })(NotebookCellArrayChange || (exports2.NotebookCellArrayChange = NotebookCellArrayChange = {}));
    var DidChangeNotebookDocumentNotification;
    (function(DidChangeNotebookDocumentNotification2) {
      DidChangeNotebookDocumentNotification2.method = "notebookDocument/didChange";
      DidChangeNotebookDocumentNotification2.messageDirection = messages_1.MessageDirection.clientToServer;
      DidChangeNotebookDocumentNotification2.type = new messages_1.ProtocolNotificationType(DidChangeNotebookDocumentNotification2.method);
      DidChangeNotebookDocumentNotification2.registrationMethod = NotebookDocumentSyncRegistrationType.method;
    })(DidChangeNotebookDocumentNotification || (exports2.DidChangeNotebookDocumentNotification = DidChangeNotebookDocumentNotification = {}));
    var DidSaveNotebookDocumentNotification;
    (function(DidSaveNotebookDocumentNotification2) {
      DidSaveNotebookDocumentNotification2.method = "notebookDocument/didSave";
      DidSaveNotebookDocumentNotification2.messageDirection = messages_1.MessageDirection.clientToServer;
      DidSaveNotebookDocumentNotification2.type = new messages_1.ProtocolNotificationType(DidSaveNotebookDocumentNotification2.method);
      DidSaveNotebookDocumentNotification2.registrationMethod = NotebookDocumentSyncRegistrationType.method;
    })(DidSaveNotebookDocumentNotification || (exports2.DidSaveNotebookDocumentNotification = DidSaveNotebookDocumentNotification = {}));
    var DidCloseNotebookDocumentNotification;
    (function(DidCloseNotebookDocumentNotification2) {
      DidCloseNotebookDocumentNotification2.method = "notebookDocument/didClose";
      DidCloseNotebookDocumentNotification2.messageDirection = messages_1.MessageDirection.clientToServer;
      DidCloseNotebookDocumentNotification2.type = new messages_1.ProtocolNotificationType(DidCloseNotebookDocumentNotification2.method);
      DidCloseNotebookDocumentNotification2.registrationMethod = NotebookDocumentSyncRegistrationType.method;
    })(DidCloseNotebookDocumentNotification || (exports2.DidCloseNotebookDocumentNotification = DidCloseNotebookDocumentNotification = {}));
  }
});

// node_modules/vscode-languageserver-protocol/lib/common/protocol.inlineCompletion.js
var require_protocol_inlineCompletion = __commonJS({
  "node_modules/vscode-languageserver-protocol/lib/common/protocol.inlineCompletion.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.InlineCompletionRequest = void 0;
    var messages_1 = require_messages2();
    var InlineCompletionRequest3;
    (function(InlineCompletionRequest4) {
      InlineCompletionRequest4.method = "textDocument/inlineCompletion";
      InlineCompletionRequest4.messageDirection = messages_1.MessageDirection.clientToServer;
      InlineCompletionRequest4.type = new messages_1.ProtocolRequestType(InlineCompletionRequest4.method);
      InlineCompletionRequest4.capabilities = messages_1.CM.create("textDocument.inlineCompletion", "inlineCompletionProvider");
    })(InlineCompletionRequest3 || (exports2.InlineCompletionRequest = InlineCompletionRequest3 = {}));
  }
});

// node_modules/vscode-languageserver-protocol/lib/common/protocol.textDocumentContent.js
var require_protocol_textDocumentContent = __commonJS({
  "node_modules/vscode-languageserver-protocol/lib/common/protocol.textDocumentContent.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.TextDocumentContentRefreshRequest = exports2.TextDocumentContentRequest = void 0;
    var messages_1 = require_messages2();
    var TextDocumentContentRequest3;
    (function(TextDocumentContentRequest4) {
      TextDocumentContentRequest4.method = "workspace/textDocumentContent";
      TextDocumentContentRequest4.messageDirection = messages_1.MessageDirection.clientToServer;
      TextDocumentContentRequest4.type = new messages_1.ProtocolRequestType(TextDocumentContentRequest4.method);
      TextDocumentContentRequest4.capabilities = messages_1.CM.create("workspace.textDocumentContent", "workspace.textDocumentContent");
    })(TextDocumentContentRequest3 || (exports2.TextDocumentContentRequest = TextDocumentContentRequest3 = {}));
    var TextDocumentContentRefreshRequest2;
    (function(TextDocumentContentRefreshRequest3) {
      TextDocumentContentRefreshRequest3.method = `workspace/textDocumentContent/refresh`;
      TextDocumentContentRefreshRequest3.messageDirection = messages_1.MessageDirection.serverToClient;
      TextDocumentContentRefreshRequest3.type = new messages_1.ProtocolRequestType(TextDocumentContentRefreshRequest3.method);
    })(TextDocumentContentRefreshRequest2 || (exports2.TextDocumentContentRefreshRequest = TextDocumentContentRefreshRequest2 = {}));
  }
});

// node_modules/vscode-languageserver-protocol/lib/common/protocol.js
var require_protocol = __commonJS({
  "node_modules/vscode-languageserver-protocol/lib/common/protocol.js"(exports2) {
    "use strict";
    var __createBinding = exports2 && exports2.__createBinding || (Object.create ? (function(o2, m2, k, k2) {
      if (k2 === void 0) k2 = k;
      var desc = Object.getOwnPropertyDescriptor(m2, k);
      if (!desc || ("get" in desc ? !m2.__esModule : desc.writable || desc.configurable)) {
        desc = { enumerable: true, get: function() {
          return m2[k];
        } };
      }
      Object.defineProperty(o2, k2, desc);
    }) : (function(o2, m2, k, k2) {
      if (k2 === void 0) k2 = k;
      o2[k2] = m2[k];
    }));
    var __setModuleDefault = exports2 && exports2.__setModuleDefault || (Object.create ? (function(o2, v2) {
      Object.defineProperty(o2, "default", { enumerable: true, value: v2 });
    }) : function(o2, v2) {
      o2["default"] = v2;
    });
    var __importStar = exports2 && exports2.__importStar || /* @__PURE__ */ (function() {
      var ownKeys = function(o2) {
        ownKeys = Object.getOwnPropertyNames || function(o3) {
          var ar = [];
          for (var k in o3) if (Object.prototype.hasOwnProperty.call(o3, k)) ar[ar.length] = k;
          return ar;
        };
        return ownKeys(o2);
      };
      return function(mod) {
        if (mod && mod.__esModule) return mod;
        var result = {};
        if (mod != null) {
          for (var k = ownKeys(mod), i2 = 0; i2 < k.length; i2++) if (k[i2] !== "default") __createBinding(result, mod, k[i2]);
        }
        __setModuleDefault(result, mod);
        return result;
      };
    })();
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.CodeActionRequest = exports2.DocumentSymbolRequest = exports2.DocumentHighlightRequest = exports2.ReferencesRequest = exports2.DefinitionRequest = exports2.SignatureHelpRequest = exports2.SignatureHelpTriggerKind = exports2.HoverRequest = exports2.CompletionResolveRequest = exports2.CompletionRequest = exports2.CompletionTriggerKind = exports2.PublishDiagnosticsNotification = exports2.WatchKind = exports2.GlobPattern = exports2.RelativePattern = exports2.FileChangeType = exports2.DidChangeWatchedFilesNotification = exports2.WillSaveTextDocumentWaitUntilRequest = exports2.WillSaveTextDocumentNotification = exports2.TextDocumentSaveReason = exports2.DidSaveTextDocumentNotification = exports2.DidCloseTextDocumentNotification = exports2.DidChangeTextDocumentNotification = exports2.TextDocumentContentChangeEvent = exports2.DidOpenTextDocumentNotification = exports2.TextDocumentSyncKind = exports2.TelemetryEventNotification = exports2.LogMessageNotification = exports2.ShowMessageRequest = exports2.ShowMessageNotification = exports2.MessageType = exports2.DidChangeConfigurationNotification = exports2.ExitNotification = exports2.ShutdownRequest = exports2.InitializedNotification = exports2.InitializeErrorCodes = exports2.InitializeRequest = exports2.WorkDoneProgressOptions = exports2.TextDocumentRegistrationOptions = exports2.StaticRegistrationOptions = exports2.PositionEncodingKind = exports2.RegularExpressionEngineKind = exports2.FailureHandlingKind = exports2.ResourceOperationKind = exports2.UnregistrationRequest = exports2.RegistrationRequest = exports2.DocumentSelector = exports2.NotebookCellTextDocumentFilter = exports2.NotebookDocumentFilter = exports2.TextDocumentFilter = void 0;
    exports2.UniquenessLevel = exports2.WillDeleteFilesRequest = exports2.DidDeleteFilesNotification = exports2.WillRenameFilesRequest = exports2.DidRenameFilesNotification = exports2.WillCreateFilesRequest = exports2.DidCreateFilesNotification = exports2.FileOperationPatternKind = exports2.LinkedEditingRangeRequest = exports2.ShowDocumentRequest = exports2.SemanticTokensRegistrationType = exports2.SemanticTokensRefreshRequest = exports2.SemanticTokensRangeRequest = exports2.SemanticTokensDeltaRequest = exports2.SemanticTokensRequest = exports2.TokenFormat = exports2.CallHierarchyPrepareRequest = exports2.CallHierarchyOutgoingCallsRequest = exports2.CallHierarchyIncomingCallsRequest = exports2.WorkDoneProgressCancelNotification = exports2.WorkDoneProgressCreateRequest = exports2.WorkDoneProgress = exports2.SelectionRangeRequest = exports2.DeclarationRequest = exports2.FoldingRangeRefreshRequest = exports2.FoldingRangeRequest = exports2.ColorPresentationRequest = exports2.DocumentColorRequest = exports2.ConfigurationRequest = exports2.DidChangeWorkspaceFoldersNotification = exports2.WorkspaceFoldersRequest = exports2.TypeDefinitionRequest = exports2.ImplementationRequest = exports2.ApplyWorkspaceEditRequest = exports2.ExecuteCommandRequest = exports2.PrepareRenameRequest = exports2.RenameRequest = exports2.PrepareSupportDefaultBehavior = exports2.DocumentOnTypeFormattingRequest = exports2.DocumentRangesFormattingRequest = exports2.DocumentRangeFormattingRequest = exports2.DocumentFormattingRequest = exports2.DocumentLinkResolveRequest = exports2.DocumentLinkRequest = exports2.CodeLensRefreshRequest = exports2.CodeLensResolveRequest = exports2.CodeLensRequest = exports2.WorkspaceSymbolResolveRequest = exports2.WorkspaceSymbolRequest = exports2.CodeActionResolveRequest = void 0;
    exports2.TextDocumentContentRefreshRequest = exports2.TextDocumentContentRequest = exports2.InlineCompletionRequest = exports2.DidCloseNotebookDocumentNotification = exports2.DidSaveNotebookDocumentNotification = exports2.DidChangeNotebookDocumentNotification = exports2.NotebookCellArrayChange = exports2.DidOpenNotebookDocumentNotification = exports2.NotebookDocumentSyncRegistrationType = exports2.NotebookDocument = exports2.NotebookCell = exports2.ExecutionSummary = exports2.NotebookCellKind = exports2.DiagnosticRefreshRequest = exports2.WorkspaceDiagnosticRequest = exports2.DocumentDiagnosticRequest = exports2.DocumentDiagnosticReportKind = exports2.DiagnosticServerCancellationData = exports2.InlayHintRefreshRequest = exports2.InlayHintResolveRequest = exports2.InlayHintRequest = exports2.InlineValueRefreshRequest = exports2.InlineValueRequest = exports2.TypeHierarchySupertypesRequest = exports2.TypeHierarchySubtypesRequest = exports2.TypeHierarchyPrepareRequest = exports2.MonikerRequest = exports2.MonikerKind = void 0;
    var messages_1 = require_messages2();
    var vscode_languageserver_types_1 = (init_main(), __toCommonJS(main_exports));
    var Is2 = __importStar(require_is2());
    var protocol_implementation_1 = require_protocol_implementation();
    Object.defineProperty(exports2, "ImplementationRequest", { enumerable: true, get: function() {
      return protocol_implementation_1.ImplementationRequest;
    } });
    var protocol_typeDefinition_1 = require_protocol_typeDefinition();
    Object.defineProperty(exports2, "TypeDefinitionRequest", { enumerable: true, get: function() {
      return protocol_typeDefinition_1.TypeDefinitionRequest;
    } });
    var protocol_workspaceFolder_1 = require_protocol_workspaceFolder();
    Object.defineProperty(exports2, "WorkspaceFoldersRequest", { enumerable: true, get: function() {
      return protocol_workspaceFolder_1.WorkspaceFoldersRequest;
    } });
    Object.defineProperty(exports2, "DidChangeWorkspaceFoldersNotification", { enumerable: true, get: function() {
      return protocol_workspaceFolder_1.DidChangeWorkspaceFoldersNotification;
    } });
    var protocol_configuration_1 = require_protocol_configuration();
    Object.defineProperty(exports2, "ConfigurationRequest", { enumerable: true, get: function() {
      return protocol_configuration_1.ConfigurationRequest;
    } });
    var protocol_colorProvider_1 = require_protocol_colorProvider();
    Object.defineProperty(exports2, "DocumentColorRequest", { enumerable: true, get: function() {
      return protocol_colorProvider_1.DocumentColorRequest;
    } });
    Object.defineProperty(exports2, "ColorPresentationRequest", { enumerable: true, get: function() {
      return protocol_colorProvider_1.ColorPresentationRequest;
    } });
    var protocol_foldingRange_1 = require_protocol_foldingRange();
    Object.defineProperty(exports2, "FoldingRangeRequest", { enumerable: true, get: function() {
      return protocol_foldingRange_1.FoldingRangeRequest;
    } });
    Object.defineProperty(exports2, "FoldingRangeRefreshRequest", { enumerable: true, get: function() {
      return protocol_foldingRange_1.FoldingRangeRefreshRequest;
    } });
    var protocol_declaration_1 = require_protocol_declaration();
    Object.defineProperty(exports2, "DeclarationRequest", { enumerable: true, get: function() {
      return protocol_declaration_1.DeclarationRequest;
    } });
    var protocol_selectionRange_1 = require_protocol_selectionRange();
    Object.defineProperty(exports2, "SelectionRangeRequest", { enumerable: true, get: function() {
      return protocol_selectionRange_1.SelectionRangeRequest;
    } });
    var protocol_progress_1 = require_protocol_progress();
    Object.defineProperty(exports2, "WorkDoneProgress", { enumerable: true, get: function() {
      return protocol_progress_1.WorkDoneProgress;
    } });
    Object.defineProperty(exports2, "WorkDoneProgressCreateRequest", { enumerable: true, get: function() {
      return protocol_progress_1.WorkDoneProgressCreateRequest;
    } });
    Object.defineProperty(exports2, "WorkDoneProgressCancelNotification", { enumerable: true, get: function() {
      return protocol_progress_1.WorkDoneProgressCancelNotification;
    } });
    var protocol_callHierarchy_1 = require_protocol_callHierarchy();
    Object.defineProperty(exports2, "CallHierarchyIncomingCallsRequest", { enumerable: true, get: function() {
      return protocol_callHierarchy_1.CallHierarchyIncomingCallsRequest;
    } });
    Object.defineProperty(exports2, "CallHierarchyOutgoingCallsRequest", { enumerable: true, get: function() {
      return protocol_callHierarchy_1.CallHierarchyOutgoingCallsRequest;
    } });
    Object.defineProperty(exports2, "CallHierarchyPrepareRequest", { enumerable: true, get: function() {
      return protocol_callHierarchy_1.CallHierarchyPrepareRequest;
    } });
    var protocol_semanticTokens_1 = require_protocol_semanticTokens();
    Object.defineProperty(exports2, "TokenFormat", { enumerable: true, get: function() {
      return protocol_semanticTokens_1.TokenFormat;
    } });
    Object.defineProperty(exports2, "SemanticTokensRequest", { enumerable: true, get: function() {
      return protocol_semanticTokens_1.SemanticTokensRequest;
    } });
    Object.defineProperty(exports2, "SemanticTokensDeltaRequest", { enumerable: true, get: function() {
      return protocol_semanticTokens_1.SemanticTokensDeltaRequest;
    } });
    Object.defineProperty(exports2, "SemanticTokensRangeRequest", { enumerable: true, get: function() {
      return protocol_semanticTokens_1.SemanticTokensRangeRequest;
    } });
    Object.defineProperty(exports2, "SemanticTokensRefreshRequest", { enumerable: true, get: function() {
      return protocol_semanticTokens_1.SemanticTokensRefreshRequest;
    } });
    Object.defineProperty(exports2, "SemanticTokensRegistrationType", { enumerable: true, get: function() {
      return protocol_semanticTokens_1.SemanticTokensRegistrationType;
    } });
    var protocol_showDocument_1 = require_protocol_showDocument();
    Object.defineProperty(exports2, "ShowDocumentRequest", { enumerable: true, get: function() {
      return protocol_showDocument_1.ShowDocumentRequest;
    } });
    var protocol_linkedEditingRange_1 = require_protocol_linkedEditingRange();
    Object.defineProperty(exports2, "LinkedEditingRangeRequest", { enumerable: true, get: function() {
      return protocol_linkedEditingRange_1.LinkedEditingRangeRequest;
    } });
    var protocol_fileOperations_1 = require_protocol_fileOperations();
    Object.defineProperty(exports2, "FileOperationPatternKind", { enumerable: true, get: function() {
      return protocol_fileOperations_1.FileOperationPatternKind;
    } });
    Object.defineProperty(exports2, "DidCreateFilesNotification", { enumerable: true, get: function() {
      return protocol_fileOperations_1.DidCreateFilesNotification;
    } });
    Object.defineProperty(exports2, "WillCreateFilesRequest", { enumerable: true, get: function() {
      return protocol_fileOperations_1.WillCreateFilesRequest;
    } });
    Object.defineProperty(exports2, "DidRenameFilesNotification", { enumerable: true, get: function() {
      return protocol_fileOperations_1.DidRenameFilesNotification;
    } });
    Object.defineProperty(exports2, "WillRenameFilesRequest", { enumerable: true, get: function() {
      return protocol_fileOperations_1.WillRenameFilesRequest;
    } });
    Object.defineProperty(exports2, "DidDeleteFilesNotification", { enumerable: true, get: function() {
      return protocol_fileOperations_1.DidDeleteFilesNotification;
    } });
    Object.defineProperty(exports2, "WillDeleteFilesRequest", { enumerable: true, get: function() {
      return protocol_fileOperations_1.WillDeleteFilesRequest;
    } });
    var protocol_moniker_1 = require_protocol_moniker();
    Object.defineProperty(exports2, "UniquenessLevel", { enumerable: true, get: function() {
      return protocol_moniker_1.UniquenessLevel;
    } });
    Object.defineProperty(exports2, "MonikerKind", { enumerable: true, get: function() {
      return protocol_moniker_1.MonikerKind;
    } });
    Object.defineProperty(exports2, "MonikerRequest", { enumerable: true, get: function() {
      return protocol_moniker_1.MonikerRequest;
    } });
    var protocol_typeHierarchy_1 = require_protocol_typeHierarchy();
    Object.defineProperty(exports2, "TypeHierarchyPrepareRequest", { enumerable: true, get: function() {
      return protocol_typeHierarchy_1.TypeHierarchyPrepareRequest;
    } });
    Object.defineProperty(exports2, "TypeHierarchySubtypesRequest", { enumerable: true, get: function() {
      return protocol_typeHierarchy_1.TypeHierarchySubtypesRequest;
    } });
    Object.defineProperty(exports2, "TypeHierarchySupertypesRequest", { enumerable: true, get: function() {
      return protocol_typeHierarchy_1.TypeHierarchySupertypesRequest;
    } });
    var protocol_inlineValue_1 = require_protocol_inlineValue();
    Object.defineProperty(exports2, "InlineValueRequest", { enumerable: true, get: function() {
      return protocol_inlineValue_1.InlineValueRequest;
    } });
    Object.defineProperty(exports2, "InlineValueRefreshRequest", { enumerable: true, get: function() {
      return protocol_inlineValue_1.InlineValueRefreshRequest;
    } });
    var protocol_inlayHint_1 = require_protocol_inlayHint();
    Object.defineProperty(exports2, "InlayHintRequest", { enumerable: true, get: function() {
      return protocol_inlayHint_1.InlayHintRequest;
    } });
    Object.defineProperty(exports2, "InlayHintResolveRequest", { enumerable: true, get: function() {
      return protocol_inlayHint_1.InlayHintResolveRequest;
    } });
    Object.defineProperty(exports2, "InlayHintRefreshRequest", { enumerable: true, get: function() {
      return protocol_inlayHint_1.InlayHintRefreshRequest;
    } });
    var protocol_diagnostic_1 = require_protocol_diagnostic();
    Object.defineProperty(exports2, "DiagnosticServerCancellationData", { enumerable: true, get: function() {
      return protocol_diagnostic_1.DiagnosticServerCancellationData;
    } });
    Object.defineProperty(exports2, "DocumentDiagnosticReportKind", { enumerable: true, get: function() {
      return protocol_diagnostic_1.DocumentDiagnosticReportKind;
    } });
    Object.defineProperty(exports2, "DocumentDiagnosticRequest", { enumerable: true, get: function() {
      return protocol_diagnostic_1.DocumentDiagnosticRequest;
    } });
    Object.defineProperty(exports2, "WorkspaceDiagnosticRequest", { enumerable: true, get: function() {
      return protocol_diagnostic_1.WorkspaceDiagnosticRequest;
    } });
    Object.defineProperty(exports2, "DiagnosticRefreshRequest", { enumerable: true, get: function() {
      return protocol_diagnostic_1.DiagnosticRefreshRequest;
    } });
    var protocol_notebook_1 = require_protocol_notebook();
    Object.defineProperty(exports2, "NotebookCellKind", { enumerable: true, get: function() {
      return protocol_notebook_1.NotebookCellKind;
    } });
    Object.defineProperty(exports2, "ExecutionSummary", { enumerable: true, get: function() {
      return protocol_notebook_1.ExecutionSummary;
    } });
    Object.defineProperty(exports2, "NotebookCell", { enumerable: true, get: function() {
      return protocol_notebook_1.NotebookCell;
    } });
    Object.defineProperty(exports2, "NotebookDocument", { enumerable: true, get: function() {
      return protocol_notebook_1.NotebookDocument;
    } });
    Object.defineProperty(exports2, "NotebookDocumentSyncRegistrationType", { enumerable: true, get: function() {
      return protocol_notebook_1.NotebookDocumentSyncRegistrationType;
    } });
    Object.defineProperty(exports2, "DidOpenNotebookDocumentNotification", { enumerable: true, get: function() {
      return protocol_notebook_1.DidOpenNotebookDocumentNotification;
    } });
    Object.defineProperty(exports2, "NotebookCellArrayChange", { enumerable: true, get: function() {
      return protocol_notebook_1.NotebookCellArrayChange;
    } });
    Object.defineProperty(exports2, "DidChangeNotebookDocumentNotification", { enumerable: true, get: function() {
      return protocol_notebook_1.DidChangeNotebookDocumentNotification;
    } });
    Object.defineProperty(exports2, "DidSaveNotebookDocumentNotification", { enumerable: true, get: function() {
      return protocol_notebook_1.DidSaveNotebookDocumentNotification;
    } });
    Object.defineProperty(exports2, "DidCloseNotebookDocumentNotification", { enumerable: true, get: function() {
      return protocol_notebook_1.DidCloseNotebookDocumentNotification;
    } });
    var protocol_inlineCompletion_1 = require_protocol_inlineCompletion();
    Object.defineProperty(exports2, "InlineCompletionRequest", { enumerable: true, get: function() {
      return protocol_inlineCompletion_1.InlineCompletionRequest;
    } });
    var protocol_textDocumentContent_1 = require_protocol_textDocumentContent();
    Object.defineProperty(exports2, "TextDocumentContentRequest", { enumerable: true, get: function() {
      return protocol_textDocumentContent_1.TextDocumentContentRequest;
    } });
    Object.defineProperty(exports2, "TextDocumentContentRefreshRequest", { enumerable: true, get: function() {
      return protocol_textDocumentContent_1.TextDocumentContentRefreshRequest;
    } });
    var TextDocumentFilter2;
    (function(TextDocumentFilter3) {
      function is(value) {
        const candidate = value;
        return Is2.string(candidate) || Is2.objectLiteral(candidate) && (Is2.string(candidate.language) || Is2.string(candidate.scheme) || GlobPattern.is(candidate.pattern));
      }
      TextDocumentFilter3.is = is;
    })(TextDocumentFilter2 || (exports2.TextDocumentFilter = TextDocumentFilter2 = {}));
    var NotebookDocumentFilter;
    (function(NotebookDocumentFilter2) {
      function is(value) {
        const candidate = value;
        return Is2.objectLiteral(candidate) && (Is2.string(candidate.notebookType) || Is2.string(candidate.scheme) || GlobPattern.is(candidate.pattern));
      }
      NotebookDocumentFilter2.is = is;
    })(NotebookDocumentFilter || (exports2.NotebookDocumentFilter = NotebookDocumentFilter = {}));
    var NotebookCellTextDocumentFilter;
    (function(NotebookCellTextDocumentFilter2) {
      function is(value) {
        const candidate = value;
        return Is2.objectLiteral(candidate) && (Is2.string(candidate.notebook) || NotebookDocumentFilter.is(candidate.notebook)) && (candidate.language === void 0 || Is2.string(candidate.language));
      }
      NotebookCellTextDocumentFilter2.is = is;
    })(NotebookCellTextDocumentFilter || (exports2.NotebookCellTextDocumentFilter = NotebookCellTextDocumentFilter = {}));
    var DocumentSelector3;
    (function(DocumentSelector4) {
      function is(value) {
        if (!Array.isArray(value)) {
          return false;
        }
        for (const elem of value) {
          if (!Is2.string(elem) && !TextDocumentFilter2.is(elem) && !NotebookCellTextDocumentFilter.is(elem)) {
            return false;
          }
        }
        return true;
      }
      DocumentSelector4.is = is;
    })(DocumentSelector3 || (exports2.DocumentSelector = DocumentSelector3 = {}));
    var RegistrationRequest2;
    (function(RegistrationRequest3) {
      RegistrationRequest3.method = "client/registerCapability";
      RegistrationRequest3.messageDirection = messages_1.MessageDirection.serverToClient;
      RegistrationRequest3.type = new messages_1.ProtocolRequestType(RegistrationRequest3.method);
    })(RegistrationRequest2 || (exports2.RegistrationRequest = RegistrationRequest2 = {}));
    var UnregistrationRequest2;
    (function(UnregistrationRequest3) {
      UnregistrationRequest3.method = "client/unregisterCapability";
      UnregistrationRequest3.messageDirection = messages_1.MessageDirection.serverToClient;
      UnregistrationRequest3.type = new messages_1.ProtocolRequestType(UnregistrationRequest3.method);
    })(UnregistrationRequest2 || (exports2.UnregistrationRequest = UnregistrationRequest2 = {}));
    var ResourceOperationKind2;
    (function(ResourceOperationKind3) {
      ResourceOperationKind3.Create = "create";
      ResourceOperationKind3.Rename = "rename";
      ResourceOperationKind3.Delete = "delete";
    })(ResourceOperationKind2 || (exports2.ResourceOperationKind = ResourceOperationKind2 = {}));
    var FailureHandlingKind2;
    (function(FailureHandlingKind3) {
      FailureHandlingKind3.Abort = "abort";
      FailureHandlingKind3.Transactional = "transactional";
      FailureHandlingKind3.TextOnlyTransactional = "textOnlyTransactional";
      FailureHandlingKind3.Undo = "undo";
    })(FailureHandlingKind2 || (exports2.FailureHandlingKind = FailureHandlingKind2 = {}));
    var RegularExpressionEngineKind;
    (function(RegularExpressionEngineKind2) {
      RegularExpressionEngineKind2.ES2020 = "ES2020";
    })(RegularExpressionEngineKind || (exports2.RegularExpressionEngineKind = RegularExpressionEngineKind = {}));
    var PositionEncodingKind2;
    (function(PositionEncodingKind3) {
      PositionEncodingKind3.UTF8 = "utf-8";
      PositionEncodingKind3.UTF16 = "utf-16";
      PositionEncodingKind3.UTF32 = "utf-32";
    })(PositionEncodingKind2 || (exports2.PositionEncodingKind = PositionEncodingKind2 = {}));
    var StaticRegistrationOptions3;
    (function(StaticRegistrationOptions4) {
      function hasId(value) {
        const candidate = value;
        return candidate && Is2.string(candidate.id) && candidate.id.length > 0;
      }
      StaticRegistrationOptions4.hasId = hasId;
    })(StaticRegistrationOptions3 || (exports2.StaticRegistrationOptions = StaticRegistrationOptions3 = {}));
    var TextDocumentRegistrationOptions3;
    (function(TextDocumentRegistrationOptions4) {
      function is(value) {
        const candidate = value;
        return Is2.objectLiteral(candidate) && (candidate.documentSelector === null || DocumentSelector3.is(candidate.documentSelector));
      }
      TextDocumentRegistrationOptions4.is = is;
    })(TextDocumentRegistrationOptions3 || (exports2.TextDocumentRegistrationOptions = TextDocumentRegistrationOptions3 = {}));
    var WorkDoneProgressOptions2;
    (function(WorkDoneProgressOptions3) {
      function is(value) {
        const candidate = value;
        return Is2.objectLiteral(candidate) && (candidate.workDoneProgress === void 0 || Is2.boolean(candidate.workDoneProgress));
      }
      WorkDoneProgressOptions3.is = is;
      function hasWorkDoneProgress(value) {
        const candidate = value;
        return candidate && Is2.boolean(candidate.workDoneProgress);
      }
      WorkDoneProgressOptions3.hasWorkDoneProgress = hasWorkDoneProgress;
    })(WorkDoneProgressOptions2 || (exports2.WorkDoneProgressOptions = WorkDoneProgressOptions2 = {}));
    var InitializeRequest2;
    (function(InitializeRequest3) {
      InitializeRequest3.method = "initialize";
      InitializeRequest3.messageDirection = messages_1.MessageDirection.clientToServer;
      InitializeRequest3.type = new messages_1.ProtocolRequestType(InitializeRequest3.method);
    })(InitializeRequest2 || (exports2.InitializeRequest = InitializeRequest2 = {}));
    var InitializeErrorCodes;
    (function(InitializeErrorCodes2) {
      InitializeErrorCodes2.unknownProtocolVersion = 1;
    })(InitializeErrorCodes || (exports2.InitializeErrorCodes = InitializeErrorCodes = {}));
    var InitializedNotification2;
    (function(InitializedNotification3) {
      InitializedNotification3.method = "initialized";
      InitializedNotification3.messageDirection = messages_1.MessageDirection.clientToServer;
      InitializedNotification3.type = new messages_1.ProtocolNotificationType(InitializedNotification3.method);
    })(InitializedNotification2 || (exports2.InitializedNotification = InitializedNotification2 = {}));
    var ShutdownRequest2;
    (function(ShutdownRequest3) {
      ShutdownRequest3.method = "shutdown";
      ShutdownRequest3.messageDirection = messages_1.MessageDirection.clientToServer;
      ShutdownRequest3.type = new messages_1.ProtocolRequestType0(ShutdownRequest3.method);
    })(ShutdownRequest2 || (exports2.ShutdownRequest = ShutdownRequest2 = {}));
    var ExitNotification2;
    (function(ExitNotification3) {
      ExitNotification3.method = "exit";
      ExitNotification3.messageDirection = messages_1.MessageDirection.clientToServer;
      ExitNotification3.type = new messages_1.ProtocolNotificationType0(ExitNotification3.method);
    })(ExitNotification2 || (exports2.ExitNotification = ExitNotification2 = {}));
    var DidChangeConfigurationNotification3;
    (function(DidChangeConfigurationNotification4) {
      DidChangeConfigurationNotification4.method = "workspace/didChangeConfiguration";
      DidChangeConfigurationNotification4.messageDirection = messages_1.MessageDirection.clientToServer;
      DidChangeConfigurationNotification4.type = new messages_1.ProtocolNotificationType(DidChangeConfigurationNotification4.method);
      DidChangeConfigurationNotification4.capabilities = messages_1.CM.create("workspace.didChangeConfiguration", void 0);
    })(DidChangeConfigurationNotification3 || (exports2.DidChangeConfigurationNotification = DidChangeConfigurationNotification3 = {}));
    var MessageType2;
    (function(MessageType3) {
      MessageType3.Error = 1;
      MessageType3.Warning = 2;
      MessageType3.Info = 3;
      MessageType3.Log = 4;
      MessageType3.Debug = 5;
    })(MessageType2 || (exports2.MessageType = MessageType2 = {}));
    var ShowMessageNotification2;
    (function(ShowMessageNotification3) {
      ShowMessageNotification3.method = "window/showMessage";
      ShowMessageNotification3.messageDirection = messages_1.MessageDirection.serverToClient;
      ShowMessageNotification3.type = new messages_1.ProtocolNotificationType(ShowMessageNotification3.method);
      ShowMessageNotification3.capabilities = messages_1.CM.create("window.showMessage", void 0);
    })(ShowMessageNotification2 || (exports2.ShowMessageNotification = ShowMessageNotification2 = {}));
    var ShowMessageRequest2;
    (function(ShowMessageRequest3) {
      ShowMessageRequest3.method = "window/showMessageRequest";
      ShowMessageRequest3.messageDirection = messages_1.MessageDirection.serverToClient;
      ShowMessageRequest3.type = new messages_1.ProtocolRequestType(ShowMessageRequest3.method);
      ShowMessageRequest3.capabilities = messages_1.CM.create("window.showMessage", void 0);
    })(ShowMessageRequest2 || (exports2.ShowMessageRequest = ShowMessageRequest2 = {}));
    var LogMessageNotification2;
    (function(LogMessageNotification3) {
      LogMessageNotification3.method = "window/logMessage";
      LogMessageNotification3.messageDirection = messages_1.MessageDirection.serverToClient;
      LogMessageNotification3.type = new messages_1.ProtocolNotificationType(LogMessageNotification3.method);
    })(LogMessageNotification2 || (exports2.LogMessageNotification = LogMessageNotification2 = {}));
    var TelemetryEventNotification;
    (function(TelemetryEventNotification2) {
      TelemetryEventNotification2.method = "telemetry/event";
      TelemetryEventNotification2.messageDirection = messages_1.MessageDirection.serverToClient;
      TelemetryEventNotification2.type = new messages_1.ProtocolNotificationType(TelemetryEventNotification2.method);
    })(TelemetryEventNotification || (exports2.TelemetryEventNotification = TelemetryEventNotification = {}));
    var TextDocumentSyncKind2;
    (function(TextDocumentSyncKind3) {
      TextDocumentSyncKind3.None = 0;
      TextDocumentSyncKind3.Full = 1;
      TextDocumentSyncKind3.Incremental = 2;
    })(TextDocumentSyncKind2 || (exports2.TextDocumentSyncKind = TextDocumentSyncKind2 = {}));
    var DidOpenTextDocumentNotification3;
    (function(DidOpenTextDocumentNotification4) {
      DidOpenTextDocumentNotification4.method = "textDocument/didOpen";
      DidOpenTextDocumentNotification4.messageDirection = messages_1.MessageDirection.clientToServer;
      DidOpenTextDocumentNotification4.type = new messages_1.ProtocolNotificationType(DidOpenTextDocumentNotification4.method);
      DidOpenTextDocumentNotification4.capabilities = messages_1.CM.create("textDocument.synchronization", "textDocumentSync.openClose");
    })(DidOpenTextDocumentNotification3 || (exports2.DidOpenTextDocumentNotification = DidOpenTextDocumentNotification3 = {}));
    var TextDocumentContentChangeEvent;
    (function(TextDocumentContentChangeEvent2) {
      function isIncremental(event) {
        const candidate = event;
        return candidate !== void 0 && candidate !== null && typeof candidate.text === "string" && candidate.range !== void 0 && (candidate.rangeLength === void 0 || typeof candidate.rangeLength === "number");
      }
      TextDocumentContentChangeEvent2.isIncremental = isIncremental;
      function isFull(event) {
        const candidate = event;
        return candidate !== void 0 && candidate !== null && typeof candidate.text === "string" && candidate.range === void 0 && candidate.rangeLength === void 0;
      }
      TextDocumentContentChangeEvent2.isFull = isFull;
    })(TextDocumentContentChangeEvent || (exports2.TextDocumentContentChangeEvent = TextDocumentContentChangeEvent = {}));
    var DidChangeTextDocumentNotification3;
    (function(DidChangeTextDocumentNotification4) {
      DidChangeTextDocumentNotification4.method = "textDocument/didChange";
      DidChangeTextDocumentNotification4.messageDirection = messages_1.MessageDirection.clientToServer;
      DidChangeTextDocumentNotification4.type = new messages_1.ProtocolNotificationType(DidChangeTextDocumentNotification4.method);
      DidChangeTextDocumentNotification4.capabilities = messages_1.CM.create("textDocument.synchronization", "textDocumentSync");
    })(DidChangeTextDocumentNotification3 || (exports2.DidChangeTextDocumentNotification = DidChangeTextDocumentNotification3 = {}));
    var DidCloseTextDocumentNotification3;
    (function(DidCloseTextDocumentNotification4) {
      DidCloseTextDocumentNotification4.method = "textDocument/didClose";
      DidCloseTextDocumentNotification4.messageDirection = messages_1.MessageDirection.clientToServer;
      DidCloseTextDocumentNotification4.type = new messages_1.ProtocolNotificationType(DidCloseTextDocumentNotification4.method);
      DidCloseTextDocumentNotification4.capabilities = messages_1.CM.create("textDocument.synchronization", "textDocumentSync.openClose");
    })(DidCloseTextDocumentNotification3 || (exports2.DidCloseTextDocumentNotification = DidCloseTextDocumentNotification3 = {}));
    var DidSaveTextDocumentNotification3;
    (function(DidSaveTextDocumentNotification4) {
      DidSaveTextDocumentNotification4.method = "textDocument/didSave";
      DidSaveTextDocumentNotification4.messageDirection = messages_1.MessageDirection.clientToServer;
      DidSaveTextDocumentNotification4.type = new messages_1.ProtocolNotificationType(DidSaveTextDocumentNotification4.method);
      DidSaveTextDocumentNotification4.capabilities = messages_1.CM.create("textDocument.synchronization.didSave", "textDocumentSync.save");
    })(DidSaveTextDocumentNotification3 || (exports2.DidSaveTextDocumentNotification = DidSaveTextDocumentNotification3 = {}));
    var TextDocumentSaveReason3;
    (function(TextDocumentSaveReason4) {
      TextDocumentSaveReason4.Manual = 1;
      TextDocumentSaveReason4.AfterDelay = 2;
      TextDocumentSaveReason4.FocusOut = 3;
    })(TextDocumentSaveReason3 || (exports2.TextDocumentSaveReason = TextDocumentSaveReason3 = {}));
    var WillSaveTextDocumentNotification3;
    (function(WillSaveTextDocumentNotification4) {
      WillSaveTextDocumentNotification4.method = "textDocument/willSave";
      WillSaveTextDocumentNotification4.messageDirection = messages_1.MessageDirection.clientToServer;
      WillSaveTextDocumentNotification4.type = new messages_1.ProtocolNotificationType(WillSaveTextDocumentNotification4.method);
      WillSaveTextDocumentNotification4.capabilities = messages_1.CM.create("textDocument.synchronization.willSave", "textDocumentSync.willSave");
    })(WillSaveTextDocumentNotification3 || (exports2.WillSaveTextDocumentNotification = WillSaveTextDocumentNotification3 = {}));
    var WillSaveTextDocumentWaitUntilRequest3;
    (function(WillSaveTextDocumentWaitUntilRequest4) {
      WillSaveTextDocumentWaitUntilRequest4.method = "textDocument/willSaveWaitUntil";
      WillSaveTextDocumentWaitUntilRequest4.messageDirection = messages_1.MessageDirection.clientToServer;
      WillSaveTextDocumentWaitUntilRequest4.type = new messages_1.ProtocolRequestType(WillSaveTextDocumentWaitUntilRequest4.method);
      WillSaveTextDocumentWaitUntilRequest4.capabilities = messages_1.CM.create("textDocument.synchronization.willSaveWaitUntil", "textDocumentSync.willSaveWaitUntil");
    })(WillSaveTextDocumentWaitUntilRequest3 || (exports2.WillSaveTextDocumentWaitUntilRequest = WillSaveTextDocumentWaitUntilRequest3 = {}));
    var DidChangeWatchedFilesNotification3;
    (function(DidChangeWatchedFilesNotification4) {
      DidChangeWatchedFilesNotification4.method = "workspace/didChangeWatchedFiles";
      DidChangeWatchedFilesNotification4.messageDirection = messages_1.MessageDirection.clientToServer;
      DidChangeWatchedFilesNotification4.type = new messages_1.ProtocolNotificationType(DidChangeWatchedFilesNotification4.method);
      DidChangeWatchedFilesNotification4.capabilities = messages_1.CM.create("workspace.didChangeWatchedFiles", void 0);
    })(DidChangeWatchedFilesNotification3 || (exports2.DidChangeWatchedFilesNotification = DidChangeWatchedFilesNotification3 = {}));
    var FileChangeType2;
    (function(FileChangeType3) {
      FileChangeType3.Created = 1;
      FileChangeType3.Changed = 2;
      FileChangeType3.Deleted = 3;
    })(FileChangeType2 || (exports2.FileChangeType = FileChangeType2 = {}));
    var RelativePattern3;
    (function(RelativePattern4) {
      function is(value) {
        const candidate = value;
        return Is2.objectLiteral(candidate) && (vscode_languageserver_types_1.URI.is(candidate.baseUri) || vscode_languageserver_types_1.WorkspaceFolder.is(candidate.baseUri)) && Is2.string(candidate.pattern);
      }
      RelativePattern4.is = is;
    })(RelativePattern3 || (exports2.RelativePattern = RelativePattern3 = {}));
    var GlobPattern;
    (function(GlobPattern2) {
      function is(value) {
        const candidate = value;
        return Is2.string(candidate) || RelativePattern3.is(candidate);
      }
      GlobPattern2.is = is;
    })(GlobPattern || (exports2.GlobPattern = GlobPattern = {}));
    var WatchKind2;
    (function(WatchKind3) {
      WatchKind3.Create = 1;
      WatchKind3.Change = 2;
      WatchKind3.Delete = 4;
    })(WatchKind2 || (exports2.WatchKind = WatchKind2 = {}));
    var PublishDiagnosticsNotification2;
    (function(PublishDiagnosticsNotification3) {
      PublishDiagnosticsNotification3.method = "textDocument/publishDiagnostics";
      PublishDiagnosticsNotification3.messageDirection = messages_1.MessageDirection.serverToClient;
      PublishDiagnosticsNotification3.type = new messages_1.ProtocolNotificationType(PublishDiagnosticsNotification3.method);
      PublishDiagnosticsNotification3.capabilities = messages_1.CM.create("textDocument.publishDiagnostics", void 0);
    })(PublishDiagnosticsNotification2 || (exports2.PublishDiagnosticsNotification = PublishDiagnosticsNotification2 = {}));
    var CompletionTriggerKind2;
    (function(CompletionTriggerKind3) {
      CompletionTriggerKind3.Invoked = 1;
      CompletionTriggerKind3.TriggerCharacter = 2;
      CompletionTriggerKind3.TriggerForIncompleteCompletions = 3;
    })(CompletionTriggerKind2 || (exports2.CompletionTriggerKind = CompletionTriggerKind2 = {}));
    var CompletionRequest3;
    (function(CompletionRequest4) {
      CompletionRequest4.method = "textDocument/completion";
      CompletionRequest4.messageDirection = messages_1.MessageDirection.clientToServer;
      CompletionRequest4.type = new messages_1.ProtocolRequestType(CompletionRequest4.method);
      CompletionRequest4.capabilities = messages_1.CM.create("textDocument.completion", "completionProvider");
    })(CompletionRequest3 || (exports2.CompletionRequest = CompletionRequest3 = {}));
    var CompletionResolveRequest2;
    (function(CompletionResolveRequest3) {
      CompletionResolveRequest3.method = "completionItem/resolve";
      CompletionResolveRequest3.messageDirection = messages_1.MessageDirection.clientToServer;
      CompletionResolveRequest3.type = new messages_1.ProtocolRequestType(CompletionResolveRequest3.method);
      CompletionResolveRequest3.capabilities = messages_1.CM.create("textDocument.completion.completionItem.resolveSupport", "completionProvider.resolveProvider");
    })(CompletionResolveRequest2 || (exports2.CompletionResolveRequest = CompletionResolveRequest2 = {}));
    var HoverRequest3;
    (function(HoverRequest4) {
      HoverRequest4.method = "textDocument/hover";
      HoverRequest4.messageDirection = messages_1.MessageDirection.clientToServer;
      HoverRequest4.type = new messages_1.ProtocolRequestType(HoverRequest4.method);
      HoverRequest4.capabilities = messages_1.CM.create("textDocument.hover", "hoverProvider");
    })(HoverRequest3 || (exports2.HoverRequest = HoverRequest3 = {}));
    var SignatureHelpTriggerKind3;
    (function(SignatureHelpTriggerKind4) {
      SignatureHelpTriggerKind4.Invoked = 1;
      SignatureHelpTriggerKind4.TriggerCharacter = 2;
      SignatureHelpTriggerKind4.ContentChange = 3;
    })(SignatureHelpTriggerKind3 || (exports2.SignatureHelpTriggerKind = SignatureHelpTriggerKind3 = {}));
    var SignatureHelpRequest3;
    (function(SignatureHelpRequest4) {
      SignatureHelpRequest4.method = "textDocument/signatureHelp";
      SignatureHelpRequest4.messageDirection = messages_1.MessageDirection.clientToServer;
      SignatureHelpRequest4.type = new messages_1.ProtocolRequestType(SignatureHelpRequest4.method);
      SignatureHelpRequest4.capabilities = messages_1.CM.create("textDocument.signatureHelp", "signatureHelpProvider");
    })(SignatureHelpRequest3 || (exports2.SignatureHelpRequest = SignatureHelpRequest3 = {}));
    var DefinitionRequest3;
    (function(DefinitionRequest4) {
      DefinitionRequest4.method = "textDocument/definition";
      DefinitionRequest4.messageDirection = messages_1.MessageDirection.clientToServer;
      DefinitionRequest4.type = new messages_1.ProtocolRequestType(DefinitionRequest4.method);
      DefinitionRequest4.capabilities = messages_1.CM.create("textDocument.definition", "definitionProvider");
    })(DefinitionRequest3 || (exports2.DefinitionRequest = DefinitionRequest3 = {}));
    var ReferencesRequest3;
    (function(ReferencesRequest4) {
      ReferencesRequest4.method = "textDocument/references";
      ReferencesRequest4.messageDirection = messages_1.MessageDirection.clientToServer;
      ReferencesRequest4.type = new messages_1.ProtocolRequestType(ReferencesRequest4.method);
      ReferencesRequest4.capabilities = messages_1.CM.create("textDocument.references", "referencesProvider");
    })(ReferencesRequest3 || (exports2.ReferencesRequest = ReferencesRequest3 = {}));
    var DocumentHighlightRequest3;
    (function(DocumentHighlightRequest4) {
      DocumentHighlightRequest4.method = "textDocument/documentHighlight";
      DocumentHighlightRequest4.messageDirection = messages_1.MessageDirection.clientToServer;
      DocumentHighlightRequest4.type = new messages_1.ProtocolRequestType(DocumentHighlightRequest4.method);
      DocumentHighlightRequest4.capabilities = messages_1.CM.create("textDocument.documentHighlight", "documentHighlightProvider");
    })(DocumentHighlightRequest3 || (exports2.DocumentHighlightRequest = DocumentHighlightRequest3 = {}));
    var DocumentSymbolRequest3;
    (function(DocumentSymbolRequest4) {
      DocumentSymbolRequest4.method = "textDocument/documentSymbol";
      DocumentSymbolRequest4.messageDirection = messages_1.MessageDirection.clientToServer;
      DocumentSymbolRequest4.type = new messages_1.ProtocolRequestType(DocumentSymbolRequest4.method);
      DocumentSymbolRequest4.capabilities = messages_1.CM.create("textDocument.documentSymbol", "documentSymbolProvider");
    })(DocumentSymbolRequest3 || (exports2.DocumentSymbolRequest = DocumentSymbolRequest3 = {}));
    var CodeActionRequest3;
    (function(CodeActionRequest4) {
      CodeActionRequest4.method = "textDocument/codeAction";
      CodeActionRequest4.messageDirection = messages_1.MessageDirection.clientToServer;
      CodeActionRequest4.type = new messages_1.ProtocolRequestType(CodeActionRequest4.method);
      CodeActionRequest4.capabilities = messages_1.CM.create("textDocument.codeAction", "codeActionProvider");
    })(CodeActionRequest3 || (exports2.CodeActionRequest = CodeActionRequest3 = {}));
    var CodeActionResolveRequest2;
    (function(CodeActionResolveRequest3) {
      CodeActionResolveRequest3.method = "codeAction/resolve";
      CodeActionResolveRequest3.messageDirection = messages_1.MessageDirection.clientToServer;
      CodeActionResolveRequest3.type = new messages_1.ProtocolRequestType(CodeActionResolveRequest3.method);
      CodeActionResolveRequest3.capabilities = messages_1.CM.create("textDocument.codeAction.resolveSupport", "codeActionProvider.resolveProvider");
    })(CodeActionResolveRequest2 || (exports2.CodeActionResolveRequest = CodeActionResolveRequest2 = {}));
    var WorkspaceSymbolRequest3;
    (function(WorkspaceSymbolRequest4) {
      WorkspaceSymbolRequest4.method = "workspace/symbol";
      WorkspaceSymbolRequest4.messageDirection = messages_1.MessageDirection.clientToServer;
      WorkspaceSymbolRequest4.type = new messages_1.ProtocolRequestType(WorkspaceSymbolRequest4.method);
      WorkspaceSymbolRequest4.capabilities = messages_1.CM.create("workspace.symbol", "workspaceSymbolProvider");
    })(WorkspaceSymbolRequest3 || (exports2.WorkspaceSymbolRequest = WorkspaceSymbolRequest3 = {}));
    var WorkspaceSymbolResolveRequest2;
    (function(WorkspaceSymbolResolveRequest3) {
      WorkspaceSymbolResolveRequest3.method = "workspaceSymbol/resolve";
      WorkspaceSymbolResolveRequest3.messageDirection = messages_1.MessageDirection.clientToServer;
      WorkspaceSymbolResolveRequest3.type = new messages_1.ProtocolRequestType(WorkspaceSymbolResolveRequest3.method);
      WorkspaceSymbolResolveRequest3.capabilities = messages_1.CM.create("workspace.symbol.resolveSupport", "workspaceSymbolProvider.resolveProvider");
    })(WorkspaceSymbolResolveRequest2 || (exports2.WorkspaceSymbolResolveRequest = WorkspaceSymbolResolveRequest2 = {}));
    var CodeLensRequest3;
    (function(CodeLensRequest4) {
      CodeLensRequest4.method = "textDocument/codeLens";
      CodeLensRequest4.messageDirection = messages_1.MessageDirection.clientToServer;
      CodeLensRequest4.type = new messages_1.ProtocolRequestType(CodeLensRequest4.method);
      CodeLensRequest4.capabilities = messages_1.CM.create("textDocument.codeLens", "codeLensProvider");
    })(CodeLensRequest3 || (exports2.CodeLensRequest = CodeLensRequest3 = {}));
    var CodeLensResolveRequest2;
    (function(CodeLensResolveRequest3) {
      CodeLensResolveRequest3.method = "codeLens/resolve";
      CodeLensResolveRequest3.messageDirection = messages_1.MessageDirection.clientToServer;
      CodeLensResolveRequest3.type = new messages_1.ProtocolRequestType(CodeLensResolveRequest3.method);
      CodeLensResolveRequest3.capabilities = messages_1.CM.create("textDocument.codeLens.resolveSupport", "codeLensProvider.resolveProvider");
    })(CodeLensResolveRequest2 || (exports2.CodeLensResolveRequest = CodeLensResolveRequest2 = {}));
    var CodeLensRefreshRequest2;
    (function(CodeLensRefreshRequest3) {
      CodeLensRefreshRequest3.method = `workspace/codeLens/refresh`;
      CodeLensRefreshRequest3.messageDirection = messages_1.MessageDirection.serverToClient;
      CodeLensRefreshRequest3.type = new messages_1.ProtocolRequestType0(CodeLensRefreshRequest3.method);
      CodeLensRefreshRequest3.capabilities = messages_1.CM.create("workspace.codeLens", void 0);
    })(CodeLensRefreshRequest2 || (exports2.CodeLensRefreshRequest = CodeLensRefreshRequest2 = {}));
    var DocumentLinkRequest3;
    (function(DocumentLinkRequest4) {
      DocumentLinkRequest4.method = "textDocument/documentLink";
      DocumentLinkRequest4.messageDirection = messages_1.MessageDirection.clientToServer;
      DocumentLinkRequest4.type = new messages_1.ProtocolRequestType(DocumentLinkRequest4.method);
      DocumentLinkRequest4.capabilities = messages_1.CM.create("textDocument.documentLink", "documentLinkProvider");
    })(DocumentLinkRequest3 || (exports2.DocumentLinkRequest = DocumentLinkRequest3 = {}));
    var DocumentLinkResolveRequest2;
    (function(DocumentLinkResolveRequest3) {
      DocumentLinkResolveRequest3.method = "documentLink/resolve";
      DocumentLinkResolveRequest3.messageDirection = messages_1.MessageDirection.clientToServer;
      DocumentLinkResolveRequest3.type = new messages_1.ProtocolRequestType(DocumentLinkResolveRequest3.method);
      DocumentLinkResolveRequest3.capabilities = messages_1.CM.create("textDocument.documentLink", "documentLinkProvider.resolveProvider");
    })(DocumentLinkResolveRequest2 || (exports2.DocumentLinkResolveRequest = DocumentLinkResolveRequest2 = {}));
    var DocumentFormattingRequest3;
    (function(DocumentFormattingRequest4) {
      DocumentFormattingRequest4.method = "textDocument/formatting";
      DocumentFormattingRequest4.messageDirection = messages_1.MessageDirection.clientToServer;
      DocumentFormattingRequest4.type = new messages_1.ProtocolRequestType(DocumentFormattingRequest4.method);
      DocumentFormattingRequest4.capabilities = messages_1.CM.create("textDocument.formatting", "documentFormattingProvider");
    })(DocumentFormattingRequest3 || (exports2.DocumentFormattingRequest = DocumentFormattingRequest3 = {}));
    var DocumentRangeFormattingRequest3;
    (function(DocumentRangeFormattingRequest4) {
      DocumentRangeFormattingRequest4.method = "textDocument/rangeFormatting";
      DocumentRangeFormattingRequest4.messageDirection = messages_1.MessageDirection.clientToServer;
      DocumentRangeFormattingRequest4.type = new messages_1.ProtocolRequestType(DocumentRangeFormattingRequest4.method);
      DocumentRangeFormattingRequest4.capabilities = messages_1.CM.create("textDocument.rangeFormatting", "documentRangeFormattingProvider");
    })(DocumentRangeFormattingRequest3 || (exports2.DocumentRangeFormattingRequest = DocumentRangeFormattingRequest3 = {}));
    var DocumentRangesFormattingRequest2;
    (function(DocumentRangesFormattingRequest3) {
      DocumentRangesFormattingRequest3.method = "textDocument/rangesFormatting";
      DocumentRangesFormattingRequest3.messageDirection = messages_1.MessageDirection.clientToServer;
      DocumentRangesFormattingRequest3.type = new messages_1.ProtocolRequestType(DocumentRangesFormattingRequest3.method);
      DocumentRangesFormattingRequest3.capabilities = messages_1.CM.create("textDocument.rangeFormatting.rangesSupport", "documentRangeFormattingProvider.rangesSupport");
    })(DocumentRangesFormattingRequest2 || (exports2.DocumentRangesFormattingRequest = DocumentRangesFormattingRequest2 = {}));
    var DocumentOnTypeFormattingRequest3;
    (function(DocumentOnTypeFormattingRequest4) {
      DocumentOnTypeFormattingRequest4.method = "textDocument/onTypeFormatting";
      DocumentOnTypeFormattingRequest4.messageDirection = messages_1.MessageDirection.clientToServer;
      DocumentOnTypeFormattingRequest4.type = new messages_1.ProtocolRequestType(DocumentOnTypeFormattingRequest4.method);
      DocumentOnTypeFormattingRequest4.capabilities = messages_1.CM.create("textDocument.onTypeFormatting", "documentOnTypeFormattingProvider");
    })(DocumentOnTypeFormattingRequest3 || (exports2.DocumentOnTypeFormattingRequest = DocumentOnTypeFormattingRequest3 = {}));
    var PrepareSupportDefaultBehavior2;
    (function(PrepareSupportDefaultBehavior3) {
      PrepareSupportDefaultBehavior3.Identifier = 1;
    })(PrepareSupportDefaultBehavior2 || (exports2.PrepareSupportDefaultBehavior = PrepareSupportDefaultBehavior2 = {}));
    var RenameRequest3;
    (function(RenameRequest4) {
      RenameRequest4.method = "textDocument/rename";
      RenameRequest4.messageDirection = messages_1.MessageDirection.clientToServer;
      RenameRequest4.type = new messages_1.ProtocolRequestType(RenameRequest4.method);
      RenameRequest4.capabilities = messages_1.CM.create("textDocument.rename", "renameProvider");
    })(RenameRequest3 || (exports2.RenameRequest = RenameRequest3 = {}));
    var PrepareRenameRequest2;
    (function(PrepareRenameRequest3) {
      PrepareRenameRequest3.method = "textDocument/prepareRename";
      PrepareRenameRequest3.messageDirection = messages_1.MessageDirection.clientToServer;
      PrepareRenameRequest3.type = new messages_1.ProtocolRequestType(PrepareRenameRequest3.method);
      PrepareRenameRequest3.capabilities = messages_1.CM.create("textDocument.rename.prepareSupport", "renameProvider.prepareProvider");
    })(PrepareRenameRequest2 || (exports2.PrepareRenameRequest = PrepareRenameRequest2 = {}));
    var ExecuteCommandRequest3;
    (function(ExecuteCommandRequest4) {
      ExecuteCommandRequest4.method = "workspace/executeCommand";
      ExecuteCommandRequest4.messageDirection = messages_1.MessageDirection.clientToServer;
      ExecuteCommandRequest4.type = new messages_1.ProtocolRequestType(ExecuteCommandRequest4.method);
      ExecuteCommandRequest4.capabilities = messages_1.CM.create("workspace.executeCommand", "executeCommandProvider");
    })(ExecuteCommandRequest3 || (exports2.ExecuteCommandRequest = ExecuteCommandRequest3 = {}));
    var ApplyWorkspaceEditRequest2;
    (function(ApplyWorkspaceEditRequest3) {
      ApplyWorkspaceEditRequest3.method = "workspace/applyEdit";
      ApplyWorkspaceEditRequest3.messageDirection = messages_1.MessageDirection.serverToClient;
      ApplyWorkspaceEditRequest3.type = new messages_1.ProtocolRequestType("workspace/applyEdit");
      ApplyWorkspaceEditRequest3.capabilities = messages_1.CM.create("workspace.applyEdit", void 0);
    })(ApplyWorkspaceEditRequest2 || (exports2.ApplyWorkspaceEditRequest = ApplyWorkspaceEditRequest2 = {}));
  }
});

// node_modules/vscode-languageserver-protocol/lib/common/connection.js
var require_connection3 = __commonJS({
  "node_modules/vscode-languageserver-protocol/lib/common/connection.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.createProtocolConnection = createProtocolConnection2;
    var vscode_jsonrpc_1 = require_api2();
    function createProtocolConnection2(input, output, logger75, options3) {
      if (vscode_jsonrpc_1.ConnectionStrategy.is(options3)) {
        options3 = { connectionStrategy: options3 };
      }
      return (0, vscode_jsonrpc_1.createMessageConnection)(input, output, logger75, options3);
    }
  }
});

// node_modules/vscode-languageserver-protocol/lib/common/api.js
var require_api3 = __commonJS({
  "node_modules/vscode-languageserver-protocol/lib/common/api.js"(exports2) {
    "use strict";
    var __createBinding = exports2 && exports2.__createBinding || (Object.create ? (function(o2, m2, k, k2) {
      if (k2 === void 0) k2 = k;
      var desc = Object.getOwnPropertyDescriptor(m2, k);
      if (!desc || ("get" in desc ? !m2.__esModule : desc.writable || desc.configurable)) {
        desc = { enumerable: true, get: function() {
          return m2[k];
        } };
      }
      Object.defineProperty(o2, k2, desc);
    }) : (function(o2, m2, k, k2) {
      if (k2 === void 0) k2 = k;
      o2[k2] = m2[k];
    }));
    var __exportStar = exports2 && exports2.__exportStar || function(m2, exports3) {
      for (var p2 in m2) if (p2 !== "default" && !Object.prototype.hasOwnProperty.call(exports3, p2)) __createBinding(exports3, m2, p2);
    };
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.LSPErrorCodes = exports2.createProtocolConnection = void 0;
    __exportStar(require_api2(), exports2);
    __exportStar((init_main(), __toCommonJS(main_exports)), exports2);
    __exportStar(require_messages2(), exports2);
    __exportStar(require_protocol(), exports2);
    var connection_1 = require_connection3();
    Object.defineProperty(exports2, "createProtocolConnection", { enumerable: true, get: function() {
      return connection_1.createProtocolConnection;
    } });
    var LSPErrorCodes3;
    (function(LSPErrorCodes4) {
      LSPErrorCodes4.lspReservedErrorRangeStart = -32899;
      LSPErrorCodes4.RequestFailed = -32803;
      LSPErrorCodes4.ServerCancelled = -32802;
      LSPErrorCodes4.ContentModified = -32801;
      LSPErrorCodes4.RequestCancelled = -32800;
      LSPErrorCodes4.lspReservedErrorRangeEnd = -32800;
    })(LSPErrorCodes3 || (exports2.LSPErrorCodes = LSPErrorCodes3 = {}));
  }
});

// node_modules/vscode-languageserver-protocol/lib/node/main.js
var require_main2 = __commonJS({
  "node_modules/vscode-languageserver-protocol/lib/node/main.js"(exports2) {
    "use strict";
    var __createBinding = exports2 && exports2.__createBinding || (Object.create ? (function(o2, m2, k, k2) {
      if (k2 === void 0) k2 = k;
      var desc = Object.getOwnPropertyDescriptor(m2, k);
      if (!desc || ("get" in desc ? !m2.__esModule : desc.writable || desc.configurable)) {
        desc = { enumerable: true, get: function() {
          return m2[k];
        } };
      }
      Object.defineProperty(o2, k2, desc);
    }) : (function(o2, m2, k, k2) {
      if (k2 === void 0) k2 = k;
      o2[k2] = m2[k];
    }));
    var __exportStar = exports2 && exports2.__exportStar || function(m2, exports3) {
      for (var p2 in m2) if (p2 !== "default" && !Object.prototype.hasOwnProperty.call(exports3, p2)) __createBinding(exports3, m2, p2);
    };
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.createProtocolConnection = createProtocolConnection2;
    var node_1 = require_main();
    __exportStar(require_main(), exports2);
    __exportStar(require_api3(), exports2);
    function createProtocolConnection2(input, output, logger75, options3) {
      return (0, node_1.createMessageConnection)(input, output, logger75, options3);
    }
  }
});

// src/util/protocol.ts
var import_node4;
var init_protocol = __esm({
  "src/util/protocol.ts"() {
    "use strict";
    import_node4 = __toESM(require_main2());
  }
});

// src/util/array.ts
function toArray(item) {
  return Array.isArray(item) ? item : item == null ? [] : [item];
}
function isFalsyOrEmpty(obj) {
  return !Array.isArray(obj) || obj.length === 0;
}
function compareValue(n2, r2) {
  if (n2 < r2[0]) return 1;
  if (n2 > r2[1]) return -1;
  return 0;
}
function intable(n2, table) {
  let low = 0;
  let high = table.length - 1;
  while (low <= high) {
    const mid = (low + high) / 2 | 0;
    const comp = compareValue(n2, table[mid]);
    if (comp < 0) {
      low = mid + 1;
    } else if (comp > 0) {
      high = mid - 1;
    } else {
      return true;
    }
  }
  return false;
}
function binarySearch(array, key, comparator) {
  return binarySearch2(array.length, (i2) => comparator(array[i2], key));
}
function binarySearch2(length, compareToKey) {
  let low = 0;
  let high = length - 1;
  while (low <= high) {
    const mid = (low + high) / 2 | 0;
    const comp = compareToKey(mid);
    if (comp < 0) {
      low = mid + 1;
    } else if (comp > 0) {
      high = mid - 1;
    } else {
      return mid;
    }
  }
  return -(low + 1);
}
function intersect(array, other) {
  for (let item of other) {
    if (array.includes(item)) {
      return true;
    }
  }
  return false;
}
function splitArray(array, fn) {
  let res = [[], []];
  for (let item of array) {
    if (fn(item)) {
      res[0].push(item);
    } else {
      res[1].push(item);
    }
  }
  return res;
}
function groupBy(array, fn) {
  let res = [[], []];
  array.forEach((v2) => {
    if (fn(v2)) {
      res[0].push(v2);
    } else {
      res[1].push(v2);
    }
  });
  return res;
}
function distinct(array, keyFn) {
  if (!keyFn) {
    return array.filter((element, position) => array.indexOf(element) === position);
  }
  const seen = /* @__PURE__ */ Object.create(null);
  return array.filter((elem) => {
    const key = keyFn(elem);
    if (seen[key]) {
      return false;
    }
    seen[key] = true;
    return true;
  });
}
var init_array = __esm({
  "src/util/array.ts"() {
    "use strict";
  }
});

// src/util/charCode.ts
var init_charCode = __esm({
  "src/util/charCode.ts"() {
    "use strict";
  }
});

// src/util/string.ts
function toErrorText(error) {
  return error instanceof Error ? error.message : error.toString();
}
function toInteger(text) {
  let n2 = parseInt(text, 10);
  return isNaN(n2) ? void 0 : n2;
}
function toText(text) {
  if (typeof text === "number") return text.toString();
  return text ?? "";
}
function toBase64(text) {
  return global.Buffer.from(text).toString("base64");
}
function isHighlightGroupCharCode(code) {
  if (intable(code, asciiTable)) return true;
  return code === 95 /* Underline */ || code === 46 /* Period */ || code === 64 /* AtSign */;
}
function isEmojiImprecise(x2) {
  return x2 >= 127462 && x2 <= 127487 || x2 === 8986 || x2 === 8987 || x2 === 9200 || x2 === 9203 || x2 >= 9728 && x2 <= 10175 || x2 === 11088 || x2 === 11093 || x2 >= 127744 && x2 <= 128591 || x2 >= 128640 && x2 <= 128764 || x2 >= 128992 && x2 <= 129008 || x2 >= 129280 && x2 <= 129535 || x2 >= 129648 && x2 <= 129782;
}
function* iterateCharacter(input, character) {
  for (let i2 = 0; i2 < input.length; i2++) {
    if (input[i2] == character) yield i2;
  }
}
function isHighSurrogate(codePoint) {
  return codePoint >= 55296 && codePoint <= 56319;
}
function isLowSurrogate(codePoint) {
  return codePoint >= 56320 && codePoint <= 57343;
}
function byteLength(str, start = 0) {
  if (start === 0) return Buffer.byteLength(str, encoding);
  let len = 0;
  let unitIndex = 0;
  for (let codePoint of str) {
    let n2 = codePoint.codePointAt(0);
    if (unitIndex >= start) {
      len += utf8_code2len(n2);
    }
    unitIndex += n2 >= UTF8_4BYTES_START ? 2 : 1;
  }
  return len;
}
function byteIndex(content, index) {
  let byteLength2 = 0;
  let codePoint;
  let prevCodePoint;
  let max = Math.min(index, content.length);
  for (let i2 = 0; i2 < max; i2++) {
    codePoint = content.charCodeAt(i2);
    if (isLowSurrogate(codePoint)) {
      if (prevCodePoint && isHighSurrogate(prevCodePoint)) {
        byteLength2 += 1;
      } else {
        byteLength2 += 3;
      }
    } else {
      byteLength2 += utf8_code2len(codePoint);
    }
    prevCodePoint = codePoint;
  }
  return byteLength2;
}
function upperFirst(str) {
  return str?.length > 0 ? str[0].toUpperCase() + str.slice(1) : "";
}
function characterIndex(content, byteIndex2) {
  if (byteIndex2 == 0) return 0;
  let characterIndex2 = 0;
  let total = 0;
  for (let codePoint of content) {
    let code = codePoint.codePointAt(0);
    if (code >= UTF8_4BYTES_START) {
      characterIndex2 += 2;
      total += 4;
    } else {
      characterIndex2 += 1;
      total += utf8_code2len(code);
    }
    if (total >= byteIndex2) break;
  }
  return characterIndex2;
}
function utf8_code2len(code) {
  if (code < UTF8_2BYTES_START) return 1;
  if (code < UTF8_3BYTES_START) return 2;
  if (code < UTF8_4BYTES_START) return 3;
  return 4;
}
function byteSlice(content, start, end) {
  let si = characterIndex(content, start);
  let ei = end === void 0 ? void 0 : characterIndex(content, end);
  return content.slice(si, ei);
}
function isAlphabet(code) {
  if (code >= 65 && code <= 90) return true;
  if (code >= 97 && code <= 122) return true;
  return false;
}
function contentToLines(content, eol) {
  if (eol && content.endsWith("\n")) {
    return content.slice(0, -1).split("\n");
  }
  return content.split("\n");
}
function hasUpperCase(str) {
  for (let i2 = 0, l2 = str.length; i2 < l2; i2++) {
    let code = str.charCodeAt(i2);
    if (code >= 65 && code <= 90) {
      return true;
    }
  }
  return false;
}
function smartMatch(a2, b2) {
  if (a2 === b2) return true;
  let c2 = b2.charCodeAt(0);
  if (c2 >= 65 && c2 <= 90) {
    if (c2 + 32 === a2.charCodeAt(0)) return true;
  }
  return false;
}
function smartcaseIndex(input, other) {
  if (input.length > other.length) return -1;
  if (input.length === 0) return 0;
  if (!hasUpperCase(input)) {
    return other.toLowerCase().indexOf(input);
  }
  let total = input.length;
  let checked = 0;
  for (let i2 = 0; i2 < other.length; i2++) {
    let ch = other[i2];
    if (smartMatch(input[checked], ch)) {
      checked++;
      if (checked === total) {
        return i2 - checked + 1;
      }
    } else if (checked > 0) {
      i2 = i2 - checked;
      checked = 0;
    }
  }
  return -1;
}
function bytes(text, max) {
  max = max ?? text.length;
  let lens = new Uint8Array(max);
  let ascii = true;
  let prevCodePoint;
  for (let i2 = 0; i2 < max; i2++) {
    let code = text.charCodeAt(i2);
    let len;
    if (isLowSurrogate(code)) {
      if (prevCodePoint && isHighSurrogate(prevCodePoint)) {
        len = 1;
      } else {
        len = 3;
      }
    } else {
      len = utf8_code2len(code);
    }
    if (ascii && len > 1) ascii = false;
    lens[i2] = len;
    prevCodePoint = code;
  }
  return (characterIndex2) => {
    if (characterIndex2 === 0) return 0;
    if (ascii) return Math.min(characterIndex2, max);
    let res = 0;
    for (let i2 = 0; i2 < Math.min(characterIndex2, max); i2++) {
      res += lens[i2];
    }
    return res;
  };
}
function getUnicodeClass(char) {
  if (char == null || char.length === 0) return "other";
  const charCode = char.charCodeAt(0);
  if (charCode <= 127) {
    if (charCode === 0) return "other";
    if (/\s/.test(char)) return "space";
    if (/\w/.test(char)) return "word";
    return "punctuation";
  }
  for (const [start, end, category] of nonAsciiUnicodeClassRanges) {
    if (start <= charCode && charCode <= end) {
      return category;
    }
  }
  return "other";
}
var UTF8_2BYTES_START, UTF8_3BYTES_START, UTF8_4BYTES_START, encoding, asciiTable, nonAsciiUnicodeClassRanges;
var init_string = __esm({
  "src/util/string.ts"() {
    "use strict";
    init_array();
    init_charCode();
    UTF8_2BYTES_START = 128;
    UTF8_3BYTES_START = 2048;
    UTF8_4BYTES_START = 65536;
    encoding = "utf8";
    asciiTable = [
      [48, 57],
      [65, 90],
      [97, 122]
    ];
    nonAsciiUnicodeClassRanges = [
      [894, 894, "punctuation"],
      [903, 903, "punctuation"],
      [1370, 1375, "punctuation"],
      [1417, 1417, "punctuation"],
      [1470, 1470, "punctuation"],
      [1472, 1472, "punctuation"],
      [1475, 1475, "punctuation"],
      [1523, 1524, "punctuation"],
      [1548, 1548, "punctuation"],
      [1563, 1563, "punctuation"],
      [1567, 1567, "punctuation"],
      [1642, 1645, "punctuation"],
      [1748, 1748, "punctuation"],
      [1792, 1805, "punctuation"],
      [2404, 2405, "punctuation"],
      [2416, 2416, "punctuation"],
      [3572, 3572, "punctuation"],
      [3663, 3663, "punctuation"],
      [3674, 3675, "punctuation"],
      [3844, 3858, "punctuation"],
      [3898, 3901, "punctuation"],
      [3973, 3973, "punctuation"],
      [4170, 4175, "punctuation"],
      [4347, 4347, "punctuation"],
      [4961, 4968, "punctuation"],
      [5741, 5742, "punctuation"],
      [5760, 5760, "space"],
      [5787, 5788, "punctuation"],
      [5867, 5869, "punctuation"],
      [5941, 5942, "punctuation"],
      [6100, 6108, "punctuation"],
      [6144, 6154, "punctuation"],
      [8192, 8203, "space"],
      [8204, 8231, "punctuation"],
      [8232, 8233, "space"],
      [8234, 8238, "punctuation"],
      [8239, 8239, "space"],
      [8240, 8286, "punctuation"],
      [8287, 8287, "space"],
      [8288, 10239, "punctuation"],
      [8304, 8319, "superscript"],
      [8320, 8340, "subscript"],
      [8352, 10239, "punctuation"],
      [10240, 10495, "braille"],
      [10496, 10648, "punctuation"],
      [10712, 10715, "punctuation"],
      [10748, 10749, "punctuation"],
      [11776, 11903, "punctuation"],
      [12288, 12288, "space"],
      [12289, 12320, "punctuation"],
      [12336, 12336, "punctuation"],
      [12349, 12349, "punctuation"],
      [12352, 12447, "hiragana"],
      [12448, 12543, "katakana"],
      [13056, 40959, "cjkideograph"],
      [44032, 55203, "hangulsyllable"],
      [63744, 64255, "cjkideograph"],
      [64830, 64831, "punctuation"],
      [65072, 65131, "punctuation"],
      [65280, 65295, "punctuation"],
      [65306, 65312, "punctuation"],
      [65339, 65344, "punctuation"],
      [65371, 65381, "punctuation"],
      [118784, 119375, "other"],
      [119808, 120831, "other"],
      [126976, 127743, "other"],
      [127744, 129535, "other"],
      [131072, 173791, "cjkideograph"],
      [173824, 177983, "cjkideograph"],
      [177984, 178207, "cjkideograph"],
      [194560, 195103, "cjkideograph"]
    ];
  }
});

// src/events.ts
var logger2, debounceTime, Events, events_default;
var init_events = __esm({
  "src/events.ts"() {
    "use strict";
    init_logger();
    init_util();
    init_errors();
    init_is();
    init_object();
    init_protocol();
    init_string();
    init_extensionId();
    logger2 = createLogger("events");
    debounceTime = getConditionValue(100, 10);
    Events = class {
      handlers = /* @__PURE__ */ new Map();
      _cursor;
      _bufnr = 1;
      timeoutMap = /* @__PURE__ */ new Map();
      // bufnr & character
      _recentInserts = [];
      _lastChange = 0;
      _insertMode = false;
      _pumAlignTop = false;
      _pumVisible = false;
      _completing = false;
      _requesting = false;
      _ready = false;
      _mode = "n";
      _pumInserted = false;
      /**
       * @internal
       */
      timeout = 1e3;
      /**
       * @internal
       */
      // public completing = false
      set requesting(val) {
        this._requesting = val;
      }
      get requesting() {
        return this._requesting;
      }
      /**
       * @internal
       */
      get ready() {
        return this._ready;
      }
      /**
       * @internal
       */
      get mode() {
        return this._mode;
      }
      /**
       * @internal
       */
      get pumInserted() {
        return this._pumInserted;
      }
      fireVisibleEvent(ev) {
        let { winid } = ev;
        let timer = this.timeoutMap.get(winid);
        if (timer) clearTimeout(timer);
        timer = setTimeout(() => {
          this.fire("WindowVisible", [ev]).catch(onUnexpectedError);
        }, debounceTime);
        this.timeoutMap.set(winid, timer);
      }
      clearVisibleTimer(winid) {
        let timer = this.timeoutMap.get(winid);
        if (timer) {
          this.timeoutMap.delete(winid);
          clearTimeout(timer);
        }
      }
      get completing() {
        return this._completing;
      }
      get cursor() {
        return this._cursor ?? { bufnr: this._bufnr, col: 1, lnum: 1, insert: false };
      }
      /**
       * @internal
       */
      get bufnr() {
        return this._bufnr;
      }
      get pumvisible() {
        return this._pumVisible;
      }
      get pumAlignTop() {
        return this._pumAlignTop;
      }
      get insertMode() {
        return this._insertMode && this._mode.startsWith("i");
      }
      /**
       * @internal
       */
      get lastChangeTs() {
        return this._lastChange;
      }
      /**
       * Resolved when first event fired or timeout
       */
      race(events, token) {
        let disposables = [];
        return new Promise((resolve) => {
          if (number(token)) {
            let timer = setTimeout(() => {
              disposeAll(disposables);
              resolve(void 0);
            }, token);
            disposables.push(import_node4.Disposable.create(() => {
              clearTimeout(timer);
            }));
          } else if (import_node4.CancellationToken.is(token)) {
            token.onCancellationRequested(() => {
              disposeAll(disposables);
              resolve(void 0);
            }, null, disposables);
          }
          events.forEach((ev) => {
            this.on(ev, (...args) => {
              disposeAll(disposables);
              resolve({ name: ev, args });
            }, null, disposables);
          });
        });
      }
      /**
       * @internal
       */
      async fire(event, args) {
        switch (event) {
          case "ready" /* Ready */:
            this._ready = true;
            break;
          case "InsertEnter" /* InsertEnter */:
            this._insertMode = true;
            break;
          case "InsertLeave" /* InsertLeave */:
            this._insertMode = false;
            this._pumVisible = false;
            this._recentInserts = [];
            break;
          case "CompleteStart" /* CompleteStart */:
            this._completing = true;
            this._pumInserted = false;
            break;
          case "CompleteDone" /* CompleteDone */:
            this._completing = false;
            this._pumInserted = false;
            break;
          case "CursorHoldI" /* CursorHoldI */:
          case "CursorMovedI" /* CursorMovedI */:
            this._bufnr = args[0];
            if (!this._insertMode) {
              this._insertMode = true;
              void this.fire("InsertEnter" /* InsertEnter */, [args[0]]);
            }
            break;
          case "CursorHold" /* CursorHold */:
          case "CursorMoved" /* CursorMoved */:
            this._bufnr = args[0];
            if (this._insertMode) {
              this._insertMode = false;
              void this.fire("InsertLeave" /* InsertLeave */, [args[0]]);
            }
            break;
          case "MenuPopupChanged" /* MenuPopupChanged */:
            this._pumVisible = true;
            this._pumAlignTop = args[1] > args[0].row;
            this._pumInserted = args[0].inserted;
            break;
          case "InsertCharPre" /* InsertCharPre */:
            this._recentInserts.push([args[1], args[0]]);
            break;
          case "TextChanged" /* TextChanged */:
            this._lastChange = Date.now();
            break;
          case "BufEnter" /* BufEnter */:
            this._bufnr = args[0];
            break;
          case "TextChangedI" /* TextChangedI */:
          case "TextChangedP" /* TextChangedP */: {
            this._lastChange = Date.now();
            let info = args[1];
            let pre = byteSlice(info.line ?? "", 0, info.col - 1);
            let arr;
            arr = this._recentInserts.filter((o2) => o2[0] == args[0]);
            this._bufnr = args[0];
            this._recentInserts = [];
            info.pre = pre;
            info.insertChars = arr.map((o2) => o2[1]);
            this._cursor = Object.freeze({
              bufnr: args[0],
              lnum: info.lnum,
              col: info.col,
              insert: true
            });
            if (arr.length && pre.length) {
              let character = pre.slice(-1);
              if (arr.findIndex((o2) => o2[1] == character) !== -1) {
                info.insertChar = character;
                process.nextTick(() => {
                  void this.fire("TextInsert" /* TextInsert */, [...args, character]);
                });
              }
            }
            break;
          }
          case "BufWinEnter" /* BufWinEnter */: {
            const [bufnr, winid, region] = args;
            this.fireVisibleEvent({ bufnr, winid, region });
            break;
          }
          case "WinScrolled" /* WinScrolled */: {
            const [winid, bufnr, region] = args;
            this.fireVisibleEvent({ bufnr, winid, region });
            break;
          }
          case "BufWinLeave" /* BufWinLeave */:
            this.clearVisibleTimer(args[1]);
            break;
          case "WinClosed" /* WinClosed */:
            this.clearVisibleTimer(args[0]);
            break;
          case "ModeChanged" /* ModeChanged */: {
            this._mode = args[0].new_mode;
            break;
          }
        }
        if (event == "CursorMoved" /* CursorMoved */ || event == "CursorMovedI" /* CursorMovedI */) {
          args.push(this._recentInserts.length > 0);
          let cursor = {
            bufnr: args[0],
            lnum: args[1][0],
            col: args[1][1],
            insert: event == "CursorMovedI" /* CursorMovedI */
          };
          if (this._cursor && equals(this._cursor, cursor)) return;
          this._cursor = cursor;
        }
        let cbs = this.handlers.get(event);
        if (cbs?.length) {
          let fns = cbs.slice();
          let traceSlow = this.requesting;
          await Promise.allSettled(fns.map((fn) => {
            let promiseFn = async () => {
              let timer;
              if (traceSlow) {
                timer = setTimeout(() => {
                  let extensionId = getExtensionId(fn);
                  let suffix = "";
                  if (extensionId) {
                    suffix = ` [extension: ${extensionId}]`;
                  }
                  logger2.warn(`Slow "${event}" handler detected${suffix}`, fn["stack"]);
                }, this.timeout);
              }
              try {
                await fn(args);
              } catch (e2) {
                if (!shouldIgnore(e2)) {
                  let extensionId = getExtensionId(fn);
                  let suffix = "";
                  if (extensionId) {
                    suffix = ` [extension: ${extensionId}]`;
                  }
                  logger2.error(`Error on event: ${event}${suffix}`, e2, fn["stack"]);
                }
              }
              clearTimeout(timer);
            };
            return promiseFn();
          }));
        }
      }
      on(event, handler, thisArg, disposables) {
        if (Array.isArray(event)) {
          let arr = [];
          for (let ev of event) {
            this.on(ev, handler, thisArg, arr);
          }
          let dis = import_node4.Disposable.create(() => {
            disposeAll(arr);
          });
          if (Array.isArray(disposables)) {
            disposables.push(dis);
          }
          return dis;
        } else {
          let arr = this.handlers.get(event) ?? [];
          let onFinish = () => {
            if (disposables === true && disposable) disposable.dispose();
          };
          let extensionId = getExtensionId(handler);
          let wrappedhandler = (args) => new Promise((resolve, reject) => {
            try {
              Promise.resolve(handler.apply(thisArg ?? null, args)).then(() => {
                onFinish();
                resolve(void 0);
              }, (e2) => {
                onFinish();
                reject(e2);
              });
            } catch (e2) {
              onFinish();
              reject(e2);
            }
          });
          if (true) Error.captureStackTrace(wrappedhandler);
          Object.defineProperty(wrappedhandler, extensionIdSymbol, {
            value: extensionId,
            configurable: true
          });
          arr.push(wrappedhandler);
          this.handlers.set(event, arr);
          let disposable = import_node4.Disposable.create(() => {
            let idx = arr.indexOf(wrappedhandler);
            if (idx !== -1) {
              arr.splice(idx, 1);
            }
          });
          if (Array.isArray(disposables)) {
            disposables.push(disposable);
          }
          return disposable;
        }
      }
      /**
       * @internal
       */
      once(event, handler, thisArg) {
        return this.on(event, handler, thisArg, true);
      }
    };
    events_default = new Events();
  }
});

// package.json
var version;
var init_package = __esm({
  "package.json"() {
    version = "0.0.82";
  }
});

// src/util/constants.ts
function resolveDataHome() {
  if (process.env.XDG_CONFIG_HOME) {
    try {
      if (fs.statSync(process.env.XDG_CONFIG_HOME).isDirectory()) {
        return path.join(process.env.XDG_CONFIG_HOME, "coc");
      }
    } catch (_e) {
    }
  }
  return path.join(os.homedir(), ".config", "coc");
}
var ASCII_END, VERSION, isVim, APIVERSION, floatHighlightGroup, CONFIG_FILE_NAME, configHome, dataHome, userConfigFile, pluginRoot;
var init_constants = __esm({
  "src/util/constants.ts"() {
    "use strict";
    init_package();
    init_util();
    init_node();
    ASCII_END = 128;
    VERSION = version;
    isVim = process.env.VIM_NODE_RPC == "1";
    APIVERSION = 38;
    floatHighlightGroup = "CocFloating";
    CONFIG_FILE_NAME = "coc-settings.json";
    configHome = defaultValue(process.env.COC_VIMCONFIG, path.join(os.homedir(), ".vim"));
    dataHome = defaultValue(process.env.COC_DATA_HOME, resolveDataHome());
    userConfigFile = path.join(path.normalize(configHome), CONFIG_FILE_NAME);
    pluginRoot = process.env.COC_TEST_ROOT ? process.env.COC_TEST_ROOT : __filename.endsWith("index.js") ? path.dirname(__dirname) : path.resolve(__dirname, "../..");
  }
});

// node_modules/jsonc-parser/lib/esm/impl/scanner.js
function createScanner(text, ignoreTrivia = false) {
  const len = text.length;
  let pos = 0, value = "", tokenOffset = 0, token = 16, lineNumber = 0, lineStartOffset = 0, tokenLineStartOffset = 0, prevTokenLineStartOffset = 0, scanError = 0;
  function scanHexDigits(count, exact) {
    let digits = 0;
    let value2 = 0;
    while (digits < count || !exact) {
      let ch = text.charCodeAt(pos);
      if (ch >= 48 && ch <= 57) {
        value2 = value2 * 16 + ch - 48;
      } else if (ch >= 65 && ch <= 70) {
        value2 = value2 * 16 + ch - 65 + 10;
      } else if (ch >= 97 && ch <= 102) {
        value2 = value2 * 16 + ch - 97 + 10;
      } else {
        break;
      }
      pos++;
      digits++;
    }
    if (digits < count) {
      value2 = -1;
    }
    return value2;
  }
  function setPosition(newPosition) {
    pos = newPosition;
    value = "";
    tokenOffset = 0;
    token = 16;
    scanError = 0;
  }
  function scanNumber() {
    let start = pos;
    if (text.charCodeAt(pos) === 48) {
      pos++;
    } else {
      pos++;
      while (pos < text.length && isDigit(text.charCodeAt(pos))) {
        pos++;
      }
    }
    if (pos < text.length && text.charCodeAt(pos) === 46) {
      pos++;
      if (pos < text.length && isDigit(text.charCodeAt(pos))) {
        pos++;
        while (pos < text.length && isDigit(text.charCodeAt(pos))) {
          pos++;
        }
      } else {
        scanError = 3;
        return text.substring(start, pos);
      }
    }
    let end = pos;
    if (pos < text.length && (text.charCodeAt(pos) === 69 || text.charCodeAt(pos) === 101)) {
      pos++;
      if (pos < text.length && text.charCodeAt(pos) === 43 || text.charCodeAt(pos) === 45) {
        pos++;
      }
      if (pos < text.length && isDigit(text.charCodeAt(pos))) {
        pos++;
        while (pos < text.length && isDigit(text.charCodeAt(pos))) {
          pos++;
        }
        end = pos;
      } else {
        scanError = 3;
      }
    }
    return text.substring(start, end);
  }
  function scanString() {
    let result = "", start = pos;
    while (true) {
      if (pos >= len) {
        result += text.substring(start, pos);
        scanError = 2;
        break;
      }
      const ch = text.charCodeAt(pos);
      if (ch === 34) {
        result += text.substring(start, pos);
        pos++;
        break;
      }
      if (ch === 92) {
        result += text.substring(start, pos);
        pos++;
        if (pos >= len) {
          scanError = 2;
          break;
        }
        const ch2 = text.charCodeAt(pos++);
        switch (ch2) {
          case 34:
            result += '"';
            break;
          case 92:
            result += "\\";
            break;
          case 47:
            result += "/";
            break;
          case 98:
            result += "\b";
            break;
          case 102:
            result += "\f";
            break;
          case 110:
            result += "\n";
            break;
          case 114:
            result += "\r";
            break;
          case 116:
            result += "	";
            break;
          case 117:
            const ch3 = scanHexDigits(4, true);
            if (ch3 >= 0) {
              result += String.fromCharCode(ch3);
            } else {
              scanError = 4;
            }
            break;
          default:
            scanError = 5;
        }
        start = pos;
        continue;
      }
      if (ch >= 0 && ch <= 31) {
        if (isLineBreak(ch)) {
          result += text.substring(start, pos);
          scanError = 2;
          break;
        } else {
          scanError = 6;
        }
      }
      pos++;
    }
    return result;
  }
  function scanNext() {
    value = "";
    scanError = 0;
    tokenOffset = pos;
    lineStartOffset = lineNumber;
    prevTokenLineStartOffset = tokenLineStartOffset;
    if (pos >= len) {
      tokenOffset = len;
      return token = 17;
    }
    let code = text.charCodeAt(pos);
    if (isWhiteSpace(code)) {
      do {
        pos++;
        value += String.fromCharCode(code);
        code = text.charCodeAt(pos);
      } while (isWhiteSpace(code));
      return token = 15;
    }
    if (isLineBreak(code)) {
      pos++;
      value += String.fromCharCode(code);
      if (code === 13 && text.charCodeAt(pos) === 10) {
        pos++;
        value += "\n";
      }
      lineNumber++;
      tokenLineStartOffset = pos;
      return token = 14;
    }
    switch (code) {
      // tokens: []{}:,
      case 123:
        pos++;
        return token = 1;
      case 125:
        pos++;
        return token = 2;
      case 91:
        pos++;
        return token = 3;
      case 93:
        pos++;
        return token = 4;
      case 58:
        pos++;
        return token = 6;
      case 44:
        pos++;
        return token = 5;
      // strings
      case 34:
        pos++;
        value = scanString();
        return token = 10;
      // comments
      case 47:
        const start = pos - 1;
        if (text.charCodeAt(pos + 1) === 47) {
          pos += 2;
          while (pos < len) {
            if (isLineBreak(text.charCodeAt(pos))) {
              break;
            }
            pos++;
          }
          value = text.substring(start, pos);
          return token = 12;
        }
        if (text.charCodeAt(pos + 1) === 42) {
          pos += 2;
          const safeLength = len - 1;
          let commentClosed = false;
          while (pos < safeLength) {
            const ch = text.charCodeAt(pos);
            if (ch === 42 && text.charCodeAt(pos + 1) === 47) {
              pos += 2;
              commentClosed = true;
              break;
            }
            pos++;
            if (isLineBreak(ch)) {
              if (ch === 13 && text.charCodeAt(pos) === 10) {
                pos++;
              }
              lineNumber++;
              tokenLineStartOffset = pos;
            }
          }
          if (!commentClosed) {
            pos++;
            scanError = 1;
          }
          value = text.substring(start, pos);
          return token = 13;
        }
        value += String.fromCharCode(code);
        pos++;
        return token = 16;
      // numbers
      case 45:
        value += String.fromCharCode(code);
        pos++;
        if (pos === len || !isDigit(text.charCodeAt(pos))) {
          return token = 16;
        }
      // found a minus, followed by a number so
      // we fall through to proceed with scanning
      // numbers
      case 48:
      case 49:
      case 50:
      case 51:
      case 52:
      case 53:
      case 54:
      case 55:
      case 56:
      case 57:
        value += scanNumber();
        return token = 11;
      // literals and unknown symbols
      default:
        while (pos < len && isUnknownContentCharacter(code)) {
          pos++;
          code = text.charCodeAt(pos);
        }
        if (tokenOffset !== pos) {
          value = text.substring(tokenOffset, pos);
          switch (value) {
            case "true":
              return token = 8;
            case "false":
              return token = 9;
            case "null":
              return token = 7;
          }
          return token = 16;
        }
        value += String.fromCharCode(code);
        pos++;
        return token = 16;
    }
  }
  function isUnknownContentCharacter(code) {
    if (isWhiteSpace(code) || isLineBreak(code)) {
      return false;
    }
    switch (code) {
      case 125:
      case 93:
      case 123:
      case 91:
      case 34:
      case 58:
      case 44:
      case 47:
        return false;
    }
    return true;
  }
  function scanNextNonTrivia() {
    let result;
    do {
      result = scanNext();
    } while (result >= 12 && result <= 15);
    return result;
  }
  return {
    setPosition,
    getPosition: () => pos,
    scan: ignoreTrivia ? scanNextNonTrivia : scanNext,
    getToken: () => token,
    getTokenValue: () => value,
    getTokenOffset: () => tokenOffset,
    getTokenLength: () => pos - tokenOffset,
    getTokenStartLine: () => lineStartOffset,
    getTokenStartCharacter: () => tokenOffset - prevTokenLineStartOffset,
    getTokenError: () => scanError
  };
}
function isWhiteSpace(ch) {
  return ch === 32 || ch === 9;
}
function isLineBreak(ch) {
  return ch === 10 || ch === 13;
}
function isDigit(ch) {
  return ch >= 48 && ch <= 57;
}
var CharacterCodes;
var init_scanner = __esm({
  "node_modules/jsonc-parser/lib/esm/impl/scanner.js"() {
    "use strict";
    (function(CharacterCodes2) {
      CharacterCodes2[CharacterCodes2["lineFeed"] = 10] = "lineFeed";
      CharacterCodes2[CharacterCodes2["carriageReturn"] = 13] = "carriageReturn";
      CharacterCodes2[CharacterCodes2["space"] = 32] = "space";
      CharacterCodes2[CharacterCodes2["_0"] = 48] = "_0";
      CharacterCodes2[CharacterCodes2["_1"] = 49] = "_1";
      CharacterCodes2[CharacterCodes2["_2"] = 50] = "_2";
      CharacterCodes2[CharacterCodes2["_3"] = 51] = "_3";
      CharacterCodes2[CharacterCodes2["_4"] = 52] = "_4";
      CharacterCodes2[CharacterCodes2["_5"] = 53] = "_5";
      CharacterCodes2[CharacterCodes2["_6"] = 54] = "_6";
      CharacterCodes2[CharacterCodes2["_7"] = 55] = "_7";
      CharacterCodes2[CharacterCodes2["_8"] = 56] = "_8";
      CharacterCodes2[CharacterCodes2["_9"] = 57] = "_9";
      CharacterCodes2[CharacterCodes2["a"] = 97] = "a";
      CharacterCodes2[CharacterCodes2["b"] = 98] = "b";
      CharacterCodes2[CharacterCodes2["c"] = 99] = "c";
      CharacterCodes2[CharacterCodes2["d"] = 100] = "d";
      CharacterCodes2[CharacterCodes2["e"] = 101] = "e";
      CharacterCodes2[CharacterCodes2["f"] = 102] = "f";
      CharacterCodes2[CharacterCodes2["g"] = 103] = "g";
      CharacterCodes2[CharacterCodes2["h"] = 104] = "h";
      CharacterCodes2[CharacterCodes2["i"] = 105] = "i";
      CharacterCodes2[CharacterCodes2["j"] = 106] = "j";
      CharacterCodes2[CharacterCodes2["k"] = 107] = "k";
      CharacterCodes2[CharacterCodes2["l"] = 108] = "l";
      CharacterCodes2[CharacterCodes2["m"] = 109] = "m";
      CharacterCodes2[CharacterCodes2["n"] = 110] = "n";
      CharacterCodes2[CharacterCodes2["o"] = 111] = "o";
      CharacterCodes2[CharacterCodes2["p"] = 112] = "p";
      CharacterCodes2[CharacterCodes2["q"] = 113] = "q";
      CharacterCodes2[CharacterCodes2["r"] = 114] = "r";
      CharacterCodes2[CharacterCodes2["s"] = 115] = "s";
      CharacterCodes2[CharacterCodes2["t"] = 116] = "t";
      CharacterCodes2[CharacterCodes2["u"] = 117] = "u";
      CharacterCodes2[CharacterCodes2["v"] = 118] = "v";
      CharacterCodes2[CharacterCodes2["w"] = 119] = "w";
      CharacterCodes2[CharacterCodes2["x"] = 120] = "x";
      CharacterCodes2[CharacterCodes2["y"] = 121] = "y";
      CharacterCodes2[CharacterCodes2["z"] = 122] = "z";
      CharacterCodes2[CharacterCodes2["A"] = 65] = "A";
      CharacterCodes2[CharacterCodes2["B"] = 66] = "B";
      CharacterCodes2[CharacterCodes2["C"] = 67] = "C";
      CharacterCodes2[CharacterCodes2["D"] = 68] = "D";
      CharacterCodes2[CharacterCodes2["E"] = 69] = "E";
      CharacterCodes2[CharacterCodes2["F"] = 70] = "F";
      CharacterCodes2[CharacterCodes2["G"] = 71] = "G";
      CharacterCodes2[CharacterCodes2["H"] = 72] = "H";
      CharacterCodes2[CharacterCodes2["I"] = 73] = "I";
      CharacterCodes2[CharacterCodes2["J"] = 74] = "J";
      CharacterCodes2[CharacterCodes2["K"] = 75] = "K";
      CharacterCodes2[CharacterCodes2["L"] = 76] = "L";
      CharacterCodes2[CharacterCodes2["M"] = 77] = "M";
      CharacterCodes2[CharacterCodes2["N"] = 78] = "N";
      CharacterCodes2[CharacterCodes2["O"] = 79] = "O";
      CharacterCodes2[CharacterCodes2["P"] = 80] = "P";
      CharacterCodes2[CharacterCodes2["Q"] = 81] = "Q";
      CharacterCodes2[CharacterCodes2["R"] = 82] = "R";
      CharacterCodes2[CharacterCodes2["S"] = 83] = "S";
      CharacterCodes2[CharacterCodes2["T"] = 84] = "T";
      CharacterCodes2[CharacterCodes2["U"] = 85] = "U";
      CharacterCodes2[CharacterCodes2["V"] = 86] = "V";
      CharacterCodes2[CharacterCodes2["W"] = 87] = "W";
      CharacterCodes2[CharacterCodes2["X"] = 88] = "X";
      CharacterCodes2[CharacterCodes2["Y"] = 89] = "Y";
      CharacterCodes2[CharacterCodes2["Z"] = 90] = "Z";
      CharacterCodes2[CharacterCodes2["asterisk"] = 42] = "asterisk";
      CharacterCodes2[CharacterCodes2["backslash"] = 92] = "backslash";
      CharacterCodes2[CharacterCodes2["closeBrace"] = 125] = "closeBrace";
      CharacterCodes2[CharacterCodes2["closeBracket"] = 93] = "closeBracket";
      CharacterCodes2[CharacterCodes2["colon"] = 58] = "colon";
      CharacterCodes2[CharacterCodes2["comma"] = 44] = "comma";
      CharacterCodes2[CharacterCodes2["dot"] = 46] = "dot";
      CharacterCodes2[CharacterCodes2["doubleQuote"] = 34] = "doubleQuote";
      CharacterCodes2[CharacterCodes2["minus"] = 45] = "minus";
      CharacterCodes2[CharacterCodes2["openBrace"] = 123] = "openBrace";
      CharacterCodes2[CharacterCodes2["openBracket"] = 91] = "openBracket";
      CharacterCodes2[CharacterCodes2["plus"] = 43] = "plus";
      CharacterCodes2[CharacterCodes2["slash"] = 47] = "slash";
      CharacterCodes2[CharacterCodes2["formFeed"] = 12] = "formFeed";
      CharacterCodes2[CharacterCodes2["tab"] = 9] = "tab";
    })(CharacterCodes || (CharacterCodes = {}));
  }
});

// node_modules/jsonc-parser/lib/esm/impl/string-intern.js
var cachedSpaces, maxCachedValues, cachedBreakLinesWithSpaces, supportedEols;
var init_string_intern = __esm({
  "node_modules/jsonc-parser/lib/esm/impl/string-intern.js"() {
    cachedSpaces = new Array(20).fill(0).map((_2, index) => {
      return " ".repeat(index);
    });
    maxCachedValues = 200;
    cachedBreakLinesWithSpaces = {
      " ": {
        "\n": new Array(maxCachedValues).fill(0).map((_2, index) => {
          return "\n" + " ".repeat(index);
        }),
        "\r": new Array(maxCachedValues).fill(0).map((_2, index) => {
          return "\r" + " ".repeat(index);
        }),
        "\r\n": new Array(maxCachedValues).fill(0).map((_2, index) => {
          return "\r\n" + " ".repeat(index);
        })
      },
      "	": {
        "\n": new Array(maxCachedValues).fill(0).map((_2, index) => {
          return "\n" + "	".repeat(index);
        }),
        "\r": new Array(maxCachedValues).fill(0).map((_2, index) => {
          return "\r" + "	".repeat(index);
        }),
        "\r\n": new Array(maxCachedValues).fill(0).map((_2, index) => {
          return "\r\n" + "	".repeat(index);
        })
      }
    };
    supportedEols = ["\n", "\r", "\r\n"];
  }
});

// node_modules/jsonc-parser/lib/esm/impl/format.js
function format3(documentText, range2, options3) {
  let initialIndentLevel;
  let formatText;
  let formatTextStart;
  let rangeStart;
  let rangeEnd;
  if (range2) {
    rangeStart = range2.offset;
    rangeEnd = rangeStart + range2.length;
    formatTextStart = rangeStart;
    while (formatTextStart > 0 && !isEOL(documentText, formatTextStart - 1)) {
      formatTextStart--;
    }
    let endOffset = rangeEnd;
    while (endOffset < documentText.length && !isEOL(documentText, endOffset)) {
      endOffset++;
    }
    formatText = documentText.substring(formatTextStart, endOffset);
    initialIndentLevel = computeIndentLevel(formatText, options3);
  } else {
    formatText = documentText;
    initialIndentLevel = 0;
    formatTextStart = 0;
    rangeStart = 0;
    rangeEnd = documentText.length;
  }
  const eol = getEOL(options3, documentText);
  const eolFastPathSupported = supportedEols.includes(eol);
  let numberLineBreaks = 0;
  let indentLevel = 0;
  let indentValue;
  if (options3.insertSpaces) {
    indentValue = cachedSpaces[options3.tabSize || 4] ?? repeat(cachedSpaces[1], options3.tabSize || 4);
  } else {
    indentValue = "	";
  }
  const indentType = indentValue === "	" ? "	" : " ";
  let scanner = createScanner(formatText, false);
  let hasError = false;
  function newLinesAndIndent() {
    if (numberLineBreaks > 1) {
      return repeat(eol, numberLineBreaks) + repeat(indentValue, initialIndentLevel + indentLevel);
    }
    const amountOfSpaces = indentValue.length * (initialIndentLevel + indentLevel);
    if (!eolFastPathSupported || amountOfSpaces > cachedBreakLinesWithSpaces[indentType][eol].length) {
      return eol + repeat(indentValue, initialIndentLevel + indentLevel);
    }
    if (amountOfSpaces <= 0) {
      return eol;
    }
    return cachedBreakLinesWithSpaces[indentType][eol][amountOfSpaces];
  }
  function scanNext() {
    let token = scanner.scan();
    numberLineBreaks = 0;
    while (token === 15 || token === 14) {
      if (token === 14 && options3.keepLines) {
        numberLineBreaks += 1;
      } else if (token === 14) {
        numberLineBreaks = 1;
      }
      token = scanner.scan();
    }
    hasError = token === 16 || scanner.getTokenError() !== 0;
    return token;
  }
  const editOperations = [];
  function addEdit(text, startOffset, endOffset) {
    if (!hasError && (!range2 || startOffset < rangeEnd && endOffset > rangeStart) && documentText.substring(startOffset, endOffset) !== text) {
      editOperations.push({ offset: startOffset, length: endOffset - startOffset, content: text });
    }
  }
  let firstToken = scanNext();
  if (options3.keepLines && numberLineBreaks > 0) {
    addEdit(repeat(eol, numberLineBreaks), 0, 0);
  }
  if (firstToken !== 17) {
    let firstTokenStart = scanner.getTokenOffset() + formatTextStart;
    let initialIndent = indentValue.length * initialIndentLevel < 20 && options3.insertSpaces ? cachedSpaces[indentValue.length * initialIndentLevel] : repeat(indentValue, initialIndentLevel);
    addEdit(initialIndent, formatTextStart, firstTokenStart);
  }
  while (firstToken !== 17) {
    let firstTokenEnd = scanner.getTokenOffset() + scanner.getTokenLength() + formatTextStart;
    let secondToken = scanNext();
    let replaceContent = "";
    let needsLineBreak = false;
    while (numberLineBreaks === 0 && (secondToken === 12 || secondToken === 13)) {
      let commentTokenStart = scanner.getTokenOffset() + formatTextStart;
      addEdit(cachedSpaces[1], firstTokenEnd, commentTokenStart);
      firstTokenEnd = scanner.getTokenOffset() + scanner.getTokenLength() + formatTextStart;
      needsLineBreak = secondToken === 12;
      replaceContent = needsLineBreak ? newLinesAndIndent() : "";
      secondToken = scanNext();
    }
    if (secondToken === 2) {
      if (firstToken !== 1) {
        indentLevel--;
      }
      ;
      if (options3.keepLines && numberLineBreaks > 0 || !options3.keepLines && firstToken !== 1) {
        replaceContent = newLinesAndIndent();
      } else if (options3.keepLines) {
        replaceContent = cachedSpaces[1];
      }
    } else if (secondToken === 4) {
      if (firstToken !== 3) {
        indentLevel--;
      }
      ;
      if (options3.keepLines && numberLineBreaks > 0 || !options3.keepLines && firstToken !== 3) {
        replaceContent = newLinesAndIndent();
      } else if (options3.keepLines) {
        replaceContent = cachedSpaces[1];
      }
    } else {
      switch (firstToken) {
        case 3:
        case 1:
          indentLevel++;
          if (options3.keepLines && numberLineBreaks > 0 || !options3.keepLines) {
            replaceContent = newLinesAndIndent();
          } else {
            replaceContent = cachedSpaces[1];
          }
          break;
        case 5:
          if (options3.keepLines && numberLineBreaks > 0 || !options3.keepLines) {
            replaceContent = newLinesAndIndent();
          } else {
            replaceContent = cachedSpaces[1];
          }
          break;
        case 12:
          replaceContent = newLinesAndIndent();
          break;
        case 13:
          if (numberLineBreaks > 0) {
            replaceContent = newLinesAndIndent();
          } else if (!needsLineBreak) {
            replaceContent = cachedSpaces[1];
          }
          break;
        case 6:
          if (options3.keepLines && numberLineBreaks > 0) {
            replaceContent = newLinesAndIndent();
          } else if (!needsLineBreak) {
            replaceContent = cachedSpaces[1];
          }
          break;
        case 10:
          if (options3.keepLines && numberLineBreaks > 0) {
            replaceContent = newLinesAndIndent();
          } else if (secondToken === 6 && !needsLineBreak) {
            replaceContent = "";
          }
          break;
        case 7:
        case 8:
        case 9:
        case 11:
        case 2:
        case 4:
          if (options3.keepLines && numberLineBreaks > 0) {
            replaceContent = newLinesAndIndent();
          } else {
            if ((secondToken === 12 || secondToken === 13) && !needsLineBreak) {
              replaceContent = cachedSpaces[1];
            } else if (secondToken !== 5 && secondToken !== 17) {
              hasError = true;
            }
          }
          break;
        case 16:
          hasError = true;
          break;
      }
      if (numberLineBreaks > 0 && (secondToken === 12 || secondToken === 13)) {
        replaceContent = newLinesAndIndent();
      }
    }
    if (secondToken === 17) {
      if (options3.keepLines && numberLineBreaks > 0) {
        replaceContent = newLinesAndIndent();
      } else {
        replaceContent = options3.insertFinalNewline ? eol : "";
      }
    }
    const secondTokenStart = scanner.getTokenOffset() + formatTextStart;
    addEdit(replaceContent, firstTokenEnd, secondTokenStart);
    firstToken = secondToken;
  }
  return editOperations;
}
function repeat(s2, count) {
  let result = "";
  for (let i2 = 0; i2 < count; i2++) {
    result += s2;
  }
  return result;
}
function computeIndentLevel(content, options3) {
  let i2 = 0;
  let nChars = 0;
  const tabSize = options3.tabSize || 4;
  while (i2 < content.length) {
    let ch = content.charAt(i2);
    if (ch === cachedSpaces[1]) {
      nChars++;
    } else if (ch === "	") {
      nChars += tabSize;
    } else {
      break;
    }
    i2++;
  }
  return Math.floor(nChars / tabSize);
}
function getEOL(options3, text) {
  for (let i2 = 0; i2 < text.length; i2++) {
    const ch = text.charAt(i2);
    if (ch === "\r") {
      if (i2 + 1 < text.length && text.charAt(i2 + 1) === "\n") {
        return "\r\n";
      }
      return "\r";
    } else if (ch === "\n") {
      return "\n";
    }
  }
  return options3 && options3.eol || "\n";
}
function isEOL(text, offset) {
  return "\r\n".indexOf(text.charAt(offset)) !== -1;
}
var init_format = __esm({
  "node_modules/jsonc-parser/lib/esm/impl/format.js"() {
    "use strict";
    init_scanner();
    init_string_intern();
  }
});

// node_modules/jsonc-parser/lib/esm/impl/parser.js
function parse(text, errors = [], options3 = ParseOptions.DEFAULT) {
  let currentProperty = null;
  let currentParent = [];
  const previousParents = [];
  function onValue(value) {
    if (Array.isArray(currentParent)) {
      currentParent.push(value);
    } else if (currentProperty !== null) {
      currentParent[currentProperty] = value;
    }
  }
  const visitor = {
    onObjectBegin: () => {
      const object = {};
      onValue(object);
      previousParents.push(currentParent);
      currentParent = object;
      currentProperty = null;
    },
    onObjectProperty: (name2) => {
      currentProperty = name2;
    },
    onObjectEnd: () => {
      currentParent = previousParents.pop();
    },
    onArrayBegin: () => {
      const array = [];
      onValue(array);
      previousParents.push(currentParent);
      currentParent = array;
      currentProperty = null;
    },
    onArrayEnd: () => {
      currentParent = previousParents.pop();
    },
    onLiteralValue: onValue,
    onError: (error, offset, length) => {
      errors.push({ error, offset, length });
    }
  };
  visit(text, visitor, options3);
  return currentParent[0];
}
function parseTree(text, errors = [], options3 = ParseOptions.DEFAULT) {
  let currentParent = { type: "array", offset: -1, length: -1, children: [], parent: void 0 };
  function ensurePropertyComplete(endOffset) {
    if (currentParent.type === "property") {
      currentParent.length = endOffset - currentParent.offset;
      currentParent = currentParent.parent;
    }
  }
  function onValue(valueNode) {
    currentParent.children.push(valueNode);
    return valueNode;
  }
  const visitor = {
    onObjectBegin: (offset) => {
      currentParent = onValue({ type: "object", offset, length: -1, parent: currentParent, children: [] });
    },
    onObjectProperty: (name2, offset, length) => {
      currentParent = onValue({ type: "property", offset, length: -1, parent: currentParent, children: [] });
      currentParent.children.push({ type: "string", value: name2, offset, length, parent: currentParent });
    },
    onObjectEnd: (offset, length) => {
      ensurePropertyComplete(offset + length);
      currentParent.length = offset + length - currentParent.offset;
      currentParent = currentParent.parent;
      ensurePropertyComplete(offset + length);
    },
    onArrayBegin: (offset, length) => {
      currentParent = onValue({ type: "array", offset, length: -1, parent: currentParent, children: [] });
    },
    onArrayEnd: (offset, length) => {
      currentParent.length = offset + length - currentParent.offset;
      currentParent = currentParent.parent;
      ensurePropertyComplete(offset + length);
    },
    onLiteralValue: (value, offset, length) => {
      onValue({ type: getNodeType(value), offset, length, parent: currentParent, value });
      ensurePropertyComplete(offset + length);
    },
    onSeparator: (sep2, offset, length) => {
      if (currentParent.type === "property") {
        if (sep2 === ":") {
          currentParent.colonOffset = offset;
        } else if (sep2 === ",") {
          ensurePropertyComplete(offset);
        }
      }
    },
    onError: (error, offset, length) => {
      errors.push({ error, offset, length });
    }
  };
  visit(text, visitor, options3);
  const result = currentParent.children[0];
  if (result) {
    delete result.parent;
  }
  return result;
}
function findNodeAtLocation(root, path4) {
  if (!root) {
    return void 0;
  }
  let node = root;
  for (let segment of path4) {
    if (typeof segment === "string") {
      if (node.type !== "object" || !Array.isArray(node.children)) {
        return void 0;
      }
      let found = false;
      for (const propertyNode of node.children) {
        if (Array.isArray(propertyNode.children) && propertyNode.children[0].value === segment && propertyNode.children.length === 2) {
          node = propertyNode.children[1];
          found = true;
          break;
        }
      }
      if (!found) {
        return void 0;
      }
    } else {
      const index = segment;
      if (node.type !== "array" || index < 0 || !Array.isArray(node.children) || index >= node.children.length) {
        return void 0;
      }
      node = node.children[index];
    }
  }
  return node;
}
function visit(text, visitor, options3 = ParseOptions.DEFAULT) {
  const _scanner = createScanner(text, false);
  const _jsonPath = [];
  let suppressedCallbacks = 0;
  function toNoArgVisit(visitFunction) {
    return visitFunction ? () => suppressedCallbacks === 0 && visitFunction(_scanner.getTokenOffset(), _scanner.getTokenLength(), _scanner.getTokenStartLine(), _scanner.getTokenStartCharacter()) : () => true;
  }
  function toOneArgVisit(visitFunction) {
    return visitFunction ? (arg) => suppressedCallbacks === 0 && visitFunction(arg, _scanner.getTokenOffset(), _scanner.getTokenLength(), _scanner.getTokenStartLine(), _scanner.getTokenStartCharacter()) : () => true;
  }
  function toOneArgVisitWithPath(visitFunction) {
    return visitFunction ? (arg) => suppressedCallbacks === 0 && visitFunction(arg, _scanner.getTokenOffset(), _scanner.getTokenLength(), _scanner.getTokenStartLine(), _scanner.getTokenStartCharacter(), () => _jsonPath.slice()) : () => true;
  }
  function toBeginVisit(visitFunction) {
    return visitFunction ? () => {
      if (suppressedCallbacks > 0) {
        suppressedCallbacks++;
      } else {
        let cbReturn = visitFunction(_scanner.getTokenOffset(), _scanner.getTokenLength(), _scanner.getTokenStartLine(), _scanner.getTokenStartCharacter(), () => _jsonPath.slice());
        if (cbReturn === false) {
          suppressedCallbacks = 1;
        }
      }
    } : () => true;
  }
  function toEndVisit(visitFunction) {
    return visitFunction ? () => {
      if (suppressedCallbacks > 0) {
        suppressedCallbacks--;
      }
      if (suppressedCallbacks === 0) {
        visitFunction(_scanner.getTokenOffset(), _scanner.getTokenLength(), _scanner.getTokenStartLine(), _scanner.getTokenStartCharacter());
      }
    } : () => true;
  }
  const onObjectBegin = toBeginVisit(visitor.onObjectBegin), onObjectProperty = toOneArgVisitWithPath(visitor.onObjectProperty), onObjectEnd = toEndVisit(visitor.onObjectEnd), onArrayBegin = toBeginVisit(visitor.onArrayBegin), onArrayEnd = toEndVisit(visitor.onArrayEnd), onLiteralValue = toOneArgVisitWithPath(visitor.onLiteralValue), onSeparator = toOneArgVisit(visitor.onSeparator), onComment = toNoArgVisit(visitor.onComment), onError = toOneArgVisit(visitor.onError);
  const disallowComments = options3 && options3.disallowComments;
  const allowTrailingComma = options3 && options3.allowTrailingComma;
  function scanNext() {
    while (true) {
      const token = _scanner.scan();
      switch (_scanner.getTokenError()) {
        case 4:
          handleError(
            14
            /* ParseErrorCode.InvalidUnicode */
          );
          break;
        case 5:
          handleError(
            15
            /* ParseErrorCode.InvalidEscapeCharacter */
          );
          break;
        case 3:
          handleError(
            13
            /* ParseErrorCode.UnexpectedEndOfNumber */
          );
          break;
        case 1:
          if (!disallowComments) {
            handleError(
              11
              /* ParseErrorCode.UnexpectedEndOfComment */
            );
          }
          break;
        case 2:
          handleError(
            12
            /* ParseErrorCode.UnexpectedEndOfString */
          );
          break;
        case 6:
          handleError(
            16
            /* ParseErrorCode.InvalidCharacter */
          );
          break;
      }
      switch (token) {
        case 12:
        case 13:
          if (disallowComments) {
            handleError(
              10
              /* ParseErrorCode.InvalidCommentToken */
            );
          } else {
            onComment();
          }
          break;
        case 16:
          handleError(
            1
            /* ParseErrorCode.InvalidSymbol */
          );
          break;
        case 15:
        case 14:
          break;
        default:
          return token;
      }
    }
  }
  function handleError(error, skipUntilAfter = [], skipUntil = []) {
    onError(error);
    if (skipUntilAfter.length + skipUntil.length > 0) {
      let token = _scanner.getToken();
      while (token !== 17) {
        if (skipUntilAfter.indexOf(token) !== -1) {
          scanNext();
          break;
        } else if (skipUntil.indexOf(token) !== -1) {
          break;
        }
        token = scanNext();
      }
    }
  }
  function parseString(isValue) {
    const value = _scanner.getTokenValue();
    if (isValue) {
      onLiteralValue(value);
    } else {
      onObjectProperty(value);
      _jsonPath.push(value);
    }
    scanNext();
    return true;
  }
  function parseLiteral() {
    switch (_scanner.getToken()) {
      case 11:
        const tokenValue = _scanner.getTokenValue();
        let value = Number(tokenValue);
        if (isNaN(value)) {
          handleError(
            2
            /* ParseErrorCode.InvalidNumberFormat */
          );
          value = 0;
        }
        onLiteralValue(value);
        break;
      case 7:
        onLiteralValue(null);
        break;
      case 8:
        onLiteralValue(true);
        break;
      case 9:
        onLiteralValue(false);
        break;
      default:
        return false;
    }
    scanNext();
    return true;
  }
  function parseProperty() {
    if (_scanner.getToken() !== 10) {
      handleError(3, [], [
        2,
        5
        /* SyntaxKind.CommaToken */
      ]);
      return false;
    }
    parseString(false);
    if (_scanner.getToken() === 6) {
      onSeparator(":");
      scanNext();
      if (!parseValue()) {
        handleError(4, [], [
          2,
          5
          /* SyntaxKind.CommaToken */
        ]);
      }
    } else {
      handleError(5, [], [
        2,
        5
        /* SyntaxKind.CommaToken */
      ]);
    }
    _jsonPath.pop();
    return true;
  }
  function parseObject() {
    onObjectBegin();
    scanNext();
    let needsComma = false;
    while (_scanner.getToken() !== 2 && _scanner.getToken() !== 17) {
      if (_scanner.getToken() === 5) {
        if (!needsComma) {
          handleError(4, [], []);
        }
        onSeparator(",");
        scanNext();
        if (_scanner.getToken() === 2 && allowTrailingComma) {
          break;
        }
      } else if (needsComma) {
        handleError(6, [], []);
      }
      if (!parseProperty()) {
        handleError(4, [], [
          2,
          5
          /* SyntaxKind.CommaToken */
        ]);
      }
      needsComma = true;
    }
    onObjectEnd();
    if (_scanner.getToken() !== 2) {
      handleError(7, [
        2
        /* SyntaxKind.CloseBraceToken */
      ], []);
    } else {
      scanNext();
    }
    return true;
  }
  function parseArray() {
    onArrayBegin();
    scanNext();
    let isFirstElement = true;
    let needsComma = false;
    while (_scanner.getToken() !== 4 && _scanner.getToken() !== 17) {
      if (_scanner.getToken() === 5) {
        if (!needsComma) {
          handleError(4, [], []);
        }
        onSeparator(",");
        scanNext();
        if (_scanner.getToken() === 4 && allowTrailingComma) {
          break;
        }
      } else if (needsComma) {
        handleError(6, [], []);
      }
      if (isFirstElement) {
        _jsonPath.push(0);
        isFirstElement = false;
      } else {
        _jsonPath[_jsonPath.length - 1]++;
      }
      if (!parseValue()) {
        handleError(4, [], [
          4,
          5
          /* SyntaxKind.CommaToken */
        ]);
      }
      needsComma = true;
    }
    onArrayEnd();
    if (!isFirstElement) {
      _jsonPath.pop();
    }
    if (_scanner.getToken() !== 4) {
      handleError(8, [
        4
        /* SyntaxKind.CloseBracketToken */
      ], []);
    } else {
      scanNext();
    }
    return true;
  }
  function parseValue() {
    switch (_scanner.getToken()) {
      case 3:
        return parseArray();
      case 1:
        return parseObject();
      case 10:
        return parseString(true);
      default:
        return parseLiteral();
    }
  }
  scanNext();
  if (_scanner.getToken() === 17) {
    if (options3.allowEmptyContent) {
      return true;
    }
    handleError(4, [], []);
    return false;
  }
  if (!parseValue()) {
    handleError(4, [], []);
    return false;
  }
  if (_scanner.getToken() !== 17) {
    handleError(9, [], []);
  }
  return true;
}
function getNodeType(value) {
  switch (typeof value) {
    case "boolean":
      return "boolean";
    case "number":
      return "number";
    case "string":
      return "string";
    case "object": {
      if (!value) {
        return "null";
      } else if (Array.isArray(value)) {
        return "array";
      }
      return "object";
    }
    default:
      return "null";
  }
}
var ParseOptions;
var init_parser = __esm({
  "node_modules/jsonc-parser/lib/esm/impl/parser.js"() {
    "use strict";
    init_scanner();
    (function(ParseOptions2) {
      ParseOptions2.DEFAULT = {
        allowTrailingComma: false
      };
    })(ParseOptions || (ParseOptions = {}));
  }
});

// node_modules/jsonc-parser/lib/esm/impl/edit.js
function setProperty(text, originalPath, value, options3) {
  const path4 = originalPath.slice();
  const errors = [];
  const root = parseTree(text, errors);
  let parent = void 0;
  let lastSegment = void 0;
  while (path4.length > 0) {
    lastSegment = path4.pop();
    parent = findNodeAtLocation(root, path4);
    if (parent === void 0 && value !== void 0) {
      if (typeof lastSegment === "string") {
        value = { [lastSegment]: value };
      } else {
        value = [value];
      }
    } else {
      break;
    }
  }
  if (!parent) {
    if (value === void 0) {
      throw new Error("Can not delete in empty document");
    }
    return withFormatting(text, { offset: root ? root.offset : 0, length: root ? root.length : 0, content: JSON.stringify(value) }, options3);
  } else if (parent.type === "object" && typeof lastSegment === "string" && Array.isArray(parent.children)) {
    const existing = findNodeAtLocation(parent, [lastSegment]);
    if (existing !== void 0) {
      if (value === void 0) {
        if (!existing.parent) {
          throw new Error("Malformed AST");
        }
        const propertyIndex = parent.children.indexOf(existing.parent);
        let removeBegin;
        let removeEnd = existing.parent.offset + existing.parent.length;
        if (propertyIndex > 0) {
          let previous = parent.children[propertyIndex - 1];
          removeBegin = previous.offset + previous.length;
        } else {
          removeBegin = parent.offset + 1;
          if (parent.children.length > 1) {
            let next = parent.children[1];
            removeEnd = next.offset;
          }
        }
        return withFormatting(text, { offset: removeBegin, length: removeEnd - removeBegin, content: "" }, options3);
      } else {
        return withFormatting(text, { offset: existing.offset, length: existing.length, content: JSON.stringify(value) }, options3);
      }
    } else {
      if (value === void 0) {
        return [];
      }
      const newProperty = `${JSON.stringify(lastSegment)}: ${JSON.stringify(value)}`;
      const index = options3.getInsertionIndex ? options3.getInsertionIndex(parent.children.map((p2) => p2.children[0].value)) : parent.children.length;
      let edit2;
      if (index > 0) {
        let previous = parent.children[index - 1];
        edit2 = { offset: previous.offset + previous.length, length: 0, content: "," + newProperty };
      } else if (parent.children.length === 0) {
        edit2 = { offset: parent.offset + 1, length: 0, content: newProperty };
      } else {
        edit2 = { offset: parent.offset + 1, length: 0, content: newProperty + "," };
      }
      return withFormatting(text, edit2, options3);
    }
  } else if (parent.type === "array" && typeof lastSegment === "number" && Array.isArray(parent.children)) {
    const insertIndex = lastSegment;
    if (insertIndex === -1) {
      const newProperty = `${JSON.stringify(value)}`;
      let edit2;
      if (parent.children.length === 0) {
        edit2 = { offset: parent.offset + 1, length: 0, content: newProperty };
      } else {
        const previous = parent.children[parent.children.length - 1];
        edit2 = { offset: previous.offset + previous.length, length: 0, content: "," + newProperty };
      }
      return withFormatting(text, edit2, options3);
    } else if (value === void 0 && parent.children.length >= 0) {
      const removalIndex = lastSegment;
      const toRemove = parent.children[removalIndex];
      let edit2;
      if (parent.children.length === 1) {
        edit2 = { offset: parent.offset + 1, length: parent.length - 2, content: "" };
      } else if (parent.children.length - 1 === removalIndex) {
        let previous = parent.children[removalIndex - 1];
        let offset = previous.offset + previous.length;
        let parentEndOffset = parent.offset + parent.length;
        edit2 = { offset, length: parentEndOffset - 2 - offset, content: "" };
      } else {
        edit2 = { offset: toRemove.offset, length: parent.children[removalIndex + 1].offset - toRemove.offset, content: "" };
      }
      return withFormatting(text, edit2, options3);
    } else if (value !== void 0) {
      let edit2;
      const newProperty = `${JSON.stringify(value)}`;
      if (!options3.isArrayInsertion && parent.children.length > lastSegment) {
        const toModify = parent.children[lastSegment];
        edit2 = { offset: toModify.offset, length: toModify.length, content: newProperty };
      } else if (parent.children.length === 0 || lastSegment === 0) {
        edit2 = { offset: parent.offset + 1, length: 0, content: parent.children.length === 0 ? newProperty : newProperty + "," };
      } else {
        const index = lastSegment > parent.children.length ? parent.children.length : lastSegment;
        const previous = parent.children[index - 1];
        edit2 = { offset: previous.offset + previous.length, length: 0, content: "," + newProperty };
      }
      return withFormatting(text, edit2, options3);
    } else {
      throw new Error(`Can not ${value === void 0 ? "remove" : options3.isArrayInsertion ? "insert" : "modify"} Array index ${insertIndex} as length is not sufficient`);
    }
  } else {
    throw new Error(`Can not add ${typeof lastSegment !== "number" ? "index" : "property"} to parent of type ${parent.type}`);
  }
}
function withFormatting(text, edit2, options3) {
  if (!options3.formattingOptions) {
    return [edit2];
  }
  let newText = applyEdit(text, edit2);
  let begin = edit2.offset;
  let end = edit2.offset + edit2.content.length;
  if (edit2.length === 0 || edit2.content.length === 0) {
    while (begin > 0 && !isEOL(newText, begin - 1)) {
      begin--;
    }
    while (end < newText.length && !isEOL(newText, end)) {
      end++;
    }
  }
  const edits = format3(newText, { offset: begin, length: end - begin }, { ...options3.formattingOptions, keepLines: false });
  for (let i2 = edits.length - 1; i2 >= 0; i2--) {
    const edit3 = edits[i2];
    newText = applyEdit(newText, edit3);
    begin = Math.min(begin, edit3.offset);
    end = Math.max(end, edit3.offset + edit3.length);
    end += edit3.content.length - edit3.length;
  }
  const editLength = text.length - (newText.length - end) - begin;
  return [{ offset: begin, length: editLength, content: newText.substring(begin, end) }];
}
function applyEdit(text, edit2) {
  return text.substring(0, edit2.offset) + edit2.content + text.substring(edit2.offset + edit2.length);
}
var init_edit = __esm({
  "node_modules/jsonc-parser/lib/esm/impl/edit.js"() {
    "use strict";
    init_format();
    init_parser();
  }
});

// node_modules/jsonc-parser/lib/esm/main.js
function printParseErrorCode(code) {
  switch (code) {
    case 1:
      return "InvalidSymbol";
    case 2:
      return "InvalidNumberFormat";
    case 3:
      return "PropertyNameExpected";
    case 4:
      return "ValueExpected";
    case 5:
      return "ColonExpected";
    case 6:
      return "CommaExpected";
    case 7:
      return "CloseBraceExpected";
    case 8:
      return "CloseBracketExpected";
    case 9:
      return "EndOfFileExpected";
    case 10:
      return "InvalidCommentToken";
    case 11:
      return "UnexpectedEndOfComment";
    case 12:
      return "UnexpectedEndOfString";
    case 13:
      return "UnexpectedEndOfNumber";
    case 14:
      return "InvalidUnicode";
    case 15:
      return "InvalidEscapeCharacter";
    case 16:
      return "InvalidCharacter";
  }
  return "";
}
function modify(text, path4, value, options3) {
  return setProperty(text, path4, value, options3);
}
function applyEdits(text, edits) {
  let sortedEdits = edits.slice(0).sort((a2, b2) => {
    const diff = a2.offset - b2.offset;
    if (diff === 0) {
      return a2.length - b2.length;
    }
    return diff;
  });
  let lastModifiedOffset = text.length;
  for (let i2 = sortedEdits.length - 1; i2 >= 0; i2--) {
    let e2 = sortedEdits[i2];
    if (e2.offset + e2.length <= lastModifiedOffset) {
      text = applyEdit(text, e2);
    } else {
      throw new Error("Overlapping edit");
    }
    lastModifiedOffset = e2.offset;
  }
  return text;
}
var ScanError, SyntaxKind, parse2, visit2, ParseErrorCode;
var init_main2 = __esm({
  "node_modules/jsonc-parser/lib/esm/main.js"() {
    "use strict";
    init_format();
    init_edit();
    init_scanner();
    init_parser();
    (function(ScanError2) {
      ScanError2[ScanError2["None"] = 0] = "None";
      ScanError2[ScanError2["UnexpectedEndOfComment"] = 1] = "UnexpectedEndOfComment";
      ScanError2[ScanError2["UnexpectedEndOfString"] = 2] = "UnexpectedEndOfString";
      ScanError2[ScanError2["UnexpectedEndOfNumber"] = 3] = "UnexpectedEndOfNumber";
      ScanError2[ScanError2["InvalidUnicode"] = 4] = "InvalidUnicode";
      ScanError2[ScanError2["InvalidEscapeCharacter"] = 5] = "InvalidEscapeCharacter";
      ScanError2[ScanError2["InvalidCharacter"] = 6] = "InvalidCharacter";
    })(ScanError || (ScanError = {}));
    (function(SyntaxKind2) {
      SyntaxKind2[SyntaxKind2["OpenBraceToken"] = 1] = "OpenBraceToken";
      SyntaxKind2[SyntaxKind2["CloseBraceToken"] = 2] = "CloseBraceToken";
      SyntaxKind2[SyntaxKind2["OpenBracketToken"] = 3] = "OpenBracketToken";
      SyntaxKind2[SyntaxKind2["CloseBracketToken"] = 4] = "CloseBracketToken";
      SyntaxKind2[SyntaxKind2["CommaToken"] = 5] = "CommaToken";
      SyntaxKind2[SyntaxKind2["ColonToken"] = 6] = "ColonToken";
      SyntaxKind2[SyntaxKind2["NullKeyword"] = 7] = "NullKeyword";
      SyntaxKind2[SyntaxKind2["TrueKeyword"] = 8] = "TrueKeyword";
      SyntaxKind2[SyntaxKind2["FalseKeyword"] = 9] = "FalseKeyword";
      SyntaxKind2[SyntaxKind2["StringLiteral"] = 10] = "StringLiteral";
      SyntaxKind2[SyntaxKind2["NumericLiteral"] = 11] = "NumericLiteral";
      SyntaxKind2[SyntaxKind2["LineCommentTrivia"] = 12] = "LineCommentTrivia";
      SyntaxKind2[SyntaxKind2["BlockCommentTrivia"] = 13] = "BlockCommentTrivia";
      SyntaxKind2[SyntaxKind2["LineBreakTrivia"] = 14] = "LineBreakTrivia";
      SyntaxKind2[SyntaxKind2["Trivia"] = 15] = "Trivia";
      SyntaxKind2[SyntaxKind2["Unknown"] = 16] = "Unknown";
      SyntaxKind2[SyntaxKind2["EOF"] = 17] = "EOF";
    })(SyntaxKind || (SyntaxKind = {}));
    parse2 = parse;
    visit2 = visit;
    (function(ParseErrorCode3) {
      ParseErrorCode3[ParseErrorCode3["InvalidSymbol"] = 1] = "InvalidSymbol";
      ParseErrorCode3[ParseErrorCode3["InvalidNumberFormat"] = 2] = "InvalidNumberFormat";
      ParseErrorCode3[ParseErrorCode3["PropertyNameExpected"] = 3] = "PropertyNameExpected";
      ParseErrorCode3[ParseErrorCode3["ValueExpected"] = 4] = "ValueExpected";
      ParseErrorCode3[ParseErrorCode3["ColonExpected"] = 5] = "ColonExpected";
      ParseErrorCode3[ParseErrorCode3["CommaExpected"] = 6] = "CommaExpected";
      ParseErrorCode3[ParseErrorCode3["CloseBraceExpected"] = 7] = "CloseBraceExpected";
      ParseErrorCode3[ParseErrorCode3["CloseBracketExpected"] = 8] = "CloseBracketExpected";
      ParseErrorCode3[ParseErrorCode3["EndOfFileExpected"] = 9] = "EndOfFileExpected";
      ParseErrorCode3[ParseErrorCode3["InvalidCommentToken"] = 10] = "InvalidCommentToken";
      ParseErrorCode3[ParseErrorCode3["UnexpectedEndOfComment"] = 11] = "UnexpectedEndOfComment";
      ParseErrorCode3[ParseErrorCode3["UnexpectedEndOfString"] = 12] = "UnexpectedEndOfString";
      ParseErrorCode3[ParseErrorCode3["UnexpectedEndOfNumber"] = 13] = "UnexpectedEndOfNumber";
      ParseErrorCode3[ParseErrorCode3["InvalidUnicode"] = 14] = "InvalidUnicode";
      ParseErrorCode3[ParseErrorCode3["InvalidEscapeCharacter"] = 15] = "InvalidEscapeCharacter";
      ParseErrorCode3[ParseErrorCode3["InvalidCharacter"] = 16] = "InvalidCharacter";
    })(ParseErrorCode || (ParseErrorCode = {}));
  }
});

// node_modules/vscode-uri/lib/esm/index.mjs
function r(n2) {
  var i2 = e[n2];
  if (void 0 !== i2) return i2.exports;
  var o2 = e[n2] = { exports: {} };
  return t[n2](o2, o2.exports, r), o2.exports;
}
function s(t2, e2) {
  if (!t2.scheme && e2) throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${t2.authority}", path: "${t2.path}", query: "${t2.query}", fragment: "${t2.fragment}"}`);
  if (t2.scheme && !i.test(t2.scheme)) throw new Error("[UriError]: Scheme contains illegal characters.");
  if (t2.path) {
    if (t2.authority) {
      if (!o.test(t2.path)) throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character');
    } else if (h.test(t2.path)) throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")');
  }
}
function d(t2, e2, r2) {
  let n2, i2 = -1;
  for (let o2 = 0; o2 < t2.length; o2++) {
    const h2 = t2.charCodeAt(o2);
    if (h2 >= 97 && h2 <= 122 || h2 >= 65 && h2 <= 90 || h2 >= 48 && h2 <= 57 || 45 === h2 || 46 === h2 || 95 === h2 || 126 === h2 || e2 && 47 === h2 || r2 && 91 === h2 || r2 && 93 === h2 || r2 && 58 === h2) -1 !== i2 && (n2 += encodeURIComponent(t2.substring(i2, o2)), i2 = -1), void 0 !== n2 && (n2 += t2.charAt(o2));
    else {
      void 0 === n2 && (n2 = t2.substr(0, o2));
      const e3 = p[h2];
      void 0 !== e3 ? (-1 !== i2 && (n2 += encodeURIComponent(t2.substring(i2, o2)), i2 = -1), n2 += e3) : -1 === i2 && (i2 = o2);
    }
  }
  return -1 !== i2 && (n2 += encodeURIComponent(t2.substring(i2))), void 0 !== n2 ? n2 : t2;
}
function m(t2) {
  let e2;
  for (let r2 = 0; r2 < t2.length; r2++) {
    const n2 = t2.charCodeAt(r2);
    35 === n2 || 63 === n2 ? (void 0 === e2 && (e2 = t2.substr(0, r2)), e2 += p[n2]) : void 0 !== e2 && (e2 += t2[r2]);
  }
  return void 0 !== e2 ? e2 : t2;
}
function y(t2, e2) {
  let r2;
  return r2 = t2.authority && t2.path.length > 1 && "file" === t2.scheme ? `//${t2.authority}${t2.path}` : 47 === t2.path.charCodeAt(0) && (t2.path.charCodeAt(1) >= 65 && t2.path.charCodeAt(1) <= 90 || t2.path.charCodeAt(1) >= 97 && t2.path.charCodeAt(1) <= 122) && 58 === t2.path.charCodeAt(2) ? e2 ? t2.path.substr(1) : t2.path[1].toLowerCase() + t2.path.substr(2) : t2.path, n && (r2 = r2.replace(/\//g, "\\")), r2;
}
function v(t2, e2) {
  const r2 = e2 ? m : d;
  let n2 = "", { scheme: i2, authority: o2, path: h2, query: s2, fragment: a2 } = t2;
  if (i2 && (n2 += i2, n2 += ":"), (o2 || "file" === i2) && (n2 += c, n2 += c), o2) {
    let t3 = o2.indexOf("@");
    if (-1 !== t3) {
      const e3 = o2.substr(0, t3);
      o2 = o2.substr(t3 + 1), t3 = e3.lastIndexOf(":"), -1 === t3 ? n2 += r2(e3, false, false) : (n2 += r2(e3.substr(0, t3), false, false), n2 += ":", n2 += r2(e3.substr(t3 + 1), false, true)), n2 += "@";
    }
    o2 = o2.toLowerCase(), t3 = o2.lastIndexOf(":"), -1 === t3 ? n2 += r2(o2, false, true) : (n2 += r2(o2.substr(0, t3), false, true), n2 += o2.substr(t3));
  }
  if (h2) {
    if (h2.length >= 3 && 47 === h2.charCodeAt(0) && 58 === h2.charCodeAt(2)) {
      const t3 = h2.charCodeAt(1);
      t3 >= 65 && t3 <= 90 && (h2 = `/${String.fromCharCode(t3 + 32)}:${h2.substr(3)}`);
    } else if (h2.length >= 2 && 58 === h2.charCodeAt(1)) {
      const t3 = h2.charCodeAt(0);
      t3 >= 65 && t3 <= 90 && (h2 = `${String.fromCharCode(t3 + 32)}:${h2.substr(2)}`);
    }
    n2 += r2(h2, true, false);
  }
  return s2 && (n2 += "?", n2 += r2(s2, false, false)), a2 && (n2 += "#", n2 += e2 ? a2 : d(a2, false, false)), n2;
}
function b(t2) {
  try {
    return decodeURIComponent(t2);
  } catch {
    return t2.length > 3 ? t2.substr(0, 3) + b(t2.substr(3)) : t2;
  }
}
function A(t2) {
  return t2.match(C) ? t2.replace(C, (t3) => b(t3)) : t2;
}
var t, e, n, i, o, h, a, c, f, u, l, g, p, C, w, x, P, _;
var init_esm = __esm({
  "node_modules/vscode-uri/lib/esm/index.mjs"() {
    t = { 975(t2) {
      function e2(t3) {
        if ("string" != typeof t3) throw new TypeError("Path must be a string. Received " + JSON.stringify(t3));
      }
      function r2(t3, e3) {
        for (var r3, n3 = "", i2 = 0, o2 = -1, h2 = 0, s2 = 0; s2 <= t3.length; ++s2) {
          if (s2 < t3.length) r3 = t3.charCodeAt(s2);
          else {
            if (47 === r3) break;
            r3 = 47;
          }
          if (47 === r3) {
            if (o2 === s2 - 1 || 1 === h2) ;
            else if (o2 !== s2 - 1 && 2 === h2) {
              if (n3.length < 2 || 2 !== i2 || 46 !== n3.charCodeAt(n3.length - 1) || 46 !== n3.charCodeAt(n3.length - 2)) {
                if (n3.length > 2) {
                  var a2 = n3.lastIndexOf("/");
                  if (a2 !== n3.length - 1) {
                    -1 === a2 ? (n3 = "", i2 = 0) : i2 = (n3 = n3.slice(0, a2)).length - 1 - n3.lastIndexOf("/"), o2 = s2, h2 = 0;
                    continue;
                  }
                } else if (2 === n3.length || 1 === n3.length) {
                  n3 = "", i2 = 0, o2 = s2, h2 = 0;
                  continue;
                }
              }
              e3 && (n3.length > 0 ? n3 += "/.." : n3 = "..", i2 = 2);
            } else n3.length > 0 ? n3 += "/" + t3.slice(o2 + 1, s2) : n3 = t3.slice(o2 + 1, s2), i2 = s2 - o2 - 1;
            o2 = s2, h2 = 0;
          } else 46 === r3 && -1 !== h2 ? ++h2 : h2 = -1;
        }
        return n3;
      }
      var n2 = { resolve: function() {
        for (var t3, n3 = "", i2 = false, o2 = arguments.length - 1; o2 >= -1 && !i2; o2--) {
          var h2;
          o2 >= 0 ? h2 = arguments[o2] : (void 0 === t3 && (t3 = process.cwd()), h2 = t3), e2(h2), 0 !== h2.length && (n3 = h2 + "/" + n3, i2 = 47 === h2.charCodeAt(0));
        }
        return n3 = r2(n3, !i2), i2 ? n3.length > 0 ? "/" + n3 : "/" : n3.length > 0 ? n3 : ".";
      }, normalize: function(t3) {
        if (e2(t3), 0 === t3.length) return ".";
        var n3 = 47 === t3.charCodeAt(0), i2 = 47 === t3.charCodeAt(t3.length - 1);
        return 0 !== (t3 = r2(t3, !n3)).length || n3 || (t3 = "."), t3.length > 0 && i2 && (t3 += "/"), n3 ? "/" + t3 : t3;
      }, isAbsolute: function(t3) {
        return e2(t3), t3.length > 0 && 47 === t3.charCodeAt(0);
      }, join: function() {
        if (0 === arguments.length) return ".";
        for (var t3, r3 = 0; r3 < arguments.length; ++r3) {
          var i2 = arguments[r3];
          e2(i2), i2.length > 0 && (void 0 === t3 ? t3 = i2 : t3 += "/" + i2);
        }
        return void 0 === t3 ? "." : n2.normalize(t3);
      }, relative: function(t3, r3) {
        if (e2(t3), e2(r3), t3 === r3) return "";
        if ((t3 = n2.resolve(t3)) === (r3 = n2.resolve(r3))) return "";
        for (var i2 = 1; i2 < t3.length && 47 === t3.charCodeAt(i2); ++i2) ;
        for (var o2 = t3.length, h2 = o2 - i2, s2 = 1; s2 < r3.length && 47 === r3.charCodeAt(s2); ++s2) ;
        for (var a2 = r3.length - s2, c2 = h2 < a2 ? h2 : a2, f2 = -1, u2 = 0; u2 <= c2; ++u2) {
          if (u2 === c2) {
            if (a2 > c2) {
              if (47 === r3.charCodeAt(s2 + u2)) return r3.slice(s2 + u2 + 1);
              if (0 === u2) return r3.slice(s2 + u2);
            } else h2 > c2 && (47 === t3.charCodeAt(i2 + u2) ? f2 = u2 : 0 === u2 && (f2 = 0));
            break;
          }
          var l2 = t3.charCodeAt(i2 + u2);
          if (l2 !== r3.charCodeAt(s2 + u2)) break;
          47 === l2 && (f2 = u2);
        }
        var g2 = "";
        for (u2 = i2 + f2 + 1; u2 <= o2; ++u2) u2 !== o2 && 47 !== t3.charCodeAt(u2) || (0 === g2.length ? g2 += ".." : g2 += "/..");
        return g2.length > 0 ? g2 + r3.slice(s2 + f2) : (s2 += f2, 47 === r3.charCodeAt(s2) && ++s2, r3.slice(s2));
      }, _makeLong: function(t3) {
        return t3;
      }, dirname: function(t3) {
        if (e2(t3), 0 === t3.length) return ".";
        for (var r3 = t3.charCodeAt(0), n3 = 47 === r3, i2 = -1, o2 = true, h2 = t3.length - 1; h2 >= 1; --h2) if (47 === (r3 = t3.charCodeAt(h2))) {
          if (!o2) {
            i2 = h2;
            break;
          }
        } else o2 = false;
        return -1 === i2 ? n3 ? "/" : "." : n3 && 1 === i2 ? "//" : t3.slice(0, i2);
      }, basename: function(t3, r3) {
        if (void 0 !== r3 && "string" != typeof r3) throw new TypeError('"ext" argument must be a string');
        e2(t3);
        var n3, i2 = 0, o2 = -1, h2 = true;
        if (void 0 !== r3 && r3.length > 0 && r3.length <= t3.length) {
          if (r3.length === t3.length && r3 === t3) return "";
          var s2 = r3.length - 1, a2 = -1;
          for (n3 = t3.length - 1; n3 >= 0; --n3) {
            var c2 = t3.charCodeAt(n3);
            if (47 === c2) {
              if (!h2) {
                i2 = n3 + 1;
                break;
              }
            } else -1 === a2 && (h2 = false, a2 = n3 + 1), s2 >= 0 && (c2 === r3.charCodeAt(s2) ? -1 === --s2 && (o2 = n3) : (s2 = -1, o2 = a2));
          }
          return i2 === o2 ? o2 = a2 : -1 === o2 && (o2 = t3.length), t3.slice(i2, o2);
        }
        for (n3 = t3.length - 1; n3 >= 0; --n3) if (47 === t3.charCodeAt(n3)) {
          if (!h2) {
            i2 = n3 + 1;
            break;
          }
        } else -1 === o2 && (h2 = false, o2 = n3 + 1);
        return -1 === o2 ? "" : t3.slice(i2, o2);
      }, extname: function(t3) {
        e2(t3);
        for (var r3 = -1, n3 = 0, i2 = -1, o2 = true, h2 = 0, s2 = t3.length - 1; s2 >= 0; --s2) {
          var a2 = t3.charCodeAt(s2);
          if (47 !== a2) -1 === i2 && (o2 = false, i2 = s2 + 1), 46 === a2 ? -1 === r3 ? r3 = s2 : 1 !== h2 && (h2 = 1) : -1 !== r3 && (h2 = -1);
          else if (!o2) {
            n3 = s2 + 1;
            break;
          }
        }
        return -1 === r3 || -1 === i2 || 0 === h2 || 1 === h2 && r3 === i2 - 1 && r3 === n3 + 1 ? "" : t3.slice(r3, i2);
      }, format: function(t3) {
        if (null === t3 || "object" != typeof t3) throw new TypeError('The "pathObject" argument must be of type Object. Received type ' + typeof t3);
        return (function(t4, e3) {
          var r3 = e3.dir || e3.root, n3 = e3.base || (e3.name || "") + (e3.ext || "");
          return r3 ? r3 === e3.root ? r3 + n3 : r3 + "/" + n3 : n3;
        })(0, t3);
      }, parse: function(t3) {
        e2(t3);
        var r3 = { root: "", dir: "", base: "", ext: "", name: "" };
        if (0 === t3.length) return r3;
        var n3, i2 = t3.charCodeAt(0), o2 = 47 === i2;
        o2 ? (r3.root = "/", n3 = 1) : n3 = 0;
        for (var h2 = -1, s2 = 0, a2 = -1, c2 = true, f2 = t3.length - 1, u2 = 0; f2 >= n3; --f2) if (47 !== (i2 = t3.charCodeAt(f2))) -1 === a2 && (c2 = false, a2 = f2 + 1), 46 === i2 ? -1 === h2 ? h2 = f2 : 1 !== u2 && (u2 = 1) : -1 !== h2 && (u2 = -1);
        else if (!c2) {
          s2 = f2 + 1;
          break;
        }
        return -1 === h2 || -1 === a2 || 0 === u2 || 1 === u2 && h2 === a2 - 1 && h2 === s2 + 1 ? -1 !== a2 && (r3.base = r3.name = 0 === s2 && o2 ? t3.slice(1, a2) : t3.slice(s2, a2)) : (0 === s2 && o2 ? (r3.name = t3.slice(1, h2), r3.base = t3.slice(1, a2)) : (r3.name = t3.slice(s2, h2), r3.base = t3.slice(s2, a2)), r3.ext = t3.slice(h2, a2)), s2 > 0 ? r3.dir = t3.slice(0, s2 - 1) : o2 && (r3.dir = "/"), r3;
      }, sep: "/", delimiter: ":", win32: null, posix: null };
      n2.posix = n2, t2.exports = n2;
    } };
    e = {};
    if (r.d = (t2, e2) => {
      for (var n2 in e2) r.o(e2, n2) && !r.o(t2, n2) && Object.defineProperty(t2, n2, { enumerable: true, get: e2[n2] });
    }, r.o = (t2, e2) => Object.prototype.hasOwnProperty.call(t2, e2), "object" == typeof process) n = "win32" === process.platform;
    else if ("object" == typeof navigator) {
      let t2 = navigator.userAgent;
      n = t2.indexOf("Windows") >= 0;
    }
    i = /^\w[\w\d+.-]*$/;
    o = /^\//;
    h = /^\/\//;
    a = "";
    c = "/";
    f = /^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;
    u = class _u {
      static isUri(t2) {
        return t2 instanceof _u || !!t2 && "string" == typeof t2.authority && "string" == typeof t2.fragment && "string" == typeof t2.path && "string" == typeof t2.query && "string" == typeof t2.scheme && "string" == typeof t2.fsPath && "function" == typeof t2.with && "function" == typeof t2.toString;
      }
      scheme;
      authority;
      path;
      query;
      fragment;
      constructor(t2, e2, r2, n2, i2, o2 = false) {
        "object" == typeof t2 ? (this.scheme = t2.scheme || a, this.authority = t2.authority || a, this.path = t2.path || a, this.query = t2.query || a, this.fragment = t2.fragment || a) : (this.scheme = /* @__PURE__ */ (function(t3, e3) {
          return t3 || e3 ? t3 : "file";
        })(t2, o2), this.authority = e2 || a, this.path = (function(t3, e3) {
          switch (t3) {
            case "https":
            case "http":
            case "file":
              e3 ? e3[0] !== c && (e3 = c + e3) : e3 = c;
          }
          return e3;
        })(this.scheme, r2 || a), this.query = n2 || a, this.fragment = i2 || a, s(this, o2));
      }
      get fsPath() {
        return y(this, false);
      }
      with(t2) {
        if (!t2) return this;
        let { scheme: e2, authority: r2, path: n2, query: i2, fragment: o2 } = t2;
        return void 0 === e2 ? e2 = this.scheme : null === e2 && (e2 = a), void 0 === r2 ? r2 = this.authority : null === r2 && (r2 = a), void 0 === n2 ? n2 = this.path : null === n2 && (n2 = a), void 0 === i2 ? i2 = this.query : null === i2 && (i2 = a), void 0 === o2 ? o2 = this.fragment : null === o2 && (o2 = a), e2 === this.scheme && r2 === this.authority && n2 === this.path && i2 === this.query && o2 === this.fragment ? this : new g(e2, r2, n2, i2, o2);
      }
      static parse(t2, e2 = false) {
        const r2 = f.exec(t2);
        return r2 ? new g(r2[2] || a, A(r2[4] || a), A(r2[5] || a), A(r2[7] || a), A(r2[9] || a), e2) : new g(a, a, a, a, a);
      }
      static file(t2) {
        let e2 = a;
        if (n && (t2 = t2.replace(/\\/g, c)), t2[0] === c && t2[1] === c) {
          const r2 = t2.indexOf(c, 2);
          -1 === r2 ? (e2 = t2.substring(2), t2 = c) : (e2 = t2.substring(2, r2), t2 = t2.substring(r2) || c);
        }
        return new g("file", e2, t2, a, a);
      }
      static from(t2) {
        const e2 = new g(t2.scheme, t2.authority, t2.path, t2.query, t2.fragment);
        return s(e2, true), e2;
      }
      toString(t2 = false) {
        return v(this, t2);
      }
      toJSON() {
        return this;
      }
      static revive(t2) {
        if (t2) {
          if (t2 instanceof _u) return t2;
          {
            const e2 = new g(t2);
            return e2._formatted = t2.external, e2._fsPath = t2._sep === l ? t2.fsPath : null, e2;
          }
        }
        return t2;
      }
    };
    l = n ? 1 : void 0;
    g = class extends u {
      _formatted = null;
      _fsPath = null;
      get fsPath() {
        return this._fsPath || (this._fsPath = y(this, false)), this._fsPath;
      }
      toString(t2 = false) {
        return t2 ? v(this, true) : (this._formatted || (this._formatted = v(this, false)), this._formatted);
      }
      toJSON() {
        const t2 = { $mid: 1 };
        return this._fsPath && (t2.fsPath = this._fsPath, t2._sep = l), this._formatted && (t2.external = this._formatted), this.path && (t2.path = this.path), this.scheme && (t2.scheme = this.scheme), this.authority && (t2.authority = this.authority), this.query && (t2.query = this.query), this.fragment && (t2.fragment = this.fragment), t2;
      }
    };
    p = { 58: "%3A", 47: "%2F", 63: "%3F", 35: "%23", 91: "%5B", 93: "%5D", 64: "%40", 33: "%21", 36: "%24", 38: "%26", 39: "%27", 40: "%28", 41: "%29", 42: "%2A", 43: "%2B", 44: "%2C", 59: "%3B", 61: "%3D", 32: "%20" };
    C = /(%[0-9A-Za-z][0-9A-Za-z])+/g;
    w = r(975);
    x = w.posix || w;
    P = "/";
    !(function(t2) {
      t2.joinPath = function(t3, ...e2) {
        return t3.with({ path: x.join(t3.path, ...e2) });
      }, t2.resolvePath = function(t3, ...e2) {
        let r2 = t3.path, n2 = false;
        r2[0] !== P && (r2 = P + r2, n2 = true);
        let i2 = x.resolve(r2, ...e2);
        return n2 && i2[0] === P && !t3.authority && (i2 = i2.substring(1)), t3.with({ path: i2 });
      }, t2.dirname = function(t3) {
        if (0 === t3.path.length || t3.path === P) return t3;
        let e2 = x.dirname(t3.path);
        return 1 === e2.length && 46 === e2.charCodeAt(0) && (e2 = ""), t3.with({ path: e2 });
      }, t2.basename = function(t3) {
        return x.basename(t3.path);
      }, t2.extname = function(t3) {
        return x.extname(t3.path);
      };
    })(_ || (_ = {}));
  }
});

// src/util/platform.ts
function getPlatform(process2) {
  let { platform: platform2 } = process2;
  if (platform2 === "win32") return 3 /* Windows */;
  if (platform2 === "darwin") return 1 /* Mac */;
  if (platform2 === "linux") return 2 /* Linux */;
  return 4 /* Unknown */;
}
var _platform, platform, isWindows, isMacintosh;
var init_platform = __esm({
  "src/util/platform.ts"() {
    "use strict";
    _platform = getPlatform(process);
    platform = _platform;
    isWindows = _platform === 3 /* Windows */;
    isMacintosh = _platform === 1 /* Mac */;
  }
});

// src/util/fs.ts
function uriToFsPath(uri) {
  let u2 = typeof uri === "string" ? u.parse(uri) : uri;
  if (u2.scheme === "file" && !isWindows && /^\/[a-zA-Z]:/.test(u2.path)) {
    return u2.path;
  }
  return u2.fsPath;
}
function watchFile(filepath, onChange, immediate = false, onError) {
  let callback = debounce2(onChange, 100);
  let watcher;
  try {
    let dir = path.dirname(filepath);
    let basename2 = path.basename(filepath);
    watcher = fs.watch(dir, {
      persistent: true,
      recursive: false,
      encoding: "utf8"
    }, (_eventType, filename) => {
      if (filename === void 0 || filename === basename2) {
        callback();
      }
    });
    watcher.on("error", (err) => {
      logger3.error(`Error on watching ${filepath}`, err);
      watcher?.close();
      if (onError) onError(err);
    });
    if (immediate) {
      setTimeout(onChange, 10);
    }
  } catch (e2) {
    logger3.error(`Error on watching ${filepath}`, e2);
    if (onError) onError(e2 instanceof Error ? e2 : new Error(String(e2)));
  }
  return import_node4.Disposable.create(() => {
    callback.clear();
    watcher?.close();
  });
}
function loadJson(filepath) {
  try {
    let errors = [];
    let text = fs.readFileSync(filepath, "utf8");
    let data = parse2(text, errors, { allowTrailingComma: true });
    if (errors.length > 0) {
      logger3.error(`Error on parse json file ${filepath}`, errors);
    }
    return data ?? {};
  } catch (e2) {
    return {};
  }
}
function writeJson(filepath, obj) {
  let dir = path.dirname(filepath);
  if (!fs.existsSync(dir)) {
    fs.mkdirSync(dir, { recursive: true });
    logger3.info(`Creating directory ${dir}`);
  }
  fs.writeFileSync(filepath, JSON.stringify(toObject(obj), null, 2), "utf8");
}
async function statAsync(filepath) {
  let stat = null;
  try {
    stat = await fs.promises.stat(filepath);
  } catch (e2) {
  }
  return stat;
}
function isDirectory(filepath) {
  if (!filepath || !path.isAbsolute(filepath) || !fs.existsSync(filepath)) return false;
  let stat = fs.statSync(filepath);
  return stat.isDirectory();
}
function renameSync(oldPath, newPath) {
  try {
    fs.renameSync(oldPath, newPath);
    return;
  } catch (e2) {
    if (e2.code !== "EXDEV") throw e2;
  }
  const options3 = {
    recursive: true,
    dereference: false,
    verbatimSymlinks: true,
    preserveTimestamps: true,
    force: false,
    errorOnExist: true
  };
  let isSymbolicLink2 = fs.lstatSync(oldPath).isSymbolicLink();
  try {
    if (isSymbolicLink2) {
      let type;
      if (isWindows) {
        let stat = fs.statSync(oldPath, { throwIfNoEntry: false });
        type = stat?.isDirectory() ? "dir" : "file";
      }
      fs.symlinkSync(fs.readlinkSync(oldPath), newPath, type);
    } else {
      fs.cpSync(oldPath, newPath, options3);
    }
  } catch (e2) {
    fs.rmSync(newPath, { force: true, recursive: true });
    throw e2;
  }
  try {
    fs.rmSync(oldPath, { recursive: true });
  } catch (e2) {
    let error = e2;
    try {
      fs.cpSync(newPath, oldPath, {
        ...options3,
        // Partial removal leaves directories in place. Merge into them while
        // the filter protects surviving files and symbolic links.
        errorOnExist: false,
        filter: (_source, destination) => {
          let stat = fs.lstatSync(destination, { throwIfNoEntry: false });
          return !stat || stat.isDirectory();
        }
      });
      fs.rmSync(newPath, { force: true, recursive: true });
    } catch (recoverError) {
      error.message += `; could not restore source or clean backup, backup remains at ${newPath}: ${recoverError}`;
    }
    throw error;
  }
}
async function remove(filepath) {
  if (!filepath) return;
  try {
    await fs.promises.rm(filepath, { force: true, recursive: true });
  } catch (e2) {
    return;
  }
}
async function getFileType(filepath) {
  try {
    const stat = await fs.promises.lstat(filepath);
    if (stat.isFile()) {
      return 1 /* File */;
    }
    if (stat.isDirectory()) {
      return 2 /* Directory */;
    }
    if (stat.isSymbolicLink()) {
      return 64 /* SymbolicLink */;
    }
    return 0 /* Unknown */;
  } catch (e2) {
    return void 0;
  }
}
async function isGitIgnored(fullpath) {
  if (!fullpath) return false;
  try {
    fullpath = path.join(await fs.promises.realpath(path.dirname(fullpath)), path.basename(fullpath));
    let stat = await statAsync(fullpath);
    if (!stat || !stat.isFile()) return false;
    let root = parentDirs(fullpath).reverse().find((dir) => fs.existsSync(path.join(dir, ".git")));
    if (!root) return false;
    let file = path.relative(root, fullpath);
    await (0, import_util.promisify)(execFile)("git", ["check-ignore", "--quiet", "--", file], { cwd: root });
    return true;
  } catch (e2) {
  }
  return false;
}
function isFolderIgnored(folder, ignored) {
  if (isFalsyOrEmpty(ignored)) return false;
  return ignored.some((p2) => sameFile(p2, folder) || minimatch(folder, p2, { dot: true }));
}
function resolveRoot(folder, subs, cwd2, bottomup = false, checkCwd = true, ignored = []) {
  let dir = normalizeFilePath(folder);
  if (checkCwd && cwd2 && isParentFolder(cwd2, dir, true) && !isFolderIgnored(cwd2, ignored) && inDirectory(cwd2, subs)) return cwd2;
  let parts = dir.split(path.sep);
  if (bottomup) {
    while (parts.length > 0) {
      let dir2 = parts.join(path.sep);
      if (!isFolderIgnored(dir2, ignored) && inDirectory(dir2, subs)) {
        return dir2;
      }
      parts.pop();
    }
    return null;
  } else {
    let curr = [parts.shift()];
    for (let part of parts) {
      curr.push(part);
      let dir2 = curr.join(path.sep);
      if (!isFolderIgnored(dir2, ignored) && inDirectory(dir2, subs)) {
        return dir2;
      }
    }
    return null;
  }
}
function checkFolder(dir, patterns, token) {
  return new Promise(async (resolve, reject) => {
    if (isFalsyOrEmpty(patterns)) return resolve(false);
    let disposable;
    const ac = new AbortController();
    if (token) {
      disposable = token.onCancellationRequested(() => {
        ac.abort();
        reject(new CancellationError());
      });
    }
    try {
      let find = false;
      let pattern = patterns.length == 1 ? patterns[0] : `{${patterns.join(",")}}`;
      let gl = new glob.Glob(pattern, {
        nosort: true,
        signal: ac.signal,
        ignore: ["node_modules/**", ".git/**"],
        dot: true,
        cwd: dir,
        nodir: true,
        absolute: false
      });
      try {
        for await (const _file of gl) {
          find = true;
          break;
        }
      } catch (e2) {
        logger3.error(`Error on glob "${pattern}"`, dir, e2);
      }
      resolve(find);
    } finally {
      if (disposable) disposable.dispose();
    }
  });
}
function inDirectory(dir, subs) {
  try {
    let files = fs.readdirSync(dir);
    for (let pattern of subs) {
      let is_wildcard = pattern.includes("*");
      let res = is_wildcard ? minimatch.match(files, pattern, { nobrace: true, noext: true, nocomment: true, nonegate: true, dot: true }).length !== 0 : files.includes(pattern);
      if (res) return true;
    }
  } catch (e2) {
  }
  return false;
}
function findMatch(dir, subs) {
  try {
    let files = fs.readdirSync(dir);
    for (let pattern of subs) {
      let isWildcard = pattern.includes("*");
      if (isWildcard) {
        let filtered = files.filter(minimatch.filter(pattern, { nobrace: true, noext: true, nocomment: true, nonegate: true, dot: true }));
        if (filtered.length > 0) return filtered[0];
      } else {
        let file = files.find((s2) => s2 === pattern);
        if (file) return file;
      }
    }
  } catch (e2) {
  }
  return void 0;
}
function findUp(name2, cwd2) {
  let root = path.parse(cwd2).root;
  let subs = toArray(name2);
  while (cwd2 && cwd2 !== root) {
    let find = findMatch(cwd2, subs);
    if (find) return path.join(cwd2, find);
    cwd2 = path.dirname(cwd2);
  }
  return null;
}
function readFile(fullpath, encoding2) {
  return new Promise((resolve, reject) => {
    fs.readFile(fullpath, encoding2, (err, content) => {
      if (err) reject(err);
      resolve(content);
    });
  });
}
function getFileLineCount(filepath) {
  let i2;
  let count = 0;
  return new Promise((resolve, reject) => {
    fs.createReadStream(filepath).on("error", (e2) => reject(e2)).on("data", (chunk) => {
      for (i2 = 0; i2 < chunk.length; ++i2) if (chunk[i2] == 10) count++;
    }).on("end", () => resolve(count));
  });
}
function readFileLines(fullpath, start, end) {
  if (!fs.existsSync(fullpath)) {
    return Promise.reject(new Error(`file does not exist: ${fullpath}`));
  }
  let res = [];
  const input = fs.createReadStream(fullpath, { encoding: "utf8" });
  const rl = readline.createInterface({
    input,
    crlfDelay: Infinity,
    terminal: false
  });
  let n2 = 0;
  return new Promise((resolve, reject) => {
    rl.on("line", (line) => {
      if (n2 >= start && n2 <= end) {
        res.push(line);
      }
      if (n2 == end) {
        rl.close();
      }
      n2 = n2 + 1;
    });
    rl.on("close", () => {
      resolve(res);
      input.close();
    });
    rl.on("error", reject);
  });
}
function readFileLine(fullpath, count) {
  if (!fs.existsSync(fullpath)) return Promise.reject(new Error(`file does not exist: ${fullpath}`));
  const input = fs.createReadStream(fullpath, { encoding: "utf8" });
  const rl = readline.createInterface({ input, crlfDelay: Infinity, terminal: false });
  let n2 = 0;
  let result = "";
  return new Promise((resolve, reject) => {
    rl.on("line", (line) => {
      if (n2 == count) {
        result = line;
        rl.close();
        input.close();
      }
      n2 = n2 + 1;
    });
    rl.on("close", () => {
      resolve(result);
    });
    rl.on("error", reject);
  });
}
async function lineToLocation(fsPath2, match2, text) {
  let uri = u.file(fsPath2).toString();
  if (!fs.existsSync(fsPath2)) return Location.create(uri, Range.create(0, 0, 0, 0));
  const rl = readline.createInterface({
    input: fs.createReadStream(fsPath2, { encoding: "utf8" })
  });
  let n2 = 0;
  let line = await new Promise((resolve) => {
    let find = false;
    rl.on("line", (line2) => {
      if (line2.includes(match2)) {
        find = true;
        rl.removeAllListeners();
        rl.close();
        resolve(line2);
        return;
      }
      n2 = n2 + 1;
    });
    rl.on("close", () => {
      if (!find) resolve(void 0);
    });
  });
  if (line != null) {
    let character = text == null ? -1 : smartcaseIndex(text, line);
    if (character == -1) character = line.match(/^\s*/)[0].length;
    let end = Position.create(n2, character + (text ? text.length : 0));
    return Location.create(uri, Range.create(Position.create(n2, character), end));
  }
  return Location.create(uri, Range.create(0, 0, 0, 0));
}
function sameFile(fullpath, other, caseInsensitive) {
  caseInsensitive = typeof caseInsensitive == "boolean" ? caseInsensitive : isWindows || isMacintosh;
  if (!fullpath || !other) return false;
  fullpath = normalizeFilePath(fullpath);
  other = normalizeFilePath(other);
  if (caseInsensitive) return fullpath.toLowerCase() === other.toLowerCase();
  return fullpath === other;
}
function fileStartsWith(dir, pdir, caseInsensitive = isWindows || isMacintosh) {
  if (caseInsensitive) return dir.toLowerCase().startsWith(pdir.toLowerCase());
  return dir.startsWith(pdir);
}
async function writeFile(fullpath, content) {
  await fs.promises.writeFile(fullpath, content, { encoding: "utf8" });
}
function isFile(uri) {
  return uri.startsWith("file:");
}
function parentDirs(pth) {
  let { root, dir } = path.parse(pth);
  if (dir === root) return [root];
  const dirs = [root];
  const parts = dir.slice(root.length).split(path.sep);
  for (let i2 = 1; i2 <= parts.length; i2++) {
    dirs.push(path.join(root, parts.slice(0, i2).join(path.sep)));
  }
  return dirs;
}
function normalizeFilePath(filepath) {
  return u.file(path.resolve(path.normalize(filepath))).fsPath;
}
function realFsPath(fsPath2) {
  let current = path.resolve(fsPath2);
  let suffix = [];
  for (; ; ) {
    try {
      let resolved = fs.realpathSync(current);
      if (suffix.length === 0) return resolved;
      return path.join(resolved, ...suffix.reverse());
    } catch (_e) {
      let parent = path.dirname(current);
      if (parent === current) return fsPath2;
      suffix.push(path.basename(current));
      current = parent;
    }
  }
}
function isParentFolder(folder, filepath, checkEqual = false) {
  let pdir = normalizeFilePath(folder);
  let dir = normalizeFilePath(filepath);
  if (sameFile(pdir, dir)) return checkEqual ? true : false;
  return fileStartsWith(dir, pdir) && dir[pdir.length] == path.sep;
}
var logger3, execFile, FileType;
var init_fs = __esm({
  "src/util/fs.ts"() {
    "use strict";
    init_main2();
    init_main();
    init_esm();
    init_logger();
    init_node();
    init_protocol();
    init_array();
    init_errors();
    init_node();
    init_object();
    init_platform();
    init_string();
    logger3 = createLogger("util-fs");
    execFile = child_process.execFile;
    FileType = /* @__PURE__ */ ((FileType2) => {
      FileType2[FileType2["Unknown"] = 0] = "Unknown";
      FileType2[FileType2["File"] = 1] = "File";
      FileType2[FileType2["Directory"] = 2] = "Directory";
      FileType2[FileType2["SymbolicLink"] = 64] = "SymbolicLink";
      return FileType2;
    })(FileType || {});
  }
});

// src/model/mru.ts
var Mru;
var init_mru = __esm({
  "src/model/mru.ts"() {
    "use strict";
    init_array();
    init_constants();
    init_fs();
    init_node();
    Mru = class {
      /**
       * @param {string} name unique name
       * @param {string} base? optional directory name, default to data root of coc.nvim
       */
      constructor(name2, base, maximum = 5e3) {
        this.maximum = maximum;
        this.file = path.join(base || dataHome, name2);
        let dir = path.dirname(this.file);
        fs.mkdirSync(dir, { recursive: true });
      }
      maximum;
      file;
      /**
       * Load lines from mru file
       */
      async load() {
        try {
          let lines = await readFileLines(this.file, 0, this.maximum);
          if (lines.length > this.maximum) {
            let newLines = lines.slice(0, this.maximum);
            await writeFile(this.file, newLines.join("\n"));
            return distinct(newLines);
          }
          return distinct(lines);
        } catch (e2) {
          return [];
        }
      }
      /**
       * @internal
       */
      loadSync() {
        try {
          let content = fs.readFileSync(this.file, "utf8");
          content = content.trim();
          return content.length ? content.trim().split("\n") : [];
        } catch (e2) {
          return [];
        }
      }
      /**
       * Add item to mru file.
       */
      async add(item) {
        let buf;
        try {
          buf = fs.readFileSync(this.file);
          if (buf[0] === 239 && buf[1] === 187 && buf[2] === 191) {
            buf = buf.slice(3);
          }
          buf = Buffer.concat([Buffer.from(item, "utf8"), new Uint8Array([10]), buf]);
        } catch (e2) {
          buf = Buffer.concat([Buffer.from(item, "utf8"), new Uint8Array([10])]);
        }
        await fs.promises.writeFile(this.file, buf);
      }
      /**
       * Remove item from mru file.
       */
      async remove(item) {
        let items = await this.load();
        let len = items.length;
        items = items.filter((s2) => s2 != item);
        if (items.length != len) {
          await writeFile(this.file, items.join("\n"));
        }
      }
      /**
       * Remove the data file.
       */
      async clean() {
        try {
          await fs.promises.unlink(this.file);
        } catch (e2) {
        }
      }
    };
  }
});

// src/configuration/types.ts
var ConfigurationUpdateTarget;
var init_types = __esm({
  "src/configuration/types.ts"() {
    "use strict";
    ConfigurationUpdateTarget = /* @__PURE__ */ ((ConfigurationUpdateTarget3) => {
      ConfigurationUpdateTarget3[ConfigurationUpdateTarget3["Global"] = 1] = "Global";
      ConfigurationUpdateTarget3[ConfigurationUpdateTarget3["Workspace"] = 2] = "Workspace";
      ConfigurationUpdateTarget3[ConfigurationUpdateTarget3["WorkspaceFolder"] = 3] = "WorkspaceFolder";
      return ConfigurationUpdateTarget3;
    })(ConfigurationUpdateTarget || {});
  }
});

// src/util/registry.ts
function convertScope(key, scope, defaultScope) {
  if (sourcePrefixes.some((p2) => key.startsWith(p2))) return 1 /* APPLICATION */;
  if (scope === "application" /* Application */) return 1 /* APPLICATION */;
  if (scope === "window" /* Window */) return 2 /* WINDOW */;
  if (scope === "resource" /* Resource */ || scope === "machine-overridable" /* MachineOverridable */) return 3 /* RESOURCE */;
  if (scope === "language-overridable" /* LanguageOverridable */) return 4 /* LANGUAGE_OVERRIDABLE */;
  return defaultScope;
}
function convertProperties(properties, defaultScope = 2 /* WINDOW */) {
  let obj = {};
  for (let [key, def] of Object.entries(toObject(properties))) {
    let data = deepClone(def);
    data.scope = convertScope(key, def.scope, defaultScope);
    obj[key] = data;
  }
  return obj;
}
var RegistryImpl, Registry, sourcePrefixes;
var init_registry = __esm({
  "src/util/registry.ts"() {
    "use strict";
    init_types();
    init_errors();
    init_is();
    init_object();
    RegistryImpl = class {
      data = /* @__PURE__ */ new Map();
      add(id2, data) {
        assert(typeof id2 === "string");
        assert(objectLiteral(data));
        assert(!this.data.has(id2));
        this.data.set(id2, data);
      }
      knows(id2) {
        return this.data.has(id2);
      }
      as(id2) {
        return this.data.get(id2) || null;
      }
    };
    Registry = new RegistryImpl();
    sourcePrefixes = ["coc.source.", "list.source."];
  }
});

// src/util/extensionRegistry.ts
function getExtensionDefinitions() {
  let obj = {};
  for (let extensionInfo of extensionRegistry.getExtensions().extensions) {
    let definitions = extensionInfo.definitions;
    Object.entries(toObject(definitions)).forEach(([key, val]) => {
      obj[key] = val;
    });
  }
  return obj;
}
function validRootPattern(rootPattern) {
  return rootPattern && typeof rootPattern.filetype === "string" && !isFalsyOrEmpty(rootPattern.patterns);
}
function validCommandContribution(cmd) {
  return cmd && typeof cmd.command === "string" && typeof cmd.title === "string";
}
function getProperties(configuration2) {
  let obj = {};
  if (Array.isArray(configuration2)) {
    for (let item of configuration2) {
      Object.assign(obj, toObject(item["properties"]));
    }
  } else if (objectLiteral(configuration2["properties"])) {
    obj = configuration2["properties"];
  }
  return obj;
}
function parseExtensionName(stack, level2 = 2) {
  let lines = toText(stack).split(/\r?\n/).slice(level2);
  if (lines.length === 0) return void 0;
  for (let line of lines) {
    let filepath;
    line = line.replace(/^\s*at\s*/, "");
    if (line.endsWith(")")) {
      let ms = line.match(/(\((.*?):\d+:\d+\))$/);
      if (ms) filepath = ms[2];
    } else {
      let ms = line.match(/(.*?):\d+:\d+$/);
      if (ms) filepath = ms[1];
    }
    if (!filepath || isParentFolder(pluginRoot, filepath)) continue;
    let find = extensionRegistry.resolveExtension(filepath);
    if (find) return find.name;
  }
  return "coc.nvim";
}
var Extensions, ExtensionRegistry, extensionRegistry;
var init_extensionRegistry = __esm({
  "src/util/extensionRegistry.ts"() {
    "use strict";
    init_array();
    init_constants();
    init_fs();
    init_is();
    init_node();
    init_object();
    init_registry();
    init_string();
    Extensions = {
      ExtensionContribution: "base.contributions.extensions"
    };
    ExtensionRegistry = class {
      extensionsById;
      constructor() {
        this.extensionsById = /* @__PURE__ */ new Map();
      }
      resolveExtension(filepath) {
        for (let item of this.extensionsById.values()) {
          if (item.filepath && sameFile(item.filepath, filepath)) {
            return item;
          }
          if (!item.name.startsWith("single-") && fs.existsSync(item.directory) && isParentFolder(fs.realpathSync(item.directory), filepath, false)) {
            return item;
          }
        }
        return void 0;
      }
      get onCommands() {
        let res = [];
        for (let item of this.extensionsById.values()) {
          let { commands, onCommands } = item;
          for (let cmd of onCommands) {
            if (typeof cmd === "string") {
              let find = commands.find((o2) => o2.command === cmd);
              let title = find == null ? "" : find.title;
              res.push({ id: cmd, title });
            }
          }
        }
        return res;
      }
      getCommandTitle(id2) {
        for (let item of this.extensionsById.values()) {
          for (let cmd of toArray(item.commands)) {
            if (cmd.command === id2) return cmd.title;
          }
        }
        return void 0;
      }
      get commands() {
        let res = [];
        for (let item of this.extensionsById.values()) {
          res.push(...toArray(item.commands).filter(validCommandContribution));
        }
        return res;
      }
      getRootPatternsByFiletype(filetype) {
        let res = [];
        for (let item of this.extensionsById.values()) {
          for (let p2 of toArray(item.rootPatterns).filter(validRootPattern)) {
            if (p2.filetype === filetype) res.push(...p2.patterns.filter((s2) => typeof s2 === "string"));
          }
        }
        return res;
      }
      unregistExtension(id2) {
        this.extensionsById.delete(id2);
      }
      registerExtension(id2, info) {
        this.extensionsById.set(id2, info);
      }
      getExtension(id2) {
        return this.extensionsById.get(id2);
      }
      getExtensions() {
        return { extensions: this.extensionsById.values() };
      }
    };
    extensionRegistry = new ExtensionRegistry();
    Registry.add(Extensions.ExtensionContribution, extensionRegistry);
  }
});

// src/commands.ts
var logger4, CommandItem, extensionRegistry2, CommandManager, commands_default;
var init_commands = __esm({
  "src/commands.ts"() {
    "use strict";
    init_events();
    init_logger();
    init_mru();
    init_array();
    init_extensionRegistry();
    init_extensionId();
    init_protocol();
    init_registry();
    init_string();
    logger4 = createLogger("commands");
    CommandItem = class {
      constructor(id2, impl, thisArg, internal) {
        this.id = id2;
        this.impl = impl;
        this.thisArg = thisArg;
        this.internal = internal;
      }
      id;
      impl;
      thisArg;
      internal;
      execute(...args) {
        let { impl, thisArg } = this;
        try {
          let res = impl.apply(thisArg, toArray(args));
          if (res != null && typeof res.then === "function") {
            return Promise.resolve(res).catch((e2) => {
              throw this.withExtension(e2);
            });
          }
          return res;
        } catch (e2) {
          throw this.withExtension(e2);
        }
      }
      withExtension(e2) {
        let extensionId = getExtensionId(this.impl) || getExtensionId(this.thisArg);
        if (!extensionId) {
          return e2;
        }
        return prefixExtensionError(e2, extensionId);
      }
      dispose() {
        this.thisArg = null;
        this.impl = null;
      }
    };
    extensionRegistry2 = Registry.as(Extensions.ExtensionContribution);
    CommandManager = class {
      commands = /* @__PURE__ */ new Map();
      /**
       * @internal
       */
      titles = /* @__PURE__ */ new Map();
      mru = new Mru("commands");
      /**
       * @internal
       */
      nvim;
      get commandList() {
        let res = [];
        for (let item of this.commands.values()) {
          if (!item.internal) {
            let { id: id2 } = item;
            let title = this.titles.get(id2) ?? extensionRegistry2.getCommandTitle(id2);
            res.push({ id: id2, title: toText(title) });
          }
        }
        return res;
      }
      /**
       * @internal
       */
      dispose() {
        for (const registration of this.commands.values()) {
          registration.dispose();
        }
        this.commands.clear();
      }
      execute(command) {
        return this.executeCommand(command.command, ...command.arguments ?? []);
      }
      /**
       * @internal
       */
      register(command, internal, description) {
        for (const id2 of Array.isArray(command.id) ? command.id : [command.id]) {
          this.registerCommand(id2, command.execute, command, internal);
          if (description) this.titles.set(id2, description);
        }
        return command;
      }
      has(id2) {
        return this.commands.has(id2);
      }
      /**
       * @internal
       */
      unregister(id2) {
        let item = this.commands.get(id2);
        if (!item) return;
        item.dispose();
        this.commands.delete(id2);
      }
      /**
       * Registers a command that can be invoked via a keyboard shortcut,
       * a menu item, an action, or directly.
       *
       * Registering a command with an existing command identifier twice
       * will cause an error.
       * @param command A unique identifier for the command.
       * @param impl A command handler function.
       * @param thisArg The `this` context used when invoking the handler function.
       * @return Disposable which unregisters this command on disposal.
       */
      registerCommand(id2, impl, thisArg, internal = false) {
        if (id2.startsWith("_")) internal = true;
        if (this.commands.has(id2)) logger4.warn(`Command ${id2} already registered`);
        this.commands.set(id2, new CommandItem(id2, impl, thisArg, internal));
        return import_node4.Disposable.create(() => {
          this.commands.delete(id2);
        });
      }
      /**
       * Executes the command denoted by the given command identifier.
       *
       * * *Note 1:* When executing an editor command not all types are allowed to
       * be passed as arguments. Allowed are the primitive types `string`, `boolean`,
       * `number`, `undefined`, and `null`, as well as [`Position`](#Position), [`Range`](#Range), [`URI`](#URI) and [`Location`](#Location).
       * * *Note 2:* There are no restrictions when executing commands that have been contributed
       * by extensions.
       * @param command Identifier of the command to execute.
       * @param rest Parameters passed to the command function.
       * @return A promise that resolves to the returned value of the given command. `undefined` when
       * the command handler function doesn't return anything.
       */
      executeCommand(command, ...rest) {
        let cmd = this.commands.get(command);
        if (!cmd) throw new Error(`Command: ${command} not found`);
        return Promise.resolve(cmd.execute.apply(cmd, rest));
      }
      /**
       * @internal
       * Used for user invoked command.
       */
      async fireCommand(id2, ...args) {
        await events_default.fire("Command", [id2]);
        let start = Date.now();
        let res = await this.executeCommand(id2, ...args);
        if (args.length == 0) {
          await this.addRecent(id2, events_default.lastChangeTs > start);
        }
        return res;
      }
      /**
       * @internal
       */
      async addRecent(cmd, repeat2) {
        await this.mru.add(cmd);
        if (repeat2) this.nvim.command(`silent! call repeat#set("\\(coc-command-repeat)", -1)`, true);
      }
      /**
       * @internal
       */
      async repeatCommand() {
        let mruList = await this.mru.load();
        let first = mruList[0];
        if (first) {
          await this.executeCommand(first);
          await this.nvim.command(`silent! call repeat#set("\\(coc-command-repeat)", -1)`);
        }
      }
    };
    commands_default = new CommandManager();
  }
});

// src/util/numbers.ts
function toNumber(n2, defaultValue2 = 0) {
  return number(n2) ? n2 : defaultValue2;
}
function boolToNumber(val) {
  return val ? 1 : 0;
}
function clamp(value, min, max) {
  return Math.min(Math.max(value, min), max);
}
var init_numbers = __esm({
  "src/util/numbers.ts"() {
    "use strict";
    init_is();
  }
});

// src/model/outputChannel.ts
function escapeQuote(input) {
  return input.replace(/'/g, "''");
}
var MAX_LINE_COUNT, BufferChannel;
var init_outputChannel = __esm({
  "src/model/outputChannel.ts"() {
    "use strict";
    MAX_LINE_COUNT = 5e4;
    BufferChannel = class {
      constructor(name2, nvim, onDispose, maxLineCount = MAX_LINE_COUNT) {
        this.name = name2;
        this.nvim = nvim;
        this.onDispose = onDispose;
        this.maxLineCount = maxLineCount;
      }
      name;
      nvim;
      onDispose;
      maxLineCount;
      lines = [""];
      _disposed = false;
      created = false;
      get content() {
        return this.lines.join("\n");
      }
      _append(value) {
        let { nvim } = this;
        if (!nvim) return;
        let idx = this.lines.length - 1;
        let newlines = value.split(/\r?\n/);
        let lastline = this.lines[idx] + newlines[0];
        this.lines[idx] = lastline;
        let append = newlines.slice(1);
        this.lines = this.lines.concat(append);
        let removed = 0;
        let rewrite = false;
        if (this.maxLineCount > 0 && this.lines.length > this.maxLineCount) {
          removed = this.lines.length - this.maxLineCount;
          this.lines.splice(0, removed);
          let lastIdx = this.lines.length - append.length - 1;
          if (lastIdx < 0) {
            rewrite = true;
          } else {
            lastline = this.lines[lastIdx];
          }
        }
        if (!this.created) return;
        nvim.pauseNotification();
        if (rewrite) {
          nvim.call("deletebufline", [this.bufname, 1, "$"], true);
          nvim.call("appendbufline", [this.bufname, "$", this.lines], true);
        } else {
          if (removed > 0) {
            nvim.call("deletebufline", [this.bufname, 1, removed], true);
          }
          nvim.call("setbufline", [this.bufname, "$", lastline], true);
          if (append.length) {
            nvim.call("appendbufline", [this.bufname, "$", append], true);
          }
        }
        nvim.resumeNotification(false, true);
      }
      append(value) {
        if (!this.validate()) return;
        this._append(value);
      }
      appendLine(value) {
        if (!this.validate()) return;
        this._append(value + "\n");
      }
      clear(keep) {
        let { nvim } = this;
        if (!this.validate() || !nvim) return;
        this.lines = keep ? this.lines.slice(-keep) : [];
        if (!this.created) return;
        nvim.pauseNotification();
        nvim.call("deletebufline", [this.bufname, 1, "$"], true);
        if (this.lines.length) {
          nvim.call("appendbufline", [this.bufname, "$", this.lines], true);
        }
        nvim.resumeNotification(true, true);
      }
      hide() {
        this.created = false;
        let name2 = escapeQuote(this.bufname);
        if (this.nvim) this.nvim.command(`exe 'silent! bwipeout! '.bufnr('${name2}')`, true);
      }
      get bufname() {
        return `output:///${encodeURI(this.name)}`;
      }
      show(preserveFocus, cmd = "vs") {
        let { nvim } = this;
        if (!nvim) return;
        let name2 = escapeQuote(this.bufname);
        nvim.pauseNotification();
        nvim.command(`exe '${cmd} '.fnameescape('${name2}')`, true);
        if (preserveFocus) {
          nvim.command("wincmd p", true);
        }
        nvim.resumeNotification(true, true);
        this.created = true;
      }
      validate() {
        return !this._disposed;
      }
      dispose() {
        if (this.onDispose) this.onDispose();
        this._disposed = true;
        this.hide();
        this.lines = [];
      }
    };
  }
});

// src/core/channels.ts
var Channels, channels_default;
var init_channels = __esm({
  "src/core/channels.ts"() {
    "use strict";
    init_events();
    init_outputChannel();
    Channels = class {
      outputChannels = /* @__PURE__ */ new Map();
      bufnrs = /* @__PURE__ */ new Map();
      disposable;
      constructor() {
        this.disposable = events_default.on("BufUnload", (bufnr) => {
          let name2 = this.bufnrs.get(bufnr);
          if (name2) {
            let channel = this.outputChannels.get(name2);
            if (channel) channel.created = false;
          }
        });
      }
      /**
       * Get text document provider
       */
      getProvider(nvim) {
        let provider = {
          onDidChange: null,
          provideTextDocumentContent: async (uri) => {
            let channel = this.get(uri.path.slice(1));
            if (!channel) return "";
            nvim.pauseNotification();
            nvim.call("bufnr", ["%"], true);
            nvim.command("setlocal nospell nofoldenable nowrap noswapfile", true);
            nvim.command("setlocal buftype=nofile bufhidden=hide", true);
            nvim.command("setfiletype log", true);
            let res = await nvim.resumeNotification();
            this.bufnrs.set(res[0][0], channel.name);
            channel.created = true;
            return channel.content;
          }
        };
        return provider;
      }
      get names() {
        return Array.from(this.outputChannels.keys());
      }
      get(channelName) {
        return this.outputChannels.get(channelName);
      }
      create(name2, nvim) {
        if (this.outputChannels.has(name2)) return this.outputChannels.get(name2);
        let channel = new BufferChannel(name2, nvim, () => {
          this.outputChannels.delete(name2);
        });
        this.outputChannels.set(name2, channel);
        return channel;
      }
      show(name2, cmd, preserveFocus) {
        let channel = this.outputChannels.get(name2);
        if (!channel) return;
        channel.show(preserveFocus, cmd);
      }
      dispose() {
        this.disposable.dispose();
        for (let channel of this.outputChannels.values()) {
          channel.dispose();
        }
        this.outputChannels.clear();
      }
    };
    channels_default = new Channels();
  }
});

// src/model/dialog.ts
var Dialog;
var init_dialog = __esm({
  "src/model/dialog.ts"() {
    "use strict";
    init_protocol();
    init_events();
    init_util();
    init_array();
    Dialog = class {
      constructor(nvim, config) {
        this.nvim = nvim;
        this.config = config;
        events_default.on("BufWinLeave", (bufnr) => {
          if (bufnr == this.bufnr) {
            this.dispose();
            if (config.callback) config.callback(-1);
          }
        }, null, this.disposables);
        let btns = toArray(config.buttons).filter((o2) => o2.disabled != true);
        events_default.on("FloatBtnClick", (bufnr, idx) => {
          if (bufnr == this.bufnr) {
            this.dispose();
            if (config.callback) config.callback(btns[idx].index);
          }
        }, null, this.disposables);
      }
      nvim;
      config;
      disposables = [];
      bufnr;
      _onDidClose = new import_node4.Emitter();
      onDidClose = this._onDidClose.event;
      get lines() {
        return [...this.config.content.split(/\r?\n/)];
      }
      async show(preferences) {
        let { nvim } = this;
        let { title, close, highlights, buttons } = this.config;
        let borderhighlight = this.config.borderhighlight || preferences.floatBorderHighlight;
        let highlight = this.config.highlight || preferences.floatHighlight;
        let opts = { maxwidth: preferences.maxWidth || 80 };
        if (title) opts.title = title;
        opts.close = +(close ?? 1);
        if (preferences.maxHeight) opts.maxHeight = preferences.maxHeight;
        if (preferences.maxWidth) opts.maxWidth = preferences.maxWidth;
        if (highlight) opts.highlight = highlight;
        if (highlights) opts.highlights = highlights;
        if (borderhighlight) opts.borderhighlight = [borderhighlight];
        if (buttons) opts.buttons = buttons.filter((o2) => !o2.disabled).map((o2) => o2.text);
        if (preferences.rounded) opts.rounded = 1;
        if (Array.isArray(opts.buttons)) opts.getchar = 1;
        let [_winid, bufnr] = await nvim.call("coc#dialog#create_dialog", [this.lines, opts]);
        this.bufnr = bufnr;
        nvim.command("redraw", true);
      }
      get winid() {
        if (!this.bufnr) return Promise.resolve(null);
        return this.nvim.call("bufwinid", [this.bufnr]);
      }
      dispose() {
        this._onDidClose.fire();
        this.bufnr = void 0;
        disposeAll(this.disposables);
        this.disposables = [];
      }
    };
  }
});

// src/model/input.ts
var InputBox;
var init_input = __esm({
  "src/model/input.ts"() {
    "use strict";
    init_events();
    init_util();
    init_constants();
    init_object();
    init_protocol();
    init_string();
    InputBox = class {
      constructor(nvim, defaultValue2) {
        this.nvim = nvim;
        this._input = defaultValue2;
        this.disposables.push(this._onDidFinish);
        this.disposables.push(this._onDidChange);
        let _title;
        Object.defineProperty(this, "title", {
          set: (newTitle) => {
            _title = newTitle;
            if (this._winid) nvim.call("coc#dialog#change_title", [this._winid, newTitle], true);
          },
          get: () => {
            return _title;
          }
        });
        let _loading = false;
        Object.defineProperty(this, "loading", {
          set: (loading) => {
            _loading = loading;
            if (this._winid) nvim.call("coc#dialog#change_loading", [this._winid, loading], true);
          },
          get: () => {
            return _loading;
          }
        });
        let _borderhighlight;
        Object.defineProperty(this, "borderhighlight", {
          set: (borderhighlight) => {
            _borderhighlight = borderhighlight;
            if (this._winid) nvim.call("coc#dialog#change_border_hl", [this._winid, borderhighlight], true);
          },
          get: () => {
            return _borderhighlight;
          }
        });
        Object.defineProperty(this, "value", {
          set: (value) => {
            value = toText(value);
            if (value !== this._input) {
              this.clearVirtualText();
              this._input = value;
              this.nvim.call("coc#dialog#change_input_value", [this.winid, this.bufnr, value], true);
              this._onDidChange.fire(value);
            }
          },
          get: () => {
            return this._input;
          }
        });
        events_default.on("BufWinLeave", (bufnr) => {
          if (bufnr == this._bufnr) {
            this.dispose();
          }
        }, null, this.disposables);
        events_default.on("PromptInsert", (value, bufnr) => {
          if (bufnr == this._bufnr) {
            this._input = value;
            this.accepted = true;
            this.dispose();
          }
        }, null, this.disposables);
        events_default.on("PromptExit", (bufnr) => {
          if (bufnr == this._bufnr) {
            this.dispose();
          }
        }, null, this.disposables);
        events_default.on("TextChangedI", (bufnr, info) => {
          if (bufnr == this._bufnr && this._input !== info.line) {
            this.clearVirtualText();
            this._input = info.line;
            this._onDidChange.fire(info.line);
          }
        }, null, this.disposables);
      }
      nvim;
      disposables = [];
      _winid;
      _bufnr;
      _input;
      accepted = false;
      _disposed = false;
      title;
      loading;
      value;
      borderhighlight;
      // width, height, row, col
      _dimension = [0, 0, 0, 0];
      _onDidFinish = new import_node4.Emitter();
      _onDidChange = new import_node4.Emitter();
      clear = false;
      onDidFinish = this._onDidFinish.event;
      onDidChange = this._onDidChange.event;
      clearVirtualText() {
        if (this.clear && this.bufnr) {
          this.clear = false;
          let buf = this.nvim.createBuffer(this.bufnr);
          buf.clearNamespace("input-box");
        }
      }
      get dimension() {
        let { _dimension } = this;
        return { width: _dimension[0], height: _dimension[1], row: _dimension[2], col: _dimension[3] };
      }
      get bufnr() {
        return this._bufnr;
      }
      get winid() {
        return this._winid;
      }
      async show(title, preferences) {
        this.title = title;
        this.borderhighlight = preferences.borderhighlight ?? "CocFloatBorder";
        this.loading = false;
        if (preferences.placeHolder && !this._input && !isVim) {
          this.clear = true;
        }
        let res = await this.nvim.call("coc#dialog#create_prompt_win", [title, this._input, omitUndefined(preferences)]);
        if (!res) throw new Error("Unable to open input window");
        this._bufnr = res[0];
        this._winid = res[1];
        this._dimension = res[2];
        return true;
      }
      dispose() {
        if (this._disposed) return;
        this._disposed = true;
        this.nvim.call("coc#float#close", [this._winid ?? -1], true);
        if (isVim) this.nvim.command(`silent! bd! ${this._bufnr}`, true);
        this._onDidFinish.fire(this.accepted ? this._input : null);
        this._winid = void 0;
        this._bufnr = void 0;
        disposeAll(this.disposables);
      }
    };
  }
});

// src/model/popup.ts
var Popup;
var init_popup = __esm({
  "src/model/popup.ts"() {
    "use strict";
    init_constants();
    Popup = class {
      constructor(nvim, winid, bufnr, linecount, _currIndex = 0) {
        this.nvim = nvim;
        this.winid = winid;
        this.bufnr = bufnr;
        this.linecount = linecount;
        this._currIndex = _currIndex;
      }
      nvim;
      winid;
      bufnr;
      linecount;
      _currIndex;
      get currIndex() {
        return this._currIndex;
      }
      close() {
        this.nvim.call("coc#float#close", [this.winid], true);
      }
      refreshScrollbar() {
        if (!isVim) this.nvim.call("coc#float#nvim_scrollbar", [this.winid], true);
      }
      execute(cmd) {
        this.nvim.call("win_execute", [this.winid, cmd], true);
      }
      async getWininfo() {
        return await this.nvim.call("coc#float#get_wininfo", [this.winid]);
      }
      /**
       * Simple scroll method, not consider wrapped lines.
       */
      async scrollForward() {
        let { nvim, bufnr } = this;
        let buf = nvim.createBuffer(bufnr);
        let total = await buf.length;
        let { botline } = await this.getWininfo();
        if (botline >= total || botline == 0) return;
        nvim.pauseNotification();
        this.setCursor(botline - 1);
        this.execute(`silent! noa setl scrolloff=0`);
        this.execute(`normal! ${botline}Gzt`);
        this.refreshScrollbar();
        nvim.command("redraw", true);
        nvim.resumeNotification(false, true);
      }
      /**
       * Simple scroll method, not consider wrapped lines.
       */
      async scrollBackward() {
        let { nvim } = this;
        let { topline } = await this.getWininfo();
        if (topline == 1) return;
        nvim.pauseNotification();
        this.setCursor(topline - 1);
        this.execute(`normal! ${topline}Gzb`);
        this.refreshScrollbar();
        nvim.command("redraw", true);
        nvim.resumeNotification(false, true);
      }
      /**
       * Move cursor and highlight.
       */
      setCursor(index, redraw = false) {
        let { nvim, bufnr, winid, linecount } = this;
        if (index < 0) {
          index = 0;
        } else if (index > linecount - 1) {
          index = linecount - 1;
        }
        this._currIndex = index;
        nvim.call("coc#dialog#set_cursor", [winid, bufnr, index + 1], true);
        if (redraw) {
          this.refreshScrollbar();
          nvim.command("redraw", true);
        }
      }
    };
  }
});

// src/model/menu.ts
function isMenuItem(item) {
  if (!item) return false;
  return typeof item.text === "string";
}
function toIndexText(n2, length = 0) {
  if (length <= n2) {
    length = n2 + 1;
  }
  let shownum = n2 < 99 ? `${n2 + 1}. ` : "";
  let numwidth = Math.min(length, 99).toString().length + 2;
  let pre = " ".repeat(Math.max(0, numwidth - shownum.length));
  return pre + shownum;
}
var Menu;
var init_menu = __esm({
  "src/model/menu.ts"() {
    "use strict";
    init_protocol();
    init_events();
    init_util();
    init_string();
    init_popup();
    Menu = class {
      constructor(nvim, config, token) {
        this.nvim = nvim;
        this.config = config;
        this.total = config.items.length;
        if (token) {
          token.onCancellationRequested(() => {
            this._onDidClose.fire(-1);
            this.dispose();
          });
        }
        this.disposables.push(this._onDidClose);
        this.addKeymappings();
      }
      nvim;
      config;
      bufnr;
      win;
      currIndex = 0;
      contentHeight = 0;
      total;
      disposables = [];
      keyMappings = /* @__PURE__ */ new Map();
      shortcutIndexes = /* @__PURE__ */ new Set();
      _disposed = false;
      _onDidClose = new import_node4.Emitter();
      onDidClose = this._onDidClose.event;
      attachEvents() {
        events_default.on("InputChar", this.onInputChar.bind(this), null, this.disposables);
        events_default.on("BufWinLeave", (bufnr) => {
          if (bufnr == this.bufnr) {
            this._onDidClose.fire(-1);
            this.dispose();
          }
        }, null, this.disposables);
      }
      addKeymappings() {
        let { nvim } = this;
        this.addKeys(["", ""], () => {
          this._onDidClose.fire(-1);
          this.dispose();
        });
        this.addKeys(["\r", ""], () => {
          this.selectCurrent();
        });
        let setCursorIndex = (idx) => {
          nvim.pauseNotification();
          this.setCursor(idx + this.contentHeight);
          this.win.refreshScrollbar();
          nvim.command("redraw", true);
          nvim.resumeNotification(false, true);
        };
        this.addKeys("", async () => {
          await this.win.scrollForward();
        });
        this.addKeys("", async () => {
          await this.win.scrollBackward();
        });
        this.addKeys(["j", "", "", "", ""], () => {
          let idx = this.currIndex == this.total - 1 ? 0 : this.currIndex + 1;
          setCursorIndex(idx);
        });
        this.addKeys(["k", "", "", "", ""], () => {
          let idx = this.currIndex == 0 ? this.total - 1 : this.currIndex - 1;
          setCursorIndex(idx);
        });
        this.addKeys(["g"], () => {
          setCursorIndex(0);
        });
        this.addKeys(["G"], () => {
          setCursorIndex(this.total - 1);
        });
        let timer;
        let firstNumber;
        const choose = (n2) => {
          let disabled = this.isDisabled(n2);
          if (disabled) return;
          this._onDidClose.fire(n2);
          this.dispose();
        };
        this.addKeys(["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"], (character) => {
          if (timer) clearTimeout(timer);
          let n2 = parseInt(character, 10);
          if (isNaN(n2) || n2 > this.total) return;
          if (firstNumber == null && n2 == 0) return;
          if (firstNumber) {
            let count = firstNumber * 10 + n2;
            firstNumber = void 0;
            choose(count - 1);
            return;
          }
          if (this.total < 10 || n2 * 10 > this.total) {
            choose(n2 - 1);
            return;
          }
          timer = setTimeout(async () => {
            choose(n2 - 1);
          }, 200);
          firstNumber = n2;
        });
        if (this.config.shortcuts) {
          this.addShortcuts(choose);
        }
      }
      addShortcuts(choose) {
        let { items } = this.config;
        let texts = items.map((o2) => {
          return isMenuItem(o2) ? o2.text : o2;
        });
        texts.forEach((text, idx) => {
          if (text.length) {
            let s2 = text[0];
            if (isAlphabet(s2.charCodeAt(0)) && !this.keyMappings.has(s2)) {
              this.shortcutIndexes.add(idx);
              this.addKeys(s2, () => {
                choose(idx);
              });
            }
          }
        });
      }
      isDisabled(idx) {
        let { items } = this.config;
        let item = items[idx];
        if (isMenuItem(item) && item.disabled) {
          return true;
        }
        return false;
      }
      async show(preferences = {}) {
        let { nvim, shortcutIndexes } = this;
        let { title, items, borderhighlight, position, content } = this.config;
        let opts = {};
        if (title) opts.title = title;
        if (position === "center") opts.relative = "editor";
        if (preferences.maxHeight) opts.maxHeight = preferences.maxHeight;
        if (preferences.maxWidth) opts.maxWidth = preferences.maxWidth;
        if (preferences.floatHighlight) opts.highlight = preferences.floatHighlight;
        if (borderhighlight) {
          opts.borderhighlight = borderhighlight;
        } else if (preferences.floatBorderHighlight) {
          opts.borderhighlight = preferences.floatBorderHighlight;
        }
        if (preferences.rounded) opts.rounded = 1;
        if (typeof content === "string") opts.content = content;
        if (preferences.confirmKey) {
          this.addKeys(preferences.confirmKey, () => {
            this.selectCurrent();
          });
        }
        let highlights = [];
        let lines = items.map((v2, i2) => {
          let text = isMenuItem(v2) ? v2.text : v2;
          let pre = toIndexText(i2, items.length);
          if (shortcutIndexes.has(i2)) {
            highlights.push({
              lnum: i2,
              hlGroup: preferences.shortcutHighlight || "MoreMsg",
              colStart: byteLength(pre),
              colEnd: byteLength(pre) + 1
            });
          }
          return pre + text.trim();
        });
        lines.forEach((line, i2) => {
          let item = items[i2];
          if (isMenuItem(item) && item.disabled) {
            highlights.push({
              hlGroup: "CocDisabled",
              lnum: i2,
              colStart: 0,
              colEnd: byteLength(line)
            });
          }
        });
        if (highlights.length) opts.highlights = highlights;
        let [winid, bufnr, contentHeight] = await nvim.call("coc#dialog#create_menu", [lines, opts]);
        nvim.command("redraw", true);
        if (this._disposed) return;
        this.win = new Popup(nvim, winid, bufnr, lines.length + contentHeight, contentHeight);
        this.bufnr = bufnr;
        this.contentHeight = contentHeight;
        this.attachEvents();
        nvim.call("coc#prompt#start_prompt", ["menu"], true);
      }
      selectCurrent() {
        if (this.isDisabled(this.currIndex)) {
          let item = this.config.items[this.currIndex];
          if (item.disabled["reason"]) {
            this.nvim.outWriteLine(`Item disabled: ${item.disabled["reason"]}`);
          }
          return;
        }
        this._onDidClose.fire(this.currIndex);
        this.dispose();
      }
      get buffer() {
        return this.bufnr ? this.nvim.createBuffer(this.bufnr) : void 0;
      }
      dispose() {
        if (this._disposed) return;
        this._disposed = true;
        disposeAll(this.disposables);
        this.shortcutIndexes.clear();
        this.keyMappings.clear();
        this.nvim.call("coc#prompt#stop_prompt", ["menu"], true);
        this.win?.close();
        this.bufnr = void 0;
        this.win = void 0;
      }
      async onInputChar(session, character) {
        if (session != "menu" || !this.win) return;
        let fn = this.keyMappings.get(character);
        if (fn) await Promise.resolve(fn(character));
      }
      setCursor(index) {
        this.currIndex = index - this.contentHeight;
        this.win.setCursor(index);
      }
      addKeys(keys, fn) {
        if (Array.isArray(keys)) {
          for (let key of keys) {
            this.keyMappings.set(key, fn);
          }
        } else {
          this.keyMappings.set(keys, fn);
        }
      }
    };
  }
});

// src/model/picker.ts
function toPickerItems(items) {
  return items.map((item) => typeof item === "string" ? { label: item } : item);
}
var Picker;
var init_picker = __esm({
  "src/model/picker.ts"() {
    "use strict";
    init_events();
    init_util();
    init_protocol();
    init_string();
    init_popup();
    Picker = class {
      constructor(nvim, config, token) {
        this.nvim = nvim;
        this.config = config;
        for (let i2 = 0; i2 < config.items.length; i2++) {
          let item = config.items[i2];
          if (item.picked) this.picked.add(i2);
        }
        this.total = config.items.length;
        if (token) {
          token.onCancellationRequested(() => {
            this.win?.close();
          });
        }
        this.disposables.push(this._onDidClose);
      }
      nvim;
      config;
      bufnr;
      win;
      picked = /* @__PURE__ */ new Set();
      total;
      disposables = [];
      keyMappings = /* @__PURE__ */ new Map();
      _onDidClose = new import_node4.Emitter();
      onDidClose = this._onDidClose.event;
      get currIndex() {
        return this.win ? this.win.currIndex : 0;
      }
      attachEvents() {
        events_default.on("InputChar", this.onInputChar.bind(this), null, this.disposables);
        events_default.on("BufWinLeave", (bufnr) => {
          if (bufnr == this.bufnr) {
            this._onDidClose.fire(void 0);
            this.bufnr = void 0;
            this.win = void 0;
            this.dispose();
          }
        }, null, this.disposables);
        events_default.on("FloatBtnClick", (bufnr, idx) => {
          if (bufnr != this.bufnr) return;
          if (idx == 0) {
            let selected = Array.from(this.picked);
            this._onDidClose.fire(selected.length > 0 ? selected : void 0);
          } else {
            this._onDidClose.fire(void 0);
          }
          this.dispose();
        }, null, this.disposables);
        this.addKeymappings();
      }
      addKeymappings() {
        let { nvim } = this;
        const toggleSelect = (idx) => {
          if (this.picked.has(idx)) {
            this.picked.delete(idx);
          } else {
            this.picked.add(idx);
          }
        };
        this.addKeys("", async () => {
          let [winid, lnum, col] = await nvim.call("coc#ui#get_mouse");
          nvim.pauseNotification();
          if (winid == this.win.winid) {
            if (col <= 3) {
              toggleSelect(lnum - 1);
              this.changeLine(lnum - 1);
            } else {
              this.win.setCursor(lnum - 1);
            }
          }
          nvim.call("win_gotoid", [winid], true);
          nvim.call("cursor", [lnum, col], true);
          nvim.call("coc#float#nvim_float_click", [], true);
          nvim.command("redraw", true);
          await nvim.resumeNotification();
        });
        this.addKeys(["", ""], () => {
          this._onDidClose.fire(void 0);
          this.dispose();
        });
        this.addKeys("", () => {
          if (this.picked.size == 0) {
            this._onDidClose.fire(void 0);
          } else {
            let selected = Array.from(this.picked);
            this._onDidClose.fire(selected);
          }
          this.dispose();
        });
        this.addKeys(["j", "", "", ""], () => {
          this.win.setCursor(this.currIndex + 1, true);
        });
        this.addKeys(["k", "", "", ""], () => {
          this.win.setCursor(this.currIndex - 1, true);
        });
        this.addKeys(["g"], () => {
          this.win.setCursor(0, true);
        });
        this.addKeys(["G"], () => {
          this.win.setCursor(this.total - 1, true);
        });
        this.addKeys(" ", async () => {
          let idx = this.currIndex;
          toggleSelect(idx);
          nvim.pauseNotification();
          this.changeLine(idx);
          this.win.setCursor(this.currIndex + 1);
          nvim.command("redraw", true);
          await nvim.resumeNotification();
        });
        this.addKeys("", async () => {
          await this.win.scrollForward();
        });
        this.addKeys("", async () => {
          await this.win.scrollBackward();
        });
      }
      async show(preferences = {}) {
        let { nvim } = this;
        let { title, items } = this.config;
        let opts = { close: 1, cursorline: 1 };
        if (preferences.maxHeight) opts.maxHeight = preferences.maxHeight;
        if (preferences.maxWidth) opts.maxWidth = preferences.maxWidth;
        if (title) opts.title = title;
        if (preferences.floatHighlight) opts.highlight = preferences.floatHighlight;
        if (preferences.floatBorderHighlight) opts.borderhighlight = [preferences.floatBorderHighlight];
        if (preferences.pickerButtons) {
          let shortcut = preferences.pickerButtonShortcut;
          opts.buttons = ["Submit" + (shortcut ? " " : ""), "Cancel" + (shortcut ? " " : "")];
        }
        if (preferences.rounded) opts.rounded = 1;
        if (preferences.confirmKey && preferences.confirmKey != "") {
          this.addKeys(preferences.confirmKey, () => {
            this._onDidClose.fire(void 0);
            this.dispose();
          });
        }
        let lines = [];
        let highlights = [];
        for (let i2 = 0; i2 < items.length; i2++) {
          let item = items[i2];
          let line = `[${item.picked ? "x" : " "}] ${item.label}`;
          if (item.description) {
            let start = byteLength(line);
            line = line + ` ${item.description}`;
            highlights.push({ hlGroup: "Comment", lnum: i2, colStart: start, colEnd: byteLength(line) });
          }
          lines.push(line);
        }
        if (highlights.length) opts.highlights = highlights;
        let res = await nvim.call("coc#dialog#create_dialog", [lines, opts]);
        this.win = new Popup(nvim, res[0], res[1], lines.length);
        this.bufnr = res[1];
        nvim.call("coc#prompt#start_prompt", ["picker"], true);
        this.attachEvents();
        this.win.setCursor(0, true);
        return res[0];
      }
      get buffer() {
        return this.bufnr ? this.nvim.createBuffer(this.bufnr) : void 0;
      }
      dispose() {
        this.picked.clear();
        this.keyMappings.clear();
        disposeAll(this.disposables);
        this.nvim.call("coc#prompt#stop_prompt", ["picker"], true);
        this.win?.close();
        this.win = void 0;
      }
      async onInputChar(session, character) {
        if (session != "picker" || !this.win) return;
        let fn = this.keyMappings.get(character);
        if (fn) await Promise.resolve(fn(character));
      }
      changeLine(index) {
        let { nvim } = this;
        let item = this.config.items[index];
        if (!item) return;
        let line = `[${this.picked.has(index) ? "x" : " "}] ${item.label}`;
        let col = byteLength(line);
        if (item.description) line = line + ` ${item.description}`;
        nvim.call("setbufline", [this.bufnr, index + 1, line], true);
        let buf = nvim.createBuffer(this.bufnr);
        void buf.addHighlight({ hlGroup: "Comment", line: index, srcId: 1, colStart: col, colEnd: -1 });
      }
      addKeys(keys, fn) {
        if (Array.isArray(keys)) {
          for (let key of keys) {
            this.keyMappings.set(key, fn);
          }
        } else {
          this.keyMappings.set(keys, fn);
        }
      }
    };
  }
});

// src/util/filter.ts
function initTable() {
  const table = [];
  const row = [];
  for (let i2 = 0; i2 <= _maxLen; i2++) {
    row[i2] = 0;
  }
  for (let i2 = 0; i2 <= _maxLen; i2++) {
    table.push(row.slice(0));
  }
  return table;
}
function initArr(maxLen) {
  const row = [];
  for (let i2 = 0; i2 <= maxLen; i2++) {
    row[i2] = 0;
  }
  return row;
}
function isUpperCaseAtPos(pos, word, wordLow) {
  return word[pos] !== wordLow[pos];
}
function fuzzyScoreGracefulAggressive(pattern, lowPattern, patternPos, word, lowWord, wordPos, options3) {
  return fuzzyScoreWithPermutations(pattern, lowPattern, patternPos, word, lowWord, wordPos, true, options3);
}
function fuzzyScoreGraceful(pattern, lowPattern, patternPos, word, lowWord, wordPos, options3) {
  return fuzzyScoreWithPermutations(pattern, lowPattern, patternPos, word, lowWord, wordPos, false, options3);
}
function fuzzyScoreWithPermutations(pattern, lowPattern, patternPos, word, lowWord, wordPos, aggressive, options3) {
  let top = fuzzyScore(pattern, lowPattern, patternPos, word, lowWord, wordPos, options3);
  if (top && !aggressive) {
    return top;
  }
  if (pattern.length >= 3) {
    const tries = Math.min(7, pattern.length - 1);
    for (let movingPatternPos = patternPos + 1; movingPatternPos < tries; movingPatternPos++) {
      const newPattern = nextTypoPermutation(pattern, movingPatternPos);
      if (newPattern) {
        const candidate = fuzzyScore(newPattern, newPattern.toLowerCase(), patternPos, word, lowWord, wordPos, options3);
        if (candidate) {
          candidate[0] -= 3;
          if (!top || candidate[0] > top[0]) {
            top = candidate;
          }
        }
      }
    }
  }
  return top;
}
function fuzzyScore(pattern, patternLow, patternStart, word, wordLow, wordStart, options3 = { boostFullMatch: true, firstMatchCanBeWeak: false }) {
  const patternLen = pattern.length > _maxLen ? _maxLen : pattern.length;
  const wordLen = word.length > _maxLen ? _maxLen : word.length;
  if (patternStart >= patternLen || wordStart >= wordLen || patternLen - patternStart > wordLen - wordStart) {
    return void 0;
  }
  if (!isPatternInWord(patternLow, patternStart, patternLen, wordLow, wordStart, wordLen, true)) {
    return void 0;
  }
  _fillInMaxWordMatchPos(patternLen, wordLen, patternStart, wordStart, patternLow, wordLow);
  let row = 1;
  let column = 1;
  let patternPos = patternStart;
  let wordPos = wordStart;
  const hasStrongFirstMatch = [false];
  for (row = 1, patternPos = patternStart; patternPos < patternLen; row++, patternPos++) {
    const minWordMatchPos = _minWordMatchPos[patternPos];
    const maxWordMatchPos = _maxWordMatchPos[patternPos];
    const nextMaxWordMatchPos = patternPos + 1 < patternLen ? _maxWordMatchPos[patternPos + 1] : wordLen;
    for (column = minWordMatchPos - wordStart + 1, wordPos = minWordMatchPos; wordPos < nextMaxWordMatchPos; column++, wordPos++) {
      let score3 = Number.MIN_SAFE_INTEGER;
      let canComeDiag = false;
      if (wordPos <= maxWordMatchPos) {
        score3 = _doScore(
          pattern,
          patternLow,
          patternPos,
          patternStart,
          word,
          wordLow,
          wordPos,
          wordLen,
          wordStart,
          _diag[row - 1][column - 1] === 0,
          hasStrongFirstMatch
        );
      }
      let diagScore = 0;
      canComeDiag = true;
      diagScore = score3 + _table[row - 1][column - 1];
      const canComeLeft = wordPos > minWordMatchPos;
      const leftScore = canComeLeft ? _table[row][column - 1] + (_diag[row][column - 1] > 0 ? -5 : 0) : 0;
      const canComeLeftLeft = wordPos > minWordMatchPos + 1 && _diag[row][column - 1] > 0;
      const leftLeftScore = canComeLeftLeft ? _table[row][column - 2] + (_diag[row][column - 2] > 0 ? -5 : 0) : 0;
      if (canComeLeftLeft && (!canComeLeft || leftLeftScore >= leftScore) && (!canComeDiag || leftLeftScore >= diagScore)) {
        _table[row][column] = leftLeftScore;
        _arrows[row][column] = 3 /* LeftLeft */;
        _diag[row][column] = 0;
      } else if (canComeLeft && (!canComeDiag || leftScore >= diagScore)) {
        _table[row][column] = leftScore;
        _arrows[row][column] = 2 /* Left */;
        _diag[row][column] = 0;
      } else {
        _table[row][column] = diagScore;
        _arrows[row][column] = 1 /* Diag */;
        _diag[row][column] = _diag[row - 1][column - 1] + 1;
      }
    }
  }
  if (!hasStrongFirstMatch[0] && !options3.firstMatchCanBeWeak) {
    return void 0;
  }
  row--;
  column--;
  const result = [_table[row][column], wordStart];
  let backwardsDiagLength = 0;
  let maxMatchColumn = 0;
  while (row >= 1) {
    let diagColumn = column;
    do {
      const arrow = _arrows[row][diagColumn];
      if (arrow === 3 /* LeftLeft */) {
        diagColumn = diagColumn - 2;
      } else if (arrow === 2 /* Left */) {
        diagColumn = diagColumn - 1;
      } else {
        break;
      }
    } while (diagColumn >= 1);
    if (backwardsDiagLength > 1 && patternLow[patternStart + row - 1] === wordLow[wordStart + column - 1] && !isUpperCaseAtPos(diagColumn + wordStart - 1, word, wordLow) && backwardsDiagLength + 1 > _diag[row][diagColumn]) {
      diagColumn = column;
    }
    if (diagColumn === column) {
      backwardsDiagLength++;
    } else {
      backwardsDiagLength = 1;
    }
    if (!maxMatchColumn) {
      maxMatchColumn = diagColumn;
    }
    row--;
    column = diagColumn - 1;
    result.push(column);
  }
  if (wordLen === patternLen && options3.boostFullMatch) {
    result[0] += 2;
  }
  const skippedCharsCount = maxMatchColumn - patternLen;
  result[0] -= skippedCharsCount;
  return result;
}
function anyScore(pattern, lowPattern, patternPos, word, lowWord, wordPos, options3) {
  const max = Math.min(13, pattern.length);
  for (; patternPos < max; patternPos++) {
    const result = fuzzyScore(pattern, lowPattern, patternPos, word, lowWord, wordPos, options3);
    if (result) {
      return result;
    }
  }
  return [0, wordPos];
}
function _doScore(pattern, patternLow, patternPos, patternStart, word, wordLow, wordPos, wordLen, wordStart, newMatchStart, outFirstMatchStrong) {
  if (patternLow[patternPos] !== wordLow[wordPos]) {
    return Number.MIN_SAFE_INTEGER;
  }
  let score3 = 1;
  let isGapLocation = false;
  if (wordPos === patternPos - patternStart) {
    score3 = pattern[patternPos] === word[wordPos] ? 7 : 5;
  } else if (isUpperCaseAtPos(wordPos, word, wordLow) && (wordPos === 0 || !isUpperCaseAtPos(wordPos - 1, word, wordLow))) {
    score3 = pattern[patternPos] === word[wordPos] ? 7 : 5;
    isGapLocation = true;
  } else if (isSeparatorAtPos(wordLow, wordPos) && (wordPos === 0 || !isSeparatorAtPos(wordLow, wordPos - 1))) {
    score3 = 5;
  } else if (isSeparatorAtPos(wordLow, wordPos - 1) || isWhitespaceAtPos(wordLow, wordPos - 1)) {
    score3 = 5;
    isGapLocation = true;
  }
  if (score3 > 1 && patternPos === patternStart) {
    outFirstMatchStrong[0] = true;
  }
  if (!isGapLocation) {
    isGapLocation = isUpperCaseAtPos(wordPos, word, wordLow) || isSeparatorAtPos(wordLow, wordPos - 1) || isWhitespaceAtPos(wordLow, wordPos - 1);
  }
  if (patternPos === patternStart) {
    if (wordPos > wordStart) {
      score3 -= isGapLocation ? 3 : 5;
    }
  } else {
    if (newMatchStart) {
      score3 += isGapLocation ? 2 : 0;
    } else {
      score3 += isGapLocation ? 0 : 1;
    }
  }
  if (wordPos + 1 === wordLen) {
    score3 -= isGapLocation ? 3 : 5;
  }
  return score3;
}
function isSeparatorAtPos(value, index) {
  const code = value.codePointAt(index);
  switch (code) {
    case 95 /* Underline */:
    case 45 /* Dash */:
    case 46 /* Period */:
    case 32 /* Space */:
    case 47 /* Slash */:
    case 92 /* Backslash */:
    case 39 /* SingleQuote */:
    case 34 /* DoubleQuote */:
    case 58 /* Colon */:
    case 36 /* DollarSign */:
    case 60 /* LessThan */:
    case 62 /* GreaterThan */:
    case 40 /* OpenParen */:
    case 41 /* CloseParen */:
    case 91 /* OpenSquareBracket */:
    case 93 /* CloseSquareBracket */:
    case 123 /* OpenCurlyBrace */:
    case 125 /* CloseCurlyBrace */:
      return true;
    case void 0:
      return false;
    default:
      if (isEmojiImprecise(code)) {
        return true;
      }
      return false;
  }
}
function isWhitespaceAtPos(value, index) {
  if (index < 0 || index >= value.length) {
    return false;
  }
  const code = value.charCodeAt(index);
  switch (code) {
    case 32 /* Space */:
    case 9 /* Tab */:
      return true;
    default:
      return false;
  }
}
function isPatternInWord(patternLow, patternPos, patternLen, wordLow, wordPos, wordLen, fillMinWordPosArr = false) {
  while (patternPos < patternLen && wordPos < wordLen) {
    if (patternLow[patternPos] === wordLow[wordPos]) {
      if (fillMinWordPosArr) {
        _minWordMatchPos[patternPos] = wordPos;
      }
      patternPos += 1;
    }
    wordPos += 1;
  }
  return patternPos === patternLen;
}
function _fillInMaxWordMatchPos(patternLen, wordLen, patternStart, wordStart, patternLow, wordLow) {
  let patternPos = patternLen - 1;
  let wordPos = wordLen - 1;
  while (patternPos >= patternStart && wordPos >= wordStart) {
    if (patternLow[patternPos] === wordLow[wordPos]) {
      _maxWordMatchPos[patternPos] = wordPos;
      patternPos--;
    }
    wordPos--;
  }
}
function nextTypoPermutation(pattern, patternPos) {
  if (patternPos + 1 >= pattern.length) {
    return void 0;
  }
  const swap1 = pattern[patternPos];
  const swap2 = pattern[patternPos + 1];
  if (swap1 === swap2) {
    return void 0;
  }
  return pattern.slice(0, patternPos) + swap2 + swap1 + pattern.slice(patternPos + 2);
}
var _maxLen, _minWordMatchPos, _maxWordMatchPos, _diag, _table, _arrows;
var init_filter = __esm({
  "src/util/filter.ts"() {
    "use strict";
    init_charCode();
    init_string();
    _maxLen = 128;
    _minWordMatchPos = initArr(2 * _maxLen);
    _maxWordMatchPos = initArr(2 * _maxLen);
    _diag = initTable();
    _table = initTable();
    _arrows = initTable();
  }
});

// src/model/fuzzyMatch.ts
async function initFuzzyWasm() {
  const buffer = await fs.promises.readFile(wasmFile);
  const res = await global.WebAssembly.instantiate(buffer, { env: {} });
  return res.instance.exports;
}
function toSpans(label, score3) {
  let res = [];
  for (let span of matchSpansReverse(label, score3, 2)) {
    res.push(span);
  }
  return res;
}
function* matchSpansReverse(text, positions, endIndex2 = 0, max = Number.MAX_SAFE_INTEGER) {
  let len = positions.length;
  if (len <= endIndex2) return;
  let byteIndex2 = bytes(text, Math.min(positions[endIndex2] + 1, max));
  let start;
  let prev;
  for (let i2 = len - 1; i2 >= endIndex2; i2--) {
    let curr = positions[i2];
    if (curr >= max) {
      if (start != null) yield [byteIndex2(start), byteIndex2(prev + 1)];
      break;
    }
    if (prev != void 0) {
      let d2 = curr - prev;
      if (d2 == 1) {
        prev = curr;
      } else if (d2 > 1) {
        yield [byteIndex2(start), byteIndex2(prev + 1)];
        start = curr;
      } else {
        yield [byteIndex2(start), byteIndex2(prev + 1)];
        break;
      }
    } else {
      start = curr;
    }
    prev = curr;
    if (i2 == endIndex2) {
      yield [byteIndex2(start), byteIndex2(prev + 1)];
    }
  }
}
function* matchSpans(text, positions, max) {
  max = max ? Math.min(max, text.length) : text.length;
  let byteIndex2 = bytes(text, Math.min(text.length, 4096));
  let start;
  let prev;
  let len = positions.length;
  for (let i2 = 0; i2 < len; i2++) {
    let curr = positions[i2];
    if (curr >= max) {
      if (start != null) yield [byteIndex2(start), byteIndex2(prev + 1)];
      break;
    }
    if (prev != void 0) {
      let d2 = curr - prev;
      if (d2 == 1) {
        prev = curr;
      } else if (d2 > 1) {
        yield [byteIndex2(start), byteIndex2(prev + 1)];
        start = curr;
      } else {
        yield [byteIndex2(start), byteIndex2(prev + 1)];
        break;
      }
    } else {
      start = curr;
    }
    prev = curr;
    if (i2 == len - 1) {
      yield [byteIndex2(start), byteIndex2(prev + 1)];
    }
  }
}
var wasmFile, FuzzyMatch;
var init_fuzzyMatch = __esm({
  "src/model/fuzzyMatch.ts"() {
    "use strict";
    init_constants();
    init_filter();
    init_node();
    init_string();
    wasmFile = path.join(pluginRoot, "bin/fuzzy.wasm");
    FuzzyMatch = class {
      constructor(exports2) {
        this.exports = exports2;
      }
      exports;
      contentPtr;
      patternPtr;
      resultPtr;
      patternLength = 0;
      pattern = "";
      patternSet = false;
      matchSeq = false;
      sizes = [2048, 1024, 1024];
      /**
       * Match character positions to column spans.
       */
      matchSpans(text, positions, max) {
        return matchSpans(text, positions, max);
      }
      /**
       * Create 0 index byte spans from matched text and FuzzyScore for highlights
       */
      matchScoreSpans(text, score3) {
        return matchSpansReverse(text, score3, 2);
      }
      /**
       * Create a score function
       */
      createScoreFunction(pattern, patternPos, options3, kind) {
        let lowPattern = pattern.toLowerCase();
        let fn;
        if (kind === "any") {
          fn = anyScore;
        } else if (kind === "aggressive") {
          fn = fuzzyScoreGracefulAggressive;
        } else {
          fn = fuzzyScore;
        }
        return (word, wordPos = 0) => {
          return fn(pattern, lowPattern, patternPos, word, word.toLowerCase(), wordPos, options3);
        };
      }
      getSizes() {
        return this.sizes;
      }
      setPattern(pattern, matchSeq = false) {
        if (pattern.length > 256) pattern = pattern.slice(0, 256);
        this.matchSeq = matchSeq;
        this.pattern = pattern;
        this.patternLength = matchSeq ? pattern.length : pattern.replace(/(\s|\t)/g, "").length;
        this.patternSet = true;
        if (!this.exports) return;
        if (this.patternPtr == null) {
          let { malloc } = this.exports;
          let { sizes } = this;
          this.contentPtr = malloc(sizes[0]);
          this.patternPtr = malloc(sizes[1]);
          this.resultPtr = malloc(sizes[2]);
        }
        let buf = Buffer.from(pattern, "utf8");
        let len = buf.length;
        let bytes2 = new Uint8Array(this.exports.memory.buffer, this.patternPtr, len + 1);
        bytes2.set(buf);
        bytes2[len] = 0;
      }
      changeContent(text) {
        let { sizes } = this;
        if (text.length > 4096) text = text.slice(0, 4096);
        let buf = Buffer.from(text, "utf8");
        let len = buf.length;
        if (len > sizes[0]) {
          let { malloc, free } = this.exports;
          free(this.contentPtr);
          let byteLength2 = len + 1;
          this.contentPtr = malloc(byteLength2);
          sizes[0] = byteLength2;
        }
        let bytes2 = new Uint8Array(this.exports.memory.buffer, this.contentPtr, len + 1);
        bytes2.set(buf);
        bytes2[len] = 0;
      }
      match(text) {
        if (!this.patternSet) throw new Error("setPattern not called before match");
        if (this.patternLength === 0) return { score: 100, positions: new Uint32Array() };
        if (!this.exports) {
          let { pattern } = this;
          let score4 = fuzzyScore(pattern, pattern.toLowerCase(), 0, text, text.toLowerCase(), 0);
          if (!score4) return void 0;
          let positions = score4.slice(2).reverse();
          return { score: score4[0], positions: Uint32Array.from(positions) };
        }
        if (this.patternPtr == null) throw new Error("setPattern not called before match");
        this.changeContent(text);
        let { fuzzyMatch: fuzzyMatch2, memory } = this.exports;
        let { resultPtr } = this;
        let score3 = fuzzyMatch2(this.contentPtr, this.patternPtr, resultPtr, this.matchSeq ? 1 : 0);
        if (!score3) return void 0;
        const u32 = new Uint32Array(memory.buffer, resultPtr, this.patternLength);
        return { score: score3, positions: u32.slice() };
      }
      matchHighlights(text, hlGroup) {
        let res = this.match(text);
        if (!res) return void 0;
        let highlights = [];
        for (let span of this.matchSpans(text, res.positions)) {
          highlights.push({ span, hlGroup });
        }
        return { score: res.score, highlights };
      }
      free() {
        if (!this.exports) return;
        let ptrs = [this.contentPtr, this.patternPtr, this.resultPtr];
        let { free } = this.exports;
        ptrs.forEach((p2) => {
          if (p2 != null) free(p2);
        });
        this.contentPtr = this.patternPtr = this.resultPtr = void 0;
      }
    };
  }
});

// src/model/strwidth.ts
async function initStrWidthWasm() {
  const buffer = await fs.promises.readFile(wasmPath);
  const res = await global.WebAssembly.instantiate(buffer, { env: {} });
  return res.instance.exports;
}
var wasmPath, instance, StrWidth;
var init_strwidth = __esm({
  "src/model/strwidth.ts"() {
    "use strict";
    init_constants();
    init_node();
    wasmPath = path.join(pluginRoot, "bin/strwidth.wasm");
    StrWidth = class _StrWidth {
      constructor(exports2) {
        this.exports = exports2;
        this.bytes = new Uint8Array(exports2.memory.buffer);
        this.contentPtr = exports2.malloc(4096);
      }
      exports;
      contentPtr;
      bytes;
      cache = /* @__PURE__ */ new Map();
      setAmbw(ambiguousAsDouble) {
        this.exports.setAmbw(ambiguousAsDouble ? 1 : 0);
        this.cache.clear();
      }
      getWidth(content, cache2 = false) {
        let l2 = content.length;
        if (l2 === 0) return 0;
        if (l2 > 4095) {
          content = content.slice(0, 4095);
        }
        if (cache2 && this.cache.has(content)) {
          return this.cache.get(content);
        }
        let { contentPtr } = this;
        let buf = Buffer.from(content, "utf8");
        let len = buf.length;
        this.bytes.set(buf, contentPtr);
        this.bytes[contentPtr + len] = 0;
        let res = this.exports.strWidth(contentPtr);
        if (cache2) this.cache.set(content, res);
        return res;
      }
      static async create() {
        if (instance) return instance;
        let api = await initStrWidthWasm();
        instance = new _StrWidth(api);
        return instance;
      }
    };
  }
});

// src/model/quickpick.ts
var logger5, QuickPick;
var init_quickpick = __esm({
  "src/model/quickpick.ts"() {
    "use strict";
    init_events();
    init_logger();
    init_util();
    init_array();
    init_filter();
    init_protocol();
    init_string();
    init_fuzzyMatch();
    init_input();
    init_popup();
    init_strwidth();
    logger5 = createLogger("quickpick");
    QuickPick = class {
      constructor(nvim, preferences = {}) {
        this.nvim = nvim;
        this.preferences = preferences;
        let items = [];
        let input = this.input = new InputBox(this.nvim, "");
        if (preferences.maxHeight) this.maxHeight = preferences.maxHeight;
        Object.defineProperty(this, "items", {
          set: (list2) => {
            items = toArray(list2);
            this.selectedItems = items.filter((o2) => o2.picked);
            this.filterItems("");
          },
          get: () => items
        });
        Object.defineProperty(this, "activeItems", {
          set: (list2) => {
            items = toArray(list2);
            this.filteredItems = items;
            this.showFilteredItems();
          },
          get: () => this.filteredItems
        });
        Object.defineProperty(this, "value", {
          set: (value) => {
            this.input.value = value;
          },
          get: () => this.input.value
        });
        Object.defineProperty(this, "title", {
          set: (newTitle) => {
            input.title = toText(newTitle);
          },
          get: () => input.title ?? ""
        });
        Object.defineProperty(this, "loading", {
          set: (loading) => {
            input.loading = loading;
          },
          get: () => input.loading
        });
        input.onDidChange((value) => {
          this._changed = false;
          this._onDidChangeValue.fire(value);
          if (this._changed) {
            this._changed = false;
            return;
          }
          this.filterItems(value);
        }, this);
        input.onDidFinish(this.onFinish, this);
      }
      nvim;
      preferences;
      title;
      loading;
      items;
      activeItems;
      selectedItems;
      value;
      canSelectMany = false;
      matchOnDescription = false;
      maxHeight = 30;
      width;
      placeholder;
      bufnr;
      win;
      filteredItems = [];
      disposables = [];
      input;
      _changed = false;
      // emitted with selected items or undefined when cancelled.
      _onDidFinish = new import_node4.Emitter();
      _onDidChangeSelection = new import_node4.Emitter();
      _onDidChangeValue = new import_node4.Emitter();
      onDidFinish = this._onDidFinish.event;
      onDidChangeSelection = this._onDidChangeSelection.event;
      onDidChangeValue = this._onDidChangeValue.event;
      get maxWidth() {
        return this.preferences.maxWidth ?? 80;
      }
      get currIndex() {
        return this.win ? this.win.currIndex : 0;
      }
      get buffer() {
        return this.bufnr ? this.nvim.createBuffer(this.bufnr) : void 0;
      }
      get winid() {
        return this.win?.winid;
      }
      get inputBox() {
        return this.input;
      }
      setCursor(index) {
        this.win?.setCursor(index, true);
      }
      attachEvents(inputBufnr) {
        events_default.on("BufWinLeave", (bufnr) => {
          if (bufnr == this.bufnr) {
            this.bufnr = void 0;
            this.win = void 0;
          }
        }, null, this.disposables);
        events_default.on("InputListSelect", (index) => {
          if (index >= 0) {
            this.setCursor(index);
          }
          this.onFinish(index < 0 ? void 0 : "");
        }, null, this.disposables);
        events_default.on("PromptKeyPress", async (bufnr, key) => {
          if (bufnr == inputBufnr) {
            if (key == "") {
              await this.win.scrollForward();
            } else if (key == "") {
              await this.win.scrollBackward();
            } else if (["", "", ""].includes(key)) {
              this.setCursor(this.currIndex + 1);
            } else if (["", "", ""].includes(key)) {
              this.setCursor(this.currIndex - 1);
            } else if (this.canSelectMany && ["", ""].includes(key)) {
              this.toggePicked(this.currIndex);
            }
          }
        }, null, this.disposables);
      }
      async show() {
        let { nvim, items, input, width, preferences, maxHeight } = this;
        let { lines, highlights } = this.buildList(items, input.value);
        let minWidth;
        let lincount = 0;
        const sw = await StrWidth.create();
        if (typeof width === "number") minWidth = Math.min(width, this.maxWidth);
        let max = 40;
        lines.forEach((line) => {
          let w2 = sw.getWidth(line);
          if (typeof minWidth === "number") {
            lincount += Math.ceil(w2 / minWidth);
          } else {
            if (w2 >= 80) {
              minWidth = 80;
              lincount += Math.ceil(w2 / minWidth);
            } else {
              max = Math.max(max, w2);
              lincount += 1;
            }
          }
        });
        if (minWidth === void 0) minWidth = max;
        let rounded = !!preferences.rounded;
        await input.show(this.title, {
          quickpick: lines,
          position: "center",
          placeHolder: this.placeholder,
          marginTop: 10,
          border: [1, 1, 0, 1],
          list: true,
          rounded,
          minWidth,
          maxWidth: this.maxWidth,
          highlight: preferences.floatHighlight,
          borderhighlight: preferences.floatBorderHighlight
        });
        let opts = { lines, rounded, maxHeight, highlights, linecount: Math.max(1, lincount) };
        if (preferences.floatHighlight !== void 0) opts.highlight = preferences.floatHighlight;
        if (preferences.floatBorderHighlight !== void 0) opts.borderhighlight = preferences.floatBorderHighlight;
        let res = await nvim.call("coc#dialog#create_list", [input.winid, input.dimension, opts]);
        if (!res) throw new Error("Unable to open list window.");
        this.win = new Popup(nvim, res[0], res[1], lines.length);
        this.win.refreshScrollbar();
        this.bufnr = res[1];
        this.setCursor(0);
        this.attachEvents(input.bufnr);
      }
      buildList(items, input, loose = false) {
        let { selectedItems, canSelectMany } = this;
        let filteredItems = [];
        let filtered = [];
        let emptyInput = input.length === 0;
        let lowInput = input.toLowerCase();
        const scoreFn = loose ? anyScore : fuzzyScoreGracefulAggressive;
        const wordPos = canSelectMany ? 4 : 0;
        for (let index = 0; index < items.length; index++) {
          const item = items[index];
          let filterText = this.toFilterText(item);
          let spans = [];
          let score3 = 0;
          let descriptionSpan;
          if (!emptyInput) {
            let res = scoreFn(input, lowInput, 0, filterText, filterText.toLowerCase(), wordPos, { boostFullMatch: false, firstMatchCanBeWeak: true });
            if (!res) continue;
            score3 = loose ? 0 : res[0];
            spans = toSpans(filterText, res);
          }
          let picked = selectedItems.includes(item);
          let line = canSelectMany ? `[${picked ? "x" : " "}] ${item.label}` : item.label;
          if (item.description) {
            let start = byteLength(line);
            line = line + ` ${item.description}`;
            descriptionSpan = [start, start + 1 + byteLength(item.description)];
          }
          let lineItem = { line, descriptionSpan, index, score: score3, spans };
          filtered.push(lineItem);
        }
        let lines = [];
        let highlights = [];
        filtered.sort((a2, b2) => {
          if (a2.score != b2.score) return b2.score - a2.score;
          return a2.index - b2.index;
        });
        const toHighlight = (lnum, span, hlGroup, pre) => {
          return { lnum, colStart: span[0] + pre, colEnd: span[1] + pre, hlGroup };
        };
        filtered.forEach((item, index) => {
          lines.push(item.line);
          item.spans.forEach((span) => {
            highlights.push(toHighlight(index, span, "CocSearch", wordPos));
          });
          if (item.descriptionSpan) {
            highlights.push(toHighlight(index, item.descriptionSpan, "Comment", 0));
          }
          filteredItems.push(items[item.index]);
        });
        this.filteredItems = filteredItems;
        return { lines, highlights };
      }
      /**
       * Filter items, does highlight only when loose is true
       */
      _filter(items, input, loose = false) {
        if (!this.win) return;
        this._changed = true;
        let { lines, highlights } = this.buildList(items, input, loose);
        this.nvim.call("coc#dialog#update_list", [this.win.winid, this.win.bufnr, lines, highlights], true);
        this.win.linecount = lines.length;
        this.setCursor(0);
      }
      /**
       * Filter items with input
       */
      filterItems(input) {
        this._filter(this.items, input);
      }
      showFilteredItems() {
        let { input, filteredItems } = this;
        this._filter(filteredItems, input.value, true);
      }
      onFinish(input) {
        let items = input == null ? null : this.getSelectedItems();
        if (!this.canSelectMany && input !== void 0 && Array.isArray(items)) {
          this._onDidChangeSelection.fire(items);
        }
        this.nvim.call("coc#float#close", [this.winid], true);
        setTimeout(() => {
          this._onDidFinish.fire(items);
          this.dispose();
        }, 30);
      }
      getSelectedItems() {
        let { canSelectMany } = this;
        if (canSelectMany) return this.selectedItems;
        return toArray(this.filteredItems[this.currIndex]);
      }
      toggePicked(index) {
        let { nvim, filteredItems, selectedItems } = this;
        let item = filteredItems[index];
        if (!item) return;
        let idx = selectedItems.indexOf(item);
        if (idx != -1) {
          selectedItems.splice(idx, 1);
        } else {
          selectedItems.push(item);
        }
        let text = idx == -1 ? "x" : " ";
        nvim.pauseNotification();
        this.win.execute(`normal! ^1lr${text}`);
        this.win.setCursor(this.win.currIndex + 1);
        nvim.resumeNotification(true, true);
        this._onDidChangeSelection.fire(selectedItems);
      }
      toFilterText(item) {
        let { label, description } = item;
        let { canSelectMany } = this;
        let line = `${canSelectMany ? "    " : ""}${label.replace(/\r?\n/, "")}`;
        return this.matchOnDescription ? line + " " + (description ?? "") : line;
      }
      dispose() {
        this.bufnr = void 0;
        this.input.dispose();
        this.win?.close();
        this._onDidFinish.dispose();
        this._onDidChangeSelection.dispose();
        disposeAll(this.disposables);
      }
    };
  }
});

// src/util/mutex.ts
var Mutex;
var init_mutex = __esm({
  "src/util/mutex.ts"() {
    "use strict";
    Mutex = class {
      tasks = [];
      count = 1;
      sched() {
        if (this.count > 0 && this.tasks.length > 0) {
          this.count--;
          let next = this.tasks.shift();
          next();
        }
      }
      reset() {
        this.tasks = [];
        this.count = 1;
      }
      get busy() {
        return this.count == 0;
      }
      acquire() {
        return new Promise((res) => {
          let task = () => {
            let released = false;
            res(() => {
              if (!released) {
                released = true;
                this.count++;
                this.sched();
              }
            });
          };
          this.tasks.push(task);
          process.nextTick(this.sched.bind(this));
        });
      }
      use(f2) {
        return this.acquire().then((release) => f2().then((res) => {
          release();
          return res;
        }).catch((err) => {
          release();
          throw err;
        }));
      }
    };
  }
});

// node_modules/safer-buffer/safer.js
var require_safer = __commonJS({
  "node_modules/safer-buffer/safer.js"(exports2, module2) {
    "use strict";
    var buffer = require("buffer");
    var Buffer3 = buffer.Buffer;
    var safer = {};
    var key;
    for (key in buffer) {
      if (!buffer.hasOwnProperty(key)) continue;
      if (key === "SlowBuffer" || key === "Buffer") continue;
      safer[key] = buffer[key];
    }
    var Safer = safer.Buffer = {};
    for (key in Buffer3) {
      if (!Buffer3.hasOwnProperty(key)) continue;
      if (key === "allocUnsafe" || key === "allocUnsafeSlow") continue;
      Safer[key] = Buffer3[key];
    }
    safer.Buffer.prototype = Buffer3.prototype;
    if (!Safer.from || Safer.from === Uint8Array.from) {
      Safer.from = function(value, encodingOrOffset, length) {
        if (typeof value === "number") {
          throw new TypeError('The "value" argument must not be of type number. Received type ' + typeof value);
        }
        if (value && typeof value.length === "undefined") {
          throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type " + typeof value);
        }
        return Buffer3(value, encodingOrOffset, length);
      };
    }
    if (!Safer.alloc) {
      Safer.alloc = function(size, fill, encoding2) {
        if (typeof size !== "number") {
          throw new TypeError('The "size" argument must be of type number. Received type ' + typeof size);
        }
        if (size < 0 || size >= 2 * (1 << 30)) {
          throw new RangeError('The value "' + size + '" is invalid for option "size"');
        }
        var buf = Buffer3(size);
        if (!fill || fill.length === 0) {
          buf.fill(0);
        } else if (typeof encoding2 === "string") {
          buf.fill(fill, encoding2);
        } else {
          buf.fill(fill);
        }
        return buf;
      };
    }
    if (!safer.kStringMaxLength) {
      try {
        safer.kStringMaxLength = process.binding("buffer").kStringMaxLength;
      } catch (e2) {
      }
    }
    if (!safer.constants) {
      safer.constants = {
        MAX_LENGTH: safer.kMaxLength
      };
      if (safer.kStringMaxLength) {
        safer.constants.MAX_STRING_LENGTH = safer.kStringMaxLength;
      }
    }
    module2.exports = safer;
  }
});

// node_modules/iconv-lite/lib/bom-handling.js
var require_bom_handling = __commonJS({
  "node_modules/iconv-lite/lib/bom-handling.js"(exports2) {
    "use strict";
    var BOMChar = "\uFEFF";
    exports2.PrependBOM = PrependBOMWrapper;
    function PrependBOMWrapper(encoder, options3) {
      this.encoder = encoder;
      this.addBOM = true;
    }
    PrependBOMWrapper.prototype.write = function(str) {
      if (this.addBOM) {
        str = BOMChar + str;
        this.addBOM = false;
      }
      return this.encoder.write(str);
    };
    PrependBOMWrapper.prototype.end = function() {
      return this.encoder.end();
    };
    exports2.StripBOM = StripBOMWrapper;
    function StripBOMWrapper(decoder, options3) {
      this.decoder = decoder;
      this.pass = false;
      this.options = options3 || {};
    }
    StripBOMWrapper.prototype.write = function(buf) {
      var res = this.decoder.write(buf);
      if (this.pass || !res) {
        return res;
      }
      if (res[0] === BOMChar) {
        res = res.slice(1);
        if (typeof this.options.stripBOM === "function") {
          this.options.stripBOM();
        }
      }
      this.pass = true;
      return res;
    };
    StripBOMWrapper.prototype.end = function() {
      return this.decoder.end();
    };
  }
});

// node_modules/iconv-lite/lib/helpers/merge-exports.js
var require_merge_exports = __commonJS({
  "node_modules/iconv-lite/lib/helpers/merge-exports.js"(exports2, module2) {
    "use strict";
    var hasOwn = typeof Object.hasOwn === "undefined" ? Function.call.bind(Object.prototype.hasOwnProperty) : Object.hasOwn;
    function mergeModules(target, module3) {
      for (var key in module3) {
        if (hasOwn(module3, key)) {
          target[key] = module3[key];
        }
      }
    }
    module2.exports = mergeModules;
  }
});

// node_modules/iconv-lite/encodings/internal.js
var require_internal = __commonJS({
  "node_modules/iconv-lite/encodings/internal.js"(exports2, module2) {
    "use strict";
    var Buffer3 = require_safer().Buffer;
    module2.exports = {
      // Encodings
      utf8: { type: "_internal", bomAware: true },
      cesu8: { type: "_internal", bomAware: true },
      unicode11utf8: "utf8",
      ucs2: { type: "_internal", bomAware: true },
      utf16le: "ucs2",
      binary: { type: "_internal" },
      base64: { type: "_internal" },
      hex: { type: "_internal" },
      // Codec.
      _internal: InternalCodec
    };
    function InternalCodec(codecOptions, iconv2) {
      this.enc = codecOptions.encodingName;
      this.bomAware = codecOptions.bomAware;
      if (this.enc === "base64") {
        this.encoder = InternalEncoderBase64;
      } else if (this.enc === "utf8") {
        this.encoder = InternalEncoderUtf8;
      } else if (this.enc === "cesu8") {
        this.enc = "utf8";
        this.encoder = InternalEncoderCesu8;
        if (Buffer3.from("eda0bdedb2a9", "hex").toString() !== "\u{1F4A9}") {
          this.decoder = InternalDecoderCesu8;
          this.defaultCharUnicode = iconv2.defaultCharUnicode;
        }
      }
    }
    InternalCodec.prototype.encoder = InternalEncoder;
    InternalCodec.prototype.decoder = InternalDecoder;
    var StringDecoder = require("string_decoder").StringDecoder;
    function InternalDecoder(options3, codec) {
      this.decoder = new StringDecoder(codec.enc);
    }
    InternalDecoder.prototype.write = function(buf) {
      if (!Buffer3.isBuffer(buf)) {
        buf = Buffer3.from(buf);
      }
      return this.decoder.write(buf);
    };
    InternalDecoder.prototype.end = function() {
      return this.decoder.end();
    };
    function InternalEncoder(options3, codec) {
      this.enc = codec.enc;
    }
    InternalEncoder.prototype.write = function(str) {
      return Buffer3.from(str, this.enc);
    };
    InternalEncoder.prototype.end = function() {
    };
    function InternalEncoderBase64(options3, codec) {
      this.prevStr = "";
    }
    InternalEncoderBase64.prototype.write = function(str) {
      str = this.prevStr + str;
      var completeQuads = str.length - str.length % 4;
      this.prevStr = str.slice(completeQuads);
      str = str.slice(0, completeQuads);
      return Buffer3.from(str, "base64");
    };
    InternalEncoderBase64.prototype.end = function() {
      return Buffer3.from(this.prevStr, "base64");
    };
    function InternalEncoderCesu8(options3, codec) {
    }
    InternalEncoderCesu8.prototype.write = function(str) {
      var buf = Buffer3.alloc(str.length * 3);
      var bufIdx = 0;
      for (var i2 = 0; i2 < str.length; i2++) {
        var charCode = str.charCodeAt(i2);
        if (charCode < 128) {
          buf[bufIdx++] = charCode;
        } else if (charCode < 2048) {
          buf[bufIdx++] = 192 + (charCode >>> 6);
          buf[bufIdx++] = 128 + (charCode & 63);
        } else {
          buf[bufIdx++] = 224 + (charCode >>> 12);
          buf[bufIdx++] = 128 + (charCode >>> 6 & 63);
          buf[bufIdx++] = 128 + (charCode & 63);
        }
      }
      return buf.slice(0, bufIdx);
    };
    InternalEncoderCesu8.prototype.end = function() {
    };
    function InternalDecoderCesu8(options3, codec) {
      this.acc = 0;
      this.contBytes = 0;
      this.accBytes = 0;
      this.defaultCharUnicode = codec.defaultCharUnicode;
    }
    InternalDecoderCesu8.prototype.write = function(buf) {
      var acc = this.acc;
      var contBytes = this.contBytes;
      var accBytes = this.accBytes;
      var res = "";
      for (var i2 = 0; i2 < buf.length; i2++) {
        var curByte = buf[i2];
        if ((curByte & 192) !== 128) {
          if (contBytes > 0) {
            res += this.defaultCharUnicode;
            contBytes = 0;
          }
          if (curByte < 128) {
            res += String.fromCharCode(curByte);
          } else if (curByte < 224) {
            acc = curByte & 31;
            contBytes = 1;
            accBytes = 1;
          } else if (curByte < 240) {
            acc = curByte & 15;
            contBytes = 2;
            accBytes = 1;
          } else {
            res += this.defaultCharUnicode;
          }
        } else {
          if (contBytes > 0) {
            acc = acc << 6 | curByte & 63;
            contBytes--;
            accBytes++;
            if (contBytes === 0) {
              if (accBytes === 2 && acc < 128 && acc > 0) {
                res += this.defaultCharUnicode;
              } else if (accBytes === 3 && acc < 2048) {
                res += this.defaultCharUnicode;
              } else {
                res += String.fromCharCode(acc);
              }
            }
          } else {
            res += this.defaultCharUnicode;
          }
        }
      }
      this.acc = acc;
      this.contBytes = contBytes;
      this.accBytes = accBytes;
      return res;
    };
    InternalDecoderCesu8.prototype.end = function() {
      var res = 0;
      if (this.contBytes > 0) {
        res += this.defaultCharUnicode;
      }
      return res;
    };
    function InternalEncoderUtf8(options3, codec) {
      this.highSurrogate = "";
    }
    InternalEncoderUtf8.prototype.write = function(str) {
      if (this.highSurrogate) {
        str = this.highSurrogate + str;
        this.highSurrogate = "";
      }
      if (str.length > 0) {
        var charCode = str.charCodeAt(str.length - 1);
        if (charCode >= 55296 && charCode < 56320) {
          this.highSurrogate = str[str.length - 1];
          str = str.slice(0, str.length - 1);
        }
      }
      return Buffer3.from(str, this.enc);
    };
    InternalEncoderUtf8.prototype.end = function() {
      if (this.highSurrogate) {
        var str = this.highSurrogate;
        this.highSurrogate = "";
        return Buffer3.from(str, this.enc);
      }
    };
  }
});

// node_modules/iconv-lite/encodings/utf32.js
var require_utf32 = __commonJS({
  "node_modules/iconv-lite/encodings/utf32.js"(exports2) {
    "use strict";
    var Buffer3 = require_safer().Buffer;
    exports2._utf32 = Utf32Codec;
    function Utf32Codec(codecOptions, iconv2) {
      this.iconv = iconv2;
      this.bomAware = true;
      this.isLE = codecOptions.isLE;
    }
    exports2.utf32le = { type: "_utf32", isLE: true };
    exports2.utf32be = { type: "_utf32", isLE: false };
    exports2.ucs4le = "utf32le";
    exports2.ucs4be = "utf32be";
    Utf32Codec.prototype.encoder = Utf32Encoder;
    Utf32Codec.prototype.decoder = Utf32Decoder;
    function Utf32Encoder(options3, codec) {
      this.isLE = codec.isLE;
      this.highSurrogate = 0;
    }
    Utf32Encoder.prototype.write = function(str) {
      var src = Buffer3.from(str, "ucs2");
      var dst = Buffer3.alloc(src.length * 2 + 4);
      var write32 = this.isLE ? dst.writeUInt32LE : dst.writeUInt32BE;
      var offset = 0;
      for (var i2 = 0; i2 < src.length; i2 += 2) {
        var code = src.readUInt16LE(i2);
        var isHighSurrogate2 = code >= 55296 && code < 56320;
        var isLowSurrogate2 = code >= 56320 && code < 57344;
        if (this.highSurrogate) {
          if (isHighSurrogate2 || !isLowSurrogate2) {
            write32.call(dst, this.highSurrogate, offset);
            offset += 4;
          } else {
            var codepoint = (this.highSurrogate - 55296 << 10 | code - 56320) + 65536;
            write32.call(dst, codepoint, offset);
            offset += 4;
            this.highSurrogate = 0;
            continue;
          }
        }
        if (isHighSurrogate2) {
          this.highSurrogate = code;
        } else {
          write32.call(dst, code, offset);
          offset += 4;
          this.highSurrogate = 0;
        }
      }
      if (offset < dst.length) {
        dst = dst.slice(0, offset);
      }
      return dst;
    };
    Utf32Encoder.prototype.end = function() {
      if (!this.highSurrogate) {
        return;
      }
      var buf = Buffer3.alloc(4);
      if (this.isLE) {
        buf.writeUInt32LE(this.highSurrogate, 0);
      } else {
        buf.writeUInt32BE(this.highSurrogate, 0);
      }
      this.highSurrogate = 0;
      return buf;
    };
    function Utf32Decoder(options3, codec) {
      this.isLE = codec.isLE;
      this.badChar = codec.iconv.defaultCharUnicode.charCodeAt(0);
      this.overflow = [];
    }
    Utf32Decoder.prototype.write = function(src) {
      if (src.length === 0) {
        return "";
      }
      var i2 = 0;
      var codepoint = 0;
      var dst = Buffer3.alloc(src.length + 4);
      var offset = 0;
      var isLE = this.isLE;
      var overflow = this.overflow;
      var badChar = this.badChar;
      if (overflow.length > 0) {
        for (; i2 < src.length && overflow.length < 4; i2++) {
          overflow.push(src[i2]);
        }
        if (overflow.length === 4) {
          if (isLE) {
            codepoint = overflow[0] | overflow[1] << 8 | overflow[2] << 16 | overflow[3] << 24;
          } else {
            codepoint = overflow[3] | overflow[2] << 8 | overflow[1] << 16 | overflow[0] << 24;
          }
          overflow.length = 0;
          offset = _writeCodepoint(dst, offset, codepoint, badChar);
        }
      }
      for (; i2 < src.length - 3; i2 += 4) {
        if (isLE) {
          codepoint = src[i2] | src[i2 + 1] << 8 | src[i2 + 2] << 16 | src[i2 + 3] << 24;
        } else {
          codepoint = src[i2 + 3] | src[i2 + 2] << 8 | src[i2 + 1] << 16 | src[i2] << 24;
        }
        offset = _writeCodepoint(dst, offset, codepoint, badChar);
      }
      for (; i2 < src.length; i2++) {
        overflow.push(src[i2]);
      }
      return dst.slice(0, offset).toString("ucs2");
    };
    function _writeCodepoint(dst, offset, codepoint, badChar) {
      if (codepoint < 0 || codepoint > 1114111) {
        codepoint = badChar;
      }
      if (codepoint >= 65536) {
        codepoint -= 65536;
        var high = 55296 | codepoint >> 10;
        dst[offset++] = high & 255;
        dst[offset++] = high >> 8;
        var codepoint = 56320 | codepoint & 1023;
      }
      dst[offset++] = codepoint & 255;
      dst[offset++] = codepoint >> 8;
      return offset;
    }
    Utf32Decoder.prototype.end = function() {
      if (this.overflow.length === 0) {
        return;
      }
      this.overflow.length = 0;
      return String.fromCharCode(this.badChar);
    };
    exports2.utf32 = Utf32AutoCodec;
    exports2.ucs4 = "utf32";
    function Utf32AutoCodec(options3, iconv2) {
      this.iconv = iconv2;
    }
    Utf32AutoCodec.prototype.encoder = Utf32AutoEncoder;
    Utf32AutoCodec.prototype.decoder = Utf32AutoDecoder;
    function Utf32AutoEncoder(options3, codec) {
      options3 = options3 || {};
      if (options3.addBOM === void 0) {
        options3.addBOM = true;
      }
      this.encoder = codec.iconv.getEncoder(options3.defaultEncoding || "utf-32le", options3);
    }
    Utf32AutoEncoder.prototype.write = function(str) {
      return this.encoder.write(str);
    };
    Utf32AutoEncoder.prototype.end = function() {
      return this.encoder.end();
    };
    function Utf32AutoDecoder(options3, codec) {
      this.decoder = null;
      this.initialBufs = [];
      this.initialBufsLen = 0;
      this.options = options3 || {};
      this.iconv = codec.iconv;
    }
    Utf32AutoDecoder.prototype.write = function(buf) {
      if (!this.decoder) {
        this.initialBufs.push(buf);
        this.initialBufsLen += buf.length;
        if (this.initialBufsLen < 32) {
          return "";
        }
        var encoding2 = detectEncoding(this.initialBufs, this.options.defaultEncoding);
        this.decoder = this.iconv.getDecoder(encoding2, this.options);
        var resStr = "";
        for (var i2 = 0; i2 < this.initialBufs.length; i2++) {
          resStr += this.decoder.write(this.initialBufs[i2]);
        }
        this.initialBufs.length = this.initialBufsLen = 0;
        return resStr;
      }
      return this.decoder.write(buf);
    };
    Utf32AutoDecoder.prototype.end = function() {
      if (!this.decoder) {
        var encoding2 = detectEncoding(this.initialBufs, this.options.defaultEncoding);
        this.decoder = this.iconv.getDecoder(encoding2, this.options);
        var resStr = "";
        for (var i2 = 0; i2 < this.initialBufs.length; i2++) {
          resStr += this.decoder.write(this.initialBufs[i2]);
        }
        var trail = this.decoder.end();
        if (trail) {
          resStr += trail;
        }
        this.initialBufs.length = this.initialBufsLen = 0;
        return resStr;
      }
      return this.decoder.end();
    };
    function detectEncoding(bufs, defaultEncoding) {
      var b2 = [];
      var charsProcessed = 0;
      var invalidLE = 0;
      var invalidBE = 0;
      var bmpCharsLE = 0;
      var bmpCharsBE = 0;
      outerLoop:
        for (var i2 = 0; i2 < bufs.length; i2++) {
          var buf = bufs[i2];
          for (var j = 0; j < buf.length; j++) {
            b2.push(buf[j]);
            if (b2.length === 4) {
              if (charsProcessed === 0) {
                if (b2[0] === 255 && b2[1] === 254 && b2[2] === 0 && b2[3] === 0) {
                  return "utf-32le";
                }
                if (b2[0] === 0 && b2[1] === 0 && b2[2] === 254 && b2[3] === 255) {
                  return "utf-32be";
                }
              }
              if (b2[0] !== 0 || b2[1] > 16) invalidBE++;
              if (b2[3] !== 0 || b2[2] > 16) invalidLE++;
              if (b2[0] === 0 && b2[1] === 0 && (b2[2] !== 0 || b2[3] !== 0)) bmpCharsBE++;
              if ((b2[0] !== 0 || b2[1] !== 0) && b2[2] === 0 && b2[3] === 0) bmpCharsLE++;
              b2.length = 0;
              charsProcessed++;
              if (charsProcessed >= 100) {
                break outerLoop;
              }
            }
          }
        }
      if (bmpCharsBE - invalidBE > bmpCharsLE - invalidLE) return "utf-32be";
      if (bmpCharsBE - invalidBE < bmpCharsLE - invalidLE) return "utf-32le";
      return defaultEncoding || "utf-32le";
    }
  }
});

// node_modules/iconv-lite/encodings/utf16.js
var require_utf16 = __commonJS({
  "node_modules/iconv-lite/encodings/utf16.js"(exports2) {
    "use strict";
    var Buffer3 = require_safer().Buffer;
    exports2.utf16be = Utf16BECodec;
    function Utf16BECodec() {
    }
    Utf16BECodec.prototype.encoder = Utf16BEEncoder;
    Utf16BECodec.prototype.decoder = Utf16BEDecoder;
    Utf16BECodec.prototype.bomAware = true;
    function Utf16BEEncoder() {
    }
    Utf16BEEncoder.prototype.write = function(str) {
      var buf = Buffer3.from(str, "ucs2");
      for (var i2 = 0; i2 < buf.length; i2 += 2) {
        var tmp = buf[i2];
        buf[i2] = buf[i2 + 1];
        buf[i2 + 1] = tmp;
      }
      return buf;
    };
    Utf16BEEncoder.prototype.end = function() {
    };
    function Utf16BEDecoder() {
      this.overflowByte = -1;
    }
    Utf16BEDecoder.prototype.write = function(buf) {
      if (buf.length == 0) {
        return "";
      }
      var buf2 = Buffer3.alloc(buf.length + 1);
      var i2 = 0;
      var j = 0;
      if (this.overflowByte !== -1) {
        buf2[0] = buf[0];
        buf2[1] = this.overflowByte;
        i2 = 1;
        j = 2;
      }
      for (; i2 < buf.length - 1; i2 += 2, j += 2) {
        buf2[j] = buf[i2 + 1];
        buf2[j + 1] = buf[i2];
      }
      this.overflowByte = i2 == buf.length - 1 ? buf[buf.length - 1] : -1;
      return buf2.slice(0, j).toString("ucs2");
    };
    Utf16BEDecoder.prototype.end = function() {
      this.overflowByte = -1;
    };
    exports2.utf16 = Utf16Codec;
    function Utf16Codec(codecOptions, iconv2) {
      this.iconv = iconv2;
    }
    Utf16Codec.prototype.encoder = Utf16Encoder;
    Utf16Codec.prototype.decoder = Utf16Decoder;
    function Utf16Encoder(options3, codec) {
      options3 = options3 || {};
      if (options3.addBOM === void 0) {
        options3.addBOM = true;
      }
      this.encoder = codec.iconv.getEncoder("utf-16le", options3);
    }
    Utf16Encoder.prototype.write = function(str) {
      return this.encoder.write(str);
    };
    Utf16Encoder.prototype.end = function() {
      return this.encoder.end();
    };
    function Utf16Decoder(options3, codec) {
      this.decoder = null;
      this.initialBufs = [];
      this.initialBufsLen = 0;
      this.options = options3 || {};
      this.iconv = codec.iconv;
    }
    Utf16Decoder.prototype.write = function(buf) {
      if (!this.decoder) {
        this.initialBufs.push(buf);
        this.initialBufsLen += buf.length;
        if (this.initialBufsLen < 16) {
          return "";
        }
        var encoding2 = detectEncoding(this.initialBufs, this.options.defaultEncoding);
        this.decoder = this.iconv.getDecoder(encoding2, this.options);
        var resStr = "";
        for (var i2 = 0; i2 < this.initialBufs.length; i2++) {
          resStr += this.decoder.write(this.initialBufs[i2]);
        }
        this.initialBufs.length = this.initialBufsLen = 0;
        return resStr;
      }
      return this.decoder.write(buf);
    };
    Utf16Decoder.prototype.end = function() {
      if (!this.decoder) {
        var encoding2 = detectEncoding(this.initialBufs, this.options.defaultEncoding);
        this.decoder = this.iconv.getDecoder(encoding2, this.options);
        var resStr = "";
        for (var i2 = 0; i2 < this.initialBufs.length; i2++) {
          resStr += this.decoder.write(this.initialBufs[i2]);
        }
        var trail = this.decoder.end();
        if (trail) {
          resStr += trail;
        }
        this.initialBufs.length = this.initialBufsLen = 0;
        return resStr;
      }
      return this.decoder.end();
    };
    function detectEncoding(bufs, defaultEncoding) {
      var b2 = [];
      var charsProcessed = 0;
      var asciiCharsLE = 0;
      var asciiCharsBE = 0;
      outerLoop:
        for (var i2 = 0; i2 < bufs.length; i2++) {
          var buf = bufs[i2];
          for (var j = 0; j < buf.length; j++) {
            b2.push(buf[j]);
            if (b2.length === 2) {
              if (charsProcessed === 0) {
                if (b2[0] === 255 && b2[1] === 254) return "utf-16le";
                if (b2[0] === 254 && b2[1] === 255) return "utf-16be";
              }
              if (b2[0] === 0 && b2[1] !== 0) asciiCharsBE++;
              if (b2[0] !== 0 && b2[1] === 0) asciiCharsLE++;
              b2.length = 0;
              charsProcessed++;
              if (charsProcessed >= 100) {
                break outerLoop;
              }
            }
          }
        }
      if (asciiCharsBE > asciiCharsLE) return "utf-16be";
      if (asciiCharsBE < asciiCharsLE) return "utf-16le";
      return defaultEncoding || "utf-16le";
    }
  }
});

// node_modules/iconv-lite/encodings/utf7.js
var require_utf7 = __commonJS({
  "node_modules/iconv-lite/encodings/utf7.js"(exports2) {
    "use strict";
    var Buffer3 = require_safer().Buffer;
    exports2.utf7 = Utf7Codec;
    exports2.unicode11utf7 = "utf7";
    function Utf7Codec(codecOptions, iconv2) {
      this.iconv = iconv2;
    }
    Utf7Codec.prototype.encoder = Utf7Encoder;
    Utf7Codec.prototype.decoder = Utf7Decoder;
    Utf7Codec.prototype.bomAware = true;
    var nonDirectChars = /[^A-Za-z0-9'\(\),-\.\/:\? \n\r\t]+/g;
    function Utf7Encoder(options3, codec) {
      this.iconv = codec.iconv;
    }
    Utf7Encoder.prototype.write = function(str) {
      return Buffer3.from(str.replace(nonDirectChars, function(chunk) {
        return "+" + (chunk === "+" ? "" : this.iconv.encode(chunk, "utf16-be").toString("base64").replace(/=+$/, "")) + "-";
      }.bind(this)));
    };
    Utf7Encoder.prototype.end = function() {
    };
    function Utf7Decoder(options3, codec) {
      this.iconv = codec.iconv;
      this.inBase64 = false;
      this.base64Accum = "";
    }
    var base64Regex = /[A-Za-z0-9\/+]/;
    var base64Chars = [];
    for (i2 = 0; i2 < 256; i2++) {
      base64Chars[i2] = base64Regex.test(String.fromCharCode(i2));
    }
    var i2;
    var plusChar = "+".charCodeAt(0);
    var minusChar = "-".charCodeAt(0);
    var andChar = "&".charCodeAt(0);
    Utf7Decoder.prototype.write = function(buf) {
      var res = "";
      var lastI = 0;
      var inBase64 = this.inBase64;
      var base64Accum = this.base64Accum;
      for (var i3 = 0; i3 < buf.length; i3++) {
        if (!inBase64) {
          if (buf[i3] == plusChar) {
            res += this.iconv.decode(buf.slice(lastI, i3), "ascii");
            lastI = i3 + 1;
            inBase64 = true;
          }
        } else {
          if (!base64Chars[buf[i3]]) {
            if (i3 == lastI && buf[i3] == minusChar) {
              res += "+";
            } else {
              var b64str = base64Accum + this.iconv.decode(buf.slice(lastI, i3), "ascii");
              res += this.iconv.decode(Buffer3.from(b64str, "base64"), "utf16-be");
            }
            if (buf[i3] != minusChar) {
              i3--;
            }
            lastI = i3 + 1;
            inBase64 = false;
            base64Accum = "";
          }
        }
      }
      if (!inBase64) {
        res += this.iconv.decode(buf.slice(lastI), "ascii");
      } else {
        var b64str = base64Accum + this.iconv.decode(buf.slice(lastI), "ascii");
        var canBeDecoded = b64str.length - b64str.length % 8;
        base64Accum = b64str.slice(canBeDecoded);
        b64str = b64str.slice(0, canBeDecoded);
        res += this.iconv.decode(Buffer3.from(b64str, "base64"), "utf16-be");
      }
      this.inBase64 = inBase64;
      this.base64Accum = base64Accum;
      return res;
    };
    Utf7Decoder.prototype.end = function() {
      var res = "";
      if (this.inBase64 && this.base64Accum.length > 0) {
        res = this.iconv.decode(Buffer3.from(this.base64Accum, "base64"), "utf16-be");
      }
      this.inBase64 = false;
      this.base64Accum = "";
      return res;
    };
    exports2.utf7imap = Utf7IMAPCodec;
    function Utf7IMAPCodec(codecOptions, iconv2) {
      this.iconv = iconv2;
    }
    Utf7IMAPCodec.prototype.encoder = Utf7IMAPEncoder;
    Utf7IMAPCodec.prototype.decoder = Utf7IMAPDecoder;
    Utf7IMAPCodec.prototype.bomAware = true;
    function Utf7IMAPEncoder(options3, codec) {
      this.iconv = codec.iconv;
      this.inBase64 = false;
      this.base64Accum = Buffer3.alloc(6);
      this.base64AccumIdx = 0;
    }
    Utf7IMAPEncoder.prototype.write = function(str) {
      var inBase64 = this.inBase64;
      var base64Accum = this.base64Accum;
      var base64AccumIdx = this.base64AccumIdx;
      var buf = Buffer3.alloc(str.length * 5 + 10);
      var bufIdx = 0;
      for (var i3 = 0; i3 < str.length; i3++) {
        var uChar = str.charCodeAt(i3);
        if (uChar >= 32 && uChar <= 126) {
          if (inBase64) {
            if (base64AccumIdx > 0) {
              bufIdx += buf.write(base64Accum.slice(0, base64AccumIdx).toString("base64").replace(/\//g, ",").replace(/=+$/, ""), bufIdx);
              base64AccumIdx = 0;
            }
            buf[bufIdx++] = minusChar;
            inBase64 = false;
          }
          if (!inBase64) {
            buf[bufIdx++] = uChar;
            if (uChar === andChar) {
              buf[bufIdx++] = minusChar;
            }
          }
        } else {
          if (!inBase64) {
            buf[bufIdx++] = andChar;
            inBase64 = true;
          }
          if (inBase64) {
            base64Accum[base64AccumIdx++] = uChar >> 8;
            base64Accum[base64AccumIdx++] = uChar & 255;
            if (base64AccumIdx == base64Accum.length) {
              bufIdx += buf.write(base64Accum.toString("base64").replace(/\//g, ","), bufIdx);
              base64AccumIdx = 0;
            }
          }
        }
      }
      this.inBase64 = inBase64;
      this.base64AccumIdx = base64AccumIdx;
      return buf.slice(0, bufIdx);
    };
    Utf7IMAPEncoder.prototype.end = function() {
      var buf = Buffer3.alloc(10);
      var bufIdx = 0;
      if (this.inBase64) {
        if (this.base64AccumIdx > 0) {
          bufIdx += buf.write(this.base64Accum.slice(0, this.base64AccumIdx).toString("base64").replace(/\//g, ",").replace(/=+$/, ""), bufIdx);
          this.base64AccumIdx = 0;
        }
        buf[bufIdx++] = minusChar;
        this.inBase64 = false;
      }
      return buf.slice(0, bufIdx);
    };
    function Utf7IMAPDecoder(options3, codec) {
      this.iconv = codec.iconv;
      this.inBase64 = false;
      this.base64Accum = "";
    }
    var base64IMAPChars = base64Chars.slice();
    base64IMAPChars[",".charCodeAt(0)] = true;
    Utf7IMAPDecoder.prototype.write = function(buf) {
      var res = "";
      var lastI = 0;
      var inBase64 = this.inBase64;
      var base64Accum = this.base64Accum;
      for (var i3 = 0; i3 < buf.length; i3++) {
        if (!inBase64) {
          if (buf[i3] == andChar) {
            res += this.iconv.decode(buf.slice(lastI, i3), "ascii");
            lastI = i3 + 1;
            inBase64 = true;
          }
        } else {
          if (!base64IMAPChars[buf[i3]]) {
            if (i3 == lastI && buf[i3] == minusChar) {
              res += "&";
            } else {
              var b64str = base64Accum + this.iconv.decode(buf.slice(lastI, i3), "ascii").replace(/,/g, "/");
              res += this.iconv.decode(Buffer3.from(b64str, "base64"), "utf16-be");
            }
            if (buf[i3] != minusChar) {
              i3--;
            }
            lastI = i3 + 1;
            inBase64 = false;
            base64Accum = "";
          }
        }
      }
      if (!inBase64) {
        res += this.iconv.decode(buf.slice(lastI), "ascii");
      } else {
        var b64str = base64Accum + this.iconv.decode(buf.slice(lastI), "ascii").replace(/,/g, "/");
        var canBeDecoded = b64str.length - b64str.length % 8;
        base64Accum = b64str.slice(canBeDecoded);
        b64str = b64str.slice(0, canBeDecoded);
        res += this.iconv.decode(Buffer3.from(b64str, "base64"), "utf16-be");
      }
      this.inBase64 = inBase64;
      this.base64Accum = base64Accum;
      return res;
    };
    Utf7IMAPDecoder.prototype.end = function() {
      var res = "";
      if (this.inBase64 && this.base64Accum.length > 0) {
        res = this.iconv.decode(Buffer3.from(this.base64Accum, "base64"), "utf16-be");
      }
      this.inBase64 = false;
      this.base64Accum = "";
      return res;
    };
  }
});

// node_modules/iconv-lite/encodings/sbcs-codec.js
var require_sbcs_codec = __commonJS({
  "node_modules/iconv-lite/encodings/sbcs-codec.js"(exports2) {
    "use strict";
    var Buffer3 = require_safer().Buffer;
    exports2._sbcs = SBCSCodec;
    function SBCSCodec(codecOptions, iconv2) {
      if (!codecOptions) {
        throw new Error("SBCS codec is called without the data.");
      }
      if (!codecOptions.chars || codecOptions.chars.length !== 128 && codecOptions.chars.length !== 256) {
        throw new Error("Encoding '" + codecOptions.type + "' has incorrect 'chars' (must be of len 128 or 256)");
      }
      if (codecOptions.chars.length === 128) {
        var asciiString = "";
        for (var i2 = 0; i2 < 128; i2++) {
          asciiString += String.fromCharCode(i2);
        }
        codecOptions.chars = asciiString + codecOptions.chars;
      }
      this.decodeBuf = Buffer3.from(codecOptions.chars, "ucs2");
      var encodeBuf = Buffer3.alloc(65536, iconv2.defaultCharSingleByte.charCodeAt(0));
      for (var i2 = 0; i2 < codecOptions.chars.length; i2++) {
        encodeBuf[codecOptions.chars.charCodeAt(i2)] = i2;
      }
      this.encodeBuf = encodeBuf;
    }
    SBCSCodec.prototype.encoder = SBCSEncoder;
    SBCSCodec.prototype.decoder = SBCSDecoder;
    function SBCSEncoder(options3, codec) {
      this.encodeBuf = codec.encodeBuf;
    }
    SBCSEncoder.prototype.write = function(str) {
      var buf = Buffer3.alloc(str.length);
      for (var i2 = 0; i2 < str.length; i2++) {
        buf[i2] = this.encodeBuf[str.charCodeAt(i2)];
      }
      return buf;
    };
    SBCSEncoder.prototype.end = function() {
    };
    function SBCSDecoder(options3, codec) {
      this.decodeBuf = codec.decodeBuf;
    }
    SBCSDecoder.prototype.write = function(buf) {
      var decodeBuf = this.decodeBuf;
      var newBuf = Buffer3.alloc(buf.length * 2);
      var idx1 = 0;
      var idx2 = 0;
      for (var i2 = 0; i2 < buf.length; i2++) {
        idx1 = buf[i2] * 2;
        idx2 = i2 * 2;
        newBuf[idx2] = decodeBuf[idx1];
        newBuf[idx2 + 1] = decodeBuf[idx1 + 1];
      }
      return newBuf.toString("ucs2");
    };
    SBCSDecoder.prototype.end = function() {
    };
  }
});

// node_modules/iconv-lite/encodings/sbcs-data.js
var require_sbcs_data = __commonJS({
  "node_modules/iconv-lite/encodings/sbcs-data.js"(exports2, module2) {
    "use strict";
    module2.exports = {
      // Not supported by iconv, not sure why.
      10029: "maccenteuro",
      maccenteuro: {
        type: "_sbcs",
        chars: "\xC4\u0100\u0101\xC9\u0104\xD6\xDC\xE1\u0105\u010C\xE4\u010D\u0106\u0107\xE9\u0179\u017A\u010E\xED\u010F\u0112\u0113\u0116\xF3\u0117\xF4\xF6\xF5\xFA\u011A\u011B\xFC\u2020\xB0\u0118\xA3\xA7\u2022\xB6\xDF\xAE\xA9\u2122\u0119\xA8\u2260\u0123\u012E\u012F\u012A\u2264\u2265\u012B\u0136\u2202\u2211\u0142\u013B\u013C\u013D\u013E\u0139\u013A\u0145\u0146\u0143\xAC\u221A\u0144\u0147\u2206\xAB\xBB\u2026\xA0\u0148\u0150\xD5\u0151\u014C\u2013\u2014\u201C\u201D\u2018\u2019\xF7\u25CA\u014D\u0154\u0155\u0158\u2039\u203A\u0159\u0156\u0157\u0160\u201A\u201E\u0161\u015A\u015B\xC1\u0164\u0165\xCD\u017D\u017E\u016A\xD3\xD4\u016B\u016E\xDA\u016F\u0170\u0171\u0172\u0173\xDD\xFD\u0137\u017B\u0141\u017C\u0122\u02C7"
      },
      808: "cp808",
      ibm808: "cp808",
      cp808: {
        type: "_sbcs",
        chars: "\u0410\u0411\u0412\u0413\u0414\u0415\u0416\u0417\u0418\u0419\u041A\u041B\u041C\u041D\u041E\u041F\u0420\u0421\u0422\u0423\u0424\u0425\u0426\u0427\u0428\u0429\u042A\u042B\u042C\u042D\u042E\u042F\u0430\u0431\u0432\u0433\u0434\u0435\u0436\u0437\u0438\u0439\u043A\u043B\u043C\u043D\u043E\u043F\u2591\u2592\u2593\u2502\u2524\u2561\u2562\u2556\u2555\u2563\u2551\u2557\u255D\u255C\u255B\u2510\u2514\u2534\u252C\u251C\u2500\u253C\u255E\u255F\u255A\u2554\u2569\u2566\u2560\u2550\u256C\u2567\u2568\u2564\u2565\u2559\u2558\u2552\u2553\u256B\u256A\u2518\u250C\u2588\u2584\u258C\u2590\u2580\u0440\u0441\u0442\u0443\u0444\u0445\u0446\u0447\u0448\u0449\u044A\u044B\u044C\u044D\u044E\u044F\u0401\u0451\u0404\u0454\u0407\u0457\u040E\u045E\xB0\u2219\xB7\u221A\u2116\u20AC\u25A0\xA0"
      },
      mik: {
        type: "_sbcs",
        chars: "\u0410\u0411\u0412\u0413\u0414\u0415\u0416\u0417\u0418\u0419\u041A\u041B\u041C\u041D\u041E\u041F\u0420\u0421\u0422\u0423\u0424\u0425\u0426\u0427\u0428\u0429\u042A\u042B\u042C\u042D\u042E\u042F\u0430\u0431\u0432\u0433\u0434\u0435\u0436\u0437\u0438\u0439\u043A\u043B\u043C\u043D\u043E\u043F\u0440\u0441\u0442\u0443\u0444\u0445\u0446\u0447\u0448\u0449\u044A\u044B\u044C\u044D\u044E\u044F\u2514\u2534\u252C\u251C\u2500\u253C\u2563\u2551\u255A\u2554\u2569\u2566\u2560\u2550\u256C\u2510\u2591\u2592\u2593\u2502\u2524\u2116\xA7\u2557\u255D\u2518\u250C\u2588\u2584\u258C\u2590\u2580\u03B1\xDF\u0393\u03C0\u03A3\u03C3\xB5\u03C4\u03A6\u0398\u03A9\u03B4\u221E\u03C6\u03B5\u2229\u2261\xB1\u2265\u2264\u2320\u2321\xF7\u2248\xB0\u2219\xB7\u221A\u207F\xB2\u25A0\xA0"
      },
      cp720: {
        type: "_sbcs",
        chars: "\x80\x81\xE9\xE2\x84\xE0\x86\xE7\xEA\xEB\xE8\xEF\xEE\x8D\x8E\x8F\x90\u0651\u0652\xF4\xA4\u0640\xFB\xF9\u0621\u0622\u0623\u0624\xA3\u0625\u0626\u0627\u0628\u0629\u062A\u062B\u062C\u062D\u062E\u062F\u0630\u0631\u0632\u0633\u0634\u0635\xAB\xBB\u2591\u2592\u2593\u2502\u2524\u2561\u2562\u2556\u2555\u2563\u2551\u2557\u255D\u255C\u255B\u2510\u2514\u2534\u252C\u251C\u2500\u253C\u255E\u255F\u255A\u2554\u2569\u2566\u2560\u2550\u256C\u2567\u2568\u2564\u2565\u2559\u2558\u2552\u2553\u256B\u256A\u2518\u250C\u2588\u2584\u258C\u2590\u2580\u0636\u0637\u0638\u0639\u063A\u0641\xB5\u0642\u0643\u0644\u0645\u0646\u0647\u0648\u0649\u064A\u2261\u064B\u064C\u064D\u064E\u064F\u0650\u2248\xB0\u2219\xB7\u221A\u207F\xB2\u25A0\xA0"
      },
      // Aliases of generated encodings.
      ascii8bit: "ascii",
      usascii: "ascii",
      ansix34: "ascii",
      ansix341968: "ascii",
      ansix341986: "ascii",
      csascii: "ascii",
      cp367: "ascii",
      ibm367: "ascii",
      isoir6: "ascii",
      iso646us: "ascii",
      iso646irv: "ascii",
      us: "ascii",
      latin1: "iso88591",
      latin2: "iso88592",
      latin3: "iso88593",
      latin4: "iso88594",
      latin5: "iso88599",
      latin6: "iso885910",
      latin7: "iso885913",
      latin8: "iso885914",
      latin9: "iso885915",
      latin10: "iso885916",
      csisolatin1: "iso88591",
      csisolatin2: "iso88592",
      csisolatin3: "iso88593",
      csisolatin4: "iso88594",
      csisolatincyrillic: "iso88595",
      csisolatinarabic: "iso88596",
      csisolatingreek: "iso88597",
      csisolatinhebrew: "iso88598",
      csisolatin5: "iso88599",
      csisolatin6: "iso885910",
      l1: "iso88591",
      l2: "iso88592",
      l3: "iso88593",
      l4: "iso88594",
      l5: "iso88599",
      l6: "iso885910",
      l7: "iso885913",
      l8: "iso885914",
      l9: "iso885915",
      l10: "iso885916",
      isoir14: "iso646jp",
      isoir57: "iso646cn",
      isoir100: "iso88591",
      isoir101: "iso88592",
      isoir109: "iso88593",
      isoir110: "iso88594",
      isoir144: "iso88595",
      isoir127: "iso88596",
      isoir126: "iso88597",
      isoir138: "iso88598",
      isoir148: "iso88599",
      isoir157: "iso885910",
      isoir166: "tis620",
      isoir179: "iso885913",
      isoir199: "iso885914",
      isoir203: "iso885915",
      isoir226: "iso885916",
      cp819: "iso88591",
      ibm819: "iso88591",
      cyrillic: "iso88595",
      arabic: "iso88596",
      arabic8: "iso88596",
      ecma114: "iso88596",
      asmo708: "iso88596",
      greek: "iso88597",
      greek8: "iso88597",
      ecma118: "iso88597",
      elot928: "iso88597",
      hebrew: "iso88598",
      hebrew8: "iso88598",
      iso88598i: "iso88598",
      iso88598e: "iso88598",
      turkish: "iso88599",
      turkish8: "iso88599",
      thai: "iso885911",
      thai8: "iso885911",
      celtic: "iso885914",
      celtic8: "iso885914",
      isoceltic: "iso885914",
      tis6200: "tis620",
      tis62025291: "tis620",
      tis62025330: "tis620",
      1e4: "macroman",
      10006: "macgreek",
      10007: "maccyrillic",
      10079: "maciceland",
      10081: "macturkish",
      cspc8codepage437: "cp437",
      cspc775baltic: "cp775",
      cspc850multilingual: "cp850",
      cspcp852: "cp852",
      cspc862latinhebrew: "cp862",
      cpgr: "cp869",
      msee: "cp1250",
      mscyrl: "cp1251",
      msansi: "cp1252",
      msgreek: "cp1253",
      msturk: "cp1254",
      mshebr: "cp1255",
      msarab: "cp1256",
      winbaltrim: "cp1257",
      cp20866: "koi8r",
      20866: "koi8r",
      ibm878: "koi8r",
      cskoi8r: "koi8r",
      cp21866: "koi8u",
      21866: "koi8u",
      ibm1168: "koi8u",
      strk10482002: "rk1048",
      tcvn5712: "tcvn",
      tcvn57121: "tcvn",
      gb198880: "iso646cn",
      cn: "iso646cn",
      csiso14jisc6220ro: "iso646jp",
      jisc62201969ro: "iso646jp",
      jp: "iso646jp",
      cshproman8: "hproman8",
      r8: "hproman8",
      roman8: "hproman8",
      xroman8: "hproman8",
      ibm1051: "hproman8",
      mac: "macintosh",
      csmacintosh: "macintosh"
    };
  }
});

// node_modules/iconv-lite/encodings/sbcs-data-generated.js
var require_sbcs_data_generated = __commonJS({
  "node_modules/iconv-lite/encodings/sbcs-data-generated.js"(exports2, module2) {
    "use strict";
    module2.exports = {
      "437": "cp437",
      "737": "cp737",
      "775": "cp775",
      "850": "cp850",
      "852": "cp852",
      "855": "cp855",
      "856": "cp856",
      "857": "cp857",
      "858": "cp858",
      "860": "cp860",
      "861": "cp861",
      "862": "cp862",
      "863": "cp863",
      "864": "cp864",
      "865": "cp865",
      "866": "cp866",
      "869": "cp869",
      "874": "windows874",
      "922": "cp922",
      "1046": "cp1046",
      "1124": "cp1124",
      "1125": "cp1125",
      "1129": "cp1129",
      "1133": "cp1133",
      "1161": "cp1161",
      "1162": "cp1162",
      "1163": "cp1163",
      "1250": "windows1250",
      "1251": "windows1251",
      "1252": "windows1252",
      "1253": "windows1253",
      "1254": "windows1254",
      "1255": "windows1255",
      "1256": "windows1256",
      "1257": "windows1257",
      "1258": "windows1258",
      "28591": "iso88591",
      "28592": "iso88592",
      "28593": "iso88593",
      "28594": "iso88594",
      "28595": "iso88595",
      "28596": "iso88596",
      "28597": "iso88597",
      "28598": "iso88598",
      "28599": "iso88599",
      "28600": "iso885910",
      "28601": "iso885911",
      "28603": "iso885913",
      "28604": "iso885914",
      "28605": "iso885915",
      "28606": "iso885916",
      "windows874": {
        "type": "_sbcs",
        "chars": "\u20AC\uFFFD\uFFFD\uFFFD\uFFFD\u2026\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\u2018\u2019\u201C\u201D\u2022\u2013\u2014\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\xA0\u0E01\u0E02\u0E03\u0E04\u0E05\u0E06\u0E07\u0E08\u0E09\u0E0A\u0E0B\u0E0C\u0E0D\u0E0E\u0E0F\u0E10\u0E11\u0E12\u0E13\u0E14\u0E15\u0E16\u0E17\u0E18\u0E19\u0E1A\u0E1B\u0E1C\u0E1D\u0E1E\u0E1F\u0E20\u0E21\u0E22\u0E23\u0E24\u0E25\u0E26\u0E27\u0E28\u0E29\u0E2A\u0E2B\u0E2C\u0E2D\u0E2E\u0E2F\u0E30\u0E31\u0E32\u0E33\u0E34\u0E35\u0E36\u0E37\u0E38\u0E39\u0E3A\uFFFD\uFFFD\uFFFD\uFFFD\u0E3F\u0E40\u0E41\u0E42\u0E43\u0E44\u0E45\u0E46\u0E47\u0E48\u0E49\u0E4A\u0E4B\u0E4C\u0E4D\u0E4E\u0E4F\u0E50\u0E51\u0E52\u0E53\u0E54\u0E55\u0E56\u0E57\u0E58\u0E59\u0E5A\u0E5B\uFFFD\uFFFD\uFFFD\uFFFD"
      },
      "win874": "windows874",
      "cp874": "windows874",
      "windows1250": {
        "type": "_sbcs",
        "chars": "\u20AC\uFFFD\u201A\uFFFD\u201E\u2026\u2020\u2021\uFFFD\u2030\u0160\u2039\u015A\u0164\u017D\u0179\uFFFD\u2018\u2019\u201C\u201D\u2022\u2013\u2014\uFFFD\u2122\u0161\u203A\u015B\u0165\u017E\u017A\xA0\u02C7\u02D8\u0141\xA4\u0104\xA6\xA7\xA8\xA9\u015E\xAB\xAC\xAD\xAE\u017B\xB0\xB1\u02DB\u0142\xB4\xB5\xB6\xB7\xB8\u0105\u015F\xBB\u013D\u02DD\u013E\u017C\u0154\xC1\xC2\u0102\xC4\u0139\u0106\xC7\u010C\xC9\u0118\xCB\u011A\xCD\xCE\u010E\u0110\u0143\u0147\xD3\xD4\u0150\xD6\xD7\u0158\u016E\xDA\u0170\xDC\xDD\u0162\xDF\u0155\xE1\xE2\u0103\xE4\u013A\u0107\xE7\u010D\xE9\u0119\xEB\u011B\xED\xEE\u010F\u0111\u0144\u0148\xF3\xF4\u0151\xF6\xF7\u0159\u016F\xFA\u0171\xFC\xFD\u0163\u02D9"
      },
      "win1250": "windows1250",
      "cp1250": "windows1250",
      "windows1251": {
        "type": "_sbcs",
        "chars": "\u0402\u0403\u201A\u0453\u201E\u2026\u2020\u2021\u20AC\u2030\u0409\u2039\u040A\u040C\u040B\u040F\u0452\u2018\u2019\u201C\u201D\u2022\u2013\u2014\uFFFD\u2122\u0459\u203A\u045A\u045C\u045B\u045F\xA0\u040E\u045E\u0408\xA4\u0490\xA6\xA7\u0401\xA9\u0404\xAB\xAC\xAD\xAE\u0407\xB0\xB1\u0406\u0456\u0491\xB5\xB6\xB7\u0451\u2116\u0454\xBB\u0458\u0405\u0455\u0457\u0410\u0411\u0412\u0413\u0414\u0415\u0416\u0417\u0418\u0419\u041A\u041B\u041C\u041D\u041E\u041F\u0420\u0421\u0422\u0423\u0424\u0425\u0426\u0427\u0428\u0429\u042A\u042B\u042C\u042D\u042E\u042F\u0430\u0431\u0432\u0433\u0434\u0435\u0436\u0437\u0438\u0439\u043A\u043B\u043C\u043D\u043E\u043F\u0440\u0441\u0442\u0443\u0444\u0445\u0446\u0447\u0448\u0449\u044A\u044B\u044C\u044D\u044E\u044F"
      },
      "win1251": "windows1251",
      "cp1251": "windows1251",
      "windows1252": {
        "type": "_sbcs",
        "chars": "\u20AC\uFFFD\u201A\u0192\u201E\u2026\u2020\u2021\u02C6\u2030\u0160\u2039\u0152\uFFFD\u017D\uFFFD\uFFFD\u2018\u2019\u201C\u201D\u2022\u2013\u2014\u02DC\u2122\u0161\u203A\u0153\uFFFD\u017E\u0178\xA0\xA1\xA2\xA3\xA4\xA5\xA6\xA7\xA8\xA9\xAA\xAB\xAC\xAD\xAE\xAF\xB0\xB1\xB2\xB3\xB4\xB5\xB6\xB7\xB8\xB9\xBA\xBB\xBC\xBD\xBE\xBF\xC0\xC1\xC2\xC3\xC4\xC5\xC6\xC7\xC8\xC9\xCA\xCB\xCC\xCD\xCE\xCF\xD0\xD1\xD2\xD3\xD4\xD5\xD6\xD7\xD8\xD9\xDA\xDB\xDC\xDD\xDE\xDF\xE0\xE1\xE2\xE3\xE4\xE5\xE6\xE7\xE8\xE9\xEA\xEB\xEC\xED\xEE\xEF\xF0\xF1\xF2\xF3\xF4\xF5\xF6\xF7\xF8\xF9\xFA\xFB\xFC\xFD\xFE\xFF"
      },
      "win1252": "windows1252",
      "cp1252": "windows1252",
      "windows1253": {
        "type": "_sbcs",
        "chars": "\u20AC\uFFFD\u201A\u0192\u201E\u2026\u2020\u2021\uFFFD\u2030\uFFFD\u2039\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\u2018\u2019\u201C\u201D\u2022\u2013\u2014\uFFFD\u2122\uFFFD\u203A\uFFFD\uFFFD\uFFFD\uFFFD\xA0\u0385\u0386\xA3\xA4\xA5\xA6\xA7\xA8\xA9\uFFFD\xAB\xAC\xAD\xAE\u2015\xB0\xB1\xB2\xB3\u0384\xB5\xB6\xB7\u0388\u0389\u038A\xBB\u038C\xBD\u038E\u038F\u0390\u0391\u0392\u0393\u0394\u0395\u0396\u0397\u0398\u0399\u039A\u039B\u039C\u039D\u039E\u039F\u03A0\u03A1\uFFFD\u03A3\u03A4\u03A5\u03A6\u03A7\u03A8\u03A9\u03AA\u03AB\u03AC\u03AD\u03AE\u03AF\u03B0\u03B1\u03B2\u03B3\u03B4\u03B5\u03B6\u03B7\u03B8\u03B9\u03BA\u03BB\u03BC\u03BD\u03BE\u03BF\u03C0\u03C1\u03C2\u03C3\u03C4\u03C5\u03C6\u03C7\u03C8\u03C9\u03CA\u03CB\u03CC\u03CD\u03CE\uFFFD"
      },
      "win1253": "windows1253",
      "cp1253": "windows1253",
      "windows1254": {
        "type": "_sbcs",
        "chars": "\u20AC\uFFFD\u201A\u0192\u201E\u2026\u2020\u2021\u02C6\u2030\u0160\u2039\u0152\uFFFD\uFFFD\uFFFD\uFFFD\u2018\u2019\u201C\u201D\u2022\u2013\u2014\u02DC\u2122\u0161\u203A\u0153\uFFFD\uFFFD\u0178\xA0\xA1\xA2\xA3\xA4\xA5\xA6\xA7\xA8\xA9\xAA\xAB\xAC\xAD\xAE\xAF\xB0\xB1\xB2\xB3\xB4\xB5\xB6\xB7\xB8\xB9\xBA\xBB\xBC\xBD\xBE\xBF\xC0\xC1\xC2\xC3\xC4\xC5\xC6\xC7\xC8\xC9\xCA\xCB\xCC\xCD\xCE\xCF\u011E\xD1\xD2\xD3\xD4\xD5\xD6\xD7\xD8\xD9\xDA\xDB\xDC\u0130\u015E\xDF\xE0\xE1\xE2\xE3\xE4\xE5\xE6\xE7\xE8\xE9\xEA\xEB\xEC\xED\xEE\xEF\u011F\xF1\xF2\xF3\xF4\xF5\xF6\xF7\xF8\xF9\xFA\xFB\xFC\u0131\u015F\xFF"
      },
      "win1254": "windows1254",
      "cp1254": "windows1254",
      "windows1255": {
        "type": "_sbcs",
        "chars": "\u20AC\uFFFD\u201A\u0192\u201E\u2026\u2020\u2021\u02C6\u2030\uFFFD\u2039\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\u2018\u2019\u201C\u201D\u2022\u2013\u2014\u02DC\u2122\uFFFD\u203A\uFFFD\uFFFD\uFFFD\uFFFD\xA0\xA1\xA2\xA3\u20AA\xA5\xA6\xA7\xA8\xA9\xD7\xAB\xAC\xAD\xAE\xAF\xB0\xB1\xB2\xB3\xB4\xB5\xB6\xB7\xB8\xB9\xF7\xBB\xBC\xBD\xBE\xBF\u05B0\u05B1\u05B2\u05B3\u05B4\u05B5\u05B6\u05B7\u05B8\u05B9\u05BA\u05BB\u05BC\u05BD\u05BE\u05BF\u05C0\u05C1\u05C2\u05C3\u05F0\u05F1\u05F2\u05F3\u05F4\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\u05D0\u05D1\u05D2\u05D3\u05D4\u05D5\u05D6\u05D7\u05D8\u05D9\u05DA\u05DB\u05DC\u05DD\u05DE\u05DF\u05E0\u05E1\u05E2\u05E3\u05E4\u05E5\u05E6\u05E7\u05E8\u05E9\u05EA\uFFFD\uFFFD\u200E\u200F\uFFFD"
      },
      "win1255": "windows1255",
      "cp1255": "windows1255",
      "windows1256": {
        "type": "_sbcs",
        "chars": "\u20AC\u067E\u201A\u0192\u201E\u2026\u2020\u2021\u02C6\u2030\u0679\u2039\u0152\u0686\u0698\u0688\u06AF\u2018\u2019\u201C\u201D\u2022\u2013\u2014\u06A9\u2122\u0691\u203A\u0153\u200C\u200D\u06BA\xA0\u060C\xA2\xA3\xA4\xA5\xA6\xA7\xA8\xA9\u06BE\xAB\xAC\xAD\xAE\xAF\xB0\xB1\xB2\xB3\xB4\xB5\xB6\xB7\xB8\xB9\u061B\xBB\xBC\xBD\xBE\u061F\u06C1\u0621\u0622\u0623\u0624\u0625\u0626\u0627\u0628\u0629\u062A\u062B\u062C\u062D\u062E\u062F\u0630\u0631\u0632\u0633\u0634\u0635\u0636\xD7\u0637\u0638\u0639\u063A\u0640\u0641\u0642\u0643\xE0\u0644\xE2\u0645\u0646\u0647\u0648\xE7\xE8\xE9\xEA\xEB\u0649\u064A\xEE\xEF\u064B\u064C\u064D\u064E\xF4\u064F\u0650\xF7\u0651\xF9\u0652\xFB\xFC\u200E\u200F\u06D2"
      },
      "win1256": "windows1256",
      "cp1256": "windows1256",
      "windows1257": {
        "type": "_sbcs",
        "chars": "\u20AC\uFFFD\u201A\uFFFD\u201E\u2026\u2020\u2021\uFFFD\u2030\uFFFD\u2039\uFFFD\xA8\u02C7\xB8\uFFFD\u2018\u2019\u201C\u201D\u2022\u2013\u2014\uFFFD\u2122\uFFFD\u203A\uFFFD\xAF\u02DB\uFFFD\xA0\uFFFD\xA2\xA3\xA4\uFFFD\xA6\xA7\xD8\xA9\u0156\xAB\xAC\xAD\xAE\xC6\xB0\xB1\xB2\xB3\xB4\xB5\xB6\xB7\xF8\xB9\u0157\xBB\xBC\xBD\xBE\xE6\u0104\u012E\u0100\u0106\xC4\xC5\u0118\u0112\u010C\xC9\u0179\u0116\u0122\u0136\u012A\u013B\u0160\u0143\u0145\xD3\u014C\xD5\xD6\xD7\u0172\u0141\u015A\u016A\xDC\u017B\u017D\xDF\u0105\u012F\u0101\u0107\xE4\xE5\u0119\u0113\u010D\xE9\u017A\u0117\u0123\u0137\u012B\u013C\u0161\u0144\u0146\xF3\u014D\xF5\xF6\xF7\u0173\u0142\u015B\u016B\xFC\u017C\u017E\u02D9"
      },
      "win1257": "windows1257",
      "cp1257": "windows1257",
      "windows1258": {
        "type": "_sbcs",
        "chars": "\u20AC\uFFFD\u201A\u0192\u201E\u2026\u2020\u2021\u02C6\u2030\uFFFD\u2039\u0152\uFFFD\uFFFD\uFFFD\uFFFD\u2018\u2019\u201C\u201D\u2022\u2013\u2014\u02DC\u2122\uFFFD\u203A\u0153\uFFFD\uFFFD\u0178\xA0\xA1\xA2\xA3\xA4\xA5\xA6\xA7\xA8\xA9\xAA\xAB\xAC\xAD\xAE\xAF\xB0\xB1\xB2\xB3\xB4\xB5\xB6\xB7\xB8\xB9\xBA\xBB\xBC\xBD\xBE\xBF\xC0\xC1\xC2\u0102\xC4\xC5\xC6\xC7\xC8\xC9\xCA\xCB\u0300\xCD\xCE\xCF\u0110\xD1\u0309\xD3\xD4\u01A0\xD6\xD7\xD8\xD9\xDA\xDB\xDC\u01AF\u0303\xDF\xE0\xE1\xE2\u0103\xE4\xE5\xE6\xE7\xE8\xE9\xEA\xEB\u0301\xED\xEE\xEF\u0111\xF1\u0323\xF3\xF4\u01A1\xF6\xF7\xF8\xF9\xFA\xFB\xFC\u01B0\u20AB\xFF"
      },
      "win1258": "windows1258",
      "cp1258": "windows1258",
      "iso88591": {
        "type": "_sbcs",
        "chars": "\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\xA1\xA2\xA3\xA4\xA5\xA6\xA7\xA8\xA9\xAA\xAB\xAC\xAD\xAE\xAF\xB0\xB1\xB2\xB3\xB4\xB5\xB6\xB7\xB8\xB9\xBA\xBB\xBC\xBD\xBE\xBF\xC0\xC1\xC2\xC3\xC4\xC5\xC6\xC7\xC8\xC9\xCA\xCB\xCC\xCD\xCE\xCF\xD0\xD1\xD2\xD3\xD4\xD5\xD6\xD7\xD8\xD9\xDA\xDB\xDC\xDD\xDE\xDF\xE0\xE1\xE2\xE3\xE4\xE5\xE6\xE7\xE8\xE9\xEA\xEB\xEC\xED\xEE\xEF\xF0\xF1\xF2\xF3\xF4\xF5\xF6\xF7\xF8\xF9\xFA\xFB\xFC\xFD\xFE\xFF"
      },
      "cp28591": "iso88591",
      "iso88592": {
        "type": "_sbcs",
        "chars": "\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\u0104\u02D8\u0141\xA4\u013D\u015A\xA7\xA8\u0160\u015E\u0164\u0179\xAD\u017D\u017B\xB0\u0105\u02DB\u0142\xB4\u013E\u015B\u02C7\xB8\u0161\u015F\u0165\u017A\u02DD\u017E\u017C\u0154\xC1\xC2\u0102\xC4\u0139\u0106\xC7\u010C\xC9\u0118\xCB\u011A\xCD\xCE\u010E\u0110\u0143\u0147\xD3\xD4\u0150\xD6\xD7\u0158\u016E\xDA\u0170\xDC\xDD\u0162\xDF\u0155\xE1\xE2\u0103\xE4\u013A\u0107\xE7\u010D\xE9\u0119\xEB\u011B\xED\xEE\u010F\u0111\u0144\u0148\xF3\xF4\u0151\xF6\xF7\u0159\u016F\xFA\u0171\xFC\xFD\u0163\u02D9"
      },
      "cp28592": "iso88592",
      "iso88593": {
        "type": "_sbcs",
        "chars": "\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\u0126\u02D8\xA3\xA4\uFFFD\u0124\xA7\xA8\u0130\u015E\u011E\u0134\xAD\uFFFD\u017B\xB0\u0127\xB2\xB3\xB4\xB5\u0125\xB7\xB8\u0131\u015F\u011F\u0135\xBD\uFFFD\u017C\xC0\xC1\xC2\uFFFD\xC4\u010A\u0108\xC7\xC8\xC9\xCA\xCB\xCC\xCD\xCE\xCF\uFFFD\xD1\xD2\xD3\xD4\u0120\xD6\xD7\u011C\xD9\xDA\xDB\xDC\u016C\u015C\xDF\xE0\xE1\xE2\uFFFD\xE4\u010B\u0109\xE7\xE8\xE9\xEA\xEB\xEC\xED\xEE\xEF\uFFFD\xF1\xF2\xF3\xF4\u0121\xF6\xF7\u011D\xF9\xFA\xFB\xFC\u016D\u015D\u02D9"
      },
      "cp28593": "iso88593",
      "iso88594": {
        "type": "_sbcs",
        "chars": "\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\u0104\u0138\u0156\xA4\u0128\u013B\xA7\xA8\u0160\u0112\u0122\u0166\xAD\u017D\xAF\xB0\u0105\u02DB\u0157\xB4\u0129\u013C\u02C7\xB8\u0161\u0113\u0123\u0167\u014A\u017E\u014B\u0100\xC1\xC2\xC3\xC4\xC5\xC6\u012E\u010C\xC9\u0118\xCB\u0116\xCD\xCE\u012A\u0110\u0145\u014C\u0136\xD4\xD5\xD6\xD7\xD8\u0172\xDA\xDB\xDC\u0168\u016A\xDF\u0101\xE1\xE2\xE3\xE4\xE5\xE6\u012F\u010D\xE9\u0119\xEB\u0117\xED\xEE\u012B\u0111\u0146\u014D\u0137\xF4\xF5\xF6\xF7\xF8\u0173\xFA\xFB\xFC\u0169\u016B\u02D9"
      },
      "cp28594": "iso88594",
      "iso88595": {
        "type": "_sbcs",
        "chars": "\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\u0401\u0402\u0403\u0404\u0405\u0406\u0407\u0408\u0409\u040A\u040B\u040C\xAD\u040E\u040F\u0410\u0411\u0412\u0413\u0414\u0415\u0416\u0417\u0418\u0419\u041A\u041B\u041C\u041D\u041E\u041F\u0420\u0421\u0422\u0423\u0424\u0425\u0426\u0427\u0428\u0429\u042A\u042B\u042C\u042D\u042E\u042F\u0430\u0431\u0432\u0433\u0434\u0435\u0436\u0437\u0438\u0439\u043A\u043B\u043C\u043D\u043E\u043F\u0440\u0441\u0442\u0443\u0444\u0445\u0446\u0447\u0448\u0449\u044A\u044B\u044C\u044D\u044E\u044F\u2116\u0451\u0452\u0453\u0454\u0455\u0456\u0457\u0458\u0459\u045A\u045B\u045C\xA7\u045E\u045F"
      },
      "cp28595": "iso88595",
      "iso88596": {
        "type": "_sbcs",
        "chars": "\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\uFFFD\uFFFD\uFFFD\xA4\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\u060C\xAD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\u061B\uFFFD\uFFFD\uFFFD\u061F\uFFFD\u0621\u0622\u0623\u0624\u0625\u0626\u0627\u0628\u0629\u062A\u062B\u062C\u062D\u062E\u062F\u0630\u0631\u0632\u0633\u0634\u0635\u0636\u0637\u0638\u0639\u063A\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\u0640\u0641\u0642\u0643\u0644\u0645\u0646\u0647\u0648\u0649\u064A\u064B\u064C\u064D\u064E\u064F\u0650\u0651\u0652\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD"
      },
      "cp28596": "iso88596",
      "iso88597": {
        "type": "_sbcs",
        "chars": "\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\u2018\u2019\xA3\u20AC\u20AF\xA6\xA7\xA8\xA9\u037A\xAB\xAC\xAD\uFFFD\u2015\xB0\xB1\xB2\xB3\u0384\u0385\u0386\xB7\u0388\u0389\u038A\xBB\u038C\xBD\u038E\u038F\u0390\u0391\u0392\u0393\u0394\u0395\u0396\u0397\u0398\u0399\u039A\u039B\u039C\u039D\u039E\u039F\u03A0\u03A1\uFFFD\u03A3\u03A4\u03A5\u03A6\u03A7\u03A8\u03A9\u03AA\u03AB\u03AC\u03AD\u03AE\u03AF\u03B0\u03B1\u03B2\u03B3\u03B4\u03B5\u03B6\u03B7\u03B8\u03B9\u03BA\u03BB\u03BC\u03BD\u03BE\u03BF\u03C0\u03C1\u03C2\u03C3\u03C4\u03C5\u03C6\u03C7\u03C8\u03C9\u03CA\u03CB\u03CC\u03CD\u03CE\uFFFD"
      },
      "cp28597": "iso88597",
      "iso88598": {
        "type": "_sbcs",
        "chars": "\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\uFFFD\xA2\xA3\xA4\xA5\xA6\xA7\xA8\xA9\xD7\xAB\xAC\xAD\xAE\xAF\xB0\xB1\xB2\xB3\xB4\xB5\xB6\xB7\xB8\xB9\xF7\xBB\xBC\xBD\xBE\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\u2017\u05D0\u05D1\u05D2\u05D3\u05D4\u05D5\u05D6\u05D7\u05D8\u05D9\u05DA\u05DB\u05DC\u05DD\u05DE\u05DF\u05E0\u05E1\u05E2\u05E3\u05E4\u05E5\u05E6\u05E7\u05E8\u05E9\u05EA\uFFFD\uFFFD\u200E\u200F\uFFFD"
      },
      "cp28598": "iso88598",
      "iso88599": {
        "type": "_sbcs",
        "chars": "\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\xA1\xA2\xA3\xA4\xA5\xA6\xA7\xA8\xA9\xAA\xAB\xAC\xAD\xAE\xAF\xB0\xB1\xB2\xB3\xB4\xB5\xB6\xB7\xB8\xB9\xBA\xBB\xBC\xBD\xBE\xBF\xC0\xC1\xC2\xC3\xC4\xC5\xC6\xC7\xC8\xC9\xCA\xCB\xCC\xCD\xCE\xCF\u011E\xD1\xD2\xD3\xD4\xD5\xD6\xD7\xD8\xD9\xDA\xDB\xDC\u0130\u015E\xDF\xE0\xE1\xE2\xE3\xE4\xE5\xE6\xE7\xE8\xE9\xEA\xEB\xEC\xED\xEE\xEF\u011F\xF1\xF2\xF3\xF4\xF5\xF6\xF7\xF8\xF9\xFA\xFB\xFC\u0131\u015F\xFF"
      },
      "cp28599": "iso88599",
      "iso885910": {
        "type": "_sbcs",
        "chars": "\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\u0104\u0112\u0122\u012A\u0128\u0136\xA7\u013B\u0110\u0160\u0166\u017D\xAD\u016A\u014A\xB0\u0105\u0113\u0123\u012B\u0129\u0137\xB7\u013C\u0111\u0161\u0167\u017E\u2015\u016B\u014B\u0100\xC1\xC2\xC3\xC4\xC5\xC6\u012E\u010C\xC9\u0118\xCB\u0116\xCD\xCE\xCF\xD0\u0145\u014C\xD3\xD4\xD5\xD6\u0168\xD8\u0172\xDA\xDB\xDC\xDD\xDE\xDF\u0101\xE1\xE2\xE3\xE4\xE5\xE6\u012F\u010D\xE9\u0119\xEB\u0117\xED\xEE\xEF\xF0\u0146\u014D\xF3\xF4\xF5\xF6\u0169\xF8\u0173\xFA\xFB\xFC\xFD\xFE\u0138"
      },
      "cp28600": "iso885910",
      "iso885911": {
        "type": "_sbcs",
        "chars": "\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\u0E01\u0E02\u0E03\u0E04\u0E05\u0E06\u0E07\u0E08\u0E09\u0E0A\u0E0B\u0E0C\u0E0D\u0E0E\u0E0F\u0E10\u0E11\u0E12\u0E13\u0E14\u0E15\u0E16\u0E17\u0E18\u0E19\u0E1A\u0E1B\u0E1C\u0E1D\u0E1E\u0E1F\u0E20\u0E21\u0E22\u0E23\u0E24\u0E25\u0E26\u0E27\u0E28\u0E29\u0E2A\u0E2B\u0E2C\u0E2D\u0E2E\u0E2F\u0E30\u0E31\u0E32\u0E33\u0E34\u0E35\u0E36\u0E37\u0E38\u0E39\u0E3A\uFFFD\uFFFD\uFFFD\uFFFD\u0E3F\u0E40\u0E41\u0E42\u0E43\u0E44\u0E45\u0E46\u0E47\u0E48\u0E49\u0E4A\u0E4B\u0E4C\u0E4D\u0E4E\u0E4F\u0E50\u0E51\u0E52\u0E53\u0E54\u0E55\u0E56\u0E57\u0E58\u0E59\u0E5A\u0E5B\uFFFD\uFFFD\uFFFD\uFFFD"
      },
      "cp28601": "iso885911",
      "iso885913": {
        "type": "_sbcs",
        "chars": "\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\u201D\xA2\xA3\xA4\u201E\xA6\xA7\xD8\xA9\u0156\xAB\xAC\xAD\xAE\xC6\xB0\xB1\xB2\xB3\u201C\xB5\xB6\xB7\xF8\xB9\u0157\xBB\xBC\xBD\xBE\xE6\u0104\u012E\u0100\u0106\xC4\xC5\u0118\u0112\u010C\xC9\u0179\u0116\u0122\u0136\u012A\u013B\u0160\u0143\u0145\xD3\u014C\xD5\xD6\xD7\u0172\u0141\u015A\u016A\xDC\u017B\u017D\xDF\u0105\u012F\u0101\u0107\xE4\xE5\u0119\u0113\u010D\xE9\u017A\u0117\u0123\u0137\u012B\u013C\u0161\u0144\u0146\xF3\u014D\xF5\xF6\xF7\u0173\u0142\u015B\u016B\xFC\u017C\u017E\u2019"
      },
      "cp28603": "iso885913",
      "iso885914": {
        "type": "_sbcs",
        "chars": "\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\u1E02\u1E03\xA3\u010A\u010B\u1E0A\xA7\u1E80\xA9\u1E82\u1E0B\u1EF2\xAD\xAE\u0178\u1E1E\u1E1F\u0120\u0121\u1E40\u1E41\xB6\u1E56\u1E81\u1E57\u1E83\u1E60\u1EF3\u1E84\u1E85\u1E61\xC0\xC1\xC2\xC3\xC4\xC5\xC6\xC7\xC8\xC9\xCA\xCB\xCC\xCD\xCE\xCF\u0174\xD1\xD2\xD3\xD4\xD5\xD6\u1E6A\xD8\xD9\xDA\xDB\xDC\xDD\u0176\xDF\xE0\xE1\xE2\xE3\xE4\xE5\xE6\xE7\xE8\xE9\xEA\xEB\xEC\xED\xEE\xEF\u0175\xF1\xF2\xF3\xF4\xF5\xF6\u1E6B\xF8\xF9\xFA\xFB\xFC\xFD\u0177\xFF"
      },
      "cp28604": "iso885914",
      "iso885915": {
        "type": "_sbcs",
        "chars": "\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\xA1\xA2\xA3\u20AC\xA5\u0160\xA7\u0161\xA9\xAA\xAB\xAC\xAD\xAE\xAF\xB0\xB1\xB2\xB3\u017D\xB5\xB6\xB7\u017E\xB9\xBA\xBB\u0152\u0153\u0178\xBF\xC0\xC1\xC2\xC3\xC4\xC5\xC6\xC7\xC8\xC9\xCA\xCB\xCC\xCD\xCE\xCF\xD0\xD1\xD2\xD3\xD4\xD5\xD6\xD7\xD8\xD9\xDA\xDB\xDC\xDD\xDE\xDF\xE0\xE1\xE2\xE3\xE4\xE5\xE6\xE7\xE8\xE9\xEA\xEB\xEC\xED\xEE\xEF\xF0\xF1\xF2\xF3\xF4\xF5\xF6\xF7\xF8\xF9\xFA\xFB\xFC\xFD\xFE\xFF"
      },
      "cp28605": "iso885915",
      "iso885916": {
        "type": "_sbcs",
        "chars": "\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\u0104\u0105\u0141\u20AC\u201E\u0160\xA7\u0161\xA9\u0218\xAB\u0179\xAD\u017A\u017B\xB0\xB1\u010C\u0142\u017D\u201D\xB6\xB7\u017E\u010D\u0219\xBB\u0152\u0153\u0178\u017C\xC0\xC1\xC2\u0102\xC4\u0106\xC6\xC7\xC8\xC9\xCA\xCB\xCC\xCD\xCE\xCF\u0110\u0143\xD2\xD3\xD4\u0150\xD6\u015A\u0170\xD9\xDA\xDB\xDC\u0118\u021A\xDF\xE0\xE1\xE2\u0103\xE4\u0107\xE6\xE7\xE8\xE9\xEA\xEB\xEC\xED\xEE\xEF\u0111\u0144\xF2\xF3\xF4\u0151\xF6\u015B\u0171\xF9\xFA\xFB\xFC\u0119\u021B\xFF"
      },
      "cp28606": "iso885916",
      "cp437": {
        "type": "_sbcs",
        "chars": "\xC7\xFC\xE9\xE2\xE4\xE0\xE5\xE7\xEA\xEB\xE8\xEF\xEE\xEC\xC4\xC5\xC9\xE6\xC6\xF4\xF6\xF2\xFB\xF9\xFF\xD6\xDC\xA2\xA3\xA5\u20A7\u0192\xE1\xED\xF3\xFA\xF1\xD1\xAA\xBA\xBF\u2310\xAC\xBD\xBC\xA1\xAB\xBB\u2591\u2592\u2593\u2502\u2524\u2561\u2562\u2556\u2555\u2563\u2551\u2557\u255D\u255C\u255B\u2510\u2514\u2534\u252C\u251C\u2500\u253C\u255E\u255F\u255A\u2554\u2569\u2566\u2560\u2550\u256C\u2567\u2568\u2564\u2565\u2559\u2558\u2552\u2553\u256B\u256A\u2518\u250C\u2588\u2584\u258C\u2590\u2580\u03B1\xDF\u0393\u03C0\u03A3\u03C3\xB5\u03C4\u03A6\u0398\u03A9\u03B4\u221E\u03C6\u03B5\u2229\u2261\xB1\u2265\u2264\u2320\u2321\xF7\u2248\xB0\u2219\xB7\u221A\u207F\xB2\u25A0\xA0"
      },
      "ibm437": "cp437",
      "csibm437": "cp437",
      "cp737": {
        "type": "_sbcs",
        "chars": "\u0391\u0392\u0393\u0394\u0395\u0396\u0397\u0398\u0399\u039A\u039B\u039C\u039D\u039E\u039F\u03A0\u03A1\u03A3\u03A4\u03A5\u03A6\u03A7\u03A8\u03A9\u03B1\u03B2\u03B3\u03B4\u03B5\u03B6\u03B7\u03B8\u03B9\u03BA\u03BB\u03BC\u03BD\u03BE\u03BF\u03C0\u03C1\u03C3\u03C2\u03C4\u03C5\u03C6\u03C7\u03C8\u2591\u2592\u2593\u2502\u2524\u2561\u2562\u2556\u2555\u2563\u2551\u2557\u255D\u255C\u255B\u2510\u2514\u2534\u252C\u251C\u2500\u253C\u255E\u255F\u255A\u2554\u2569\u2566\u2560\u2550\u256C\u2567\u2568\u2564\u2565\u2559\u2558\u2552\u2553\u256B\u256A\u2518\u250C\u2588\u2584\u258C\u2590\u2580\u03C9\u03AC\u03AD\u03AE\u03CA\u03AF\u03CC\u03CD\u03CB\u03CE\u0386\u0388\u0389\u038A\u038C\u038E\u038F\xB1\u2265\u2264\u03AA\u03AB\xF7\u2248\xB0\u2219\xB7\u221A\u207F\xB2\u25A0\xA0"
      },
      "ibm737": "cp737",
      "csibm737": "cp737",
      "cp775": {
        "type": "_sbcs",
        "chars": "\u0106\xFC\xE9\u0101\xE4\u0123\xE5\u0107\u0142\u0113\u0156\u0157\u012B\u0179\xC4\xC5\xC9\xE6\xC6\u014D\xF6\u0122\xA2\u015A\u015B\xD6\xDC\xF8\xA3\xD8\xD7\xA4\u0100\u012A\xF3\u017B\u017C\u017A\u201D\xA6\xA9\xAE\xAC\xBD\xBC\u0141\xAB\xBB\u2591\u2592\u2593\u2502\u2524\u0104\u010C\u0118\u0116\u2563\u2551\u2557\u255D\u012E\u0160\u2510\u2514\u2534\u252C\u251C\u2500\u253C\u0172\u016A\u255A\u2554\u2569\u2566\u2560\u2550\u256C\u017D\u0105\u010D\u0119\u0117\u012F\u0161\u0173\u016B\u017E\u2518\u250C\u2588\u2584\u258C\u2590\u2580\xD3\xDF\u014C\u0143\xF5\xD5\xB5\u0144\u0136\u0137\u013B\u013C\u0146\u0112\u0145\u2019\xAD\xB1\u201C\xBE\xB6\xA7\xF7\u201E\xB0\u2219\xB7\xB9\xB3\xB2\u25A0\xA0"
      },
      "ibm775": "cp775",
      "csibm775": "cp775",
      "cp850": {
        "type": "_sbcs",
        "chars": "\xC7\xFC\xE9\xE2\xE4\xE0\xE5\xE7\xEA\xEB\xE8\xEF\xEE\xEC\xC4\xC5\xC9\xE6\xC6\xF4\xF6\xF2\xFB\xF9\xFF\xD6\xDC\xF8\xA3\xD8\xD7\u0192\xE1\xED\xF3\xFA\xF1\xD1\xAA\xBA\xBF\xAE\xAC\xBD\xBC\xA1\xAB\xBB\u2591\u2592\u2593\u2502\u2524\xC1\xC2\xC0\xA9\u2563\u2551\u2557\u255D\xA2\xA5\u2510\u2514\u2534\u252C\u251C\u2500\u253C\xE3\xC3\u255A\u2554\u2569\u2566\u2560\u2550\u256C\xA4\xF0\xD0\xCA\xCB\xC8\u0131\xCD\xCE\xCF\u2518\u250C\u2588\u2584\xA6\xCC\u2580\xD3\xDF\xD4\xD2\xF5\xD5\xB5\xFE\xDE\xDA\xDB\xD9\xFD\xDD\xAF\xB4\xAD\xB1\u2017\xBE\xB6\xA7\xF7\xB8\xB0\xA8\xB7\xB9\xB3\xB2\u25A0\xA0"
      },
      "ibm850": "cp850",
      "csibm850": "cp850",
      "cp852": {
        "type": "_sbcs",
        "chars": "\xC7\xFC\xE9\xE2\xE4\u016F\u0107\xE7\u0142\xEB\u0150\u0151\xEE\u0179\xC4\u0106\xC9\u0139\u013A\xF4\xF6\u013D\u013E\u015A\u015B\xD6\xDC\u0164\u0165\u0141\xD7\u010D\xE1\xED\xF3\xFA\u0104\u0105\u017D\u017E\u0118\u0119\xAC\u017A\u010C\u015F\xAB\xBB\u2591\u2592\u2593\u2502\u2524\xC1\xC2\u011A\u015E\u2563\u2551\u2557\u255D\u017B\u017C\u2510\u2514\u2534\u252C\u251C\u2500\u253C\u0102\u0103\u255A\u2554\u2569\u2566\u2560\u2550\u256C\xA4\u0111\u0110\u010E\xCB\u010F\u0147\xCD\xCE\u011B\u2518\u250C\u2588\u2584\u0162\u016E\u2580\xD3\xDF\xD4\u0143\u0144\u0148\u0160\u0161\u0154\xDA\u0155\u0170\xFD\xDD\u0163\xB4\xAD\u02DD\u02DB\u02C7\u02D8\xA7\xF7\xB8\xB0\xA8\u02D9\u0171\u0158\u0159\u25A0\xA0"
      },
      "ibm852": "cp852",
      "csibm852": "cp852",
      "cp855": {
        "type": "_sbcs",
        "chars": "\u0452\u0402\u0453\u0403\u0451\u0401\u0454\u0404\u0455\u0405\u0456\u0406\u0457\u0407\u0458\u0408\u0459\u0409\u045A\u040A\u045B\u040B\u045C\u040C\u045E\u040E\u045F\u040F\u044E\u042E\u044A\u042A\u0430\u0410\u0431\u0411\u0446\u0426\u0434\u0414\u0435\u0415\u0444\u0424\u0433\u0413\xAB\xBB\u2591\u2592\u2593\u2502\u2524\u0445\u0425\u0438\u0418\u2563\u2551\u2557\u255D\u0439\u0419\u2510\u2514\u2534\u252C\u251C\u2500\u253C\u043A\u041A\u255A\u2554\u2569\u2566\u2560\u2550\u256C\xA4\u043B\u041B\u043C\u041C\u043D\u041D\u043E\u041E\u043F\u2518\u250C\u2588\u2584\u041F\u044F\u2580\u042F\u0440\u0420\u0441\u0421\u0442\u0422\u0443\u0423\u0436\u0416\u0432\u0412\u044C\u042C\u2116\xAD\u044B\u042B\u0437\u0417\u0448\u0428\u044D\u042D\u0449\u0429\u0447\u0427\xA7\u25A0\xA0"
      },
      "ibm855": "cp855",
      "csibm855": "cp855",
      "cp856": {
        "type": "_sbcs",
        "chars": "\u05D0\u05D1\u05D2\u05D3\u05D4\u05D5\u05D6\u05D7\u05D8\u05D9\u05DA\u05DB\u05DC\u05DD\u05DE\u05DF\u05E0\u05E1\u05E2\u05E3\u05E4\u05E5\u05E6\u05E7\u05E8\u05E9\u05EA\uFFFD\xA3\uFFFD\xD7\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\xAE\xAC\xBD\xBC\uFFFD\xAB\xBB\u2591\u2592\u2593\u2502\u2524\uFFFD\uFFFD\uFFFD\xA9\u2563\u2551\u2557\u255D\xA2\xA5\u2510\u2514\u2534\u252C\u251C\u2500\u253C\uFFFD\uFFFD\u255A\u2554\u2569\u2566\u2560\u2550\u256C\xA4\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\u2518\u250C\u2588\u2584\xA6\uFFFD\u2580\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\xB5\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\xAF\xB4\xAD\xB1\u2017\xBE\xB6\xA7\xF7\xB8\xB0\xA8\xB7\xB9\xB3\xB2\u25A0\xA0"
      },
      "ibm856": "cp856",
      "csibm856": "cp856",
      "cp857": {
        "type": "_sbcs",
        "chars": "\xC7\xFC\xE9\xE2\xE4\xE0\xE5\xE7\xEA\xEB\xE8\xEF\xEE\u0131\xC4\xC5\xC9\xE6\xC6\xF4\xF6\xF2\xFB\xF9\u0130\xD6\xDC\xF8\xA3\xD8\u015E\u015F\xE1\xED\xF3\xFA\xF1\xD1\u011E\u011F\xBF\xAE\xAC\xBD\xBC\xA1\xAB\xBB\u2591\u2592\u2593\u2502\u2524\xC1\xC2\xC0\xA9\u2563\u2551\u2557\u255D\xA2\xA5\u2510\u2514\u2534\u252C\u251C\u2500\u253C\xE3\xC3\u255A\u2554\u2569\u2566\u2560\u2550\u256C\xA4\xBA\xAA\xCA\xCB\xC8\uFFFD\xCD\xCE\xCF\u2518\u250C\u2588\u2584\xA6\xCC\u2580\xD3\xDF\xD4\xD2\xF5\xD5\xB5\uFFFD\xD7\xDA\xDB\xD9\xEC\xFF\xAF\xB4\xAD\xB1\uFFFD\xBE\xB6\xA7\xF7\xB8\xB0\xA8\xB7\xB9\xB3\xB2\u25A0\xA0"
      },
      "ibm857": "cp857",
      "csibm857": "cp857",
      "cp858": {
        "type": "_sbcs",
        "chars": "\xC7\xFC\xE9\xE2\xE4\xE0\xE5\xE7\xEA\xEB\xE8\xEF\xEE\xEC\xC4\xC5\xC9\xE6\xC6\xF4\xF6\xF2\xFB\xF9\xFF\xD6\xDC\xF8\xA3\xD8\xD7\u0192\xE1\xED\xF3\xFA\xF1\xD1\xAA\xBA\xBF\xAE\xAC\xBD\xBC\xA1\xAB\xBB\u2591\u2592\u2593\u2502\u2524\xC1\xC2\xC0\xA9\u2563\u2551\u2557\u255D\xA2\xA5\u2510\u2514\u2534\u252C\u251C\u2500\u253C\xE3\xC3\u255A\u2554\u2569\u2566\u2560\u2550\u256C\xA4\xF0\xD0\xCA\xCB\xC8\u20AC\xCD\xCE\xCF\u2518\u250C\u2588\u2584\xA6\xCC\u2580\xD3\xDF\xD4\xD2\xF5\xD5\xB5\xFE\xDE\xDA\xDB\xD9\xFD\xDD\xAF\xB4\xAD\xB1\u2017\xBE\xB6\xA7\xF7\xB8\xB0\xA8\xB7\xB9\xB3\xB2\u25A0\xA0"
      },
      "ibm858": "cp858",
      "csibm858": "cp858",
      "cp860": {
        "type": "_sbcs",
        "chars": "\xC7\xFC\xE9\xE2\xE3\xE0\xC1\xE7\xEA\xCA\xE8\xCD\xD4\xEC\xC3\xC2\xC9\xC0\xC8\xF4\xF5\xF2\xDA\xF9\xCC\xD5\xDC\xA2\xA3\xD9\u20A7\xD3\xE1\xED\xF3\xFA\xF1\xD1\xAA\xBA\xBF\xD2\xAC\xBD\xBC\xA1\xAB\xBB\u2591\u2592\u2593\u2502\u2524\u2561\u2562\u2556\u2555\u2563\u2551\u2557\u255D\u255C\u255B\u2510\u2514\u2534\u252C\u251C\u2500\u253C\u255E\u255F\u255A\u2554\u2569\u2566\u2560\u2550\u256C\u2567\u2568\u2564\u2565\u2559\u2558\u2552\u2553\u256B\u256A\u2518\u250C\u2588\u2584\u258C\u2590\u2580\u03B1\xDF\u0393\u03C0\u03A3\u03C3\xB5\u03C4\u03A6\u0398\u03A9\u03B4\u221E\u03C6\u03B5\u2229\u2261\xB1\u2265\u2264\u2320\u2321\xF7\u2248\xB0\u2219\xB7\u221A\u207F\xB2\u25A0\xA0"
      },
      "ibm860": "cp860",
      "csibm860": "cp860",
      "cp861": {
        "type": "_sbcs",
        "chars": "\xC7\xFC\xE9\xE2\xE4\xE0\xE5\xE7\xEA\xEB\xE8\xD0\xF0\xDE\xC4\xC5\xC9\xE6\xC6\xF4\xF6\xFE\xFB\xDD\xFD\xD6\xDC\xF8\xA3\xD8\u20A7\u0192\xE1\xED\xF3\xFA\xC1\xCD\xD3\xDA\xBF\u2310\xAC\xBD\xBC\xA1\xAB\xBB\u2591\u2592\u2593\u2502\u2524\u2561\u2562\u2556\u2555\u2563\u2551\u2557\u255D\u255C\u255B\u2510\u2514\u2534\u252C\u251C\u2500\u253C\u255E\u255F\u255A\u2554\u2569\u2566\u2560\u2550\u256C\u2567\u2568\u2564\u2565\u2559\u2558\u2552\u2553\u256B\u256A\u2518\u250C\u2588\u2584\u258C\u2590\u2580\u03B1\xDF\u0393\u03C0\u03A3\u03C3\xB5\u03C4\u03A6\u0398\u03A9\u03B4\u221E\u03C6\u03B5\u2229\u2261\xB1\u2265\u2264\u2320\u2321\xF7\u2248\xB0\u2219\xB7\u221A\u207F\xB2\u25A0\xA0"
      },
      "ibm861": "cp861",
      "csibm861": "cp861",
      "cp862": {
        "type": "_sbcs",
        "chars": "\u05D0\u05D1\u05D2\u05D3\u05D4\u05D5\u05D6\u05D7\u05D8\u05D9\u05DA\u05DB\u05DC\u05DD\u05DE\u05DF\u05E0\u05E1\u05E2\u05E3\u05E4\u05E5\u05E6\u05E7\u05E8\u05E9\u05EA\xA2\xA3\xA5\u20A7\u0192\xE1\xED\xF3\xFA\xF1\xD1\xAA\xBA\xBF\u2310\xAC\xBD\xBC\xA1\xAB\xBB\u2591\u2592\u2593\u2502\u2524\u2561\u2562\u2556\u2555\u2563\u2551\u2557\u255D\u255C\u255B\u2510\u2514\u2534\u252C\u251C\u2500\u253C\u255E\u255F\u255A\u2554\u2569\u2566\u2560\u2550\u256C\u2567\u2568\u2564\u2565\u2559\u2558\u2552\u2553\u256B\u256A\u2518\u250C\u2588\u2584\u258C\u2590\u2580\u03B1\xDF\u0393\u03C0\u03A3\u03C3\xB5\u03C4\u03A6\u0398\u03A9\u03B4\u221E\u03C6\u03B5\u2229\u2261\xB1\u2265\u2264\u2320\u2321\xF7\u2248\xB0\u2219\xB7\u221A\u207F\xB2\u25A0\xA0"
      },
      "ibm862": "cp862",
      "csibm862": "cp862",
      "cp863": {
        "type": "_sbcs",
        "chars": "\xC7\xFC\xE9\xE2\xC2\xE0\xB6\xE7\xEA\xEB\xE8\xEF\xEE\u2017\xC0\xA7\xC9\xC8\xCA\xF4\xCB\xCF\xFB\xF9\xA4\xD4\xDC\xA2\xA3\xD9\xDB\u0192\xA6\xB4\xF3\xFA\xA8\xB8\xB3\xAF\xCE\u2310\xAC\xBD\xBC\xBE\xAB\xBB\u2591\u2592\u2593\u2502\u2524\u2561\u2562\u2556\u2555\u2563\u2551\u2557\u255D\u255C\u255B\u2510\u2514\u2534\u252C\u251C\u2500\u253C\u255E\u255F\u255A\u2554\u2569\u2566\u2560\u2550\u256C\u2567\u2568\u2564\u2565\u2559\u2558\u2552\u2553\u256B\u256A\u2518\u250C\u2588\u2584\u258C\u2590\u2580\u03B1\xDF\u0393\u03C0\u03A3\u03C3\xB5\u03C4\u03A6\u0398\u03A9\u03B4\u221E\u03C6\u03B5\u2229\u2261\xB1\u2265\u2264\u2320\u2321\xF7\u2248\xB0\u2219\xB7\u221A\u207F\xB2\u25A0\xA0"
      },
      "ibm863": "cp863",
      "csibm863": "cp863",
      "cp864": {
        "type": "_sbcs",
        "chars": "\0\x07\b	\n\v\f\r\x1B !\"#$\u066A&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~\x7F\xB0\xB7\u2219\u221A\u2592\u2500\u2502\u253C\u2524\u252C\u251C\u2534\u2510\u250C\u2514\u2518\u03B2\u221E\u03C6\xB1\xBD\xBC\u2248\xAB\xBB\uFEF7\uFEF8\uFFFD\uFFFD\uFEFB\uFEFC\uFFFD\xA0\xAD\uFE82\xA3\xA4\uFE84\uFFFD\uFFFD\uFE8E\uFE8F\uFE95\uFE99\u060C\uFE9D\uFEA1\uFEA5\u0660\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\uFED1\u061B\uFEB1\uFEB5\uFEB9\u061F\xA2\uFE80\uFE81\uFE83\uFE85\uFECA\uFE8B\uFE8D\uFE91\uFE93\uFE97\uFE9B\uFE9F\uFEA3\uFEA7\uFEA9\uFEAB\uFEAD\uFEAF\uFEB3\uFEB7\uFEBB\uFEBF\uFEC1\uFEC5\uFECB\uFECF\xA6\xAC\xF7\xD7\uFEC9\u0640\uFED3\uFED7\uFEDB\uFEDF\uFEE3\uFEE7\uFEEB\uFEED\uFEEF\uFEF3\uFEBD\uFECC\uFECE\uFECD\uFEE1\uFE7D\u0651\uFEE5\uFEE9\uFEEC\uFEF0\uFEF2\uFED0\uFED5\uFEF5\uFEF6\uFEDD\uFED9\uFEF1\u25A0\uFFFD"
      },
      "ibm864": "cp864",
      "csibm864": "cp864",
      "cp865": {
        "type": "_sbcs",
        "chars": "\xC7\xFC\xE9\xE2\xE4\xE0\xE5\xE7\xEA\xEB\xE8\xEF\xEE\xEC\xC4\xC5\xC9\xE6\xC6\xF4\xF6\xF2\xFB\xF9\xFF\xD6\xDC\xF8\xA3\xD8\u20A7\u0192\xE1\xED\xF3\xFA\xF1\xD1\xAA\xBA\xBF\u2310\xAC\xBD\xBC\xA1\xAB\xA4\u2591\u2592\u2593\u2502\u2524\u2561\u2562\u2556\u2555\u2563\u2551\u2557\u255D\u255C\u255B\u2510\u2514\u2534\u252C\u251C\u2500\u253C\u255E\u255F\u255A\u2554\u2569\u2566\u2560\u2550\u256C\u2567\u2568\u2564\u2565\u2559\u2558\u2552\u2553\u256B\u256A\u2518\u250C\u2588\u2584\u258C\u2590\u2580\u03B1\xDF\u0393\u03C0\u03A3\u03C3\xB5\u03C4\u03A6\u0398\u03A9\u03B4\u221E\u03C6\u03B5\u2229\u2261\xB1\u2265\u2264\u2320\u2321\xF7\u2248\xB0\u2219\xB7\u221A\u207F\xB2\u25A0\xA0"
      },
      "ibm865": "cp865",
      "csibm865": "cp865",
      "cp866": {
        "type": "_sbcs",
        "chars": "\u0410\u0411\u0412\u0413\u0414\u0415\u0416\u0417\u0418\u0419\u041A\u041B\u041C\u041D\u041E\u041F\u0420\u0421\u0422\u0423\u0424\u0425\u0426\u0427\u0428\u0429\u042A\u042B\u042C\u042D\u042E\u042F\u0430\u0431\u0432\u0433\u0434\u0435\u0436\u0437\u0438\u0439\u043A\u043B\u043C\u043D\u043E\u043F\u2591\u2592\u2593\u2502\u2524\u2561\u2562\u2556\u2555\u2563\u2551\u2557\u255D\u255C\u255B\u2510\u2514\u2534\u252C\u251C\u2500\u253C\u255E\u255F\u255A\u2554\u2569\u2566\u2560\u2550\u256C\u2567\u2568\u2564\u2565\u2559\u2558\u2552\u2553\u256B\u256A\u2518\u250C\u2588\u2584\u258C\u2590\u2580\u0440\u0441\u0442\u0443\u0444\u0445\u0446\u0447\u0448\u0449\u044A\u044B\u044C\u044D\u044E\u044F\u0401\u0451\u0404\u0454\u0407\u0457\u040E\u045E\xB0\u2219\xB7\u221A\u2116\xA4\u25A0\xA0"
      },
      "ibm866": "cp866",
      "csibm866": "cp866",
      "cp869": {
        "type": "_sbcs",
        "chars": "\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\u0386\uFFFD\xB7\xAC\xA6\u2018\u2019\u0388\u2015\u0389\u038A\u03AA\u038C\uFFFD\uFFFD\u038E\u03AB\xA9\u038F\xB2\xB3\u03AC\xA3\u03AD\u03AE\u03AF\u03CA\u0390\u03CC\u03CD\u0391\u0392\u0393\u0394\u0395\u0396\u0397\xBD\u0398\u0399\xAB\xBB\u2591\u2592\u2593\u2502\u2524\u039A\u039B\u039C\u039D\u2563\u2551\u2557\u255D\u039E\u039F\u2510\u2514\u2534\u252C\u251C\u2500\u253C\u03A0\u03A1\u255A\u2554\u2569\u2566\u2560\u2550\u256C\u03A3\u03A4\u03A5\u03A6\u03A7\u03A8\u03A9\u03B1\u03B2\u03B3\u2518\u250C\u2588\u2584\u03B4\u03B5\u2580\u03B6\u03B7\u03B8\u03B9\u03BA\u03BB\u03BC\u03BD\u03BE\u03BF\u03C0\u03C1\u03C3\u03C2\u03C4\u0384\xAD\xB1\u03C5\u03C6\u03C7\xA7\u03C8\u0385\xB0\xA8\u03C9\u03CB\u03B0\u03CE\u25A0\xA0"
      },
      "ibm869": "cp869",
      "csibm869": "cp869",
      "cp922": {
        "type": "_sbcs",
        "chars": "\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\xA1\xA2\xA3\xA4\xA5\xA6\xA7\xA8\xA9\xAA\xAB\xAC\xAD\xAE\u203E\xB0\xB1\xB2\xB3\xB4\xB5\xB6\xB7\xB8\xB9\xBA\xBB\xBC\xBD\xBE\xBF\xC0\xC1\xC2\xC3\xC4\xC5\xC6\xC7\xC8\xC9\xCA\xCB\xCC\xCD\xCE\xCF\u0160\xD1\xD2\xD3\xD4\xD5\xD6\xD7\xD8\xD9\xDA\xDB\xDC\xDD\u017D\xDF\xE0\xE1\xE2\xE3\xE4\xE5\xE6\xE7\xE8\xE9\xEA\xEB\xEC\xED\xEE\xEF\u0161\xF1\xF2\xF3\xF4\xF5\xF6\xF7\xF8\xF9\xFA\xFB\xFC\xFD\u017E\xFF"
      },
      "ibm922": "cp922",
      "csibm922": "cp922",
      "cp1046": {
        "type": "_sbcs",
        "chars": "\uFE88\xD7\xF7\uF8F6\uF8F5\uF8F4\uF8F7\uFE71\x88\u25A0\u2502\u2500\u2510\u250C\u2514\u2518\uFE79\uFE7B\uFE7D\uFE7F\uFE77\uFE8A\uFEF0\uFEF3\uFEF2\uFECE\uFECF\uFED0\uFEF6\uFEF8\uFEFA\uFEFC\xA0\uF8FA\uF8F9\uF8F8\xA4\uF8FB\uFE8B\uFE91\uFE97\uFE9B\uFE9F\uFEA3\u060C\xAD\uFEA7\uFEB3\u0660\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\uFEB7\u061B\uFEBB\uFEBF\uFECA\u061F\uFECB\u0621\u0622\u0623\u0624\u0625\u0626\u0627\u0628\u0629\u062A\u062B\u062C\u062D\u062E\u062F\u0630\u0631\u0632\u0633\u0634\u0635\u0636\u0637\uFEC7\u0639\u063A\uFECC\uFE82\uFE84\uFE8E\uFED3\u0640\u0641\u0642\u0643\u0644\u0645\u0646\u0647\u0648\u0649\u064A\u064B\u064C\u064D\u064E\u064F\u0650\u0651\u0652\uFED7\uFEDB\uFEDF\uF8FC\uFEF5\uFEF7\uFEF9\uFEFB\uFEE3\uFEE7\uFEEC\uFEE9\uFFFD"
      },
      "ibm1046": "cp1046",
      "csibm1046": "cp1046",
      "cp1124": {
        "type": "_sbcs",
        "chars": "\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\u0401\u0402\u0490\u0404\u0405\u0406\u0407\u0408\u0409\u040A\u040B\u040C\xAD\u040E\u040F\u0410\u0411\u0412\u0413\u0414\u0415\u0416\u0417\u0418\u0419\u041A\u041B\u041C\u041D\u041E\u041F\u0420\u0421\u0422\u0423\u0424\u0425\u0426\u0427\u0428\u0429\u042A\u042B\u042C\u042D\u042E\u042F\u0430\u0431\u0432\u0433\u0434\u0435\u0436\u0437\u0438\u0439\u043A\u043B\u043C\u043D\u043E\u043F\u0440\u0441\u0442\u0443\u0444\u0445\u0446\u0447\u0448\u0449\u044A\u044B\u044C\u044D\u044E\u044F\u2116\u0451\u0452\u0491\u0454\u0455\u0456\u0457\u0458\u0459\u045A\u045B\u045C\xA7\u045E\u045F"
      },
      "ibm1124": "cp1124",
      "csibm1124": "cp1124",
      "cp1125": {
        "type": "_sbcs",
        "chars": "\u0410\u0411\u0412\u0413\u0414\u0415\u0416\u0417\u0418\u0419\u041A\u041B\u041C\u041D\u041E\u041F\u0420\u0421\u0422\u0423\u0424\u0425\u0426\u0427\u0428\u0429\u042A\u042B\u042C\u042D\u042E\u042F\u0430\u0431\u0432\u0433\u0434\u0435\u0436\u0437\u0438\u0439\u043A\u043B\u043C\u043D\u043E\u043F\u2591\u2592\u2593\u2502\u2524\u2561\u2562\u2556\u2555\u2563\u2551\u2557\u255D\u255C\u255B\u2510\u2514\u2534\u252C\u251C\u2500\u253C\u255E\u255F\u255A\u2554\u2569\u2566\u2560\u2550\u256C\u2567\u2568\u2564\u2565\u2559\u2558\u2552\u2553\u256B\u256A\u2518\u250C\u2588\u2584\u258C\u2590\u2580\u0440\u0441\u0442\u0443\u0444\u0445\u0446\u0447\u0448\u0449\u044A\u044B\u044C\u044D\u044E\u044F\u0401\u0451\u0490\u0491\u0404\u0454\u0406\u0456\u0407\u0457\xB7\u221A\u2116\xA4\u25A0\xA0"
      },
      "ibm1125": "cp1125",
      "csibm1125": "cp1125",
      "cp1129": {
        "type": "_sbcs",
        "chars": "\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\xA1\xA2\xA3\xA4\xA5\xA6\xA7\u0153\xA9\xAA\xAB\xAC\xAD\xAE\xAF\xB0\xB1\xB2\xB3\u0178\xB5\xB6\xB7\u0152\xB9\xBA\xBB\xBC\xBD\xBE\xBF\xC0\xC1\xC2\u0102\xC4\xC5\xC6\xC7\xC8\xC9\xCA\xCB\u0300\xCD\xCE\xCF\u0110\xD1\u0309\xD3\xD4\u01A0\xD6\xD7\xD8\xD9\xDA\xDB\xDC\u01AF\u0303\xDF\xE0\xE1\xE2\u0103\xE4\xE5\xE6\xE7\xE8\xE9\xEA\xEB\u0301\xED\xEE\xEF\u0111\xF1\u0323\xF3\xF4\u01A1\xF6\xF7\xF8\xF9\xFA\xFB\xFC\u01B0\u20AB\xFF"
      },
      "ibm1129": "cp1129",
      "csibm1129": "cp1129",
      "cp1133": {
        "type": "_sbcs",
        "chars": "\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\u0E81\u0E82\u0E84\u0E87\u0E88\u0EAA\u0E8A\u0E8D\u0E94\u0E95\u0E96\u0E97\u0E99\u0E9A\u0E9B\u0E9C\u0E9D\u0E9E\u0E9F\u0EA1\u0EA2\u0EA3\u0EA5\u0EA7\u0EAB\u0EAD\u0EAE\uFFFD\uFFFD\uFFFD\u0EAF\u0EB0\u0EB2\u0EB3\u0EB4\u0EB5\u0EB6\u0EB7\u0EB8\u0EB9\u0EBC\u0EB1\u0EBB\u0EBD\uFFFD\uFFFD\uFFFD\u0EC0\u0EC1\u0EC2\u0EC3\u0EC4\u0EC8\u0EC9\u0ECA\u0ECB\u0ECC\u0ECD\u0EC6\uFFFD\u0EDC\u0EDD\u20AD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\u0ED0\u0ED1\u0ED2\u0ED3\u0ED4\u0ED5\u0ED6\u0ED7\u0ED8\u0ED9\uFFFD\uFFFD\xA2\xAC\xA6\uFFFD"
      },
      "ibm1133": "cp1133",
      "csibm1133": "cp1133",
      "cp1161": {
        "type": "_sbcs",
        "chars": "\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\u0E48\u0E01\u0E02\u0E03\u0E04\u0E05\u0E06\u0E07\u0E08\u0E09\u0E0A\u0E0B\u0E0C\u0E0D\u0E0E\u0E0F\u0E10\u0E11\u0E12\u0E13\u0E14\u0E15\u0E16\u0E17\u0E18\u0E19\u0E1A\u0E1B\u0E1C\u0E1D\u0E1E\u0E1F\u0E20\u0E21\u0E22\u0E23\u0E24\u0E25\u0E26\u0E27\u0E28\u0E29\u0E2A\u0E2B\u0E2C\u0E2D\u0E2E\u0E2F\u0E30\u0E31\u0E32\u0E33\u0E34\u0E35\u0E36\u0E37\u0E38\u0E39\u0E3A\u0E49\u0E4A\u0E4B\u20AC\u0E3F\u0E40\u0E41\u0E42\u0E43\u0E44\u0E45\u0E46\u0E47\u0E48\u0E49\u0E4A\u0E4B\u0E4C\u0E4D\u0E4E\u0E4F\u0E50\u0E51\u0E52\u0E53\u0E54\u0E55\u0E56\u0E57\u0E58\u0E59\u0E5A\u0E5B\xA2\xAC\xA6\xA0"
      },
      "ibm1161": "cp1161",
      "csibm1161": "cp1161",
      "cp1162": {
        "type": "_sbcs",
        "chars": "\u20AC\x81\x82\x83\x84\u2026\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\u2018\u2019\u201C\u201D\u2022\u2013\u2014\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\u0E01\u0E02\u0E03\u0E04\u0E05\u0E06\u0E07\u0E08\u0E09\u0E0A\u0E0B\u0E0C\u0E0D\u0E0E\u0E0F\u0E10\u0E11\u0E12\u0E13\u0E14\u0E15\u0E16\u0E17\u0E18\u0E19\u0E1A\u0E1B\u0E1C\u0E1D\u0E1E\u0E1F\u0E20\u0E21\u0E22\u0E23\u0E24\u0E25\u0E26\u0E27\u0E28\u0E29\u0E2A\u0E2B\u0E2C\u0E2D\u0E2E\u0E2F\u0E30\u0E31\u0E32\u0E33\u0E34\u0E35\u0E36\u0E37\u0E38\u0E39\u0E3A\uFFFD\uFFFD\uFFFD\uFFFD\u0E3F\u0E40\u0E41\u0E42\u0E43\u0E44\u0E45\u0E46\u0E47\u0E48\u0E49\u0E4A\u0E4B\u0E4C\u0E4D\u0E4E\u0E4F\u0E50\u0E51\u0E52\u0E53\u0E54\u0E55\u0E56\u0E57\u0E58\u0E59\u0E5A\u0E5B\uFFFD\uFFFD\uFFFD\uFFFD"
      },
      "ibm1162": "cp1162",
      "csibm1162": "cp1162",
      "cp1163": {
        "type": "_sbcs",
        "chars": "\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\xA1\xA2\xA3\u20AC\xA5\xA6\xA7\u0153\xA9\xAA\xAB\xAC\xAD\xAE\xAF\xB0\xB1\xB2\xB3\u0178\xB5\xB6\xB7\u0152\xB9\xBA\xBB\xBC\xBD\xBE\xBF\xC0\xC1\xC2\u0102\xC4\xC5\xC6\xC7\xC8\xC9\xCA\xCB\u0300\xCD\xCE\xCF\u0110\xD1\u0309\xD3\xD4\u01A0\xD6\xD7\xD8\xD9\xDA\xDB\xDC\u01AF\u0303\xDF\xE0\xE1\xE2\u0103\xE4\xE5\xE6\xE7\xE8\xE9\xEA\xEB\u0301\xED\xEE\xEF\u0111\xF1\u0323\xF3\xF4\u01A1\xF6\xF7\xF8\xF9\xFA\xFB\xFC\u01B0\u20AB\xFF"
      },
      "ibm1163": "cp1163",
      "csibm1163": "cp1163",
      "maccroatian": {
        "type": "_sbcs",
        "chars": "\xC4\xC5\xC7\xC9\xD1\xD6\xDC\xE1\xE0\xE2\xE4\xE3\xE5\xE7\xE9\xE8\xEA\xEB\xED\xEC\xEE\xEF\xF1\xF3\xF2\xF4\xF6\xF5\xFA\xF9\xFB\xFC\u2020\xB0\xA2\xA3\xA7\u2022\xB6\xDF\xAE\u0160\u2122\xB4\xA8\u2260\u017D\xD8\u221E\xB1\u2264\u2265\u2206\xB5\u2202\u2211\u220F\u0161\u222B\xAA\xBA\u2126\u017E\xF8\xBF\xA1\xAC\u221A\u0192\u2248\u0106\xAB\u010C\u2026\xA0\xC0\xC3\xD5\u0152\u0153\u0110\u2014\u201C\u201D\u2018\u2019\xF7\u25CA\uFFFD\xA9\u2044\xA4\u2039\u203A\xC6\xBB\u2013\xB7\u201A\u201E\u2030\xC2\u0107\xC1\u010D\xC8\xCD\xCE\xCF\xCC\xD3\xD4\u0111\xD2\xDA\xDB\xD9\u0131\u02C6\u02DC\xAF\u03C0\xCB\u02DA\xB8\xCA\xE6\u02C7"
      },
      "maccyrillic": {
        "type": "_sbcs",
        "chars": "\u0410\u0411\u0412\u0413\u0414\u0415\u0416\u0417\u0418\u0419\u041A\u041B\u041C\u041D\u041E\u041F\u0420\u0421\u0422\u0423\u0424\u0425\u0426\u0427\u0428\u0429\u042A\u042B\u042C\u042D\u042E\u042F\u2020\xB0\xA2\xA3\xA7\u2022\xB6\u0406\xAE\xA9\u2122\u0402\u0452\u2260\u0403\u0453\u221E\xB1\u2264\u2265\u0456\xB5\u2202\u0408\u0404\u0454\u0407\u0457\u0409\u0459\u040A\u045A\u0458\u0405\xAC\u221A\u0192\u2248\u2206\xAB\xBB\u2026\xA0\u040B\u045B\u040C\u045C\u0455\u2013\u2014\u201C\u201D\u2018\u2019\xF7\u201E\u040E\u045E\u040F\u045F\u2116\u0401\u0451\u044F\u0430\u0431\u0432\u0433\u0434\u0435\u0436\u0437\u0438\u0439\u043A\u043B\u043C\u043D\u043E\u043F\u0440\u0441\u0442\u0443\u0444\u0445\u0446\u0447\u0448\u0449\u044A\u044B\u044C\u044D\u044E\xA4"
      },
      "macgreek": {
        "type": "_sbcs",
        "chars": "\xC4\xB9\xB2\xC9\xB3\xD6\xDC\u0385\xE0\xE2\xE4\u0384\xA8\xE7\xE9\xE8\xEA\xEB\xA3\u2122\xEE\xEF\u2022\xBD\u2030\xF4\xF6\xA6\xAD\xF9\xFB\xFC\u2020\u0393\u0394\u0398\u039B\u039E\u03A0\xDF\xAE\xA9\u03A3\u03AA\xA7\u2260\xB0\u0387\u0391\xB1\u2264\u2265\xA5\u0392\u0395\u0396\u0397\u0399\u039A\u039C\u03A6\u03AB\u03A8\u03A9\u03AC\u039D\xAC\u039F\u03A1\u2248\u03A4\xAB\xBB\u2026\xA0\u03A5\u03A7\u0386\u0388\u0153\u2013\u2015\u201C\u201D\u2018\u2019\xF7\u0389\u038A\u038C\u038E\u03AD\u03AE\u03AF\u03CC\u038F\u03CD\u03B1\u03B2\u03C8\u03B4\u03B5\u03C6\u03B3\u03B7\u03B9\u03BE\u03BA\u03BB\u03BC\u03BD\u03BF\u03C0\u03CE\u03C1\u03C3\u03C4\u03B8\u03C9\u03C2\u03C7\u03C5\u03B6\u03CA\u03CB\u0390\u03B0\uFFFD"
      },
      "maciceland": {
        "type": "_sbcs",
        "chars": "\xC4\xC5\xC7\xC9\xD1\xD6\xDC\xE1\xE0\xE2\xE4\xE3\xE5\xE7\xE9\xE8\xEA\xEB\xED\xEC\xEE\xEF\xF1\xF3\xF2\xF4\xF6\xF5\xFA\xF9\xFB\xFC\xDD\xB0\xA2\xA3\xA7\u2022\xB6\xDF\xAE\xA9\u2122\xB4\xA8\u2260\xC6\xD8\u221E\xB1\u2264\u2265\xA5\xB5\u2202\u2211\u220F\u03C0\u222B\xAA\xBA\u2126\xE6\xF8\xBF\xA1\xAC\u221A\u0192\u2248\u2206\xAB\xBB\u2026\xA0\xC0\xC3\xD5\u0152\u0153\u2013\u2014\u201C\u201D\u2018\u2019\xF7\u25CA\xFF\u0178\u2044\xA4\xD0\xF0\xDE\xFE\xFD\xB7\u201A\u201E\u2030\xC2\xCA\xC1\xCB\xC8\xCD\xCE\xCF\xCC\xD3\xD4\uFFFD\xD2\xDA\xDB\xD9\u0131\u02C6\u02DC\xAF\u02D8\u02D9\u02DA\xB8\u02DD\u02DB\u02C7"
      },
      "macroman": {
        "type": "_sbcs",
        "chars": "\xC4\xC5\xC7\xC9\xD1\xD6\xDC\xE1\xE0\xE2\xE4\xE3\xE5\xE7\xE9\xE8\xEA\xEB\xED\xEC\xEE\xEF\xF1\xF3\xF2\xF4\xF6\xF5\xFA\xF9\xFB\xFC\u2020\xB0\xA2\xA3\xA7\u2022\xB6\xDF\xAE\xA9\u2122\xB4\xA8\u2260\xC6\xD8\u221E\xB1\u2264\u2265\xA5\xB5\u2202\u2211\u220F\u03C0\u222B\xAA\xBA\u2126\xE6\xF8\xBF\xA1\xAC\u221A\u0192\u2248\u2206\xAB\xBB\u2026\xA0\xC0\xC3\xD5\u0152\u0153\u2013\u2014\u201C\u201D\u2018\u2019\xF7\u25CA\xFF\u0178\u2044\xA4\u2039\u203A\uFB01\uFB02\u2021\xB7\u201A\u201E\u2030\xC2\xCA\xC1\xCB\xC8\xCD\xCE\xCF\xCC\xD3\xD4\uFFFD\xD2\xDA\xDB\xD9\u0131\u02C6\u02DC\xAF\u02D8\u02D9\u02DA\xB8\u02DD\u02DB\u02C7"
      },
      "macromania": {
        "type": "_sbcs",
        "chars": "\xC4\xC5\xC7\xC9\xD1\xD6\xDC\xE1\xE0\xE2\xE4\xE3\xE5\xE7\xE9\xE8\xEA\xEB\xED\xEC\xEE\xEF\xF1\xF3\xF2\xF4\xF6\xF5\xFA\xF9\xFB\xFC\u2020\xB0\xA2\xA3\xA7\u2022\xB6\xDF\xAE\xA9\u2122\xB4\xA8\u2260\u0102\u015E\u221E\xB1\u2264\u2265\xA5\xB5\u2202\u2211\u220F\u03C0\u222B\xAA\xBA\u2126\u0103\u015F\xBF\xA1\xAC\u221A\u0192\u2248\u2206\xAB\xBB\u2026\xA0\xC0\xC3\xD5\u0152\u0153\u2013\u2014\u201C\u201D\u2018\u2019\xF7\u25CA\xFF\u0178\u2044\xA4\u2039\u203A\u0162\u0163\u2021\xB7\u201A\u201E\u2030\xC2\xCA\xC1\xCB\xC8\xCD\xCE\xCF\xCC\xD3\xD4\uFFFD\xD2\xDA\xDB\xD9\u0131\u02C6\u02DC\xAF\u02D8\u02D9\u02DA\xB8\u02DD\u02DB\u02C7"
      },
      "macthai": {
        "type": "_sbcs",
        "chars": "\xAB\xBB\u2026\uF88C\uF88F\uF892\uF895\uF898\uF88B\uF88E\uF891\uF894\uF897\u201C\u201D\uF899\uFFFD\u2022\uF884\uF889\uF885\uF886\uF887\uF888\uF88A\uF88D\uF890\uF893\uF896\u2018\u2019\uFFFD\xA0\u0E01\u0E02\u0E03\u0E04\u0E05\u0E06\u0E07\u0E08\u0E09\u0E0A\u0E0B\u0E0C\u0E0D\u0E0E\u0E0F\u0E10\u0E11\u0E12\u0E13\u0E14\u0E15\u0E16\u0E17\u0E18\u0E19\u0E1A\u0E1B\u0E1C\u0E1D\u0E1E\u0E1F\u0E20\u0E21\u0E22\u0E23\u0E24\u0E25\u0E26\u0E27\u0E28\u0E29\u0E2A\u0E2B\u0E2C\u0E2D\u0E2E\u0E2F\u0E30\u0E31\u0E32\u0E33\u0E34\u0E35\u0E36\u0E37\u0E38\u0E39\u0E3A\uFEFF\u200B\u2013\u2014\u0E3F\u0E40\u0E41\u0E42\u0E43\u0E44\u0E45\u0E46\u0E47\u0E48\u0E49\u0E4A\u0E4B\u0E4C\u0E4D\u2122\u0E4F\u0E50\u0E51\u0E52\u0E53\u0E54\u0E55\u0E56\u0E57\u0E58\u0E59\xAE\xA9\uFFFD\uFFFD\uFFFD\uFFFD"
      },
      "macturkish": {
        "type": "_sbcs",
        "chars": "\xC4\xC5\xC7\xC9\xD1\xD6\xDC\xE1\xE0\xE2\xE4\xE3\xE5\xE7\xE9\xE8\xEA\xEB\xED\xEC\xEE\xEF\xF1\xF3\xF2\xF4\xF6\xF5\xFA\xF9\xFB\xFC\u2020\xB0\xA2\xA3\xA7\u2022\xB6\xDF\xAE\xA9\u2122\xB4\xA8\u2260\xC6\xD8\u221E\xB1\u2264\u2265\xA5\xB5\u2202\u2211\u220F\u03C0\u222B\xAA\xBA\u2126\xE6\xF8\xBF\xA1\xAC\u221A\u0192\u2248\u2206\xAB\xBB\u2026\xA0\xC0\xC3\xD5\u0152\u0153\u2013\u2014\u201C\u201D\u2018\u2019\xF7\u25CA\xFF\u0178\u011E\u011F\u0130\u0131\u015E\u015F\u2021\xB7\u201A\u201E\u2030\xC2\xCA\xC1\xCB\xC8\xCD\xCE\xCF\xCC\xD3\xD4\uFFFD\xD2\xDA\xDB\xD9\uFFFD\u02C6\u02DC\xAF\u02D8\u02D9\u02DA\xB8\u02DD\u02DB\u02C7"
      },
      "macukraine": {
        "type": "_sbcs",
        "chars": "\u0410\u0411\u0412\u0413\u0414\u0415\u0416\u0417\u0418\u0419\u041A\u041B\u041C\u041D\u041E\u041F\u0420\u0421\u0422\u0423\u0424\u0425\u0426\u0427\u0428\u0429\u042A\u042B\u042C\u042D\u042E\u042F\u2020\xB0\u0490\xA3\xA7\u2022\xB6\u0406\xAE\xA9\u2122\u0402\u0452\u2260\u0403\u0453\u221E\xB1\u2264\u2265\u0456\xB5\u0491\u0408\u0404\u0454\u0407\u0457\u0409\u0459\u040A\u045A\u0458\u0405\xAC\u221A\u0192\u2248\u2206\xAB\xBB\u2026\xA0\u040B\u045B\u040C\u045C\u0455\u2013\u2014\u201C\u201D\u2018\u2019\xF7\u201E\u040E\u045E\u040F\u045F\u2116\u0401\u0451\u044F\u0430\u0431\u0432\u0433\u0434\u0435\u0436\u0437\u0438\u0439\u043A\u043B\u043C\u043D\u043E\u043F\u0440\u0441\u0442\u0443\u0444\u0445\u0446\u0447\u0448\u0449\u044A\u044B\u044C\u044D\u044E\xA4"
      },
      "koi8r": {
        "type": "_sbcs",
        "chars": "\u2500\u2502\u250C\u2510\u2514\u2518\u251C\u2524\u252C\u2534\u253C\u2580\u2584\u2588\u258C\u2590\u2591\u2592\u2593\u2320\u25A0\u2219\u221A\u2248\u2264\u2265\xA0\u2321\xB0\xB2\xB7\xF7\u2550\u2551\u2552\u0451\u2553\u2554\u2555\u2556\u2557\u2558\u2559\u255A\u255B\u255C\u255D\u255E\u255F\u2560\u2561\u0401\u2562\u2563\u2564\u2565\u2566\u2567\u2568\u2569\u256A\u256B\u256C\xA9\u044E\u0430\u0431\u0446\u0434\u0435\u0444\u0433\u0445\u0438\u0439\u043A\u043B\u043C\u043D\u043E\u043F\u044F\u0440\u0441\u0442\u0443\u0436\u0432\u044C\u044B\u0437\u0448\u044D\u0449\u0447\u044A\u042E\u0410\u0411\u0426\u0414\u0415\u0424\u0413\u0425\u0418\u0419\u041A\u041B\u041C\u041D\u041E\u041F\u042F\u0420\u0421\u0422\u0423\u0416\u0412\u042C\u042B\u0417\u0428\u042D\u0429\u0427\u042A"
      },
      "koi8u": {
        "type": "_sbcs",
        "chars": "\u2500\u2502\u250C\u2510\u2514\u2518\u251C\u2524\u252C\u2534\u253C\u2580\u2584\u2588\u258C\u2590\u2591\u2592\u2593\u2320\u25A0\u2219\u221A\u2248\u2264\u2265\xA0\u2321\xB0\xB2\xB7\xF7\u2550\u2551\u2552\u0451\u0454\u2554\u0456\u0457\u2557\u2558\u2559\u255A\u255B\u0491\u255D\u255E\u255F\u2560\u2561\u0401\u0404\u2563\u0406\u0407\u2566\u2567\u2568\u2569\u256A\u0490\u256C\xA9\u044E\u0430\u0431\u0446\u0434\u0435\u0444\u0433\u0445\u0438\u0439\u043A\u043B\u043C\u043D\u043E\u043F\u044F\u0440\u0441\u0442\u0443\u0436\u0432\u044C\u044B\u0437\u0448\u044D\u0449\u0447\u044A\u042E\u0410\u0411\u0426\u0414\u0415\u0424\u0413\u0425\u0418\u0419\u041A\u041B\u041C\u041D\u041E\u041F\u042F\u0420\u0421\u0422\u0423\u0416\u0412\u042C\u042B\u0417\u0428\u042D\u0429\u0427\u042A"
      },
      "koi8ru": {
        "type": "_sbcs",
        "chars": "\u2500\u2502\u250C\u2510\u2514\u2518\u251C\u2524\u252C\u2534\u253C\u2580\u2584\u2588\u258C\u2590\u2591\u2592\u2593\u2320\u25A0\u2219\u221A\u2248\u2264\u2265\xA0\u2321\xB0\xB2\xB7\xF7\u2550\u2551\u2552\u0451\u0454\u2554\u0456\u0457\u2557\u2558\u2559\u255A\u255B\u0491\u045E\u255E\u255F\u2560\u2561\u0401\u0404\u2563\u0406\u0407\u2566\u2567\u2568\u2569\u256A\u0490\u040E\xA9\u044E\u0430\u0431\u0446\u0434\u0435\u0444\u0433\u0445\u0438\u0439\u043A\u043B\u043C\u043D\u043E\u043F\u044F\u0440\u0441\u0442\u0443\u0436\u0432\u044C\u044B\u0437\u0448\u044D\u0449\u0447\u044A\u042E\u0410\u0411\u0426\u0414\u0415\u0424\u0413\u0425\u0418\u0419\u041A\u041B\u041C\u041D\u041E\u041F\u042F\u0420\u0421\u0422\u0423\u0416\u0412\u042C\u042B\u0417\u0428\u042D\u0429\u0427\u042A"
      },
      "koi8t": {
        "type": "_sbcs",
        "chars": "\u049B\u0493\u201A\u0492\u201E\u2026\u2020\u2021\uFFFD\u2030\u04B3\u2039\u04B2\u04B7\u04B6\uFFFD\u049A\u2018\u2019\u201C\u201D\u2022\u2013\u2014\uFFFD\u2122\uFFFD\u203A\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\u04EF\u04EE\u0451\xA4\u04E3\xA6\xA7\uFFFD\uFFFD\uFFFD\xAB\xAC\xAD\xAE\uFFFD\xB0\xB1\xB2\u0401\uFFFD\u04E2\xB6\xB7\uFFFD\u2116\uFFFD\xBB\uFFFD\uFFFD\uFFFD\xA9\u044E\u0430\u0431\u0446\u0434\u0435\u0444\u0433\u0445\u0438\u0439\u043A\u043B\u043C\u043D\u043E\u043F\u044F\u0440\u0441\u0442\u0443\u0436\u0432\u044C\u044B\u0437\u0448\u044D\u0449\u0447\u044A\u042E\u0410\u0411\u0426\u0414\u0415\u0424\u0413\u0425\u0418\u0419\u041A\u041B\u041C\u041D\u041E\u041F\u042F\u0420\u0421\u0422\u0423\u0416\u0412\u042C\u042B\u0417\u0428\u042D\u0429\u0427\u042A"
      },
      "armscii8": {
        "type": "_sbcs",
        "chars": "\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\uFFFD\u0587\u0589)(\xBB\xAB\u2014.\u055D,-\u058A\u2026\u055C\u055B\u055E\u0531\u0561\u0532\u0562\u0533\u0563\u0534\u0564\u0535\u0565\u0536\u0566\u0537\u0567\u0538\u0568\u0539\u0569\u053A\u056A\u053B\u056B\u053C\u056C\u053D\u056D\u053E\u056E\u053F\u056F\u0540\u0570\u0541\u0571\u0542\u0572\u0543\u0573\u0544\u0574\u0545\u0575\u0546\u0576\u0547\u0577\u0548\u0578\u0549\u0579\u054A\u057A\u054B\u057B\u054C\u057C\u054D\u057D\u054E\u057E\u054F\u057F\u0550\u0580\u0551\u0581\u0552\u0582\u0553\u0583\u0554\u0584\u0555\u0585\u0556\u0586\u055A\uFFFD"
      },
      "rk1048": {
        "type": "_sbcs",
        "chars": "\u0402\u0403\u201A\u0453\u201E\u2026\u2020\u2021\u20AC\u2030\u0409\u2039\u040A\u049A\u04BA\u040F\u0452\u2018\u2019\u201C\u201D\u2022\u2013\u2014\uFFFD\u2122\u0459\u203A\u045A\u049B\u04BB\u045F\xA0\u04B0\u04B1\u04D8\xA4\u04E8\xA6\xA7\u0401\xA9\u0492\xAB\xAC\xAD\xAE\u04AE\xB0\xB1\u0406\u0456\u04E9\xB5\xB6\xB7\u0451\u2116\u0493\xBB\u04D9\u04A2\u04A3\u04AF\u0410\u0411\u0412\u0413\u0414\u0415\u0416\u0417\u0418\u0419\u041A\u041B\u041C\u041D\u041E\u041F\u0420\u0421\u0422\u0423\u0424\u0425\u0426\u0427\u0428\u0429\u042A\u042B\u042C\u042D\u042E\u042F\u0430\u0431\u0432\u0433\u0434\u0435\u0436\u0437\u0438\u0439\u043A\u043B\u043C\u043D\u043E\u043F\u0440\u0441\u0442\u0443\u0444\u0445\u0446\u0447\u0448\u0449\u044A\u044B\u044C\u044D\u044E\u044F"
      },
      "tcvn": {
        "type": "_sbcs",
        "chars": "\0\xDA\u1EE4\u1EEA\u1EEC\u1EEE\x07\b	\n\v\f\r\u1EE8\u1EF0\u1EF2\u1EF6\u1EF8\xDD\u1EF4\x1B !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~\x7F\xC0\u1EA2\xC3\xC1\u1EA0\u1EB6\u1EAC\xC8\u1EBA\u1EBC\xC9\u1EB8\u1EC6\xCC\u1EC8\u0128\xCD\u1ECA\xD2\u1ECE\xD5\xD3\u1ECC\u1ED8\u1EDC\u1EDE\u1EE0\u1EDA\u1EE2\xD9\u1EE6\u0168\xA0\u0102\xC2\xCA\xD4\u01A0\u01AF\u0110\u0103\xE2\xEA\xF4\u01A1\u01B0\u0111\u1EB0\u0300\u0309\u0303\u0301\u0323\xE0\u1EA3\xE3\xE1\u1EA1\u1EB2\u1EB1\u1EB3\u1EB5\u1EAF\u1EB4\u1EAE\u1EA6\u1EA8\u1EAA\u1EA4\u1EC0\u1EB7\u1EA7\u1EA9\u1EAB\u1EA5\u1EAD\xE8\u1EC2\u1EBB\u1EBD\xE9\u1EB9\u1EC1\u1EC3\u1EC5\u1EBF\u1EC7\xEC\u1EC9\u1EC4\u1EBE\u1ED2\u0129\xED\u1ECB\xF2\u1ED4\u1ECF\xF5\xF3\u1ECD\u1ED3\u1ED5\u1ED7\u1ED1\u1ED9\u1EDD\u1EDF\u1EE1\u1EDB\u1EE3\xF9\u1ED6\u1EE7\u0169\xFA\u1EE5\u1EEB\u1EED\u1EEF\u1EE9\u1EF1\u1EF3\u1EF7\u1EF9\xFD\u1EF5\u1ED0"
      },
      "georgianacademy": {
        "type": "_sbcs",
        "chars": "\x80\x81\u201A\u0192\u201E\u2026\u2020\u2021\u02C6\u2030\u0160\u2039\u0152\x8D\x8E\x8F\x90\u2018\u2019\u201C\u201D\u2022\u2013\u2014\u02DC\u2122\u0161\u203A\u0153\x9D\x9E\u0178\xA0\xA1\xA2\xA3\xA4\xA5\xA6\xA7\xA8\xA9\xAA\xAB\xAC\xAD\xAE\xAF\xB0\xB1\xB2\xB3\xB4\xB5\xB6\xB7\xB8\xB9\xBA\xBB\xBC\xBD\xBE\xBF\u10D0\u10D1\u10D2\u10D3\u10D4\u10D5\u10D6\u10D7\u10D8\u10D9\u10DA\u10DB\u10DC\u10DD\u10DE\u10DF\u10E0\u10E1\u10E2\u10E3\u10E4\u10E5\u10E6\u10E7\u10E8\u10E9\u10EA\u10EB\u10EC\u10ED\u10EE\u10EF\u10F0\u10F1\u10F2\u10F3\u10F4\u10F5\u10F6\xE7\xE8\xE9\xEA\xEB\xEC\xED\xEE\xEF\xF0\xF1\xF2\xF3\xF4\xF5\xF6\xF7\xF8\xF9\xFA\xFB\xFC\xFD\xFE\xFF"
      },
      "georgianps": {
        "type": "_sbcs",
        "chars": "\x80\x81\u201A\u0192\u201E\u2026\u2020\u2021\u02C6\u2030\u0160\u2039\u0152\x8D\x8E\x8F\x90\u2018\u2019\u201C\u201D\u2022\u2013\u2014\u02DC\u2122\u0161\u203A\u0153\x9D\x9E\u0178\xA0\xA1\xA2\xA3\xA4\xA5\xA6\xA7\xA8\xA9\xAA\xAB\xAC\xAD\xAE\xAF\xB0\xB1\xB2\xB3\xB4\xB5\xB6\xB7\xB8\xB9\xBA\xBB\xBC\xBD\xBE\xBF\u10D0\u10D1\u10D2\u10D3\u10D4\u10D5\u10D6\u10F1\u10D7\u10D8\u10D9\u10DA\u10DB\u10DC\u10F2\u10DD\u10DE\u10DF\u10E0\u10E1\u10E2\u10F3\u10E3\u10E4\u10E5\u10E6\u10E7\u10E8\u10E9\u10EA\u10EB\u10EC\u10ED\u10EE\u10F4\u10EF\u10F0\u10F5\xE6\xE7\xE8\xE9\xEA\xEB\xEC\xED\xEE\xEF\xF0\xF1\xF2\xF3\xF4\xF5\xF6\xF7\xF8\xF9\xFA\xFB\xFC\xFD\xFE\xFF"
      },
      "pt154": {
        "type": "_sbcs",
        "chars": "\u0496\u0492\u04EE\u0493\u201E\u2026\u04B6\u04AE\u04B2\u04AF\u04A0\u04E2\u04A2\u049A\u04BA\u04B8\u0497\u2018\u2019\u201C\u201D\u2022\u2013\u2014\u04B3\u04B7\u04A1\u04E3\u04A3\u049B\u04BB\u04B9\xA0\u040E\u045E\u0408\u04E8\u0498\u04B0\xA7\u0401\xA9\u04D8\xAB\xAC\u04EF\xAE\u049C\xB0\u04B1\u0406\u0456\u0499\u04E9\xB6\xB7\u0451\u2116\u04D9\xBB\u0458\u04AA\u04AB\u049D\u0410\u0411\u0412\u0413\u0414\u0415\u0416\u0417\u0418\u0419\u041A\u041B\u041C\u041D\u041E\u041F\u0420\u0421\u0422\u0423\u0424\u0425\u0426\u0427\u0428\u0429\u042A\u042B\u042C\u042D\u042E\u042F\u0430\u0431\u0432\u0433\u0434\u0435\u0436\u0437\u0438\u0439\u043A\u043B\u043C\u043D\u043E\u043F\u0440\u0441\u0442\u0443\u0444\u0445\u0446\u0447\u0448\u0449\u044A\u044B\u044C\u044D\u044E\u044F"
      },
      "viscii": {
        "type": "_sbcs",
        "chars": "\0\u1EB2\u1EB4\u1EAA\x07\b	\n\v\f\r\u1EF6\u1EF8\x1B\u1EF4 !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~\x7F\u1EA0\u1EAE\u1EB0\u1EB6\u1EA4\u1EA6\u1EA8\u1EAC\u1EBC\u1EB8\u1EBE\u1EC0\u1EC2\u1EC4\u1EC6\u1ED0\u1ED2\u1ED4\u1ED6\u1ED8\u1EE2\u1EDA\u1EDC\u1EDE\u1ECA\u1ECE\u1ECC\u1EC8\u1EE6\u0168\u1EE4\u1EF2\xD5\u1EAF\u1EB1\u1EB7\u1EA5\u1EA7\u1EA9\u1EAD\u1EBD\u1EB9\u1EBF\u1EC1\u1EC3\u1EC5\u1EC7\u1ED1\u1ED3\u1ED5\u1ED7\u1EE0\u01A0\u1ED9\u1EDD\u1EDF\u1ECB\u1EF0\u1EE8\u1EEA\u1EEC\u01A1\u1EDB\u01AF\xC0\xC1\xC2\xC3\u1EA2\u0102\u1EB3\u1EB5\xC8\xC9\xCA\u1EBA\xCC\xCD\u0128\u1EF3\u0110\u1EE9\xD2\xD3\xD4\u1EA1\u1EF7\u1EEB\u1EED\xD9\xDA\u1EF9\u1EF5\xDD\u1EE1\u01B0\xE0\xE1\xE2\xE3\u1EA3\u0103\u1EEF\u1EAB\xE8\xE9\xEA\u1EBB\xEC\xED\u0129\u1EC9\u0111\u1EF1\xF2\xF3\xF4\xF5\u1ECF\u1ECD\u1EE5\xF9\xFA\u0169\u1EE7\xFD\u1EE3\u1EEE"
      },
      "iso646cn": {
        "type": "_sbcs",
        "chars": "\0\x07\b	\n\v\f\r\x1B !\"#\xA5%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}\u203E\x7F\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD"
      },
      "iso646jp": {
        "type": "_sbcs",
        "chars": "\0\x07\b	\n\v\f\r\x1B !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\xA5]^_`abcdefghijklmnopqrstuvwxyz{|}\u203E\x7F\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD"
      },
      "hproman8": {
        "type": "_sbcs",
        "chars": "\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\xC0\xC2\xC8\xCA\xCB\xCE\xCF\xB4\u02CB\u02C6\xA8\u02DC\xD9\xDB\u20A4\xAF\xDD\xFD\xB0\xC7\xE7\xD1\xF1\xA1\xBF\xA4\xA3\xA5\xA7\u0192\xA2\xE2\xEA\xF4\xFB\xE1\xE9\xF3\xFA\xE0\xE8\xF2\xF9\xE4\xEB\xF6\xFC\xC5\xEE\xD8\xC6\xE5\xED\xF8\xE6\xC4\xEC\xD6\xDC\xC9\xEF\xDF\xD4\xC1\xC3\xE3\xD0\xF0\xCD\xCC\xD3\xD2\xD5\xF5\u0160\u0161\xDA\u0178\xFF\xDE\xFE\xB7\xB5\xB6\xBE\u2014\xBC\xBD\xAA\xBA\xAB\u25A0\xBB\xB1\uFFFD"
      },
      "macintosh": {
        "type": "_sbcs",
        "chars": "\xC4\xC5\xC7\xC9\xD1\xD6\xDC\xE1\xE0\xE2\xE4\xE3\xE5\xE7\xE9\xE8\xEA\xEB\xED\xEC\xEE\xEF\xF1\xF3\xF2\xF4\xF6\xF5\xFA\xF9\xFB\xFC\u2020\xB0\xA2\xA3\xA7\u2022\xB6\xDF\xAE\xA9\u2122\xB4\xA8\u2260\xC6\xD8\u221E\xB1\u2264\u2265\xA5\xB5\u2202\u2211\u220F\u03C0\u222B\xAA\xBA\u2126\xE6\xF8\xBF\xA1\xAC\u221A\u0192\u2248\u2206\xAB\xBB\u2026\xA0\xC0\xC3\xD5\u0152\u0153\u2013\u2014\u201C\u201D\u2018\u2019\xF7\u25CA\xFF\u0178\u2044\xA4\u2039\u203A\uFB01\uFB02\u2021\xB7\u201A\u201E\u2030\xC2\xCA\xC1\xCB\xC8\xCD\xCE\xCF\xCC\xD3\xD4\uFFFD\xD2\xDA\xDB\xD9\u0131\u02C6\u02DC\xAF\u02D8\u02D9\u02DA\xB8\u02DD\u02DB\u02C7"
      },
      "ascii": {
        "type": "_sbcs",
        "chars": "\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD"
      },
      "tis620": {
        "type": "_sbcs",
        "chars": "\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\u0E01\u0E02\u0E03\u0E04\u0E05\u0E06\u0E07\u0E08\u0E09\u0E0A\u0E0B\u0E0C\u0E0D\u0E0E\u0E0F\u0E10\u0E11\u0E12\u0E13\u0E14\u0E15\u0E16\u0E17\u0E18\u0E19\u0E1A\u0E1B\u0E1C\u0E1D\u0E1E\u0E1F\u0E20\u0E21\u0E22\u0E23\u0E24\u0E25\u0E26\u0E27\u0E28\u0E29\u0E2A\u0E2B\u0E2C\u0E2D\u0E2E\u0E2F\u0E30\u0E31\u0E32\u0E33\u0E34\u0E35\u0E36\u0E37\u0E38\u0E39\u0E3A\uFFFD\uFFFD\uFFFD\uFFFD\u0E3F\u0E40\u0E41\u0E42\u0E43\u0E44\u0E45\u0E46\u0E47\u0E48\u0E49\u0E4A\u0E4B\u0E4C\u0E4D\u0E4E\u0E4F\u0E50\u0E51\u0E52\u0E53\u0E54\u0E55\u0E56\u0E57\u0E58\u0E59\u0E5A\u0E5B\uFFFD\uFFFD\uFFFD\uFFFD"
      }
    };
  }
});

// node_modules/iconv-lite/encodings/dbcs-codec.js
var require_dbcs_codec = __commonJS({
  "node_modules/iconv-lite/encodings/dbcs-codec.js"(exports2) {
    "use strict";
    var Buffer3 = require_safer().Buffer;
    exports2._dbcs = DBCSCodec;
    var UNASSIGNED = -1;
    var GB18030_CODE = -2;
    var SEQ_START = -10;
    var NODE_START = -1e3;
    var UNASSIGNED_NODE = new Array(256);
    var DEF_CHAR = -1;
    for (i2 = 0; i2 < 256; i2++) {
      UNASSIGNED_NODE[i2] = UNASSIGNED;
    }
    var i2;
    function DBCSCodec(codecOptions, iconv2) {
      this.encodingName = codecOptions.encodingName;
      if (!codecOptions) {
        throw new Error("DBCS codec is called without the data.");
      }
      if (!codecOptions.table) {
        throw new Error("Encoding '" + this.encodingName + "' has no data.");
      }
      var mappingTable = codecOptions.table();
      this.decodeTables = [];
      this.decodeTables[0] = UNASSIGNED_NODE.slice(0);
      this.decodeTableSeq = [];
      for (var i3 = 0; i3 < mappingTable.length; i3++) {
        this._addDecodeChunk(mappingTable[i3]);
      }
      if (typeof codecOptions.gb18030 === "function") {
        this.gb18030 = codecOptions.gb18030();
        var commonThirdByteNodeIdx = this.decodeTables.length;
        this.decodeTables.push(UNASSIGNED_NODE.slice(0));
        var commonFourthByteNodeIdx = this.decodeTables.length;
        this.decodeTables.push(UNASSIGNED_NODE.slice(0));
        var firstByteNode = this.decodeTables[0];
        for (var i3 = 129; i3 <= 254; i3++) {
          var secondByteNode = this.decodeTables[NODE_START - firstByteNode[i3]];
          for (var j = 48; j <= 57; j++) {
            if (secondByteNode[j] === UNASSIGNED) {
              secondByteNode[j] = NODE_START - commonThirdByteNodeIdx;
            } else if (secondByteNode[j] > NODE_START) {
              throw new Error("gb18030 decode tables conflict at byte 2");
            }
            var thirdByteNode = this.decodeTables[NODE_START - secondByteNode[j]];
            for (var k = 129; k <= 254; k++) {
              if (thirdByteNode[k] === UNASSIGNED) {
                thirdByteNode[k] = NODE_START - commonFourthByteNodeIdx;
              } else if (thirdByteNode[k] === NODE_START - commonFourthByteNodeIdx) {
                continue;
              } else if (thirdByteNode[k] > NODE_START) {
                throw new Error("gb18030 decode tables conflict at byte 3");
              }
              var fourthByteNode = this.decodeTables[NODE_START - thirdByteNode[k]];
              for (var l2 = 48; l2 <= 57; l2++) {
                if (fourthByteNode[l2] === UNASSIGNED) {
                  fourthByteNode[l2] = GB18030_CODE;
                }
              }
            }
          }
        }
      }
      this.defaultCharUnicode = iconv2.defaultCharUnicode;
      this.encodeTable = [];
      this.encodeTableSeq = [];
      var skipEncodeChars = {};
      if (codecOptions.encodeSkipVals) {
        for (var i3 = 0; i3 < codecOptions.encodeSkipVals.length; i3++) {
          var val = codecOptions.encodeSkipVals[i3];
          if (typeof val === "number") {
            skipEncodeChars[val] = true;
          } else {
            for (var j = val.from; j <= val.to; j++) {
              skipEncodeChars[j] = true;
            }
          }
        }
      }
      this._fillEncodeTable(0, 0, skipEncodeChars);
      if (codecOptions.encodeAdd) {
        for (var uChar in codecOptions.encodeAdd) {
          if (Object.prototype.hasOwnProperty.call(codecOptions.encodeAdd, uChar)) {
            this._setEncodeChar(uChar.charCodeAt(0), codecOptions.encodeAdd[uChar]);
          }
        }
      }
      this.defCharSB = this.encodeTable[0][iconv2.defaultCharSingleByte.charCodeAt(0)];
      if (this.defCharSB === UNASSIGNED) this.defCharSB = this.encodeTable[0]["?"];
      if (this.defCharSB === UNASSIGNED) this.defCharSB = "?".charCodeAt(0);
    }
    DBCSCodec.prototype.encoder = DBCSEncoder;
    DBCSCodec.prototype.decoder = DBCSDecoder;
    DBCSCodec.prototype._getDecodeTrieNode = function(addr) {
      var bytes2 = [];
      for (; addr > 0; addr >>>= 8) {
        bytes2.push(addr & 255);
      }
      if (bytes2.length == 0) {
        bytes2.push(0);
      }
      var node = this.decodeTables[0];
      for (var i3 = bytes2.length - 1; i3 > 0; i3--) {
        var val = node[bytes2[i3]];
        if (val == UNASSIGNED) {
          node[bytes2[i3]] = NODE_START - this.decodeTables.length;
          this.decodeTables.push(node = UNASSIGNED_NODE.slice(0));
        } else if (val <= NODE_START) {
          node = this.decodeTables[NODE_START - val];
        } else {
          throw new Error("Overwrite byte in " + this.encodingName + ", addr: " + addr.toString(16));
        }
      }
      return node;
    };
    DBCSCodec.prototype._addDecodeChunk = function(chunk) {
      var curAddr = parseInt(chunk[0], 16);
      var writeTable = this._getDecodeTrieNode(curAddr);
      curAddr = curAddr & 255;
      for (var k = 1; k < chunk.length; k++) {
        var part = chunk[k];
        if (typeof part === "string") {
          for (var l2 = 0; l2 < part.length; ) {
            var code = part.charCodeAt(l2++);
            if (code >= 55296 && code < 56320) {
              var codeTrail = part.charCodeAt(l2++);
              if (codeTrail >= 56320 && codeTrail < 57344) {
                writeTable[curAddr++] = 65536 + (code - 55296) * 1024 + (codeTrail - 56320);
              } else {
                throw new Error("Incorrect surrogate pair in " + this.encodingName + " at chunk " + chunk[0]);
              }
            } else if (code > 4080 && code <= 4095) {
              var len = 4095 - code + 2;
              var seq = [];
              for (var m2 = 0; m2 < len; m2++) {
                seq.push(part.charCodeAt(l2++));
              }
              writeTable[curAddr++] = SEQ_START - this.decodeTableSeq.length;
              this.decodeTableSeq.push(seq);
            } else {
              writeTable[curAddr++] = code;
            }
          }
        } else if (typeof part === "number") {
          var charCode = writeTable[curAddr - 1] + 1;
          for (var l2 = 0; l2 < part; l2++) {
            writeTable[curAddr++] = charCode++;
          }
        } else {
          throw new Error("Incorrect type '" + typeof part + "' given in " + this.encodingName + " at chunk " + chunk[0]);
        }
      }
      if (curAddr > 255) {
        throw new Error("Incorrect chunk in " + this.encodingName + " at addr " + chunk[0] + ": too long" + curAddr);
      }
    };
    DBCSCodec.prototype._getEncodeBucket = function(uCode) {
      var high = uCode >> 8;
      if (this.encodeTable[high] === void 0) {
        this.encodeTable[high] = UNASSIGNED_NODE.slice(0);
      }
      return this.encodeTable[high];
    };
    DBCSCodec.prototype._setEncodeChar = function(uCode, dbcsCode) {
      var bucket = this._getEncodeBucket(uCode);
      var low = uCode & 255;
      if (bucket[low] <= SEQ_START) {
        this.encodeTableSeq[SEQ_START - bucket[low]][DEF_CHAR] = dbcsCode;
      } else if (bucket[low] == UNASSIGNED) {
        bucket[low] = dbcsCode;
      }
    };
    DBCSCodec.prototype._setEncodeSequence = function(seq, dbcsCode) {
      var uCode = seq[0];
      var bucket = this._getEncodeBucket(uCode);
      var low = uCode & 255;
      var node;
      if (bucket[low] <= SEQ_START) {
        node = this.encodeTableSeq[SEQ_START - bucket[low]];
      } else {
        node = {};
        if (bucket[low] !== UNASSIGNED) node[DEF_CHAR] = bucket[low];
        bucket[low] = SEQ_START - this.encodeTableSeq.length;
        this.encodeTableSeq.push(node);
      }
      for (var j = 1; j < seq.length - 1; j++) {
        var oldVal = node[uCode];
        if (typeof oldVal === "object") {
          node = oldVal;
        } else {
          node = node[uCode] = {};
          if (oldVal !== void 0) {
            node[DEF_CHAR] = oldVal;
          }
        }
      }
      uCode = seq[seq.length - 1];
      node[uCode] = dbcsCode;
    };
    DBCSCodec.prototype._fillEncodeTable = function(nodeIdx, prefix2, skipEncodeChars) {
      var node = this.decodeTables[nodeIdx];
      var hasValues = false;
      var subNodeEmpty = {};
      for (var i3 = 0; i3 < 256; i3++) {
        var uCode = node[i3];
        var mbCode = prefix2 + i3;
        if (skipEncodeChars[mbCode]) {
          continue;
        }
        if (uCode >= 0) {
          this._setEncodeChar(uCode, mbCode);
          hasValues = true;
        } else if (uCode <= NODE_START) {
          var subNodeIdx = NODE_START - uCode;
          if (!subNodeEmpty[subNodeIdx]) {
            var newPrefix = mbCode << 8 >>> 0;
            if (this._fillEncodeTable(subNodeIdx, newPrefix, skipEncodeChars)) {
              hasValues = true;
            } else {
              subNodeEmpty[subNodeIdx] = true;
            }
          }
        } else if (uCode <= SEQ_START) {
          this._setEncodeSequence(this.decodeTableSeq[SEQ_START - uCode], mbCode);
          hasValues = true;
        }
      }
      return hasValues;
    };
    function DBCSEncoder(options3, codec) {
      this.leadSurrogate = -1;
      this.seqObj = void 0;
      this.encodeTable = codec.encodeTable;
      this.encodeTableSeq = codec.encodeTableSeq;
      this.defaultCharSingleByte = codec.defCharSB;
      this.gb18030 = codec.gb18030;
    }
    DBCSEncoder.prototype.write = function(str) {
      var newBuf = Buffer3.alloc(str.length * (this.gb18030 ? 4 : 3));
      var leadSurrogate = this.leadSurrogate;
      var seqObj = this.seqObj;
      var nextChar = -1;
      var i3 = 0;
      var j = 0;
      while (true) {
        if (nextChar === -1) {
          if (i3 == str.length) break;
          var uCode = str.charCodeAt(i3++);
        } else {
          var uCode = nextChar;
          nextChar = -1;
        }
        if (uCode >= 55296 && uCode < 57344) {
          if (uCode < 56320) {
            if (leadSurrogate === -1) {
              leadSurrogate = uCode;
              continue;
            } else {
              leadSurrogate = uCode;
              uCode = UNASSIGNED;
            }
          } else {
            if (leadSurrogate !== -1) {
              uCode = 65536 + (leadSurrogate - 55296) * 1024 + (uCode - 56320);
              leadSurrogate = -1;
            } else {
              uCode = UNASSIGNED;
            }
          }
        } else if (leadSurrogate !== -1) {
          nextChar = uCode;
          uCode = UNASSIGNED;
          leadSurrogate = -1;
        }
        var dbcsCode = UNASSIGNED;
        if (seqObj !== void 0 && uCode != UNASSIGNED) {
          var resCode = seqObj[uCode];
          if (typeof resCode === "object") {
            seqObj = resCode;
            continue;
          } else if (typeof resCode === "number") {
            dbcsCode = resCode;
          } else if (resCode == void 0) {
            resCode = seqObj[DEF_CHAR];
            if (resCode !== void 0) {
              dbcsCode = resCode;
              nextChar = uCode;
            } else {
            }
          }
          seqObj = void 0;
        } else if (uCode >= 0) {
          var subtable = this.encodeTable[uCode >> 8];
          if (subtable !== void 0) {
            dbcsCode = subtable[uCode & 255];
          }
          if (dbcsCode <= SEQ_START) {
            seqObj = this.encodeTableSeq[SEQ_START - dbcsCode];
            continue;
          }
          if (dbcsCode == UNASSIGNED && this.gb18030) {
            var idx = findIdx(this.gb18030.uChars, uCode);
            if (idx != -1) {
              var dbcsCode = this.gb18030.gbChars[idx] + (uCode - this.gb18030.uChars[idx]);
              newBuf[j++] = 129 + Math.floor(dbcsCode / 12600);
              dbcsCode = dbcsCode % 12600;
              newBuf[j++] = 48 + Math.floor(dbcsCode / 1260);
              dbcsCode = dbcsCode % 1260;
              newBuf[j++] = 129 + Math.floor(dbcsCode / 10);
              dbcsCode = dbcsCode % 10;
              newBuf[j++] = 48 + dbcsCode;
              continue;
            }
          }
        }
        if (dbcsCode === UNASSIGNED) {
          dbcsCode = this.defaultCharSingleByte;
        }
        if (dbcsCode < 256) {
          newBuf[j++] = dbcsCode;
        } else if (dbcsCode < 65536) {
          newBuf[j++] = dbcsCode >> 8;
          newBuf[j++] = dbcsCode & 255;
        } else if (dbcsCode < 16777216) {
          newBuf[j++] = dbcsCode >> 16;
          newBuf[j++] = dbcsCode >> 8 & 255;
          newBuf[j++] = dbcsCode & 255;
        } else {
          newBuf[j++] = dbcsCode >>> 24;
          newBuf[j++] = dbcsCode >>> 16 & 255;
          newBuf[j++] = dbcsCode >>> 8 & 255;
          newBuf[j++] = dbcsCode & 255;
        }
      }
      this.seqObj = seqObj;
      this.leadSurrogate = leadSurrogate;
      return newBuf.slice(0, j);
    };
    DBCSEncoder.prototype.end = function() {
      if (this.leadSurrogate === -1 && this.seqObj === void 0) {
        return;
      }
      var newBuf = Buffer3.alloc(10);
      var j = 0;
      if (this.seqObj) {
        var dbcsCode = this.seqObj[DEF_CHAR];
        if (dbcsCode !== void 0) {
          if (dbcsCode < 256) {
            newBuf[j++] = dbcsCode;
          } else {
            newBuf[j++] = dbcsCode >> 8;
            newBuf[j++] = dbcsCode & 255;
          }
        } else {
        }
        this.seqObj = void 0;
      }
      if (this.leadSurrogate !== -1) {
        newBuf[j++] = this.defaultCharSingleByte;
        this.leadSurrogate = -1;
      }
      return newBuf.slice(0, j);
    };
    DBCSEncoder.prototype.findIdx = findIdx;
    function DBCSDecoder(options3, codec) {
      this.nodeIdx = 0;
      this.prevBytes = [];
      this.decodeTables = codec.decodeTables;
      this.decodeTableSeq = codec.decodeTableSeq;
      this.defaultCharUnicode = codec.defaultCharUnicode;
      this.gb18030 = codec.gb18030;
    }
    DBCSDecoder.prototype.write = function(buf) {
      var newBuf = Buffer3.alloc(buf.length * 2);
      var nodeIdx = this.nodeIdx;
      var prevBytes = this.prevBytes;
      var prevOffset = this.prevBytes.length;
      var seqStart = -this.prevBytes.length;
      var uCode;
      for (var i3 = 0, j = 0; i3 < buf.length; i3++) {
        var curByte = i3 >= 0 ? buf[i3] : prevBytes[i3 + prevOffset];
        var uCode = this.decodeTables[nodeIdx][curByte];
        if (uCode >= 0) {
        } else if (uCode === UNASSIGNED) {
          uCode = this.defaultCharUnicode.charCodeAt(0);
          i3 = seqStart;
        } else if (uCode === GB18030_CODE) {
          if (i3 >= 3) {
            var ptr = (buf[i3 - 3] - 129) * 12600 + (buf[i3 - 2] - 48) * 1260 + (buf[i3 - 1] - 129) * 10 + (curByte - 48);
          } else {
            var ptr = (prevBytes[i3 - 3 + prevOffset] - 129) * 12600 + ((i3 - 2 >= 0 ? buf[i3 - 2] : prevBytes[i3 - 2 + prevOffset]) - 48) * 1260 + ((i3 - 1 >= 0 ? buf[i3 - 1] : prevBytes[i3 - 1 + prevOffset]) - 129) * 10 + (curByte - 48);
          }
          var idx = findIdx(this.gb18030.gbChars, ptr);
          uCode = this.gb18030.uChars[idx] + ptr - this.gb18030.gbChars[idx];
        } else if (uCode <= NODE_START) {
          nodeIdx = NODE_START - uCode;
          continue;
        } else if (uCode <= SEQ_START) {
          var seq = this.decodeTableSeq[SEQ_START - uCode];
          for (var k = 0; k < seq.length - 1; k++) {
            uCode = seq[k];
            newBuf[j++] = uCode & 255;
            newBuf[j++] = uCode >> 8;
          }
          uCode = seq[seq.length - 1];
        } else {
          throw new Error("iconv-lite internal error: invalid decoding table value " + uCode + " at " + nodeIdx + "/" + curByte);
        }
        if (uCode >= 65536) {
          uCode -= 65536;
          var uCodeLead = 55296 | uCode >> 10;
          newBuf[j++] = uCodeLead & 255;
          newBuf[j++] = uCodeLead >> 8;
          uCode = 56320 | uCode & 1023;
        }
        newBuf[j++] = uCode & 255;
        newBuf[j++] = uCode >> 8;
        nodeIdx = 0;
        seqStart = i3 + 1;
      }
      this.nodeIdx = nodeIdx;
      this.prevBytes = seqStart >= 0 ? Array.prototype.slice.call(buf, seqStart) : prevBytes.slice(seqStart + prevOffset).concat(Array.prototype.slice.call(buf));
      return newBuf.slice(0, j).toString("ucs2");
    };
    DBCSDecoder.prototype.end = function() {
      var ret = "";
      while (this.prevBytes.length > 0) {
        ret += this.defaultCharUnicode;
        var bytesArr = this.prevBytes.slice(1);
        this.prevBytes = [];
        this.nodeIdx = 0;
        if (bytesArr.length > 0) {
          ret += this.write(bytesArr);
        }
      }
      this.prevBytes = [];
      this.nodeIdx = 0;
      return ret;
    };
    function findIdx(table, val) {
      if (table[0] > val) {
        return -1;
      }
      var l2 = 0;
      var r2 = table.length;
      while (l2 < r2 - 1) {
        var mid = l2 + (r2 - l2 + 1 >> 1);
        if (table[mid] <= val) {
          l2 = mid;
        } else {
          r2 = mid;
        }
      }
      return l2;
    }
  }
});

// node_modules/iconv-lite/encodings/tables/shiftjis.json
var require_shiftjis = __commonJS({
  "node_modules/iconv-lite/encodings/tables/shiftjis.json"(exports2, module2) {
    module2.exports = [
      ["0", "\0", 128],
      ["a1", "\uFF61", 62],
      ["8140", "\u3000\u3001\u3002\uFF0C\uFF0E\u30FB\uFF1A\uFF1B\uFF1F\uFF01\u309B\u309C\xB4\uFF40\xA8\uFF3E\uFFE3\uFF3F\u30FD\u30FE\u309D\u309E\u3003\u4EDD\u3005\u3006\u3007\u30FC\u2015\u2010\uFF0F\uFF3C\uFF5E\u2225\uFF5C\u2026\u2025\u2018\u2019\u201C\u201D\uFF08\uFF09\u3014\u3015\uFF3B\uFF3D\uFF5B\uFF5D\u3008", 9, "\uFF0B\uFF0D\xB1\xD7"],
      ["8180", "\xF7\uFF1D\u2260\uFF1C\uFF1E\u2266\u2267\u221E\u2234\u2642\u2640\xB0\u2032\u2033\u2103\uFFE5\uFF04\uFFE0\uFFE1\uFF05\uFF03\uFF06\uFF0A\uFF20\xA7\u2606\u2605\u25CB\u25CF\u25CE\u25C7\u25C6\u25A1\u25A0\u25B3\u25B2\u25BD\u25BC\u203B\u3012\u2192\u2190\u2191\u2193\u3013"],
      ["81b8", "\u2208\u220B\u2286\u2287\u2282\u2283\u222A\u2229"],
      ["81c8", "\u2227\u2228\uFFE2\u21D2\u21D4\u2200\u2203"],
      ["81da", "\u2220\u22A5\u2312\u2202\u2207\u2261\u2252\u226A\u226B\u221A\u223D\u221D\u2235\u222B\u222C"],
      ["81f0", "\u212B\u2030\u266F\u266D\u266A\u2020\u2021\xB6"],
      ["81fc", "\u25EF"],
      ["824f", "\uFF10", 9],
      ["8260", "\uFF21", 25],
      ["8281", "\uFF41", 25],
      ["829f", "\u3041", 82],
      ["8340", "\u30A1", 62],
      ["8380", "\u30E0", 22],
      ["839f", "\u0391", 16, "\u03A3", 6],
      ["83bf", "\u03B1", 16, "\u03C3", 6],
      ["8440", "\u0410", 5, "\u0401\u0416", 25],
      ["8470", "\u0430", 5, "\u0451\u0436", 7],
      ["8480", "\u043E", 17],
      ["849f", "\u2500\u2502\u250C\u2510\u2518\u2514\u251C\u252C\u2524\u2534\u253C\u2501\u2503\u250F\u2513\u251B\u2517\u2523\u2533\u252B\u253B\u254B\u2520\u252F\u2528\u2537\u253F\u251D\u2530\u2525\u2538\u2542"],
      ["8740", "\u2460", 19, "\u2160", 9],
      ["875f", "\u3349\u3314\u3322\u334D\u3318\u3327\u3303\u3336\u3351\u3357\u330D\u3326\u3323\u332B\u334A\u333B\u339C\u339D\u339E\u338E\u338F\u33C4\u33A1"],
      ["877e", "\u337B"],
      ["8780", "\u301D\u301F\u2116\u33CD\u2121\u32A4", 4, "\u3231\u3232\u3239\u337E\u337D\u337C\u2252\u2261\u222B\u222E\u2211\u221A\u22A5\u2220\u221F\u22BF\u2235\u2229\u222A"],
      ["889f", "\u4E9C\u5516\u5A03\u963F\u54C0\u611B\u6328\u59F6\u9022\u8475\u831C\u7A50\u60AA\u63E1\u6E25\u65ED\u8466\u82A6\u9BF5\u6893\u5727\u65A1\u6271\u5B9B\u59D0\u867B\u98F4\u7D62\u7DBE\u9B8E\u6216\u7C9F\u88B7\u5B89\u5EB5\u6309\u6697\u6848\u95C7\u978D\u674F\u4EE5\u4F0A\u4F4D\u4F9D\u5049\u56F2\u5937\u59D4\u5A01\u5C09\u60DF\u610F\u6170\u6613\u6905\u70BA\u754F\u7570\u79FB\u7DAD\u7DEF\u80C3\u840E\u8863\u8B02\u9055\u907A\u533B\u4E95\u4EA5\u57DF\u80B2\u90C1\u78EF\u4E00\u58F1\u6EA2\u9038\u7A32\u8328\u828B\u9C2F\u5141\u5370\u54BD\u54E1\u56E0\u59FB\u5F15\u98F2\u6DEB\u80E4\u852D"],
      ["8940", "\u9662\u9670\u96A0\u97FB\u540B\u53F3\u5B87\u70CF\u7FBD\u8FC2\u96E8\u536F\u9D5C\u7ABA\u4E11\u7893\u81FC\u6E26\u5618\u5504\u6B1D\u851A\u9C3B\u59E5\u53A9\u6D66\u74DC\u958F\u5642\u4E91\u904B\u96F2\u834F\u990C\u53E1\u55B6\u5B30\u5F71\u6620\u66F3\u6804\u6C38\u6CF3\u6D29\u745B\u76C8\u7A4E\u9834\u82F1\u885B\u8A60\u92ED\u6DB2\u75AB\u76CA\u99C5\u60A6\u8B01\u8D8A\u95B2\u698E\u53AD\u5186"],
      ["8980", "\u5712\u5830\u5944\u5BB4\u5EF6\u6028\u63A9\u63F4\u6CBF\u6F14\u708E\u7114\u7159\u71D5\u733F\u7E01\u8276\u82D1\u8597\u9060\u925B\u9D1B\u5869\u65BC\u6C5A\u7525\u51F9\u592E\u5965\u5F80\u5FDC\u62BC\u65FA\u6A2A\u6B27\u6BB4\u738B\u7FC1\u8956\u9D2C\u9D0E\u9EC4\u5CA1\u6C96\u837B\u5104\u5C4B\u61B6\u81C6\u6876\u7261\u4E59\u4FFA\u5378\u6069\u6E29\u7A4F\u97F3\u4E0B\u5316\u4EEE\u4F55\u4F3D\u4FA1\u4F73\u52A0\u53EF\u5609\u590F\u5AC1\u5BB6\u5BE1\u79D1\u6687\u679C\u67B6\u6B4C\u6CB3\u706B\u73C2\u798D\u79BE\u7A3C\u7B87\u82B1\u82DB\u8304\u8377\u83EF\u83D3\u8766\u8AB2\u5629\u8CA8\u8FE6\u904E\u971E\u868A\u4FC4\u5CE8\u6211\u7259\u753B\u81E5\u82BD\u86FE\u8CC0\u96C5\u9913\u99D5\u4ECB\u4F1A\u89E3\u56DE\u584A\u58CA\u5EFB\u5FEB\u602A\u6094\u6062\u61D0\u6212\u62D0\u6539"],
      ["8a40", "\u9B41\u6666\u68B0\u6D77\u7070\u754C\u7686\u7D75\u82A5\u87F9\u958B\u968E\u8C9D\u51F1\u52BE\u5916\u54B3\u5BB3\u5D16\u6168\u6982\u6DAF\u788D\u84CB\u8857\u8A72\u93A7\u9AB8\u6D6C\u99A8\u86D9\u57A3\u67FF\u86CE\u920E\u5283\u5687\u5404\u5ED3\u62E1\u64B9\u683C\u6838\u6BBB\u7372\u78BA\u7A6B\u899A\u89D2\u8D6B\u8F03\u90ED\u95A3\u9694\u9769\u5B66\u5CB3\u697D\u984D\u984E\u639B\u7B20\u6A2B"],
      ["8a80", "\u6A7F\u68B6\u9C0D\u6F5F\u5272\u559D\u6070\u62EC\u6D3B\u6E07\u6ED1\u845B\u8910\u8F44\u4E14\u9C39\u53F6\u691B\u6A3A\u9784\u682A\u515C\u7AC3\u84B2\u91DC\u938C\u565B\u9D28\u6822\u8305\u8431\u7CA5\u5208\u82C5\u74E6\u4E7E\u4F83\u51A0\u5BD2\u520A\u52D8\u52E7\u5DFB\u559A\u582A\u59E6\u5B8C\u5B98\u5BDB\u5E72\u5E79\u60A3\u611F\u6163\u61BE\u63DB\u6562\u67D1\u6853\u68FA\u6B3E\u6B53\u6C57\u6F22\u6F97\u6F45\u74B0\u7518\u76E3\u770B\u7AFF\u7BA1\u7C21\u7DE9\u7F36\u7FF0\u809D\u8266\u839E\u89B3\u8ACC\u8CAB\u9084\u9451\u9593\u9591\u95A2\u9665\u97D3\u9928\u8218\u4E38\u542B\u5CB8\u5DCC\u73A9\u764C\u773C\u5CA9\u7FEB\u8D0B\u96C1\u9811\u9854\u9858\u4F01\u4F0E\u5371\u559C\u5668\u57FA\u5947\u5B09\u5BC4\u5C90\u5E0C\u5E7E\u5FCC\u63EE\u673A\u65D7\u65E2\u671F\u68CB\u68C4"],
      ["8b40", "\u6A5F\u5E30\u6BC5\u6C17\u6C7D\u757F\u7948\u5B63\u7A00\u7D00\u5FBD\u898F\u8A18\u8CB4\u8D77\u8ECC\u8F1D\u98E2\u9A0E\u9B3C\u4E80\u507D\u5100\u5993\u5B9C\u622F\u6280\u64EC\u6B3A\u72A0\u7591\u7947\u7FA9\u87FB\u8ABC\u8B70\u63AC\u83CA\u97A0\u5409\u5403\u55AB\u6854\u6A58\u8A70\u7827\u6775\u9ECD\u5374\u5BA2\u811A\u8650\u9006\u4E18\u4E45\u4EC7\u4F11\u53CA\u5438\u5BAE\u5F13\u6025\u6551"],
      ["8b80", "\u673D\u6C42\u6C72\u6CE3\u7078\u7403\u7A76\u7AAE\u7B08\u7D1A\u7CFE\u7D66\u65E7\u725B\u53BB\u5C45\u5DE8\u62D2\u62E0\u6319\u6E20\u865A\u8A31\u8DDD\u92F8\u6F01\u79A6\u9B5A\u4EA8\u4EAB\u4EAC\u4F9B\u4FA0\u50D1\u5147\u7AF6\u5171\u51F6\u5354\u5321\u537F\u53EB\u55AC\u5883\u5CE1\u5F37\u5F4A\u602F\u6050\u606D\u631F\u6559\u6A4B\u6CC1\u72C2\u72ED\u77EF\u80F8\u8105\u8208\u854E\u90F7\u93E1\u97FF\u9957\u9A5A\u4EF0\u51DD\u5C2D\u6681\u696D\u5C40\u66F2\u6975\u7389\u6850\u7C81\u50C5\u52E4\u5747\u5DFE\u9326\u65A4\u6B23\u6B3D\u7434\u7981\u79BD\u7B4B\u7DCA\u82B9\u83CC\u887F\u895F\u8B39\u8FD1\u91D1\u541F\u9280\u4E5D\u5036\u53E5\u533A\u72D7\u7396\u77E9\u82E6\u8EAF\u99C6\u99C8\u99D2\u5177\u611A\u865E\u55B0\u7A7A\u5076\u5BD3\u9047\u9685\u4E32\u6ADB\u91E7\u5C51\u5C48"],
      ["8c40", "\u6398\u7A9F\u6C93\u9774\u8F61\u7AAA\u718A\u9688\u7C82\u6817\u7E70\u6851\u936C\u52F2\u541B\u85AB\u8A13\u7FA4\u8ECD\u90E1\u5366\u8888\u7941\u4FC2\u50BE\u5211\u5144\u5553\u572D\u73EA\u578B\u5951\u5F62\u5F84\u6075\u6176\u6167\u61A9\u63B2\u643A\u656C\u666F\u6842\u6E13\u7566\u7A3D\u7CFB\u7D4C\u7D99\u7E4B\u7F6B\u830E\u834A\u86CD\u8A08\u8A63\u8B66\u8EFD\u981A\u9D8F\u82B8\u8FCE\u9BE8"],
      ["8c80", "\u5287\u621F\u6483\u6FC0\u9699\u6841\u5091\u6B20\u6C7A\u6F54\u7A74\u7D50\u8840\u8A23\u6708\u4EF6\u5039\u5026\u5065\u517C\u5238\u5263\u55A7\u570F\u5805\u5ACC\u5EFA\u61B2\u61F8\u62F3\u6372\u691C\u6A29\u727D\u72AC\u732E\u7814\u786F\u7D79\u770C\u80A9\u898B\u8B19\u8CE2\u8ED2\u9063\u9375\u967A\u9855\u9A13\u9E78\u5143\u539F\u53B3\u5E7B\u5F26\u6E1B\u6E90\u7384\u73FE\u7D43\u8237\u8A00\u8AFA\u9650\u4E4E\u500B\u53E4\u547C\u56FA\u59D1\u5B64\u5DF1\u5EAB\u5F27\u6238\u6545\u67AF\u6E56\u72D0\u7CCA\u88B4\u80A1\u80E1\u83F0\u864E\u8A87\u8DE8\u9237\u96C7\u9867\u9F13\u4E94\u4E92\u4F0D\u5348\u5449\u543E\u5A2F\u5F8C\u5FA1\u609F\u68A7\u6A8E\u745A\u7881\u8A9E\u8AA4\u8B77\u9190\u4E5E\u9BC9\u4EA4\u4F7C\u4FAF\u5019\u5016\u5149\u516C\u529F\u52B9\u52FE\u539A\u53E3\u5411"],
      ["8d40", "\u540E\u5589\u5751\u57A2\u597D\u5B54\u5B5D\u5B8F\u5DE5\u5DE7\u5DF7\u5E78\u5E83\u5E9A\u5EB7\u5F18\u6052\u614C\u6297\u62D8\u63A7\u653B\u6602\u6643\u66F4\u676D\u6821\u6897\u69CB\u6C5F\u6D2A\u6D69\u6E2F\u6E9D\u7532\u7687\u786C\u7A3F\u7CE0\u7D05\u7D18\u7D5E\u7DB1\u8015\u8003\u80AF\u80B1\u8154\u818F\u822A\u8352\u884C\u8861\u8B1B\u8CA2\u8CFC\u90CA\u9175\u9271\u783F\u92FC\u95A4\u964D"],
      ["8d80", "\u9805\u9999\u9AD8\u9D3B\u525B\u52AB\u53F7\u5408\u58D5\u62F7\u6FE0\u8C6A\u8F5F\u9EB9\u514B\u523B\u544A\u56FD\u7A40\u9177\u9D60\u9ED2\u7344\u6F09\u8170\u7511\u5FFD\u60DA\u9AA8\u72DB\u8FBC\u6B64\u9803\u4ECA\u56F0\u5764\u58BE\u5A5A\u6068\u61C7\u660F\u6606\u6839\u68B1\u6DF7\u75D5\u7D3A\u826E\u9B42\u4E9B\u4F50\u53C9\u5506\u5D6F\u5DE6\u5DEE\u67FB\u6C99\u7473\u7802\u8A50\u9396\u88DF\u5750\u5EA7\u632B\u50B5\u50AC\u518D\u6700\u54C9\u585E\u59BB\u5BB0\u5F69\u624D\u63A1\u683D\u6B73\u6E08\u707D\u91C7\u7280\u7815\u7826\u796D\u658E\u7D30\u83DC\u88C1\u8F09\u969B\u5264\u5728\u6750\u7F6A\u8CA1\u51B4\u5742\u962A\u583A\u698A\u80B4\u54B2\u5D0E\u57FC\u7895\u9DFA\u4F5C\u524A\u548B\u643E\u6628\u6714\u67F5\u7A84\u7B56\u7D22\u932F\u685C\u9BAD\u7B39\u5319\u518A\u5237"],
      ["8e40", "\u5BDF\u62F6\u64AE\u64E6\u672D\u6BBA\u85A9\u96D1\u7690\u9BD6\u634C\u9306\u9BAB\u76BF\u6652\u4E09\u5098\u53C2\u5C71\u60E8\u6492\u6563\u685F\u71E6\u73CA\u7523\u7B97\u7E82\u8695\u8B83\u8CDB\u9178\u9910\u65AC\u66AB\u6B8B\u4ED5\u4ED4\u4F3A\u4F7F\u523A\u53F8\u53F2\u55E3\u56DB\u58EB\u59CB\u59C9\u59FF\u5B50\u5C4D\u5E02\u5E2B\u5FD7\u601D\u6307\u652F\u5B5C\u65AF\u65BD\u65E8\u679D\u6B62"],
      ["8e80", "\u6B7B\u6C0F\u7345\u7949\u79C1\u7CF8\u7D19\u7D2B\u80A2\u8102\u81F3\u8996\u8A5E\u8A69\u8A66\u8A8C\u8AEE\u8CC7\u8CDC\u96CC\u98FC\u6B6F\u4E8B\u4F3C\u4F8D\u5150\u5B57\u5BFA\u6148\u6301\u6642\u6B21\u6ECB\u6CBB\u723E\u74BD\u75D4\u78C1\u793A\u800C\u8033\u81EA\u8494\u8F9E\u6C50\u9E7F\u5F0F\u8B58\u9D2B\u7AFA\u8EF8\u5B8D\u96EB\u4E03\u53F1\u57F7\u5931\u5AC9\u5BA4\u6089\u6E7F\u6F06\u75BE\u8CEA\u5B9F\u8500\u7BE0\u5072\u67F4\u829D\u5C61\u854A\u7E1E\u820E\u5199\u5C04\u6368\u8D66\u659C\u716E\u793E\u7D17\u8005\u8B1D\u8ECA\u906E\u86C7\u90AA\u501F\u52FA\u5C3A\u6753\u707C\u7235\u914C\u91C8\u932B\u82E5\u5BC2\u5F31\u60F9\u4E3B\u53D6\u5B88\u624B\u6731\u6B8A\u72E9\u73E0\u7A2E\u816B\u8DA3\u9152\u9996\u5112\u53D7\u546A\u5BFF\u6388\u6A39\u7DAC\u9700\u56DA\u53CE\u5468"],
      ["8f40", "\u5B97\u5C31\u5DDE\u4FEE\u6101\u62FE\u6D32\u79C0\u79CB\u7D42\u7E4D\u7FD2\u81ED\u821F\u8490\u8846\u8972\u8B90\u8E74\u8F2F\u9031\u914B\u916C\u96C6\u919C\u4EC0\u4F4F\u5145\u5341\u5F93\u620E\u67D4\u6C41\u6E0B\u7363\u7E26\u91CD\u9283\u53D4\u5919\u5BBF\u6DD1\u795D\u7E2E\u7C9B\u587E\u719F\u51FA\u8853\u8FF0\u4FCA\u5CFB\u6625\u77AC\u7AE3\u821C\u99FF\u51C6\u5FAA\u65EC\u696F\u6B89\u6DF3"],
      ["8f80", "\u6E96\u6F64\u76FE\u7D14\u5DE1\u9075\u9187\u9806\u51E6\u521D\u6240\u6691\u66D9\u6E1A\u5EB6\u7DD2\u7F72\u66F8\u85AF\u85F7\u8AF8\u52A9\u53D9\u5973\u5E8F\u5F90\u6055\u92E4\u9664\u50B7\u511F\u52DD\u5320\u5347\u53EC\u54E8\u5546\u5531\u5617\u5968\u59BE\u5A3C\u5BB5\u5C06\u5C0F\u5C11\u5C1A\u5E84\u5E8A\u5EE0\u5F70\u627F\u6284\u62DB\u638C\u6377\u6607\u660C\u662D\u6676\u677E\u68A2\u6A1F\u6A35\u6CBC\u6D88\u6E09\u6E58\u713C\u7126\u7167\u75C7\u7701\u785D\u7901\u7965\u79F0\u7AE0\u7B11\u7CA7\u7D39\u8096\u83D6\u848B\u8549\u885D\u88F3\u8A1F\u8A3C\u8A54\u8A73\u8C61\u8CDE\u91A4\u9266\u937E\u9418\u969C\u9798\u4E0A\u4E08\u4E1E\u4E57\u5197\u5270\u57CE\u5834\u58CC\u5B22\u5E38\u60C5\u64FE\u6761\u6756\u6D44\u72B6\u7573\u7A63\u84B8\u8B72\u91B8\u9320\u5631\u57F4\u98FE"],
      ["9040", "\u62ED\u690D\u6B96\u71ED\u7E54\u8077\u8272\u89E6\u98DF\u8755\u8FB1\u5C3B\u4F38\u4FE1\u4FB5\u5507\u5A20\u5BDD\u5BE9\u5FC3\u614E\u632F\u65B0\u664B\u68EE\u699B\u6D78\u6DF1\u7533\u75B9\u771F\u795E\u79E6\u7D33\u81E3\u82AF\u85AA\u89AA\u8A3A\u8EAB\u8F9B\u9032\u91DD\u9707\u4EBA\u4EC1\u5203\u5875\u58EC\u5C0B\u751A\u5C3D\u814E\u8A0A\u8FC5\u9663\u976D\u7B25\u8ACF\u9808\u9162\u56F3\u53A8"],
      ["9080", "\u9017\u5439\u5782\u5E25\u63A8\u6C34\u708A\u7761\u7C8B\u7FE0\u8870\u9042\u9154\u9310\u9318\u968F\u745E\u9AC4\u5D07\u5D69\u6570\u67A2\u8DA8\u96DB\u636E\u6749\u6919\u83C5\u9817\u96C0\u88FE\u6F84\u647A\u5BF8\u4E16\u702C\u755D\u662F\u51C4\u5236\u52E2\u59D3\u5F81\u6027\u6210\u653F\u6574\u661F\u6674\u68F2\u6816\u6B63\u6E05\u7272\u751F\u76DB\u7CBE\u8056\u58F0\u88FD\u897F\u8AA0\u8A93\u8ACB\u901D\u9192\u9752\u9759\u6589\u7A0E\u8106\u96BB\u5E2D\u60DC\u621A\u65A5\u6614\u6790\u77F3\u7A4D\u7C4D\u7E3E\u810A\u8CAC\u8D64\u8DE1\u8E5F\u78A9\u5207\u62D9\u63A5\u6442\u6298\u8A2D\u7A83\u7BC0\u8AAC\u96EA\u7D76\u820C\u8749\u4ED9\u5148\u5343\u5360\u5BA3\u5C02\u5C16\u5DDD\u6226\u6247\u64B0\u6813\u6834\u6CC9\u6D45\u6D17\u67D3\u6F5C\u714E\u717D\u65CB\u7A7F\u7BAD\u7DDA"],
      ["9140", "\u7E4A\u7FA8\u817A\u821B\u8239\u85A6\u8A6E\u8CCE\u8DF5\u9078\u9077\u92AD\u9291\u9583\u9BAE\u524D\u5584\u6F38\u7136\u5168\u7985\u7E55\u81B3\u7CCE\u564C\u5851\u5CA8\u63AA\u66FE\u66FD\u695A\u72D9\u758F\u758E\u790E\u7956\u79DF\u7C97\u7D20\u7D44\u8607\u8A34\u963B\u9061\u9F20\u50E7\u5275\u53CC\u53E2\u5009\u55AA\u58EE\u594F\u723D\u5B8B\u5C64\u531D\u60E3\u60F3\u635C\u6383\u633F\u63BB"],
      ["9180", "\u64CD\u65E9\u66F9\u5DE3\u69CD\u69FD\u6F15\u71E5\u4E89\u75E9\u76F8\u7A93\u7CDF\u7DCF\u7D9C\u8061\u8349\u8358\u846C\u84BC\u85FB\u88C5\u8D70\u9001\u906D\u9397\u971C\u9A12\u50CF\u5897\u618E\u81D3\u8535\u8D08\u9020\u4FC3\u5074\u5247\u5373\u606F\u6349\u675F\u6E2C\u8DB3\u901F\u4FD7\u5C5E\u8CCA\u65CF\u7D9A\u5352\u8896\u5176\u63C3\u5B58\u5B6B\u5C0A\u640D\u6751\u905C\u4ED6\u591A\u592A\u6C70\u8A51\u553E\u5815\u59A5\u60F0\u6253\u67C1\u8235\u6955\u9640\u99C4\u9A28\u4F53\u5806\u5BFE\u8010\u5CB1\u5E2F\u5F85\u6020\u614B\u6234\u66FF\u6CF0\u6EDE\u80CE\u817F\u82D4\u888B\u8CB8\u9000\u902E\u968A\u9EDB\u9BDB\u4EE3\u53F0\u5927\u7B2C\u918D\u984C\u9DF9\u6EDD\u7027\u5353\u5544\u5B85\u6258\u629E\u62D3\u6CA2\u6FEF\u7422\u8A17\u9438\u6FC1\u8AFE\u8338\u51E7\u86F8\u53EA"],
      ["9240", "\u53E9\u4F46\u9054\u8FB0\u596A\u8131\u5DFD\u7AEA\u8FBF\u68DA\u8C37\u72F8\u9C48\u6A3D\u8AB0\u4E39\u5358\u5606\u5766\u62C5\u63A2\u65E6\u6B4E\u6DE1\u6E5B\u70AD\u77ED\u7AEF\u7BAA\u7DBB\u803D\u80C6\u86CB\u8A95\u935B\u56E3\u58C7\u5F3E\u65AD\u6696\u6A80\u6BB5\u7537\u8AC7\u5024\u77E5\u5730\u5F1B\u6065\u667A\u6C60\u75F4\u7A1A\u7F6E\u81F4\u8718\u9045\u99B3\u7BC9\u755C\u7AF9\u7B51\u84C4"],
      ["9280", "\u9010\u79E9\u7A92\u8336\u5AE1\u7740\u4E2D\u4EF2\u5B99\u5FE0\u62BD\u663C\u67F1\u6CE8\u866B\u8877\u8A3B\u914E\u92F3\u99D0\u6A17\u7026\u732A\u82E7\u8457\u8CAF\u4E01\u5146\u51CB\u558B\u5BF5\u5E16\u5E33\u5E81\u5F14\u5F35\u5F6B\u5FB4\u61F2\u6311\u66A2\u671D\u6F6E\u7252\u753A\u773A\u8074\u8139\u8178\u8776\u8ABF\u8ADC\u8D85\u8DF3\u929A\u9577\u9802\u9CE5\u52C5\u6357\u76F4\u6715\u6C88\u73CD\u8CC3\u93AE\u9673\u6D25\u589C\u690E\u69CC\u8FFD\u939A\u75DB\u901A\u585A\u6802\u63B4\u69FB\u4F43\u6F2C\u67D8\u8FBB\u8526\u7DB4\u9354\u693F\u6F70\u576A\u58F7\u5B2C\u7D2C\u722A\u540A\u91E3\u9DB4\u4EAD\u4F4E\u505C\u5075\u5243\u8C9E\u5448\u5824\u5B9A\u5E1D\u5E95\u5EAD\u5EF7\u5F1F\u608C\u62B5\u633A\u63D0\u68AF\u6C40\u7887\u798E\u7A0B\u7DE0\u8247\u8A02\u8AE6\u8E44\u9013"],
      ["9340", "\u90B8\u912D\u91D8\u9F0E\u6CE5\u6458\u64E2\u6575\u6EF4\u7684\u7B1B\u9069\u93D1\u6EBA\u54F2\u5FB9\u64A4\u8F4D\u8FED\u9244\u5178\u586B\u5929\u5C55\u5E97\u6DFB\u7E8F\u751C\u8CBC\u8EE2\u985B\u70B9\u4F1D\u6BBF\u6FB1\u7530\u96FB\u514E\u5410\u5835\u5857\u59AC\u5C60\u5F92\u6597\u675C\u6E21\u767B\u83DF\u8CED\u9014\u90FD\u934D\u7825\u783A\u52AA\u5EA6\u571F\u5974\u6012\u5012\u515A\u51AC"],
      ["9380", "\u51CD\u5200\u5510\u5854\u5858\u5957\u5B95\u5CF6\u5D8B\u60BC\u6295\u642D\u6771\u6843\u68BC\u68DF\u76D7\u6DD8\u6E6F\u6D9B\u706F\u71C8\u5F53\u75D8\u7977\u7B49\u7B54\u7B52\u7CD6\u7D71\u5230\u8463\u8569\u85E4\u8A0E\u8B04\u8C46\u8E0F\u9003\u900F\u9419\u9676\u982D\u9A30\u95D8\u50CD\u52D5\u540C\u5802\u5C0E\u61A7\u649E\u6D1E\u77B3\u7AE5\u80F4\u8404\u9053\u9285\u5CE0\u9D07\u533F\u5F97\u5FB3\u6D9C\u7279\u7763\u79BF\u7BE4\u6BD2\u72EC\u8AAD\u6803\u6A61\u51F8\u7A81\u6934\u5C4A\u9CF6\u82EB\u5BC5\u9149\u701E\u5678\u5C6F\u60C7\u6566\u6C8C\u8C5A\u9041\u9813\u5451\u66C7\u920D\u5948\u90A3\u5185\u4E4D\u51EA\u8599\u8B0E\u7058\u637A\u934B\u6962\u99B4\u7E04\u7577\u5357\u6960\u8EDF\u96E3\u6C5D\u4E8C\u5C3C\u5F10\u8FE9\u5302\u8CD1\u8089\u8679\u5EFF\u65E5\u4E73\u5165"],
      ["9440", "\u5982\u5C3F\u97EE\u4EFB\u598A\u5FCD\u8A8D\u6FE1\u79B0\u7962\u5BE7\u8471\u732B\u71B1\u5E74\u5FF5\u637B\u649A\u71C3\u7C98\u4E43\u5EFC\u4E4B\u57DC\u56A2\u60A9\u6FC3\u7D0D\u80FD\u8133\u81BF\u8FB2\u8997\u86A4\u5DF4\u628A\u64AD\u8987\u6777\u6CE2\u6D3E\u7436\u7834\u5A46\u7F75\u82AD\u99AC\u4FF3\u5EC3\u62DD\u6392\u6557\u676F\u76C3\u724C\u80CC\u80BA\u8F29\u914D\u500D\u57F9\u5A92\u6885"],
      ["9480", "\u6973\u7164\u72FD\u8CB7\u58F2\u8CE0\u966A\u9019\u877F\u79E4\u77E7\u8429\u4F2F\u5265\u535A\u62CD\u67CF\u6CCA\u767D\u7B94\u7C95\u8236\u8584\u8FEB\u66DD\u6F20\u7206\u7E1B\u83AB\u99C1\u9EA6\u51FD\u7BB1\u7872\u7BB8\u8087\u7B48\u6AE8\u5E61\u808C\u7551\u7560\u516B\u9262\u6E8C\u767A\u9197\u9AEA\u4F10\u7F70\u629C\u7B4F\u95A5\u9CE9\u567A\u5859\u86E4\u96BC\u4F34\u5224\u534A\u53CD\u53DB\u5E06\u642C\u6591\u677F\u6C3E\u6C4E\u7248\u72AF\u73ED\u7554\u7E41\u822C\u85E9\u8CA9\u7BC4\u91C6\u7169\u9812\u98EF\u633D\u6669\u756A\u76E4\u78D0\u8543\u86EE\u532A\u5351\u5426\u5983\u5E87\u5F7C\u60B2\u6249\u6279\u62AB\u6590\u6BD4\u6CCC\u75B2\u76AE\u7891\u79D8\u7DCB\u7F77\u80A5\u88AB\u8AB9\u8CBB\u907F\u975E\u98DB\u6A0B\u7C38\u5099\u5C3E\u5FAE\u6787\u6BD8\u7435\u7709\u7F8E"],
      ["9540", "\u9F3B\u67CA\u7A17\u5339\u758B\u9AED\u5F66\u819D\u83F1\u8098\u5F3C\u5FC5\u7562\u7B46\u903C\u6867\u59EB\u5A9B\u7D10\u767E\u8B2C\u4FF5\u5F6A\u6A19\u6C37\u6F02\u74E2\u7968\u8868\u8A55\u8C79\u5EDF\u63CF\u75C5\u79D2\u82D7\u9328\u92F2\u849C\u86ED\u9C2D\u54C1\u5F6C\u658C\u6D5C\u7015\u8CA7\u8CD3\u983B\u654F\u74F6\u4E0D\u4ED8\u57E0\u592B\u5A66\u5BCC\u51A8\u5E03\u5E9C\u6016\u6276\u6577"],
      ["9580", "\u65A7\u666E\u6D6E\u7236\u7B26\u8150\u819A\u8299\u8B5C\u8CA0\u8CE6\u8D74\u961C\u9644\u4FAE\u64AB\u6B66\u821E\u8461\u856A\u90E8\u5C01\u6953\u98A8\u847A\u8557\u4F0F\u526F\u5FA9\u5E45\u670D\u798F\u8179\u8907\u8986\u6DF5\u5F17\u6255\u6CB8\u4ECF\u7269\u9B92\u5206\u543B\u5674\u58B3\u61A4\u626E\u711A\u596E\u7C89\u7CDE\u7D1B\u96F0\u6587\u805E\u4E19\u4F75\u5175\u5840\u5E63\u5E73\u5F0A\u67C4\u4E26\u853D\u9589\u965B\u7C73\u9801\u50FB\u58C1\u7656\u78A7\u5225\u77A5\u8511\u7B86\u504F\u5909\u7247\u7BC7\u7DE8\u8FBA\u8FD4\u904D\u4FBF\u52C9\u5A29\u5F01\u97AD\u4FDD\u8217\u92EA\u5703\u6355\u6B69\u752B\u88DC\u8F14\u7A42\u52DF\u5893\u6155\u620A\u66AE\u6BCD\u7C3F\u83E9\u5023\u4FF8\u5305\u5446\u5831\u5949\u5B9D\u5CF0\u5CEF\u5D29\u5E96\u62B1\u6367\u653E\u65B9\u670B"],
      ["9640", "\u6CD5\u6CE1\u70F9\u7832\u7E2B\u80DE\u82B3\u840C\u84EC\u8702\u8912\u8A2A\u8C4A\u90A6\u92D2\u98FD\u9CF3\u9D6C\u4E4F\u4EA1\u508D\u5256\u574A\u59A8\u5E3D\u5FD8\u5FD9\u623F\u66B4\u671B\u67D0\u68D2\u5192\u7D21\u80AA\u81A8\u8B00\u8C8C\u8CBF\u927E\u9632\u5420\u982C\u5317\u50D5\u535C\u58A8\u64B2\u6734\u7267\u7766\u7A46\u91E6\u52C3\u6CA1\u6B86\u5800\u5E4C\u5954\u672C\u7FFB\u51E1\u76C6"],
      ["9680", "\u6469\u78E8\u9B54\u9EBB\u57CB\u59B9\u6627\u679A\u6BCE\u54E9\u69D9\u5E55\u819C\u6795\u9BAA\u67FE\u9C52\u685D\u4EA6\u4FE3\u53C8\u62B9\u672B\u6CAB\u8FC4\u4FAD\u7E6D\u9EBF\u4E07\u6162\u6E80\u6F2B\u8513\u5473\u672A\u9B45\u5DF3\u7B95\u5CAC\u5BC6\u871C\u6E4A\u84D1\u7A14\u8108\u5999\u7C8D\u6C11\u7720\u52D9\u5922\u7121\u725F\u77DB\u9727\u9D61\u690B\u5A7F\u5A18\u51A5\u540D\u547D\u660E\u76DF\u8FF7\u9298\u9CF4\u59EA\u725D\u6EC5\u514D\u68C9\u7DBF\u7DEC\u9762\u9EBA\u6478\u6A21\u8302\u5984\u5B5F\u6BDB\u731B\u76F2\u7DB2\u8017\u8499\u5132\u6728\u9ED9\u76EE\u6762\u52FF\u9905\u5C24\u623B\u7C7E\u8CB0\u554F\u60B6\u7D0B\u9580\u5301\u4E5F\u51B6\u591C\u723A\u8036\u91CE\u5F25\u77E2\u5384\u5F79\u7D04\u85AC\u8A33\u8E8D\u9756\u67F3\u85AE\u9453\u6109\u6108\u6CB9\u7652"],
      ["9740", "\u8AED\u8F38\u552F\u4F51\u512A\u52C7\u53CB\u5BA5\u5E7D\u60A0\u6182\u63D6\u6709\u67DA\u6E67\u6D8C\u7336\u7337\u7531\u7950\u88D5\u8A98\u904A\u9091\u90F5\u96C4\u878D\u5915\u4E88\u4F59\u4E0E\u8A89\u8F3F\u9810\u50AD\u5E7C\u5996\u5BB9\u5EB8\u63DA\u63FA\u64C1\u66DC\u694A\u69D8\u6D0B\u6EB6\u7194\u7528\u7AAF\u7F8A\u8000\u8449\u84C9\u8981\u8B21\u8E0A\u9065\u967D\u990A\u617E\u6291\u6B32"],
      ["9780", "\u6C83\u6D74\u7FCC\u7FFC\u6DC0\u7F85\u87BA\u88F8\u6765\u83B1\u983C\u96F7\u6D1B\u7D61\u843D\u916A\u4E71\u5375\u5D50\u6B04\u6FEB\u85CD\u862D\u89A7\u5229\u540F\u5C65\u674E\u68A8\u7406\u7483\u75E2\u88CF\u88E1\u91CC\u96E2\u9678\u5F8B\u7387\u7ACB\u844E\u63A0\u7565\u5289\u6D41\u6E9C\u7409\u7559\u786B\u7C92\u9686\u7ADC\u9F8D\u4FB6\u616E\u65C5\u865C\u4E86\u4EAE\u50DA\u4E21\u51CC\u5BEE\u6599\u6881\u6DBC\u731F\u7642\u77AD\u7A1C\u7CE7\u826F\u8AD2\u907C\u91CF\u9675\u9818\u529B\u7DD1\u502B\u5398\u6797\u6DCB\u71D0\u7433\u81E8\u8F2A\u96A3\u9C57\u9E9F\u7460\u5841\u6D99\u7D2F\u985E\u4EE4\u4F36\u4F8B\u51B7\u52B1\u5DBA\u601C\u73B2\u793C\u82D3\u9234\u96B7\u96F6\u970A\u9E97\u9F62\u66A6\u6B74\u5217\u52A3\u70C8\u88C2\u5EC9\u604B\u6190\u6F23\u7149\u7C3E\u7DF4\u806F"],
      ["9840", "\u84EE\u9023\u932C\u5442\u9B6F\u6AD3\u7089\u8CC2\u8DEF\u9732\u52B4\u5A41\u5ECA\u5F04\u6717\u697C\u6994\u6D6A\u6F0F\u7262\u72FC\u7BED\u8001\u807E\u874B\u90CE\u516D\u9E93\u7984\u808B\u9332\u8AD6\u502D\u548C\u8A71\u6B6A\u8CC4\u8107\u60D1\u67A0\u9DF2\u4E99\u4E98\u9C10\u8A6B\u85C1\u8568\u6900\u6E7E\u7897\u8155"],
      ["989f", "\u5F0C\u4E10\u4E15\u4E2A\u4E31\u4E36\u4E3C\u4E3F\u4E42\u4E56\u4E58\u4E82\u4E85\u8C6B\u4E8A\u8212\u5F0D\u4E8E\u4E9E\u4E9F\u4EA0\u4EA2\u4EB0\u4EB3\u4EB6\u4ECE\u4ECD\u4EC4\u4EC6\u4EC2\u4ED7\u4EDE\u4EED\u4EDF\u4EF7\u4F09\u4F5A\u4F30\u4F5B\u4F5D\u4F57\u4F47\u4F76\u4F88\u4F8F\u4F98\u4F7B\u4F69\u4F70\u4F91\u4F6F\u4F86\u4F96\u5118\u4FD4\u4FDF\u4FCE\u4FD8\u4FDB\u4FD1\u4FDA\u4FD0\u4FE4\u4FE5\u501A\u5028\u5014\u502A\u5025\u5005\u4F1C\u4FF6\u5021\u5029\u502C\u4FFE\u4FEF\u5011\u5006\u5043\u5047\u6703\u5055\u5050\u5048\u505A\u5056\u506C\u5078\u5080\u509A\u5085\u50B4\u50B2"],
      ["9940", "\u50C9\u50CA\u50B3\u50C2\u50D6\u50DE\u50E5\u50ED\u50E3\u50EE\u50F9\u50F5\u5109\u5101\u5102\u5116\u5115\u5114\u511A\u5121\u513A\u5137\u513C\u513B\u513F\u5140\u5152\u514C\u5154\u5162\u7AF8\u5169\u516A\u516E\u5180\u5182\u56D8\u518C\u5189\u518F\u5191\u5193\u5195\u5196\u51A4\u51A6\u51A2\u51A9\u51AA\u51AB\u51B3\u51B1\u51B2\u51B0\u51B5\u51BD\u51C5\u51C9\u51DB\u51E0\u8655\u51E9\u51ED"],
      ["9980", "\u51F0\u51F5\u51FE\u5204\u520B\u5214\u520E\u5227\u522A\u522E\u5233\u5239\u524F\u5244\u524B\u524C\u525E\u5254\u526A\u5274\u5269\u5273\u527F\u527D\u528D\u5294\u5292\u5271\u5288\u5291\u8FA8\u8FA7\u52AC\u52AD\u52BC\u52B5\u52C1\u52CD\u52D7\u52DE\u52E3\u52E6\u98ED\u52E0\u52F3\u52F5\u52F8\u52F9\u5306\u5308\u7538\u530D\u5310\u530F\u5315\u531A\u5323\u532F\u5331\u5333\u5338\u5340\u5346\u5345\u4E17\u5349\u534D\u51D6\u535E\u5369\u536E\u5918\u537B\u5377\u5382\u5396\u53A0\u53A6\u53A5\u53AE\u53B0\u53B6\u53C3\u7C12\u96D9\u53DF\u66FC\u71EE\u53EE\u53E8\u53ED\u53FA\u5401\u543D\u5440\u542C\u542D\u543C\u542E\u5436\u5429\u541D\u544E\u548F\u5475\u548E\u545F\u5471\u5477\u5470\u5492\u547B\u5480\u5476\u5484\u5490\u5486\u54C7\u54A2\u54B8\u54A5\u54AC\u54C4\u54C8\u54A8"],
      ["9a40", "\u54AB\u54C2\u54A4\u54BE\u54BC\u54D8\u54E5\u54E6\u550F\u5514\u54FD\u54EE\u54ED\u54FA\u54E2\u5539\u5540\u5563\u554C\u552E\u555C\u5545\u5556\u5557\u5538\u5533\u555D\u5599\u5580\u54AF\u558A\u559F\u557B\u557E\u5598\u559E\u55AE\u557C\u5583\u55A9\u5587\u55A8\u55DA\u55C5\u55DF\u55C4\u55DC\u55E4\u55D4\u5614\u55F7\u5616\u55FE\u55FD\u561B\u55F9\u564E\u5650\u71DF\u5634\u5636\u5632\u5638"],
      ["9a80", "\u566B\u5664\u562F\u566C\u566A\u5686\u5680\u568A\u56A0\u5694\u568F\u56A5\u56AE\u56B6\u56B4\u56C2\u56BC\u56C1\u56C3\u56C0\u56C8\u56CE\u56D1\u56D3\u56D7\u56EE\u56F9\u5700\u56FF\u5704\u5709\u5708\u570B\u570D\u5713\u5718\u5716\u55C7\u571C\u5726\u5737\u5738\u574E\u573B\u5740\u574F\u5769\u57C0\u5788\u5761\u577F\u5789\u5793\u57A0\u57B3\u57A4\u57AA\u57B0\u57C3\u57C6\u57D4\u57D2\u57D3\u580A\u57D6\u57E3\u580B\u5819\u581D\u5872\u5821\u5862\u584B\u5870\u6BC0\u5852\u583D\u5879\u5885\u58B9\u589F\u58AB\u58BA\u58DE\u58BB\u58B8\u58AE\u58C5\u58D3\u58D1\u58D7\u58D9\u58D8\u58E5\u58DC\u58E4\u58DF\u58EF\u58FA\u58F9\u58FB\u58FC\u58FD\u5902\u590A\u5910\u591B\u68A6\u5925\u592C\u592D\u5932\u5938\u593E\u7AD2\u5955\u5950\u594E\u595A\u5958\u5962\u5960\u5967\u596C\u5969"],
      ["9b40", "\u5978\u5981\u599D\u4F5E\u4FAB\u59A3\u59B2\u59C6\u59E8\u59DC\u598D\u59D9\u59DA\u5A25\u5A1F\u5A11\u5A1C\u5A09\u5A1A\u5A40\u5A6C\u5A49\u5A35\u5A36\u5A62\u5A6A\u5A9A\u5ABC\u5ABE\u5ACB\u5AC2\u5ABD\u5AE3\u5AD7\u5AE6\u5AE9\u5AD6\u5AFA\u5AFB\u5B0C\u5B0B\u5B16\u5B32\u5AD0\u5B2A\u5B36\u5B3E\u5B43\u5B45\u5B40\u5B51\u5B55\u5B5A\u5B5B\u5B65\u5B69\u5B70\u5B73\u5B75\u5B78\u6588\u5B7A\u5B80"],
      ["9b80", "\u5B83\u5BA6\u5BB8\u5BC3\u5BC7\u5BC9\u5BD4\u5BD0\u5BE4\u5BE6\u5BE2\u5BDE\u5BE5\u5BEB\u5BF0\u5BF6\u5BF3\u5C05\u5C07\u5C08\u5C0D\u5C13\u5C20\u5C22\u5C28\u5C38\u5C39\u5C41\u5C46\u5C4E\u5C53\u5C50\u5C4F\u5B71\u5C6C\u5C6E\u4E62\u5C76\u5C79\u5C8C\u5C91\u5C94\u599B\u5CAB\u5CBB\u5CB6\u5CBC\u5CB7\u5CC5\u5CBE\u5CC7\u5CD9\u5CE9\u5CFD\u5CFA\u5CED\u5D8C\u5CEA\u5D0B\u5D15\u5D17\u5D5C\u5D1F\u5D1B\u5D11\u5D14\u5D22\u5D1A\u5D19\u5D18\u5D4C\u5D52\u5D4E\u5D4B\u5D6C\u5D73\u5D76\u5D87\u5D84\u5D82\u5DA2\u5D9D\u5DAC\u5DAE\u5DBD\u5D90\u5DB7\u5DBC\u5DC9\u5DCD\u5DD3\u5DD2\u5DD6\u5DDB\u5DEB\u5DF2\u5DF5\u5E0B\u5E1A\u5E19\u5E11\u5E1B\u5E36\u5E37\u5E44\u5E43\u5E40\u5E4E\u5E57\u5E54\u5E5F\u5E62\u5E64\u5E47\u5E75\u5E76\u5E7A\u9EBC\u5E7F\u5EA0\u5EC1\u5EC2\u5EC8\u5ED0\u5ECF"],
      ["9c40", "\u5ED6\u5EE3\u5EDD\u5EDA\u5EDB\u5EE2\u5EE1\u5EE8\u5EE9\u5EEC\u5EF1\u5EF3\u5EF0\u5EF4\u5EF8\u5EFE\u5F03\u5F09\u5F5D\u5F5C\u5F0B\u5F11\u5F16\u5F29\u5F2D\u5F38\u5F41\u5F48\u5F4C\u5F4E\u5F2F\u5F51\u5F56\u5F57\u5F59\u5F61\u5F6D\u5F73\u5F77\u5F83\u5F82\u5F7F\u5F8A\u5F88\u5F91\u5F87\u5F9E\u5F99\u5F98\u5FA0\u5FA8\u5FAD\u5FBC\u5FD6\u5FFB\u5FE4\u5FF8\u5FF1\u5FDD\u60B3\u5FFF\u6021\u6060"],
      ["9c80", "\u6019\u6010\u6029\u600E\u6031\u601B\u6015\u602B\u6026\u600F\u603A\u605A\u6041\u606A\u6077\u605F\u604A\u6046\u604D\u6063\u6043\u6064\u6042\u606C\u606B\u6059\u6081\u608D\u60E7\u6083\u609A\u6084\u609B\u6096\u6097\u6092\u60A7\u608B\u60E1\u60B8\u60E0\u60D3\u60B4\u5FF0\u60BD\u60C6\u60B5\u60D8\u614D\u6115\u6106\u60F6\u60F7\u6100\u60F4\u60FA\u6103\u6121\u60FB\u60F1\u610D\u610E\u6147\u613E\u6128\u6127\u614A\u613F\u613C\u612C\u6134\u613D\u6142\u6144\u6173\u6177\u6158\u6159\u615A\u616B\u6174\u616F\u6165\u6171\u615F\u615D\u6153\u6175\u6199\u6196\u6187\u61AC\u6194\u619A\u618A\u6191\u61AB\u61AE\u61CC\u61CA\u61C9\u61F7\u61C8\u61C3\u61C6\u61BA\u61CB\u7F79\u61CD\u61E6\u61E3\u61F6\u61FA\u61F4\u61FF\u61FD\u61FC\u61FE\u6200\u6208\u6209\u620D\u620C\u6214\u621B"],
      ["9d40", "\u621E\u6221\u622A\u622E\u6230\u6232\u6233\u6241\u624E\u625E\u6263\u625B\u6260\u6268\u627C\u6282\u6289\u627E\u6292\u6293\u6296\u62D4\u6283\u6294\u62D7\u62D1\u62BB\u62CF\u62FF\u62C6\u64D4\u62C8\u62DC\u62CC\u62CA\u62C2\u62C7\u629B\u62C9\u630C\u62EE\u62F1\u6327\u6302\u6308\u62EF\u62F5\u6350\u633E\u634D\u641C\u634F\u6396\u638E\u6380\u63AB\u6376\u63A3\u638F\u6389\u639F\u63B5\u636B"],
      ["9d80", "\u6369\u63BE\u63E9\u63C0\u63C6\u63E3\u63C9\u63D2\u63F6\u63C4\u6416\u6434\u6406\u6413\u6426\u6436\u651D\u6417\u6428\u640F\u6467\u646F\u6476\u644E\u652A\u6495\u6493\u64A5\u64A9\u6488\u64BC\u64DA\u64D2\u64C5\u64C7\u64BB\u64D8\u64C2\u64F1\u64E7\u8209\u64E0\u64E1\u62AC\u64E3\u64EF\u652C\u64F6\u64F4\u64F2\u64FA\u6500\u64FD\u6518\u651C\u6505\u6524\u6523\u652B\u6534\u6535\u6537\u6536\u6538\u754B\u6548\u6556\u6555\u654D\u6558\u655E\u655D\u6572\u6578\u6582\u6583\u8B8A\u659B\u659F\u65AB\u65B7\u65C3\u65C6\u65C1\u65C4\u65CC\u65D2\u65DB\u65D9\u65E0\u65E1\u65F1\u6772\u660A\u6603\u65FB\u6773\u6635\u6636\u6634\u661C\u664F\u6644\u6649\u6641\u665E\u665D\u6664\u6667\u6668\u665F\u6662\u6670\u6683\u6688\u668E\u6689\u6684\u6698\u669D\u66C1\u66B9\u66C9\u66BE\u66BC"],
      ["9e40", "\u66C4\u66B8\u66D6\u66DA\u66E0\u663F\u66E6\u66E9\u66F0\u66F5\u66F7\u670F\u6716\u671E\u6726\u6727\u9738\u672E\u673F\u6736\u6741\u6738\u6737\u6746\u675E\u6760\u6759\u6763\u6764\u6789\u6770\u67A9\u677C\u676A\u678C\u678B\u67A6\u67A1\u6785\u67B7\u67EF\u67B4\u67EC\u67B3\u67E9\u67B8\u67E4\u67DE\u67DD\u67E2\u67EE\u67B9\u67CE\u67C6\u67E7\u6A9C\u681E\u6846\u6829\u6840\u684D\u6832\u684E"],
      ["9e80", "\u68B3\u682B\u6859\u6863\u6877\u687F\u689F\u688F\u68AD\u6894\u689D\u689B\u6883\u6AAE\u68B9\u6874\u68B5\u68A0\u68BA\u690F\u688D\u687E\u6901\u68CA\u6908\u68D8\u6922\u6926\u68E1\u690C\u68CD\u68D4\u68E7\u68D5\u6936\u6912\u6904\u68D7\u68E3\u6925\u68F9\u68E0\u68EF\u6928\u692A\u691A\u6923\u6921\u68C6\u6979\u6977\u695C\u6978\u696B\u6954\u697E\u696E\u6939\u6974\u693D\u6959\u6930\u6961\u695E\u695D\u6981\u696A\u69B2\u69AE\u69D0\u69BF\u69C1\u69D3\u69BE\u69CE\u5BE8\u69CA\u69DD\u69BB\u69C3\u69A7\u6A2E\u6991\u69A0\u699C\u6995\u69B4\u69DE\u69E8\u6A02\u6A1B\u69FF\u6B0A\u69F9\u69F2\u69E7\u6A05\u69B1\u6A1E\u69ED\u6A14\u69EB\u6A0A\u6A12\u6AC1\u6A23\u6A13\u6A44\u6A0C\u6A72\u6A36\u6A78\u6A47\u6A62\u6A59\u6A66\u6A48\u6A38\u6A22\u6A90\u6A8D\u6AA0\u6A84\u6AA2\u6AA3"],
      ["9f40", "\u6A97\u8617\u6ABB\u6AC3\u6AC2\u6AB8\u6AB3\u6AAC\u6ADE\u6AD1\u6ADF\u6AAA\u6ADA\u6AEA\u6AFB\u6B05\u8616\u6AFA\u6B12\u6B16\u9B31\u6B1F\u6B38\u6B37\u76DC\u6B39\u98EE\u6B47\u6B43\u6B49\u6B50\u6B59\u6B54\u6B5B\u6B5F\u6B61\u6B78\u6B79\u6B7F\u6B80\u6B84\u6B83\u6B8D\u6B98\u6B95\u6B9E\u6BA4\u6BAA\u6BAB\u6BAF\u6BB2\u6BB1\u6BB3\u6BB7\u6BBC\u6BC6\u6BCB\u6BD3\u6BDF\u6BEC\u6BEB\u6BF3\u6BEF"],
      ["9f80", "\u9EBE\u6C08\u6C13\u6C14\u6C1B\u6C24\u6C23\u6C5E\u6C55\u6C62\u6C6A\u6C82\u6C8D\u6C9A\u6C81\u6C9B\u6C7E\u6C68\u6C73\u6C92\u6C90\u6CC4\u6CF1\u6CD3\u6CBD\u6CD7\u6CC5\u6CDD\u6CAE\u6CB1\u6CBE\u6CBA\u6CDB\u6CEF\u6CD9\u6CEA\u6D1F\u884D\u6D36\u6D2B\u6D3D\u6D38\u6D19\u6D35\u6D33\u6D12\u6D0C\u6D63\u6D93\u6D64\u6D5A\u6D79\u6D59\u6D8E\u6D95\u6FE4\u6D85\u6DF9\u6E15\u6E0A\u6DB5\u6DC7\u6DE6\u6DB8\u6DC6\u6DEC\u6DDE\u6DCC\u6DE8\u6DD2\u6DC5\u6DFA\u6DD9\u6DE4\u6DD5\u6DEA\u6DEE\u6E2D\u6E6E\u6E2E\u6E19\u6E72\u6E5F\u6E3E\u6E23\u6E6B\u6E2B\u6E76\u6E4D\u6E1F\u6E43\u6E3A\u6E4E\u6E24\u6EFF\u6E1D\u6E38\u6E82\u6EAA\u6E98\u6EC9\u6EB7\u6ED3\u6EBD\u6EAF\u6EC4\u6EB2\u6ED4\u6ED5\u6E8F\u6EA5\u6EC2\u6E9F\u6F41\u6F11\u704C\u6EEC\u6EF8\u6EFE\u6F3F\u6EF2\u6F31\u6EEF\u6F32\u6ECC"],
      ["e040", "\u6F3E\u6F13\u6EF7\u6F86\u6F7A\u6F78\u6F81\u6F80\u6F6F\u6F5B\u6FF3\u6F6D\u6F82\u6F7C\u6F58\u6F8E\u6F91\u6FC2\u6F66\u6FB3\u6FA3\u6FA1\u6FA4\u6FB9\u6FC6\u6FAA\u6FDF\u6FD5\u6FEC\u6FD4\u6FD8\u6FF1\u6FEE\u6FDB\u7009\u700B\u6FFA\u7011\u7001\u700F\u6FFE\u701B\u701A\u6F74\u701D\u7018\u701F\u7030\u703E\u7032\u7051\u7063\u7099\u7092\u70AF\u70F1\u70AC\u70B8\u70B3\u70AE\u70DF\u70CB\u70DD"],
      ["e080", "\u70D9\u7109\u70FD\u711C\u7119\u7165\u7155\u7188\u7166\u7162\u714C\u7156\u716C\u718F\u71FB\u7184\u7195\u71A8\u71AC\u71D7\u71B9\u71BE\u71D2\u71C9\u71D4\u71CE\u71E0\u71EC\u71E7\u71F5\u71FC\u71F9\u71FF\u720D\u7210\u721B\u7228\u722D\u722C\u7230\u7232\u723B\u723C\u723F\u7240\u7246\u724B\u7258\u7274\u727E\u7282\u7281\u7287\u7292\u7296\u72A2\u72A7\u72B9\u72B2\u72C3\u72C6\u72C4\u72CE\u72D2\u72E2\u72E0\u72E1\u72F9\u72F7\u500F\u7317\u730A\u731C\u7316\u731D\u7334\u732F\u7329\u7325\u733E\u734E\u734F\u9ED8\u7357\u736A\u7368\u7370\u7378\u7375\u737B\u737A\u73C8\u73B3\u73CE\u73BB\u73C0\u73E5\u73EE\u73DE\u74A2\u7405\u746F\u7425\u73F8\u7432\u743A\u7455\u743F\u745F\u7459\u7441\u745C\u7469\u7470\u7463\u746A\u7476\u747E\u748B\u749E\u74A7\u74CA\u74CF\u74D4\u73F1"],
      ["e140", "\u74E0\u74E3\u74E7\u74E9\u74EE\u74F2\u74F0\u74F1\u74F8\u74F7\u7504\u7503\u7505\u750C\u750E\u750D\u7515\u7513\u751E\u7526\u752C\u753C\u7544\u754D\u754A\u7549\u755B\u7546\u755A\u7569\u7564\u7567\u756B\u756D\u7578\u7576\u7586\u7587\u7574\u758A\u7589\u7582\u7594\u759A\u759D\u75A5\u75A3\u75C2\u75B3\u75C3\u75B5\u75BD\u75B8\u75BC\u75B1\u75CD\u75CA\u75D2\u75D9\u75E3\u75DE\u75FE\u75FF"],
      ["e180", "\u75FC\u7601\u75F0\u75FA\u75F2\u75F3\u760B\u760D\u7609\u761F\u7627\u7620\u7621\u7622\u7624\u7634\u7630\u763B\u7647\u7648\u7646\u765C\u7658\u7661\u7662\u7668\u7669\u766A\u7667\u766C\u7670\u7672\u7676\u7678\u767C\u7680\u7683\u7688\u768B\u768E\u7696\u7693\u7699\u769A\u76B0\u76B4\u76B8\u76B9\u76BA\u76C2\u76CD\u76D6\u76D2\u76DE\u76E1\u76E5\u76E7\u76EA\u862F\u76FB\u7708\u7707\u7704\u7729\u7724\u771E\u7725\u7726\u771B\u7737\u7738\u7747\u775A\u7768\u776B\u775B\u7765\u777F\u777E\u7779\u778E\u778B\u7791\u77A0\u779E\u77B0\u77B6\u77B9\u77BF\u77BC\u77BD\u77BB\u77C7\u77CD\u77D7\u77DA\u77DC\u77E3\u77EE\u77FC\u780C\u7812\u7926\u7820\u792A\u7845\u788E\u7874\u7886\u787C\u789A\u788C\u78A3\u78B5\u78AA\u78AF\u78D1\u78C6\u78CB\u78D4\u78BE\u78BC\u78C5\u78CA\u78EC"],
      ["e240", "\u78E7\u78DA\u78FD\u78F4\u7907\u7912\u7911\u7919\u792C\u792B\u7940\u7960\u7957\u795F\u795A\u7955\u7953\u797A\u797F\u798A\u799D\u79A7\u9F4B\u79AA\u79AE\u79B3\u79B9\u79BA\u79C9\u79D5\u79E7\u79EC\u79E1\u79E3\u7A08\u7A0D\u7A18\u7A19\u7A20\u7A1F\u7980\u7A31\u7A3B\u7A3E\u7A37\u7A43\u7A57\u7A49\u7A61\u7A62\u7A69\u9F9D\u7A70\u7A79\u7A7D\u7A88\u7A97\u7A95\u7A98\u7A96\u7AA9\u7AC8\u7AB0"],
      ["e280", "\u7AB6\u7AC5\u7AC4\u7ABF\u9083\u7AC7\u7ACA\u7ACD\u7ACF\u7AD5\u7AD3\u7AD9\u7ADA\u7ADD\u7AE1\u7AE2\u7AE6\u7AED\u7AF0\u7B02\u7B0F\u7B0A\u7B06\u7B33\u7B18\u7B19\u7B1E\u7B35\u7B28\u7B36\u7B50\u7B7A\u7B04\u7B4D\u7B0B\u7B4C\u7B45\u7B75\u7B65\u7B74\u7B67\u7B70\u7B71\u7B6C\u7B6E\u7B9D\u7B98\u7B9F\u7B8D\u7B9C\u7B9A\u7B8B\u7B92\u7B8F\u7B5D\u7B99\u7BCB\u7BC1\u7BCC\u7BCF\u7BB4\u7BC6\u7BDD\u7BE9\u7C11\u7C14\u7BE6\u7BE5\u7C60\u7C00\u7C07\u7C13\u7BF3\u7BF7\u7C17\u7C0D\u7BF6\u7C23\u7C27\u7C2A\u7C1F\u7C37\u7C2B\u7C3D\u7C4C\u7C43\u7C54\u7C4F\u7C40\u7C50\u7C58\u7C5F\u7C64\u7C56\u7C65\u7C6C\u7C75\u7C83\u7C90\u7CA4\u7CAD\u7CA2\u7CAB\u7CA1\u7CA8\u7CB3\u7CB2\u7CB1\u7CAE\u7CB9\u7CBD\u7CC0\u7CC5\u7CC2\u7CD8\u7CD2\u7CDC\u7CE2\u9B3B\u7CEF\u7CF2\u7CF4\u7CF6\u7CFA\u7D06"],
      ["e340", "\u7D02\u7D1C\u7D15\u7D0A\u7D45\u7D4B\u7D2E\u7D32\u7D3F\u7D35\u7D46\u7D73\u7D56\u7D4E\u7D72\u7D68\u7D6E\u7D4F\u7D63\u7D93\u7D89\u7D5B\u7D8F\u7D7D\u7D9B\u7DBA\u7DAE\u7DA3\u7DB5\u7DC7\u7DBD\u7DAB\u7E3D\u7DA2\u7DAF\u7DDC\u7DB8\u7D9F\u7DB0\u7DD8\u7DDD\u7DE4\u7DDE\u7DFB\u7DF2\u7DE1\u7E05\u7E0A\u7E23\u7E21\u7E12\u7E31\u7E1F\u7E09\u7E0B\u7E22\u7E46\u7E66\u7E3B\u7E35\u7E39\u7E43\u7E37"],
      ["e380", "\u7E32\u7E3A\u7E67\u7E5D\u7E56\u7E5E\u7E59\u7E5A\u7E79\u7E6A\u7E69\u7E7C\u7E7B\u7E83\u7DD5\u7E7D\u8FAE\u7E7F\u7E88\u7E89\u7E8C\u7E92\u7E90\u7E93\u7E94\u7E96\u7E8E\u7E9B\u7E9C\u7F38\u7F3A\u7F45\u7F4C\u7F4D\u7F4E\u7F50\u7F51\u7F55\u7F54\u7F58\u7F5F\u7F60\u7F68\u7F69\u7F67\u7F78\u7F82\u7F86\u7F83\u7F88\u7F87\u7F8C\u7F94\u7F9E\u7F9D\u7F9A\u7FA3\u7FAF\u7FB2\u7FB9\u7FAE\u7FB6\u7FB8\u8B71\u7FC5\u7FC6\u7FCA\u7FD5\u7FD4\u7FE1\u7FE6\u7FE9\u7FF3\u7FF9\u98DC\u8006\u8004\u800B\u8012\u8018\u8019\u801C\u8021\u8028\u803F\u803B\u804A\u8046\u8052\u8058\u805A\u805F\u8062\u8068\u8073\u8072\u8070\u8076\u8079\u807D\u807F\u8084\u8086\u8085\u809B\u8093\u809A\u80AD\u5190\u80AC\u80DB\u80E5\u80D9\u80DD\u80C4\u80DA\u80D6\u8109\u80EF\u80F1\u811B\u8129\u8123\u812F\u814B"],
      ["e440", "\u968B\u8146\u813E\u8153\u8151\u80FC\u8171\u816E\u8165\u8166\u8174\u8183\u8188\u818A\u8180\u8182\u81A0\u8195\u81A4\u81A3\u815F\u8193\u81A9\u81B0\u81B5\u81BE\u81B8\u81BD\u81C0\u81C2\u81BA\u81C9\u81CD\u81D1\u81D9\u81D8\u81C8\u81DA\u81DF\u81E0\u81E7\u81FA\u81FB\u81FE\u8201\u8202\u8205\u8207\u820A\u820D\u8210\u8216\u8229\u822B\u8238\u8233\u8240\u8259\u8258\u825D\u825A\u825F\u8264"],
      ["e480", "\u8262\u8268\u826A\u826B\u822E\u8271\u8277\u8278\u827E\u828D\u8292\u82AB\u829F\u82BB\u82AC\u82E1\u82E3\u82DF\u82D2\u82F4\u82F3\u82FA\u8393\u8303\u82FB\u82F9\u82DE\u8306\u82DC\u8309\u82D9\u8335\u8334\u8316\u8332\u8331\u8340\u8339\u8350\u8345\u832F\u832B\u8317\u8318\u8385\u839A\u83AA\u839F\u83A2\u8396\u8323\u838E\u8387\u838A\u837C\u83B5\u8373\u8375\u83A0\u8389\u83A8\u83F4\u8413\u83EB\u83CE\u83FD\u8403\u83D8\u840B\u83C1\u83F7\u8407\u83E0\u83F2\u840D\u8422\u8420\u83BD\u8438\u8506\u83FB\u846D\u842A\u843C\u855A\u8484\u8477\u846B\u84AD\u846E\u8482\u8469\u8446\u842C\u846F\u8479\u8435\u84CA\u8462\u84B9\u84BF\u849F\u84D9\u84CD\u84BB\u84DA\u84D0\u84C1\u84C6\u84D6\u84A1\u8521\u84FF\u84F4\u8517\u8518\u852C\u851F\u8515\u8514\u84FC\u8540\u8563\u8558\u8548"],
      ["e540", "\u8541\u8602\u854B\u8555\u8580\u85A4\u8588\u8591\u858A\u85A8\u856D\u8594\u859B\u85EA\u8587\u859C\u8577\u857E\u8590\u85C9\u85BA\u85CF\u85B9\u85D0\u85D5\u85DD\u85E5\u85DC\u85F9\u860A\u8613\u860B\u85FE\u85FA\u8606\u8622\u861A\u8630\u863F\u864D\u4E55\u8654\u865F\u8667\u8671\u8693\u86A3\u86A9\u86AA\u868B\u868C\u86B6\u86AF\u86C4\u86C6\u86B0\u86C9\u8823\u86AB\u86D4\u86DE\u86E9\u86EC"],
      ["e580", "\u86DF\u86DB\u86EF\u8712\u8706\u8708\u8700\u8703\u86FB\u8711\u8709\u870D\u86F9\u870A\u8734\u873F\u8737\u873B\u8725\u8729\u871A\u8760\u875F\u8778\u874C\u874E\u8774\u8757\u8768\u876E\u8759\u8753\u8763\u876A\u8805\u87A2\u879F\u8782\u87AF\u87CB\u87BD\u87C0\u87D0\u96D6\u87AB\u87C4\u87B3\u87C7\u87C6\u87BB\u87EF\u87F2\u87E0\u880F\u880D\u87FE\u87F6\u87F7\u880E\u87D2\u8811\u8816\u8815\u8822\u8821\u8831\u8836\u8839\u8827\u883B\u8844\u8842\u8852\u8859\u885E\u8862\u886B\u8881\u887E\u889E\u8875\u887D\u88B5\u8872\u8882\u8897\u8892\u88AE\u8899\u88A2\u888D\u88A4\u88B0\u88BF\u88B1\u88C3\u88C4\u88D4\u88D8\u88D9\u88DD\u88F9\u8902\u88FC\u88F4\u88E8\u88F2\u8904\u890C\u890A\u8913\u8943\u891E\u8925\u892A\u892B\u8941\u8944\u893B\u8936\u8938\u894C\u891D\u8960\u895E"],
      ["e640", "\u8966\u8964\u896D\u896A\u896F\u8974\u8977\u897E\u8983\u8988\u898A\u8993\u8998\u89A1\u89A9\u89A6\u89AC\u89AF\u89B2\u89BA\u89BD\u89BF\u89C0\u89DA\u89DC\u89DD\u89E7\u89F4\u89F8\u8A03\u8A16\u8A10\u8A0C\u8A1B\u8A1D\u8A25\u8A36\u8A41\u8A5B\u8A52\u8A46\u8A48\u8A7C\u8A6D\u8A6C\u8A62\u8A85\u8A82\u8A84\u8AA8\u8AA1\u8A91\u8AA5\u8AA6\u8A9A\u8AA3\u8AC4\u8ACD\u8AC2\u8ADA\u8AEB\u8AF3\u8AE7"],
      ["e680", "\u8AE4\u8AF1\u8B14\u8AE0\u8AE2\u8AF7\u8ADE\u8ADB\u8B0C\u8B07\u8B1A\u8AE1\u8B16\u8B10\u8B17\u8B20\u8B33\u97AB\u8B26\u8B2B\u8B3E\u8B28\u8B41\u8B4C\u8B4F\u8B4E\u8B49\u8B56\u8B5B\u8B5A\u8B6B\u8B5F\u8B6C\u8B6F\u8B74\u8B7D\u8B80\u8B8C\u8B8E\u8B92\u8B93\u8B96\u8B99\u8B9A\u8C3A\u8C41\u8C3F\u8C48\u8C4C\u8C4E\u8C50\u8C55\u8C62\u8C6C\u8C78\u8C7A\u8C82\u8C89\u8C85\u8C8A\u8C8D\u8C8E\u8C94\u8C7C\u8C98\u621D\u8CAD\u8CAA\u8CBD\u8CB2\u8CB3\u8CAE\u8CB6\u8CC8\u8CC1\u8CE4\u8CE3\u8CDA\u8CFD\u8CFA\u8CFB\u8D04\u8D05\u8D0A\u8D07\u8D0F\u8D0D\u8D10\u9F4E\u8D13\u8CCD\u8D14\u8D16\u8D67\u8D6D\u8D71\u8D73\u8D81\u8D99\u8DC2\u8DBE\u8DBA\u8DCF\u8DDA\u8DD6\u8DCC\u8DDB\u8DCB\u8DEA\u8DEB\u8DDF\u8DE3\u8DFC\u8E08\u8E09\u8DFF\u8E1D\u8E1E\u8E10\u8E1F\u8E42\u8E35\u8E30\u8E34\u8E4A"],
      ["e740", "\u8E47\u8E49\u8E4C\u8E50\u8E48\u8E59\u8E64\u8E60\u8E2A\u8E63\u8E55\u8E76\u8E72\u8E7C\u8E81\u8E87\u8E85\u8E84\u8E8B\u8E8A\u8E93\u8E91\u8E94\u8E99\u8EAA\u8EA1\u8EAC\u8EB0\u8EC6\u8EB1\u8EBE\u8EC5\u8EC8\u8ECB\u8EDB\u8EE3\u8EFC\u8EFB\u8EEB\u8EFE\u8F0A\u8F05\u8F15\u8F12\u8F19\u8F13\u8F1C\u8F1F\u8F1B\u8F0C\u8F26\u8F33\u8F3B\u8F39\u8F45\u8F42\u8F3E\u8F4C\u8F49\u8F46\u8F4E\u8F57\u8F5C"],
      ["e780", "\u8F62\u8F63\u8F64\u8F9C\u8F9F\u8FA3\u8FAD\u8FAF\u8FB7\u8FDA\u8FE5\u8FE2\u8FEA\u8FEF\u9087\u8FF4\u9005\u8FF9\u8FFA\u9011\u9015\u9021\u900D\u901E\u9016\u900B\u9027\u9036\u9035\u9039\u8FF8\u904F\u9050\u9051\u9052\u900E\u9049\u903E\u9056\u9058\u905E\u9068\u906F\u9076\u96A8\u9072\u9082\u907D\u9081\u9080\u908A\u9089\u908F\u90A8\u90AF\u90B1\u90B5\u90E2\u90E4\u6248\u90DB\u9102\u9112\u9119\u9132\u9130\u914A\u9156\u9158\u9163\u9165\u9169\u9173\u9172\u918B\u9189\u9182\u91A2\u91AB\u91AF\u91AA\u91B5\u91B4\u91BA\u91C0\u91C1\u91C9\u91CB\u91D0\u91D6\u91DF\u91E1\u91DB\u91FC\u91F5\u91F6\u921E\u91FF\u9214\u922C\u9215\u9211\u925E\u9257\u9245\u9249\u9264\u9248\u9295\u923F\u924B\u9250\u929C\u9296\u9293\u929B\u925A\u92CF\u92B9\u92B7\u92E9\u930F\u92FA\u9344\u932E"],
      ["e840", "\u9319\u9322\u931A\u9323\u933A\u9335\u933B\u935C\u9360\u937C\u936E\u9356\u93B0\u93AC\u93AD\u9394\u93B9\u93D6\u93D7\u93E8\u93E5\u93D8\u93C3\u93DD\u93D0\u93C8\u93E4\u941A\u9414\u9413\u9403\u9407\u9410\u9436\u942B\u9435\u9421\u943A\u9441\u9452\u9444\u945B\u9460\u9462\u945E\u946A\u9229\u9470\u9475\u9477\u947D\u945A\u947C\u947E\u9481\u947F\u9582\u9587\u958A\u9594\u9596\u9598\u9599"],
      ["e880", "\u95A0\u95A8\u95A7\u95AD\u95BC\u95BB\u95B9\u95BE\u95CA\u6FF6\u95C3\u95CD\u95CC\u95D5\u95D4\u95D6\u95DC\u95E1\u95E5\u95E2\u9621\u9628\u962E\u962F\u9642\u964C\u964F\u964B\u9677\u965C\u965E\u965D\u965F\u9666\u9672\u966C\u968D\u9698\u9695\u9697\u96AA\u96A7\u96B1\u96B2\u96B0\u96B4\u96B6\u96B8\u96B9\u96CE\u96CB\u96C9\u96CD\u894D\u96DC\u970D\u96D5\u96F9\u9704\u9706\u9708\u9713\u970E\u9711\u970F\u9716\u9719\u9724\u972A\u9730\u9739\u973D\u973E\u9744\u9746\u9748\u9742\u9749\u975C\u9760\u9764\u9766\u9768\u52D2\u976B\u9771\u9779\u9785\u977C\u9781\u977A\u9786\u978B\u978F\u9790\u979C\u97A8\u97A6\u97A3\u97B3\u97B4\u97C3\u97C6\u97C8\u97CB\u97DC\u97ED\u9F4F\u97F2\u7ADF\u97F6\u97F5\u980F\u980C\u9838\u9824\u9821\u9837\u983D\u9846\u984F\u984B\u986B\u986F\u9870"],
      ["e940", "\u9871\u9874\u9873\u98AA\u98AF\u98B1\u98B6\u98C4\u98C3\u98C6\u98E9\u98EB\u9903\u9909\u9912\u9914\u9918\u9921\u991D\u991E\u9924\u9920\u992C\u992E\u993D\u993E\u9942\u9949\u9945\u9950\u994B\u9951\u9952\u994C\u9955\u9997\u9998\u99A5\u99AD\u99AE\u99BC\u99DF\u99DB\u99DD\u99D8\u99D1\u99ED\u99EE\u99F1\u99F2\u99FB\u99F8\u9A01\u9A0F\u9A05\u99E2\u9A19\u9A2B\u9A37\u9A45\u9A42\u9A40\u9A43"],
      ["e980", "\u9A3E\u9A55\u9A4D\u9A5B\u9A57\u9A5F\u9A62\u9A65\u9A64\u9A69\u9A6B\u9A6A\u9AAD\u9AB0\u9ABC\u9AC0\u9ACF\u9AD1\u9AD3\u9AD4\u9ADE\u9ADF\u9AE2\u9AE3\u9AE6\u9AEF\u9AEB\u9AEE\u9AF4\u9AF1\u9AF7\u9AFB\u9B06\u9B18\u9B1A\u9B1F\u9B22\u9B23\u9B25\u9B27\u9B28\u9B29\u9B2A\u9B2E\u9B2F\u9B32\u9B44\u9B43\u9B4F\u9B4D\u9B4E\u9B51\u9B58\u9B74\u9B93\u9B83\u9B91\u9B96\u9B97\u9B9F\u9BA0\u9BA8\u9BB4\u9BC0\u9BCA\u9BB9\u9BC6\u9BCF\u9BD1\u9BD2\u9BE3\u9BE2\u9BE4\u9BD4\u9BE1\u9C3A\u9BF2\u9BF1\u9BF0\u9C15\u9C14\u9C09\u9C13\u9C0C\u9C06\u9C08\u9C12\u9C0A\u9C04\u9C2E\u9C1B\u9C25\u9C24\u9C21\u9C30\u9C47\u9C32\u9C46\u9C3E\u9C5A\u9C60\u9C67\u9C76\u9C78\u9CE7\u9CEC\u9CF0\u9D09\u9D08\u9CEB\u9D03\u9D06\u9D2A\u9D26\u9DAF\u9D23\u9D1F\u9D44\u9D15\u9D12\u9D41\u9D3F\u9D3E\u9D46\u9D48"],
      ["ea40", "\u9D5D\u9D5E\u9D64\u9D51\u9D50\u9D59\u9D72\u9D89\u9D87\u9DAB\u9D6F\u9D7A\u9D9A\u9DA4\u9DA9\u9DB2\u9DC4\u9DC1\u9DBB\u9DB8\u9DBA\u9DC6\u9DCF\u9DC2\u9DD9\u9DD3\u9DF8\u9DE6\u9DED\u9DEF\u9DFD\u9E1A\u9E1B\u9E1E\u9E75\u9E79\u9E7D\u9E81\u9E88\u9E8B\u9E8C\u9E92\u9E95\u9E91\u9E9D\u9EA5\u9EA9\u9EB8\u9EAA\u9EAD\u9761\u9ECC\u9ECE\u9ECF\u9ED0\u9ED4\u9EDC\u9EDE\u9EDD\u9EE0\u9EE5\u9EE8\u9EEF"],
      ["ea80", "\u9EF4\u9EF6\u9EF7\u9EF9\u9EFB\u9EFC\u9EFD\u9F07\u9F08\u76B7\u9F15\u9F21\u9F2C\u9F3E\u9F4A\u9F52\u9F54\u9F63\u9F5F\u9F60\u9F61\u9F66\u9F67\u9F6C\u9F6A\u9F77\u9F72\u9F76\u9F95\u9F9C\u9FA0\u582F\u69C7\u9059\u7464\u51DC\u7199"],
      ["ed40", "\u7E8A\u891C\u9348\u9288\u84DC\u4FC9\u70BB\u6631\u68C8\u92F9\u66FB\u5F45\u4E28\u4EE1\u4EFC\u4F00\u4F03\u4F39\u4F56\u4F92\u4F8A\u4F9A\u4F94\u4FCD\u5040\u5022\u4FFF\u501E\u5046\u5070\u5042\u5094\u50F4\u50D8\u514A\u5164\u519D\u51BE\u51EC\u5215\u529C\u52A6\u52C0\u52DB\u5300\u5307\u5324\u5372\u5393\u53B2\u53DD\uFA0E\u549C\u548A\u54A9\u54FF\u5586\u5759\u5765\u57AC\u57C8\u57C7\uFA0F"],
      ["ed80", "\uFA10\u589E\u58B2\u590B\u5953\u595B\u595D\u5963\u59A4\u59BA\u5B56\u5BC0\u752F\u5BD8\u5BEC\u5C1E\u5CA6\u5CBA\u5CF5\u5D27\u5D53\uFA11\u5D42\u5D6D\u5DB8\u5DB9\u5DD0\u5F21\u5F34\u5F67\u5FB7\u5FDE\u605D\u6085\u608A\u60DE\u60D5\u6120\u60F2\u6111\u6137\u6130\u6198\u6213\u62A6\u63F5\u6460\u649D\u64CE\u654E\u6600\u6615\u663B\u6609\u662E\u661E\u6624\u6665\u6657\u6659\uFA12\u6673\u6699\u66A0\u66B2\u66BF\u66FA\u670E\uF929\u6766\u67BB\u6852\u67C0\u6801\u6844\u68CF\uFA13\u6968\uFA14\u6998\u69E2\u6A30\u6A6B\u6A46\u6A73\u6A7E\u6AE2\u6AE4\u6BD6\u6C3F\u6C5C\u6C86\u6C6F\u6CDA\u6D04\u6D87\u6D6F\u6D96\u6DAC\u6DCF\u6DF8\u6DF2\u6DFC\u6E39\u6E5C\u6E27\u6E3C\u6EBF\u6F88\u6FB5\u6FF5\u7005\u7007\u7028\u7085\u70AB\u710F\u7104\u715C\u7146\u7147\uFA15\u71C1\u71FE\u72B1"],
      ["ee40", "\u72BE\u7324\uFA16\u7377\u73BD\u73C9\u73D6\u73E3\u73D2\u7407\u73F5\u7426\u742A\u7429\u742E\u7462\u7489\u749F\u7501\u756F\u7682\u769C\u769E\u769B\u76A6\uFA17\u7746\u52AF\u7821\u784E\u7864\u787A\u7930\uFA18\uFA19\uFA1A\u7994\uFA1B\u799B\u7AD1\u7AE7\uFA1C\u7AEB\u7B9E\uFA1D\u7D48\u7D5C\u7DB7\u7DA0\u7DD6\u7E52\u7F47\u7FA1\uFA1E\u8301\u8362\u837F\u83C7\u83F6\u8448\u84B4\u8553\u8559"],
      ["ee80", "\u856B\uFA1F\u85B0\uFA20\uFA21\u8807\u88F5\u8A12\u8A37\u8A79\u8AA7\u8ABE\u8ADF\uFA22\u8AF6\u8B53\u8B7F\u8CF0\u8CF4\u8D12\u8D76\uFA23\u8ECF\uFA24\uFA25\u9067\u90DE\uFA26\u9115\u9127\u91DA\u91D7\u91DE\u91ED\u91EE\u91E4\u91E5\u9206\u9210\u920A\u923A\u9240\u923C\u924E\u9259\u9251\u9239\u9267\u92A7\u9277\u9278\u92E7\u92D7\u92D9\u92D0\uFA27\u92D5\u92E0\u92D3\u9325\u9321\u92FB\uFA28\u931E\u92FF\u931D\u9302\u9370\u9357\u93A4\u93C6\u93DE\u93F8\u9431\u9445\u9448\u9592\uF9DC\uFA29\u969D\u96AF\u9733\u973B\u9743\u974D\u974F\u9751\u9755\u9857\u9865\uFA2A\uFA2B\u9927\uFA2C\u999E\u9A4E\u9AD9\u9ADC\u9B75\u9B72\u9B8F\u9BB1\u9BBB\u9C00\u9D70\u9D6B\uFA2D\u9E19\u9ED1"],
      ["eeef", "\u2170", 9, "\uFFE2\uFFE4\uFF07\uFF02"],
      ["f040", "\uE000", 62],
      ["f080", "\uE03F", 124],
      ["f140", "\uE0BC", 62],
      ["f180", "\uE0FB", 124],
      ["f240", "\uE178", 62],
      ["f280", "\uE1B7", 124],
      ["f340", "\uE234", 62],
      ["f380", "\uE273", 124],
      ["f440", "\uE2F0", 62],
      ["f480", "\uE32F", 124],
      ["f540", "\uE3AC", 62],
      ["f580", "\uE3EB", 124],
      ["f640", "\uE468", 62],
      ["f680", "\uE4A7", 124],
      ["f740", "\uE524", 62],
      ["f780", "\uE563", 124],
      ["f840", "\uE5E0", 62],
      ["f880", "\uE61F", 124],
      ["f940", "\uE69C"],
      ["fa40", "\u2170", 9, "\u2160", 9, "\uFFE2\uFFE4\uFF07\uFF02\u3231\u2116\u2121\u2235\u7E8A\u891C\u9348\u9288\u84DC\u4FC9\u70BB\u6631\u68C8\u92F9\u66FB\u5F45\u4E28\u4EE1\u4EFC\u4F00\u4F03\u4F39\u4F56\u4F92\u4F8A\u4F9A\u4F94\u4FCD\u5040\u5022\u4FFF\u501E\u5046\u5070\u5042\u5094\u50F4\u50D8\u514A"],
      ["fa80", "\u5164\u519D\u51BE\u51EC\u5215\u529C\u52A6\u52C0\u52DB\u5300\u5307\u5324\u5372\u5393\u53B2\u53DD\uFA0E\u549C\u548A\u54A9\u54FF\u5586\u5759\u5765\u57AC\u57C8\u57C7\uFA0F\uFA10\u589E\u58B2\u590B\u5953\u595B\u595D\u5963\u59A4\u59BA\u5B56\u5BC0\u752F\u5BD8\u5BEC\u5C1E\u5CA6\u5CBA\u5CF5\u5D27\u5D53\uFA11\u5D42\u5D6D\u5DB8\u5DB9\u5DD0\u5F21\u5F34\u5F67\u5FB7\u5FDE\u605D\u6085\u608A\u60DE\u60D5\u6120\u60F2\u6111\u6137\u6130\u6198\u6213\u62A6\u63F5\u6460\u649D\u64CE\u654E\u6600\u6615\u663B\u6609\u662E\u661E\u6624\u6665\u6657\u6659\uFA12\u6673\u6699\u66A0\u66B2\u66BF\u66FA\u670E\uF929\u6766\u67BB\u6852\u67C0\u6801\u6844\u68CF\uFA13\u6968\uFA14\u6998\u69E2\u6A30\u6A6B\u6A46\u6A73\u6A7E\u6AE2\u6AE4\u6BD6\u6C3F\u6C5C\u6C86\u6C6F\u6CDA\u6D04\u6D87\u6D6F"],
      ["fb40", "\u6D96\u6DAC\u6DCF\u6DF8\u6DF2\u6DFC\u6E39\u6E5C\u6E27\u6E3C\u6EBF\u6F88\u6FB5\u6FF5\u7005\u7007\u7028\u7085\u70AB\u710F\u7104\u715C\u7146\u7147\uFA15\u71C1\u71FE\u72B1\u72BE\u7324\uFA16\u7377\u73BD\u73C9\u73D6\u73E3\u73D2\u7407\u73F5\u7426\u742A\u7429\u742E\u7462\u7489\u749F\u7501\u756F\u7682\u769C\u769E\u769B\u76A6\uFA17\u7746\u52AF\u7821\u784E\u7864\u787A\u7930\uFA18\uFA19"],
      ["fb80", "\uFA1A\u7994\uFA1B\u799B\u7AD1\u7AE7\uFA1C\u7AEB\u7B9E\uFA1D\u7D48\u7D5C\u7DB7\u7DA0\u7DD6\u7E52\u7F47\u7FA1\uFA1E\u8301\u8362\u837F\u83C7\u83F6\u8448\u84B4\u8553\u8559\u856B\uFA1F\u85B0\uFA20\uFA21\u8807\u88F5\u8A12\u8A37\u8A79\u8AA7\u8ABE\u8ADF\uFA22\u8AF6\u8B53\u8B7F\u8CF0\u8CF4\u8D12\u8D76\uFA23\u8ECF\uFA24\uFA25\u9067\u90DE\uFA26\u9115\u9127\u91DA\u91D7\u91DE\u91ED\u91EE\u91E4\u91E5\u9206\u9210\u920A\u923A\u9240\u923C\u924E\u9259\u9251\u9239\u9267\u92A7\u9277\u9278\u92E7\u92D7\u92D9\u92D0\uFA27\u92D5\u92E0\u92D3\u9325\u9321\u92FB\uFA28\u931E\u92FF\u931D\u9302\u9370\u9357\u93A4\u93C6\u93DE\u93F8\u9431\u9445\u9448\u9592\uF9DC\uFA29\u969D\u96AF\u9733\u973B\u9743\u974D\u974F\u9751\u9755\u9857\u9865\uFA2A\uFA2B\u9927\uFA2C\u999E\u9A4E\u9AD9"],
      ["fc40", "\u9ADC\u9B75\u9B72\u9B8F\u9BB1\u9BBB\u9C00\u9D70\u9D6B\uFA2D\u9E19\u9ED1"]
    ];
  }
});

// node_modules/iconv-lite/encodings/tables/eucjp.json
var require_eucjp = __commonJS({
  "node_modules/iconv-lite/encodings/tables/eucjp.json"(exports2, module2) {
    module2.exports = [
      ["0", "\0", 127],
      ["8ea1", "\uFF61", 62],
      ["a1a1", "\u3000\u3001\u3002\uFF0C\uFF0E\u30FB\uFF1A\uFF1B\uFF1F\uFF01\u309B\u309C\xB4\uFF40\xA8\uFF3E\uFFE3\uFF3F\u30FD\u30FE\u309D\u309E\u3003\u4EDD\u3005\u3006\u3007\u30FC\u2015\u2010\uFF0F\uFF3C\uFF5E\u2225\uFF5C\u2026\u2025\u2018\u2019\u201C\u201D\uFF08\uFF09\u3014\u3015\uFF3B\uFF3D\uFF5B\uFF5D\u3008", 9, "\uFF0B\uFF0D\xB1\xD7\xF7\uFF1D\u2260\uFF1C\uFF1E\u2266\u2267\u221E\u2234\u2642\u2640\xB0\u2032\u2033\u2103\uFFE5\uFF04\uFFE0\uFFE1\uFF05\uFF03\uFF06\uFF0A\uFF20\xA7\u2606\u2605\u25CB\u25CF\u25CE\u25C7"],
      ["a2a1", "\u25C6\u25A1\u25A0\u25B3\u25B2\u25BD\u25BC\u203B\u3012\u2192\u2190\u2191\u2193\u3013"],
      ["a2ba", "\u2208\u220B\u2286\u2287\u2282\u2283\u222A\u2229"],
      ["a2ca", "\u2227\u2228\uFFE2\u21D2\u21D4\u2200\u2203"],
      ["a2dc", "\u2220\u22A5\u2312\u2202\u2207\u2261\u2252\u226A\u226B\u221A\u223D\u221D\u2235\u222B\u222C"],
      ["a2f2", "\u212B\u2030\u266F\u266D\u266A\u2020\u2021\xB6"],
      ["a2fe", "\u25EF"],
      ["a3b0", "\uFF10", 9],
      ["a3c1", "\uFF21", 25],
      ["a3e1", "\uFF41", 25],
      ["a4a1", "\u3041", 82],
      ["a5a1", "\u30A1", 85],
      ["a6a1", "\u0391", 16, "\u03A3", 6],
      ["a6c1", "\u03B1", 16, "\u03C3", 6],
      ["a7a1", "\u0410", 5, "\u0401\u0416", 25],
      ["a7d1", "\u0430", 5, "\u0451\u0436", 25],
      ["a8a1", "\u2500\u2502\u250C\u2510\u2518\u2514\u251C\u252C\u2524\u2534\u253C\u2501\u2503\u250F\u2513\u251B\u2517\u2523\u2533\u252B\u253B\u254B\u2520\u252F\u2528\u2537\u253F\u251D\u2530\u2525\u2538\u2542"],
      ["ada1", "\u2460", 19, "\u2160", 9],
      ["adc0", "\u3349\u3314\u3322\u334D\u3318\u3327\u3303\u3336\u3351\u3357\u330D\u3326\u3323\u332B\u334A\u333B\u339C\u339D\u339E\u338E\u338F\u33C4\u33A1"],
      ["addf", "\u337B\u301D\u301F\u2116\u33CD\u2121\u32A4", 4, "\u3231\u3232\u3239\u337E\u337D\u337C\u2252\u2261\u222B\u222E\u2211\u221A\u22A5\u2220\u221F\u22BF\u2235\u2229\u222A"],
      ["b0a1", "\u4E9C\u5516\u5A03\u963F\u54C0\u611B\u6328\u59F6\u9022\u8475\u831C\u7A50\u60AA\u63E1\u6E25\u65ED\u8466\u82A6\u9BF5\u6893\u5727\u65A1\u6271\u5B9B\u59D0\u867B\u98F4\u7D62\u7DBE\u9B8E\u6216\u7C9F\u88B7\u5B89\u5EB5\u6309\u6697\u6848\u95C7\u978D\u674F\u4EE5\u4F0A\u4F4D\u4F9D\u5049\u56F2\u5937\u59D4\u5A01\u5C09\u60DF\u610F\u6170\u6613\u6905\u70BA\u754F\u7570\u79FB\u7DAD\u7DEF\u80C3\u840E\u8863\u8B02\u9055\u907A\u533B\u4E95\u4EA5\u57DF\u80B2\u90C1\u78EF\u4E00\u58F1\u6EA2\u9038\u7A32\u8328\u828B\u9C2F\u5141\u5370\u54BD\u54E1\u56E0\u59FB\u5F15\u98F2\u6DEB\u80E4\u852D"],
      ["b1a1", "\u9662\u9670\u96A0\u97FB\u540B\u53F3\u5B87\u70CF\u7FBD\u8FC2\u96E8\u536F\u9D5C\u7ABA\u4E11\u7893\u81FC\u6E26\u5618\u5504\u6B1D\u851A\u9C3B\u59E5\u53A9\u6D66\u74DC\u958F\u5642\u4E91\u904B\u96F2\u834F\u990C\u53E1\u55B6\u5B30\u5F71\u6620\u66F3\u6804\u6C38\u6CF3\u6D29\u745B\u76C8\u7A4E\u9834\u82F1\u885B\u8A60\u92ED\u6DB2\u75AB\u76CA\u99C5\u60A6\u8B01\u8D8A\u95B2\u698E\u53AD\u5186\u5712\u5830\u5944\u5BB4\u5EF6\u6028\u63A9\u63F4\u6CBF\u6F14\u708E\u7114\u7159\u71D5\u733F\u7E01\u8276\u82D1\u8597\u9060\u925B\u9D1B\u5869\u65BC\u6C5A\u7525\u51F9\u592E\u5965\u5F80\u5FDC"],
      ["b2a1", "\u62BC\u65FA\u6A2A\u6B27\u6BB4\u738B\u7FC1\u8956\u9D2C\u9D0E\u9EC4\u5CA1\u6C96\u837B\u5104\u5C4B\u61B6\u81C6\u6876\u7261\u4E59\u4FFA\u5378\u6069\u6E29\u7A4F\u97F3\u4E0B\u5316\u4EEE\u4F55\u4F3D\u4FA1\u4F73\u52A0\u53EF\u5609\u590F\u5AC1\u5BB6\u5BE1\u79D1\u6687\u679C\u67B6\u6B4C\u6CB3\u706B\u73C2\u798D\u79BE\u7A3C\u7B87\u82B1\u82DB\u8304\u8377\u83EF\u83D3\u8766\u8AB2\u5629\u8CA8\u8FE6\u904E\u971E\u868A\u4FC4\u5CE8\u6211\u7259\u753B\u81E5\u82BD\u86FE\u8CC0\u96C5\u9913\u99D5\u4ECB\u4F1A\u89E3\u56DE\u584A\u58CA\u5EFB\u5FEB\u602A\u6094\u6062\u61D0\u6212\u62D0\u6539"],
      ["b3a1", "\u9B41\u6666\u68B0\u6D77\u7070\u754C\u7686\u7D75\u82A5\u87F9\u958B\u968E\u8C9D\u51F1\u52BE\u5916\u54B3\u5BB3\u5D16\u6168\u6982\u6DAF\u788D\u84CB\u8857\u8A72\u93A7\u9AB8\u6D6C\u99A8\u86D9\u57A3\u67FF\u86CE\u920E\u5283\u5687\u5404\u5ED3\u62E1\u64B9\u683C\u6838\u6BBB\u7372\u78BA\u7A6B\u899A\u89D2\u8D6B\u8F03\u90ED\u95A3\u9694\u9769\u5B66\u5CB3\u697D\u984D\u984E\u639B\u7B20\u6A2B\u6A7F\u68B6\u9C0D\u6F5F\u5272\u559D\u6070\u62EC\u6D3B\u6E07\u6ED1\u845B\u8910\u8F44\u4E14\u9C39\u53F6\u691B\u6A3A\u9784\u682A\u515C\u7AC3\u84B2\u91DC\u938C\u565B\u9D28\u6822\u8305\u8431"],
      ["b4a1", "\u7CA5\u5208\u82C5\u74E6\u4E7E\u4F83\u51A0\u5BD2\u520A\u52D8\u52E7\u5DFB\u559A\u582A\u59E6\u5B8C\u5B98\u5BDB\u5E72\u5E79\u60A3\u611F\u6163\u61BE\u63DB\u6562\u67D1\u6853\u68FA\u6B3E\u6B53\u6C57\u6F22\u6F97\u6F45\u74B0\u7518\u76E3\u770B\u7AFF\u7BA1\u7C21\u7DE9\u7F36\u7FF0\u809D\u8266\u839E\u89B3\u8ACC\u8CAB\u9084\u9451\u9593\u9591\u95A2\u9665\u97D3\u9928\u8218\u4E38\u542B\u5CB8\u5DCC\u73A9\u764C\u773C\u5CA9\u7FEB\u8D0B\u96C1\u9811\u9854\u9858\u4F01\u4F0E\u5371\u559C\u5668\u57FA\u5947\u5B09\u5BC4\u5C90\u5E0C\u5E7E\u5FCC\u63EE\u673A\u65D7\u65E2\u671F\u68CB\u68C4"],
      ["b5a1", "\u6A5F\u5E30\u6BC5\u6C17\u6C7D\u757F\u7948\u5B63\u7A00\u7D00\u5FBD\u898F\u8A18\u8CB4\u8D77\u8ECC\u8F1D\u98E2\u9A0E\u9B3C\u4E80\u507D\u5100\u5993\u5B9C\u622F\u6280\u64EC\u6B3A\u72A0\u7591\u7947\u7FA9\u87FB\u8ABC\u8B70\u63AC\u83CA\u97A0\u5409\u5403\u55AB\u6854\u6A58\u8A70\u7827\u6775\u9ECD\u5374\u5BA2\u811A\u8650\u9006\u4E18\u4E45\u4EC7\u4F11\u53CA\u5438\u5BAE\u5F13\u6025\u6551\u673D\u6C42\u6C72\u6CE3\u7078\u7403\u7A76\u7AAE\u7B08\u7D1A\u7CFE\u7D66\u65E7\u725B\u53BB\u5C45\u5DE8\u62D2\u62E0\u6319\u6E20\u865A\u8A31\u8DDD\u92F8\u6F01\u79A6\u9B5A\u4EA8\u4EAB\u4EAC"],
      ["b6a1", "\u4F9B\u4FA0\u50D1\u5147\u7AF6\u5171\u51F6\u5354\u5321\u537F\u53EB\u55AC\u5883\u5CE1\u5F37\u5F4A\u602F\u6050\u606D\u631F\u6559\u6A4B\u6CC1\u72C2\u72ED\u77EF\u80F8\u8105\u8208\u854E\u90F7\u93E1\u97FF\u9957\u9A5A\u4EF0\u51DD\u5C2D\u6681\u696D\u5C40\u66F2\u6975\u7389\u6850\u7C81\u50C5\u52E4\u5747\u5DFE\u9326\u65A4\u6B23\u6B3D\u7434\u7981\u79BD\u7B4B\u7DCA\u82B9\u83CC\u887F\u895F\u8B39\u8FD1\u91D1\u541F\u9280\u4E5D\u5036\u53E5\u533A\u72D7\u7396\u77E9\u82E6\u8EAF\u99C6\u99C8\u99D2\u5177\u611A\u865E\u55B0\u7A7A\u5076\u5BD3\u9047\u9685\u4E32\u6ADB\u91E7\u5C51\u5C48"],
      ["b7a1", "\u6398\u7A9F\u6C93\u9774\u8F61\u7AAA\u718A\u9688\u7C82\u6817\u7E70\u6851\u936C\u52F2\u541B\u85AB\u8A13\u7FA4\u8ECD\u90E1\u5366\u8888\u7941\u4FC2\u50BE\u5211\u5144\u5553\u572D\u73EA\u578B\u5951\u5F62\u5F84\u6075\u6176\u6167\u61A9\u63B2\u643A\u656C\u666F\u6842\u6E13\u7566\u7A3D\u7CFB\u7D4C\u7D99\u7E4B\u7F6B\u830E\u834A\u86CD\u8A08\u8A63\u8B66\u8EFD\u981A\u9D8F\u82B8\u8FCE\u9BE8\u5287\u621F\u6483\u6FC0\u9699\u6841\u5091\u6B20\u6C7A\u6F54\u7A74\u7D50\u8840\u8A23\u6708\u4EF6\u5039\u5026\u5065\u517C\u5238\u5263\u55A7\u570F\u5805\u5ACC\u5EFA\u61B2\u61F8\u62F3\u6372"],
      ["b8a1", "\u691C\u6A29\u727D\u72AC\u732E\u7814\u786F\u7D79\u770C\u80A9\u898B\u8B19\u8CE2\u8ED2\u9063\u9375\u967A\u9855\u9A13\u9E78\u5143\u539F\u53B3\u5E7B\u5F26\u6E1B\u6E90\u7384\u73FE\u7D43\u8237\u8A00\u8AFA\u9650\u4E4E\u500B\u53E4\u547C\u56FA\u59D1\u5B64\u5DF1\u5EAB\u5F27\u6238\u6545\u67AF\u6E56\u72D0\u7CCA\u88B4\u80A1\u80E1\u83F0\u864E\u8A87\u8DE8\u9237\u96C7\u9867\u9F13\u4E94\u4E92\u4F0D\u5348\u5449\u543E\u5A2F\u5F8C\u5FA1\u609F\u68A7\u6A8E\u745A\u7881\u8A9E\u8AA4\u8B77\u9190\u4E5E\u9BC9\u4EA4\u4F7C\u4FAF\u5019\u5016\u5149\u516C\u529F\u52B9\u52FE\u539A\u53E3\u5411"],
      ["b9a1", "\u540E\u5589\u5751\u57A2\u597D\u5B54\u5B5D\u5B8F\u5DE5\u5DE7\u5DF7\u5E78\u5E83\u5E9A\u5EB7\u5F18\u6052\u614C\u6297\u62D8\u63A7\u653B\u6602\u6643\u66F4\u676D\u6821\u6897\u69CB\u6C5F\u6D2A\u6D69\u6E2F\u6E9D\u7532\u7687\u786C\u7A3F\u7CE0\u7D05\u7D18\u7D5E\u7DB1\u8015\u8003\u80AF\u80B1\u8154\u818F\u822A\u8352\u884C\u8861\u8B1B\u8CA2\u8CFC\u90CA\u9175\u9271\u783F\u92FC\u95A4\u964D\u9805\u9999\u9AD8\u9D3B\u525B\u52AB\u53F7\u5408\u58D5\u62F7\u6FE0\u8C6A\u8F5F\u9EB9\u514B\u523B\u544A\u56FD\u7A40\u9177\u9D60\u9ED2\u7344\u6F09\u8170\u7511\u5FFD\u60DA\u9AA8\u72DB\u8FBC"],
      ["baa1", "\u6B64\u9803\u4ECA\u56F0\u5764\u58BE\u5A5A\u6068\u61C7\u660F\u6606\u6839\u68B1\u6DF7\u75D5\u7D3A\u826E\u9B42\u4E9B\u4F50\u53C9\u5506\u5D6F\u5DE6\u5DEE\u67FB\u6C99\u7473\u7802\u8A50\u9396\u88DF\u5750\u5EA7\u632B\u50B5\u50AC\u518D\u6700\u54C9\u585E\u59BB\u5BB0\u5F69\u624D\u63A1\u683D\u6B73\u6E08\u707D\u91C7\u7280\u7815\u7826\u796D\u658E\u7D30\u83DC\u88C1\u8F09\u969B\u5264\u5728\u6750\u7F6A\u8CA1\u51B4\u5742\u962A\u583A\u698A\u80B4\u54B2\u5D0E\u57FC\u7895\u9DFA\u4F5C\u524A\u548B\u643E\u6628\u6714\u67F5\u7A84\u7B56\u7D22\u932F\u685C\u9BAD\u7B39\u5319\u518A\u5237"],
      ["bba1", "\u5BDF\u62F6\u64AE\u64E6\u672D\u6BBA\u85A9\u96D1\u7690\u9BD6\u634C\u9306\u9BAB\u76BF\u6652\u4E09\u5098\u53C2\u5C71\u60E8\u6492\u6563\u685F\u71E6\u73CA\u7523\u7B97\u7E82\u8695\u8B83\u8CDB\u9178\u9910\u65AC\u66AB\u6B8B\u4ED5\u4ED4\u4F3A\u4F7F\u523A\u53F8\u53F2\u55E3\u56DB\u58EB\u59CB\u59C9\u59FF\u5B50\u5C4D\u5E02\u5E2B\u5FD7\u601D\u6307\u652F\u5B5C\u65AF\u65BD\u65E8\u679D\u6B62\u6B7B\u6C0F\u7345\u7949\u79C1\u7CF8\u7D19\u7D2B\u80A2\u8102\u81F3\u8996\u8A5E\u8A69\u8A66\u8A8C\u8AEE\u8CC7\u8CDC\u96CC\u98FC\u6B6F\u4E8B\u4F3C\u4F8D\u5150\u5B57\u5BFA\u6148\u6301\u6642"],
      ["bca1", "\u6B21\u6ECB\u6CBB\u723E\u74BD\u75D4\u78C1\u793A\u800C\u8033\u81EA\u8494\u8F9E\u6C50\u9E7F\u5F0F\u8B58\u9D2B\u7AFA\u8EF8\u5B8D\u96EB\u4E03\u53F1\u57F7\u5931\u5AC9\u5BA4\u6089\u6E7F\u6F06\u75BE\u8CEA\u5B9F\u8500\u7BE0\u5072\u67F4\u829D\u5C61\u854A\u7E1E\u820E\u5199\u5C04\u6368\u8D66\u659C\u716E\u793E\u7D17\u8005\u8B1D\u8ECA\u906E\u86C7\u90AA\u501F\u52FA\u5C3A\u6753\u707C\u7235\u914C\u91C8\u932B\u82E5\u5BC2\u5F31\u60F9\u4E3B\u53D6\u5B88\u624B\u6731\u6B8A\u72E9\u73E0\u7A2E\u816B\u8DA3\u9152\u9996\u5112\u53D7\u546A\u5BFF\u6388\u6A39\u7DAC\u9700\u56DA\u53CE\u5468"],
      ["bda1", "\u5B97\u5C31\u5DDE\u4FEE\u6101\u62FE\u6D32\u79C0\u79CB\u7D42\u7E4D\u7FD2\u81ED\u821F\u8490\u8846\u8972\u8B90\u8E74\u8F2F\u9031\u914B\u916C\u96C6\u919C\u4EC0\u4F4F\u5145\u5341\u5F93\u620E\u67D4\u6C41\u6E0B\u7363\u7E26\u91CD\u9283\u53D4\u5919\u5BBF\u6DD1\u795D\u7E2E\u7C9B\u587E\u719F\u51FA\u8853\u8FF0\u4FCA\u5CFB\u6625\u77AC\u7AE3\u821C\u99FF\u51C6\u5FAA\u65EC\u696F\u6B89\u6DF3\u6E96\u6F64\u76FE\u7D14\u5DE1\u9075\u9187\u9806\u51E6\u521D\u6240\u6691\u66D9\u6E1A\u5EB6\u7DD2\u7F72\u66F8\u85AF\u85F7\u8AF8\u52A9\u53D9\u5973\u5E8F\u5F90\u6055\u92E4\u9664\u50B7\u511F"],
      ["bea1", "\u52DD\u5320\u5347\u53EC\u54E8\u5546\u5531\u5617\u5968\u59BE\u5A3C\u5BB5\u5C06\u5C0F\u5C11\u5C1A\u5E84\u5E8A\u5EE0\u5F70\u627F\u6284\u62DB\u638C\u6377\u6607\u660C\u662D\u6676\u677E\u68A2\u6A1F\u6A35\u6CBC\u6D88\u6E09\u6E58\u713C\u7126\u7167\u75C7\u7701\u785D\u7901\u7965\u79F0\u7AE0\u7B11\u7CA7\u7D39\u8096\u83D6\u848B\u8549\u885D\u88F3\u8A1F\u8A3C\u8A54\u8A73\u8C61\u8CDE\u91A4\u9266\u937E\u9418\u969C\u9798\u4E0A\u4E08\u4E1E\u4E57\u5197\u5270\u57CE\u5834\u58CC\u5B22\u5E38\u60C5\u64FE\u6761\u6756\u6D44\u72B6\u7573\u7A63\u84B8\u8B72\u91B8\u9320\u5631\u57F4\u98FE"],
      ["bfa1", "\u62ED\u690D\u6B96\u71ED\u7E54\u8077\u8272\u89E6\u98DF\u8755\u8FB1\u5C3B\u4F38\u4FE1\u4FB5\u5507\u5A20\u5BDD\u5BE9\u5FC3\u614E\u632F\u65B0\u664B\u68EE\u699B\u6D78\u6DF1\u7533\u75B9\u771F\u795E\u79E6\u7D33\u81E3\u82AF\u85AA\u89AA\u8A3A\u8EAB\u8F9B\u9032\u91DD\u9707\u4EBA\u4EC1\u5203\u5875\u58EC\u5C0B\u751A\u5C3D\u814E\u8A0A\u8FC5\u9663\u976D\u7B25\u8ACF\u9808\u9162\u56F3\u53A8\u9017\u5439\u5782\u5E25\u63A8\u6C34\u708A\u7761\u7C8B\u7FE0\u8870\u9042\u9154\u9310\u9318\u968F\u745E\u9AC4\u5D07\u5D69\u6570\u67A2\u8DA8\u96DB\u636E\u6749\u6919\u83C5\u9817\u96C0\u88FE"],
      ["c0a1", "\u6F84\u647A\u5BF8\u4E16\u702C\u755D\u662F\u51C4\u5236\u52E2\u59D3\u5F81\u6027\u6210\u653F\u6574\u661F\u6674\u68F2\u6816\u6B63\u6E05\u7272\u751F\u76DB\u7CBE\u8056\u58F0\u88FD\u897F\u8AA0\u8A93\u8ACB\u901D\u9192\u9752\u9759\u6589\u7A0E\u8106\u96BB\u5E2D\u60DC\u621A\u65A5\u6614\u6790\u77F3\u7A4D\u7C4D\u7E3E\u810A\u8CAC\u8D64\u8DE1\u8E5F\u78A9\u5207\u62D9\u63A5\u6442\u6298\u8A2D\u7A83\u7BC0\u8AAC\u96EA\u7D76\u820C\u8749\u4ED9\u5148\u5343\u5360\u5BA3\u5C02\u5C16\u5DDD\u6226\u6247\u64B0\u6813\u6834\u6CC9\u6D45\u6D17\u67D3\u6F5C\u714E\u717D\u65CB\u7A7F\u7BAD\u7DDA"],
      ["c1a1", "\u7E4A\u7FA8\u817A\u821B\u8239\u85A6\u8A6E\u8CCE\u8DF5\u9078\u9077\u92AD\u9291\u9583\u9BAE\u524D\u5584\u6F38\u7136\u5168\u7985\u7E55\u81B3\u7CCE\u564C\u5851\u5CA8\u63AA\u66FE\u66FD\u695A\u72D9\u758F\u758E\u790E\u7956\u79DF\u7C97\u7D20\u7D44\u8607\u8A34\u963B\u9061\u9F20\u50E7\u5275\u53CC\u53E2\u5009\u55AA\u58EE\u594F\u723D\u5B8B\u5C64\u531D\u60E3\u60F3\u635C\u6383\u633F\u63BB\u64CD\u65E9\u66F9\u5DE3\u69CD\u69FD\u6F15\u71E5\u4E89\u75E9\u76F8\u7A93\u7CDF\u7DCF\u7D9C\u8061\u8349\u8358\u846C\u84BC\u85FB\u88C5\u8D70\u9001\u906D\u9397\u971C\u9A12\u50CF\u5897\u618E"],
      ["c2a1", "\u81D3\u8535\u8D08\u9020\u4FC3\u5074\u5247\u5373\u606F\u6349\u675F\u6E2C\u8DB3\u901F\u4FD7\u5C5E\u8CCA\u65CF\u7D9A\u5352\u8896\u5176\u63C3\u5B58\u5B6B\u5C0A\u640D\u6751\u905C\u4ED6\u591A\u592A\u6C70\u8A51\u553E\u5815\u59A5\u60F0\u6253\u67C1\u8235\u6955\u9640\u99C4\u9A28\u4F53\u5806\u5BFE\u8010\u5CB1\u5E2F\u5F85\u6020\u614B\u6234\u66FF\u6CF0\u6EDE\u80CE\u817F\u82D4\u888B\u8CB8\u9000\u902E\u968A\u9EDB\u9BDB\u4EE3\u53F0\u5927\u7B2C\u918D\u984C\u9DF9\u6EDD\u7027\u5353\u5544\u5B85\u6258\u629E\u62D3\u6CA2\u6FEF\u7422\u8A17\u9438\u6FC1\u8AFE\u8338\u51E7\u86F8\u53EA"],
      ["c3a1", "\u53E9\u4F46\u9054\u8FB0\u596A\u8131\u5DFD\u7AEA\u8FBF\u68DA\u8C37\u72F8\u9C48\u6A3D\u8AB0\u4E39\u5358\u5606\u5766\u62C5\u63A2\u65E6\u6B4E\u6DE1\u6E5B\u70AD\u77ED\u7AEF\u7BAA\u7DBB\u803D\u80C6\u86CB\u8A95\u935B\u56E3\u58C7\u5F3E\u65AD\u6696\u6A80\u6BB5\u7537\u8AC7\u5024\u77E5\u5730\u5F1B\u6065\u667A\u6C60\u75F4\u7A1A\u7F6E\u81F4\u8718\u9045\u99B3\u7BC9\u755C\u7AF9\u7B51\u84C4\u9010\u79E9\u7A92\u8336\u5AE1\u7740\u4E2D\u4EF2\u5B99\u5FE0\u62BD\u663C\u67F1\u6CE8\u866B\u8877\u8A3B\u914E\u92F3\u99D0\u6A17\u7026\u732A\u82E7\u8457\u8CAF\u4E01\u5146\u51CB\u558B\u5BF5"],
      ["c4a1", "\u5E16\u5E33\u5E81\u5F14\u5F35\u5F6B\u5FB4\u61F2\u6311\u66A2\u671D\u6F6E\u7252\u753A\u773A\u8074\u8139\u8178\u8776\u8ABF\u8ADC\u8D85\u8DF3\u929A\u9577\u9802\u9CE5\u52C5\u6357\u76F4\u6715\u6C88\u73CD\u8CC3\u93AE\u9673\u6D25\u589C\u690E\u69CC\u8FFD\u939A\u75DB\u901A\u585A\u6802\u63B4\u69FB\u4F43\u6F2C\u67D8\u8FBB\u8526\u7DB4\u9354\u693F\u6F70\u576A\u58F7\u5B2C\u7D2C\u722A\u540A\u91E3\u9DB4\u4EAD\u4F4E\u505C\u5075\u5243\u8C9E\u5448\u5824\u5B9A\u5E1D\u5E95\u5EAD\u5EF7\u5F1F\u608C\u62B5\u633A\u63D0\u68AF\u6C40\u7887\u798E\u7A0B\u7DE0\u8247\u8A02\u8AE6\u8E44\u9013"],
      ["c5a1", "\u90B8\u912D\u91D8\u9F0E\u6CE5\u6458\u64E2\u6575\u6EF4\u7684\u7B1B\u9069\u93D1\u6EBA\u54F2\u5FB9\u64A4\u8F4D\u8FED\u9244\u5178\u586B\u5929\u5C55\u5E97\u6DFB\u7E8F\u751C\u8CBC\u8EE2\u985B\u70B9\u4F1D\u6BBF\u6FB1\u7530\u96FB\u514E\u5410\u5835\u5857\u59AC\u5C60\u5F92\u6597\u675C\u6E21\u767B\u83DF\u8CED\u9014\u90FD\u934D\u7825\u783A\u52AA\u5EA6\u571F\u5974\u6012\u5012\u515A\u51AC\u51CD\u5200\u5510\u5854\u5858\u5957\u5B95\u5CF6\u5D8B\u60BC\u6295\u642D\u6771\u6843\u68BC\u68DF\u76D7\u6DD8\u6E6F\u6D9B\u706F\u71C8\u5F53\u75D8\u7977\u7B49\u7B54\u7B52\u7CD6\u7D71\u5230"],
      ["c6a1", "\u8463\u8569\u85E4\u8A0E\u8B04\u8C46\u8E0F\u9003\u900F\u9419\u9676\u982D\u9A30\u95D8\u50CD\u52D5\u540C\u5802\u5C0E\u61A7\u649E\u6D1E\u77B3\u7AE5\u80F4\u8404\u9053\u9285\u5CE0\u9D07\u533F\u5F97\u5FB3\u6D9C\u7279\u7763\u79BF\u7BE4\u6BD2\u72EC\u8AAD\u6803\u6A61\u51F8\u7A81\u6934\u5C4A\u9CF6\u82EB\u5BC5\u9149\u701E\u5678\u5C6F\u60C7\u6566\u6C8C\u8C5A\u9041\u9813\u5451\u66C7\u920D\u5948\u90A3\u5185\u4E4D\u51EA\u8599\u8B0E\u7058\u637A\u934B\u6962\u99B4\u7E04\u7577\u5357\u6960\u8EDF\u96E3\u6C5D\u4E8C\u5C3C\u5F10\u8FE9\u5302\u8CD1\u8089\u8679\u5EFF\u65E5\u4E73\u5165"],
      ["c7a1", "\u5982\u5C3F\u97EE\u4EFB\u598A\u5FCD\u8A8D\u6FE1\u79B0\u7962\u5BE7\u8471\u732B\u71B1\u5E74\u5FF5\u637B\u649A\u71C3\u7C98\u4E43\u5EFC\u4E4B\u57DC\u56A2\u60A9\u6FC3\u7D0D\u80FD\u8133\u81BF\u8FB2\u8997\u86A4\u5DF4\u628A\u64AD\u8987\u6777\u6CE2\u6D3E\u7436\u7834\u5A46\u7F75\u82AD\u99AC\u4FF3\u5EC3\u62DD\u6392\u6557\u676F\u76C3\u724C\u80CC\u80BA\u8F29\u914D\u500D\u57F9\u5A92\u6885\u6973\u7164\u72FD\u8CB7\u58F2\u8CE0\u966A\u9019\u877F\u79E4\u77E7\u8429\u4F2F\u5265\u535A\u62CD\u67CF\u6CCA\u767D\u7B94\u7C95\u8236\u8584\u8FEB\u66DD\u6F20\u7206\u7E1B\u83AB\u99C1\u9EA6"],
      ["c8a1", "\u51FD\u7BB1\u7872\u7BB8\u8087\u7B48\u6AE8\u5E61\u808C\u7551\u7560\u516B\u9262\u6E8C\u767A\u9197\u9AEA\u4F10\u7F70\u629C\u7B4F\u95A5\u9CE9\u567A\u5859\u86E4\u96BC\u4F34\u5224\u534A\u53CD\u53DB\u5E06\u642C\u6591\u677F\u6C3E\u6C4E\u7248\u72AF\u73ED\u7554\u7E41\u822C\u85E9\u8CA9\u7BC4\u91C6\u7169\u9812\u98EF\u633D\u6669\u756A\u76E4\u78D0\u8543\u86EE\u532A\u5351\u5426\u5983\u5E87\u5F7C\u60B2\u6249\u6279\u62AB\u6590\u6BD4\u6CCC\u75B2\u76AE\u7891\u79D8\u7DCB\u7F77\u80A5\u88AB\u8AB9\u8CBB\u907F\u975E\u98DB\u6A0B\u7C38\u5099\u5C3E\u5FAE\u6787\u6BD8\u7435\u7709\u7F8E"],
      ["c9a1", "\u9F3B\u67CA\u7A17\u5339\u758B\u9AED\u5F66\u819D\u83F1\u8098\u5F3C\u5FC5\u7562\u7B46\u903C\u6867\u59EB\u5A9B\u7D10\u767E\u8B2C\u4FF5\u5F6A\u6A19\u6C37\u6F02\u74E2\u7968\u8868\u8A55\u8C79\u5EDF\u63CF\u75C5\u79D2\u82D7\u9328\u92F2\u849C\u86ED\u9C2D\u54C1\u5F6C\u658C\u6D5C\u7015\u8CA7\u8CD3\u983B\u654F\u74F6\u4E0D\u4ED8\u57E0\u592B\u5A66\u5BCC\u51A8\u5E03\u5E9C\u6016\u6276\u6577\u65A7\u666E\u6D6E\u7236\u7B26\u8150\u819A\u8299\u8B5C\u8CA0\u8CE6\u8D74\u961C\u9644\u4FAE\u64AB\u6B66\u821E\u8461\u856A\u90E8\u5C01\u6953\u98A8\u847A\u8557\u4F0F\u526F\u5FA9\u5E45\u670D"],
      ["caa1", "\u798F\u8179\u8907\u8986\u6DF5\u5F17\u6255\u6CB8\u4ECF\u7269\u9B92\u5206\u543B\u5674\u58B3\u61A4\u626E\u711A\u596E\u7C89\u7CDE\u7D1B\u96F0\u6587\u805E\u4E19\u4F75\u5175\u5840\u5E63\u5E73\u5F0A\u67C4\u4E26\u853D\u9589\u965B\u7C73\u9801\u50FB\u58C1\u7656\u78A7\u5225\u77A5\u8511\u7B86\u504F\u5909\u7247\u7BC7\u7DE8\u8FBA\u8FD4\u904D\u4FBF\u52C9\u5A29\u5F01\u97AD\u4FDD\u8217\u92EA\u5703\u6355\u6B69\u752B\u88DC\u8F14\u7A42\u52DF\u5893\u6155\u620A\u66AE\u6BCD\u7C3F\u83E9\u5023\u4FF8\u5305\u5446\u5831\u5949\u5B9D\u5CF0\u5CEF\u5D29\u5E96\u62B1\u6367\u653E\u65B9\u670B"],
      ["cba1", "\u6CD5\u6CE1\u70F9\u7832\u7E2B\u80DE\u82B3\u840C\u84EC\u8702\u8912\u8A2A\u8C4A\u90A6\u92D2\u98FD\u9CF3\u9D6C\u4E4F\u4EA1\u508D\u5256\u574A\u59A8\u5E3D\u5FD8\u5FD9\u623F\u66B4\u671B\u67D0\u68D2\u5192\u7D21\u80AA\u81A8\u8B00\u8C8C\u8CBF\u927E\u9632\u5420\u982C\u5317\u50D5\u535C\u58A8\u64B2\u6734\u7267\u7766\u7A46\u91E6\u52C3\u6CA1\u6B86\u5800\u5E4C\u5954\u672C\u7FFB\u51E1\u76C6\u6469\u78E8\u9B54\u9EBB\u57CB\u59B9\u6627\u679A\u6BCE\u54E9\u69D9\u5E55\u819C\u6795\u9BAA\u67FE\u9C52\u685D\u4EA6\u4FE3\u53C8\u62B9\u672B\u6CAB\u8FC4\u4FAD\u7E6D\u9EBF\u4E07\u6162\u6E80"],
      ["cca1", "\u6F2B\u8513\u5473\u672A\u9B45\u5DF3\u7B95\u5CAC\u5BC6\u871C\u6E4A\u84D1\u7A14\u8108\u5999\u7C8D\u6C11\u7720\u52D9\u5922\u7121\u725F\u77DB\u9727\u9D61\u690B\u5A7F\u5A18\u51A5\u540D\u547D\u660E\u76DF\u8FF7\u9298\u9CF4\u59EA\u725D\u6EC5\u514D\u68C9\u7DBF\u7DEC\u9762\u9EBA\u6478\u6A21\u8302\u5984\u5B5F\u6BDB\u731B\u76F2\u7DB2\u8017\u8499\u5132\u6728\u9ED9\u76EE\u6762\u52FF\u9905\u5C24\u623B\u7C7E\u8CB0\u554F\u60B6\u7D0B\u9580\u5301\u4E5F\u51B6\u591C\u723A\u8036\u91CE\u5F25\u77E2\u5384\u5F79\u7D04\u85AC\u8A33\u8E8D\u9756\u67F3\u85AE\u9453\u6109\u6108\u6CB9\u7652"],
      ["cda1", "\u8AED\u8F38\u552F\u4F51\u512A\u52C7\u53CB\u5BA5\u5E7D\u60A0\u6182\u63D6\u6709\u67DA\u6E67\u6D8C\u7336\u7337\u7531\u7950\u88D5\u8A98\u904A\u9091\u90F5\u96C4\u878D\u5915\u4E88\u4F59\u4E0E\u8A89\u8F3F\u9810\u50AD\u5E7C\u5996\u5BB9\u5EB8\u63DA\u63FA\u64C1\u66DC\u694A\u69D8\u6D0B\u6EB6\u7194\u7528\u7AAF\u7F8A\u8000\u8449\u84C9\u8981\u8B21\u8E0A\u9065\u967D\u990A\u617E\u6291\u6B32\u6C83\u6D74\u7FCC\u7FFC\u6DC0\u7F85\u87BA\u88F8\u6765\u83B1\u983C\u96F7\u6D1B\u7D61\u843D\u916A\u4E71\u5375\u5D50\u6B04\u6FEB\u85CD\u862D\u89A7\u5229\u540F\u5C65\u674E\u68A8\u7406\u7483"],
      ["cea1", "\u75E2\u88CF\u88E1\u91CC\u96E2\u9678\u5F8B\u7387\u7ACB\u844E\u63A0\u7565\u5289\u6D41\u6E9C\u7409\u7559\u786B\u7C92\u9686\u7ADC\u9F8D\u4FB6\u616E\u65C5\u865C\u4E86\u4EAE\u50DA\u4E21\u51CC\u5BEE\u6599\u6881\u6DBC\u731F\u7642\u77AD\u7A1C\u7CE7\u826F\u8AD2\u907C\u91CF\u9675\u9818\u529B\u7DD1\u502B\u5398\u6797\u6DCB\u71D0\u7433\u81E8\u8F2A\u96A3\u9C57\u9E9F\u7460\u5841\u6D99\u7D2F\u985E\u4EE4\u4F36\u4F8B\u51B7\u52B1\u5DBA\u601C\u73B2\u793C\u82D3\u9234\u96B7\u96F6\u970A\u9E97\u9F62\u66A6\u6B74\u5217\u52A3\u70C8\u88C2\u5EC9\u604B\u6190\u6F23\u7149\u7C3E\u7DF4\u806F"],
      ["cfa1", "\u84EE\u9023\u932C\u5442\u9B6F\u6AD3\u7089\u8CC2\u8DEF\u9732\u52B4\u5A41\u5ECA\u5F04\u6717\u697C\u6994\u6D6A\u6F0F\u7262\u72FC\u7BED\u8001\u807E\u874B\u90CE\u516D\u9E93\u7984\u808B\u9332\u8AD6\u502D\u548C\u8A71\u6B6A\u8CC4\u8107\u60D1\u67A0\u9DF2\u4E99\u4E98\u9C10\u8A6B\u85C1\u8568\u6900\u6E7E\u7897\u8155"],
      ["d0a1", "\u5F0C\u4E10\u4E15\u4E2A\u4E31\u4E36\u4E3C\u4E3F\u4E42\u4E56\u4E58\u4E82\u4E85\u8C6B\u4E8A\u8212\u5F0D\u4E8E\u4E9E\u4E9F\u4EA0\u4EA2\u4EB0\u4EB3\u4EB6\u4ECE\u4ECD\u4EC4\u4EC6\u4EC2\u4ED7\u4EDE\u4EED\u4EDF\u4EF7\u4F09\u4F5A\u4F30\u4F5B\u4F5D\u4F57\u4F47\u4F76\u4F88\u4F8F\u4F98\u4F7B\u4F69\u4F70\u4F91\u4F6F\u4F86\u4F96\u5118\u4FD4\u4FDF\u4FCE\u4FD8\u4FDB\u4FD1\u4FDA\u4FD0\u4FE4\u4FE5\u501A\u5028\u5014\u502A\u5025\u5005\u4F1C\u4FF6\u5021\u5029\u502C\u4FFE\u4FEF\u5011\u5006\u5043\u5047\u6703\u5055\u5050\u5048\u505A\u5056\u506C\u5078\u5080\u509A\u5085\u50B4\u50B2"],
      ["d1a1", "\u50C9\u50CA\u50B3\u50C2\u50D6\u50DE\u50E5\u50ED\u50E3\u50EE\u50F9\u50F5\u5109\u5101\u5102\u5116\u5115\u5114\u511A\u5121\u513A\u5137\u513C\u513B\u513F\u5140\u5152\u514C\u5154\u5162\u7AF8\u5169\u516A\u516E\u5180\u5182\u56D8\u518C\u5189\u518F\u5191\u5193\u5195\u5196\u51A4\u51A6\u51A2\u51A9\u51AA\u51AB\u51B3\u51B1\u51B2\u51B0\u51B5\u51BD\u51C5\u51C9\u51DB\u51E0\u8655\u51E9\u51ED\u51F0\u51F5\u51FE\u5204\u520B\u5214\u520E\u5227\u522A\u522E\u5233\u5239\u524F\u5244\u524B\u524C\u525E\u5254\u526A\u5274\u5269\u5273\u527F\u527D\u528D\u5294\u5292\u5271\u5288\u5291\u8FA8"],
      ["d2a1", "\u8FA7\u52AC\u52AD\u52BC\u52B5\u52C1\u52CD\u52D7\u52DE\u52E3\u52E6\u98ED\u52E0\u52F3\u52F5\u52F8\u52F9\u5306\u5308\u7538\u530D\u5310\u530F\u5315\u531A\u5323\u532F\u5331\u5333\u5338\u5340\u5346\u5345\u4E17\u5349\u534D\u51D6\u535E\u5369\u536E\u5918\u537B\u5377\u5382\u5396\u53A0\u53A6\u53A5\u53AE\u53B0\u53B6\u53C3\u7C12\u96D9\u53DF\u66FC\u71EE\u53EE\u53E8\u53ED\u53FA\u5401\u543D\u5440\u542C\u542D\u543C\u542E\u5436\u5429\u541D\u544E\u548F\u5475\u548E\u545F\u5471\u5477\u5470\u5492\u547B\u5480\u5476\u5484\u5490\u5486\u54C7\u54A2\u54B8\u54A5\u54AC\u54C4\u54C8\u54A8"],
      ["d3a1", "\u54AB\u54C2\u54A4\u54BE\u54BC\u54D8\u54E5\u54E6\u550F\u5514\u54FD\u54EE\u54ED\u54FA\u54E2\u5539\u5540\u5563\u554C\u552E\u555C\u5545\u5556\u5557\u5538\u5533\u555D\u5599\u5580\u54AF\u558A\u559F\u557B\u557E\u5598\u559E\u55AE\u557C\u5583\u55A9\u5587\u55A8\u55DA\u55C5\u55DF\u55C4\u55DC\u55E4\u55D4\u5614\u55F7\u5616\u55FE\u55FD\u561B\u55F9\u564E\u5650\u71DF\u5634\u5636\u5632\u5638\u566B\u5664\u562F\u566C\u566A\u5686\u5680\u568A\u56A0\u5694\u568F\u56A5\u56AE\u56B6\u56B4\u56C2\u56BC\u56C1\u56C3\u56C0\u56C8\u56CE\u56D1\u56D3\u56D7\u56EE\u56F9\u5700\u56FF\u5704\u5709"],
      ["d4a1", "\u5708\u570B\u570D\u5713\u5718\u5716\u55C7\u571C\u5726\u5737\u5738\u574E\u573B\u5740\u574F\u5769\u57C0\u5788\u5761\u577F\u5789\u5793\u57A0\u57B3\u57A4\u57AA\u57B0\u57C3\u57C6\u57D4\u57D2\u57D3\u580A\u57D6\u57E3\u580B\u5819\u581D\u5872\u5821\u5862\u584B\u5870\u6BC0\u5852\u583D\u5879\u5885\u58B9\u589F\u58AB\u58BA\u58DE\u58BB\u58B8\u58AE\u58C5\u58D3\u58D1\u58D7\u58D9\u58D8\u58E5\u58DC\u58E4\u58DF\u58EF\u58FA\u58F9\u58FB\u58FC\u58FD\u5902\u590A\u5910\u591B\u68A6\u5925\u592C\u592D\u5932\u5938\u593E\u7AD2\u5955\u5950\u594E\u595A\u5958\u5962\u5960\u5967\u596C\u5969"],
      ["d5a1", "\u5978\u5981\u599D\u4F5E\u4FAB\u59A3\u59B2\u59C6\u59E8\u59DC\u598D\u59D9\u59DA\u5A25\u5A1F\u5A11\u5A1C\u5A09\u5A1A\u5A40\u5A6C\u5A49\u5A35\u5A36\u5A62\u5A6A\u5A9A\u5ABC\u5ABE\u5ACB\u5AC2\u5ABD\u5AE3\u5AD7\u5AE6\u5AE9\u5AD6\u5AFA\u5AFB\u5B0C\u5B0B\u5B16\u5B32\u5AD0\u5B2A\u5B36\u5B3E\u5B43\u5B45\u5B40\u5B51\u5B55\u5B5A\u5B5B\u5B65\u5B69\u5B70\u5B73\u5B75\u5B78\u6588\u5B7A\u5B80\u5B83\u5BA6\u5BB8\u5BC3\u5BC7\u5BC9\u5BD4\u5BD0\u5BE4\u5BE6\u5BE2\u5BDE\u5BE5\u5BEB\u5BF0\u5BF6\u5BF3\u5C05\u5C07\u5C08\u5C0D\u5C13\u5C20\u5C22\u5C28\u5C38\u5C39\u5C41\u5C46\u5C4E\u5C53"],
      ["d6a1", "\u5C50\u5C4F\u5B71\u5C6C\u5C6E\u4E62\u5C76\u5C79\u5C8C\u5C91\u5C94\u599B\u5CAB\u5CBB\u5CB6\u5CBC\u5CB7\u5CC5\u5CBE\u5CC7\u5CD9\u5CE9\u5CFD\u5CFA\u5CED\u5D8C\u5CEA\u5D0B\u5D15\u5D17\u5D5C\u5D1F\u5D1B\u5D11\u5D14\u5D22\u5D1A\u5D19\u5D18\u5D4C\u5D52\u5D4E\u5D4B\u5D6C\u5D73\u5D76\u5D87\u5D84\u5D82\u5DA2\u5D9D\u5DAC\u5DAE\u5DBD\u5D90\u5DB7\u5DBC\u5DC9\u5DCD\u5DD3\u5DD2\u5DD6\u5DDB\u5DEB\u5DF2\u5DF5\u5E0B\u5E1A\u5E19\u5E11\u5E1B\u5E36\u5E37\u5E44\u5E43\u5E40\u5E4E\u5E57\u5E54\u5E5F\u5E62\u5E64\u5E47\u5E75\u5E76\u5E7A\u9EBC\u5E7F\u5EA0\u5EC1\u5EC2\u5EC8\u5ED0\u5ECF"],
      ["d7a1", "\u5ED6\u5EE3\u5EDD\u5EDA\u5EDB\u5EE2\u5EE1\u5EE8\u5EE9\u5EEC\u5EF1\u5EF3\u5EF0\u5EF4\u5EF8\u5EFE\u5F03\u5F09\u5F5D\u5F5C\u5F0B\u5F11\u5F16\u5F29\u5F2D\u5F38\u5F41\u5F48\u5F4C\u5F4E\u5F2F\u5F51\u5F56\u5F57\u5F59\u5F61\u5F6D\u5F73\u5F77\u5F83\u5F82\u5F7F\u5F8A\u5F88\u5F91\u5F87\u5F9E\u5F99\u5F98\u5FA0\u5FA8\u5FAD\u5FBC\u5FD6\u5FFB\u5FE4\u5FF8\u5FF1\u5FDD\u60B3\u5FFF\u6021\u6060\u6019\u6010\u6029\u600E\u6031\u601B\u6015\u602B\u6026\u600F\u603A\u605A\u6041\u606A\u6077\u605F\u604A\u6046\u604D\u6063\u6043\u6064\u6042\u606C\u606B\u6059\u6081\u608D\u60E7\u6083\u609A"],
      ["d8a1", "\u6084\u609B\u6096\u6097\u6092\u60A7\u608B\u60E1\u60B8\u60E0\u60D3\u60B4\u5FF0\u60BD\u60C6\u60B5\u60D8\u614D\u6115\u6106\u60F6\u60F7\u6100\u60F4\u60FA\u6103\u6121\u60FB\u60F1\u610D\u610E\u6147\u613E\u6128\u6127\u614A\u613F\u613C\u612C\u6134\u613D\u6142\u6144\u6173\u6177\u6158\u6159\u615A\u616B\u6174\u616F\u6165\u6171\u615F\u615D\u6153\u6175\u6199\u6196\u6187\u61AC\u6194\u619A\u618A\u6191\u61AB\u61AE\u61CC\u61CA\u61C9\u61F7\u61C8\u61C3\u61C6\u61BA\u61CB\u7F79\u61CD\u61E6\u61E3\u61F6\u61FA\u61F4\u61FF\u61FD\u61FC\u61FE\u6200\u6208\u6209\u620D\u620C\u6214\u621B"],
      ["d9a1", "\u621E\u6221\u622A\u622E\u6230\u6232\u6233\u6241\u624E\u625E\u6263\u625B\u6260\u6268\u627C\u6282\u6289\u627E\u6292\u6293\u6296\u62D4\u6283\u6294\u62D7\u62D1\u62BB\u62CF\u62FF\u62C6\u64D4\u62C8\u62DC\u62CC\u62CA\u62C2\u62C7\u629B\u62C9\u630C\u62EE\u62F1\u6327\u6302\u6308\u62EF\u62F5\u6350\u633E\u634D\u641C\u634F\u6396\u638E\u6380\u63AB\u6376\u63A3\u638F\u6389\u639F\u63B5\u636B\u6369\u63BE\u63E9\u63C0\u63C6\u63E3\u63C9\u63D2\u63F6\u63C4\u6416\u6434\u6406\u6413\u6426\u6436\u651D\u6417\u6428\u640F\u6467\u646F\u6476\u644E\u652A\u6495\u6493\u64A5\u64A9\u6488\u64BC"],
      ["daa1", "\u64DA\u64D2\u64C5\u64C7\u64BB\u64D8\u64C2\u64F1\u64E7\u8209\u64E0\u64E1\u62AC\u64E3\u64EF\u652C\u64F6\u64F4\u64F2\u64FA\u6500\u64FD\u6518\u651C\u6505\u6524\u6523\u652B\u6534\u6535\u6537\u6536\u6538\u754B\u6548\u6556\u6555\u654D\u6558\u655E\u655D\u6572\u6578\u6582\u6583\u8B8A\u659B\u659F\u65AB\u65B7\u65C3\u65C6\u65C1\u65C4\u65CC\u65D2\u65DB\u65D9\u65E0\u65E1\u65F1\u6772\u660A\u6603\u65FB\u6773\u6635\u6636\u6634\u661C\u664F\u6644\u6649\u6641\u665E\u665D\u6664\u6667\u6668\u665F\u6662\u6670\u6683\u6688\u668E\u6689\u6684\u6698\u669D\u66C1\u66B9\u66C9\u66BE\u66BC"],
      ["dba1", "\u66C4\u66B8\u66D6\u66DA\u66E0\u663F\u66E6\u66E9\u66F0\u66F5\u66F7\u670F\u6716\u671E\u6726\u6727\u9738\u672E\u673F\u6736\u6741\u6738\u6737\u6746\u675E\u6760\u6759\u6763\u6764\u6789\u6770\u67A9\u677C\u676A\u678C\u678B\u67A6\u67A1\u6785\u67B7\u67EF\u67B4\u67EC\u67B3\u67E9\u67B8\u67E4\u67DE\u67DD\u67E2\u67EE\u67B9\u67CE\u67C6\u67E7\u6A9C\u681E\u6846\u6829\u6840\u684D\u6832\u684E\u68B3\u682B\u6859\u6863\u6877\u687F\u689F\u688F\u68AD\u6894\u689D\u689B\u6883\u6AAE\u68B9\u6874\u68B5\u68A0\u68BA\u690F\u688D\u687E\u6901\u68CA\u6908\u68D8\u6922\u6926\u68E1\u690C\u68CD"],
      ["dca1", "\u68D4\u68E7\u68D5\u6936\u6912\u6904\u68D7\u68E3\u6925\u68F9\u68E0\u68EF\u6928\u692A\u691A\u6923\u6921\u68C6\u6979\u6977\u695C\u6978\u696B\u6954\u697E\u696E\u6939\u6974\u693D\u6959\u6930\u6961\u695E\u695D\u6981\u696A\u69B2\u69AE\u69D0\u69BF\u69C1\u69D3\u69BE\u69CE\u5BE8\u69CA\u69DD\u69BB\u69C3\u69A7\u6A2E\u6991\u69A0\u699C\u6995\u69B4\u69DE\u69E8\u6A02\u6A1B\u69FF\u6B0A\u69F9\u69F2\u69E7\u6A05\u69B1\u6A1E\u69ED\u6A14\u69EB\u6A0A\u6A12\u6AC1\u6A23\u6A13\u6A44\u6A0C\u6A72\u6A36\u6A78\u6A47\u6A62\u6A59\u6A66\u6A48\u6A38\u6A22\u6A90\u6A8D\u6AA0\u6A84\u6AA2\u6AA3"],
      ["dda1", "\u6A97\u8617\u6ABB\u6AC3\u6AC2\u6AB8\u6AB3\u6AAC\u6ADE\u6AD1\u6ADF\u6AAA\u6ADA\u6AEA\u6AFB\u6B05\u8616\u6AFA\u6B12\u6B16\u9B31\u6B1F\u6B38\u6B37\u76DC\u6B39\u98EE\u6B47\u6B43\u6B49\u6B50\u6B59\u6B54\u6B5B\u6B5F\u6B61\u6B78\u6B79\u6B7F\u6B80\u6B84\u6B83\u6B8D\u6B98\u6B95\u6B9E\u6BA4\u6BAA\u6BAB\u6BAF\u6BB2\u6BB1\u6BB3\u6BB7\u6BBC\u6BC6\u6BCB\u6BD3\u6BDF\u6BEC\u6BEB\u6BF3\u6BEF\u9EBE\u6C08\u6C13\u6C14\u6C1B\u6C24\u6C23\u6C5E\u6C55\u6C62\u6C6A\u6C82\u6C8D\u6C9A\u6C81\u6C9B\u6C7E\u6C68\u6C73\u6C92\u6C90\u6CC4\u6CF1\u6CD3\u6CBD\u6CD7\u6CC5\u6CDD\u6CAE\u6CB1\u6CBE"],
      ["dea1", "\u6CBA\u6CDB\u6CEF\u6CD9\u6CEA\u6D1F\u884D\u6D36\u6D2B\u6D3D\u6D38\u6D19\u6D35\u6D33\u6D12\u6D0C\u6D63\u6D93\u6D64\u6D5A\u6D79\u6D59\u6D8E\u6D95\u6FE4\u6D85\u6DF9\u6E15\u6E0A\u6DB5\u6DC7\u6DE6\u6DB8\u6DC6\u6DEC\u6DDE\u6DCC\u6DE8\u6DD2\u6DC5\u6DFA\u6DD9\u6DE4\u6DD5\u6DEA\u6DEE\u6E2D\u6E6E\u6E2E\u6E19\u6E72\u6E5F\u6E3E\u6E23\u6E6B\u6E2B\u6E76\u6E4D\u6E1F\u6E43\u6E3A\u6E4E\u6E24\u6EFF\u6E1D\u6E38\u6E82\u6EAA\u6E98\u6EC9\u6EB7\u6ED3\u6EBD\u6EAF\u6EC4\u6EB2\u6ED4\u6ED5\u6E8F\u6EA5\u6EC2\u6E9F\u6F41\u6F11\u704C\u6EEC\u6EF8\u6EFE\u6F3F\u6EF2\u6F31\u6EEF\u6F32\u6ECC"],
      ["dfa1", "\u6F3E\u6F13\u6EF7\u6F86\u6F7A\u6F78\u6F81\u6F80\u6F6F\u6F5B\u6FF3\u6F6D\u6F82\u6F7C\u6F58\u6F8E\u6F91\u6FC2\u6F66\u6FB3\u6FA3\u6FA1\u6FA4\u6FB9\u6FC6\u6FAA\u6FDF\u6FD5\u6FEC\u6FD4\u6FD8\u6FF1\u6FEE\u6FDB\u7009\u700B\u6FFA\u7011\u7001\u700F\u6FFE\u701B\u701A\u6F74\u701D\u7018\u701F\u7030\u703E\u7032\u7051\u7063\u7099\u7092\u70AF\u70F1\u70AC\u70B8\u70B3\u70AE\u70DF\u70CB\u70DD\u70D9\u7109\u70FD\u711C\u7119\u7165\u7155\u7188\u7166\u7162\u714C\u7156\u716C\u718F\u71FB\u7184\u7195\u71A8\u71AC\u71D7\u71B9\u71BE\u71D2\u71C9\u71D4\u71CE\u71E0\u71EC\u71E7\u71F5\u71FC"],
      ["e0a1", "\u71F9\u71FF\u720D\u7210\u721B\u7228\u722D\u722C\u7230\u7232\u723B\u723C\u723F\u7240\u7246\u724B\u7258\u7274\u727E\u7282\u7281\u7287\u7292\u7296\u72A2\u72A7\u72B9\u72B2\u72C3\u72C6\u72C4\u72CE\u72D2\u72E2\u72E0\u72E1\u72F9\u72F7\u500F\u7317\u730A\u731C\u7316\u731D\u7334\u732F\u7329\u7325\u733E\u734E\u734F\u9ED8\u7357\u736A\u7368\u7370\u7378\u7375\u737B\u737A\u73C8\u73B3\u73CE\u73BB\u73C0\u73E5\u73EE\u73DE\u74A2\u7405\u746F\u7425\u73F8\u7432\u743A\u7455\u743F\u745F\u7459\u7441\u745C\u7469\u7470\u7463\u746A\u7476\u747E\u748B\u749E\u74A7\u74CA\u74CF\u74D4\u73F1"],
      ["e1a1", "\u74E0\u74E3\u74E7\u74E9\u74EE\u74F2\u74F0\u74F1\u74F8\u74F7\u7504\u7503\u7505\u750C\u750E\u750D\u7515\u7513\u751E\u7526\u752C\u753C\u7544\u754D\u754A\u7549\u755B\u7546\u755A\u7569\u7564\u7567\u756B\u756D\u7578\u7576\u7586\u7587\u7574\u758A\u7589\u7582\u7594\u759A\u759D\u75A5\u75A3\u75C2\u75B3\u75C3\u75B5\u75BD\u75B8\u75BC\u75B1\u75CD\u75CA\u75D2\u75D9\u75E3\u75DE\u75FE\u75FF\u75FC\u7601\u75F0\u75FA\u75F2\u75F3\u760B\u760D\u7609\u761F\u7627\u7620\u7621\u7622\u7624\u7634\u7630\u763B\u7647\u7648\u7646\u765C\u7658\u7661\u7662\u7668\u7669\u766A\u7667\u766C\u7670"],
      ["e2a1", "\u7672\u7676\u7678\u767C\u7680\u7683\u7688\u768B\u768E\u7696\u7693\u7699\u769A\u76B0\u76B4\u76B8\u76B9\u76BA\u76C2\u76CD\u76D6\u76D2\u76DE\u76E1\u76E5\u76E7\u76EA\u862F\u76FB\u7708\u7707\u7704\u7729\u7724\u771E\u7725\u7726\u771B\u7737\u7738\u7747\u775A\u7768\u776B\u775B\u7765\u777F\u777E\u7779\u778E\u778B\u7791\u77A0\u779E\u77B0\u77B6\u77B9\u77BF\u77BC\u77BD\u77BB\u77C7\u77CD\u77D7\u77DA\u77DC\u77E3\u77EE\u77FC\u780C\u7812\u7926\u7820\u792A\u7845\u788E\u7874\u7886\u787C\u789A\u788C\u78A3\u78B5\u78AA\u78AF\u78D1\u78C6\u78CB\u78D4\u78BE\u78BC\u78C5\u78CA\u78EC"],
      ["e3a1", "\u78E7\u78DA\u78FD\u78F4\u7907\u7912\u7911\u7919\u792C\u792B\u7940\u7960\u7957\u795F\u795A\u7955\u7953\u797A\u797F\u798A\u799D\u79A7\u9F4B\u79AA\u79AE\u79B3\u79B9\u79BA\u79C9\u79D5\u79E7\u79EC\u79E1\u79E3\u7A08\u7A0D\u7A18\u7A19\u7A20\u7A1F\u7980\u7A31\u7A3B\u7A3E\u7A37\u7A43\u7A57\u7A49\u7A61\u7A62\u7A69\u9F9D\u7A70\u7A79\u7A7D\u7A88\u7A97\u7A95\u7A98\u7A96\u7AA9\u7AC8\u7AB0\u7AB6\u7AC5\u7AC4\u7ABF\u9083\u7AC7\u7ACA\u7ACD\u7ACF\u7AD5\u7AD3\u7AD9\u7ADA\u7ADD\u7AE1\u7AE2\u7AE6\u7AED\u7AF0\u7B02\u7B0F\u7B0A\u7B06\u7B33\u7B18\u7B19\u7B1E\u7B35\u7B28\u7B36\u7B50"],
      ["e4a1", "\u7B7A\u7B04\u7B4D\u7B0B\u7B4C\u7B45\u7B75\u7B65\u7B74\u7B67\u7B70\u7B71\u7B6C\u7B6E\u7B9D\u7B98\u7B9F\u7B8D\u7B9C\u7B9A\u7B8B\u7B92\u7B8F\u7B5D\u7B99\u7BCB\u7BC1\u7BCC\u7BCF\u7BB4\u7BC6\u7BDD\u7BE9\u7C11\u7C14\u7BE6\u7BE5\u7C60\u7C00\u7C07\u7C13\u7BF3\u7BF7\u7C17\u7C0D\u7BF6\u7C23\u7C27\u7C2A\u7C1F\u7C37\u7C2B\u7C3D\u7C4C\u7C43\u7C54\u7C4F\u7C40\u7C50\u7C58\u7C5F\u7C64\u7C56\u7C65\u7C6C\u7C75\u7C83\u7C90\u7CA4\u7CAD\u7CA2\u7CAB\u7CA1\u7CA8\u7CB3\u7CB2\u7CB1\u7CAE\u7CB9\u7CBD\u7CC0\u7CC5\u7CC2\u7CD8\u7CD2\u7CDC\u7CE2\u9B3B\u7CEF\u7CF2\u7CF4\u7CF6\u7CFA\u7D06"],
      ["e5a1", "\u7D02\u7D1C\u7D15\u7D0A\u7D45\u7D4B\u7D2E\u7D32\u7D3F\u7D35\u7D46\u7D73\u7D56\u7D4E\u7D72\u7D68\u7D6E\u7D4F\u7D63\u7D93\u7D89\u7D5B\u7D8F\u7D7D\u7D9B\u7DBA\u7DAE\u7DA3\u7DB5\u7DC7\u7DBD\u7DAB\u7E3D\u7DA2\u7DAF\u7DDC\u7DB8\u7D9F\u7DB0\u7DD8\u7DDD\u7DE4\u7DDE\u7DFB\u7DF2\u7DE1\u7E05\u7E0A\u7E23\u7E21\u7E12\u7E31\u7E1F\u7E09\u7E0B\u7E22\u7E46\u7E66\u7E3B\u7E35\u7E39\u7E43\u7E37\u7E32\u7E3A\u7E67\u7E5D\u7E56\u7E5E\u7E59\u7E5A\u7E79\u7E6A\u7E69\u7E7C\u7E7B\u7E83\u7DD5\u7E7D\u8FAE\u7E7F\u7E88\u7E89\u7E8C\u7E92\u7E90\u7E93\u7E94\u7E96\u7E8E\u7E9B\u7E9C\u7F38\u7F3A"],
      ["e6a1", "\u7F45\u7F4C\u7F4D\u7F4E\u7F50\u7F51\u7F55\u7F54\u7F58\u7F5F\u7F60\u7F68\u7F69\u7F67\u7F78\u7F82\u7F86\u7F83\u7F88\u7F87\u7F8C\u7F94\u7F9E\u7F9D\u7F9A\u7FA3\u7FAF\u7FB2\u7FB9\u7FAE\u7FB6\u7FB8\u8B71\u7FC5\u7FC6\u7FCA\u7FD5\u7FD4\u7FE1\u7FE6\u7FE9\u7FF3\u7FF9\u98DC\u8006\u8004\u800B\u8012\u8018\u8019\u801C\u8021\u8028\u803F\u803B\u804A\u8046\u8052\u8058\u805A\u805F\u8062\u8068\u8073\u8072\u8070\u8076\u8079\u807D\u807F\u8084\u8086\u8085\u809B\u8093\u809A\u80AD\u5190\u80AC\u80DB\u80E5\u80D9\u80DD\u80C4\u80DA\u80D6\u8109\u80EF\u80F1\u811B\u8129\u8123\u812F\u814B"],
      ["e7a1", "\u968B\u8146\u813E\u8153\u8151\u80FC\u8171\u816E\u8165\u8166\u8174\u8183\u8188\u818A\u8180\u8182\u81A0\u8195\u81A4\u81A3\u815F\u8193\u81A9\u81B0\u81B5\u81BE\u81B8\u81BD\u81C0\u81C2\u81BA\u81C9\u81CD\u81D1\u81D9\u81D8\u81C8\u81DA\u81DF\u81E0\u81E7\u81FA\u81FB\u81FE\u8201\u8202\u8205\u8207\u820A\u820D\u8210\u8216\u8229\u822B\u8238\u8233\u8240\u8259\u8258\u825D\u825A\u825F\u8264\u8262\u8268\u826A\u826B\u822E\u8271\u8277\u8278\u827E\u828D\u8292\u82AB\u829F\u82BB\u82AC\u82E1\u82E3\u82DF\u82D2\u82F4\u82F3\u82FA\u8393\u8303\u82FB\u82F9\u82DE\u8306\u82DC\u8309\u82D9"],
      ["e8a1", "\u8335\u8334\u8316\u8332\u8331\u8340\u8339\u8350\u8345\u832F\u832B\u8317\u8318\u8385\u839A\u83AA\u839F\u83A2\u8396\u8323\u838E\u8387\u838A\u837C\u83B5\u8373\u8375\u83A0\u8389\u83A8\u83F4\u8413\u83EB\u83CE\u83FD\u8403\u83D8\u840B\u83C1\u83F7\u8407\u83E0\u83F2\u840D\u8422\u8420\u83BD\u8438\u8506\u83FB\u846D\u842A\u843C\u855A\u8484\u8477\u846B\u84AD\u846E\u8482\u8469\u8446\u842C\u846F\u8479\u8435\u84CA\u8462\u84B9\u84BF\u849F\u84D9\u84CD\u84BB\u84DA\u84D0\u84C1\u84C6\u84D6\u84A1\u8521\u84FF\u84F4\u8517\u8518\u852C\u851F\u8515\u8514\u84FC\u8540\u8563\u8558\u8548"],
      ["e9a1", "\u8541\u8602\u854B\u8555\u8580\u85A4\u8588\u8591\u858A\u85A8\u856D\u8594\u859B\u85EA\u8587\u859C\u8577\u857E\u8590\u85C9\u85BA\u85CF\u85B9\u85D0\u85D5\u85DD\u85E5\u85DC\u85F9\u860A\u8613\u860B\u85FE\u85FA\u8606\u8622\u861A\u8630\u863F\u864D\u4E55\u8654\u865F\u8667\u8671\u8693\u86A3\u86A9\u86AA\u868B\u868C\u86B6\u86AF\u86C4\u86C6\u86B0\u86C9\u8823\u86AB\u86D4\u86DE\u86E9\u86EC\u86DF\u86DB\u86EF\u8712\u8706\u8708\u8700\u8703\u86FB\u8711\u8709\u870D\u86F9\u870A\u8734\u873F\u8737\u873B\u8725\u8729\u871A\u8760\u875F\u8778\u874C\u874E\u8774\u8757\u8768\u876E\u8759"],
      ["eaa1", "\u8753\u8763\u876A\u8805\u87A2\u879F\u8782\u87AF\u87CB\u87BD\u87C0\u87D0\u96D6\u87AB\u87C4\u87B3\u87C7\u87C6\u87BB\u87EF\u87F2\u87E0\u880F\u880D\u87FE\u87F6\u87F7\u880E\u87D2\u8811\u8816\u8815\u8822\u8821\u8831\u8836\u8839\u8827\u883B\u8844\u8842\u8852\u8859\u885E\u8862\u886B\u8881\u887E\u889E\u8875\u887D\u88B5\u8872\u8882\u8897\u8892\u88AE\u8899\u88A2\u888D\u88A4\u88B0\u88BF\u88B1\u88C3\u88C4\u88D4\u88D8\u88D9\u88DD\u88F9\u8902\u88FC\u88F4\u88E8\u88F2\u8904\u890C\u890A\u8913\u8943\u891E\u8925\u892A\u892B\u8941\u8944\u893B\u8936\u8938\u894C\u891D\u8960\u895E"],
      ["eba1", "\u8966\u8964\u896D\u896A\u896F\u8974\u8977\u897E\u8983\u8988\u898A\u8993\u8998\u89A1\u89A9\u89A6\u89AC\u89AF\u89B2\u89BA\u89BD\u89BF\u89C0\u89DA\u89DC\u89DD\u89E7\u89F4\u89F8\u8A03\u8A16\u8A10\u8A0C\u8A1B\u8A1D\u8A25\u8A36\u8A41\u8A5B\u8A52\u8A46\u8A48\u8A7C\u8A6D\u8A6C\u8A62\u8A85\u8A82\u8A84\u8AA8\u8AA1\u8A91\u8AA5\u8AA6\u8A9A\u8AA3\u8AC4\u8ACD\u8AC2\u8ADA\u8AEB\u8AF3\u8AE7\u8AE4\u8AF1\u8B14\u8AE0\u8AE2\u8AF7\u8ADE\u8ADB\u8B0C\u8B07\u8B1A\u8AE1\u8B16\u8B10\u8B17\u8B20\u8B33\u97AB\u8B26\u8B2B\u8B3E\u8B28\u8B41\u8B4C\u8B4F\u8B4E\u8B49\u8B56\u8B5B\u8B5A\u8B6B"],
      ["eca1", "\u8B5F\u8B6C\u8B6F\u8B74\u8B7D\u8B80\u8B8C\u8B8E\u8B92\u8B93\u8B96\u8B99\u8B9A\u8C3A\u8C41\u8C3F\u8C48\u8C4C\u8C4E\u8C50\u8C55\u8C62\u8C6C\u8C78\u8C7A\u8C82\u8C89\u8C85\u8C8A\u8C8D\u8C8E\u8C94\u8C7C\u8C98\u621D\u8CAD\u8CAA\u8CBD\u8CB2\u8CB3\u8CAE\u8CB6\u8CC8\u8CC1\u8CE4\u8CE3\u8CDA\u8CFD\u8CFA\u8CFB\u8D04\u8D05\u8D0A\u8D07\u8D0F\u8D0D\u8D10\u9F4E\u8D13\u8CCD\u8D14\u8D16\u8D67\u8D6D\u8D71\u8D73\u8D81\u8D99\u8DC2\u8DBE\u8DBA\u8DCF\u8DDA\u8DD6\u8DCC\u8DDB\u8DCB\u8DEA\u8DEB\u8DDF\u8DE3\u8DFC\u8E08\u8E09\u8DFF\u8E1D\u8E1E\u8E10\u8E1F\u8E42\u8E35\u8E30\u8E34\u8E4A"],
      ["eda1", "\u8E47\u8E49\u8E4C\u8E50\u8E48\u8E59\u8E64\u8E60\u8E2A\u8E63\u8E55\u8E76\u8E72\u8E7C\u8E81\u8E87\u8E85\u8E84\u8E8B\u8E8A\u8E93\u8E91\u8E94\u8E99\u8EAA\u8EA1\u8EAC\u8EB0\u8EC6\u8EB1\u8EBE\u8EC5\u8EC8\u8ECB\u8EDB\u8EE3\u8EFC\u8EFB\u8EEB\u8EFE\u8F0A\u8F05\u8F15\u8F12\u8F19\u8F13\u8F1C\u8F1F\u8F1B\u8F0C\u8F26\u8F33\u8F3B\u8F39\u8F45\u8F42\u8F3E\u8F4C\u8F49\u8F46\u8F4E\u8F57\u8F5C\u8F62\u8F63\u8F64\u8F9C\u8F9F\u8FA3\u8FAD\u8FAF\u8FB7\u8FDA\u8FE5\u8FE2\u8FEA\u8FEF\u9087\u8FF4\u9005\u8FF9\u8FFA\u9011\u9015\u9021\u900D\u901E\u9016\u900B\u9027\u9036\u9035\u9039\u8FF8"],
      ["eea1", "\u904F\u9050\u9051\u9052\u900E\u9049\u903E\u9056\u9058\u905E\u9068\u906F\u9076\u96A8\u9072\u9082\u907D\u9081\u9080\u908A\u9089\u908F\u90A8\u90AF\u90B1\u90B5\u90E2\u90E4\u6248\u90DB\u9102\u9112\u9119\u9132\u9130\u914A\u9156\u9158\u9163\u9165\u9169\u9173\u9172\u918B\u9189\u9182\u91A2\u91AB\u91AF\u91AA\u91B5\u91B4\u91BA\u91C0\u91C1\u91C9\u91CB\u91D0\u91D6\u91DF\u91E1\u91DB\u91FC\u91F5\u91F6\u921E\u91FF\u9214\u922C\u9215\u9211\u925E\u9257\u9245\u9249\u9264\u9248\u9295\u923F\u924B\u9250\u929C\u9296\u9293\u929B\u925A\u92CF\u92B9\u92B7\u92E9\u930F\u92FA\u9344\u932E"],
      ["efa1", "\u9319\u9322\u931A\u9323\u933A\u9335\u933B\u935C\u9360\u937C\u936E\u9356\u93B0\u93AC\u93AD\u9394\u93B9\u93D6\u93D7\u93E8\u93E5\u93D8\u93C3\u93DD\u93D0\u93C8\u93E4\u941A\u9414\u9413\u9403\u9407\u9410\u9436\u942B\u9435\u9421\u943A\u9441\u9452\u9444\u945B\u9460\u9462\u945E\u946A\u9229\u9470\u9475\u9477\u947D\u945A\u947C\u947E\u9481\u947F\u9582\u9587\u958A\u9594\u9596\u9598\u9599\u95A0\u95A8\u95A7\u95AD\u95BC\u95BB\u95B9\u95BE\u95CA\u6FF6\u95C3\u95CD\u95CC\u95D5\u95D4\u95D6\u95DC\u95E1\u95E5\u95E2\u9621\u9628\u962E\u962F\u9642\u964C\u964F\u964B\u9677\u965C\u965E"],
      ["f0a1", "\u965D\u965F\u9666\u9672\u966C\u968D\u9698\u9695\u9697\u96AA\u96A7\u96B1\u96B2\u96B0\u96B4\u96B6\u96B8\u96B9\u96CE\u96CB\u96C9\u96CD\u894D\u96DC\u970D\u96D5\u96F9\u9704\u9706\u9708\u9713\u970E\u9711\u970F\u9716\u9719\u9724\u972A\u9730\u9739\u973D\u973E\u9744\u9746\u9748\u9742\u9749\u975C\u9760\u9764\u9766\u9768\u52D2\u976B\u9771\u9779\u9785\u977C\u9781\u977A\u9786\u978B\u978F\u9790\u979C\u97A8\u97A6\u97A3\u97B3\u97B4\u97C3\u97C6\u97C8\u97CB\u97DC\u97ED\u9F4F\u97F2\u7ADF\u97F6\u97F5\u980F\u980C\u9838\u9824\u9821\u9837\u983D\u9846\u984F\u984B\u986B\u986F\u9870"],
      ["f1a1", "\u9871\u9874\u9873\u98AA\u98AF\u98B1\u98B6\u98C4\u98C3\u98C6\u98E9\u98EB\u9903\u9909\u9912\u9914\u9918\u9921\u991D\u991E\u9924\u9920\u992C\u992E\u993D\u993E\u9942\u9949\u9945\u9950\u994B\u9951\u9952\u994C\u9955\u9997\u9998\u99A5\u99AD\u99AE\u99BC\u99DF\u99DB\u99DD\u99D8\u99D1\u99ED\u99EE\u99F1\u99F2\u99FB\u99F8\u9A01\u9A0F\u9A05\u99E2\u9A19\u9A2B\u9A37\u9A45\u9A42\u9A40\u9A43\u9A3E\u9A55\u9A4D\u9A5B\u9A57\u9A5F\u9A62\u9A65\u9A64\u9A69\u9A6B\u9A6A\u9AAD\u9AB0\u9ABC\u9AC0\u9ACF\u9AD1\u9AD3\u9AD4\u9ADE\u9ADF\u9AE2\u9AE3\u9AE6\u9AEF\u9AEB\u9AEE\u9AF4\u9AF1\u9AF7"],
      ["f2a1", "\u9AFB\u9B06\u9B18\u9B1A\u9B1F\u9B22\u9B23\u9B25\u9B27\u9B28\u9B29\u9B2A\u9B2E\u9B2F\u9B32\u9B44\u9B43\u9B4F\u9B4D\u9B4E\u9B51\u9B58\u9B74\u9B93\u9B83\u9B91\u9B96\u9B97\u9B9F\u9BA0\u9BA8\u9BB4\u9BC0\u9BCA\u9BB9\u9BC6\u9BCF\u9BD1\u9BD2\u9BE3\u9BE2\u9BE4\u9BD4\u9BE1\u9C3A\u9BF2\u9BF1\u9BF0\u9C15\u9C14\u9C09\u9C13\u9C0C\u9C06\u9C08\u9C12\u9C0A\u9C04\u9C2E\u9C1B\u9C25\u9C24\u9C21\u9C30\u9C47\u9C32\u9C46\u9C3E\u9C5A\u9C60\u9C67\u9C76\u9C78\u9CE7\u9CEC\u9CF0\u9D09\u9D08\u9CEB\u9D03\u9D06\u9D2A\u9D26\u9DAF\u9D23\u9D1F\u9D44\u9D15\u9D12\u9D41\u9D3F\u9D3E\u9D46\u9D48"],
      ["f3a1", "\u9D5D\u9D5E\u9D64\u9D51\u9D50\u9D59\u9D72\u9D89\u9D87\u9DAB\u9D6F\u9D7A\u9D9A\u9DA4\u9DA9\u9DB2\u9DC4\u9DC1\u9DBB\u9DB8\u9DBA\u9DC6\u9DCF\u9DC2\u9DD9\u9DD3\u9DF8\u9DE6\u9DED\u9DEF\u9DFD\u9E1A\u9E1B\u9E1E\u9E75\u9E79\u9E7D\u9E81\u9E88\u9E8B\u9E8C\u9E92\u9E95\u9E91\u9E9D\u9EA5\u9EA9\u9EB8\u9EAA\u9EAD\u9761\u9ECC\u9ECE\u9ECF\u9ED0\u9ED4\u9EDC\u9EDE\u9EDD\u9EE0\u9EE5\u9EE8\u9EEF\u9EF4\u9EF6\u9EF7\u9EF9\u9EFB\u9EFC\u9EFD\u9F07\u9F08\u76B7\u9F15\u9F21\u9F2C\u9F3E\u9F4A\u9F52\u9F54\u9F63\u9F5F\u9F60\u9F61\u9F66\u9F67\u9F6C\u9F6A\u9F77\u9F72\u9F76\u9F95\u9F9C\u9FA0"],
      ["f4a1", "\u582F\u69C7\u9059\u7464\u51DC\u7199"],
      ["f9a1", "\u7E8A\u891C\u9348\u9288\u84DC\u4FC9\u70BB\u6631\u68C8\u92F9\u66FB\u5F45\u4E28\u4EE1\u4EFC\u4F00\u4F03\u4F39\u4F56\u4F92\u4F8A\u4F9A\u4F94\u4FCD\u5040\u5022\u4FFF\u501E\u5046\u5070\u5042\u5094\u50F4\u50D8\u514A\u5164\u519D\u51BE\u51EC\u5215\u529C\u52A6\u52C0\u52DB\u5300\u5307\u5324\u5372\u5393\u53B2\u53DD\uFA0E\u549C\u548A\u54A9\u54FF\u5586\u5759\u5765\u57AC\u57C8\u57C7\uFA0F\uFA10\u589E\u58B2\u590B\u5953\u595B\u595D\u5963\u59A4\u59BA\u5B56\u5BC0\u752F\u5BD8\u5BEC\u5C1E\u5CA6\u5CBA\u5CF5\u5D27\u5D53\uFA11\u5D42\u5D6D\u5DB8\u5DB9\u5DD0\u5F21\u5F34\u5F67\u5FB7"],
      ["faa1", "\u5FDE\u605D\u6085\u608A\u60DE\u60D5\u6120\u60F2\u6111\u6137\u6130\u6198\u6213\u62A6\u63F5\u6460\u649D\u64CE\u654E\u6600\u6615\u663B\u6609\u662E\u661E\u6624\u6665\u6657\u6659\uFA12\u6673\u6699\u66A0\u66B2\u66BF\u66FA\u670E\uF929\u6766\u67BB\u6852\u67C0\u6801\u6844\u68CF\uFA13\u6968\uFA14\u6998\u69E2\u6A30\u6A6B\u6A46\u6A73\u6A7E\u6AE2\u6AE4\u6BD6\u6C3F\u6C5C\u6C86\u6C6F\u6CDA\u6D04\u6D87\u6D6F\u6D96\u6DAC\u6DCF\u6DF8\u6DF2\u6DFC\u6E39\u6E5C\u6E27\u6E3C\u6EBF\u6F88\u6FB5\u6FF5\u7005\u7007\u7028\u7085\u70AB\u710F\u7104\u715C\u7146\u7147\uFA15\u71C1\u71FE\u72B1"],
      ["fba1", "\u72BE\u7324\uFA16\u7377\u73BD\u73C9\u73D6\u73E3\u73D2\u7407\u73F5\u7426\u742A\u7429\u742E\u7462\u7489\u749F\u7501\u756F\u7682\u769C\u769E\u769B\u76A6\uFA17\u7746\u52AF\u7821\u784E\u7864\u787A\u7930\uFA18\uFA19\uFA1A\u7994\uFA1B\u799B\u7AD1\u7AE7\uFA1C\u7AEB\u7B9E\uFA1D\u7D48\u7D5C\u7DB7\u7DA0\u7DD6\u7E52\u7F47\u7FA1\uFA1E\u8301\u8362\u837F\u83C7\u83F6\u8448\u84B4\u8553\u8559\u856B\uFA1F\u85B0\uFA20\uFA21\u8807\u88F5\u8A12\u8A37\u8A79\u8AA7\u8ABE\u8ADF\uFA22\u8AF6\u8B53\u8B7F\u8CF0\u8CF4\u8D12\u8D76\uFA23\u8ECF\uFA24\uFA25\u9067\u90DE\uFA26\u9115\u9127\u91DA"],
      ["fca1", "\u91D7\u91DE\u91ED\u91EE\u91E4\u91E5\u9206\u9210\u920A\u923A\u9240\u923C\u924E\u9259\u9251\u9239\u9267\u92A7\u9277\u9278\u92E7\u92D7\u92D9\u92D0\uFA27\u92D5\u92E0\u92D3\u9325\u9321\u92FB\uFA28\u931E\u92FF\u931D\u9302\u9370\u9357\u93A4\u93C6\u93DE\u93F8\u9431\u9445\u9448\u9592\uF9DC\uFA29\u969D\u96AF\u9733\u973B\u9743\u974D\u974F\u9751\u9755\u9857\u9865\uFA2A\uFA2B\u9927\uFA2C\u999E\u9A4E\u9AD9\u9ADC\u9B75\u9B72\u9B8F\u9BB1\u9BBB\u9C00\u9D70\u9D6B\uFA2D\u9E19\u9ED1"],
      ["fcf1", "\u2170", 9, "\uFFE2\uFFE4\uFF07\uFF02"],
      ["8fa2af", "\u02D8\u02C7\xB8\u02D9\u02DD\xAF\u02DB\u02DA\uFF5E\u0384\u0385"],
      ["8fa2c2", "\xA1\xA6\xBF"],
      ["8fa2eb", "\xBA\xAA\xA9\xAE\u2122\xA4\u2116"],
      ["8fa6e1", "\u0386\u0388\u0389\u038A\u03AA"],
      ["8fa6e7", "\u038C"],
      ["8fa6e9", "\u038E\u03AB"],
      ["8fa6ec", "\u038F"],
      ["8fa6f1", "\u03AC\u03AD\u03AE\u03AF\u03CA\u0390\u03CC\u03C2\u03CD\u03CB\u03B0\u03CE"],
      ["8fa7c2", "\u0402", 10, "\u040E\u040F"],
      ["8fa7f2", "\u0452", 10, "\u045E\u045F"],
      ["8fa9a1", "\xC6\u0110"],
      ["8fa9a4", "\u0126"],
      ["8fa9a6", "\u0132"],
      ["8fa9a8", "\u0141\u013F"],
      ["8fa9ab", "\u014A\xD8\u0152"],
      ["8fa9af", "\u0166\xDE"],
      ["8fa9c1", "\xE6\u0111\xF0\u0127\u0131\u0133\u0138\u0142\u0140\u0149\u014B\xF8\u0153\xDF\u0167\xFE"],
      ["8faaa1", "\xC1\xC0\xC4\xC2\u0102\u01CD\u0100\u0104\xC5\xC3\u0106\u0108\u010C\xC7\u010A\u010E\xC9\xC8\xCB\xCA\u011A\u0116\u0112\u0118"],
      ["8faaba", "\u011C\u011E\u0122\u0120\u0124\xCD\xCC\xCF\xCE\u01CF\u0130\u012A\u012E\u0128\u0134\u0136\u0139\u013D\u013B\u0143\u0147\u0145\xD1\xD3\xD2\xD6\xD4\u01D1\u0150\u014C\xD5\u0154\u0158\u0156\u015A\u015C\u0160\u015E\u0164\u0162\xDA\xD9\xDC\xDB\u016C\u01D3\u0170\u016A\u0172\u016E\u0168\u01D7\u01DB\u01D9\u01D5\u0174\xDD\u0178\u0176\u0179\u017D\u017B"],
      ["8faba1", "\xE1\xE0\xE4\xE2\u0103\u01CE\u0101\u0105\xE5\xE3\u0107\u0109\u010D\xE7\u010B\u010F\xE9\xE8\xEB\xEA\u011B\u0117\u0113\u0119\u01F5\u011D\u011F"],
      ["8fabbd", "\u0121\u0125\xED\xEC\xEF\xEE\u01D0"],
      ["8fabc5", "\u012B\u012F\u0129\u0135\u0137\u013A\u013E\u013C\u0144\u0148\u0146\xF1\xF3\xF2\xF6\xF4\u01D2\u0151\u014D\xF5\u0155\u0159\u0157\u015B\u015D\u0161\u015F\u0165\u0163\xFA\xF9\xFC\xFB\u016D\u01D4\u0171\u016B\u0173\u016F\u0169\u01D8\u01DC\u01DA\u01D6\u0175\xFD\xFF\u0177\u017A\u017E\u017C"],
      ["8fb0a1", "\u4E02\u4E04\u4E05\u4E0C\u4E12\u4E1F\u4E23\u4E24\u4E28\u4E2B\u4E2E\u4E2F\u4E30\u4E35\u4E40\u4E41\u4E44\u4E47\u4E51\u4E5A\u4E5C\u4E63\u4E68\u4E69\u4E74\u4E75\u4E79\u4E7F\u4E8D\u4E96\u4E97\u4E9D\u4EAF\u4EB9\u4EC3\u4ED0\u4EDA\u4EDB\u4EE0\u4EE1\u4EE2\u4EE8\u4EEF\u4EF1\u4EF3\u4EF5\u4EFD\u4EFE\u4EFF\u4F00\u4F02\u4F03\u4F08\u4F0B\u4F0C\u4F12\u4F15\u4F16\u4F17\u4F19\u4F2E\u4F31\u4F60\u4F33\u4F35\u4F37\u4F39\u4F3B\u4F3E\u4F40\u4F42\u4F48\u4F49\u4F4B\u4F4C\u4F52\u4F54\u4F56\u4F58\u4F5F\u4F63\u4F6A\u4F6C\u4F6E\u4F71\u4F77\u4F78\u4F79\u4F7A\u4F7D\u4F7E\u4F81\u4F82\u4F84"],
      ["8fb1a1", "\u4F85\u4F89\u4F8A\u4F8C\u4F8E\u4F90\u4F92\u4F93\u4F94\u4F97\u4F99\u4F9A\u4F9E\u4F9F\u4FB2\u4FB7\u4FB9\u4FBB\u4FBC\u4FBD\u4FBE\u4FC0\u4FC1\u4FC5\u4FC6\u4FC8\u4FC9\u4FCB\u4FCC\u4FCD\u4FCF\u4FD2\u4FDC\u4FE0\u4FE2\u4FF0\u4FF2\u4FFC\u4FFD\u4FFF\u5000\u5001\u5004\u5007\u500A\u500C\u500E\u5010\u5013\u5017\u5018\u501B\u501C\u501D\u501E\u5022\u5027\u502E\u5030\u5032\u5033\u5035\u5040\u5041\u5042\u5045\u5046\u504A\u504C\u504E\u5051\u5052\u5053\u5057\u5059\u505F\u5060\u5062\u5063\u5066\u5067\u506A\u506D\u5070\u5071\u503B\u5081\u5083\u5084\u5086\u508A\u508E\u508F\u5090"],
      ["8fb2a1", "\u5092\u5093\u5094\u5096\u509B\u509C\u509E", 4, "\u50AA\u50AF\u50B0\u50B9\u50BA\u50BD\u50C0\u50C3\u50C4\u50C7\u50CC\u50CE\u50D0\u50D3\u50D4\u50D8\u50DC\u50DD\u50DF\u50E2\u50E4\u50E6\u50E8\u50E9\u50EF\u50F1\u50F6\u50FA\u50FE\u5103\u5106\u5107\u5108\u510B\u510C\u510D\u510E\u50F2\u5110\u5117\u5119\u511B\u511C\u511D\u511E\u5123\u5127\u5128\u512C\u512D\u512F\u5131\u5133\u5134\u5135\u5138\u5139\u5142\u514A\u514F\u5153\u5155\u5157\u5158\u515F\u5164\u5166\u517E\u5183\u5184\u518B\u518E\u5198\u519D\u51A1\u51A3\u51AD\u51B8\u51BA\u51BC\u51BE\u51BF\u51C2"],
      ["8fb3a1", "\u51C8\u51CF\u51D1\u51D2\u51D3\u51D5\u51D8\u51DE\u51E2\u51E5\u51EE\u51F2\u51F3\u51F4\u51F7\u5201\u5202\u5205\u5212\u5213\u5215\u5216\u5218\u5222\u5228\u5231\u5232\u5235\u523C\u5245\u5249\u5255\u5257\u5258\u525A\u525C\u525F\u5260\u5261\u5266\u526E\u5277\u5278\u5279\u5280\u5282\u5285\u528A\u528C\u5293\u5295\u5296\u5297\u5298\u529A\u529C\u52A4\u52A5\u52A6\u52A7\u52AF\u52B0\u52B6\u52B7\u52B8\u52BA\u52BB\u52BD\u52C0\u52C4\u52C6\u52C8\u52CC\u52CF\u52D1\u52D4\u52D6\u52DB\u52DC\u52E1\u52E5\u52E8\u52E9\u52EA\u52EC\u52F0\u52F1\u52F4\u52F6\u52F7\u5300\u5303\u530A\u530B"],
      ["8fb4a1", "\u530C\u5311\u5313\u5318\u531B\u531C\u531E\u531F\u5325\u5327\u5328\u5329\u532B\u532C\u532D\u5330\u5332\u5335\u533C\u533D\u533E\u5342\u534C\u534B\u5359\u535B\u5361\u5363\u5365\u536C\u536D\u5372\u5379\u537E\u5383\u5387\u5388\u538E\u5393\u5394\u5399\u539D\u53A1\u53A4\u53AA\u53AB\u53AF\u53B2\u53B4\u53B5\u53B7\u53B8\u53BA\u53BD\u53C0\u53C5\u53CF\u53D2\u53D3\u53D5\u53DA\u53DD\u53DE\u53E0\u53E6\u53E7\u53F5\u5402\u5413\u541A\u5421\u5427\u5428\u542A\u542F\u5431\u5434\u5435\u5443\u5444\u5447\u544D\u544F\u545E\u5462\u5464\u5466\u5467\u5469\u546B\u546D\u546E\u5474\u547F"],
      ["8fb5a1", "\u5481\u5483\u5485\u5488\u5489\u548D\u5491\u5495\u5496\u549C\u549F\u54A1\u54A6\u54A7\u54A9\u54AA\u54AD\u54AE\u54B1\u54B7\u54B9\u54BA\u54BB\u54BF\u54C6\u54CA\u54CD\u54CE\u54E0\u54EA\u54EC\u54EF\u54F6\u54FC\u54FE\u54FF\u5500\u5501\u5505\u5508\u5509\u550C\u550D\u550E\u5515\u552A\u552B\u5532\u5535\u5536\u553B\u553C\u553D\u5541\u5547\u5549\u554A\u554D\u5550\u5551\u5558\u555A\u555B\u555E\u5560\u5561\u5564\u5566\u557F\u5581\u5582\u5586\u5588\u558E\u558F\u5591\u5592\u5593\u5594\u5597\u55A3\u55A4\u55AD\u55B2\u55BF\u55C1\u55C3\u55C6\u55C9\u55CB\u55CC\u55CE\u55D1\u55D2"],
      ["8fb6a1", "\u55D3\u55D7\u55D8\u55DB\u55DE\u55E2\u55E9\u55F6\u55FF\u5605\u5608\u560A\u560D", 5, "\u5619\u562C\u5630\u5633\u5635\u5637\u5639\u563B\u563C\u563D\u563F\u5640\u5641\u5643\u5644\u5646\u5649\u564B\u564D\u564F\u5654\u565E\u5660\u5661\u5662\u5663\u5666\u5669\u566D\u566F\u5671\u5672\u5675\u5684\u5685\u5688\u568B\u568C\u5695\u5699\u569A\u569D\u569E\u569F\u56A6\u56A7\u56A8\u56A9\u56AB\u56AC\u56AD\u56B1\u56B3\u56B7\u56BE\u56C5\u56C9\u56CA\u56CB\u56CF\u56D0\u56CC\u56CD\u56D9\u56DC\u56DD\u56DF\u56E1\u56E4", 4, "\u56F1\u56EB\u56ED"],
      ["8fb7a1", "\u56F6\u56F7\u5701\u5702\u5707\u570A\u570C\u5711\u5715\u571A\u571B\u571D\u5720\u5722\u5723\u5724\u5725\u5729\u572A\u572C\u572E\u572F\u5733\u5734\u573D\u573E\u573F\u5745\u5746\u574C\u574D\u5752\u5762\u5765\u5767\u5768\u576B\u576D", 4, "\u5773\u5774\u5775\u5777\u5779\u577A\u577B\u577C\u577E\u5781\u5783\u578C\u5794\u5797\u5799\u579A\u579C\u579D\u579E\u579F\u57A1\u5795\u57A7\u57A8\u57A9\u57AC\u57B8\u57BD\u57C7\u57C8\u57CC\u57CF\u57D5\u57DD\u57DE\u57E4\u57E6\u57E7\u57E9\u57ED\u57F0\u57F5\u57F6\u57F8\u57FD\u57FE\u57FF\u5803\u5804\u5808\u5809\u57E1"],
      ["8fb8a1", "\u580C\u580D\u581B\u581E\u581F\u5820\u5826\u5827\u582D\u5832\u5839\u583F\u5849\u584C\u584D\u584F\u5850\u5855\u585F\u5861\u5864\u5867\u5868\u5878\u587C\u587F\u5880\u5881\u5887\u5888\u5889\u588A\u588C\u588D\u588F\u5890\u5894\u5896\u589D\u58A0\u58A1\u58A2\u58A6\u58A9\u58B1\u58B2\u58C4\u58BC\u58C2\u58C8\u58CD\u58CE\u58D0\u58D2\u58D4\u58D6\u58DA\u58DD\u58E1\u58E2\u58E9\u58F3\u5905\u5906\u590B\u590C\u5912\u5913\u5914\u8641\u591D\u5921\u5923\u5924\u5928\u592F\u5930\u5933\u5935\u5936\u593F\u5943\u5946\u5952\u5953\u5959\u595B\u595D\u595E\u595F\u5961\u5963\u596B\u596D"],
      ["8fb9a1", "\u596F\u5972\u5975\u5976\u5979\u597B\u597C\u598B\u598C\u598E\u5992\u5995\u5997\u599F\u59A4\u59A7\u59AD\u59AE\u59AF\u59B0\u59B3\u59B7\u59BA\u59BC\u59C1\u59C3\u59C4\u59C8\u59CA\u59CD\u59D2\u59DD\u59DE\u59DF\u59E3\u59E4\u59E7\u59EE\u59EF\u59F1\u59F2\u59F4\u59F7\u5A00\u5A04\u5A0C\u5A0D\u5A0E\u5A12\u5A13\u5A1E\u5A23\u5A24\u5A27\u5A28\u5A2A\u5A2D\u5A30\u5A44\u5A45\u5A47\u5A48\u5A4C\u5A50\u5A55\u5A5E\u5A63\u5A65\u5A67\u5A6D\u5A77\u5A7A\u5A7B\u5A7E\u5A8B\u5A90\u5A93\u5A96\u5A99\u5A9C\u5A9E\u5A9F\u5AA0\u5AA2\u5AA7\u5AAC\u5AB1\u5AB2\u5AB3\u5AB5\u5AB8\u5ABA\u5ABB\u5ABF"],
      ["8fbaa1", "\u5AC4\u5AC6\u5AC8\u5ACF\u5ADA\u5ADC\u5AE0\u5AE5\u5AEA\u5AEE\u5AF5\u5AF6\u5AFD\u5B00\u5B01\u5B08\u5B17\u5B34\u5B19\u5B1B\u5B1D\u5B21\u5B25\u5B2D\u5B38\u5B41\u5B4B\u5B4C\u5B52\u5B56\u5B5E\u5B68\u5B6E\u5B6F\u5B7C\u5B7D\u5B7E\u5B7F\u5B81\u5B84\u5B86\u5B8A\u5B8E\u5B90\u5B91\u5B93\u5B94\u5B96\u5BA8\u5BA9\u5BAC\u5BAD\u5BAF\u5BB1\u5BB2\u5BB7\u5BBA\u5BBC\u5BC0\u5BC1\u5BCD\u5BCF\u5BD6", 4, "\u5BE0\u5BEF\u5BF1\u5BF4\u5BFD\u5C0C\u5C17\u5C1E\u5C1F\u5C23\u5C26\u5C29\u5C2B\u5C2C\u5C2E\u5C30\u5C32\u5C35\u5C36\u5C59\u5C5A\u5C5C\u5C62\u5C63\u5C67\u5C68\u5C69"],
      ["8fbba1", "\u5C6D\u5C70\u5C74\u5C75\u5C7A\u5C7B\u5C7C\u5C7D\u5C87\u5C88\u5C8A\u5C8F\u5C92\u5C9D\u5C9F\u5CA0\u5CA2\u5CA3\u5CA6\u5CAA\u5CB2\u5CB4\u5CB5\u5CBA\u5CC9\u5CCB\u5CD2\u5CDD\u5CD7\u5CEE\u5CF1\u5CF2\u5CF4\u5D01\u5D06\u5D0D\u5D12\u5D2B\u5D23\u5D24\u5D26\u5D27\u5D31\u5D34\u5D39\u5D3D\u5D3F\u5D42\u5D43\u5D46\u5D48\u5D55\u5D51\u5D59\u5D4A\u5D5F\u5D60\u5D61\u5D62\u5D64\u5D6A\u5D6D\u5D70\u5D79\u5D7A\u5D7E\u5D7F\u5D81\u5D83\u5D88\u5D8A\u5D92\u5D93\u5D94\u5D95\u5D99\u5D9B\u5D9F\u5DA0\u5DA7\u5DAB\u5DB0\u5DB4\u5DB8\u5DB9\u5DC3\u5DC7\u5DCB\u5DD0\u5DCE\u5DD8\u5DD9\u5DE0\u5DE4"],
      ["8fbca1", "\u5DE9\u5DF8\u5DF9\u5E00\u5E07\u5E0D\u5E12\u5E14\u5E15\u5E18\u5E1F\u5E20\u5E2E\u5E28\u5E32\u5E35\u5E3E\u5E4B\u5E50\u5E49\u5E51\u5E56\u5E58\u5E5B\u5E5C\u5E5E\u5E68\u5E6A", 4, "\u5E70\u5E80\u5E8B\u5E8E\u5EA2\u5EA4\u5EA5\u5EA8\u5EAA\u5EAC\u5EB1\u5EB3\u5EBD\u5EBE\u5EBF\u5EC6\u5ECC\u5ECB\u5ECE\u5ED1\u5ED2\u5ED4\u5ED5\u5EDC\u5EDE\u5EE5\u5EEB\u5F02\u5F06\u5F07\u5F08\u5F0E\u5F19\u5F1C\u5F1D\u5F21\u5F22\u5F23\u5F24\u5F28\u5F2B\u5F2C\u5F2E\u5F30\u5F34\u5F36\u5F3B\u5F3D\u5F3F\u5F40\u5F44\u5F45\u5F47\u5F4D\u5F50\u5F54\u5F58\u5F5B\u5F60\u5F63\u5F64\u5F67"],
      ["8fbda1", "\u5F6F\u5F72\u5F74\u5F75\u5F78\u5F7A\u5F7D\u5F7E\u5F89\u5F8D\u5F8F\u5F96\u5F9C\u5F9D\u5FA2\u5FA7\u5FAB\u5FA4\u5FAC\u5FAF\u5FB0\u5FB1\u5FB8\u5FC4\u5FC7\u5FC8\u5FC9\u5FCB\u5FD0", 4, "\u5FDE\u5FE1\u5FE2\u5FE8\u5FE9\u5FEA\u5FEC\u5FED\u5FEE\u5FEF\u5FF2\u5FF3\u5FF6\u5FFA\u5FFC\u6007\u600A\u600D\u6013\u6014\u6017\u6018\u601A\u601F\u6024\u602D\u6033\u6035\u6040\u6047\u6048\u6049\u604C\u6051\u6054\u6056\u6057\u605D\u6061\u6067\u6071\u607E\u607F\u6082\u6086\u6088\u608A\u608E\u6091\u6093\u6095\u6098\u609D\u609E\u60A2\u60A4\u60A5\u60A8\u60B0\u60B1\u60B7"],
      ["8fbea1", "\u60BB\u60BE\u60C2\u60C4\u60C8\u60C9\u60CA\u60CB\u60CE\u60CF\u60D4\u60D5\u60D9\u60DB\u60DD\u60DE\u60E2\u60E5\u60F2\u60F5\u60F8\u60FC\u60FD\u6102\u6107\u610A\u610C\u6110", 4, "\u6116\u6117\u6119\u611C\u611E\u6122\u612A\u612B\u6130\u6131\u6135\u6136\u6137\u6139\u6141\u6145\u6146\u6149\u615E\u6160\u616C\u6172\u6178\u617B\u617C\u617F\u6180\u6181\u6183\u6184\u618B\u618D\u6192\u6193\u6197\u6198\u619C\u619D\u619F\u61A0\u61A5\u61A8\u61AA\u61AD\u61B8\u61B9\u61BC\u61C0\u61C1\u61C2\u61CE\u61CF\u61D5\u61DC\u61DD\u61DE\u61DF\u61E1\u61E2\u61E7\u61E9\u61E5"],
      ["8fbfa1", "\u61EC\u61ED\u61EF\u6201\u6203\u6204\u6207\u6213\u6215\u621C\u6220\u6222\u6223\u6227\u6229\u622B\u6239\u623D\u6242\u6243\u6244\u6246\u624C\u6250\u6251\u6252\u6254\u6256\u625A\u625C\u6264\u626D\u626F\u6273\u627A\u627D\u628D\u628E\u628F\u6290\u62A6\u62A8\u62B3\u62B6\u62B7\u62BA\u62BE\u62BF\u62C4\u62CE\u62D5\u62D6\u62DA\u62EA\u62F2\u62F4\u62FC\u62FD\u6303\u6304\u630A\u630B\u630D\u6310\u6313\u6316\u6318\u6329\u632A\u632D\u6335\u6336\u6339\u633C\u6341\u6342\u6343\u6344\u6346\u634A\u634B\u634E\u6352\u6353\u6354\u6358\u635B\u6365\u6366\u636C\u636D\u6371\u6374\u6375"],
      ["8fc0a1", "\u6378\u637C\u637D\u637F\u6382\u6384\u6387\u638A\u6390\u6394\u6395\u6399\u639A\u639E\u63A4\u63A6\u63AD\u63AE\u63AF\u63BD\u63C1\u63C5\u63C8\u63CE\u63D1\u63D3\u63D4\u63D5\u63DC\u63E0\u63E5\u63EA\u63EC\u63F2\u63F3\u63F5\u63F8\u63F9\u6409\u640A\u6410\u6412\u6414\u6418\u641E\u6420\u6422\u6424\u6425\u6429\u642A\u642F\u6430\u6435\u643D\u643F\u644B\u644F\u6451\u6452\u6453\u6454\u645A\u645B\u645C\u645D\u645F\u6460\u6461\u6463\u646D\u6473\u6474\u647B\u647D\u6485\u6487\u648F\u6490\u6491\u6498\u6499\u649B\u649D\u649F\u64A1\u64A3\u64A6\u64A8\u64AC\u64B3\u64BD\u64BE\u64BF"],
      ["8fc1a1", "\u64C4\u64C9\u64CA\u64CB\u64CC\u64CE\u64D0\u64D1\u64D5\u64D7\u64E4\u64E5\u64E9\u64EA\u64ED\u64F0\u64F5\u64F7\u64FB\u64FF\u6501\u6504\u6508\u6509\u650A\u650F\u6513\u6514\u6516\u6519\u651B\u651E\u651F\u6522\u6526\u6529\u652E\u6531\u653A\u653C\u653D\u6543\u6547\u6549\u6550\u6552\u6554\u655F\u6560\u6567\u656B\u657A\u657D\u6581\u6585\u658A\u6592\u6595\u6598\u659D\u65A0\u65A3\u65A6\u65AE\u65B2\u65B3\u65B4\u65BF\u65C2\u65C8\u65C9\u65CE\u65D0\u65D4\u65D6\u65D8\u65DF\u65F0\u65F2\u65F4\u65F5\u65F9\u65FE\u65FF\u6600\u6604\u6608\u6609\u660D\u6611\u6612\u6615\u6616\u661D"],
      ["8fc2a1", "\u661E\u6621\u6622\u6623\u6624\u6626\u6629\u662A\u662B\u662C\u662E\u6630\u6631\u6633\u6639\u6637\u6640\u6645\u6646\u664A\u664C\u6651\u664E\u6657\u6658\u6659\u665B\u665C\u6660\u6661\u66FB\u666A\u666B\u666C\u667E\u6673\u6675\u667F\u6677\u6678\u6679\u667B\u6680\u667C\u668B\u668C\u668D\u6690\u6692\u6699\u669A\u669B\u669C\u669F\u66A0\u66A4\u66AD\u66B1\u66B2\u66B5\u66BB\u66BF\u66C0\u66C2\u66C3\u66C8\u66CC\u66CE\u66CF\u66D4\u66DB\u66DF\u66E8\u66EB\u66EC\u66EE\u66FA\u6705\u6707\u670E\u6713\u6719\u671C\u6720\u6722\u6733\u673E\u6745\u6747\u6748\u674C\u6754\u6755\u675D"],
      ["8fc3a1", "\u6766\u676C\u676E\u6774\u6776\u677B\u6781\u6784\u678E\u678F\u6791\u6793\u6796\u6798\u6799\u679B\u67B0\u67B1\u67B2\u67B5\u67BB\u67BC\u67BD\u67F9\u67C0\u67C2\u67C3\u67C5\u67C8\u67C9\u67D2\u67D7\u67D9\u67DC\u67E1\u67E6\u67F0\u67F2\u67F6\u67F7\u6852\u6814\u6819\u681D\u681F\u6828\u6827\u682C\u682D\u682F\u6830\u6831\u6833\u683B\u683F\u6844\u6845\u684A\u684C\u6855\u6857\u6858\u685B\u686B\u686E", 4, "\u6875\u6879\u687A\u687B\u687C\u6882\u6884\u6886\u6888\u6896\u6898\u689A\u689C\u68A1\u68A3\u68A5\u68A9\u68AA\u68AE\u68B2\u68BB\u68C5\u68C8\u68CC\u68CF"],
      ["8fc4a1", "\u68D0\u68D1\u68D3\u68D6\u68D9\u68DC\u68DD\u68E5\u68E8\u68EA\u68EB\u68EC\u68ED\u68F0\u68F1\u68F5\u68F6\u68FB\u68FC\u68FD\u6906\u6909\u690A\u6910\u6911\u6913\u6916\u6917\u6931\u6933\u6935\u6938\u693B\u6942\u6945\u6949\u694E\u6957\u695B\u6963\u6964\u6965\u6966\u6968\u6969\u696C\u6970\u6971\u6972\u697A\u697B\u697F\u6980\u698D\u6992\u6996\u6998\u69A1\u69A5\u69A6\u69A8\u69AB\u69AD\u69AF\u69B7\u69B8\u69BA\u69BC\u69C5\u69C8\u69D1\u69D6\u69D7\u69E2\u69E5\u69EE\u69EF\u69F1\u69F3\u69F5\u69FE\u6A00\u6A01\u6A03\u6A0F\u6A11\u6A15\u6A1A\u6A1D\u6A20\u6A24\u6A28\u6A30\u6A32"],
      ["8fc5a1", "\u6A34\u6A37\u6A3B\u6A3E\u6A3F\u6A45\u6A46\u6A49\u6A4A\u6A4E\u6A50\u6A51\u6A52\u6A55\u6A56\u6A5B\u6A64\u6A67\u6A6A\u6A71\u6A73\u6A7E\u6A81\u6A83\u6A86\u6A87\u6A89\u6A8B\u6A91\u6A9B\u6A9D\u6A9E\u6A9F\u6AA5\u6AAB\u6AAF\u6AB0\u6AB1\u6AB4\u6ABD\u6ABE\u6ABF\u6AC6\u6AC9\u6AC8\u6ACC\u6AD0\u6AD4\u6AD5\u6AD6\u6ADC\u6ADD\u6AE4\u6AE7\u6AEC\u6AF0\u6AF1\u6AF2\u6AFC\u6AFD\u6B02\u6B03\u6B06\u6B07\u6B09\u6B0F\u6B10\u6B11\u6B17\u6B1B\u6B1E\u6B24\u6B28\u6B2B\u6B2C\u6B2F\u6B35\u6B36\u6B3B\u6B3F\u6B46\u6B4A\u6B4D\u6B52\u6B56\u6B58\u6B5D\u6B60\u6B67\u6B6B\u6B6E\u6B70\u6B75\u6B7D"],
      ["8fc6a1", "\u6B7E\u6B82\u6B85\u6B97\u6B9B\u6B9F\u6BA0\u6BA2\u6BA3\u6BA8\u6BA9\u6BAC\u6BAD\u6BAE\u6BB0\u6BB8\u6BB9\u6BBD\u6BBE\u6BC3\u6BC4\u6BC9\u6BCC\u6BD6\u6BDA\u6BE1\u6BE3\u6BE6\u6BE7\u6BEE\u6BF1\u6BF7\u6BF9\u6BFF\u6C02\u6C04\u6C05\u6C09\u6C0D\u6C0E\u6C10\u6C12\u6C19\u6C1F\u6C26\u6C27\u6C28\u6C2C\u6C2E\u6C33\u6C35\u6C36\u6C3A\u6C3B\u6C3F\u6C4A\u6C4B\u6C4D\u6C4F\u6C52\u6C54\u6C59\u6C5B\u6C5C\u6C6B\u6C6D\u6C6F\u6C74\u6C76\u6C78\u6C79\u6C7B\u6C85\u6C86\u6C87\u6C89\u6C94\u6C95\u6C97\u6C98\u6C9C\u6C9F\u6CB0\u6CB2\u6CB4\u6CC2\u6CC6\u6CCD\u6CCF\u6CD0\u6CD1\u6CD2\u6CD4\u6CD6"],
      ["8fc7a1", "\u6CDA\u6CDC\u6CE0\u6CE7\u6CE9\u6CEB\u6CEC\u6CEE\u6CF2\u6CF4\u6D04\u6D07\u6D0A\u6D0E\u6D0F\u6D11\u6D13\u6D1A\u6D26\u6D27\u6D28\u6C67\u6D2E\u6D2F\u6D31\u6D39\u6D3C\u6D3F\u6D57\u6D5E\u6D5F\u6D61\u6D65\u6D67\u6D6F\u6D70\u6D7C\u6D82\u6D87\u6D91\u6D92\u6D94\u6D96\u6D97\u6D98\u6DAA\u6DAC\u6DB4\u6DB7\u6DB9\u6DBD\u6DBF\u6DC4\u6DC8\u6DCA\u6DCE\u6DCF\u6DD6\u6DDB\u6DDD\u6DDF\u6DE0\u6DE2\u6DE5\u6DE9\u6DEF\u6DF0\u6DF4\u6DF6\u6DFC\u6E00\u6E04\u6E1E\u6E22\u6E27\u6E32\u6E36\u6E39\u6E3B\u6E3C\u6E44\u6E45\u6E48\u6E49\u6E4B\u6E4F\u6E51\u6E52\u6E53\u6E54\u6E57\u6E5C\u6E5D\u6E5E"],
      ["8fc8a1", "\u6E62\u6E63\u6E68\u6E73\u6E7B\u6E7D\u6E8D\u6E93\u6E99\u6EA0\u6EA7\u6EAD\u6EAE\u6EB1\u6EB3\u6EBB\u6EBF\u6EC0\u6EC1\u6EC3\u6EC7\u6EC8\u6ECA\u6ECD\u6ECE\u6ECF\u6EEB\u6EED\u6EEE\u6EF9\u6EFB\u6EFD\u6F04\u6F08\u6F0A\u6F0C\u6F0D\u6F16\u6F18\u6F1A\u6F1B\u6F26\u6F29\u6F2A\u6F2F\u6F30\u6F33\u6F36\u6F3B\u6F3C\u6F2D\u6F4F\u6F51\u6F52\u6F53\u6F57\u6F59\u6F5A\u6F5D\u6F5E\u6F61\u6F62\u6F68\u6F6C\u6F7D\u6F7E\u6F83\u6F87\u6F88\u6F8B\u6F8C\u6F8D\u6F90\u6F92\u6F93\u6F94\u6F96\u6F9A\u6F9F\u6FA0\u6FA5\u6FA6\u6FA7\u6FA8\u6FAE\u6FAF\u6FB0\u6FB5\u6FB6\u6FBC\u6FC5\u6FC7\u6FC8\u6FCA"],
      ["8fc9a1", "\u6FDA\u6FDE\u6FE8\u6FE9\u6FF0\u6FF5\u6FF9\u6FFC\u6FFD\u7000\u7005\u7006\u7007\u700D\u7017\u7020\u7023\u702F\u7034\u7037\u7039\u703C\u7043\u7044\u7048\u7049\u704A\u704B\u7054\u7055\u705D\u705E\u704E\u7064\u7065\u706C\u706E\u7075\u7076\u707E\u7081\u7085\u7086\u7094", 4, "\u709B\u70A4\u70AB\u70B0\u70B1\u70B4\u70B7\u70CA\u70D1\u70D3\u70D4\u70D5\u70D6\u70D8\u70DC\u70E4\u70FA\u7103", 4, "\u710B\u710C\u710F\u711E\u7120\u712B\u712D\u712F\u7130\u7131\u7138\u7141\u7145\u7146\u7147\u714A\u714B\u7150\u7152\u7157\u715A\u715C\u715E\u7160"],
      ["8fcaa1", "\u7168\u7179\u7180\u7185\u7187\u718C\u7192\u719A\u719B\u71A0\u71A2\u71AF\u71B0\u71B2\u71B3\u71BA\u71BF\u71C0\u71C1\u71C4\u71CB\u71CC\u71D3\u71D6\u71D9\u71DA\u71DC\u71F8\u71FE\u7200\u7207\u7208\u7209\u7213\u7217\u721A\u721D\u721F\u7224\u722B\u722F\u7234\u7238\u7239\u7241\u7242\u7243\u7245\u724E\u724F\u7250\u7253\u7255\u7256\u725A\u725C\u725E\u7260\u7263\u7268\u726B\u726E\u726F\u7271\u7277\u7278\u727B\u727C\u727F\u7284\u7289\u728D\u728E\u7293\u729B\u72A8\u72AD\u72AE\u72B1\u72B4\u72BE\u72C1\u72C7\u72C9\u72CC\u72D5\u72D6\u72D8\u72DF\u72E5\u72F3\u72F4\u72FA\u72FB"],
      ["8fcba1", "\u72FE\u7302\u7304\u7305\u7307\u730B\u730D\u7312\u7313\u7318\u7319\u731E\u7322\u7324\u7327\u7328\u732C\u7331\u7332\u7335\u733A\u733B\u733D\u7343\u734D\u7350\u7352\u7356\u7358\u735D\u735E\u735F\u7360\u7366\u7367\u7369\u736B\u736C\u736E\u736F\u7371\u7377\u7379\u737C\u7380\u7381\u7383\u7385\u7386\u738E\u7390\u7393\u7395\u7397\u7398\u739C\u739E\u739F\u73A0\u73A2\u73A5\u73A6\u73AA\u73AB\u73AD\u73B5\u73B7\u73B9\u73BC\u73BD\u73BF\u73C5\u73C6\u73C9\u73CB\u73CC\u73CF\u73D2\u73D3\u73D6\u73D9\u73DD\u73E1\u73E3\u73E6\u73E7\u73E9\u73F4\u73F5\u73F7\u73F9\u73FA\u73FB\u73FD"],
      ["8fcca1", "\u73FF\u7400\u7401\u7404\u7407\u740A\u7411\u741A\u741B\u7424\u7426\u7428", 9, "\u7439\u7440\u7443\u7444\u7446\u7447\u744B\u744D\u7451\u7452\u7457\u745D\u7462\u7466\u7467\u7468\u746B\u746D\u746E\u7471\u7472\u7480\u7481\u7485\u7486\u7487\u7489\u748F\u7490\u7491\u7492\u7498\u7499\u749A\u749C\u749F\u74A0\u74A1\u74A3\u74A6\u74A8\u74A9\u74AA\u74AB\u74AE\u74AF\u74B1\u74B2\u74B5\u74B9\u74BB\u74BF\u74C8\u74C9\u74CC\u74D0\u74D3\u74D8\u74DA\u74DB\u74DE\u74DF\u74E4\u74E8\u74EA\u74EB\u74EF\u74F4\u74FA\u74FB\u74FC\u74FF\u7506"],
      ["8fcda1", "\u7512\u7516\u7517\u7520\u7521\u7524\u7527\u7529\u752A\u752F\u7536\u7539\u753D\u753E\u753F\u7540\u7543\u7547\u7548\u754E\u7550\u7552\u7557\u755E\u755F\u7561\u756F\u7571\u7579", 5, "\u7581\u7585\u7590\u7592\u7593\u7595\u7599\u759C\u75A2\u75A4\u75B4\u75BA\u75BF\u75C0\u75C1\u75C4\u75C6\u75CC\u75CE\u75CF\u75D7\u75DC\u75DF\u75E0\u75E1\u75E4\u75E7\u75EC\u75EE\u75EF\u75F1\u75F9\u7600\u7602\u7603\u7604\u7607\u7608\u760A\u760C\u760F\u7612\u7613\u7615\u7616\u7619\u761B\u761C\u761D\u761E\u7623\u7625\u7626\u7629\u762D\u7632\u7633\u7635\u7638\u7639"],
      ["8fcea1", "\u763A\u763C\u764A\u7640\u7641\u7643\u7644\u7645\u7649\u764B\u7655\u7659\u765F\u7664\u7665\u766D\u766E\u766F\u7671\u7674\u7681\u7685\u768C\u768D\u7695\u769B\u769C\u769D\u769F\u76A0\u76A2", 6, "\u76AA\u76AD\u76BD\u76C1\u76C5\u76C9\u76CB\u76CC\u76CE\u76D4\u76D9\u76E0\u76E6\u76E8\u76EC\u76F0\u76F1\u76F6\u76F9\u76FC\u7700\u7706\u770A\u770E\u7712\u7714\u7715\u7717\u7719\u771A\u771C\u7722\u7728\u772D\u772E\u772F\u7734\u7735\u7736\u7739\u773D\u773E\u7742\u7745\u7746\u774A\u774D\u774E\u774F\u7752\u7756\u7757\u775C\u775E\u775F\u7760\u7762"],
      ["8fcfa1", "\u7764\u7767\u776A\u776C\u7770\u7772\u7773\u7774\u777A\u777D\u7780\u7784\u778C\u778D\u7794\u7795\u7796\u779A\u779F\u77A2\u77A7\u77AA\u77AE\u77AF\u77B1\u77B5\u77BE\u77C3\u77C9\u77D1\u77D2\u77D5\u77D9\u77DE\u77DF\u77E0\u77E4\u77E6\u77EA\u77EC\u77F0\u77F1\u77F4\u77F8\u77FB\u7805\u7806\u7809\u780D\u780E\u7811\u781D\u7821\u7822\u7823\u782D\u782E\u7830\u7835\u7837\u7843\u7844\u7847\u7848\u784C\u784E\u7852\u785C\u785E\u7860\u7861\u7863\u7864\u7868\u786A\u786E\u787A\u787E\u788A\u788F\u7894\u7898\u78A1\u789D\u789E\u789F\u78A4\u78A8\u78AC\u78AD\u78B0\u78B1\u78B2\u78B3"],
      ["8fd0a1", "\u78BB\u78BD\u78BF\u78C7\u78C8\u78C9\u78CC\u78CE\u78D2\u78D3\u78D5\u78D6\u78E4\u78DB\u78DF\u78E0\u78E1\u78E6\u78EA\u78F2\u78F3\u7900\u78F6\u78F7\u78FA\u78FB\u78FF\u7906\u790C\u7910\u791A\u791C\u791E\u791F\u7920\u7925\u7927\u7929\u792D\u7931\u7934\u7935\u793B\u793D\u793F\u7944\u7945\u7946\u794A\u794B\u794F\u7951\u7954\u7958\u795B\u795C\u7967\u7969\u796B\u7972\u7979\u797B\u797C\u797E\u798B\u798C\u7991\u7993\u7994\u7995\u7996\u7998\u799B\u799C\u79A1\u79A8\u79A9\u79AB\u79AF\u79B1\u79B4\u79B8\u79BB\u79C2\u79C4\u79C7\u79C8\u79CA\u79CF\u79D4\u79D6\u79DA\u79DD\u79DE"],
      ["8fd1a1", "\u79E0\u79E2\u79E5\u79EA\u79EB\u79ED\u79F1\u79F8\u79FC\u7A02\u7A03\u7A07\u7A09\u7A0A\u7A0C\u7A11\u7A15\u7A1B\u7A1E\u7A21\u7A27\u7A2B\u7A2D\u7A2F\u7A30\u7A34\u7A35\u7A38\u7A39\u7A3A\u7A44\u7A45\u7A47\u7A48\u7A4C\u7A55\u7A56\u7A59\u7A5C\u7A5D\u7A5F\u7A60\u7A65\u7A67\u7A6A\u7A6D\u7A75\u7A78\u7A7E\u7A80\u7A82\u7A85\u7A86\u7A8A\u7A8B\u7A90\u7A91\u7A94\u7A9E\u7AA0\u7AA3\u7AAC\u7AB3\u7AB5\u7AB9\u7ABB\u7ABC\u7AC6\u7AC9\u7ACC\u7ACE\u7AD1\u7ADB\u7AE8\u7AE9\u7AEB\u7AEC\u7AF1\u7AF4\u7AFB\u7AFD\u7AFE\u7B07\u7B14\u7B1F\u7B23\u7B27\u7B29\u7B2A\u7B2B\u7B2D\u7B2E\u7B2F\u7B30"],
      ["8fd2a1", "\u7B31\u7B34\u7B3D\u7B3F\u7B40\u7B41\u7B47\u7B4E\u7B55\u7B60\u7B64\u7B66\u7B69\u7B6A\u7B6D\u7B6F\u7B72\u7B73\u7B77\u7B84\u7B89\u7B8E\u7B90\u7B91\u7B96\u7B9B\u7B9E\u7BA0\u7BA5\u7BAC\u7BAF\u7BB0\u7BB2\u7BB5\u7BB6\u7BBA\u7BBB\u7BBC\u7BBD\u7BC2\u7BC5\u7BC8\u7BCA\u7BD4\u7BD6\u7BD7\u7BD9\u7BDA\u7BDB\u7BE8\u7BEA\u7BF2\u7BF4\u7BF5\u7BF8\u7BF9\u7BFA\u7BFC\u7BFE\u7C01\u7C02\u7C03\u7C04\u7C06\u7C09\u7C0B\u7C0C\u7C0E\u7C0F\u7C19\u7C1B\u7C20\u7C25\u7C26\u7C28\u7C2C\u7C31\u7C33\u7C34\u7C36\u7C39\u7C3A\u7C46\u7C4A\u7C55\u7C51\u7C52\u7C53\u7C59", 5],
      ["8fd3a1", "\u7C61\u7C63\u7C67\u7C69\u7C6D\u7C6E\u7C70\u7C72\u7C79\u7C7C\u7C7D\u7C86\u7C87\u7C8F\u7C94\u7C9E\u7CA0\u7CA6\u7CB0\u7CB6\u7CB7\u7CBA\u7CBB\u7CBC\u7CBF\u7CC4\u7CC7\u7CC8\u7CC9\u7CCD\u7CCF\u7CD3\u7CD4\u7CD5\u7CD7\u7CD9\u7CDA\u7CDD\u7CE6\u7CE9\u7CEB\u7CF5\u7D03\u7D07\u7D08\u7D09\u7D0F\u7D11\u7D12\u7D13\u7D16\u7D1D\u7D1E\u7D23\u7D26\u7D2A\u7D2D\u7D31\u7D3C\u7D3D\u7D3E\u7D40\u7D41\u7D47\u7D48\u7D4D\u7D51\u7D53\u7D57\u7D59\u7D5A\u7D5C\u7D5D\u7D65\u7D67\u7D6A\u7D70\u7D78\u7D7A\u7D7B\u7D7F\u7D81\u7D82\u7D83\u7D85\u7D86\u7D88\u7D8B\u7D8C\u7D8D\u7D91\u7D96\u7D97\u7D9D"],
      ["8fd4a1", "\u7D9E\u7DA6\u7DA7\u7DAA\u7DB3\u7DB6\u7DB7\u7DB9\u7DC2", 4, "\u7DCC\u7DCD\u7DCE\u7DD7\u7DD9\u7E00\u7DE2\u7DE5\u7DE6\u7DEA\u7DEB\u7DED\u7DF1\u7DF5\u7DF6\u7DF9\u7DFA\u7E08\u7E10\u7E11\u7E15\u7E17\u7E1C\u7E1D\u7E20\u7E27\u7E28\u7E2C\u7E2D\u7E2F\u7E33\u7E36\u7E3F\u7E44\u7E45\u7E47\u7E4E\u7E50\u7E52\u7E58\u7E5F\u7E61\u7E62\u7E65\u7E6B\u7E6E\u7E6F\u7E73\u7E78\u7E7E\u7E81\u7E86\u7E87\u7E8A\u7E8D\u7E91\u7E95\u7E98\u7E9A\u7E9D\u7E9E\u7F3C\u7F3B\u7F3D\u7F3E\u7F3F\u7F43\u7F44\u7F47\u7F4F\u7F52\u7F53\u7F5B\u7F5C\u7F5D\u7F61\u7F63\u7F64\u7F65\u7F66\u7F6D"],
      ["8fd5a1", "\u7F71\u7F7D\u7F7E\u7F7F\u7F80\u7F8B\u7F8D\u7F8F\u7F90\u7F91\u7F96\u7F97\u7F9C\u7FA1\u7FA2\u7FA6\u7FAA\u7FAD\u7FB4\u7FBC\u7FBF\u7FC0\u7FC3\u7FC8\u7FCE\u7FCF\u7FDB\u7FDF\u7FE3\u7FE5\u7FE8\u7FEC\u7FEE\u7FEF\u7FF2\u7FFA\u7FFD\u7FFE\u7FFF\u8007\u8008\u800A\u800D\u800E\u800F\u8011\u8013\u8014\u8016\u801D\u801E\u801F\u8020\u8024\u8026\u802C\u802E\u8030\u8034\u8035\u8037\u8039\u803A\u803C\u803E\u8040\u8044\u8060\u8064\u8066\u806D\u8071\u8075\u8081\u8088\u808E\u809C\u809E\u80A6\u80A7\u80AB\u80B8\u80B9\u80C8\u80CD\u80CF\u80D2\u80D4\u80D5\u80D7\u80D8\u80E0\u80ED\u80EE"],
      ["8fd6a1", "\u80F0\u80F2\u80F3\u80F6\u80F9\u80FA\u80FE\u8103\u810B\u8116\u8117\u8118\u811C\u811E\u8120\u8124\u8127\u812C\u8130\u8135\u813A\u813C\u8145\u8147\u814A\u814C\u8152\u8157\u8160\u8161\u8167\u8168\u8169\u816D\u816F\u8177\u8181\u8190\u8184\u8185\u8186\u818B\u818E\u8196\u8198\u819B\u819E\u81A2\u81AE\u81B2\u81B4\u81BB\u81CB\u81C3\u81C5\u81CA\u81CE\u81CF\u81D5\u81D7\u81DB\u81DD\u81DE\u81E1\u81E4\u81EB\u81EC\u81F0\u81F1\u81F2\u81F5\u81F6\u81F8\u81F9\u81FD\u81FF\u8200\u8203\u820F\u8213\u8214\u8219\u821A\u821D\u8221\u8222\u8228\u8232\u8234\u823A\u8243\u8244\u8245\u8246"],
      ["8fd7a1", "\u824B\u824E\u824F\u8251\u8256\u825C\u8260\u8263\u8267\u826D\u8274\u827B\u827D\u827F\u8280\u8281\u8283\u8284\u8287\u8289\u828A\u828E\u8291\u8294\u8296\u8298\u829A\u829B\u82A0\u82A1\u82A3\u82A4\u82A7\u82A8\u82A9\u82AA\u82AE\u82B0\u82B2\u82B4\u82B7\u82BA\u82BC\u82BE\u82BF\u82C6\u82D0\u82D5\u82DA\u82E0\u82E2\u82E4\u82E8\u82EA\u82ED\u82EF\u82F6\u82F7\u82FD\u82FE\u8300\u8301\u8307\u8308\u830A\u830B\u8354\u831B\u831D\u831E\u831F\u8321\u8322\u832C\u832D\u832E\u8330\u8333\u8337\u833A\u833C\u833D\u8342\u8343\u8344\u8347\u834D\u834E\u8351\u8355\u8356\u8357\u8370\u8378"],
      ["8fd8a1", "\u837D\u837F\u8380\u8382\u8384\u8386\u838D\u8392\u8394\u8395\u8398\u8399\u839B\u839C\u839D\u83A6\u83A7\u83A9\u83AC\u83BE\u83BF\u83C0\u83C7\u83C9\u83CF\u83D0\u83D1\u83D4\u83DD\u8353\u83E8\u83EA\u83F6\u83F8\u83F9\u83FC\u8401\u8406\u840A\u840F\u8411\u8415\u8419\u83AD\u842F\u8439\u8445\u8447\u8448\u844A\u844D\u844F\u8451\u8452\u8456\u8458\u8459\u845A\u845C\u8460\u8464\u8465\u8467\u846A\u8470\u8473\u8474\u8476\u8478\u847C\u847D\u8481\u8485\u8492\u8493\u8495\u849E\u84A6\u84A8\u84A9\u84AA\u84AF\u84B1\u84B4\u84BA\u84BD\u84BE\u84C0\u84C2\u84C7\u84C8\u84CC\u84CF\u84D3"],
      ["8fd9a1", "\u84DC\u84E7\u84EA\u84EF\u84F0\u84F1\u84F2\u84F7\u8532\u84FA\u84FB\u84FD\u8502\u8503\u8507\u850C\u850E\u8510\u851C\u851E\u8522\u8523\u8524\u8525\u8527\u852A\u852B\u852F\u8533\u8534\u8536\u853F\u8546\u854F", 4, "\u8556\u8559\u855C", 6, "\u8564\u856B\u856F\u8579\u857A\u857B\u857D\u857F\u8581\u8585\u8586\u8589\u858B\u858C\u858F\u8593\u8598\u859D\u859F\u85A0\u85A2\u85A5\u85A7\u85B4\u85B6\u85B7\u85B8\u85BC\u85BD\u85BE\u85BF\u85C2\u85C7\u85CA\u85CB\u85CE\u85AD\u85D8\u85DA\u85DF\u85E0\u85E6\u85E8\u85ED\u85F3\u85F6\u85FC"],
      ["8fdaa1", "\u85FF\u8600\u8604\u8605\u860D\u860E\u8610\u8611\u8612\u8618\u8619\u861B\u861E\u8621\u8627\u8629\u8636\u8638\u863A\u863C\u863D\u8640\u8642\u8646\u8652\u8653\u8656\u8657\u8658\u8659\u865D\u8660", 4, "\u8669\u866C\u866F\u8675\u8676\u8677\u867A\u868D\u8691\u8696\u8698\u869A\u869C\u86A1\u86A6\u86A7\u86A8\u86AD\u86B1\u86B3\u86B4\u86B5\u86B7\u86B8\u86B9\u86BF\u86C0\u86C1\u86C3\u86C5\u86D1\u86D2\u86D5\u86D7\u86DA\u86DC\u86E0\u86E3\u86E5\u86E7\u8688\u86FA\u86FC\u86FD\u8704\u8705\u8707\u870B\u870E\u870F\u8710\u8713\u8714\u8719\u871E\u871F\u8721\u8723"],
      ["8fdba1", "\u8728\u872E\u872F\u8731\u8732\u8739\u873A\u873C\u873D\u873E\u8740\u8743\u8745\u874D\u8758\u875D\u8761\u8764\u8765\u876F\u8771\u8772\u877B\u8783", 6, "\u878B\u878C\u8790\u8793\u8795\u8797\u8798\u8799\u879E\u87A0\u87A3\u87A7\u87AC\u87AD\u87AE\u87B1\u87B5\u87BE\u87BF\u87C1\u87C8\u87C9\u87CA\u87CE\u87D5\u87D6\u87D9\u87DA\u87DC\u87DF\u87E2\u87E3\u87E4\u87EA\u87EB\u87ED\u87F1\u87F3\u87F8\u87FA\u87FF\u8801\u8803\u8806\u8809\u880A\u880B\u8810\u8819\u8812\u8813\u8814\u8818\u881A\u881B\u881C\u881E\u881F\u8828\u882D\u882E\u8830\u8832\u8835"],
      ["8fdca1", "\u883A\u883C\u8841\u8843\u8845\u8848\u8849\u884A\u884B\u884E\u8851\u8855\u8856\u8858\u885A\u885C\u885F\u8860\u8864\u8869\u8871\u8879\u887B\u8880\u8898\u889A\u889B\u889C\u889F\u88A0\u88A8\u88AA\u88BA\u88BD\u88BE\u88C0\u88CA", 4, "\u88D1\u88D2\u88D3\u88DB\u88DE\u88E7\u88EF\u88F0\u88F1\u88F5\u88F7\u8901\u8906\u890D\u890E\u890F\u8915\u8916\u8918\u8919\u891A\u891C\u8920\u8926\u8927\u8928\u8930\u8931\u8932\u8935\u8939\u893A\u893E\u8940\u8942\u8945\u8946\u8949\u894F\u8952\u8957\u895A\u895B\u895C\u8961\u8962\u8963\u896B\u896E\u8970\u8973\u8975\u897A"],
      ["8fdda1", "\u897B\u897C\u897D\u8989\u898D\u8990\u8994\u8995\u899B\u899C\u899F\u89A0\u89A5\u89B0\u89B4\u89B5\u89B6\u89B7\u89BC\u89D4", 4, "\u89E5\u89E9\u89EB\u89ED\u89F1\u89F3\u89F6\u89F9\u89FD\u89FF\u8A04\u8A05\u8A07\u8A0F\u8A11\u8A12\u8A14\u8A15\u8A1E\u8A20\u8A22\u8A24\u8A26\u8A2B\u8A2C\u8A2F\u8A35\u8A37\u8A3D\u8A3E\u8A40\u8A43\u8A45\u8A47\u8A49\u8A4D\u8A4E\u8A53\u8A56\u8A57\u8A58\u8A5C\u8A5D\u8A61\u8A65\u8A67\u8A75\u8A76\u8A77\u8A79\u8A7A\u8A7B\u8A7E\u8A7F\u8A80\u8A83\u8A86\u8A8B\u8A8F\u8A90\u8A92\u8A96\u8A97\u8A99\u8A9F\u8AA7\u8AA9\u8AAE\u8AAF\u8AB3"],
      ["8fdea1", "\u8AB6\u8AB7\u8ABB\u8ABE\u8AC3\u8AC6\u8AC8\u8AC9\u8ACA\u8AD1\u8AD3\u8AD4\u8AD5\u8AD7\u8ADD\u8ADF\u8AEC\u8AF0\u8AF4\u8AF5\u8AF6\u8AFC\u8AFF\u8B05\u8B06\u8B0B\u8B11\u8B1C\u8B1E\u8B1F\u8B0A\u8B2D\u8B30\u8B37\u8B3C\u8B42", 4, "\u8B48\u8B52\u8B53\u8B54\u8B59\u8B4D\u8B5E\u8B63\u8B6D\u8B76\u8B78\u8B79\u8B7C\u8B7E\u8B81\u8B84\u8B85\u8B8B\u8B8D\u8B8F\u8B94\u8B95\u8B9C\u8B9E\u8B9F\u8C38\u8C39\u8C3D\u8C3E\u8C45\u8C47\u8C49\u8C4B\u8C4F\u8C51\u8C53\u8C54\u8C57\u8C58\u8C5B\u8C5D\u8C59\u8C63\u8C64\u8C66\u8C68\u8C69\u8C6D\u8C73\u8C75\u8C76\u8C7B\u8C7E\u8C86"],
      ["8fdfa1", "\u8C87\u8C8B\u8C90\u8C92\u8C93\u8C99\u8C9B\u8C9C\u8CA4\u8CB9\u8CBA\u8CC5\u8CC6\u8CC9\u8CCB\u8CCF\u8CD6\u8CD5\u8CD9\u8CDD\u8CE1\u8CE8\u8CEC\u8CEF\u8CF0\u8CF2\u8CF5\u8CF7\u8CF8\u8CFE\u8CFF\u8D01\u8D03\u8D09\u8D12\u8D17\u8D1B\u8D65\u8D69\u8D6C\u8D6E\u8D7F\u8D82\u8D84\u8D88\u8D8D\u8D90\u8D91\u8D95\u8D9E\u8D9F\u8DA0\u8DA6\u8DAB\u8DAC\u8DAF\u8DB2\u8DB5\u8DB7\u8DB9\u8DBB\u8DC0\u8DC5\u8DC6\u8DC7\u8DC8\u8DCA\u8DCE\u8DD1\u8DD4\u8DD5\u8DD7\u8DD9\u8DE4\u8DE5\u8DE7\u8DEC\u8DF0\u8DBC\u8DF1\u8DF2\u8DF4\u8DFD\u8E01\u8E04\u8E05\u8E06\u8E0B\u8E11\u8E14\u8E16\u8E20\u8E21\u8E22"],
      ["8fe0a1", "\u8E23\u8E26\u8E27\u8E31\u8E33\u8E36\u8E37\u8E38\u8E39\u8E3D\u8E40\u8E41\u8E4B\u8E4D\u8E4E\u8E4F\u8E54\u8E5B\u8E5C\u8E5D\u8E5E\u8E61\u8E62\u8E69\u8E6C\u8E6D\u8E6F\u8E70\u8E71\u8E79\u8E7A\u8E7B\u8E82\u8E83\u8E89\u8E90\u8E92\u8E95\u8E9A\u8E9B\u8E9D\u8E9E\u8EA2\u8EA7\u8EA9\u8EAD\u8EAE\u8EB3\u8EB5\u8EBA\u8EBB\u8EC0\u8EC1\u8EC3\u8EC4\u8EC7\u8ECF\u8ED1\u8ED4\u8EDC\u8EE8\u8EEE\u8EF0\u8EF1\u8EF7\u8EF9\u8EFA\u8EED\u8F00\u8F02\u8F07\u8F08\u8F0F\u8F10\u8F16\u8F17\u8F18\u8F1E\u8F20\u8F21\u8F23\u8F25\u8F27\u8F28\u8F2C\u8F2D\u8F2E\u8F34\u8F35\u8F36\u8F37\u8F3A\u8F40\u8F41"],
      ["8fe1a1", "\u8F43\u8F47\u8F4F\u8F51", 4, "\u8F58\u8F5D\u8F5E\u8F65\u8F9D\u8FA0\u8FA1\u8FA4\u8FA5\u8FA6\u8FB5\u8FB6\u8FB8\u8FBE\u8FC0\u8FC1\u8FC6\u8FCA\u8FCB\u8FCD\u8FD0\u8FD2\u8FD3\u8FD5\u8FE0\u8FE3\u8FE4\u8FE8\u8FEE\u8FF1\u8FF5\u8FF6\u8FFB\u8FFE\u9002\u9004\u9008\u900C\u9018\u901B\u9028\u9029\u902F\u902A\u902C\u902D\u9033\u9034\u9037\u903F\u9043\u9044\u904C\u905B\u905D\u9062\u9066\u9067\u906C\u9070\u9074\u9079\u9085\u9088\u908B\u908C\u908E\u9090\u9095\u9097\u9098\u9099\u909B\u90A0\u90A1\u90A2\u90A5\u90B0\u90B2\u90B3\u90B4\u90B6\u90BD\u90CC\u90BE\u90C3"],
      ["8fe2a1", "\u90C4\u90C5\u90C7\u90C8\u90D5\u90D7\u90D8\u90D9\u90DC\u90DD\u90DF\u90E5\u90D2\u90F6\u90EB\u90EF\u90F0\u90F4\u90FE\u90FF\u9100\u9104\u9105\u9106\u9108\u910D\u9110\u9114\u9116\u9117\u9118\u911A\u911C\u911E\u9120\u9125\u9122\u9123\u9127\u9129\u912E\u912F\u9131\u9134\u9136\u9137\u9139\u913A\u913C\u913D\u9143\u9147\u9148\u914F\u9153\u9157\u9159\u915A\u915B\u9161\u9164\u9167\u916D\u9174\u9179\u917A\u917B\u9181\u9183\u9185\u9186\u918A\u918E\u9191\u9193\u9194\u9195\u9198\u919E\u91A1\u91A6\u91A8\u91AC\u91AD\u91AE\u91B0\u91B1\u91B2\u91B3\u91B6\u91BB\u91BC\u91BD\u91BF"],
      ["8fe3a1", "\u91C2\u91C3\u91C5\u91D3\u91D4\u91D7\u91D9\u91DA\u91DE\u91E4\u91E5\u91E9\u91EA\u91EC", 5, "\u91F7\u91F9\u91FB\u91FD\u9200\u9201\u9204\u9205\u9206\u9207\u9209\u920A\u920C\u9210\u9212\u9213\u9216\u9218\u921C\u921D\u9223\u9224\u9225\u9226\u9228\u922E\u922F\u9230\u9233\u9235\u9236\u9238\u9239\u923A\u923C\u923E\u9240\u9242\u9243\u9246\u9247\u924A\u924D\u924E\u924F\u9251\u9258\u9259\u925C\u925D\u9260\u9261\u9265\u9267\u9268\u9269\u926E\u926F\u9270\u9275", 4, "\u927B\u927C\u927D\u927F\u9288\u9289\u928A\u928D\u928E\u9292\u9297"],
      ["8fe4a1", "\u9299\u929F\u92A0\u92A4\u92A5\u92A7\u92A8\u92AB\u92AF\u92B2\u92B6\u92B8\u92BA\u92BB\u92BC\u92BD\u92BF", 4, "\u92C5\u92C6\u92C7\u92C8\u92CB\u92CC\u92CD\u92CE\u92D0\u92D3\u92D5\u92D7\u92D8\u92D9\u92DC\u92DD\u92DF\u92E0\u92E1\u92E3\u92E5\u92E7\u92E8\u92EC\u92EE\u92F0\u92F9\u92FB\u92FF\u9300\u9302\u9308\u930D\u9311\u9314\u9315\u931C\u931D\u931E\u931F\u9321\u9324\u9325\u9327\u9329\u932A\u9333\u9334\u9336\u9337\u9347\u9348\u9349\u9350\u9351\u9352\u9355\u9357\u9358\u935A\u935E\u9364\u9365\u9367\u9369\u936A\u936D\u936F\u9370\u9371\u9373\u9374\u9376"],
      ["8fe5a1", "\u937A\u937D\u937F\u9380\u9381\u9382\u9388\u938A\u938B\u938D\u938F\u9392\u9395\u9398\u939B\u939E\u93A1\u93A3\u93A4\u93A6\u93A8\u93AB\u93B4\u93B5\u93B6\u93BA\u93A9\u93C1\u93C4\u93C5\u93C6\u93C7\u93C9", 4, "\u93D3\u93D9\u93DC\u93DE\u93DF\u93E2\u93E6\u93E7\u93F9\u93F7\u93F8\u93FA\u93FB\u93FD\u9401\u9402\u9404\u9408\u9409\u940D\u940E\u940F\u9415\u9416\u9417\u941F\u942E\u942F\u9431\u9432\u9433\u9434\u943B\u943F\u943D\u9443\u9445\u9448\u944A\u944C\u9455\u9459\u945C\u945F\u9461\u9463\u9468\u946B\u946D\u946E\u946F\u9471\u9472\u9484\u9483\u9578\u9579"],
      ["8fe6a1", "\u957E\u9584\u9588\u958C\u958D\u958E\u959D\u959E\u959F\u95A1\u95A6\u95A9\u95AB\u95AC\u95B4\u95B6\u95BA\u95BD\u95BF\u95C6\u95C8\u95C9\u95CB\u95D0\u95D1\u95D2\u95D3\u95D9\u95DA\u95DD\u95DE\u95DF\u95E0\u95E4\u95E6\u961D\u961E\u9622\u9624\u9625\u9626\u962C\u9631\u9633\u9637\u9638\u9639\u963A\u963C\u963D\u9641\u9652\u9654\u9656\u9657\u9658\u9661\u966E\u9674\u967B\u967C\u967E\u967F\u9681\u9682\u9683\u9684\u9689\u9691\u9696\u969A\u969D\u969F\u96A4\u96A5\u96A6\u96A9\u96AE\u96AF\u96B3\u96BA\u96CA\u96D2\u5DB2\u96D8\u96DA\u96DD\u96DE\u96DF\u96E9\u96EF\u96F1\u96FA\u9702"],
      ["8fe7a1", "\u9703\u9705\u9709\u971A\u971B\u971D\u9721\u9722\u9723\u9728\u9731\u9733\u9741\u9743\u974A\u974E\u974F\u9755\u9757\u9758\u975A\u975B\u9763\u9767\u976A\u976E\u9773\u9776\u9777\u9778\u977B\u977D\u977F\u9780\u9789\u9795\u9796\u9797\u9799\u979A\u979E\u979F\u97A2\u97AC\u97AE\u97B1\u97B2\u97B5\u97B6\u97B8\u97B9\u97BA\u97BC\u97BE\u97BF\u97C1\u97C4\u97C5\u97C7\u97C9\u97CA\u97CC\u97CD\u97CE\u97D0\u97D1\u97D4\u97D7\u97D8\u97D9\u97DD\u97DE\u97E0\u97DB\u97E1\u97E4\u97EF\u97F1\u97F4\u97F7\u97F8\u97FA\u9807\u980A\u9819\u980D\u980E\u9814\u9816\u981C\u981E\u9820\u9823\u9826"],
      ["8fe8a1", "\u982B\u982E\u982F\u9830\u9832\u9833\u9835\u9825\u983E\u9844\u9847\u984A\u9851\u9852\u9853\u9856\u9857\u9859\u985A\u9862\u9863\u9865\u9866\u986A\u986C\u98AB\u98AD\u98AE\u98B0\u98B4\u98B7\u98B8\u98BA\u98BB\u98BF\u98C2\u98C5\u98C8\u98CC\u98E1\u98E3\u98E5\u98E6\u98E7\u98EA\u98F3\u98F6\u9902\u9907\u9908\u9911\u9915\u9916\u9917\u991A\u991B\u991C\u991F\u9922\u9926\u9927\u992B\u9931", 4, "\u9939\u993A\u993B\u993C\u9940\u9941\u9946\u9947\u9948\u994D\u994E\u9954\u9958\u9959\u995B\u995C\u995E\u995F\u9960\u999B\u999D\u999F\u99A6\u99B0\u99B1\u99B2\u99B5"],
      ["8fe9a1", "\u99B9\u99BA\u99BD\u99BF\u99C3\u99C9\u99D3\u99D4\u99D9\u99DA\u99DC\u99DE\u99E7\u99EA\u99EB\u99EC\u99F0\u99F4\u99F5\u99F9\u99FD\u99FE\u9A02\u9A03\u9A04\u9A0B\u9A0C\u9A10\u9A11\u9A16\u9A1E\u9A20\u9A22\u9A23\u9A24\u9A27\u9A2D\u9A2E\u9A33\u9A35\u9A36\u9A38\u9A47\u9A41\u9A44\u9A4A\u9A4B\u9A4C\u9A4E\u9A51\u9A54\u9A56\u9A5D\u9AAA\u9AAC\u9AAE\u9AAF\u9AB2\u9AB4\u9AB5\u9AB6\u9AB9\u9ABB\u9ABE\u9ABF\u9AC1\u9AC3\u9AC6\u9AC8\u9ACE\u9AD0\u9AD2\u9AD5\u9AD6\u9AD7\u9ADB\u9ADC\u9AE0\u9AE4\u9AE5\u9AE7\u9AE9\u9AEC\u9AF2\u9AF3\u9AF5\u9AF9\u9AFA\u9AFD\u9AFF", 4],
      ["8feaa1", "\u9B04\u9B05\u9B08\u9B09\u9B0B\u9B0C\u9B0D\u9B0E\u9B10\u9B12\u9B16\u9B19\u9B1B\u9B1C\u9B20\u9B26\u9B2B\u9B2D\u9B33\u9B34\u9B35\u9B37\u9B39\u9B3A\u9B3D\u9B48\u9B4B\u9B4C\u9B55\u9B56\u9B57\u9B5B\u9B5E\u9B61\u9B63\u9B65\u9B66\u9B68\u9B6A", 4, "\u9B73\u9B75\u9B77\u9B78\u9B79\u9B7F\u9B80\u9B84\u9B85\u9B86\u9B87\u9B89\u9B8A\u9B8B\u9B8D\u9B8F\u9B90\u9B94\u9B9A\u9B9D\u9B9E\u9BA6\u9BA7\u9BA9\u9BAC\u9BB0\u9BB1\u9BB2\u9BB7\u9BB8\u9BBB\u9BBC\u9BBE\u9BBF\u9BC1\u9BC7\u9BC8\u9BCE\u9BD0\u9BD7\u9BD8\u9BDD\u9BDF\u9BE5\u9BE7\u9BEA\u9BEB\u9BEF\u9BF3\u9BF7\u9BF8"],
      ["8feba1", "\u9BF9\u9BFA\u9BFD\u9BFF\u9C00\u9C02\u9C0B\u9C0F\u9C11\u9C16\u9C18\u9C19\u9C1A\u9C1C\u9C1E\u9C22\u9C23\u9C26", 4, "\u9C31\u9C35\u9C36\u9C37\u9C3D\u9C41\u9C43\u9C44\u9C45\u9C49\u9C4A\u9C4E\u9C4F\u9C50\u9C53\u9C54\u9C56\u9C58\u9C5B\u9C5D\u9C5E\u9C5F\u9C63\u9C69\u9C6A\u9C5C\u9C6B\u9C68\u9C6E\u9C70\u9C72\u9C75\u9C77\u9C7B\u9CE6\u9CF2\u9CF7\u9CF9\u9D0B\u9D02\u9D11\u9D17\u9D18\u9D1C\u9D1D\u9D1E\u9D2F\u9D30\u9D32\u9D33\u9D34\u9D3A\u9D3C\u9D45\u9D3D\u9D42\u9D43\u9D47\u9D4A\u9D53\u9D54\u9D5F\u9D63\u9D62\u9D65\u9D69\u9D6A\u9D6B\u9D70\u9D76\u9D77\u9D7B"],
      ["8feca1", "\u9D7C\u9D7E\u9D83\u9D84\u9D86\u9D8A\u9D8D\u9D8E\u9D92\u9D93\u9D95\u9D96\u9D97\u9D98\u9DA1\u9DAA\u9DAC\u9DAE\u9DB1\u9DB5\u9DB9\u9DBC\u9DBF\u9DC3\u9DC7\u9DC9\u9DCA\u9DD4\u9DD5\u9DD6\u9DD7\u9DDA\u9DDE\u9DDF\u9DE0\u9DE5\u9DE7\u9DE9\u9DEB\u9DEE\u9DF0\u9DF3\u9DF4\u9DFE\u9E0A\u9E02\u9E07\u9E0E\u9E10\u9E11\u9E12\u9E15\u9E16\u9E19\u9E1C\u9E1D\u9E7A\u9E7B\u9E7C\u9E80\u9E82\u9E83\u9E84\u9E85\u9E87\u9E8E\u9E8F\u9E96\u9E98\u9E9B\u9E9E\u9EA4\u9EA8\u9EAC\u9EAE\u9EAF\u9EB0\u9EB3\u9EB4\u9EB5\u9EC6\u9EC8\u9ECB\u9ED5\u9EDF\u9EE4\u9EE7\u9EEC\u9EED\u9EEE\u9EF0\u9EF1\u9EF2\u9EF5"],
      ["8feda1", "\u9EF8\u9EFF\u9F02\u9F03\u9F09\u9F0F\u9F10\u9F11\u9F12\u9F14\u9F16\u9F17\u9F19\u9F1A\u9F1B\u9F1F\u9F22\u9F26\u9F2A\u9F2B\u9F2F\u9F31\u9F32\u9F34\u9F37\u9F39\u9F3A\u9F3C\u9F3D\u9F3F\u9F41\u9F43", 4, "\u9F53\u9F55\u9F56\u9F57\u9F58\u9F5A\u9F5D\u9F5E\u9F68\u9F69\u9F6D", 4, "\u9F73\u9F75\u9F7A\u9F7D\u9F8F\u9F90\u9F91\u9F92\u9F94\u9F96\u9F97\u9F9E\u9FA1\u9FA2\u9FA3\u9FA5"]
    ];
  }
});

// node_modules/iconv-lite/encodings/tables/cp936.json
var require_cp936 = __commonJS({
  "node_modules/iconv-lite/encodings/tables/cp936.json"(exports2, module2) {
    module2.exports = [
      ["0", "\0", 127, "\u20AC"],
      ["8140", "\u4E02\u4E04\u4E05\u4E06\u4E0F\u4E12\u4E17\u4E1F\u4E20\u4E21\u4E23\u4E26\u4E29\u4E2E\u4E2F\u4E31\u4E33\u4E35\u4E37\u4E3C\u4E40\u4E41\u4E42\u4E44\u4E46\u4E4A\u4E51\u4E55\u4E57\u4E5A\u4E5B\u4E62\u4E63\u4E64\u4E65\u4E67\u4E68\u4E6A", 5, "\u4E72\u4E74", 9, "\u4E7F", 6, "\u4E87\u4E8A"],
      ["8180", "\u4E90\u4E96\u4E97\u4E99\u4E9C\u4E9D\u4E9E\u4EA3\u4EAA\u4EAF\u4EB0\u4EB1\u4EB4\u4EB6\u4EB7\u4EB8\u4EB9\u4EBC\u4EBD\u4EBE\u4EC8\u4ECC\u4ECF\u4ED0\u4ED2\u4EDA\u4EDB\u4EDC\u4EE0\u4EE2\u4EE6\u4EE7\u4EE9\u4EED\u4EEE\u4EEF\u4EF1\u4EF4\u4EF8\u4EF9\u4EFA\u4EFC\u4EFE\u4F00\u4F02", 6, "\u4F0B\u4F0C\u4F12", 4, "\u4F1C\u4F1D\u4F21\u4F23\u4F28\u4F29\u4F2C\u4F2D\u4F2E\u4F31\u4F33\u4F35\u4F37\u4F39\u4F3B\u4F3E", 4, "\u4F44\u4F45\u4F47", 5, "\u4F52\u4F54\u4F56\u4F61\u4F62\u4F66\u4F68\u4F6A\u4F6B\u4F6D\u4F6E\u4F71\u4F72\u4F75\u4F77\u4F78\u4F79\u4F7A\u4F7D\u4F80\u4F81\u4F82\u4F85\u4F86\u4F87\u4F8A\u4F8C\u4F8E\u4F90\u4F92\u4F93\u4F95\u4F96\u4F98\u4F99\u4F9A\u4F9C\u4F9E\u4F9F\u4FA1\u4FA2"],
      ["8240", "\u4FA4\u4FAB\u4FAD\u4FB0", 4, "\u4FB6", 8, "\u4FC0\u4FC1\u4FC2\u4FC6\u4FC7\u4FC8\u4FC9\u4FCB\u4FCC\u4FCD\u4FD2", 4, "\u4FD9\u4FDB\u4FE0\u4FE2\u4FE4\u4FE5\u4FE7\u4FEB\u4FEC\u4FF0\u4FF2\u4FF4\u4FF5\u4FF6\u4FF7\u4FF9\u4FFB\u4FFC\u4FFD\u4FFF", 11],
      ["8280", "\u500B\u500E\u5010\u5011\u5013\u5015\u5016\u5017\u501B\u501D\u501E\u5020\u5022\u5023\u5024\u5027\u502B\u502F", 10, "\u503B\u503D\u503F\u5040\u5041\u5042\u5044\u5045\u5046\u5049\u504A\u504B\u504D\u5050", 4, "\u5056\u5057\u5058\u5059\u505B\u505D", 7, "\u5066", 5, "\u506D", 8, "\u5078\u5079\u507A\u507C\u507D\u5081\u5082\u5083\u5084\u5086\u5087\u5089\u508A\u508B\u508C\u508E", 20, "\u50A4\u50A6\u50AA\u50AB\u50AD", 4, "\u50B3", 6, "\u50BC"],
      ["8340", "\u50BD", 17, "\u50D0", 5, "\u50D7\u50D8\u50D9\u50DB", 10, "\u50E8\u50E9\u50EA\u50EB\u50EF\u50F0\u50F1\u50F2\u50F4\u50F6", 4, "\u50FC", 9, "\u5108"],
      ["8380", "\u5109\u510A\u510C", 5, "\u5113", 13, "\u5122", 28, "\u5142\u5147\u514A\u514C\u514E\u514F\u5150\u5152\u5153\u5157\u5158\u5159\u515B\u515D", 4, "\u5163\u5164\u5166\u5167\u5169\u516A\u516F\u5172\u517A\u517E\u517F\u5183\u5184\u5186\u5187\u518A\u518B\u518E\u518F\u5190\u5191\u5193\u5194\u5198\u519A\u519D\u519E\u519F\u51A1\u51A3\u51A6", 4, "\u51AD\u51AE\u51B4\u51B8\u51B9\u51BA\u51BE\u51BF\u51C1\u51C2\u51C3\u51C5\u51C8\u51CA\u51CD\u51CE\u51D0\u51D2", 5],
      ["8440", "\u51D8\u51D9\u51DA\u51DC\u51DE\u51DF\u51E2\u51E3\u51E5", 5, "\u51EC\u51EE\u51F1\u51F2\u51F4\u51F7\u51FE\u5204\u5205\u5209\u520B\u520C\u520F\u5210\u5213\u5214\u5215\u521C\u521E\u521F\u5221\u5222\u5223\u5225\u5226\u5227\u522A\u522C\u522F\u5231\u5232\u5234\u5235\u523C\u523E\u5244", 5, "\u524B\u524E\u524F\u5252\u5253\u5255\u5257\u5258"],
      ["8480", "\u5259\u525A\u525B\u525D\u525F\u5260\u5262\u5263\u5264\u5266\u5268\u526B\u526C\u526D\u526E\u5270\u5271\u5273", 9, "\u527E\u5280\u5283", 4, "\u5289", 6, "\u5291\u5292\u5294", 6, "\u529C\u52A4\u52A5\u52A6\u52A7\u52AE\u52AF\u52B0\u52B4", 9, "\u52C0\u52C1\u52C2\u52C4\u52C5\u52C6\u52C8\u52CA\u52CC\u52CD\u52CE\u52CF\u52D1\u52D3\u52D4\u52D5\u52D7\u52D9", 5, "\u52E0\u52E1\u52E2\u52E3\u52E5", 10, "\u52F1", 7, "\u52FB\u52FC\u52FD\u5301\u5302\u5303\u5304\u5307\u5309\u530A\u530B\u530C\u530E"],
      ["8540", "\u5311\u5312\u5313\u5314\u5318\u531B\u531C\u531E\u531F\u5322\u5324\u5325\u5327\u5328\u5329\u532B\u532C\u532D\u532F", 9, "\u533C\u533D\u5340\u5342\u5344\u5346\u534B\u534C\u534D\u5350\u5354\u5358\u5359\u535B\u535D\u5365\u5368\u536A\u536C\u536D\u5372\u5376\u5379\u537B\u537C\u537D\u537E\u5380\u5381\u5383\u5387\u5388\u538A\u538E\u538F"],
      ["8580", "\u5390", 4, "\u5396\u5397\u5399\u539B\u539C\u539E\u53A0\u53A1\u53A4\u53A7\u53AA\u53AB\u53AC\u53AD\u53AF", 6, "\u53B7\u53B8\u53B9\u53BA\u53BC\u53BD\u53BE\u53C0\u53C3", 4, "\u53CE\u53CF\u53D0\u53D2\u53D3\u53D5\u53DA\u53DC\u53DD\u53DE\u53E1\u53E2\u53E7\u53F4\u53FA\u53FE\u53FF\u5400\u5402\u5405\u5407\u540B\u5414\u5418\u5419\u541A\u541C\u5422\u5424\u5425\u542A\u5430\u5433\u5436\u5437\u543A\u543D\u543F\u5441\u5442\u5444\u5445\u5447\u5449\u544C\u544D\u544E\u544F\u5451\u545A\u545D", 4, "\u5463\u5465\u5467\u5469", 7, "\u5474\u5479\u547A\u547E\u547F\u5481\u5483\u5485\u5487\u5488\u5489\u548A\u548D\u5491\u5493\u5497\u5498\u549C\u549E\u549F\u54A0\u54A1"],
      ["8640", "\u54A2\u54A5\u54AE\u54B0\u54B2\u54B5\u54B6\u54B7\u54B9\u54BA\u54BC\u54BE\u54C3\u54C5\u54CA\u54CB\u54D6\u54D8\u54DB\u54E0", 4, "\u54EB\u54EC\u54EF\u54F0\u54F1\u54F4", 5, "\u54FB\u54FE\u5500\u5502\u5503\u5504\u5505\u5508\u550A", 4, "\u5512\u5513\u5515", 5, "\u551C\u551D\u551E\u551F\u5521\u5525\u5526"],
      ["8680", "\u5528\u5529\u552B\u552D\u5532\u5534\u5535\u5536\u5538\u5539\u553A\u553B\u553D\u5540\u5542\u5545\u5547\u5548\u554B", 4, "\u5551\u5552\u5553\u5554\u5557", 4, "\u555D\u555E\u555F\u5560\u5562\u5563\u5568\u5569\u556B\u556F", 5, "\u5579\u557A\u557D\u557F\u5585\u5586\u558C\u558D\u558E\u5590\u5592\u5593\u5595\u5596\u5597\u559A\u559B\u559E\u55A0", 6, "\u55A8", 8, "\u55B2\u55B4\u55B6\u55B8\u55BA\u55BC\u55BF", 4, "\u55C6\u55C7\u55C8\u55CA\u55CB\u55CE\u55CF\u55D0\u55D5\u55D7", 4, "\u55DE\u55E0\u55E2\u55E7\u55E9\u55ED\u55EE\u55F0\u55F1\u55F4\u55F6\u55F8", 4, "\u55FF\u5602\u5603\u5604\u5605"],
      ["8740", "\u5606\u5607\u560A\u560B\u560D\u5610", 7, "\u5619\u561A\u561C\u561D\u5620\u5621\u5622\u5625\u5626\u5628\u5629\u562A\u562B\u562E\u562F\u5630\u5633\u5635\u5637\u5638\u563A\u563C\u563D\u563E\u5640", 11, "\u564F", 4, "\u5655\u5656\u565A\u565B\u565D", 4],
      ["8780", "\u5663\u5665\u5666\u5667\u566D\u566E\u566F\u5670\u5672\u5673\u5674\u5675\u5677\u5678\u5679\u567A\u567D", 7, "\u5687", 6, "\u5690\u5691\u5692\u5694", 14, "\u56A4", 10, "\u56B0", 6, "\u56B8\u56B9\u56BA\u56BB\u56BD", 12, "\u56CB", 8, "\u56D5\u56D6\u56D8\u56D9\u56DC\u56E3\u56E5", 5, "\u56EC\u56EE\u56EF\u56F2\u56F3\u56F6\u56F7\u56F8\u56FB\u56FC\u5700\u5701\u5702\u5705\u5707\u570B", 6],
      ["8840", "\u5712", 9, "\u571D\u571E\u5720\u5721\u5722\u5724\u5725\u5726\u5727\u572B\u5731\u5732\u5734", 4, "\u573C\u573D\u573F\u5741\u5743\u5744\u5745\u5746\u5748\u5749\u574B\u5752", 4, "\u5758\u5759\u5762\u5763\u5765\u5767\u576C\u576E\u5770\u5771\u5772\u5774\u5775\u5778\u5779\u577A\u577D\u577E\u577F\u5780"],
      ["8880", "\u5781\u5787\u5788\u5789\u578A\u578D", 4, "\u5794", 6, "\u579C\u579D\u579E\u579F\u57A5\u57A8\u57AA\u57AC\u57AF\u57B0\u57B1\u57B3\u57B5\u57B6\u57B7\u57B9", 8, "\u57C4", 6, "\u57CC\u57CD\u57D0\u57D1\u57D3\u57D6\u57D7\u57DB\u57DC\u57DE\u57E1\u57E2\u57E3\u57E5", 7, "\u57EE\u57F0\u57F1\u57F2\u57F3\u57F5\u57F6\u57F7\u57FB\u57FC\u57FE\u57FF\u5801\u5803\u5804\u5805\u5808\u5809\u580A\u580C\u580E\u580F\u5810\u5812\u5813\u5814\u5816\u5817\u5818\u581A\u581B\u581C\u581D\u581F\u5822\u5823\u5825", 4, "\u582B", 4, "\u5831\u5832\u5833\u5834\u5836", 7],
      ["8940", "\u583E", 5, "\u5845", 6, "\u584E\u584F\u5850\u5852\u5853\u5855\u5856\u5857\u5859", 4, "\u585F", 5, "\u5866", 4, "\u586D", 16, "\u587F\u5882\u5884\u5886\u5887\u5888\u588A\u588B\u588C"],
      ["8980", "\u588D", 4, "\u5894", 4, "\u589B\u589C\u589D\u58A0", 7, "\u58AA", 17, "\u58BD\u58BE\u58BF\u58C0\u58C2\u58C3\u58C4\u58C6", 10, "\u58D2\u58D3\u58D4\u58D6", 13, "\u58E5", 5, "\u58ED\u58EF\u58F1\u58F2\u58F4\u58F5\u58F7\u58F8\u58FA", 7, "\u5903\u5905\u5906\u5908", 4, "\u590E\u5910\u5911\u5912\u5913\u5917\u5918\u591B\u591D\u591E\u5920\u5921\u5922\u5923\u5926\u5928\u592C\u5930\u5932\u5933\u5935\u5936\u593B"],
      ["8a40", "\u593D\u593E\u593F\u5940\u5943\u5945\u5946\u594A\u594C\u594D\u5950\u5952\u5953\u5959\u595B", 4, "\u5961\u5963\u5964\u5966", 12, "\u5975\u5977\u597A\u597B\u597C\u597E\u597F\u5980\u5985\u5989\u598B\u598C\u598E\u598F\u5990\u5991\u5994\u5995\u5998\u599A\u599B\u599C\u599D\u599F\u59A0\u59A1\u59A2\u59A6"],
      ["8a80", "\u59A7\u59AC\u59AD\u59B0\u59B1\u59B3", 5, "\u59BA\u59BC\u59BD\u59BF", 6, "\u59C7\u59C8\u59C9\u59CC\u59CD\u59CE\u59CF\u59D5\u59D6\u59D9\u59DB\u59DE", 4, "\u59E4\u59E6\u59E7\u59E9\u59EA\u59EB\u59ED", 11, "\u59FA\u59FC\u59FD\u59FE\u5A00\u5A02\u5A0A\u5A0B\u5A0D\u5A0E\u5A0F\u5A10\u5A12\u5A14\u5A15\u5A16\u5A17\u5A19\u5A1A\u5A1B\u5A1D\u5A1E\u5A21\u5A22\u5A24\u5A26\u5A27\u5A28\u5A2A", 6, "\u5A33\u5A35\u5A37", 4, "\u5A3D\u5A3E\u5A3F\u5A41", 4, "\u5A47\u5A48\u5A4B", 9, "\u5A56\u5A57\u5A58\u5A59\u5A5B", 5],
      ["8b40", "\u5A61\u5A63\u5A64\u5A65\u5A66\u5A68\u5A69\u5A6B", 8, "\u5A78\u5A79\u5A7B\u5A7C\u5A7D\u5A7E\u5A80", 17, "\u5A93", 6, "\u5A9C", 13, "\u5AAB\u5AAC"],
      ["8b80", "\u5AAD", 4, "\u5AB4\u5AB6\u5AB7\u5AB9", 4, "\u5ABF\u5AC0\u5AC3", 5, "\u5ACA\u5ACB\u5ACD", 4, "\u5AD3\u5AD5\u5AD7\u5AD9\u5ADA\u5ADB\u5ADD\u5ADE\u5ADF\u5AE2\u5AE4\u5AE5\u5AE7\u5AE8\u5AEA\u5AEC", 4, "\u5AF2", 22, "\u5B0A", 11, "\u5B18", 25, "\u5B33\u5B35\u5B36\u5B38", 7, "\u5B41", 6],
      ["8c40", "\u5B48", 7, "\u5B52\u5B56\u5B5E\u5B60\u5B61\u5B67\u5B68\u5B6B\u5B6D\u5B6E\u5B6F\u5B72\u5B74\u5B76\u5B77\u5B78\u5B79\u5B7B\u5B7C\u5B7E\u5B7F\u5B82\u5B86\u5B8A\u5B8D\u5B8E\u5B90\u5B91\u5B92\u5B94\u5B96\u5B9F\u5BA7\u5BA8\u5BA9\u5BAC\u5BAD\u5BAE\u5BAF\u5BB1\u5BB2\u5BB7\u5BBA\u5BBB\u5BBC\u5BC0\u5BC1\u5BC3\u5BC8\u5BC9\u5BCA\u5BCB\u5BCD\u5BCE\u5BCF"],
      ["8c80", "\u5BD1\u5BD4", 8, "\u5BE0\u5BE2\u5BE3\u5BE6\u5BE7\u5BE9", 4, "\u5BEF\u5BF1", 6, "\u5BFD\u5BFE\u5C00\u5C02\u5C03\u5C05\u5C07\u5C08\u5C0B\u5C0C\u5C0D\u5C0E\u5C10\u5C12\u5C13\u5C17\u5C19\u5C1B\u5C1E\u5C1F\u5C20\u5C21\u5C23\u5C26\u5C28\u5C29\u5C2A\u5C2B\u5C2D\u5C2E\u5C2F\u5C30\u5C32\u5C33\u5C35\u5C36\u5C37\u5C43\u5C44\u5C46\u5C47\u5C4C\u5C4D\u5C52\u5C53\u5C54\u5C56\u5C57\u5C58\u5C5A\u5C5B\u5C5C\u5C5D\u5C5F\u5C62\u5C64\u5C67", 6, "\u5C70\u5C72", 6, "\u5C7B\u5C7C\u5C7D\u5C7E\u5C80\u5C83", 4, "\u5C89\u5C8A\u5C8B\u5C8E\u5C8F\u5C92\u5C93\u5C95\u5C9D", 4, "\u5CA4", 4],
      ["8d40", "\u5CAA\u5CAE\u5CAF\u5CB0\u5CB2\u5CB4\u5CB6\u5CB9\u5CBA\u5CBB\u5CBC\u5CBE\u5CC0\u5CC2\u5CC3\u5CC5", 5, "\u5CCC", 5, "\u5CD3", 5, "\u5CDA", 6, "\u5CE2\u5CE3\u5CE7\u5CE9\u5CEB\u5CEC\u5CEE\u5CEF\u5CF1", 9, "\u5CFC", 4],
      ["8d80", "\u5D01\u5D04\u5D05\u5D08", 5, "\u5D0F", 4, "\u5D15\u5D17\u5D18\u5D19\u5D1A\u5D1C\u5D1D\u5D1F", 4, "\u5D25\u5D28\u5D2A\u5D2B\u5D2C\u5D2F", 4, "\u5D35", 7, "\u5D3F", 7, "\u5D48\u5D49\u5D4D", 10, "\u5D59\u5D5A\u5D5C\u5D5E", 10, "\u5D6A\u5D6D\u5D6E\u5D70\u5D71\u5D72\u5D73\u5D75", 12, "\u5D83", 21, "\u5D9A\u5D9B\u5D9C\u5D9E\u5D9F\u5DA0"],
      ["8e40", "\u5DA1", 21, "\u5DB8", 12, "\u5DC6", 6, "\u5DCE", 12, "\u5DDC\u5DDF\u5DE0\u5DE3\u5DE4\u5DEA\u5DEC\u5DED"],
      ["8e80", "\u5DF0\u5DF5\u5DF6\u5DF8", 4, "\u5DFF\u5E00\u5E04\u5E07\u5E09\u5E0A\u5E0B\u5E0D\u5E0E\u5E12\u5E13\u5E17\u5E1E", 7, "\u5E28", 4, "\u5E2F\u5E30\u5E32", 4, "\u5E39\u5E3A\u5E3E\u5E3F\u5E40\u5E41\u5E43\u5E46", 5, "\u5E4D", 6, "\u5E56", 4, "\u5E5C\u5E5D\u5E5F\u5E60\u5E63", 14, "\u5E75\u5E77\u5E79\u5E7E\u5E81\u5E82\u5E83\u5E85\u5E88\u5E89\u5E8C\u5E8D\u5E8E\u5E92\u5E98\u5E9B\u5E9D\u5EA1\u5EA2\u5EA3\u5EA4\u5EA8", 4, "\u5EAE", 4, "\u5EB4\u5EBA\u5EBB\u5EBC\u5EBD\u5EBF", 6],
      ["8f40", "\u5EC6\u5EC7\u5EC8\u5ECB", 5, "\u5ED4\u5ED5\u5ED7\u5ED8\u5ED9\u5EDA\u5EDC", 11, "\u5EE9\u5EEB", 8, "\u5EF5\u5EF8\u5EF9\u5EFB\u5EFC\u5EFD\u5F05\u5F06\u5F07\u5F09\u5F0C\u5F0D\u5F0E\u5F10\u5F12\u5F14\u5F16\u5F19\u5F1A\u5F1C\u5F1D\u5F1E\u5F21\u5F22\u5F23\u5F24"],
      ["8f80", "\u5F28\u5F2B\u5F2C\u5F2E\u5F30\u5F32", 6, "\u5F3B\u5F3D\u5F3E\u5F3F\u5F41", 14, "\u5F51\u5F54\u5F59\u5F5A\u5F5B\u5F5C\u5F5E\u5F5F\u5F60\u5F63\u5F65\u5F67\u5F68\u5F6B\u5F6E\u5F6F\u5F72\u5F74\u5F75\u5F76\u5F78\u5F7A\u5F7D\u5F7E\u5F7F\u5F83\u5F86\u5F8D\u5F8E\u5F8F\u5F91\u5F93\u5F94\u5F96\u5F9A\u5F9B\u5F9D\u5F9E\u5F9F\u5FA0\u5FA2", 5, "\u5FA9\u5FAB\u5FAC\u5FAF", 5, "\u5FB6\u5FB8\u5FB9\u5FBA\u5FBB\u5FBE", 4, "\u5FC7\u5FC8\u5FCA\u5FCB\u5FCE\u5FD3\u5FD4\u5FD5\u5FDA\u5FDB\u5FDC\u5FDE\u5FDF\u5FE2\u5FE3\u5FE5\u5FE6\u5FE8\u5FE9\u5FEC\u5FEF\u5FF0\u5FF2\u5FF3\u5FF4\u5FF6\u5FF7\u5FF9\u5FFA\u5FFC\u6007"],
      ["9040", "\u6008\u6009\u600B\u600C\u6010\u6011\u6013\u6017\u6018\u601A\u601E\u601F\u6022\u6023\u6024\u602C\u602D\u602E\u6030", 4, "\u6036", 4, "\u603D\u603E\u6040\u6044", 6, "\u604C\u604E\u604F\u6051\u6053\u6054\u6056\u6057\u6058\u605B\u605C\u605E\u605F\u6060\u6061\u6065\u6066\u606E\u6071\u6072\u6074\u6075\u6077\u607E\u6080"],
      ["9080", "\u6081\u6082\u6085\u6086\u6087\u6088\u608A\u608B\u608E\u608F\u6090\u6091\u6093\u6095\u6097\u6098\u6099\u609C\u609E\u60A1\u60A2\u60A4\u60A5\u60A7\u60A9\u60AA\u60AE\u60B0\u60B3\u60B5\u60B6\u60B7\u60B9\u60BA\u60BD", 7, "\u60C7\u60C8\u60C9\u60CC", 4, "\u60D2\u60D3\u60D4\u60D6\u60D7\u60D9\u60DB\u60DE\u60E1", 4, "\u60EA\u60F1\u60F2\u60F5\u60F7\u60F8\u60FB", 4, "\u6102\u6103\u6104\u6105\u6107\u610A\u610B\u610C\u6110", 4, "\u6116\u6117\u6118\u6119\u611B\u611C\u611D\u611E\u6121\u6122\u6125\u6128\u6129\u612A\u612C", 18, "\u6140", 6],
      ["9140", "\u6147\u6149\u614B\u614D\u614F\u6150\u6152\u6153\u6154\u6156", 6, "\u615E\u615F\u6160\u6161\u6163\u6164\u6165\u6166\u6169", 6, "\u6171\u6172\u6173\u6174\u6176\u6178", 18, "\u618C\u618D\u618F", 4, "\u6195"],
      ["9180", "\u6196", 6, "\u619E", 8, "\u61AA\u61AB\u61AD", 9, "\u61B8", 5, "\u61BF\u61C0\u61C1\u61C3", 4, "\u61C9\u61CC", 4, "\u61D3\u61D5", 16, "\u61E7", 13, "\u61F6", 8, "\u6200", 5, "\u6207\u6209\u6213\u6214\u6219\u621C\u621D\u621E\u6220\u6223\u6226\u6227\u6228\u6229\u622B\u622D\u622F\u6230\u6231\u6232\u6235\u6236\u6238", 4, "\u6242\u6244\u6245\u6246\u624A"],
      ["9240", "\u624F\u6250\u6255\u6256\u6257\u6259\u625A\u625C", 6, "\u6264\u6265\u6268\u6271\u6272\u6274\u6275\u6277\u6278\u627A\u627B\u627D\u6281\u6282\u6283\u6285\u6286\u6287\u6288\u628B", 5, "\u6294\u6299\u629C\u629D\u629E\u62A3\u62A6\u62A7\u62A9\u62AA\u62AD\u62AE\u62AF\u62B0\u62B2\u62B3\u62B4\u62B6\u62B7\u62B8\u62BA\u62BE\u62C0\u62C1"],
      ["9280", "\u62C3\u62CB\u62CF\u62D1\u62D5\u62DD\u62DE\u62E0\u62E1\u62E4\u62EA\u62EB\u62F0\u62F2\u62F5\u62F8\u62F9\u62FA\u62FB\u6300\u6303\u6304\u6305\u6306\u630A\u630B\u630C\u630D\u630F\u6310\u6312\u6313\u6314\u6315\u6317\u6318\u6319\u631C\u6326\u6327\u6329\u632C\u632D\u632E\u6330\u6331\u6333", 5, "\u633B\u633C\u633E\u633F\u6340\u6341\u6344\u6347\u6348\u634A\u6351\u6352\u6353\u6354\u6356", 7, "\u6360\u6364\u6365\u6366\u6368\u636A\u636B\u636C\u636F\u6370\u6372\u6373\u6374\u6375\u6378\u6379\u637C\u637D\u637E\u637F\u6381\u6383\u6384\u6385\u6386\u638B\u638D\u6391\u6393\u6394\u6395\u6397\u6399", 6, "\u63A1\u63A4\u63A6\u63AB\u63AF\u63B1\u63B2\u63B5\u63B6\u63B9\u63BB\u63BD\u63BF\u63C0"],
      ["9340", "\u63C1\u63C2\u63C3\u63C5\u63C7\u63C8\u63CA\u63CB\u63CC\u63D1\u63D3\u63D4\u63D5\u63D7", 6, "\u63DF\u63E2\u63E4", 4, "\u63EB\u63EC\u63EE\u63EF\u63F0\u63F1\u63F3\u63F5\u63F7\u63F9\u63FA\u63FB\u63FC\u63FE\u6403\u6404\u6406", 4, "\u640D\u640E\u6411\u6412\u6415", 5, "\u641D\u641F\u6422\u6423\u6424"],
      ["9380", "\u6425\u6427\u6428\u6429\u642B\u642E", 5, "\u6435", 4, "\u643B\u643C\u643E\u6440\u6442\u6443\u6449\u644B", 6, "\u6453\u6455\u6456\u6457\u6459", 4, "\u645F", 7, "\u6468\u646A\u646B\u646C\u646E", 9, "\u647B", 6, "\u6483\u6486\u6488", 8, "\u6493\u6494\u6497\u6498\u649A\u649B\u649C\u649D\u649F", 4, "\u64A5\u64A6\u64A7\u64A8\u64AA\u64AB\u64AF\u64B1\u64B2\u64B3\u64B4\u64B6\u64B9\u64BB\u64BD\u64BE\u64BF\u64C1\u64C3\u64C4\u64C6", 6, "\u64CF\u64D1\u64D3\u64D4\u64D5\u64D6\u64D9\u64DA"],
      ["9440", "\u64DB\u64DC\u64DD\u64DF\u64E0\u64E1\u64E3\u64E5\u64E7", 24, "\u6501", 7, "\u650A", 7, "\u6513", 4, "\u6519", 8],
      ["9480", "\u6522\u6523\u6524\u6526", 4, "\u652C\u652D\u6530\u6531\u6532\u6533\u6537\u653A\u653C\u653D\u6540", 4, "\u6546\u6547\u654A\u654B\u654D\u654E\u6550\u6552\u6553\u6554\u6557\u6558\u655A\u655C\u655F\u6560\u6561\u6564\u6565\u6567\u6568\u6569\u656A\u656D\u656E\u656F\u6571\u6573\u6575\u6576\u6578", 14, "\u6588\u6589\u658A\u658D\u658E\u658F\u6592\u6594\u6595\u6596\u6598\u659A\u659D\u659E\u65A0\u65A2\u65A3\u65A6\u65A8\u65AA\u65AC\u65AE\u65B1", 7, "\u65BA\u65BB\u65BE\u65BF\u65C0\u65C2\u65C7\u65C8\u65C9\u65CA\u65CD\u65D0\u65D1\u65D3\u65D4\u65D5\u65D8", 7, "\u65E1\u65E3\u65E4\u65EA\u65EB"],
      ["9540", "\u65F2\u65F3\u65F4\u65F5\u65F8\u65F9\u65FB", 4, "\u6601\u6604\u6605\u6607\u6608\u6609\u660B\u660D\u6610\u6611\u6612\u6616\u6617\u6618\u661A\u661B\u661C\u661E\u6621\u6622\u6623\u6624\u6626\u6629\u662A\u662B\u662C\u662E\u6630\u6632\u6633\u6637", 4, "\u663D\u663F\u6640\u6642\u6644", 6, "\u664D\u664E\u6650\u6651\u6658"],
      ["9580", "\u6659\u665B\u665C\u665D\u665E\u6660\u6662\u6663\u6665\u6667\u6669", 4, "\u6671\u6672\u6673\u6675\u6678\u6679\u667B\u667C\u667D\u667F\u6680\u6681\u6683\u6685\u6686\u6688\u6689\u668A\u668B\u668D\u668E\u668F\u6690\u6692\u6693\u6694\u6695\u6698", 4, "\u669E", 8, "\u66A9", 4, "\u66AF", 4, "\u66B5\u66B6\u66B7\u66B8\u66BA\u66BB\u66BC\u66BD\u66BF", 25, "\u66DA\u66DE", 7, "\u66E7\u66E8\u66EA", 5, "\u66F1\u66F5\u66F6\u66F8\u66FA\u66FB\u66FD\u6701\u6702\u6703"],
      ["9640", "\u6704\u6705\u6706\u6707\u670C\u670E\u670F\u6711\u6712\u6713\u6716\u6718\u6719\u671A\u671C\u671E\u6720", 5, "\u6727\u6729\u672E\u6730\u6732\u6733\u6736\u6737\u6738\u6739\u673B\u673C\u673E\u673F\u6741\u6744\u6745\u6747\u674A\u674B\u674D\u6752\u6754\u6755\u6757", 4, "\u675D\u6762\u6763\u6764\u6766\u6767\u676B\u676C\u676E\u6771\u6774\u6776"],
      ["9680", "\u6778\u6779\u677A\u677B\u677D\u6780\u6782\u6783\u6785\u6786\u6788\u678A\u678C\u678D\u678E\u678F\u6791\u6792\u6793\u6794\u6796\u6799\u679B\u679F\u67A0\u67A1\u67A4\u67A6\u67A9\u67AC\u67AE\u67B1\u67B2\u67B4\u67B9", 7, "\u67C2\u67C5", 9, "\u67D5\u67D6\u67D7\u67DB\u67DF\u67E1\u67E3\u67E4\u67E6\u67E7\u67E8\u67EA\u67EB\u67ED\u67EE\u67F2\u67F5", 7, "\u67FE\u6801\u6802\u6803\u6804\u6806\u680D\u6810\u6812\u6814\u6815\u6818", 4, "\u681E\u681F\u6820\u6822", 6, "\u682B", 6, "\u6834\u6835\u6836\u683A\u683B\u683F\u6847\u684B\u684D\u684F\u6852\u6856", 5],
      ["9740", "\u685C\u685D\u685E\u685F\u686A\u686C", 7, "\u6875\u6878", 8, "\u6882\u6884\u6887", 7, "\u6890\u6891\u6892\u6894\u6895\u6896\u6898", 9, "\u68A3\u68A4\u68A5\u68A9\u68AA\u68AB\u68AC\u68AE\u68B1\u68B2\u68B4\u68B6\u68B7\u68B8"],
      ["9780", "\u68B9", 6, "\u68C1\u68C3", 5, "\u68CA\u68CC\u68CE\u68CF\u68D0\u68D1\u68D3\u68D4\u68D6\u68D7\u68D9\u68DB", 4, "\u68E1\u68E2\u68E4", 9, "\u68EF\u68F2\u68F3\u68F4\u68F6\u68F7\u68F8\u68FB\u68FD\u68FE\u68FF\u6900\u6902\u6903\u6904\u6906", 4, "\u690C\u690F\u6911\u6913", 11, "\u6921\u6922\u6923\u6925", 7, "\u692E\u692F\u6931\u6932\u6933\u6935\u6936\u6937\u6938\u693A\u693B\u693C\u693E\u6940\u6941\u6943", 16, "\u6955\u6956\u6958\u6959\u695B\u695C\u695F"],
      ["9840", "\u6961\u6962\u6964\u6965\u6967\u6968\u6969\u696A\u696C\u696D\u696F\u6970\u6972", 4, "\u697A\u697B\u697D\u697E\u697F\u6981\u6983\u6985\u698A\u698B\u698C\u698E", 5, "\u6996\u6997\u6999\u699A\u699D", 9, "\u69A9\u69AA\u69AC\u69AE\u69AF\u69B0\u69B2\u69B3\u69B5\u69B6\u69B8\u69B9\u69BA\u69BC\u69BD"],
      ["9880", "\u69BE\u69BF\u69C0\u69C2", 7, "\u69CB\u69CD\u69CF\u69D1\u69D2\u69D3\u69D5", 5, "\u69DC\u69DD\u69DE\u69E1", 11, "\u69EE\u69EF\u69F0\u69F1\u69F3", 9, "\u69FE\u6A00", 9, "\u6A0B", 11, "\u6A19", 5, "\u6A20\u6A22", 5, "\u6A29\u6A2B\u6A2C\u6A2D\u6A2E\u6A30\u6A32\u6A33\u6A34\u6A36", 6, "\u6A3F", 4, "\u6A45\u6A46\u6A48", 7, "\u6A51", 6, "\u6A5A"],
      ["9940", "\u6A5C", 4, "\u6A62\u6A63\u6A64\u6A66", 10, "\u6A72", 6, "\u6A7A\u6A7B\u6A7D\u6A7E\u6A7F\u6A81\u6A82\u6A83\u6A85", 8, "\u6A8F\u6A92", 4, "\u6A98", 7, "\u6AA1", 5],
      ["9980", "\u6AA7\u6AA8\u6AAA\u6AAD", 114, "\u6B25\u6B26\u6B28", 6],
      ["9a40", "\u6B2F\u6B30\u6B31\u6B33\u6B34\u6B35\u6B36\u6B38\u6B3B\u6B3C\u6B3D\u6B3F\u6B40\u6B41\u6B42\u6B44\u6B45\u6B48\u6B4A\u6B4B\u6B4D", 11, "\u6B5A", 7, "\u6B68\u6B69\u6B6B", 13, "\u6B7A\u6B7D\u6B7E\u6B7F\u6B80\u6B85\u6B88"],
      ["9a80", "\u6B8C\u6B8E\u6B8F\u6B90\u6B91\u6B94\u6B95\u6B97\u6B98\u6B99\u6B9C", 4, "\u6BA2", 7, "\u6BAB", 7, "\u6BB6\u6BB8", 6, "\u6BC0\u6BC3\u6BC4\u6BC6", 4, "\u6BCC\u6BCE\u6BD0\u6BD1\u6BD8\u6BDA\u6BDC", 4, "\u6BE2", 7, "\u6BEC\u6BED\u6BEE\u6BF0\u6BF1\u6BF2\u6BF4\u6BF6\u6BF7\u6BF8\u6BFA\u6BFB\u6BFC\u6BFE", 6, "\u6C08", 4, "\u6C0E\u6C12\u6C17\u6C1C\u6C1D\u6C1E\u6C20\u6C23\u6C25\u6C2B\u6C2C\u6C2D\u6C31\u6C33\u6C36\u6C37\u6C39\u6C3A\u6C3B\u6C3C\u6C3E\u6C3F\u6C43\u6C44\u6C45\u6C48\u6C4B", 4, "\u6C51\u6C52\u6C53\u6C56\u6C58"],
      ["9b40", "\u6C59\u6C5A\u6C62\u6C63\u6C65\u6C66\u6C67\u6C6B", 4, "\u6C71\u6C73\u6C75\u6C77\u6C78\u6C7A\u6C7B\u6C7C\u6C7F\u6C80\u6C84\u6C87\u6C8A\u6C8B\u6C8D\u6C8E\u6C91\u6C92\u6C95\u6C96\u6C97\u6C98\u6C9A\u6C9C\u6C9D\u6C9E\u6CA0\u6CA2\u6CA8\u6CAC\u6CAF\u6CB0\u6CB4\u6CB5\u6CB6\u6CB7\u6CBA\u6CC0\u6CC1\u6CC2\u6CC3\u6CC6\u6CC7\u6CC8\u6CCB\u6CCD\u6CCE\u6CCF\u6CD1\u6CD2\u6CD8"],
      ["9b80", "\u6CD9\u6CDA\u6CDC\u6CDD\u6CDF\u6CE4\u6CE6\u6CE7\u6CE9\u6CEC\u6CED\u6CF2\u6CF4\u6CF9\u6CFF\u6D00\u6D02\u6D03\u6D05\u6D06\u6D08\u6D09\u6D0A\u6D0D\u6D0F\u6D10\u6D11\u6D13\u6D14\u6D15\u6D16\u6D18\u6D1C\u6D1D\u6D1F", 5, "\u6D26\u6D28\u6D29\u6D2C\u6D2D\u6D2F\u6D30\u6D34\u6D36\u6D37\u6D38\u6D3A\u6D3F\u6D40\u6D42\u6D44\u6D49\u6D4C\u6D50\u6D55\u6D56\u6D57\u6D58\u6D5B\u6D5D\u6D5F\u6D61\u6D62\u6D64\u6D65\u6D67\u6D68\u6D6B\u6D6C\u6D6D\u6D70\u6D71\u6D72\u6D73\u6D75\u6D76\u6D79\u6D7A\u6D7B\u6D7D", 4, "\u6D83\u6D84\u6D86\u6D87\u6D8A\u6D8B\u6D8D\u6D8F\u6D90\u6D92\u6D96", 4, "\u6D9C\u6DA2\u6DA5\u6DAC\u6DAD\u6DB0\u6DB1\u6DB3\u6DB4\u6DB6\u6DB7\u6DB9", 5, "\u6DC1\u6DC2\u6DC3\u6DC8\u6DC9\u6DCA"],
      ["9c40", "\u6DCD\u6DCE\u6DCF\u6DD0\u6DD2\u6DD3\u6DD4\u6DD5\u6DD7\u6DDA\u6DDB\u6DDC\u6DDF\u6DE2\u6DE3\u6DE5\u6DE7\u6DE8\u6DE9\u6DEA\u6DED\u6DEF\u6DF0\u6DF2\u6DF4\u6DF5\u6DF6\u6DF8\u6DFA\u6DFD", 7, "\u6E06\u6E07\u6E08\u6E09\u6E0B\u6E0F\u6E12\u6E13\u6E15\u6E18\u6E19\u6E1B\u6E1C\u6E1E\u6E1F\u6E22\u6E26\u6E27\u6E28\u6E2A\u6E2C\u6E2E\u6E30\u6E31\u6E33\u6E35"],
      ["9c80", "\u6E36\u6E37\u6E39\u6E3B", 7, "\u6E45", 7, "\u6E4F\u6E50\u6E51\u6E52\u6E55\u6E57\u6E59\u6E5A\u6E5C\u6E5D\u6E5E\u6E60", 10, "\u6E6C\u6E6D\u6E6F", 14, "\u6E80\u6E81\u6E82\u6E84\u6E87\u6E88\u6E8A", 4, "\u6E91", 6, "\u6E99\u6E9A\u6E9B\u6E9D\u6E9E\u6EA0\u6EA1\u6EA3\u6EA4\u6EA6\u6EA8\u6EA9\u6EAB\u6EAC\u6EAD\u6EAE\u6EB0\u6EB3\u6EB5\u6EB8\u6EB9\u6EBC\u6EBE\u6EBF\u6EC0\u6EC3\u6EC4\u6EC5\u6EC6\u6EC8\u6EC9\u6ECA\u6ECC\u6ECD\u6ECE\u6ED0\u6ED2\u6ED6\u6ED8\u6ED9\u6EDB\u6EDC\u6EDD\u6EE3\u6EE7\u6EEA", 5],
      ["9d40", "\u6EF0\u6EF1\u6EF2\u6EF3\u6EF5\u6EF6\u6EF7\u6EF8\u6EFA", 7, "\u6F03\u6F04\u6F05\u6F07\u6F08\u6F0A", 4, "\u6F10\u6F11\u6F12\u6F16", 9, "\u6F21\u6F22\u6F23\u6F25\u6F26\u6F27\u6F28\u6F2C\u6F2E\u6F30\u6F32\u6F34\u6F35\u6F37", 6, "\u6F3F\u6F40\u6F41\u6F42"],
      ["9d80", "\u6F43\u6F44\u6F45\u6F48\u6F49\u6F4A\u6F4C\u6F4E", 9, "\u6F59\u6F5A\u6F5B\u6F5D\u6F5F\u6F60\u6F61\u6F63\u6F64\u6F65\u6F67", 5, "\u6F6F\u6F70\u6F71\u6F73\u6F75\u6F76\u6F77\u6F79\u6F7B\u6F7D", 6, "\u6F85\u6F86\u6F87\u6F8A\u6F8B\u6F8F", 12, "\u6F9D\u6F9E\u6F9F\u6FA0\u6FA2", 4, "\u6FA8", 10, "\u6FB4\u6FB5\u6FB7\u6FB8\u6FBA", 5, "\u6FC1\u6FC3", 5, "\u6FCA", 6, "\u6FD3", 10, "\u6FDF\u6FE2\u6FE3\u6FE4\u6FE5"],
      ["9e40", "\u6FE6", 7, "\u6FF0", 32, "\u7012", 7, "\u701C", 6, "\u7024", 6],
      ["9e80", "\u702B", 9, "\u7036\u7037\u7038\u703A", 17, "\u704D\u704E\u7050", 13, "\u705F", 11, "\u706E\u7071\u7072\u7073\u7074\u7077\u7079\u707A\u707B\u707D\u7081\u7082\u7083\u7084\u7086\u7087\u7088\u708B\u708C\u708D\u708F\u7090\u7091\u7093\u7097\u7098\u709A\u709B\u709E", 12, "\u70B0\u70B2\u70B4\u70B5\u70B6\u70BA\u70BE\u70BF\u70C4\u70C5\u70C6\u70C7\u70C9\u70CB", 12, "\u70DA"],
      ["9f40", "\u70DC\u70DD\u70DE\u70E0\u70E1\u70E2\u70E3\u70E5\u70EA\u70EE\u70F0", 6, "\u70F8\u70FA\u70FB\u70FC\u70FE", 10, "\u710B", 4, "\u7111\u7112\u7114\u7117\u711B", 10, "\u7127", 7, "\u7132\u7133\u7134"],
      ["9f80", "\u7135\u7137", 13, "\u7146\u7147\u7148\u7149\u714B\u714D\u714F", 12, "\u715D\u715F", 4, "\u7165\u7169", 4, "\u716F\u7170\u7171\u7174\u7175\u7176\u7177\u7179\u717B\u717C\u717E", 5, "\u7185", 4, "\u718B\u718C\u718D\u718E\u7190\u7191\u7192\u7193\u7195\u7196\u7197\u719A", 4, "\u71A1", 6, "\u71A9\u71AA\u71AB\u71AD", 5, "\u71B4\u71B6\u71B7\u71B8\u71BA", 8, "\u71C4", 9, "\u71CF", 4],
      ["a040", "\u71D6", 9, "\u71E1\u71E2\u71E3\u71E4\u71E6\u71E8", 5, "\u71EF", 9, "\u71FA", 11, "\u7207", 19],
      ["a080", "\u721B\u721C\u721E", 9, "\u7229\u722B\u722D\u722E\u722F\u7232\u7233\u7234\u723A\u723C\u723E\u7240", 6, "\u7249\u724A\u724B\u724E\u724F\u7250\u7251\u7253\u7254\u7255\u7257\u7258\u725A\u725C\u725E\u7260\u7263\u7264\u7265\u7268\u726A\u726B\u726C\u726D\u7270\u7271\u7273\u7274\u7276\u7277\u7278\u727B\u727C\u727D\u7282\u7283\u7285", 4, "\u728C\u728E\u7290\u7291\u7293", 11, "\u72A0", 11, "\u72AE\u72B1\u72B2\u72B3\u72B5\u72BA", 6, "\u72C5\u72C6\u72C7\u72C9\u72CA\u72CB\u72CC\u72CF\u72D1\u72D3\u72D4\u72D5\u72D6\u72D8\u72DA\u72DB"],
      ["a1a1", "\u3000\u3001\u3002\xB7\u02C9\u02C7\xA8\u3003\u3005\u2014\uFF5E\u2016\u2026\u2018\u2019\u201C\u201D\u3014\u3015\u3008", 7, "\u3016\u3017\u3010\u3011\xB1\xD7\xF7\u2236\u2227\u2228\u2211\u220F\u222A\u2229\u2208\u2237\u221A\u22A5\u2225\u2220\u2312\u2299\u222B\u222E\u2261\u224C\u2248\u223D\u221D\u2260\u226E\u226F\u2264\u2265\u221E\u2235\u2234\u2642\u2640\xB0\u2032\u2033\u2103\uFF04\xA4\uFFE0\uFFE1\u2030\xA7\u2116\u2606\u2605\u25CB\u25CF\u25CE\u25C7\u25C6\u25A1\u25A0\u25B3\u25B2\u203B\u2192\u2190\u2191\u2193\u3013"],
      ["a2a1", "\u2170", 9],
      ["a2b1", "\u2488", 19, "\u2474", 19, "\u2460", 9],
      ["a2e5", "\u3220", 9],
      ["a2f1", "\u2160", 11],
      ["a3a1", "\uFF01\uFF02\uFF03\uFFE5\uFF05", 88, "\uFFE3"],
      ["a4a1", "\u3041", 82],
      ["a5a1", "\u30A1", 85],
      ["a6a1", "\u0391", 16, "\u03A3", 6],
      ["a6c1", "\u03B1", 16, "\u03C3", 6],
      ["a6e0", "\uFE35\uFE36\uFE39\uFE3A\uFE3F\uFE40\uFE3D\uFE3E\uFE41\uFE42\uFE43\uFE44"],
      ["a6ee", "\uFE3B\uFE3C\uFE37\uFE38\uFE31"],
      ["a6f4", "\uFE33\uFE34"],
      ["a7a1", "\u0410", 5, "\u0401\u0416", 25],
      ["a7d1", "\u0430", 5, "\u0451\u0436", 25],
      ["a840", "\u02CA\u02CB\u02D9\u2013\u2015\u2025\u2035\u2105\u2109\u2196\u2197\u2198\u2199\u2215\u221F\u2223\u2252\u2266\u2267\u22BF\u2550", 35, "\u2581", 6],
      ["a880", "\u2588", 7, "\u2593\u2594\u2595\u25BC\u25BD\u25E2\u25E3\u25E4\u25E5\u2609\u2295\u3012\u301D\u301E"],
      ["a8a1", "\u0101\xE1\u01CE\xE0\u0113\xE9\u011B\xE8\u012B\xED\u01D0\xEC\u014D\xF3\u01D2\xF2\u016B\xFA\u01D4\xF9\u01D6\u01D8\u01DA\u01DC\xFC\xEA\u0251"],
      ["a8bd", "\u0144\u0148"],
      ["a8c0", "\u0261"],
      ["a8c5", "\u3105", 36],
      ["a940", "\u3021", 8, "\u32A3\u338E\u338F\u339C\u339D\u339E\u33A1\u33C4\u33CE\u33D1\u33D2\u33D5\uFE30\uFFE2\uFFE4"],
      ["a959", "\u2121\u3231"],
      ["a95c", "\u2010"],
      ["a960", "\u30FC\u309B\u309C\u30FD\u30FE\u3006\u309D\u309E\uFE49", 9, "\uFE54\uFE55\uFE56\uFE57\uFE59", 8],
      ["a980", "\uFE62", 4, "\uFE68\uFE69\uFE6A\uFE6B"],
      ["a996", "\u3007"],
      ["a9a4", "\u2500", 75],
      ["aa40", "\u72DC\u72DD\u72DF\u72E2", 5, "\u72EA\u72EB\u72F5\u72F6\u72F9\u72FD\u72FE\u72FF\u7300\u7302\u7304", 5, "\u730B\u730C\u730D\u730F\u7310\u7311\u7312\u7314\u7318\u7319\u731A\u731F\u7320\u7323\u7324\u7326\u7327\u7328\u732D\u732F\u7330\u7332\u7333\u7335\u7336\u733A\u733B\u733C\u733D\u7340", 8],
      ["aa80", "\u7349\u734A\u734B\u734C\u734E\u734F\u7351\u7353\u7354\u7355\u7356\u7358", 7, "\u7361", 10, "\u736E\u7370\u7371"],
      ["ab40", "\u7372", 11, "\u737F", 4, "\u7385\u7386\u7388\u738A\u738C\u738D\u738F\u7390\u7392\u7393\u7394\u7395\u7397\u7398\u7399\u739A\u739C\u739D\u739E\u73A0\u73A1\u73A3", 5, "\u73AA\u73AC\u73AD\u73B1\u73B4\u73B5\u73B6\u73B8\u73B9\u73BC\u73BD\u73BE\u73BF\u73C1\u73C3", 4],
      ["ab80", "\u73CB\u73CC\u73CE\u73D2", 6, "\u73DA\u73DB\u73DC\u73DD\u73DF\u73E1\u73E2\u73E3\u73E4\u73E6\u73E8\u73EA\u73EB\u73EC\u73EE\u73EF\u73F0\u73F1\u73F3", 4],
      ["ac40", "\u73F8", 10, "\u7404\u7407\u7408\u740B\u740C\u740D\u740E\u7411", 8, "\u741C", 5, "\u7423\u7424\u7427\u7429\u742B\u742D\u742F\u7431\u7432\u7437", 4, "\u743D\u743E\u743F\u7440\u7442", 11],
      ["ac80", "\u744E", 6, "\u7456\u7458\u745D\u7460", 12, "\u746E\u746F\u7471", 4, "\u7478\u7479\u747A"],
      ["ad40", "\u747B\u747C\u747D\u747F\u7482\u7484\u7485\u7486\u7488\u7489\u748A\u748C\u748D\u748F\u7491", 10, "\u749D\u749F", 7, "\u74AA", 15, "\u74BB", 12],
      ["ad80", "\u74C8", 9, "\u74D3", 8, "\u74DD\u74DF\u74E1\u74E5\u74E7", 6, "\u74F0\u74F1\u74F2"],
      ["ae40", "\u74F3\u74F5\u74F8", 6, "\u7500\u7501\u7502\u7503\u7505", 7, "\u750E\u7510\u7512\u7514\u7515\u7516\u7517\u751B\u751D\u751E\u7520", 4, "\u7526\u7527\u752A\u752E\u7534\u7536\u7539\u753C\u753D\u753F\u7541\u7542\u7543\u7544\u7546\u7547\u7549\u754A\u754D\u7550\u7551\u7552\u7553\u7555\u7556\u7557\u7558"],
      ["ae80", "\u755D", 7, "\u7567\u7568\u7569\u756B", 6, "\u7573\u7575\u7576\u7577\u757A", 4, "\u7580\u7581\u7582\u7584\u7585\u7587"],
      ["af40", "\u7588\u7589\u758A\u758C\u758D\u758E\u7590\u7593\u7595\u7598\u759B\u759C\u759E\u75A2\u75A6", 4, "\u75AD\u75B6\u75B7\u75BA\u75BB\u75BF\u75C0\u75C1\u75C6\u75CB\u75CC\u75CE\u75CF\u75D0\u75D1\u75D3\u75D7\u75D9\u75DA\u75DC\u75DD\u75DF\u75E0\u75E1\u75E5\u75E9\u75EC\u75ED\u75EE\u75EF\u75F2\u75F3\u75F5\u75F6\u75F7\u75F8\u75FA\u75FB\u75FD\u75FE\u7602\u7604\u7606\u7607"],
      ["af80", "\u7608\u7609\u760B\u760D\u760E\u760F\u7611\u7612\u7613\u7614\u7616\u761A\u761C\u761D\u761E\u7621\u7623\u7627\u7628\u762C\u762E\u762F\u7631\u7632\u7636\u7637\u7639\u763A\u763B\u763D\u7641\u7642\u7644"],
      ["b040", "\u7645", 6, "\u764E", 5, "\u7655\u7657", 4, "\u765D\u765F\u7660\u7661\u7662\u7664", 6, "\u766C\u766D\u766E\u7670", 7, "\u7679\u767A\u767C\u767F\u7680\u7681\u7683\u7685\u7689\u768A\u768C\u768D\u768F\u7690\u7692\u7694\u7695\u7697\u7698\u769A\u769B"],
      ["b080", "\u769C", 7, "\u76A5", 8, "\u76AF\u76B0\u76B3\u76B5", 9, "\u76C0\u76C1\u76C3\u554A\u963F\u57C3\u6328\u54CE\u5509\u54C0\u7691\u764C\u853C\u77EE\u827E\u788D\u7231\u9698\u978D\u6C28\u5B89\u4FFA\u6309\u6697\u5CB8\u80FA\u6848\u80AE\u6602\u76CE\u51F9\u6556\u71AC\u7FF1\u8884\u50B2\u5965\u61CA\u6FB3\u82AD\u634C\u6252\u53ED\u5427\u7B06\u516B\u75A4\u5DF4\u62D4\u8DCB\u9776\u628A\u8019\u575D\u9738\u7F62\u7238\u767D\u67CF\u767E\u6446\u4F70\u8D25\u62DC\u7A17\u6591\u73ED\u642C\u6273\u822C\u9881\u677F\u7248\u626E\u62CC\u4F34\u74E3\u534A\u529E\u7ECA\u90A6\u5E2E\u6886\u699C\u8180\u7ED1\u68D2\u78C5\u868C\u9551\u508D\u8C24\u82DE\u80DE\u5305\u8912\u5265"],
      ["b140", "\u76C4\u76C7\u76C9\u76CB\u76CC\u76D3\u76D5\u76D9\u76DA\u76DC\u76DD\u76DE\u76E0", 4, "\u76E6", 7, "\u76F0\u76F3\u76F5\u76F6\u76F7\u76FA\u76FB\u76FD\u76FF\u7700\u7702\u7703\u7705\u7706\u770A\u770C\u770E", 10, "\u771B\u771C\u771D\u771E\u7721\u7723\u7724\u7725\u7727\u772A\u772B"],
      ["b180", "\u772C\u772E\u7730", 4, "\u7739\u773B\u773D\u773E\u773F\u7742\u7744\u7745\u7746\u7748", 7, "\u7752", 7, "\u775C\u8584\u96F9\u4FDD\u5821\u9971\u5B9D\u62B1\u62A5\u66B4\u8C79\u9C8D\u7206\u676F\u7891\u60B2\u5351\u5317\u8F88\u80CC\u8D1D\u94A1\u500D\u72C8\u5907\u60EB\u7119\u88AB\u5954\u82EF\u672C\u7B28\u5D29\u7EF7\u752D\u6CF5\u8E66\u8FF8\u903C\u9F3B\u6BD4\u9119\u7B14\u5F7C\u78A7\u84D6\u853D\u6BD5\u6BD9\u6BD6\u5E01\u5E87\u75F9\u95ED\u655D\u5F0A\u5FC5\u8F9F\u58C1\u81C2\u907F\u965B\u97AD\u8FB9\u7F16\u8D2C\u6241\u4FBF\u53D8\u535E\u8FA8\u8FA9\u8FAB\u904D\u6807\u5F6A\u8198\u8868\u9CD6\u618B\u522B\u762A\u5F6C\u658C\u6FD2\u6EE8\u5BBE\u6448\u5175\u51B0\u67C4\u4E19\u79C9\u997C\u70B3"],
      ["b240", "\u775D\u775E\u775F\u7760\u7764\u7767\u7769\u776A\u776D", 11, "\u777A\u777B\u777C\u7781\u7782\u7783\u7786", 5, "\u778F\u7790\u7793", 11, "\u77A1\u77A3\u77A4\u77A6\u77A8\u77AB\u77AD\u77AE\u77AF\u77B1\u77B2\u77B4\u77B6", 4],
      ["b280", "\u77BC\u77BE\u77C0", 12, "\u77CE", 8, "\u77D8\u77D9\u77DA\u77DD", 4, "\u77E4\u75C5\u5E76\u73BB\u83E0\u64AD\u62E8\u94B5\u6CE2\u535A\u52C3\u640F\u94C2\u7B94\u4F2F\u5E1B\u8236\u8116\u818A\u6E24\u6CCA\u9A73\u6355\u535C\u54FA\u8865\u57E0\u4E0D\u5E03\u6B65\u7C3F\u90E8\u6016\u64E6\u731C\u88C1\u6750\u624D\u8D22\u776C\u8E29\u91C7\u5F69\u83DC\u8521\u9910\u53C2\u8695\u6B8B\u60ED\u60E8\u707F\u82CD\u8231\u4ED3\u6CA7\u85CF\u64CD\u7CD9\u69FD\u66F9\u8349\u5395\u7B56\u4FA7\u518C\u6D4B\u5C42\u8E6D\u63D2\u53C9\u832C\u8336\u67E5\u78B4\u643D\u5BDF\u5C94\u5DEE\u8BE7\u62C6\u67F4\u8C7A\u6400\u63BA\u8749\u998B\u8C17\u7F20\u94F2\u4EA7\u9610\u98A4\u660C\u7316"],
      ["b340", "\u77E6\u77E8\u77EA\u77EF\u77F0\u77F1\u77F2\u77F4\u77F5\u77F7\u77F9\u77FA\u77FB\u77FC\u7803", 5, "\u780A\u780B\u780E\u780F\u7810\u7813\u7815\u7819\u781B\u781E\u7820\u7821\u7822\u7824\u7828\u782A\u782B\u782E\u782F\u7831\u7832\u7833\u7835\u7836\u783D\u783F\u7841\u7842\u7843\u7844\u7846\u7848\u7849\u784A\u784B\u784D\u784F\u7851\u7853\u7854\u7858\u7859\u785A"],
      ["b380", "\u785B\u785C\u785E", 11, "\u786F", 7, "\u7878\u7879\u787A\u787B\u787D", 6, "\u573A\u5C1D\u5E38\u957F\u507F\u80A0\u5382\u655E\u7545\u5531\u5021\u8D85\u6284\u949E\u671D\u5632\u6F6E\u5DE2\u5435\u7092\u8F66\u626F\u64A4\u63A3\u5F7B\u6F88\u90F4\u81E3\u8FB0\u5C18\u6668\u5FF1\u6C89\u9648\u8D81\u886C\u6491\u79F0\u57CE\u6A59\u6210\u5448\u4E58\u7A0B\u60E9\u6F84\u8BDA\u627F\u901E\u9A8B\u79E4\u5403\u75F4\u6301\u5319\u6C60\u8FDF\u5F1B\u9A70\u803B\u9F7F\u4F88\u5C3A\u8D64\u7FC5\u65A5\u70BD\u5145\u51B2\u866B\u5D07\u5BA0\u62BD\u916C\u7574\u8E0C\u7A20\u6101\u7B79\u4EC7\u7EF8\u7785\u4E11\u81ED\u521D\u51FA\u6A71\u53A8\u8E87\u9504\u96CF\u6EC1\u9664\u695A"],
      ["b440", "\u7884\u7885\u7886\u7888\u788A\u788B\u788F\u7890\u7892\u7894\u7895\u7896\u7899\u789D\u789E\u78A0\u78A2\u78A4\u78A6\u78A8", 7, "\u78B5\u78B6\u78B7\u78B8\u78BA\u78BB\u78BC\u78BD\u78BF\u78C0\u78C2\u78C3\u78C4\u78C6\u78C7\u78C8\u78CC\u78CD\u78CE\u78CF\u78D1\u78D2\u78D3\u78D6\u78D7\u78D8\u78DA", 9],
      ["b480", "\u78E4\u78E5\u78E6\u78E7\u78E9\u78EA\u78EB\u78ED", 4, "\u78F3\u78F5\u78F6\u78F8\u78F9\u78FB", 5, "\u7902\u7903\u7904\u7906", 6, "\u7840\u50A8\u77D7\u6410\u89E6\u5904\u63E3\u5DDD\u7A7F\u693D\u4F20\u8239\u5598\u4E32\u75AE\u7A97\u5E62\u5E8A\u95EF\u521B\u5439\u708A\u6376\u9524\u5782\u6625\u693F\u9187\u5507\u6DF3\u7EAF\u8822\u6233\u7EF0\u75B5\u8328\u78C1\u96CC\u8F9E\u6148\u74F7\u8BCD\u6B64\u523A\u8D50\u6B21\u806A\u8471\u56F1\u5306\u4ECE\u4E1B\u51D1\u7C97\u918B\u7C07\u4FC3\u8E7F\u7BE1\u7A9C\u6467\u5D14\u50AC\u8106\u7601\u7CB9\u6DEC\u7FE0\u6751\u5B58\u5BF8\u78CB\u64AE\u6413\u63AA\u632B\u9519\u642D\u8FBE\u7B54\u7629\u6253\u5927\u5446\u6B79\u50A3\u6234\u5E26\u6B86\u4EE3\u8D37\u888B\u5F85\u902E"],
      ["b540", "\u790D", 5, "\u7914", 9, "\u791F", 4, "\u7925", 14, "\u7935", 4, "\u793D\u793F\u7942\u7943\u7944\u7945\u7947\u794A", 8, "\u7954\u7955\u7958\u7959\u7961\u7963"],
      ["b580", "\u7964\u7966\u7969\u796A\u796B\u796C\u796E\u7970", 6, "\u7979\u797B", 4, "\u7982\u7983\u7986\u7987\u7988\u7989\u798B\u798C\u798D\u798E\u7990\u7991\u7992\u6020\u803D\u62C5\u4E39\u5355\u90F8\u63B8\u80C6\u65E6\u6C2E\u4F46\u60EE\u6DE1\u8BDE\u5F39\u86CB\u5F53\u6321\u515A\u8361\u6863\u5200\u6363\u8E48\u5012\u5C9B\u7977\u5BFC\u5230\u7A3B\u60BC\u9053\u76D7\u5FB7\u5F97\u7684\u8E6C\u706F\u767B\u7B49\u77AA\u51F3\u9093\u5824\u4F4E\u6EF4\u8FEA\u654C\u7B1B\u72C4\u6DA4\u7FDF\u5AE1\u62B5\u5E95\u5730\u8482\u7B2C\u5E1D\u5F1F\u9012\u7F14\u98A0\u6382\u6EC7\u7898\u70B9\u5178\u975B\u57AB\u7535\u4F43\u7538\u5E97\u60E6\u5960\u6DC0\u6BBF\u7889\u53FC\u96D5\u51CB\u5201\u6389\u540A\u9493\u8C03\u8DCC\u7239\u789F\u8776\u8FED\u8C0D\u53E0"],
      ["b640", "\u7993", 6, "\u799B", 11, "\u79A8", 10, "\u79B4", 4, "\u79BC\u79BF\u79C2\u79C4\u79C5\u79C7\u79C8\u79CA\u79CC\u79CE\u79CF\u79D0\u79D3\u79D4\u79D6\u79D7\u79D9", 5, "\u79E0\u79E1\u79E2\u79E5\u79E8\u79EA"],
      ["b680", "\u79EC\u79EE\u79F1", 6, "\u79F9\u79FA\u79FC\u79FE\u79FF\u7A01\u7A04\u7A05\u7A07\u7A08\u7A09\u7A0A\u7A0C\u7A0F", 4, "\u7A15\u7A16\u7A18\u7A19\u7A1B\u7A1C\u4E01\u76EF\u53EE\u9489\u9876\u9F0E\u952D\u5B9A\u8BA2\u4E22\u4E1C\u51AC\u8463\u61C2\u52A8\u680B\u4F97\u606B\u51BB\u6D1E\u515C\u6296\u6597\u9661\u8C46\u9017\u75D8\u90FD\u7763\u6BD2\u728A\u72EC\u8BFB\u5835\u7779\u8D4C\u675C\u9540\u809A\u5EA6\u6E21\u5992\u7AEF\u77ED\u953B\u6BB5\u65AD\u7F0E\u5806\u5151\u961F\u5BF9\u58A9\u5428\u8E72\u6566\u987F\u56E4\u949D\u76FE\u9041\u6387\u54C6\u591A\u593A\u579B\u8EB2\u6735\u8DFA\u8235\u5241\u60F0\u5815\u86FE\u5CE8\u9E45\u4FC4\u989D\u8BB9\u5A25\u6076\u5384\u627C\u904F\u9102\u997F\u6069\u800C\u513F\u8033\u5C14\u9975\u6D31\u4E8C"],
      ["b740", "\u7A1D\u7A1F\u7A21\u7A22\u7A24", 14, "\u7A34\u7A35\u7A36\u7A38\u7A3A\u7A3E\u7A40", 5, "\u7A47", 9, "\u7A52", 4, "\u7A58", 16],
      ["b780", "\u7A69", 6, "\u7A71\u7A72\u7A73\u7A75\u7A7B\u7A7C\u7A7D\u7A7E\u7A82\u7A85\u7A87\u7A89\u7A8A\u7A8B\u7A8C\u7A8E\u7A8F\u7A90\u7A93\u7A94\u7A99\u7A9A\u7A9B\u7A9E\u7AA1\u7AA2\u8D30\u53D1\u7F5A\u7B4F\u4F10\u4E4F\u9600\u6CD5\u73D0\u85E9\u5E06\u756A\u7FFB\u6A0A\u77FE\u9492\u7E41\u51E1\u70E6\u53CD\u8FD4\u8303\u8D29\u72AF\u996D\u6CDB\u574A\u82B3\u65B9\u80AA\u623F\u9632\u59A8\u4EFF\u8BBF\u7EBA\u653E\u83F2\u975E\u5561\u98DE\u80A5\u532A\u8BFD\u5420\u80BA\u5E9F\u6CB8\u8D39\u82AC\u915A\u5429\u6C1B\u5206\u7EB7\u575F\u711A\u6C7E\u7C89\u594B\u4EFD\u5FFF\u6124\u7CAA\u4E30\u5C01\u67AB\u8702\u5CF0\u950B\u98CE\u75AF\u70FD\u9022\u51AF\u7F1D\u8BBD\u5949\u51E4\u4F5B\u5426\u592B\u6577\u80A4\u5B75\u6276\u62C2\u8F90\u5E45\u6C1F\u7B26\u4F0F\u4FD8\u670D"],
      ["b840", "\u7AA3\u7AA4\u7AA7\u7AA9\u7AAA\u7AAB\u7AAE", 4, "\u7AB4", 10, "\u7AC0", 10, "\u7ACC", 9, "\u7AD7\u7AD8\u7ADA\u7ADB\u7ADC\u7ADD\u7AE1\u7AE2\u7AE4\u7AE7", 5, "\u7AEE\u7AF0\u7AF1\u7AF2\u7AF3"],
      ["b880", "\u7AF4", 4, "\u7AFB\u7AFC\u7AFE\u7B00\u7B01\u7B02\u7B05\u7B07\u7B09\u7B0C\u7B0D\u7B0E\u7B10\u7B12\u7B13\u7B16\u7B17\u7B18\u7B1A\u7B1C\u7B1D\u7B1F\u7B21\u7B22\u7B23\u7B27\u7B29\u7B2D\u6D6E\u6DAA\u798F\u88B1\u5F17\u752B\u629A\u8F85\u4FEF\u91DC\u65A7\u812F\u8151\u5E9C\u8150\u8D74\u526F\u8986\u8D4B\u590D\u5085\u4ED8\u961C\u7236\u8179\u8D1F\u5BCC\u8BA3\u9644\u5987\u7F1A\u5490\u5676\u560E\u8BE5\u6539\u6982\u9499\u76D6\u6E89\u5E72\u7518\u6746\u67D1\u7AFF\u809D\u8D76\u611F\u79C6\u6562\u8D63\u5188\u521A\u94A2\u7F38\u809B\u7EB2\u5C97\u6E2F\u6760\u7BD9\u768B\u9AD8\u818F\u7F94\u7CD5\u641E\u9550\u7A3F\u544A\u54E5\u6B4C\u6401\u6208\u9E3D\u80F3\u7599\u5272\u9769\u845B\u683C\u86E4\u9601\u9694\u94EC\u4E2A\u5404\u7ED9\u6839\u8DDF\u8015\u66F4\u5E9A\u7FB9"],
      ["b940", "\u7B2F\u7B30\u7B32\u7B34\u7B35\u7B36\u7B37\u7B39\u7B3B\u7B3D\u7B3F", 5, "\u7B46\u7B48\u7B4A\u7B4D\u7B4E\u7B53\u7B55\u7B57\u7B59\u7B5C\u7B5E\u7B5F\u7B61\u7B63", 10, "\u7B6F\u7B70\u7B73\u7B74\u7B76\u7B78\u7B7A\u7B7C\u7B7D\u7B7F\u7B81\u7B82\u7B83\u7B84\u7B86", 6, "\u7B8E\u7B8F"],
      ["b980", "\u7B91\u7B92\u7B93\u7B96\u7B98\u7B99\u7B9A\u7B9B\u7B9E\u7B9F\u7BA0\u7BA3\u7BA4\u7BA5\u7BAE\u7BAF\u7BB0\u7BB2\u7BB3\u7BB5\u7BB6\u7BB7\u7BB9", 7, "\u7BC2\u7BC3\u7BC4\u57C2\u803F\u6897\u5DE5\u653B\u529F\u606D\u9F9A\u4F9B\u8EAC\u516C\u5BAB\u5F13\u5DE9\u6C5E\u62F1\u8D21\u5171\u94A9\u52FE\u6C9F\u82DF\u72D7\u57A2\u6784\u8D2D\u591F\u8F9C\u83C7\u5495\u7B8D\u4F30\u6CBD\u5B64\u59D1\u9F13\u53E4\u86CA\u9AA8\u8C37\u80A1\u6545\u987E\u56FA\u96C7\u522E\u74DC\u5250\u5BE1\u6302\u8902\u4E56\u62D0\u602A\u68FA\u5173\u5B98\u51A0\u89C2\u7BA1\u9986\u7F50\u60EF\u704C\u8D2F\u5149\u5E7F\u901B\u7470\u89C4\u572D\u7845\u5F52\u9F9F\u95FA\u8F68\u9B3C\u8BE1\u7678\u6842\u67DC\u8DEA\u8D35\u523D\u8F8A\u6EDA\u68CD\u9505\u90ED\u56FD\u679C\u88F9\u8FC7\u54C8"],
      ["ba40", "\u7BC5\u7BC8\u7BC9\u7BCA\u7BCB\u7BCD\u7BCE\u7BCF\u7BD0\u7BD2\u7BD4", 4, "\u7BDB\u7BDC\u7BDE\u7BDF\u7BE0\u7BE2\u7BE3\u7BE4\u7BE7\u7BE8\u7BE9\u7BEB\u7BEC\u7BED\u7BEF\u7BF0\u7BF2", 4, "\u7BF8\u7BF9\u7BFA\u7BFB\u7BFD\u7BFF", 7, "\u7C08\u7C09\u7C0A\u7C0D\u7C0E\u7C10", 5, "\u7C17\u7C18\u7C19"],
      ["ba80", "\u7C1A", 4, "\u7C20", 5, "\u7C28\u7C29\u7C2B", 12, "\u7C39", 5, "\u7C42\u9AB8\u5B69\u6D77\u6C26\u4EA5\u5BB3\u9A87\u9163\u61A8\u90AF\u97E9\u542B\u6DB5\u5BD2\u51FD\u558A\u7F55\u7FF0\u64BC\u634D\u65F1\u61BE\u608D\u710A\u6C57\u6C49\u592F\u676D\u822A\u58D5\u568E\u8C6A\u6BEB\u90DD\u597D\u8017\u53F7\u6D69\u5475\u559D\u8377\u83CF\u6838\u79BE\u548C\u4F55\u5408\u76D2\u8C89\u9602\u6CB3\u6DB8\u8D6B\u8910\u9E64\u8D3A\u563F\u9ED1\u75D5\u5F88\u72E0\u6068\u54FC\u4EA8\u6A2A\u8861\u6052\u8F70\u54C4\u70D8\u8679\u9E3F\u6D2A\u5B8F\u5F18\u7EA2\u5589\u4FAF\u7334\u543C\u539A\u5019\u540E\u547C\u4E4E\u5FFD\u745A\u58F6\u846B\u80E1\u8774\u72D0\u7CCA\u6E56"],
      ["bb40", "\u7C43", 9, "\u7C4E", 36, "\u7C75", 5, "\u7C7E", 9],
      ["bb80", "\u7C88\u7C8A", 6, "\u7C93\u7C94\u7C96\u7C99\u7C9A\u7C9B\u7CA0\u7CA1\u7CA3\u7CA6\u7CA7\u7CA8\u7CA9\u7CAB\u7CAC\u7CAD\u7CAF\u7CB0\u7CB4", 4, "\u7CBA\u7CBB\u5F27\u864E\u552C\u62A4\u4E92\u6CAA\u6237\u82B1\u54D7\u534E\u733E\u6ED1\u753B\u5212\u5316\u8BDD\u69D0\u5F8A\u6000\u6DEE\u574F\u6B22\u73AF\u6853\u8FD8\u7F13\u6362\u60A3\u5524\u75EA\u8C62\u7115\u6DA3\u5BA6\u5E7B\u8352\u614C\u9EC4\u78FA\u8757\u7C27\u7687\u51F0\u60F6\u714C\u6643\u5E4C\u604D\u8C0E\u7070\u6325\u8F89\u5FBD\u6062\u86D4\u56DE\u6BC1\u6094\u6167\u5349\u60E0\u6666\u8D3F\u79FD\u4F1A\u70E9\u6C47\u8BB3\u8BF2\u7ED8\u8364\u660F\u5A5A\u9B42\u6D51\u6DF7\u8C41\u6D3B\u4F19\u706B\u83B7\u6216\u60D1\u970D\u8D27\u7978\u51FB\u573E\u57FA\u673A\u7578\u7A3D\u79EF\u7B95"],
      ["bc40", "\u7CBF\u7CC0\u7CC2\u7CC3\u7CC4\u7CC6\u7CC9\u7CCB\u7CCE", 6, "\u7CD8\u7CDA\u7CDB\u7CDD\u7CDE\u7CE1", 6, "\u7CE9", 5, "\u7CF0", 7, "\u7CF9\u7CFA\u7CFC", 13, "\u7D0B", 5],
      ["bc80", "\u7D11", 14, "\u7D21\u7D23\u7D24\u7D25\u7D26\u7D28\u7D29\u7D2A\u7D2C\u7D2D\u7D2E\u7D30", 6, "\u808C\u9965\u8FF9\u6FC0\u8BA5\u9E21\u59EC\u7EE9\u7F09\u5409\u6781\u68D8\u8F91\u7C4D\u96C6\u53CA\u6025\u75BE\u6C72\u5373\u5AC9\u7EA7\u6324\u51E0\u810A\u5DF1\u84DF\u6280\u5180\u5B63\u4F0E\u796D\u5242\u60B8\u6D4E\u5BC4\u5BC2\u8BA1\u8BB0\u65E2\u5FCC\u9645\u5993\u7EE7\u7EAA\u5609\u67B7\u5939\u4F73\u5BB6\u52A0\u835A\u988A\u8D3E\u7532\u94BE\u5047\u7A3C\u4EF7\u67B6\u9A7E\u5AC1\u6B7C\u76D1\u575A\u5C16\u7B3A\u95F4\u714E\u517C\u80A9\u8270\u5978\u7F04\u8327\u68C0\u67EC\u78B1\u7877\u62E3\u6361\u7B80\u4FED\u526A\u51CF\u8350\u69DB\u9274\u8DF5\u8D31\u89C1\u952E\u7BAD\u4EF6"],
      ["bd40", "\u7D37", 54, "\u7D6F", 7],
      ["bd80", "\u7D78", 32, "\u5065\u8230\u5251\u996F\u6E10\u6E85\u6DA7\u5EFA\u50F5\u59DC\u5C06\u6D46\u6C5F\u7586\u848B\u6868\u5956\u8BB2\u5320\u9171\u964D\u8549\u6912\u7901\u7126\u80F6\u4EA4\u90CA\u6D47\u9A84\u5A07\u56BC\u6405\u94F0\u77EB\u4FA5\u811A\u72E1\u89D2\u997A\u7F34\u7EDE\u527F\u6559\u9175\u8F7F\u8F83\u53EB\u7A96\u63ED\u63A5\u7686\u79F8\u8857\u9636\u622A\u52AB\u8282\u6854\u6770\u6377\u776B\u7AED\u6D01\u7ED3\u89E3\u59D0\u6212\u85C9\u82A5\u754C\u501F\u4ECB\u75A5\u8BEB\u5C4A\u5DFE\u7B4B\u65A4\u91D1\u4ECA\u6D25\u895F\u7D27\u9526\u4EC5\u8C28\u8FDB\u9773\u664B\u7981\u8FD1\u70EC\u6D78"],
      ["be40", "\u7D99", 12, "\u7DA7", 6, "\u7DAF", 42],
      ["be80", "\u7DDA", 32, "\u5C3D\u52B2\u8346\u5162\u830E\u775B\u6676\u9CB8\u4EAC\u60CA\u7CBE\u7CB3\u7ECF\u4E95\u8B66\u666F\u9888\u9759\u5883\u656C\u955C\u5F84\u75C9\u9756\u7ADF\u7ADE\u51C0\u70AF\u7A98\u63EA\u7A76\u7EA0\u7396\u97ED\u4E45\u7078\u4E5D\u9152\u53A9\u6551\u65E7\u81FC\u8205\u548E\u5C31\u759A\u97A0\u62D8\u72D9\u75BD\u5C45\u9A79\u83CA\u5C40\u5480\u77E9\u4E3E\u6CAE\u805A\u62D2\u636E\u5DE8\u5177\u8DDD\u8E1E\u952F\u4FF1\u53E5\u60E7\u70AC\u5267\u6350\u9E43\u5A1F\u5026\u7737\u5377\u7EE2\u6485\u652B\u6289\u6398\u5014\u7235\u89C9\u51B3\u8BC0\u7EDD\u5747\u83CC\u94A7\u519B\u541B\u5CFB"],
      ["bf40", "\u7DFB", 62],
      ["bf80", "\u7E3A\u7E3C", 4, "\u7E42", 4, "\u7E48", 21, "\u4FCA\u7AE3\u6D5A\u90E1\u9A8F\u5580\u5496\u5361\u54AF\u5F00\u63E9\u6977\u51EF\u6168\u520A\u582A\u52D8\u574E\u780D\u770B\u5EB7\u6177\u7CE0\u625B\u6297\u4EA2\u7095\u8003\u62F7\u70E4\u9760\u5777\u82DB\u67EF\u68F5\u78D5\u9897\u79D1\u58F3\u54B3\u53EF\u6E34\u514B\u523B\u5BA2\u8BFE\u80AF\u5543\u57A6\u6073\u5751\u542D\u7A7A\u6050\u5B54\u63A7\u62A0\u53E3\u6263\u5BC7\u67AF\u54ED\u7A9F\u82E6\u9177\u5E93\u88E4\u5938\u57AE\u630E\u8DE8\u80EF\u5757\u7B77\u4FA9\u5FEB\u5BBD\u6B3E\u5321\u7B50\u72C2\u6846\u77FF\u7736\u65F7\u51B5\u4E8F\u76D4\u5CBF\u7AA5\u8475\u594E\u9B41\u5080"],
      ["c040", "\u7E5E", 35, "\u7E83", 23, "\u7E9C\u7E9D\u7E9E"],
      ["c080", "\u7EAE\u7EB4\u7EBB\u7EBC\u7ED6\u7EE4\u7EEC\u7EF9\u7F0A\u7F10\u7F1E\u7F37\u7F39\u7F3B", 6, "\u7F43\u7F46", 9, "\u7F52\u7F53\u9988\u6127\u6E83\u5764\u6606\u6346\u56F0\u62EC\u6269\u5ED3\u9614\u5783\u62C9\u5587\u8721\u814A\u8FA3\u5566\u83B1\u6765\u8D56\u84DD\u5A6A\u680F\u62E6\u7BEE\u9611\u5170\u6F9C\u8C30\u63FD\u89C8\u61D2\u7F06\u70C2\u6EE5\u7405\u6994\u72FC\u5ECA\u90CE\u6717\u6D6A\u635E\u52B3\u7262\u8001\u4F6C\u59E5\u916A\u70D9\u6D9D\u52D2\u4E50\u96F7\u956D\u857E\u78CA\u7D2F\u5121\u5792\u64C2\u808B\u7C7B\u6CEA\u68F1\u695E\u51B7\u5398\u68A8\u7281\u9ECE\u7BF1\u72F8\u79BB\u6F13\u7406\u674E\u91CC\u9CA4\u793C\u8389\u8354\u540F\u6817\u4E3D\u5389\u52B1\u783E\u5386\u5229\u5088\u4F8B\u4FD0"],
      ["c140", "\u7F56\u7F59\u7F5B\u7F5C\u7F5D\u7F5E\u7F60\u7F63", 4, "\u7F6B\u7F6C\u7F6D\u7F6F\u7F70\u7F73\u7F75\u7F76\u7F77\u7F78\u7F7A\u7F7B\u7F7C\u7F7D\u7F7F\u7F80\u7F82", 7, "\u7F8B\u7F8D\u7F8F", 4, "\u7F95", 4, "\u7F9B\u7F9C\u7FA0\u7FA2\u7FA3\u7FA5\u7FA6\u7FA8", 6, "\u7FB1"],
      ["c180", "\u7FB3", 4, "\u7FBA\u7FBB\u7FBE\u7FC0\u7FC2\u7FC3\u7FC4\u7FC6\u7FC7\u7FC8\u7FC9\u7FCB\u7FCD\u7FCF", 4, "\u7FD6\u7FD7\u7FD9", 5, "\u7FE2\u7FE3\u75E2\u7ACB\u7C92\u6CA5\u96B6\u529B\u7483\u54E9\u4FE9\u8054\u83B2\u8FDE\u9570\u5EC9\u601C\u6D9F\u5E18\u655B\u8138\u94FE\u604B\u70BC\u7EC3\u7CAE\u51C9\u6881\u7CB1\u826F\u4E24\u8F86\u91CF\u667E\u4EAE\u8C05\u64A9\u804A\u50DA\u7597\u71CE\u5BE5\u8FBD\u6F66\u4E86\u6482\u9563\u5ED6\u6599\u5217\u88C2\u70C8\u52A3\u730E\u7433\u6797\u78F7\u9716\u4E34\u90BB\u9CDE\u6DCB\u51DB\u8D41\u541D\u62CE\u73B2\u83F1\u96F6\u9F84\u94C3\u4F36\u7F9A\u51CC\u7075\u9675\u5CAD\u9886\u53E6\u4EE4\u6E9C\u7409\u69B4\u786B\u998F\u7559\u5218\u7624\u6D41\u67F3\u516D\u9F99\u804B\u5499\u7B3C\u7ABF"],
      ["c240", "\u7FE4\u7FE7\u7FE8\u7FEA\u7FEB\u7FEC\u7FED\u7FEF\u7FF2\u7FF4", 6, "\u7FFD\u7FFE\u7FFF\u8002\u8007\u8008\u8009\u800A\u800E\u800F\u8011\u8013\u801A\u801B\u801D\u801E\u801F\u8021\u8023\u8024\u802B", 5, "\u8032\u8034\u8039\u803A\u803C\u803E\u8040\u8041\u8044\u8045\u8047\u8048\u8049\u804E\u804F\u8050\u8051\u8053\u8055\u8056\u8057"],
      ["c280", "\u8059\u805B", 13, "\u806B", 5, "\u8072", 11, "\u9686\u5784\u62E2\u9647\u697C\u5A04\u6402\u7BD3\u6F0F\u964B\u82A6\u5362\u9885\u5E90\u7089\u63B3\u5364\u864F\u9C81\u9E93\u788C\u9732\u8DEF\u8D42\u9E7F\u6F5E\u7984\u5F55\u9646\u622E\u9A74\u5415\u94DD\u4FA3\u65C5\u5C65\u5C61\u7F15\u8651\u6C2F\u5F8B\u7387\u6EE4\u7EFF\u5CE6\u631B\u5B6A\u6EE6\u5375\u4E71\u63A0\u7565\u62A1\u8F6E\u4F26\u4ED1\u6CA6\u7EB6\u8BBA\u841D\u87BA\u7F57\u903B\u9523\u7BA9\u9AA1\u88F8\u843D\u6D1B\u9A86\u7EDC\u5988\u9EBB\u739B\u7801\u8682\u9A6C\u9A82\u561B\u5417\u57CB\u4E70\u9EA6\u5356\u8FC8\u8109\u7792\u9992\u86EE\u6EE1\u8513\u66FC\u6162\u6F2B"],
      ["c340", "\u807E\u8081\u8082\u8085\u8088\u808A\u808D", 5, "\u8094\u8095\u8097\u8099\u809E\u80A3\u80A6\u80A7\u80A8\u80AC\u80B0\u80B3\u80B5\u80B6\u80B8\u80B9\u80BB\u80C5\u80C7", 4, "\u80CF", 6, "\u80D8\u80DF\u80E0\u80E2\u80E3\u80E6\u80EE\u80F5\u80F7\u80F9\u80FB\u80FE\u80FF\u8100\u8101\u8103\u8104\u8105\u8107\u8108\u810B"],
      ["c380", "\u810C\u8115\u8117\u8119\u811B\u811C\u811D\u811F", 12, "\u812D\u812E\u8130\u8133\u8134\u8135\u8137\u8139", 4, "\u813F\u8C29\u8292\u832B\u76F2\u6C13\u5FD9\u83BD\u732B\u8305\u951A\u6BDB\u77DB\u94C6\u536F\u8302\u5192\u5E3D\u8C8C\u8D38\u4E48\u73AB\u679A\u6885\u9176\u9709\u7164\u6CA1\u7709\u5A92\u9541\u6BCF\u7F8E\u6627\u5BD0\u59B9\u5A9A\u95E8\u95F7\u4EEC\u840C\u8499\u6AAC\u76DF\u9530\u731B\u68A6\u5B5F\u772F\u919A\u9761\u7CDC\u8FF7\u8C1C\u5F25\u7C73\u79D8\u89C5\u6CCC\u871C\u5BC6\u5E42\u68C9\u7720\u7EF5\u5195\u514D\u52C9\u5A29\u7F05\u9762\u82D7\u63CF\u7784\u85D0\u79D2\u6E3A\u5E99\u5999\u8511\u706D\u6C11\u62BF\u76BF\u654F\u60AF\u95FD\u660E\u879F\u9E23\u94ED\u540D\u547D\u8C2C\u6478"],
      ["c440", "\u8140", 5, "\u8147\u8149\u814D\u814E\u814F\u8152\u8156\u8157\u8158\u815B", 4, "\u8161\u8162\u8163\u8164\u8166\u8168\u816A\u816B\u816C\u816F\u8172\u8173\u8175\u8176\u8177\u8178\u8181\u8183", 4, "\u8189\u818B\u818C\u818D\u818E\u8190\u8192", 5, "\u8199\u819A\u819E", 4, "\u81A4\u81A5"],
      ["c480", "\u81A7\u81A9\u81AB", 7, "\u81B4", 5, "\u81BC\u81BD\u81BE\u81BF\u81C4\u81C5\u81C7\u81C8\u81C9\u81CB\u81CD", 6, "\u6479\u8611\u6A21\u819C\u78E8\u6469\u9B54\u62B9\u672B\u83AB\u58A8\u9ED8\u6CAB\u6F20\u5BDE\u964C\u8C0B\u725F\u67D0\u62C7\u7261\u4EA9\u59C6\u6BCD\u5893\u66AE\u5E55\u52DF\u6155\u6728\u76EE\u7766\u7267\u7A46\u62FF\u54EA\u5450\u94A0\u90A3\u5A1C\u7EB3\u6C16\u4E43\u5976\u8010\u5948\u5357\u7537\u96BE\u56CA\u6320\u8111\u607C\u95F9\u6DD6\u5462\u9981\u5185\u5AE9\u80FD\u59AE\u9713\u502A\u6CE5\u5C3C\u62DF\u4F60\u533F\u817B\u9006\u6EBA\u852B\u62C8\u5E74\u78BE\u64B5\u637B\u5FF5\u5A18\u917F\u9E1F\u5C3F\u634F\u8042\u5B7D\u556E\u954A\u954D\u6D85\u60A8\u67E0\u72DE\u51DD\u5B81"],
      ["c540", "\u81D4", 14, "\u81E4\u81E5\u81E6\u81E8\u81E9\u81EB\u81EE", 4, "\u81F5", 5, "\u81FD\u81FF\u8203\u8207", 4, "\u820E\u820F\u8211\u8213\u8215", 5, "\u821D\u8220\u8224\u8225\u8226\u8227\u8229\u822E\u8232\u823A\u823C\u823D\u823F"],
      ["c580", "\u8240\u8241\u8242\u8243\u8245\u8246\u8248\u824A\u824C\u824D\u824E\u8250", 7, "\u8259\u825B\u825C\u825D\u825E\u8260", 7, "\u8269\u62E7\u6CDE\u725B\u626D\u94AE\u7EBD\u8113\u6D53\u519C\u5F04\u5974\u52AA\u6012\u5973\u6696\u8650\u759F\u632A\u61E6\u7CEF\u8BFA\u54E6\u6B27\u9E25\u6BB4\u85D5\u5455\u5076\u6CA4\u556A\u8DB4\u722C\u5E15\u6015\u7436\u62CD\u6392\u724C\u5F98\u6E43\u6D3E\u6500\u6F58\u76D8\u78D0\u76FC\u7554\u5224\u53DB\u4E53\u5E9E\u65C1\u802A\u80D6\u629B\u5486\u5228\u70AE\u888D\u8DD1\u6CE1\u5478\u80DA\u57F9\u88F4\u8D54\u966A\u914D\u4F69\u6C9B\u55B7\u76C6\u7830\u62A8\u70F9\u6F8E\u5F6D\u84EC\u68DA\u787C\u7BF7\u81A8\u670B\u9E4F\u6367\u78B0\u576F\u7812\u9739\u6279\u62AB\u5288\u7435\u6BD7"],
      ["c640", "\u826A\u826B\u826C\u826D\u8271\u8275\u8276\u8277\u8278\u827B\u827C\u8280\u8281\u8283\u8285\u8286\u8287\u8289\u828C\u8290\u8293\u8294\u8295\u8296\u829A\u829B\u829E\u82A0\u82A2\u82A3\u82A7\u82B2\u82B5\u82B6\u82BA\u82BB\u82BC\u82BF\u82C0\u82C2\u82C3\u82C5\u82C6\u82C9\u82D0\u82D6\u82D9\u82DA\u82DD\u82E2\u82E7\u82E8\u82E9\u82EA\u82EC\u82ED\u82EE\u82F0\u82F2\u82F3\u82F5\u82F6\u82F8"],
      ["c680", "\u82FA\u82FC", 4, "\u830A\u830B\u830D\u8310\u8312\u8313\u8316\u8318\u8319\u831D", 9, "\u8329\u832A\u832E\u8330\u8332\u8337\u833B\u833D\u5564\u813E\u75B2\u76AE\u5339\u75DE\u50FB\u5C41\u8B6C\u7BC7\u504F\u7247\u9A97\u98D8\u6F02\u74E2\u7968\u6487\u77A5\u62FC\u9891\u8D2B\u54C1\u8058\u4E52\u576A\u82F9\u840D\u5E73\u51ED\u74F6\u8BC4\u5C4F\u5761\u6CFC\u9887\u5A46\u7834\u9B44\u8FEB\u7C95\u5256\u6251\u94FA\u4EC6\u8386\u8461\u83E9\u84B2\u57D4\u6734\u5703\u666E\u6D66\u8C31\u66DD\u7011\u671F\u6B3A\u6816\u621A\u59BB\u4E03\u51C4\u6F06\u67D2\u6C8F\u5176\u68CB\u5947\u6B67\u7566\u5D0E\u8110\u9F50\u65D7\u7948\u7941\u9A91\u8D77\u5C82\u4E5E\u4F01\u542F\u5951\u780C\u5668\u6C14\u8FC4\u5F03\u6C7D\u6CE3\u8BAB\u6390"],
      ["c740", "\u833E\u833F\u8341\u8342\u8344\u8345\u8348\u834A", 4, "\u8353\u8355", 4, "\u835D\u8362\u8370", 6, "\u8379\u837A\u837E", 6, "\u8387\u8388\u838A\u838B\u838C\u838D\u838F\u8390\u8391\u8394\u8395\u8396\u8397\u8399\u839A\u839D\u839F\u83A1", 6, "\u83AC\u83AD\u83AE"],
      ["c780", "\u83AF\u83B5\u83BB\u83BE\u83BF\u83C2\u83C3\u83C4\u83C6\u83C8\u83C9\u83CB\u83CD\u83CE\u83D0\u83D1\u83D2\u83D3\u83D5\u83D7\u83D9\u83DA\u83DB\u83DE\u83E2\u83E3\u83E4\u83E6\u83E7\u83E8\u83EB\u83EC\u83ED\u6070\u6D3D\u7275\u6266\u948E\u94C5\u5343\u8FC1\u7B7E\u4EDF\u8C26\u4E7E\u9ED4\u94B1\u94B3\u524D\u6F5C\u9063\u6D45\u8C34\u5811\u5D4C\u6B20\u6B49\u67AA\u545B\u8154\u7F8C\u5899\u8537\u5F3A\u62A2\u6A47\u9539\u6572\u6084\u6865\u77A7\u4E54\u4FA8\u5DE7\u9798\u64AC\u7FD8\u5CED\u4FCF\u7A8D\u5207\u8304\u4E14\u602F\u7A83\u94A6\u4FB5\u4EB2\u79E6\u7434\u52E4\u82B9\u64D2\u79BD\u5BDD\u6C81\u9752\u8F7B\u6C22\u503E\u537F\u6E05\u64CE\u6674\u6C30\u60C5\u9877\u8BF7\u5E86\u743C\u7A77\u79CB\u4E18\u90B1\u7403\u6C42\u56DA\u914B\u6CC5\u8D8B\u533A\u86C6\u66F2\u8EAF\u5C48\u9A71\u6E20"],
      ["c840", "\u83EE\u83EF\u83F3", 4, "\u83FA\u83FB\u83FC\u83FE\u83FF\u8400\u8402\u8405\u8407\u8408\u8409\u840A\u8410\u8412", 5, "\u8419\u841A\u841B\u841E", 5, "\u8429", 7, "\u8432", 5, "\u8439\u843A\u843B\u843E", 7, "\u8447\u8448\u8449"],
      ["c880", "\u844A", 6, "\u8452", 4, "\u8458\u845D\u845E\u845F\u8460\u8462\u8464", 4, "\u846A\u846E\u846F\u8470\u8472\u8474\u8477\u8479\u847B\u847C\u53D6\u5A36\u9F8B\u8DA3\u53BB\u5708\u98A7\u6743\u919B\u6CC9\u5168\u75CA\u62F3\u72AC\u5238\u529D\u7F3A\u7094\u7638\u5374\u9E4A\u69B7\u786E\u96C0\u88D9\u7FA4\u7136\u71C3\u5189\u67D3\u74E4\u58E4\u6518\u56B7\u8BA9\u9976\u6270\u7ED5\u60F9\u70ED\u58EC\u4EC1\u4EBA\u5FCD\u97E7\u4EFB\u8BA4\u5203\u598A\u7EAB\u6254\u4ECD\u65E5\u620E\u8338\u84C9\u8363\u878D\u7194\u6EB6\u5BB9\u7ED2\u5197\u63C9\u67D4\u8089\u8339\u8815\u5112\u5B7A\u5982\u8FB1\u4E73\u6C5D\u5165\u8925\u8F6F\u962E\u854A\u745E\u9510\u95F0\u6DA6\u82E5\u5F31\u6492\u6D12\u8428\u816E\u9CC3\u585E\u8D5B\u4E09\u53C1"],
      ["c940", "\u847D", 4, "\u8483\u8484\u8485\u8486\u848A\u848D\u848F", 7, "\u8498\u849A\u849B\u849D\u849E\u849F\u84A0\u84A2", 12, "\u84B0\u84B1\u84B3\u84B5\u84B6\u84B7\u84BB\u84BC\u84BE\u84C0\u84C2\u84C3\u84C5\u84C6\u84C7\u84C8\u84CB\u84CC\u84CE\u84CF\u84D2\u84D4\u84D5\u84D7"],
      ["c980", "\u84D8", 4, "\u84DE\u84E1\u84E2\u84E4\u84E7", 4, "\u84ED\u84EE\u84EF\u84F1", 10, "\u84FD\u84FE\u8500\u8501\u8502\u4F1E\u6563\u6851\u55D3\u4E27\u6414\u9A9A\u626B\u5AC2\u745F\u8272\u6DA9\u68EE\u50E7\u838E\u7802\u6740\u5239\u6C99\u7EB1\u50BB\u5565\u715E\u7B5B\u6652\u73CA\u82EB\u6749\u5C71\u5220\u717D\u886B\u95EA\u9655\u64C5\u8D61\u81B3\u5584\u6C55\u6247\u7F2E\u5892\u4F24\u5546\u8D4F\u664C\u4E0A\u5C1A\u88F3\u68A2\u634E\u7A0D\u70E7\u828D\u52FA\u97F6\u5C11\u54E8\u90B5\u7ECD\u5962\u8D4A\u86C7\u820C\u820D\u8D66\u6444\u5C04\u6151\u6D89\u793E\u8BBE\u7837\u7533\u547B\u4F38\u8EAB\u6DF1\u5A20\u7EC5\u795E\u6C88\u5BA1\u5A76\u751A\u80BE\u614E\u6E17\u58F0\u751F\u7525\u7272\u5347\u7EF3"],
      ["ca40", "\u8503", 8, "\u850D\u850E\u850F\u8510\u8512\u8514\u8515\u8516\u8518\u8519\u851B\u851C\u851D\u851E\u8520\u8522", 8, "\u852D", 9, "\u853E", 4, "\u8544\u8545\u8546\u8547\u854B", 10],
      ["ca80", "\u8557\u8558\u855A\u855B\u855C\u855D\u855F", 4, "\u8565\u8566\u8567\u8569", 8, "\u8573\u8575\u8576\u8577\u8578\u857C\u857D\u857F\u8580\u8581\u7701\u76DB\u5269\u80DC\u5723\u5E08\u5931\u72EE\u65BD\u6E7F\u8BD7\u5C38\u8671\u5341\u77F3\u62FE\u65F6\u4EC0\u98DF\u8680\u5B9E\u8BC6\u53F2\u77E2\u4F7F\u5C4E\u9A76\u59CB\u5F0F\u793A\u58EB\u4E16\u67FF\u4E8B\u62ED\u8A93\u901D\u52BF\u662F\u55DC\u566C\u9002\u4ED5\u4F8D\u91CA\u9970\u6C0F\u5E02\u6043\u5BA4\u89C6\u8BD5\u6536\u624B\u9996\u5B88\u5BFF\u6388\u552E\u53D7\u7626\u517D\u852C\u67A2\u68B3\u6B8A\u6292\u8F93\u53D4\u8212\u6DD1\u758F\u4E66\u8D4E\u5B70\u719F\u85AF\u6691\u66D9\u7F72\u8700\u9ECD\u9F20\u5C5E\u672F\u8FF0\u6811\u675F\u620D\u7AD6\u5885\u5EB6\u6570\u6F31"],
      ["cb40", "\u8582\u8583\u8586\u8588", 6, "\u8590", 10, "\u859D", 6, "\u85A5\u85A6\u85A7\u85A9\u85AB\u85AC\u85AD\u85B1", 5, "\u85B8\u85BA", 6, "\u85C2", 6, "\u85CA", 4, "\u85D1\u85D2"],
      ["cb80", "\u85D4\u85D6", 5, "\u85DD", 6, "\u85E5\u85E6\u85E7\u85E8\u85EA", 14, "\u6055\u5237\u800D\u6454\u8870\u7529\u5E05\u6813\u62F4\u971C\u53CC\u723D\u8C01\u6C34\u7761\u7A0E\u542E\u77AC\u987A\u821C\u8BF4\u7855\u6714\u70C1\u65AF\u6495\u5636\u601D\u79C1\u53F8\u4E1D\u6B7B\u8086\u5BFA\u55E3\u56DB\u4F3A\u4F3C\u9972\u5DF3\u677E\u8038\u6002\u9882\u9001\u5B8B\u8BBC\u8BF5\u641C\u8258\u64DE\u55FD\u82CF\u9165\u4FD7\u7D20\u901F\u7C9F\u50F3\u5851\u6EAF\u5BBF\u8BC9\u8083\u9178\u849C\u7B97\u867D\u968B\u968F\u7EE5\u9AD3\u788E\u5C81\u7A57\u9042\u96A7\u795F\u5B59\u635F\u7B0B\u84D1\u68AD\u5506\u7F29\u7410\u7D22\u9501\u6240\u584C\u4ED6\u5B83\u5979\u5854"],
      ["cc40", "\u85F9\u85FA\u85FC\u85FD\u85FE\u8600", 4, "\u8606", 10, "\u8612\u8613\u8614\u8615\u8617", 15, "\u8628\u862A", 13, "\u8639\u863A\u863B\u863D\u863E\u863F\u8640"],
      ["cc80", "\u8641", 11, "\u8652\u8653\u8655", 4, "\u865B\u865C\u865D\u865F\u8660\u8661\u8663", 7, "\u736D\u631E\u8E4B\u8E0F\u80CE\u82D4\u62AC\u53F0\u6CF0\u915E\u592A\u6001\u6C70\u574D\u644A\u8D2A\u762B\u6EE9\u575B\u6A80\u75F0\u6F6D\u8C2D\u8C08\u5766\u6BEF\u8892\u78B3\u63A2\u53F9\u70AD\u6C64\u5858\u642A\u5802\u68E0\u819B\u5510\u7CD6\u5018\u8EBA\u6DCC\u8D9F\u70EB\u638F\u6D9B\u6ED4\u7EE6\u8404\u6843\u9003\u6DD8\u9676\u8BA8\u5957\u7279\u85E4\u817E\u75BC\u8A8A\u68AF\u5254\u8E22\u9511\u63D0\u9898\u8E44\u557C\u4F53\u66FF\u568F\u60D5\u6D95\u5243\u5C49\u5929\u6DFB\u586B\u7530\u751C\u606C\u8214\u8146\u6311\u6761\u8FE2\u773A\u8DF3\u8D34\u94C1\u5E16\u5385\u542C\u70C3"],
      ["cd40", "\u866D\u866F\u8670\u8672", 6, "\u8683", 6, "\u868E", 4, "\u8694\u8696", 5, "\u869E", 4, "\u86A5\u86A6\u86AB\u86AD\u86AE\u86B2\u86B3\u86B7\u86B8\u86B9\u86BB", 4, "\u86C1\u86C2\u86C3\u86C5\u86C8\u86CC\u86CD\u86D2\u86D3\u86D5\u86D6\u86D7\u86DA\u86DC"],
      ["cd80", "\u86DD\u86E0\u86E1\u86E2\u86E3\u86E5\u86E6\u86E7\u86E8\u86EA\u86EB\u86EC\u86EF\u86F5\u86F6\u86F7\u86FA\u86FB\u86FC\u86FD\u86FF\u8701\u8704\u8705\u8706\u870B\u870C\u870E\u870F\u8710\u8711\u8714\u8716\u6C40\u5EF7\u505C\u4EAD\u5EAD\u633A\u8247\u901A\u6850\u916E\u77B3\u540C\u94DC\u5F64\u7AE5\u6876\u6345\u7B52\u7EDF\u75DB\u5077\u6295\u5934\u900F\u51F8\u79C3\u7A81\u56FE\u5F92\u9014\u6D82\u5C60\u571F\u5410\u5154\u6E4D\u56E2\u63A8\u9893\u817F\u8715\u892A\u9000\u541E\u5C6F\u81C0\u62D6\u6258\u8131\u9E35\u9640\u9A6E\u9A7C\u692D\u59A5\u62D3\u553E\u6316\u54C7\u86D9\u6D3C\u5A03\u74E6\u889C\u6B6A\u5916\u8C4C\u5F2F\u6E7E\u73A9\u987D\u4E38\u70F7\u5B8C\u7897\u633D\u665A\u7696\u60CB\u5B9B\u5A49\u4E07\u8155\u6C6A\u738B\u4EA1\u6789\u7F51\u5F80\u65FA\u671B\u5FD8\u5984\u5A01"],
      ["ce40", "\u8719\u871B\u871D\u871F\u8720\u8724\u8726\u8727\u8728\u872A\u872B\u872C\u872D\u872F\u8730\u8732\u8733\u8735\u8736\u8738\u8739\u873A\u873C\u873D\u8740", 6, "\u874A\u874B\u874D\u874F\u8750\u8751\u8752\u8754\u8755\u8756\u8758\u875A", 5, "\u8761\u8762\u8766", 7, "\u876F\u8771\u8772\u8773\u8775"],
      ["ce80", "\u8777\u8778\u8779\u877A\u877F\u8780\u8781\u8784\u8786\u8787\u8789\u878A\u878C\u878E", 4, "\u8794\u8795\u8796\u8798", 6, "\u87A0", 4, "\u5DCD\u5FAE\u5371\u97E6\u8FDD\u6845\u56F4\u552F\u60DF\u4E3A\u6F4D\u7EF4\u82C7\u840E\u59D4\u4F1F\u4F2A\u5C3E\u7EAC\u672A\u851A\u5473\u754F\u80C3\u5582\u9B4F\u4F4D\u6E2D\u8C13\u5C09\u6170\u536B\u761F\u6E29\u868A\u6587\u95FB\u7EB9\u543B\u7A33\u7D0A\u95EE\u55E1\u7FC1\u74EE\u631D\u8717\u6DA1\u7A9D\u6211\u65A1\u5367\u63E1\u6C83\u5DEB\u545C\u94A8\u4E4C\u6C61\u8BEC\u5C4B\u65E0\u829C\u68A7\u543E\u5434\u6BCB\u6B66\u4E94\u6342\u5348\u821E\u4F0D\u4FAE\u575E\u620A\u96FE\u6664\u7269\u52FF\u52A1\u609F\u8BEF\u6614\u7199\u6790\u897F\u7852\u77FD\u6670\u563B\u5438\u9521\u727A"],
      ["cf40", "\u87A5\u87A6\u87A7\u87A9\u87AA\u87AE\u87B0\u87B1\u87B2\u87B4\u87B6\u87B7\u87B8\u87B9\u87BB\u87BC\u87BE\u87BF\u87C1", 4, "\u87C7\u87C8\u87C9\u87CC", 4, "\u87D4", 6, "\u87DC\u87DD\u87DE\u87DF\u87E1\u87E2\u87E3\u87E4\u87E6\u87E7\u87E8\u87E9\u87EB\u87EC\u87ED\u87EF", 9],
      ["cf80", "\u87FA\u87FB\u87FC\u87FD\u87FF\u8800\u8801\u8802\u8804", 5, "\u880B", 7, "\u8814\u8817\u8818\u8819\u881A\u881C", 4, "\u8823\u7A00\u606F\u5E0C\u6089\u819D\u5915\u60DC\u7184\u70EF\u6EAA\u6C50\u7280\u6A84\u88AD\u5E2D\u4E60\u5AB3\u559C\u94E3\u6D17\u7CFB\u9699\u620F\u7EC6\u778E\u867E\u5323\u971E\u8F96\u6687\u5CE1\u4FA0\u72ED\u4E0B\u53A6\u590F\u5413\u6380\u9528\u5148\u4ED9\u9C9C\u7EA4\u54B8\u8D24\u8854\u8237\u95F2\u6D8E\u5F26\u5ACC\u663E\u9669\u73B0\u732E\u53BF\u817A\u9985\u7FA1\u5BAA\u9677\u9650\u7EBF\u76F8\u53A2\u9576\u9999\u7BB1\u8944\u6E58\u4E61\u7FD4\u7965\u8BE6\u60F3\u54CD\u4EAB\u9879\u5DF7\u6A61\u50CF\u5411\u8C61\u8427\u785D\u9704\u524A\u54EE\u56A3\u9500\u6D88\u5BB5\u6DC6\u6653"],
      ["d040", "\u8824", 13, "\u8833", 5, "\u883A\u883B\u883D\u883E\u883F\u8841\u8842\u8843\u8846", 5, "\u884E", 5, "\u8855\u8856\u8858\u885A", 6, "\u8866\u8867\u886A\u886D\u886F\u8871\u8873\u8874\u8875\u8876\u8878\u8879\u887A"],
      ["d080", "\u887B\u887C\u8880\u8883\u8886\u8887\u8889\u888A\u888C\u888E\u888F\u8890\u8891\u8893\u8894\u8895\u8897", 4, "\u889D", 4, "\u88A3\u88A5", 5, "\u5C0F\u5B5D\u6821\u8096\u5578\u7B11\u6548\u6954\u4E9B\u6B47\u874E\u978B\u534F\u631F\u643A\u90AA\u659C\u80C1\u8C10\u5199\u68B0\u5378\u87F9\u61C8\u6CC4\u6CFB\u8C22\u5C51\u85AA\u82AF\u950C\u6B23\u8F9B\u65B0\u5FFB\u5FC3\u4FE1\u8845\u661F\u8165\u7329\u60FA\u5174\u5211\u578B\u5F62\u90A2\u884C\u9192\u5E78\u674F\u6027\u59D3\u5144\u51F6\u80F8\u5308\u6C79\u96C4\u718A\u4F11\u4FEE\u7F9E\u673D\u55C5\u9508\u79C0\u8896\u7EE3\u589F\u620C\u9700\u865A\u5618\u987B\u5F90\u8BB8\u84C4\u9157\u53D9\u65ED\u5E8F\u755C\u6064\u7D6E\u5A7F\u7EEA\u7EED\u8F69\u55A7\u5BA3\u60AC\u65CB\u7384"],
      ["d140", "\u88AC\u88AE\u88AF\u88B0\u88B2", 4, "\u88B8\u88B9\u88BA\u88BB\u88BD\u88BE\u88BF\u88C0\u88C3\u88C4\u88C7\u88C8\u88CA\u88CB\u88CC\u88CD\u88CF\u88D0\u88D1\u88D3\u88D6\u88D7\u88DA", 4, "\u88E0\u88E1\u88E6\u88E7\u88E9", 6, "\u88F2\u88F5\u88F6\u88F7\u88FA\u88FB\u88FD\u88FF\u8900\u8901\u8903", 5],
      ["d180", "\u8909\u890B", 4, "\u8911\u8914", 4, "\u891C", 4, "\u8922\u8923\u8924\u8926\u8927\u8928\u8929\u892C\u892D\u892E\u892F\u8931\u8932\u8933\u8935\u8937\u9009\u7663\u7729\u7EDA\u9774\u859B\u5B66\u7A74\u96EA\u8840\u52CB\u718F\u5FAA\u65EC\u8BE2\u5BFB\u9A6F\u5DE1\u6B89\u6C5B\u8BAD\u8BAF\u900A\u8FC5\u538B\u62BC\u9E26\u9E2D\u5440\u4E2B\u82BD\u7259\u869C\u5D16\u8859\u6DAF\u96C5\u54D1\u4E9A\u8BB6\u7109\u54BD\u9609\u70DF\u6DF9\u76D0\u4E25\u7814\u8712\u5CA9\u5EF6\u8A00\u989C\u960E\u708E\u6CBF\u5944\u63A9\u773C\u884D\u6F14\u8273\u5830\u71D5\u538C\u781A\u96C1\u5501\u5F66\u7130\u5BB4\u8C1A\u9A8C\u6B83\u592E\u9E2F\u79E7\u6768\u626C\u4F6F\u75A1\u7F8A\u6D0B\u9633\u6C27\u4EF0\u75D2\u517B\u6837\u6F3E\u9080\u8170\u5996\u7476"],
      ["d240", "\u8938", 8, "\u8942\u8943\u8945", 24, "\u8960", 5, "\u8967", 19, "\u897C"],
      ["d280", "\u897D\u897E\u8980\u8982\u8984\u8985\u8987", 26, "\u6447\u5C27\u9065\u7A91\u8C23\u59DA\u54AC\u8200\u836F\u8981\u8000\u6930\u564E\u8036\u7237\u91CE\u51B6\u4E5F\u9875\u6396\u4E1A\u53F6\u66F3\u814B\u591C\u6DB2\u4E00\u58F9\u533B\u63D6\u94F1\u4F9D\u4F0A\u8863\u9890\u5937\u9057\u79FB\u4EEA\u80F0\u7591\u6C82\u5B9C\u59E8\u5F5D\u6905\u8681\u501A\u5DF2\u4E59\u77E3\u4EE5\u827A\u6291\u6613\u9091\u5C79\u4EBF\u5F79\u81C6\u9038\u8084\u75AB\u4EA6\u88D4\u610F\u6BC5\u5FC6\u4E49\u76CA\u6EA2\u8BE3\u8BAE\u8C0A\u8BD1\u5F02\u7FFC\u7FCC\u7ECE\u8335\u836B\u56E0\u6BB7\u97F3\u9634\u59FB\u541F\u94F6\u6DEB\u5BC5\u996E\u5C39\u5F15\u9690"],
      ["d340", "\u89A2", 30, "\u89C3\u89CD\u89D3\u89D4\u89D5\u89D7\u89D8\u89D9\u89DB\u89DD\u89DF\u89E0\u89E1\u89E2\u89E4\u89E7\u89E8\u89E9\u89EA\u89EC\u89ED\u89EE\u89F0\u89F1\u89F2\u89F4", 6],
      ["d380", "\u89FB", 4, "\u8A01", 5, "\u8A08", 21, "\u5370\u82F1\u6A31\u5A74\u9E70\u5E94\u7F28\u83B9\u8424\u8425\u8367\u8747\u8FCE\u8D62\u76C8\u5F71\u9896\u786C\u6620\u54DF\u62E5\u4F63\u81C3\u75C8\u5EB8\u96CD\u8E0A\u86F9\u548F\u6CF3\u6D8C\u6C38\u607F\u52C7\u7528\u5E7D\u4F18\u60A0\u5FE7\u5C24\u7531\u90AE\u94C0\u72B9\u6CB9\u6E38\u9149\u6709\u53CB\u53F3\u4F51\u91C9\u8BF1\u53C8\u5E7C\u8FC2\u6DE4\u4E8E\u76C2\u6986\u865E\u611A\u8206\u4F59\u4FDE\u903E\u9C7C\u6109\u6E1D\u6E14\u9685\u4E88\u5A31\u96E8\u4E0E\u5C7F\u79B9\u5B87\u8BED\u7FBD\u7389\u57DF\u828B\u90C1\u5401\u9047\u55BB\u5CEA\u5FA1\u6108\u6B32\u72F1\u80B2\u8A89"],
      ["d440", "\u8A1E", 31, "\u8A3F", 8, "\u8A49", 21],
      ["d480", "\u8A5F", 25, "\u8A7A", 6, "\u6D74\u5BD3\u88D5\u9884\u8C6B\u9A6D\u9E33\u6E0A\u51A4\u5143\u57A3\u8881\u539F\u63F4\u8F95\u56ED\u5458\u5706\u733F\u6E90\u7F18\u8FDC\u82D1\u613F\u6028\u9662\u66F0\u7EA6\u8D8A\u8DC3\u94A5\u5CB3\u7CA4\u6708\u60A6\u9605\u8018\u4E91\u90E7\u5300\u9668\u5141\u8FD0\u8574\u915D\u6655\u97F5\u5B55\u531D\u7838\u6742\u683D\u54C9\u707E\u5BB0\u8F7D\u518D\u5728\u54B1\u6512\u6682\u8D5E\u8D43\u810F\u846C\u906D\u7CDF\u51FF\u85FB\u67A3\u65E9\u6FA1\u86A4\u8E81\u566A\u9020\u7682\u7076\u71E5\u8D23\u62E9\u5219\u6CFD\u8D3C\u600E\u589E\u618E\u66FE\u8D60\u624E\u55B3\u6E23\u672D\u8F67"],
      ["d540", "\u8A81", 7, "\u8A8B", 7, "\u8A94", 46],
      ["d580", "\u8AC3", 32, "\u94E1\u95F8\u7728\u6805\u69A8\u548B\u4E4D\u70B8\u8BC8\u6458\u658B\u5B85\u7A84\u503A\u5BE8\u77BB\u6BE1\u8A79\u7C98\u6CBE\u76CF\u65A9\u8F97\u5D2D\u5C55\u8638\u6808\u5360\u6218\u7AD9\u6E5B\u7EFD\u6A1F\u7AE0\u5F70\u6F33\u5F20\u638C\u6DA8\u6756\u4E08\u5E10\u8D26\u4ED7\u80C0\u7634\u969C\u62DB\u662D\u627E\u6CBC\u8D75\u7167\u7F69\u5146\u8087\u53EC\u906E\u6298\u54F2\u86F0\u8F99\u8005\u9517\u8517\u8FD9\u6D59\u73CD\u659F\u771F\u7504\u7827\u81FB\u8D1E\u9488\u4FA6\u6795\u75B9\u8BCA\u9707\u632F\u9547\u9635\u84B8\u6323\u7741\u5F81\u72F0\u4E89\u6014\u6574\u62EF\u6B63\u653F"],
      ["d640", "\u8AE4", 34, "\u8B08", 27],
      ["d680", "\u8B24\u8B25\u8B27", 30, "\u5E27\u75C7\u90D1\u8BC1\u829D\u679D\u652F\u5431\u8718\u77E5\u80A2\u8102\u6C41\u4E4B\u7EC7\u804C\u76F4\u690D\u6B96\u6267\u503C\u4F84\u5740\u6307\u6B62\u8DBE\u53EA\u65E8\u7EB8\u5FD7\u631A\u63B7\u81F3\u81F4\u7F6E\u5E1C\u5CD9\u5236\u667A\u79E9\u7A1A\u8D28\u7099\u75D4\u6EDE\u6CBB\u7A92\u4E2D\u76C5\u5FE0\u949F\u8877\u7EC8\u79CD\u80BF\u91CD\u4EF2\u4F17\u821F\u5468\u5DDE\u6D32\u8BCC\u7CA5\u8F74\u8098\u5E1A\u5492\u76B1\u5B99\u663C\u9AA4\u73E0\u682A\u86DB\u6731\u732A\u8BF8\u8BDB\u9010\u7AF9\u70DB\u716E\u62C4\u77A9\u5631\u4E3B\u8457\u67F1\u52A9\u86C0\u8D2E\u94F8\u7B51"],
      ["d740", "\u8B46", 31, "\u8B67", 4, "\u8B6D", 25],
      ["d780", "\u8B87", 24, "\u8BAC\u8BB1\u8BBB\u8BC7\u8BD0\u8BEA\u8C09\u8C1E\u4F4F\u6CE8\u795D\u9A7B\u6293\u722A\u62FD\u4E13\u7816\u8F6C\u64B0\u8D5A\u7BC6\u6869\u5E84\u88C5\u5986\u649E\u58EE\u72B6\u690E\u9525\u8FFD\u8D58\u5760\u7F00\u8C06\u51C6\u6349\u62D9\u5353\u684C\u7422\u8301\u914C\u5544\u7740\u707C\u6D4A\u5179\u54A8\u8D44\u59FF\u6ECB\u6DC4\u5B5C\u7D2B\u4ED4\u7C7D\u6ED3\u5B50\u81EA\u6E0D\u5B57\u9B03\u68D5\u8E2A\u5B97\u7EFC\u603B\u7EB5\u90B9\u8D70\u594F\u63CD\u79DF\u8DB3\u5352\u65CF\u7956\u8BC5\u963B\u7EC4\u94BB\u7E82\u5634\u9189\u6700\u7F6A\u5C0A\u9075\u6628\u5DE6\u4F50\u67DE\u505A\u4F5C\u5750\u5EA7"],
      ["d840", "\u8C38", 8, "\u8C42\u8C43\u8C44\u8C45\u8C48\u8C4A\u8C4B\u8C4D", 7, "\u8C56\u8C57\u8C58\u8C59\u8C5B", 5, "\u8C63", 6, "\u8C6C", 6, "\u8C74\u8C75\u8C76\u8C77\u8C7B", 6, "\u8C83\u8C84\u8C86\u8C87"],
      ["d880", "\u8C88\u8C8B\u8C8D", 6, "\u8C95\u8C96\u8C97\u8C99", 20, "\u4E8D\u4E0C\u5140\u4E10\u5EFF\u5345\u4E15\u4E98\u4E1E\u9B32\u5B6C\u5669\u4E28\u79BA\u4E3F\u5315\u4E47\u592D\u723B\u536E\u6C10\u56DF\u80E4\u9997\u6BD3\u777E\u9F17\u4E36\u4E9F\u9F10\u4E5C\u4E69\u4E93\u8288\u5B5B\u556C\u560F\u4EC4\u538D\u539D\u53A3\u53A5\u53AE\u9765\u8D5D\u531A\u53F5\u5326\u532E\u533E\u8D5C\u5366\u5363\u5202\u5208\u520E\u522D\u5233\u523F\u5240\u524C\u525E\u5261\u525C\u84AF\u527D\u5282\u5281\u5290\u5293\u5182\u7F54\u4EBB\u4EC3\u4EC9\u4EC2\u4EE8\u4EE1\u4EEB\u4EDE\u4F1B\u4EF3\u4F22\u4F64\u4EF5\u4F25\u4F27\u4F09\u4F2B\u4F5E\u4F67\u6538\u4F5A\u4F5D"],
      ["d940", "\u8CAE", 62],
      ["d980", "\u8CED", 32, "\u4F5F\u4F57\u4F32\u4F3D\u4F76\u4F74\u4F91\u4F89\u4F83\u4F8F\u4F7E\u4F7B\u4FAA\u4F7C\u4FAC\u4F94\u4FE6\u4FE8\u4FEA\u4FC5\u4FDA\u4FE3\u4FDC\u4FD1\u4FDF\u4FF8\u5029\u504C\u4FF3\u502C\u500F\u502E\u502D\u4FFE\u501C\u500C\u5025\u5028\u507E\u5043\u5055\u5048\u504E\u506C\u507B\u50A5\u50A7\u50A9\u50BA\u50D6\u5106\u50ED\u50EC\u50E6\u50EE\u5107\u510B\u4EDD\u6C3D\u4F58\u4F65\u4FCE\u9FA0\u6C46\u7C74\u516E\u5DFD\u9EC9\u9998\u5181\u5914\u52F9\u530D\u8A07\u5310\u51EB\u5919\u5155\u4EA0\u5156\u4EB3\u886E\u88A4\u4EB5\u8114\u88D2\u7980\u5B34\u8803\u7FB8\u51AB\u51B1\u51BD\u51BC"],
      ["da40", "\u8D0E", 14, "\u8D20\u8D51\u8D52\u8D57\u8D5F\u8D65\u8D68\u8D69\u8D6A\u8D6C\u8D6E\u8D6F\u8D71\u8D72\u8D78", 8, "\u8D82\u8D83\u8D86\u8D87\u8D88\u8D89\u8D8C", 4, "\u8D92\u8D93\u8D95", 9, "\u8DA0\u8DA1"],
      ["da80", "\u8DA2\u8DA4", 12, "\u8DB2\u8DB6\u8DB7\u8DB9\u8DBB\u8DBD\u8DC0\u8DC1\u8DC2\u8DC5\u8DC7\u8DC8\u8DC9\u8DCA\u8DCD\u8DD0\u8DD2\u8DD3\u8DD4\u51C7\u5196\u51A2\u51A5\u8BA0\u8BA6\u8BA7\u8BAA\u8BB4\u8BB5\u8BB7\u8BC2\u8BC3\u8BCB\u8BCF\u8BCE\u8BD2\u8BD3\u8BD4\u8BD6\u8BD8\u8BD9\u8BDC\u8BDF\u8BE0\u8BE4\u8BE8\u8BE9\u8BEE\u8BF0\u8BF3\u8BF6\u8BF9\u8BFC\u8BFF\u8C00\u8C02\u8C04\u8C07\u8C0C\u8C0F\u8C11\u8C12\u8C14\u8C15\u8C16\u8C19\u8C1B\u8C18\u8C1D\u8C1F\u8C20\u8C21\u8C25\u8C27\u8C2A\u8C2B\u8C2E\u8C2F\u8C32\u8C33\u8C35\u8C36\u5369\u537A\u961D\u9622\u9621\u9631\u962A\u963D\u963C\u9642\u9649\u9654\u965F\u9667\u966C\u9672\u9674\u9688\u968D\u9697\u96B0\u9097\u909B\u909D\u9099\u90AC\u90A1\u90B4\u90B3\u90B6\u90BA"],
      ["db40", "\u8DD5\u8DD8\u8DD9\u8DDC\u8DE0\u8DE1\u8DE2\u8DE5\u8DE6\u8DE7\u8DE9\u8DED\u8DEE\u8DF0\u8DF1\u8DF2\u8DF4\u8DF6\u8DFC\u8DFE", 6, "\u8E06\u8E07\u8E08\u8E0B\u8E0D\u8E0E\u8E10\u8E11\u8E12\u8E13\u8E15", 7, "\u8E20\u8E21\u8E24", 4, "\u8E2B\u8E2D\u8E30\u8E32\u8E33\u8E34\u8E36\u8E37\u8E38\u8E3B\u8E3C\u8E3E"],
      ["db80", "\u8E3F\u8E43\u8E45\u8E46\u8E4C", 4, "\u8E53", 5, "\u8E5A", 11, "\u8E67\u8E68\u8E6A\u8E6B\u8E6E\u8E71\u90B8\u90B0\u90CF\u90C5\u90BE\u90D0\u90C4\u90C7\u90D3\u90E6\u90E2\u90DC\u90D7\u90DB\u90EB\u90EF\u90FE\u9104\u9122\u911E\u9123\u9131\u912F\u9139\u9143\u9146\u520D\u5942\u52A2\u52AC\u52AD\u52BE\u54FF\u52D0\u52D6\u52F0\u53DF\u71EE\u77CD\u5EF4\u51F5\u51FC\u9B2F\u53B6\u5F01\u755A\u5DEF\u574C\u57A9\u57A1\u587E\u58BC\u58C5\u58D1\u5729\u572C\u572A\u5733\u5739\u572E\u572F\u575C\u573B\u5742\u5769\u5785\u576B\u5786\u577C\u577B\u5768\u576D\u5776\u5773\u57AD\u57A4\u578C\u57B2\u57CF\u57A7\u57B4\u5793\u57A0\u57D5\u57D8\u57DA\u57D9\u57D2\u57B8\u57F4\u57EF\u57F8\u57E4\u57DD"],
      ["dc40", "\u8E73\u8E75\u8E77", 4, "\u8E7D\u8E7E\u8E80\u8E82\u8E83\u8E84\u8E86\u8E88", 6, "\u8E91\u8E92\u8E93\u8E95", 6, "\u8E9D\u8E9F", 11, "\u8EAD\u8EAE\u8EB0\u8EB1\u8EB3", 6, "\u8EBB", 7],
      ["dc80", "\u8EC3", 10, "\u8ECF", 21, "\u580B\u580D\u57FD\u57ED\u5800\u581E\u5819\u5844\u5820\u5865\u586C\u5881\u5889\u589A\u5880\u99A8\u9F19\u61FF\u8279\u827D\u827F\u828F\u828A\u82A8\u8284\u828E\u8291\u8297\u8299\u82AB\u82B8\u82BE\u82B0\u82C8\u82CA\u82E3\u8298\u82B7\u82AE\u82CB\u82CC\u82C1\u82A9\u82B4\u82A1\u82AA\u829F\u82C4\u82CE\u82A4\u82E1\u8309\u82F7\u82E4\u830F\u8307\u82DC\u82F4\u82D2\u82D8\u830C\u82FB\u82D3\u8311\u831A\u8306\u8314\u8315\u82E0\u82D5\u831C\u8351\u835B\u835C\u8308\u8392\u833C\u8334\u8331\u839B\u835E\u832F\u834F\u8347\u8343\u835F\u8340\u8317\u8360\u832D\u833A\u8333\u8366\u8365"],
      ["dd40", "\u8EE5", 62],
      ["dd80", "\u8F24", 32, "\u8368\u831B\u8369\u836C\u836A\u836D\u836E\u83B0\u8378\u83B3\u83B4\u83A0\u83AA\u8393\u839C\u8385\u837C\u83B6\u83A9\u837D\u83B8\u837B\u8398\u839E\u83A8\u83BA\u83BC\u83C1\u8401\u83E5\u83D8\u5807\u8418\u840B\u83DD\u83FD\u83D6\u841C\u8438\u8411\u8406\u83D4\u83DF\u840F\u8403\u83F8\u83F9\u83EA\u83C5\u83C0\u8426\u83F0\u83E1\u845C\u8451\u845A\u8459\u8473\u8487\u8488\u847A\u8489\u8478\u843C\u8446\u8469\u8476\u848C\u848E\u8431\u846D\u84C1\u84CD\u84D0\u84E6\u84BD\u84D3\u84CA\u84BF\u84BA\u84E0\u84A1\u84B9\u84B4\u8497\u84E5\u84E3\u850C\u750D\u8538\u84F0\u8539\u851F\u853A"],
      ["de40", "\u8F45", 32, "\u8F6A\u8F80\u8F8C\u8F92\u8F9D\u8FA0\u8FA1\u8FA2\u8FA4\u8FA5\u8FA6\u8FA7\u8FAA\u8FAC\u8FAD\u8FAE\u8FAF\u8FB2\u8FB3\u8FB4\u8FB5\u8FB7\u8FB8\u8FBA\u8FBB\u8FBC\u8FBF\u8FC0\u8FC3\u8FC6"],
      ["de80", "\u8FC9", 4, "\u8FCF\u8FD2\u8FD6\u8FD7\u8FDA\u8FE0\u8FE1\u8FE3\u8FE7\u8FEC\u8FEF\u8FF1\u8FF2\u8FF4\u8FF5\u8FF6\u8FFA\u8FFB\u8FFC\u8FFE\u8FFF\u9007\u9008\u900C\u900E\u9013\u9015\u9018\u8556\u853B\u84FF\u84FC\u8559\u8548\u8568\u8564\u855E\u857A\u77A2\u8543\u8572\u857B\u85A4\u85A8\u8587\u858F\u8579\u85AE\u859C\u8585\u85B9\u85B7\u85B0\u85D3\u85C1\u85DC\u85FF\u8627\u8605\u8629\u8616\u863C\u5EFE\u5F08\u593C\u5941\u8037\u5955\u595A\u5958\u530F\u5C22\u5C25\u5C2C\u5C34\u624C\u626A\u629F\u62BB\u62CA\u62DA\u62D7\u62EE\u6322\u62F6\u6339\u634B\u6343\u63AD\u63F6\u6371\u637A\u638E\u63B4\u636D\u63AC\u638A\u6369\u63AE\u63BC\u63F2\u63F8\u63E0\u63FF\u63C4\u63DE\u63CE\u6452\u63C6\u63BE\u6445\u6441\u640B\u641B\u6420\u640C\u6426\u6421\u645E\u6484\u646D\u6496"],
      ["df40", "\u9019\u901C\u9023\u9024\u9025\u9027", 5, "\u9030", 4, "\u9037\u9039\u903A\u903D\u903F\u9040\u9043\u9045\u9046\u9048", 4, "\u904E\u9054\u9055\u9056\u9059\u905A\u905C", 5, "\u9064\u9066\u9067\u9069\u906A\u906B\u906C\u906F", 4, "\u9076", 6, "\u907E\u9081"],
      ["df80", "\u9084\u9085\u9086\u9087\u9089\u908A\u908C", 4, "\u9092\u9094\u9096\u9098\u909A\u909C\u909E\u909F\u90A0\u90A4\u90A5\u90A7\u90A8\u90A9\u90AB\u90AD\u90B2\u90B7\u90BC\u90BD\u90BF\u90C0\u647A\u64B7\u64B8\u6499\u64BA\u64C0\u64D0\u64D7\u64E4\u64E2\u6509\u6525\u652E\u5F0B\u5FD2\u7519\u5F11\u535F\u53F1\u53FD\u53E9\u53E8\u53FB\u5412\u5416\u5406\u544B\u5452\u5453\u5454\u5456\u5443\u5421\u5457\u5459\u5423\u5432\u5482\u5494\u5477\u5471\u5464\u549A\u549B\u5484\u5476\u5466\u549D\u54D0\u54AD\u54C2\u54B4\u54D2\u54A7\u54A6\u54D3\u54D4\u5472\u54A3\u54D5\u54BB\u54BF\u54CC\u54D9\u54DA\u54DC\u54A9\u54AA\u54A4\u54DD\u54CF\u54DE\u551B\u54E7\u5520\u54FD\u5514\u54F3\u5522\u5523\u550F\u5511\u5527\u552A\u5567\u558F\u55B5\u5549\u556D\u5541\u5555\u553F\u5550\u553C"],
      ["e040", "\u90C2\u90C3\u90C6\u90C8\u90C9\u90CB\u90CC\u90CD\u90D2\u90D4\u90D5\u90D6\u90D8\u90D9\u90DA\u90DE\u90DF\u90E0\u90E3\u90E4\u90E5\u90E9\u90EA\u90EC\u90EE\u90F0\u90F1\u90F2\u90F3\u90F5\u90F6\u90F7\u90F9\u90FA\u90FB\u90FC\u90FF\u9100\u9101\u9103\u9105", 19, "\u911A\u911B\u911C"],
      ["e080", "\u911D\u911F\u9120\u9121\u9124", 10, "\u9130\u9132", 6, "\u913A", 8, "\u9144\u5537\u5556\u5575\u5576\u5577\u5533\u5530\u555C\u558B\u55D2\u5583\u55B1\u55B9\u5588\u5581\u559F\u557E\u55D6\u5591\u557B\u55DF\u55BD\u55BE\u5594\u5599\u55EA\u55F7\u55C9\u561F\u55D1\u55EB\u55EC\u55D4\u55E6\u55DD\u55C4\u55EF\u55E5\u55F2\u55F3\u55CC\u55CD\u55E8\u55F5\u55E4\u8F94\u561E\u5608\u560C\u5601\u5624\u5623\u55FE\u5600\u5627\u562D\u5658\u5639\u5657\u562C\u564D\u5662\u5659\u565C\u564C\u5654\u5686\u5664\u5671\u566B\u567B\u567C\u5685\u5693\u56AF\u56D4\u56D7\u56DD\u56E1\u56F5\u56EB\u56F9\u56FF\u5704\u570A\u5709\u571C\u5E0F\u5E19\u5E14\u5E11\u5E31\u5E3B\u5E3C"],
      ["e140", "\u9145\u9147\u9148\u9151\u9153\u9154\u9155\u9156\u9158\u9159\u915B\u915C\u915F\u9160\u9166\u9167\u9168\u916B\u916D\u9173\u917A\u917B\u917C\u9180", 4, "\u9186\u9188\u918A\u918E\u918F\u9193", 6, "\u919C", 5, "\u91A4", 5, "\u91AB\u91AC\u91B0\u91B1\u91B2\u91B3\u91B6\u91B7\u91B8\u91B9\u91BB"],
      ["e180", "\u91BC", 10, "\u91C8\u91CB\u91D0\u91D2", 9, "\u91DD", 8, "\u5E37\u5E44\u5E54\u5E5B\u5E5E\u5E61\u5C8C\u5C7A\u5C8D\u5C90\u5C96\u5C88\u5C98\u5C99\u5C91\u5C9A\u5C9C\u5CB5\u5CA2\u5CBD\u5CAC\u5CAB\u5CB1\u5CA3\u5CC1\u5CB7\u5CC4\u5CD2\u5CE4\u5CCB\u5CE5\u5D02\u5D03\u5D27\u5D26\u5D2E\u5D24\u5D1E\u5D06\u5D1B\u5D58\u5D3E\u5D34\u5D3D\u5D6C\u5D5B\u5D6F\u5D5D\u5D6B\u5D4B\u5D4A\u5D69\u5D74\u5D82\u5D99\u5D9D\u8C73\u5DB7\u5DC5\u5F73\u5F77\u5F82\u5F87\u5F89\u5F8C\u5F95\u5F99\u5F9C\u5FA8\u5FAD\u5FB5\u5FBC\u8862\u5F61\u72AD\u72B0\u72B4\u72B7\u72B8\u72C3\u72C1\u72CE\u72CD\u72D2\u72E8\u72EF\u72E9\u72F2\u72F4\u72F7\u7301\u72F3\u7303\u72FA"],
      ["e240", "\u91E6", 62],
      ["e280", "\u9225", 32, "\u72FB\u7317\u7313\u7321\u730A\u731E\u731D\u7315\u7322\u7339\u7325\u732C\u7338\u7331\u7350\u734D\u7357\u7360\u736C\u736F\u737E\u821B\u5925\u98E7\u5924\u5902\u9963\u9967", 5, "\u9974\u9977\u997D\u9980\u9984\u9987\u998A\u998D\u9990\u9991\u9993\u9994\u9995\u5E80\u5E91\u5E8B\u5E96\u5EA5\u5EA0\u5EB9\u5EB5\u5EBE\u5EB3\u8D53\u5ED2\u5ED1\u5EDB\u5EE8\u5EEA\u81BA\u5FC4\u5FC9\u5FD6\u5FCF\u6003\u5FEE\u6004\u5FE1\u5FE4\u5FFE\u6005\u6006\u5FEA\u5FED\u5FF8\u6019\u6035\u6026\u601B\u600F\u600D\u6029\u602B\u600A\u603F\u6021\u6078\u6079\u607B\u607A\u6042"],
      ["e340", "\u9246", 45, "\u9275", 16],
      ["e380", "\u9286", 7, "\u928F", 24, "\u606A\u607D\u6096\u609A\u60AD\u609D\u6083\u6092\u608C\u609B\u60EC\u60BB\u60B1\u60DD\u60D8\u60C6\u60DA\u60B4\u6120\u6126\u6115\u6123\u60F4\u6100\u610E\u612B\u614A\u6175\u61AC\u6194\u61A7\u61B7\u61D4\u61F5\u5FDD\u96B3\u95E9\u95EB\u95F1\u95F3\u95F5\u95F6\u95FC\u95FE\u9603\u9604\u9606\u9608\u960A\u960B\u960C\u960D\u960F\u9612\u9615\u9616\u9617\u9619\u961A\u4E2C\u723F\u6215\u6C35\u6C54\u6C5C\u6C4A\u6CA3\u6C85\u6C90\u6C94\u6C8C\u6C68\u6C69\u6C74\u6C76\u6C86\u6CA9\u6CD0\u6CD4\u6CAD\u6CF7\u6CF8\u6CF1\u6CD7\u6CB2\u6CE0\u6CD6\u6CFA\u6CEB\u6CEE\u6CB1\u6CD3\u6CEF\u6CFE"],
      ["e440", "\u92A8", 5, "\u92AF", 24, "\u92C9", 31],
      ["e480", "\u92E9", 32, "\u6D39\u6D27\u6D0C\u6D43\u6D48\u6D07\u6D04\u6D19\u6D0E\u6D2B\u6D4D\u6D2E\u6D35\u6D1A\u6D4F\u6D52\u6D54\u6D33\u6D91\u6D6F\u6D9E\u6DA0\u6D5E\u6D93\u6D94\u6D5C\u6D60\u6D7C\u6D63\u6E1A\u6DC7\u6DC5\u6DDE\u6E0E\u6DBF\u6DE0\u6E11\u6DE6\u6DDD\u6DD9\u6E16\u6DAB\u6E0C\u6DAE\u6E2B\u6E6E\u6E4E\u6E6B\u6EB2\u6E5F\u6E86\u6E53\u6E54\u6E32\u6E25\u6E44\u6EDF\u6EB1\u6E98\u6EE0\u6F2D\u6EE2\u6EA5\u6EA7\u6EBD\u6EBB\u6EB7\u6ED7\u6EB4\u6ECF\u6E8F\u6EC2\u6E9F\u6F62\u6F46\u6F47\u6F24\u6F15\u6EF9\u6F2F\u6F36\u6F4B\u6F74\u6F2A\u6F09\u6F29\u6F89\u6F8D\u6F8C\u6F78\u6F72\u6F7C\u6F7A\u6FD1"],
      ["e540", "\u930A", 51, "\u933F", 10],
      ["e580", "\u934A", 31, "\u936B\u6FC9\u6FA7\u6FB9\u6FB6\u6FC2\u6FE1\u6FEE\u6FDE\u6FE0\u6FEF\u701A\u7023\u701B\u7039\u7035\u704F\u705E\u5B80\u5B84\u5B95\u5B93\u5BA5\u5BB8\u752F\u9A9E\u6434\u5BE4\u5BEE\u8930\u5BF0\u8E47\u8B07\u8FB6\u8FD3\u8FD5\u8FE5\u8FEE\u8FE4\u8FE9\u8FE6\u8FF3\u8FE8\u9005\u9004\u900B\u9026\u9011\u900D\u9016\u9021\u9035\u9036\u902D\u902F\u9044\u9051\u9052\u9050\u9068\u9058\u9062\u905B\u66B9\u9074\u907D\u9082\u9088\u9083\u908B\u5F50\u5F57\u5F56\u5F58\u5C3B\u54AB\u5C50\u5C59\u5B71\u5C63\u5C66\u7FBC\u5F2A\u5F29\u5F2D\u8274\u5F3C\u9B3B\u5C6E\u5981\u5983\u598D\u59A9\u59AA\u59A3"],
      ["e640", "\u936C", 34, "\u9390", 27],
      ["e680", "\u93AC", 29, "\u93CB\u93CC\u93CD\u5997\u59CA\u59AB\u599E\u59A4\u59D2\u59B2\u59AF\u59D7\u59BE\u5A05\u5A06\u59DD\u5A08\u59E3\u59D8\u59F9\u5A0C\u5A09\u5A32\u5A34\u5A11\u5A23\u5A13\u5A40\u5A67\u5A4A\u5A55\u5A3C\u5A62\u5A75\u80EC\u5AAA\u5A9B\u5A77\u5A7A\u5ABE\u5AEB\u5AB2\u5AD2\u5AD4\u5AB8\u5AE0\u5AE3\u5AF1\u5AD6\u5AE6\u5AD8\u5ADC\u5B09\u5B17\u5B16\u5B32\u5B37\u5B40\u5C15\u5C1C\u5B5A\u5B65\u5B73\u5B51\u5B53\u5B62\u9A75\u9A77\u9A78\u9A7A\u9A7F\u9A7D\u9A80\u9A81\u9A85\u9A88\u9A8A\u9A90\u9A92\u9A93\u9A96\u9A98\u9A9B\u9A9C\u9A9D\u9A9F\u9AA0\u9AA2\u9AA3\u9AA5\u9AA7\u7E9F\u7EA1\u7EA3\u7EA5\u7EA8\u7EA9"],
      ["e740", "\u93CE", 7, "\u93D7", 54],
      ["e780", "\u940E", 32, "\u7EAD\u7EB0\u7EBE\u7EC0\u7EC1\u7EC2\u7EC9\u7ECB\u7ECC\u7ED0\u7ED4\u7ED7\u7EDB\u7EE0\u7EE1\u7EE8\u7EEB\u7EEE\u7EEF\u7EF1\u7EF2\u7F0D\u7EF6\u7EFA\u7EFB\u7EFE\u7F01\u7F02\u7F03\u7F07\u7F08\u7F0B\u7F0C\u7F0F\u7F11\u7F12\u7F17\u7F19\u7F1C\u7F1B\u7F1F\u7F21", 6, "\u7F2A\u7F2B\u7F2C\u7F2D\u7F2F", 4, "\u7F35\u5E7A\u757F\u5DDB\u753E\u9095\u738E\u7391\u73AE\u73A2\u739F\u73CF\u73C2\u73D1\u73B7\u73B3\u73C0\u73C9\u73C8\u73E5\u73D9\u987C\u740A\u73E9\u73E7\u73DE\u73BA\u73F2\u740F\u742A\u745B\u7426\u7425\u7428\u7430\u742E\u742C"],
      ["e840", "\u942F", 14, "\u943F", 43, "\u946C\u946D\u946E\u946F"],
      ["e880", "\u9470", 20, "\u9491\u9496\u9498\u94C7\u94CF\u94D3\u94D4\u94DA\u94E6\u94FB\u951C\u9520\u741B\u741A\u7441\u745C\u7457\u7455\u7459\u7477\u746D\u747E\u749C\u748E\u7480\u7481\u7487\u748B\u749E\u74A8\u74A9\u7490\u74A7\u74D2\u74BA\u97EA\u97EB\u97EC\u674C\u6753\u675E\u6748\u6769\u67A5\u6787\u676A\u6773\u6798\u67A7\u6775\u67A8\u679E\u67AD\u678B\u6777\u677C\u67F0\u6809\u67D8\u680A\u67E9\u67B0\u680C\u67D9\u67B5\u67DA\u67B3\u67DD\u6800\u67C3\u67B8\u67E2\u680E\u67C1\u67FD\u6832\u6833\u6860\u6861\u684E\u6862\u6844\u6864\u6883\u681D\u6855\u6866\u6841\u6867\u6840\u683E\u684A\u6849\u6829\u68B5\u688F\u6874\u6877\u6893\u686B\u68C2\u696E\u68FC\u691F\u6920\u68F9"],
      ["e940", "\u9527\u9533\u953D\u9543\u9548\u954B\u9555\u955A\u9560\u956E\u9574\u9575\u9577", 7, "\u9580", 42],
      ["e980", "\u95AB", 32, "\u6924\u68F0\u690B\u6901\u6957\u68E3\u6910\u6971\u6939\u6960\u6942\u695D\u6984\u696B\u6980\u6998\u6978\u6934\u69CC\u6987\u6988\u69CE\u6989\u6966\u6963\u6979\u699B\u69A7\u69BB\u69AB\u69AD\u69D4\u69B1\u69C1\u69CA\u69DF\u6995\u69E0\u698D\u69FF\u6A2F\u69ED\u6A17\u6A18\u6A65\u69F2\u6A44\u6A3E\u6AA0\u6A50\u6A5B\u6A35\u6A8E\u6A79\u6A3D\u6A28\u6A58\u6A7C\u6A91\u6A90\u6AA9\u6A97\u6AAB\u7337\u7352\u6B81\u6B82\u6B87\u6B84\u6B92\u6B93\u6B8D\u6B9A\u6B9B\u6BA1\u6BAA\u8F6B\u8F6D\u8F71\u8F72\u8F73\u8F75\u8F76\u8F78\u8F77\u8F79\u8F7A\u8F7C\u8F7E\u8F81\u8F82\u8F84\u8F87\u8F8B"],
      ["ea40", "\u95CC", 27, "\u95EC\u95FF\u9607\u9613\u9618\u961B\u961E\u9620\u9623", 6, "\u962B\u962C\u962D\u962F\u9630\u9637\u9638\u9639\u963A\u963E\u9641\u9643\u964A\u964E\u964F\u9651\u9652\u9653\u9656\u9657"],
      ["ea80", "\u9658\u9659\u965A\u965C\u965D\u965E\u9660\u9663\u9665\u9666\u966B\u966D", 4, "\u9673\u9678", 12, "\u9687\u9689\u968A\u8F8D\u8F8E\u8F8F\u8F98\u8F9A\u8ECE\u620B\u6217\u621B\u621F\u6222\u6221\u6225\u6224\u622C\u81E7\u74EF\u74F4\u74FF\u750F\u7511\u7513\u6534\u65EE\u65EF\u65F0\u660A\u6619\u6772\u6603\u6615\u6600\u7085\u66F7\u661D\u6634\u6631\u6636\u6635\u8006\u665F\u6654\u6641\u664F\u6656\u6661\u6657\u6677\u6684\u668C\u66A7\u669D\u66BE\u66DB\u66DC\u66E6\u66E9\u8D32\u8D33\u8D36\u8D3B\u8D3D\u8D40\u8D45\u8D46\u8D48\u8D49\u8D47\u8D4D\u8D55\u8D59\u89C7\u89CA\u89CB\u89CC\u89CE\u89CF\u89D0\u89D1\u726E\u729F\u725D\u7266\u726F\u727E\u727F\u7284\u728B\u728D\u728F\u7292\u6308\u6332\u63B0"],
      ["eb40", "\u968C\u968E\u9691\u9692\u9693\u9695\u9696\u969A\u969B\u969D", 9, "\u96A8", 7, "\u96B1\u96B2\u96B4\u96B5\u96B7\u96B8\u96BA\u96BB\u96BF\u96C2\u96C3\u96C8\u96CA\u96CB\u96D0\u96D1\u96D3\u96D4\u96D6", 9, "\u96E1", 6, "\u96EB"],
      ["eb80", "\u96EC\u96ED\u96EE\u96F0\u96F1\u96F2\u96F4\u96F5\u96F8\u96FA\u96FB\u96FC\u96FD\u96FF\u9702\u9703\u9705\u970A\u970B\u970C\u9710\u9711\u9712\u9714\u9715\u9717", 4, "\u971D\u971F\u9720\u643F\u64D8\u8004\u6BEA\u6BF3\u6BFD\u6BF5\u6BF9\u6C05\u6C07\u6C06\u6C0D\u6C15\u6C18\u6C19\u6C1A\u6C21\u6C29\u6C24\u6C2A\u6C32\u6535\u6555\u656B\u724D\u7252\u7256\u7230\u8662\u5216\u809F\u809C\u8093\u80BC\u670A\u80BD\u80B1\u80AB\u80AD\u80B4\u80B7\u80E7\u80E8\u80E9\u80EA\u80DB\u80C2\u80C4\u80D9\u80CD\u80D7\u6710\u80DD\u80EB\u80F1\u80F4\u80ED\u810D\u810E\u80F2\u80FC\u6715\u8112\u8C5A\u8136\u811E\u812C\u8118\u8132\u8148\u814C\u8153\u8174\u8159\u815A\u8171\u8160\u8169\u817C\u817D\u816D\u8167\u584D\u5AB5\u8188\u8182\u8191\u6ED5\u81A3\u81AA\u81CC\u6726\u81CA\u81BB"],
      ["ec40", "\u9721", 8, "\u972B\u972C\u972E\u972F\u9731\u9733", 4, "\u973A\u973B\u973C\u973D\u973F", 18, "\u9754\u9755\u9757\u9758\u975A\u975C\u975D\u975F\u9763\u9764\u9766\u9767\u9768\u976A", 7],
      ["ec80", "\u9772\u9775\u9777", 4, "\u977D", 7, "\u9786", 4, "\u978C\u978E\u978F\u9790\u9793\u9795\u9796\u9797\u9799", 4, "\u81C1\u81A6\u6B24\u6B37\u6B39\u6B43\u6B46\u6B59\u98D1\u98D2\u98D3\u98D5\u98D9\u98DA\u6BB3\u5F40\u6BC2\u89F3\u6590\u9F51\u6593\u65BC\u65C6\u65C4\u65C3\u65CC\u65CE\u65D2\u65D6\u7080\u709C\u7096\u709D\u70BB\u70C0\u70B7\u70AB\u70B1\u70E8\u70CA\u7110\u7113\u7116\u712F\u7131\u7173\u715C\u7168\u7145\u7172\u714A\u7178\u717A\u7198\u71B3\u71B5\u71A8\u71A0\u71E0\u71D4\u71E7\u71F9\u721D\u7228\u706C\u7118\u7166\u71B9\u623E\u623D\u6243\u6248\u6249\u793B\u7940\u7946\u7949\u795B\u795C\u7953\u795A\u7962\u7957\u7960\u796F\u7967\u797A\u7985\u798A\u799A\u79A7\u79B3\u5FD1\u5FD0"],
      ["ed40", "\u979E\u979F\u97A1\u97A2\u97A4", 6, "\u97AC\u97AE\u97B0\u97B1\u97B3\u97B5", 46],
      ["ed80", "\u97E4\u97E5\u97E8\u97EE", 4, "\u97F4\u97F7", 23, "\u603C\u605D\u605A\u6067\u6041\u6059\u6063\u60AB\u6106\u610D\u615D\u61A9\u619D\u61CB\u61D1\u6206\u8080\u807F\u6C93\u6CF6\u6DFC\u77F6\u77F8\u7800\u7809\u7817\u7818\u7811\u65AB\u782D\u781C\u781D\u7839\u783A\u783B\u781F\u783C\u7825\u782C\u7823\u7829\u784E\u786D\u7856\u7857\u7826\u7850\u7847\u784C\u786A\u789B\u7893\u789A\u7887\u789C\u78A1\u78A3\u78B2\u78B9\u78A5\u78D4\u78D9\u78C9\u78EC\u78F2\u7905\u78F4\u7913\u7924\u791E\u7934\u9F9B\u9EF9\u9EFB\u9EFC\u76F1\u7704\u770D\u76F9\u7707\u7708\u771A\u7722\u7719\u772D\u7726\u7735\u7738\u7750\u7751\u7747\u7743\u775A\u7768"],
      ["ee40", "\u980F", 62],
      ["ee80", "\u984E", 32, "\u7762\u7765\u777F\u778D\u777D\u7780\u778C\u7791\u779F\u77A0\u77B0\u77B5\u77BD\u753A\u7540\u754E\u754B\u7548\u755B\u7572\u7579\u7583\u7F58\u7F61\u7F5F\u8A48\u7F68\u7F74\u7F71\u7F79\u7F81\u7F7E\u76CD\u76E5\u8832\u9485\u9486\u9487\u948B\u948A\u948C\u948D\u948F\u9490\u9494\u9497\u9495\u949A\u949B\u949C\u94A3\u94A4\u94AB\u94AA\u94AD\u94AC\u94AF\u94B0\u94B2\u94B4\u94B6", 4, "\u94BC\u94BD\u94BF\u94C4\u94C8", 6, "\u94D0\u94D1\u94D2\u94D5\u94D6\u94D7\u94D9\u94D8\u94DB\u94DE\u94DF\u94E0\u94E2\u94E4\u94E5\u94E7\u94E8\u94EA"],
      ["ef40", "\u986F", 5, "\u988B\u988E\u9892\u9895\u9899\u98A3\u98A8", 37, "\u98CF\u98D0\u98D4\u98D6\u98D7\u98DB\u98DC\u98DD\u98E0", 4],
      ["ef80", "\u98E5\u98E6\u98E9", 30, "\u94E9\u94EB\u94EE\u94EF\u94F3\u94F4\u94F5\u94F7\u94F9\u94FC\u94FD\u94FF\u9503\u9502\u9506\u9507\u9509\u950A\u950D\u950E\u950F\u9512", 4, "\u9518\u951B\u951D\u951E\u951F\u9522\u952A\u952B\u9529\u952C\u9531\u9532\u9534\u9536\u9537\u9538\u953C\u953E\u953F\u9542\u9535\u9544\u9545\u9546\u9549\u954C\u954E\u954F\u9552\u9553\u9554\u9556\u9557\u9558\u9559\u955B\u955E\u955F\u955D\u9561\u9562\u9564", 8, "\u956F\u9571\u9572\u9573\u953A\u77E7\u77EC\u96C9\u79D5\u79ED\u79E3\u79EB\u7A06\u5D47\u7A03\u7A02\u7A1E\u7A14"],
      ["f040", "\u9908", 4, "\u990E\u990F\u9911", 28, "\u992F", 26],
      ["f080", "\u994A", 9, "\u9956", 12, "\u9964\u9966\u9973\u9978\u9979\u997B\u997E\u9982\u9983\u9989\u7A39\u7A37\u7A51\u9ECF\u99A5\u7A70\u7688\u768E\u7693\u7699\u76A4\u74DE\u74E0\u752C\u9E20\u9E22\u9E28", 4, "\u9E32\u9E31\u9E36\u9E38\u9E37\u9E39\u9E3A\u9E3E\u9E41\u9E42\u9E44\u9E46\u9E47\u9E48\u9E49\u9E4B\u9E4C\u9E4E\u9E51\u9E55\u9E57\u9E5A\u9E5B\u9E5C\u9E5E\u9E63\u9E66", 6, "\u9E71\u9E6D\u9E73\u7592\u7594\u7596\u75A0\u759D\u75AC\u75A3\u75B3\u75B4\u75B8\u75C4\u75B1\u75B0\u75C3\u75C2\u75D6\u75CD\u75E3\u75E8\u75E6\u75E4\u75EB\u75E7\u7603\u75F1\u75FC\u75FF\u7610\u7600\u7605\u760C\u7617\u760A\u7625\u7618\u7615\u7619"],
      ["f140", "\u998C\u998E\u999A", 10, "\u99A6\u99A7\u99A9", 47],
      ["f180", "\u99D9", 32, "\u761B\u763C\u7622\u7620\u7640\u762D\u7630\u763F\u7635\u7643\u763E\u7633\u764D\u765E\u7654\u765C\u7656\u766B\u766F\u7FCA\u7AE6\u7A78\u7A79\u7A80\u7A86\u7A88\u7A95\u7AA6\u7AA0\u7AAC\u7AA8\u7AAD\u7AB3\u8864\u8869\u8872\u887D\u887F\u8882\u88A2\u88C6\u88B7\u88BC\u88C9\u88E2\u88CE\u88E3\u88E5\u88F1\u891A\u88FC\u88E8\u88FE\u88F0\u8921\u8919\u8913\u891B\u890A\u8934\u892B\u8936\u8941\u8966\u897B\u758B\u80E5\u76B2\u76B4\u77DC\u8012\u8014\u8016\u801C\u8020\u8022\u8025\u8026\u8027\u8029\u8028\u8031\u800B\u8035\u8043\u8046\u804D\u8052\u8069\u8071\u8983\u9878\u9880\u9883"],
      ["f240", "\u99FA", 62],
      ["f280", "\u9A39", 32, "\u9889\u988C\u988D\u988F\u9894\u989A\u989B\u989E\u989F\u98A1\u98A2\u98A5\u98A6\u864D\u8654\u866C\u866E\u867F\u867A\u867C\u867B\u86A8\u868D\u868B\u86AC\u869D\u86A7\u86A3\u86AA\u8693\u86A9\u86B6\u86C4\u86B5\u86CE\u86B0\u86BA\u86B1\u86AF\u86C9\u86CF\u86B4\u86E9\u86F1\u86F2\u86ED\u86F3\u86D0\u8713\u86DE\u86F4\u86DF\u86D8\u86D1\u8703\u8707\u86F8\u8708\u870A\u870D\u8709\u8723\u873B\u871E\u8725\u872E\u871A\u873E\u8748\u8734\u8731\u8729\u8737\u873F\u8782\u8722\u877D\u877E\u877B\u8760\u8770\u874C\u876E\u878B\u8753\u8763\u877C\u8764\u8759\u8765\u8793\u87AF\u87A8\u87D2"],
      ["f340", "\u9A5A", 17, "\u9A72\u9A83\u9A89\u9A8D\u9A8E\u9A94\u9A95\u9A99\u9AA6\u9AA9", 6, "\u9AB2\u9AB3\u9AB4\u9AB5\u9AB9\u9ABB\u9ABD\u9ABE\u9ABF\u9AC3\u9AC4\u9AC6", 4, "\u9ACD\u9ACE\u9ACF\u9AD0\u9AD2\u9AD4\u9AD5\u9AD6\u9AD7\u9AD9\u9ADA\u9ADB\u9ADC"],
      ["f380", "\u9ADD\u9ADE\u9AE0\u9AE2\u9AE3\u9AE4\u9AE5\u9AE7\u9AE8\u9AE9\u9AEA\u9AEC\u9AEE\u9AF0", 8, "\u9AFA\u9AFC", 6, "\u9B04\u9B05\u9B06\u87C6\u8788\u8785\u87AD\u8797\u8783\u87AB\u87E5\u87AC\u87B5\u87B3\u87CB\u87D3\u87BD\u87D1\u87C0\u87CA\u87DB\u87EA\u87E0\u87EE\u8816\u8813\u87FE\u880A\u881B\u8821\u8839\u883C\u7F36\u7F42\u7F44\u7F45\u8210\u7AFA\u7AFD\u7B08\u7B03\u7B04\u7B15\u7B0A\u7B2B\u7B0F\u7B47\u7B38\u7B2A\u7B19\u7B2E\u7B31\u7B20\u7B25\u7B24\u7B33\u7B3E\u7B1E\u7B58\u7B5A\u7B45\u7B75\u7B4C\u7B5D\u7B60\u7B6E\u7B7B\u7B62\u7B72\u7B71\u7B90\u7BA6\u7BA7\u7BB8\u7BAC\u7B9D\u7BA8\u7B85\u7BAA\u7B9C\u7BA2\u7BAB\u7BB4\u7BD1\u7BC1\u7BCC\u7BDD\u7BDA\u7BE5\u7BE6\u7BEA\u7C0C\u7BFE\u7BFC\u7C0F\u7C16\u7C0B"],
      ["f440", "\u9B07\u9B09", 5, "\u9B10\u9B11\u9B12\u9B14", 10, "\u9B20\u9B21\u9B22\u9B24", 10, "\u9B30\u9B31\u9B33", 7, "\u9B3D\u9B3E\u9B3F\u9B40\u9B46\u9B4A\u9B4B\u9B4C\u9B4E\u9B50\u9B52\u9B53\u9B55", 5],
      ["f480", "\u9B5B", 32, "\u7C1F\u7C2A\u7C26\u7C38\u7C41\u7C40\u81FE\u8201\u8202\u8204\u81EC\u8844\u8221\u8222\u8223\u822D\u822F\u8228\u822B\u8238\u823B\u8233\u8234\u823E\u8244\u8249\u824B\u824F\u825A\u825F\u8268\u887E\u8885\u8888\u88D8\u88DF\u895E\u7F9D\u7F9F\u7FA7\u7FAF\u7FB0\u7FB2\u7C7C\u6549\u7C91\u7C9D\u7C9C\u7C9E\u7CA2\u7CB2\u7CBC\u7CBD\u7CC1\u7CC7\u7CCC\u7CCD\u7CC8\u7CC5\u7CD7\u7CE8\u826E\u66A8\u7FBF\u7FCE\u7FD5\u7FE5\u7FE1\u7FE6\u7FE9\u7FEE\u7FF3\u7CF8\u7D77\u7DA6\u7DAE\u7E47\u7E9B\u9EB8\u9EB4\u8D73\u8D84\u8D94\u8D91\u8DB1\u8D67\u8D6D\u8C47\u8C49\u914A\u9150\u914E\u914F\u9164"],
      ["f540", "\u9B7C", 62],
      ["f580", "\u9BBB", 32, "\u9162\u9161\u9170\u9169\u916F\u917D\u917E\u9172\u9174\u9179\u918C\u9185\u9190\u918D\u9191\u91A2\u91A3\u91AA\u91AD\u91AE\u91AF\u91B5\u91B4\u91BA\u8C55\u9E7E\u8DB8\u8DEB\u8E05\u8E59\u8E69\u8DB5\u8DBF\u8DBC\u8DBA\u8DC4\u8DD6\u8DD7\u8DDA\u8DDE\u8DCE\u8DCF\u8DDB\u8DC6\u8DEC\u8DF7\u8DF8\u8DE3\u8DF9\u8DFB\u8DE4\u8E09\u8DFD\u8E14\u8E1D\u8E1F\u8E2C\u8E2E\u8E23\u8E2F\u8E3A\u8E40\u8E39\u8E35\u8E3D\u8E31\u8E49\u8E41\u8E42\u8E51\u8E52\u8E4A\u8E70\u8E76\u8E7C\u8E6F\u8E74\u8E85\u8E8F\u8E94\u8E90\u8E9C\u8E9E\u8C78\u8C82\u8C8A\u8C85\u8C98\u8C94\u659B\u89D6\u89DE\u89DA\u89DC"],
      ["f640", "\u9BDC", 62],
      ["f680", "\u9C1B", 32, "\u89E5\u89EB\u89EF\u8A3E\u8B26\u9753\u96E9\u96F3\u96EF\u9706\u9701\u9708\u970F\u970E\u972A\u972D\u9730\u973E\u9F80\u9F83\u9F85", 5, "\u9F8C\u9EFE\u9F0B\u9F0D\u96B9\u96BC\u96BD\u96CE\u96D2\u77BF\u96E0\u928E\u92AE\u92C8\u933E\u936A\u93CA\u938F\u943E\u946B\u9C7F\u9C82\u9C85\u9C86\u9C87\u9C88\u7A23\u9C8B\u9C8E\u9C90\u9C91\u9C92\u9C94\u9C95\u9C9A\u9C9B\u9C9E", 5, "\u9CA5", 4, "\u9CAB\u9CAD\u9CAE\u9CB0", 7, "\u9CBA\u9CBB\u9CBC\u9CBD\u9CC4\u9CC5\u9CC6\u9CC7\u9CCA\u9CCB"],
      ["f740", "\u9C3C", 62],
      ["f780", "\u9C7B\u9C7D\u9C7E\u9C80\u9C83\u9C84\u9C89\u9C8A\u9C8C\u9C8F\u9C93\u9C96\u9C97\u9C98\u9C99\u9C9D\u9CAA\u9CAC\u9CAF\u9CB9\u9CBE", 4, "\u9CC8\u9CC9\u9CD1\u9CD2\u9CDA\u9CDB\u9CE0\u9CE1\u9CCC", 4, "\u9CD3\u9CD4\u9CD5\u9CD7\u9CD8\u9CD9\u9CDC\u9CDD\u9CDF\u9CE2\u977C\u9785\u9791\u9792\u9794\u97AF\u97AB\u97A3\u97B2\u97B4\u9AB1\u9AB0\u9AB7\u9E58\u9AB6\u9ABA\u9ABC\u9AC1\u9AC0\u9AC5\u9AC2\u9ACB\u9ACC\u9AD1\u9B45\u9B43\u9B47\u9B49\u9B48\u9B4D\u9B51\u98E8\u990D\u992E\u9955\u9954\u9ADF\u9AE1\u9AE6\u9AEF\u9AEB\u9AFB\u9AED\u9AF9\u9B08\u9B0F\u9B13\u9B1F\u9B23\u9EBD\u9EBE\u7E3B\u9E82\u9E87\u9E88\u9E8B\u9E92\u93D6\u9E9D\u9E9F\u9EDB\u9EDC\u9EDD\u9EE0\u9EDF\u9EE2\u9EE9\u9EE7\u9EE5\u9EEA\u9EEF\u9F22\u9F2C\u9F2F\u9F39\u9F37\u9F3D\u9F3E\u9F44"],
      ["f840", "\u9CE3", 62],
      ["f880", "\u9D22", 32],
      ["f940", "\u9D43", 62],
      ["f980", "\u9D82", 32],
      ["fa40", "\u9DA3", 62],
      ["fa80", "\u9DE2", 32],
      ["fb40", "\u9E03", 27, "\u9E24\u9E27\u9E2E\u9E30\u9E34\u9E3B\u9E3C\u9E40\u9E4D\u9E50\u9E52\u9E53\u9E54\u9E56\u9E59\u9E5D\u9E5F\u9E60\u9E61\u9E62\u9E65\u9E6E\u9E6F\u9E72\u9E74", 9, "\u9E80"],
      ["fb80", "\u9E81\u9E83\u9E84\u9E85\u9E86\u9E89\u9E8A\u9E8C", 5, "\u9E94", 8, "\u9E9E\u9EA0", 5, "\u9EA7\u9EA8\u9EA9\u9EAA"],
      ["fc40", "\u9EAB", 8, "\u9EB5\u9EB6\u9EB7\u9EB9\u9EBA\u9EBC\u9EBF", 4, "\u9EC5\u9EC6\u9EC7\u9EC8\u9ECA\u9ECB\u9ECC\u9ED0\u9ED2\u9ED3\u9ED5\u9ED6\u9ED7\u9ED9\u9EDA\u9EDE\u9EE1\u9EE3\u9EE4\u9EE6\u9EE8\u9EEB\u9EEC\u9EED\u9EEE\u9EF0", 8, "\u9EFA\u9EFD\u9EFF", 6],
      ["fc80", "\u9F06", 4, "\u9F0C\u9F0F\u9F11\u9F12\u9F14\u9F15\u9F16\u9F18\u9F1A", 5, "\u9F21\u9F23", 8, "\u9F2D\u9F2E\u9F30\u9F31"],
      ["fd40", "\u9F32", 4, "\u9F38\u9F3A\u9F3C\u9F3F", 4, "\u9F45", 10, "\u9F52", 38],
      ["fd80", "\u9F79", 5, "\u9F81\u9F82\u9F8D", 11, "\u9F9C\u9F9D\u9F9E\u9FA1", 4, "\uF92C\uF979\uF995\uF9E7\uF9F1"],
      ["fe40", "\uFA0C\uFA0D\uFA0E\uFA0F\uFA11\uFA13\uFA14\uFA18\uFA1F\uFA20\uFA21\uFA23\uFA24\uFA27\uFA28\uFA29"]
    ];
  }
});

// node_modules/iconv-lite/encodings/tables/gbk-added.json
var require_gbk_added = __commonJS({
  "node_modules/iconv-lite/encodings/tables/gbk-added.json"(exports2, module2) {
    module2.exports = [
      ["a140", "\uE4C6", 62],
      ["a180", "\uE505", 32],
      ["a240", "\uE526", 62],
      ["a280", "\uE565", 32],
      ["a2ab", "\uE766", 5],
      ["a2e3", "\u20AC\uE76D"],
      ["a2ef", "\uE76E\uE76F"],
      ["a2fd", "\uE770\uE771"],
      ["a340", "\uE586", 62],
      ["a380", "\uE5C5", 31, "\u3000"],
      ["a440", "\uE5E6", 62],
      ["a480", "\uE625", 32],
      ["a4f4", "\uE772", 10],
      ["a540", "\uE646", 62],
      ["a580", "\uE685", 32],
      ["a5f7", "\uE77D", 7],
      ["a640", "\uE6A6", 62],
      ["a680", "\uE6E5", 32],
      ["a6b9", "\uE785", 7],
      ["a6d9", "\uE78D", 6],
      ["a6ec", "\uE794\uE795"],
      ["a6f3", "\uE796"],
      ["a6f6", "\uE797", 8],
      ["a740", "\uE706", 62],
      ["a780", "\uE745", 32],
      ["a7c2", "\uE7A0", 14],
      ["a7f2", "\uE7AF", 12],
      ["a896", "\uE7BC", 10],
      ["a8bc", "\u1E3F"],
      ["a8bf", "\u01F9"],
      ["a8c1", "\uE7C9\uE7CA\uE7CB\uE7CC"],
      ["a8ea", "\uE7CD", 20],
      ["a958", "\uE7E2"],
      ["a95b", "\uE7E3"],
      ["a95d", "\uE7E4\uE7E5\uE7E6"],
      ["a989", "\u303E\u2FF0", 11],
      ["a997", "\uE7F4", 12],
      ["a9f0", "\uE801", 14],
      ["aaa1", "\uE000", 93],
      ["aba1", "\uE05E", 93],
      ["aca1", "\uE0BC", 93],
      ["ada1", "\uE11A", 93],
      ["aea1", "\uE178", 93],
      ["afa1", "\uE1D6", 93],
      ["d7fa", "\uE810", 4],
      ["f8a1", "\uE234", 93],
      ["f9a1", "\uE292", 93],
      ["faa1", "\uE2F0", 93],
      ["fba1", "\uE34E", 93],
      ["fca1", "\uE3AC", 93],
      ["fda1", "\uE40A", 93],
      ["fe50", "\u2E81\uE816\uE817\uE818\u2E84\u3473\u3447\u2E88\u2E8B\uE81E\u359E\u361A\u360E\u2E8C\u2E97\u396E\u3918\uE826\u39CF\u39DF\u3A73\u39D0\uE82B\uE82C\u3B4E\u3C6E\u3CE0\u2EA7\uE831\uE832\u2EAA\u4056\u415F\u2EAE\u4337\u2EB3\u2EB6\u2EB7\uE83B\u43B1\u43AC\u2EBB\u43DD\u44D6\u4661\u464C\uE843"],
      ["fe80", "\u4723\u4729\u477C\u478D\u2ECA\u4947\u497A\u497D\u4982\u4983\u4985\u4986\u499F\u499B\u49B7\u49B6\uE854\uE855\u4CA3\u4C9F\u4CA0\u4CA1\u4C77\u4CA2\u4D13", 6, "\u4DAE\uE864\uE468", 93],
      ["8135f437", "\uE7C7"]
    ];
  }
});

// node_modules/iconv-lite/encodings/tables/gb18030-ranges.json
var require_gb18030_ranges = __commonJS({
  "node_modules/iconv-lite/encodings/tables/gb18030-ranges.json"(exports2, module2) {
    module2.exports = { uChars: [128, 165, 169, 178, 184, 216, 226, 235, 238, 244, 248, 251, 253, 258, 276, 284, 300, 325, 329, 334, 364, 463, 465, 467, 469, 471, 473, 475, 477, 506, 594, 610, 712, 716, 730, 930, 938, 962, 970, 1026, 1104, 1106, 8209, 8215, 8218, 8222, 8231, 8241, 8244, 8246, 8252, 8365, 8452, 8454, 8458, 8471, 8482, 8556, 8570, 8596, 8602, 8713, 8720, 8722, 8726, 8731, 8737, 8740, 8742, 8748, 8751, 8760, 8766, 8777, 8781, 8787, 8802, 8808, 8816, 8854, 8858, 8870, 8896, 8979, 9322, 9372, 9548, 9588, 9616, 9622, 9634, 9652, 9662, 9672, 9676, 9680, 9702, 9735, 9738, 9793, 9795, 11906, 11909, 11913, 11917, 11928, 11944, 11947, 11951, 11956, 11960, 11964, 11979, 12284, 12292, 12312, 12319, 12330, 12351, 12436, 12447, 12535, 12543, 12586, 12842, 12850, 12964, 13200, 13215, 13218, 13253, 13263, 13267, 13270, 13384, 13428, 13727, 13839, 13851, 14617, 14703, 14801, 14816, 14964, 15183, 15471, 15585, 16471, 16736, 17208, 17325, 17330, 17374, 17623, 17997, 18018, 18212, 18218, 18301, 18318, 18760, 18811, 18814, 18820, 18823, 18844, 18848, 18872, 19576, 19620, 19738, 19887, 40870, 59244, 59336, 59367, 59413, 59417, 59423, 59431, 59437, 59443, 59452, 59460, 59478, 59493, 63789, 63866, 63894, 63976, 63986, 64016, 64018, 64021, 64025, 64034, 64037, 64042, 65074, 65093, 65107, 65112, 65127, 65132, 65375, 65510, 65536], gbChars: [0, 36, 38, 45, 50, 81, 89, 95, 96, 100, 103, 104, 105, 109, 126, 133, 148, 172, 175, 179, 208, 306, 307, 308, 309, 310, 311, 312, 313, 341, 428, 443, 544, 545, 558, 741, 742, 749, 750, 805, 819, 820, 7922, 7924, 7925, 7927, 7934, 7943, 7944, 7945, 7950, 8062, 8148, 8149, 8152, 8164, 8174, 8236, 8240, 8262, 8264, 8374, 8380, 8381, 8384, 8388, 8390, 8392, 8393, 8394, 8396, 8401, 8406, 8416, 8419, 8424, 8437, 8439, 8445, 8482, 8485, 8496, 8521, 8603, 8936, 8946, 9046, 9050, 9063, 9066, 9076, 9092, 9100, 9108, 9111, 9113, 9131, 9162, 9164, 9218, 9219, 11329, 11331, 11334, 11336, 11346, 11361, 11363, 11366, 11370, 11372, 11375, 11389, 11682, 11686, 11687, 11692, 11694, 11714, 11716, 11723, 11725, 11730, 11736, 11982, 11989, 12102, 12336, 12348, 12350, 12384, 12393, 12395, 12397, 12510, 12553, 12851, 12962, 12973, 13738, 13823, 13919, 13933, 14080, 14298, 14585, 14698, 15583, 15847, 16318, 16434, 16438, 16481, 16729, 17102, 17122, 17315, 17320, 17402, 17418, 17859, 17909, 17911, 17915, 17916, 17936, 17939, 17961, 18664, 18703, 18814, 18962, 19043, 33469, 33470, 33471, 33484, 33485, 33490, 33497, 33501, 33505, 33513, 33520, 33536, 33550, 37845, 37921, 37948, 38029, 38038, 38064, 38065, 38066, 38069, 38075, 38076, 38078, 39108, 39109, 39113, 39114, 39115, 39116, 39265, 39394, 189e3] };
  }
});

// node_modules/iconv-lite/encodings/tables/cp949.json
var require_cp949 = __commonJS({
  "node_modules/iconv-lite/encodings/tables/cp949.json"(exports2, module2) {
    module2.exports = [
      ["0", "\0", 127],
      ["8141", "\uAC02\uAC03\uAC05\uAC06\uAC0B", 4, "\uAC18\uAC1E\uAC1F\uAC21\uAC22\uAC23\uAC25", 6, "\uAC2E\uAC32\uAC33\uAC34"],
      ["8161", "\uAC35\uAC36\uAC37\uAC3A\uAC3B\uAC3D\uAC3E\uAC3F\uAC41", 9, "\uAC4C\uAC4E", 5, "\uAC55"],
      ["8181", "\uAC56\uAC57\uAC59\uAC5A\uAC5B\uAC5D", 18, "\uAC72\uAC73\uAC75\uAC76\uAC79\uAC7B", 4, "\uAC82\uAC87\uAC88\uAC8D\uAC8E\uAC8F\uAC91\uAC92\uAC93\uAC95", 6, "\uAC9E\uACA2", 5, "\uACAB\uACAD\uACAE\uACB1", 6, "\uACBA\uACBE\uACBF\uACC0\uACC2\uACC3\uACC5\uACC6\uACC7\uACC9\uACCA\uACCB\uACCD", 7, "\uACD6\uACD8", 7, "\uACE2\uACE3\uACE5\uACE6\uACE9\uACEB\uACED\uACEE\uACF2\uACF4\uACF7", 4, "\uACFE\uACFF\uAD01\uAD02\uAD03\uAD05\uAD07", 4, "\uAD0E\uAD10\uAD12\uAD13"],
      ["8241", "\uAD14\uAD15\uAD16\uAD17\uAD19\uAD1A\uAD1B\uAD1D\uAD1E\uAD1F\uAD21", 7, "\uAD2A\uAD2B\uAD2E", 5],
      ["8261", "\uAD36\uAD37\uAD39\uAD3A\uAD3B\uAD3D", 6, "\uAD46\uAD48\uAD4A", 5, "\uAD51\uAD52\uAD53\uAD55\uAD56\uAD57"],
      ["8281", "\uAD59", 7, "\uAD62\uAD64", 7, "\uAD6E\uAD6F\uAD71\uAD72\uAD77\uAD78\uAD79\uAD7A\uAD7E\uAD80\uAD83", 4, "\uAD8A\uAD8B\uAD8D\uAD8E\uAD8F\uAD91", 10, "\uAD9E", 5, "\uADA5", 17, "\uADB8", 7, "\uADC2\uADC3\uADC5\uADC6\uADC7\uADC9", 6, "\uADD2\uADD4", 7, "\uADDD\uADDE\uADDF\uADE1\uADE2\uADE3\uADE5", 18],
      ["8341", "\uADFA\uADFB\uADFD\uADFE\uAE02", 5, "\uAE0A\uAE0C\uAE0E", 5, "\uAE15", 7],
      ["8361", "\uAE1D", 18, "\uAE32\uAE33\uAE35\uAE36\uAE39\uAE3B\uAE3C"],
      ["8381", "\uAE3D\uAE3E\uAE3F\uAE42\uAE44\uAE47\uAE48\uAE49\uAE4B\uAE4F\uAE51\uAE52\uAE53\uAE55\uAE57", 4, "\uAE5E\uAE62\uAE63\uAE64\uAE66\uAE67\uAE6A\uAE6B\uAE6D\uAE6E\uAE6F\uAE71", 6, "\uAE7A\uAE7E", 5, "\uAE86", 5, "\uAE8D", 46, "\uAEBF\uAEC1\uAEC2\uAEC3\uAEC5", 6, "\uAECE\uAED2", 5, "\uAEDA\uAEDB\uAEDD", 8],
      ["8441", "\uAEE6\uAEE7\uAEE9\uAEEA\uAEEC\uAEEE", 5, "\uAEF5\uAEF6\uAEF7\uAEF9\uAEFA\uAEFB\uAEFD", 8],
      ["8461", "\uAF06\uAF09\uAF0A\uAF0B\uAF0C\uAF0E\uAF0F\uAF11", 18],
      ["8481", "\uAF24", 7, "\uAF2E\uAF2F\uAF31\uAF33\uAF35", 6, "\uAF3E\uAF40\uAF44\uAF45\uAF46\uAF47\uAF4A", 5, "\uAF51", 10, "\uAF5E", 5, "\uAF66", 18, "\uAF7A", 5, "\uAF81\uAF82\uAF83\uAF85\uAF86\uAF87\uAF89", 6, "\uAF92\uAF93\uAF94\uAF96", 5, "\uAF9D", 26, "\uAFBA\uAFBB\uAFBD\uAFBE"],
      ["8541", "\uAFBF\uAFC1", 5, "\uAFCA\uAFCC\uAFCF", 4, "\uAFD5", 6, "\uAFDD", 4],
      ["8561", "\uAFE2", 5, "\uAFEA", 5, "\uAFF2\uAFF3\uAFF5\uAFF6\uAFF7\uAFF9", 6, "\uB002\uB003"],
      ["8581", "\uB005", 6, "\uB00D\uB00E\uB00F\uB011\uB012\uB013\uB015", 6, "\uB01E", 9, "\uB029", 26, "\uB046\uB047\uB049\uB04B\uB04D\uB04F\uB050\uB051\uB052\uB056\uB058\uB05A\uB05B\uB05C\uB05E", 29, "\uB07E\uB07F\uB081\uB082\uB083\uB085", 6, "\uB08E\uB090\uB092", 5, "\uB09B\uB09D\uB09E\uB0A3\uB0A4"],
      ["8641", "\uB0A5\uB0A6\uB0A7\uB0AA\uB0B0\uB0B2\uB0B6\uB0B7\uB0B9\uB0BA\uB0BB\uB0BD", 6, "\uB0C6\uB0CA", 5, "\uB0D2"],
      ["8661", "\uB0D3\uB0D5\uB0D6\uB0D7\uB0D9", 6, "\uB0E1\uB0E2\uB0E3\uB0E4\uB0E6", 10],
      ["8681", "\uB0F1", 22, "\uB10A\uB10D\uB10E\uB10F\uB111\uB114\uB115\uB116\uB117\uB11A\uB11E", 4, "\uB126\uB127\uB129\uB12A\uB12B\uB12D", 6, "\uB136\uB13A", 5, "\uB142\uB143\uB145\uB146\uB147\uB149", 6, "\uB152\uB153\uB156\uB157\uB159\uB15A\uB15B\uB15D\uB15E\uB15F\uB161", 22, "\uB17A\uB17B\uB17D\uB17E\uB17F\uB181\uB183", 4, "\uB18A\uB18C\uB18E\uB18F\uB190\uB191\uB195\uB196\uB197\uB199\uB19A\uB19B\uB19D"],
      ["8741", "\uB19E", 9, "\uB1A9", 15],
      ["8761", "\uB1B9", 18, "\uB1CD\uB1CE\uB1CF\uB1D1\uB1D2\uB1D3\uB1D5"],
      ["8781", "\uB1D6", 5, "\uB1DE\uB1E0", 7, "\uB1EA\uB1EB\uB1ED\uB1EE\uB1EF\uB1F1", 7, "\uB1FA\uB1FC\uB1FE", 5, "\uB206\uB207\uB209\uB20A\uB20D", 6, "\uB216\uB218\uB21A", 5, "\uB221", 18, "\uB235", 6, "\uB23D", 26, "\uB259\uB25A\uB25B\uB25D\uB25E\uB25F\uB261", 6, "\uB26A", 4],
      ["8841", "\uB26F", 4, "\uB276", 5, "\uB27D", 6, "\uB286\uB287\uB288\uB28A", 4],
      ["8861", "\uB28F\uB292\uB293\uB295\uB296\uB297\uB29B", 4, "\uB2A2\uB2A4\uB2A7\uB2A8\uB2A9\uB2AB\uB2AD\uB2AE\uB2AF\uB2B1\uB2B2\uB2B3\uB2B5\uB2B6\uB2B7"],
      ["8881", "\uB2B8", 15, "\uB2CA\uB2CB\uB2CD\uB2CE\uB2CF\uB2D1\uB2D3", 4, "\uB2DA\uB2DC\uB2DE\uB2DF\uB2E0\uB2E1\uB2E3\uB2E7\uB2E9\uB2EA\uB2F0\uB2F1\uB2F2\uB2F6\uB2FC\uB2FD\uB2FE\uB302\uB303\uB305\uB306\uB307\uB309", 6, "\uB312\uB316", 5, "\uB31D", 54, "\uB357\uB359\uB35A\uB35D\uB360\uB361\uB362\uB363"],
      ["8941", "\uB366\uB368\uB36A\uB36C\uB36D\uB36F\uB372\uB373\uB375\uB376\uB377\uB379", 6, "\uB382\uB386", 5, "\uB38D"],
      ["8961", "\uB38E\uB38F\uB391\uB392\uB393\uB395", 10, "\uB3A2", 5, "\uB3A9\uB3AA\uB3AB\uB3AD"],
      ["8981", "\uB3AE", 21, "\uB3C6\uB3C7\uB3C9\uB3CA\uB3CD\uB3CF\uB3D1\uB3D2\uB3D3\uB3D6\uB3D8\uB3DA\uB3DC\uB3DE\uB3DF\uB3E1\uB3E2\uB3E3\uB3E5\uB3E6\uB3E7\uB3E9", 18, "\uB3FD", 18, "\uB411", 6, "\uB419\uB41A\uB41B\uB41D\uB41E\uB41F\uB421", 6, "\uB42A\uB42C", 7, "\uB435", 15],
      ["8a41", "\uB445", 10, "\uB452\uB453\uB455\uB456\uB457\uB459", 6, "\uB462\uB464\uB466"],
      ["8a61", "\uB467", 4, "\uB46D", 18, "\uB481\uB482"],
      ["8a81", "\uB483", 4, "\uB489", 19, "\uB49E", 5, "\uB4A5\uB4A6\uB4A7\uB4A9\uB4AA\uB4AB\uB4AD", 7, "\uB4B6\uB4B8\uB4BA", 5, "\uB4C1\uB4C2\uB4C3\uB4C5\uB4C6\uB4C7\uB4C9", 6, "\uB4D1\uB4D2\uB4D3\uB4D4\uB4D6", 5, "\uB4DE\uB4DF\uB4E1\uB4E2\uB4E5\uB4E7", 4, "\uB4EE\uB4F0\uB4F2", 5, "\uB4F9", 26, "\uB516\uB517\uB519\uB51A\uB51D"],
      ["8b41", "\uB51E", 5, "\uB526\uB52B", 4, "\uB532\uB533\uB535\uB536\uB537\uB539", 6, "\uB542\uB546"],
      ["8b61", "\uB547\uB548\uB549\uB54A\uB54E\uB54F\uB551\uB552\uB553\uB555", 6, "\uB55E\uB562", 8],
      ["8b81", "\uB56B", 52, "\uB5A2\uB5A3\uB5A5\uB5A6\uB5A7\uB5A9\uB5AC\uB5AD\uB5AE\uB5AF\uB5B2\uB5B6", 4, "\uB5BE\uB5BF\uB5C1\uB5C2\uB5C3\uB5C5", 6, "\uB5CE\uB5D2", 5, "\uB5D9", 18, "\uB5ED", 18],
      ["8c41", "\uB600", 15, "\uB612\uB613\uB615\uB616\uB617\uB619", 4],
      ["8c61", "\uB61E", 6, "\uB626", 5, "\uB62D", 6, "\uB635", 5],
      ["8c81", "\uB63B", 12, "\uB649", 26, "\uB665\uB666\uB667\uB669", 50, "\uB69E\uB69F\uB6A1\uB6A2\uB6A3\uB6A5", 5, "\uB6AD\uB6AE\uB6AF\uB6B0\uB6B2", 16],
      ["8d41", "\uB6C3", 16, "\uB6D5", 8],
      ["8d61", "\uB6DE", 17, "\uB6F1\uB6F2\uB6F3\uB6F5\uB6F6\uB6F7\uB6F9\uB6FA"],
      ["8d81", "\uB6FB", 4, "\uB702\uB703\uB704\uB706", 33, "\uB72A\uB72B\uB72D\uB72E\uB731", 6, "\uB73A\uB73C", 7, "\uB745\uB746\uB747\uB749\uB74A\uB74B\uB74D", 6, "\uB756", 9, "\uB761\uB762\uB763\uB765\uB766\uB767\uB769", 6, "\uB772\uB774\uB776", 5, "\uB77E\uB77F\uB781\uB782\uB783\uB785", 6, "\uB78E\uB793\uB794\uB795\uB79A\uB79B\uB79D\uB79E"],
      ["8e41", "\uB79F\uB7A1", 6, "\uB7AA\uB7AE", 5, "\uB7B6\uB7B7\uB7B9", 8],
      ["8e61", "\uB7C2", 4, "\uB7C8\uB7CA", 19],
      ["8e81", "\uB7DE", 13, "\uB7EE\uB7EF\uB7F1\uB7F2\uB7F3\uB7F5", 6, "\uB7FE\uB802", 4, "\uB80A\uB80B\uB80D\uB80E\uB80F\uB811", 6, "\uB81A\uB81C\uB81E", 5, "\uB826\uB827\uB829\uB82A\uB82B\uB82D", 6, "\uB836\uB83A", 5, "\uB841\uB842\uB843\uB845", 11, "\uB852\uB854", 7, "\uB85E\uB85F\uB861\uB862\uB863\uB865", 6, "\uB86E\uB870\uB872", 5, "\uB879\uB87A\uB87B\uB87D", 7],
      ["8f41", "\uB885", 7, "\uB88E", 17],
      ["8f61", "\uB8A0", 7, "\uB8A9", 6, "\uB8B1\uB8B2\uB8B3\uB8B5\uB8B6\uB8B7\uB8B9", 4],
      ["8f81", "\uB8BE\uB8BF\uB8C2\uB8C4\uB8C6", 5, "\uB8CD\uB8CE\uB8CF\uB8D1\uB8D2\uB8D3\uB8D5", 7, "\uB8DE\uB8E0\uB8E2", 5, "\uB8EA\uB8EB\uB8ED\uB8EE\uB8EF\uB8F1", 6, "\uB8FA\uB8FC\uB8FE", 5, "\uB905", 18, "\uB919", 6, "\uB921", 26, "\uB93E\uB93F\uB941\uB942\uB943\uB945", 6, "\uB94D\uB94E\uB950\uB952", 5],
      ["9041", "\uB95A\uB95B\uB95D\uB95E\uB95F\uB961", 6, "\uB96A\uB96C\uB96E", 5, "\uB976\uB977\uB979\uB97A\uB97B\uB97D"],
      ["9061", "\uB97E", 5, "\uB986\uB988\uB98B\uB98C\uB98F", 15],
      ["9081", "\uB99F", 12, "\uB9AE\uB9AF\uB9B1\uB9B2\uB9B3\uB9B5", 6, "\uB9BE\uB9C0\uB9C2", 5, "\uB9CA\uB9CB\uB9CD\uB9D3", 4, "\uB9DA\uB9DC\uB9DF\uB9E0\uB9E2\uB9E6\uB9E7\uB9E9\uB9EA\uB9EB\uB9ED", 6, "\uB9F6\uB9FB", 4, "\uBA02", 5, "\uBA09", 11, "\uBA16", 33, "\uBA3A\uBA3B\uBA3D\uBA3E\uBA3F\uBA41\uBA43\uBA44\uBA45\uBA46"],
      ["9141", "\uBA47\uBA4A\uBA4C\uBA4F\uBA50\uBA51\uBA52\uBA56\uBA57\uBA59\uBA5A\uBA5B\uBA5D", 6, "\uBA66\uBA6A", 5],
      ["9161", "\uBA72\uBA73\uBA75\uBA76\uBA77\uBA79", 9, "\uBA86\uBA88\uBA89\uBA8A\uBA8B\uBA8D", 5],
      ["9181", "\uBA93", 20, "\uBAAA\uBAAD\uBAAE\uBAAF\uBAB1\uBAB3", 4, "\uBABA\uBABC\uBABE", 5, "\uBAC5\uBAC6\uBAC7\uBAC9", 14, "\uBADA", 33, "\uBAFD\uBAFE\uBAFF\uBB01\uBB02\uBB03\uBB05", 7, "\uBB0E\uBB10\uBB12", 5, "\uBB19\uBB1A\uBB1B\uBB1D\uBB1E\uBB1F\uBB21", 6],
      ["9241", "\uBB28\uBB2A\uBB2C", 7, "\uBB37\uBB39\uBB3A\uBB3F", 4, "\uBB46\uBB48\uBB4A\uBB4B\uBB4C\uBB4E\uBB51\uBB52"],
      ["9261", "\uBB53\uBB55\uBB56\uBB57\uBB59", 7, "\uBB62\uBB64", 7, "\uBB6D", 4],
      ["9281", "\uBB72", 21, "\uBB89\uBB8A\uBB8B\uBB8D\uBB8E\uBB8F\uBB91", 18, "\uBBA5\uBBA6\uBBA7\uBBA9\uBBAA\uBBAB\uBBAD", 6, "\uBBB5\uBBB6\uBBB8", 7, "\uBBC1\uBBC2\uBBC3\uBBC5\uBBC6\uBBC7\uBBC9", 6, "\uBBD1\uBBD2\uBBD4", 35, "\uBBFA\uBBFB\uBBFD\uBBFE\uBC01"],
      ["9341", "\uBC03", 4, "\uBC0A\uBC0E\uBC10\uBC12\uBC13\uBC19\uBC1A\uBC20\uBC21\uBC22\uBC23\uBC26\uBC28\uBC2A\uBC2B\uBC2C\uBC2E\uBC2F\uBC32\uBC33\uBC35"],
      ["9361", "\uBC36\uBC37\uBC39", 6, "\uBC42\uBC46\uBC47\uBC48\uBC4A\uBC4B\uBC4E\uBC4F\uBC51", 8],
      ["9381", "\uBC5A\uBC5B\uBC5C\uBC5E", 37, "\uBC86\uBC87\uBC89\uBC8A\uBC8D\uBC8F", 4, "\uBC96\uBC98\uBC9B", 4, "\uBCA2\uBCA3\uBCA5\uBCA6\uBCA9", 6, "\uBCB2\uBCB6", 5, "\uBCBE\uBCBF\uBCC1\uBCC2\uBCC3\uBCC5", 7, "\uBCCE\uBCD2\uBCD3\uBCD4\uBCD6\uBCD7\uBCD9\uBCDA\uBCDB\uBCDD", 22, "\uBCF7\uBCF9\uBCFA\uBCFB\uBCFD"],
      ["9441", "\uBCFE", 5, "\uBD06\uBD08\uBD0A", 5, "\uBD11\uBD12\uBD13\uBD15", 8],
      ["9461", "\uBD1E", 5, "\uBD25", 6, "\uBD2D", 12],
      ["9481", "\uBD3A", 5, "\uBD41", 6, "\uBD4A\uBD4B\uBD4D\uBD4E\uBD4F\uBD51", 6, "\uBD5A", 9, "\uBD65\uBD66\uBD67\uBD69", 22, "\uBD82\uBD83\uBD85\uBD86\uBD8B", 4, "\uBD92\uBD94\uBD96\uBD97\uBD98\uBD9B\uBD9D", 6, "\uBDA5", 10, "\uBDB1", 6, "\uBDB9", 24],
      ["9541", "\uBDD2\uBDD3\uBDD6\uBDD7\uBDD9\uBDDA\uBDDB\uBDDD", 11, "\uBDEA", 5, "\uBDF1"],
      ["9561", "\uBDF2\uBDF3\uBDF5\uBDF6\uBDF7\uBDF9", 6, "\uBE01\uBE02\uBE04\uBE06", 5, "\uBE0E\uBE0F\uBE11\uBE12\uBE13"],
      ["9581", "\uBE15", 6, "\uBE1E\uBE20", 35, "\uBE46\uBE47\uBE49\uBE4A\uBE4B\uBE4D\uBE4F", 4, "\uBE56\uBE58\uBE5C\uBE5D\uBE5E\uBE5F\uBE62\uBE63\uBE65\uBE66\uBE67\uBE69\uBE6B", 4, "\uBE72\uBE76", 4, "\uBE7E\uBE7F\uBE81\uBE82\uBE83\uBE85", 6, "\uBE8E\uBE92", 5, "\uBE9A", 13, "\uBEA9", 14],
      ["9641", "\uBEB8", 23, "\uBED2\uBED3"],
      ["9661", "\uBED5\uBED6\uBED9", 6, "\uBEE1\uBEE2\uBEE6", 5, "\uBEED", 8],
      ["9681", "\uBEF6", 10, "\uBF02", 5, "\uBF0A", 13, "\uBF1A\uBF1E", 33, "\uBF42\uBF43\uBF45\uBF46\uBF47\uBF49", 6, "\uBF52\uBF53\uBF54\uBF56", 44],
      ["9741", "\uBF83", 16, "\uBF95", 8],
      ["9761", "\uBF9E", 17, "\uBFB1", 7],
      ["9781", "\uBFB9", 11, "\uBFC6", 5, "\uBFCE\uBFCF\uBFD1\uBFD2\uBFD3\uBFD5", 6, "\uBFDD\uBFDE\uBFE0\uBFE2", 89, "\uC03D\uC03E\uC03F"],
      ["9841", "\uC040", 16, "\uC052", 5, "\uC059\uC05A\uC05B"],
      ["9861", "\uC05D\uC05E\uC05F\uC061", 6, "\uC06A", 15],
      ["9881", "\uC07A", 21, "\uC092\uC093\uC095\uC096\uC097\uC099", 6, "\uC0A2\uC0A4\uC0A6", 5, "\uC0AE\uC0B1\uC0B2\uC0B7", 4, "\uC0BE\uC0C2\uC0C3\uC0C4\uC0C6\uC0C7\uC0CA\uC0CB\uC0CD\uC0CE\uC0CF\uC0D1", 6, "\uC0DA\uC0DE", 5, "\uC0E6\uC0E7\uC0E9\uC0EA\uC0EB\uC0ED", 6, "\uC0F6\uC0F8\uC0FA", 5, "\uC101\uC102\uC103\uC105\uC106\uC107\uC109", 6, "\uC111\uC112\uC113\uC114\uC116", 5, "\uC121\uC122\uC125\uC128\uC129\uC12A\uC12B\uC12E"],
      ["9941", "\uC132\uC133\uC134\uC135\uC137\uC13A\uC13B\uC13D\uC13E\uC13F\uC141", 6, "\uC14A\uC14E", 5, "\uC156\uC157"],
      ["9961", "\uC159\uC15A\uC15B\uC15D", 6, "\uC166\uC16A", 5, "\uC171\uC172\uC173\uC175\uC176\uC177\uC179\uC17A\uC17B"],
      ["9981", "\uC17C", 8, "\uC186", 5, "\uC18F\uC191\uC192\uC193\uC195\uC197", 4, "\uC19E\uC1A0\uC1A2\uC1A3\uC1A4\uC1A6\uC1A7\uC1AA\uC1AB\uC1AD\uC1AE\uC1AF\uC1B1", 11, "\uC1BE", 5, "\uC1C5\uC1C6\uC1C7\uC1C9\uC1CA\uC1CB\uC1CD", 6, "\uC1D5\uC1D6\uC1D9", 6, "\uC1E1\uC1E2\uC1E3\uC1E5\uC1E6\uC1E7\uC1E9", 6, "\uC1F2\uC1F4", 7, "\uC1FE\uC1FF\uC201\uC202\uC203\uC205", 6, "\uC20E\uC210\uC212", 5, "\uC21A\uC21B\uC21D\uC21E\uC221\uC222\uC223"],
      ["9a41", "\uC224\uC225\uC226\uC227\uC22A\uC22C\uC22E\uC230\uC233\uC235", 16],
      ["9a61", "\uC246\uC247\uC249", 6, "\uC252\uC253\uC255\uC256\uC257\uC259", 6, "\uC261\uC262\uC263\uC264\uC266"],
      ["9a81", "\uC267", 4, "\uC26E\uC26F\uC271\uC272\uC273\uC275", 6, "\uC27E\uC280\uC282", 5, "\uC28A", 5, "\uC291", 6, "\uC299\uC29A\uC29C\uC29E", 5, "\uC2A6\uC2A7\uC2A9\uC2AA\uC2AB\uC2AE", 5, "\uC2B6\uC2B8\uC2BA", 33, "\uC2DE\uC2DF\uC2E1\uC2E2\uC2E5", 5, "\uC2EE\uC2F0\uC2F2\uC2F3\uC2F4\uC2F5\uC2F7\uC2FA\uC2FD\uC2FE\uC2FF\uC301", 6, "\uC30A\uC30B\uC30E\uC30F"],
      ["9b41", "\uC310\uC311\uC312\uC316\uC317\uC319\uC31A\uC31B\uC31D", 6, "\uC326\uC327\uC32A", 8],
      ["9b61", "\uC333", 17, "\uC346", 7],
      ["9b81", "\uC34E", 25, "\uC36A\uC36B\uC36D\uC36E\uC36F\uC371\uC373", 4, "\uC37A\uC37B\uC37E", 5, "\uC385\uC386\uC387\uC389\uC38A\uC38B\uC38D", 50, "\uC3C1", 22, "\uC3DA"],
      ["9c41", "\uC3DB\uC3DD\uC3DE\uC3E1\uC3E3", 4, "\uC3EA\uC3EB\uC3EC\uC3EE", 5, "\uC3F6\uC3F7\uC3F9", 5],
      ["9c61", "\uC3FF", 8, "\uC409", 6, "\uC411", 9],
      ["9c81", "\uC41B", 8, "\uC425", 6, "\uC42D\uC42E\uC42F\uC431\uC432\uC433\uC435", 6, "\uC43E", 9, "\uC449", 26, "\uC466\uC467\uC469\uC46A\uC46B\uC46D", 6, "\uC476\uC477\uC478\uC47A", 5, "\uC481", 18, "\uC495", 6, "\uC49D", 12],
      ["9d41", "\uC4AA", 13, "\uC4B9\uC4BA\uC4BB\uC4BD", 8],
      ["9d61", "\uC4C6", 25],
      ["9d81", "\uC4E0", 8, "\uC4EA", 5, "\uC4F2\uC4F3\uC4F5\uC4F6\uC4F7\uC4F9\uC4FB\uC4FC\uC4FD\uC4FE\uC502", 9, "\uC50D\uC50E\uC50F\uC511\uC512\uC513\uC515", 6, "\uC51D", 10, "\uC52A\uC52B\uC52D\uC52E\uC52F\uC531", 6, "\uC53A\uC53C\uC53E", 5, "\uC546\uC547\uC54B\uC54F\uC550\uC551\uC552\uC556\uC55A\uC55B\uC55C\uC55F\uC562\uC563\uC565\uC566\uC567\uC569", 6, "\uC572\uC576", 5, "\uC57E\uC57F\uC581\uC582\uC583\uC585\uC586\uC588\uC589\uC58A\uC58B\uC58E\uC590\uC592\uC593\uC594"],
      ["9e41", "\uC596\uC599\uC59A\uC59B\uC59D\uC59E\uC59F\uC5A1", 7, "\uC5AA", 9, "\uC5B6"],
      ["9e61", "\uC5B7\uC5BA\uC5BF", 4, "\uC5CB\uC5CD\uC5CF\uC5D2\uC5D3\uC5D5\uC5D6\uC5D7\uC5D9", 6, "\uC5E2\uC5E4\uC5E6\uC5E7"],
      ["9e81", "\uC5E8\uC5E9\uC5EA\uC5EB\uC5EF\uC5F1\uC5F2\uC5F3\uC5F5\uC5F8\uC5F9\uC5FA\uC5FB\uC602\uC603\uC604\uC609\uC60A\uC60B\uC60D\uC60E\uC60F\uC611", 6, "\uC61A\uC61D", 6, "\uC626\uC627\uC629\uC62A\uC62B\uC62F\uC631\uC632\uC636\uC638\uC63A\uC63C\uC63D\uC63E\uC63F\uC642\uC643\uC645\uC646\uC647\uC649", 6, "\uC652\uC656", 5, "\uC65E\uC65F\uC661", 10, "\uC66D\uC66E\uC670\uC672", 5, "\uC67A\uC67B\uC67D\uC67E\uC67F\uC681", 6, "\uC68A\uC68C\uC68E", 5, "\uC696\uC697\uC699\uC69A\uC69B\uC69D", 6, "\uC6A6"],
      ["9f41", "\uC6A8\uC6AA", 5, "\uC6B2\uC6B3\uC6B5\uC6B6\uC6B7\uC6BB", 4, "\uC6C2\uC6C4\uC6C6", 5, "\uC6CE"],
      ["9f61", "\uC6CF\uC6D1\uC6D2\uC6D3\uC6D5", 6, "\uC6DE\uC6DF\uC6E2", 5, "\uC6EA\uC6EB\uC6ED\uC6EE\uC6EF\uC6F1\uC6F2"],
      ["9f81", "\uC6F3", 4, "\uC6FA\uC6FB\uC6FC\uC6FE", 5, "\uC706\uC707\uC709\uC70A\uC70B\uC70D", 6, "\uC716\uC718\uC71A", 5, "\uC722\uC723\uC725\uC726\uC727\uC729", 6, "\uC732\uC734\uC736\uC738\uC739\uC73A\uC73B\uC73E\uC73F\uC741\uC742\uC743\uC745", 4, "\uC74B\uC74E\uC750\uC759\uC75A\uC75B\uC75D\uC75E\uC75F\uC761", 6, "\uC769\uC76A\uC76C", 7, "\uC776\uC777\uC779\uC77A\uC77B\uC77F\uC780\uC781\uC782\uC786\uC78B\uC78C\uC78D\uC78F\uC792\uC793\uC795\uC799\uC79B", 4, "\uC7A2\uC7A7", 4, "\uC7AE\uC7AF\uC7B1\uC7B2\uC7B3\uC7B5\uC7B6\uC7B7"],
      ["a041", "\uC7B8\uC7B9\uC7BA\uC7BB\uC7BE\uC7C2", 5, "\uC7CA\uC7CB\uC7CD\uC7CF\uC7D1", 6, "\uC7D9\uC7DA\uC7DB\uC7DC"],
      ["a061", "\uC7DE", 5, "\uC7E5\uC7E6\uC7E7\uC7E9\uC7EA\uC7EB\uC7ED", 13],
      ["a081", "\uC7FB", 4, "\uC802\uC803\uC805\uC806\uC807\uC809\uC80B", 4, "\uC812\uC814\uC817", 4, "\uC81E\uC81F\uC821\uC822\uC823\uC825", 6, "\uC82E\uC830\uC832", 5, "\uC839\uC83A\uC83B\uC83D\uC83E\uC83F\uC841", 6, "\uC84A\uC84B\uC84E", 5, "\uC855", 26, "\uC872\uC873\uC875\uC876\uC877\uC879\uC87B", 4, "\uC882\uC884\uC888\uC889\uC88A\uC88E", 5, "\uC895", 7, "\uC89E\uC8A0\uC8A2\uC8A3\uC8A4"],
      ["a141", "\uC8A5\uC8A6\uC8A7\uC8A9", 18, "\uC8BE\uC8BF\uC8C0\uC8C1"],
      ["a161", "\uC8C2\uC8C3\uC8C5\uC8C6\uC8C7\uC8C9\uC8CA\uC8CB\uC8CD", 6, "\uC8D6\uC8D8\uC8DA", 5, "\uC8E2\uC8E3\uC8E5"],
      ["a181", "\uC8E6", 14, "\uC8F6", 5, "\uC8FE\uC8FF\uC901\uC902\uC903\uC907", 4, "\uC90E\u3000\u3001\u3002\xB7\u2025\u2026\xA8\u3003\xAD\u2015\u2225\uFF3C\u223C\u2018\u2019\u201C\u201D\u3014\u3015\u3008", 9, "\xB1\xD7\xF7\u2260\u2264\u2265\u221E\u2234\xB0\u2032\u2033\u2103\u212B\uFFE0\uFFE1\uFFE5\u2642\u2640\u2220\u22A5\u2312\u2202\u2207\u2261\u2252\xA7\u203B\u2606\u2605\u25CB\u25CF\u25CE\u25C7\u25C6\u25A1\u25A0\u25B3\u25B2\u25BD\u25BC\u2192\u2190\u2191\u2193\u2194\u3013\u226A\u226B\u221A\u223D\u221D\u2235\u222B\u222C\u2208\u220B\u2286\u2287\u2282\u2283\u222A\u2229\u2227\u2228\uFFE2"],
      ["a241", "\uC910\uC912", 5, "\uC919", 18],
      ["a261", "\uC92D", 6, "\uC935", 18],
      ["a281", "\uC948", 7, "\uC952\uC953\uC955\uC956\uC957\uC959", 6, "\uC962\uC964", 7, "\uC96D\uC96E\uC96F\u21D2\u21D4\u2200\u2203\xB4\uFF5E\u02C7\u02D8\u02DD\u02DA\u02D9\xB8\u02DB\xA1\xBF\u02D0\u222E\u2211\u220F\xA4\u2109\u2030\u25C1\u25C0\u25B7\u25B6\u2664\u2660\u2661\u2665\u2667\u2663\u2299\u25C8\u25A3\u25D0\u25D1\u2592\u25A4\u25A5\u25A8\u25A7\u25A6\u25A9\u2668\u260F\u260E\u261C\u261E\xB6\u2020\u2021\u2195\u2197\u2199\u2196\u2198\u266D\u2669\u266A\u266C\u327F\u321C\u2116\u33C7\u2122\u33C2\u33D8\u2121\u20AC\xAE"],
      ["a341", "\uC971\uC972\uC973\uC975", 6, "\uC97D", 10, "\uC98A\uC98B\uC98D\uC98E\uC98F"],
      ["a361", "\uC991", 6, "\uC99A\uC99C\uC99E", 16],
      ["a381", "\uC9AF", 16, "\uC9C2\uC9C3\uC9C5\uC9C6\uC9C9\uC9CB", 4, "\uC9D2\uC9D4\uC9D7\uC9D8\uC9DB\uFF01", 58, "\uFFE6\uFF3D", 32, "\uFFE3"],
      ["a441", "\uC9DE\uC9DF\uC9E1\uC9E3\uC9E5\uC9E6\uC9E8\uC9E9\uC9EA\uC9EB\uC9EE\uC9F2", 5, "\uC9FA\uC9FB\uC9FD\uC9FE\uC9FF\uCA01\uCA02\uCA03\uCA04"],
      ["a461", "\uCA05\uCA06\uCA07\uCA0A\uCA0E", 5, "\uCA15\uCA16\uCA17\uCA19", 12],
      ["a481", "\uCA26\uCA27\uCA28\uCA2A", 28, "\u3131", 93],
      ["a541", "\uCA47", 4, "\uCA4E\uCA4F\uCA51\uCA52\uCA53\uCA55", 6, "\uCA5E\uCA62", 5, "\uCA69\uCA6A"],
      ["a561", "\uCA6B", 17, "\uCA7E", 5, "\uCA85\uCA86"],
      ["a581", "\uCA87", 16, "\uCA99", 14, "\u2170", 9],
      ["a5b0", "\u2160", 9],
      ["a5c1", "\u0391", 16, "\u03A3", 6],
      ["a5e1", "\u03B1", 16, "\u03C3", 6],
      ["a641", "\uCAA8", 19, "\uCABE\uCABF\uCAC1\uCAC2\uCAC3\uCAC5"],
      ["a661", "\uCAC6", 5, "\uCACE\uCAD0\uCAD2\uCAD4\uCAD5\uCAD6\uCAD7\uCADA", 5, "\uCAE1", 6],
      ["a681", "\uCAE8\uCAE9\uCAEA\uCAEB\uCAED", 6, "\uCAF5", 18, "\uCB09\uCB0A\u2500\u2502\u250C\u2510\u2518\u2514\u251C\u252C\u2524\u2534\u253C\u2501\u2503\u250F\u2513\u251B\u2517\u2523\u2533\u252B\u253B\u254B\u2520\u252F\u2528\u2537\u253F\u251D\u2530\u2525\u2538\u2542\u2512\u2511\u251A\u2519\u2516\u2515\u250E\u250D\u251E\u251F\u2521\u2522\u2526\u2527\u2529\u252A\u252D\u252E\u2531\u2532\u2535\u2536\u2539\u253A\u253D\u253E\u2540\u2541\u2543", 7],
      ["a741", "\uCB0B", 4, "\uCB11\uCB12\uCB13\uCB15\uCB16\uCB17\uCB19", 6, "\uCB22", 7],
      ["a761", "\uCB2A", 22, "\uCB42\uCB43\uCB44"],
      ["a781", "\uCB45\uCB46\uCB47\uCB4A\uCB4B\uCB4D\uCB4E\uCB4F\uCB51", 6, "\uCB5A\uCB5B\uCB5C\uCB5E", 5, "\uCB65", 7, "\u3395\u3396\u3397\u2113\u3398\u33C4\u33A3\u33A4\u33A5\u33A6\u3399", 9, "\u33CA\u338D\u338E\u338F\u33CF\u3388\u3389\u33C8\u33A7\u33A8\u33B0", 9, "\u3380", 4, "\u33BA", 5, "\u3390", 4, "\u2126\u33C0\u33C1\u338A\u338B\u338C\u33D6\u33C5\u33AD\u33AE\u33AF\u33DB\u33A9\u33AA\u33AB\u33AC\u33DD\u33D0\u33D3\u33C3\u33C9\u33DC\u33C6"],
      ["a841", "\uCB6D", 10, "\uCB7A", 14],
      ["a861", "\uCB89", 18, "\uCB9D", 6],
      ["a881", "\uCBA4", 19, "\uCBB9", 11, "\xC6\xD0\xAA\u0126"],
      ["a8a6", "\u0132"],
      ["a8a8", "\u013F\u0141\xD8\u0152\xBA\xDE\u0166\u014A"],
      ["a8b1", "\u3260", 27, "\u24D0", 25, "\u2460", 14, "\xBD\u2153\u2154\xBC\xBE\u215B\u215C\u215D\u215E"],
      ["a941", "\uCBC5", 14, "\uCBD5", 10],
      ["a961", "\uCBE0\uCBE1\uCBE2\uCBE3\uCBE5\uCBE6\uCBE8\uCBEA", 18],
      ["a981", "\uCBFD", 14, "\uCC0E\uCC0F\uCC11\uCC12\uCC13\uCC15", 6, "\uCC1E\uCC1F\uCC20\uCC23\uCC24\xE6\u0111\xF0\u0127\u0131\u0133\u0138\u0140\u0142\xF8\u0153\xDF\xFE\u0167\u014B\u0149\u3200", 27, "\u249C", 25, "\u2474", 14, "\xB9\xB2\xB3\u2074\u207F\u2081\u2082\u2083\u2084"],
      ["aa41", "\uCC25\uCC26\uCC2A\uCC2B\uCC2D\uCC2F\uCC31", 6, "\uCC3A\uCC3F", 4, "\uCC46\uCC47\uCC49\uCC4A\uCC4B\uCC4D\uCC4E"],
      ["aa61", "\uCC4F", 4, "\uCC56\uCC5A", 5, "\uCC61\uCC62\uCC63\uCC65\uCC67\uCC69", 6, "\uCC71\uCC72"],
      ["aa81", "\uCC73\uCC74\uCC76", 29, "\u3041", 82],
      ["ab41", "\uCC94\uCC95\uCC96\uCC97\uCC9A\uCC9B\uCC9D\uCC9E\uCC9F\uCCA1", 6, "\uCCAA\uCCAE", 5, "\uCCB6\uCCB7\uCCB9"],
      ["ab61", "\uCCBA\uCCBB\uCCBD", 6, "\uCCC6\uCCC8\uCCCA", 5, "\uCCD1\uCCD2\uCCD3\uCCD5", 5],
      ["ab81", "\uCCDB", 8, "\uCCE5", 6, "\uCCED\uCCEE\uCCEF\uCCF1", 12, "\u30A1", 85],
      ["ac41", "\uCCFE\uCCFF\uCD00\uCD02", 5, "\uCD0A\uCD0B\uCD0D\uCD0E\uCD0F\uCD11", 6, "\uCD1A\uCD1C\uCD1E\uCD1F\uCD20"],
      ["ac61", "\uCD21\uCD22\uCD23\uCD25\uCD26\uCD27\uCD29\uCD2A\uCD2B\uCD2D", 11, "\uCD3A", 4],
      ["ac81", "\uCD3F", 28, "\uCD5D\uCD5E\uCD5F\u0410", 5, "\u0401\u0416", 25],
      ["acd1", "\u0430", 5, "\u0451\u0436", 25],
      ["ad41", "\uCD61\uCD62\uCD63\uCD65", 6, "\uCD6E\uCD70\uCD72", 5, "\uCD79", 7],
      ["ad61", "\uCD81", 6, "\uCD89", 10, "\uCD96\uCD97\uCD99\uCD9A\uCD9B\uCD9D\uCD9E\uCD9F"],
      ["ad81", "\uCDA0\uCDA1\uCDA2\uCDA3\uCDA6\uCDA8\uCDAA", 5, "\uCDB1", 18, "\uCDC5"],
      ["ae41", "\uCDC6", 5, "\uCDCD\uCDCE\uCDCF\uCDD1", 16],
      ["ae61", "\uCDE2", 5, "\uCDE9\uCDEA\uCDEB\uCDED\uCDEE\uCDEF\uCDF1", 6, "\uCDFA\uCDFC\uCDFE", 4],
      ["ae81", "\uCE03\uCE05\uCE06\uCE07\uCE09\uCE0A\uCE0B\uCE0D", 6, "\uCE15\uCE16\uCE17\uCE18\uCE1A", 5, "\uCE22\uCE23\uCE25\uCE26\uCE27\uCE29\uCE2A\uCE2B"],
      ["af41", "\uCE2C\uCE2D\uCE2E\uCE2F\uCE32\uCE34\uCE36", 19],
      ["af61", "\uCE4A", 13, "\uCE5A\uCE5B\uCE5D\uCE5E\uCE62", 5, "\uCE6A\uCE6C"],
      ["af81", "\uCE6E", 5, "\uCE76\uCE77\uCE79\uCE7A\uCE7B\uCE7D", 6, "\uCE86\uCE88\uCE8A", 5, "\uCE92\uCE93\uCE95\uCE96\uCE97\uCE99"],
      ["b041", "\uCE9A", 5, "\uCEA2\uCEA6", 5, "\uCEAE", 12],
      ["b061", "\uCEBB", 5, "\uCEC2", 19],
      ["b081", "\uCED6", 13, "\uCEE6\uCEE7\uCEE9\uCEEA\uCEED", 6, "\uCEF6\uCEFA", 5, "\uAC00\uAC01\uAC04\uAC07\uAC08\uAC09\uAC0A\uAC10", 7, "\uAC19", 4, "\uAC20\uAC24\uAC2C\uAC2D\uAC2F\uAC30\uAC31\uAC38\uAC39\uAC3C\uAC40\uAC4B\uAC4D\uAC54\uAC58\uAC5C\uAC70\uAC71\uAC74\uAC77\uAC78\uAC7A\uAC80\uAC81\uAC83\uAC84\uAC85\uAC86\uAC89\uAC8A\uAC8B\uAC8C\uAC90\uAC94\uAC9C\uAC9D\uAC9F\uACA0\uACA1\uACA8\uACA9\uACAA\uACAC\uACAF\uACB0\uACB8\uACB9\uACBB\uACBC\uACBD\uACC1\uACC4\uACC8\uACCC\uACD5\uACD7\uACE0\uACE1\uACE4\uACE7\uACE8\uACEA\uACEC\uACEF\uACF0\uACF1\uACF3\uACF5\uACF6\uACFC\uACFD\uAD00\uAD04\uAD06"],
      ["b141", "\uCF02\uCF03\uCF05\uCF06\uCF07\uCF09", 6, "\uCF12\uCF14\uCF16", 5, "\uCF1D\uCF1E\uCF1F\uCF21\uCF22\uCF23"],
      ["b161", "\uCF25", 6, "\uCF2E\uCF32", 5, "\uCF39", 11],
      ["b181", "\uCF45", 14, "\uCF56\uCF57\uCF59\uCF5A\uCF5B\uCF5D", 6, "\uCF66\uCF68\uCF6A\uCF6B\uCF6C\uAD0C\uAD0D\uAD0F\uAD11\uAD18\uAD1C\uAD20\uAD29\uAD2C\uAD2D\uAD34\uAD35\uAD38\uAD3C\uAD44\uAD45\uAD47\uAD49\uAD50\uAD54\uAD58\uAD61\uAD63\uAD6C\uAD6D\uAD70\uAD73\uAD74\uAD75\uAD76\uAD7B\uAD7C\uAD7D\uAD7F\uAD81\uAD82\uAD88\uAD89\uAD8C\uAD90\uAD9C\uAD9D\uADA4\uADB7\uADC0\uADC1\uADC4\uADC8\uADD0\uADD1\uADD3\uADDC\uADE0\uADE4\uADF8\uADF9\uADFC\uADFF\uAE00\uAE01\uAE08\uAE09\uAE0B\uAE0D\uAE14\uAE30\uAE31\uAE34\uAE37\uAE38\uAE3A\uAE40\uAE41\uAE43\uAE45\uAE46\uAE4A\uAE4C\uAE4D\uAE4E\uAE50\uAE54\uAE56\uAE5C\uAE5D\uAE5F\uAE60\uAE61\uAE65\uAE68\uAE69\uAE6C\uAE70\uAE78"],
      ["b241", "\uCF6D\uCF6E\uCF6F\uCF72\uCF73\uCF75\uCF76\uCF77\uCF79", 6, "\uCF81\uCF82\uCF83\uCF84\uCF86", 5, "\uCF8D"],
      ["b261", "\uCF8E", 18, "\uCFA2", 5, "\uCFA9"],
      ["b281", "\uCFAA", 5, "\uCFB1", 18, "\uCFC5", 6, "\uAE79\uAE7B\uAE7C\uAE7D\uAE84\uAE85\uAE8C\uAEBC\uAEBD\uAEBE\uAEC0\uAEC4\uAECC\uAECD\uAECF\uAED0\uAED1\uAED8\uAED9\uAEDC\uAEE8\uAEEB\uAEED\uAEF4\uAEF8\uAEFC\uAF07\uAF08\uAF0D\uAF10\uAF2C\uAF2D\uAF30\uAF32\uAF34\uAF3C\uAF3D\uAF3F\uAF41\uAF42\uAF43\uAF48\uAF49\uAF50\uAF5C\uAF5D\uAF64\uAF65\uAF79\uAF80\uAF84\uAF88\uAF90\uAF91\uAF95\uAF9C\uAFB8\uAFB9\uAFBC\uAFC0\uAFC7\uAFC8\uAFC9\uAFCB\uAFCD\uAFCE\uAFD4\uAFDC\uAFE8\uAFE9\uAFF0\uAFF1\uAFF4\uAFF8\uB000\uB001\uB004\uB00C\uB010\uB014\uB01C\uB01D\uB028\uB044\uB045\uB048\uB04A\uB04C\uB04E\uB053\uB054\uB055\uB057\uB059"],
      ["b341", "\uCFCC", 19, "\uCFE2\uCFE3\uCFE5\uCFE6\uCFE7\uCFE9"],
      ["b361", "\uCFEA", 5, "\uCFF2\uCFF4\uCFF6", 5, "\uCFFD\uCFFE\uCFFF\uD001\uD002\uD003\uD005", 5],
      ["b381", "\uD00B", 5, "\uD012", 5, "\uD019", 19, "\uB05D\uB07C\uB07D\uB080\uB084\uB08C\uB08D\uB08F\uB091\uB098\uB099\uB09A\uB09C\uB09F\uB0A0\uB0A1\uB0A2\uB0A8\uB0A9\uB0AB", 4, "\uB0B1\uB0B3\uB0B4\uB0B5\uB0B8\uB0BC\uB0C4\uB0C5\uB0C7\uB0C8\uB0C9\uB0D0\uB0D1\uB0D4\uB0D8\uB0E0\uB0E5\uB108\uB109\uB10B\uB10C\uB110\uB112\uB113\uB118\uB119\uB11B\uB11C\uB11D\uB123\uB124\uB125\uB128\uB12C\uB134\uB135\uB137\uB138\uB139\uB140\uB141\uB144\uB148\uB150\uB151\uB154\uB155\uB158\uB15C\uB160\uB178\uB179\uB17C\uB180\uB182\uB188\uB189\uB18B\uB18D\uB192\uB193\uB194\uB198\uB19C\uB1A8\uB1CC\uB1D0\uB1D4\uB1DC\uB1DD"],
      ["b441", "\uD02E", 5, "\uD036\uD037\uD039\uD03A\uD03B\uD03D", 6, "\uD046\uD048\uD04A", 5],
      ["b461", "\uD051\uD052\uD053\uD055\uD056\uD057\uD059", 6, "\uD061", 10, "\uD06E\uD06F"],
      ["b481", "\uD071\uD072\uD073\uD075", 6, "\uD07E\uD07F\uD080\uD082", 18, "\uB1DF\uB1E8\uB1E9\uB1EC\uB1F0\uB1F9\uB1FB\uB1FD\uB204\uB205\uB208\uB20B\uB20C\uB214\uB215\uB217\uB219\uB220\uB234\uB23C\uB258\uB25C\uB260\uB268\uB269\uB274\uB275\uB27C\uB284\uB285\uB289\uB290\uB291\uB294\uB298\uB299\uB29A\uB2A0\uB2A1\uB2A3\uB2A5\uB2A6\uB2AA\uB2AC\uB2B0\uB2B4\uB2C8\uB2C9\uB2CC\uB2D0\uB2D2\uB2D8\uB2D9\uB2DB\uB2DD\uB2E2\uB2E4\uB2E5\uB2E6\uB2E8\uB2EB", 4, "\uB2F3\uB2F4\uB2F5\uB2F7", 4, "\uB2FF\uB300\uB301\uB304\uB308\uB310\uB311\uB313\uB314\uB315\uB31C\uB354\uB355\uB356\uB358\uB35B\uB35C\uB35E\uB35F\uB364\uB365"],
      ["b541", "\uD095", 14, "\uD0A6\uD0A7\uD0A9\uD0AA\uD0AB\uD0AD", 5],
      ["b561", "\uD0B3\uD0B6\uD0B8\uD0BA", 5, "\uD0C2\uD0C3\uD0C5\uD0C6\uD0C7\uD0CA", 5, "\uD0D2\uD0D6", 4],
      ["b581", "\uD0DB\uD0DE\uD0DF\uD0E1\uD0E2\uD0E3\uD0E5", 6, "\uD0EE\uD0F2", 5, "\uD0F9", 11, "\uB367\uB369\uB36B\uB36E\uB370\uB371\uB374\uB378\uB380\uB381\uB383\uB384\uB385\uB38C\uB390\uB394\uB3A0\uB3A1\uB3A8\uB3AC\uB3C4\uB3C5\uB3C8\uB3CB\uB3CC\uB3CE\uB3D0\uB3D4\uB3D5\uB3D7\uB3D9\uB3DB\uB3DD\uB3E0\uB3E4\uB3E8\uB3FC\uB410\uB418\uB41C\uB420\uB428\uB429\uB42B\uB434\uB450\uB451\uB454\uB458\uB460\uB461\uB463\uB465\uB46C\uB480\uB488\uB49D\uB4A4\uB4A8\uB4AC\uB4B5\uB4B7\uB4B9\uB4C0\uB4C4\uB4C8\uB4D0\uB4D5\uB4DC\uB4DD\uB4E0\uB4E3\uB4E4\uB4E6\uB4EC\uB4ED\uB4EF\uB4F1\uB4F8\uB514\uB515\uB518\uB51B\uB51C\uB524\uB525\uB527\uB528\uB529\uB52A\uB530\uB531\uB534\uB538"],
      ["b641", "\uD105", 7, "\uD10E", 17],
      ["b661", "\uD120", 15, "\uD132\uD133\uD135\uD136\uD137\uD139\uD13B\uD13C\uD13D\uD13E"],
      ["b681", "\uD13F\uD142\uD146", 5, "\uD14E\uD14F\uD151\uD152\uD153\uD155", 6, "\uD15E\uD160\uD162", 5, "\uD169\uD16A\uD16B\uD16D\uB540\uB541\uB543\uB544\uB545\uB54B\uB54C\uB54D\uB550\uB554\uB55C\uB55D\uB55F\uB560\uB561\uB5A0\uB5A1\uB5A4\uB5A8\uB5AA\uB5AB\uB5B0\uB5B1\uB5B3\uB5B4\uB5B5\uB5BB\uB5BC\uB5BD\uB5C0\uB5C4\uB5CC\uB5CD\uB5CF\uB5D0\uB5D1\uB5D8\uB5EC\uB610\uB611\uB614\uB618\uB625\uB62C\uB634\uB648\uB664\uB668\uB69C\uB69D\uB6A0\uB6A4\uB6AB\uB6AC\uB6B1\uB6D4\uB6F0\uB6F4\uB6F8\uB700\uB701\uB705\uB728\uB729\uB72C\uB72F\uB730\uB738\uB739\uB73B\uB744\uB748\uB74C\uB754\uB755\uB760\uB764\uB768\uB770\uB771\uB773\uB775\uB77C\uB77D\uB780\uB784\uB78C\uB78D\uB78F\uB790\uB791\uB792\uB796\uB797"],
      ["b741", "\uD16E", 13, "\uD17D", 6, "\uD185\uD186\uD187\uD189\uD18A"],
      ["b761", "\uD18B", 20, "\uD1A2\uD1A3\uD1A5\uD1A6\uD1A7"],
      ["b781", "\uD1A9", 6, "\uD1B2\uD1B4\uD1B6\uD1B7\uD1B8\uD1B9\uD1BB\uD1BD\uD1BE\uD1BF\uD1C1", 14, "\uB798\uB799\uB79C\uB7A0\uB7A8\uB7A9\uB7AB\uB7AC\uB7AD\uB7B4\uB7B5\uB7B8\uB7C7\uB7C9\uB7EC\uB7ED\uB7F0\uB7F4\uB7FC\uB7FD\uB7FF\uB800\uB801\uB807\uB808\uB809\uB80C\uB810\uB818\uB819\uB81B\uB81D\uB824\uB825\uB828\uB82C\uB834\uB835\uB837\uB838\uB839\uB840\uB844\uB851\uB853\uB85C\uB85D\uB860\uB864\uB86C\uB86D\uB86F\uB871\uB878\uB87C\uB88D\uB8A8\uB8B0\uB8B4\uB8B8\uB8C0\uB8C1\uB8C3\uB8C5\uB8CC\uB8D0\uB8D4\uB8DD\uB8DF\uB8E1\uB8E8\uB8E9\uB8EC\uB8F0\uB8F8\uB8F9\uB8FB\uB8FD\uB904\uB918\uB920\uB93C\uB93D\uB940\uB944\uB94C\uB94F\uB951\uB958\uB959\uB95C\uB960\uB968\uB969"],
      ["b841", "\uD1D0", 7, "\uD1D9", 17],
      ["b861", "\uD1EB", 8, "\uD1F5\uD1F6\uD1F7\uD1F9", 13],
      ["b881", "\uD208\uD20A", 5, "\uD211", 24, "\uB96B\uB96D\uB974\uB975\uB978\uB97C\uB984\uB985\uB987\uB989\uB98A\uB98D\uB98E\uB9AC\uB9AD\uB9B0\uB9B4\uB9BC\uB9BD\uB9BF\uB9C1\uB9C8\uB9C9\uB9CC\uB9CE", 4, "\uB9D8\uB9D9\uB9DB\uB9DD\uB9DE\uB9E1\uB9E3\uB9E4\uB9E5\uB9E8\uB9EC\uB9F4\uB9F5\uB9F7\uB9F8\uB9F9\uB9FA\uBA00\uBA01\uBA08\uBA15\uBA38\uBA39\uBA3C\uBA40\uBA42\uBA48\uBA49\uBA4B\uBA4D\uBA4E\uBA53\uBA54\uBA55\uBA58\uBA5C\uBA64\uBA65\uBA67\uBA68\uBA69\uBA70\uBA71\uBA74\uBA78\uBA83\uBA84\uBA85\uBA87\uBA8C\uBAA8\uBAA9\uBAAB\uBAAC\uBAB0\uBAB2\uBAB8\uBAB9\uBABB\uBABD\uBAC4\uBAC8\uBAD8\uBAD9\uBAFC"],
      ["b941", "\uD22A\uD22B\uD22E\uD22F\uD231\uD232\uD233\uD235", 6, "\uD23E\uD240\uD242", 5, "\uD249\uD24A\uD24B\uD24C"],
      ["b961", "\uD24D", 14, "\uD25D", 6, "\uD265\uD266\uD267\uD268"],
      ["b981", "\uD269", 22, "\uD282\uD283\uD285\uD286\uD287\uD289\uD28A\uD28B\uD28C\uBB00\uBB04\uBB0D\uBB0F\uBB11\uBB18\uBB1C\uBB20\uBB29\uBB2B\uBB34\uBB35\uBB36\uBB38\uBB3B\uBB3C\uBB3D\uBB3E\uBB44\uBB45\uBB47\uBB49\uBB4D\uBB4F\uBB50\uBB54\uBB58\uBB61\uBB63\uBB6C\uBB88\uBB8C\uBB90\uBBA4\uBBA8\uBBAC\uBBB4\uBBB7\uBBC0\uBBC4\uBBC8\uBBD0\uBBD3\uBBF8\uBBF9\uBBFC\uBBFF\uBC00\uBC02\uBC08\uBC09\uBC0B\uBC0C\uBC0D\uBC0F\uBC11\uBC14", 4, "\uBC1B", 4, "\uBC24\uBC25\uBC27\uBC29\uBC2D\uBC30\uBC31\uBC34\uBC38\uBC40\uBC41\uBC43\uBC44\uBC45\uBC49\uBC4C\uBC4D\uBC50\uBC5D\uBC84\uBC85\uBC88\uBC8B\uBC8C\uBC8E\uBC94\uBC95\uBC97"],
      ["ba41", "\uD28D\uD28E\uD28F\uD292\uD293\uD294\uD296", 5, "\uD29D\uD29E\uD29F\uD2A1\uD2A2\uD2A3\uD2A5", 6, "\uD2AD"],
      ["ba61", "\uD2AE\uD2AF\uD2B0\uD2B2", 5, "\uD2BA\uD2BB\uD2BD\uD2BE\uD2C1\uD2C3", 4, "\uD2CA\uD2CC", 5],
      ["ba81", "\uD2D2\uD2D3\uD2D5\uD2D6\uD2D7\uD2D9\uD2DA\uD2DB\uD2DD", 6, "\uD2E6", 9, "\uD2F2\uD2F3\uD2F5\uD2F6\uD2F7\uD2F9\uD2FA\uBC99\uBC9A\uBCA0\uBCA1\uBCA4\uBCA7\uBCA8\uBCB0\uBCB1\uBCB3\uBCB4\uBCB5\uBCBC\uBCBD\uBCC0\uBCC4\uBCCD\uBCCF\uBCD0\uBCD1\uBCD5\uBCD8\uBCDC\uBCF4\uBCF5\uBCF6\uBCF8\uBCFC\uBD04\uBD05\uBD07\uBD09\uBD10\uBD14\uBD24\uBD2C\uBD40\uBD48\uBD49\uBD4C\uBD50\uBD58\uBD59\uBD64\uBD68\uBD80\uBD81\uBD84\uBD87\uBD88\uBD89\uBD8A\uBD90\uBD91\uBD93\uBD95\uBD99\uBD9A\uBD9C\uBDA4\uBDB0\uBDB8\uBDD4\uBDD5\uBDD8\uBDDC\uBDE9\uBDF0\uBDF4\uBDF8\uBE00\uBE03\uBE05\uBE0C\uBE0D\uBE10\uBE14\uBE1C\uBE1D\uBE1F\uBE44\uBE45\uBE48\uBE4C\uBE4E\uBE54\uBE55\uBE57\uBE59\uBE5A\uBE5B\uBE60\uBE61\uBE64"],
      ["bb41", "\uD2FB", 4, "\uD302\uD304\uD306", 5, "\uD30F\uD311\uD312\uD313\uD315\uD317", 4, "\uD31E\uD322\uD323"],
      ["bb61", "\uD324\uD326\uD327\uD32A\uD32B\uD32D\uD32E\uD32F\uD331", 6, "\uD33A\uD33E", 5, "\uD346\uD347\uD348\uD349"],
      ["bb81", "\uD34A", 31, "\uBE68\uBE6A\uBE70\uBE71\uBE73\uBE74\uBE75\uBE7B\uBE7C\uBE7D\uBE80\uBE84\uBE8C\uBE8D\uBE8F\uBE90\uBE91\uBE98\uBE99\uBEA8\uBED0\uBED1\uBED4\uBED7\uBED8\uBEE0\uBEE3\uBEE4\uBEE5\uBEEC\uBF01\uBF08\uBF09\uBF18\uBF19\uBF1B\uBF1C\uBF1D\uBF40\uBF41\uBF44\uBF48\uBF50\uBF51\uBF55\uBF94\uBFB0\uBFC5\uBFCC\uBFCD\uBFD0\uBFD4\uBFDC\uBFDF\uBFE1\uC03C\uC051\uC058\uC05C\uC060\uC068\uC069\uC090\uC091\uC094\uC098\uC0A0\uC0A1\uC0A3\uC0A5\uC0AC\uC0AD\uC0AF\uC0B0\uC0B3\uC0B4\uC0B5\uC0B6\uC0BC\uC0BD\uC0BF\uC0C0\uC0C1\uC0C5\uC0C8\uC0C9\uC0CC\uC0D0\uC0D8\uC0D9\uC0DB\uC0DC\uC0DD\uC0E4"],
      ["bc41", "\uD36A", 17, "\uD37E\uD37F\uD381\uD382\uD383\uD385\uD386\uD387"],
      ["bc61", "\uD388\uD389\uD38A\uD38B\uD38E\uD392", 5, "\uD39A\uD39B\uD39D\uD39E\uD39F\uD3A1", 6, "\uD3AA\uD3AC\uD3AE"],
      ["bc81", "\uD3AF", 4, "\uD3B5\uD3B6\uD3B7\uD3B9\uD3BA\uD3BB\uD3BD", 6, "\uD3C6\uD3C7\uD3CA", 5, "\uD3D1", 5, "\uC0E5\uC0E8\uC0EC\uC0F4\uC0F5\uC0F7\uC0F9\uC100\uC104\uC108\uC110\uC115\uC11C", 4, "\uC123\uC124\uC126\uC127\uC12C\uC12D\uC12F\uC130\uC131\uC136\uC138\uC139\uC13C\uC140\uC148\uC149\uC14B\uC14C\uC14D\uC154\uC155\uC158\uC15C\uC164\uC165\uC167\uC168\uC169\uC170\uC174\uC178\uC185\uC18C\uC18D\uC18E\uC190\uC194\uC196\uC19C\uC19D\uC19F\uC1A1\uC1A5\uC1A8\uC1A9\uC1AC\uC1B0\uC1BD\uC1C4\uC1C8\uC1CC\uC1D4\uC1D7\uC1D8\uC1E0\uC1E4\uC1E8\uC1F0\uC1F1\uC1F3\uC1FC\uC1FD\uC200\uC204\uC20C\uC20D\uC20F\uC211\uC218\uC219\uC21C\uC21F\uC220\uC228\uC229\uC22B\uC22D"],
      ["bd41", "\uD3D7\uD3D9", 7, "\uD3E2\uD3E4", 7, "\uD3EE\uD3EF\uD3F1\uD3F2\uD3F3\uD3F5\uD3F6\uD3F7"],
      ["bd61", "\uD3F8\uD3F9\uD3FA\uD3FB\uD3FE\uD400\uD402", 5, "\uD409", 13],
      ["bd81", "\uD417", 5, "\uD41E", 25, "\uC22F\uC231\uC232\uC234\uC248\uC250\uC251\uC254\uC258\uC260\uC265\uC26C\uC26D\uC270\uC274\uC27C\uC27D\uC27F\uC281\uC288\uC289\uC290\uC298\uC29B\uC29D\uC2A4\uC2A5\uC2A8\uC2AC\uC2AD\uC2B4\uC2B5\uC2B7\uC2B9\uC2DC\uC2DD\uC2E0\uC2E3\uC2E4\uC2EB\uC2EC\uC2ED\uC2EF\uC2F1\uC2F6\uC2F8\uC2F9\uC2FB\uC2FC\uC300\uC308\uC309\uC30C\uC30D\uC313\uC314\uC315\uC318\uC31C\uC324\uC325\uC328\uC329\uC345\uC368\uC369\uC36C\uC370\uC372\uC378\uC379\uC37C\uC37D\uC384\uC388\uC38C\uC3C0\uC3D8\uC3D9\uC3DC\uC3DF\uC3E0\uC3E2\uC3E8\uC3E9\uC3ED\uC3F4\uC3F5\uC3F8\uC408\uC410\uC424\uC42C\uC430"],
      ["be41", "\uD438", 7, "\uD441\uD442\uD443\uD445", 14],
      ["be61", "\uD454", 7, "\uD45D\uD45E\uD45F\uD461\uD462\uD463\uD465", 7, "\uD46E\uD470\uD471\uD472"],
      ["be81", "\uD473", 4, "\uD47A\uD47B\uD47D\uD47E\uD481\uD483", 4, "\uD48A\uD48C\uD48E", 5, "\uD495", 8, "\uC434\uC43C\uC43D\uC448\uC464\uC465\uC468\uC46C\uC474\uC475\uC479\uC480\uC494\uC49C\uC4B8\uC4BC\uC4E9\uC4F0\uC4F1\uC4F4\uC4F8\uC4FA\uC4FF\uC500\uC501\uC50C\uC510\uC514\uC51C\uC528\uC529\uC52C\uC530\uC538\uC539\uC53B\uC53D\uC544\uC545\uC548\uC549\uC54A\uC54C\uC54D\uC54E\uC553\uC554\uC555\uC557\uC558\uC559\uC55D\uC55E\uC560\uC561\uC564\uC568\uC570\uC571\uC573\uC574\uC575\uC57C\uC57D\uC580\uC584\uC587\uC58C\uC58D\uC58F\uC591\uC595\uC597\uC598\uC59C\uC5A0\uC5A9\uC5B4\uC5B5\uC5B8\uC5B9\uC5BB\uC5BC\uC5BD\uC5BE\uC5C4", 6, "\uC5CC\uC5CE"],
      ["bf41", "\uD49E", 10, "\uD4AA", 14],
      ["bf61", "\uD4B9", 18, "\uD4CD\uD4CE\uD4CF\uD4D1\uD4D2\uD4D3\uD4D5"],
      ["bf81", "\uD4D6", 5, "\uD4DD\uD4DE\uD4E0", 7, "\uD4E9\uD4EA\uD4EB\uD4ED\uD4EE\uD4EF\uD4F1", 6, "\uD4F9\uD4FA\uD4FC\uC5D0\uC5D1\uC5D4\uC5D8\uC5E0\uC5E1\uC5E3\uC5E5\uC5EC\uC5ED\uC5EE\uC5F0\uC5F4\uC5F6\uC5F7\uC5FC", 5, "\uC605\uC606\uC607\uC608\uC60C\uC610\uC618\uC619\uC61B\uC61C\uC624\uC625\uC628\uC62C\uC62D\uC62E\uC630\uC633\uC634\uC635\uC637\uC639\uC63B\uC640\uC641\uC644\uC648\uC650\uC651\uC653\uC654\uC655\uC65C\uC65D\uC660\uC66C\uC66F\uC671\uC678\uC679\uC67C\uC680\uC688\uC689\uC68B\uC68D\uC694\uC695\uC698\uC69C\uC6A4\uC6A5\uC6A7\uC6A9\uC6B0\uC6B1\uC6B4\uC6B8\uC6B9\uC6BA\uC6C0\uC6C1\uC6C3\uC6C5\uC6CC\uC6CD\uC6D0\uC6D4\uC6DC\uC6DD\uC6E0\uC6E1\uC6E8"],
      ["c041", "\uD4FE", 5, "\uD505\uD506\uD507\uD509\uD50A\uD50B\uD50D", 6, "\uD516\uD518", 5],
      ["c061", "\uD51E", 25],
      ["c081", "\uD538\uD539\uD53A\uD53B\uD53E\uD53F\uD541\uD542\uD543\uD545", 6, "\uD54E\uD550\uD552", 5, "\uD55A\uD55B\uD55D\uD55E\uD55F\uD561\uD562\uD563\uC6E9\uC6EC\uC6F0\uC6F8\uC6F9\uC6FD\uC704\uC705\uC708\uC70C\uC714\uC715\uC717\uC719\uC720\uC721\uC724\uC728\uC730\uC731\uC733\uC735\uC737\uC73C\uC73D\uC740\uC744\uC74A\uC74C\uC74D\uC74F\uC751", 7, "\uC75C\uC760\uC768\uC76B\uC774\uC775\uC778\uC77C\uC77D\uC77E\uC783\uC784\uC785\uC787\uC788\uC789\uC78A\uC78E\uC790\uC791\uC794\uC796\uC797\uC798\uC79A\uC7A0\uC7A1\uC7A3\uC7A4\uC7A5\uC7A6\uC7AC\uC7AD\uC7B0\uC7B4\uC7BC\uC7BD\uC7BF\uC7C0\uC7C1\uC7C8\uC7C9\uC7CC\uC7CE\uC7D0\uC7D8\uC7DD\uC7E4\uC7E8\uC7EC\uC800\uC801\uC804\uC808\uC80A"],
      ["c141", "\uD564\uD566\uD567\uD56A\uD56C\uD56E", 5, "\uD576\uD577\uD579\uD57A\uD57B\uD57D", 6, "\uD586\uD58A\uD58B"],
      ["c161", "\uD58C\uD58D\uD58E\uD58F\uD591", 19, "\uD5A6\uD5A7"],
      ["c181", "\uD5A8", 31, "\uC810\uC811\uC813\uC815\uC816\uC81C\uC81D\uC820\uC824\uC82C\uC82D\uC82F\uC831\uC838\uC83C\uC840\uC848\uC849\uC84C\uC84D\uC854\uC870\uC871\uC874\uC878\uC87A\uC880\uC881\uC883\uC885\uC886\uC887\uC88B\uC88C\uC88D\uC894\uC89D\uC89F\uC8A1\uC8A8\uC8BC\uC8BD\uC8C4\uC8C8\uC8CC\uC8D4\uC8D5\uC8D7\uC8D9\uC8E0\uC8E1\uC8E4\uC8F5\uC8FC\uC8FD\uC900\uC904\uC905\uC906\uC90C\uC90D\uC90F\uC911\uC918\uC92C\uC934\uC950\uC951\uC954\uC958\uC960\uC961\uC963\uC96C\uC970\uC974\uC97C\uC988\uC989\uC98C\uC990\uC998\uC999\uC99B\uC99D\uC9C0\uC9C1\uC9C4\uC9C7\uC9C8\uC9CA\uC9D0\uC9D1\uC9D3"],
      ["c241", "\uD5CA\uD5CB\uD5CD\uD5CE\uD5CF\uD5D1\uD5D3", 4, "\uD5DA\uD5DC\uD5DE", 5, "\uD5E6\uD5E7\uD5E9\uD5EA\uD5EB\uD5ED\uD5EE"],
      ["c261", "\uD5EF", 4, "\uD5F6\uD5F8\uD5FA", 5, "\uD602\uD603\uD605\uD606\uD607\uD609", 6, "\uD612"],
      ["c281", "\uD616", 5, "\uD61D\uD61E\uD61F\uD621\uD622\uD623\uD625", 7, "\uD62E", 9, "\uD63A\uD63B\uC9D5\uC9D6\uC9D9\uC9DA\uC9DC\uC9DD\uC9E0\uC9E2\uC9E4\uC9E7\uC9EC\uC9ED\uC9EF\uC9F0\uC9F1\uC9F8\uC9F9\uC9FC\uCA00\uCA08\uCA09\uCA0B\uCA0C\uCA0D\uCA14\uCA18\uCA29\uCA4C\uCA4D\uCA50\uCA54\uCA5C\uCA5D\uCA5F\uCA60\uCA61\uCA68\uCA7D\uCA84\uCA98\uCABC\uCABD\uCAC0\uCAC4\uCACC\uCACD\uCACF\uCAD1\uCAD3\uCAD8\uCAD9\uCAE0\uCAEC\uCAF4\uCB08\uCB10\uCB14\uCB18\uCB20\uCB21\uCB41\uCB48\uCB49\uCB4C\uCB50\uCB58\uCB59\uCB5D\uCB64\uCB78\uCB79\uCB9C\uCBB8\uCBD4\uCBE4\uCBE7\uCBE9\uCC0C\uCC0D\uCC10\uCC14\uCC1C\uCC1D\uCC21\uCC22\uCC27\uCC28\uCC29\uCC2C\uCC2E\uCC30\uCC38\uCC39\uCC3B"],
      ["c341", "\uD63D\uD63E\uD63F\uD641\uD642\uD643\uD644\uD646\uD647\uD64A\uD64C\uD64E\uD64F\uD650\uD652\uD653\uD656\uD657\uD659\uD65A\uD65B\uD65D", 4],
      ["c361", "\uD662", 4, "\uD668\uD66A", 5, "\uD672\uD673\uD675", 11],
      ["c381", "\uD681\uD682\uD684\uD686", 5, "\uD68E\uD68F\uD691\uD692\uD693\uD695", 7, "\uD69E\uD6A0\uD6A2", 5, "\uD6A9\uD6AA\uCC3C\uCC3D\uCC3E\uCC44\uCC45\uCC48\uCC4C\uCC54\uCC55\uCC57\uCC58\uCC59\uCC60\uCC64\uCC66\uCC68\uCC70\uCC75\uCC98\uCC99\uCC9C\uCCA0\uCCA8\uCCA9\uCCAB\uCCAC\uCCAD\uCCB4\uCCB5\uCCB8\uCCBC\uCCC4\uCCC5\uCCC7\uCCC9\uCCD0\uCCD4\uCCE4\uCCEC\uCCF0\uCD01\uCD08\uCD09\uCD0C\uCD10\uCD18\uCD19\uCD1B\uCD1D\uCD24\uCD28\uCD2C\uCD39\uCD5C\uCD60\uCD64\uCD6C\uCD6D\uCD6F\uCD71\uCD78\uCD88\uCD94\uCD95\uCD98\uCD9C\uCDA4\uCDA5\uCDA7\uCDA9\uCDB0\uCDC4\uCDCC\uCDD0\uCDE8\uCDEC\uCDF0\uCDF8\uCDF9\uCDFB\uCDFD\uCE04\uCE08\uCE0C\uCE14\uCE19\uCE20\uCE21\uCE24\uCE28\uCE30\uCE31\uCE33\uCE35"],
      ["c441", "\uD6AB\uD6AD\uD6AE\uD6AF\uD6B1", 7, "\uD6BA\uD6BC", 7, "\uD6C6\uD6C7\uD6C9\uD6CA\uD6CB"],
      ["c461", "\uD6CD\uD6CE\uD6CF\uD6D0\uD6D2\uD6D3\uD6D5\uD6D6\uD6D8\uD6DA", 5, "\uD6E1\uD6E2\uD6E3\uD6E5\uD6E6\uD6E7\uD6E9", 4],
      ["c481", "\uD6EE\uD6EF\uD6F1\uD6F2\uD6F3\uD6F4\uD6F6", 5, "\uD6FE\uD6FF\uD701\uD702\uD703\uD705", 11, "\uD712\uD713\uD714\uCE58\uCE59\uCE5C\uCE5F\uCE60\uCE61\uCE68\uCE69\uCE6B\uCE6D\uCE74\uCE75\uCE78\uCE7C\uCE84\uCE85\uCE87\uCE89\uCE90\uCE91\uCE94\uCE98\uCEA0\uCEA1\uCEA3\uCEA4\uCEA5\uCEAC\uCEAD\uCEC1\uCEE4\uCEE5\uCEE8\uCEEB\uCEEC\uCEF4\uCEF5\uCEF7\uCEF8\uCEF9\uCF00\uCF01\uCF04\uCF08\uCF10\uCF11\uCF13\uCF15\uCF1C\uCF20\uCF24\uCF2C\uCF2D\uCF2F\uCF30\uCF31\uCF38\uCF54\uCF55\uCF58\uCF5C\uCF64\uCF65\uCF67\uCF69\uCF70\uCF71\uCF74\uCF78\uCF80\uCF85\uCF8C\uCFA1\uCFA8\uCFB0\uCFC4\uCFE0\uCFE1\uCFE4\uCFE8\uCFF0\uCFF1\uCFF3\uCFF5\uCFFC\uD000\uD004\uD011\uD018\uD02D\uD034\uD035\uD038\uD03C"],
      ["c541", "\uD715\uD716\uD717\uD71A\uD71B\uD71D\uD71E\uD71F\uD721", 6, "\uD72A\uD72C\uD72E", 5, "\uD736\uD737\uD739"],
      ["c561", "\uD73A\uD73B\uD73D", 6, "\uD745\uD746\uD748\uD74A", 5, "\uD752\uD753\uD755\uD75A", 4],
      ["c581", "\uD75F\uD762\uD764\uD766\uD767\uD768\uD76A\uD76B\uD76D\uD76E\uD76F\uD771\uD772\uD773\uD775", 6, "\uD77E\uD77F\uD780\uD782", 5, "\uD78A\uD78B\uD044\uD045\uD047\uD049\uD050\uD054\uD058\uD060\uD06C\uD06D\uD070\uD074\uD07C\uD07D\uD081\uD0A4\uD0A5\uD0A8\uD0AC\uD0B4\uD0B5\uD0B7\uD0B9\uD0C0\uD0C1\uD0C4\uD0C8\uD0C9\uD0D0\uD0D1\uD0D3\uD0D4\uD0D5\uD0DC\uD0DD\uD0E0\uD0E4\uD0EC\uD0ED\uD0EF\uD0F0\uD0F1\uD0F8\uD10D\uD130\uD131\uD134\uD138\uD13A\uD140\uD141\uD143\uD144\uD145\uD14C\uD14D\uD150\uD154\uD15C\uD15D\uD15F\uD161\uD168\uD16C\uD17C\uD184\uD188\uD1A0\uD1A1\uD1A4\uD1A8\uD1B0\uD1B1\uD1B3\uD1B5\uD1BA\uD1BC\uD1C0\uD1D8\uD1F4\uD1F8\uD207\uD209\uD210\uD22C\uD22D\uD230\uD234\uD23C\uD23D\uD23F\uD241\uD248\uD25C"],
      ["c641", "\uD78D\uD78E\uD78F\uD791", 6, "\uD79A\uD79C\uD79E", 5],
      ["c6a1", "\uD264\uD280\uD281\uD284\uD288\uD290\uD291\uD295\uD29C\uD2A0\uD2A4\uD2AC\uD2B1\uD2B8\uD2B9\uD2BC\uD2BF\uD2C0\uD2C2\uD2C8\uD2C9\uD2CB\uD2D4\uD2D8\uD2DC\uD2E4\uD2E5\uD2F0\uD2F1\uD2F4\uD2F8\uD300\uD301\uD303\uD305\uD30C\uD30D\uD30E\uD310\uD314\uD316\uD31C\uD31D\uD31F\uD320\uD321\uD325\uD328\uD329\uD32C\uD330\uD338\uD339\uD33B\uD33C\uD33D\uD344\uD345\uD37C\uD37D\uD380\uD384\uD38C\uD38D\uD38F\uD390\uD391\uD398\uD399\uD39C\uD3A0\uD3A8\uD3A9\uD3AB\uD3AD\uD3B4\uD3B8\uD3BC\uD3C4\uD3C5\uD3C8\uD3C9\uD3D0\uD3D8\uD3E1\uD3E3\uD3EC\uD3ED\uD3F0\uD3F4\uD3FC\uD3FD\uD3FF\uD401"],
      ["c7a1", "\uD408\uD41D\uD440\uD444\uD45C\uD460\uD464\uD46D\uD46F\uD478\uD479\uD47C\uD47F\uD480\uD482\uD488\uD489\uD48B\uD48D\uD494\uD4A9\uD4CC\uD4D0\uD4D4\uD4DC\uD4DF\uD4E8\uD4EC\uD4F0\uD4F8\uD4FB\uD4FD\uD504\uD508\uD50C\uD514\uD515\uD517\uD53C\uD53D\uD540\uD544\uD54C\uD54D\uD54F\uD551\uD558\uD559\uD55C\uD560\uD565\uD568\uD569\uD56B\uD56D\uD574\uD575\uD578\uD57C\uD584\uD585\uD587\uD588\uD589\uD590\uD5A5\uD5C8\uD5C9\uD5CC\uD5D0\uD5D2\uD5D8\uD5D9\uD5DB\uD5DD\uD5E4\uD5E5\uD5E8\uD5EC\uD5F4\uD5F5\uD5F7\uD5F9\uD600\uD601\uD604\uD608\uD610\uD611\uD613\uD614\uD615\uD61C\uD620"],
      ["c8a1", "\uD624\uD62D\uD638\uD639\uD63C\uD640\uD645\uD648\uD649\uD64B\uD64D\uD651\uD654\uD655\uD658\uD65C\uD667\uD669\uD670\uD671\uD674\uD683\uD685\uD68C\uD68D\uD690\uD694\uD69D\uD69F\uD6A1\uD6A8\uD6AC\uD6B0\uD6B9\uD6BB\uD6C4\uD6C5\uD6C8\uD6CC\uD6D1\uD6D4\uD6D7\uD6D9\uD6E0\uD6E4\uD6E8\uD6F0\uD6F5\uD6FC\uD6FD\uD700\uD704\uD711\uD718\uD719\uD71C\uD720\uD728\uD729\uD72B\uD72D\uD734\uD735\uD738\uD73C\uD744\uD747\uD749\uD750\uD751\uD754\uD756\uD757\uD758\uD759\uD760\uD761\uD763\uD765\uD769\uD76C\uD770\uD774\uD77C\uD77D\uD781\uD788\uD789\uD78C\uD790\uD798\uD799\uD79B\uD79D"],
      ["caa1", "\u4F3D\u4F73\u5047\u50F9\u52A0\u53EF\u5475\u54E5\u5609\u5AC1\u5BB6\u6687\u67B6\u67B7\u67EF\u6B4C\u73C2\u75C2\u7A3C\u82DB\u8304\u8857\u8888\u8A36\u8CC8\u8DCF\u8EFB\u8FE6\u99D5\u523B\u5374\u5404\u606A\u6164\u6BBC\u73CF\u811A\u89BA\u89D2\u95A3\u4F83\u520A\u58BE\u5978\u59E6\u5E72\u5E79\u61C7\u63C0\u6746\u67EC\u687F\u6F97\u764E\u770B\u78F5\u7A08\u7AFF\u7C21\u809D\u826E\u8271\u8AEB\u9593\u4E6B\u559D\u66F7\u6E34\u78A3\u7AED\u845B\u8910\u874E\u97A8\u52D8\u574E\u582A\u5D4C\u611F\u61BE\u6221\u6562\u67D1\u6A44\u6E1B\u7518\u75B3\u76E3\u77B0\u7D3A\u90AF\u9451\u9452\u9F95"],
      ["cba1", "\u5323\u5CAC\u7532\u80DB\u9240\u9598\u525B\u5808\u59DC\u5CA1\u5D17\u5EB7\u5F3A\u5F4A\u6177\u6C5F\u757A\u7586\u7CE0\u7D73\u7DB1\u7F8C\u8154\u8221\u8591\u8941\u8B1B\u92FC\u964D\u9C47\u4ECB\u4EF7\u500B\u51F1\u584F\u6137\u613E\u6168\u6539\u69EA\u6F11\u75A5\u7686\u76D6\u7B87\u82A5\u84CB\uF900\u93A7\u958B\u5580\u5BA2\u5751\uF901\u7CB3\u7FB9\u91B5\u5028\u53BB\u5C45\u5DE8\u62D2\u636E\u64DA\u64E7\u6E20\u70AC\u795B\u8DDD\u8E1E\uF902\u907D\u9245\u92F8\u4E7E\u4EF6\u5065\u5DFE\u5EFA\u6106\u6957\u8171\u8654\u8E47\u9375\u9A2B\u4E5E\u5091\u6770\u6840\u5109\u528D\u5292\u6AA2"],
      ["cca1", "\u77BC\u9210\u9ED4\u52AB\u602F\u8FF2\u5048\u61A9\u63ED\u64CA\u683C\u6A84\u6FC0\u8188\u89A1\u9694\u5805\u727D\u72AC\u7504\u7D79\u7E6D\u80A9\u898B\u8B74\u9063\u9D51\u6289\u6C7A\u6F54\u7D50\u7F3A\u8A23\u517C\u614A\u7B9D\u8B19\u9257\u938C\u4EAC\u4FD3\u501E\u50BE\u5106\u52C1\u52CD\u537F\u5770\u5883\u5E9A\u5F91\u6176\u61AC\u64CE\u656C\u666F\u66BB\u66F4\u6897\u6D87\u7085\u70F1\u749F\u74A5\u74CA\u75D9\u786C\u78EC\u7ADF\u7AF6\u7D45\u7D93\u8015\u803F\u811B\u8396\u8B66\u8F15\u9015\u93E1\u9803\u9838\u9A5A\u9BE8\u4FC2\u5553\u583A\u5951\u5B63\u5C46\u60B8\u6212\u6842\u68B0"],
      ["cda1", "\u68E8\u6EAA\u754C\u7678\u78CE\u7A3D\u7CFB\u7E6B\u7E7C\u8A08\u8AA1\u8C3F\u968E\u9DC4\u53E4\u53E9\u544A\u5471\u56FA\u59D1\u5B64\u5C3B\u5EAB\u62F7\u6537\u6545\u6572\u66A0\u67AF\u69C1\u6CBD\u75FC\u7690\u777E\u7A3F\u7F94\u8003\u80A1\u818F\u82E6\u82FD\u83F0\u85C1\u8831\u88B4\u8AA5\uF903\u8F9C\u932E\u96C7\u9867\u9AD8\u9F13\u54ED\u659B\u66F2\u688F\u7A40\u8C37\u9D60\u56F0\u5764\u5D11\u6606\u68B1\u68CD\u6EFE\u7428\u889E\u9BE4\u6C68\uF904\u9AA8\u4F9B\u516C\u5171\u529F\u5B54\u5DE5\u6050\u606D\u62F1\u63A7\u653B\u73D9\u7A7A\u86A3\u8CA2\u978F\u4E32\u5BE1\u6208\u679C\u74DC"],
      ["cea1", "\u79D1\u83D3\u8A87\u8AB2\u8DE8\u904E\u934B\u9846\u5ED3\u69E8\u85FF\u90ED\uF905\u51A0\u5B98\u5BEC\u6163\u68FA\u6B3E\u704C\u742F\u74D8\u7BA1\u7F50\u83C5\u89C0\u8CAB\u95DC\u9928\u522E\u605D\u62EC\u9002\u4F8A\u5149\u5321\u58D9\u5EE3\u66E0\u6D38\u709A\u72C2\u73D6\u7B50\u80F1\u945B\u5366\u639B\u7F6B\u4E56\u5080\u584A\u58DE\u602A\u6127\u62D0\u69D0\u9B41\u5B8F\u7D18\u80B1\u8F5F\u4EA4\u50D1\u54AC\u55AC\u5B0C\u5DA0\u5DE7\u652A\u654E\u6821\u6A4B\u72E1\u768E\u77EF\u7D5E\u7FF9\u81A0\u854E\u86DF\u8F03\u8F4E\u90CA\u9903\u9A55\u9BAB\u4E18\u4E45\u4E5D\u4EC7\u4FF1\u5177\u52FE"],
      ["cfa1", "\u5340\u53E3\u53E5\u548E\u5614\u5775\u57A2\u5BC7\u5D87\u5ED0\u61FC\u62D8\u6551\u67B8\u67E9\u69CB\u6B50\u6BC6\u6BEC\u6C42\u6E9D\u7078\u72D7\u7396\u7403\u77BF\u77E9\u7A76\u7D7F\u8009\u81FC\u8205\u820A\u82DF\u8862\u8B33\u8CFC\u8EC0\u9011\u90B1\u9264\u92B6\u99D2\u9A45\u9CE9\u9DD7\u9F9C\u570B\u5C40\u83CA\u97A0\u97AB\u9EB4\u541B\u7A98\u7FA4\u88D9\u8ECD\u90E1\u5800\u5C48\u6398\u7A9F\u5BAE\u5F13\u7A79\u7AAE\u828E\u8EAC\u5026\u5238\u52F8\u5377\u5708\u62F3\u6372\u6B0A\u6DC3\u7737\u53A5\u7357\u8568\u8E76\u95D5\u673A\u6AC3\u6F70\u8A6D\u8ECC\u994B\uF906\u6677\u6B78\u8CB4"],
      ["d0a1", "\u9B3C\uF907\u53EB\u572D\u594E\u63C6\u69FB\u73EA\u7845\u7ABA\u7AC5\u7CFE\u8475\u898F\u8D73\u9035\u95A8\u52FB\u5747\u7547\u7B60\u83CC\u921E\uF908\u6A58\u514B\u524B\u5287\u621F\u68D8\u6975\u9699\u50C5\u52A4\u52E4\u61C3\u65A4\u6839\u69FF\u747E\u7B4B\u82B9\u83EB\u89B2\u8B39\u8FD1\u9949\uF909\u4ECA\u5997\u64D2\u6611\u6A8E\u7434\u7981\u79BD\u82A9\u887E\u887F\u895F\uF90A\u9326\u4F0B\u53CA\u6025\u6271\u6C72\u7D1A\u7D66\u4E98\u5162\u77DC\u80AF\u4F01\u4F0E\u5176\u5180\u55DC\u5668\u573B\u57FA\u57FC\u5914\u5947\u5993\u5BC4\u5C90\u5D0E\u5DF1\u5E7E\u5FCC\u6280\u65D7\u65E3"],
      ["d1a1", "\u671E\u671F\u675E\u68CB\u68C4\u6A5F\u6B3A\u6C23\u6C7D\u6C82\u6DC7\u7398\u7426\u742A\u7482\u74A3\u7578\u757F\u7881\u78EF\u7941\u7947\u7948\u797A\u7B95\u7D00\u7DBA\u7F88\u8006\u802D\u808C\u8A18\u8B4F\u8C48\u8D77\u9321\u9324\u98E2\u9951\u9A0E\u9A0F\u9A65\u9E92\u7DCA\u4F76\u5409\u62EE\u6854\u91D1\u55AB\u513A\uF90B\uF90C\u5A1C\u61E6\uF90D\u62CF\u62FF\uF90E", 5, "\u90A3\uF914", 4, "\u8AFE\uF919\uF91A\uF91B\uF91C\u6696\uF91D\u7156\uF91E\uF91F\u96E3\uF920\u634F\u637A\u5357\uF921\u678F\u6960\u6E73\uF922\u7537\uF923\uF924\uF925"],
      ["d2a1", "\u7D0D\uF926\uF927\u8872\u56CA\u5A18\uF928", 4, "\u4E43\uF92D\u5167\u5948\u67F0\u8010\uF92E\u5973\u5E74\u649A\u79CA\u5FF5\u606C\u62C8\u637B\u5BE7\u5BD7\u52AA\uF92F\u5974\u5F29\u6012\uF930\uF931\uF932\u7459\uF933", 5, "\u99D1\uF939", 10, "\u6FC3\uF944\uF945\u81BF\u8FB2\u60F1\uF946\uF947\u8166\uF948\uF949\u5C3F\uF94A", 7, "\u5AE9\u8A25\u677B\u7D10\uF952", 5, "\u80FD\uF958\uF959\u5C3C\u6CE5\u533F\u6EBA\u591A\u8336"],
      ["d3a1", "\u4E39\u4EB6\u4F46\u55AE\u5718\u58C7\u5F56\u65B7\u65E6\u6A80\u6BB5\u6E4D\u77ED\u7AEF\u7C1E\u7DDE\u86CB\u8892\u9132\u935B\u64BB\u6FBE\u737A\u75B8\u9054\u5556\u574D\u61BA\u64D4\u66C7\u6DE1\u6E5B\u6F6D\u6FB9\u75F0\u8043\u81BD\u8541\u8983\u8AC7\u8B5A\u931F\u6C93\u7553\u7B54\u8E0F\u905D\u5510\u5802\u5858\u5E62\u6207\u649E\u68E0\u7576\u7CD6\u87B3\u9EE8\u4EE3\u5788\u576E\u5927\u5C0D\u5CB1\u5E36\u5F85\u6234\u64E1\u73B3\u81FA\u888B\u8CB8\u968A\u9EDB\u5B85\u5FB7\u60B3\u5012\u5200\u5230\u5716\u5835\u5857\u5C0E\u5C60\u5CF6\u5D8B\u5EA6\u5F92\u60BC\u6311\u6389\u6417\u6843"],
      ["d4a1", "\u68F9\u6AC2\u6DD8\u6E21\u6ED4\u6FE4\u71FE\u76DC\u7779\u79B1\u7A3B\u8404\u89A9\u8CED\u8DF3\u8E48\u9003\u9014\u9053\u90FD\u934D\u9676\u97DC\u6BD2\u7006\u7258\u72A2\u7368\u7763\u79BF\u7BE4\u7E9B\u8B80\u58A9\u60C7\u6566\u65FD\u66BE\u6C8C\u711E\u71C9\u8C5A\u9813\u4E6D\u7A81\u4EDD\u51AC\u51CD\u52D5\u540C\u61A7\u6771\u6850\u68DF\u6D1E\u6F7C\u75BC\u77B3\u7AE5\u80F4\u8463\u9285\u515C\u6597\u675C\u6793\u75D8\u7AC7\u8373\uF95A\u8C46\u9017\u982D\u5C6F\u81C0\u829A\u9041\u906F\u920D\u5F97\u5D9D\u6A59\u71C8\u767B\u7B49\u85E4\u8B04\u9127\u9A30\u5587\u61F6\uF95B\u7669\u7F85"],
      ["d5a1", "\u863F\u87BA\u88F8\u908F\uF95C\u6D1B\u70D9\u73DE\u7D61\u843D\uF95D\u916A\u99F1\uF95E\u4E82\u5375\u6B04\u6B12\u703E\u721B\u862D\u9E1E\u524C\u8FA3\u5D50\u64E5\u652C\u6B16\u6FEB\u7C43\u7E9C\u85CD\u8964\u89BD\u62C9\u81D8\u881F\u5ECA\u6717\u6D6A\u72FC\u7405\u746F\u8782\u90DE\u4F86\u5D0D\u5FA0\u840A\u51B7\u63A0\u7565\u4EAE\u5006\u5169\u51C9\u6881\u6A11\u7CAE\u7CB1\u7CE7\u826F\u8AD2\u8F1B\u91CF\u4FB6\u5137\u52F5\u5442\u5EEC\u616E\u623E\u65C5\u6ADA\u6FFE\u792A\u85DC\u8823\u95AD\u9A62\u9A6A\u9E97\u9ECE\u529B\u66C6\u6B77\u701D\u792B\u8F62\u9742\u6190\u6200\u6523\u6F23"],
      ["d6a1", "\u7149\u7489\u7DF4\u806F\u84EE\u8F26\u9023\u934A\u51BD\u5217\u52A3\u6D0C\u70C8\u88C2\u5EC9\u6582\u6BAE\u6FC2\u7C3E\u7375\u4EE4\u4F36\u56F9\uF95F\u5CBA\u5DBA\u601C\u73B2\u7B2D\u7F9A\u7FCE\u8046\u901E\u9234\u96F6\u9748\u9818\u9F61\u4F8B\u6FA7\u79AE\u91B4\u96B7\u52DE\uF960\u6488\u64C4\u6AD3\u6F5E\u7018\u7210\u76E7\u8001\u8606\u865C\u8DEF\u8F05\u9732\u9B6F\u9DFA\u9E75\u788C\u797F\u7DA0\u83C9\u9304\u9E7F\u9E93\u8AD6\u58DF\u5F04\u6727\u7027\u74CF\u7C60\u807E\u5121\u7028\u7262\u78CA\u8CC2\u8CDA\u8CF4\u96F7\u4E86\u50DA\u5BEE\u5ED6\u6599\u71CE\u7642\u77AD\u804A\u84FC"],
      ["d7a1", "\u907C\u9B27\u9F8D\u58D8\u5A41\u5C62\u6A13\u6DDA\u6F0F\u763B\u7D2F\u7E37\u851E\u8938\u93E4\u964B\u5289\u65D2\u67F3\u69B4\u6D41\u6E9C\u700F\u7409\u7460\u7559\u7624\u786B\u8B2C\u985E\u516D\u622E\u9678\u4F96\u502B\u5D19\u6DEA\u7DB8\u8F2A\u5F8B\u6144\u6817\uF961\u9686\u52D2\u808B\u51DC\u51CC\u695E\u7A1C\u7DBE\u83F1\u9675\u4FDA\u5229\u5398\u540F\u550E\u5C65\u60A7\u674E\u68A8\u6D6C\u7281\u72F8\u7406\u7483\uF962\u75E2\u7C6C\u7F79\u7FB8\u8389\u88CF\u88E1\u91CC\u91D0\u96E2\u9BC9\u541D\u6F7E\u71D0\u7498\u85FA\u8EAA\u96A3\u9C57\u9E9F\u6797\u6DCB\u7433\u81E8\u9716\u782C"],
      ["d8a1", "\u7ACB\u7B20\u7C92\u6469\u746A\u75F2\u78BC\u78E8\u99AC\u9B54\u9EBB\u5BDE\u5E55\u6F20\u819C\u83AB\u9088\u4E07\u534D\u5A29\u5DD2\u5F4E\u6162\u633D\u6669\u66FC\u6EFF\u6F2B\u7063\u779E\u842C\u8513\u883B\u8F13\u9945\u9C3B\u551C\u62B9\u672B\u6CAB\u8309\u896A\u977A\u4EA1\u5984\u5FD8\u5FD9\u671B\u7DB2\u7F54\u8292\u832B\u83BD\u8F1E\u9099\u57CB\u59B9\u5A92\u5BD0\u6627\u679A\u6885\u6BCF\u7164\u7F75\u8CB7\u8CE3\u9081\u9B45\u8108\u8C8A\u964C\u9A40\u9EA5\u5B5F\u6C13\u731B\u76F2\u76DF\u840C\u51AA\u8993\u514D\u5195\u52C9\u68C9\u6C94\u7704\u7720\u7DBF\u7DEC\u9762\u9EB5\u6EC5"],
      ["d9a1", "\u8511\u51A5\u540D\u547D\u660E\u669D\u6927\u6E9F\u76BF\u7791\u8317\u84C2\u879F\u9169\u9298\u9CF4\u8882\u4FAE\u5192\u52DF\u59C6\u5E3D\u6155\u6478\u6479\u66AE\u67D0\u6A21\u6BCD\u6BDB\u725F\u7261\u7441\u7738\u77DB\u8017\u82BC\u8305\u8B00\u8B28\u8C8C\u6728\u6C90\u7267\u76EE\u7766\u7A46\u9DA9\u6B7F\u6C92\u5922\u6726\u8499\u536F\u5893\u5999\u5EDF\u63CF\u6634\u6773\u6E3A\u732B\u7AD7\u82D7\u9328\u52D9\u5DEB\u61AE\u61CB\u620A\u62C7\u64AB\u65E0\u6959\u6B66\u6BCB\u7121\u73F7\u755D\u7E46\u821E\u8302\u856A\u8AA3\u8CBF\u9727\u9D61\u58A8\u9ED8\u5011\u520E\u543B\u554F\u6587"],
      ["daa1", "\u6C76\u7D0A\u7D0B\u805E\u868A\u9580\u96EF\u52FF\u6C95\u7269\u5473\u5A9A\u5C3E\u5D4B\u5F4C\u5FAE\u672A\u68B6\u6963\u6E3C\u6E44\u7709\u7C73\u7F8E\u8587\u8B0E\u8FF7\u9761\u9EF4\u5CB7\u60B6\u610D\u61AB\u654F\u65FB\u65FC\u6C11\u6CEF\u739F\u73C9\u7DE1\u9594\u5BC6\u871C\u8B10\u525D\u535A\u62CD\u640F\u64B2\u6734\u6A38\u6CCA\u73C0\u749E\u7B94\u7C95\u7E1B\u818A\u8236\u8584\u8FEB\u96F9\u99C1\u4F34\u534A\u53CD\u53DB\u62CC\u642C\u6500\u6591\u69C3\u6CEE\u6F58\u73ED\u7554\u7622\u76E4\u76FC\u78D0\u78FB\u792C\u7D46\u822C\u87E0\u8FD4\u9812\u98EF\u52C3\u62D4\u64A5\u6E24\u6F51"],
      ["dba1", "\u767C\u8DCB\u91B1\u9262\u9AEE\u9B43\u5023\u508D\u574A\u59A8\u5C28\u5E47\u5F77\u623F\u653E\u65B9\u65C1\u6609\u678B\u699C\u6EC2\u78C5\u7D21\u80AA\u8180\u822B\u82B3\u84A1\u868C\u8A2A\u8B17\u90A6\u9632\u9F90\u500D\u4FF3\uF963\u57F9\u5F98\u62DC\u6392\u676F\u6E43\u7119\u76C3\u80CC\u80DA\u88F4\u88F5\u8919\u8CE0\u8F29\u914D\u966A\u4F2F\u4F70\u5E1B\u67CF\u6822\u767D\u767E\u9B44\u5E61\u6A0A\u7169\u71D4\u756A\uF964\u7E41\u8543\u85E9\u98DC\u4F10\u7B4F\u7F70\u95A5\u51E1\u5E06\u68B5\u6C3E\u6C4E\u6CDB\u72AF\u7BC4\u8303\u6CD5\u743A\u50FB\u5288\u58C1\u64D8\u6A97\u74A7\u7656"],
      ["dca1", "\u78A7\u8617\u95E2\u9739\uF965\u535E\u5F01\u8B8A\u8FA8\u8FAF\u908A\u5225\u77A5\u9C49\u9F08\u4E19\u5002\u5175\u5C5B\u5E77\u661E\u663A\u67C4\u68C5\u70B3\u7501\u75C5\u79C9\u7ADD\u8F27\u9920\u9A08\u4FDD\u5821\u5831\u5BF6\u666E\u6B65\u6D11\u6E7A\u6F7D\u73E4\u752B\u83E9\u88DC\u8913\u8B5C\u8F14\u4F0F\u50D5\u5310\u535C\u5B93\u5FA9\u670D\u798F\u8179\u832F\u8514\u8907\u8986\u8F39\u8F3B\u99A5\u9C12\u672C\u4E76\u4FF8\u5949\u5C01\u5CEF\u5CF0\u6367\u68D2\u70FD\u71A2\u742B\u7E2B\u84EC\u8702\u9022\u92D2\u9CF3\u4E0D\u4ED8\u4FEF\u5085\u5256\u526F\u5426\u5490\u57E0\u592B\u5A66"],
      ["dda1", "\u5B5A\u5B75\u5BCC\u5E9C\uF966\u6276\u6577\u65A7\u6D6E\u6EA5\u7236\u7B26\u7C3F\u7F36\u8150\u8151\u819A\u8240\u8299\u83A9\u8A03\u8CA0\u8CE6\u8CFB\u8D74\u8DBA\u90E8\u91DC\u961C\u9644\u99D9\u9CE7\u5317\u5206\u5429\u5674\u58B3\u5954\u596E\u5FFF\u61A4\u626E\u6610\u6C7E\u711A\u76C6\u7C89\u7CDE\u7D1B\u82AC\u8CC1\u96F0\uF967\u4F5B\u5F17\u5F7F\u62C2\u5D29\u670B\u68DA\u787C\u7E43\u9D6C\u4E15\u5099\u5315\u532A\u5351\u5983\u5A62\u5E87\u60B2\u618A\u6249\u6279\u6590\u6787\u69A7\u6BD4\u6BD6\u6BD7\u6BD8\u6CB8\uF968\u7435\u75FA\u7812\u7891\u79D5\u79D8\u7C83\u7DCB\u7FE1\u80A5"],
      ["dea1", "\u813E\u81C2\u83F2\u871A\u88E8\u8AB9\u8B6C\u8CBB\u9119\u975E\u98DB\u9F3B\u56AC\u5B2A\u5F6C\u658C\u6AB3\u6BAF\u6D5C\u6FF1\u7015\u725D\u73AD\u8CA7\u8CD3\u983B\u6191\u6C37\u8058\u9A01\u4E4D\u4E8B\u4E9B\u4ED5\u4F3A\u4F3C\u4F7F\u4FDF\u50FF\u53F2\u53F8\u5506\u55E3\u56DB\u58EB\u5962\u5A11\u5BEB\u5BFA\u5C04\u5DF3\u5E2B\u5F99\u601D\u6368\u659C\u65AF\u67F6\u67FB\u68AD\u6B7B\u6C99\u6CD7\u6E23\u7009\u7345\u7802\u793E\u7940\u7960\u79C1\u7BE9\u7D17\u7D72\u8086\u820D\u838E\u84D1\u86C7\u88DF\u8A50\u8A5E\u8B1D\u8CDC\u8D66\u8FAD\u90AA\u98FC\u99DF\u9E9D\u524A\uF969\u6714\uF96A"],
      ["dfa1", "\u5098\u522A\u5C71\u6563\u6C55\u73CA\u7523\u759D\u7B97\u849C\u9178\u9730\u4E77\u6492\u6BBA\u715E\u85A9\u4E09\uF96B\u6749\u68EE\u6E17\u829F\u8518\u886B\u63F7\u6F81\u9212\u98AF\u4E0A\u50B7\u50CF\u511F\u5546\u55AA\u5617\u5B40\u5C19\u5CE0\u5E38\u5E8A\u5EA0\u5EC2\u60F3\u6851\u6A61\u6E58\u723D\u7240\u72C0\u76F8\u7965\u7BB1\u7FD4\u88F3\u89F4\u8A73\u8C61\u8CDE\u971C\u585E\u74BD\u8CFD\u55C7\uF96C\u7A61\u7D22\u8272\u7272\u751F\u7525\uF96D\u7B19\u5885\u58FB\u5DBC\u5E8F\u5EB6\u5F90\u6055\u6292\u637F\u654D\u6691\u66D9\u66F8\u6816\u68F2\u7280\u745E\u7B6E\u7D6E\u7DD6\u7F72"],
      ["e0a1", "\u80E5\u8212\u85AF\u897F\u8A93\u901D\u92E4\u9ECD\u9F20\u5915\u596D\u5E2D\u60DC\u6614\u6673\u6790\u6C50\u6DC5\u6F5F\u77F3\u78A9\u84C6\u91CB\u932B\u4ED9\u50CA\u5148\u5584\u5B0B\u5BA3\u6247\u657E\u65CB\u6E32\u717D\u7401\u7444\u7487\u74BF\u766C\u79AA\u7DDA\u7E55\u7FA8\u817A\u81B3\u8239\u861A\u87EC\u8A75\u8DE3\u9078\u9291\u9425\u994D\u9BAE\u5368\u5C51\u6954\u6CC4\u6D29\u6E2B\u820C\u859B\u893B\u8A2D\u8AAA\u96EA\u9F67\u5261\u66B9\u6BB2\u7E96\u87FE\u8D0D\u9583\u965D\u651D\u6D89\u71EE\uF96E\u57CE\u59D3\u5BAC\u6027\u60FA\u6210\u661F\u665F\u7329\u73F9\u76DB\u7701\u7B6C"],
      ["e1a1", "\u8056\u8072\u8165\u8AA0\u9192\u4E16\u52E2\u6B72\u6D17\u7A05\u7B39\u7D30\uF96F\u8CB0\u53EC\u562F\u5851\u5BB5\u5C0F\u5C11\u5DE2\u6240\u6383\u6414\u662D\u68B3\u6CBC\u6D88\u6EAF\u701F\u70A4\u71D2\u7526\u758F\u758E\u7619\u7B11\u7BE0\u7C2B\u7D20\u7D39\u852C\u856D\u8607\u8A34\u900D\u9061\u90B5\u92B7\u97F6\u9A37\u4FD7\u5C6C\u675F\u6D91\u7C9F\u7E8C\u8B16\u8D16\u901F\u5B6B\u5DFD\u640D\u84C0\u905C\u98E1\u7387\u5B8B\u609A\u677E\u6DDE\u8A1F\u8AA6\u9001\u980C\u5237\uF970\u7051\u788E\u9396\u8870\u91D7\u4FEE\u53D7\u55FD\u56DA\u5782\u58FD\u5AC2\u5B88\u5CAB\u5CC0\u5E25\u6101"],
      ["e2a1", "\u620D\u624B\u6388\u641C\u6536\u6578\u6A39\u6B8A\u6C34\u6D19\u6F31\u71E7\u72E9\u7378\u7407\u74B2\u7626\u7761\u79C0\u7A57\u7AEA\u7CB9\u7D8F\u7DAC\u7E61\u7F9E\u8129\u8331\u8490\u84DA\u85EA\u8896\u8AB0\u8B90\u8F38\u9042\u9083\u916C\u9296\u92B9\u968B\u96A7\u96A8\u96D6\u9700\u9808\u9996\u9AD3\u9B1A\u53D4\u587E\u5919\u5B70\u5BBF\u6DD1\u6F5A\u719F\u7421\u74B9\u8085\u83FD\u5DE1\u5F87\u5FAA\u6042\u65EC\u6812\u696F\u6A53\u6B89\u6D35\u6DF3\u73E3\u76FE\u77AC\u7B4D\u7D14\u8123\u821C\u8340\u84F4\u8563\u8A62\u8AC4\u9187\u931E\u9806\u99B4\u620C\u8853\u8FF0\u9265\u5D07\u5D27"],
      ["e3a1", "\u5D69\u745F\u819D\u8768\u6FD5\u62FE\u7FD2\u8936\u8972\u4E1E\u4E58\u50E7\u52DD\u5347\u627F\u6607\u7E69\u8805\u965E\u4F8D\u5319\u5636\u59CB\u5AA4\u5C38\u5C4E\u5C4D\u5E02\u5F11\u6043\u65BD\u662F\u6642\u67BE\u67F4\u731C\u77E2\u793A\u7FC5\u8494\u84CD\u8996\u8A66\u8A69\u8AE1\u8C55\u8C7A\u57F4\u5BD4\u5F0F\u606F\u62ED\u690D\u6B96\u6E5C\u7184\u7BD2\u8755\u8B58\u8EFE\u98DF\u98FE\u4F38\u4F81\u4FE1\u547B\u5A20\u5BB8\u613C\u65B0\u6668\u71FC\u7533\u795E\u7D33\u814E\u81E3\u8398\u85AA\u85CE\u8703\u8A0A\u8EAB\u8F9B\uF971\u8FC5\u5931\u5BA4\u5BE6\u6089\u5BE9\u5C0B\u5FC3\u6C81"],
      ["e4a1", "\uF972\u6DF1\u700B\u751A\u82AF\u8AF6\u4EC0\u5341\uF973\u96D9\u6C0F\u4E9E\u4FC4\u5152\u555E\u5A25\u5CE8\u6211\u7259\u82BD\u83AA\u86FE\u8859\u8A1D\u963F\u96C5\u9913\u9D09\u9D5D\u580A\u5CB3\u5DBD\u5E44\u60E1\u6115\u63E1\u6A02\u6E25\u9102\u9354\u984E\u9C10\u9F77\u5B89\u5CB8\u6309\u664F\u6848\u773C\u96C1\u978D\u9854\u9B9F\u65A1\u8B01\u8ECB\u95BC\u5535\u5CA9\u5DD6\u5EB5\u6697\u764C\u83F4\u95C7\u58D3\u62BC\u72CE\u9D28\u4EF0\u592E\u600F\u663B\u6B83\u79E7\u9D26\u5393\u54C0\u57C3\u5D16\u611B\u66D6\u6DAF\u788D\u827E\u9698\u9744\u5384\u627C\u6396\u6DB2\u7E0A\u814B\u984D"],
      ["e5a1", "\u6AFB\u7F4C\u9DAF\u9E1A\u4E5F\u503B\u51B6\u591C\u60F9\u63F6\u6930\u723A\u8036\uF974\u91CE\u5F31\uF975\uF976\u7D04\u82E5\u846F\u84BB\u85E5\u8E8D\uF977\u4F6F\uF978\uF979\u58E4\u5B43\u6059\u63DA\u6518\u656D\u6698\uF97A\u694A\u6A23\u6D0B\u7001\u716C\u75D2\u760D\u79B3\u7A70\uF97B\u7F8A\uF97C\u8944\uF97D\u8B93\u91C0\u967D\uF97E\u990A\u5704\u5FA1\u65BC\u6F01\u7600\u79A6\u8A9E\u99AD\u9B5A\u9F6C\u5104\u61B6\u6291\u6A8D\u81C6\u5043\u5830\u5F66\u7109\u8A00\u8AFA\u5B7C\u8616\u4FFA\u513C\u56B4\u5944\u63A9\u6DF9\u5DAA\u696D\u5186\u4E88\u4F59\uF97F\uF980\uF981\u5982\uF982"],
      ["e6a1", "\uF983\u6B5F\u6C5D\uF984\u74B5\u7916\uF985\u8207\u8245\u8339\u8F3F\u8F5D\uF986\u9918\uF987\uF988\uF989\u4EA6\uF98A\u57DF\u5F79\u6613\uF98B\uF98C\u75AB\u7E79\u8B6F\uF98D\u9006\u9A5B\u56A5\u5827\u59F8\u5A1F\u5BB4\uF98E\u5EF6\uF98F\uF990\u6350\u633B\uF991\u693D\u6C87\u6CBF\u6D8E\u6D93\u6DF5\u6F14\uF992\u70DF\u7136\u7159\uF993\u71C3\u71D5\uF994\u784F\u786F\uF995\u7B75\u7DE3\uF996\u7E2F\uF997\u884D\u8EDF\uF998\uF999\uF99A\u925B\uF99B\u9CF6\uF99C\uF99D\uF99E\u6085\u6D85\uF99F\u71B1\uF9A0\uF9A1\u95B1\u53AD\uF9A2\uF9A3\uF9A4\u67D3\uF9A5\u708E\u7130\u7430\u8276\u82D2"],
      ["e7a1", "\uF9A6\u95BB\u9AE5\u9E7D\u66C4\uF9A7\u71C1\u8449\uF9A8\uF9A9\u584B\uF9AA\uF9AB\u5DB8\u5F71\uF9AC\u6620\u668E\u6979\u69AE\u6C38\u6CF3\u6E36\u6F41\u6FDA\u701B\u702F\u7150\u71DF\u7370\uF9AD\u745B\uF9AE\u74D4\u76C8\u7A4E\u7E93\uF9AF\uF9B0\u82F1\u8A60\u8FCE\uF9B1\u9348\uF9B2\u9719\uF9B3\uF9B4\u4E42\u502A\uF9B5\u5208\u53E1\u66F3\u6C6D\u6FCA\u730A\u777F\u7A62\u82AE\u85DD\u8602\uF9B6\u88D4\u8A63\u8B7D\u8C6B\uF9B7\u92B3\uF9B8\u9713\u9810\u4E94\u4F0D\u4FC9\u50B2\u5348\u543E\u5433\u55DA\u5862\u58BA\u5967\u5A1B\u5BE4\u609F\uF9B9\u61CA\u6556\u65FF\u6664\u68A7\u6C5A\u6FB3"],
      ["e8a1", "\u70CF\u71AC\u7352\u7B7D\u8708\u8AA4\u9C32\u9F07\u5C4B\u6C83\u7344\u7389\u923A\u6EAB\u7465\u761F\u7A69\u7E15\u860A\u5140\u58C5\u64C1\u74EE\u7515\u7670\u7FC1\u9095\u96CD\u9954\u6E26\u74E6\u7AA9\u7AAA\u81E5\u86D9\u8778\u8A1B\u5A49\u5B8C\u5B9B\u68A1\u6900\u6D63\u73A9\u7413\u742C\u7897\u7DE9\u7FEB\u8118\u8155\u839E\u8C4C\u962E\u9811\u66F0\u5F80\u65FA\u6789\u6C6A\u738B\u502D\u5A03\u6B6A\u77EE\u5916\u5D6C\u5DCD\u7325\u754F\uF9BA\uF9BB\u50E5\u51F9\u582F\u592D\u5996\u59DA\u5BE5\uF9BC\uF9BD\u5DA2\u62D7\u6416\u6493\u64FE\uF9BE\u66DC\uF9BF\u6A48\uF9C0\u71FF\u7464\uF9C1"],
      ["e9a1", "\u7A88\u7AAF\u7E47\u7E5E\u8000\u8170\uF9C2\u87EF\u8981\u8B20\u9059\uF9C3\u9080\u9952\u617E\u6B32\u6D74\u7E1F\u8925\u8FB1\u4FD1\u50AD\u5197\u52C7\u57C7\u5889\u5BB9\u5EB8\u6142\u6995\u6D8C\u6E67\u6EB6\u7194\u7462\u7528\u752C\u8073\u8338\u84C9\u8E0A\u9394\u93DE\uF9C4\u4E8E\u4F51\u5076\u512A\u53C8\u53CB\u53F3\u5B87\u5BD3\u5C24\u611A\u6182\u65F4\u725B\u7397\u7440\u76C2\u7950\u7991\u79B9\u7D06\u7FBD\u828B\u85D5\u865E\u8FC2\u9047\u90F5\u91EA\u9685\u96E8\u96E9\u52D6\u5F67\u65ED\u6631\u682F\u715C\u7A36\u90C1\u980A\u4E91\uF9C5\u6A52\u6B9E\u6F90\u7189\u8018\u82B8\u8553"],
      ["eaa1", "\u904B\u9695\u96F2\u97FB\u851A\u9B31\u4E90\u718A\u96C4\u5143\u539F\u54E1\u5713\u5712\u57A3\u5A9B\u5AC4\u5BC3\u6028\u613F\u63F4\u6C85\u6D39\u6E72\u6E90\u7230\u733F\u7457\u82D1\u8881\u8F45\u9060\uF9C6\u9662\u9858\u9D1B\u6708\u8D8A\u925E\u4F4D\u5049\u50DE\u5371\u570D\u59D4\u5A01\u5C09\u6170\u6690\u6E2D\u7232\u744B\u7DEF\u80C3\u840E\u8466\u853F\u875F\u885B\u8918\u8B02\u9055\u97CB\u9B4F\u4E73\u4F91\u5112\u516A\uF9C7\u552F\u55A9\u5B7A\u5BA5\u5E7C\u5E7D\u5EBE\u60A0\u60DF\u6108\u6109\u63C4\u6538\u6709\uF9C8\u67D4\u67DA\uF9C9\u6961\u6962\u6CB9\u6D27\uF9CA\u6E38\uF9CB"],
      ["eba1", "\u6FE1\u7336\u7337\uF9CC\u745C\u7531\uF9CD\u7652\uF9CE\uF9CF\u7DAD\u81FE\u8438\u88D5\u8A98\u8ADB\u8AED\u8E30\u8E42\u904A\u903E\u907A\u9149\u91C9\u936E\uF9D0\uF9D1\u5809\uF9D2\u6BD3\u8089\u80B2\uF9D3\uF9D4\u5141\u596B\u5C39\uF9D5\uF9D6\u6F64\u73A7\u80E4\u8D07\uF9D7\u9217\u958F\uF9D8\uF9D9\uF9DA\uF9DB\u807F\u620E\u701C\u7D68\u878D\uF9DC\u57A0\u6069\u6147\u6BB7\u8ABE\u9280\u96B1\u4E59\u541F\u6DEB\u852D\u9670\u97F3\u98EE\u63D6\u6CE3\u9091\u51DD\u61C9\u81BA\u9DF9\u4F9D\u501A\u5100\u5B9C\u610F\u61FF\u64EC\u6905\u6BC5\u7591\u77E3\u7FA9\u8264\u858F\u87FB\u8863\u8ABC"],
      ["eca1", "\u8B70\u91AB\u4E8C\u4EE5\u4F0A\uF9DD\uF9DE\u5937\u59E8\uF9DF\u5DF2\u5F1B\u5F5B\u6021\uF9E0\uF9E1\uF9E2\uF9E3\u723E\u73E5\uF9E4\u7570\u75CD\uF9E5\u79FB\uF9E6\u800C\u8033\u8084\u82E1\u8351\uF9E7\uF9E8\u8CBD\u8CB3\u9087\uF9E9\uF9EA\u98F4\u990C\uF9EB\uF9EC\u7037\u76CA\u7FCA\u7FCC\u7FFC\u8B1A\u4EBA\u4EC1\u5203\u5370\uF9ED\u54BD\u56E0\u59FB\u5BC5\u5F15\u5FCD\u6E6E\uF9EE\uF9EF\u7D6A\u8335\uF9F0\u8693\u8A8D\uF9F1\u976D\u9777\uF9F2\uF9F3\u4E00\u4F5A\u4F7E\u58F9\u65E5\u6EA2\u9038\u93B0\u99B9\u4EFB\u58EC\u598A\u59D9\u6041\uF9F4\uF9F5\u7A14\uF9F6\u834F\u8CC3\u5165\u5344"],
      ["eda1", "\uF9F7\uF9F8\uF9F9\u4ECD\u5269\u5B55\u82BF\u4ED4\u523A\u54A8\u59C9\u59FF\u5B50\u5B57\u5B5C\u6063\u6148\u6ECB\u7099\u716E\u7386\u74F7\u75B5\u78C1\u7D2B\u8005\u81EA\u8328\u8517\u85C9\u8AEE\u8CC7\u96CC\u4F5C\u52FA\u56BC\u65AB\u6628\u707C\u70B8\u7235\u7DBD\u828D\u914C\u96C0\u9D72\u5B71\u68E7\u6B98\u6F7A\u76DE\u5C91\u66AB\u6F5B\u7BB4\u7C2A\u8836\u96DC\u4E08\u4ED7\u5320\u5834\u58BB\u58EF\u596C\u5C07\u5E33\u5E84\u5F35\u638C\u66B2\u6756\u6A1F\u6AA3\u6B0C\u6F3F\u7246\uF9FA\u7350\u748B\u7AE0\u7CA7\u8178\u81DF\u81E7\u838A\u846C\u8523\u8594\u85CF\u88DD\u8D13\u91AC\u9577"],
      ["eea1", "\u969C\u518D\u54C9\u5728\u5BB0\u624D\u6750\u683D\u6893\u6E3D\u6ED3\u707D\u7E21\u88C1\u8CA1\u8F09\u9F4B\u9F4E\u722D\u7B8F\u8ACD\u931A\u4F47\u4F4E\u5132\u5480\u59D0\u5E95\u62B5\u6775\u696E\u6A17\u6CAE\u6E1A\u72D9\u732A\u75BD\u7BB8\u7D35\u82E7\u83F9\u8457\u85F7\u8A5B\u8CAF\u8E87\u9019\u90B8\u96CE\u9F5F\u52E3\u540A\u5AE1\u5BC2\u6458\u6575\u6EF4\u72C4\uF9FB\u7684\u7A4D\u7B1B\u7C4D\u7E3E\u7FDF\u837B\u8B2B\u8CCA\u8D64\u8DE1\u8E5F\u8FEA\u8FF9\u9069\u93D1\u4F43\u4F7A\u50B3\u5168\u5178\u524D\u526A\u5861\u587C\u5960\u5C08\u5C55\u5EDB\u609B\u6230\u6813\u6BBF\u6C08\u6FB1"],
      ["efa1", "\u714E\u7420\u7530\u7538\u7551\u7672\u7B4C\u7B8B\u7BAD\u7BC6\u7E8F\u8A6E\u8F3E\u8F49\u923F\u9293\u9322\u942B\u96FB\u985A\u986B\u991E\u5207\u622A\u6298\u6D59\u7664\u7ACA\u7BC0\u7D76\u5360\u5CBE\u5E97\u6F38\u70B9\u7C98\u9711\u9B8E\u9EDE\u63A5\u647A\u8776\u4E01\u4E95\u4EAD\u505C\u5075\u5448\u59C3\u5B9A\u5E40\u5EAD\u5EF7\u5F81\u60C5\u633A\u653F\u6574\u65CC\u6676\u6678\u67FE\u6968\u6A89\u6B63\u6C40\u6DC0\u6DE8\u6E1F\u6E5E\u701E\u70A1\u738E\u73FD\u753A\u775B\u7887\u798E\u7A0B\u7A7D\u7CBE\u7D8E\u8247\u8A02\u8AEA\u8C9E\u912D\u914A\u91D8\u9266\u92CC\u9320\u9706\u9756"],
      ["f0a1", "\u975C\u9802\u9F0E\u5236\u5291\u557C\u5824\u5E1D\u5F1F\u608C\u63D0\u68AF\u6FDF\u796D\u7B2C\u81CD\u85BA\u88FD\u8AF8\u8E44\u918D\u9664\u969B\u973D\u984C\u9F4A\u4FCE\u5146\u51CB\u52A9\u5632\u5F14\u5F6B\u63AA\u64CD\u65E9\u6641\u66FA\u66F9\u671D\u689D\u68D7\u69FD\u6F15\u6F6E\u7167\u71E5\u722A\u74AA\u773A\u7956\u795A\u79DF\u7A20\u7A95\u7C97\u7CDF\u7D44\u7E70\u8087\u85FB\u86A4\u8A54\u8ABF\u8D99\u8E81\u9020\u906D\u91E3\u963B\u96D5\u9CE5\u65CF\u7C07\u8DB3\u93C3\u5B58\u5C0A\u5352\u62D9\u731D\u5027\u5B97\u5F9E\u60B0\u616B\u68D5\u6DD9\u742E\u7A2E\u7D42\u7D9C\u7E31\u816B"],
      ["f1a1", "\u8E2A\u8E35\u937E\u9418\u4F50\u5750\u5DE6\u5EA7\u632B\u7F6A\u4E3B\u4F4F\u4F8F\u505A\u59DD\u80C4\u546A\u5468\u55FE\u594F\u5B99\u5DDE\u5EDA\u665D\u6731\u67F1\u682A\u6CE8\u6D32\u6E4A\u6F8D\u70B7\u73E0\u7587\u7C4C\u7D02\u7D2C\u7DA2\u821F\u86DB\u8A3B\u8A85\u8D70\u8E8A\u8F33\u9031\u914E\u9152\u9444\u99D0\u7AF9\u7CA5\u4FCA\u5101\u51C6\u57C8\u5BEF\u5CFB\u6659\u6A3D\u6D5A\u6E96\u6FEC\u710C\u756F\u7AE3\u8822\u9021\u9075\u96CB\u99FF\u8301\u4E2D\u4EF2\u8846\u91CD\u537D\u6ADB\u696B\u6C41\u847A\u589E\u618E\u66FE\u62EF\u70DD\u7511\u75C7\u7E52\u84B8\u8B49\u8D08\u4E4B\u53EA"],
      ["f2a1", "\u54AB\u5730\u5740\u5FD7\u6301\u6307\u646F\u652F\u65E8\u667A\u679D\u67B3\u6B62\u6C60\u6C9A\u6F2C\u77E5\u7825\u7949\u7957\u7D19\u80A2\u8102\u81F3\u829D\u82B7\u8718\u8A8C\uF9FC\u8D04\u8DBE\u9072\u76F4\u7A19\u7A37\u7E54\u8077\u5507\u55D4\u5875\u632F\u6422\u6649\u664B\u686D\u699B\u6B84\u6D25\u6EB1\u73CD\u7468\u74A1\u755B\u75B9\u76E1\u771E\u778B\u79E6\u7E09\u7E1D\u81FB\u852F\u8897\u8A3A\u8CD1\u8EEB\u8FB0\u9032\u93AD\u9663\u9673\u9707\u4F84\u53F1\u59EA\u5AC9\u5E19\u684E\u74C6\u75BE\u79E9\u7A92\u81A3\u86ED\u8CEA\u8DCC\u8FED\u659F\u6715\uF9FD\u57F7\u6F57\u7DDD\u8F2F"],
      ["f3a1", "\u93F6\u96C6\u5FB5\u61F2\u6F84\u4E14\u4F98\u501F\u53C9\u55DF\u5D6F\u5DEE\u6B21\u6B64\u78CB\u7B9A\uF9FE\u8E49\u8ECA\u906E\u6349\u643E\u7740\u7A84\u932F\u947F\u9F6A\u64B0\u6FAF\u71E6\u74A8\u74DA\u7AC4\u7C12\u7E82\u7CB2\u7E98\u8B9A\u8D0A\u947D\u9910\u994C\u5239\u5BDF\u64E6\u672D\u7D2E\u50ED\u53C3\u5879\u6158\u6159\u61FA\u65AC\u7AD9\u8B92\u8B96\u5009\u5021\u5275\u5531\u5A3C\u5EE0\u5F70\u6134\u655E\u660C\u6636\u66A2\u69CD\u6EC4\u6F32\u7316\u7621\u7A93\u8139\u8259\u83D6\u84BC\u50B5\u57F0\u5BC0\u5BE8\u5F69\u63A1\u7826\u7DB5\u83DC\u8521\u91C7\u91F5\u518A\u67F5\u7B56"],
      ["f4a1", "\u8CAC\u51C4\u59BB\u60BD\u8655\u501C\uF9FF\u5254\u5C3A\u617D\u621A\u62D3\u64F2\u65A5\u6ECC\u7620\u810A\u8E60\u965F\u96BB\u4EDF\u5343\u5598\u5929\u5DDD\u64C5\u6CC9\u6DFA\u7394\u7A7F\u821B\u85A6\u8CE4\u8E10\u9077\u91E7\u95E1\u9621\u97C6\u51F8\u54F2\u5586\u5FB9\u64A4\u6F88\u7DB4\u8F1F\u8F4D\u9435\u50C9\u5C16\u6CBE\u6DFB\u751B\u77BB\u7C3D\u7C64\u8A79\u8AC2\u581E\u59BE\u5E16\u6377\u7252\u758A\u776B\u8ADC\u8CBC\u8F12\u5EF3\u6674\u6DF8\u807D\u83C1\u8ACB\u9751\u9BD6\uFA00\u5243\u66FF\u6D95\u6EEF\u7DE0\u8AE6\u902E\u905E\u9AD4\u521D\u527F\u54E8\u6194\u6284\u62DB\u68A2"],
      ["f5a1", "\u6912\u695A\u6A35\u7092\u7126\u785D\u7901\u790E\u79D2\u7A0D\u8096\u8278\u82D5\u8349\u8549\u8C82\u8D85\u9162\u918B\u91AE\u4FC3\u56D1\u71ED\u77D7\u8700\u89F8\u5BF8\u5FD6\u6751\u90A8\u53E2\u585A\u5BF5\u60A4\u6181\u6460\u7E3D\u8070\u8525\u9283\u64AE\u50AC\u5D14\u6700\u589C\u62BD\u63A8\u690E\u6978\u6A1E\u6E6B\u76BA\u79CB\u82BB\u8429\u8ACF\u8DA8\u8FFD\u9112\u914B\u919C\u9310\u9318\u939A\u96DB\u9A36\u9C0D\u4E11\u755C\u795D\u7AFA\u7B51\u7BC9\u7E2E\u84C4\u8E59\u8E74\u8EF8\u9010\u6625\u693F\u7443\u51FA\u672E\u9EDC\u5145\u5FE0\u6C96\u87F2\u885D\u8877\u60B4\u81B5\u8403"],
      ["f6a1", "\u8D05\u53D6\u5439\u5634\u5A36\u5C31\u708A\u7FE0\u805A\u8106\u81ED\u8DA3\u9189\u9A5F\u9DF2\u5074\u4EC4\u53A0\u60FB\u6E2C\u5C64\u4F88\u5024\u55E4\u5CD9\u5E5F\u6065\u6894\u6CBB\u6DC4\u71BE\u75D4\u75F4\u7661\u7A1A\u7A49\u7DC7\u7DFB\u7F6E\u81F4\u86A9\u8F1C\u96C9\u99B3\u9F52\u5247\u52C5\u98ED\u89AA\u4E03\u67D2\u6F06\u4FB5\u5BE2\u6795\u6C88\u6D78\u741B\u7827\u91DD\u937C\u87C4\u79E4\u7A31\u5FEB\u4ED6\u54A4\u553E\u58AE\u59A5\u60F0\u6253\u62D6\u6736\u6955\u8235\u9640\u99B1\u99DD\u502C\u5353\u5544\u577C\uFA01\u6258\uFA02\u64E2\u666B\u67DD\u6FC1\u6FEF\u7422\u7438\u8A17"],
      ["f7a1", "\u9438\u5451\u5606\u5766\u5F48\u619A\u6B4E\u7058\u70AD\u7DBB\u8A95\u596A\u812B\u63A2\u7708\u803D\u8CAA\u5854\u642D\u69BB\u5B95\u5E11\u6E6F\uFA03\u8569\u514C\u53F0\u592A\u6020\u614B\u6B86\u6C70\u6CF0\u7B1E\u80CE\u82D4\u8DC6\u90B0\u98B1\uFA04\u64C7\u6FA4\u6491\u6504\u514E\u5410\u571F\u8A0E\u615F\u6876\uFA05\u75DB\u7B52\u7D71\u901A\u5806\u69CC\u817F\u892A\u9000\u9839\u5078\u5957\u59AC\u6295\u900F\u9B2A\u615D\u7279\u95D6\u5761\u5A46\u5DF4\u628A\u64AD\u64FA\u6777\u6CE2\u6D3E\u722C\u7436\u7834\u7F77\u82AD\u8DDB\u9817\u5224\u5742\u677F\u7248\u74E3\u8CA9\u8FA6\u9211"],
      ["f8a1", "\u962A\u516B\u53ED\u634C\u4F69\u5504\u6096\u6557\u6C9B\u6D7F\u724C\u72FD\u7A17\u8987\u8C9D\u5F6D\u6F8E\u70F9\u81A8\u610E\u4FBF\u504F\u6241\u7247\u7BC7\u7DE8\u7FE9\u904D\u97AD\u9A19\u8CB6\u576A\u5E73\u67B0\u840D\u8A55\u5420\u5B16\u5E63\u5EE2\u5F0A\u6583\u80BA\u853D\u9589\u965B\u4F48\u5305\u530D\u530F\u5486\u54FA\u5703\u5E03\u6016\u629B\u62B1\u6355\uFA06\u6CE1\u6D66\u75B1\u7832\u80DE\u812F\u82DE\u8461\u84B2\u888D\u8912\u900B\u92EA\u98FD\u9B91\u5E45\u66B4\u66DD\u7011\u7206\uFA07\u4FF5\u527D\u5F6A\u6153\u6753\u6A19\u6F02\u74E2\u7968\u8868\u8C79\u98C7\u98C4\u9A43"],
      ["f9a1", "\u54C1\u7A1F\u6953\u8AF7\u8C4A\u98A8\u99AE\u5F7C\u62AB\u75B2\u76AE\u88AB\u907F\u9642\u5339\u5F3C\u5FC5\u6CCC\u73CC\u7562\u758B\u7B46\u82FE\u999D\u4E4F\u903C\u4E0B\u4F55\u53A6\u590F\u5EC8\u6630\u6CB3\u7455\u8377\u8766\u8CC0\u9050\u971E\u9C15\u58D1\u5B78\u8650\u8B14\u9DB4\u5BD2\u6068\u608D\u65F1\u6C57\u6F22\u6FA3\u701A\u7F55\u7FF0\u9591\u9592\u9650\u97D3\u5272\u8F44\u51FD\u542B\u54B8\u5563\u558A\u6ABB\u6DB5\u7DD8\u8266\u929C\u9677\u9E79\u5408\u54C8\u76D2\u86E4\u95A4\u95D4\u965C\u4EA2\u4F09\u59EE\u5AE6\u5DF7\u6052\u6297\u676D\u6841\u6C86\u6E2F\u7F38\u809B\u822A"],
      ["faa1", "\uFA08\uFA09\u9805\u4EA5\u5055\u54B3\u5793\u595A\u5B69\u5BB3\u61C8\u6977\u6D77\u7023\u87F9\u89E3\u8A72\u8AE7\u9082\u99ED\u9AB8\u52BE\u6838\u5016\u5E78\u674F\u8347\u884C\u4EAB\u5411\u56AE\u73E6\u9115\u97FF\u9909\u9957\u9999\u5653\u589F\u865B\u8A31\u61B2\u6AF6\u737B\u8ED2\u6B47\u96AA\u9A57\u5955\u7200\u8D6B\u9769\u4FD4\u5CF4\u5F26\u61F8\u665B\u6CEB\u70AB\u7384\u73B9\u73FE\u7729\u774D\u7D43\u7D62\u7E23\u8237\u8852\uFA0A\u8CE2\u9249\u986F\u5B51\u7A74\u8840\u9801\u5ACC\u4FE0\u5354\u593E\u5CFD\u633E\u6D79\u72F9\u8105\u8107\u83A2\u92CF\u9830\u4EA8\u5144\u5211\u578B"],
      ["fba1", "\u5F62\u6CC2\u6ECE\u7005\u7050\u70AF\u7192\u73E9\u7469\u834A\u87A2\u8861\u9008\u90A2\u93A3\u99A8\u516E\u5F57\u60E0\u6167\u66B3\u8559\u8E4A\u91AF\u978B\u4E4E\u4E92\u547C\u58D5\u58FA\u597D\u5CB5\u5F27\u6236\u6248\u660A\u6667\u6BEB\u6D69\u6DCF\u6E56\u6EF8\u6F94\u6FE0\u6FE9\u705D\u72D0\u7425\u745A\u74E0\u7693\u795C\u7CCA\u7E1E\u80E1\u82A6\u846B\u84BF\u864E\u865F\u8774\u8B77\u8C6A\u93AC\u9800\u9865\u60D1\u6216\u9177\u5A5A\u660F\u6DF7\u6E3E\u743F\u9B42\u5FFD\u60DA\u7B0F\u54C4\u5F18\u6C5E\u6CD3\u6D2A\u70D8\u7D05\u8679\u8A0C\u9D3B\u5316\u548C\u5B05\u6A3A\u706B\u7575"],
      ["fca1", "\u798D\u79BE\u82B1\u83EF\u8A71\u8B41\u8CA8\u9774\uFA0B\u64F4\u652B\u78BA\u78BB\u7A6B\u4E38\u559A\u5950\u5BA6\u5E7B\u60A3\u63DB\u6B61\u6665\u6853\u6E19\u7165\u74B0\u7D08\u9084\u9A69\u9C25\u6D3B\u6ED1\u733E\u8C41\u95CA\u51F0\u5E4C\u5FA8\u604D\u60F6\u6130\u614C\u6643\u6644\u69A5\u6CC1\u6E5F\u6EC9\u6F62\u714C\u749C\u7687\u7BC1\u7C27\u8352\u8757\u9051\u968D\u9EC3\u532F\u56DE\u5EFB\u5F8A\u6062\u6094\u61F7\u6666\u6703\u6A9C\u6DEE\u6FAE\u7070\u736A\u7E6A\u81BE\u8334\u86D4\u8AA8\u8CC4\u5283\u7372\u5B96\u6A6B\u9404\u54EE\u5686\u5B5D\u6548\u6585\u66C9\u689F\u6D8D\u6DC6"],
      ["fda1", "\u723B\u80B4\u9175\u9A4D\u4FAF\u5019\u539A\u540E\u543C\u5589\u55C5\u5E3F\u5F8C\u673D\u7166\u73DD\u9005\u52DB\u52F3\u5864\u58CE\u7104\u718F\u71FB\u85B0\u8A13\u6688\u85A8\u55A7\u6684\u714A\u8431\u5349\u5599\u6BC1\u5F59\u5FBD\u63EE\u6689\u7147\u8AF1\u8F1D\u9EBE\u4F11\u643A\u70CB\u7566\u8667\u6064\u8B4E\u9DF8\u5147\u51F6\u5308\u6D36\u80F8\u9ED1\u6615\u6B23\u7098\u75D5\u5403\u5C79\u7D07\u8A16\u6B20\u6B3D\u6B46\u5438\u6070\u6D3D\u7FD5\u8208\u50D6\u51DE\u559C\u566B\u56CD\u59EC\u5B09\u5E0C\u6199\u6198\u6231\u665E\u66E6\u7199\u71B9\u71BA\u72A7\u79A7\u7A00\u7FB2\u8A70"]
    ];
  }
});

// node_modules/iconv-lite/encodings/tables/cp950.json
var require_cp950 = __commonJS({
  "node_modules/iconv-lite/encodings/tables/cp950.json"(exports2, module2) {
    module2.exports = [
      ["0", "\0", 127],
      ["a140", "\u3000\uFF0C\u3001\u3002\uFF0E\u2027\uFF1B\uFF1A\uFF1F\uFF01\uFE30\u2026\u2025\uFE50\uFE51\uFE52\xB7\uFE54\uFE55\uFE56\uFE57\uFF5C\u2013\uFE31\u2014\uFE33\u2574\uFE34\uFE4F\uFF08\uFF09\uFE35\uFE36\uFF5B\uFF5D\uFE37\uFE38\u3014\u3015\uFE39\uFE3A\u3010\u3011\uFE3B\uFE3C\u300A\u300B\uFE3D\uFE3E\u3008\u3009\uFE3F\uFE40\u300C\u300D\uFE41\uFE42\u300E\u300F\uFE43\uFE44\uFE59\uFE5A"],
      ["a1a1", "\uFE5B\uFE5C\uFE5D\uFE5E\u2018\u2019\u201C\u201D\u301D\u301E\u2035\u2032\uFF03\uFF06\uFF0A\u203B\xA7\u3003\u25CB\u25CF\u25B3\u25B2\u25CE\u2606\u2605\u25C7\u25C6\u25A1\u25A0\u25BD\u25BC\u32A3\u2105\xAF\uFFE3\uFF3F\u02CD\uFE49\uFE4A\uFE4D\uFE4E\uFE4B\uFE4C\uFE5F\uFE60\uFE61\uFF0B\uFF0D\xD7\xF7\xB1\u221A\uFF1C\uFF1E\uFF1D\u2266\u2267\u2260\u221E\u2252\u2261\uFE62", 4, "\uFF5E\u2229\u222A\u22A5\u2220\u221F\u22BF\u33D2\u33D1\u222B\u222E\u2235\u2234\u2640\u2642\u2295\u2299\u2191\u2193\u2190\u2192\u2196\u2197\u2199\u2198\u2225\u2223\uFF0F"],
      ["a240", "\uFF3C\u2215\uFE68\uFF04\uFFE5\u3012\uFFE0\uFFE1\uFF05\uFF20\u2103\u2109\uFE69\uFE6A\uFE6B\u33D5\u339C\u339D\u339E\u33CE\u33A1\u338E\u338F\u33C4\xB0\u5159\u515B\u515E\u515D\u5161\u5163\u55E7\u74E9\u7CCE\u2581", 7, "\u258F\u258E\u258D\u258C\u258B\u258A\u2589\u253C\u2534\u252C\u2524\u251C\u2594\u2500\u2502\u2595\u250C\u2510\u2514\u2518\u256D"],
      ["a2a1", "\u256E\u2570\u256F\u2550\u255E\u256A\u2561\u25E2\u25E3\u25E5\u25E4\u2571\u2572\u2573\uFF10", 9, "\u2160", 9, "\u3021", 8, "\u5341\u5344\u5345\uFF21", 25, "\uFF41", 21],
      ["a340", "\uFF57\uFF58\uFF59\uFF5A\u0391", 16, "\u03A3", 6, "\u03B1", 16, "\u03C3", 6, "\u3105", 10],
      ["a3a1", "\u3110", 25, "\u02D9\u02C9\u02CA\u02C7\u02CB"],
      ["a3e1", "\u20AC"],
      ["a440", "\u4E00\u4E59\u4E01\u4E03\u4E43\u4E5D\u4E86\u4E8C\u4EBA\u513F\u5165\u516B\u51E0\u5200\u5201\u529B\u5315\u5341\u535C\u53C8\u4E09\u4E0B\u4E08\u4E0A\u4E2B\u4E38\u51E1\u4E45\u4E48\u4E5F\u4E5E\u4E8E\u4EA1\u5140\u5203\u52FA\u5343\u53C9\u53E3\u571F\u58EB\u5915\u5927\u5973\u5B50\u5B51\u5B53\u5BF8\u5C0F\u5C22\u5C38\u5C71\u5DDD\u5DE5\u5DF1\u5DF2\u5DF3\u5DFE\u5E72\u5EFE\u5F0B\u5F13\u624D"],
      ["a4a1", "\u4E11\u4E10\u4E0D\u4E2D\u4E30\u4E39\u4E4B\u5C39\u4E88\u4E91\u4E95\u4E92\u4E94\u4EA2\u4EC1\u4EC0\u4EC3\u4EC6\u4EC7\u4ECD\u4ECA\u4ECB\u4EC4\u5143\u5141\u5167\u516D\u516E\u516C\u5197\u51F6\u5206\u5207\u5208\u52FB\u52FE\u52FF\u5316\u5339\u5348\u5347\u5345\u535E\u5384\u53CB\u53CA\u53CD\u58EC\u5929\u592B\u592A\u592D\u5B54\u5C11\u5C24\u5C3A\u5C6F\u5DF4\u5E7B\u5EFF\u5F14\u5F15\u5FC3\u6208\u6236\u624B\u624E\u652F\u6587\u6597\u65A4\u65B9\u65E5\u66F0\u6708\u6728\u6B20\u6B62\u6B79\u6BCB\u6BD4\u6BDB\u6C0F\u6C34\u706B\u722A\u7236\u723B\u7247\u7259\u725B\u72AC\u738B\u4E19"],
      ["a540", "\u4E16\u4E15\u4E14\u4E18\u4E3B\u4E4D\u4E4F\u4E4E\u4EE5\u4ED8\u4ED4\u4ED5\u4ED6\u4ED7\u4EE3\u4EE4\u4ED9\u4EDE\u5145\u5144\u5189\u518A\u51AC\u51F9\u51FA\u51F8\u520A\u52A0\u529F\u5305\u5306\u5317\u531D\u4EDF\u534A\u5349\u5361\u5360\u536F\u536E\u53BB\u53EF\u53E4\u53F3\u53EC\u53EE\u53E9\u53E8\u53FC\u53F8\u53F5\u53EB\u53E6\u53EA\u53F2\u53F1\u53F0\u53E5\u53ED\u53FB\u56DB\u56DA\u5916"],
      ["a5a1", "\u592E\u5931\u5974\u5976\u5B55\u5B83\u5C3C\u5DE8\u5DE7\u5DE6\u5E02\u5E03\u5E73\u5E7C\u5F01\u5F18\u5F17\u5FC5\u620A\u6253\u6254\u6252\u6251\u65A5\u65E6\u672E\u672C\u672A\u672B\u672D\u6B63\u6BCD\u6C11\u6C10\u6C38\u6C41\u6C40\u6C3E\u72AF\u7384\u7389\u74DC\u74E6\u7518\u751F\u7528\u7529\u7530\u7531\u7532\u7533\u758B\u767D\u76AE\u76BF\u76EE\u77DB\u77E2\u77F3\u793A\u79BE\u7A74\u7ACB\u4E1E\u4E1F\u4E52\u4E53\u4E69\u4E99\u4EA4\u4EA6\u4EA5\u4EFF\u4F09\u4F19\u4F0A\u4F15\u4F0D\u4F10\u4F11\u4F0F\u4EF2\u4EF6\u4EFB\u4EF0\u4EF3\u4EFD\u4F01\u4F0B\u5149\u5147\u5146\u5148\u5168"],
      ["a640", "\u5171\u518D\u51B0\u5217\u5211\u5212\u520E\u5216\u52A3\u5308\u5321\u5320\u5370\u5371\u5409\u540F\u540C\u540A\u5410\u5401\u540B\u5404\u5411\u540D\u5408\u5403\u540E\u5406\u5412\u56E0\u56DE\u56DD\u5733\u5730\u5728\u572D\u572C\u572F\u5729\u5919\u591A\u5937\u5938\u5984\u5978\u5983\u597D\u5979\u5982\u5981\u5B57\u5B58\u5B87\u5B88\u5B85\u5B89\u5BFA\u5C16\u5C79\u5DDE\u5E06\u5E76\u5E74"],
      ["a6a1", "\u5F0F\u5F1B\u5FD9\u5FD6\u620E\u620C\u620D\u6210\u6263\u625B\u6258\u6536\u65E9\u65E8\u65EC\u65ED\u66F2\u66F3\u6709\u673D\u6734\u6731\u6735\u6B21\u6B64\u6B7B\u6C16\u6C5D\u6C57\u6C59\u6C5F\u6C60\u6C50\u6C55\u6C61\u6C5B\u6C4D\u6C4E\u7070\u725F\u725D\u767E\u7AF9\u7C73\u7CF8\u7F36\u7F8A\u7FBD\u8001\u8003\u800C\u8012\u8033\u807F\u8089\u808B\u808C\u81E3\u81EA\u81F3\u81FC\u820C\u821B\u821F\u826E\u8272\u827E\u866B\u8840\u884C\u8863\u897F\u9621\u4E32\u4EA8\u4F4D\u4F4F\u4F47\u4F57\u4F5E\u4F34\u4F5B\u4F55\u4F30\u4F50\u4F51\u4F3D\u4F3A\u4F38\u4F43\u4F54\u4F3C\u4F46\u4F63"],
      ["a740", "\u4F5C\u4F60\u4F2F\u4F4E\u4F36\u4F59\u4F5D\u4F48\u4F5A\u514C\u514B\u514D\u5175\u51B6\u51B7\u5225\u5224\u5229\u522A\u5228\u52AB\u52A9\u52AA\u52AC\u5323\u5373\u5375\u541D\u542D\u541E\u543E\u5426\u544E\u5427\u5446\u5443\u5433\u5448\u5442\u541B\u5429\u544A\u5439\u543B\u5438\u542E\u5435\u5436\u5420\u543C\u5440\u5431\u542B\u541F\u542C\u56EA\u56F0\u56E4\u56EB\u574A\u5751\u5740\u574D"],
      ["a7a1", "\u5747\u574E\u573E\u5750\u574F\u573B\u58EF\u593E\u599D\u5992\u59A8\u599E\u59A3\u5999\u5996\u598D\u59A4\u5993\u598A\u59A5\u5B5D\u5B5C\u5B5A\u5B5B\u5B8C\u5B8B\u5B8F\u5C2C\u5C40\u5C41\u5C3F\u5C3E\u5C90\u5C91\u5C94\u5C8C\u5DEB\u5E0C\u5E8F\u5E87\u5E8A\u5EF7\u5F04\u5F1F\u5F64\u5F62\u5F77\u5F79\u5FD8\u5FCC\u5FD7\u5FCD\u5FF1\u5FEB\u5FF8\u5FEA\u6212\u6211\u6284\u6297\u6296\u6280\u6276\u6289\u626D\u628A\u627C\u627E\u6279\u6273\u6292\u626F\u6298\u626E\u6295\u6293\u6291\u6286\u6539\u653B\u6538\u65F1\u66F4\u675F\u674E\u674F\u6750\u6751\u675C\u6756\u675E\u6749\u6746\u6760"],
      ["a840", "\u6753\u6757\u6B65\u6BCF\u6C42\u6C5E\u6C99\u6C81\u6C88\u6C89\u6C85\u6C9B\u6C6A\u6C7A\u6C90\u6C70\u6C8C\u6C68\u6C96\u6C92\u6C7D\u6C83\u6C72\u6C7E\u6C74\u6C86\u6C76\u6C8D\u6C94\u6C98\u6C82\u7076\u707C\u707D\u7078\u7262\u7261\u7260\u72C4\u72C2\u7396\u752C\u752B\u7537\u7538\u7682\u76EF\u77E3\u79C1\u79C0\u79BF\u7A76\u7CFB\u7F55\u8096\u8093\u809D\u8098\u809B\u809A\u80B2\u826F\u8292"],
      ["a8a1", "\u828B\u828D\u898B\u89D2\u8A00\u8C37\u8C46\u8C55\u8C9D\u8D64\u8D70\u8DB3\u8EAB\u8ECA\u8F9B\u8FB0\u8FC2\u8FC6\u8FC5\u8FC4\u5DE1\u9091\u90A2\u90AA\u90A6\u90A3\u9149\u91C6\u91CC\u9632\u962E\u9631\u962A\u962C\u4E26\u4E56\u4E73\u4E8B\u4E9B\u4E9E\u4EAB\u4EAC\u4F6F\u4F9D\u4F8D\u4F73\u4F7F\u4F6C\u4F9B\u4F8B\u4F86\u4F83\u4F70\u4F75\u4F88\u4F69\u4F7B\u4F96\u4F7E\u4F8F\u4F91\u4F7A\u5154\u5152\u5155\u5169\u5177\u5176\u5178\u51BD\u51FD\u523B\u5238\u5237\u523A\u5230\u522E\u5236\u5241\u52BE\u52BB\u5352\u5354\u5353\u5351\u5366\u5377\u5378\u5379\u53D6\u53D4\u53D7\u5473\u5475"],
      ["a940", "\u5496\u5478\u5495\u5480\u547B\u5477\u5484\u5492\u5486\u547C\u5490\u5471\u5476\u548C\u549A\u5462\u5468\u548B\u547D\u548E\u56FA\u5783\u5777\u576A\u5769\u5761\u5766\u5764\u577C\u591C\u5949\u5947\u5948\u5944\u5954\u59BE\u59BB\u59D4\u59B9\u59AE\u59D1\u59C6\u59D0\u59CD\u59CB\u59D3\u59CA\u59AF\u59B3\u59D2\u59C5\u5B5F\u5B64\u5B63\u5B97\u5B9A\u5B98\u5B9C\u5B99\u5B9B\u5C1A\u5C48\u5C45"],
      ["a9a1", "\u5C46\u5CB7\u5CA1\u5CB8\u5CA9\u5CAB\u5CB1\u5CB3\u5E18\u5E1A\u5E16\u5E15\u5E1B\u5E11\u5E78\u5E9A\u5E97\u5E9C\u5E95\u5E96\u5EF6\u5F26\u5F27\u5F29\u5F80\u5F81\u5F7F\u5F7C\u5FDD\u5FE0\u5FFD\u5FF5\u5FFF\u600F\u6014\u602F\u6035\u6016\u602A\u6015\u6021\u6027\u6029\u602B\u601B\u6216\u6215\u623F\u623E\u6240\u627F\u62C9\u62CC\u62C4\u62BF\u62C2\u62B9\u62D2\u62DB\u62AB\u62D3\u62D4\u62CB\u62C8\u62A8\u62BD\u62BC\u62D0\u62D9\u62C7\u62CD\u62B5\u62DA\u62B1\u62D8\u62D6\u62D7\u62C6\u62AC\u62CE\u653E\u65A7\u65BC\u65FA\u6614\u6613\u660C\u6606\u6602\u660E\u6600\u660F\u6615\u660A"],
      ["aa40", "\u6607\u670D\u670B\u676D\u678B\u6795\u6771\u679C\u6773\u6777\u6787\u679D\u6797\u676F\u6770\u677F\u6789\u677E\u6790\u6775\u679A\u6793\u677C\u676A\u6772\u6B23\u6B66\u6B67\u6B7F\u6C13\u6C1B\u6CE3\u6CE8\u6CF3\u6CB1\u6CCC\u6CE5\u6CB3\u6CBD\u6CBE\u6CBC\u6CE2\u6CAB\u6CD5\u6CD3\u6CB8\u6CC4\u6CB9\u6CC1\u6CAE\u6CD7\u6CC5\u6CF1\u6CBF\u6CBB\u6CE1\u6CDB\u6CCA\u6CAC\u6CEF\u6CDC\u6CD6\u6CE0"],
      ["aaa1", "\u7095\u708E\u7092\u708A\u7099\u722C\u722D\u7238\u7248\u7267\u7269\u72C0\u72CE\u72D9\u72D7\u72D0\u73A9\u73A8\u739F\u73AB\u73A5\u753D\u759D\u7599\u759A\u7684\u76C2\u76F2\u76F4\u77E5\u77FD\u793E\u7940\u7941\u79C9\u79C8\u7A7A\u7A79\u7AFA\u7CFE\u7F54\u7F8C\u7F8B\u8005\u80BA\u80A5\u80A2\u80B1\u80A1\u80AB\u80A9\u80B4\u80AA\u80AF\u81E5\u81FE\u820D\u82B3\u829D\u8299\u82AD\u82BD\u829F\u82B9\u82B1\u82AC\u82A5\u82AF\u82B8\u82A3\u82B0\u82BE\u82B7\u864E\u8671\u521D\u8868\u8ECB\u8FCE\u8FD4\u8FD1\u90B5\u90B8\u90B1\u90B6\u91C7\u91D1\u9577\u9580\u961C\u9640\u963F\u963B\u9644"],
      ["ab40", "\u9642\u96B9\u96E8\u9752\u975E\u4E9F\u4EAD\u4EAE\u4FE1\u4FB5\u4FAF\u4FBF\u4FE0\u4FD1\u4FCF\u4FDD\u4FC3\u4FB6\u4FD8\u4FDF\u4FCA\u4FD7\u4FAE\u4FD0\u4FC4\u4FC2\u4FDA\u4FCE\u4FDE\u4FB7\u5157\u5192\u5191\u51A0\u524E\u5243\u524A\u524D\u524C\u524B\u5247\u52C7\u52C9\u52C3\u52C1\u530D\u5357\u537B\u539A\u53DB\u54AC\u54C0\u54A8\u54CE\u54C9\u54B8\u54A6\u54B3\u54C7\u54C2\u54BD\u54AA\u54C1"],
      ["aba1", "\u54C4\u54C8\u54AF\u54AB\u54B1\u54BB\u54A9\u54A7\u54BF\u56FF\u5782\u578B\u57A0\u57A3\u57A2\u57CE\u57AE\u5793\u5955\u5951\u594F\u594E\u5950\u59DC\u59D8\u59FF\u59E3\u59E8\u5A03\u59E5\u59EA\u59DA\u59E6\u5A01\u59FB\u5B69\u5BA3\u5BA6\u5BA4\u5BA2\u5BA5\u5C01\u5C4E\u5C4F\u5C4D\u5C4B\u5CD9\u5CD2\u5DF7\u5E1D\u5E25\u5E1F\u5E7D\u5EA0\u5EA6\u5EFA\u5F08\u5F2D\u5F65\u5F88\u5F85\u5F8A\u5F8B\u5F87\u5F8C\u5F89\u6012\u601D\u6020\u6025\u600E\u6028\u604D\u6070\u6068\u6062\u6046\u6043\u606C\u606B\u606A\u6064\u6241\u62DC\u6316\u6309\u62FC\u62ED\u6301\u62EE\u62FD\u6307\u62F1\u62F7"],
      ["ac40", "\u62EF\u62EC\u62FE\u62F4\u6311\u6302\u653F\u6545\u65AB\u65BD\u65E2\u6625\u662D\u6620\u6627\u662F\u661F\u6628\u6631\u6624\u66F7\u67FF\u67D3\u67F1\u67D4\u67D0\u67EC\u67B6\u67AF\u67F5\u67E9\u67EF\u67C4\u67D1\u67B4\u67DA\u67E5\u67B8\u67CF\u67DE\u67F3\u67B0\u67D9\u67E2\u67DD\u67D2\u6B6A\u6B83\u6B86\u6BB5\u6BD2\u6BD7\u6C1F\u6CC9\u6D0B\u6D32\u6D2A\u6D41\u6D25\u6D0C\u6D31\u6D1E\u6D17"],
      ["aca1", "\u6D3B\u6D3D\u6D3E\u6D36\u6D1B\u6CF5\u6D39\u6D27\u6D38\u6D29\u6D2E\u6D35\u6D0E\u6D2B\u70AB\u70BA\u70B3\u70AC\u70AF\u70AD\u70B8\u70AE\u70A4\u7230\u7272\u726F\u7274\u72E9\u72E0\u72E1\u73B7\u73CA\u73BB\u73B2\u73CD\u73C0\u73B3\u751A\u752D\u754F\u754C\u754E\u754B\u75AB\u75A4\u75A5\u75A2\u75A3\u7678\u7686\u7687\u7688\u76C8\u76C6\u76C3\u76C5\u7701\u76F9\u76F8\u7709\u770B\u76FE\u76FC\u7707\u77DC\u7802\u7814\u780C\u780D\u7946\u7949\u7948\u7947\u79B9\u79BA\u79D1\u79D2\u79CB\u7A7F\u7A81\u7AFF\u7AFD\u7C7D\u7D02\u7D05\u7D00\u7D09\u7D07\u7D04\u7D06\u7F38\u7F8E\u7FBF\u8004"],
      ["ad40", "\u8010\u800D\u8011\u8036\u80D6\u80E5\u80DA\u80C3\u80C4\u80CC\u80E1\u80DB\u80CE\u80DE\u80E4\u80DD\u81F4\u8222\u82E7\u8303\u8305\u82E3\u82DB\u82E6\u8304\u82E5\u8302\u8309\u82D2\u82D7\u82F1\u8301\u82DC\u82D4\u82D1\u82DE\u82D3\u82DF\u82EF\u8306\u8650\u8679\u867B\u867A\u884D\u886B\u8981\u89D4\u8A08\u8A02\u8A03\u8C9E\u8CA0\u8D74\u8D73\u8DB4\u8ECD\u8ECC\u8FF0\u8FE6\u8FE2\u8FEA\u8FE5"],
      ["ada1", "\u8FED\u8FEB\u8FE4\u8FE8\u90CA\u90CE\u90C1\u90C3\u914B\u914A\u91CD\u9582\u9650\u964B\u964C\u964D\u9762\u9769\u97CB\u97ED\u97F3\u9801\u98A8\u98DB\u98DF\u9996\u9999\u4E58\u4EB3\u500C\u500D\u5023\u4FEF\u5026\u5025\u4FF8\u5029\u5016\u5006\u503C\u501F\u501A\u5012\u5011\u4FFA\u5000\u5014\u5028\u4FF1\u5021\u500B\u5019\u5018\u4FF3\u4FEE\u502D\u502A\u4FFE\u502B\u5009\u517C\u51A4\u51A5\u51A2\u51CD\u51CC\u51C6\u51CB\u5256\u525C\u5254\u525B\u525D\u532A\u537F\u539F\u539D\u53DF\u54E8\u5510\u5501\u5537\u54FC\u54E5\u54F2\u5506\u54FA\u5514\u54E9\u54ED\u54E1\u5509\u54EE\u54EA"],
      ["ae40", "\u54E6\u5527\u5507\u54FD\u550F\u5703\u5704\u57C2\u57D4\u57CB\u57C3\u5809\u590F\u5957\u5958\u595A\u5A11\u5A18\u5A1C\u5A1F\u5A1B\u5A13\u59EC\u5A20\u5A23\u5A29\u5A25\u5A0C\u5A09\u5B6B\u5C58\u5BB0\u5BB3\u5BB6\u5BB4\u5BAE\u5BB5\u5BB9\u5BB8\u5C04\u5C51\u5C55\u5C50\u5CED\u5CFD\u5CFB\u5CEA\u5CE8\u5CF0\u5CF6\u5D01\u5CF4\u5DEE\u5E2D\u5E2B\u5EAB\u5EAD\u5EA7\u5F31\u5F92\u5F91\u5F90\u6059"],
      ["aea1", "\u6063\u6065\u6050\u6055\u606D\u6069\u606F\u6084\u609F\u609A\u608D\u6094\u608C\u6085\u6096\u6247\u62F3\u6308\u62FF\u634E\u633E\u632F\u6355\u6342\u6346\u634F\u6349\u633A\u6350\u633D\u632A\u632B\u6328\u634D\u634C\u6548\u6549\u6599\u65C1\u65C5\u6642\u6649\u664F\u6643\u6652\u664C\u6645\u6641\u66F8\u6714\u6715\u6717\u6821\u6838\u6848\u6846\u6853\u6839\u6842\u6854\u6829\u68B3\u6817\u684C\u6851\u683D\u67F4\u6850\u6840\u683C\u6843\u682A\u6845\u6813\u6818\u6841\u6B8A\u6B89\u6BB7\u6C23\u6C27\u6C28\u6C26\u6C24\u6CF0\u6D6A\u6D95\u6D88\u6D87\u6D66\u6D78\u6D77\u6D59\u6D93"],
      ["af40", "\u6D6C\u6D89\u6D6E\u6D5A\u6D74\u6D69\u6D8C\u6D8A\u6D79\u6D85\u6D65\u6D94\u70CA\u70D8\u70E4\u70D9\u70C8\u70CF\u7239\u7279\u72FC\u72F9\u72FD\u72F8\u72F7\u7386\u73ED\u7409\u73EE\u73E0\u73EA\u73DE\u7554\u755D\u755C\u755A\u7559\u75BE\u75C5\u75C7\u75B2\u75B3\u75BD\u75BC\u75B9\u75C2\u75B8\u768B\u76B0\u76CA\u76CD\u76CE\u7729\u771F\u7720\u7728\u77E9\u7830\u7827\u7838\u781D\u7834\u7837"],
      ["afa1", "\u7825\u782D\u7820\u781F\u7832\u7955\u7950\u7960\u795F\u7956\u795E\u795D\u7957\u795A\u79E4\u79E3\u79E7\u79DF\u79E6\u79E9\u79D8\u7A84\u7A88\u7AD9\u7B06\u7B11\u7C89\u7D21\u7D17\u7D0B\u7D0A\u7D20\u7D22\u7D14\u7D10\u7D15\u7D1A\u7D1C\u7D0D\u7D19\u7D1B\u7F3A\u7F5F\u7F94\u7FC5\u7FC1\u8006\u8018\u8015\u8019\u8017\u803D\u803F\u80F1\u8102\u80F0\u8105\u80ED\u80F4\u8106\u80F8\u80F3\u8108\u80FD\u810A\u80FC\u80EF\u81ED\u81EC\u8200\u8210\u822A\u822B\u8228\u822C\u82BB\u832B\u8352\u8354\u834A\u8338\u8350\u8349\u8335\u8334\u834F\u8332\u8339\u8336\u8317\u8340\u8331\u8328\u8343"],
      ["b040", "\u8654\u868A\u86AA\u8693\u86A4\u86A9\u868C\u86A3\u869C\u8870\u8877\u8881\u8882\u887D\u8879\u8A18\u8A10\u8A0E\u8A0C\u8A15\u8A0A\u8A17\u8A13\u8A16\u8A0F\u8A11\u8C48\u8C7A\u8C79\u8CA1\u8CA2\u8D77\u8EAC\u8ED2\u8ED4\u8ECF\u8FB1\u9001\u9006\u8FF7\u9000\u8FFA\u8FF4\u9003\u8FFD\u9005\u8FF8\u9095\u90E1\u90DD\u90E2\u9152\u914D\u914C\u91D8\u91DD\u91D7\u91DC\u91D9\u9583\u9662\u9663\u9661"],
      ["b0a1", "\u965B\u965D\u9664\u9658\u965E\u96BB\u98E2\u99AC\u9AA8\u9AD8\u9B25\u9B32\u9B3C\u4E7E\u507A\u507D\u505C\u5047\u5043\u504C\u505A\u5049\u5065\u5076\u504E\u5055\u5075\u5074\u5077\u504F\u500F\u506F\u506D\u515C\u5195\u51F0\u526A\u526F\u52D2\u52D9\u52D8\u52D5\u5310\u530F\u5319\u533F\u5340\u533E\u53C3\u66FC\u5546\u556A\u5566\u5544\u555E\u5561\u5543\u554A\u5531\u5556\u554F\u5555\u552F\u5564\u5538\u552E\u555C\u552C\u5563\u5533\u5541\u5557\u5708\u570B\u5709\u57DF\u5805\u580A\u5806\u57E0\u57E4\u57FA\u5802\u5835\u57F7\u57F9\u5920\u5962\u5A36\u5A41\u5A49\u5A66\u5A6A\u5A40"],
      ["b140", "\u5A3C\u5A62\u5A5A\u5A46\u5A4A\u5B70\u5BC7\u5BC5\u5BC4\u5BC2\u5BBF\u5BC6\u5C09\u5C08\u5C07\u5C60\u5C5C\u5C5D\u5D07\u5D06\u5D0E\u5D1B\u5D16\u5D22\u5D11\u5D29\u5D14\u5D19\u5D24\u5D27\u5D17\u5DE2\u5E38\u5E36\u5E33\u5E37\u5EB7\u5EB8\u5EB6\u5EB5\u5EBE\u5F35\u5F37\u5F57\u5F6C\u5F69\u5F6B\u5F97\u5F99\u5F9E\u5F98\u5FA1\u5FA0\u5F9C\u607F\u60A3\u6089\u60A0\u60A8\u60CB\u60B4\u60E6\u60BD"],
      ["b1a1", "\u60C5\u60BB\u60B5\u60DC\u60BC\u60D8\u60D5\u60C6\u60DF\u60B8\u60DA\u60C7\u621A\u621B\u6248\u63A0\u63A7\u6372\u6396\u63A2\u63A5\u6377\u6367\u6398\u63AA\u6371\u63A9\u6389\u6383\u639B\u636B\u63A8\u6384\u6388\u6399\u63A1\u63AC\u6392\u638F\u6380\u637B\u6369\u6368\u637A\u655D\u6556\u6551\u6559\u6557\u555F\u654F\u6558\u6555\u6554\u659C\u659B\u65AC\u65CF\u65CB\u65CC\u65CE\u665D\u665A\u6664\u6668\u6666\u665E\u66F9\u52D7\u671B\u6881\u68AF\u68A2\u6893\u68B5\u687F\u6876\u68B1\u68A7\u6897\u68B0\u6883\u68C4\u68AD\u6886\u6885\u6894\u689D\u68A8\u689F\u68A1\u6882\u6B32\u6BBA"],
      ["b240", "\u6BEB\u6BEC\u6C2B\u6D8E\u6DBC\u6DF3\u6DD9\u6DB2\u6DE1\u6DCC\u6DE4\u6DFB\u6DFA\u6E05\u6DC7\u6DCB\u6DAF\u6DD1\u6DAE\u6DDE\u6DF9\u6DB8\u6DF7\u6DF5\u6DC5\u6DD2\u6E1A\u6DB5\u6DDA\u6DEB\u6DD8\u6DEA\u6DF1\u6DEE\u6DE8\u6DC6\u6DC4\u6DAA\u6DEC\u6DBF\u6DE6\u70F9\u7109\u710A\u70FD\u70EF\u723D\u727D\u7281\u731C\u731B\u7316\u7313\u7319\u7387\u7405\u740A\u7403\u7406\u73FE\u740D\u74E0\u74F6"],
      ["b2a1", "\u74F7\u751C\u7522\u7565\u7566\u7562\u7570\u758F\u75D4\u75D5\u75B5\u75CA\u75CD\u768E\u76D4\u76D2\u76DB\u7737\u773E\u773C\u7736\u7738\u773A\u786B\u7843\u784E\u7965\u7968\u796D\u79FB\u7A92\u7A95\u7B20\u7B28\u7B1B\u7B2C\u7B26\u7B19\u7B1E\u7B2E\u7C92\u7C97\u7C95\u7D46\u7D43\u7D71\u7D2E\u7D39\u7D3C\u7D40\u7D30\u7D33\u7D44\u7D2F\u7D42\u7D32\u7D31\u7F3D\u7F9E\u7F9A\u7FCC\u7FCE\u7FD2\u801C\u804A\u8046\u812F\u8116\u8123\u812B\u8129\u8130\u8124\u8202\u8235\u8237\u8236\u8239\u838E\u839E\u8398\u8378\u83A2\u8396\u83BD\u83AB\u8392\u838A\u8393\u8389\u83A0\u8377\u837B\u837C"],
      ["b340", "\u8386\u83A7\u8655\u5F6A\u86C7\u86C0\u86B6\u86C4\u86B5\u86C6\u86CB\u86B1\u86AF\u86C9\u8853\u889E\u8888\u88AB\u8892\u8896\u888D\u888B\u8993\u898F\u8A2A\u8A1D\u8A23\u8A25\u8A31\u8A2D\u8A1F\u8A1B\u8A22\u8C49\u8C5A\u8CA9\u8CAC\u8CAB\u8CA8\u8CAA\u8CA7\u8D67\u8D66\u8DBE\u8DBA\u8EDB\u8EDF\u9019\u900D\u901A\u9017\u9023\u901F\u901D\u9010\u9015\u901E\u9020\u900F\u9022\u9016\u901B\u9014"],
      ["b3a1", "\u90E8\u90ED\u90FD\u9157\u91CE\u91F5\u91E6\u91E3\u91E7\u91ED\u91E9\u9589\u966A\u9675\u9673\u9678\u9670\u9674\u9676\u9677\u966C\u96C0\u96EA\u96E9\u7AE0\u7ADF\u9802\u9803\u9B5A\u9CE5\u9E75\u9E7F\u9EA5\u9EBB\u50A2\u508D\u5085\u5099\u5091\u5080\u5096\u5098\u509A\u6700\u51F1\u5272\u5274\u5275\u5269\u52DE\u52DD\u52DB\u535A\u53A5\u557B\u5580\u55A7\u557C\u558A\u559D\u5598\u5582\u559C\u55AA\u5594\u5587\u558B\u5583\u55B3\u55AE\u559F\u553E\u55B2\u559A\u55BB\u55AC\u55B1\u557E\u5589\u55AB\u5599\u570D\u582F\u582A\u5834\u5824\u5830\u5831\u5821\u581D\u5820\u58F9\u58FA\u5960"],
      ["b440", "\u5A77\u5A9A\u5A7F\u5A92\u5A9B\u5AA7\u5B73\u5B71\u5BD2\u5BCC\u5BD3\u5BD0\u5C0A\u5C0B\u5C31\u5D4C\u5D50\u5D34\u5D47\u5DFD\u5E45\u5E3D\u5E40\u5E43\u5E7E\u5ECA\u5EC1\u5EC2\u5EC4\u5F3C\u5F6D\u5FA9\u5FAA\u5FA8\u60D1\u60E1\u60B2\u60B6\u60E0\u611C\u6123\u60FA\u6115\u60F0\u60FB\u60F4\u6168\u60F1\u610E\u60F6\u6109\u6100\u6112\u621F\u6249\u63A3\u638C\u63CF\u63C0\u63E9\u63C9\u63C6\u63CD"],
      ["b4a1", "\u63D2\u63E3\u63D0\u63E1\u63D6\u63ED\u63EE\u6376\u63F4\u63EA\u63DB\u6452\u63DA\u63F9\u655E\u6566\u6562\u6563\u6591\u6590\u65AF\u666E\u6670\u6674\u6676\u666F\u6691\u667A\u667E\u6677\u66FE\u66FF\u671F\u671D\u68FA\u68D5\u68E0\u68D8\u68D7\u6905\u68DF\u68F5\u68EE\u68E7\u68F9\u68D2\u68F2\u68E3\u68CB\u68CD\u690D\u6912\u690E\u68C9\u68DA\u696E\u68FB\u6B3E\u6B3A\u6B3D\u6B98\u6B96\u6BBC\u6BEF\u6C2E\u6C2F\u6C2C\u6E2F\u6E38\u6E54\u6E21\u6E32\u6E67\u6E4A\u6E20\u6E25\u6E23\u6E1B\u6E5B\u6E58\u6E24\u6E56\u6E6E\u6E2D\u6E26\u6E6F\u6E34\u6E4D\u6E3A\u6E2C\u6E43\u6E1D\u6E3E\u6ECB"],
      ["b540", "\u6E89\u6E19\u6E4E\u6E63\u6E44\u6E72\u6E69\u6E5F\u7119\u711A\u7126\u7130\u7121\u7136\u716E\u711C\u724C\u7284\u7280\u7336\u7325\u7334\u7329\u743A\u742A\u7433\u7422\u7425\u7435\u7436\u7434\u742F\u741B\u7426\u7428\u7525\u7526\u756B\u756A\u75E2\u75DB\u75E3\u75D9\u75D8\u75DE\u75E0\u767B\u767C\u7696\u7693\u76B4\u76DC\u774F\u77ED\u785D\u786C\u786F\u7A0D\u7A08\u7A0B\u7A05\u7A00\u7A98"],
      ["b5a1", "\u7A97\u7A96\u7AE5\u7AE3\u7B49\u7B56\u7B46\u7B50\u7B52\u7B54\u7B4D\u7B4B\u7B4F\u7B51\u7C9F\u7CA5\u7D5E\u7D50\u7D68\u7D55\u7D2B\u7D6E\u7D72\u7D61\u7D66\u7D62\u7D70\u7D73\u5584\u7FD4\u7FD5\u800B\u8052\u8085\u8155\u8154\u814B\u8151\u814E\u8139\u8146\u813E\u814C\u8153\u8174\u8212\u821C\u83E9\u8403\u83F8\u840D\u83E0\u83C5\u840B\u83C1\u83EF\u83F1\u83F4\u8457\u840A\u83F0\u840C\u83CC\u83FD\u83F2\u83CA\u8438\u840E\u8404\u83DC\u8407\u83D4\u83DF\u865B\u86DF\u86D9\u86ED\u86D4\u86DB\u86E4\u86D0\u86DE\u8857\u88C1\u88C2\u88B1\u8983\u8996\u8A3B\u8A60\u8A55\u8A5E\u8A3C\u8A41"],
      ["b640", "\u8A54\u8A5B\u8A50\u8A46\u8A34\u8A3A\u8A36\u8A56\u8C61\u8C82\u8CAF\u8CBC\u8CB3\u8CBD\u8CC1\u8CBB\u8CC0\u8CB4\u8CB7\u8CB6\u8CBF\u8CB8\u8D8A\u8D85\u8D81\u8DCE\u8DDD\u8DCB\u8DDA\u8DD1\u8DCC\u8DDB\u8DC6\u8EFB\u8EF8\u8EFC\u8F9C\u902E\u9035\u9031\u9038\u9032\u9036\u9102\u90F5\u9109\u90FE\u9163\u9165\u91CF\u9214\u9215\u9223\u9209\u921E\u920D\u9210\u9207\u9211\u9594\u958F\u958B\u9591"],
      ["b6a1", "\u9593\u9592\u958E\u968A\u968E\u968B\u967D\u9685\u9686\u968D\u9672\u9684\u96C1\u96C5\u96C4\u96C6\u96C7\u96EF\u96F2\u97CC\u9805\u9806\u9808\u98E7\u98EA\u98EF\u98E9\u98F2\u98ED\u99AE\u99AD\u9EC3\u9ECD\u9ED1\u4E82\u50AD\u50B5\u50B2\u50B3\u50C5\u50BE\u50AC\u50B7\u50BB\u50AF\u50C7\u527F\u5277\u527D\u52DF\u52E6\u52E4\u52E2\u52E3\u532F\u55DF\u55E8\u55D3\u55E6\u55CE\u55DC\u55C7\u55D1\u55E3\u55E4\u55EF\u55DA\u55E1\u55C5\u55C6\u55E5\u55C9\u5712\u5713\u585E\u5851\u5858\u5857\u585A\u5854\u586B\u584C\u586D\u584A\u5862\u5852\u584B\u5967\u5AC1\u5AC9\u5ACC\u5ABE\u5ABD\u5ABC"],
      ["b740", "\u5AB3\u5AC2\u5AB2\u5D69\u5D6F\u5E4C\u5E79\u5EC9\u5EC8\u5F12\u5F59\u5FAC\u5FAE\u611A\u610F\u6148\u611F\u60F3\u611B\u60F9\u6101\u6108\u614E\u614C\u6144\u614D\u613E\u6134\u6127\u610D\u6106\u6137\u6221\u6222\u6413\u643E\u641E\u642A\u642D\u643D\u642C\u640F\u641C\u6414\u640D\u6436\u6416\u6417\u6406\u656C\u659F\u65B0\u6697\u6689\u6687\u6688\u6696\u6684\u6698\u668D\u6703\u6994\u696D"],
      ["b7a1", "\u695A\u6977\u6960\u6954\u6975\u6930\u6982\u694A\u6968\u696B\u695E\u6953\u6979\u6986\u695D\u6963\u695B\u6B47\u6B72\u6BC0\u6BBF\u6BD3\u6BFD\u6EA2\u6EAF\u6ED3\u6EB6\u6EC2\u6E90\u6E9D\u6EC7\u6EC5\u6EA5\u6E98\u6EBC\u6EBA\u6EAB\u6ED1\u6E96\u6E9C\u6EC4\u6ED4\u6EAA\u6EA7\u6EB4\u714E\u7159\u7169\u7164\u7149\u7167\u715C\u716C\u7166\u714C\u7165\u715E\u7146\u7168\u7156\u723A\u7252\u7337\u7345\u733F\u733E\u746F\u745A\u7455\u745F\u745E\u7441\u743F\u7459\u745B\u745C\u7576\u7578\u7600\u75F0\u7601\u75F2\u75F1\u75FA\u75FF\u75F4\u75F3\u76DE\u76DF\u775B\u776B\u7766\u775E\u7763"],
      ["b840", "\u7779\u776A\u776C\u775C\u7765\u7768\u7762\u77EE\u788E\u78B0\u7897\u7898\u788C\u7889\u787C\u7891\u7893\u787F\u797A\u797F\u7981\u842C\u79BD\u7A1C\u7A1A\u7A20\u7A14\u7A1F\u7A1E\u7A9F\u7AA0\u7B77\u7BC0\u7B60\u7B6E\u7B67\u7CB1\u7CB3\u7CB5\u7D93\u7D79\u7D91\u7D81\u7D8F\u7D5B\u7F6E\u7F69\u7F6A\u7F72\u7FA9\u7FA8\u7FA4\u8056\u8058\u8086\u8084\u8171\u8170\u8178\u8165\u816E\u8173\u816B"],
      ["b8a1", "\u8179\u817A\u8166\u8205\u8247\u8482\u8477\u843D\u8431\u8475\u8466\u846B\u8449\u846C\u845B\u843C\u8435\u8461\u8463\u8469\u846D\u8446\u865E\u865C\u865F\u86F9\u8713\u8708\u8707\u8700\u86FE\u86FB\u8702\u8703\u8706\u870A\u8859\u88DF\u88D4\u88D9\u88DC\u88D8\u88DD\u88E1\u88CA\u88D5\u88D2\u899C\u89E3\u8A6B\u8A72\u8A73\u8A66\u8A69\u8A70\u8A87\u8A7C\u8A63\u8AA0\u8A71\u8A85\u8A6D\u8A62\u8A6E\u8A6C\u8A79\u8A7B\u8A3E\u8A68\u8C62\u8C8A\u8C89\u8CCA\u8CC7\u8CC8\u8CC4\u8CB2\u8CC3\u8CC2\u8CC5\u8DE1\u8DDF\u8DE8\u8DEF\u8DF3\u8DFA\u8DEA\u8DE4\u8DE6\u8EB2\u8F03\u8F09\u8EFE\u8F0A"],
      ["b940", "\u8F9F\u8FB2\u904B\u904A\u9053\u9042\u9054\u903C\u9055\u9050\u9047\u904F\u904E\u904D\u9051\u903E\u9041\u9112\u9117\u916C\u916A\u9169\u91C9\u9237\u9257\u9238\u923D\u9240\u923E\u925B\u924B\u9264\u9251\u9234\u9249\u924D\u9245\u9239\u923F\u925A\u9598\u9698\u9694\u9695\u96CD\u96CB\u96C9\u96CA\u96F7\u96FB\u96F9\u96F6\u9756\u9774\u9776\u9810\u9811\u9813\u980A\u9812\u980C\u98FC\u98F4"],
      ["b9a1", "\u98FD\u98FE\u99B3\u99B1\u99B4\u9AE1\u9CE9\u9E82\u9F0E\u9F13\u9F20\u50E7\u50EE\u50E5\u50D6\u50ED\u50DA\u50D5\u50CF\u50D1\u50F1\u50CE\u50E9\u5162\u51F3\u5283\u5282\u5331\u53AD\u55FE\u5600\u561B\u5617\u55FD\u5614\u5606\u5609\u560D\u560E\u55F7\u5616\u561F\u5608\u5610\u55F6\u5718\u5716\u5875\u587E\u5883\u5893\u588A\u5879\u5885\u587D\u58FD\u5925\u5922\u5924\u596A\u5969\u5AE1\u5AE6\u5AE9\u5AD7\u5AD6\u5AD8\u5AE3\u5B75\u5BDE\u5BE7\u5BE1\u5BE5\u5BE6\u5BE8\u5BE2\u5BE4\u5BDF\u5C0D\u5C62\u5D84\u5D87\u5E5B\u5E63\u5E55\u5E57\u5E54\u5ED3\u5ED6\u5F0A\u5F46\u5F70\u5FB9\u6147"],
      ["ba40", "\u613F\u614B\u6177\u6162\u6163\u615F\u615A\u6158\u6175\u622A\u6487\u6458\u6454\u64A4\u6478\u645F\u647A\u6451\u6467\u6434\u646D\u647B\u6572\u65A1\u65D7\u65D6\u66A2\u66A8\u669D\u699C\u69A8\u6995\u69C1\u69AE\u69D3\u69CB\u699B\u69B7\u69BB\u69AB\u69B4\u69D0\u69CD\u69AD\u69CC\u69A6\u69C3\u69A3\u6B49\u6B4C\u6C33\u6F33\u6F14\u6EFE\u6F13\u6EF4\u6F29\u6F3E\u6F20\u6F2C\u6F0F\u6F02\u6F22"],
      ["baa1", "\u6EFF\u6EEF\u6F06\u6F31\u6F38\u6F32\u6F23\u6F15\u6F2B\u6F2F\u6F88\u6F2A\u6EEC\u6F01\u6EF2\u6ECC\u6EF7\u7194\u7199\u717D\u718A\u7184\u7192\u723E\u7292\u7296\u7344\u7350\u7464\u7463\u746A\u7470\u746D\u7504\u7591\u7627\u760D\u760B\u7609\u7613\u76E1\u76E3\u7784\u777D\u777F\u7761\u78C1\u789F\u78A7\u78B3\u78A9\u78A3\u798E\u798F\u798D\u7A2E\u7A31\u7AAA\u7AA9\u7AED\u7AEF\u7BA1\u7B95\u7B8B\u7B75\u7B97\u7B9D\u7B94\u7B8F\u7BB8\u7B87\u7B84\u7CB9\u7CBD\u7CBE\u7DBB\u7DB0\u7D9C\u7DBD\u7DBE\u7DA0\u7DCA\u7DB4\u7DB2\u7DB1\u7DBA\u7DA2\u7DBF\u7DB5\u7DB8\u7DAD\u7DD2\u7DC7\u7DAC"],
      ["bb40", "\u7F70\u7FE0\u7FE1\u7FDF\u805E\u805A\u8087\u8150\u8180\u818F\u8188\u818A\u817F\u8182\u81E7\u81FA\u8207\u8214\u821E\u824B\u84C9\u84BF\u84C6\u84C4\u8499\u849E\u84B2\u849C\u84CB\u84B8\u84C0\u84D3\u8490\u84BC\u84D1\u84CA\u873F\u871C\u873B\u8722\u8725\u8734\u8718\u8755\u8737\u8729\u88F3\u8902\u88F4\u88F9\u88F8\u88FD\u88E8\u891A\u88EF\u8AA6\u8A8C\u8A9E\u8AA3\u8A8D\u8AA1\u8A93\u8AA4"],
      ["bba1", "\u8AAA\u8AA5\u8AA8\u8A98\u8A91\u8A9A\u8AA7\u8C6A\u8C8D\u8C8C\u8CD3\u8CD1\u8CD2\u8D6B\u8D99\u8D95\u8DFC\u8F14\u8F12\u8F15\u8F13\u8FA3\u9060\u9058\u905C\u9063\u9059\u905E\u9062\u905D\u905B\u9119\u9118\u911E\u9175\u9178\u9177\u9174\u9278\u9280\u9285\u9298\u9296\u927B\u9293\u929C\u92A8\u927C\u9291\u95A1\u95A8\u95A9\u95A3\u95A5\u95A4\u9699\u969C\u969B\u96CC\u96D2\u9700\u977C\u9785\u97F6\u9817\u9818\u98AF\u98B1\u9903\u9905\u990C\u9909\u99C1\u9AAF\u9AB0\u9AE6\u9B41\u9B42\u9CF4\u9CF6\u9CF3\u9EBC\u9F3B\u9F4A\u5104\u5100\u50FB\u50F5\u50F9\u5102\u5108\u5109\u5105\u51DC"],
      ["bc40", "\u5287\u5288\u5289\u528D\u528A\u52F0\u53B2\u562E\u563B\u5639\u5632\u563F\u5634\u5629\u5653\u564E\u5657\u5674\u5636\u562F\u5630\u5880\u589F\u589E\u58B3\u589C\u58AE\u58A9\u58A6\u596D\u5B09\u5AFB\u5B0B\u5AF5\u5B0C\u5B08\u5BEE\u5BEC\u5BE9\u5BEB\u5C64\u5C65\u5D9D\u5D94\u5E62\u5E5F\u5E61\u5EE2\u5EDA\u5EDF\u5EDD\u5EE3\u5EE0\u5F48\u5F71\u5FB7\u5FB5\u6176\u6167\u616E\u615D\u6155\u6182"],
      ["bca1", "\u617C\u6170\u616B\u617E\u61A7\u6190\u61AB\u618E\u61AC\u619A\u61A4\u6194\u61AE\u622E\u6469\u646F\u6479\u649E\u64B2\u6488\u6490\u64B0\u64A5\u6493\u6495\u64A9\u6492\u64AE\u64AD\u64AB\u649A\u64AC\u6499\u64A2\u64B3\u6575\u6577\u6578\u66AE\u66AB\u66B4\u66B1\u6A23\u6A1F\u69E8\u6A01\u6A1E\u6A19\u69FD\u6A21\u6A13\u6A0A\u69F3\u6A02\u6A05\u69ED\u6A11\u6B50\u6B4E\u6BA4\u6BC5\u6BC6\u6F3F\u6F7C\u6F84\u6F51\u6F66\u6F54\u6F86\u6F6D\u6F5B\u6F78\u6F6E\u6F8E\u6F7A\u6F70\u6F64\u6F97\u6F58\u6ED5\u6F6F\u6F60\u6F5F\u719F\u71AC\u71B1\u71A8\u7256\u729B\u734E\u7357\u7469\u748B\u7483"],
      ["bd40", "\u747E\u7480\u757F\u7620\u7629\u761F\u7624\u7626\u7621\u7622\u769A\u76BA\u76E4\u778E\u7787\u778C\u7791\u778B\u78CB\u78C5\u78BA\u78CA\u78BE\u78D5\u78BC\u78D0\u7A3F\u7A3C\u7A40\u7A3D\u7A37\u7A3B\u7AAF\u7AAE\u7BAD\u7BB1\u7BC4\u7BB4\u7BC6\u7BC7\u7BC1\u7BA0\u7BCC\u7CCA\u7DE0\u7DF4\u7DEF\u7DFB\u7DD8\u7DEC\u7DDD\u7DE8\u7DE3\u7DDA\u7DDE\u7DE9\u7D9E\u7DD9\u7DF2\u7DF9\u7F75\u7F77\u7FAF"],
      ["bda1", "\u7FE9\u8026\u819B\u819C\u819D\u81A0\u819A\u8198\u8517\u853D\u851A\u84EE\u852C\u852D\u8513\u8511\u8523\u8521\u8514\u84EC\u8525\u84FF\u8506\u8782\u8774\u8776\u8760\u8766\u8778\u8768\u8759\u8757\u874C\u8753\u885B\u885D\u8910\u8907\u8912\u8913\u8915\u890A\u8ABC\u8AD2\u8AC7\u8AC4\u8A95\u8ACB\u8AF8\u8AB2\u8AC9\u8AC2\u8ABF\u8AB0\u8AD6\u8ACD\u8AB6\u8AB9\u8ADB\u8C4C\u8C4E\u8C6C\u8CE0\u8CDE\u8CE6\u8CE4\u8CEC\u8CED\u8CE2\u8CE3\u8CDC\u8CEA\u8CE1\u8D6D\u8D9F\u8DA3\u8E2B\u8E10\u8E1D\u8E22\u8E0F\u8E29\u8E1F\u8E21\u8E1E\u8EBA\u8F1D\u8F1B\u8F1F\u8F29\u8F26\u8F2A\u8F1C\u8F1E"],
      ["be40", "\u8F25\u9069\u906E\u9068\u906D\u9077\u9130\u912D\u9127\u9131\u9187\u9189\u918B\u9183\u92C5\u92BB\u92B7\u92EA\u92AC\u92E4\u92C1\u92B3\u92BC\u92D2\u92C7\u92F0\u92B2\u95AD\u95B1\u9704\u9706\u9707\u9709\u9760\u978D\u978B\u978F\u9821\u982B\u981C\u98B3\u990A\u9913\u9912\u9918\u99DD\u99D0\u99DF\u99DB\u99D1\u99D5\u99D2\u99D9\u9AB7\u9AEE\u9AEF\u9B27\u9B45\u9B44\u9B77\u9B6F\u9D06\u9D09"],
      ["bea1", "\u9D03\u9EA9\u9EBE\u9ECE\u58A8\u9F52\u5112\u5118\u5114\u5110\u5115\u5180\u51AA\u51DD\u5291\u5293\u52F3\u5659\u566B\u5679\u5669\u5664\u5678\u566A\u5668\u5665\u5671\u566F\u566C\u5662\u5676\u58C1\u58BE\u58C7\u58C5\u596E\u5B1D\u5B34\u5B78\u5BF0\u5C0E\u5F4A\u61B2\u6191\u61A9\u618A\u61CD\u61B6\u61BE\u61CA\u61C8\u6230\u64C5\u64C1\u64CB\u64BB\u64BC\u64DA\u64C4\u64C7\u64C2\u64CD\u64BF\u64D2\u64D4\u64BE\u6574\u66C6\u66C9\u66B9\u66C4\u66C7\u66B8\u6A3D\u6A38\u6A3A\u6A59\u6A6B\u6A58\u6A39\u6A44\u6A62\u6A61\u6A4B\u6A47\u6A35\u6A5F\u6A48\u6B59\u6B77\u6C05\u6FC2\u6FB1\u6FA1"],
      ["bf40", "\u6FC3\u6FA4\u6FC1\u6FA7\u6FB3\u6FC0\u6FB9\u6FB6\u6FA6\u6FA0\u6FB4\u71BE\u71C9\u71D0\u71D2\u71C8\u71D5\u71B9\u71CE\u71D9\u71DC\u71C3\u71C4\u7368\u749C\u74A3\u7498\u749F\u749E\u74E2\u750C\u750D\u7634\u7638\u763A\u76E7\u76E5\u77A0\u779E\u779F\u77A5\u78E8\u78DA\u78EC\u78E7\u79A6\u7A4D\u7A4E\u7A46\u7A4C\u7A4B\u7ABA\u7BD9\u7C11\u7BC9\u7BE4\u7BDB\u7BE1\u7BE9\u7BE6\u7CD5\u7CD6\u7E0A"],
      ["bfa1", "\u7E11\u7E08\u7E1B\u7E23\u7E1E\u7E1D\u7E09\u7E10\u7F79\u7FB2\u7FF0\u7FF1\u7FEE\u8028\u81B3\u81A9\u81A8\u81FB\u8208\u8258\u8259\u854A\u8559\u8548\u8568\u8569\u8543\u8549\u856D\u856A\u855E\u8783\u879F\u879E\u87A2\u878D\u8861\u892A\u8932\u8925\u892B\u8921\u89AA\u89A6\u8AE6\u8AFA\u8AEB\u8AF1\u8B00\u8ADC\u8AE7\u8AEE\u8AFE\u8B01\u8B02\u8AF7\u8AED\u8AF3\u8AF6\u8AFC\u8C6B\u8C6D\u8C93\u8CF4\u8E44\u8E31\u8E34\u8E42\u8E39\u8E35\u8F3B\u8F2F\u8F38\u8F33\u8FA8\u8FA6\u9075\u9074\u9078\u9072\u907C\u907A\u9134\u9192\u9320\u9336\u92F8\u9333\u932F\u9322\u92FC\u932B\u9304\u931A"],
      ["c040", "\u9310\u9326\u9321\u9315\u932E\u9319\u95BB\u96A7\u96A8\u96AA\u96D5\u970E\u9711\u9716\u970D\u9713\u970F\u975B\u975C\u9766\u9798\u9830\u9838\u983B\u9837\u982D\u9839\u9824\u9910\u9928\u991E\u991B\u9921\u991A\u99ED\u99E2\u99F1\u9AB8\u9ABC\u9AFB\u9AED\u9B28\u9B91\u9D15\u9D23\u9D26\u9D28\u9D12\u9D1B\u9ED8\u9ED4\u9F8D\u9F9C\u512A\u511F\u5121\u5132\u52F5\u568E\u5680\u5690\u5685\u5687"],
      ["c0a1", "\u568F\u58D5\u58D3\u58D1\u58CE\u5B30\u5B2A\u5B24\u5B7A\u5C37\u5C68\u5DBC\u5DBA\u5DBD\u5DB8\u5E6B\u5F4C\u5FBD\u61C9\u61C2\u61C7\u61E6\u61CB\u6232\u6234\u64CE\u64CA\u64D8\u64E0\u64F0\u64E6\u64EC\u64F1\u64E2\u64ED\u6582\u6583\u66D9\u66D6\u6A80\u6A94\u6A84\u6AA2\u6A9C\u6ADB\u6AA3\u6A7E\u6A97\u6A90\u6AA0\u6B5C\u6BAE\u6BDA\u6C08\u6FD8\u6FF1\u6FDF\u6FE0\u6FDB\u6FE4\u6FEB\u6FEF\u6F80\u6FEC\u6FE1\u6FE9\u6FD5\u6FEE\u6FF0\u71E7\u71DF\u71EE\u71E6\u71E5\u71ED\u71EC\u71F4\u71E0\u7235\u7246\u7370\u7372\u74A9\u74B0\u74A6\u74A8\u7646\u7642\u764C\u76EA\u77B3\u77AA\u77B0\u77AC"],
      ["c140", "\u77A7\u77AD\u77EF\u78F7\u78FA\u78F4\u78EF\u7901\u79A7\u79AA\u7A57\u7ABF\u7C07\u7C0D\u7BFE\u7BF7\u7C0C\u7BE0\u7CE0\u7CDC\u7CDE\u7CE2\u7CDF\u7CD9\u7CDD\u7E2E\u7E3E\u7E46\u7E37\u7E32\u7E43\u7E2B\u7E3D\u7E31\u7E45\u7E41\u7E34\u7E39\u7E48\u7E35\u7E3F\u7E2F\u7F44\u7FF3\u7FFC\u8071\u8072\u8070\u806F\u8073\u81C6\u81C3\u81BA\u81C2\u81C0\u81BF\u81BD\u81C9\u81BE\u81E8\u8209\u8271\u85AA"],
      ["c1a1", "\u8584\u857E\u859C\u8591\u8594\u85AF\u859B\u8587\u85A8\u858A\u8667\u87C0\u87D1\u87B3\u87D2\u87C6\u87AB\u87BB\u87BA\u87C8\u87CB\u893B\u8936\u8944\u8938\u893D\u89AC\u8B0E\u8B17\u8B19\u8B1B\u8B0A\u8B20\u8B1D\u8B04\u8B10\u8C41\u8C3F\u8C73\u8CFA\u8CFD\u8CFC\u8CF8\u8CFB\u8DA8\u8E49\u8E4B\u8E48\u8E4A\u8F44\u8F3E\u8F42\u8F45\u8F3F\u907F\u907D\u9084\u9081\u9082\u9080\u9139\u91A3\u919E\u919C\u934D\u9382\u9328\u9375\u934A\u9365\u934B\u9318\u937E\u936C\u935B\u9370\u935A\u9354\u95CA\u95CB\u95CC\u95C8\u95C6\u96B1\u96B8\u96D6\u971C\u971E\u97A0\u97D3\u9846\u98B6\u9935\u9A01"],
      ["c240", "\u99FF\u9BAE\u9BAB\u9BAA\u9BAD\u9D3B\u9D3F\u9E8B\u9ECF\u9EDE\u9EDC\u9EDD\u9EDB\u9F3E\u9F4B\u53E2\u5695\u56AE\u58D9\u58D8\u5B38\u5F5D\u61E3\u6233\u64F4\u64F2\u64FE\u6506\u64FA\u64FB\u64F7\u65B7\u66DC\u6726\u6AB3\u6AAC\u6AC3\u6ABB\u6AB8\u6AC2\u6AAE\u6AAF\u6B5F\u6B78\u6BAF\u7009\u700B\u6FFE\u7006\u6FFA\u7011\u700F\u71FB\u71FC\u71FE\u71F8\u7377\u7375\u74A7\u74BF\u7515\u7656\u7658"],
      ["c2a1", "\u7652\u77BD\u77BF\u77BB\u77BC\u790E\u79AE\u7A61\u7A62\u7A60\u7AC4\u7AC5\u7C2B\u7C27\u7C2A\u7C1E\u7C23\u7C21\u7CE7\u7E54\u7E55\u7E5E\u7E5A\u7E61\u7E52\u7E59\u7F48\u7FF9\u7FFB\u8077\u8076\u81CD\u81CF\u820A\u85CF\u85A9\u85CD\u85D0\u85C9\u85B0\u85BA\u85B9\u85A6\u87EF\u87EC\u87F2\u87E0\u8986\u89B2\u89F4\u8B28\u8B39\u8B2C\u8B2B\u8C50\u8D05\u8E59\u8E63\u8E66\u8E64\u8E5F\u8E55\u8EC0\u8F49\u8F4D\u9087\u9083\u9088\u91AB\u91AC\u91D0\u9394\u938A\u9396\u93A2\u93B3\u93AE\u93AC\u93B0\u9398\u939A\u9397\u95D4\u95D6\u95D0\u95D5\u96E2\u96DC\u96D9\u96DB\u96DE\u9724\u97A3\u97A6"],
      ["c340", "\u97AD\u97F9\u984D\u984F\u984C\u984E\u9853\u98BA\u993E\u993F\u993D\u992E\u99A5\u9A0E\u9AC1\u9B03\u9B06\u9B4F\u9B4E\u9B4D\u9BCA\u9BC9\u9BFD\u9BC8\u9BC0\u9D51\u9D5D\u9D60\u9EE0\u9F15\u9F2C\u5133\u56A5\u58DE\u58DF\u58E2\u5BF5\u9F90\u5EEC\u61F2\u61F7\u61F6\u61F5\u6500\u650F\u66E0\u66DD\u6AE5\u6ADD\u6ADA\u6AD3\u701B\u701F\u7028\u701A\u701D\u7015\u7018\u7206\u720D\u7258\u72A2\u7378"],
      ["c3a1", "\u737A\u74BD\u74CA\u74E3\u7587\u7586\u765F\u7661\u77C7\u7919\u79B1\u7A6B\u7A69\u7C3E\u7C3F\u7C38\u7C3D\u7C37\u7C40\u7E6B\u7E6D\u7E79\u7E69\u7E6A\u7F85\u7E73\u7FB6\u7FB9\u7FB8\u81D8\u85E9\u85DD\u85EA\u85D5\u85E4\u85E5\u85F7\u87FB\u8805\u880D\u87F9\u87FE\u8960\u895F\u8956\u895E\u8B41\u8B5C\u8B58\u8B49\u8B5A\u8B4E\u8B4F\u8B46\u8B59\u8D08\u8D0A\u8E7C\u8E72\u8E87\u8E76\u8E6C\u8E7A\u8E74\u8F54\u8F4E\u8FAD\u908A\u908B\u91B1\u91AE\u93E1\u93D1\u93DF\u93C3\u93C8\u93DC\u93DD\u93D6\u93E2\u93CD\u93D8\u93E4\u93D7\u93E8\u95DC\u96B4\u96E3\u972A\u9727\u9761\u97DC\u97FB\u985E"],
      ["c440", "\u9858\u985B\u98BC\u9945\u9949\u9A16\u9A19\u9B0D\u9BE8\u9BE7\u9BD6\u9BDB\u9D89\u9D61\u9D72\u9D6A\u9D6C\u9E92\u9E97\u9E93\u9EB4\u52F8\u56A8\u56B7\u56B6\u56B4\u56BC\u58E4\u5B40\u5B43\u5B7D\u5BF6\u5DC9\u61F8\u61FA\u6518\u6514\u6519\u66E6\u6727\u6AEC\u703E\u7030\u7032\u7210\u737B\u74CF\u7662\u7665\u7926\u792A\u792C\u792B\u7AC7\u7AF6\u7C4C\u7C43\u7C4D\u7CEF\u7CF0\u8FAE\u7E7D\u7E7C"],
      ["c4a1", "\u7E82\u7F4C\u8000\u81DA\u8266\u85FB\u85F9\u8611\u85FA\u8606\u860B\u8607\u860A\u8814\u8815\u8964\u89BA\u89F8\u8B70\u8B6C\u8B66\u8B6F\u8B5F\u8B6B\u8D0F\u8D0D\u8E89\u8E81\u8E85\u8E82\u91B4\u91CB\u9418\u9403\u93FD\u95E1\u9730\u98C4\u9952\u9951\u99A8\u9A2B\u9A30\u9A37\u9A35\u9C13\u9C0D\u9E79\u9EB5\u9EE8\u9F2F\u9F5F\u9F63\u9F61\u5137\u5138\u56C1\u56C0\u56C2\u5914\u5C6C\u5DCD\u61FC\u61FE\u651D\u651C\u6595\u66E9\u6AFB\u6B04\u6AFA\u6BB2\u704C\u721B\u72A7\u74D6\u74D4\u7669\u77D3\u7C50\u7E8F\u7E8C\u7FBC\u8617\u862D\u861A\u8823\u8822\u8821\u881F\u896A\u896C\u89BD\u8B74"],
      ["c540", "\u8B77\u8B7D\u8D13\u8E8A\u8E8D\u8E8B\u8F5F\u8FAF\u91BA\u942E\u9433\u9435\u943A\u9438\u9432\u942B\u95E2\u9738\u9739\u9732\u97FF\u9867\u9865\u9957\u9A45\u9A43\u9A40\u9A3E\u9ACF\u9B54\u9B51\u9C2D\u9C25\u9DAF\u9DB4\u9DC2\u9DB8\u9E9D\u9EEF\u9F19\u9F5C\u9F66\u9F67\u513C\u513B\u56C8\u56CA\u56C9\u5B7F\u5DD4\u5DD2\u5F4E\u61FF\u6524\u6B0A\u6B61\u7051\u7058\u7380\u74E4\u758A\u766E\u766C"],
      ["c5a1", "\u79B3\u7C60\u7C5F\u807E\u807D\u81DF\u8972\u896F\u89FC\u8B80\u8D16\u8D17\u8E91\u8E93\u8F61\u9148\u9444\u9451\u9452\u973D\u973E\u97C3\u97C1\u986B\u9955\u9A55\u9A4D\u9AD2\u9B1A\u9C49\u9C31\u9C3E\u9C3B\u9DD3\u9DD7\u9F34\u9F6C\u9F6A\u9F94\u56CC\u5DD6\u6200\u6523\u652B\u652A\u66EC\u6B10\u74DA\u7ACA\u7C64\u7C63\u7C65\u7E93\u7E96\u7E94\u81E2\u8638\u863F\u8831\u8B8A\u9090\u908F\u9463\u9460\u9464\u9768\u986F\u995C\u9A5A\u9A5B\u9A57\u9AD3\u9AD4\u9AD1\u9C54\u9C57\u9C56\u9DE5\u9E9F\u9EF4\u56D1\u58E9\u652C\u705E\u7671\u7672\u77D7\u7F50\u7F88\u8836\u8839\u8862\u8B93\u8B92"],
      ["c640", "\u8B96\u8277\u8D1B\u91C0\u946A\u9742\u9748\u9744\u97C6\u9870\u9A5F\u9B22\u9B58\u9C5F\u9DF9\u9DFA\u9E7C\u9E7D\u9F07\u9F77\u9F72\u5EF3\u6B16\u7063\u7C6C\u7C6E\u883B\u89C0\u8EA1\u91C1\u9472\u9470\u9871\u995E\u9AD6\u9B23\u9ECC\u7064\u77DA\u8B9A\u9477\u97C9\u9A62\u9A65\u7E9C\u8B9C\u8EAA\u91C5\u947D\u947E\u947C\u9C77\u9C78\u9EF7\u8C54\u947F\u9E1A\u7228\u9A6A\u9B31\u9E1B\u9E1E\u7C72"],
      ["c940", "\u4E42\u4E5C\u51F5\u531A\u5382\u4E07\u4E0C\u4E47\u4E8D\u56D7\uFA0C\u5C6E\u5F73\u4E0F\u5187\u4E0E\u4E2E\u4E93\u4EC2\u4EC9\u4EC8\u5198\u52FC\u536C\u53B9\u5720\u5903\u592C\u5C10\u5DFF\u65E1\u6BB3\u6BCC\u6C14\u723F\u4E31\u4E3C\u4EE8\u4EDC\u4EE9\u4EE1\u4EDD\u4EDA\u520C\u531C\u534C\u5722\u5723\u5917\u592F\u5B81\u5B84\u5C12\u5C3B\u5C74\u5C73\u5E04\u5E80\u5E82\u5FC9\u6209\u6250\u6C15"],
      ["c9a1", "\u6C36\u6C43\u6C3F\u6C3B\u72AE\u72B0\u738A\u79B8\u808A\u961E\u4F0E\u4F18\u4F2C\u4EF5\u4F14\u4EF1\u4F00\u4EF7\u4F08\u4F1D\u4F02\u4F05\u4F22\u4F13\u4F04\u4EF4\u4F12\u51B1\u5213\u5209\u5210\u52A6\u5322\u531F\u534D\u538A\u5407\u56E1\u56DF\u572E\u572A\u5734\u593C\u5980\u597C\u5985\u597B\u597E\u5977\u597F\u5B56\u5C15\u5C25\u5C7C\u5C7A\u5C7B\u5C7E\u5DDF\u5E75\u5E84\u5F02\u5F1A\u5F74\u5FD5\u5FD4\u5FCF\u625C\u625E\u6264\u6261\u6266\u6262\u6259\u6260\u625A\u6265\u65EF\u65EE\u673E\u6739\u6738\u673B\u673A\u673F\u673C\u6733\u6C18\u6C46\u6C52\u6C5C\u6C4F\u6C4A\u6C54\u6C4B"],
      ["ca40", "\u6C4C\u7071\u725E\u72B4\u72B5\u738E\u752A\u767F\u7A75\u7F51\u8278\u827C\u8280\u827D\u827F\u864D\u897E\u9099\u9097\u9098\u909B\u9094\u9622\u9624\u9620\u9623\u4F56\u4F3B\u4F62\u4F49\u4F53\u4F64\u4F3E\u4F67\u4F52\u4F5F\u4F41\u4F58\u4F2D\u4F33\u4F3F\u4F61\u518F\u51B9\u521C\u521E\u5221\u52AD\u52AE\u5309\u5363\u5372\u538E\u538F\u5430\u5437\u542A\u5454\u5445\u5419\u541C\u5425\u5418"],
      ["caa1", "\u543D\u544F\u5441\u5428\u5424\u5447\u56EE\u56E7\u56E5\u5741\u5745\u574C\u5749\u574B\u5752\u5906\u5940\u59A6\u5998\u59A0\u5997\u598E\u59A2\u5990\u598F\u59A7\u59A1\u5B8E\u5B92\u5C28\u5C2A\u5C8D\u5C8F\u5C88\u5C8B\u5C89\u5C92\u5C8A\u5C86\u5C93\u5C95\u5DE0\u5E0A\u5E0E\u5E8B\u5E89\u5E8C\u5E88\u5E8D\u5F05\u5F1D\u5F78\u5F76\u5FD2\u5FD1\u5FD0\u5FED\u5FE8\u5FEE\u5FF3\u5FE1\u5FE4\u5FE3\u5FFA\u5FEF\u5FF7\u5FFB\u6000\u5FF4\u623A\u6283\u628C\u628E\u628F\u6294\u6287\u6271\u627B\u627A\u6270\u6281\u6288\u6277\u627D\u6272\u6274\u6537\u65F0\u65F4\u65F3\u65F2\u65F5\u6745\u6747"],
      ["cb40", "\u6759\u6755\u674C\u6748\u675D\u674D\u675A\u674B\u6BD0\u6C19\u6C1A\u6C78\u6C67\u6C6B\u6C84\u6C8B\u6C8F\u6C71\u6C6F\u6C69\u6C9A\u6C6D\u6C87\u6C95\u6C9C\u6C66\u6C73\u6C65\u6C7B\u6C8E\u7074\u707A\u7263\u72BF\u72BD\u72C3\u72C6\u72C1\u72BA\u72C5\u7395\u7397\u7393\u7394\u7392\u753A\u7539\u7594\u7595\u7681\u793D\u8034\u8095\u8099\u8090\u8092\u809C\u8290\u828F\u8285\u828E\u8291\u8293"],
      ["cba1", "\u828A\u8283\u8284\u8C78\u8FC9\u8FBF\u909F\u90A1\u90A5\u909E\u90A7\u90A0\u9630\u9628\u962F\u962D\u4E33\u4F98\u4F7C\u4F85\u4F7D\u4F80\u4F87\u4F76\u4F74\u4F89\u4F84\u4F77\u4F4C\u4F97\u4F6A\u4F9A\u4F79\u4F81\u4F78\u4F90\u4F9C\u4F94\u4F9E\u4F92\u4F82\u4F95\u4F6B\u4F6E\u519E\u51BC\u51BE\u5235\u5232\u5233\u5246\u5231\u52BC\u530A\u530B\u533C\u5392\u5394\u5487\u547F\u5481\u5491\u5482\u5488\u546B\u547A\u547E\u5465\u546C\u5474\u5466\u548D\u546F\u5461\u5460\u5498\u5463\u5467\u5464\u56F7\u56F9\u576F\u5772\u576D\u576B\u5771\u5770\u5776\u5780\u5775\u577B\u5773\u5774\u5762"],
      ["cc40", "\u5768\u577D\u590C\u5945\u59B5\u59BA\u59CF\u59CE\u59B2\u59CC\u59C1\u59B6\u59BC\u59C3\u59D6\u59B1\u59BD\u59C0\u59C8\u59B4\u59C7\u5B62\u5B65\u5B93\u5B95\u5C44\u5C47\u5CAE\u5CA4\u5CA0\u5CB5\u5CAF\u5CA8\u5CAC\u5C9F\u5CA3\u5CAD\u5CA2\u5CAA\u5CA7\u5C9D\u5CA5\u5CB6\u5CB0\u5CA6\u5E17\u5E14\u5E19\u5F28\u5F22\u5F23\u5F24\u5F54\u5F82\u5F7E\u5F7D\u5FDE\u5FE5\u602D\u6026\u6019\u6032\u600B"],
      ["cca1", "\u6034\u600A\u6017\u6033\u601A\u601E\u602C\u6022\u600D\u6010\u602E\u6013\u6011\u600C\u6009\u601C\u6214\u623D\u62AD\u62B4\u62D1\u62BE\u62AA\u62B6\u62CA\u62AE\u62B3\u62AF\u62BB\u62A9\u62B0\u62B8\u653D\u65A8\u65BB\u6609\u65FC\u6604\u6612\u6608\u65FB\u6603\u660B\u660D\u6605\u65FD\u6611\u6610\u66F6\u670A\u6785\u676C\u678E\u6792\u6776\u677B\u6798\u6786\u6784\u6774\u678D\u678C\u677A\u679F\u6791\u6799\u6783\u677D\u6781\u6778\u6779\u6794\u6B25\u6B80\u6B7E\u6BDE\u6C1D\u6C93\u6CEC\u6CEB\u6CEE\u6CD9\u6CB6\u6CD4\u6CAD\u6CE7\u6CB7\u6CD0\u6CC2\u6CBA\u6CC3\u6CC6\u6CED\u6CF2"],
      ["cd40", "\u6CD2\u6CDD\u6CB4\u6C8A\u6C9D\u6C80\u6CDE\u6CC0\u6D30\u6CCD\u6CC7\u6CB0\u6CF9\u6CCF\u6CE9\u6CD1\u7094\u7098\u7085\u7093\u7086\u7084\u7091\u7096\u7082\u709A\u7083\u726A\u72D6\u72CB\u72D8\u72C9\u72DC\u72D2\u72D4\u72DA\u72CC\u72D1\u73A4\u73A1\u73AD\u73A6\u73A2\u73A0\u73AC\u739D\u74DD\u74E8\u753F\u7540\u753E\u758C\u7598\u76AF\u76F3\u76F1\u76F0\u76F5\u77F8\u77FC\u77F9\u77FB\u77FA"],
      ["cda1", "\u77F7\u7942\u793F\u79C5\u7A78\u7A7B\u7AFB\u7C75\u7CFD\u8035\u808F\u80AE\u80A3\u80B8\u80B5\u80AD\u8220\u82A0\u82C0\u82AB\u829A\u8298\u829B\u82B5\u82A7\u82AE\u82BC\u829E\u82BA\u82B4\u82A8\u82A1\u82A9\u82C2\u82A4\u82C3\u82B6\u82A2\u8670\u866F\u866D\u866E\u8C56\u8FD2\u8FCB\u8FD3\u8FCD\u8FD6\u8FD5\u8FD7\u90B2\u90B4\u90AF\u90B3\u90B0\u9639\u963D\u963C\u963A\u9643\u4FCD\u4FC5\u4FD3\u4FB2\u4FC9\u4FCB\u4FC1\u4FD4\u4FDC\u4FD9\u4FBB\u4FB3\u4FDB\u4FC7\u4FD6\u4FBA\u4FC0\u4FB9\u4FEC\u5244\u5249\u52C0\u52C2\u533D\u537C\u5397\u5396\u5399\u5398\u54BA\u54A1\u54AD\u54A5\u54CF"],
      ["ce40", "\u54C3\u830D\u54B7\u54AE\u54D6\u54B6\u54C5\u54C6\u54A0\u5470\u54BC\u54A2\u54BE\u5472\u54DE\u54B0\u57B5\u579E\u579F\u57A4\u578C\u5797\u579D\u579B\u5794\u5798\u578F\u5799\u57A5\u579A\u5795\u58F4\u590D\u5953\u59E1\u59DE\u59EE\u5A00\u59F1\u59DD\u59FA\u59FD\u59FC\u59F6\u59E4\u59F2\u59F7\u59DB\u59E9\u59F3\u59F5\u59E0\u59FE\u59F4\u59ED\u5BA8\u5C4C\u5CD0\u5CD8\u5CCC\u5CD7\u5CCB\u5CDB"],
      ["cea1", "\u5CDE\u5CDA\u5CC9\u5CC7\u5CCA\u5CD6\u5CD3\u5CD4\u5CCF\u5CC8\u5CC6\u5CCE\u5CDF\u5CF8\u5DF9\u5E21\u5E22\u5E23\u5E20\u5E24\u5EB0\u5EA4\u5EA2\u5E9B\u5EA3\u5EA5\u5F07\u5F2E\u5F56\u5F86\u6037\u6039\u6054\u6072\u605E\u6045\u6053\u6047\u6049\u605B\u604C\u6040\u6042\u605F\u6024\u6044\u6058\u6066\u606E\u6242\u6243\u62CF\u630D\u630B\u62F5\u630E\u6303\u62EB\u62F9\u630F\u630C\u62F8\u62F6\u6300\u6313\u6314\u62FA\u6315\u62FB\u62F0\u6541\u6543\u65AA\u65BF\u6636\u6621\u6632\u6635\u661C\u6626\u6622\u6633\u662B\u663A\u661D\u6634\u6639\u662E\u670F\u6710\u67C1\u67F2\u67C8\u67BA"],
      ["cf40", "\u67DC\u67BB\u67F8\u67D8\u67C0\u67B7\u67C5\u67EB\u67E4\u67DF\u67B5\u67CD\u67B3\u67F7\u67F6\u67EE\u67E3\u67C2\u67B9\u67CE\u67E7\u67F0\u67B2\u67FC\u67C6\u67ED\u67CC\u67AE\u67E6\u67DB\u67FA\u67C9\u67CA\u67C3\u67EA\u67CB\u6B28\u6B82\u6B84\u6BB6\u6BD6\u6BD8\u6BE0\u6C20\u6C21\u6D28\u6D34\u6D2D\u6D1F\u6D3C\u6D3F\u6D12\u6D0A\u6CDA\u6D33\u6D04\u6D19\u6D3A\u6D1A\u6D11\u6D00\u6D1D\u6D42"],
      ["cfa1", "\u6D01\u6D18\u6D37\u6D03\u6D0F\u6D40\u6D07\u6D20\u6D2C\u6D08\u6D22\u6D09\u6D10\u70B7\u709F\u70BE\u70B1\u70B0\u70A1\u70B4\u70B5\u70A9\u7241\u7249\u724A\u726C\u7270\u7273\u726E\u72CA\u72E4\u72E8\u72EB\u72DF\u72EA\u72E6\u72E3\u7385\u73CC\u73C2\u73C8\u73C5\u73B9\u73B6\u73B5\u73B4\u73EB\u73BF\u73C7\u73BE\u73C3\u73C6\u73B8\u73CB\u74EC\u74EE\u752E\u7547\u7548\u75A7\u75AA\u7679\u76C4\u7708\u7703\u7704\u7705\u770A\u76F7\u76FB\u76FA\u77E7\u77E8\u7806\u7811\u7812\u7805\u7810\u780F\u780E\u7809\u7803\u7813\u794A\u794C\u794B\u7945\u7944\u79D5\u79CD\u79CF\u79D6\u79CE\u7A80"],
      ["d040", "\u7A7E\u7AD1\u7B00\u7B01\u7C7A\u7C78\u7C79\u7C7F\u7C80\u7C81\u7D03\u7D08\u7D01\u7F58\u7F91\u7F8D\u7FBE\u8007\u800E\u800F\u8014\u8037\u80D8\u80C7\u80E0\u80D1\u80C8\u80C2\u80D0\u80C5\u80E3\u80D9\u80DC\u80CA\u80D5\u80C9\u80CF\u80D7\u80E6\u80CD\u81FF\u8221\u8294\u82D9\u82FE\u82F9\u8307\u82E8\u8300\u82D5\u833A\u82EB\u82D6\u82F4\u82EC\u82E1\u82F2\u82F5\u830C\u82FB\u82F6\u82F0\u82EA"],
      ["d0a1", "\u82E4\u82E0\u82FA\u82F3\u82ED\u8677\u8674\u867C\u8673\u8841\u884E\u8867\u886A\u8869\u89D3\u8A04\u8A07\u8D72\u8FE3\u8FE1\u8FEE\u8FE0\u90F1\u90BD\u90BF\u90D5\u90C5\u90BE\u90C7\u90CB\u90C8\u91D4\u91D3\u9654\u964F\u9651\u9653\u964A\u964E\u501E\u5005\u5007\u5013\u5022\u5030\u501B\u4FF5\u4FF4\u5033\u5037\u502C\u4FF6\u4FF7\u5017\u501C\u5020\u5027\u5035\u502F\u5031\u500E\u515A\u5194\u5193\u51CA\u51C4\u51C5\u51C8\u51CE\u5261\u525A\u5252\u525E\u525F\u5255\u5262\u52CD\u530E\u539E\u5526\u54E2\u5517\u5512\u54E7\u54F3\u54E4\u551A\u54FF\u5504\u5508\u54EB\u5511\u5505\u54F1"],
      ["d140", "\u550A\u54FB\u54F7\u54F8\u54E0\u550E\u5503\u550B\u5701\u5702\u57CC\u5832\u57D5\u57D2\u57BA\u57C6\u57BD\u57BC\u57B8\u57B6\u57BF\u57C7\u57D0\u57B9\u57C1\u590E\u594A\u5A19\u5A16\u5A2D\u5A2E\u5A15\u5A0F\u5A17\u5A0A\u5A1E\u5A33\u5B6C\u5BA7\u5BAD\u5BAC\u5C03\u5C56\u5C54\u5CEC\u5CFF\u5CEE\u5CF1\u5CF7\u5D00\u5CF9\u5E29\u5E28\u5EA8\u5EAE\u5EAA\u5EAC\u5F33\u5F30\u5F67\u605D\u605A\u6067"],
      ["d1a1", "\u6041\u60A2\u6088\u6080\u6092\u6081\u609D\u6083\u6095\u609B\u6097\u6087\u609C\u608E\u6219\u6246\u62F2\u6310\u6356\u632C\u6344\u6345\u6336\u6343\u63E4\u6339\u634B\u634A\u633C\u6329\u6341\u6334\u6358\u6354\u6359\u632D\u6347\u6333\u635A\u6351\u6338\u6357\u6340\u6348\u654A\u6546\u65C6\u65C3\u65C4\u65C2\u664A\u665F\u6647\u6651\u6712\u6713\u681F\u681A\u6849\u6832\u6833\u683B\u684B\u684F\u6816\u6831\u681C\u6835\u682B\u682D\u682F\u684E\u6844\u6834\u681D\u6812\u6814\u6826\u6828\u682E\u684D\u683A\u6825\u6820\u6B2C\u6B2F\u6B2D\u6B31\u6B34\u6B6D\u8082\u6B88\u6BE6\u6BE4"],
      ["d240", "\u6BE8\u6BE3\u6BE2\u6BE7\u6C25\u6D7A\u6D63\u6D64\u6D76\u6D0D\u6D61\u6D92\u6D58\u6D62\u6D6D\u6D6F\u6D91\u6D8D\u6DEF\u6D7F\u6D86\u6D5E\u6D67\u6D60\u6D97\u6D70\u6D7C\u6D5F\u6D82\u6D98\u6D2F\u6D68\u6D8B\u6D7E\u6D80\u6D84\u6D16\u6D83\u6D7B\u6D7D\u6D75\u6D90\u70DC\u70D3\u70D1\u70DD\u70CB\u7F39\u70E2\u70D7\u70D2\u70DE\u70E0\u70D4\u70CD\u70C5\u70C6\u70C7\u70DA\u70CE\u70E1\u7242\u7278"],
      ["d2a1", "\u7277\u7276\u7300\u72FA\u72F4\u72FE\u72F6\u72F3\u72FB\u7301\u73D3\u73D9\u73E5\u73D6\u73BC\u73E7\u73E3\u73E9\u73DC\u73D2\u73DB\u73D4\u73DD\u73DA\u73D7\u73D8\u73E8\u74DE\u74DF\u74F4\u74F5\u7521\u755B\u755F\u75B0\u75C1\u75BB\u75C4\u75C0\u75BF\u75B6\u75BA\u768A\u76C9\u771D\u771B\u7710\u7713\u7712\u7723\u7711\u7715\u7719\u771A\u7722\u7727\u7823\u782C\u7822\u7835\u782F\u7828\u782E\u782B\u7821\u7829\u7833\u782A\u7831\u7954\u795B\u794F\u795C\u7953\u7952\u7951\u79EB\u79EC\u79E0\u79EE\u79ED\u79EA\u79DC\u79DE\u79DD\u7A86\u7A89\u7A85\u7A8B\u7A8C\u7A8A\u7A87\u7AD8\u7B10"],
      ["d340", "\u7B04\u7B13\u7B05\u7B0F\u7B08\u7B0A\u7B0E\u7B09\u7B12\u7C84\u7C91\u7C8A\u7C8C\u7C88\u7C8D\u7C85\u7D1E\u7D1D\u7D11\u7D0E\u7D18\u7D16\u7D13\u7D1F\u7D12\u7D0F\u7D0C\u7F5C\u7F61\u7F5E\u7F60\u7F5D\u7F5B\u7F96\u7F92\u7FC3\u7FC2\u7FC0\u8016\u803E\u8039\u80FA\u80F2\u80F9\u80F5\u8101\u80FB\u8100\u8201\u822F\u8225\u8333\u832D\u8344\u8319\u8351\u8325\u8356\u833F\u8341\u8326\u831C\u8322"],
      ["d3a1", "\u8342\u834E\u831B\u832A\u8308\u833C\u834D\u8316\u8324\u8320\u8337\u832F\u8329\u8347\u8345\u834C\u8353\u831E\u832C\u834B\u8327\u8348\u8653\u8652\u86A2\u86A8\u8696\u868D\u8691\u869E\u8687\u8697\u8686\u868B\u869A\u8685\u86A5\u8699\u86A1\u86A7\u8695\u8698\u868E\u869D\u8690\u8694\u8843\u8844\u886D\u8875\u8876\u8872\u8880\u8871\u887F\u886F\u8883\u887E\u8874\u887C\u8A12\u8C47\u8C57\u8C7B\u8CA4\u8CA3\u8D76\u8D78\u8DB5\u8DB7\u8DB6\u8ED1\u8ED3\u8FFE\u8FF5\u9002\u8FFF\u8FFB\u9004\u8FFC\u8FF6\u90D6\u90E0\u90D9\u90DA\u90E3\u90DF\u90E5\u90D8\u90DB\u90D7\u90DC\u90E4\u9150"],
      ["d440", "\u914E\u914F\u91D5\u91E2\u91DA\u965C\u965F\u96BC\u98E3\u9ADF\u9B2F\u4E7F\u5070\u506A\u5061\u505E\u5060\u5053\u504B\u505D\u5072\u5048\u504D\u5041\u505B\u504A\u5062\u5015\u5045\u505F\u5069\u506B\u5063\u5064\u5046\u5040\u506E\u5073\u5057\u5051\u51D0\u526B\u526D\u526C\u526E\u52D6\u52D3\u532D\u539C\u5575\u5576\u553C\u554D\u5550\u5534\u552A\u5551\u5562\u5536\u5535\u5530\u5552\u5545"],
      ["d4a1", "\u550C\u5532\u5565\u554E\u5539\u5548\u552D\u553B\u5540\u554B\u570A\u5707\u57FB\u5814\u57E2\u57F6\u57DC\u57F4\u5800\u57ED\u57FD\u5808\u57F8\u580B\u57F3\u57CF\u5807\u57EE\u57E3\u57F2\u57E5\u57EC\u57E1\u580E\u57FC\u5810\u57E7\u5801\u580C\u57F1\u57E9\u57F0\u580D\u5804\u595C\u5A60\u5A58\u5A55\u5A67\u5A5E\u5A38\u5A35\u5A6D\u5A50\u5A5F\u5A65\u5A6C\u5A53\u5A64\u5A57\u5A43\u5A5D\u5A52\u5A44\u5A5B\u5A48\u5A8E\u5A3E\u5A4D\u5A39\u5A4C\u5A70\u5A69\u5A47\u5A51\u5A56\u5A42\u5A5C\u5B72\u5B6E\u5BC1\u5BC0\u5C59\u5D1E\u5D0B\u5D1D\u5D1A\u5D20\u5D0C\u5D28\u5D0D\u5D26\u5D25\u5D0F"],
      ["d540", "\u5D30\u5D12\u5D23\u5D1F\u5D2E\u5E3E\u5E34\u5EB1\u5EB4\u5EB9\u5EB2\u5EB3\u5F36\u5F38\u5F9B\u5F96\u5F9F\u608A\u6090\u6086\u60BE\u60B0\u60BA\u60D3\u60D4\u60CF\u60E4\u60D9\u60DD\u60C8\u60B1\u60DB\u60B7\u60CA\u60BF\u60C3\u60CD\u60C0\u6332\u6365\u638A\u6382\u637D\u63BD\u639E\u63AD\u639D\u6397\u63AB\u638E\u636F\u6387\u6390\u636E\u63AF\u6375\u639C\u636D\u63AE\u637C\u63A4\u633B\u639F"],
      ["d5a1", "\u6378\u6385\u6381\u6391\u638D\u6370\u6553\u65CD\u6665\u6661\u665B\u6659\u665C\u6662\u6718\u6879\u6887\u6890\u689C\u686D\u686E\u68AE\u68AB\u6956\u686F\u68A3\u68AC\u68A9\u6875\u6874\u68B2\u688F\u6877\u6892\u687C\u686B\u6872\u68AA\u6880\u6871\u687E\u689B\u6896\u688B\u68A0\u6889\u68A4\u6878\u687B\u6891\u688C\u688A\u687D\u6B36\u6B33\u6B37\u6B38\u6B91\u6B8F\u6B8D\u6B8E\u6B8C\u6C2A\u6DC0\u6DAB\u6DB4\u6DB3\u6E74\u6DAC\u6DE9\u6DE2\u6DB7\u6DF6\u6DD4\u6E00\u6DC8\u6DE0\u6DDF\u6DD6\u6DBE\u6DE5\u6DDC\u6DDD\u6DDB\u6DF4\u6DCA\u6DBD\u6DED\u6DF0\u6DBA\u6DD5\u6DC2\u6DCF\u6DC9"],
      ["d640", "\u6DD0\u6DF2\u6DD3\u6DFD\u6DD7\u6DCD\u6DE3\u6DBB\u70FA\u710D\u70F7\u7117\u70F4\u710C\u70F0\u7104\u70F3\u7110\u70FC\u70FF\u7106\u7113\u7100\u70F8\u70F6\u710B\u7102\u710E\u727E\u727B\u727C\u727F\u731D\u7317\u7307\u7311\u7318\u730A\u7308\u72FF\u730F\u731E\u7388\u73F6\u73F8\u73F5\u7404\u7401\u73FD\u7407\u7400\u73FA\u73FC\u73FF\u740C\u740B\u73F4\u7408\u7564\u7563\u75CE\u75D2\u75CF"],
      ["d6a1", "\u75CB\u75CC\u75D1\u75D0\u768F\u7689\u76D3\u7739\u772F\u772D\u7731\u7732\u7734\u7733\u773D\u7725\u773B\u7735\u7848\u7852\u7849\u784D\u784A\u784C\u7826\u7845\u7850\u7964\u7967\u7969\u796A\u7963\u796B\u7961\u79BB\u79FA\u79F8\u79F6\u79F7\u7A8F\u7A94\u7A90\u7B35\u7B47\u7B34\u7B25\u7B30\u7B22\u7B24\u7B33\u7B18\u7B2A\u7B1D\u7B31\u7B2B\u7B2D\u7B2F\u7B32\u7B38\u7B1A\u7B23\u7C94\u7C98\u7C96\u7CA3\u7D35\u7D3D\u7D38\u7D36\u7D3A\u7D45\u7D2C\u7D29\u7D41\u7D47\u7D3E\u7D3F\u7D4A\u7D3B\u7D28\u7F63\u7F95\u7F9C\u7F9D\u7F9B\u7FCA\u7FCB\u7FCD\u7FD0\u7FD1\u7FC7\u7FCF\u7FC9\u801F"],
      ["d740", "\u801E\u801B\u8047\u8043\u8048\u8118\u8125\u8119\u811B\u812D\u811F\u812C\u811E\u8121\u8115\u8127\u811D\u8122\u8211\u8238\u8233\u823A\u8234\u8232\u8274\u8390\u83A3\u83A8\u838D\u837A\u8373\u83A4\u8374\u838F\u8381\u8395\u8399\u8375\u8394\u83A9\u837D\u8383\u838C\u839D\u839B\u83AA\u838B\u837E\u83A5\u83AF\u8388\u8397\u83B0\u837F\u83A6\u8387\u83AE\u8376\u839A\u8659\u8656\u86BF\u86B7"],
      ["d7a1", "\u86C2\u86C1\u86C5\u86BA\u86B0\u86C8\u86B9\u86B3\u86B8\u86CC\u86B4\u86BB\u86BC\u86C3\u86BD\u86BE\u8852\u8889\u8895\u88A8\u88A2\u88AA\u889A\u8891\u88A1\u889F\u8898\u88A7\u8899\u889B\u8897\u88A4\u88AC\u888C\u8893\u888E\u8982\u89D6\u89D9\u89D5\u8A30\u8A27\u8A2C\u8A1E\u8C39\u8C3B\u8C5C\u8C5D\u8C7D\u8CA5\u8D7D\u8D7B\u8D79\u8DBC\u8DC2\u8DB9\u8DBF\u8DC1\u8ED8\u8EDE\u8EDD\u8EDC\u8ED7\u8EE0\u8EE1\u9024\u900B\u9011\u901C\u900C\u9021\u90EF\u90EA\u90F0\u90F4\u90F2\u90F3\u90D4\u90EB\u90EC\u90E9\u9156\u9158\u915A\u9153\u9155\u91EC\u91F4\u91F1\u91F3\u91F8\u91E4\u91F9\u91EA"],
      ["d840", "\u91EB\u91F7\u91E8\u91EE\u957A\u9586\u9588\u967C\u966D\u966B\u9671\u966F\u96BF\u976A\u9804\u98E5\u9997\u509B\u5095\u5094\u509E\u508B\u50A3\u5083\u508C\u508E\u509D\u5068\u509C\u5092\u5082\u5087\u515F\u51D4\u5312\u5311\u53A4\u53A7\u5591\u55A8\u55A5\u55AD\u5577\u5645\u55A2\u5593\u5588\u558F\u55B5\u5581\u55A3\u5592\u55A4\u557D\u558C\u55A6\u557F\u5595\u55A1\u558E\u570C\u5829\u5837"],
      ["d8a1", "\u5819\u581E\u5827\u5823\u5828\u57F5\u5848\u5825\u581C\u581B\u5833\u583F\u5836\u582E\u5839\u5838\u582D\u582C\u583B\u5961\u5AAF\u5A94\u5A9F\u5A7A\u5AA2\u5A9E\u5A78\u5AA6\u5A7C\u5AA5\u5AAC\u5A95\u5AAE\u5A37\u5A84\u5A8A\u5A97\u5A83\u5A8B\u5AA9\u5A7B\u5A7D\u5A8C\u5A9C\u5A8F\u5A93\u5A9D\u5BEA\u5BCD\u5BCB\u5BD4\u5BD1\u5BCA\u5BCE\u5C0C\u5C30\u5D37\u5D43\u5D6B\u5D41\u5D4B\u5D3F\u5D35\u5D51\u5D4E\u5D55\u5D33\u5D3A\u5D52\u5D3D\u5D31\u5D59\u5D42\u5D39\u5D49\u5D38\u5D3C\u5D32\u5D36\u5D40\u5D45\u5E44\u5E41\u5F58\u5FA6\u5FA5\u5FAB\u60C9\u60B9\u60CC\u60E2\u60CE\u60C4\u6114"],
      ["d940", "\u60F2\u610A\u6116\u6105\u60F5\u6113\u60F8\u60FC\u60FE\u60C1\u6103\u6118\u611D\u6110\u60FF\u6104\u610B\u624A\u6394\u63B1\u63B0\u63CE\u63E5\u63E8\u63EF\u63C3\u649D\u63F3\u63CA\u63E0\u63F6\u63D5\u63F2\u63F5\u6461\u63DF\u63BE\u63DD\u63DC\u63C4\u63D8\u63D3\u63C2\u63C7\u63CC\u63CB\u63C8\u63F0\u63D7\u63D9\u6532\u6567\u656A\u6564\u655C\u6568\u6565\u658C\u659D\u659E\u65AE\u65D0\u65D2"],
      ["d9a1", "\u667C\u666C\u667B\u6680\u6671\u6679\u666A\u6672\u6701\u690C\u68D3\u6904\u68DC\u692A\u68EC\u68EA\u68F1\u690F\u68D6\u68F7\u68EB\u68E4\u68F6\u6913\u6910\u68F3\u68E1\u6907\u68CC\u6908\u6970\u68B4\u6911\u68EF\u68C6\u6914\u68F8\u68D0\u68FD\u68FC\u68E8\u690B\u690A\u6917\u68CE\u68C8\u68DD\u68DE\u68E6\u68F4\u68D1\u6906\u68D4\u68E9\u6915\u6925\u68C7\u6B39\u6B3B\u6B3F\u6B3C\u6B94\u6B97\u6B99\u6B95\u6BBD\u6BF0\u6BF2\u6BF3\u6C30\u6DFC\u6E46\u6E47\u6E1F\u6E49\u6E88\u6E3C\u6E3D\u6E45\u6E62\u6E2B\u6E3F\u6E41\u6E5D\u6E73\u6E1C\u6E33\u6E4B\u6E40\u6E51\u6E3B\u6E03\u6E2E\u6E5E"],
      ["da40", "\u6E68\u6E5C\u6E61\u6E31\u6E28\u6E60\u6E71\u6E6B\u6E39\u6E22\u6E30\u6E53\u6E65\u6E27\u6E78\u6E64\u6E77\u6E55\u6E79\u6E52\u6E66\u6E35\u6E36\u6E5A\u7120\u711E\u712F\u70FB\u712E\u7131\u7123\u7125\u7122\u7132\u711F\u7128\u713A\u711B\u724B\u725A\u7288\u7289\u7286\u7285\u728B\u7312\u730B\u7330\u7322\u7331\u7333\u7327\u7332\u732D\u7326\u7323\u7335\u730C\u742E\u742C\u7430\u742B\u7416"],
      ["daa1", "\u741A\u7421\u742D\u7431\u7424\u7423\u741D\u7429\u7420\u7432\u74FB\u752F\u756F\u756C\u75E7\u75DA\u75E1\u75E6\u75DD\u75DF\u75E4\u75D7\u7695\u7692\u76DA\u7746\u7747\u7744\u774D\u7745\u774A\u774E\u774B\u774C\u77DE\u77EC\u7860\u7864\u7865\u785C\u786D\u7871\u786A\u786E\u7870\u7869\u7868\u785E\u7862\u7974\u7973\u7972\u7970\u7A02\u7A0A\u7A03\u7A0C\u7A04\u7A99\u7AE6\u7AE4\u7B4A\u7B3B\u7B44\u7B48\u7B4C\u7B4E\u7B40\u7B58\u7B45\u7CA2\u7C9E\u7CA8\u7CA1\u7D58\u7D6F\u7D63\u7D53\u7D56\u7D67\u7D6A\u7D4F\u7D6D\u7D5C\u7D6B\u7D52\u7D54\u7D69\u7D51\u7D5F\u7D4E\u7F3E\u7F3F\u7F65"],
      ["db40", "\u7F66\u7FA2\u7FA0\u7FA1\u7FD7\u8051\u804F\u8050\u80FE\u80D4\u8143\u814A\u8152\u814F\u8147\u813D\u814D\u813A\u81E6\u81EE\u81F7\u81F8\u81F9\u8204\u823C\u823D\u823F\u8275\u833B\u83CF\u83F9\u8423\u83C0\u83E8\u8412\u83E7\u83E4\u83FC\u83F6\u8410\u83C6\u83C8\u83EB\u83E3\u83BF\u8401\u83DD\u83E5\u83D8\u83FF\u83E1\u83CB\u83CE\u83D6\u83F5\u83C9\u8409\u840F\u83DE\u8411\u8406\u83C2\u83F3"],
      ["dba1", "\u83D5\u83FA\u83C7\u83D1\u83EA\u8413\u83C3\u83EC\u83EE\u83C4\u83FB\u83D7\u83E2\u841B\u83DB\u83FE\u86D8\u86E2\u86E6\u86D3\u86E3\u86DA\u86EA\u86DD\u86EB\u86DC\u86EC\u86E9\u86D7\u86E8\u86D1\u8848\u8856\u8855\u88BA\u88D7\u88B9\u88B8\u88C0\u88BE\u88B6\u88BC\u88B7\u88BD\u88B2\u8901\u88C9\u8995\u8998\u8997\u89DD\u89DA\u89DB\u8A4E\u8A4D\u8A39\u8A59\u8A40\u8A57\u8A58\u8A44\u8A45\u8A52\u8A48\u8A51\u8A4A\u8A4C\u8A4F\u8C5F\u8C81\u8C80\u8CBA\u8CBE\u8CB0\u8CB9\u8CB5\u8D84\u8D80\u8D89\u8DD8\u8DD3\u8DCD\u8DC7\u8DD6\u8DDC\u8DCF\u8DD5\u8DD9\u8DC8\u8DD7\u8DC5\u8EEF\u8EF7\u8EFA"],
      ["dc40", "\u8EF9\u8EE6\u8EEE\u8EE5\u8EF5\u8EE7\u8EE8\u8EF6\u8EEB\u8EF1\u8EEC\u8EF4\u8EE9\u902D\u9034\u902F\u9106\u912C\u9104\u90FF\u90FC\u9108\u90F9\u90FB\u9101\u9100\u9107\u9105\u9103\u9161\u9164\u915F\u9162\u9160\u9201\u920A\u9225\u9203\u921A\u9226\u920F\u920C\u9200\u9212\u91FF\u91FD\u9206\u9204\u9227\u9202\u921C\u9224\u9219\u9217\u9205\u9216\u957B\u958D\u958C\u9590\u9687\u967E\u9688"],
      ["dca1", "\u9689\u9683\u9680\u96C2\u96C8\u96C3\u96F1\u96F0\u976C\u9770\u976E\u9807\u98A9\u98EB\u9CE6\u9EF9\u4E83\u4E84\u4EB6\u50BD\u50BF\u50C6\u50AE\u50C4\u50CA\u50B4\u50C8\u50C2\u50B0\u50C1\u50BA\u50B1\u50CB\u50C9\u50B6\u50B8\u51D7\u527A\u5278\u527B\u527C\u55C3\u55DB\u55CC\u55D0\u55CB\u55CA\u55DD\u55C0\u55D4\u55C4\u55E9\u55BF\u55D2\u558D\u55CF\u55D5\u55E2\u55D6\u55C8\u55F2\u55CD\u55D9\u55C2\u5714\u5853\u5868\u5864\u584F\u584D\u5849\u586F\u5855\u584E\u585D\u5859\u5865\u585B\u583D\u5863\u5871\u58FC\u5AC7\u5AC4\u5ACB\u5ABA\u5AB8\u5AB1\u5AB5\u5AB0\u5ABF\u5AC8\u5ABB\u5AC6"],
      ["dd40", "\u5AB7\u5AC0\u5ACA\u5AB4\u5AB6\u5ACD\u5AB9\u5A90\u5BD6\u5BD8\u5BD9\u5C1F\u5C33\u5D71\u5D63\u5D4A\u5D65\u5D72\u5D6C\u5D5E\u5D68\u5D67\u5D62\u5DF0\u5E4F\u5E4E\u5E4A\u5E4D\u5E4B\u5EC5\u5ECC\u5EC6\u5ECB\u5EC7\u5F40\u5FAF\u5FAD\u60F7\u6149\u614A\u612B\u6145\u6136\u6132\u612E\u6146\u612F\u614F\u6129\u6140\u6220\u9168\u6223\u6225\u6224\u63C5\u63F1\u63EB\u6410\u6412\u6409\u6420\u6424"],
      ["dda1", "\u6433\u6443\u641F\u6415\u6418\u6439\u6437\u6422\u6423\u640C\u6426\u6430\u6428\u6441\u6435\u642F\u640A\u641A\u6440\u6425\u6427\u640B\u63E7\u641B\u642E\u6421\u640E\u656F\u6592\u65D3\u6686\u668C\u6695\u6690\u668B\u668A\u6699\u6694\u6678\u6720\u6966\u695F\u6938\u694E\u6962\u6971\u693F\u6945\u696A\u6939\u6942\u6957\u6959\u697A\u6948\u6949\u6935\u696C\u6933\u693D\u6965\u68F0\u6978\u6934\u6969\u6940\u696F\u6944\u6976\u6958\u6941\u6974\u694C\u693B\u694B\u6937\u695C\u694F\u6951\u6932\u6952\u692F\u697B\u693C\u6B46\u6B45\u6B43\u6B42\u6B48\u6B41\u6B9B\uFA0D\u6BFB\u6BFC"],
      ["de40", "\u6BF9\u6BF7\u6BF8\u6E9B\u6ED6\u6EC8\u6E8F\u6EC0\u6E9F\u6E93\u6E94\u6EA0\u6EB1\u6EB9\u6EC6\u6ED2\u6EBD\u6EC1\u6E9E\u6EC9\u6EB7\u6EB0\u6ECD\u6EA6\u6ECF\u6EB2\u6EBE\u6EC3\u6EDC\u6ED8\u6E99\u6E92\u6E8E\u6E8D\u6EA4\u6EA1\u6EBF\u6EB3\u6ED0\u6ECA\u6E97\u6EAE\u6EA3\u7147\u7154\u7152\u7163\u7160\u7141\u715D\u7162\u7172\u7178\u716A\u7161\u7142\u7158\u7143\u714B\u7170\u715F\u7150\u7153"],
      ["dea1", "\u7144\u714D\u715A\u724F\u728D\u728C\u7291\u7290\u728E\u733C\u7342\u733B\u733A\u7340\u734A\u7349\u7444\u744A\u744B\u7452\u7451\u7457\u7440\u744F\u7450\u744E\u7442\u7446\u744D\u7454\u74E1\u74FF\u74FE\u74FD\u751D\u7579\u7577\u6983\u75EF\u760F\u7603\u75F7\u75FE\u75FC\u75F9\u75F8\u7610\u75FB\u75F6\u75ED\u75F5\u75FD\u7699\u76B5\u76DD\u7755\u775F\u7760\u7752\u7756\u775A\u7769\u7767\u7754\u7759\u776D\u77E0\u7887\u789A\u7894\u788F\u7884\u7895\u7885\u7886\u78A1\u7883\u7879\u7899\u7880\u7896\u787B\u797C\u7982\u797D\u7979\u7A11\u7A18\u7A19\u7A12\u7A17\u7A15\u7A22\u7A13"],
      ["df40", "\u7A1B\u7A10\u7AA3\u7AA2\u7A9E\u7AEB\u7B66\u7B64\u7B6D\u7B74\u7B69\u7B72\u7B65\u7B73\u7B71\u7B70\u7B61\u7B78\u7B76\u7B63\u7CB2\u7CB4\u7CAF\u7D88\u7D86\u7D80\u7D8D\u7D7F\u7D85\u7D7A\u7D8E\u7D7B\u7D83\u7D7C\u7D8C\u7D94\u7D84\u7D7D\u7D92\u7F6D\u7F6B\u7F67\u7F68\u7F6C\u7FA6\u7FA5\u7FA7\u7FDB\u7FDC\u8021\u8164\u8160\u8177\u815C\u8169\u815B\u8162\u8172\u6721\u815E\u8176\u8167\u816F"],
      ["dfa1", "\u8144\u8161\u821D\u8249\u8244\u8240\u8242\u8245\u84F1\u843F\u8456\u8476\u8479\u848F\u848D\u8465\u8451\u8440\u8486\u8467\u8430\u844D\u847D\u845A\u8459\u8474\u8473\u845D\u8507\u845E\u8437\u843A\u8434\u847A\u8443\u8478\u8432\u8445\u8429\u83D9\u844B\u842F\u8442\u842D\u845F\u8470\u8439\u844E\u844C\u8452\u846F\u84C5\u848E\u843B\u8447\u8436\u8433\u8468\u847E\u8444\u842B\u8460\u8454\u846E\u8450\u870B\u8704\u86F7\u870C\u86FA\u86D6\u86F5\u874D\u86F8\u870E\u8709\u8701\u86F6\u870D\u8705\u88D6\u88CB\u88CD\u88CE\u88DE\u88DB\u88DA\u88CC\u88D0\u8985\u899B\u89DF\u89E5\u89E4"],
      ["e040", "\u89E1\u89E0\u89E2\u89DC\u89E6\u8A76\u8A86\u8A7F\u8A61\u8A3F\u8A77\u8A82\u8A84\u8A75\u8A83\u8A81\u8A74\u8A7A\u8C3C\u8C4B\u8C4A\u8C65\u8C64\u8C66\u8C86\u8C84\u8C85\u8CCC\u8D68\u8D69\u8D91\u8D8C\u8D8E\u8D8F\u8D8D\u8D93\u8D94\u8D90\u8D92\u8DF0\u8DE0\u8DEC\u8DF1\u8DEE\u8DD0\u8DE9\u8DE3\u8DE2\u8DE7\u8DF2\u8DEB\u8DF4\u8F06\u8EFF\u8F01\u8F00\u8F05\u8F07\u8F08\u8F02\u8F0B\u9052\u903F"],
      ["e0a1", "\u9044\u9049\u903D\u9110\u910D\u910F\u9111\u9116\u9114\u910B\u910E\u916E\u916F\u9248\u9252\u9230\u923A\u9266\u9233\u9265\u925E\u9283\u922E\u924A\u9246\u926D\u926C\u924F\u9260\u9267\u926F\u9236\u9261\u9270\u9231\u9254\u9263\u9250\u9272\u924E\u9253\u924C\u9256\u9232\u959F\u959C\u959E\u959B\u9692\u9693\u9691\u9697\u96CE\u96FA\u96FD\u96F8\u96F5\u9773\u9777\u9778\u9772\u980F\u980D\u980E\u98AC\u98F6\u98F9\u99AF\u99B2\u99B0\u99B5\u9AAD\u9AAB\u9B5B\u9CEA\u9CED\u9CE7\u9E80\u9EFD\u50E6\u50D4\u50D7\u50E8\u50F3\u50DB\u50EA\u50DD\u50E4\u50D3\u50EC\u50F0\u50EF\u50E3\u50E0"],
      ["e140", "\u51D8\u5280\u5281\u52E9\u52EB\u5330\u53AC\u5627\u5615\u560C\u5612\u55FC\u560F\u561C\u5601\u5613\u5602\u55FA\u561D\u5604\u55FF\u55F9\u5889\u587C\u5890\u5898\u5886\u5881\u587F\u5874\u588B\u587A\u5887\u5891\u588E\u5876\u5882\u5888\u587B\u5894\u588F\u58FE\u596B\u5ADC\u5AEE\u5AE5\u5AD5\u5AEA\u5ADA\u5AED\u5AEB\u5AF3\u5AE2\u5AE0\u5ADB\u5AEC\u5ADE\u5ADD\u5AD9\u5AE8\u5ADF\u5B77\u5BE0"],
      ["e1a1", "\u5BE3\u5C63\u5D82\u5D80\u5D7D\u5D86\u5D7A\u5D81\u5D77\u5D8A\u5D89\u5D88\u5D7E\u5D7C\u5D8D\u5D79\u5D7F\u5E58\u5E59\u5E53\u5ED8\u5ED1\u5ED7\u5ECE\u5EDC\u5ED5\u5ED9\u5ED2\u5ED4\u5F44\u5F43\u5F6F\u5FB6\u612C\u6128\u6141\u615E\u6171\u6173\u6152\u6153\u6172\u616C\u6180\u6174\u6154\u617A\u615B\u6165\u613B\u616A\u6161\u6156\u6229\u6227\u622B\u642B\u644D\u645B\u645D\u6474\u6476\u6472\u6473\u647D\u6475\u6466\u64A6\u644E\u6482\u645E\u645C\u644B\u6453\u6460\u6450\u647F\u643F\u646C\u646B\u6459\u6465\u6477\u6573\u65A0\u66A1\u66A0\u669F\u6705\u6704\u6722\u69B1\u69B6\u69C9"],
      ["e240", "\u69A0\u69CE\u6996\u69B0\u69AC\u69BC\u6991\u6999\u698E\u69A7\u698D\u69A9\u69BE\u69AF\u69BF\u69C4\u69BD\u69A4\u69D4\u69B9\u69CA\u699A\u69CF\u69B3\u6993\u69AA\u69A1\u699E\u69D9\u6997\u6990\u69C2\u69B5\u69A5\u69C6\u6B4A\u6B4D\u6B4B\u6B9E\u6B9F\u6BA0\u6BC3\u6BC4\u6BFE\u6ECE\u6EF5\u6EF1\u6F03\u6F25\u6EF8\u6F37\u6EFB\u6F2E\u6F09\u6F4E\u6F19\u6F1A\u6F27\u6F18\u6F3B\u6F12\u6EED\u6F0A"],
      ["e2a1", "\u6F36\u6F73\u6EF9\u6EEE\u6F2D\u6F40\u6F30\u6F3C\u6F35\u6EEB\u6F07\u6F0E\u6F43\u6F05\u6EFD\u6EF6\u6F39\u6F1C\u6EFC\u6F3A\u6F1F\u6F0D\u6F1E\u6F08\u6F21\u7187\u7190\u7189\u7180\u7185\u7182\u718F\u717B\u7186\u7181\u7197\u7244\u7253\u7297\u7295\u7293\u7343\u734D\u7351\u734C\u7462\u7473\u7471\u7475\u7472\u7467\u746E\u7500\u7502\u7503\u757D\u7590\u7616\u7608\u760C\u7615\u7611\u760A\u7614\u76B8\u7781\u777C\u7785\u7782\u776E\u7780\u776F\u777E\u7783\u78B2\u78AA\u78B4\u78AD\u78A8\u787E\u78AB\u789E\u78A5\u78A0\u78AC\u78A2\u78A4\u7998\u798A\u798B\u7996\u7995\u7994\u7993"],
      ["e340", "\u7997\u7988\u7992\u7990\u7A2B\u7A4A\u7A30\u7A2F\u7A28\u7A26\u7AA8\u7AAB\u7AAC\u7AEE\u7B88\u7B9C\u7B8A\u7B91\u7B90\u7B96\u7B8D\u7B8C\u7B9B\u7B8E\u7B85\u7B98\u5284\u7B99\u7BA4\u7B82\u7CBB\u7CBF\u7CBC\u7CBA\u7DA7\u7DB7\u7DC2\u7DA3\u7DAA\u7DC1\u7DC0\u7DC5\u7D9D\u7DCE\u7DC4\u7DC6\u7DCB\u7DCC\u7DAF\u7DB9\u7D96\u7DBC\u7D9F\u7DA6\u7DAE\u7DA9\u7DA1\u7DC9\u7F73\u7FE2\u7FE3\u7FE5\u7FDE"],
      ["e3a1", "\u8024\u805D\u805C\u8189\u8186\u8183\u8187\u818D\u818C\u818B\u8215\u8497\u84A4\u84A1\u849F\u84BA\u84CE\u84C2\u84AC\u84AE\u84AB\u84B9\u84B4\u84C1\u84CD\u84AA\u849A\u84B1\u84D0\u849D\u84A7\u84BB\u84A2\u8494\u84C7\u84CC\u849B\u84A9\u84AF\u84A8\u84D6\u8498\u84B6\u84CF\u84A0\u84D7\u84D4\u84D2\u84DB\u84B0\u8491\u8661\u8733\u8723\u8728\u876B\u8740\u872E\u871E\u8721\u8719\u871B\u8743\u872C\u8741\u873E\u8746\u8720\u8732\u872A\u872D\u873C\u8712\u873A\u8731\u8735\u8742\u8726\u8727\u8738\u8724\u871A\u8730\u8711\u88F7\u88E7\u88F1\u88F2\u88FA\u88FE\u88EE\u88FC\u88F6\u88FB"],
      ["e440", "\u88F0\u88EC\u88EB\u899D\u89A1\u899F\u899E\u89E9\u89EB\u89E8\u8AAB\u8A99\u8A8B\u8A92\u8A8F\u8A96\u8C3D\u8C68\u8C69\u8CD5\u8CCF\u8CD7\u8D96\u8E09\u8E02\u8DFF\u8E0D\u8DFD\u8E0A\u8E03\u8E07\u8E06\u8E05\u8DFE\u8E00\u8E04\u8F10\u8F11\u8F0E\u8F0D\u9123\u911C\u9120\u9122\u911F\u911D\u911A\u9124\u9121\u911B\u917A\u9172\u9179\u9173\u92A5\u92A4\u9276\u929B\u927A\u92A0\u9294\u92AA\u928D"],
      ["e4a1", "\u92A6\u929A\u92AB\u9279\u9297\u927F\u92A3\u92EE\u928E\u9282\u9295\u92A2\u927D\u9288\u92A1\u928A\u9286\u928C\u9299\u92A7\u927E\u9287\u92A9\u929D\u928B\u922D\u969E\u96A1\u96FF\u9758\u977D\u977A\u977E\u9783\u9780\u9782\u977B\u9784\u9781\u977F\u97CE\u97CD\u9816\u98AD\u98AE\u9902\u9900\u9907\u999D\u999C\u99C3\u99B9\u99BB\u99BA\u99C2\u99BD\u99C7\u9AB1\u9AE3\u9AE7\u9B3E\u9B3F\u9B60\u9B61\u9B5F\u9CF1\u9CF2\u9CF5\u9EA7\u50FF\u5103\u5130\u50F8\u5106\u5107\u50F6\u50FE\u510B\u510C\u50FD\u510A\u528B\u528C\u52F1\u52EF\u5648\u5642\u564C\u5635\u5641\u564A\u5649\u5646\u5658"],
      ["e540", "\u565A\u5640\u5633\u563D\u562C\u563E\u5638\u562A\u563A\u571A\u58AB\u589D\u58B1\u58A0\u58A3\u58AF\u58AC\u58A5\u58A1\u58FF\u5AFF\u5AF4\u5AFD\u5AF7\u5AF6\u5B03\u5AF8\u5B02\u5AF9\u5B01\u5B07\u5B05\u5B0F\u5C67\u5D99\u5D97\u5D9F\u5D92\u5DA2\u5D93\u5D95\u5DA0\u5D9C\u5DA1\u5D9A\u5D9E\u5E69\u5E5D\u5E60\u5E5C\u7DF3\u5EDB\u5EDE\u5EE1\u5F49\u5FB2\u618B\u6183\u6179\u61B1\u61B0\u61A2\u6189"],
      ["e5a1", "\u619B\u6193\u61AF\u61AD\u619F\u6192\u61AA\u61A1\u618D\u6166\u61B3\u622D\u646E\u6470\u6496\u64A0\u6485\u6497\u649C\u648F\u648B\u648A\u648C\u64A3\u649F\u6468\u64B1\u6498\u6576\u657A\u6579\u657B\u65B2\u65B3\u66B5\u66B0\u66A9\u66B2\u66B7\u66AA\u66AF\u6A00\u6A06\u6A17\u69E5\u69F8\u6A15\u69F1\u69E4\u6A20\u69FF\u69EC\u69E2\u6A1B\u6A1D\u69FE\u6A27\u69F2\u69EE\u6A14\u69F7\u69E7\u6A40\u6A08\u69E6\u69FB\u6A0D\u69FC\u69EB\u6A09\u6A04\u6A18\u6A25\u6A0F\u69F6\u6A26\u6A07\u69F4\u6A16\u6B51\u6BA5\u6BA3\u6BA2\u6BA6\u6C01\u6C00\u6BFF\u6C02\u6F41\u6F26\u6F7E\u6F87\u6FC6\u6F92"],
      ["e640", "\u6F8D\u6F89\u6F8C\u6F62\u6F4F\u6F85\u6F5A\u6F96\u6F76\u6F6C\u6F82\u6F55\u6F72\u6F52\u6F50\u6F57\u6F94\u6F93\u6F5D\u6F00\u6F61\u6F6B\u6F7D\u6F67\u6F90\u6F53\u6F8B\u6F69\u6F7F\u6F95\u6F63\u6F77\u6F6A\u6F7B\u71B2\u71AF\u719B\u71B0\u71A0\u719A\u71A9\u71B5\u719D\u71A5\u719E\u71A4\u71A1\u71AA\u719C\u71A7\u71B3\u7298\u729A\u7358\u7352\u735E\u735F\u7360\u735D\u735B\u7361\u735A\u7359"],
      ["e6a1", "\u7362\u7487\u7489\u748A\u7486\u7481\u747D\u7485\u7488\u747C\u7479\u7508\u7507\u757E\u7625\u761E\u7619\u761D\u761C\u7623\u761A\u7628\u761B\u769C\u769D\u769E\u769B\u778D\u778F\u7789\u7788\u78CD\u78BB\u78CF\u78CC\u78D1\u78CE\u78D4\u78C8\u78C3\u78C4\u78C9\u799A\u79A1\u79A0\u799C\u79A2\u799B\u6B76\u7A39\u7AB2\u7AB4\u7AB3\u7BB7\u7BCB\u7BBE\u7BAC\u7BCE\u7BAF\u7BB9\u7BCA\u7BB5\u7CC5\u7CC8\u7CCC\u7CCB\u7DF7\u7DDB\u7DEA\u7DE7\u7DD7\u7DE1\u7E03\u7DFA\u7DE6\u7DF6\u7DF1\u7DF0\u7DEE\u7DDF\u7F76\u7FAC\u7FB0\u7FAD\u7FED\u7FEB\u7FEA\u7FEC\u7FE6\u7FE8\u8064\u8067\u81A3\u819F"],
      ["e740", "\u819E\u8195\u81A2\u8199\u8197\u8216\u824F\u8253\u8252\u8250\u824E\u8251\u8524\u853B\u850F\u8500\u8529\u850E\u8509\u850D\u851F\u850A\u8527\u851C\u84FB\u852B\u84FA\u8508\u850C\u84F4\u852A\u84F2\u8515\u84F7\u84EB\u84F3\u84FC\u8512\u84EA\u84E9\u8516\u84FE\u8528\u851D\u852E\u8502\u84FD\u851E\u84F6\u8531\u8526\u84E7\u84E8\u84F0\u84EF\u84F9\u8518\u8520\u8530\u850B\u8519\u852F\u8662"],
      ["e7a1", "\u8756\u8763\u8764\u8777\u87E1\u8773\u8758\u8754\u875B\u8752\u8761\u875A\u8751\u875E\u876D\u876A\u8750\u874E\u875F\u875D\u876F\u876C\u877A\u876E\u875C\u8765\u874F\u877B\u8775\u8762\u8767\u8769\u885A\u8905\u890C\u8914\u890B\u8917\u8918\u8919\u8906\u8916\u8911\u890E\u8909\u89A2\u89A4\u89A3\u89ED\u89F0\u89EC\u8ACF\u8AC6\u8AB8\u8AD3\u8AD1\u8AD4\u8AD5\u8ABB\u8AD7\u8ABE\u8AC0\u8AC5\u8AD8\u8AC3\u8ABA\u8ABD\u8AD9\u8C3E\u8C4D\u8C8F\u8CE5\u8CDF\u8CD9\u8CE8\u8CDA\u8CDD\u8CE7\u8DA0\u8D9C\u8DA1\u8D9B\u8E20\u8E23\u8E25\u8E24\u8E2E\u8E15\u8E1B\u8E16\u8E11\u8E19\u8E26\u8E27"],
      ["e840", "\u8E14\u8E12\u8E18\u8E13\u8E1C\u8E17\u8E1A\u8F2C\u8F24\u8F18\u8F1A\u8F20\u8F23\u8F16\u8F17\u9073\u9070\u906F\u9067\u906B\u912F\u912B\u9129\u912A\u9132\u9126\u912E\u9185\u9186\u918A\u9181\u9182\u9184\u9180\u92D0\u92C3\u92C4\u92C0\u92D9\u92B6\u92CF\u92F1\u92DF\u92D8\u92E9\u92D7\u92DD\u92CC\u92EF\u92C2\u92E8\u92CA\u92C8\u92CE\u92E6\u92CD\u92D5\u92C9\u92E0\u92DE\u92E7\u92D1\u92D3"],
      ["e8a1", "\u92B5\u92E1\u92C6\u92B4\u957C\u95AC\u95AB\u95AE\u95B0\u96A4\u96A2\u96D3\u9705\u9708\u9702\u975A\u978A\u978E\u9788\u97D0\u97CF\u981E\u981D\u9826\u9829\u9828\u9820\u981B\u9827\u98B2\u9908\u98FA\u9911\u9914\u9916\u9917\u9915\u99DC\u99CD\u99CF\u99D3\u99D4\u99CE\u99C9\u99D6\u99D8\u99CB\u99D7\u99CC\u9AB3\u9AEC\u9AEB\u9AF3\u9AF2\u9AF1\u9B46\u9B43\u9B67\u9B74\u9B71\u9B66\u9B76\u9B75\u9B70\u9B68\u9B64\u9B6C\u9CFC\u9CFA\u9CFD\u9CFF\u9CF7\u9D07\u9D00\u9CF9\u9CFB\u9D08\u9D05\u9D04\u9E83\u9ED3\u9F0F\u9F10\u511C\u5113\u5117\u511A\u5111\u51DE\u5334\u53E1\u5670\u5660\u566E"],
      ["e940", "\u5673\u5666\u5663\u566D\u5672\u565E\u5677\u571C\u571B\u58C8\u58BD\u58C9\u58BF\u58BA\u58C2\u58BC\u58C6\u5B17\u5B19\u5B1B\u5B21\u5B14\u5B13\u5B10\u5B16\u5B28\u5B1A\u5B20\u5B1E\u5BEF\u5DAC\u5DB1\u5DA9\u5DA7\u5DB5\u5DB0\u5DAE\u5DAA\u5DA8\u5DB2\u5DAD\u5DAF\u5DB4\u5E67\u5E68\u5E66\u5E6F\u5EE9\u5EE7\u5EE6\u5EE8\u5EE5\u5F4B\u5FBC\u619D\u61A8\u6196\u61C5\u61B4\u61C6\u61C1\u61CC\u61BA"],
      ["e9a1", "\u61BF\u61B8\u618C\u64D7\u64D6\u64D0\u64CF\u64C9\u64BD\u6489\u64C3\u64DB\u64F3\u64D9\u6533\u657F\u657C\u65A2\u66C8\u66BE\u66C0\u66CA\u66CB\u66CF\u66BD\u66BB\u66BA\u66CC\u6723\u6A34\u6A66\u6A49\u6A67\u6A32\u6A68\u6A3E\u6A5D\u6A6D\u6A76\u6A5B\u6A51\u6A28\u6A5A\u6A3B\u6A3F\u6A41\u6A6A\u6A64\u6A50\u6A4F\u6A54\u6A6F\u6A69\u6A60\u6A3C\u6A5E\u6A56\u6A55\u6A4D\u6A4E\u6A46\u6B55\u6B54\u6B56\u6BA7\u6BAA\u6BAB\u6BC8\u6BC7\u6C04\u6C03\u6C06\u6FAD\u6FCB\u6FA3\u6FC7\u6FBC\u6FCE\u6FC8\u6F5E\u6FC4\u6FBD\u6F9E\u6FCA\u6FA8\u7004\u6FA5\u6FAE\u6FBA\u6FAC\u6FAA\u6FCF\u6FBF\u6FB8"],
      ["ea40", "\u6FA2\u6FC9\u6FAB\u6FCD\u6FAF\u6FB2\u6FB0\u71C5\u71C2\u71BF\u71B8\u71D6\u71C0\u71C1\u71CB\u71D4\u71CA\u71C7\u71CF\u71BD\u71D8\u71BC\u71C6\u71DA\u71DB\u729D\u729E\u7369\u7366\u7367\u736C\u7365\u736B\u736A\u747F\u749A\u74A0\u7494\u7492\u7495\u74A1\u750B\u7580\u762F\u762D\u7631\u763D\u7633\u763C\u7635\u7632\u7630\u76BB\u76E6\u779A\u779D\u77A1\u779C\u779B\u77A2\u77A3\u7795\u7799"],
      ["eaa1", "\u7797\u78DD\u78E9\u78E5\u78EA\u78DE\u78E3\u78DB\u78E1\u78E2\u78ED\u78DF\u78E0\u79A4\u7A44\u7A48\u7A47\u7AB6\u7AB8\u7AB5\u7AB1\u7AB7\u7BDE\u7BE3\u7BE7\u7BDD\u7BD5\u7BE5\u7BDA\u7BE8\u7BF9\u7BD4\u7BEA\u7BE2\u7BDC\u7BEB\u7BD8\u7BDF\u7CD2\u7CD4\u7CD7\u7CD0\u7CD1\u7E12\u7E21\u7E17\u7E0C\u7E1F\u7E20\u7E13\u7E0E\u7E1C\u7E15\u7E1A\u7E22\u7E0B\u7E0F\u7E16\u7E0D\u7E14\u7E25\u7E24\u7F43\u7F7B\u7F7C\u7F7A\u7FB1\u7FEF\u802A\u8029\u806C\u81B1\u81A6\u81AE\u81B9\u81B5\u81AB\u81B0\u81AC\u81B4\u81B2\u81B7\u81A7\u81F2\u8255\u8256\u8257\u8556\u8545\u856B\u854D\u8553\u8561\u8558"],
      ["eb40", "\u8540\u8546\u8564\u8541\u8562\u8544\u8551\u8547\u8563\u853E\u855B\u8571\u854E\u856E\u8575\u8555\u8567\u8560\u858C\u8566\u855D\u8554\u8565\u856C\u8663\u8665\u8664\u879B\u878F\u8797\u8793\u8792\u8788\u8781\u8796\u8798\u8779\u8787\u87A3\u8785\u8790\u8791\u879D\u8784\u8794\u879C\u879A\u8789\u891E\u8926\u8930\u892D\u892E\u8927\u8931\u8922\u8929\u8923\u892F\u892C\u891F\u89F1\u8AE0"],
      ["eba1", "\u8AE2\u8AF2\u8AF4\u8AF5\u8ADD\u8B14\u8AE4\u8ADF\u8AF0\u8AC8\u8ADE\u8AE1\u8AE8\u8AFF\u8AEF\u8AFB\u8C91\u8C92\u8C90\u8CF5\u8CEE\u8CF1\u8CF0\u8CF3\u8D6C\u8D6E\u8DA5\u8DA7\u8E33\u8E3E\u8E38\u8E40\u8E45\u8E36\u8E3C\u8E3D\u8E41\u8E30\u8E3F\u8EBD\u8F36\u8F2E\u8F35\u8F32\u8F39\u8F37\u8F34\u9076\u9079\u907B\u9086\u90FA\u9133\u9135\u9136\u9193\u9190\u9191\u918D\u918F\u9327\u931E\u9308\u931F\u9306\u930F\u937A\u9338\u933C\u931B\u9323\u9312\u9301\u9346\u932D\u930E\u930D\u92CB\u931D\u92FA\u9325\u9313\u92F9\u92F7\u9334\u9302\u9324\u92FF\u9329\u9339\u9335\u932A\u9314\u930C"],
      ["ec40", "\u930B\u92FE\u9309\u9300\u92FB\u9316\u95BC\u95CD\u95BE\u95B9\u95BA\u95B6\u95BF\u95B5\u95BD\u96A9\u96D4\u970B\u9712\u9710\u9799\u9797\u9794\u97F0\u97F8\u9835\u982F\u9832\u9924\u991F\u9927\u9929\u999E\u99EE\u99EC\u99E5\u99E4\u99F0\u99E3\u99EA\u99E9\u99E7\u9AB9\u9ABF\u9AB4\u9ABB\u9AF6\u9AFA\u9AF9\u9AF7\u9B33\u9B80\u9B85\u9B87\u9B7C\u9B7E\u9B7B\u9B82\u9B93\u9B92\u9B90\u9B7A\u9B95"],
      ["eca1", "\u9B7D\u9B88\u9D25\u9D17\u9D20\u9D1E\u9D14\u9D29\u9D1D\u9D18\u9D22\u9D10\u9D19\u9D1F\u9E88\u9E86\u9E87\u9EAE\u9EAD\u9ED5\u9ED6\u9EFA\u9F12\u9F3D\u5126\u5125\u5122\u5124\u5120\u5129\u52F4\u5693\u568C\u568D\u5686\u5684\u5683\u567E\u5682\u567F\u5681\u58D6\u58D4\u58CF\u58D2\u5B2D\u5B25\u5B32\u5B23\u5B2C\u5B27\u5B26\u5B2F\u5B2E\u5B7B\u5BF1\u5BF2\u5DB7\u5E6C\u5E6A\u5FBE\u5FBB\u61C3\u61B5\u61BC\u61E7\u61E0\u61E5\u61E4\u61E8\u61DE\u64EF\u64E9\u64E3\u64EB\u64E4\u64E8\u6581\u6580\u65B6\u65DA\u66D2\u6A8D\u6A96\u6A81\u6AA5\u6A89\u6A9F\u6A9B\u6AA1\u6A9E\u6A87\u6A93\u6A8E"],
      ["ed40", "\u6A95\u6A83\u6AA8\u6AA4\u6A91\u6A7F\u6AA6\u6A9A\u6A85\u6A8C\u6A92\u6B5B\u6BAD\u6C09\u6FCC\u6FA9\u6FF4\u6FD4\u6FE3\u6FDC\u6FED\u6FE7\u6FE6\u6FDE\u6FF2\u6FDD\u6FE2\u6FE8\u71E1\u71F1\u71E8\u71F2\u71E4\u71F0\u71E2\u7373\u736E\u736F\u7497\u74B2\u74AB\u7490\u74AA\u74AD\u74B1\u74A5\u74AF\u7510\u7511\u7512\u750F\u7584\u7643\u7648\u7649\u7647\u76A4\u76E9\u77B5\u77AB\u77B2\u77B7\u77B6"],
      ["eda1", "\u77B4\u77B1\u77A8\u77F0\u78F3\u78FD\u7902\u78FB\u78FC\u78F2\u7905\u78F9\u78FE\u7904\u79AB\u79A8\u7A5C\u7A5B\u7A56\u7A58\u7A54\u7A5A\u7ABE\u7AC0\u7AC1\u7C05\u7C0F\u7BF2\u7C00\u7BFF\u7BFB\u7C0E\u7BF4\u7C0B\u7BF3\u7C02\u7C09\u7C03\u7C01\u7BF8\u7BFD\u7C06\u7BF0\u7BF1\u7C10\u7C0A\u7CE8\u7E2D\u7E3C\u7E42\u7E33\u9848\u7E38\u7E2A\u7E49\u7E40\u7E47\u7E29\u7E4C\u7E30\u7E3B\u7E36\u7E44\u7E3A\u7F45\u7F7F\u7F7E\u7F7D\u7FF4\u7FF2\u802C\u81BB\u81C4\u81CC\u81CA\u81C5\u81C7\u81BC\u81E9\u825B\u825A\u825C\u8583\u8580\u858F\u85A7\u8595\u85A0\u858B\u85A3\u857B\u85A4\u859A\u859E"],
      ["ee40", "\u8577\u857C\u8589\u85A1\u857A\u8578\u8557\u858E\u8596\u8586\u858D\u8599\u859D\u8581\u85A2\u8582\u8588\u8585\u8579\u8576\u8598\u8590\u859F\u8668\u87BE\u87AA\u87AD\u87C5\u87B0\u87AC\u87B9\u87B5\u87BC\u87AE\u87C9\u87C3\u87C2\u87CC\u87B7\u87AF\u87C4\u87CA\u87B4\u87B6\u87BF\u87B8\u87BD\u87DE\u87B2\u8935\u8933\u893C\u893E\u8941\u8952\u8937\u8942\u89AD\u89AF\u89AE\u89F2\u89F3\u8B1E"],
      ["eea1", "\u8B18\u8B16\u8B11\u8B05\u8B0B\u8B22\u8B0F\u8B12\u8B15\u8B07\u8B0D\u8B08\u8B06\u8B1C\u8B13\u8B1A\u8C4F\u8C70\u8C72\u8C71\u8C6F\u8C95\u8C94\u8CF9\u8D6F\u8E4E\u8E4D\u8E53\u8E50\u8E4C\u8E47\u8F43\u8F40\u9085\u907E\u9138\u919A\u91A2\u919B\u9199\u919F\u91A1\u919D\u91A0\u93A1\u9383\u93AF\u9364\u9356\u9347\u937C\u9358\u935C\u9376\u9349\u9350\u9351\u9360\u936D\u938F\u934C\u936A\u9379\u9357\u9355\u9352\u934F\u9371\u9377\u937B\u9361\u935E\u9363\u9367\u9380\u934E\u9359\u95C7\u95C0\u95C9\u95C3\u95C5\u95B7\u96AE\u96B0\u96AC\u9720\u971F\u9718\u971D\u9719\u979A\u97A1\u979C"],
      ["ef40", "\u979E\u979D\u97D5\u97D4\u97F1\u9841\u9844\u984A\u9849\u9845\u9843\u9925\u992B\u992C\u992A\u9933\u9932\u992F\u992D\u9931\u9930\u9998\u99A3\u99A1\u9A02\u99FA\u99F4\u99F7\u99F9\u99F8\u99F6\u99FB\u99FD\u99FE\u99FC\u9A03\u9ABE\u9AFE\u9AFD\u9B01\u9AFC\u9B48\u9B9A\u9BA8\u9B9E\u9B9B\u9BA6\u9BA1\u9BA5\u9BA4\u9B86\u9BA2\u9BA0\u9BAF\u9D33\u9D41\u9D67\u9D36\u9D2E\u9D2F\u9D31\u9D38\u9D30"],
      ["efa1", "\u9D45\u9D42\u9D43\u9D3E\u9D37\u9D40\u9D3D\u7FF5\u9D2D\u9E8A\u9E89\u9E8D\u9EB0\u9EC8\u9EDA\u9EFB\u9EFF\u9F24\u9F23\u9F22\u9F54\u9FA0\u5131\u512D\u512E\u5698\u569C\u5697\u569A\u569D\u5699\u5970\u5B3C\u5C69\u5C6A\u5DC0\u5E6D\u5E6E\u61D8\u61DF\u61ED\u61EE\u61F1\u61EA\u61F0\u61EB\u61D6\u61E9\u64FF\u6504\u64FD\u64F8\u6501\u6503\u64FC\u6594\u65DB\u66DA\u66DB\u66D8\u6AC5\u6AB9\u6ABD\u6AE1\u6AC6\u6ABA\u6AB6\u6AB7\u6AC7\u6AB4\u6AAD\u6B5E\u6BC9\u6C0B\u7007\u700C\u700D\u7001\u7005\u7014\u700E\u6FFF\u7000\u6FFB\u7026\u6FFC\u6FF7\u700A\u7201\u71FF\u71F9\u7203\u71FD\u7376"],
      ["f040", "\u74B8\u74C0\u74B5\u74C1\u74BE\u74B6\u74BB\u74C2\u7514\u7513\u765C\u7664\u7659\u7650\u7653\u7657\u765A\u76A6\u76BD\u76EC\u77C2\u77BA\u78FF\u790C\u7913\u7914\u7909\u7910\u7912\u7911\u79AD\u79AC\u7A5F\u7C1C\u7C29\u7C19\u7C20\u7C1F\u7C2D\u7C1D\u7C26\u7C28\u7C22\u7C25\u7C30\u7E5C\u7E50\u7E56\u7E63\u7E58\u7E62\u7E5F\u7E51\u7E60\u7E57\u7E53\u7FB5\u7FB3\u7FF7\u7FF8\u8075\u81D1\u81D2"],
      ["f0a1", "\u81D0\u825F\u825E\u85B4\u85C6\u85C0\u85C3\u85C2\u85B3\u85B5\u85BD\u85C7\u85C4\u85BF\u85CB\u85CE\u85C8\u85C5\u85B1\u85B6\u85D2\u8624\u85B8\u85B7\u85BE\u8669\u87E7\u87E6\u87E2\u87DB\u87EB\u87EA\u87E5\u87DF\u87F3\u87E4\u87D4\u87DC\u87D3\u87ED\u87D8\u87E3\u87A4\u87D7\u87D9\u8801\u87F4\u87E8\u87DD\u8953\u894B\u894F\u894C\u8946\u8950\u8951\u8949\u8B2A\u8B27\u8B23\u8B33\u8B30\u8B35\u8B47\u8B2F\u8B3C\u8B3E\u8B31\u8B25\u8B37\u8B26\u8B36\u8B2E\u8B24\u8B3B\u8B3D\u8B3A\u8C42\u8C75\u8C99\u8C98\u8C97\u8CFE\u8D04\u8D02\u8D00\u8E5C\u8E62\u8E60\u8E57\u8E56\u8E5E\u8E65\u8E67"],
      ["f140", "\u8E5B\u8E5A\u8E61\u8E5D\u8E69\u8E54\u8F46\u8F47\u8F48\u8F4B\u9128\u913A\u913B\u913E\u91A8\u91A5\u91A7\u91AF\u91AA\u93B5\u938C\u9392\u93B7\u939B\u939D\u9389\u93A7\u938E\u93AA\u939E\u93A6\u9395\u9388\u9399\u939F\u938D\u93B1\u9391\u93B2\u93A4\u93A8\u93B4\u93A3\u93A5\u95D2\u95D3\u95D1\u96B3\u96D7\u96DA\u5DC2\u96DF\u96D8\u96DD\u9723\u9722\u9725\u97AC\u97AE\u97A8\u97AB\u97A4\u97AA"],
      ["f1a1", "\u97A2\u97A5\u97D7\u97D9\u97D6\u97D8\u97FA\u9850\u9851\u9852\u98B8\u9941\u993C\u993A\u9A0F\u9A0B\u9A09\u9A0D\u9A04\u9A11\u9A0A\u9A05\u9A07\u9A06\u9AC0\u9ADC\u9B08\u9B04\u9B05\u9B29\u9B35\u9B4A\u9B4C\u9B4B\u9BC7\u9BC6\u9BC3\u9BBF\u9BC1\u9BB5\u9BB8\u9BD3\u9BB6\u9BC4\u9BB9\u9BBD\u9D5C\u9D53\u9D4F\u9D4A\u9D5B\u9D4B\u9D59\u9D56\u9D4C\u9D57\u9D52\u9D54\u9D5F\u9D58\u9D5A\u9E8E\u9E8C\u9EDF\u9F01\u9F00\u9F16\u9F25\u9F2B\u9F2A\u9F29\u9F28\u9F4C\u9F55\u5134\u5135\u5296\u52F7\u53B4\u56AB\u56AD\u56A6\u56A7\u56AA\u56AC\u58DA\u58DD\u58DB\u5912\u5B3D\u5B3E\u5B3F\u5DC3\u5E70"],
      ["f240", "\u5FBF\u61FB\u6507\u6510\u650D\u6509\u650C\u650E\u6584\u65DE\u65DD\u66DE\u6AE7\u6AE0\u6ACC\u6AD1\u6AD9\u6ACB\u6ADF\u6ADC\u6AD0\u6AEB\u6ACF\u6ACD\u6ADE\u6B60\u6BB0\u6C0C\u7019\u7027\u7020\u7016\u702B\u7021\u7022\u7023\u7029\u7017\u7024\u701C\u702A\u720C\u720A\u7207\u7202\u7205\u72A5\u72A6\u72A4\u72A3\u72A1\u74CB\u74C5\u74B7\u74C3\u7516\u7660\u77C9\u77CA\u77C4\u77F1\u791D\u791B"],
      ["f2a1", "\u7921\u791C\u7917\u791E\u79B0\u7A67\u7A68\u7C33\u7C3C\u7C39\u7C2C\u7C3B\u7CEC\u7CEA\u7E76\u7E75\u7E78\u7E70\u7E77\u7E6F\u7E7A\u7E72\u7E74\u7E68\u7F4B\u7F4A\u7F83\u7F86\u7FB7\u7FFD\u7FFE\u8078\u81D7\u81D5\u8264\u8261\u8263\u85EB\u85F1\u85ED\u85D9\u85E1\u85E8\u85DA\u85D7\u85EC\u85F2\u85F8\u85D8\u85DF\u85E3\u85DC\u85D1\u85F0\u85E6\u85EF\u85DE\u85E2\u8800\u87FA\u8803\u87F6\u87F7\u8809\u880C\u880B\u8806\u87FC\u8808\u87FF\u880A\u8802\u8962\u895A\u895B\u8957\u8961\u895C\u8958\u895D\u8959\u8988\u89B7\u89B6\u89F6\u8B50\u8B48\u8B4A\u8B40\u8B53\u8B56\u8B54\u8B4B\u8B55"],
      ["f340", "\u8B51\u8B42\u8B52\u8B57\u8C43\u8C77\u8C76\u8C9A\u8D06\u8D07\u8D09\u8DAC\u8DAA\u8DAD\u8DAB\u8E6D\u8E78\u8E73\u8E6A\u8E6F\u8E7B\u8EC2\u8F52\u8F51\u8F4F\u8F50\u8F53\u8FB4\u9140\u913F\u91B0\u91AD\u93DE\u93C7\u93CF\u93C2\u93DA\u93D0\u93F9\u93EC\u93CC\u93D9\u93A9\u93E6\u93CA\u93D4\u93EE\u93E3\u93D5\u93C4\u93CE\u93C0\u93D2\u93E7\u957D\u95DA\u95DB\u96E1\u9729\u972B\u972C\u9728\u9726"],
      ["f3a1", "\u97B3\u97B7\u97B6\u97DD\u97DE\u97DF\u985C\u9859\u985D\u9857\u98BF\u98BD\u98BB\u98BE\u9948\u9947\u9943\u99A6\u99A7\u9A1A\u9A15\u9A25\u9A1D\u9A24\u9A1B\u9A22\u9A20\u9A27\u9A23\u9A1E\u9A1C\u9A14\u9AC2\u9B0B\u9B0A\u9B0E\u9B0C\u9B37\u9BEA\u9BEB\u9BE0\u9BDE\u9BE4\u9BE6\u9BE2\u9BF0\u9BD4\u9BD7\u9BEC\u9BDC\u9BD9\u9BE5\u9BD5\u9BE1\u9BDA\u9D77\u9D81\u9D8A\u9D84\u9D88\u9D71\u9D80\u9D78\u9D86\u9D8B\u9D8C\u9D7D\u9D6B\u9D74\u9D75\u9D70\u9D69\u9D85\u9D73\u9D7B\u9D82\u9D6F\u9D79\u9D7F\u9D87\u9D68\u9E94\u9E91\u9EC0\u9EFC\u9F2D\u9F40\u9F41\u9F4D\u9F56\u9F57\u9F58\u5337\u56B2"],
      ["f440", "\u56B5\u56B3\u58E3\u5B45\u5DC6\u5DC7\u5EEE\u5EEF\u5FC0\u5FC1\u61F9\u6517\u6516\u6515\u6513\u65DF\u66E8\u66E3\u66E4\u6AF3\u6AF0\u6AEA\u6AE8\u6AF9\u6AF1\u6AEE\u6AEF\u703C\u7035\u702F\u7037\u7034\u7031\u7042\u7038\u703F\u703A\u7039\u7040\u703B\u7033\u7041\u7213\u7214\u72A8\u737D\u737C\u74BA\u76AB\u76AA\u76BE\u76ED\u77CC\u77CE\u77CF\u77CD\u77F2\u7925\u7923\u7927\u7928\u7924\u7929"],
      ["f4a1", "\u79B2\u7A6E\u7A6C\u7A6D\u7AF7\u7C49\u7C48\u7C4A\u7C47\u7C45\u7CEE\u7E7B\u7E7E\u7E81\u7E80\u7FBA\u7FFF\u8079\u81DB\u81D9\u820B\u8268\u8269\u8622\u85FF\u8601\u85FE\u861B\u8600\u85F6\u8604\u8609\u8605\u860C\u85FD\u8819\u8810\u8811\u8817\u8813\u8816\u8963\u8966\u89B9\u89F7\u8B60\u8B6A\u8B5D\u8B68\u8B63\u8B65\u8B67\u8B6D\u8DAE\u8E86\u8E88\u8E84\u8F59\u8F56\u8F57\u8F55\u8F58\u8F5A\u908D\u9143\u9141\u91B7\u91B5\u91B2\u91B3\u940B\u9413\u93FB\u9420\u940F\u9414\u93FE\u9415\u9410\u9428\u9419\u940D\u93F5\u9400\u93F7\u9407\u940E\u9416\u9412\u93FA\u9409\u93F8\u940A\u93FF"],
      ["f540", "\u93FC\u940C\u93F6\u9411\u9406\u95DE\u95E0\u95DF\u972E\u972F\u97B9\u97BB\u97FD\u97FE\u9860\u9862\u9863\u985F\u98C1\u98C2\u9950\u994E\u9959\u994C\u994B\u9953\u9A32\u9A34\u9A31\u9A2C\u9A2A\u9A36\u9A29\u9A2E\u9A38\u9A2D\u9AC7\u9ACA\u9AC6\u9B10\u9B12\u9B11\u9C0B\u9C08\u9BF7\u9C05\u9C12\u9BF8\u9C40\u9C07\u9C0E\u9C06\u9C17\u9C14\u9C09\u9D9F\u9D99\u9DA4\u9D9D\u9D92\u9D98\u9D90\u9D9B"],
      ["f5a1", "\u9DA0\u9D94\u9D9C\u9DAA\u9D97\u9DA1\u9D9A\u9DA2\u9DA8\u9D9E\u9DA3\u9DBF\u9DA9\u9D96\u9DA6\u9DA7\u9E99\u9E9B\u9E9A\u9EE5\u9EE4\u9EE7\u9EE6\u9F30\u9F2E\u9F5B\u9F60\u9F5E\u9F5D\u9F59\u9F91\u513A\u5139\u5298\u5297\u56C3\u56BD\u56BE\u5B48\u5B47\u5DCB\u5DCF\u5EF1\u61FD\u651B\u6B02\u6AFC\u6B03\u6AF8\u6B00\u7043\u7044\u704A\u7048\u7049\u7045\u7046\u721D\u721A\u7219\u737E\u7517\u766A\u77D0\u792D\u7931\u792F\u7C54\u7C53\u7CF2\u7E8A\u7E87\u7E88\u7E8B\u7E86\u7E8D\u7F4D\u7FBB\u8030\u81DD\u8618\u862A\u8626\u861F\u8623\u861C\u8619\u8627\u862E\u8621\u8620\u8629\u861E\u8625"],
      ["f640", "\u8829\u881D\u881B\u8820\u8824\u881C\u882B\u884A\u896D\u8969\u896E\u896B\u89FA\u8B79\u8B78\u8B45\u8B7A\u8B7B\u8D10\u8D14\u8DAF\u8E8E\u8E8C\u8F5E\u8F5B\u8F5D\u9146\u9144\u9145\u91B9\u943F\u943B\u9436\u9429\u943D\u943C\u9430\u9439\u942A\u9437\u942C\u9440\u9431\u95E5\u95E4\u95E3\u9735\u973A\u97BF\u97E1\u9864\u98C9\u98C6\u98C0\u9958\u9956\u9A39\u9A3D\u9A46\u9A44\u9A42\u9A41\u9A3A"],
      ["f6a1", "\u9A3F\u9ACD\u9B15\u9B17\u9B18\u9B16\u9B3A\u9B52\u9C2B\u9C1D\u9C1C\u9C2C\u9C23\u9C28\u9C29\u9C24\u9C21\u9DB7\u9DB6\u9DBC\u9DC1\u9DC7\u9DCA\u9DCF\u9DBE\u9DC5\u9DC3\u9DBB\u9DB5\u9DCE\u9DB9\u9DBA\u9DAC\u9DC8\u9DB1\u9DAD\u9DCC\u9DB3\u9DCD\u9DB2\u9E7A\u9E9C\u9EEB\u9EEE\u9EED\u9F1B\u9F18\u9F1A\u9F31\u9F4E\u9F65\u9F64\u9F92\u4EB9\u56C6\u56C5\u56CB\u5971\u5B4B\u5B4C\u5DD5\u5DD1\u5EF2\u6521\u6520\u6526\u6522\u6B0B\u6B08\u6B09\u6C0D\u7055\u7056\u7057\u7052\u721E\u721F\u72A9\u737F\u74D8\u74D5\u74D9\u74D7\u766D\u76AD\u7935\u79B4\u7A70\u7A71\u7C57\u7C5C\u7C59\u7C5B\u7C5A"],
      ["f740", "\u7CF4\u7CF1\u7E91\u7F4F\u7F87\u81DE\u826B\u8634\u8635\u8633\u862C\u8632\u8636\u882C\u8828\u8826\u882A\u8825\u8971\u89BF\u89BE\u89FB\u8B7E\u8B84\u8B82\u8B86\u8B85\u8B7F\u8D15\u8E95\u8E94\u8E9A\u8E92\u8E90\u8E96\u8E97\u8F60\u8F62\u9147\u944C\u9450\u944A\u944B\u944F\u9447\u9445\u9448\u9449\u9446\u973F\u97E3\u986A\u9869\u98CB\u9954\u995B\u9A4E\u9A53\u9A54\u9A4C\u9A4F\u9A48\u9A4A"],
      ["f7a1", "\u9A49\u9A52\u9A50\u9AD0\u9B19\u9B2B\u9B3B\u9B56\u9B55\u9C46\u9C48\u9C3F\u9C44\u9C39\u9C33\u9C41\u9C3C\u9C37\u9C34\u9C32\u9C3D\u9C36\u9DDB\u9DD2\u9DDE\u9DDA\u9DCB\u9DD0\u9DDC\u9DD1\u9DDF\u9DE9\u9DD9\u9DD8\u9DD6\u9DF5\u9DD5\u9DDD\u9EB6\u9EF0\u9F35\u9F33\u9F32\u9F42\u9F6B\u9F95\u9FA2\u513D\u5299\u58E8\u58E7\u5972\u5B4D\u5DD8\u882F\u5F4F\u6201\u6203\u6204\u6529\u6525\u6596\u66EB\u6B11\u6B12\u6B0F\u6BCA\u705B\u705A\u7222\u7382\u7381\u7383\u7670\u77D4\u7C67\u7C66\u7E95\u826C\u863A\u8640\u8639\u863C\u8631\u863B\u863E\u8830\u8832\u882E\u8833\u8976\u8974\u8973\u89FE"],
      ["f840", "\u8B8C\u8B8E\u8B8B\u8B88\u8C45\u8D19\u8E98\u8F64\u8F63\u91BC\u9462\u9455\u945D\u9457\u945E\u97C4\u97C5\u9800\u9A56\u9A59\u9B1E\u9B1F\u9B20\u9C52\u9C58\u9C50\u9C4A\u9C4D\u9C4B\u9C55\u9C59\u9C4C\u9C4E\u9DFB\u9DF7\u9DEF\u9DE3\u9DEB\u9DF8\u9DE4\u9DF6\u9DE1\u9DEE\u9DE6\u9DF2\u9DF0\u9DE2\u9DEC\u9DF4\u9DF3\u9DE8\u9DED\u9EC2\u9ED0\u9EF2\u9EF3\u9F06\u9F1C\u9F38\u9F37\u9F36\u9F43\u9F4F"],
      ["f8a1", "\u9F71\u9F70\u9F6E\u9F6F\u56D3\u56CD\u5B4E\u5C6D\u652D\u66ED\u66EE\u6B13\u705F\u7061\u705D\u7060\u7223\u74DB\u74E5\u77D5\u7938\u79B7\u79B6\u7C6A\u7E97\u7F89\u826D\u8643\u8838\u8837\u8835\u884B\u8B94\u8B95\u8E9E\u8E9F\u8EA0\u8E9D\u91BE\u91BD\u91C2\u946B\u9468\u9469\u96E5\u9746\u9743\u9747\u97C7\u97E5\u9A5E\u9AD5\u9B59\u9C63\u9C67\u9C66\u9C62\u9C5E\u9C60\u9E02\u9DFE\u9E07\u9E03\u9E06\u9E05\u9E00\u9E01\u9E09\u9DFF\u9DFD\u9E04\u9EA0\u9F1E\u9F46\u9F74\u9F75\u9F76\u56D4\u652E\u65B8\u6B18\u6B19\u6B17\u6B1A\u7062\u7226\u72AA\u77D8\u77D9\u7939\u7C69\u7C6B\u7CF6\u7E9A"],
      ["f940", "\u7E98\u7E9B\u7E99\u81E0\u81E1\u8646\u8647\u8648\u8979\u897A\u897C\u897B\u89FF\u8B98\u8B99\u8EA5\u8EA4\u8EA3\u946E\u946D\u946F\u9471\u9473\u9749\u9872\u995F\u9C68\u9C6E\u9C6D\u9E0B\u9E0D\u9E10\u9E0F\u9E12\u9E11\u9EA1\u9EF5\u9F09\u9F47\u9F78\u9F7B\u9F7A\u9F79\u571E\u7066\u7C6F\u883C\u8DB2\u8EA6\u91C3\u9474\u9478\u9476\u9475\u9A60\u9C74\u9C73\u9C71\u9C75\u9E14\u9E13\u9EF6\u9F0A"],
      ["f9a1", "\u9FA4\u7068\u7065\u7CF7\u866A\u883E\u883D\u883F\u8B9E\u8C9C\u8EA9\u8EC9\u974B\u9873\u9874\u98CC\u9961\u99AB\u9A64\u9A66\u9A67\u9B24\u9E15\u9E17\u9F48\u6207\u6B1E\u7227\u864C\u8EA8\u9482\u9480\u9481\u9A69\u9A68\u9B2E\u9E19\u7229\u864B\u8B9F\u9483\u9C79\u9EB7\u7675\u9A6B\u9C7A\u9E1D\u7069\u706A\u9EA4\u9F7E\u9F49\u9F98\u7881\u92B9\u88CF\u58BB\u6052\u7CA7\u5AFA\u2554\u2566\u2557\u2560\u256C\u2563\u255A\u2569\u255D\u2552\u2564\u2555\u255E\u256A\u2561\u2558\u2567\u255B\u2553\u2565\u2556\u255F\u256B\u2562\u2559\u2568\u255C\u2551\u2550\u256D\u256E\u2570\u256F\u2593"]
    ];
  }
});

// node_modules/iconv-lite/encodings/tables/big5-added.json
var require_big5_added = __commonJS({
  "node_modules/iconv-lite/encodings/tables/big5-added.json"(exports2, module2) {
    module2.exports = [
      ["8740", "\u43F0\u4C32\u4603\u45A6\u4578\u{27267}\u4D77\u45B3\u{27CB1}\u4CE2\u{27CC5}\u3B95\u4736\u4744\u4C47\u4C40\u{242BF}\u{23617}\u{27352}\u{26E8B}\u{270D2}\u4C57\u{2A351}\u474F\u45DA\u4C85\u{27C6C}\u4D07\u4AA4\u46A1\u{26B23}\u7225\u{25A54}\u{21A63}\u{23E06}\u{23F61}\u664D\u56FB"],
      ["8767", "\u7D95\u591D\u{28BB9}\u3DF4\u9734\u{27BEF}\u5BDB\u{21D5E}\u5AA4\u3625\u{29EB0}\u5AD1\u5BB7\u5CFC\u676E\u8593\u{29945}\u7461\u749D\u3875\u{21D53}\u{2369E}\u{26021}\u3EEC"],
      ["87a1", "\u{258DE}\u3AF5\u7AFC\u9F97\u{24161}\u{2890D}\u{231EA}\u{20A8A}\u{2325E}\u430A\u8484\u9F96\u942F\u4930\u8613\u5896\u974A\u9218\u79D0\u7A32\u6660\u6A29\u889D\u744C\u7BC5\u6782\u7A2C\u524F\u9046\u34E6\u73C4\u{25DB9}\u74C6\u9FC7\u57B3\u492F\u544C\u4131\u{2368E}\u5818\u7A72\u{27B65}\u8B8F\u46AE\u{26E88}\u4181\u{25D99}\u7BAE\u{224BC}\u9FC8\u{224C1}\u{224C9}\u{224CC}\u9FC9\u8504\u{235BB}\u40B4\u9FCA\u44E1\u{2ADFF}\u62C1\u706E\u9FCB"],
      ["8840", "\u31C0", 4, "\u{2010C}\u31C5\u{200D1}\u{200CD}\u31C6\u31C7\u{200CB}\u{21FE8}\u31C8\u{200CA}\u31C9\u31CA\u31CB\u31CC\u{2010E}\u31CD\u31CE\u0100\xC1\u01CD\xC0\u0112\xC9\u011A\xC8\u014C\xD3\u01D1\xD2\u0FFF\xCA\u0304\u1EBE\u0FFF\xCA\u030C\u1EC0\xCA\u0101\xE1\u01CE\xE0\u0251\u0113\xE9\u011B\xE8\u012B\xED\u01D0\xEC\u014D\xF3\u01D2\xF2\u016B\xFA\u01D4\xF9\u01D6\u01D8\u01DA"],
      ["88a1", "\u01DC\xFC\u0FFF\xEA\u0304\u1EBF\u0FFF\xEA\u030C\u1EC1\xEA\u0261\u23DA\u23DB"],
      ["8940", "\u{2A3A9}\u{21145}"],
      ["8943", "\u650A"],
      ["8946", "\u4E3D\u6EDD\u9D4E\u91DF"],
      ["894c", "\u{27735}\u6491\u4F1A\u4F28\u4FA8\u5156\u5174\u519C\u51E4\u52A1\u52A8\u533B\u534E\u53D1\u53D8\u56E2\u58F0\u5904\u5907\u5932\u5934\u5B66\u5B9E\u5B9F\u5C9A\u5E86\u603B\u6589\u67FE\u6804\u6865\u6D4E\u70BC\u7535\u7EA4\u7EAC\u7EBA\u7EC7\u7ECF\u7EDF\u7F06\u7F37\u827A\u82CF\u836F\u89C6\u8BBE\u8BE2\u8F66\u8F67\u8F6E"],
      ["89a1", "\u7411\u7CFC\u7DCD\u6946\u7AC9\u5227"],
      ["89ab", "\u918C\u78B8\u915E\u80BC"],
      ["89b0", "\u8D0B\u80F6\u{209E7}"],
      ["89b5", "\u809F\u9EC7\u4CCD\u9DC9\u9E0C\u4C3E\u{29DF6}\u{2700E}\u9E0A\u{2A133}\u35C1"],
      ["89c1", "\u6E9A\u823E\u7519"],
      ["89c5", "\u4911\u9A6C\u9A8F\u9F99\u7987\u{2846C}\u{21DCA}\u{205D0}\u{22AE6}\u4E24\u4E81\u4E80\u4E87\u4EBF\u4EEB\u4F37\u344C\u4FBD\u3E48\u5003\u5088\u347D\u3493\u34A5\u5186\u5905\u51DB\u51FC\u5205\u4E89\u5279\u5290\u5327\u35C7\u53A9\u3551\u53B0\u3553\u53C2\u5423\u356D\u3572\u3681\u5493\u54A3\u54B4\u54B9\u54D0\u54EF\u5518\u5523\u5528\u3598\u553F\u35A5\u35BF\u55D7\u35C5"],
      ["8a40", "\u{27D84}\u5525"],
      ["8a43", "\u{20C42}\u{20D15}\u{2512B}\u5590\u{22CC6}\u39EC\u{20341}\u8E46\u{24DB8}\u{294E5}\u4053\u{280BE}\u777A\u{22C38}\u3A34\u47D5\u{2815D}\u{269F2}\u{24DEA}\u64DD\u{20D7C}\u{20FB4}\u{20CD5}\u{210F4}\u648D\u8E7E\u{20E96}\u{20C0B}\u{20F64}\u{22CA9}\u{28256}\u{244D3}"],
      ["8a64", "\u{20D46}\u{29A4D}\u{280E9}\u47F4\u{24EA7}\u{22CC2}\u9AB2\u3A67\u{295F4}\u3FED\u3506\u{252C7}\u{297D4}\u{278C8}\u{22D44}\u9D6E\u9815"],
      ["8a76", "\u43D9\u{260A5}\u64B4\u54E3\u{22D4C}\u{22BCA}\u{21077}\u39FB\u{2106F}"],
      ["8aa1", "\u{266DA}\u{26716}\u{279A0}\u64EA\u{25052}\u{20C43}\u8E68\u{221A1}\u{28B4C}\u{20731}"],
      ["8aac", "\u480B\u{201A9}\u3FFA\u5873\u{22D8D}"],
      ["8ab2", "\u{245C8}\u{204FC}\u{26097}\u{20F4C}\u{20D96}\u5579\u40BB\u43BA"],
      ["8abb", "\u4AB4\u{22A66}\u{2109D}\u81AA\u98F5\u{20D9C}\u6379\u39FE\u{22775}\u8DC0\u56A1\u647C\u3E43"],
      ["8ac9", "\u{2A601}\u{20E09}\u{22ACF}\u{22CC9}"],
      ["8ace", "\u{210C8}\u{239C2}\u3992\u3A06\u{2829B}\u3578\u{25E49}\u{220C7}\u5652\u{20F31}\u{22CB2}\u{29720}\u34BC\u6C3D\u{24E3B}"],
      ["8adf", "\u{27574}\u{22E8B}\u{22208}\u{2A65B}\u{28CCD}\u{20E7A}\u{20C34}\u{2681C}\u7F93\u{210CF}\u{22803}\u{22939}\u35FB\u{251E3}\u{20E8C}\u{20F8D}\u{20EAA}\u3F93\u{20F30}\u{20D47}\u{2114F}\u{20E4C}"],
      ["8af6", "\u{20EAB}\u{20BA9}\u{20D48}\u{210C0}\u{2113D}\u3FF9\u{22696}\u6432\u{20FAD}"],
      ["8b40", "\u{233F4}\u{27639}\u{22BCE}\u{20D7E}\u{20D7F}\u{22C51}\u{22C55}\u3A18\u{20E98}\u{210C7}\u{20F2E}\u{2A632}\u{26B50}\u{28CD2}\u{28D99}\u{28CCA}\u95AA\u54CC\u82C4\u55B9"],
      ["8b55", "\u{29EC3}\u9C26\u9AB6\u{2775E}\u{22DEE}\u7140\u816D\u80EC\u5C1C\u{26572}\u8134\u3797\u535F\u{280BD}\u91B6\u{20EFA}\u{20E0F}\u{20E77}\u{20EFB}\u35DD\u{24DEB}\u3609\u{20CD6}\u56AF\u{227B5}\u{210C9}\u{20E10}\u{20E78}\u{21078}\u{21148}\u{28207}\u{21455}\u{20E79}\u{24E50}\u{22DA4}\u5A54\u{2101D}\u{2101E}\u{210F5}\u{210F6}\u579C\u{20E11}"],
      ["8ba1", "\u{27694}\u{282CD}\u{20FB5}\u{20E7B}\u{2517E}\u3703\u{20FB6}\u{21180}\u{252D8}\u{2A2BD}\u{249DA}\u{2183A}\u{24177}\u{2827C}\u5899\u5268\u361A\u{2573D}\u7BB2\u5B68\u4800\u4B2C\u9F27\u49E7\u9C1F\u9B8D\u{25B74}\u{2313D}\u55FB\u35F2\u5689\u4E28\u5902\u{21BC1}\u{2F878}\u9751\u{20086}\u4E5B\u4EBB\u353E\u5C23\u5F51\u5FC4\u38FA\u624C\u6535\u6B7A\u6C35\u6C3A\u706C\u722B\u4E2C\u72AD\u{248E9}\u7F52\u793B\u7CF9\u7F53\u{2626A}\u34C1"],
      ["8bde", "\u{2634B}\u8002\u8080\u{26612}\u{26951}\u535D\u8864\u89C1\u{278B2}\u8BA0\u8D1D\u9485\u9578\u957F\u95E8\u{28E0F}\u97E6\u9875\u98CE\u98DE\u9963\u{29810}\u9C7C\u9E1F\u9EC4\u6B6F\uF907\u4E37\u{20087}\u961D\u6237\u94A2"],
      ["8c40", "\u503B\u6DFE\u{29C73}\u9FA6\u3DC9\u888F\u{2414E}\u7077\u5CF5\u4B20\u{251CD}\u3559\u{25D30}\u6122\u{28A32}\u8FA7\u91F6\u7191\u6719\u73BA\u{23281}\u{2A107}\u3C8B\u{21980}\u4B10\u78E4\u7402\u51AE\u{2870F}\u4009\u6A63\u{2A2BA}\u4223\u860F\u{20A6F}\u7A2A\u{29947}\u{28AEA}\u9755\u704D\u5324\u{2207E}\u93F4\u76D9\u{289E3}\u9FA7\u77DD\u4EA3\u4FF0\u50BC\u4E2F\u4F17\u9FA8\u5434\u7D8B\u5892\u58D0\u{21DB6}\u5E92\u5E99\u5FC2\u{22712}\u658B"],
      ["8ca1", "\u{233F9}\u6919\u6A43\u{23C63}\u6CFF"],
      ["8ca7", "\u7200\u{24505}\u738C\u3EDB\u{24A13}\u5B15\u74B9\u8B83\u{25CA4}\u{25695}\u7A93\u7BEC\u7CC3\u7E6C\u82F8\u8597\u9FA9\u8890\u9FAA\u8EB9\u9FAB\u8FCF\u855F\u99E0\u9221\u9FAC\u{28DB9}\u{2143F}\u4071\u42A2\u5A1A"],
      ["8cc9", "\u9868\u676B\u4276\u573D"],
      ["8cce", "\u85D6\u{2497B}\u82BF\u{2710D}\u4C81\u{26D74}\u5D7B\u{26B15}\u{26FBE}\u9FAD\u9FAE\u5B96\u9FAF\u66E7\u7E5B\u6E57\u79CA\u3D88\u44C3\u{23256}\u{22796}\u439A\u4536"],
      ["8ce6", "\u5CD5\u{23B1A}\u8AF9\u5C78\u3D12\u{23551}\u5D78\u9FB2\u7157\u4558\u{240EC}\u{21E23}\u4C77\u3978\u344A\u{201A4}\u{26C41}\u8ACC\u4FB4\u{20239}\u59BF\u816C\u9856\u{298FA}\u5F3B"],
      ["8d40", "\u{20B9F}"],
      ["8d42", "\u{221C1}\u{2896D}\u4102\u46BB\u{29079}\u3F07\u9FB3\u{2A1B5}\u40F8\u37D6\u46F7\u{26C46}\u417C\u{286B2}\u{273FF}\u456D\u38D4\u{2549A}\u4561\u451B\u4D89\u4C7B\u4D76\u45EA\u3FC8\u{24B0F}\u3661\u44DE\u44BD\u41ED\u5D3E\u5D48\u5D56\u3DFC\u380F\u5DA4\u5DB9\u3820\u3838\u5E42\u5EBD\u5F25\u5F83\u3908\u3914\u393F\u394D\u60D7\u613D\u5CE5\u3989\u61B7\u61B9\u61CF\u39B8\u622C\u6290\u62E5\u6318\u39F8\u56B1"],
      ["8da1", "\u3A03\u63E2\u63FB\u6407\u645A\u3A4B\u64C0\u5D15\u5621\u9F9F\u3A97\u6586\u3ABD\u65FF\u6653\u3AF2\u6692\u3B22\u6716\u3B42\u67A4\u6800\u3B58\u684A\u6884\u3B72\u3B71\u3B7B\u6909\u6943\u725C\u6964\u699F\u6985\u3BBC\u69D6\u3BDD\u6A65\u6A74\u6A71\u6A82\u3BEC\u6A99\u3BF2\u6AAB\u6AB5\u6AD4\u6AF6\u6B81\u6BC1\u6BEA\u6C75\u6CAA\u3CCB\u6D02\u6D06\u6D26\u6D81\u3CEF\u6DA4\u6DB1\u6E15\u6E18\u6E29\u6E86\u{289C0}\u6EBB\u6EE2\u6EDA\u9F7F\u6EE8\u6EE9\u6F24\u6F34\u3D46\u{23F41}\u6F81\u6FBE\u3D6A\u3D75\u71B7\u5C99\u3D8A\u702C\u3D91\u7050\u7054\u706F\u707F\u7089\u{20325}\u43C1\u35F1\u{20ED8}"],
      ["8e40", "\u{23ED7}\u57BE\u{26ED3}\u713E\u{257E0}\u364E\u69A2\u{28BE9}\u5B74\u7A49\u{258E1}\u{294D9}\u7A65\u7A7D\u{259AC}\u7ABB\u7AB0\u7AC2\u7AC3\u71D1\u{2648D}\u41CA\u7ADA\u7ADD\u7AEA\u41EF\u54B2\u{25C01}\u7B0B\u7B55\u7B29\u{2530E}\u{25CFE}\u7BA2\u7B6F\u839C\u{25BB4}\u{26C7F}\u7BD0\u8421\u7B92\u7BB8\u{25D20}\u3DAD\u{25C65}\u8492\u7BFA\u7C06\u7C35\u{25CC1}\u7C44\u7C83\u{24882}\u7CA6\u667D\u{24578}\u7CC9\u7CC7\u7CE6\u7C74\u7CF3\u7CF5\u7CCE"],
      ["8ea1", "\u7E67\u451D\u{26E44}\u7D5D\u{26ED6}\u748D\u7D89\u7DAB\u7135\u7DB3\u7DD2\u{24057}\u{26029}\u7DE4\u3D13\u7DF5\u{217F9}\u7DE5\u{2836D}\u7E1D\u{26121}\u{2615A}\u7E6E\u7E92\u432B\u946C\u7E27\u7F40\u7F41\u7F47\u7936\u{262D0}\u99E1\u7F97\u{26351}\u7FA3\u{21661}\u{20068}\u455C\u{23766}\u4503\u{2833A}\u7FFA\u{26489}\u8005\u8008\u801D\u8028\u802F\u{2A087}\u{26CC3}\u803B\u803C\u8061\u{22714}\u4989\u{26626}\u{23DE3}\u{266E8}\u6725\u80A7\u{28A48}\u8107\u811A\u58B0\u{226F6}\u6C7F\u{26498}\u{24FB8}\u64E7\u{2148A}\u8218\u{2185E}\u6A53\u{24A65}\u{24A95}\u447A\u8229\u{20B0D}\u{26A52}\u{23D7E}\u4FF9\u{214FD}\u84E2\u8362\u{26B0A}\u{249A7}\u{23530}\u{21773}\u{23DF8}\u82AA\u691B\u{2F994}\u41DB"],
      ["8f40", "\u854B\u82D0\u831A\u{20E16}\u{217B4}\u36C1\u{2317D}\u{2355A}\u827B\u82E2\u8318\u{23E8B}\u{26DA3}\u{26B05}\u{26B97}\u{235CE}\u3DBF\u831D\u55EC\u8385\u450B\u{26DA5}\u83AC\u83C1\u83D3\u347E\u{26ED4}\u6A57\u855A\u3496\u{26E42}\u{22EEF}\u8458\u{25BE4}\u8471\u3DD3\u44E4\u6AA7\u844A\u{23CB5}\u7958\u84A8\u{26B96}\u{26E77}\u{26E43}\u84DE\u840F\u8391\u44A0\u8493\u84E4\u{25C91}\u4240\u{25CC0}\u4543\u8534\u5AF2\u{26E99}\u4527\u8573\u4516\u67BF\u8616"],
      ["8fa1", "\u{28625}\u{2863B}\u85C1\u{27088}\u8602\u{21582}\u{270CD}\u{2F9B2}\u456A\u8628\u3648\u{218A2}\u53F7\u{2739A}\u867E\u8771\u{2A0F8}\u87EE\u{22C27}\u87B1\u87DA\u880F\u5661\u866C\u6856\u460F\u8845\u8846\u{275E0}\u{23DB9}\u{275E4}\u885E\u889C\u465B\u88B4\u88B5\u63C1\u88C5\u7777\u{2770F}\u8987\u898A\u89A6\u89A9\u89A7\u89BC\u{28A25}\u89E7\u{27924}\u{27ABD}\u8A9C\u7793\u91FE\u8A90\u{27A59}\u7AE9\u{27B3A}\u{23F8F}\u4713\u{27B38}\u717C\u8B0C\u8B1F\u{25430}\u{25565}\u8B3F\u8B4C\u8B4D\u8AA9\u{24A7A}\u8B90\u8B9B\u8AAF\u{216DF}\u4615\u884F\u8C9B\u{27D54}\u{27D8F}\u{2F9D4}\u3725\u{27D53}\u8CD6\u{27D98}\u{27DBD}\u8D12\u8D03\u{21910}\u8CDB\u705C\u8D11\u{24CC9}\u3ED0\u8D77"],
      ["9040", "\u8DA9\u{28002}\u{21014}\u{2498A}\u3B7C\u{281BC}\u{2710C}\u7AE7\u8EAD\u8EB6\u8EC3\u92D4\u8F19\u8F2D\u{28365}\u{28412}\u8FA5\u9303\u{2A29F}\u{20A50}\u8FB3\u492A\u{289DE}\u{2853D}\u{23DBB}\u5EF8\u{23262}\u8FF9\u{2A014}\u{286BC}\u{28501}\u{22325}\u3980\u{26ED7}\u9037\u{2853C}\u{27ABE}\u9061\u{2856C}\u{2860B}\u90A8\u{28713}\u90C4\u{286E6}\u90AE\u90FD\u9167\u3AF0\u91A9\u91C4\u7CAC\u{28933}\u{21E89}\u920E\u6C9F\u9241\u9262\u{255B9}\u92B9\u{28AC6}\u{23C9B}\u{28B0C}\u{255DB}"],
      ["90a1", "\u{20D31}\u932C\u936B\u{28AE1}\u{28BEB}\u708F\u5AC3\u{28AE2}\u{28AE5}\u4965\u9244\u{28BEC}\u{28C39}\u{28BFF}\u9373\u945B\u8EBC\u9585\u95A6\u9426\u95A0\u6FF6\u42B9\u{2267A}\u{286D8}\u{2127C}\u{23E2E}\u49DF\u6C1C\u967B\u9696\u416C\u96A3\u{26ED5}\u61DA\u96B6\u78F5\u{28AE0}\u96BD\u53CC\u49A1\u{26CB8}\u{20274}\u{26410}\u{290AF}\u{290E5}\u{24AD1}\u{21915}\u{2330A}\u9731\u8642\u9736\u4A0F\u453D\u4585\u{24AE9}\u7075\u5B41\u971B\u975C\u{291D5}\u9757\u5B4A\u{291EB}\u975F\u9425\u50D0\u{230B7}\u{230BC}\u9789\u979F\u97B1\u97BE\u97C0\u97D2\u97E0\u{2546C}\u97EE\u741C\u{29433}\u97FF\u97F5\u{2941D}\u{2797A}\u4AD1\u9834\u9833\u984B\u9866\u3B0E\u{27175}\u3D51\u{20630}\u{2415C}"],
      ["9140", "\u{25706}\u98CA\u98B7\u98C8\u98C7\u4AFF\u{26D27}\u{216D3}\u55B0\u98E1\u98E6\u98EC\u9378\u9939\u{24A29}\u4B72\u{29857}\u{29905}\u99F5\u9A0C\u9A3B\u9A10\u9A58\u{25725}\u36C4\u{290B1}\u{29BD5}\u9AE0\u9AE2\u{29B05}\u9AF4\u4C0E\u9B14\u9B2D\u{28600}\u5034\u9B34\u{269A8}\u38C3\u{2307D}\u9B50\u9B40\u{29D3E}\u5A45\u{21863}\u9B8E\u{2424B}\u9C02\u9BFF\u9C0C\u{29E68}\u9DD4\u{29FB7}\u{2A192}\u{2A1AB}\u{2A0E1}\u{2A123}\u{2A1DF}\u9D7E\u9D83\u{2A134}\u9E0E\u6888"],
      ["91a1", "\u9DC4\u{2215B}\u{2A193}\u{2A220}\u{2193B}\u{2A233}\u9D39\u{2A0B9}\u{2A2B4}\u9E90\u9E95\u9E9E\u9EA2\u4D34\u9EAA\u9EAF\u{24364}\u9EC1\u3B60\u39E5\u3D1D\u4F32\u37BE\u{28C2B}\u9F02\u9F08\u4B96\u9424\u{26DA2}\u9F17\u9F16\u9F39\u569F\u568A\u9F45\u99B8\u{2908B}\u97F2\u847F\u9F62\u9F69\u7ADC\u9F8E\u7216\u4BBE\u{24975}\u{249BB}\u7177\u{249F8}\u{24348}\u{24A51}\u739E\u{28BDA}\u{218FA}\u799F\u{2897E}\u{28E36}\u9369\u93F3\u{28A44}\u92EC\u9381\u93CB\u{2896C}\u{244B9}\u7217\u3EEB\u7772\u7A43\u70D0\u{24473}\u{243F8}\u717E\u{217EF}\u70A3\u{218BE}\u{23599}\u3EC7\u{21885}\u{2542F}\u{217F8}\u3722\u{216FB}\u{21839}\u36E1\u{21774}\u{218D1}\u{25F4B}\u3723\u{216C0}\u575B\u{24A25}\u{213FE}\u{212A8}"],
      ["9240", "\u{213C6}\u{214B6}\u8503\u{236A6}\u8503\u8455\u{24994}\u{27165}\u{23E31}\u{2555C}\u{23EFB}\u{27052}\u44F4\u{236EE}\u{2999D}\u{26F26}\u67F9\u3733\u3C15\u3DE7\u586C\u{21922}\u6810\u4057\u{2373F}\u{240E1}\u{2408B}\u{2410F}\u{26C21}\u54CB\u569E\u{266B1}\u5692\u{20FDF}\u{20BA8}\u{20E0D}\u93C6\u{28B13}\u939C\u4EF8\u512B\u3819\u{24436}\u4EBC\u{20465}\u{2037F}\u4F4B\u4F8A\u{25651}\u5A68\u{201AB}\u{203CB}\u3999\u{2030A}\u{20414}\u3435\u4F29\u{202C0}\u{28EB3}\u{20275}\u8ADA\u{2020C}\u4E98"],
      ["92a1", "\u50CD\u510D\u4FA2\u4F03\u{24A0E}\u{23E8A}\u4F42\u502E\u506C\u5081\u4FCC\u4FE5\u5058\u50FC\u5159\u515B\u515D\u515E\u6E76\u{23595}\u{23E39}\u{23EBF}\u6D72\u{21884}\u{23E89}\u51A8\u51C3\u{205E0}\u44DD\u{204A3}\u{20492}\u{20491}\u8D7A\u{28A9C}\u{2070E}\u5259\u52A4\u{20873}\u52E1\u936E\u467A\u718C\u{2438C}\u{20C20}\u{249AC}\u{210E4}\u69D1\u{20E1D}\u7479\u3EDE\u7499\u7414\u7456\u7398\u4B8E\u{24ABC}\u{2408D}\u53D0\u3584\u720F\u{240C9}\u55B4\u{20345}\u54CD\u{20BC6}\u571D\u925D\u96F4\u9366\u57DD\u578D\u577F\u363E\u58CB\u5A99\u{28A46}\u{216FA}\u{2176F}\u{21710}\u5A2C\u59B8\u928F\u5A7E\u5ACF\u5A12\u{25946}\u{219F3}\u{21861}\u{24295}\u36F5\u6D05\u7443\u5A21\u{25E83}"],
      ["9340", "\u5A81\u{28BD7}\u{20413}\u93E0\u748C\u{21303}\u7105\u4972\u9408\u{289FB}\u93BD\u37A0\u5C1E\u5C9E\u5E5E\u5E48\u{21996}\u{2197C}\u{23AEE}\u5ECD\u5B4F\u{21903}\u{21904}\u3701\u{218A0}\u36DD\u{216FE}\u36D3\u812A\u{28A47}\u{21DBA}\u{23472}\u{289A8}\u5F0C\u5F0E\u{21927}\u{217AB}\u5A6B\u{2173B}\u5B44\u8614\u{275FD}\u8860\u607E\u{22860}\u{2262B}\u5FDB\u3EB8\u{225AF}\u{225BE}\u{29088}\u{26F73}\u61C0\u{2003E}\u{20046}\u{2261B}\u6199\u6198\u6075\u{22C9B}\u{22D07}\u{246D4}\u{2914D}"],
      ["93a1", "\u6471\u{24665}\u{22B6A}\u3A29\u{22B22}\u{23450}\u{298EA}\u{22E78}\u6337\u{2A45B}\u64B6\u6331\u63D1\u{249E3}\u{22D67}\u62A4\u{22CA1}\u643B\u656B\u6972\u3BF4\u{2308E}\u{232AD}\u{24989}\u{232AB}\u550D\u{232E0}\u{218D9}\u{2943F}\u66CE\u{23289}\u{231B3}\u3AE0\u4190\u{25584}\u{28B22}\u{2558F}\u{216FC}\u{2555B}\u{25425}\u78EE\u{23103}\u{2182A}\u{23234}\u3464\u{2320F}\u{23182}\u{242C9}\u668E\u{26D24}\u666B\u4B93\u6630\u{27870}\u{21DEB}\u6663\u{232D2}\u{232E1}\u661E\u{25872}\u38D1\u{2383A}\u{237BC}\u3B99\u{237A2}\u{233FE}\u74D0\u3B96\u678F\u{2462A}\u68B6\u681E\u3BC4\u6ABE\u3863\u{237D5}\u{24487}\u6A33\u6A52\u6AC9\u6B05\u{21912}\u6511\u6898\u6A4C\u3BD7\u6A7A\u6B57\u{23FC0}\u{23C9A}\u93A0\u92F2\u{28BEA}\u{28ACB}"],
      ["9440", "\u9289\u{2801E}\u{289DC}\u9467\u6DA5\u6F0B\u{249EC}\u6D67\u{23F7F}\u3D8F\u6E04\u{2403C}\u5A3D\u6E0A\u5847\u6D24\u7842\u713B\u{2431A}\u{24276}\u70F1\u7250\u7287\u7294\u{2478F}\u{24725}\u5179\u{24AA4}\u{205EB}\u747A\u{23EF8}\u{2365F}\u{24A4A}\u{24917}\u{25FE1}\u3F06\u3EB1\u{24ADF}\u{28C23}\u{23F35}\u60A7\u3EF3\u74CC\u743C\u9387\u7437\u449F\u{26DEA}\u4551\u7583\u3F63\u{24CD9}\u{24D06}\u3F58\u7555\u7673\u{2A5C6}\u3B19\u7468\u{28ACC}\u{249AB}\u{2498E}\u3AFB"],
      ["94a1", "\u3DCD\u{24A4E}\u3EFF\u{249C5}\u{248F3}\u91FA\u5732\u9342\u{28AE3}\u{21864}\u50DF\u{25221}\u{251E7}\u7778\u{23232}\u770E\u770F\u777B\u{24697}\u{23781}\u3A5E\u{248F0}\u7438\u749B\u3EBF\u{24ABA}\u{24AC7}\u40C8\u{24A96}\u{261AE}\u9307\u{25581}\u781E\u788D\u7888\u78D2\u73D0\u7959\u{27741}\u{256E3}\u410E\u799B\u8496\u79A5\u6A2D\u{23EFA}\u7A3A\u79F4\u416E\u{216E6}\u4132\u9235\u79F1\u{20D4C}\u{2498C}\u{20299}\u{23DBA}\u{2176E}\u3597\u556B\u3570\u36AA\u{201D4}\u{20C0D}\u7AE2\u5A59\u{226F5}\u{25AAF}\u{25A9C}\u5A0D\u{2025B}\u78F0\u5A2A\u{25BC6}\u7AFE\u41F9\u7C5D\u7C6D\u4211\u{25BB3}\u{25EBC}\u{25EA6}\u7CCD\u{249F9}\u{217B0}\u7C8E\u7C7C\u7CAE\u6AB2\u7DDC\u7E07\u7DD3\u7F4E\u{26261}"],
      ["9540", "\u{2615C}\u{27B48}\u7D97\u{25E82}\u426A\u{26B75}\u{20916}\u67D6\u{2004E}\u{235CF}\u57C4\u{26412}\u{263F8}\u{24962}\u7FDD\u7B27\u{2082C}\u{25AE9}\u{25D43}\u7B0C\u{25E0E}\u99E6\u8645\u9A63\u6A1C\u{2343F}\u39E2\u{249F7}\u{265AD}\u9A1F\u{265A0}\u8480\u{27127}\u{26CD1}\u44EA\u8137\u4402\u80C6\u8109\u8142\u{267B4}\u98C3\u{26A42}\u8262\u8265\u{26A51}\u8453\u{26DA7}\u8610\u{2721B}\u5A86\u417F\u{21840}\u5B2B\u{218A1}\u5AE4\u{218D8}\u86A0\u{2F9BC}\u{23D8F}\u882D\u{27422}\u5A02"],
      ["95a1", "\u886E\u4F45\u8887\u88BF\u88E6\u8965\u894D\u{25683}\u8954\u{27785}\u{27784}\u{28BF5}\u{28BD9}\u{28B9C}\u{289F9}\u3EAD\u84A3\u46F5\u46CF\u37F2\u8A3D\u8A1C\u{29448}\u5F4D\u922B\u{24284}\u65D4\u7129\u70C4\u{21845}\u9D6D\u8C9F\u8CE9\u{27DDC}\u599A\u77C3\u59F0\u436E\u36D4\u8E2A\u8EA7\u{24C09}\u8F30\u8F4A\u42F4\u6C58\u6FBB\u{22321}\u489B\u6F79\u6E8B\u{217DA}\u9BE9\u36B5\u{2492F}\u90BB\u9097\u5571\u4906\u91BB\u9404\u{28A4B}\u4062\u{28AFC}\u9427\u{28C1D}\u{28C3B}\u84E5\u8A2B\u9599\u95A7\u9597\u9596\u{28D34}\u7445\u3EC2\u{248FF}\u{24A42}\u{243EA}\u3EE7\u{23225}\u968F\u{28EE7}\u{28E66}\u{28E65}\u3ECC\u{249ED}\u{24A78}\u{23FEE}\u7412\u746B\u3EFC\u9741\u{290B0}"],
      ["9640", "\u6847\u4A1D\u{29093}\u{257DF}\u975D\u9368\u{28989}\u{28C26}\u{28B2F}\u{263BE}\u92BA\u5B11\u8B69\u493C\u73F9\u{2421B}\u979B\u9771\u9938\u{20F26}\u5DC1\u{28BC5}\u{24AB2}\u981F\u{294DA}\u92F6\u{295D7}\u91E5\u44C0\u{28B50}\u{24A67}\u{28B64}\u98DC\u{28A45}\u3F00\u922A\u4925\u8414\u993B\u994D\u{27B06}\u3DFD\u999B\u4B6F\u99AA\u9A5C\u{28B65}\u{258C8}\u6A8F\u9A21\u5AFE\u9A2F\u{298F1}\u4B90\u{29948}\u99BC\u4BBD\u4B97\u937D\u5872\u{21302}\u5822\u{249B8}"],
      ["96a1", "\u{214E8}\u7844\u{2271F}\u{23DB8}\u68C5\u3D7D\u9458\u3927\u6150\u{22781}\u{2296B}\u6107\u9C4F\u9C53\u9C7B\u9C35\u9C10\u9B7F\u9BCF\u{29E2D}\u9B9F\u{2A1F5}\u{2A0FE}\u9D21\u4CAE\u{24104}\u9E18\u4CB0\u9D0C\u{2A1B4}\u{2A0ED}\u{2A0F3}\u{2992F}\u9DA5\u84BD\u{26E12}\u{26FDF}\u{26B82}\u85FC\u4533\u{26DA4}\u{26E84}\u{26DF0}\u8420\u85EE\u{26E00}\u{237D7}\u{26064}\u79E2\u{2359C}\u{23640}\u492D\u{249DE}\u3D62\u93DB\u92BE\u9348\u{202BF}\u78B9\u9277\u944D\u4FE4\u3440\u9064\u{2555D}\u783D\u7854\u78B6\u784B\u{21757}\u{231C9}\u{24941}\u369A\u4F72\u6FDA\u6FD9\u701E\u701E\u5414\u{241B5}\u57BB\u58F3\u578A\u9D16\u57D7\u7134\u34AF\u{241AC}\u71EB\u{26C40}\u{24F97}\u5B28\u{217B5}\u{28A49}"],
      ["9740", "\u610C\u5ACE\u5A0B\u42BC\u{24488}\u372C\u4B7B\u{289FC}\u93BB\u93B8\u{218D6}\u{20F1D}\u8472\u{26CC0}\u{21413}\u{242FA}\u{22C26}\u{243C1}\u5994\u{23DB7}\u{26741}\u7DA8\u{2615B}\u{260A4}\u{249B9}\u{2498B}\u{289FA}\u92E5\u73E2\u3EE9\u74B4\u{28B63}\u{2189F}\u3EE1\u{24AB3}\u6AD8\u73F3\u73FB\u3ED6\u{24A3E}\u{24A94}\u{217D9}\u{24A66}\u{203A7}\u{21424}\u{249E5}\u7448\u{24916}\u70A5\u{24976}\u9284\u73E6\u935F\u{204FE}\u9331\u{28ACE}\u{28A16}\u9386\u{28BE7}\u{255D5}\u4935\u{28A82}\u716B"],
      ["97a1", "\u{24943}\u{20CFF}\u56A4\u{2061A}\u{20BEB}\u{20CB8}\u5502\u79C4\u{217FA}\u7DFE\u{216C2}\u{24A50}\u{21852}\u452E\u9401\u370A\u{28AC0}\u{249AD}\u59B0\u{218BF}\u{21883}\u{27484}\u5AA1\u36E2\u{23D5B}\u36B0\u925F\u5A79\u{28A81}\u{21862}\u9374\u3CCD\u{20AB4}\u4A96\u398A\u50F4\u3D69\u3D4C\u{2139C}\u7175\u42FB\u{28218}\u6E0F\u{290E4}\u44EB\u6D57\u{27E4F}\u7067\u6CAF\u3CD6\u{23FED}\u{23E2D}\u6E02\u6F0C\u3D6F\u{203F5}\u7551\u36BC\u34C8\u4680\u3EDA\u4871\u59C4\u926E\u493E\u8F41\u{28C1C}\u{26BC0}\u5812\u57C8\u36D6\u{21452}\u70FE\u{24362}\u{24A71}\u{22FE3}\u{212B0}\u{223BD}\u68B9\u6967\u{21398}\u{234E5}\u{27BF4}\u{236DF}\u{28A83}\u{237D6}\u{233FA}\u{24C9F}\u6A1A\u{236AD}\u{26CB7}\u843E\u44DF\u44CE"],
      ["9840", "\u{26D26}\u{26D51}\u{26C82}\u{26FDE}\u6F17\u{27109}\u833D\u{2173A}\u83ED\u{26C80}\u{27053}\u{217DB}\u5989\u5A82\u{217B3}\u5A61\u5A71\u{21905}\u{241FC}\u372D\u59EF\u{2173C}\u36C7\u718E\u9390\u669A\u{242A5}\u5A6E\u5A2B\u{24293}\u6A2B\u{23EF9}\u{27736}\u{2445B}\u{242CA}\u711D\u{24259}\u{289E1}\u4FB0\u{26D28}\u5CC2\u{244CE}\u{27E4D}\u{243BD}\u6A0C\u{24256}\u{21304}\u70A6\u7133\u{243E9}\u3DA5\u6CDF\u{2F825}\u{24A4F}\u7E65\u59EB\u5D2F\u3DF3\u5F5C\u{24A5D}\u{217DF}\u7DA4\u8426"],
      ["98a1", "\u5485\u{23AFA}\u{23300}\u{20214}\u577E\u{208D5}\u{20619}\u3FE5\u{21F9E}\u{2A2B6}\u7003\u{2915B}\u5D70\u738F\u7CD3\u{28A59}\u{29420}\u4FC8\u7FE7\u72CD\u7310\u{27AF4}\u7338\u7339\u{256F6}\u7341\u7348\u3EA9\u{27B18}\u906C\u71F5\u{248F2}\u73E1\u81F6\u3ECA\u770C\u3ED1\u6CA2\u56FD\u7419\u741E\u741F\u3EE2\u3EF0\u3EF4\u3EFA\u74D3\u3F0E\u3F53\u7542\u756D\u7572\u758D\u3F7C\u75C8\u75DC\u3FC0\u764D\u3FD7\u7674\u3FDC\u767A\u{24F5C}\u7188\u5623\u8980\u5869\u401D\u7743\u4039\u6761\u4045\u35DB\u7798\u406A\u406F\u5C5E\u77BE\u77CB\u58F2\u7818\u70B9\u781C\u40A8\u7839\u7847\u7851\u7866\u8448\u{25535}\u7933\u6803\u7932\u4103"],
      ["9940", "\u4109\u7991\u7999\u8FBB\u7A06\u8FBC\u4167\u7A91\u41B2\u7ABC\u8279\u41C4\u7ACF\u7ADB\u41CF\u4E21\u7B62\u7B6C\u7B7B\u7C12\u7C1B\u4260\u427A\u7C7B\u7C9C\u428C\u7CB8\u4294\u7CED\u8F93\u70C0\u{20CCF}\u7DCF\u7DD4\u7DD0\u7DFD\u7FAE\u7FB4\u729F\u4397\u8020\u8025\u7B39\u802E\u8031\u8054\u3DCC\u57B4\u70A0\u80B7\u80E9\u43ED\u810C\u732A\u810E\u8112\u7560\u8114\u4401\u3B39\u8156\u8159\u815A"],
      ["99a1", "\u4413\u583A\u817C\u8184\u4425\u8193\u442D\u81A5\u57EF\u81C1\u81E4\u8254\u448F\u82A6\u8276\u82CA\u82D8\u82FF\u44B0\u8357\u9669\u698A\u8405\u70F5\u8464\u60E3\u8488\u4504\u84BE\u84E1\u84F8\u8510\u8538\u8552\u453B\u856F\u8570\u85E0\u4577\u8672\u8692\u86B2\u86EF\u9645\u878B\u4606\u4617\u88AE\u88FF\u8924\u8947\u8991\u{27967}\u8A29\u8A38\u8A94\u8AB4\u8C51\u8CD4\u8CF2\u8D1C\u4798\u585F\u8DC3\u47ED\u4EEE\u8E3A\u55D8\u5754\u8E71\u55F5\u8EB0\u4837\u8ECE\u8EE2\u8EE4\u8EED\u8EF2\u8FB7\u8FC1\u8FCA\u8FCC\u9033\u99C4\u48AD\u98E0\u9213\u491E\u9228\u9258\u926B\u92B1\u92AE\u92BF"],
      ["9a40", "\u92E3\u92EB\u92F3\u92F4\u92FD\u9343\u9384\u93AD\u4945\u4951\u9EBF\u9417\u5301\u941D\u942D\u943E\u496A\u9454\u9479\u952D\u95A2\u49A7\u95F4\u9633\u49E5\u67A0\u4A24\u9740\u4A35\u97B2\u97C2\u5654\u4AE4\u60E8\u98B9\u4B19\u98F1\u5844\u990E\u9919\u51B4\u991C\u9937\u9942\u995D\u9962\u4B70\u99C5\u4B9D\u9A3C\u9B0F\u7A83\u9B69\u9B81\u9BDD\u9BF1\u9BF4\u4C6D\u9C20\u376F\u{21BC2}\u9D49\u9C3A"],
      ["9aa1", "\u9EFE\u5650\u9D93\u9DBD\u9DC0\u9DFC\u94F6\u8FB6\u9E7B\u9EAC\u9EB1\u9EBD\u9EC6\u94DC\u9EE2\u9EF1\u9EF8\u7AC8\u9F44\u{20094}\u{202B7}\u{203A0}\u691A\u94C3\u59AC\u{204D7}\u5840\u94C1\u37B9\u{205D5}\u{20615}\u{20676}\u{216BA}\u5757\u7173\u{20AC2}\u{20ACD}\u{20BBF}\u546A\u{2F83B}\u{20BCB}\u549E\u{20BFB}\u{20C3B}\u{20C53}\u{20C65}\u{20C7C}\u60E7\u{20C8D}\u567A\u{20CB5}\u{20CDD}\u{20CED}\u{20D6F}\u{20DB2}\u{20DC8}\u6955\u9C2F\u87A5\u{20E04}\u{20E0E}\u{20ED7}\u{20F90}\u{20F2D}\u{20E73}\u5C20\u{20FBC}\u5E0B\u{2105C}\u{2104F}\u{21076}\u671E\u{2107B}\u{21088}\u{21096}\u3647\u{210BF}\u{210D3}\u{2112F}\u{2113B}\u5364\u84AD\u{212E3}\u{21375}\u{21336}\u8B81\u{21577}\u{21619}\u{217C3}\u{217C7}\u4E78\u70BB\u{2182D}\u{2196A}"],
      ["9b40", "\u{21A2D}\u{21A45}\u{21C2A}\u{21C70}\u{21CAC}\u{21EC8}\u62C3\u{21ED5}\u{21F15}\u7198\u6855\u{22045}\u69E9\u36C8\u{2227C}\u{223D7}\u{223FA}\u{2272A}\u{22871}\u{2294F}\u82FD\u{22967}\u{22993}\u{22AD5}\u89A5\u{22AE8}\u8FA0\u{22B0E}\u97B8\u{22B3F}\u9847\u9ABD\u{22C4C}"],
      ["9b62", "\u{22C88}\u{22CB7}\u{25BE8}\u{22D08}\u{22D12}\u{22DB7}\u{22D95}\u{22E42}\u{22F74}\u{22FCC}\u{23033}\u{23066}\u{2331F}\u{233DE}\u5FB1\u6648\u66BF\u{27A79}\u{23567}\u{235F3}\u7201\u{249BA}\u77D7\u{2361A}\u{23716}\u7E87\u{20346}\u58B5\u670E"],
      ["9ba1", "\u6918\u{23AA7}\u{27657}\u{25FE2}\u{23E11}\u{23EB9}\u{275FE}\u{2209A}\u48D0\u4AB8\u{24119}\u{28A9A}\u{242EE}\u{2430D}\u{2403B}\u{24334}\u{24396}\u{24A45}\u{205CA}\u51D2\u{20611}\u599F\u{21EA8}\u3BBE\u{23CFF}\u{24404}\u{244D6}\u5788\u{24674}\u399B\u{2472F}\u{285E8}\u{299C9}\u3762\u{221C3}\u8B5E\u{28B4E}\u99D6\u{24812}\u{248FB}\u{24A15}\u7209\u{24AC0}\u{20C78}\u5965\u{24EA5}\u{24F86}\u{20779}\u8EDA\u{2502C}\u528F\u573F\u7171\u{25299}\u{25419}\u{23F4A}\u{24AA7}\u55BC\u{25446}\u{2546E}\u{26B52}\u91D4\u3473\u{2553F}\u{27632}\u{2555E}\u4718\u{25562}\u{25566}\u{257C7}\u{2493F}\u{2585D}\u5066\u34FB\u{233CC}\u60DE\u{25903}\u477C\u{28948}\u{25AAE}\u{25B89}\u{25C06}\u{21D90}\u57A1\u7151\u6FB6\u{26102}\u{27C12}\u9056\u{261B2}\u{24F9A}\u8B62\u{26402}\u{2644A}"],
      ["9c40", "\u5D5B\u{26BF7}\u8F36\u{26484}\u{2191C}\u8AEA\u{249F6}\u{26488}\u{23FEF}\u{26512}\u4BC0\u{265BF}\u{266B5}\u{2271B}\u9465\u{257E1}\u6195\u5A27\u{2F8CD}\u4FBB\u56B9\u{24521}\u{266FC}\u4E6A\u{24934}\u9656\u6D8F\u{26CBD}\u3618\u8977\u{26799}\u{2686E}\u{26411}\u{2685E}\u71DF\u{268C7}\u7B42\u{290C0}\u{20A11}\u{26926}\u9104\u{26939}\u7A45\u9DF0\u{269FA}\u9A26\u{26A2D}\u365F\u{26469}\u{20021}\u7983\u{26A34}\u{26B5B}\u5D2C\u{23519}\u83CF\u{26B9D}\u46D0\u{26CA4}\u753B\u8865\u{26DAE}\u58B6"],
      ["9ca1", "\u371C\u{2258D}\u{2704B}\u{271CD}\u3C54\u{27280}\u{27285}\u9281\u{2217A}\u{2728B}\u9330\u{272E6}\u{249D0}\u6C39\u949F\u{27450}\u{20EF8}\u8827\u88F5\u{22926}\u{28473}\u{217B1}\u6EB8\u{24A2A}\u{21820}\u39A4\u36B9\u5C10\u79E3\u453F\u66B6\u{29CAD}\u{298A4}\u8943\u{277CC}\u{27858}\u56D6\u40DF\u{2160A}\u39A1\u{2372F}\u{280E8}\u{213C5}\u71AD\u8366\u{279DD}\u{291A8}\u5A67\u4CB7\u{270AF}\u{289AB}\u{279FD}\u{27A0A}\u{27B0B}\u{27D66}\u{2417A}\u7B43\u797E\u{28009}\u6FB5\u{2A2DF}\u6A03\u{28318}\u53A2\u{26E07}\u93BF\u6836\u975D\u{2816F}\u{28023}\u{269B5}\u{213ED}\u{2322F}\u{28048}\u5D85\u{28C30}\u{28083}\u5715\u9823\u{28949}\u5DAB\u{24988}\u65BE\u69D5\u53D2\u{24AA5}\u{23F81}\u3C11\u6736\u{28090}\u{280F4}\u{2812E}\u{21FA1}\u{2814F}"],
      ["9d40", "\u{28189}\u{281AF}\u{2821A}\u{28306}\u{2832F}\u{2838A}\u35CA\u{28468}\u{286AA}\u48FA\u63E6\u{28956}\u7808\u9255\u{289B8}\u43F2\u{289E7}\u43DF\u{289E8}\u{28B46}\u{28BD4}\u59F8\u{28C09}\u8F0B\u{28FC5}\u{290EC}\u7B51\u{29110}\u{2913C}\u3DF7\u{2915E}\u{24ACA}\u8FD0\u728F\u568B\u{294E7}\u{295E9}\u{295B0}\u{295B8}\u{29732}\u{298D1}\u{29949}\u{2996A}\u{299C3}\u{29A28}\u{29B0E}\u{29D5A}\u{29D9B}\u7E9F\u{29EF8}\u{29F23}\u4CA4\u9547\u{2A293}\u71A2\u{2A2FF}\u4D91\u9012\u{2A5CB}\u4D9C\u{20C9C}\u8FBE\u55C1"],
      ["9da1", "\u8FBA\u{224B0}\u8FB9\u{24A93}\u4509\u7E7F\u6F56\u6AB1\u4EEA\u34E4\u{28B2C}\u{2789D}\u373A\u8E80\u{217F5}\u{28024}\u{28B6C}\u{28B99}\u{27A3E}\u{266AF}\u3DEB\u{27655}\u{23CB7}\u{25635}\u{25956}\u4E9A\u{25E81}\u{26258}\u56BF\u{20E6D}\u8E0E\u5B6D\u{23E88}\u{24C9E}\u63DE\u62D0\u{217F6}\u{2187B}\u6530\u562D\u{25C4A}\u541A\u{25311}\u3DC6\u{29D98}\u4C7D\u5622\u561E\u7F49\u{25ED8}\u5975\u{23D40}\u8770\u4E1C\u{20FEA}\u{20D49}\u{236BA}\u8117\u9D5E\u8D18\u763B\u9C45\u764E\u77B9\u9345\u5432\u8148\u82F7\u5625\u8132\u8418\u80BD\u55EA\u7962\u5643\u5416\u{20E9D}\u35CE\u5605\u55F1\u66F1\u{282E2}\u362D\u7534\u55F0\u55BA\u5497\u5572\u{20C41}\u{20C96}\u5ED0\u{25148}\u{20E76}\u{22C62}"],
      ["9e40", "\u{20EA2}\u9EAB\u7D5A\u55DE\u{21075}\u629D\u976D\u5494\u8CCD\u71F6\u9176\u63FC\u63B9\u63FE\u5569\u{22B43}\u9C72\u{22EB3}\u519A\u34DF\u{20DA7}\u51A7\u544D\u551E\u5513\u7666\u8E2D\u{2688A}\u75B1\u80B6\u8804\u8786\u88C7\u81B6\u841C\u{210C1}\u44EC\u7304\u{24706}\u5B90\u830B\u{26893}\u567B\u{226F4}\u{27D2F}\u{241A3}\u{27D73}\u{26ED0}\u{272B6}\u9170\u{211D9}\u9208\u{23CFC}\u{2A6A9}\u{20EAC}\u{20EF9}\u7266\u{21CA2}\u474E\u{24FC2}\u{27FF9}\u{20FEB}\u40FA"],
      ["9ea1", "\u9C5D\u651F\u{22DA0}\u48F3\u{247E0}\u{29D7C}\u{20FEC}\u{20E0A}\u6062\u{275A3}\u{20FED}"],
      ["9ead", "\u{26048}\u{21187}\u71A3\u7E8E\u9D50\u4E1A\u4E04\u3577\u5B0D\u6CB2\u5367\u36AC\u39DC\u537D\u36A5\u{24618}\u589A\u{24B6E}\u822D\u544B\u57AA\u{25A95}\u{20979}"],
      ["9ec5", "\u3A52\u{22465}\u7374\u{29EAC}\u4D09\u9BED\u{23CFE}\u{29F30}\u4C5B\u{24FA9}\u{2959E}\u{29FDE}\u845C\u{23DB6}\u{272B2}\u{267B3}\u{23720}\u632E\u7D25\u{23EF7}\u{23E2C}\u3A2A\u9008\u52CC\u3E74\u367A\u45E9\u{2048E}\u7640\u5AF0\u{20EB6}\u787A\u{27F2E}\u58A7\u40BF\u567C\u9B8B\u5D74\u7654\u{2A434}\u9E85\u4CE1\u75F9\u37FB\u6119\u{230DA}\u{243F2}"],
      ["9ef5", "\u565D\u{212A9}\u57A7\u{24963}\u{29E06}\u5234\u{270AE}\u35AD\u6C4A\u9D7C"],
      ["9f40", "\u7C56\u9B39\u57DE\u{2176C}\u5C53\u64D3\u{294D0}\u{26335}\u{27164}\u86AD\u{20D28}\u{26D22}\u{24AE2}\u{20D71}"],
      ["9f4f", "\u51FE\u{21F0F}\u5D8E\u9703\u{21DD1}\u9E81\u904C\u7B1F\u9B02\u5CD1\u7BA3\u6268\u6335\u9AFF\u7BCF\u9B2A\u7C7E\u9B2E\u7C42\u7C86\u9C15\u7BFC\u9B09\u9F17\u9C1B\u{2493E}\u9F5A\u5573\u5BC3\u4FFD\u9E98\u4FF2\u5260\u3E06\u52D1\u5767\u5056\u59B7\u5E12\u97C8\u9DAB\u8F5C\u5469\u97B4\u9940\u97BA\u532C\u6130"],
      ["9fa1", "\u692C\u53DA\u9C0A\u9D02\u4C3B\u9641\u6980\u50A6\u7546\u{2176D}\u99DA\u5273"],
      ["9fae", "\u9159\u9681\u915C"],
      ["9fb2", "\u9151\u{28E97}\u637F\u{26D23}\u6ACA\u5611\u918E\u757A\u6285\u{203FC}\u734F\u7C70\u{25C21}\u{23CFD}"],
      ["9fc1", "\u{24919}\u76D6\u9B9D\u4E2A\u{20CD4}\u83BE\u8842"],
      ["9fc9", "\u5C4A\u69C0\u50ED\u577A\u521F\u5DF5\u4ECE\u6C31\u{201F2}\u4F39\u549C\u54DA\u529A\u8D82\u35FE\u5F0C\u35F3"],
      ["9fdb", "\u6B52\u917C\u9FA5\u9B97\u982E\u98B4\u9ABA\u9EA8\u9E84\u717A\u7B14"],
      ["9fe7", "\u6BFA\u8818\u7F78"],
      ["9feb", "\u5620\u{2A64A}\u8E77\u9F53"],
      ["9ff0", "\u8DD4\u8E4F\u9E1C\u8E01\u6282\u{2837D}\u8E28\u8E75\u7AD3\u{24A77}\u7A3E\u78D8\u6CEA\u8A67\u7607"],
      ["a040", "\u{28A5A}\u9F26\u6CCE\u87D6\u75C3\u{2A2B2}\u7853\u{2F840}\u8D0C\u72E2\u7371\u8B2D\u7302\u74F1\u8CEB\u{24ABB}\u862F\u5FBA\u88A0\u44B7"],
      ["a055", "\u{2183B}\u{26E05}"],
      ["a058", "\u8A7E\u{2251B}"],
      ["a05b", "\u60FD\u7667\u9AD7\u9D44\u936E\u9B8F\u87F5"],
      ["a063", "\u880F\u8CF7\u732C\u9721\u9BB0\u35D6\u72B2\u4C07\u7C51\u994A\u{26159}\u6159\u4C04\u9E96\u617D"],
      ["a073", "\u575F\u616F\u62A6\u6239\u62CE\u3A5C\u61E2\u53AA\u{233F5}\u6364\u6802\u35D2"],
      ["a0a1", "\u5D57\u{28BC2}\u8FDA\u{28E39}"],
      ["a0a6", "\u50D9\u{21D46}\u7906\u5332\u9638\u{20F3B}\u4065"],
      ["a0ae", "\u77FE"],
      ["a0b0", "\u7CC2\u{25F1A}\u7CDA\u7A2D\u8066\u8063\u7D4D\u7505\u74F2\u8994\u821A\u670C\u8062\u{27486}\u805B\u74F0\u8103\u7724\u8989\u{267CC}\u7553\u{26ED1}\u87A9\u87CE\u81C8\u878C\u8A49\u8CAD\u8B43\u772B\u74F8\u84DA\u3635\u69B2\u8DA6"],
      ["a0d4", "\u89A9\u7468\u6DB9\u87C1\u{24011}\u74E7\u3DDB\u7176\u60A4\u619C\u3CD1\u7162\u6077"],
      ["a0e2", "\u7F71\u{28B2D}\u7250\u60E9\u4B7E\u5220\u3C18\u{23CC7}\u{25ED7}\u{27656}\u{25531}\u{21944}\u{212FE}\u{29903}\u{26DDC}\u{270AD}\u5CC1\u{261AD}\u{28A0F}\u{23677}\u{200EE}\u{26846}\u{24F0E}\u4562\u5B1F\u{2634C}\u9F50\u9EA6\u{2626B}"],
      ["a3c0", "\u2400", 31, "\u2421"],
      ["c6a1", "\u2460", 9, "\u2474", 9, "\u2170", 9, "\u4E36\u4E3F\u4E85\u4EA0\u5182\u5196\u51AB\u52F9\u5338\u5369\u53B6\u590A\u5B80\u5DDB\u2F33\u5E7F\u5EF4\u5F50\u5F61\u6534\u65E0\u7592\u7676\u8FB5\u96B6\xA8\u02C6\u30FD\u30FE\u309D\u309E\u3003\u4EDD\u3005\u3006\u3007\u30FC\uFF3B\uFF3D\u273D\u3041", 23],
      ["c740", "\u3059", 58, "\u30A1\u30A2\u30A3\u30A4"],
      ["c7a1", "\u30A5", 81, "\u0410", 5, "\u0401\u0416", 4],
      ["c840", "\u041B", 26, "\u0451\u0436", 25, "\u21E7\u21B8\u21B9\u31CF\u{200CC}\u4E5A\u{2008A}\u5202\u4491"],
      ["c8a1", "\u9FB0\u5188\u9FB1\u{27607}"],
      ["c8cd", "\uFFE2\uFFE4\uFF07\uFF02\u3231\u2116\u2121\u309B\u309C\u2E80\u2E84\u2E86\u2E87\u2E88\u2E8A\u2E8C\u2E8D\u2E95\u2E9C\u2E9D\u2EA5\u2EA7\u2EAA\u2EAC\u2EAE\u2EB6\u2EBC\u2EBE\u2EC6\u2ECA\u2ECC\u2ECD\u2ECF\u2ED6\u2ED7\u2EDE\u2EE3"],
      ["c8f5", "\u0283\u0250\u025B\u0254\u0275\u0153\xF8\u014B\u028A\u026A"],
      ["f9fe", "\uFFED"],
      ["fa40", "\u{20547}\u92DB\u{205DF}\u{23FC5}\u854C\u42B5\u73EF\u51B5\u3649\u{24942}\u{289E4}\u9344\u{219DB}\u82EE\u{23CC8}\u783C\u6744\u62DF\u{24933}\u{289AA}\u{202A0}\u{26BB3}\u{21305}\u4FAB\u{224ED}\u5008\u{26D29}\u{27A84}\u{23600}\u{24AB1}\u{22513}\u5029\u{2037E}\u5FA4\u{20380}\u{20347}\u6EDB\u{2041F}\u507D\u5101\u347A\u510E\u986C\u3743\u8416\u{249A4}\u{20487}\u5160\u{233B4}\u516A\u{20BFF}\u{220FC}\u{202E5}\u{22530}\u{2058E}\u{23233}\u{21983}\u5B82\u877D\u{205B3}\u{23C99}\u51B2\u51B8"],
      ["faa1", "\u9D34\u51C9\u51CF\u51D1\u3CDC\u51D3\u{24AA6}\u51B3\u51E2\u5342\u51ED\u83CD\u693E\u{2372D}\u5F7B\u520B\u5226\u523C\u52B5\u5257\u5294\u52B9\u52C5\u7C15\u8542\u52E0\u860D\u{26B13}\u5305\u{28ADE}\u5549\u6ED9\u{23F80}\u{20954}\u{23FEC}\u5333\u5344\u{20BE2}\u6CCB\u{21726}\u681B\u73D5\u604A\u3EAA\u38CC\u{216E8}\u71DD\u44A2\u536D\u5374\u{286AB}\u537E\u537F\u{21596}\u{21613}\u77E6\u5393\u{28A9B}\u53A0\u53AB\u53AE\u73A7\u{25772}\u3F59\u739C\u53C1\u53C5\u6C49\u4E49\u57FE\u53D9\u3AAB\u{20B8F}\u53E0\u{23FEB}\u{22DA3}\u53F6\u{20C77}\u5413\u7079\u552B\u6657\u6D5B\u546D\u{26B53}\u{20D74}\u555D\u548F\u54A4\u47A6\u{2170D}\u{20EDD}\u3DB4\u{20D4D}"],
      ["fb40", "\u{289BC}\u{22698}\u5547\u4CED\u542F\u7417\u5586\u55A9\u5605\u{218D7}\u{2403A}\u4552\u{24435}\u66B3\u{210B4}\u5637\u66CD\u{2328A}\u66A4\u66AD\u564D\u564F\u78F1\u56F1\u9787\u53FE\u5700\u56EF\u56ED\u{28B66}\u3623\u{2124F}\u5746\u{241A5}\u6C6E\u708B\u5742\u36B1\u{26C7E}\u57E6\u{21416}\u5803\u{21454}\u{24363}\u5826\u{24BF5}\u585C\u58AA\u3561\u58E0\u58DC\u{2123C}\u58FB\u5BFF\u5743\u{2A150}\u{24278}\u93D3\u35A1\u591F\u68A6\u36C3\u6E59"],
      ["fba1", "\u{2163E}\u5A24\u5553\u{21692}\u8505\u59C9\u{20D4E}\u{26C81}\u{26D2A}\u{217DC}\u59D9\u{217FB}\u{217B2}\u{26DA6}\u6D71\u{21828}\u{216D5}\u59F9\u{26E45}\u5AAB\u5A63\u36E6\u{249A9}\u5A77\u3708\u5A96\u7465\u5AD3\u{26FA1}\u{22554}\u3D85\u{21911}\u3732\u{216B8}\u5E83\u52D0\u5B76\u6588\u5B7C\u{27A0E}\u4004\u485D\u{20204}\u5BD5\u6160\u{21A34}\u{259CC}\u{205A5}\u5BF3\u5B9D\u4D10\u5C05\u{21B44}\u5C13\u73CE\u5C14\u{21CA5}\u{26B28}\u5C49\u48DD\u5C85\u5CE9\u5CEF\u5D8B\u{21DF9}\u{21E37}\u5D10\u5D18\u5D46\u{21EA4}\u5CBA\u5DD7\u82FC\u382D\u{24901}\u{22049}\u{22173}\u8287\u3836\u3BC2\u5E2E\u6A8A\u5E75\u5E7A\u{244BC}\u{20CD3}\u53A6\u4EB7\u5ED0\u53A8\u{21771}\u5E09\u5EF4\u{28482}"],
      ["fc40", "\u5EF9\u5EFB\u38A0\u5EFC\u683E\u941B\u5F0D\u{201C1}\u{2F894}\u3ADE\u48AE\u{2133A}\u5F3A\u{26888}\u{223D0}\u5F58\u{22471}\u5F63\u97BD\u{26E6E}\u5F72\u9340\u{28A36}\u5FA7\u5DB6\u3D5F\u{25250}\u{21F6A}\u{270F8}\u{22668}\u91D6\u{2029E}\u{28A29}\u6031\u6685\u{21877}\u3963\u3DC7\u3639\u5790\u{227B4}\u7971\u3E40\u609E\u60A4\u60B3\u{24982}\u{2498F}\u{27A53}\u74A4\u50E1\u5AA0\u6164\u8424\u6142\u{2F8A6}\u{26ED2}\u6181\u51F4\u{20656}\u6187\u5BAA\u{23FB7}"],
      ["fca1", "\u{2285F}\u61D3\u{28B9D}\u{2995D}\u61D0\u3932\u{22980}\u{228C1}\u6023\u615C\u651E\u638B\u{20118}\u62C5\u{21770}\u62D5\u{22E0D}\u636C\u{249DF}\u3A17\u6438\u63F8\u{2138E}\u{217FC}\u6490\u6F8A\u{22E36}\u9814\u{2408C}\u{2571D}\u64E1\u64E5\u947B\u3A66\u643A\u3A57\u654D\u6F16\u{24A28}\u{24A23}\u6585\u656D\u655F\u{2307E}\u65B5\u{24940}\u4B37\u65D1\u40D8\u{21829}\u65E0\u65E3\u5FDF\u{23400}\u6618\u{231F7}\u{231F8}\u6644\u{231A4}\u{231A5}\u664B\u{20E75}\u6667\u{251E6}\u6673\u6674\u{21E3D}\u{23231}\u{285F4}\u{231C8}\u{25313}\u77C5\u{228F7}\u99A4\u6702\u{2439C}\u{24A21}\u3B2B\u69FA\u{237C2}\u675E\u6767\u6762\u{241CD}\u{290ED}\u67D7\u44E9\u6822\u6E50\u923C\u6801\u{233E6}\u{26DA0}\u685D"],
      ["fd40", "\u{2346F}\u69E1\u6A0B\u{28ADF}\u6973\u68C3\u{235CD}\u6901\u6900\u3D32\u3A01\u{2363C}\u3B80\u67AC\u6961\u{28A4A}\u42FC\u6936\u6998\u3BA1\u{203C9}\u8363\u5090\u69F9\u{23659}\u{2212A}\u6A45\u{23703}\u6A9D\u3BF3\u67B1\u6AC8\u{2919C}\u3C0D\u6B1D\u{20923}\u60DE\u6B35\u6B74\u{227CD}\u6EB5\u{23ADB}\u{203B5}\u{21958}\u3740\u5421\u{23B5A}\u6BE1\u{23EFC}\u6BDC\u6C37\u{2248B}\u{248F1}\u{26B51}\u6C5A\u8226\u6C79\u{23DBC}\u44C5\u{23DBD}\u{241A4}\u{2490C}\u{24900}"],
      ["fda1", "\u{23CC9}\u36E5\u3CEB\u{20D32}\u9B83\u{231F9}\u{22491}\u7F8F\u6837\u{26D25}\u{26DA1}\u{26DEB}\u6D96\u6D5C\u6E7C\u6F04\u{2497F}\u{24085}\u{26E72}\u8533\u{26F74}\u51C7\u6C9C\u6E1D\u842E\u{28B21}\u6E2F\u{23E2F}\u7453\u{23F82}\u79CC\u6E4F\u5A91\u{2304B}\u6FF8\u370D\u6F9D\u{23E30}\u6EFA\u{21497}\u{2403D}\u4555\u93F0\u6F44\u6F5C\u3D4E\u6F74\u{29170}\u3D3B\u6F9F\u{24144}\u6FD3\u{24091}\u{24155}\u{24039}\u{23FF0}\u{23FB4}\u{2413F}\u51DF\u{24156}\u{24157}\u{24140}\u{261DD}\u704B\u707E\u70A7\u7081\u70CC\u70D5\u70D6\u70DF\u4104\u3DE8\u71B4\u7196\u{24277}\u712B\u7145\u5A88\u714A\u716E\u5C9C\u{24365}\u714F\u9362\u{242C1}\u712C\u{2445A}\u{24A27}\u{24A22}\u71BA\u{28BE8}\u70BD\u720E"],
      ["fe40", "\u9442\u7215\u5911\u9443\u7224\u9341\u{25605}\u722E\u7240\u{24974}\u68BD\u7255\u7257\u3E55\u{23044}\u680D\u6F3D\u7282\u732A\u732B\u{24823}\u{2882B}\u48ED\u{28804}\u7328\u732E\u73CF\u73AA\u{20C3A}\u{26A2E}\u73C9\u7449\u{241E2}\u{216E7}\u{24A24}\u6623\u36C5\u{249B7}\u{2498D}\u{249FB}\u73F7\u7415\u6903\u{24A26}\u7439\u{205C3}\u3ED7\u745C\u{228AD}\u7460\u{28EB2}\u7447\u73E4\u7476\u83B9\u746C\u3730\u7474\u93F1\u6A2C\u7482\u4953\u{24A8C}"],
      ["fea1", "\u{2415F}\u{24A79}\u{28B8F}\u5B46\u{28C03}\u{2189E}\u74C8\u{21988}\u750E\u74E9\u751E\u{28ED9}\u{21A4B}\u5BD7\u{28EAC}\u9385\u754D\u754A\u7567\u756E\u{24F82}\u3F04\u{24D13}\u758E\u745D\u759E\u75B4\u7602\u762C\u7651\u764F\u766F\u7676\u{263F5}\u7690\u81EF\u37F8\u{26911}\u{2690E}\u76A1\u76A5\u76B7\u76CC\u{26F9F}\u8462\u{2509D}\u{2517D}\u{21E1C}\u771E\u7726\u7740\u64AF\u{25220}\u7758\u{232AC}\u77AF\u{28964}\u{28968}\u{216C1}\u77F4\u7809\u{21376}\u{24A12}\u68CA\u78AF\u78C7\u78D3\u96A5\u792E\u{255E0}\u78D7\u7934\u78B1\u{2760C}\u8FB8\u8884\u{28B2B}\u{26083}\u{2261C}\u7986\u8900\u6902\u7980\u{25857}\u799D\u{27B39}\u793C\u79A9\u6E2A\u{27126}\u3EA8\u79C6\u{2910D}\u79D4"]
    ];
  }
});

// node_modules/iconv-lite/encodings/dbcs-data.js
var require_dbcs_data = __commonJS({
  "node_modules/iconv-lite/encodings/dbcs-data.js"(exports2, module2) {
    "use strict";
    module2.exports = {
      // == Japanese/ShiftJIS ====================================================
      // All japanese encodings are based on JIS X set of standards:
      // JIS X 0201 - Single-byte encoding of ASCII + ¥ + Kana chars at 0xA1-0xDF.
      // JIS X 0208 - Main set of 6879 characters, placed in 94x94 plane, to be encoded by 2 bytes.
      //              Has several variations in 1978, 1983, 1990 and 1997.
      // JIS X 0212 - Supplementary plane of 6067 chars in 94x94 plane. 1990. Effectively dead.
      // JIS X 0213 - Extension and modern replacement of 0208 and 0212. Total chars: 11233.
      //              2 planes, first is superset of 0208, second - revised 0212.
      //              Introduced in 2000, revised 2004. Some characters are in Unicode Plane 2 (0x2xxxx)
      // Byte encodings are:
      //  * Shift_JIS: Compatible with 0201, uses not defined chars in top half as lead bytes for double-byte
      //               encoding of 0208. Lead byte ranges: 0x81-0x9F, 0xE0-0xEF; Trail byte ranges: 0x40-0x7E, 0x80-0x9E, 0x9F-0xFC.
      //               Windows CP932 is a superset of Shift_JIS. Some companies added more chars, notably KDDI.
      //  * EUC-JP:    Up to 3 bytes per character. Used mostly on *nixes.
      //               0x00-0x7F       - lower part of 0201
      //               0x8E, 0xA1-0xDF - upper part of 0201
      //               (0xA1-0xFE)x2   - 0208 plane (94x94).
      //               0x8F, (0xA1-0xFE)x2 - 0212 plane (94x94).
      //  * JIS X 208: 7-bit, direct encoding of 0208. Byte ranges: 0x21-0x7E (94 values). Uncommon.
      //               Used as-is in ISO2022 family.
      //  * ISO2022-JP: Stateful encoding, with escape sequences to switch between ASCII,
      //                0201-1976 Roman, 0208-1978, 0208-1983.
      //  * ISO2022-JP-1: Adds esc seq for 0212-1990.
      //  * ISO2022-JP-2: Adds esc seq for GB2313-1980, KSX1001-1992, ISO8859-1, ISO8859-7.
      //  * ISO2022-JP-3: Adds esc seq for 0201-1976 Kana set, 0213-2000 Planes 1, 2.
      //  * ISO2022-JP-2004: Adds 0213-2004 Plane 1.
      //
      // After JIS X 0213 appeared, Shift_JIS-2004, EUC-JISX0213 and ISO2022-JP-2004 followed, with just changing the planes.
      //
      // Overall, it seems that it's a mess :( http://www8.plala.or.jp/tkubota1/unicode-symbols-map2.html
      shiftjis: {
        type: "_dbcs",
        table: function() {
          return require_shiftjis();
        },
        encodeAdd: { "\xA5": 92, "\u203E": 126 },
        encodeSkipVals: [{ from: 60736, to: 63808 }]
      },
      csshiftjis: "shiftjis",
      mskanji: "shiftjis",
      sjis: "shiftjis",
      windows31j: "shiftjis",
      ms31j: "shiftjis",
      xsjis: "shiftjis",
      windows932: "shiftjis",
      ms932: "shiftjis",
      932: "shiftjis",
      cp932: "shiftjis",
      eucjp: {
        type: "_dbcs",
        table: function() {
          return require_eucjp();
        },
        encodeAdd: { "\xA5": 92, "\u203E": 126 }
      },
      // TODO: KDDI extension to Shift_JIS
      // TODO: IBM CCSID 942 = CP932, but F0-F9 custom chars and other char changes.
      // TODO: IBM CCSID 943 = Shift_JIS = CP932 with original Shift_JIS lower 128 chars.
      // == Chinese/GBK ==========================================================
      // http://en.wikipedia.org/wiki/GBK
      // We mostly implement W3C recommendation: https://www.w3.org/TR/encoding/#gbk-encoder
      // Oldest GB2312 (1981, ~7600 chars) is a subset of CP936
      gb2312: "cp936",
      gb231280: "cp936",
      gb23121980: "cp936",
      csgb2312: "cp936",
      csiso58gb231280: "cp936",
      euccn: "cp936",
      // Microsoft's CP936 is a subset and approximation of GBK.
      windows936: "cp936",
      ms936: "cp936",
      936: "cp936",
      cp936: {
        type: "_dbcs",
        table: function() {
          return require_cp936();
        }
      },
      // GBK (~22000 chars) is an extension of CP936 that added user-mapped chars and some other.
      gbk: {
        type: "_dbcs",
        table: function() {
          return require_cp936().concat(require_gbk_added());
        }
      },
      xgbk: "gbk",
      isoir58: "gbk",
      // GB18030 is an algorithmic extension of GBK.
      // Main source: https://www.w3.org/TR/encoding/#gbk-encoder
      // http://icu-project.org/docs/papers/gb18030.html
      // http://source.icu-project.org/repos/icu/data/trunk/charset/data/xml/gb-18030-2000.xml
      // http://www.khngai.com/chinese/charmap/tblgbk.php?page=0
      gb18030: {
        type: "_dbcs",
        table: function() {
          return require_cp936().concat(require_gbk_added());
        },
        gb18030: function() {
          return require_gb18030_ranges();
        },
        encodeSkipVals: [128],
        encodeAdd: { "\u20AC": 41699 }
      },
      chinese: "gb18030",
      // == Korean ===============================================================
      // EUC-KR, KS_C_5601 and KS X 1001 are exactly the same.
      windows949: "cp949",
      ms949: "cp949",
      949: "cp949",
      cp949: {
        type: "_dbcs",
        table: function() {
          return require_cp949();
        }
      },
      cseuckr: "cp949",
      csksc56011987: "cp949",
      euckr: "cp949",
      isoir149: "cp949",
      korean: "cp949",
      ksc56011987: "cp949",
      ksc56011989: "cp949",
      ksc5601: "cp949",
      // == Big5/Taiwan/Hong Kong ================================================
      // There are lots of tables for Big5 and cp950. Please see the following links for history:
      // http://moztw.org/docs/big5/  http://www.haible.de/bruno/charsets/conversion-tables/Big5.html
      // Variations, in roughly number of defined chars:
      //  * Windows CP 950: Microsoft variant of Big5. Canonical: http://www.unicode.org/Public/MAPPINGS/VENDORS/MICSFT/WINDOWS/CP950.TXT
      //  * Windows CP 951: Microsoft variant of Big5-HKSCS-2001. Seems to be never public. http://me.abelcheung.org/articles/research/what-is-cp951/
      //  * Big5-2003 (Taiwan standard) almost superset of cp950.
      //  * Unicode-at-on (UAO) / Mozilla 1.8. Falling out of use on the Web. Not supported by other browsers.
      //  * Big5-HKSCS (-2001, -2004, -2008). Hong Kong standard.
      //    many unicode code points moved from PUA to Supplementary plane (U+2XXXX) over the years.
      //    Plus, it has 4 combining sequences.
      //    Seems that Mozilla refused to support it for 10 yrs. https://bugzilla.mozilla.org/show_bug.cgi?id=162431 https://bugzilla.mozilla.org/show_bug.cgi?id=310299
      //    because big5-hkscs is the only encoding to include astral characters in non-algorithmic way.
      //    Implementations are not consistent within browsers; sometimes labeled as just big5.
      //    MS Internet Explorer switches from big5 to big5-hkscs when a patch applied.
      //    Great discussion & recap of what's going on https://bugzilla.mozilla.org/show_bug.cgi?id=912470#c31
      //    In the encoder, it might make sense to support encoding old PUA mappings to Big5 bytes seq-s.
      //    Official spec: http://www.ogcio.gov.hk/en/business/tech_promotion/ccli/terms/doc/2003cmp_2008.txt
      //                   http://www.ogcio.gov.hk/tc/business/tech_promotion/ccli/terms/doc/hkscs-2008-big5-iso.txt
      //
      // Current understanding of how to deal with Big5(-HKSCS) is in the Encoding Standard, http://encoding.spec.whatwg.org/#big5-encoder
      // Unicode mapping (http://www.unicode.org/Public/MAPPINGS/OBSOLETE/EASTASIA/OTHER/BIG5.TXT) is said to be wrong.
      windows950: "cp950",
      ms950: "cp950",
      950: "cp950",
      cp950: {
        type: "_dbcs",
        table: function() {
          return require_cp950();
        }
      },
      // Big5 has many variations and is an extension of cp950. We use Encoding Standard's as a consensus.
      big5: "big5hkscs",
      big5hkscs: {
        type: "_dbcs",
        table: function() {
          return require_cp950().concat(require_big5_added());
        },
        encodeSkipVals: [
          // Although Encoding Standard says we should avoid encoding to HKSCS area (See Step 1 of
          // https://encoding.spec.whatwg.org/#index-big5-pointer), we still do it to increase compatibility with ICU.
          // But if a single unicode point can be encoded both as HKSCS and regular Big5, we prefer the latter.
          36457,
          36463,
          36478,
          36523,
          36532,
          36557,
          36560,
          36695,
          36713,
          36718,
          36811,
          36862,
          36973,
          36986,
          37060,
          37084,
          37105,
          37311,
          37551,
          37552,
          37553,
          37554,
          37585,
          37959,
          38090,
          38361,
          38652,
          39285,
          39798,
          39800,
          39803,
          39878,
          39902,
          39916,
          39926,
          40002,
          40019,
          40034,
          40040,
          40043,
          40055,
          40124,
          40125,
          40144,
          40279,
          40282,
          40388,
          40431,
          40443,
          40617,
          40687,
          40701,
          40800,
          40907,
          41079,
          41180,
          41183,
          36812,
          37576,
          38468,
          38637,
          // Step 2 of https://encoding.spec.whatwg.org/#index-big5-pointer: Use last pointer for U+2550, U+255E, U+2561, U+256A, U+5341, or U+5345
          41636,
          41637,
          41639,
          41638,
          41676,
          41678
        ]
      },
      cnbig5: "big5hkscs",
      csbig5: "big5hkscs",
      xxbig5: "big5hkscs"
    };
  }
});

// node_modules/iconv-lite/encodings/index.js
var require_encodings = __commonJS({
  "node_modules/iconv-lite/encodings/index.js"(exports2, module2) {
    "use strict";
    var mergeModules = require_merge_exports();
    var modules = [
      require_internal(),
      require_utf32(),
      require_utf16(),
      require_utf7(),
      require_sbcs_codec(),
      require_sbcs_data(),
      require_sbcs_data_generated(),
      require_dbcs_codec(),
      require_dbcs_data()
    ];
    for (i2 = 0; i2 < modules.length; i2++) {
      module2 = modules[i2];
      mergeModules(exports2, module2);
    }
    var module2;
    var i2;
  }
});

// node_modules/iconv-lite/lib/streams.js
var require_streams = __commonJS({
  "node_modules/iconv-lite/lib/streams.js"(exports2, module2) {
    "use strict";
    var Buffer3 = require_safer().Buffer;
    module2.exports = function(streamModule) {
      var Transform2 = streamModule.Transform;
      function IconvLiteEncoderStream(conv, options3) {
        this.conv = conv;
        options3 = options3 || {};
        options3.decodeStrings = false;
        Transform2.call(this, options3);
      }
      IconvLiteEncoderStream.prototype = Object.create(Transform2.prototype, {
        constructor: { value: IconvLiteEncoderStream }
      });
      IconvLiteEncoderStream.prototype._transform = function(chunk, encoding2, done) {
        if (typeof chunk !== "string") {
          return done(new Error("Iconv encoding stream needs strings as its input."));
        }
        try {
          var res = this.conv.write(chunk);
          if (res && res.length) this.push(res);
          done();
        } catch (e2) {
          done(e2);
        }
      };
      IconvLiteEncoderStream.prototype._flush = function(done) {
        try {
          var res = this.conv.end();
          if (res && res.length) this.push(res);
          done();
        } catch (e2) {
          done(e2);
        }
      };
      IconvLiteEncoderStream.prototype.collect = function(cb) {
        var chunks = [];
        this.on("error", cb);
        this.on("data", function(chunk) {
          chunks.push(chunk);
        });
        this.on("end", function() {
          cb(null, Buffer3.concat(chunks));
        });
        return this;
      };
      function IconvLiteDecoderStream(conv, options3) {
        this.conv = conv;
        options3 = options3 || {};
        options3.encoding = this.encoding = "utf8";
        Transform2.call(this, options3);
      }
      IconvLiteDecoderStream.prototype = Object.create(Transform2.prototype, {
        constructor: { value: IconvLiteDecoderStream }
      });
      IconvLiteDecoderStream.prototype._transform = function(chunk, encoding2, done) {
        if (!Buffer3.isBuffer(chunk) && !(chunk instanceof Uint8Array)) {
          return done(new Error("Iconv decoding stream needs buffers as its input."));
        }
        try {
          var res = this.conv.write(chunk);
          if (res && res.length) this.push(res, this.encoding);
          done();
        } catch (e2) {
          done(e2);
        }
      };
      IconvLiteDecoderStream.prototype._flush = function(done) {
        try {
          var res = this.conv.end();
          if (res && res.length) this.push(res, this.encoding);
          done();
        } catch (e2) {
          done(e2);
        }
      };
      IconvLiteDecoderStream.prototype.collect = function(cb) {
        var res = "";
        this.on("error", cb);
        this.on("data", function(chunk) {
          res += chunk;
        });
        this.on("end", function() {
          cb(null, res);
        });
        return this;
      };
      return {
        IconvLiteEncoderStream,
        IconvLiteDecoderStream
      };
    };
  }
});

// node_modules/iconv-lite/lib/index.js
var require_lib3 = __commonJS({
  "node_modules/iconv-lite/lib/index.js"(exports2, module2) {
    "use strict";
    var Buffer3 = require_safer().Buffer;
    var bomHandling = require_bom_handling();
    var mergeModules = require_merge_exports();
    module2.exports.encodings = null;
    module2.exports.defaultCharUnicode = "\uFFFD";
    module2.exports.defaultCharSingleByte = "?";
    module2.exports.encode = function encode2(str, encoding2, options3) {
      str = "" + (str || "");
      var encoder = module2.exports.getEncoder(encoding2, options3);
      var res = encoder.write(str);
      var trail = encoder.end();
      return trail && trail.length > 0 ? Buffer3.concat([res, trail]) : res;
    };
    module2.exports.decode = function decode2(buf, encoding2, options3) {
      if (typeof buf === "string") {
        if (!module2.exports.skipDecodeWarning) {
          console.error("Iconv-lite warning: decode()-ing strings is deprecated. Refer to https://github.com/ashtuchkin/iconv-lite/wiki/Use-Buffers-when-decoding");
          module2.exports.skipDecodeWarning = true;
        }
        buf = Buffer3.from("" + (buf || ""), "binary");
      }
      var decoder = module2.exports.getDecoder(encoding2, options3);
      var res = decoder.write(buf);
      var trail = decoder.end();
      return trail ? res + trail : res;
    };
    module2.exports.encodingExists = function encodingExists(enc) {
      try {
        module2.exports.getCodec(enc);
        return true;
      } catch (e2) {
        return false;
      }
    };
    module2.exports.toEncoding = module2.exports.encode;
    module2.exports.fromEncoding = module2.exports.decode;
    module2.exports._codecDataCache = { __proto__: null };
    module2.exports.getCodec = function getCodec(encoding2) {
      if (!module2.exports.encodings) {
        var raw = require_encodings();
        module2.exports.encodings = { __proto__: null };
        mergeModules(module2.exports.encodings, raw);
      }
      var enc = module2.exports._canonicalizeEncoding(encoding2);
      var codecOptions = {};
      while (true) {
        var codec = module2.exports._codecDataCache[enc];
        if (codec) {
          return codec;
        }
        var codecDef = module2.exports.encodings[enc];
        switch (typeof codecDef) {
          case "string":
            enc = codecDef;
            break;
          case "object":
            for (var key in codecDef) {
              codecOptions[key] = codecDef[key];
            }
            if (!codecOptions.encodingName) {
              codecOptions.encodingName = enc;
            }
            enc = codecDef.type;
            break;
          case "function":
            if (!codecOptions.encodingName) {
              codecOptions.encodingName = enc;
            }
            codec = new codecDef(codecOptions, module2.exports);
            module2.exports._codecDataCache[codecOptions.encodingName] = codec;
            return codec;
          default:
            throw new Error("Encoding not recognized: '" + encoding2 + "' (searched as: '" + enc + "')");
        }
      }
    };
    module2.exports._canonicalizeEncoding = function(encoding2) {
      return ("" + encoding2).toLowerCase().replace(/:\d{4}$|[^0-9a-z]/g, "");
    };
    module2.exports.getEncoder = function getEncoder(encoding2, options3) {
      var codec = module2.exports.getCodec(encoding2);
      var encoder = new codec.encoder(options3, codec);
      if (codec.bomAware && options3 && options3.addBOM) {
        encoder = new bomHandling.PrependBOM(encoder, options3);
      }
      return encoder;
    };
    module2.exports.getDecoder = function getDecoder(encoding2, options3) {
      var codec = module2.exports.getCodec(encoding2);
      var decoder = new codec.decoder(options3, codec);
      if (codec.bomAware && !(options3 && options3.stripBOM === false)) {
        decoder = new bomHandling.StripBOM(decoder, options3);
      }
      return decoder;
    };
    module2.exports.enableStreamingAPI = function enableStreamingAPI(streamModule2) {
      if (module2.exports.supportsStreams) {
        return;
      }
      var streams = require_streams()(streamModule2);
      module2.exports.IconvLiteEncoderStream = streams.IconvLiteEncoderStream;
      module2.exports.IconvLiteDecoderStream = streams.IconvLiteDecoderStream;
      module2.exports.encodeStream = function encodeStream(encoding2, options3) {
        return new module2.exports.IconvLiteEncoderStream(module2.exports.getEncoder(encoding2, options3), options3);
      };
      module2.exports.decodeStream = function decodeStream(encoding2, options3) {
        return new module2.exports.IconvLiteDecoderStream(module2.exports.getDecoder(encoding2, options3), options3);
      };
      module2.exports.supportsStreams = true;
    };
    var streamModule;
    try {
      streamModule = require("stream");
    } catch (e2) {
    }
    if (streamModule && streamModule.Transform) {
      module2.exports.enableStreamingAPI(streamModule);
    } else {
      module2.exports.encodeStream = module2.exports.decodeStream = function() {
        throw new Error("iconv-lite Streaming API is not enabled. Use iconv.enableStreamingAPI(require('stream')); to enable it.");
      };
    }
    if (false) {
      console.error("iconv-lite warning: js files use non-utf8 encoding. See https://github.com/ashtuchkin/iconv-lite/wiki/Javascript-source-file-encodings for more info.");
    }
  }
});

// src/util/lodash.ts
function omit(obj, properties) {
  let o2 = {};
  for (let key of Object.keys(obj)) {
    if (!properties.includes(key)) {
      o2[key] = obj[key];
    }
  }
  return o2;
}
var objectProto, hasOwnProperty3;
var init_lodash = __esm({
  "src/util/lodash.ts"() {
    "use strict";
    objectProto = Object.prototype;
    hasOwnProperty3 = objectProto.hasOwnProperty;
  }
});

// src/util/processes.ts
function isRunning(pid) {
  try {
    let res = process.kill(pid, 0);
    return res == true;
  } catch (e2) {
    return e2["code"] === "EPERM";
  }
}
function executable(command) {
  try {
    which.sync(command);
  } catch (e2) {
    return false;
  }
  return true;
}
async function execWithTimeout(file, args, opts = {}, timeout2 = 5e3) {
  if (typeof timeout2 !== "number" && timeout2.isCancellationRequested) throw new CancellationError();
  let pending = (0, import_util.promisify)(child_process.execFile)(file, args, { ...opts, encoding: "utf8" });
  let disposable;
  let cancelled = new Promise((_resolve, reject) => {
    let cancel = () => {
      pending.child.kill("SIGKILL");
      reject(new CancellationError());
    };
    if (typeof timeout2 === "number") {
      let timer = setTimeout(cancel, timeout2);
      disposable = import_node4.Disposable.create(() => clearTimeout(timer));
    } else {
      disposable = timeout2.onCancellationRequested(cancel);
    }
  });
  try {
    return await Promise.race([pending, cancelled]);
  } finally {
    disposable.dispose();
  }
}
function runCommand(cmd, opts = {}, timeout2, isWindows2 = platform === 3 /* Windows */) {
  if (!isWindows2) {
    opts.shell = opts.shell || process.env.SHELL;
  }
  opts.maxBuffer = opts.maxBuffer ?? 500 * 1024;
  let encoding2 = opts.encoding || "utf8";
  encoding2 = import_iconv_lite.default.encodingExists(encoding2) ? encoding2 : "utf8";
  return new Promise((resolve, reject) => {
    let disposable;
    let cp;
    if (typeof timeout2 === "number") {
      let timer = setTimeout(() => {
        terminate(cp);
        reject(new CancellationError());
      }, timeout2 * 1e3);
      disposable = import_node4.Disposable.create(() => {
        clearTimeout(timer);
      });
    } else if (import_node4.CancellationToken.is(timeout2)) {
      disposable = timeout2.onCancellationRequested(() => {
        terminate(cp);
        reject(new CancellationError());
      });
    }
    cp = child_process.exec(cmd, { ...omit(opts, ["encoding"]), encoding: "buffer" }, (err, stdout, stderr) => {
      if (disposable) disposable.dispose();
      if (err) {
        reject(new Error(`exited with ${err.code}
${err}
${stderr.toString("utf8")}`));
        return;
      }
      resolve(import_iconv_lite.default.decode(stdout, encoding2));
    });
  });
}
function terminate(process2, cwd2, pt = platform) {
  if (process2.killed) return;
  if (pt === 3 /* Windows */) {
    try {
      let options3 = {
        stdio: ["pipe", "pipe", "ignore"]
      };
      if (cwd2) options3.cwd = cwd2;
      child_process.execFileSync(
        "taskkill",
        ["/T", "/F", "/PID", process2.pid.toString()],
        options3
      );
      return true;
    } catch (err) {
      return false;
    }
  } else if (pt === 2 /* Linux */ || pt === 1 /* Mac */) {
    try {
      let filepath = path.join(pluginRoot, "bin/terminateProcess.sh");
      let result = child_process.spawnSync(filepath, [process2.pid.toString()]);
      return result.error ? false : true;
    } catch (err) {
      return false;
    }
  } else {
    process2.kill("SIGKILL");
    return true;
  }
}
var import_iconv_lite;
var init_processes = __esm({
  "src/util/processes.ts"() {
    "use strict";
    init_constants();
    init_errors();
    init_node();
    init_platform();
    import_iconv_lite = __toESM(require_lib3());
    init_protocol();
    init_lodash();
  }
});

// src/model/resolver.ts
var Resolver;
var init_resolver = __esm({
  "src/model/resolver.ts"() {
    "use strict";
    init_node();
    init_fs();
    init_processes();
    Resolver = class {
      _npmFolder;
      _yarnFolder;
      get nodeFolder() {
        if (!executable("npm")) return Promise.resolve("");
        if (this._npmFolder) return Promise.resolve(this._npmFolder);
        return runCommand("npm --loglevel silent root -g", {}, 3e3).then((root) => {
          this._npmFolder = stripAnsi(root).trim();
          return this._npmFolder;
        });
      }
      get yarnFolder() {
        if (!executable("yarnpkg")) return Promise.resolve("");
        if (this._yarnFolder) return Promise.resolve(this._yarnFolder);
        return runCommand("yarnpkg global dir", {}, 3e3).then((root) => {
          let folder = path.join(stripAnsi(root).trim(), "node_modules");
          let exists = fs.existsSync(folder);
          if (exists) this._yarnFolder = folder;
          return exists ? folder : "";
        });
      }
      async resolveModule(mod) {
        let nodeFolder = await this.nodeFolder;
        let yarnFolder = await this.yarnFolder;
        if (yarnFolder) {
          let s2 = await statAsync(path.join(yarnFolder, mod, "package.json"));
          if (s2 && s2.isFile()) return path.join(yarnFolder, mod);
        }
        if (nodeFolder) {
          let s2 = await statAsync(path.join(nodeFolder, mod, "package.json"));
          if (s2 && s2.isFile()) return path.join(nodeFolder, mod);
        }
        return null;
      }
    };
  }
});

// src/core/funcs.ts
function has(env, feature) {
  if (!feature.startsWith("nvim-") && !feature.startsWith("patch-")) {
    throw new Error("Feature param could only starts with nvim and patch");
  }
  if (!env.isVim && feature.startsWith("patch-")) {
    return false;
  }
  if (env.isVim && feature.startsWith("nvim-")) {
    return false;
  }
  if (env.isVim) {
    let [_2, major, minor, patch] = env.version.match(/^(\d)(\d{2})(\d+)$/);
    let version2 = `${major}.${parseInt(minor, 10)}.${parseInt(patch, 10)}`;
    return semver.gte(version2, convertVersion(feature.slice(6)));
  }
  return semver.gte(env.version, feature.slice(5));
}
function convertVersion(version2) {
  let parts = version2.split(".");
  return `${parseInt(parts[0], 10)}.${parseInt(parts[1], 10)}.${parseInt(parts[2], 10)}`;
}
function callAsync(nvim, method, args) {
  return mutex.use(() => {
    if (!isVim) return nvim.call(method, args);
    return nvim.callAsync("coc#util#with_callback", [method, args]).catch(onUnexpectedError);
  });
}
function createNameSpace(name2) {
  if (namespaceMap.has(name2)) return namespaceMap.get(name2);
  NAME_SPACE = NAME_SPACE + 1;
  namespaceMap.set(name2, NAME_SPACE);
  return NAME_SPACE;
}
function getWatchmanPath(configurations) {
  const watchmanPath = configurations.initialConfiguration.get("coc.preferences.watchmanPath", "watchman");
  return which.sync(watchmanPath, { nothrow: true });
}
async function findUp2(nvim, cwd2, filename) {
  let filepath = await nvim.call("coc#util#get_fullpath");
  filepath = path.normalize(filepath);
  let isFile2 = filepath && path.isAbsolute(filepath);
  if (isFile2 && !isParentFolder(cwd2, filepath, true)) {
    return findUp(filename, path.dirname(filepath));
  }
  let res = findUp(filename, cwd2);
  if (res && res != os.homedir()) return res;
  if (isFile2) return findUp(filename, path.dirname(filepath));
  return null;
}
function resolveModule(name2) {
  return resolver.resolveModule(name2);
}
function score(selector, uri, languageId, caseInsensitive = isWindows || isMacintosh) {
  let u2 = u.parse(uri);
  if (Array.isArray(selector)) {
    let ret = 0;
    for (const filter3 of selector) {
      const value = score(filter3, uri, languageId);
      if (value === 10) {
        return value;
      }
      if (value > ret) {
        ret = value;
      }
    }
    return ret;
  } else if (typeof selector === "string") {
    if (selector === "*") {
      return 5;
    } else if (selector === languageId) {
      return 10;
    } else {
      return 0;
    }
  } else if (selector && import_node4.TextDocumentFilter.is(selector)) {
    const { language, pattern, scheme } = selector;
    let ret = 0;
    if (scheme) {
      if (scheme === u2.scheme) {
        ret = 5;
      } else if (scheme === "*") {
        ret = 3;
      } else {
        return 0;
      }
    }
    if (language) {
      if (language === languageId) {
        ret = 10;
      } else if (language === "*") {
        ret = Math.max(ret, 5);
      } else {
        return 0;
      }
    }
    if (pattern) {
      let relativePattern;
      let filepath = u2.fsPath;
      if (import_node4.RelativePattern.is(pattern)) {
        relativePattern = pattern.pattern;
        let baseUri = u.parse(typeof pattern.baseUri === "string" ? pattern.baseUri : pattern.baseUri.uri);
        if (u2.scheme !== "file" || !isParentFolder(baseUri.fsPath, u2.fsPath, true)) {
          return 0;
        }
        filepath = path.relative(baseUri.fsPath, u2.fsPath).split(path.sep).join("/");
        if (relativePattern.startsWith("/")) filepath = `/${filepath}`;
      } else {
        relativePattern = pattern;
      }
      let p2 = caseInsensitive ? relativePattern.toLowerCase() : relativePattern;
      let f2 = caseInsensitive ? filepath.toLowerCase() : filepath;
      if (p2 === f2 || minimatch(f2, p2, { dot: true })) {
        ret = Math.max(ret, 5);
      } else {
        return 0;
      }
    }
    return ret;
  } else {
    return 0;
  }
}
var NAME_SPACE, resolver, namespaceMap, mutex;
var init_funcs = __esm({
  "src/core/funcs.ts"() {
    "use strict";
    init_esm();
    init_resolver();
    init_constants();
    init_errors();
    init_fs();
    init_mutex();
    init_node();
    init_platform();
    init_protocol();
    NAME_SPACE = 2e3;
    resolver = new Resolver();
    namespaceMap = /* @__PURE__ */ new Map();
    mutex = new Mutex();
  }
});

// node_modules/marked/lib/marked.esm.js
function _getDefaults() {
  return {
    async: false,
    breaks: false,
    extensions: null,
    gfm: true,
    hooks: null,
    pedantic: false,
    renderer: null,
    silent: false,
    tokenizer: null,
    walkTokens: null
  };
}
function changeDefaults(newDefaults) {
  _defaults = newDefaults;
}
function escape(html, encode2) {
  if (encode2) {
    if (escapeTest.test(html)) {
      return html.replace(escapeReplace, getEscapeReplacement);
    }
  } else {
    if (escapeTestNoEncode.test(html)) {
      return html.replace(escapeReplaceNoEncode, getEscapeReplacement);
    }
  }
  return html;
}
function unescape2(html) {
  return html.replace(unescapeTest, (_2, n2) => {
    n2 = n2.toLowerCase();
    if (n2 === "colon")
      return ":";
    if (n2.charAt(0) === "#") {
      return n2.charAt(1) === "x" ? String.fromCharCode(parseInt(n2.substring(2), 16)) : String.fromCharCode(+n2.substring(1));
    }
    return "";
  });
}
function edit(regex2, opt) {
  regex2 = typeof regex2 === "string" ? regex2 : regex2.source;
  opt = opt || "";
  const obj = {
    replace: (name2, val) => {
      val = typeof val === "object" && "source" in val ? val.source : val;
      val = val.replace(caret, "$1");
      regex2 = regex2.replace(name2, val);
      return obj;
    },
    getRegex: () => {
      return new RegExp(regex2, opt);
    }
  };
  return obj;
}
function cleanUrl(href) {
  try {
    href = encodeURI(href).replace(/%25/g, "%");
  } catch (e2) {
    return null;
  }
  return href;
}
function splitCells(tableRow, count) {
  const row = tableRow.replace(/\|/g, (match2, offset, str) => {
    let escaped = false;
    let curr = offset;
    while (--curr >= 0 && str[curr] === "\\")
      escaped = !escaped;
    if (escaped) {
      return "|";
    } else {
      return " |";
    }
  }), cells = row.split(/ \|/);
  let i2 = 0;
  if (!cells[0].trim()) {
    cells.shift();
  }
  if (cells.length > 0 && !cells[cells.length - 1].trim()) {
    cells.pop();
  }
  if (count) {
    if (cells.length > count) {
      cells.splice(count);
    } else {
      while (cells.length < count)
        cells.push("");
    }
  }
  for (; i2 < cells.length; i2++) {
    cells[i2] = cells[i2].trim().replace(/\\\|/g, "|");
  }
  return cells;
}
function rtrim(str, c2, invert) {
  const l2 = str.length;
  if (l2 === 0) {
    return "";
  }
  let suffLen = 0;
  while (suffLen < l2) {
    const currChar = str.charAt(l2 - suffLen - 1);
    if (currChar === c2 && !invert) {
      suffLen++;
    } else if (currChar !== c2 && invert) {
      suffLen++;
    } else {
      break;
    }
  }
  return str.slice(0, l2 - suffLen);
}
function findClosingBracket(str, b2) {
  if (str.indexOf(b2[1]) === -1) {
    return -1;
  }
  let level2 = 0;
  for (let i2 = 0; i2 < str.length; i2++) {
    if (str[i2] === "\\") {
      i2++;
    } else if (str[i2] === b2[0]) {
      level2++;
    } else if (str[i2] === b2[1]) {
      level2--;
      if (level2 < 0) {
        return i2;
      }
    }
  }
  return -1;
}
function outputLink(cap, link, raw, lexer2) {
  const href = link.href;
  const title = link.title ? escape(link.title) : null;
  const text = cap[1].replace(/\\([\[\]])/g, "$1");
  if (cap[0].charAt(0) !== "!") {
    lexer2.state.inLink = true;
    const token = {
      type: "link",
      raw,
      href,
      title,
      text,
      tokens: lexer2.inlineTokens(text)
    };
    lexer2.state.inLink = false;
    return token;
  }
  return {
    type: "image",
    raw,
    href,
    title,
    text: escape(text)
  };
}
function indentCodeCompensation(raw, text) {
  const matchIndentToCode = raw.match(/^(\s+)(?:```)/);
  if (matchIndentToCode === null) {
    return text;
  }
  const indentToCode = matchIndentToCode[1];
  return text.split("\n").map((node) => {
    const matchIndentInNode = node.match(/^\s+/);
    if (matchIndentInNode === null) {
      return node;
    }
    const [indentInNode] = matchIndentInNode;
    if (indentInNode.length >= indentToCode.length) {
      return node.slice(indentToCode.length);
    }
    return node;
  }).join("\n");
}
function marked(src, opt) {
  return markedInstance.parse(src, opt);
}
var _defaults, escapeTest, escapeReplace, escapeTestNoEncode, escapeReplaceNoEncode, escapeReplacements, getEscapeReplacement, unescapeTest, caret, noopTest, _Tokenizer, block, inline, _Lexer, _Renderer, _TextRenderer, _Parser, _Hooks, Marked, markedInstance, options2, setOptions, use, walkTokens, parseInline, parser, lexer;
var init_marked_esm = __esm({
  "node_modules/marked/lib/marked.esm.js"() {
    _defaults = _getDefaults();
    escapeTest = /[&<>"']/;
    escapeReplace = new RegExp(escapeTest.source, "g");
    escapeTestNoEncode = /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/;
    escapeReplaceNoEncode = new RegExp(escapeTestNoEncode.source, "g");
    escapeReplacements = {
      "&": "&",
      "<": "<",
      ">": ">",
      '"': """,
      "'": "'"
    };
    getEscapeReplacement = (ch) => escapeReplacements[ch];
    unescapeTest = /&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;
    caret = /(^|[^\[])\^/g;
    noopTest = { exec: () => null };
    _Tokenizer = class {
      options;
      // TODO: Fix this rules type
      rules;
      lexer;
      constructor(options3) {
        this.options = options3 || _defaults;
      }
      space(src) {
        const cap = this.rules.block.newline.exec(src);
        if (cap && cap[0].length > 0) {
          return {
            type: "space",
            raw: cap[0]
          };
        }
      }
      code(src) {
        const cap = this.rules.block.code.exec(src);
        if (cap) {
          const text = cap[0].replace(/^ {1,4}/gm, "");
          return {
            type: "code",
            raw: cap[0],
            codeBlockStyle: "indented",
            text: !this.options.pedantic ? rtrim(text, "\n") : text
          };
        }
      }
      fences(src) {
        const cap = this.rules.block.fences.exec(src);
        if (cap) {
          const raw = cap[0];
          const text = indentCodeCompensation(raw, cap[3] || "");
          return {
            type: "code",
            raw,
            lang: cap[2] ? cap[2].trim().replace(this.rules.inline._escapes, "$1") : cap[2],
            text
          };
        }
      }
      heading(src) {
        const cap = this.rules.block.heading.exec(src);
        if (cap) {
          let text = cap[2].trim();
          if (/#$/.test(text)) {
            const trimmed = rtrim(text, "#");
            if (this.options.pedantic) {
              text = trimmed.trim();
            } else if (!trimmed || / $/.test(trimmed)) {
              text = trimmed.trim();
            }
          }
          return {
            type: "heading",
            raw: cap[0],
            depth: cap[1].length,
            text,
            tokens: this.lexer.inline(text)
          };
        }
      }
      hr(src) {
        const cap = this.rules.block.hr.exec(src);
        if (cap) {
          return {
            type: "hr",
            raw: cap[0]
          };
        }
      }
      blockquote(src) {
        const cap = this.rules.block.blockquote.exec(src);
        if (cap) {
          const text = rtrim(cap[0].replace(/^ *>[ \t]?/gm, ""), "\n");
          const top = this.lexer.state.top;
          this.lexer.state.top = true;
          const tokens = this.lexer.blockTokens(text);
          this.lexer.state.top = top;
          return {
            type: "blockquote",
            raw: cap[0],
            tokens,
            text
          };
        }
      }
      list(src) {
        let cap = this.rules.block.list.exec(src);
        if (cap) {
          let bull = cap[1].trim();
          const isordered = bull.length > 1;
          const list2 = {
            type: "list",
            raw: "",
            ordered: isordered,
            start: isordered ? +bull.slice(0, -1) : "",
            loose: false,
            items: []
          };
          bull = isordered ? `\\d{1,9}\\${bull.slice(-1)}` : `\\${bull}`;
          if (this.options.pedantic) {
            bull = isordered ? bull : "[*+-]";
          }
          const itemRegex = new RegExp(`^( {0,3}${bull})((?:[	 ][^\\n]*)?(?:\\n|$))`);
          let raw = "";
          let itemContents = "";
          let endsWithBlankLine = false;
          while (src) {
            let endEarly = false;
            if (!(cap = itemRegex.exec(src))) {
              break;
            }
            if (this.rules.block.hr.test(src)) {
              break;
            }
            raw = cap[0];
            src = src.substring(raw.length);
            let line = cap[2].split("\n", 1)[0].replace(/^\t+/, (t2) => " ".repeat(3 * t2.length));
            let nextLine = src.split("\n", 1)[0];
            let indent = 0;
            if (this.options.pedantic) {
              indent = 2;
              itemContents = line.trimStart();
            } else {
              indent = cap[2].search(/[^ ]/);
              indent = indent > 4 ? 1 : indent;
              itemContents = line.slice(indent);
              indent += cap[1].length;
            }
            let blankLine = false;
            if (!line && /^ *$/.test(nextLine)) {
              raw += nextLine + "\n";
              src = src.substring(nextLine.length + 1);
              endEarly = true;
            }
            if (!endEarly) {
              const nextBulletRegex = new RegExp(`^ {0,${Math.min(3, indent - 1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ 	][^\\n]*)?(?:\\n|$))`);
              const hrRegex = new RegExp(`^ {0,${Math.min(3, indent - 1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`);
              const fencesBeginRegex = new RegExp(`^ {0,${Math.min(3, indent - 1)}}(?:\`\`\`|~~~)`);
              const headingBeginRegex = new RegExp(`^ {0,${Math.min(3, indent - 1)}}#`);
              while (src) {
                const rawLine = src.split("\n", 1)[0];
                nextLine = rawLine;
                if (this.options.pedantic) {
                  nextLine = nextLine.replace(/^ {1,4}(?=( {4})*[^ ])/g, "  ");
                }
                if (fencesBeginRegex.test(nextLine)) {
                  break;
                }
                if (headingBeginRegex.test(nextLine)) {
                  break;
                }
                if (nextBulletRegex.test(nextLine)) {
                  break;
                }
                if (hrRegex.test(src)) {
                  break;
                }
                if (nextLine.search(/[^ ]/) >= indent || !nextLine.trim()) {
                  itemContents += "\n" + nextLine.slice(indent);
                } else {
                  if (blankLine) {
                    break;
                  }
                  if (line.search(/[^ ]/) >= 4) {
                    break;
                  }
                  if (fencesBeginRegex.test(line)) {
                    break;
                  }
                  if (headingBeginRegex.test(line)) {
                    break;
                  }
                  if (hrRegex.test(line)) {
                    break;
                  }
                  itemContents += "\n" + nextLine;
                }
                if (!blankLine && !nextLine.trim()) {
                  blankLine = true;
                }
                raw += rawLine + "\n";
                src = src.substring(rawLine.length + 1);
                line = nextLine.slice(indent);
              }
            }
            if (!list2.loose) {
              if (endsWithBlankLine) {
                list2.loose = true;
              } else if (/\n *\n *$/.test(raw)) {
                endsWithBlankLine = true;
              }
            }
            let istask = null;
            let ischecked;
            if (this.options.gfm) {
              istask = /^\[[ xX]\] /.exec(itemContents);
              if (istask) {
                ischecked = istask[0] !== "[ ] ";
                itemContents = itemContents.replace(/^\[[ xX]\] +/, "");
              }
            }
            list2.items.push({
              type: "list_item",
              raw,
              task: !!istask,
              checked: ischecked,
              loose: false,
              text: itemContents,
              tokens: []
            });
            list2.raw += raw;
          }
          list2.items[list2.items.length - 1].raw = raw.trimEnd();
          list2.items[list2.items.length - 1].text = itemContents.trimEnd();
          list2.raw = list2.raw.trimEnd();
          for (let i2 = 0; i2 < list2.items.length; i2++) {
            this.lexer.state.top = false;
            list2.items[i2].tokens = this.lexer.blockTokens(list2.items[i2].text, []);
            if (!list2.loose) {
              const spacers = list2.items[i2].tokens.filter((t2) => t2.type === "space");
              const hasMultipleLineBreaks = spacers.length > 0 && spacers.some((t2) => /\n.*\n/.test(t2.raw));
              list2.loose = hasMultipleLineBreaks;
            }
          }
          if (list2.loose) {
            for (let i2 = 0; i2 < list2.items.length; i2++) {
              list2.items[i2].loose = true;
            }
          }
          return list2;
        }
      }
      html(src) {
        const cap = this.rules.block.html.exec(src);
        if (cap) {
          const token = {
            type: "html",
            block: true,
            raw: cap[0],
            pre: cap[1] === "pre" || cap[1] === "script" || cap[1] === "style",
            text: cap[0]
          };
          return token;
        }
      }
      def(src) {
        const cap = this.rules.block.def.exec(src);
        if (cap) {
          const tag = cap[1].toLowerCase().replace(/\s+/g, " ");
          const href = cap[2] ? cap[2].replace(/^<(.*)>$/, "$1").replace(this.rules.inline._escapes, "$1") : "";
          const title = cap[3] ? cap[3].substring(1, cap[3].length - 1).replace(this.rules.inline._escapes, "$1") : cap[3];
          return {
            type: "def",
            tag,
            raw: cap[0],
            href,
            title
          };
        }
      }
      table(src) {
        const cap = this.rules.block.table.exec(src);
        if (cap) {
          if (!/[:|]/.test(cap[2])) {
            return;
          }
          const item = {
            type: "table",
            raw: cap[0],
            header: splitCells(cap[1]).map((c2) => {
              return { text: c2, tokens: [] };
            }),
            align: cap[2].replace(/^\||\| *$/g, "").split("|"),
            rows: cap[3] && cap[3].trim() ? cap[3].replace(/\n[ \t]*$/, "").split("\n") : []
          };
          if (item.header.length === item.align.length) {
            let l2 = item.align.length;
            let i2, j, k, row;
            for (i2 = 0; i2 < l2; i2++) {
              const align = item.align[i2];
              if (align) {
                if (/^ *-+: *$/.test(align)) {
                  item.align[i2] = "right";
                } else if (/^ *:-+: *$/.test(align)) {
                  item.align[i2] = "center";
                } else if (/^ *:-+ *$/.test(align)) {
                  item.align[i2] = "left";
                } else {
                  item.align[i2] = null;
                }
              }
            }
            l2 = item.rows.length;
            for (i2 = 0; i2 < l2; i2++) {
              item.rows[i2] = splitCells(item.rows[i2], item.header.length).map((c2) => {
                return { text: c2, tokens: [] };
              });
            }
            l2 = item.header.length;
            for (j = 0; j < l2; j++) {
              item.header[j].tokens = this.lexer.inline(item.header[j].text);
            }
            l2 = item.rows.length;
            for (j = 0; j < l2; j++) {
              row = item.rows[j];
              for (k = 0; k < row.length; k++) {
                row[k].tokens = this.lexer.inline(row[k].text);
              }
            }
            return item;
          }
        }
      }
      lheading(src) {
        const cap = this.rules.block.lheading.exec(src);
        if (cap) {
          return {
            type: "heading",
            raw: cap[0],
            depth: cap[2].charAt(0) === "=" ? 1 : 2,
            text: cap[1],
            tokens: this.lexer.inline(cap[1])
          };
        }
      }
      paragraph(src) {
        const cap = this.rules.block.paragraph.exec(src);
        if (cap) {
          const text = cap[1].charAt(cap[1].length - 1) === "\n" ? cap[1].slice(0, -1) : cap[1];
          return {
            type: "paragraph",
            raw: cap[0],
            text,
            tokens: this.lexer.inline(text)
          };
        }
      }
      text(src) {
        const cap = this.rules.block.text.exec(src);
        if (cap) {
          return {
            type: "text",
            raw: cap[0],
            text: cap[0],
            tokens: this.lexer.inline(cap[0])
          };
        }
      }
      escape(src) {
        const cap = this.rules.inline.escape.exec(src);
        if (cap) {
          return {
            type: "escape",
            raw: cap[0],
            text: escape(cap[1])
          };
        }
      }
      tag(src) {
        const cap = this.rules.inline.tag.exec(src);
        if (cap) {
          if (!this.lexer.state.inLink && /^/i.test(cap[0])) {
            this.lexer.state.inLink = false;
          }
          if (!this.lexer.state.inRawBlock && /^<(pre|code|kbd|script)(\s|>)/i.test(cap[0])) {
            this.lexer.state.inRawBlock = true;
          } else if (this.lexer.state.inRawBlock && /^<\/(pre|code|kbd|script)(\s|>)/i.test(cap[0])) {
            this.lexer.state.inRawBlock = false;
          }
          return {
            type: "html",
            raw: cap[0],
            inLink: this.lexer.state.inLink,
            inRawBlock: this.lexer.state.inRawBlock,
            block: false,
            text: cap[0]
          };
        }
      }
      link(src) {
        const cap = this.rules.inline.link.exec(src);
        if (cap) {
          const trimmedUrl = cap[2].trim();
          if (!this.options.pedantic && /^$/.test(trimmedUrl)) {
              return;
            }
            const rtrimSlash = rtrim(trimmedUrl.slice(0, -1), "\\");
            if ((trimmedUrl.length - rtrimSlash.length) % 2 === 0) {
              return;
            }
          } else {
            const lastParenIndex = findClosingBracket(cap[2], "()");
            if (lastParenIndex > -1) {
              const start = cap[0].indexOf("!") === 0 ? 5 : 4;
              const linkLen = start + cap[1].length + lastParenIndex;
              cap[2] = cap[2].substring(0, lastParenIndex);
              cap[0] = cap[0].substring(0, linkLen).trim();
              cap[3] = "";
            }
          }
          let href = cap[2];
          let title = "";
          if (this.options.pedantic) {
            const link = /^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(href);
            if (link) {
              href = link[1];
              title = link[3];
            }
          } else {
            title = cap[3] ? cap[3].slice(1, -1) : "";
          }
          href = href.trim();
          if (/^$/.test(trimmedUrl)) {
              href = href.slice(1);
            } else {
              href = href.slice(1, -1);
            }
          }
          return outputLink(cap, {
            href: href ? href.replace(this.rules.inline._escapes, "$1") : href,
            title: title ? title.replace(this.rules.inline._escapes, "$1") : title
          }, cap[0], this.lexer);
        }
      }
      reflink(src, links2) {
        let cap;
        if ((cap = this.rules.inline.reflink.exec(src)) || (cap = this.rules.inline.nolink.exec(src))) {
          let link = (cap[2] || cap[1]).replace(/\s+/g, " ");
          link = links2[link.toLowerCase()];
          if (!link) {
            const text = cap[0].charAt(0);
            return {
              type: "text",
              raw: text,
              text
            };
          }
          return outputLink(cap, link, cap[0], this.lexer);
        }
      }
      emStrong(src, maskedSrc, prevChar = "") {
        let match2 = this.rules.inline.emStrong.lDelim.exec(src);
        if (!match2)
          return;
        if (match2[3] && prevChar.match(/[\p{L}\p{N}]/u))
          return;
        const nextChar = match2[1] || match2[2] || "";
        if (!nextChar || !prevChar || this.rules.inline.punctuation.exec(prevChar)) {
          const lLength = [...match2[0]].length - 1;
          let rDelim, rLength, delimTotal = lLength, midDelimTotal = 0;
          const endReg = match2[0][0] === "*" ? this.rules.inline.emStrong.rDelimAst : this.rules.inline.emStrong.rDelimUnd;
          endReg.lastIndex = 0;
          maskedSrc = maskedSrc.slice(-1 * src.length + lLength);
          while ((match2 = endReg.exec(maskedSrc)) != null) {
            rDelim = match2[1] || match2[2] || match2[3] || match2[4] || match2[5] || match2[6];
            if (!rDelim)
              continue;
            rLength = [...rDelim].length;
            if (match2[3] || match2[4]) {
              delimTotal += rLength;
              continue;
            } else if (match2[5] || match2[6]) {
              if (lLength % 3 && !((lLength + rLength) % 3)) {
                midDelimTotal += rLength;
                continue;
              }
            }
            delimTotal -= rLength;
            if (delimTotal > 0)
              continue;
            rLength = Math.min(rLength, rLength + delimTotal + midDelimTotal);
            const lastCharLength = [...match2[0]][0].length;
            const raw = src.slice(0, lLength + match2.index + lastCharLength + rLength);
            if (Math.min(lLength, rLength) % 2) {
              const text2 = raw.slice(1, -1);
              return {
                type: "em",
                raw,
                text: text2,
                tokens: this.lexer.inlineTokens(text2)
              };
            }
            const text = raw.slice(2, -2);
            return {
              type: "strong",
              raw,
              text,
              tokens: this.lexer.inlineTokens(text)
            };
          }
        }
      }
      codespan(src) {
        const cap = this.rules.inline.code.exec(src);
        if (cap) {
          let text = cap[2].replace(/\n/g, " ");
          const hasNonSpaceChars = /[^ ]/.test(text);
          const hasSpaceCharsOnBothEnds = /^ /.test(text) && / $/.test(text);
          if (hasNonSpaceChars && hasSpaceCharsOnBothEnds) {
            text = text.substring(1, text.length - 1);
          }
          text = escape(text, true);
          return {
            type: "codespan",
            raw: cap[0],
            text
          };
        }
      }
      br(src) {
        const cap = this.rules.inline.br.exec(src);
        if (cap) {
          return {
            type: "br",
            raw: cap[0]
          };
        }
      }
      del(src) {
        const cap = this.rules.inline.del.exec(src);
        if (cap) {
          return {
            type: "del",
            raw: cap[0],
            text: cap[2],
            tokens: this.lexer.inlineTokens(cap[2])
          };
        }
      }
      autolink(src) {
        const cap = this.rules.inline.autolink.exec(src);
        if (cap) {
          let text, href;
          if (cap[2] === "@") {
            text = escape(cap[1]);
            href = "mailto:" + text;
          } else {
            text = escape(cap[1]);
            href = text;
          }
          return {
            type: "link",
            raw: cap[0],
            text,
            href,
            tokens: [
              {
                type: "text",
                raw: text,
                text
              }
            ]
          };
        }
      }
      url(src) {
        let cap;
        if (cap = this.rules.inline.url.exec(src)) {
          let text, href;
          if (cap[2] === "@") {
            text = escape(cap[0]);
            href = "mailto:" + text;
          } else {
            let prevCapZero;
            do {
              prevCapZero = cap[0];
              cap[0] = this.rules.inline._backpedal.exec(cap[0])[0];
            } while (prevCapZero !== cap[0]);
            text = escape(cap[0]);
            if (cap[1] === "www.") {
              href = "http://" + cap[0];
            } else {
              href = cap[0];
            }
          }
          return {
            type: "link",
            raw: cap[0],
            text,
            href,
            tokens: [
              {
                type: "text",
                raw: text,
                text
              }
            ]
          };
        }
      }
      inlineText(src) {
        const cap = this.rules.inline.text.exec(src);
        if (cap) {
          let text;
          if (this.lexer.state.inRawBlock) {
            text = cap[0];
          } else {
            text = escape(cap[0]);
          }
          return {
            type: "text",
            raw: cap[0],
            text
          };
        }
      }
    };
    block = {
      newline: /^(?: *(?:\n|$))+/,
      code: /^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,
      fences: /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,
      hr: /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,
      heading: /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,
      blockquote: /^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,
      list: /^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/,
      html: "^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|\\n*|$)|\\n*|$)|)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))",
      def: /^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/,
      table: noopTest,
      lheading: /^(?!bull )((?:.|\n(?!\s*?\n|bull ))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,
      // regex template, placeholders will be replaced according to different paragraph
      // interruption rules of commonmark and the original markdown spec:
      _paragraph: /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,
      text: /^[^\n]+/
    };
    block._label = /(?!\s*\])(?:\\.|[^\[\]\\])+/;
    block._title = /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/;
    block.def = edit(block.def).replace("label", block._label).replace("title", block._title).getRegex();
    block.bullet = /(?:[*+-]|\d{1,9}[.)])/;
    block.listItemStart = edit(/^( *)(bull) */).replace("bull", block.bullet).getRegex();
    block.list = edit(block.list).replace(/bull/g, block.bullet).replace("hr", "\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def", "\\n+(?=" + block.def.source + ")").getRegex();
    block._tag = "address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul";
    block._comment = /|$)/;
    block.html = edit(block.html, "i").replace("comment", block._comment).replace("tag", block._tag).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex();
    block.lheading = edit(block.lheading).replace(/bull/g, block.bullet).getRegex();
    block.paragraph = edit(block._paragraph).replace("hr", block.hr).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("|table", "").replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", ")|<(?:script|pre|style|textarea|!--)").replace("tag", block._tag).getRegex();
    block.blockquote = edit(block.blockquote).replace("paragraph", block.paragraph).getRegex();
    block.normal = { ...block };
    block.gfm = {
      ...block.normal,
      table: "^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"
      // Cells
    };
    block.gfm.table = edit(block.gfm.table).replace("hr", block.hr).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("blockquote", " {0,3}>").replace("code", " {4}[^\\n]").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", ")|<(?:script|pre|style|textarea|!--)").replace("tag", block._tag).getRegex();
    block.gfm.paragraph = edit(block._paragraph).replace("hr", block.hr).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", block.gfm.table).replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", ")|<(?:script|pre|style|textarea|!--)").replace("tag", block._tag).getRegex();
    block.pedantic = {
      ...block.normal,
      html: edit(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment", block._comment).replace(/tag/g, "(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),
      def: /^ *\[([^\]]+)\]: *]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,
      heading: /^(#{1,6})(.*)(?:\n+|$)/,
      fences: noopTest,
      lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,
      paragraph: edit(block.normal._paragraph).replace("hr", block.hr).replace("heading", " *#{1,6} *[^\n]").replace("lheading", block.lheading).replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").getRegex()
    };
    inline = {
      escape: /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,
      autolink: /^<(scheme:[^\s\x00-\x1f<>]*|email)>/,
      url: noopTest,
      tag: "^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^",
      link: /^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,
      reflink: /^!?\[(label)\]\[(ref)\]/,
      nolink: /^!?\[(ref)\](?:\[\])?/,
      reflinkSearch: "reflink|nolink(?!\\()",
      emStrong: {
        lDelim: /^(?:\*+(?:((?!\*)[punct])|[^\s*]))|^_+(?:((?!_)[punct])|([^\s_]))/,
        //         (1) and (2) can only be a Right Delimiter. (3) and (4) can only be Left.  (5) and (6) can be either Left or Right.
        //         | Skip orphan inside strong      | Consume to delim | (1) #***              | (2) a***#, a***                    | (3) #***a, ***a                  | (4) ***#                 | (5) #***#                         | (6) a***a
        rDelimAst: /^[^_*]*?__[^_*]*?\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\*)[punct](\*+)(?=[\s]|$)|[^punct\s](\*+)(?!\*)(?=[punct\s]|$)|(?!\*)[punct\s](\*+)(?=[^punct\s])|[\s](\*+)(?!\*)(?=[punct])|(?!\*)[punct](\*+)(?!\*)(?=[punct])|[^punct\s](\*+)(?=[^punct\s])/,
        rDelimUnd: /^[^_*]*?\*\*[^_*]*?_[^_*]*?(?=\*\*)|[^_]+(?=[^_])|(?!_)[punct](_+)(?=[\s]|$)|[^punct\s](_+)(?!_)(?=[punct\s]|$)|(?!_)[punct\s](_+)(?=[^punct\s])|[\s](_+)(?!_)(?=[punct])|(?!_)[punct](_+)(?!_)(?=[punct])/
        // ^- Not allowed for _
      },
      code: /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,
      br: /^( {2,}|\\)\n(?!\s*$)/,
      del: noopTest,
      text: /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\`^|~";
    inline.punctuation = edit(inline.punctuation, "u").replace(/punctuation/g, inline._punctuation).getRegex();
    inline.blockSkip = /\[[^[\]]*?\]\([^\(\)]*?\)|`[^`]*?`|<[^<>]*?>/g;
    inline.anyPunctuation = /\\[punct]/g;
    inline._escapes = /\\([punct])/g;
    inline._comment = edit(block._comment).replace("(?:-->|$)", "-->").getRegex();
    inline.emStrong.lDelim = edit(inline.emStrong.lDelim, "u").replace(/punct/g, inline._punctuation).getRegex();
    inline.emStrong.rDelimAst = edit(inline.emStrong.rDelimAst, "gu").replace(/punct/g, inline._punctuation).getRegex();
    inline.emStrong.rDelimUnd = edit(inline.emStrong.rDelimUnd, "gu").replace(/punct/g, inline._punctuation).getRegex();
    inline.anyPunctuation = edit(inline.anyPunctuation, "gu").replace(/punct/g, inline._punctuation).getRegex();
    inline._escapes = edit(inline._escapes, "gu").replace(/punct/g, inline._punctuation).getRegex();
    inline._scheme = /[a-zA-Z][a-zA-Z0-9+.-]{1,31}/;
    inline._email = /[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/;
    inline.autolink = edit(inline.autolink).replace("scheme", inline._scheme).replace("email", inline._email).getRegex();
    inline._attribute = /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/;
    inline.tag = edit(inline.tag).replace("comment", inline._comment).replace("attribute", inline._attribute).getRegex();
    inline._label = /(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/;
    inline._href = /<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/;
    inline._title = /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/;
    inline.link = edit(inline.link).replace("label", inline._label).replace("href", inline._href).replace("title", inline._title).getRegex();
    inline.reflink = edit(inline.reflink).replace("label", inline._label).replace("ref", block._label).getRegex();
    inline.nolink = edit(inline.nolink).replace("ref", block._label).getRegex();
    inline.reflinkSearch = edit(inline.reflinkSearch, "g").replace("reflink", inline.reflink).replace("nolink", inline.nolink).getRegex();
    inline.normal = { ...inline };
    inline.pedantic = {
      ...inline.normal,
      strong: {
        start: /^__|\*\*/,
        middle: /^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,
        endAst: /\*\*(?!\*)/g,
        endUnd: /__(?!_)/g
      },
      em: {
        start: /^_|\*/,
        middle: /^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,
        endAst: /\*(?!\*)/g,
        endUnd: /_(?!_)/g
      },
      link: edit(/^!?\[(label)\]\((.*?)\)/).replace("label", inline._label).getRegex(),
      reflink: edit(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", inline._label).getRegex()
    };
    inline.gfm = {
      ...inline.normal,
      escape: edit(inline.escape).replace("])", "~|])").getRegex(),
      _extended_email: /[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,
      url: /^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,
      _backpedal: /(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,
      del: /^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,
      text: /^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\ {
            return leading + "    ".repeat(tabs.length);
          });
        }
        let token;
        let lastToken;
        let cutSrc;
        let lastParagraphClipped;
        while (src) {
          if (this.options.extensions && this.options.extensions.block && this.options.extensions.block.some((extTokenizer) => {
            if (token = extTokenizer.call({ lexer: this }, src, tokens)) {
              src = src.substring(token.raw.length);
              tokens.push(token);
              return true;
            }
            return false;
          })) {
            continue;
          }
          if (token = this.tokenizer.space(src)) {
            src = src.substring(token.raw.length);
            if (token.raw.length === 1 && tokens.length > 0) {
              tokens[tokens.length - 1].raw += "\n";
            } else {
              tokens.push(token);
            }
            continue;
          }
          if (token = this.tokenizer.code(src)) {
            src = src.substring(token.raw.length);
            lastToken = tokens[tokens.length - 1];
            if (lastToken && (lastToken.type === "paragraph" || lastToken.type === "text")) {
              lastToken.raw += "\n" + token.raw;
              lastToken.text += "\n" + token.text;
              this.inlineQueue[this.inlineQueue.length - 1].src = lastToken.text;
            } else {
              tokens.push(token);
            }
            continue;
          }
          if (token = this.tokenizer.fences(src)) {
            src = src.substring(token.raw.length);
            tokens.push(token);
            continue;
          }
          if (token = this.tokenizer.heading(src)) {
            src = src.substring(token.raw.length);
            tokens.push(token);
            continue;
          }
          if (token = this.tokenizer.hr(src)) {
            src = src.substring(token.raw.length);
            tokens.push(token);
            continue;
          }
          if (token = this.tokenizer.blockquote(src)) {
            src = src.substring(token.raw.length);
            tokens.push(token);
            continue;
          }
          if (token = this.tokenizer.list(src)) {
            src = src.substring(token.raw.length);
            tokens.push(token);
            continue;
          }
          if (token = this.tokenizer.html(src)) {
            src = src.substring(token.raw.length);
            tokens.push(token);
            continue;
          }
          if (token = this.tokenizer.def(src)) {
            src = src.substring(token.raw.length);
            lastToken = tokens[tokens.length - 1];
            if (lastToken && (lastToken.type === "paragraph" || lastToken.type === "text")) {
              lastToken.raw += "\n" + token.raw;
              lastToken.text += "\n" + token.raw;
              this.inlineQueue[this.inlineQueue.length - 1].src = lastToken.text;
            } else if (!this.tokens.links[token.tag]) {
              this.tokens.links[token.tag] = {
                href: token.href,
                title: token.title
              };
            }
            continue;
          }
          if (token = this.tokenizer.table(src)) {
            src = src.substring(token.raw.length);
            tokens.push(token);
            continue;
          }
          if (token = this.tokenizer.lheading(src)) {
            src = src.substring(token.raw.length);
            tokens.push(token);
            continue;
          }
          cutSrc = src;
          if (this.options.extensions && this.options.extensions.startBlock) {
            let startIndex = Infinity;
            const tempSrc = src.slice(1);
            let tempStart;
            this.options.extensions.startBlock.forEach((getStartIndex) => {
              tempStart = getStartIndex.call({ lexer: this }, tempSrc);
              if (typeof tempStart === "number" && tempStart >= 0) {
                startIndex = Math.min(startIndex, tempStart);
              }
            });
            if (startIndex < Infinity && startIndex >= 0) {
              cutSrc = src.substring(0, startIndex + 1);
            }
          }
          if (this.state.top && (token = this.tokenizer.paragraph(cutSrc))) {
            lastToken = tokens[tokens.length - 1];
            if (lastParagraphClipped && lastToken.type === "paragraph") {
              lastToken.raw += "\n" + token.raw;
              lastToken.text += "\n" + token.text;
              this.inlineQueue.pop();
              this.inlineQueue[this.inlineQueue.length - 1].src = lastToken.text;
            } else {
              tokens.push(token);
            }
            lastParagraphClipped = cutSrc.length !== src.length;
            src = src.substring(token.raw.length);
            continue;
          }
          if (token = this.tokenizer.text(src)) {
            src = src.substring(token.raw.length);
            lastToken = tokens[tokens.length - 1];
            if (lastToken && lastToken.type === "text") {
              lastToken.raw += "\n" + token.raw;
              lastToken.text += "\n" + token.text;
              this.inlineQueue.pop();
              this.inlineQueue[this.inlineQueue.length - 1].src = lastToken.text;
            } else {
              tokens.push(token);
            }
            continue;
          }
          if (src) {
            const errMsg = "Infinite loop on byte: " + src.charCodeAt(0);
            if (this.options.silent) {
              console.error(errMsg);
              break;
            } else {
              throw new Error(errMsg);
            }
          }
        }
        this.state.top = true;
        return tokens;
      }
      inline(src, tokens = []) {
        this.inlineQueue.push({ src, tokens });
        return tokens;
      }
      /**
       * Lexing/Compiling
       */
      inlineTokens(src, tokens = []) {
        let token, lastToken, cutSrc;
        let maskedSrc = src;
        let match2;
        let keepPrevChar, prevChar;
        if (this.tokens.links) {
          const links2 = Object.keys(this.tokens.links);
          if (links2.length > 0) {
            while ((match2 = this.tokenizer.rules.inline.reflinkSearch.exec(maskedSrc)) != null) {
              if (links2.includes(match2[0].slice(match2[0].lastIndexOf("[") + 1, -1))) {
                maskedSrc = maskedSrc.slice(0, match2.index) + "[" + "a".repeat(match2[0].length - 2) + "]" + maskedSrc.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex);
              }
            }
          }
        }
        while ((match2 = this.tokenizer.rules.inline.blockSkip.exec(maskedSrc)) != null) {
          maskedSrc = maskedSrc.slice(0, match2.index) + "[" + "a".repeat(match2[0].length - 2) + "]" + maskedSrc.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);
        }
        while ((match2 = this.tokenizer.rules.inline.anyPunctuation.exec(maskedSrc)) != null) {
          maskedSrc = maskedSrc.slice(0, match2.index) + "++" + maskedSrc.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);
        }
        while (src) {
          if (!keepPrevChar) {
            prevChar = "";
          }
          keepPrevChar = false;
          if (this.options.extensions && this.options.extensions.inline && this.options.extensions.inline.some((extTokenizer) => {
            if (token = extTokenizer.call({ lexer: this }, src, tokens)) {
              src = src.substring(token.raw.length);
              tokens.push(token);
              return true;
            }
            return false;
          })) {
            continue;
          }
          if (token = this.tokenizer.escape(src)) {
            src = src.substring(token.raw.length);
            tokens.push(token);
            continue;
          }
          if (token = this.tokenizer.tag(src)) {
            src = src.substring(token.raw.length);
            lastToken = tokens[tokens.length - 1];
            if (lastToken && token.type === "text" && lastToken.type === "text") {
              lastToken.raw += token.raw;
              lastToken.text += token.text;
            } else {
              tokens.push(token);
            }
            continue;
          }
          if (token = this.tokenizer.link(src)) {
            src = src.substring(token.raw.length);
            tokens.push(token);
            continue;
          }
          if (token = this.tokenizer.reflink(src, this.tokens.links)) {
            src = src.substring(token.raw.length);
            lastToken = tokens[tokens.length - 1];
            if (lastToken && token.type === "text" && lastToken.type === "text") {
              lastToken.raw += token.raw;
              lastToken.text += token.text;
            } else {
              tokens.push(token);
            }
            continue;
          }
          if (token = this.tokenizer.emStrong(src, maskedSrc, prevChar)) {
            src = src.substring(token.raw.length);
            tokens.push(token);
            continue;
          }
          if (token = this.tokenizer.codespan(src)) {
            src = src.substring(token.raw.length);
            tokens.push(token);
            continue;
          }
          if (token = this.tokenizer.br(src)) {
            src = src.substring(token.raw.length);
            tokens.push(token);
            continue;
          }
          if (token = this.tokenizer.del(src)) {
            src = src.substring(token.raw.length);
            tokens.push(token);
            continue;
          }
          if (token = this.tokenizer.autolink(src)) {
            src = src.substring(token.raw.length);
            tokens.push(token);
            continue;
          }
          if (!this.state.inLink && (token = this.tokenizer.url(src))) {
            src = src.substring(token.raw.length);
            tokens.push(token);
            continue;
          }
          cutSrc = src;
          if (this.options.extensions && this.options.extensions.startInline) {
            let startIndex = Infinity;
            const tempSrc = src.slice(1);
            let tempStart;
            this.options.extensions.startInline.forEach((getStartIndex) => {
              tempStart = getStartIndex.call({ lexer: this }, tempSrc);
              if (typeof tempStart === "number" && tempStart >= 0) {
                startIndex = Math.min(startIndex, tempStart);
              }
            });
            if (startIndex < Infinity && startIndex >= 0) {
              cutSrc = src.substring(0, startIndex + 1);
            }
          }
          if (token = this.tokenizer.inlineText(cutSrc)) {
            src = src.substring(token.raw.length);
            if (token.raw.slice(-1) !== "_") {
              prevChar = token.raw.slice(-1);
            }
            keepPrevChar = true;
            lastToken = tokens[tokens.length - 1];
            if (lastToken && lastToken.type === "text") {
              lastToken.raw += token.raw;
              lastToken.text += token.text;
            } else {
              tokens.push(token);
            }
            continue;
          }
          if (src) {
            const errMsg = "Infinite loop on byte: " + src.charCodeAt(0);
            if (this.options.silent) {
              console.error(errMsg);
              break;
            } else {
              throw new Error(errMsg);
            }
          }
        }
        return tokens;
      }
    };
    _Renderer = class {
      options;
      constructor(options3) {
        this.options = options3 || _defaults;
      }
      code(code, infostring, escaped) {
        const lang = (infostring || "").match(/^\S*/)?.[0];
        code = code.replace(/\n$/, "") + "\n";
        if (!lang) {
          return "
" + (escaped ? code : escape(code, true)) + "
\n"; } return '
' + (escaped ? code : escape(code, true)) + "
\n"; } blockquote(quote) { return `
${quote}
`; } html(html, block2) { return html; } heading(text, level2, raw) { return `${text} `; } hr() { return "
\n"; } list(body, ordered, start) { const type = ordered ? "ol" : "ul"; const startatt = ordered && start !== 1 ? ' start="' + start + '"' : ""; return "<" + type + startatt + ">\n" + body + "\n"; } listitem(text, task, checked) { return `
  • ${text}
  • `; } checkbox(checked) { return "'; } paragraph(text) { return `

    ${text}

    `; } table(header, body) { if (body) body = `${body}`; return "\n\n" + header + "\n" + body + "
    \n"; } tablerow(content) { return ` ${content} `; } tablecell(content, flags) { const type = flags.header ? "th" : "td"; const tag = flags.align ? `<${type} align="${flags.align}">` : `<${type}>`; return tag + content + ` `; } /** * span level renderer */ strong(text) { return `${text}`; } em(text) { return `${text}`; } codespan(text) { return `${text}`; } br() { return "
    "; } del(text) { return `${text}`; } link(href, title, text) { const cleanHref = cleanUrl(href); if (cleanHref === null) { return text; } href = cleanHref; let out = '
    "; return out; } image(href, title, text) { const cleanHref = cleanUrl(href); if (cleanHref === null) { return text; } href = cleanHref; let out = `${text} 0 && item.tokens[0].type === "paragraph") { item.tokens[0].text = checkbox + " " + item.tokens[0].text; if (item.tokens[0].tokens && item.tokens[0].tokens.length > 0 && item.tokens[0].tokens[0].type === "text") { item.tokens[0].tokens[0].text = checkbox + " " + item.tokens[0].tokens[0].text; } } else { item.tokens.unshift({ type: "text", text: checkbox + " " }); } } else { itemBody += checkbox + " "; } } itemBody += this.parse(item.tokens, loose); body += this.renderer.listitem(itemBody, task, !!checked); } out += this.renderer.list(body, ordered, start); continue; } case "html": { const htmlToken = token; out += this.renderer.html(htmlToken.text, htmlToken.block); continue; } case "paragraph": { const paragraphToken = token; out += this.renderer.paragraph(this.parseInline(paragraphToken.tokens)); continue; } case "text": { let textToken = token; let body = textToken.tokens ? this.parseInline(textToken.tokens) : textToken.text; while (i2 + 1 < tokens.length && tokens[i2 + 1].type === "text") { textToken = tokens[++i2]; body += "\n" + (textToken.tokens ? this.parseInline(textToken.tokens) : textToken.text); } out += top ? this.renderer.paragraph(body) : body; continue; } default: { const errMsg = 'Token with "' + token.type + '" type was not found.'; if (this.options.silent) { console.error(errMsg); return ""; } else { throw new Error(errMsg); } } } } return out; } /** * Parse Inline Tokens */ parseInline(tokens, renderer) { renderer = renderer || this.renderer; let out = ""; for (let i2 = 0; i2 < tokens.length; i2++) { const token = tokens[i2]; if (this.options.extensions && this.options.extensions.renderers && this.options.extensions.renderers[token.type]) { const ret = this.options.extensions.renderers[token.type].call({ parser: this }, token); if (ret !== false || !["escape", "html", "link", "image", "strong", "em", "codespan", "br", "del", "text"].includes(token.type)) { out += ret || ""; continue; } } switch (token.type) { case "escape": { const escapeToken = token; out += renderer.text(escapeToken.text); break; } case "html": { const tagToken = token; out += renderer.html(tagToken.text); break; } case "link": { const linkToken = token; out += renderer.link(linkToken.href, linkToken.title, this.parseInline(linkToken.tokens, renderer)); break; } case "image": { const imageToken = token; out += renderer.image(imageToken.href, imageToken.title, imageToken.text); break; } case "strong": { const strongToken = token; out += renderer.strong(this.parseInline(strongToken.tokens, renderer)); break; } case "em": { const emToken = token; out += renderer.em(this.parseInline(emToken.tokens, renderer)); break; } case "codespan": { const codespanToken = token; out += renderer.codespan(codespanToken.text); break; } case "br": { out += renderer.br(); break; } case "del": { const delToken = token; out += renderer.del(this.parseInline(delToken.tokens, renderer)); break; } case "text": { const textToken = token; out += renderer.text(textToken.text); break; } default: { const errMsg = 'Token with "' + token.type + '" type was not found.'; if (this.options.silent) { console.error(errMsg); return ""; } else { throw new Error(errMsg); } } } } return out; } }; _Hooks = class { options; constructor(options3) { this.options = options3 || _defaults; } static passThroughHooks = /* @__PURE__ */ new Set([ "preprocess", "postprocess" ]); /** * Process markdown before marked */ preprocess(markdown) { return markdown; } /** * Process HTML after marked is finished */ postprocess(html) { return html; } }; Marked = class { defaults = _getDefaults(); options = this.setOptions; parse = this.#parseMarkdown(_Lexer.lex, _Parser.parse); parseInline = this.#parseMarkdown(_Lexer.lexInline, _Parser.parseInline); Parser = _Parser; Renderer = _Renderer; TextRenderer = _TextRenderer; Lexer = _Lexer; Tokenizer = _Tokenizer; Hooks = _Hooks; constructor(...args) { this.use(...args); } /** * Run callback for every token */ walkTokens(tokens, callback) { let values = []; for (const token of tokens) { values = values.concat(callback.call(this, token)); switch (token.type) { case "table": { const tableToken = token; for (const cell of tableToken.header) { values = values.concat(this.walkTokens(cell.tokens, callback)); } for (const row of tableToken.rows) { for (const cell of row) { values = values.concat(this.walkTokens(cell.tokens, callback)); } } break; } case "list": { const listToken = token; values = values.concat(this.walkTokens(listToken.items, callback)); break; } default: { const genericToken = token; if (this.defaults.extensions?.childTokens?.[genericToken.type]) { this.defaults.extensions.childTokens[genericToken.type].forEach((childTokens) => { values = values.concat(this.walkTokens(genericToken[childTokens], callback)); }); } else if (genericToken.tokens) { values = values.concat(this.walkTokens(genericToken.tokens, callback)); } } } } return values; } use(...args) { const extensions = this.defaults.extensions || { renderers: {}, childTokens: {} }; args.forEach((pack) => { const opts = { ...pack }; opts.async = this.defaults.async || opts.async || false; if (pack.extensions) { pack.extensions.forEach((ext2) => { if (!ext2.name) { throw new Error("extension name required"); } if ("renderer" in ext2) { const prevRenderer = extensions.renderers[ext2.name]; if (prevRenderer) { extensions.renderers[ext2.name] = function(...args2) { let ret = ext2.renderer.apply(this, args2); if (ret === false) { ret = prevRenderer.apply(this, args2); } return ret; }; } else { extensions.renderers[ext2.name] = ext2.renderer; } } if ("tokenizer" in ext2) { if (!ext2.level || ext2.level !== "block" && ext2.level !== "inline") { throw new Error("extension level must be 'block' or 'inline'"); } const extLevel = extensions[ext2.level]; if (extLevel) { extLevel.unshift(ext2.tokenizer); } else { extensions[ext2.level] = [ext2.tokenizer]; } if (ext2.start) { if (ext2.level === "block") { if (extensions.startBlock) { extensions.startBlock.push(ext2.start); } else { extensions.startBlock = [ext2.start]; } } else if (ext2.level === "inline") { if (extensions.startInline) { extensions.startInline.push(ext2.start); } else { extensions.startInline = [ext2.start]; } } } } if ("childTokens" in ext2 && ext2.childTokens) { extensions.childTokens[ext2.name] = ext2.childTokens; } }); opts.extensions = extensions; } if (pack.renderer) { const renderer = this.defaults.renderer || new _Renderer(this.defaults); for (const prop in pack.renderer) { const rendererFunc = pack.renderer[prop]; const rendererKey = prop; const prevRenderer = renderer[rendererKey]; renderer[rendererKey] = (...args2) => { let ret = rendererFunc.apply(renderer, args2); if (ret === false) { ret = prevRenderer.apply(renderer, args2); } return ret || ""; }; } opts.renderer = renderer; } if (pack.tokenizer) { const tokenizer = this.defaults.tokenizer || new _Tokenizer(this.defaults); for (const prop in pack.tokenizer) { const tokenizerFunc = pack.tokenizer[prop]; const tokenizerKey = prop; const prevTokenizer = tokenizer[tokenizerKey]; tokenizer[tokenizerKey] = (...args2) => { let ret = tokenizerFunc.apply(tokenizer, args2); if (ret === false) { ret = prevTokenizer.apply(tokenizer, args2); } return ret; }; } opts.tokenizer = tokenizer; } if (pack.hooks) { const hooks = this.defaults.hooks || new _Hooks(); for (const prop in pack.hooks) { const hooksFunc = pack.hooks[prop]; const hooksKey = prop; const prevHook = hooks[hooksKey]; if (_Hooks.passThroughHooks.has(prop)) { hooks[hooksKey] = (arg) => { if (this.defaults.async) { return Promise.resolve(hooksFunc.call(hooks, arg)).then((ret2) => { return prevHook.call(hooks, ret2); }); } const ret = hooksFunc.call(hooks, arg); return prevHook.call(hooks, ret); }; } else { hooks[hooksKey] = (...args2) => { let ret = hooksFunc.apply(hooks, args2); if (ret === false) { ret = prevHook.apply(hooks, args2); } return ret; }; } } opts.hooks = hooks; } if (pack.walkTokens) { const walkTokens2 = this.defaults.walkTokens; const packWalktokens = pack.walkTokens; opts.walkTokens = function(token) { let values = []; values.push(packWalktokens.call(this, token)); if (walkTokens2) { values = values.concat(walkTokens2.call(this, token)); } return values; }; } this.defaults = { ...this.defaults, ...opts }; }); return this; } setOptions(opt) { this.defaults = { ...this.defaults, ...opt }; return this; } lexer(src, options3) { return _Lexer.lex(src, options3 ?? this.defaults); } parser(tokens, options3) { return _Parser.parse(tokens, options3 ?? this.defaults); } #parseMarkdown(lexer2, parser2) { return (src, options3) => { const origOpt = { ...options3 }; const opt = { ...this.defaults, ...origOpt }; if (this.defaults.async === true && origOpt.async === false) { if (!opt.silent) { console.warn("marked(): The async option was set to true by an extension. The async: false option sent to parse will be ignored."); } opt.async = true; } const throwError = this.#onError(!!opt.silent, !!opt.async); if (typeof src === "undefined" || src === null) { return throwError(new Error("marked(): input parameter is undefined or null")); } if (typeof src !== "string") { return throwError(new Error("marked(): input parameter is of type " + Object.prototype.toString.call(src) + ", string expected")); } if (opt.hooks) { opt.hooks.options = opt; } if (opt.async) { return Promise.resolve(opt.hooks ? opt.hooks.preprocess(src) : src).then((src2) => lexer2(src2, opt)).then((tokens) => opt.walkTokens ? Promise.all(this.walkTokens(tokens, opt.walkTokens)).then(() => tokens) : tokens).then((tokens) => parser2(tokens, opt)).then((html) => opt.hooks ? opt.hooks.postprocess(html) : html).catch(throwError); } try { if (opt.hooks) { src = opt.hooks.preprocess(src); } const tokens = lexer2(src, opt); if (opt.walkTokens) { this.walkTokens(tokens, opt.walkTokens); } let html = parser2(tokens, opt); if (opt.hooks) { html = opt.hooks.postprocess(html); } return html; } catch (e2) { return throwError(e2); } }; } #onError(silent, async) { return (e2) => { e2.message += "\nPlease report this to https://github.com/markedjs/marked."; if (silent) { const msg = "

    An error occurred:

    " + escape(e2.message + "", true) + "
    "; if (async) { return Promise.resolve(msg); } return msg; } if (async) { return Promise.reject(e2); } throw e2; }; } }; markedInstance = new Marked(); marked.options = marked.setOptions = function(options3) { markedInstance.setOptions(options3); marked.defaults = markedInstance.defaults; changeDefaults(marked.defaults); return marked; }; marked.getDefaults = _getDefaults; marked.defaults = _defaults; marked.use = function(...args) { markedInstance.use(...args); marked.defaults = markedInstance.defaults; changeDefaults(marked.defaults); return marked; }; marked.walkTokens = function(tokens, callback) { return markedInstance.walkTokens(tokens, callback); }; marked.parseInline = markedInstance.parseInline; marked.Parser = _Parser; marked.parser = _Parser.parse; marked.Renderer = _Renderer; marked.TextRenderer = _TextRenderer; marked.Lexer = _Lexer; marked.lexer = _Lexer.lex; marked.Tokenizer = _Tokenizer; marked.Hooks = _Hooks; marked.parse = marked; options2 = marked.options; setOptions = marked.setOptions; use = marked.use; walkTokens = marked.walkTokens; parseInline = marked.parseInline; parser = _Parser.parse; lexer = _Lexer.lex; } }); // src/util/ansiparse.ts function parseAnsiHighlights(line, markdown = false, onLinkMarker) { let items = ansiparse(line); let highlights = []; let newLabel = ""; let byteOffset = 0; for (let item of items) { if (item.linkMarker != null) { onLinkMarker?.(item.linkMarker, byteOffset); continue; } if (!item.text) continue; let { foreground, background } = item; let len = byteLength(item.text); let span = [byteOffset, byteOffset + len]; if (foreground && background) { let hlGroup = `CocList${upperFirst(foreground)}${upperFirst(background)}`; highlights.push({ span, hlGroup }); } else if (foreground) { let hlGroup; if (markdown) { if (foreground == "yellow") { hlGroup = "CocMarkdownCode"; } else if (foreground == "blue") { hlGroup = "CocMarkdownLink"; } else if (foreground == "magenta") { hlGroup = "CocMarkdownHeader"; } else { hlGroup = `CocListFg${upperFirst(foreground)}`; } } else { hlGroup = `CocListFg${upperFirst(foreground)}`; } highlights.push({ span, hlGroup }); } else if (background) { let hlGroup = `CocListBg${upperFirst(background)}`; highlights.push({ span, hlGroup }); } if (item.bold) { highlights.push({ span, hlGroup: "CocBold" }); } else if (item.italic) { highlights.push({ span, hlGroup: "CocItalic" }); } else if (item.underline) { highlights.push({ span, hlGroup: "CocUnderline" }); } else if (item.strikethrough) { highlights.push({ span, hlGroup: "CocStrikeThrough" }); } newLabel = newLabel + item.text; byteOffset += len; } return { line: newLabel, highlights }; } function ansiparse(str) { let matchingControl = null; let matchingData = null; let matchingText = ""; let ansiState = []; let result = []; let state = {}; let eraseChar; eraseChar = () => { if (matchingText.length) { matchingText = matchingText.slice(0, matchingText.length - 1); } else if (result.length) { for (let index = result.length - 1; index >= 0; index--) { let text = result[index].text; if (!text.length) continue; if (text.length === 1) { result.splice(index, 1); } else { result[index].text = text.slice(0, text.length - 1); } break; } } }; for (let i2 = 0; i2 < str.length; i2++) { if (matchingControl != null) { if (matchingControl == "\x1B" && str[i2] == "[") { if (matchingText) { state.text = matchingText; result.push(state); state = {}; matchingText = ""; } if (matchingText == "" && (str[i2 + 1] == "m" || str[i2 + 1] == "K")) { if (state.foreground || state.background) { state.text = ""; result.push(state); } state = {}; } matchingControl = null; matchingData = ""; } else { matchingText += matchingControl + str[i2]; matchingControl = null; } continue; } else if (matchingData != null) { if (str[i2] == ";") { ansiState.push(matchingData); matchingData = ""; } else if (str[i2] == "m" || str[i2] == "K") { ansiState.push(matchingData); matchingData = null; matchingText = ""; if (str[i2] == "m" && ansiState.length == 2 && ansiState[0] == "1000" && /^\d+$/.test(ansiState[1])) { let marker = Number(ansiState[1]); if (Number.isSafeInteger(marker)) result.push({ text: "", linkMarker: marker }); } ansiState.forEach((ansiCode) => { if (foregroundColors[ansiCode]) { state.foreground = foregroundColors[ansiCode]; } else if (backgroundColors[ansiCode]) { state.background = backgroundColors[ansiCode]; } else if (ansiCode == 39) { delete state.foreground; } else if (ansiCode == 49) { delete state.background; } else if (styles3[ansiCode]) { state[styles3[ansiCode]] = true; } else if (ansiCode == 22) { state.bold = false; } else if (ansiCode == 23) { state.italic = false; } else if (ansiCode == 24) { state.underline = false; } else if (ansiCode == 29) { state.strikethrough = false; } }); ansiState = []; } else { matchingData += str[i2]; } continue; } if (str[i2] == "\x1B") { matchingControl = str[i2]; } else if (str[i2] == "\b") { eraseChar(); } else { matchingText += str[i2]; } } if (matchingText) { state.text = matchingText + toText(matchingControl); result.push(state); } return result; } function stripAnsiColoring(str) { const ansiColorCodeRegex = /\u001b\[[0-9;]*m/g; return str.replace(ansiColorCodeRegex, ""); } var foregroundColors, backgroundColors, styles3; var init_ansiparse = __esm({ "src/util/ansiparse.ts"() { "use strict"; init_string(); foregroundColors = { 30: "black", 31: "red", 32: "green", 33: "yellow", 34: "blue", 35: "magenta", 36: "cyan", 37: "white", 90: "grey" }; backgroundColors = { 40: "black", 41: "red", 42: "green", 43: "yellow", 44: "blue", 45: "magenta", 46: "cyan", 47: "white" }; styles3 = { 1: "bold", 3: "italic", 4: "underline", 9: "strikethrough" }; } }); // src/markdown/styles.ts function gray(str) { return `${styles2.gray.open}${str}${styles2.gray.close}`; } function magenta(str) { return `${styles2.magenta.open}${str}${styles2.magenta.close}`; } function bold(str) { return `${styles2.bold.open}${str}${styles2.bold.close}`; } function underline(str) { return `${styles2.underline.open}${str}${styles2.underline.close}`; } function strikethrough(str) { return `${styles2.strikethrough.open}${str}${styles2.strikethrough.close}`; } function italic(str) { return `${styles2.italic.open}${str}${styles2.italic.close}`; } function yellow(str) { return `${styles2.yellow.open}${str}${styles2.yellow.close}`; } function blue(str) { return `${styles2.blue.open}${str}${styles2.blue.close}`; } var init_styles = __esm({ "src/markdown/styles.ts"() { "use strict"; init_node(); } }); // node_modules/colors/lib/styles.js var require_styles = __commonJS({ "node_modules/colors/lib/styles.js"(exports2, module2) { var styles4 = {}; module2["exports"] = styles4; var codes = { reset: [0, 0], bold: [1, 22], dim: [2, 22], italic: [3, 23], underline: [4, 24], inverse: [7, 27], hidden: [8, 28], strikethrough: [9, 29], black: [30, 39], red: [31, 39], green: [32, 39], yellow: [33, 39], blue: [34, 39], magenta: [35, 39], cyan: [36, 39], white: [37, 39], gray: [90, 39], grey: [90, 39], bgBlack: [40, 49], bgRed: [41, 49], bgGreen: [42, 49], bgYellow: [43, 49], bgBlue: [44, 49], bgMagenta: [45, 49], bgCyan: [46, 49], bgWhite: [47, 49], // legacy styles for colors pre v1.0.0 blackBG: [40, 49], redBG: [41, 49], greenBG: [42, 49], yellowBG: [43, 49], blueBG: [44, 49], magentaBG: [45, 49], cyanBG: [46, 49], whiteBG: [47, 49] }; Object.keys(codes).forEach(function(key) { var val = codes[key]; var style = styles4[key] = []; style.open = "\x1B[" + val[0] + "m"; style.close = "\x1B[" + val[1] + "m"; }); } }); // node_modules/colors/lib/system/supports-colors.js var require_supports_colors = __commonJS({ "node_modules/colors/lib/system/supports-colors.js"(exports2, module2) { var argv = process.argv; module2.exports = (function() { if (argv.indexOf("--no-color") !== -1 || argv.indexOf("--color=false") !== -1) { return false; } if (argv.indexOf("--color") !== -1 || argv.indexOf("--color=true") !== -1 || argv.indexOf("--color=always") !== -1) { return true; } if (process.stdout && !process.stdout.isTTY) { return false; } if (process.platform === "win32") { return true; } if ("COLORTERM" in process.env) { return true; } if (process.env.TERM === "dumb") { return false; } if (/^screen|^xterm|^vt100|color|ansi|cygwin|linux/i.test(process.env.TERM)) { return true; } return false; })(); } }); // node_modules/colors/lib/custom/trap.js var require_trap = __commonJS({ "node_modules/colors/lib/custom/trap.js"(exports2, module2) { module2["exports"] = function runTheTrap(text, options3) { var result = ""; text = text || "Run the trap, drop the bass"; text = text.split(""); var trap = { a: ["@", "\u0104", "\u023A", "\u0245", "\u0394", "\u039B", "\u0414"], b: ["\xDF", "\u0181", "\u0243", "\u026E", "\u03B2", "\u0E3F"], c: ["\xA9", "\u023B", "\u03FE"], d: ["\xD0", "\u018A", "\u0500", "\u0501", "\u0502", "\u0503"], e: ["\xCB", "\u0115", "\u018E", "\u0258", "\u03A3", "\u03BE", "\u04BC", "\u0A6C"], f: ["\u04FA"], g: ["\u0262"], h: ["\u0126", "\u0195", "\u04A2", "\u04BA", "\u04C7", "\u050A"], i: ["\u0F0F"], j: ["\u0134"], k: ["\u0138", "\u04A0", "\u04C3", "\u051E"], l: ["\u0139"], m: ["\u028D", "\u04CD", "\u04CE", "\u0520", "\u0521", "\u0D69"], n: ["\xD1", "\u014B", "\u019D", "\u0376", "\u03A0", "\u048A"], o: ["\xD8", "\xF5", "\xF8", "\u01FE", "\u0298", "\u047A", "\u05DD", "\u06DD", "\u0E4F"], p: ["\u01F7", "\u048E"], q: ["\u09CD"], r: ["\xAE", "\u01A6", "\u0210", "\u024C", "\u0280", "\u042F"], s: ["\xA7", "\u03DE", "\u03DF", "\u03E8"], t: ["\u0141", "\u0166", "\u0373"], u: ["\u01B1", "\u054D"], v: ["\u05D8"], w: ["\u0428", "\u0460", "\u047C", "\u0D70"], x: ["\u04B2", "\u04FE", "\u04FC", "\u04FD"], y: ["\xA5", "\u04B0", "\u04CB"], z: ["\u01B5", "\u0240"] }; text.forEach(function(c2) { c2 = c2.toLowerCase(); var chars = trap[c2] || [" "]; var rand = Math.floor(Math.random() * chars.length); if (typeof trap[c2] !== "undefined") { result += trap[c2][rand]; } else { result += c2; } }); return result; }; } }); // node_modules/colors/lib/custom/zalgo.js var require_zalgo = __commonJS({ "node_modules/colors/lib/custom/zalgo.js"(exports2, module2) { module2["exports"] = function zalgo(text, options3) { text = text || " he is here "; var soul = { "up": [ "\u030D", "\u030E", "\u0304", "\u0305", "\u033F", "\u0311", "\u0306", "\u0310", "\u0352", "\u0357", "\u0351", "\u0307", "\u0308", "\u030A", "\u0342", "\u0313", "\u0308", "\u034A", "\u034B", "\u034C", "\u0303", "\u0302", "\u030C", "\u0350", "\u0300", "\u0301", "\u030B", "\u030F", "\u0312", "\u0313", "\u0314", "\u033D", "\u0309", "\u0363", "\u0364", "\u0365", "\u0366", "\u0367", "\u0368", "\u0369", "\u036A", "\u036B", "\u036C", "\u036D", "\u036E", "\u036F", "\u033E", "\u035B", "\u0346", "\u031A" ], "down": [ "\u0316", "\u0317", "\u0318", "\u0319", "\u031C", "\u031D", "\u031E", "\u031F", "\u0320", "\u0324", "\u0325", "\u0326", "\u0329", "\u032A", "\u032B", "\u032C", "\u032D", "\u032E", "\u032F", "\u0330", "\u0331", "\u0332", "\u0333", "\u0339", "\u033A", "\u033B", "\u033C", "\u0345", "\u0347", "\u0348", "\u0349", "\u034D", "\u034E", "\u0353", "\u0354", "\u0355", "\u0356", "\u0359", "\u035A", "\u0323" ], "mid": [ "\u0315", "\u031B", "\u0300", "\u0301", "\u0358", "\u0321", "\u0322", "\u0327", "\u0328", "\u0334", "\u0335", "\u0336", "\u035C", "\u035D", "\u035E", "\u035F", "\u0360", "\u0362", "\u0338", "\u0337", "\u0361", " \u0489" ] }, all = [].concat(soul.up, soul.down, soul.mid), zalgo2 = {}; function randomNumber(range2) { var r2 = Math.floor(Math.random() * range2); return r2; } function is_char(character) { var bool = false; all.filter(function(i2) { bool = i2 === character; }); return bool; } function heComes(text2, options4) { var result = "", counts, l2; options4 = options4 || {}; options4["up"] = options4["up"] || true; options4["mid"] = options4["mid"] || true; options4["down"] = options4["down"] || true; options4["size"] = options4["size"] || "maxi"; text2 = text2.split(""); for (l2 in text2) { if (is_char(l2)) { continue; } result = result + text2[l2]; counts = { "up": 0, "down": 0, "mid": 0 }; switch (options4.size) { case "mini": counts.up = randomNumber(8); counts.min = randomNumber(2); counts.down = randomNumber(8); break; case "maxi": counts.up = randomNumber(16) + 3; counts.min = randomNumber(4) + 1; counts.down = randomNumber(64) + 3; break; default: counts.up = randomNumber(8) + 1; counts.mid = randomNumber(6) / 2; counts.down = randomNumber(8) + 1; break; } var arr = ["up", "mid", "down"]; for (var d2 in arr) { var index = arr[d2]; for (var i2 = 0; i2 <= counts[index]; i2++) { if (options4[index]) { result = result + soul[index][randomNumber(soul[index].length)]; } } } } return result; } return heComes(text); }; } }); // node_modules/colors/lib/maps/america.js var require_america = __commonJS({ "node_modules/colors/lib/maps/america.js"(exports2, module2) { var colors = require_colors(); module2["exports"] = /* @__PURE__ */ (function() { return function(letter, i2, exploded) { if (letter === " ") return letter; switch (i2 % 3) { case 0: return colors.red(letter); case 1: return colors.white(letter); case 2: return colors.blue(letter); } }; })(); } }); // node_modules/colors/lib/maps/zebra.js var require_zebra = __commonJS({ "node_modules/colors/lib/maps/zebra.js"(exports2, module2) { var colors = require_colors(); module2["exports"] = function(letter, i2, exploded) { return i2 % 2 === 0 ? letter : colors.inverse(letter); }; } }); // node_modules/colors/lib/maps/rainbow.js var require_rainbow = __commonJS({ "node_modules/colors/lib/maps/rainbow.js"(exports2, module2) { var colors = require_colors(); module2["exports"] = /* @__PURE__ */ (function() { var rainbowColors = ["red", "yellow", "green", "blue", "magenta"]; return function(letter, i2, exploded) { if (letter === " ") { return letter; } else { return colors[rainbowColors[i2++ % rainbowColors.length]](letter); } }; })(); } }); // node_modules/colors/lib/maps/random.js var require_random = __commonJS({ "node_modules/colors/lib/maps/random.js"(exports2, module2) { var colors = require_colors(); module2["exports"] = /* @__PURE__ */ (function() { var available = ["underline", "inverse", "grey", "yellow", "red", "green", "blue", "white", "cyan", "magenta"]; return function(letter, i2, exploded) { return letter === " " ? letter : colors[available[Math.round(Math.random() * (available.length - 1))]](letter); }; })(); } }); // node_modules/colors/lib/colors.js var require_colors = __commonJS({ "node_modules/colors/lib/colors.js"(exports2, module2) { var colors = {}; module2["exports"] = colors; colors.themes = {}; var ansiStyles2 = colors.styles = require_styles(); var defineProps = Object.defineProperties; colors.supportsColor = require_supports_colors(); if (typeof colors.enabled === "undefined") { colors.enabled = colors.supportsColor; } colors.stripColors = colors.strip = function(str) { return ("" + str).replace(/\x1B\[\d+m/g, ""); }; var stylize = colors.stylize = function stylize2(str, style) { return ansiStyles2[style].open + str + ansiStyles2[style].close; }; var matchOperatorsRe = /[|\\{}()[\]^$+*?.]/g; var escapeStringRegexp = function(str) { if (typeof str !== "string") { throw new TypeError("Expected a string"); } return str.replace(matchOperatorsRe, "\\$&"); }; function build2(_styles) { var builder = function builder2() { return applyStyle.apply(builder2, arguments); }; builder._styles = _styles; builder.__proto__ = proto; return builder; } var styles4 = (function() { var ret = {}; ansiStyles2.grey = ansiStyles2.gray; Object.keys(ansiStyles2).forEach(function(key) { ansiStyles2[key].closeRe = new RegExp(escapeStringRegexp(ansiStyles2[key].close), "g"); ret[key] = { get: function() { return build2(this._styles.concat(key)); } }; }); return ret; })(); var proto = defineProps(function colors2() { }, styles4); function applyStyle() { var args = arguments; var argsLen = args.length; var str = argsLen !== 0 && String(arguments[0]); if (argsLen > 1) { for (var a2 = 1; a2 < argsLen; a2++) { str += " " + args[a2]; } } if (!colors.enabled || !str) { return str; } var nestedStyles = this._styles; var i2 = nestedStyles.length; while (i2--) { var code = ansiStyles2[nestedStyles[i2]]; str = code.open + str.replace(code.closeRe, code.open) + code.close; } return str; } function applyTheme(theme) { for (var style in theme) { (function(style2) { colors[style2] = function(str) { return colors[theme[style2]](str); }; })(style); } } colors.setTheme = function(theme) { if (typeof theme === "string") { try { colors.themes[theme] = require(theme); applyTheme(colors.themes[theme]); return colors.themes[theme]; } catch (err) { console.log(err); return err; } } else { applyTheme(theme); } }; function init() { var ret = {}; Object.keys(styles4).forEach(function(name2) { ret[name2] = { get: function() { return build2([name2]); } }; }); return ret; } var sequencer = function sequencer2(map2, str) { var exploded = str.split(""), i2 = 0; exploded = exploded.map(map2); return exploded.join(""); }; colors.trap = require_trap(); colors.zalgo = require_zalgo(); colors.maps = {}; colors.maps.america = require_america(); colors.maps.zebra = require_zebra(); colors.maps.rainbow = require_rainbow(); colors.maps.random = require_random(); for (map in colors.maps) { (function(map2) { colors[map2] = function(str) { return sequencer(colors.maps[map2], str); }; })(map); } var map; defineProps(colors, init()); } }); // node_modules/colors/safe.js var require_safe = __commonJS({ "node_modules/colors/safe.js"(exports2, module2) { var colors = require_colors(); module2["exports"] = colors; } }); // node_modules/cli-table/lib/utils.js var require_utils = __commonJS({ "node_modules/cli-table/lib/utils.js"(exports2) { exports2.repeat = function(str, times) { return Array(times + 1).join(str); }; exports2.pad = function(str, len, pad2, dir) { if (len + 1 >= str.length) switch (dir) { case "left": str = Array(len + 1 - str.length).join(pad2) + str; break; case "both": var right = Math.ceil((padlen = len - str.length) / 2); var left = padlen - right; str = Array(left + 1).join(pad2) + str + Array(right + 1).join(pad2); break; default: str = str + Array(len + 1 - str.length).join(pad2); } ; return str; }; exports2.truncate = function(str, length, chr) { chr = chr || "\u2026"; return str.length >= length ? str.substr(0, length - chr.length) + chr : str; }; function options3(defaults2, opts) { for (var p2 in opts) { if (p2 === "__proto__" || p2 === "constructor" || p2 === "prototype") { continue; } if (opts[p2] && opts[p2].constructor && opts[p2].constructor === Object) { defaults2[p2] = defaults2[p2] || {}; options3(defaults2[p2], opts[p2]); } else { defaults2[p2] = opts[p2]; } } return defaults2; } exports2.options = options3; exports2.strlen = function(str) { var code = /\u001b\[(?:\d*;){0,5}\d*m/g; var stripped = ("" + str).replace(code, ""); var split = stripped.split("\n"); return split.reduce(function(memo, s2) { return s2.length > memo ? s2.length : memo; }, 0); }; } }); // node_modules/cli-table/lib/index.js var require_lib4 = __commonJS({ "node_modules/cli-table/lib/index.js"(exports2, module2) { var colors = require_safe(); var utils = require_utils(); var repeat2 = utils.repeat; var truncate = utils.truncate; var pad2 = utils.pad; function Table(options3) { this.options = utils.options({ chars: { "top": "\u2500", "top-mid": "\u252C", "top-left": "\u250C", "top-right": "\u2510", "bottom": "\u2500", "bottom-mid": "\u2534", "bottom-left": "\u2514", "bottom-right": "\u2518", "left": "\u2502", "left-mid": "\u251C", "mid": "\u2500", "mid-mid": "\u253C", "right": "\u2502", "right-mid": "\u2524", "middle": "\u2502" }, truncate: "\u2026", colWidths: [], colAligns: [], style: { "padding-left": 1, "padding-right": 1, head: ["red"], border: ["grey"], compact: false }, head: [] }, options3); if (options3 && options3.rows) { for (var i2 = 0; i2 < options3.rows.length; i2++) { this.push(options3.rows[i2]); } } } Table.prototype.__proto__ = Array.prototype; Table.prototype.__defineGetter__("width", function() { var str = this.toString().split("\n"); if (str.length) return str[0].length; return 0; }); Table.prototype.render; Table.prototype.toString = function() { var ret = "", options3 = this.options, style = options3.style, head = options3.head, chars = options3.chars, truncater = options3.truncate, colWidths = options3.colWidths || new Array(this.head.length), totalWidth = 0; if (!head.length && !this.length) return ""; if (!colWidths.length) { var all_rows = this.slice(0); if (head.length) { all_rows = all_rows.concat([head]); } ; all_rows.forEach(function(cells) { if (typeof cells === "object" && cells.length) { extractColumnWidths(cells); } else { var header_cell = Object.keys(cells)[0], value_cell = cells[header_cell]; colWidths[0] = Math.max(colWidths[0] || 0, get_width(header_cell) || 0); if (typeof value_cell === "object" && value_cell.length) { extractColumnWidths(value_cell, 1); } else { colWidths[1] = Math.max(colWidths[1] || 0, get_width(value_cell) || 0); } } }); } ; totalWidth = (colWidths.length == 1 ? colWidths[0] : colWidths.reduce( function(a2, b2) { return a2 + b2; } )) + colWidths.length + 1; function extractColumnWidths(arr, offset) { var offset = offset || 0; arr.forEach(function(cell, i2) { colWidths[i2 + offset] = Math.max(colWidths[i2 + offset] || 0, get_width(cell) || 0); }); } ; function get_width(obj) { return typeof obj == "object" && obj.width != void 0 ? obj.width : (typeof obj == "object" ? utils.strlen(obj.text) : utils.strlen(obj)) + (style["padding-left"] || 0) + (style["padding-right"] || 0); } function line(line2, left, right, intersection) { var width = 0, line2 = left + repeat2(line2, totalWidth - 2) + right; colWidths.forEach(function(w2, i2) { if (i2 == colWidths.length - 1) return; width += w2 + 1; line2 = line2.substr(0, width) + intersection + line2.substr(width + 1); }); return applyStyles(options3.style.border, line2); } ; function lineTop() { var l3 = line( chars.top, chars["top-left"] || chars.top, chars["top-right"] || chars.top, chars["top-mid"] ); if (l3) ret += l3 + "\n"; } ; function generateRow(items, style2) { var cells = [], max_height = 0; if (!Array.isArray(items) && typeof items === "object") { var key = Object.keys(items)[0], value = items[key], first_cell_head = true; if (Array.isArray(value)) { items = value; items.unshift(key); } else { items = [key, value]; } } items.forEach(function(item, i2) { var contents = item.toString().split("\n").reduce(function(memo, l3) { memo.push(string2(l3, i2)); return memo; }, []); var height = contents.length; if (height > max_height) { max_height = height; } ; cells.push({ contents, height }); }); var lines = new Array(max_height); cells.forEach(function(cell, i2) { cell.contents.forEach(function(line2, j2) { if (!lines[j2]) { lines[j2] = []; } ; if (style2 || first_cell_head && i2 === 0 && options3.style.head) { line2 = applyStyles(options3.style.head, line2); } lines[j2].push(line2); }); for (var j = cell.height, l3 = max_height; j < l3; j++) { if (!lines[j]) { lines[j] = []; } ; lines[j].push(string2("", i2)); } }); var ret2 = ""; lines.forEach(function(line2, index) { if (ret2.length > 0) { ret2 += "\n" + applyStyles(options3.style.border, chars.left); } ret2 += line2.join(applyStyles(options3.style.border, chars.middle)) + applyStyles(options3.style.border, chars.right); }); return applyStyles(options3.style.border, chars.left) + ret2; } ; function applyStyles(styles4, subject) { if (!subject) return ""; styles4.forEach(function(style2) { subject = colors[style2](subject); }); return subject; } ; function string2(str, index) { var str = String(typeof str == "object" && str.text ? str.text : str), length = utils.strlen(str), width = colWidths[index] - (style["padding-left"] || 0) - (style["padding-right"] || 0), align = options3.colAligns[index] || "left"; return repeat2(" ", style["padding-left"] || 0) + (length == width ? str : length < width ? pad2(str, width + (str.length - length), " ", align == "left" ? "right" : align == "middle" ? "both" : "left") : truncater ? truncate(str, width, truncater) : str) + repeat2(" ", style["padding-right"] || 0); } ; if (head.length) { lineTop(); ret += generateRow(head, style.head) + "\n"; } if (this.length) this.forEach(function(cells, i2) { if (!head.length && i2 == 0) lineTop(); else { if (!style.compact || i2 < !!head.length ? 1 : cells.length == 0) { var l3 = line( chars.mid, chars["left-mid"], chars["right-mid"], chars["mid-mid"] ); if (l3) ret += l3 + "\n"; } } if (cells.hasOwnProperty("length") && !cells.length) { return; } else { ret += generateRow(cells) + "\n"; } ; }); var l2 = line( chars.bottom, chars["bottom-left"] || chars.bottom, chars["bottom-right"] || chars.bottom, chars["bottom-mid"] ); if (l2) ret += l2; else ret = ret.slice(0, -1); return ret; }; module2.exports = Table; module2.exports.version = "0.0.1"; } }); // src/markdown/renderer.ts function identity(str) { return str; } function cleanUpHtml(input) { return gray(input.replace(/(<([^>]+)>)/ig, "")); } function fixHardReturn(text, reflow) { return reflow ? text.replace(HARD_RETURN, "\n") : text; } function indentLines(indent, text) { return text.replace(/(^|\n)(.+)/g, "$1" + indent + "$2"); } function identify(indent, text) { if (!text) return text; return indent + text.split("\n").join("\n" + indent); } function fixNestedLists(body, indent) { let regex2 = new RegExp( "(\\S(?: | )?)((?:" + indent + ")+)(" + POINT_REGEX + "(?:.*)+)$", "gm" ); return body.replace(regex2, "$1\n" + indent + "$2$3"); } function toSpaces(str) { return " ".repeat(str.length); } function toSpecialSpaces(str) { return SPECIAL_SPACE.repeat(str.length); } function bulletPointLine(indent, line) { if (isPointedLine(line, indent)) { return line; } if (!line.includes(SPECIAL_SPACE)) { return toSpecialSpaces(BULLET_POINT) + line; } return line; } function bulletPointLines(lines, indent) { let transform = bulletPointLine.bind(null, indent); return lines.split("\n").filter(identity).map(transform).join("\n"); } function numberedLine(indent, line, num) { return isPointedLine(line, indent) ? { num: num + 1, line: line.replace(BULLET_POINT, numberedPoint(num + 1)) } : { num, line: toSpaces(numberedPoint(num)) + line }; } function numberedLines(lines, indent) { let transform = numberedLine.bind(null, indent); let num = 0; return lines.split("\n").filter(identity).map((line) => { const numbered = transform(line, num); num = numbered.num; return numbered.line; }).join("\n"); } function list(body, ordered, indent) { body = body.trim(); body = ordered ? numberedLines(body, indent) : bulletPointLines(body, indent); return body; } function section(text) { return text + "\n\n"; } function undoColon(str) { return str.replace(COLON_REPLACER_REGEXP, ":"); } function generateTableRow(text, escape3 = null) { if (!text) return []; escape3 = escape3 || identity; let lines = escape3(text).split("\n"); let data = []; lines.forEach(function(line) { if (!line) return; let parsed = line.replace(TABLE_ROW_WRAP_REGEXP, "").split(TABLE_CELL_SPLIT); data.push(parsed.splice(0, parsed.length - 1)); }); return data; } function escapeRegExp(str) { return str.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&"); } function unescapeEntities(html) { return html.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, '"').replace(/'/g, "'"); } var TABLE_CELL_SPLIT, TABLE_ROW_WRAP, TABLE_ROW_WRAP_REGEXP, COLON_REPLACER, COLON_REPLACER_REGEXP, HARD_RETURN, defaultOptions, BULLET_POINT_REGEX, NUMBERED_POINT_REGEX, POINT_REGEX, isPointedLine, SPECIAL_SPACE, SPACE, BULLET_POINT, numberedPoint, links, Renderer, renderer_default; var init_renderer = __esm({ "src/markdown/renderer.ts"() { "use strict"; init_object(); init_styles(); TABLE_CELL_SPLIT = "^*||*^"; TABLE_ROW_WRAP = "*|*|*|*"; TABLE_ROW_WRAP_REGEXP = new RegExp(escapeRegExp(TABLE_ROW_WRAP), "g"); COLON_REPLACER = "*#COLON|*"; COLON_REPLACER_REGEXP = new RegExp(escapeRegExp(COLON_REPLACER), "g"); HARD_RETURN = /\r/g; defaultOptions = { code: identity, blockquote: identity, html: cleanUpHtml, heading: magenta, firstHeading: magenta, hr: identity, listitem: identity, list, table: identity, paragraph: identity, strong: bold, em: italic, codespan: yellow, del: strikethrough, link: underline, href: underline, text: identity, unescape: true, emoji: false, width: 80, showSectionPrefix: false, tab: 2, tableOptions: {} }; BULLET_POINT_REGEX = "\\*"; NUMBERED_POINT_REGEX = "\\d+\\."; POINT_REGEX = "(?:" + [BULLET_POINT_REGEX, NUMBERED_POINT_REGEX].join("|") + ")"; isPointedLine = function(line, indent) { return line.match("^(?:" + indent + ")*" + POINT_REGEX) != null; }; SPECIAL_SPACE = "\0\0\0"; SPACE = " "; BULLET_POINT = "* "; numberedPoint = function(n2) { return n2 + ". "; }; links = /* @__PURE__ */ new Map(); Renderer = class { constructor(options3 = {}, highlightOptions = {}) { this.options = options3; this.highlightOptions = highlightOptions; this.o = Object.assign({}, defaultOptions, options3); this.tab = " "; this.tableSettings = this.o.tableOptions; this.unescape = unescapeEntities; this.highlightOptions = toObject(highlightOptions); this.transform = this.compose(undoColon, this.unescape); } options; highlightOptions; linkMarkers = []; o; tab; tableSettings; // private emoji: any unescape; transform; static hooks = { preprocess: (str) => str, postprocess: (str) => { return str.replace(new RegExp(SPECIAL_SPACE, "g"), SPACE); } }; text(t2) { return this.o.text(t2); } code(code, lang, _escaped) { return "``` " + lang + "\n" + code + "\n```\n"; } blockquote(quote) { return section(this.o.blockquote(identify(this.tab, quote.trim()))); } html(html) { return this.o.html(html); } heading(text, level2, _raw) { text = this.transform(text); return section( level2 === 1 ? this.o.firstHeading(text) : this.o.heading(text) ); } hr() { return `\u2500\u2500\u2500 `; } list(body, ordered) { body = this.o.list(body, ordered, this.tab); return section(fixNestedLists(indentLines(this.tab, body), this.tab)); } listitem(text) { let transform = this.compose(this.o.listitem, this.transform); let isNested = text.indexOf("\n") !== -1; if (isNested) text = text.trim(); return "\n" + BULLET_POINT + transform(text); } checkbox(checked) { return "[" + (checked ? "X" : " ") + "]"; } paragraph(text) { let transform = this.compose(this.o.paragraph, this.transform); text = transform(text); return section(text); } table(header, body) { const Table = require_lib4(); let table = new Table( Object.assign( {}, { head: generateTableRow(header, this.transform)[0] }, this.tableSettings ) ); generateTableRow(body, this.transform).forEach(function(row) { table.push(row); }); return section(this.o.table(table.toString())); } tablerow(content) { return TABLE_ROW_WRAP + content + TABLE_ROW_WRAP + "\n"; } tablecell(content, _flags) { return content + TABLE_CELL_SPLIT; } strong(text) { return this.o.strong(text); } em(text) { text = fixHardReturn(text, this.o.reflowText); return this.o.em(text); } codespan(text) { text = fixHardReturn(text, this.o.reflowText); return this.o.codespan(text.replace(/:/g, COLON_REPLACER)); } br() { return "\n"; } del(text) { return this.o.del(text); } link(href, title, text) { let prot; try { prot = decodeURIComponent(unescape(href)).replace(/[^\w:]/g, "").toLowerCase(); } catch (e2) { return ""; } if (prot.startsWith("javascript:")) { return ""; } if (text && href && text != href) { links.set(text, href); } let marker = ""; if (this.o.linkMarkers) { marker = `\x1B[1000;${this.linkMarkers.length}m`; this.linkMarkers.push({ marker: this.linkMarkers.length, url: href }); } if (text && text != href) return marker + blue(text) + marker; let out = this.o.href(href); return marker + this.o.link(out) + marker; } getLinkMarkers() { return this.linkMarkers; } image(href, title, text) { return `![${text}](${href}${title ? ` "${title}"` : ""})`; } // eslint-disable-next-line @typescript-eslint/no-unsafe-function-type compose(...funcs) { return (...args) => { for (let i2 = funcs.length; i2-- > 0; ) { args = [funcs[i2].apply(this, args)]; } return args[0]; }; } static getLinks() { let res = []; for (let [text, href] of links.entries()) { res.push(`${blue(text)}: ${href}`); } links.clear(); return res; } }; renderer_default = Renderer; } }); // src/markdown/index.ts function toFiletype(match2) { if (!match2) return TXT; let mapped = filetyepsMap[match2]; return string(mapped) ? mapped : match2; } function parseDocuments(docs, opts = {}) { let lines = []; let highlights = []; let codes = []; let linkItems = []; let idx = 0; for (let doc of docs) { let currline = lines.length; let { content, filetype } = doc; let hls = doc.highlights; if (filetype == MARKDOWN) { let info = parseMarkdown(content, opts); codes.push(...info.codes.map((o2) => { o2.startLine = o2.startLine + currline; o2.endLine = o2.endLine + currline; return o2; })); highlights.push(...info.highlights.map((o2) => { o2.lnum = o2.lnum + currline; return o2; })); linkItems.push(...info.links.map((o2) => ({ ...o2, lnum: o2.lnum + currline }))); lines.push(...info.lines); } else { let parts = content.trim().split(/\r?\n/); let hlGroup = FiletypeHighlights[doc.filetype]; if (string(hlGroup)) { codes.push({ hlGroup, startLine: currline, endLine: currline + parts.length }); } else { codes.push({ filetype: doc.filetype, startLine: currline, endLine: currline + parts.length }); } lines.push(...parts); } if (Array.isArray(hls)) { highlights.push(...hls.map((o2) => { return Object.assign({}, o2, { lnum: o2.lnum + currline }); })); } if (Array.isArray(doc.active)) { let arr = getHighlightItems(content, currline, doc.active); if (arr.length) highlights.push(...arr); } if (idx != docs.length - 1) { highlights.push({ lnum: lines.length, hlGroup: DIVIDING_LINE_HI_GROUP, colStart: 0, colEnd: -1 }); lines.push(DIVIDE_CHARACTER); } idx = idx + 1; } return { lines, highlights, codes, links: linkItems }; } function getHighlightItems(content, currline, active) { let res = []; let [start, end] = active; let lines = content.split(/\r?\n/); let used = 0; let inRange = false; for (let i2 = 0; i2 < lines.length; i2++) { let line = lines[i2]; if (!inRange) { if (used + line.length > start) { inRange = true; let colStart = byteIndex(line, start - used); if (used + line.length > end) { let colEnd = byteIndex(line, end - used); inRange = false; res.push({ colStart, colEnd, lnum: i2 + currline, hlGroup: ACTIVE_HL_GROUP }); break; } else { let colEnd = byteLength(line); res.push({ colStart, colEnd, lnum: i2 + currline, hlGroup: ACTIVE_HL_GROUP }); } } } else { if (used + line.length > end) { let colEnd = byteIndex(line, end - used); res.push({ colStart: 0, colEnd, lnum: i2 + currline, hlGroup: ACTIVE_HL_GROUP }); inRange = false; break; } else { let colEnd = byteLength(line); res.push({ colStart: 0, colEnd, lnum: i2 + currline, hlGroup: ACTIVE_HL_GROUP }); } } used = used + line.length + 1; } return res; } function parseMarkdown(content, opts) { let renderer = new renderer_default({ linkMarkers: true }); marked.setOptions({ renderer, gfm: true, breaks: boolean(opts.breaks) ? opts.breaks : true, hooks: renderer_default.hooks }); let lines = []; let highlights = []; let codes = []; let linkItems = []; let currline = 0; let inCodeBlock = false; let filetype; let startLnum = 0; let parsed = marked(content); let linkReferences = renderer_default.getLinks(); let linkMarkers = renderer.getLinkMarkers(); parsed = parsed.replace(/\s*$/, ""); if (linkReferences.length) { parsed = parsed + "\n\n" + linkReferences.join("\n"); } let parsedLines = parsed.split(/\n/); for (let i2 = 0; i2 < parsedLines.length; i2++) { let line = parsedLines[i2]; if (!line.length) { let pre = lines[lines.length - 1]; if (!pre) continue; let next = parsedLines[i2 + 1]; if (!next || next.startsWith(DOTS) || next.startsWith(DIVIDE_CHARACTER)) continue; lines.push(line); currline++; continue; } if (opts.excludeImages && line.indexOf("![") !== -1) { line = line.replace(/\s*!\[.*?\]\(.*?\)/g, ""); if (!stripAnsi(line).trim().length) continue; } let ms = line.match(/^\s*```\s*(\S+)?/); if (ms) { if (!inCodeBlock) { let pre = parsedLines[i2 - 1]; if (pre && /^\s*```\s*/.test(pre)) { lines.push(""); currline++; } inCodeBlock = true; filetype = toFiletype(ms[1]); startLnum = currline; } else { inCodeBlock = false; codes.push({ filetype, startLine: startLnum, endLine: currline }); } continue; } if (inCodeBlock) { lines.push(line); currline++; continue; } let linkStarts; let res = parseAnsiHighlights(line, true, linkMarkers.length === 0 ? void 0 : (marker, byteOffset) => { linkStarts ??= /* @__PURE__ */ new Map(); let start = linkStarts.get(marker); if (start == null) { linkStarts.set(marker, byteOffset); return; } let url = linkMarkers[marker]?.url; if (url && byteOffset > start) linkItems.push({ lnum: currline, colStart: start, colEnd: byteOffset, url }); linkStarts.delete(marker); }); if (line === DIVIDE_LINE) { highlights.push({ hlGroup: DIVIDING_LINE_HI_GROUP, lnum: currline, colStart: 0, colEnd: -1 }); } else if (res.highlights) { for (let hi of res.highlights) { let { hlGroup, span } = hi; highlights.push({ hlGroup, lnum: currline, colStart: span[0], colEnd: span[1] }); } } lines.push(res.line); currline++; } return { lines, highlights, codes, links: linkItems }; } var FiletypeHighlights, filetyepsMap, ACTIVE_HL_GROUP, DIVIDING_LINE_HI_GROUP, MARKDOWN, DOTS, TXT, DIVIDE_CHARACTER, DIVIDE_LINE; var init_markdown = __esm({ "src/markdown/index.ts"() { "use strict"; init_marked_esm(); init_ansiparse(); init_is(); init_node(); init_string(); init_renderer(); FiletypeHighlights = /* @__PURE__ */ ((FiletypeHighlights2) => { FiletypeHighlights2["Error"] = "CocErrorFloat"; FiletypeHighlights2["Warning"] = "CocWarningFloat"; FiletypeHighlights2["Info"] = "CocInfoFloat"; FiletypeHighlights2["Hint"] = "CocHintFloat"; return FiletypeHighlights2; })(FiletypeHighlights || {}); filetyepsMap = { js: "javascript", ts: "typescript", bash: "sh" }; ACTIVE_HL_GROUP = "CocFloatActive"; DIVIDING_LINE_HI_GROUP = "CocFloatDividingLine"; MARKDOWN = "markdown"; DOTS = "```"; TXT = "txt"; DIVIDE_CHARACTER = "\u2500"; DIVIDE_LINE = "\u2500\u2500\u2500"; } }); // src/model/floatFactory.ts var debounceTime2, FloatFactoryImpl; var init_floatFactory = __esm({ "src/model/floatFactory.ts"() { "use strict"; init_events(); init_markdown(); init_util(); init_array(); init_constants(); init_mutex(); init_node(); init_object(); init_protocol(); debounceTime2 = getConditionValue(100, 10); FloatFactoryImpl = class { constructor(nvim) { this.nvim = nvim; this.onCursorMoved = debounce2(this._onCursorMoved.bind(this), debounceTime2); } nvim; winid = 0; _bufnr = 0; reusableBufnr = 0; closeToken = 0; targetBufnr; mutex = new Mutex(); disposables = []; cursor; // eslint-disable-next-line @typescript-eslint/no-unsafe-function-type onCursorMoved; bindEvents(autoHide, alignTop) { let eventNames = ["InsertLeave", "InsertEnter", "BufEnter"]; for (let ev of eventNames) { events_default.on(ev, (bufnr) => { if (bufnr == this._bufnr) return; this.close(); }, null, this.disposables); } events_default.on("MenuPopupChanged", () => { if (events_default.pumAlignTop == alignTop) { this.close(); } }, null, this.disposables); this.disposables.push(import_node4.Disposable.create(() => { this.onCursorMoved.clear(); })); events_default.on("CursorMoved", this.onCursorMoved.bind(this, autoHide), this, this.disposables); events_default.on("CursorMovedI", this.onCursorMoved.bind(this, autoHide), this, this.disposables); } /** * @internal */ unbind() { if (this.disposables.length) { disposeAll(this.disposables); this.disposables = []; } } /** * @internal */ _onCursorMoved(autoHide, bufnr, cursor) { if (bufnr == this._bufnr) return; if (bufnr == this.targetBufnr && equals(cursor, this.cursor)) { return; } if (bufnr != this.targetBufnr || !events_default.insertMode || autoHide) { this.close(); return; } } /** * @internal * Create float window/popup at cursor position. * @deprecated use show method instead */ async create(docs, _allowSelection = false, offsetX = 0) { await this.show(docs, { offsetX }); } /** * Show documentations in float window/popup around cursor. * Window and buffer are reused when possible. * Window is closed automatically on change buffer, InsertEnter, CursorMoved and CursorMovedI. * @param docs List of documentations. * @param config Configuration for floating window/popup. */ async show(docs, config = {}) { if (docs.length == 0 || docs.every((doc) => doc.content.length == 0)) { this.close(); return; } let token = this.closeToken; let release = await this.mutex.acquire(); try { await this.createPopup(docs, config, token); release(); } catch (e2) { this.nvim.echoError(e2); release(); } } async createPopup(docs, opts, token) { docs = docs.filter((o2) => o2.content.trim().length > 0); let { lines, codes, highlights, links: links2 } = parseDocuments(docs, { excludeImages: opts.excludeImages, breaks: opts.breaks }); let config = { codes, highlights, links: links2, pumAlignTop: events_default.pumAlignTop, preferTop: typeof opts.preferTop === "boolean" ? opts.preferTop : false, offsetX: opts.offsetX || 0, title: opts.title || "", close: opts.close ? 1 : 0, rounded: opts.rounded ? 1 : 0, modes: opts.modes || ["n", "i", "ic", "s"], relative: opts.position === "fixed" ? "editor" : "cursor" }; if (!isVim) { if (typeof opts.winblend === "number") config.winblend = opts.winblend; if (opts.focusable != null) config.focusable = opts.focusable ? 1 : 0; if (opts.shadow) config.shadow = 1; } if (opts.maxHeight) config.maxHeight = opts.maxHeight; if (opts.maxWidth) config.maxWidth = opts.maxWidth; if (opts.border === true) { config.border = [1, 1, 1, 1]; } else if (Array.isArray(opts.border) && !opts.border.every((o2) => o2 == 0)) { config.border = opts.border.slice(0, 4); config.rounded = opts.rounded ? 1 : 0; } if (opts.highlight) config.highlight = opts.highlight; if (opts.borderhighlight) config.borderhighlight = opts.borderhighlight; if (opts.cursorline) config.cursorline = 1; for (let key of ["top", "left", "bottom", "right"]) { if (typeof opts[key] === "number" && opts[key] >= 0) { config[key] = opts[key]; } } let autoHide = opts.autoHide === false ? false : true; if (autoHide) config.autohide = 1; this.unbind(); let arr = await this.nvim.call("coc#dialog#create_cursor_float", [this.winid, this.reusableBufnr, lines, config]); if (!isFalsyOrEmpty(arr)) this.reusableBufnr = arr[3]; if (isFalsyOrEmpty(arr) || this.closeToken > token) { let winid2 = arr && arr.length > 0 ? arr[2] : this.winid; if (winid2) { this.winid = 0; this._bufnr = 0; this.targetBufnr = 0; this.nvim.call("coc#float#close", [winid2], true); this.nvim.redrawVim(); } return; } let [targetBufnr, cursor, winid, bufnr, alignTop] = arr; this.winid = winid; this._bufnr = bufnr; this.targetBufnr = targetBufnr; this.cursor = cursor; this.bindEvents(autoHide, alignTop == 1); } /** * Close float window */ close() { let { winid, nvim } = this; this.closeToken++; this._bufnr = 0; this.targetBufnr = 0; this.unbind(); if (winid) { this.winid = 0; nvim.call("coc#float#close", [winid], true); nvim.redrawVim(); } } /** * @internal */ checkRetrigger(bufnr) { if (this.winid && this.targetBufnr == bufnr) return true; return false; } /** * @internal */ get bufnr() { return this._bufnr; } /** * @internal */ get buffer() { return this.bufnr ? this.nvim.createBuffer(this.bufnr) : null; } /** * @internal */ get window() { return this.winid ? this.nvim.createWindow(this.winid) : null; } async activated() { if (!this.winid) return false; return await this.nvim.call("coc#float#valid", [this.winid]) != 0; } dispose() { this.cursor = void 0; this.onCursorMoved.clear(); this.close(); } }; } }); // src/model/regions.ts var Regions; var init_regions = __esm({ "src/model/regions.ts"() { "use strict"; Regions = class { /** * ranges that never overlaps. */ ranges = []; get current() { let res = []; this.ranges.sort((a2, b2) => a2[0] - b2[0]); this.ranges.forEach((o2) => { res.push(o2[0], o2[1]); }); return res; } get isEmpty() { return this.ranges.length === 0; } clear() { this.ranges = []; } getRange(line) { for (const [start, end] of this.ranges) { if (line >= start && line <= end) return [start, end]; } return void 0; } /** * Get the span that not covered yet, all 0 based */ toUncoveredSpan(span, delta, max) { let [start, end] = span; start = Math.max(0, start - delta); end = Math.min(max, end + delta); let r2 = this.getRange(start); start = r2 ? r2[1] : start; let s2 = this.getRange(end); if (s2 && r2 && s2[0] === r2[0] && s2[1] === r2[1]) return void 0; end = s2 ? s2[0] : end; return [start, end]; } /** * start, end 0 based, both inclusive */ add(start, end) { if (start > end) { [start, end] = [end, start]; } let { ranges } = this; if (ranges.length == 0) { ranges.push([start, end]); } else { ranges.sort((a2, b2) => a2[0] - b2[0]); let s2; let e2; let removedIndexes = []; for (let i2 = 0; i2 < ranges.length; i2++) { let r2 = ranges[i2]; if (r2[1] < start - 1) continue; if (r2[0] > end + 1) break; removedIndexes.push(i2); if (s2 == null) s2 = Math.min(start, r2[0]); e2 = Math.max(end, r2[1]); } let newRanges = removedIndexes.length ? ranges.filter((_2, i2) => !removedIndexes.includes(i2)) : ranges; this.ranges = newRanges; if (s2 != null && e2 != null) { this.ranges.push([s2, e2]); } else { this.ranges.push([start, end]); } } } has(start, end) { let idx = this.ranges.findIndex((o2) => o2[0] <= start && o2[1] >= end); return idx !== -1; } static mergeSpans(ranges) { let res = []; for (let r2 of ranges) { let idx = res.findIndex((o2) => !(r2[1] < o2[0] || r2[0] > o2[1])); if (idx == -1) { res.push(r2); } else { let o2 = res[idx]; res[idx] = [Math.min(r2[0], o2[0]), Math.max(r2[1], o2[1])]; } } return res; } }; } }); // src/core/ui.ts async function getCursorPosition(nvim) { let [line, content] = await nvim.eval(`[line('.')-1, strpart(getline('.'), 0, col('.') - 1)]`); return Position.create(line, content.length); } async function getVisibleRanges(nvim, bufnr, winid) { if (winid == null) { const spans = await nvim.call("coc#window#visible_ranges", [bufnr]); if (spans.length === 0) return []; return Regions.mergeSpans(spans); } const span = await nvim.call("coc#window#visible_range", [winid]); return span == null ? [] : [span]; } async function getLineAndPosition(nvim) { let [text, lnum, content] = await nvim.eval(`[getline('.'), line('.'), strpart(getline('.'), 0, col('.') - 1)]`); return { text, line: lnum - 1, character: content.length }; } function createFloatFactory(nvim, conf, defaults2) { let opts = Object.assign({}, defaults2, conf); let factory = new FloatFactoryImpl(nvim); return { get window() { return factory.window; }, show: (docs, option) => { return factory.show(docs, option ? Object.assign({}, opts, option) : opts); }, activated: () => { return factory.activated(); }, dispose: () => { factory.dispose(); }, checkRetrigger: (bufnr) => { return factory.checkRetrigger(bufnr); }, close: () => { factory.close(); } }; } async function showPrompt(nvim, title) { let res = await nvim.callAsync("coc#dialog#prompt_confirm", [title]); return res == 1; } async function moveTo(nvim, position, redraw) { await nvim.call("coc#cursor#move_to", [position.line, position.character]); if (redraw) nvim.command("redraw", true); } async function getOffset(nvim) { return await nvim.call("coc#cursor#char_offset"); } async function getCursorScreenPosition(nvim) { let [row, col] = await nvim.call("coc#cursor#screen_pos"); return { row, col }; } async function echoLines(nvim, env, lines, truncate) { let cmdHeight = env.cmdheight; if (lines.length > cmdHeight && truncate) { lines = lines.slice(0, cmdHeight); } let maxLen = env.columns - 12; lines = lines.map((line) => { line = line.replace(/\n/g, " "); if (truncate) line = line.slice(0, maxLen); return line; }); if (truncate && lines.length == cmdHeight) { let last = lines[lines.length - 1]; lines[cmdHeight - 1] = `${last.length >= maxLen ? last.slice(0, -4) : last} ...`; } await nvim.call("coc#ui#echo_lines", [lines]); } function echoMessages(nvim, msg, messageType, messageLevel) { let hl = "Error"; let level2 = 2 /* Error */; switch (messageType) { case "more": level2 = 0 /* More */; hl = "MoreMsg"; break; case "warning": level2 = 1 /* Warning */; hl = "WarningMsg"; break; } if (level2 >= toMessageLevel(messageLevel)) { let method = isVim ? "callTimer" : "call"; nvim[method]("coc#ui#echo_messages", [hl, ("[coc.nvim] " + msg).split("\n")], true); } } function toMessageLevel(level2) { switch (level2) { case "error": return 2 /* Error */; case "warning": return 1 /* Warning */; default: return 0 /* More */; } } async function getSelection(nvim, mode) { if (mode === "currline") { let line = await nvim.call("line", ["."]); return Range.create(line - 1, 0, line, 0); } if (mode === "cursor") { let position = await getCursorPosition(nvim); return Range.create(position, position); } let res = await nvim.call("coc#cursor#get_selection", [operateModes.includes(mode) ? 1 : 0]); if (!res || res[0] == -1) return null; return Range.create(res[0], res[1], res[2], res[3]); } async function selectRange(nvim, range2, redraw) { let { start, end } = range2; let [line, endLine] = await nvim.eval(`[getline(${start.line + 1}),getline(${end.line + 1})]`); let col = line.length > 0 ? byteIndex(line, start.character) : 0; let endCol; let endLnum; let toEnd = end.character == 0; if (toEnd) { endLnum = end.line == 0 ? 0 : end.line - 1; let pre = await nvim.call("getline", [endLnum + 1]); endCol = byteLength(pre); } else { endLnum = end.line; endCol = endLine.length > 0 ? byteIndex(endLine, end.character) : 0; } nvim.pauseNotification(); nvim.command(`noa call cursor(${start.line + 1},${col + 1})`, true); nvim.command("normal! v", true); nvim.command(`noa call cursor(${endLnum + 1},${endCol})`, true); if (toEnd) nvim.command("normal! $", true); await nvim.resumeNotification(redraw); } var operateModes; var init_ui = __esm({ "src/core/ui.ts"() { "use strict"; init_main(); init_floatFactory(); init_regions(); init_constants(); init_string(); operateModes = ["char", "line", "block"]; } }); // src/core/dialogs.ts var Dialogs; var init_dialogs = __esm({ "src/core/dialogs.ts"() { "use strict"; init_events(); init_dialog(); init_input(); init_menu(); init_picker(); init_quickpick(); init_util(); init_array(); init_constants(); init_mutex(); init_numbers(); init_platform(); init_string(); init_funcs(); init_ui(); Dialogs = class { mutex = new Mutex(); nvim; configuration; constructor() { } async showDialog(config) { return await this.mutex.use(async () => { let dialog = new Dialog(this.nvim, config); await dialog.show(this.dialogPreference); return dialog; }); } async showPrompt(title) { return await this.mutex.use(() => { return showPrompt(this.nvim, title); }); } async createQuickPick(config) { return await this.mutex.use(async () => { let quickpick = new QuickPick(this.nvim, this.dialogPreference); Object.assign(quickpick, config); return quickpick; }); } async showMenuPicker(items, option, token) { return await this.mutex.use(async () => { if (token && token.isCancellationRequested) return -1; option = option || {}; if (typeof option === "string") option = { title: option }; let menu = new Menu(this.nvim, { items, ...option }, token); let promise = new Promise((resolve) => { menu.onDidClose((selected) => { void events_default.race(["BufHidden"], 20).finally(() => { resolve(selected); }); }); }); await menu.show(this.dialogPreference); return await promise; }); } /** * Shows a selection list. */ async showQuickPick(itemsOrItemsPromise, options3, token) { options3 = defaultValue(options3, {}); const items = await Promise.resolve(itemsOrItemsPromise); if (isFalsyOrEmpty(items)) return void 0; let isText = items.some((s2) => typeof s2 === "string"); return await this.mutex.use(() => { return new Promise((resolve, reject) => { if (token.isCancellationRequested) return resolve(void 0); let quickpick = new QuickPick(this.nvim, this.dialogPreference); quickpick.items = items.map((o2) => typeof o2 === "string" ? { label: o2 } : o2); quickpick.title = toText(options3.title); quickpick.placeholder = options3.placeHolder ?? options3["placeholder"]; quickpick.canSelectMany = !!options3.canPickMany; quickpick.matchOnDescription = options3.matchOnDescription; quickpick.onDidFinish((items2) => { if (items2 == null) return resolve(void 0); let arr = isText ? items2.map((o2) => o2.label) : items2; if (options3.canPickMany) return resolve(arr); resolve(arr[0]); }); quickpick.show().catch(reject); }); }); } async showPickerDialog(items, title, token) { return await this.mutex.use(async () => { if (token && token.isCancellationRequested) { return void 0; } const picker = new Picker(this.nvim, { title, items: toPickerItems(items) }, token); let promise = new Promise((resolve) => { picker.onDidClose((selected) => { resolve(selected); }); }); await picker.show(this.dialogPreference); let picked = await promise; return picked == void 0 ? void 0 : items.filter((_2, i2) => picked.includes(i2)); }); } async requestInput(title, env, value, option) { let { nvim } = this; let noPrompt = !env.terminal || !env.dialog || env.isVim && isWindows && !env.isCygwin; const promptInput = this.configuration.get("coc.preferences.promptInput"); if (promptInput && !noPrompt) { return await this.mutex.use(async () => { let input = new InputBox(nvim, toText(value)); await input.show(title, Object.assign(this.inputPreference, defaultValue(option, {}))); return await new Promise((resolve) => { input.onDidFinish((text) => { setTimeout(() => { resolve(text); }, 20); }); }); }); } else { let res = await callAsync(this.nvim, "input", [title + ": ", toText(value)]); nvim.command("normal! :", true); return res; } } /** * Request selection by use inputlist of vim. */ async requestInputList(prompt, items) { let { nvim } = this; let list2 = items.map((text, i2) => `${i2 + 1}. ${text}`); let res = await callAsync(this.nvim, "inputlist", [[`${prompt}:`, ...list2]]); nvim.command("normal! :", true); return res >= 1 && res <= items.length ? res - 1 : -1; } async createInputBox(title, value, option) { let input = new InputBox(this.nvim, toText(value)); await input.show(title, Object.assign(this.inputPreference, defaultValue(option, {}))); return input; } get inputPreference() { let config = this.configuration.get("dialog"); return { rounded: !!config.rounded, maxWidth: toNumber(config.maxWidth, 80), highlight: defaultValue(config.floatHighlight, floatHighlightGroup), borderhighlight: defaultValue(config.floatBorderHighlight, floatHighlightGroup) }; } get dialogPreference() { let config = this.configuration.get("dialog"); return { rounded: !!config.rounded, maxWidth: toNumber(config.maxWidth, 80), maxHeight: config.maxHeight, floatHighlight: defaultValue(config.floatHighlight, floatHighlightGroup), floatBorderHighlight: defaultValue(config.floatBorderHighlight, floatHighlightGroup), pickerButtons: config.pickerButtons, pickerButtonShortcut: config.pickerButtonShortcut, confirmKey: toText(config.confirmKey), shortcutHighlight: toText(config.shortcutHighlight) }; } }; } }); // src/core/highlights.ts function convertHighlightItem(item) { return [item.hlGroup, item.lnum, item.colStart, item.colEnd, item.combine ? 1 : 0, item.start_incl ? 1 : 0, item.end_incl ? 1 : 0]; } function isSame(item, curr) { return curr[0] == item.hlGroup && curr[1] === item.lnum && curr[2] === item.colStart && curr[3] === item.colEnd; } var Highlights; var init_highlights = __esm({ "src/core/highlights.ts"() { "use strict"; init_util(); Highlights = class { nvim; async diffHighlights(bufnr, ns, items, region, token) { let args = [bufnr, ns, Array.isArray(region) ? region[0] : 0, Array.isArray(region) ? region[1] : -1]; let curr = await this.nvim.call("coc#highlight#get_highlights", args); if (!curr || token?.isCancellationRequested) return null; items.sort((a2, b2) => { if (a2.lnum != b2.lnum) return a2.lnum - b2.lnum; if (a2.colStart != b2.colStart) return a2.colStart - b2.colStart; return a2.hlGroup > b2.hlGroup ? 1 : -1; }); let removeMarkers = []; let newItems = []; let itemIndex = 0; let maxIndex = items.length - 1; let maxLnum = 0; let map = /* @__PURE__ */ new Map(); curr.forEach((o2) => { maxLnum = Math.max(maxLnum, o2[1]); let arr = map.get(o2[1]); if (arr) { arr.push(o2); } else { map.set(o2[1], [o2]); } }); if (curr.length > 0) { let start = Array.isArray(region) ? region[0] : 0; for (let i2 = start; i2 <= maxLnum; i2++) { let exists = defaultValue(map.get(i2), []); exists.sort((a2, b2) => { if (a2[2] != b2[2]) return a2[2] - b2[2]; return a2[0] > b2[0] ? 1 : -1; }); let added = []; for (let j = itemIndex; j <= maxIndex; j++) { let o2 = items[j]; if (o2.lnum == i2) { itemIndex = j + 1; added.push(o2); } else { itemIndex = j; break; } } if (added.length == 0) { removeMarkers.push(...exists.map((o2) => o2[4])); } else { if (exists.length == 0) { newItems.push(...added.map((o2) => convertHighlightItem(o2))); } else { let skip = 0; let min = Math.min(exists.length, added.length); while (skip < min) { if (isSame(added[skip], exists[skip])) { skip++; } else { break; } } let toRemove = exists.slice(skip).map((o2) => o2[4]); removeMarkers.push(...toRemove); newItems.push(...added.slice(skip).map((o2) => convertHighlightItem(o2))); } } } } for (let i2 = itemIndex; i2 <= maxIndex; i2++) { newItems.push(convertHighlightItem(items[i2])); } return { remove: [], add: newItems, removeMarkers }; } async applyDiffHighlights(bufnr, ns, priority, diff, notify) { let { nvim } = this; let { remove: remove2, add, removeMarkers } = diff; if (remove2.length === 0 && add.length === 0 && removeMarkers.length === 0) return; nvim.pauseNotification(); if (add.length) { nvim.call("coc#highlight#set", [bufnr, ns, add, priority], true); } if (removeMarkers.length) { nvim.call("coc#highlight#del_markers", [bufnr, ns, removeMarkers], true); } if (notify) { nvim.resumeNotification(true, true); } else { await nvim.resumeNotification(true); } } }; } }); // src/model/notification.ts function toButtons(texts) { return texts.map((s2, index) => { return { text: s2, index }; }); } function toTitles(items) { return items.map((item) => typeof item === "string" ? item : item.title); } var Notification; var init_notification = __esm({ "src/model/notification.ts"() { "use strict"; init_events(); init_util(); init_array(); init_string(); Notification = class { constructor(nvim, config, attachEvents = true) { this.nvim = nvim; this.config = config; if (attachEvents) { events_default.on("BufWinLeave", (bufnr) => { if (bufnr == this.bufnr) { this.dispose(); if (config.callback) config.callback(-1); } }, null, this.disposables); let btns = toArray(config.buttons).filter((o2) => o2.disabled != true); events_default.on("FloatBtnClick", (bufnr, idx) => { if (bufnr == this.bufnr) { this.dispose(); if (config.callback) config.callback(defaultValue(btns[idx]?.index, -1)); } }, null, this.disposables); } } nvim; config; disposables = []; bufnr; _winid; get lines() { return this.config.content ? this.config.content.split(/\r?\n/) : []; } async show(preferences) { let { nvim } = this; let { buttons, kind, title } = this.config; let opts = Object.assign({}, preferences); opts.kind = toText(kind); opts.close = this.config.closable === true ? 1 : 0; if (title) opts.title = title; if (preferences.border) { opts.borderhighlight = kind ? `CocNotification${kind[0].toUpperCase()}${kind.slice(1)}` : preferences.highlight; } if (Array.isArray(buttons)) { let actions = buttons.filter((o2) => !o2.disabled).map((o2) => o2.text); opts.actions = actions; } let res = await nvim.call("coc#notify#create", [this.lines, opts]); this._winid = res[0]; this.bufnr = res[1]; } get winid() { return this._winid; } dispose() { let { winid } = this; if (winid) { this.nvim.call("coc#notify#close", [winid], true); this.nvim.redrawVim(); } this.bufnr = void 0; this._winid = void 0; disposeAll(this.disposables); } }; } }); // src/model/progress.ts function formatMessage(title, message, total) { let parts = []; if (title) parts.push(title); if (message) parts.push(message); if (total) parts.push(total + "%"); return parts.join(" "); } var logger6, ProgressNotification; var init_progress = __esm({ "src/model/progress.ts"() { "use strict"; init_events(); init_logger(); init_protocol(); init_notification(); logger6 = createLogger("model-progress"); ProgressNotification = class extends Notification { constructor(nvim, option) { super(nvim, { kind: "progress", title: option.title, closable: option.cancellable }, false); this.option = option; this.disposables.push(this._onDidFinish); events_default.on("BufWinLeave", this.cancelProgress, null, this.disposables); } option; tokenSource; _onDidFinish = new import_node4.Emitter(); onDidFinish = this._onDidFinish.event; cancelProgress = (bufnr) => { if (bufnr == this.bufnr && this.tokenSource) { this.tokenSource.cancel(); } }; async show(preferences) { let { task } = this.option; let tokenSource = this.tokenSource = new import_node4.CancellationTokenSource(); this.disposables.push(tokenSource); let total = 0; if (!preferences.disabled) { await super.show(preferences); } else { logger6.warn(`progress window disabled by configuration "notification.disabledProgressSources"`); } task({ report: (p2) => { if (!this.winid) return; let { nvim } = this; if (p2.increment) { total += p2.increment; nvim.call("coc#window#set_var", [this.winid, "percent", `${total}%`], true); } if (p2.message) nvim.call("coc#window#set_var", [this.winid, "message", p2.message], true); } }, tokenSource.token).then((res) => { this._onDidFinish.fire(res); this.dispose(); }, (err) => { if (err) this.nvim.echoError(err); this._onDidFinish.fire(void 0); this.dispose(); }); } }; } }); // src/core/notifications.ts var Notifications; var init_notifications = __esm({ "src/core/notifications.ts"() { "use strict"; init_notification(); init_progress(); init_util(); init_extensionRegistry(); init_numbers(); init_protocol(); init_string(); init_funcs(); init_ui(); init_events(); Notifications = class { constructor(dialogs) { this.dialogs = dialogs; } dialogs; nvim; configuration; statusLine; historyLimit = 100; _history = []; getCurrentTimestamp() { const now = /* @__PURE__ */ new Date(); const year = now.getFullYear(); const month = (now.getMonth() + 1).toString().padStart(2, "0"); const day = now.getDate().toString().padStart(2, "0"); const hours = now.getHours().toString().padStart(2, "0"); const minutes = now.getMinutes().toString().padStart(2, "0"); const seconds = now.getSeconds().toString().padStart(2, "0"); const ms = now.getMilliseconds().toString().padStart(3, "0"); return `${year}-${month}-${day}T${hours}:${minutes}:${seconds}.${ms}`; } async _showMessage(kind, message, items) { this._history.push({ time: this.getCurrentTimestamp(), kind, message }); if (this._history.length > this.historyLimit) { this._history.splice(0, this._history.length - this.historyLimit); } let msgDialogKind = this.messageDialogKind; if (this.enableMessageDialog === true) { msgDialogKind = "notification"; } if (items.length > 0) { switch (msgDialogKind) { case "confirm": return await this.showConfirm(message, items, kind); case "menu": return await this.showMenuPicker(`Choose an action`, message, `Coc${kind}Float`, items); case "notification": { let texts = items.map((o2) => typeof o2 === "string" ? o2 : o2.title); let idx = await this.createNotification(kind.toLowerCase(), message, texts); return items[idx]; } default: throw new Error(`Unexpected messageDialogKind: ${this.messageDialogKind}`); } } else { let msgReportKind = this.messageReportKind; switch (msgReportKind) { case "echo": { let msgType = kind == "Info" ? "more" : kind == "Error" ? "error" : "warning"; this.echoMessages(message, msgType); break; } case "notification": { await this.createNotification(kind.toLowerCase(), message, []); break; } default: throw new Error(`Unexpected messageReportKind: ${msgReportKind}`); } return void 0; } } get history() { return this._history; } clearHistory() { this._history = []; } createNotification(kind, message, items) { return new Promise((resolve, reject) => { let config = { kind, content: message, buttons: toButtons(items), callback: (idx) => { resolve(idx); } }; let notification = new Notification(this.nvim, config); notification.show(this.getNotificationPreference()).catch(reject); if (items.length == 0) { resolve(-1); } }); } async showConfirm(message, items, kind) { let titles = toTitles(items); let choices = titles.map((s2, i2) => `${i2 + 1}${s2}`); let res = await callAsync(this.nvim, "confirm", [message, choices.join("\n"), 1, kind]); return items[res - 1]; } async showMenuPicker(title, content, hlGroup, items) { let texts = items.map((o2) => typeof o2 === "string" ? o2 : o2.title); let res = await this.dialogs.showMenuPicker(texts, { position: "center", content, title: title.replace(/\r?\n/g, " "), borderhighlight: hlGroup }); if (res < 0) return void 0; return items[res]; } async showNotification(config, stack) { let notification = new Notification(this.nvim, config); await notification.show(this.getNotificationPreference(stack)); } echoMessages(msg, messageType) { let level2 = this.configuration.get("coc.preferences.messageLevel", "more"); echoMessages(this.nvim, msg, messageType, level2); void events_default.fire("Message", [msg]); } async withProgress(options3, task) { let config = this.configuration.get("notification"); if (!options3.cancellable && config.statusLineProgress) { return await this.createStatusLineProgress(options3, task); } let progress = new ProgressNotification(this.nvim, { task, title: options3.title, cancellable: options3.cancellable }); let minWidth = toNumber(config.minProgressWidth, 40); let promise = new Promise((resolve) => { progress.onDidFinish(resolve); }); await progress.show(Object.assign(this.getNotificationPreference(options3.source, true), { minWidth })); return await promise; } async createStatusLineProgress(options3, task) { let { title } = options3; let statusItem = this.statusLine.createStatusBarItem(0, true); statusItem.text = toText(title); statusItem.show(); let total = 0; let result = await task({ report: (p2) => { if (p2.increment) { total += p2.increment; } statusItem.text = formatMessage(title, p2.message, total).replace(/\r?\n/g, " "); } }, import_node4.CancellationToken.None); statusItem.dispose(); return result; } get enableMessageDialog() { return this.configuration.get("coc.preferences.enableMessageDialog", false); } get messageDialogKind() { return this.configuration.get("coc.preferences.messageDialogKind", "confirm"); } get messageReportKind() { return this.configuration.get("coc.preferences.messageReportKind", "echo"); } getNotificationPreference(source, isProgress = false) { if (!source && true) source = parseExtensionName(Error().stack); let config = this.configuration.get("notification"); let disabled = false; if (isProgress) { let disabledList = defaultValue(config.disabledProgressSources, []); disabled = Array.isArray(disabledList) && (disabledList.includes("*") || disabledList.includes(source)); } return { border: config.border, focusable: config.focusable, marginRight: toNumber(config.marginRight, 10), timeout: toNumber(config.timeout, 1e4), maxWidth: toNumber(config.maxWidth, 60), maxHeight: toNumber(config.maxHeight, 10), highlight: config.highlightGroup, winblend: toNumber(config.winblend, 30), disabled, source }; } }; } }); // src/model/terminal.ts var TerminalModel; var init_terminal = __esm({ "src/model/terminal.ts"() { "use strict"; TerminalModel = class { constructor(cmd, args, nvim, _name, strictEnv) { this.cmd = cmd; this.args = args; this.nvim = nvim; this._name = _name; this.strictEnv = strictEnv; } cmd; args; nvim; _name; strictEnv; bufnr; pid = 0; exitStatus; async start(cwd2, env) { let { nvim } = this; let cmd = [this.cmd, ...this.args]; let [bufnr, pid] = await nvim.call("coc#terminal#start", [cmd, cwd2, env || {}, !!this.strictEnv]); this.bufnr = bufnr; this.pid = pid; } onExit(code) { this.exitStatus = { code: code === -1 ? void 0 : code }; } get name() { return this._name || this.cmd; } get processId() { return Promise.resolve(this.pid); } sendText(text, addNewLine = true) { if (!this.bufnr) return; this.nvim.call("coc#terminal#send", [this.bufnr, text, addNewLine], true); } async show(preserveFocus) { let { bufnr, nvim } = this; if (!bufnr) return false; return await nvim.call("coc#terminal#show", [bufnr, { preserveFocus }]); } async hide() { let { bufnr, nvim } = this; if (!bufnr) return; await nvim.eval(`coc#window#close(bufwinid(${bufnr}))`); } dispose() { if (!this.exitStatus) { this.exitStatus = { code: void 0 }; } let { bufnr, nvim } = this; if (!bufnr) return; this.bufnr = void 0; nvim.call("coc#terminal#close", [bufnr], true); } }; } }); // src/core/terminals.ts var Terminals; var init_terminals = __esm({ "src/core/terminals.ts"() { "use strict"; init_events(); init_terminal(); init_util(); init_object(); init_protocol(); Terminals = class { _terminals = /* @__PURE__ */ new Map(); disposables = []; _onDidOpenTerminal = new import_node4.Emitter(); _onDidCloseTerminal = new import_node4.Emitter(); onDidCloseTerminal = this._onDidCloseTerminal.event; onDidOpenTerminal = this._onDidOpenTerminal.event; constructor() { events_default.on("BufUnload", (bufnr, status) => { if (this._terminals.has(bufnr)) { let terminal = this._terminals.get(bufnr); if (status != null) terminal.onExit(status); this._onDidCloseTerminal.fire(terminal); this._terminals.delete(bufnr); } }, null, this.disposables); events_default.on("TermExit", (bufnr, status) => { let terminal = this._terminals.get(bufnr); if (terminal) { terminal.onExit(status); terminal.dispose(); } }, null, this.disposables); } get terminals() { return Array.from(this._terminals.values()); } async createTerminal(nvim, opts) { let cwd2 = opts.cwd; let cmd = opts.shellPath; let args = opts.shellArgs; if (!cmd) cmd = await nvim.getOption("shell"); if (!cwd2) cwd2 = await nvim.call("getcwd"); let terminal = new TerminalModel(cmd, args || [], nvim, opts.name, opts.strictEnv); await terminal.start(cwd2, opts.env); this._terminals.set(terminal.bufnr, terminal); this._onDidOpenTerminal.fire(terminal); return terminal; } async runTerminalCommand(nvim, cmd, cwd2, keepfocus) { return await nvim.callAsync("coc#ui#run_terminal", { cmd, cwd: cwd2, keepfocus: keepfocus ? 1 : 0 }); } async openTerminal(nvim, cmd, opts) { return await nvim.call("coc#ui#open_terminal", { cmd, ...toObject(opts) }); } reset() { for (let terminal of this._terminals.values()) { terminal.dispose(); } this._terminals.clear(); } dispose() { this._onDidOpenTerminal.dispose(); this._onDidCloseTerminal.dispose(); disposeAll(this.disposables); this.reset(); } }; } }); // data/schema.json var schema_default; var init_schema = __esm({ "data/schema.json"() { schema_default = { description: "Configuration file for coc.nvim", additionalProperties: false, definitions: { floatConfig: { type: "object", properties: { border: { type: "boolean", default: false, description: "Set to true to use borders." }, rounded: { type: "boolean", default: false, description: "Use rounded borders when border is true." }, highlight: { type: "string", default: "CocFloating", description: "Background highlight group of float window." }, title: { type: "string", default: "", description: "Title used by float window." }, borderhighlight: { type: "string", default: "CocFloatBorder", description: "Border highlight group of float window." }, close: { type: "boolean", default: false, description: "Set to true to draw a close icon." }, maxWidth: { type: "integer", description: "Maximum width of the float window, including the border." }, maxHeight: { type: "integer", minimum: 2, description: "Maximum height of the float window, including the border." }, focusable: { type: "boolean", default: true, description: "Enable focusing by user actions (wincmds, mouse events); Neovim only." }, shadow: { type: "boolean", default: false, description: "Enable a drop shadow by blending with the background; Neovim only." }, winblend: { type: "integer", default: 0, minimum: 0, maximum: 100, description: "Enable pseudo-transparency by setting the 'winblend' option of the window; Neovim only." }, position: { type: "string", default: "auto", description: "Controls how floating windows are positioned. When set to `'fixed'`, the window will be positioned according to the `top`, `bottom`, `left`, and `right` settings. When set to `'auto'`, the window follows the default position.", enum: [ "fixed", "auto" ] }, top: { type: "number", description: "Distance from the top of the editor window in characters. Only takes effect when `position` is set to `'fixed'`. and is ignored if `bottom` is set." }, bottom: { type: "number", description: "Distance from the bottom of the editor window in characters. Only takes effect when `position` is set to `'fixed'`. Takes precedence over `top` if both are set." }, left: { type: "number", description: "Distance from the left edge of the editor window in characters. Only takes effect when `position` is set to `'fixed'`. and is ignored if `right` is set." }, right: { type: "number", description: "Distance from the right edge of the editor window in characters. Only takes effect when `position` is set to `'fixed'`. Takes precedence over `left` if both are set." } } }, "languageserver.enable": { type: "boolean", description: "Enable the language server. A coc.nvim restart is required after changing this.", default: true }, "languageserver.filetypes": { type: "array", default: [], description: "Supported filetypes; add `*` to the array for all filetypes.", items: { type: "string" } }, "languageserver.maxRestartCount": { type: "integer", default: 4, minimum: 1, description: "Maximum number of restarts when the server closes within the last 3 minutes." }, "languageserver.cwd": { type: "string", default: "", description: "Working directory of the language server; an absolute path or relative to the workspace folder. Uses the workspace root by default." }, "languageserver.settings": { type: "object", default: {}, description: "Settings of the language server." }, "languageserver.initializationOptions": { type: "object", default: {}, description: "Initialization options passed to the language server." }, "languageserver.env": { type: "object", default: null, description: "Environment variables for child process." }, "languageserver.stdioEncoding": { type: "string", default: "utf8", description: "Encoding used for the stdio of the child process." }, "languageserver.rootPatterns": { type: "array", default: [], description: "Root patterns used to resolve the rootPath from the current file; defaults to the workspace root.", items: { type: "string" } }, "languageserver.requireRootPattern": { type: "boolean", default: false, description: "If true, the server isn't started when no root pattern is found." }, "languageserver.ignoredRootPaths": { type: "array", default: [], description: "Absolute root paths that the language server should not use as rootPath; takes priority over rootPatterns.", items: { type: "string" } }, "languageserver.additionalSchemes": { type: "array", default: [], description: "Additional URI schemes; default schemes include file and untitled.", items: { type: "string" } }, "languageserver.revealOutputChannelOn": { type: "string", default: "never", description: "Configure the message level at which the output channel buffer is shown.", enum: [ "info", "warn", "error", "never" ] }, "languageserver.progressOnInitialization": { type: "boolean", default: false, description: "Enable progress reporting during language server initialization." }, "languageserver.trace.server": { type: "string", default: "off", enum: [ "off", "messages", "verbose" ], description: "Trace level of the communication between server and client." }, "languageserver.trace.server.verbosity": { type: "string", default: "off", enum: [ "off", "messages", "compact", "verbose" ], description: "Trace level of the communication between server and client." }, "languageserver.trace.server.format": { type: "string", default: "text", enum: [ "text", "json" ], description: "Text format of trace messages." }, "languageserver.disableDynamicRegister": { type: "boolean", default: false, description: "Disable the dynamic registerCapability feature for this language server to avoid duplicate feature registration." }, "languageserver.disableSnippetCompletion": { type: "boolean", default: false, description: "Disable the snippet completion feature for this language server; the language server may not respect it." }, "languageserver.disabledFeatures": { type: "array", default: [], description: 'Features disabled for this language server.\n- `"configuration"` corresponds to `workspace/didChangeConfiguration`\n- `"pullConfiguration"` corresponds to `workspace/configuration`', uniqueItems: true, items: { type: "string", enum: [ "completion", "configuration", "workspaceFolders", "diagnostics", "willSave", "willSaveUntil", "didSaveTextDocument", "fileSystemWatcher", "hover", "signatureHelp", "definition", "references", "documentHighlight", "documentSymbol", "workspaceSymbol", "codeAction", "codeLens", "documentFormatting", "documentRangeFormatting", "documentOnTypeFormatting", "rename", "documentLink", "executeCommand", "pullConfiguration", "typeDefinition", "implementation", "declaration", "color", "foldingRange", "selectionRange", "progress", "callHierarchy", "linkedEditing", "inlayHint", "inlineValue", "typeHierarchy", "pullDiagnostic", "fileEvents", "semanticTokens" ] } }, "languageserver.formatterPriority": { type: "integer", default: 0, description: "Priority of this language server's formatter." }, languageServerSocket: { type: "object", required: [ "port", "filetypes" ], additionalProperties: false, properties: { port: { type: "integer", description: "Port number of the socket server." }, host: { type: "string", default: "127.0.0.1", description: "Host of the server." }, enable: { $ref: "#/definitions/languageserver.enable" }, disableSnippetCompletion: { $ref: "#/definitions/languageserver.disableSnippetCompletion" }, disableDynamicRegister: { $ref: "#/definitions/languageserver.disableDynamicRegister" }, disabledFeatures: { $ref: "#/definitions/languageserver.disabledFeatures" }, formatterPriority: { $ref: "#/definitions/languageserver.formatterPriority" }, rootPatterns: { $ref: "#/definitions/languageserver.rootPatterns" }, requireRootPattern: { $ref: "#/definitions/languageserver.requireRootPattern" }, ignoredRootPaths: { $ref: "#/definitions/languageserver.ignoredRootPaths" }, maxRestartCount: { $ref: "#/definitions/languageserver.maxRestartCount" }, filetypes: { $ref: "#/definitions/languageserver.filetypes" }, additionalSchemes: { $ref: "#/definitions/languageserver.additionalSchemes" }, revealOutputChannelOn: { $ref: "#/definitions/languageserver.revealOutputChannelOn" }, progressOnInitialization: { $ref: "#/definitions/languageserver.progressOnInitialization" }, initializationOptions: { $ref: "#/definitions/languageserver.initializationOptions" }, settings: { $ref: "#/definitions/languageserver.settings" }, stdioEncoding: { $ref: "#/definitions/languageserver.stdioEncoding" }, "trace.server": { $ref: "#/definitions/languageserver.trace.server" }, "trace.server.verbosity": { $ref: "#/definitions/languageserver.trace.server.verbosity" }, "trace.server.format": { $ref: "#/definitions/languageserver.trace.server.format" } } }, languageServerModule: { type: "object", required: [ "module", "filetypes" ], additionalProperties: false, properties: { module: { type: "string", default: "", description: "Absolute path of the JavaScript file; works in IPC mode." }, args: { type: "array", default: [], description: "Extra arguments of the module.", items: { type: "string" } }, runtime: { type: "string", default: "", description: "Absolute path of the node runtime." }, execArgv: { type: "array", default: [], description: 'ARGV passed to node when using the module, normally used for debugging. Example: `["--nolazy", "--inspect-brk=6045"]`.', items: { type: "string" } }, transport: { type: "string", default: "ipc", description: "Transport kind used by the server; can be 'ipc', 'stdio', 'socket', or 'pipe'.", enum: [ "ipc", "stdio", "socket", "pipe" ] }, transportPort: { type: "integer", description: "Port number used when the transport is 'socket'." }, enable: { $ref: "#/definitions/languageserver.enable" }, disableSnippetCompletion: { $ref: "#/definitions/languageserver.disableSnippetCompletion" }, disableDynamicRegister: { $ref: "#/definitions/languageserver.disableDynamicRegister" }, disabledFeatures: { $ref: "#/definitions/languageserver.disabledFeatures" }, formatterPriority: { $ref: "#/definitions/languageserver.formatterPriority" }, rootPatterns: { $ref: "#/definitions/languageserver.rootPatterns" }, requireRootPattern: { $ref: "#/definitions/languageserver.requireRootPattern" }, ignoredRootPaths: { $ref: "#/definitions/languageserver.ignoredRootPaths" }, maxRestartCount: { $ref: "#/definitions/languageserver.maxRestartCount" }, filetypes: { $ref: "#/definitions/languageserver.filetypes" }, additionalSchemes: { $ref: "#/definitions/languageserver.additionalSchemes" }, revealOutputChannelOn: { $ref: "#/definitions/languageserver.revealOutputChannelOn" }, progressOnInitialization: { $ref: "#/definitions/languageserver.progressOnInitialization" }, initializationOptions: { $ref: "#/definitions/languageserver.initializationOptions" }, settings: { $ref: "#/definitions/languageserver.settings" }, stdioEncoding: { $ref: "#/definitions/languageserver.stdioEncoding" }, "trace.server": { $ref: "#/definitions/languageserver.trace.server" }, "trace.server.verbosity": { $ref: "#/definitions/languageserver.trace.server.verbosity" }, "trace.server.format": { $ref: "#/definitions/languageserver.trace.server.format" } } }, languageServerCommand: { type: "object", required: [ "command", "filetypes" ], additionalProperties: false, properties: { command: { type: "string", default: "", description: "Executable in $PATH used to start the language server; should not be used with `module`." }, args: { type: "array", default: [], description: "Arguments of the command.", items: { type: "string" } }, detached: { type: "boolean", default: false, description: "Detach the language server process." }, shell: { type: [ "boolean", "string" ], default: false, description: "If true, runs the command inside a shell; always true on Windows." }, enable: { $ref: "#/definitions/languageserver.enable" }, env: { $ref: "#/definitions/languageserver.env" }, disableSnippetCompletion: { $ref: "#/definitions/languageserver.disableSnippetCompletion" }, disableDynamicRegister: { $ref: "#/definitions/languageserver.disableDynamicRegister" }, disabledFeatures: { $ref: "#/definitions/languageserver.disabledFeatures" }, formatterPriority: { $ref: "#/definitions/languageserver.formatterPriority" }, rootPatterns: { $ref: "#/definitions/languageserver.rootPatterns" }, requireRootPattern: { $ref: "#/definitions/languageserver.requireRootPattern" }, ignoredRootPaths: { $ref: "#/definitions/languageserver.ignoredRootPaths" }, maxRestartCount: { $ref: "#/definitions/languageserver.maxRestartCount" }, filetypes: { $ref: "#/definitions/languageserver.filetypes" }, additionalSchemes: { $ref: "#/definitions/languageserver.additionalSchemes" }, revealOutputChannelOn: { $ref: "#/definitions/languageserver.revealOutputChannelOn" }, progressOnInitialization: { $ref: "#/definitions/languageserver.progressOnInitialization" }, initializationOptions: { $ref: "#/definitions/languageserver.initializationOptions" }, settings: { $ref: "#/definitions/languageserver.settings" }, stdioEncoding: { $ref: "#/definitions/languageserver.stdioEncoding" }, "trace.server": { $ref: "#/definitions/languageserver.trace.server" }, "trace.server.verbosity": { $ref: "#/definitions/languageserver.trace.server.verbosity" }, "trace.server.format": { $ref: "#/definitions/languageserver.trace.server.format" } } } }, properties: { "callHierarchy.enableTooltip": { type: "boolean", scope: "application", default: true, description: "Enable tooltip to show relative filepath of call hierarchy." }, "callHierarchy.openCommand": { type: "string", scope: "application", default: "edit", description: "Open command for callHierarchy tree view." }, "callHierarchy.splitCommand": { type: "string", scope: "application", default: "botright 30vs", description: "Window split command used by callHierarchy tree view." }, "coc.preferences.rootPatterns": { type: [ "array", "null" ], default: null, scope: "application", description: "Root patterns used to resolve the workspaceFolder from the parent folders of opened files, resolved from the top down.", deprecationMessage: "Use 'workspace.rootPatterns' instead.", items: { type: "string" } }, "coc.preferences.bracketEnterImprove": { type: "boolean", scope: "language-overridable", description: "Improve pressing enter inside brackets `<> {} [] ()` by adding a new empty line below and placing the cursor on it. Works with `coc#on_enter()`.", default: true }, "coc.preferences.currentFunctionSymbolAutoUpdate": { type: "boolean", scope: "language-overridable", description: "Automatically update the value of b:coc_current_function on the CursorMove event.", default: false }, "coc.preferences.currentFunctionSymbolDebounceTime": { type: "number", scope: "application", description: "Set the debounce timer for the update of b:coc_current_function on the CursorMove event.", default: 300 }, "coc.preferences.enableLinkedEditing": { type: "boolean", scope: "language-overridable", default: false, description: "Enable linked editing support." }, "coc.preferences.enableMarkdown": { type: "boolean", scope: "application", description: "Tell the language server that markdown text format is supported; note that markdown text may not be rendered as expected.", default: true }, "coc.preferences.enableMessageDialog": { type: "boolean", scope: "application", default: false, deprecationMessage: "Use configuration 'coc.preferences.messageDialogKind' instead.", description: "Enable interactive messages in notification dialogs, or fall back to Vim's native confirm action." }, "coc.preferences.messageDialogKind": { type: "string", scope: "application", default: "confirm", description: "Method to use when showing interactive messages to the user", enum: [ "notification", "menu", "confirm" ] }, "coc.preferences.messageReportKind": { type: "string", scope: "application", default: "echo", description: "Method to use when printing or showing plain user messages", enum: [ "notification", "echo" ] }, "coc.preferences.excludeImageLinksInMarkdownDocument": { type: "boolean", description: "Exclude image links from markdown text in float windows.", scope: "application", default: true }, "coc.preferences.enableGFMBreaksInMarkdownDocument": { type: "boolean", description: "Enable GFM breaks in markdown documents.", scope: "application", default: true }, "coc.preferences.extensionUpdateCheck": { type: "string", scope: "application", default: "never", description: "Interval for checking extension updates; can be daily, weekly, or never.", deprecationMessage: "Use configuration 'extensions.updateCheck' instead.", enum: [ "daily", "weekly", "never" ] }, "coc.preferences.extensionUpdateUIInTab": { type: "boolean", scope: "application", default: false, deprecationMessage: "Use configuration 'extensions.updateUIInTab' instead.", description: "Display the extension update UI in a new Vim tab." }, "coc.preferences.silentAutoupdate": { type: "boolean", description: "Don't open a split window with update status when performing auto updates.", deprecationMessage: "Use configuration 'extensions.silentAutoupdate' instead.", scope: "application", default: true }, "coc.preferences.floatActions": { type: "boolean", scope: "application", description: "Set to false to disable float/popup support for the actions menu.", default: true }, "coc.preferences.codeActionsShowKind": { type: "boolean", scope: "application", description: "Set to true to show kind in the code actions menu.", default: true }, "coc.preferences.autoApplySingleQuickfix": { type: "boolean", scope: "application", description: "Automatically apply the single quickfix action.", default: true }, "coc.preferences.formatOnSave": { type: "boolean", description: "Set to true to enable formatting on save.", scope: "language-overridable", default: false }, "coc.preferences.formatOnSaveTimeout": { type: "integer", scope: "language-overridable", description: "How long before the format command run on save times out.", default: 500, minimum: 200, maximum: 5e3 }, "coc.preferences.formatOnSaveFiletypes": { type: [ "null", "array" ], scope: "resource", default: null, description: "Filetypes that should run format on save.", deprecationMessage: "Use 'coc.preferences.formatOnSave' as language override configuration instead, see :h coc-configuration-scope", items: { type: "string" } }, "coc.preferences.formatOnType": { type: "boolean", description: "Set to true to enable formatting on typing.", scope: "language-overridable", default: false }, "coc.preferences.formatOnTypeFiletypes": { type: [ "null", "array" ], default: null, scope: "resource", description: "Filetypes that should run format on typing; only works when `coc.preferences.formatOnType` is `true`.", deprecationMessage: "Use 'coc.preferences.formatOnType' as language override configuration instead, see :h coc-configuration-scope", items: { type: "string" } }, "coc.preferences.formatterExtension": { type: [ "null", "string" ], default: null, scope: "language-overridable", description: "Extension used for formatting documents. When set to null, the formatter with highest priority is used." }, "coc.preferences.jumpCommand": { anyOf: [ { type: "string", enum: [ "edit", "split", "vsplit", "tabe", "drop", "tab drop", "pedit" ] }, { type: "string", minimum: 1 } ], scope: "application", description: "Command used for location jumps, like goto definition and goto references. Can also be a custom command that takes a file as an argument.", default: "edit" }, "coc.preferences.maxFileSize": { type: "string", scope: "application", default: "10MB", description: "Maximum file size in bytes that coc.nvim should handle. Default: '10MB'." }, "coc.preferences.messageLevel": { type: "string", scope: "application", description: "Message level for filtering echoed messages; can be 'more', 'warning', or 'error'.", default: "more", enum: [ "more", "warning", "error" ] }, "coc.preferences.promptInput": { type: "boolean", description: "Use a prompt buffer in a float window for user input.", scope: "application", default: true }, "coc.preferences.renameFillCurrent": { type: "boolean", scope: "application", default: true, description: "Set to false to stop the Refactor-Rename float/popup window from populating the New Name field with the old name." }, "coc.preferences.useQuickfixForLocations": { type: "boolean", scope: "application", description: "Use Vim's quickfix list for jump locations; a restart is required when changed.", default: false }, "coc.preferences.watchmanPath": { type: "string", scope: "application", deprecationMessage: 'Use configuration "fileSystemWatch.watchmanPath" instead.', description: "Executable path for https://facebook.github.io/watchman/.", default: null }, "coc.preferences.willSaveHandlerTimeout": { type: "integer", scope: "application", default: 500, minimum: 200, maximum: 5e3, description: "Timeout of the will-save handler." }, "coc.preferences.tagDefinitionTimeout": { type: "integer", scope: "application", default: 0, description: "Timeout of CocTagFunc; defaults to infinity." }, "coc.source.around.disableSyntaxes": { type: "array", default: [], scope: "application", items: { type: "string" } }, "coc.source.around.enable": { type: "boolean", scope: "application", default: true }, "coc.source.around.priority": { type: "integer", scope: "application", default: 1 }, "coc.source.around.shortcut": { type: "string", scope: "application", default: "A" }, "coc.source.buffer.disableSyntaxes": { type: "array", default: [], scope: "application", items: { type: "string" } }, "coc.source.buffer.enable": { type: "boolean", scope: "application", default: true }, "coc.source.buffer.ignoreGitignore": { type: "boolean", default: true, scope: "application", description: "Ignore git-ignored files for buffer words." }, "coc.source.buffer.priority": { type: "integer", scope: "application", default: 1 }, "coc.source.buffer.shortcut": { type: "string", scope: "application", default: "B" }, "coc.source.file.disableSyntaxes": { type: "array", default: [], scope: "application", items: { type: "string" } }, "coc.source.file.enable": { type: "boolean", scope: "application", default: true }, "coc.source.file.ignoreHidden": { type: "boolean", scope: "application", default: true, description: "Ignore completion for hidden files" }, "coc.source.file.ignorePatterns": { type: "array", scope: "application", default: [], description: "Ignore patterns of the matcher.", items: { type: "string" } }, "coc.source.file.priority": { type: "integer", scope: "application", default: 10 }, "coc.source.file.shortcut": { type: "string", scope: "application", default: "F" }, "coc.source.file.triggerCharacters": { type: "array", default: [ "/", "\\" ], scope: "application", items: { type: "string" } }, "coc.source.file.trimSameExts": { type: "array", scope: "application", default: [ ".ts", ".js" ], description: "Trim the same extension on file completion.", items: { type: "string" } }, "codeLens.enable": { type: "boolean", scope: "language-overridable", description: "Enable the codeLens feature; requires Neovim with the virtual text feature.", default: false }, "codeLens.display": { type: "boolean", scope: "language-overridable", default: true, description: "Display codeLens." }, "codeLens.position": { type: "string", scope: "language-overridable", enum: [ "top", "eol", "right_align" ], description: "Display position of codeLens virtual text.", default: "top" }, "codeLens.separator": { type: "string", scope: "language-overridable", description: "Separator text for codeLens in virtual text.", default: "" }, "codeLens.subseparator": { type: "string", scope: "language-overridable", description: "Subseparator between codeLenses in virtual text.", default: " | " }, "colors.enable": { type: "boolean", scope: "language-overridable", description: "Enable the colors highlight feature. For terminal Vim, the 'termguicolors' option should be enabled and the terminal should support GUI colors.", default: false }, "colors.filetypes": { type: [ "array", "null" ], default: null, scope: "resource", deprecationMessage: "Use colors.enable as language override configuration instead, see :h coc-configuration-scope", description: 'Filetypes that should be enabled for the colors highlight feature; use "*" for all filetypes.', items: { type: "string" } }, "colors.highlightPriority": { type: "integer", scope: "application", description: "Priority for colors highlights; works on Vim8 and Neovim >= 0.6.0.", default: 1e3, maximum: 4096 }, "cursors.cancelKey": { type: "string", scope: "application", default: "", description: "Key used to cancel the cursors session." }, "cursors.nextKey": { type: "string", scope: "application", default: "", description: "Key used to jump to the next cursors position." }, "cursors.previousKey": { type: "string", scope: "application", default: "", description: "Key used to jump to the previous cursors position." }, "cursors.wrapscan": { type: "boolean", scope: "application", default: true, description: "Search wraps around the first or last cursors range." }, "diagnostic.autoRefresh": { type: "boolean", scope: "language-overridable", description: "Automatically refresh diagnostics; use the diagnosticRefresh action when disabled.", default: true }, "diagnostic.checkCurrentLine": { type: "boolean", scope: "language-overridable", description: "When enabled, show all diagnostics of the current line if there are none at the current position.", default: false }, "diagnostic.displayByAle": { type: "boolean", scope: "language-overridable", description: "Use Ale, coc-diagnostics-shim.nvim, or another provider to display diagnostics in Vim. This setting disables diagnostic display using coc's handler. A restart is required when changed.", default: false }, "diagnostic.displayByVimDiagnostic": { type: "boolean", scope: "language-overridable", description: "Display diagnostics with nvim's `vim.diagnostic`. This setting disables diagnostic display using coc's handler. A restart is required when changed. Neovim only.", default: false }, "diagnostic.enable": { type: "boolean", scope: "language-overridable", description: "Set to false to disable diagnostic display.", default: true }, "diagnostic.enableHighlightLineNumber": { type: "boolean", scope: "application", default: true, description: "Enable highlighting line numbers for diagnostics; only works with Neovim." }, "diagnostic.enableMessage": { type: "string", scope: "application", default: "always", description: "When to show messages of diagnostics.", enum: [ "always", "jump", "never" ] }, "diagnostic.enableSign": { type: "boolean", scope: "language-overridable", default: true, description: "Enable signs for diagnostics." }, "diagnostic.errorSign": { type: "string", scope: "application", description: "Text of the error sign.", default: ">>" }, "diagnostic.filetypeMap": { type: "object", scope: "application", description: 'A map between the buffer filetype and the filetype assigned to diagnostics. To syntax highlight diagnostics with their parent buffer type, use `"default": "bufferType"`.', default: {} }, "diagnostic.floatConfig": { type: "object", scope: "application", description: "Configure the float window style of diagnostic messages.", allOf: [ { $ref: "#/definitions/floatConfig" } ], additionalProperties: false, properties: { border: {}, rounded: {}, highlight: {}, borderhighlight: {}, title: {}, close: {}, maxHeight: {}, maxWidth: {}, winblend: {}, focusable: {}, shadow: {}, position: {}, top: {}, bottom: {}, left: {}, right: {} } }, "diagnostic.format": { type: "string", scope: "language-overridable", description: "Define the diagnostic format shown in the float window or echoed. Available parts: source, code, severity, message.", default: "%message (%source%code)" }, "diagnostic.highlightLimit": { type: "integer", scope: "language-overridable", description: "Limit the number of highlighted diagnostics; too many diagnostic highlights could make Vim stop responding.", default: 1e3 }, "diagnostic.highlightPriority": { type: "integer", scope: "language-overridable", description: "Priority for diagnostic highlights; works on Vim8 and Neovim >= 0.6.0.", default: 4096, maximum: 4096, minimum: 110 }, "diagnostic.hintSign": { type: "string", scope: "application", description: "Text of the hint sign.", default: ">>" }, "diagnostic.infoSign": { type: "string", scope: "application", description: "Text of the info sign.", default: ">>" }, "diagnostic.level": { type: "string", scope: "resource", description: "Used for filtering diagnostics by severity.", default: "hint", enum: [ "hint", "information", "warning", "error" ] }, "diagnostic.locationlistLevel": { type: [ "string", "null" ], scope: "language-overridable", description: "Filter diagnostics in the location list.", default: null, enum: [ "hint", "information", "warning", "error" ] }, "diagnostic.locationlistUpdate": { type: "boolean", scope: "language-overridable", description: "Update the location list on diagnostics change; only works with the location list opened by the :CocDiagnostics command and the first window of the associated buffer.", default: true }, "diagnostic.messageDelay": { type: "integer", scope: "application", description: "How long to wait (in milliseconds) before displaying the diagnostic message with echo or float.", default: 200 }, "diagnostic.messageLevel": { type: [ "string", "null" ], scope: "language-overridable", description: "Filter diagnostic messages in the float window/popup.", default: null, enum: [ "hint", "information", "warning", "error" ] }, "diagnostic.messageTarget": { type: "string", scope: "language-overridable", description: "Diagnostic message target.", default: "float", enum: [ "echo", "float" ] }, "diagnostic.refreshOnInsertMode": { type: "boolean", scope: "language-overridable", description: "Enable diagnostic refresh in insert mode. Default: false.", default: false }, "diagnostic.showDeprecated": { type: "boolean", default: true, scope: "language-overridable", description: "Show diagnostics with the deprecated tag." }, "diagnostic.showUnused": { type: "boolean", default: true, scope: "language-overridable", description: "Show diagnostics with the unused tag; affects highlight, sign, virtual text, and message." }, "diagnostic.signLevel": { type: [ "string", "null" ], scope: "language-overridable", description: "Filter diagnostics displayed in the sign column.", default: null, enum: [ "hint", "information", "warning", "error" ] }, "diagnostic.signPriority": { type: "integer", scope: "resource", description: "Priority of diagnostic signs; defaults to 10.", default: 10 }, "diagnostic.virtualText": { type: "boolean", scope: "language-overridable", description: "Use virtual text to display diagnostics.", default: false }, "diagnostic.virtualTextAlign": { type: "string", scope: "language-overridable", description: "Position of the virtual text; defaults to 'after'.", default: "after", enum: [ "after", "right", "below" ] }, "diagnostic.virtualTextCurrentLineOnly": { type: "boolean", scope: "language-overridable", description: "Only show virtual text diagnostics on the current cursor line.", default: true }, "diagnostic.virtualTextFormat": { type: "string", scope: "language-overridable", description: "Define the virtual text diagnostic format. Available parts: source, code, severity, message.", default: "%message" }, "diagnostic.virtualTextLevel": { type: [ "string", "null" ], scope: "language-overridable", description: "Filter diagnostic messages in virtual text by level.", default: null, enum: [ "hint", "information", "warning", "error" ] }, "diagnostic.virtualTextLimitInOneLine": { type: "integer", scope: "language-overridable", minimum: 1, description: "Maximum number of diagnostic messages to display in one line.", default: 999 }, "diagnostic.virtualTextLineSeparator": { type: "string", scope: "language-overridable", description: "The text that marks the end of a line in the diagnostic message.", default: " \\ " }, "diagnostic.virtualTextLines": { type: "integer", scope: "language-overridable", description: "The number of non-empty lines of a diagnostic to display.", default: 3 }, "diagnostic.virtualTextPrefix": { type: "string", scope: "language-overridable", description: "The prefix added to virtual text diagnostics.", default: " " }, "diagnostic.virtualTextWinCol": { type: [ "integer", "null" ], scope: "language-overridable", description: "Window column number to align virtual text; Neovim only.", default: null }, "diagnostic.warningSign": { type: "string", scope: "application", description: "Text of the warning sign.", default: "\u26A0" }, "diagnostic.showRelatedInformation": { type: "boolean", default: true, scope: "language-overridable", description: "Display related information in the diagnostic floating window." }, "dialog.confirmKey": { type: "string", default: "", scope: "application", description: "Key used to confirm selection in menus and pickers; you can always use to cancel." }, "dialog.floatBorderHighlight": { type: [ "string", "null" ], default: null, scope: "application", description: "Highlight group for the border of dialog windows/popups; defaults to 'CocFloatBorder'." }, "dialog.floatHighlight": { type: [ "string", "null" ], default: null, scope: "application", description: "Highlight group for dialog windows/popups; defaults to 'CocFloating'." }, "dialog.maxHeight": { type: "integer", default: 30, scope: "application", description: "Maximum height of the dialog window." }, "dialog.maxWidth": { type: "integer", default: 80, scope: "application", description: "Maximum width of the dialog window." }, "dialog.pickerButtonShortcut": { type: "boolean", default: true, scope: "application", description: "Show shortcuts in the buttons of the picker dialog window/popup; used when `dialog.pickerButtons` is true." }, "dialog.pickerButtons": { type: "boolean", default: true, scope: "application", description: "Show buttons for the picker dialog window/popup." }, "dialog.rounded": { type: "boolean", default: true, scope: "application", description: "Use a rounded border for dialog windows." }, "dialog.shortcutHighlight": { type: "string", default: "MoreMsg", scope: "application", description: "Highlight group for the shortcut character in the menu dialog; defaults to 'MoreMsg'." }, "documentHighlight.priority": { type: "integer", default: -1, scope: "resource", description: "Match priority used by document highlight; see ':h matchadd'." }, "documentHighlight.limit": { type: "integer", default: 200, scope: "resource", description: "Limit the highlights added by matchaddpos; too many positions could make Vim slow." }, "documentHighlight.timeout": { type: "integer", default: 300, minimum: 200, maximum: 5e3, scope: "resource", description: "Timeout for document highlight, in milliseconds." }, "editor.autocmdTimeout": { type: "integer", default: 1e3, minimum: 100, maximum: 5e3, scope: "application", description: "Timeout in milliseconds for the execute-request autocmd registered by coc extensions." }, "editor.fileOperationTimeout": { type: "integer", default: 500, minimum: 1, scope: "application", description: "Timeout in milliseconds for the waitUntil handlers of file create, delete, and rename events." }, "editor.codeActionsOnSave": { additionalProperties: { type: [ "string", "boolean" ], enum: [ "always", "never", true, false ] }, type: "object", default: {}, scope: "language-overridable", description: 'Run code actions for the buffer on save, normally source actions. Example: `"source.organizeImports": "always"`.' }, "fileSystemWatch.watchmanPath": { type: [ "null", "string" ], scope: "application", description: "Executable path for https://facebook.github.io/watchman/. When nonempty, coc.nvim tries this Watchman executable once before falling back to the bundled native watcher. Otherwise, coc.nvim tries the native watcher first, then looks up Watchman on $PATH if it fails. When neither works, file watching fails silently and writes error logs to the watchman output channel.", default: null }, "fileSystemWatch.enable": { type: "boolean", default: true, scope: "application", description: "Enable file system watch support for workspace folders." }, "fileSystemWatch.ignoredFolders": { type: "array", default: [ "/private/tmp", "/", "${tmpdir}", "**/.git", "**/.git/**", "**/node_modules", "**/node_modules/**" ], scope: "application", description: "List of folders that should not be watched for file changes. Root selection keeps its existing environment-variable and minimatch behavior. The bundled native watcher uses restricted forwarded subtree ignores: * matches within one component, ** matches complete components, and other glob punctuation is literal.", items: { type: "string" } }, "floatFactory.floatConfig": { type: "object", scope: "application", description: "Configure the default float window/popup style created by the float factory (created around the cursor and automatically closed).", allOf: [ { $ref: "#/definitions/floatConfig" } ], additionalProperties: false, properties: { border: {}, rounded: {}, highlight: {}, borderhighlight: {}, title: {}, close: {}, maxWidth: {}, maxHeight: {}, winblend: {}, focusable: {}, shadow: {}, position: {}, top: {}, bottom: {}, left: {}, right: {} } }, "hover.autoHide": { type: "boolean", scope: "application", default: true, description: "Automatically hide the hover float window on CursorMove or InsertEnter." }, "hover.floatConfig": { type: "object", scope: "application", description: "Configure the float window style of hover documents.", allOf: [ { $ref: "#/definitions/floatConfig" } ], additionalProperties: false, properties: { border: {}, rounded: {}, highlight: {}, borderhighlight: {}, title: {}, close: {}, maxHeight: {}, maxWidth: {}, winblend: {}, focusable: {}, shadow: {}, position: {}, top: {}, bottom: {}, left: {}, right: {} } }, "hover.previewMaxHeight": { type: "integer", scope: "resource", default: 12, description: "Maximum height of the preview window for hover." }, "hover.target": { type: "string", default: "float", scope: "resource", description: "Target used to show hover information; uses a floating window when possible by default.", enum: [ "preview", "echo", "float" ] }, "http.proxy": { type: "string", default: "", pattern: "^https?://([^:]*(:[^@]*)?@)?([^:]+|\\[[:0-9a-fA-F]+\\])(:\\d+)?/?$|^$", description: "The proxy setting to use. If not set, it's inherited from the `http_proxy` and `https_proxy` environment variables.", scope: "application" }, "http.proxyAuthorization": { type: [ "null", "string" ], description: "The value to send as the `Proxy-Authorization` header for every network request.", default: null, scope: "application" }, "http.proxyCA": { type: "string", description: "CA (file) to use as the Certificate Authority.", default: null, scope: "application" }, "http.proxyStrictSSL": { type: "boolean", description: "Controls whether the proxy server certificate should be verified against the list of supplied CAs.", default: true, scope: "application" }, "extensions.updateCheck": { type: "string", scope: "application", default: "never", description: "Interval for checking extension updates; can be daily, weekly, or never.", enum: [ "daily", "weekly", "never" ] }, "extensions.recommendations": { type: "array", scope: "resource", description: "List of extensions recommended for installation in the current project.", default: [], items: { type: "string" } }, "extensions.silentAutoupdate": { type: "boolean", description: "Don't open a split window with update status when performing auto updates.", scope: "application", default: true }, "extensions.updateUIInTab": { type: "boolean", scope: "application", default: false, description: "Display the extension update UI in a new Vim tab." }, "inlayHint.enable": { type: "boolean", default: true, scope: "language-overridable", description: "Enable inlay hint support." }, "inlayHint.position": { type: "string", default: "inline", scope: "language-overridable", description: "Controls where to show inlay hints: inline in the text, or at the end of the line", enum: [ "inline", "eol" ] }, "inlayHint.enableParameter": { type: "boolean", scope: "language-overridable", default: true, description: "Enable inlay hints for parameters." }, "inlayHint.display": { type: "boolean", scope: "language-overridable", default: true, description: "Display inlay hints." }, "inlayHint.filetypes": { type: [ "array", "null" ], scope: "application", description: "Filetypes that enable inlay hints; all filetypes are enabled by default.", deprecationMessage: "Use inlayHint.enable with language scope instead, see :h coc-configuration-scope", default: null, items: { type: "string" } }, "inlayHint.refreshOnInsertMode": { type: "boolean", default: false, scope: "language-overridable", description: "Refresh inlay hints in insert mode." }, "inlayHint.maximumLength": { type: "integer", default: 0, minimum: 0, scope: "language-overridable", description: "Maximum overall length of inlay hints on a single line before they are truncated by the editor. Set to `0` to disable truncation." }, "links.enable": { type: "boolean", scope: "language-overridable", description: "Enable document links.", default: true }, "links.tooltip": { type: "boolean", scope: "application", description: "Show tooltip of link under cursor on CursorHold.", default: false }, "links.highlight": { type: "boolean", scope: "application", description: "Use the CocLink highlight group to highlight links.", default: false }, "list.floatPreview": { type: "boolean", default: false, scope: "application", description: "Enable preview with a float window/popup. Default: `false`." }, "list.alignColumns": { type: "boolean", default: false, scope: "application", description: "Whether to align lists in columns. Default: `false`." }, "list.extendedSearchMode": { type: "boolean", scope: "application", default: true, description: "Enable extended search mode which allows multiple search patterns delimited by spaces." }, "list.height": { type: "integer", scope: "application", default: 10, description: "Height of the split list window." }, "list.indicator": { type: "string", default: ">", scope: "application", description: "The character used as the first character in the prompt line." }, "list.insertMappings": { type: "object", scope: "application", default: {}, description: "Custom key-mappings in insert mode." }, "list.interactiveDebounceTime": { type: "integer", default: 100, scope: "application", description: "Debounce time for input changes in interactive mode." }, "list.limitLines": { type: [ "number", "null" ], scope: "application", default: null, description: "Limit lines for the list buffer." }, "list.maxPreviewHeight": { type: "integer", scope: "application", default: 12, description: "Maximum height of the preview window of a list." }, "list.menuAction": { type: "boolean", default: false, scope: "application", description: "Use a menu picker instead of confirm() for choosing an action." }, "list.nextKeymap": { type: "string", scope: "application", default: "", description: "Key used to select the next line in insert mode." }, "list.normalMappings": { type: "object", scope: "application", default: {}, description: "Custom key-mappings in normal mode." }, "list.previewHighlightGroup": { type: "string", scope: "application", default: "Search", description: "Highlight group used to highlight the range in the preview window." }, "list.previewSplitRight": { type: "boolean", scope: "application", default: false, description: "Use vsplit for the preview window." }, "list.previewToplineOffset": { type: "integer", scope: "application", default: 3, description: "Topline offset for list previews." }, "list.previewToplineStyle": { type: "string", scope: "application", default: "offset", description: "Topline style for list previews.", enum: [ "offset", "middle" ] }, "list.previousKeymap": { type: "string", scope: "application", default: "", description: "Key used to select the previous line in insert mode." }, "list.selectedSignText": { type: "string", scope: "application", default: "*", description: "Sign text for selected lines." }, "list.signOffset": { type: "integer", scope: "application", default: 900, description: "Sign offset of the list; should be different from other plugins." }, "list.smartCase": { type: "boolean", default: false, scope: "application", description: "Use smartcase matching for fuzzy and strict matching; `--ignore-case` is ignored, and this may not affect interactive lists." }, "list.source.diagnostics.includeCode": { type: "boolean", scope: "application", description: "Whether to show the diagnostic code in the list.", default: true }, "list.source.diagnostics.pathFormat": { type: "string", scope: "application", description: "Determines how the filepath is shown in the list.", enum: [ "full", "short", "filename", "hidden" ], default: "full" }, "list.source.outline.ctagsFiletypes": { type: "array", scope: "application", default: [], description: "Filetypes that should use ctags for the outline instead of the language server.", items: { type: "string" } }, "list.source.symbols.excludes": { type: "array", scope: "application", default: [], description: "Minimatch patterns for filepaths to exclude from the symbols list.", items: { type: "string" } }, "list.statusLineSegments": { type: [ "array", "null" ], scope: "application", default: [ '%#CocListMode#-- %{coc#list#status("mode")} --%*', '%{coc#list#status("loading")}', '%{coc#list#status("args")}', '(%L/%{coc#list#status("total")})', "%=", '%#CocListPath# %{coc#list#status("cwd")} %l/%L%*' ], items: { types: "string" }, description: "An array of statusline segments used to draw the status line for list windows." }, "notification.statusLineProgress": { type: "boolean", default: true, scope: "application", description: "Show progress notifications in the status line instead of a float window/popup." }, "notification.border": { type: "boolean", default: true, scope: "application", description: "Enable a rounded border for notification windows." }, "notification.disabledProgressSources": { type: "array", default: [], scope: "application", description: "Sources for which message progress should be disabled; use * to disable all message-only progress.", items: { type: "string" } }, "notification.focusable": { type: "boolean", default: true, scope: "application", description: "Enable focusing by user actions (wincmds, mouse events); Neovim only." }, "notification.highlightGroup": { type: "string", default: "Normal", scope: "application", description: "Highlight group of the notification dialog." }, "notification.marginRight": { type: "integer", default: 10, scope: "application", description: "Margin to the right of the editor window." }, "notification.maxHeight": { type: "integer", default: 10, scope: "application", description: "Maximum content height of the notification dialog." }, "notification.maxWidth": { type: "integer", default: 60, scope: "application", description: "Maximum content width of the notification dialog." }, "notification.minProgressWidth": { type: "integer", default: 30, scope: "application", description: "Minimal width of progress notifications." }, "notification.timeout": { type: "integer", default: 1e4, scope: "application", description: "Timeout for auto-closing notifications, in milliseconds." }, "notification.winblend": { type: "integer", default: 30, minimum: 0, maximum: 100, scope: "application", description: "Winblend option of the notification window; Neovim only." }, "npm.binPath": { type: "string", scope: "application", default: "npm", description: "Command or absolute path to npm or yarn used for global extension install/uninstall." }, "outline.autoHide": { type: "boolean", scope: "application", default: false, description: "Automatically close the outline window when an item is clicked." }, "outline.autoPreview": { type: "boolean", scope: "application", default: false, description: "Enable auto preview on cursor move." }, "outline.autoWidth": { type: "boolean", scope: "application", default: true, description: "Automatically increase window width to avoid wrapped lines." }, "outline.checkBufferSwitch": { type: "boolean", scope: "application", default: true, description: "Recreate the outline view after the user switches to another buffer in the current tab." }, "outline.codeActionKinds": { type: "array", scope: "application", default: [ "", "quickfix", "refactor" ], description: "Filter code actions in the actions menu by kind.", items: { type: "string", enum: [ "", "quickfix", "refactor", "source" ] } }, "outline.detailAsDescription": { type: "boolean", scope: "application", default: true, description: "Show detail as a description next to the label; when false, the detail is shown in a tooltip on cursor hold." }, "outline.expandLevel": { type: "integer", scope: "application", default: 1, description: "Expansion level of tree nodes." }, "outline.followCursor": { type: "boolean", scope: "application", default: true, description: "Reveal the item in the outline tree on cursor hold." }, "outline.keepWindow": { type: "boolean", scope: "application", default: false, description: "Jump back to the original window after the outline is shown." }, "outline.previewBorder": { type: "boolean", scope: "application", default: true, description: "Use a border for the preview window." }, "outline.previewBorderHighlightGroup": { type: "string", scope: "application", default: "Normal", description: "Border highlight group of the preview window." }, "outline.previewBorderRounded": { type: "boolean", scope: "application", default: false, description: "Use a rounded border for the preview window." }, "outline.previewHighlightGroup": { type: "string", scope: "application", default: "Normal", description: "Highlight group of the preview window." }, "outline.previewMaxWidth": { type: "integer", scope: "application", default: 80, description: "Maximum width of the preview window." }, "outline.previewWinblend": { type: "integer", scope: "application", default: 0, minimum: 0, maximum: 100, description: "Enable pseudo-transparency by setting the 'winblend' option of the window; Neovim only." }, "outline.showLineNumber": { type: "boolean", scope: "application", default: true, description: "Show the line number of symbols." }, "outline.sortBy": { type: "string", scope: "application", default: "category", description: "Sort method for the symbols outline.", enum: [ "position", "name", "category" ] }, "outline.splitCommand": { type: "string", scope: "application", default: "botright 30vs", description: "Window split command used by the outline." }, "outline.switchSortKey": { type: "string", scope: "application", default: "", description: "Key used to switch the sort method for the symbols provider of the current tree view." }, "outline.togglePreviewKey": { type: "string", scope: "application", default: "p", description: "Key used to toggle the auto preview feature." }, "pullDiagnostic.ignored": { type: "array", default: [], scope: "application", description: "Minimatch patterns to match full filepaths that should be ignored for pullDiagnostic.", items: { type: "string" } }, "pullDiagnostic.onChange": { type: "boolean", default: true, scope: "language-overridable", description: "Whether to pull for diagnostics on document change." }, "pullDiagnostic.onSave": { type: "boolean", default: false, scope: "language-overridable", description: "Whether to pull for diagnostics on document save." }, "pullDiagnostic.workspace": { type: "boolean", default: true, scope: "application", description: "Whether to pull for workspace diagnostics when possible." }, "refactor.afterContext": { type: "integer", scope: "application", default: 3, description: "Print `num` lines of trailing context after each match." }, "refactor.beforeContext": { type: "integer", scope: "application", default: 3, description: "Print `num` lines of leading context before each match." }, "refactor.openCommand": { type: "string", scope: "application", description: "Open command for the refactor window.", default: "vsplit" }, "refactor.saveToFile": { type: "boolean", scope: "application", description: "Save the changed buffer to file when writing the refactor buffer with the ':noa wa' command.", default: true }, "refactor.showMenu": { type: "string", scope: "application", default: "", description: "Refactor buffer local mapping to bring up a menu for the current chunk." }, "semanticTokens.combinedModifiers": { type: "array", scope: "language-overridable", description: "Semantic token modifiers whose highlights should be combined with syntax highlights.", default: [ "deprecated" ], items: { type: "string" } }, "semanticTokens.enable": { type: "boolean", default: false, scope: "language-overridable", description: "Enable semantic tokens support." }, "semanticTokens.filetypes": { type: [ "array", "null" ], scope: "resource", description: 'Filetypes that enable semantic tokens highlighting, or ["*"] for any filetype.', deprecationMessage: "Use semanticTokens.enable configuration with language scope instead, see :h coc-configuration-scope", default: null, items: { type: "string" } }, "semanticTokens.highlightPriority": { type: "integer", scope: "language-overridable", description: "Priority for semantic tokens highlights.", default: 2048, maximum: 4096 }, "semanticTokens.incrementTypes": { type: "array", scope: "language-overridable", description: "Semantic token types that should increase highlight when inserting at the start and end positions of a token.", default: [ "variable", "string", "parameter" ], items: { type: "string" } }, "signature.enable": { type: "boolean", scope: "language-overridable", description: "Show signature help when a trigger character is typed.", default: true }, "signature.floatConfig": { type: "object", scope: "application", description: "Configure the float window style of signature documents.", allOf: [ { $ref: "#/definitions/floatConfig" } ], additionalProperties: false, properties: { border: {}, rounded: {}, highlight: {}, borderhighlight: {}, title: {}, close: {}, maxHeight: {}, maxWidth: {}, winblend: {}, focusable: {}, shadow: {}, position: {}, top: {}, bottom: {}, left: {}, right: {} } }, "signature.hideOnTextChange": { type: "boolean", scope: "language-overridable", description: "Hide the signature float window when text changes in insert mode.", default: false }, "signature.preferShownAbove": { type: "boolean", scope: "application", description: "Show the signature help float window above the cursor when possible; requires restarting the service when changed.", default: true }, "signature.target": { type: "string", scope: "language-overridable", description: "Target used to show signature help; uses float when possible by default.", default: "float", enum: [ "float", "echo" ] }, "signature.triggerSignatureWait": { type: "integer", scope: "language-overridable", default: 500, minimum: 200, maximum: 1e3, description: "Timeout for triggering signature help, in milliseconds." }, "snippet.highlight": { type: "boolean", scope: "application", description: "Use the 'CocSnippetVisual' highlight group to highlight placeholders with the same index as the current one.", default: false }, "snippet.nextPlaceholderOnDelete": { type: "boolean", scope: "application", description: "Automatically jump to the next placeholder when the current one is completely deleted.", default: false }, "snippet.statusText": { type: "string", scope: "application", default: "SNIP", description: "Text shown in the statusline to indicate that a snippet session is activated." }, "suggest.acceptSuggestionOnCommitCharacter": { type: "boolean", default: false, scope: "language-overridable", description: "Controls whether suggestions should be accepted on commit characters. For example, in JavaScript, the semicolon (`;`) can be a commit character that accepts a suggestion and types that character." }, "suggest.asciiCharactersOnly": { type: "boolean", description: "Trigger suggest with ASCII characters only.", scope: "language-overridable", default: false }, "suggest.segmenterLocales": { type: [ "string", "null" ], default: "", scope: "language-overridable", description: "Locales used to divide sentences into segments for the around and buffer sources; works when NodeJS is built with Intl support. See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Segmenter/Segmenter#parameters. An empty string (the default) means auto-detect; use null to disable this feature." }, "suggest.asciiMatch": { type: "boolean", description: "Convert Unicode characters to ASCII for matching.", scope: "language-overridable", default: true }, "suggest.autoTrigger": { type: "string", scope: "language-overridable", default: "always", description: "How completion should be triggered.", enum: [ "always", "trigger", "none" ] }, "suggest.reTriggerAfterIndent": { type: "boolean", description: "Re-trigger completion after indent changes.", scope: "application", default: true }, "suggest.completionItemKindLabels": { type: "object", default: {}, scope: "application", description: "Set custom labels for completion item kinds.", properties: { text: { type: "string" }, method: { type: "string" }, function: { type: "string" }, constructor: { type: "string" }, field: { type: "string" }, variable: { type: "string" }, class: { type: "string" }, interface: { type: "string" }, module: { type: "string" }, property: { type: "string" }, unit: { type: "string" }, value: { type: "string" }, enum: { type: "string" }, keyword: { type: "string" }, snippet: { type: "string" }, color: { type: "string" }, file: { type: "string" }, reference: { type: "string" }, folder: { type: "string" }, enumMember: { type: "string" }, constant: { type: "string" }, struct: { type: "string" }, event: { type: "string" }, operator: { type: "string" }, typeParameter: { type: "string" }, default: { type: "string" } }, additionalProperties: false }, "suggest.defaultSortMethod": { type: "string", description: "Default sorting behavior for suggested completion items.", default: "length", scope: "language-overridable", enum: [ "length", "alphabetical", "none" ] }, "suggest.detailField": { type: "string", scope: "application", default: "preview", description: "Where to show the detail text of the completion item from the language server.", enum: [ "abbr", "preview" ] }, "suggest.detailMaxLength": { type: "integer", scope: "application", description: "Maximum length of the detail shown in the popup menu.", deprecationMessage: "Use suggest.labelMaxLength instead.", default: 100 }, "suggest.enableFloat": { type: "boolean", scope: "language-overridable", description: "Enable a float window with documentation next to the popup menu.", default: true }, "suggest.enablePreselect": { type: "boolean", scope: "application", description: "Enable the LSP preselect feature; works when `suggest.noselect` is false.", default: true }, "suggest.filterGraceful": { type: "boolean", description: "Controls whether filtering and sorting suggestions accounts for small typos.", scope: "language-overridable", default: true }, "suggest.filterOnBackspace": { type: "boolean", scope: "application", description: "Filter completion items on backspace.", default: true }, "suggest.floatConfig": { type: "object", scope: "application", description: "Configure the style of the popup menu and documentation window for completion.", allOf: [ { $ref: "#/definitions/floatConfig" } ], additionalProperties: false, properties: { border: {}, rounded: {}, highlight: {}, borderhighlight: {}, title: {}, maxWidth: {}, winblend: {}, shadow: {} } }, "suggest.formatItems": { type: "array", scope: "application", items: { enum: [ "abbr", "menu", "kind", "shortcut" ] }, contains: { enum: [ "abbr" ] }, uniqueItems: true, description: "Items shown in the popup menu, in order.", default: [ "abbr", "menu", "kind", "shortcut" ] }, "suggest.highPrioritySourceLimit": { type: "integer", minimum: 1, maximum: 100, scope: "language-overridable", description: "Maximum number of items for sources with priority greater than or equal to 90." }, "suggest.insertMode": { type: "string", scope: "language-overridable", default: "replace", description: "Controls whether words are overwritten when accepting completions. Use `insert` to only replace the typed prefix before the cursor and keep text after the cursor. Use `replace` to also replace matching text after the cursor.", enum: [ "insert", "replace" ] }, "suggest.ignoreRegexps": { type: "array", scope: "language-overridable", items: { type: "string" }, description: "Regexps to ignore when triggering suggest.", default: [] }, "suggest.invalidInsertCharacters": { type: "array", items: { type: "string" }, scope: "application", description: "Invalid characters used to strip the valid word when inserting the text of a completion item.", default: [ "\r", "\n" ] }, "suggest.labelMaxLength": { type: "integer", scope: "application", description: "Maximum length of the abbr shown as the label of a completion item.", default: 200 }, "suggest.languageSourcePriority": { type: "integer", default: 99, scope: "language-overridable", description: "Priority of language sources." }, "suggest.localityBonus": { type: "boolean", description: "Controls whether sorting favors words that appear close to the cursor.", scope: "language-overridable", default: true }, "suggest.lowPrioritySourceLimit": { type: "integer", minimum: 1, maximum: 100, scope: "language-overridable", description: "Maximum number of items for sources with priority lower than 90." }, "suggest.maxCompleteItemCount": { type: "integer", default: 256, scope: "language-overridable", description: "Maximum number of completion items shown in Vim." }, "suggest.minTriggerInputLength": { type: "integer", default: 1, scope: "language-overridable", description: "Minimum input length for triggering completion. Default: 1." }, "suggest.noselect": { type: "boolean", scope: "application", description: "Don't make Vim select the first item when the popup menu is shown.", default: false }, "suggest.preferCompleteThanJumpPlaceholder": { type: "boolean", description: "Confirm completion instead of jumping to the next placeholder when completion is activated.", scope: "resource", default: false }, "suggest.pumAlign": { type: [ "string", "null" ], scope: "application", enum: [ "abbr", "menu", "kind", "shortcut", null ], default: null, description: "Field of the popup menu to align with the cursor. When `null`, the leftmost character of the popup menu is aligned with the cursor. When set, the popup menu is shifted to the left so the configured field is aligned with the cursor." }, "suggest.pumFloatConfig": { type: [ "object", "null" ], scope: "application", description: "Configure the style of the popup menu; `suggest.floatConfig` is used when not specified.", allOf: [ { $ref: "#/definitions/floatConfig" } ], additionalProperties: false, default: null, properties: { title: {}, border: {}, rounded: {}, highlight: {}, borderhighlight: {}, winblend: {}, shadow: {} } }, "suggest.removeDuplicateItems": { type: "boolean", description: "Remove completion items with a duplicated word across all sources; snippet items are excluded.", scope: "language-overridable", default: false }, "suggest.removeCurrentWord": { type: "boolean", description: "Remove the word item (from the around and buffer sources) that is identical to the current input.", scope: "language-overridable", default: false }, "suggest.reversePumAboveCursor": { type: "boolean", scope: "application", description: "Reverse the order of completion items when the popup menu is shown above the cursor.", default: false }, "suggest.selection": { type: "string", scope: "application", default: "first", description: "Controls how suggestions are pre-selected when showing the suggest list.", enum: [ "first", "recentlyUsed", "recentlyUsedByPrefix" ] }, "suggest.snippetIndicator": { type: "string", default: "~", scope: "application", description: "The character used in the abbr of a completion item to indicate that the item can be expanded as a snippet." }, "suggest.snippetsSupport": { type: "boolean", scope: "language-overridable", description: "Set to false to disable snippet support in completion.", default: true }, "suggest.timeout": { type: "integer", default: 5e3, minimum: 500, maximum: 15e3, scope: "language-overridable", description: "Timeout for completion, in milliseconds." }, "suggest.triggerAfterInsertEnter": { type: "boolean", description: "Trigger completion after InsertEnter; auto trigger should be 'always' to enable this option.", scope: "language-overridable", default: false }, "suggest.triggerCompletionWait": { type: "integer", default: 0, minimum: 0, maximum: 10, scope: "language-overridable", description: "Wait time between text change and completion start; the completion is canceled when text changes during the wait." }, "suggest.virtualText": { type: "boolean", scope: "application", description: "Show virtual text for the inserted word of the selected item, if any.", default: false }, "inlineSuggest.autoTrigger": { type: "boolean", scope: "language-overridable", description: "Automatically trigger inline completion on cursor hold in insert mode.", default: true }, "inlineSuggest.triggerCompletionWait": { type: "integer", default: 10, minimum: 0, maximum: 1e3, scope: "language-overridable", description: "Wait time in milliseconds between text change and triggering inline completion." }, "nextEdit.autoTrigger": { type: "boolean", default: true, scope: "language-overridable", description: "Automatically request generic next edits after text changes." }, "nextEdit.triggerWait": { type: "integer", default: 150, minimum: 0, maximum: 2e3, scope: "language-overridable", description: "Wait time in milliseconds before requesting a next edit." }, "tree.closedIcon": { type: "string", scope: "application", default: "+", description: "Closed icon of the tree view." }, "tree.key.actions": { type: "string", scope: "application", default: "", description: "Trigger key to invoke actions." }, "tree.key.activeFilter": { type: "string", scope: "application", default: "f", description: "Trigger key to activate the filter." }, "tree.key.close": { type: "string", scope: "application", default: "", description: "Trigger key to dispose the tree and close the tree window." }, "tree.key.collapseAll": { type: "string", scope: "application", default: "M", description: "Trigger key to collapse all tree nodes." }, "tree.key.invoke": { type: "string", scope: "application", default: "", description: "Trigger key to invoke the default command of the current node or selection." }, "tree.key.selectNext": { type: "string", scope: "application", default: "", description: "Trigger key to select the next item during filtering." }, "tree.key.selectPrevious": { type: "string", scope: "application", default: "", description: "Trigger key to select the previous item during filtering." }, "tree.key.toggle": { type: "string", scope: "application", default: "t", description: "Trigger key to toggle the expand state of a tree node; does nothing for leaf nodes." }, "tree.key.toggleSelection": { type: "string", scope: "application", default: "", description: "Trigger key to select/unselect an item." }, "tree.openedIcon": { type: "string", scope: "application", default: "-", description: "Opened icon of the tree view." }, "typeHierarchy.enableTooltip": { type: "boolean", scope: "application", default: true, description: "Enable a tooltip showing the relative filepath of a type hierarchy item." }, "typeHierarchy.openCommand": { type: "string", scope: "application", default: "edit", description: "Open command for type hierarchy tree view." }, "typeHierarchy.splitCommand": { type: "string", scope: "application", default: "botright 30vs", description: "Window split command used by type hierarchy tree view." }, "workspace.rootPatterns": { type: "array", default: [ ".git", ".hg", ".projections.json" ], scope: "application", description: "Root patterns used to resolve the workspaceFolder from the parent folders of opened files, resolved from the top down.", items: { type: "string" } }, "workspace.bottomUpFiletypes": { type: "array", default: [], scope: "application", description: 'Filetypes for which the workspace folder should be resolved from the base directory of the file, or ["*"] for any filetype.', items: { type: "string" } }, "workspace.ignoredFiletypes": { type: "array", default: [], scope: "application", description: "Filetypes that should be ignored when resolving the workspace folder.", items: { type: "string" } }, "workspace.ignoredFolders": { type: "array", default: [ "$HOME", "$HOME/.cargo/**", "$HOME/.rustup/**", "$HOME/pkg/mod/**", "$HOMEBREW_PREFIX/**" ], scope: "application", description: "List of folders that should not be resolved as the workspace folder; environment variables and minimatch patterns can be used.", items: { type: "string" } }, "workspace.openOutputCommand": { type: "string", default: "vs", scope: "resource", description: "Command used to open the output channel." }, "workspace.openResourceCommand": { type: "string", default: "tab drop", scope: "application", description: "Command used to open files that aren't loaded; files are loaded as hidden buffers when empty." }, "workspace.workspaceFolderCheckCwd": { type: "boolean", default: true, scope: "application", description: "Whether the current working directory should be used first when checking pattern matches for the workspace folder." }, "workspace.workspaceFolderFallbackCwd": { type: "boolean", default: true, scope: "application", description: "Use the current working directory as the workspace folder when no root patterns are resolved." }, "workspace.removeEmptyWorkspaceFolder": { type: "boolean", default: false, scope: "application", description: "Automatically remove the workspace folder when no buffer is associated with it." }, languageserver: { type: "object", default: {}, scope: "resource", description: "Dictionary of language servers; the key is used as the id of the language server. A coc.nvim restart is required after changing this.", patternProperties: { "^[_a-zA-Z]+$": { oneOf: [ { $ref: "#/definitions/languageServerModule" }, { $ref: "#/definitions/languageServerCommand" }, { $ref: "#/definitions/languageServerSocket" } ] } } }, "mcp.autoStart": { type: "boolean", default: false, scope: "application", description: "Auto start the built-in MCP (Model Context Protocol) socket server when coc.nvim starts, so agents like Codex can connect through a stdio bridge. When disabled, the server can still be started manually with :CocCommand mcp.start." }, "mcp.host": { type: "string", default: "127.0.0.1", scope: "application", description: "Host the MCP socket server binds to. Only loopback is supported." }, "mcp.port": { type: "number", default: 0, scope: "application", description: "Port of the MCP socket server. 0 picks a random free port. The active port is written to ~/.coc/mcp/coc-.json." }, "mcp.transport": { type: "string", enum: [ "auto", "tcp", "unix" ], default: "auto", scope: "application", description: "Socket transport of the MCP server. 'auto' uses a per-process Unix socket in ~/.coc/mcp on macOS/Linux and loopback TCP on Windows (no exposed local port); 'tcp' forces loopback TCP; 'unix' forces a Unix socket." }, "mcp.authRequired": { type: "boolean", default: true, scope: "application", description: "Require the per-start random token (coc/auth) before the MCP session is accepted. Disable only for trusted local debugging." }, "mcp.authClientPublicKey": { type: "string", default: "", scope: "application", description: "Optional PEM public key (SPKI) of the MCP client (the coc-mcp bridge). When set, clients must prove possession of the matching private key by signing a server-issued nonce (coc/challenge) in addition to the token. Generate a keypair with `node bin/coc-mcp.js --generate-key`. Empty disables key auth (token-only)." }, "mcp.maxClients": { type: "number", default: 4, scope: "application", description: "Maximum concurrent MCP client connections." }, "mcp.frameMaxBytes": { type: "number", default: 16777216, scope: "application", description: "Maximum size of a single MCP JSON-RPC frame in bytes." }, "mcp.timeout": { type: "number", default: 5e3, scope: "application", description: "Timeout in milliseconds for MCP tool calls. 0 disables the timeout." }, "mcp.readTimeout": { type: "number", default: 15e3, scope: "application", description: "Timeout in milliseconds for read-only MCP tool calls (e.g. LSP queries like hover, references or workspace symbols). 0 disables the timeout. The agent cannot override these timeouts." }, "mcp.idleTimeout": { type: "number", default: 0, scope: "application", description: "Close MCP sessions idle for this many milliseconds. 0 disables the idle timeout." }, "mcp.maxRequestsPerSecond": { type: "number", default: 60, scope: "application", description: "Maximum number of JSON-RPC requests per second per MCP session. 0 disables the rate limit." }, "mcp.maxConcurrentRequests": { type: "number", default: 4, minimum: 0, scope: "application", description: "Maximum concurrent LSP requests MCP tools may send to a single language server. Requests beyond the limit wait in a per-service queue until a slot frees up. Different servers have different capacity, tune per setup. 0 disables the limit." }, "mcp.languageServiceMap": { type: "object", additionalProperties: { type: "string" }, default: {}, scope: "application", description: "Map languageId to a language server id. MCP LSP tools on a document whose languageId matches send the request directly to that server instead of aggregating all matching providers. Server ids are shown by :CocList services." }, "mcp.allowedPaths": { type: "array", items: { type: "string" }, default: [], scope: "application", description: "Glob patterns of paths the MCP server may access. Empty means files in workspace roots and opened documents only (temporary directory is readable for fallback reads). Denied paths win over allowed paths." }, "mcp.deniedPaths": { type: "array", items: { type: "string" }, default: [], scope: "application", description: "Glob patterns of paths the MCP server must never access; applied before allowedPaths." }, "mcp.allowedTools": { type: "array", items: { type: "string", enum: [ "editor/state", "document/read", "document/read_lines", "document/apply_edits", "document/write", "document/format", "document/open", "workspace/info", "workspace/configuration", "workspace/search", "workspace/files", "workspace/apply_edit", "workspace/create_file", "workspace/rename_file", "workspace/delete_file", "lsp/hover", "lsp/signature_help", "lsp/definition", "lsp/declaration", "lsp/type_definition", "lsp/implementation", "lsp/references", "lsp/document_symbols", "lsp/workspace_symbols", "lsp/diagnostics", "lsp/code_actions", "lsp/apply_code_action", "lsp/rename", "lsp/execute_command", "lsp/request", "lsp/capabilities", "lsp/batch" ] }, default: [], scope: "application", description: "Whitelist of MCP tool names exposed to agents." } } }; } }); // src/util/jsonRegistry.ts var Extensions2, JSONContributionRegistry, jsonContributionRegistry; var init_jsonRegistry = __esm({ "src/util/jsonRegistry.ts"() { "use strict"; init_protocol(); init_registry(); Extensions2 = { JSONContribution: "base.contributions.json" }; JSONContributionRegistry = class { schemasById; _onDidChangeSchema = new import_node4.Emitter(); onDidChangeSchema = this._onDidChangeSchema.event; constructor() { this.schemasById = {}; } registerSchema(uri, unresolvedSchemaContent) { this.schemasById[uri] = unresolvedSchemaContent; this._onDidChangeSchema.fire(uri); } notifySchemaChanged(uri) { this._onDidChangeSchema.fire(uri); } getSchemaContributions() { return { schemas: this.schemasById }; } }; jsonContributionRegistry = new JSONContributionRegistry(); Registry.add(Extensions2.JSONContribution, jsonContributionRegistry); } }); // node_modules/vscode-languageserver-textdocument/lib/esm/main.js function mergeSort(data, compare2) { if (data.length <= 1) { return data; } const p2 = data.length / 2 | 0; const left = data.slice(0, p2); const right = data.slice(p2); mergeSort(left, compare2); mergeSort(right, compare2); let leftIdx = 0; let rightIdx = 0; let i2 = 0; while (leftIdx < left.length && rightIdx < right.length) { const ret = compare2(left[leftIdx], right[rightIdx]); if (ret <= 0) { data[i2++] = left[leftIdx++]; } else { data[i2++] = right[rightIdx++]; } } while (leftIdx < left.length) { data[i2++] = left[leftIdx++]; } while (rightIdx < right.length) { data[i2++] = right[rightIdx++]; } return data; } function computeLineOffsets(text, isAtLineStart, textOffset = 0) { const result = isAtLineStart ? [textOffset] : []; for (let i2 = 0; i2 < text.length; i2++) { const ch = text.charCodeAt(i2); if (isEOL2(ch)) { if (ch === 13 && i2 + 1 < text.length && text.charCodeAt(i2 + 1) === 10) { i2++; } result.push(textOffset + i2 + 1); } } return result; } function isEOL2(char) { return char === 13 || char === 10; } function getWellformedRange(range2) { const start = range2.start; const end = range2.end; if (start.line > end.line || start.line === end.line && start.character > end.character) { return { start: end, end: start }; } return range2; } function getWellformedEdit(textEdit) { const range2 = getWellformedRange(textEdit.range); if (range2 !== textEdit.range) { return { newText: textEdit.newText, range: range2 }; } return textEdit; } var FullTextDocument2, TextDocument2; var init_main3 = __esm({ "node_modules/vscode-languageserver-textdocument/lib/esm/main.js"() { "use strict"; FullTextDocument2 = class _FullTextDocument { constructor(uri, languageId, version2, content) { this._uri = uri; this._languageId = languageId; this._version = version2; this._content = content; this._lineOffsets = void 0; } get uri() { return this._uri; } get languageId() { return this._languageId; } get version() { return this._version; } getText(range2) { if (range2) { const start = this.offsetAt(range2.start); const end = this.offsetAt(range2.end); return this._content.substring(start, end); } return this._content; } update(changes, version2) { for (const change of changes) { if (_FullTextDocument.isIncremental(change)) { const range2 = getWellformedRange(change.range); const startOffset = this.offsetAt(range2.start); const endOffset = this.offsetAt(range2.end); this._content = this._content.substring(0, startOffset) + change.text + this._content.substring(endOffset, this._content.length); const insertedEndOffset = startOffset + change.text.length; const crlfAtStart = this._content.charCodeAt(startOffset - 1) === 13 && this._content.charCodeAt(startOffset) === 10; const crlfAtEnd = this._content.charCodeAt(insertedEndOffset - 1) === 13 && this._content.charCodeAt(insertedEndOffset) === 10; if (crlfAtStart || crlfAtEnd) { this._lineOffsets = void 0; continue; } const startLine = Math.max(range2.start.line, 0); const endLine = Math.max(range2.end.line, 0); let lineOffsets = this._lineOffsets; const addedLineOffsets = computeLineOffsets(change.text, false, startOffset); if (endLine - startLine === addedLineOffsets.length) { for (let i2 = 0, len = addedLineOffsets.length; i2 < len; i2++) { lineOffsets[i2 + startLine + 1] = addedLineOffsets[i2]; } } else { if (addedLineOffsets.length < 1e4) { lineOffsets.splice(startLine + 1, endLine - startLine, ...addedLineOffsets); } else { this._lineOffsets = lineOffsets = lineOffsets.slice(0, startLine + 1).concat(addedLineOffsets, lineOffsets.slice(endLine + 1)); } } const diff = change.text.length - (endOffset - startOffset); if (diff !== 0) { for (let i2 = startLine + 1 + addedLineOffsets.length, len = lineOffsets.length; i2 < len; i2++) { lineOffsets[i2] = lineOffsets[i2] + diff; } } } else if (_FullTextDocument.isFull(change)) { this._content = change.text; this._lineOffsets = void 0; } else { throw new Error("Unknown change event received"); } } this._version = version2; } getLineOffsets() { if (this._lineOffsets === void 0) { this._lineOffsets = computeLineOffsets(this._content, true); } return this._lineOffsets; } positionAt(offset) { offset = Math.max(Math.min(offset, this._content.length), 0); const lineOffsets = this.getLineOffsets(); let low = 0, high = lineOffsets.length; if (high === 0) { return { line: 0, character: offset }; } while (low < high) { const mid = Math.floor((low + high) / 2); if (lineOffsets[mid] > offset) { high = mid; } else { low = mid + 1; } } const line = low - 1; offset = this.ensureBeforeEOL(offset, lineOffsets[line]); return { line, character: offset - lineOffsets[line] }; } offsetAt(position) { const lineOffsets = this.getLineOffsets(); if (position.line >= lineOffsets.length) { return this._content.length; } else if (position.line < 0) { return 0; } const lineOffset = lineOffsets[position.line]; if (position.character <= 0) { return lineOffset; } const nextLineOffset = position.line + 1 < lineOffsets.length ? lineOffsets[position.line + 1] : this._content.length; const offset = Math.min(lineOffset + position.character, nextLineOffset); return this.ensureBeforeEOL(offset, lineOffset); } getLineRange(line) { const lineOffsets = this.getLineOffsets(); if (line >= lineOffsets.length) { const lastLine = lineOffsets.length - 1; return { start: { line: lastLine, character: 0 }, end: { line: lastLine, character: this._content.length - lineOffsets[lastLine] } }; } else if (line < 0) { return { start: { line: 0, character: 0 }, end: { line: 0, character: 0 } }; } const startOffset = lineOffsets[line]; const nextLineOffset = line + 1 < lineOffsets.length ? lineOffsets[line + 1] : this._content.length; const endOffset = this.ensureBeforeEOL(nextLineOffset, startOffset); return { start: { line, character: 0 }, end: { line, character: endOffset - startOffset } }; } getEOLCharacters(line) { const lineOffsets = this.getLineOffsets(); if (line >= lineOffsets.length) { return ""; } else if (line < 0) { return ""; } const nextLineOffset = line + 1 < lineOffsets.length ? lineOffsets[line + 1] : this._content.length; const eolOffset = this.ensureBeforeEOL(nextLineOffset, lineOffsets[line]); return this._content.substring(eolOffset, nextLineOffset); } ensureBeforeEOL(offset, lineOffset) { while (offset > lineOffset && isEOL2(this._content.charCodeAt(offset - 1))) { offset--; } return offset; } get lineCount() { return this.getLineOffsets().length; } static isIncremental(event) { const candidate = event; return candidate !== void 0 && candidate !== null && typeof candidate.text === "string" && candidate.range !== void 0 && (candidate.rangeLength === void 0 || typeof candidate.rangeLength === "number"); } static isFull(event) { const candidate = event; return candidate !== void 0 && candidate !== null && typeof candidate.text === "string" && candidate.range === void 0 && candidate.rangeLength === void 0; } }; (function(TextDocument3) { function create2(uri, languageId, version2, content) { return new FullTextDocument2(uri, languageId, version2, content); } TextDocument3.create = create2; function update(document2, changes, version2) { if (document2 instanceof FullTextDocument2) { document2.update(changes, version2); return document2; } else { throw new Error("TextDocument.update: document must be created by TextDocument.create"); } } TextDocument3.update = update; function applyEdits3(document2, edits) { const text = document2.getText(); const sortedEdits = mergeSort(edits.map(getWellformedEdit), (a2, b2) => { const diff = a2.range.start.line - b2.range.start.line; if (diff === 0) { return a2.range.start.character - b2.range.start.character; } return diff; }); let lastModifiedOffset = 0; const spans = []; for (const e2 of sortedEdits) { const startOffset = document2.offsetAt(e2.range.start); if (startOffset < lastModifiedOffset) { throw new Error("Overlapping edit"); } else if (startOffset > lastModifiedOffset) { spans.push(text.substring(lastModifiedOffset, startOffset)); } if (e2.newText.length) { spans.push(e2.newText); } lastModifiedOffset = document2.offsetAt(e2.range.end); } spans.push(text.substr(lastModifiedOffset)); return spans.join(""); } TextDocument3.applyEdits = applyEdits3; })(TextDocument2 || (TextDocument2 = {})); } }); // src/util/expand.ts function expandVariables(input, ctx = {}) { return input.replace(/\$\{(.*?)\}/g, (match2, name2) => { if (name2.startsWith("env:")) { const key = name2.slice(4); if (!key) return match2; return process.env[key] ?? match2; } switch (name2) { case "tmpdir": return os.tmpdir(); case "userHome": return os.homedir(); case "cwd": return ctx.cwd ?? process.cwd(); case "workspace": case "workspaceRoot": case "workspaceFolder": return ctx.root ?? match2; case "workspaceFolderBasename": return ctx.root ? path.basename(ctx.root) : match2; case "file": return ctx.file ?? match2; case "fileDirname": return ctx.file ? path.dirname(ctx.file) : match2; case "fileExtname": return ctx.file ? path.extname(ctx.file) : match2; case "fileBasename": return ctx.file ? path.basename(ctx.file) : match2; case "fileBasenameNoExtension": { if (!ctx.file) return match2; const base = path.basename(ctx.file); return base.slice(0, base.length - path.extname(base).length); } default: return match2; } }); } var init_expand = __esm({ "src/util/expand.ts"() { "use strict"; init_node(); } }); // src/configuration/util.ts function expand(input) { return expandVariables(input); } function expandObject(obj) { if (obj == null) return obj; if (typeof obj === "string") return expand(obj); if (Array.isArray(obj)) return obj.map((obj2) => expandObject(obj2)); if (objectLiteral(obj)) { for (let key of Object.keys(obj)) { obj[key] = expandObject(obj[key]); } return obj; } return obj; } function convertTarget(updateTarget) { let target; switch (updateTarget) { case 1 /* Global */: target = 1 /* User */; break; case 2 /* Workspace */: target = 2 /* Workspace */; break; default: target = 3 /* WorkspaceFolder */; } return target; } function scopeToOverrides(scope) { let overrides; if (typeof scope === "string") { overrides = { resource: scope }; } else if (u.isUri(scope)) { overrides = { resource: scope.toString() }; } else if (scope != null) { let uri = scope["uri"]; let languageId = scope["languageId"]; overrides = { resource: uri, overrideIdentifier: languageId }; } return overrides; } function overrideIdentifiersFromKey(key) { const identifiers = []; if (OVERRIDE_PROPERTY_REGEX.test(key)) { let matches = OVERRIDE_IDENTIFIER_REGEX.exec(key); while (matches?.length) { const identifier = matches[1].trim(); if (identifier) { identifiers.push(identifier); } matches = OVERRIDE_IDENTIFIER_REGEX.exec(key); } } return distinct(identifiers); } function mergeConfigProperties(obj) { let res = {}; for (let key of Object.keys(obj)) { if (key.indexOf(".") == -1) { res[key] = obj[key]; } else { let parts = key.split("."); let pre = res; let len = parts.length; for (let i2 = 0; i2 < len; i2++) { let k = parts[i2]; if (i2 == len - 1) { pre[k] = obj[key]; } else { pre[k] = pre[k] || {}; pre = pre[k]; } } } } return res; } function convertErrors(content, errors) { let items = []; let document2 = TextDocument2.create(documentUri, "json", 0, content); for (let err of errors) { const range2 = Range.create(document2.positionAt(err.offset), document2.positionAt(err.offset + err.length)); items.push(Diagnostic.create(range2, printParseErrorCode(err.error), DiagnosticSeverity.Error)); } return items; } function toValuesTree(properties, conflictReporter, doExpand = false) { const root = /* @__PURE__ */ Object.create(null); for (const key in properties) { addToValueTree(root, key, properties[key], conflictReporter, doExpand); } return root; } function addToValueTree(settingsTreeRoot, key, value, conflictReporter, doExpand = false) { const segments = key.split("."); const last = segments.pop(); let curr = settingsTreeRoot; for (let i2 = 0; i2 < segments.length; i2++) { const s2 = segments[i2]; let obj = curr[s2]; switch (typeof obj) { case "undefined": obj = curr[s2] = /* @__PURE__ */ Object.create(null); break; case "object": break; default: if (conflictReporter) conflictReporter(`Ignoring ${key} as ${segments.slice(0, i2 + 1).join(".")} is ${JSON.stringify(obj)}`); return; } curr = obj; } if (typeof curr === "object" && curr !== null) { if (doExpand) { curr[last] = expandObject(value); } else { curr[last] = value; } } else { if (conflictReporter) conflictReporter(`Ignoring ${key} as ${segments.join(".")} is ${JSON.stringify(curr)}`); } } function removeFromValueTree(valueTree, key) { const segments = key.split("."); doRemoveFromValueTree(valueTree, segments); } function doRemoveFromValueTree(valueTree, segments) { const first = segments.shift(); if (segments.length === 0) { delete valueTree[first]; return; } if (Object.keys(valueTree).includes(first)) { const value = valueTree[first]; if (typeof value === "object" && !Array.isArray(value)) { doRemoveFromValueTree(value, segments); if (Object.keys(value).length === 0) { delete valueTree[first]; } } } } function getConfigurationValue(config, settingPath, defaultValue2) { function accessSetting(config2, path5) { let current = config2; for (let i2 = 0; i2 < path5.length; i2++) { if (typeof current !== "object" || current === null) { return void 0; } current = current[path5[i2]]; } return current; } const path4 = settingPath.split("."); const result = accessSetting(config, path4); return typeof result === "undefined" ? defaultValue2 : result; } function toJSONObject(obj) { if (obj) { if (Array.isArray(obj)) { return obj.map(toJSONObject); } else if (typeof obj === "object") { const res = /* @__PURE__ */ Object.create(null); for (const key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { res[key] = toJSONObject(obj[key]); } } return res; } } return obj; } function compareConfigurationContents(to, from) { const added = to ? from ? to.keys.filter((key) => from.keys.indexOf(key) === -1) : [...to.keys] : []; const removed = from ? to ? from.keys.filter((key) => to.keys.indexOf(key) === -1) : [...from.keys] : []; const updated = []; if (to && from) { for (const key of from.keys) { if (to.keys.indexOf(key) !== -1) { const value1 = getConfigurationValue(from.contents, key); const value2 = getConfigurationValue(to.contents, key); if (!equals(value1, value2)) { updated.push(key); } } } } return { added, removed, updated }; } function getDefaultValue(type) { const t2 = Array.isArray(type) ? type[0] : type; switch (t2) { case "boolean": return false; case "integer": case "number": return 0; case "string": return ""; case "array": return []; case "object": return {}; default: return null; } } function lookUp(tree, key) { if (key) { if (tree && hasOwnProperty2(tree, key)) return tree[key]; const parts = key.split("."); let node = tree; for (let i2 = 0; node && i2 < parts.length; i2++) { node = node[parts[i2]]; } return node; } return tree; } var documentUri, OVERRIDE_IDENTIFIER_PATTERN, OVERRIDE_IDENTIFIER_REGEX, OVERRIDE_PROPERTY_PATTERN, OVERRIDE_PROPERTY_REGEX; var init_util2 = __esm({ "src/configuration/util.ts"() { "use strict"; init_main2(); init_main3(); init_main(); init_esm(); init_array(); init_expand(); init_is(); init_object(); init_types(); documentUri = "file:///1"; OVERRIDE_IDENTIFIER_PATTERN = `\\[([^\\]]+)\\]`; OVERRIDE_IDENTIFIER_REGEX = new RegExp(OVERRIDE_IDENTIFIER_PATTERN, "g"); OVERRIDE_PROPERTY_PATTERN = `^(${OVERRIDE_IDENTIFIER_PATTERN})+$`; OVERRIDE_PROPERTY_REGEX = new RegExp(OVERRIDE_PROPERTY_PATTERN); } }); // src/configuration/model.ts var ConfigurationModel; var init_model = __esm({ "src/configuration/model.ts"() { "use strict"; init_array(); init_is(); init_object(); init_util2(); ConfigurationModel = class _ConfigurationModel { constructor(_contents = {}, _keys = [], _overrides = []) { this._contents = _contents; this._keys = _keys; this._overrides = _overrides; } _contents; _keys; _overrides; frozen = false; overrideConfigurations = /* @__PURE__ */ new Map(); get contents() { return this.checkAndFreeze(this._contents); } get overrides() { return this.checkAndFreeze(this._overrides); } get keys() { return this.checkAndFreeze(this._keys); } get isFrozen() { return this.frozen; } checkAndFreeze(data) { if (this.frozen && !Object.isFrozen(data)) { return deepFreeze(data); } return data; } isEmpty() { return this._keys.length === 0 && Object.keys(this._contents).length === 0 && this._overrides.length === 0; } clone() { return new _ConfigurationModel(deepClone(this._contents), [...this.keys], deepClone(this.overrides)); } toJSON() { return { contents: this.contents, overrides: this.overrides, keys: this.keys }; } getValue(section2) { let res = section2 ? getConfigurationValue(this.contents, section2) : this.contents; return res; } getOverrideValue(section2, overrideIdentifier) { const overrideContents = this.getContentsForOverrideIdentifier(overrideIdentifier); return overrideContents ? section2 ? getConfigurationValue(overrideContents, section2) : overrideContents : void 0; } getKeysForOverrideIdentifier(identifier) { const keys = []; for (const override of this.overrides) { if (override.identifiers.includes(identifier)) { keys.push(...override.keys); } } return distinct(keys); } getAllOverrideIdentifiers() { const result = []; for (const override of this.overrides) { result.push(...override.identifiers); } return distinct(result); } override(identifier) { let overrideConfigurationModel = this.overrideConfigurations.get(identifier); if (!overrideConfigurationModel) { overrideConfigurationModel = this.createOverrideConfigurationModel(identifier); this.overrideConfigurations.set(identifier, overrideConfigurationModel); } return overrideConfigurationModel; } merge(...others) { const contents = deepClone(this._contents); const overrides = deepClone(this._overrides); const keys = [...this._keys]; for (const other of others) { if (other.isEmpty()) { continue; } this.mergeContents(contents, other.contents); for (const otherOverride of other.overrides) { const [override] = overrides.filter((o2) => equals(o2.identifiers, otherOverride.identifiers)); if (override) { this.mergeContents(override.contents, otherOverride.contents); override.keys.push(...otherOverride.keys); override.keys = distinct(override.keys); } else { overrides.push(deepClone(otherOverride)); } } for (const key of other.keys) { if (keys.indexOf(key) === -1) { keys.push(key); } } } return new _ConfigurationModel(contents, keys, overrides); } freeze() { this.frozen = true; return this; } mergeContents(source, target) { for (const key of Object.keys(target)) { if (key in source) { if (objectLiteral(source[key]) && objectLiteral(target[key])) { this.mergeContents(source[key], target[key]); continue; } } source[key] = deepClone(target[key]); } } // Update methods setValue(key, value) { this.addKey(key); addToValueTree(this.contents, key, value, (e2) => { console.error(e2); }); } removeValue(key) { if (this.removeKey(key)) { removeFromValueTree(this.contents, key); } } addKey(key) { let index = this.keys.length; for (let i2 = 0; i2 < index; i2++) { if (key.indexOf(this.keys[i2]) === 0) { index = i2; } } this.keys.splice(index, 1, key); } removeKey(key) { const index = this.keys.indexOf(key); if (index !== -1) { this.keys.splice(index, 1); return true; } return false; } createOverrideConfigurationModel(identifier) { const overrideContents = this.getContentsForOverrideIdentifier(identifier); if (!overrideContents || typeof overrideContents !== "object" || !Object.keys(overrideContents).length) { return this; } const contents = {}; for (const key of distinct([...Object.keys(this.contents), ...Object.keys(overrideContents)])) { let contentsForKey = this.contents[key]; const overrideContentsForKey = overrideContents[key]; if (overrideContentsForKey) { if (typeof contentsForKey === "object" && typeof overrideContentsForKey === "object") { contentsForKey = deepClone(contentsForKey); this.mergeContents(contentsForKey, overrideContentsForKey); } else { contentsForKey = overrideContentsForKey; } } contents[key] = contentsForKey; } return new _ConfigurationModel(contents, this._keys, this.overrides); } getContentsForOverrideIdentifier(identifier) { let contentsForIdentifierOnly = null; let contents = null; const mergeContents = (contentsToMerge) => { if (contentsToMerge) { if (contents) { this.mergeContents(contents, contentsToMerge); } else { contents = deepClone(contentsToMerge); } } }; for (const override of this.overrides) { if (equals(override.identifiers, [identifier])) { contentsForIdentifierOnly = override.contents; } else if (override.identifiers.includes(identifier)) { mergeContents(override.contents); } } mergeContents(contentsForIdentifierOnly); return contents; } }; } }); // src/configuration/configuration.ts function compare(from, to) { const { added, removed, updated } = compareConfigurationContents(to, from); const overrides = []; const fromOverrideIdentifiers = from?.getAllOverrideIdentifiers() ?? []; const toOverrideIdentifiers = to?.getAllOverrideIdentifiers() ?? []; if (to) { const addedOverrideIdentifiers = toOverrideIdentifiers.filter((key) => !fromOverrideIdentifiers.includes(key)); for (const identifier of addedOverrideIdentifiers) { overrides.push([identifier, to.getKeysForOverrideIdentifier(identifier)]); } } if (from) { const removedOverrideIdentifiers = fromOverrideIdentifiers.filter((key) => !toOverrideIdentifiers.includes(key)); for (const identifier of removedOverrideIdentifiers) { overrides.push([identifier, from.getKeysForOverrideIdentifier(identifier)]); } } if (to && from) { for (const identifier of fromOverrideIdentifiers) { if (toOverrideIdentifiers.includes(identifier)) { const result = compareConfigurationContents({ contents: from.getOverrideValue(void 0, identifier) || {}, keys: from.getKeysForOverrideIdentifier(identifier) }, { contents: to.getOverrideValue(void 0, identifier) || {}, keys: to.getKeysForOverrideIdentifier(identifier) }); overrides.push([identifier, [...result.added, ...result.removed, ...result.updated]]); } } } return { added, removed, updated, overrides }; } var FolderConfigutions, Configuration; var init_configuration = __esm({ "src/configuration/configuration.ts"() { "use strict"; init_esm(); init_array(); init_fs(); init_object(); init_model(); init_types(); init_util2(); FolderConfigutions = class { _folderConfigurations = /* @__PURE__ */ new Map(); get keys() { return this._folderConfigurations.keys(); } has(folder) { for (let key of this.keys) { if (sameFile(folder, key)) return true; } return false; } set(folder, model) { let key = normalizeFilePath(folder); this._folderConfigurations.set(key, model); } get(folder) { let key = normalizeFilePath(folder); return this._folderConfigurations.get(key); } delete(folder) { let key = normalizeFilePath(folder); this._folderConfigurations.delete(key); } forEach(fn) { this._folderConfigurations.forEach(fn); } getConfigurationByResource(uri) { let u2 = u.parse(uri); if (u2.scheme !== "file") return void 0; let folders = Array.from(this._folderConfigurations.keys()); folders.sort((a2, b2) => b2.length - a2.length); let fullpath = u2.fsPath; for (let folder of folders) { if (isParentFolder(folder, fullpath, true)) { return { folder, model: this._folderConfigurations.get(folder) }; } } return void 0; } }; Configuration = class _Configuration { constructor(_defaultConfiguration, _userConfiguration, _workspaceConfiguration = new ConfigurationModel(), _folderConfigurations = new FolderConfigutions(), _memoryConfiguration = new ConfigurationModel()) { this._defaultConfiguration = _defaultConfiguration; this._userConfiguration = _userConfiguration; this._workspaceConfiguration = _workspaceConfiguration; this._folderConfigurations = _folderConfigurations; this._memoryConfiguration = _memoryConfiguration; } _defaultConfiguration; _userConfiguration; _workspaceConfiguration; _folderConfigurations; _memoryConfiguration; _workspaceConsolidatedConfiguration = null; _resolvedFolderConfigurations = /* @__PURE__ */ new Map(); _memoryConfigurationByResource = /* @__PURE__ */ new Map(); updateValue(key, value, overrides = {}) { let memoryConfiguration; if (overrides.resource) { memoryConfiguration = this._memoryConfigurationByResource.get(overrides.resource); if (!memoryConfiguration) { memoryConfiguration = new ConfigurationModel(); this._memoryConfigurationByResource.set(overrides.resource, memoryConfiguration); } } else { memoryConfiguration = this._memoryConfiguration; } if (value === void 0) { memoryConfiguration.removeValue(key); } else { memoryConfiguration.setValue(key, value); } if (!overrides.resource) { this._workspaceConsolidatedConfiguration = null; } } hasFolder(folder) { return this._folderConfigurations.has(folder); } addFolderConfiguration(folder, model, resource) { this._folderConfigurations.set(folder, model); if (resource) { this._resolvedFolderConfigurations.set(resource, folder); } } deleteFolderConfiguration(fsPath2) { this._folderConfigurations.delete(fsPath2); } getWorkspaceConsolidateConfiguration() { if (!this._workspaceConsolidatedConfiguration) { this._workspaceConsolidatedConfiguration = this._defaultConfiguration.merge(this._userConfiguration, this._workspaceConfiguration, this._memoryConfiguration); this._workspaceConsolidatedConfiguration = this._workspaceConsolidatedConfiguration.freeze(); } return this._workspaceConsolidatedConfiguration; } /** * Get folder configuration fsPath & model * @param uri folder or file uri */ getFolderConfigurationModelForResource(uri) { let folder = this._resolvedFolderConfigurations.get(uri); if (folder) return this._folderConfigurations.get(folder); let conf = this._folderConfigurations.getConfigurationByResource(uri); if (!conf) return void 0; this._resolvedFolderConfigurations.set(uri, conf.folder); return conf.model; } resolveFolder(uri) { let folder = this._resolvedFolderConfigurations.get(uri); if (folder) return folder; let folders = Array.from(this._folderConfigurations.keys); folders.sort((a2, b2) => b2.length - a2.length); for (let folder2 of folders) { if (isParentFolder(folder2, u.parse(uri).fsPath, true)) { this._resolvedFolderConfigurations.set(uri, folder2); return folder2; } } return void 0; } getConsolidatedConfigurationModel(overrides) { let configuration2 = this.getWorkspaceConsolidateConfiguration(); if (overrides.resource) { let folderConfiguration = this.getFolderConfigurationModelForResource(overrides.resource); if (folderConfiguration) { configuration2 = configuration2.merge(folderConfiguration); } const memoryConfigurationForResource = this._memoryConfigurationByResource.get(overrides.resource); if (memoryConfigurationForResource) { configuration2 = configuration2.merge(memoryConfigurationForResource); } } if (overrides.overrideIdentifier) { configuration2 = configuration2.override(overrides.overrideIdentifier); } return configuration2; } getValue(section2, overrides) { let configuration2 = this.getConsolidatedConfigurationModel(overrides); return configuration2.getValue(section2); } inspect(key, overrides) { const consolidateConfigurationModel = this.getConsolidatedConfigurationModel(overrides); const folderConfigurationModel = this.getFolderConfigurationModelForResource(overrides.resource); const memoryConfigurationModel = overrides.resource ? this._memoryConfigurationByResource.get(overrides.resource) || this._memoryConfiguration : this._memoryConfiguration; const defaultValue2 = overrides.overrideIdentifier ? this._defaultConfiguration.freeze().override(overrides.overrideIdentifier).getValue(key) : this._defaultConfiguration.freeze().getValue(key); const userValue = overrides.overrideIdentifier ? this._userConfiguration.freeze().override(overrides.overrideIdentifier).getValue(key) : this._userConfiguration.freeze().getValue(key); const workspaceValue = overrides.overrideIdentifier ? this._workspaceConfiguration.freeze().override(overrides.overrideIdentifier).getValue(key) : this._workspaceConfiguration.freeze().getValue(key); const workspaceFolderValue = folderConfigurationModel ? overrides.overrideIdentifier ? folderConfigurationModel.freeze().override(overrides.overrideIdentifier).getValue(key) : folderConfigurationModel.freeze().getValue(key) : void 0; const memoryValue = overrides.overrideIdentifier ? memoryConfigurationModel.override(overrides.overrideIdentifier).getValue(key) : memoryConfigurationModel.getValue(key); const value = consolidateConfigurationModel.getValue(key); const overrideIdentifiers = distinct(consolidateConfigurationModel.overrides.map((override) => override.identifiers).flat()).filter((overrideIdentifier) => consolidateConfigurationModel.getOverrideValue(key, overrideIdentifier) !== void 0); return { defaultValue: defaultValue2, userValue, workspaceValue, workspaceFolderValue, memoryValue, value, default: defaultValue2 !== void 0 ? { value: this._defaultConfiguration.freeze().getValue(key), override: overrides.overrideIdentifier ? this._defaultConfiguration.freeze().getOverrideValue(key, overrides.overrideIdentifier) : void 0 } : void 0, user: userValue !== void 0 ? { value: this._userConfiguration.freeze().getValue(key), override: overrides.overrideIdentifier ? this._userConfiguration.freeze().getOverrideValue(key, overrides.overrideIdentifier) : void 0 } : void 0, workspace: workspaceValue !== void 0 ? { value: this._workspaceConfiguration.freeze().getValue(key), override: overrides.overrideIdentifier ? this._workspaceConfiguration.freeze().getOverrideValue(key, overrides.overrideIdentifier) : void 0 } : void 0, workspaceFolder: workspaceFolderValue !== void 0 ? { value: folderConfigurationModel?.freeze().getValue(key), override: overrides.overrideIdentifier ? folderConfigurationModel?.freeze().getOverrideValue(key, overrides.overrideIdentifier) : void 0 } : void 0, memory: memoryValue !== void 0 ? { value: memoryConfigurationModel.getValue(key), override: overrides.overrideIdentifier ? memoryConfigurationModel.getOverrideValue(key, overrides.overrideIdentifier) : void 0 } : void 0, overrideIdentifiers: overrideIdentifiers.length ? overrideIdentifiers : void 0 }; } get defaults() { return this._defaultConfiguration; } get user() { return this._userConfiguration; } get workspace() { return this._workspaceConfiguration; } get memory() { return this._memoryConfiguration; } getConfigurationModel(target, folder) { switch (target) { case 0 /* Default */: return this._defaultConfiguration; case 1 /* User */: return this._userConfiguration; case 2 /* Workspace */: return this._workspaceConfiguration; case 3 /* WorkspaceFolder */: return this._folderConfigurations.get(folder) ?? new ConfigurationModel(); default: return this._memoryConfiguration; } } updateFolderConfiguration(folder, model) { this._folderConfigurations.set(folder, model); } updateUserConfiguration(model) { this._userConfiguration = model; this._workspaceConsolidatedConfiguration = null; } updateWorkspaceConfiguration(model) { this._workspaceConfiguration = model; this._workspaceConsolidatedConfiguration = null; } updateDefaultConfiguration(model) { this._defaultConfiguration = model; this._workspaceConsolidatedConfiguration = null; } updateMemoryConfiguration(model) { this._memoryConfiguration = model; this._workspaceConsolidatedConfiguration = null; } compareAndUpdateMemoryConfiguration(memory) { const { added, updated, removed, overrides } = compare(this._memoryConfiguration, memory); const keys = [...added, ...updated, ...removed]; if (keys.length) { this.updateMemoryConfiguration(memory); } return { keys, overrides }; } compareAndUpdateUserConfiguration(user) { const { added, updated, removed, overrides } = compare(this._userConfiguration, user); const keys = [...added, ...updated, ...removed]; if (keys.length) { this.updateUserConfiguration(user); } return { keys, overrides }; } compareAndUpdateDefaultConfiguration(defaults2, keys) { const overrides = []; if (!keys) { const { added, updated, removed } = compare(this._defaultConfiguration, defaults2); keys = [...added, ...updated, ...removed]; } for (const key of keys) { for (const overrideIdentifier of overrideIdentifiersFromKey(key)) { const fromKeys = this._defaultConfiguration.getKeysForOverrideIdentifier(overrideIdentifier); const toKeys = defaults2.getKeysForOverrideIdentifier(overrideIdentifier); const keys2 = [ ...toKeys.filter((key2) => fromKeys.indexOf(key2) === -1), ...fromKeys.filter((key2) => toKeys.indexOf(key2) === -1), ...fromKeys.filter((key2) => !equals(this._defaultConfiguration.override(overrideIdentifier).getValue(key2), defaults2.override(overrideIdentifier).getValue(key2))) ]; overrides.push([overrideIdentifier, keys2]); } } this.updateDefaultConfiguration(defaults2); return { keys, overrides }; } compareAndUpdateWorkspaceConfiguration(workspaceConfiguration) { const { added, updated, removed, overrides } = compare(this._workspaceConfiguration, workspaceConfiguration); const keys = [...added, ...updated, ...removed]; if (keys.length) { this.updateWorkspaceConfiguration(workspaceConfiguration); } return { keys, overrides }; } compareAndUpdateFolderConfiguration(folder, folderConfiguration) { const currentFolderConfiguration = this._folderConfigurations.get(folder); const { added, updated, removed, overrides } = compare(currentFolderConfiguration, folderConfiguration); const keys = [...added, ...updated, ...removed]; if (keys.length || !currentFolderConfiguration) { this.updateFolderConfiguration(folder, folderConfiguration); } return { keys, overrides }; } compareAndDeleteFolderConfiguration(folder) { const folderConfig = this._folderConfigurations.get(folder); if (!folderConfig) return; this.deleteFolderConfiguration(folder); const { added, updated, removed, overrides } = compare(folderConfig, void 0); return { keys: [...added, ...updated, ...removed], overrides }; } allKeys() { const keys = /* @__PURE__ */ new Set(); this._defaultConfiguration.freeze().keys.forEach((key) => keys.add(key)); this._userConfiguration.freeze().keys.forEach((key) => keys.add(key)); this._workspaceConfiguration.freeze().keys.forEach((key) => keys.add(key)); this._folderConfigurations.forEach((folderConfiguration) => folderConfiguration.freeze().keys.forEach((key) => keys.add(key))); return [...keys.values()]; } toData() { let { _defaultConfiguration, _memoryConfiguration, _userConfiguration, _workspaceConfiguration, _folderConfigurations } = this; let folders = []; _folderConfigurations.forEach((model, fsPath2) => { folders.push([fsPath2, model.toJSON()]); }); return { defaults: _defaultConfiguration.toJSON(), user: _userConfiguration.toJSON(), workspace: _workspaceConfiguration.toJSON(), folders, memory: _memoryConfiguration.toJSON() }; } static parse(data) { const defaultConfiguration = this.parseConfigurationModel(data.defaults); const userConfiguration = this.parseConfigurationModel(data.user); const workspaceConfiguration = this.parseConfigurationModel(data.workspace); const folderConfigurations = new FolderConfigutions(); const memoryConfiguration = this.parseConfigurationModel(data.memory); data.folders.forEach((value) => { folderConfigurations.set(value[0], this.parseConfigurationModel(value[1])); }); return new _Configuration(defaultConfiguration, userConfiguration, workspaceConfiguration, folderConfigurations, memoryConfiguration); } static parseConfigurationModel(model) { return new ConfigurationModel(model.contents, model.keys, model.overrides).freeze(); } }; } }); // src/configuration/event.ts var ConfigurationChangeEvent; var init_event = __esm({ "src/configuration/event.ts"() { "use strict"; init_object(); init_configuration(); init_model(); init_util2(); ConfigurationChangeEvent = class { // public sourceConfig: any constructor(change, previous, currentConfiguration) { this.change = change; this.previous = previous; this.currentConfiguration = currentConfiguration; const keysSet = /* @__PURE__ */ new Set(); change.keys.forEach((key) => keysSet.add(key)); change.overrides.forEach(([, keys]) => keys.forEach((key) => keysSet.add(key))); this.affectedKeys = [...keysSet.values()]; const configurationModel = new ConfigurationModel(); this.affectedKeys.forEach((key) => configurationModel.setValue(key, {})); this.affectedKeysTree = configurationModel.contents; } change; previous; currentConfiguration; affectedKeysTree; affectedKeys; source; _previousConfiguration = void 0; get previousConfiguration() { if (!this._previousConfiguration && this.previous) { this._previousConfiguration = Configuration.parse(this.previous); } return this._previousConfiguration; } affectsConfiguration(section2, scope) { let overrides = scope ? scopeToOverrides(scope) : void 0; if (this.doesAffectedKeysTreeContains(this.affectedKeysTree, section2)) { if (overrides) { const value1 = this.previousConfiguration ? this.previousConfiguration.getValue(section2, overrides) : void 0; const value2 = this.currentConfiguration.getValue(section2, overrides); return !equals(value1, value2); } return true; } return false; } doesAffectedKeysTreeContains(affectedKeysTree, section2) { let requestedTree = toValuesTree({ [section2]: true }, () => { }); let key; while (typeof requestedTree === "object" && (key = Object.keys(requestedTree)[0])) { affectedKeysTree = affectedKeysTree[key]; if (!affectedKeysTree) { return false; } requestedTree = requestedTree[key]; } return true; } }; } }); // src/configuration/parser.ts var logger7, ConfigurationModelParser; var init_parser2 = __esm({ "src/configuration/parser.ts"() { "use strict"; init_main2(); init_main(); init_logger(); init_model(); init_util2(); logger7 = createLogger("parser"); ConfigurationModelParser = class { constructor(_name) { this._name = _name; } _name; _raw = null; _configurationModel = null; _parseErrors = []; get configurationModel() { return this._configurationModel || new ConfigurationModel(); } get errors() { return this._parseErrors; } parse(content, options3) { if (content != null) { const raw = this.doParseContent(content); this.parseRaw(raw, options3); } } parseRaw(raw, options3) { this._raw = raw; const { contents, keys, overrides } = this.doParseRaw(raw, options3); this._configurationModel = new ConfigurationModel(contents, keys, overrides); } doParseContent(content) { let raw = {}; let currentProperty = null; let currentParent = []; const previousParents = []; const _errors = []; function onValue(value) { if (Array.isArray(currentParent)) { currentParent.push(value); } else if (currentProperty !== null) { currentParent[currentProperty] = value; } } const visitor = { onObjectBegin: () => { const object = {}; onValue(object); previousParents.push(currentParent); currentParent = object; currentProperty = null; }, onObjectProperty: (name2) => { currentProperty = name2; }, onObjectEnd: () => { currentParent = previousParents.pop(); }, onArrayBegin: () => { const array = []; onValue(array); previousParents.push(currentParent); currentParent = array; currentProperty = null; }, onArrayEnd: () => { currentParent = previousParents.pop(); }, onLiteralValue: onValue, onError: (error, offset, length) => { _errors.push({ error, length, offset }); } }; if (content) { try { visit2(content, visitor, { allowTrailingComma: true, allowEmptyContent: true }); raw = currentParent[0] ?? {}; if (_errors.length > 0) { this._parseErrors = convertErrors(content, _errors); } } catch (e2) { this._parseErrors = [{ range: Range.create(0, 0, 0, 0), message: `Error on parse configuration file ${this._name}: ${e2}` }]; } } return raw; } doParseRaw(raw, _options) { const onError = (message) => { console.error(`Conflict in settings file ${this._name}: ${message}`); }; const contents = toValuesTree(raw, onError, true); const keys = Object.keys(raw); const overrides = this.toOverrides(raw, onError); return { contents, keys, overrides, restricted: [] }; } toOverrides(raw, conflictReporter) { const overrides = []; for (const key of Object.keys(raw)) { if (OVERRIDE_PROPERTY_REGEX.test(key)) { const overrideRaw = {}; for (const keyInOverrideRaw in raw[key]) { overrideRaw[keyInOverrideRaw] = raw[key][keyInOverrideRaw]; } overrides.push({ identifiers: overrideIdentifiersFromKey(key), keys: Object.keys(overrideRaw), contents: toValuesTree(overrideRaw, conflictReporter, true) }); } } return overrides; } }; } }); // src/configuration/registry.ts function validateProperty(property, _schema = void 0) { if (!property.trim()) { return "Cannot register an empty property"; } if (OVERRIDE_PROPERTY_REGEX.test(property)) { return `Cannot register ${property}. This matches property pattern '\\\\[.*\\\\]$' for describing language specific editor settings`; } if (configurationRegistry.getConfigurationProperties()[property] !== void 0) { return `Cannot register '${property}'. This property is already registered.`; } return null; } var EXCLUDE_KEYS, Extensions3, allSettings, resourceSettings, resourceLanguageSettingsSchemaId, contributionRegistry, ConfigurationRegistry, configurationRegistry; var init_registry2 = __esm({ "src/configuration/registry.ts"() { "use strict"; init_array(); init_jsonRegistry(); init_object(); init_protocol(); init_registry(); init_types(); init_util2(); EXCLUDE_KEYS = ["log-path", "logPath"]; Extensions3 = { Configuration: "base.contributions.configuration" }; allSettings = { properties: {}, patternProperties: {} }; resourceSettings = { properties: {}, patternProperties: {} }; resourceLanguageSettingsSchemaId = "vscode://schemas/settings/resourceLanguage"; contributionRegistry = Registry.as(Extensions2.JSONContribution); ConfigurationRegistry = class { configurationProperties; excludedConfigurationProperties; resourceLanguageSettingsSchema; _onDidSchemaChange = new import_node4.Emitter(); onDidSchemaChange = this._onDidSchemaChange.event; _onDidUpdateConfiguration = new import_node4.Emitter(); onDidUpdateConfiguration = this._onDidUpdateConfiguration.event; constructor() { this.resourceLanguageSettingsSchema = { properties: {}, patternProperties: {}, additionalProperties: false, errorMessage: "Unknown coc.nvim configuration property", allowTrailingCommas: true, allowComments: true }; this.configurationProperties = {}; this.excludedConfigurationProperties = {}; contributionRegistry.registerSchema(resourceLanguageSettingsSchemaId, this.resourceLanguageSettingsSchema); this.registerOverridePropertyPatternKey(); } registerConfiguration(configuration2, validate = true) { this.registerConfigurations([configuration2], validate); } registerConfigurations(configurations, validate = true) { const properties = this.doRegisterConfigurations(configurations, validate); contributionRegistry.notifySchemaChanged(resourceLanguageSettingsSchemaId); this._onDidSchemaChange.fire(); this._onDidUpdateConfiguration.fire({ properties }); } deregisterConfigurations(configurations) { const properties = this.doDeregisterConfigurations(configurations); contributionRegistry.notifySchemaChanged(resourceLanguageSettingsSchemaId); this._onDidSchemaChange.fire(); this._onDidUpdateConfiguration.fire({ properties }); } updateConfigurations({ add, remove: remove2 }) { const properties = []; properties.push(...this.doDeregisterConfigurations(remove2)); properties.push(...this.doRegisterConfigurations(add, false)); contributionRegistry.notifySchemaChanged(resourceLanguageSettingsSchemaId); this._onDidSchemaChange.fire(); this._onDidUpdateConfiguration.fire({ properties: distinct(properties) }); } doRegisterConfigurations(configurations, validate) { const properties = []; configurations.forEach((configuration2) => { properties.push(...this.validateAndRegisterProperties(configuration2, validate, configuration2.extensionInfo)); this.registerJSONConfiguration(configuration2); }); return properties; } doDeregisterConfigurations(configurations) { const properties = []; const deregisterConfiguration = (configuration2) => { for (const key in toObject(configuration2.properties)) { properties.push(key); delete this.configurationProperties[key]; this.removeFromSchema(key, configuration2.properties[key]); } }; for (const configuration2 of configurations) { deregisterConfiguration(configuration2); } return properties; } validateAndRegisterProperties(configuration2, validate, extensionInfo, scope = 1 /* APPLICATION */) { scope = configuration2.scope == null ? scope : configuration2.scope; const propertyKeys = []; const properties = configuration2.properties; for (const key in toObject(properties)) { const property = properties[key]; if (validate && validateProperty(key, property)) { delete properties[key]; continue; } property.source = extensionInfo; property.defaultDefaultValue = properties[key].default; this.updatePropertyDefaultValue(key, property); property.scope = property.scope == null ? scope : property.scope; if (extensionInfo) property.description = (property.description ? `${property.description} ` : "") + `From ${extensionInfo.id}`; if (property.hasOwnProperty("included") && !property.included) { this.excludedConfigurationProperties[key] = properties[key]; delete properties[key]; continue; } else { this.configurationProperties[key] = properties[key]; } if (!properties[key].deprecationMessage && properties[key].markdownDeprecationMessage) { properties[key].deprecationMessage = properties[key].markdownDeprecationMessage; } propertyKeys.push(key); } return propertyKeys; } getConfigurationProperties() { return this.configurationProperties; } getExcludedConfigurationProperties() { return this.excludedConfigurationProperties; } registerJSONConfiguration(configuration2) { const register4 = (configuration3) => { const properties = configuration3.properties; for (const key in toObject(properties)) { this.updateSchema(key, properties[key]); } }; register4(configuration2); } updateSchema(key, property) { allSettings.properties[key] = property; switch (property.scope) { case 2 /* WINDOW */: case 3 /* RESOURCE */: resourceSettings.properties[key] = property; break; case 4 /* LANGUAGE_OVERRIDABLE */: resourceSettings.properties[key] = property; this.resourceLanguageSettingsSchema.properties[key] = property; break; } } removeFromSchema(key, property) { delete allSettings.properties[key]; switch (property.scope) { case 2 /* WINDOW */: case 3 /* RESOURCE */: case 4 /* LANGUAGE_OVERRIDABLE */: delete resourceSettings.properties[key]; delete this.resourceLanguageSettingsSchema.properties[key]; break; } } registerOverridePropertyPatternKey() { const resourceLanguagePropertiesSchema = { type: "object", description: "Configure editor settings to be overridden for a language.", errorMessage: "This setting does not support per-language configuration.", $ref: resourceLanguageSettingsSchemaId }; allSettings.patternProperties[OVERRIDE_PROPERTY_PATTERN] = resourceLanguagePropertiesSchema; resourceSettings.patternProperties[OVERRIDE_PROPERTY_PATTERN] = resourceLanguagePropertiesSchema; } updatePropertyDefaultValue(key, property) { let defaultValue2 = property.defaultDefaultValue; if (typeof defaultValue2 === "undefined" && !EXCLUDE_KEYS.some((k) => key.includes(k))) { defaultValue2 = getDefaultValue(property.type); } property.default = defaultValue2; property.defaultValueSource = void 0; } }; configurationRegistry = new ConfigurationRegistry(); Registry.add(Extensions3.Configuration, configurationRegistry); } }); // src/configuration/index.ts var logger8, userSettingsSchemaId, folderSettingsSchemaId, jsonRegistry, configuration, Configurations; var init_configuration2 = __esm({ "src/configuration/index.ts"() { "use strict"; init_esm(); init_schema(); init_logger(); init_util(); init_array(); init_constants(); init_extensionRegistry(); init_fs(); init_is(); init_jsonRegistry(); init_node(); init_object(); init_protocol(); init_registry(); init_configuration(); init_event(); init_model(); init_parser2(); init_registry2(); init_types(); init_util2(); logger8 = createLogger("configurations"); userSettingsSchemaId = "vscode://schemas/settings/user"; folderSettingsSchemaId = "vscode://schemas/settings/folder"; jsonRegistry = Registry.as(Extensions2.JSONContribution); configuration = Registry.as(Extensions3.Configuration); Configurations = class { constructor(userConfigFile2, _proxy, noWatch = false, cwd2 = process.cwd()) { this.userConfigFile = userConfigFile2; this._proxy = _proxy; this.noWatch = noWatch; let defaultConfiguration = this.loadDefaultConfigurations(); let userConfiguration = this.parseConfigurationModel(this.userConfigFile); this._configuration = new Configuration(defaultConfiguration, userConfiguration); this.watchFile(this.userConfigFile, 1 /* User */); let filepath = this.folderToConfigfile(cwd2); if (filepath) this.addFolderFile(filepath, true); this._initialConfiguration = this.getConfiguration(void 0, null); } userConfigFile; _proxy; noWatch; _watchedFiles = /* @__PURE__ */ new Set(); _configuration; _errors = /* @__PURE__ */ new Map(); _onError = new import_node4.Emitter(); _onChange = new import_node4.Emitter(); disposables = []; _initialized = false; cached = []; _initialConfiguration; onError = this._onError.event; onDidChange = this._onChange.event; /** * Contains default, memory and user configuration only */ get initialConfiguration() { return this._initialConfiguration; } get markdownPreference() { let preferences = this._initialConfiguration.get("coc.preferences"); return { excludeImages: preferences.excludeImageLinksInMarkdownDocument, breaks: preferences.enableGFMBreaksInMarkdownDocument }; } get errors() { return this._errors; } get configuration() { return this._configuration; } flushConfigurations() { this._initialized = true; configuration.registerConfigurations(this.cached); this.cached = []; } updateConfigurations(add, remove2) { if (this._initialized) { if (!isFalsyOrEmpty(remove2)) { configuration.updateConfigurations({ add, remove: remove2 }); } else { configuration.registerConfigurations(add); } } else { this.cached.push(...add); } } loadDefaultConfigurations() { let node = { properties: convertProperties(schema_default.properties) }; configuration.registerConfiguration(node); configuration.onDidUpdateConfiguration((e2) => { if (e2.properties.length === 0) return; const dict = configuration.getConfigurationProperties(); const toRemove = []; const root = /* @__PURE__ */ Object.create(null); const keys2 = []; for (let key of e2.properties) { let def = dict[key]; if (def) { keys2.push(key); let val = def.default; addToValueTree(root, key, val, (msg) => { logger8.error(`Conflict configuration: ${msg}`); }); } else { toRemove.push(key); } } const model2 = this._configuration.defaults.merge(new ConfigurationModel(root, keys2)); toRemove.forEach((key) => { model2.removeValue(key); }); if (!this._initialized) { this._configuration.updateDefaultConfiguration(model2); this._initialConfiguration = this.getConfiguration(void 0, null); } else { this.changeConfiguration(0 /* Default */, model2, void 0, e2.properties); } }, null, this.disposables); let properties = configuration.getConfigurationProperties(); let config = {}; let keys = []; Object.keys(properties).forEach((key) => { let value = properties[key].default; keys.push(key); addToValueTree(config, key, value, void 0); }); let model = new ConfigurationModel(config, keys); return model; } getDescription(key) { let property = allSettings.properties[key]; return property ? property.description : void 0; } getJSONSchema(uri) { if (uri === userSettingsSchemaId) { return { properties: allSettings.properties, patternProperties: allSettings.patternProperties, definitions: Object.assign(getExtensionDefinitions(), schema_default.definitions), additionalProperties: false, allowTrailingCommas: true, allowComments: true }; } if (uri === folderSettingsSchemaId) { return { properties: resourceSettings.properties, patternProperties: resourceSettings.patternProperties, definitions: Object.assign(getExtensionDefinitions(), schema_default.definitions), errorMessage: "Configuration property may not work as folder configuration", additionalProperties: false, allowTrailingCommas: true, allowComments: true }; } let schemas = jsonRegistry.getSchemaContributions().schemas; if (hasOwnProperty2(schemas, uri)) return schemas[uri]; return void 0; } parseConfigurationModel(filepath, filecontents) { if (!filepath || !fs.existsSync(filepath)) return new ConfigurationModel(); let parser2 = new ConfigurationModelParser(filepath); let content = filecontents || fs.readFileSync(filepath, "utf8"); let uri = u.file(filepath).toString(); parser2.parse(content); if (!isFalsyOrEmpty(parser2.errors)) { this._errors.set(uri, parser2.errors); this._onError.fire({ uri, diagnostics: parser2.errors }); } else { this._errors.delete(uri); this._onError.fire({ uri, diagnostics: [] }); } return parser2.configurationModel; } folderToConfigfile(folder) { if (sameFile(folder, os.homedir())) return void 0; let filepath = path.join(folder, ".vim", CONFIG_FILE_NAME); if (sameFile(filepath, this.userConfigFile)) return void 0; return filepath; } // change memory configuration updateMemoryConfig(props) { let keys = Object.keys(props); if (!props || keys.length == 0) return; let memoryModel = this._configuration.memory.clone(); let properties = configuration.getConfigurationProperties(); keys.forEach((key) => { let val = props[key]; if (val === void 0) { memoryModel.removeValue(key); } else if (properties[key] != null) { memoryModel.setValue(key, val); } else if (objectLiteral(val)) { for (let k of Object.keys(val)) { memoryModel.setValue(`${key}.${k}`, val[k]); } } else { memoryModel.setValue(key, val); } }); this.changeConfiguration(4 /* Memory */, memoryModel, void 0, keys); } /** * Add new folder config file. */ addFolderFile(configFilePath, fromCwd = false, resource) { let folder = normalizeFilePath(path.resolve(configFilePath, "../..")); if (this._configuration.hasFolder(folder) || !fs.existsSync(configFilePath)) return false; let configFile; try { configFile = fs.readFileSync(configFilePath, "utf8"); } catch (_err) { return false; } this.watchFile(configFilePath, 3 /* WorkspaceFolder */); let model = this.parseConfigurationModel(configFilePath, configFile); this._configuration.addFolderConfiguration(folder, model, resource); logger8.info(`Add folder configuration from ${fromCwd ? "cwd" : "file"}:`, configFilePath); return true; } watchFile(filepath, target) { if (!filepath || !fs.existsSync(filepath) || this._watchedFiles.has(filepath) || this.noWatch) return; this._watchedFiles.add(filepath); const folder = target === 3 /* WorkspaceFolder */ ? normalizeFilePath(path.resolve(filepath, "../..")) : void 0; let disposable = watchFile(filepath, () => { let model = this.parseConfigurationModel(filepath); this.changeConfiguration(target, model, folder); }, false, () => { this._watchedFiles.delete(filepath); }); this.disposables.push(disposable); } /** * Update ConfigurationModel and fire event. */ changeConfiguration(target, model, folder, keys) { const listOnly = target === 0 /* Default */ && keys && keys.every((key) => key.startsWith("list.source")); let configuration2 = this._configuration; let previous = listOnly ? void 0 : configuration2.toData(); let change; if (target === 0 /* Default */) { change = configuration2.compareAndUpdateDefaultConfiguration(model, keys); } else if (target === 1 /* User */) { change = configuration2.compareAndUpdateUserConfiguration(model); } else if (target === 2 /* Workspace */) { change = configuration2.compareAndUpdateWorkspaceConfiguration(model); } else if (target === 3 /* WorkspaceFolder */) { change = configuration2.compareAndUpdateFolderConfiguration(folder, model); } else { change = configuration2.compareAndUpdateMemoryConfiguration(model); } if (!change || change.keys.length == 0) return; if (target !== 3 /* WorkspaceFolder */, target !== 2 /* Workspace */) { this._initialConfiguration = this.getConfiguration(void 0, null); } if (listOnly) return; let ev = new ConfigurationChangeEvent(change, previous, configuration2); ev.source = target; this._onChange.fire(ev); } getDefaultResource() { let root = this._proxy?.root; if (!root) return void 0; return u.file(root).toString(); } /** * Get workspace configuration */ getConfiguration(section2, scope) { let configuration2 = this._configuration; let overrides = scope ? scopeToOverrides(scope) : { resource: scope === null ? void 0 : this.getDefaultResource() }; const config = Object.freeze(lookUp(configuration2.getValue(void 0, overrides), section2)); const result = { has(key) { return typeof lookUp(config, key) !== "undefined"; }, get: (key, defaultValue2) => { let result2 = lookUp(config, key); if (result2 == null) return defaultValue2; return result2; }, update: (key, value, updateTarget = false) => { const resource = overrides.resource; let entry = section2 ? `${section2}.${key}` : key; let target; if (typeof updateTarget === "boolean") { target = updateTarget ? 1 /* User */ : 3 /* WorkspaceFolder */; } else { target = convertTarget(updateTarget); } let folder; if (target === 3 /* WorkspaceFolder */) { folder = this._configuration.resolveFolder(resource) ?? this.resolveWorkspaceFolderForResource(resource); if (!folder) { console.error(`Unable to locate workspace folder configuration for ${resource}`); logger8.error(`Unable to locate workspace folder configuration`, resource, false ? "" : Error().stack); return; } } let model = this._configuration.getConfigurationModel(target, folder).clone(); if (value === void 0) { model.removeValue(entry); } else { model.setValue(entry, value); } this.changeConfiguration(target, model, folder); let fsPath2; if (target === 3 /* WorkspaceFolder */) { fsPath2 = this.folderToConfigfile(folder); } else if (target === 1 /* User */) { fsPath2 = this.userConfigFile; } return fsPath2 ? this._proxy?.modifyConfiguration(fsPath2, entry, value) : Promise.resolve(); }, inspect: (key) => { key = section2 ? `${section2}.${key}` : key; const config2 = this._configuration.inspect(key, overrides); return { key, defaultValue: config2.defaultValue, globalValue: config2.userValue, workspaceValue: config2.workspaceValue, workspaceFolderValue: config2.workspaceFolderValue }; } }; Object.defineProperty(result, "has", { enumerable: false }); Object.defineProperty(result, "get", { enumerable: false }); Object.defineProperty(result, "update", { enumerable: false }); Object.defineProperty(result, "inspect", { enumerable: false }); if (typeof config === "object") { mixin(result, config, false); } return deepFreeze(result); } /** * Resolve folder configuration from uri. */ locateFolderConfigution(uri) { let folder = this._configuration.resolveFolder(uri); if (folder) return true; let u2 = u.parse(uri); if (u2.scheme !== "file") return false; let dir = folder = findUp(".vim", u2.fsPath); if (!dir) return false; folder = path.dirname(dir); let filepath = this.folderToConfigfile(folder); if (filepath) { this.addFolderFile(filepath, false, uri); return true; } return false; } /** * Resolve workspace folder config file path. */ resolveWorkspaceFolderForResource(resource) { if (this._proxy && typeof this._proxy.getWorkspaceFolder === "function") { let uri = this._proxy.getWorkspaceFolder(resource); if (!uri) return void 0; let fsPath2 = uri.fsPath; let configFilePath = this.folderToConfigfile(fsPath2); if (configFilePath) { if (!fs.existsSync(configFilePath)) { fs.mkdirSync(path.dirname(configFilePath), { recursive: true }); fs.writeFileSync(configFilePath, "{}", "utf8"); } this.addFolderFile(configFilePath, false, resource); return fsPath2; } } return void 0; } /** * Reset configurations for test, not trigger configuration change event. */ reset() { this._errors.clear(); let model = new ConfigurationModel(); this._configuration.updateMemoryConfiguration(model); this._initialConfiguration = this.getConfiguration(void 0, null); } dispose() { this._onError.dispose(); this._onChange.dispose(); disposeAll(this.disposables); } }; } }); // src/configuration/shape.ts var logger9, ConfigurationProxy; var init_shape = __esm({ "src/configuration/shape.ts"() { "use strict"; init_main2(); init_esm(); init_logger(); init_node(); logger9 = createLogger("configuration-shape"); ConfigurationProxy = class { constructor(resolver2, _test = false) { this.resolver = resolver2; this._test = _test; } resolver; _test; get root() { return this.resolver.root; } async modifyConfiguration(fsPath2, key, value) { if (this._test) return; logger9.info(`modify configuration file: ${fsPath2}`, key, value); let dir = path.dirname(fsPath2); let formattingOptions = { tabSize: 2, insertSpaces: true }; if (!fs.existsSync(dir)) fs.mkdirSync(dir, { recursive: true }); let content = fs.readFileSync(fsPath2, { flag: "a+" }).toString("utf8"); content = content || "{}"; let edits = modify(content, [key], value, { formattingOptions }); content = applyEdits(content, edits); fs.writeFileSync(fsPath2, content, { encoding: "utf8" }); } getWorkspaceFolder(resource) { if (typeof this.resolver.getWorkspaceFolder === "function") { let workspaceFolder = this.resolver.getWorkspaceFolder(resource); if (workspaceFolder) return u.parse(workspaceFolder.uri); } return void 0; } }; } }); // src/core/autocmds.ts function toAutocmdOption(item) { let { id: id2, option } = item; let opt = { group: groupName }; if (option.buffer) opt.buffer = option.buffer; if (option.pattern) opt.pattern = option.pattern; if (option.once) opt.once = true; if (option.nested) opt.nested = true; let method = option.request ? "request" : "notify"; let args = isFalsyOrEmpty(option.arglist) ? "" : ", " + option.arglist.join(", "); let command = `call coc#rpc#${method}('doAutocmd', [${id2}${args}])`; opt.command = command; return opt; } function createCommand(id2, event, autocmd) { let args = isFalsyOrEmpty(autocmd.arglist) ? "" : ", " + autocmd.arglist.join(", "); let method = autocmd.request ? "request" : "notify"; let opt = ""; if (autocmd.once) opt += " ++once"; if (autocmd.nested) opt += " ++nested"; return `autocmd ${groupName} ${event}${opt} call coc#rpc#${method}('doAutocmd', [${id2}${args}])`; } var logger10, AutocmdItem, groupName, Autocmds; var init_autocmds = __esm({ "src/core/autocmds.ts"() { "use strict"; init_logger(); init_array(); init_extensionId(); init_extensionRegistry(); init_lodash(); init_protocol(); logger10 = createLogger("autocmds"); AutocmdItem = class { constructor(id2, option) { this.id = id2; this.option = option; } id; option; _extensiionName; get extensiionName() { if (this._extensiionName) return this._extensiionName; this._extensiionName = parseExtensionName(this.option.stack); return this._extensiionName; } }; groupName = "coc_dynamic_autocmd"; Autocmds = class { autocmds = /* @__PURE__ */ new Map(); nvim; id = 0; _scheduled = false; attach(nvim) { this.nvim = nvim; } async doAutocmd(id2, args, timeout2 = 1e3) { let autocmd = this.autocmds.get(id2); if (autocmd) { let option = autocmd.option; logger10.trace(`Invoke autocmd from "${autocmd.extensiionName}"`, option); let tokenSource = new import_node4.CancellationTokenSource(); let logged = false; let logError2 = (e2) => { if (logged) return; logged = true; let extensionId = getExtensionId(option); logger10.error( `Error on autocmd "${option.event}"${extensionId ? ` [extension: ${extensionId}]` : ""}`, args, omit(option, ["callback", "stack"]), e2 ); }; try { let promise = Promise.resolve(option.callback.apply(option.thisArg, [...args, tokenSource.token])); promise.catch(logError2); if (option.request) { let timer; let tp = new Promise((resolve) => { timer = setTimeout(() => { tokenSource.cancel(); logger10.error(`Autocmd timeout after ${timeout2}ms`, omit(option, ["callback", "stack"]), autocmd.option.stack); resolve(void 0); }, timeout2); }); await Promise.race([tp, promise]); clearTimeout(timer); } else { await promise; } } catch (e2) { logError2(e2); } finally { tokenSource.dispose(); } } } registerAutocmd(autocmd) { let id2 = ++this.id; let item = new AutocmdItem(id2, autocmd); this.autocmds.set(id2, item); this.createAutocmd(item); return import_node4.Disposable.create(() => { if (this.autocmds.delete(id2)) { this.scheduleRebuildAutocmds(); } }); } createAutocmd(item) { let { option } = item; let event = Array.isArray(option.event) ? option.event.join(",") : option.event; if (/\buser\b/i.test(event)) { let cmd = createCommand(item.id, event, option); this.nvim.command(cmd, true); } else { let opt = toAutocmdOption(item); this.nvim.createAutocmd( Array.isArray(item.option.event) ? item.option.event : item.option.event.split(","), opt, true ); } } /** * Rebuild all editor-side autocmds of the shared group after registrations * changed, so disposed registrations are removed from the editor as well. * Changes of the same tick are coalesced into a single rebuild. */ scheduleRebuildAutocmds() { if (this._scheduled) return; this._scheduled = true; process.nextTick(() => { this._scheduled = false; this.rebuildAutocmds(); }); } rebuildAutocmds() { let { nvim, autocmds } = this; if (!nvim) return; nvim.pauseNotification(); nvim.command(`autocmd! ${groupName}`, true); for (const item of autocmds.values()) { this.createAutocmd(item); } nvim.resumeNotification(false, true); } removeExtensionAutocmds(extensiionName) { let { autocmds } = this; let changed = false; for (const [id2, item] of autocmds) { if (item.extensiionName === extensiionName) { autocmds.delete(id2); changed = true; } } if (changed) this.scheduleRebuildAutocmds(); } dispose() { this.autocmds.clear(); } }; } }); // src/core/contentProvider.ts function getAutocmdCommand(scheme) { let rhs = `call coc#rpc#request('CocAutocmd', ['BufReadCmd','${scheme}', expand('')]) | filetype detect`; return `autocmd! coc_dynamic_content BufReadCmd,FileReadCmd,SourceCmd ${scheme}:/* ${rhs}`; } var ContentProvider; var init_contentProvider = __esm({ "src/core/contentProvider.ts"() { "use strict"; init_esm(); init_events(); init_util(); init_protocol(); init_string(); ContentProvider = class { constructor(documents) { this.documents = documents; } documents; nvim; disposables = []; providers = /* @__PURE__ */ new Map(); // Latest refresh source per uri: starting a new refresh cancels the old // one so stale content can never overwrite newer content. refreshSources = /* @__PURE__ */ new Map(); _onDidProviderChange = new import_node4.Emitter(); onDidProviderChange = this._onDidProviderChange.event; attach(nvim) { this.nvim = nvim; events_default.on("BufReadCmd", this.onBufReadCmd, this, this.disposables); } get schemes() { return Array.from(this.providers.keys()); } async onBufReadCmd(scheme, uri) { let provider = this.providers.get(scheme); if (!provider) return; let tokenSource = new import_node4.CancellationTokenSource(); let content = await Promise.resolve(provider.provideTextDocumentContent(u.parse(uri), tokenSource.token)); let buf = await this.nvim.buffer; await buf.setLines(toText(content).split(/\r?\n/), { start: 0, end: -1, strictIndexing: false }); process.nextTick(() => { void events_default.fire("BufCreate", [buf.id]); }); } resetAutocmds() { let { nvim, schemes } = this; nvim.pauseNotification(); nvim.command(`autocmd! coc_dynamic_content`, true); for (let scheme of schemes) { nvim.command(getAutocmdCommand(scheme), true); } nvim.resumeNotification(false, true); } registerTextDocumentContentProvider(scheme, provider) { this.providers.set(scheme, provider); this._onDidProviderChange.fire(); let disposables = []; let refreshSources = /* @__PURE__ */ new Set(); if (provider.onDidChange) { provider.onDidChange(async (uri) => { let key = uri.toString(); let doc = this.documents.getDocument(key); if (!doc) return; let previous = this.refreshSources.get(key); if (previous) previous.cancel(); let tokenSource = new import_node4.CancellationTokenSource(); this.refreshSources.set(key, tokenSource); refreshSources.add(tokenSource); try { let content = await Promise.resolve(provider.provideTextDocumentContent(uri, tokenSource.token)); if (tokenSource.token.isCancellationRequested || this.refreshSources.get(key) !== tokenSource) return; await doc.buffer.setLines(content.split(/\r?\n/), { start: 0, end: -1, strictIndexing: false }); } finally { refreshSources.delete(tokenSource); if (this.refreshSources.get(key) === tokenSource) this.refreshSources.delete(key); tokenSource.dispose(); } }, null, disposables); } this.nvim.command(getAutocmdCommand(scheme), true); return import_node4.Disposable.create(() => { this.providers.delete(scheme); for (let source of refreshSources) { source.cancel(); source.dispose(); } refreshSources.clear(); disposeAll(disposables); this.resetAutocmds(); this._onDidProviderChange.fire(); }); } dispose() { for (let source of this.refreshSources.values()) { source.cancel(); source.dispose(); } this.refreshSources.clear(); disposeAll(this.disposables); this._onDidProviderChange.dispose(); this.providers.clear(); } }; } }); // src/util/position.ts function rangeInRange(r2, range2) { return positionInRange(r2.start, range2) === 0 && positionInRange(r2.end, range2) === 0; } function equalsRange(r2, range2) { if (!samePosition(r2.start, range2.start)) return false; return samePosition(r2.end, range2.end); } function samePosition(one, two) { return one.line === two.line && one.character === two.character; } function adjacentPosition(pos, range2) { return samePosition(pos, range2.start) || samePosition(pos, range2.end); } function compareRangesUsingStarts(a2, b2) { const aStartLineNumber = a2.start.line | 0; const bStartLineNumber = b2.start.line | 0; if (aStartLineNumber === bStartLineNumber) { const aStartColumn = a2.start.character | 0; const bStartColumn = b2.start.character | 0; if (aStartColumn === bStartColumn) { const aEndLineNumber = a2.end.line | 0; const bEndLineNumber = b2.end.line | 0; if (aEndLineNumber === bEndLineNumber) { const aEndColumn = a2.end.character | 0; const bEndColumn = b2.end.character | 0; return aEndColumn - bEndColumn; } return aEndLineNumber - bEndLineNumber; } return aStartColumn - bStartColumn; } return aStartLineNumber - bStartLineNumber; } function toValidRange(range2, max) { let { start, end } = range2; if (start.line > end.line || start.line === end.line && start.character > end.character) { let m2 = start; start = end; end = m2; } start = Position.create(Math.max(0, start.line), Math.max(0, start.character)); let endCharacter = Math.max(0, end.character); if (typeof max === "number" && endCharacter > max) endCharacter = max; end = Position.create(Math.max(0, end.line), endCharacter); return { start, end }; } function rangeAdjacent(r2, range2) { if (comparePosition(r2.end, range2.start) == 0) { return true; } if (comparePosition(range2.end, r2.start) == 0) { return true; } return false; } function rangeOverlap(r2, range2) { let { start, end } = r2; if (comparePosition(end, range2.start) <= 0) { return false; } if (comparePosition(start, range2.end) >= 0) { return false; } return true; } function rangeIntersect(r2, range2) { if (positionInRange(r2.start, range2) == 0) { return true; } if (positionInRange(r2.end, range2) == 0) { return true; } if (rangeInRange(range2, r2)) { return true; } return false; } function adjustRangePosition(range2, position) { let { line, character } = position; let { start, end } = range2; let endCharacter = end.line == start.line ? end.character + character : end.character; return Range.create(start.line + line, character + start.character, end.line + line, endCharacter); } function lineInRange(line, range2) { let { start, end } = range2; return line >= start.line && line <= end.line; } function emptyRange(range2) { let { start, end } = range2; return start.line == end.line && start.character == end.character; } function positionInRange(position, range2) { let { start, end } = range2; if (comparePosition(position, start) < 0) return -1; if (comparePosition(position, end) > 0) return 1; return 0; } function comparePosition(position, other) { if (position.line > other.line) return 1; if (other.line == position.line && position.character > other.character) return 1; if (other.line == position.line && position.character == other.character) return 0; return -1; } function getEnd(start, content) { const lines = content.split(/\r?\n/); const len = lines.length; const lastLine = lines[len - 1]; const end = len == 1 ? start.character + content.length : lastLine.length; return Position.create(start.line + len - 1, end); } var init_position = __esm({ "src/util/position.ts"() { "use strict"; init_main(); } }); // src/util/diff.ts function diffLines(oldLines, newLines, startLine) { let endOffset = 0; let startOffset = 0; let parts = oldLines.slice(startLine + 1); for (let i2 = 0; i2 < Math.min(parts.length, newLines.length); i2++) { if (parts[parts.length - 1 - i2] == newLines[newLines.length - 1 - i2]) { endOffset = endOffset + 1; } else { break; } } for (let i2 = 0; i2 <= Math.min(startLine, newLines.length - 1 - endOffset); i2++) { if (oldLines[i2] == newLines[i2]) { startOffset = startOffset + 1; } else { break; } } let replacement = newLines.slice(startOffset, newLines.length - endOffset); let end = oldLines.length - endOffset; if (end > startOffset && replacement.length) { let offset = 0; for (let i2 = 0; i2 < Math.min(replacement.length, end - startOffset); i2++) { if (replacement[i2] == oldLines[startOffset + i2]) { offset = offset + 1; } else { break; } } if (offset) { return { start: startOffset + offset, end, replacement: replacement.slice(offset) }; } } return { start: startOffset, end, replacement }; } function patchLine(from, to, fill = " ") { if (from == to) return to; let idx = to.indexOf(from); if (idx !== -1) return fill.repeat(byteLength(to.substring(0, idx))) + from; let result = fastDiff(from, to); let str = ""; for (let item of result) { if (item[0] == fastDiff.DELETE) { return to; } else if (item[0] == fastDiff.INSERT) { str = str + fill.repeat(byteLength(item[1])); } else { str = str + item[1]; } } return str; } function getTextEdit(oldLines, newLines, cursor, insertMode) { let ol = oldLines.length; let nl = newLines.length; let n2; if (cursor) { n2 = nl > ol && insertMode && cursor.line > 0 ? cursor.line - 1 : cursor.line; } else { n2 = Math.min(ol, nl); } let used = 0; for (let i2 = 0; i2 < n2; i2++) { if (newLines[i2] === oldLines[i2]) { used += 1; } else { break; } } if (ol == nl && used == ol) return void 0; let delta = nl - ol; let r2 = Math.min(ol - used, nl - used); let e2 = 0; for (let i2 = 0; i2 < r2; i2++) { if (newLines[nl - i2 - 1] === oldLines[ol - i2 - 1]) { e2 += 1; } else { break; } } let inserted = e2 == 0 ? newLines.slice(used) : newLines.slice(used, -e2); if (delta == 0 && cursor && inserted.length == 1) { let newLine = newLines[used]; let oldLine = oldLines[used]; let nl2 = newLine.length; let ol2 = oldLine.length; if (nl2 === 0) return TextEdit.del(Range.create(used, 0, used, ol2)); if (ol2 === 0) return TextEdit.insert(Position.create(used, 0), newLine); let character = Math.min(cursor.character, nl2); if (!insertMode && nl2 >= ol2 && character !== nl2) { character += 1; } let r3 = 0; for (let i2 = 0; i2 < nl2 - character; i2++) { let idx = ol2 - 1 - i2; if (idx === -1) break; if (newLine[nl2 - 1 - i2] === oldLine[idx]) { r3 += 1; } else { break; } } let l2 = 0; for (let i2 = 0; i2 < Math.min(ol2 - r3, nl2 - r3); i2++) { if (newLine[i2] === oldLine[i2]) { l2 += 1; } else { break; } } let newText = r3 === 0 ? newLine.slice(l2) : newLine.slice(l2, -r3); return TextEdit.replace(Range.create(used, l2, used, ol2 - r3), newText); } let text = inserted.length > 0 ? inserted.join("\n") + "\n" : ""; if (text.length === 0 && used === ol - e2) return void 0; let original = oldLines.slice(used, ol - e2).join("\n") + "\n"; let edit2 = TextEdit.replace(Range.create(used, 0, ol - e2, 0), text); return reduceReplaceEdit(edit2, original, cursor); } function getCommonSuffixLen(a2, b2, max) { if (max === 0) return 0; let al = a2.length; let bl = b2.length; let n2 = 0; for (let i2 = 0; i2 < max; i2++) { if (a2[al - 1 - i2] === b2[bl - 1 - i2]) { n2++; } else { break; } } return n2; } function getCommonPrefixLen(a2, b2, max) { if (max === 0) return 0; let n2 = 0; for (let i2 = 0; i2 < max; i2++) { if (a2[i2] === b2[i2]) { n2++; } else { break; } } return n2; } function reduceReplaceEdit(edit2, original, cursor) { let { newText, range: range2 } = edit2; if (emptyRange(range2) || newText === "") return edit2; let endOffset; if (cursor) { let newEnd = getEnd(range2.start, newText); if (positionInRange(cursor, Range.create(range2.start, newEnd)) === 0) { endOffset = 0; let lc = newEnd.line - cursor.line + 1; let lines = newText.split("\n"); let len = lines.length; for (let i2 = 0; i2 < lc; i2++) { let idx = len - i2 - 1; if (i2 == lc - 1) { let s3 = idx === 0 ? range2.start.character : 0; endOffset += lines[idx].slice(cursor.character - s3).length; } else { endOffset += lines[idx].length + 1; } } } } let sl; let pl; let min = Math.min(original.length, newText.length); if (endOffset) { sl = getCommonSuffixLen(original, newText, endOffset); pl = getCommonPrefixLen(original, newText, min - sl); } else { pl = getCommonPrefixLen(original, newText, min); sl = getCommonSuffixLen(original, newText, min - pl); } let s2 = pl === 0 ? range2.start : getEnd(range2.start, original.slice(0, pl)); let e2 = sl === 0 ? range2.end : getEnd(range2.start, original.slice(0, -sl)); let text = newText.slice(pl, sl === 0 ? void 0 : -sl); return TextEdit.replace(Range.create(s2, e2), text); } var init_diff = __esm({ "src/util/diff.ts"() { "use strict"; init_main(); init_node(); init_position(); init_string(); } }); // src/util/textedit.ts function getStartLine(edit2) { let { start, end } = edit2.range; if (edit2.newText.endsWith("\n") && start.line == end.line && start.character == 0 && end.character == 0) { return start.line - 1; } return start.line; } function lineCountChange(edit2) { let { newText } = edit2; let range2 = getWellformedRange2(edit2.range); let n2 = range2.end.line - range2.start.line; return newText.split(/\r?\n/).length - n2 - 1; } function getWellformedRange2(range2) { const start = range2.start; const end = range2.end; if (start.line > end.line || start.line === end.line && start.character > end.character) { return { start: end, end: start }; } return range2; } function mergeSort2(data, compare2) { if (data.length <= 1) { return data; } const p2 = data.length / 2 | 0; const left = data.slice(0, p2); const right = data.slice(p2); mergeSort2(left, compare2); mergeSort2(right, compare2); let leftIdx = 0; let rightIdx = 0; let i2 = 0; while (leftIdx < left.length && rightIdx < right.length) { let ret = compare2(left[leftIdx], right[rightIdx]); if (ret <= 0) { data[i2++] = left[leftIdx++]; } else { data[i2++] = right[rightIdx++]; } } while (leftIdx < left.length) { data[i2++] = left[leftIdx++]; } while (rightIdx < right.length) { data[i2++] = right[rightIdx++]; } return data; } function mergeSortEdits(edits) { return mergeSort2(edits, (a2, b2) => { let diff = a2.range.start.line - b2.range.start.line; if (diff === 0) { return a2.range.start.character - b2.range.start.character; } return diff; }); } function emptyWorkspaceEdit(edit2) { let { changes, documentChanges } = edit2; if (documentChanges && documentChanges.length) return false; if (changes && Object.keys(changes).length) return false; return true; } function getRangesFromEdit(uri, edit2) { let { changes, documentChanges } = edit2; if (changes) { let edits = changes[uri]; return edits ? edits.map((e2) => e2.range) : void 0; } else if (Array.isArray(documentChanges)) { for (let c2 of documentChanges) { if (TextDocumentEdit.is(c2) && c2.textDocument.uri == uri) { return c2.edits.map((e2) => e2.range); } } } return void 0; } function getConfirmAnnotations(changes, changeAnnotations) { let keys = []; const add = (key) => { if (key && !keys.includes(key) && changeAnnotations[key]?.needsConfirmation) keys.push(key); }; for (let change of changes) { if (TextDocumentEdit.is(change)) { change.edits.forEach((edit2) => { add(edit2["annotationId"]); }); } else { add(change.annotationId); } } return keys; } function isDeniedEdit(edit2, denied) { if (AnnotatedTextEdit.is(edit2) && denied.includes(edit2.annotationId)) return true; return false; } function createFilteredChanges(documentChanges, denied) { let changes = []; documentChanges.forEach((change) => { if (TextDocumentEdit.is(change)) { let edits = change.edits.filter((edit2) => { return !isDeniedEdit(edit2, denied); }); if (edits.length > 0) { changes.push({ textDocument: change.textDocument, edits }); } } else if (!denied.includes(change.annotationId)) { changes.push(change); } }); return changes; } function getAnnotationKey(change) { let key; if (TextDocumentEdit.is(change)) { if (AnnotatedTextEdit.is(change.edits[0])) { key = change.edits[0].annotationId; } } else { key = change.annotationId; } return key; } function toDocumentChanges(edit2) { if (edit2.documentChanges) return edit2.documentChanges; let changes = []; for (let [uri, edits] of Object.entries(toObject(edit2.changes))) { changes.push({ textDocument: { uri, version: null }, edits }); } return changes; } function filterSortEdits(textDocument, edits) { let res = []; let end = textDocument.end; let checkEnd = end.line > 0 && end.character == 0; let prevDelete; for (let i2 = 0; i2 < edits.length; i2++) { let edit2 = edits[i2]; let { newText, range: range2 } = edit2; let max = (textDocument.lines[range2.end.line] ?? "").length; range2 = toValidRange(edit2.range, max); if (prevDelete) { if (samePosition(prevDelete, range2.start) && emptyRange(range2) && newText.length > 0) { let last = res[res.length - 1]; last.newText = newText; prevDelete = void 0; continue; } prevDelete = void 0; } if (newText.includes("\r")) newText = newText.replace(/\r\n/g, "\n"); let d2 = comparePosition(range2.end, end); if (d2 > 0) range2.end = { line: end.line, character: end.character }; if (textDocument.getText(range2) !== newText) { if (d2 === 0 && checkEnd && !emptyRange(range2) && newText.endsWith("\n")) { newText = newText.slice(0, -1); let text = textDocument.lines[end.line - 1]; range2.end = Position.create(end.line - 1, text.length); } else if (newText.length == 0) { prevDelete = range2.start; } res.push({ range: range2, newText }); } } return mergeSortEdits(res); } function applyEdits2(document2, edits) { if (isFalsyOrEmpty(edits)) return void 0; if (edits.length == 1) { let { start, end } = edits[0].range; let { lines } = document2; let sl = lines[start.line] ?? ""; let el = lines[end.line] ?? ""; let content = sl.substring(0, start.character) + edits[0].newText + el.substring(end.character); if (end.line >= lines.length && document2.eol) { if (content == "") { const result2 = [...lines.slice(0, start.line)]; return result2.length === 0 ? [""] : result2; } if (content.endsWith("\n")) content = content.slice(0, -1); return [...lines.slice(0, start.line), ...content.split("\n")]; } return [...lines.slice(0, start.line), ...content.split("\n"), ...lines.slice(end.line + 1)]; } let text = document2.getText(); let lastModifiedOffset = 0; const spans = []; for (const e2 of edits) { let startOffset = document2.offsetAt(e2.range.start); if (startOffset < lastModifiedOffset) { throw new Error("Overlapping edit"); } else if (startOffset > lastModifiedOffset) { spans.push(text.substring(lastModifiedOffset, startOffset)); } if (e2.newText.length) { spans.push(e2.newText); } lastModifiedOffset = document2.offsetAt(e2.range.end); } spans.push(text.substring(lastModifiedOffset)); let result = spans.join(""); if (result === text) return void 0; return contentToLines(result, document2.eol); } function getRangeText(lines, range2) { let result = []; const { start, end } = range2; if (start.line === end.line) { let line = toText(lines[start.line]); return line.slice(start.character, end.character); } for (let i2 = start.line; i2 <= end.line; i2++) { let line = toText(lines[i2]); let text = line; if (i2 === start.line) { text = line.slice(start.character); } else if (i2 === end.line) { text = line.slice(0, end.character); } result.push(text); } return result.join("\n"); } function validEdit(edit2) { let { range: range2, newText } = edit2; if (!newText.endsWith("\n")) return false; if (range2.end.character !== 0) return false; return true; } function toTextChanges(lines, edits) { if (edits.length === 0) return []; for (let edit2 of edits) { if (edit2.range.end.line > lines.length) return []; if (edit2.range.end.line == lines.length) { if (!validEdit(edit2)) return []; let line = lines.length - 1; let character = lines[line].length; if (emptyRange(edit2.range)) { edit2.range = Range.create(line, character, line, character); edit2.newText = "\n" + edit2.newText.slice(0, -1); } else { const start = edit2.range.start; edit2.range = Range.create(start, Position.create(line, character)); edit2.newText = edit2.newText.slice(0, -1); } } } return edits.map((o2) => { const oldText = getRangeText(lines, o2.range); let edit2 = reduceTextEdit(o2, oldText); let { start, end } = edit2.range; let sl = toText(lines[start.line]); let sc = byteIndex(sl, start.character); let el = end.line == start.line ? sl : toText(lines[end.line]); let ec = byteIndex(el, end.character); let { newText } = edit2; return [newText.length > 0 ? newText.split("\n") : [], start.line, sc, end.line, ec]; }); } function getChangedPosition(start, edit2) { let { range: range2, newText } = edit2; if (comparePosition(range2.end, start) <= 0) { let lines = newText.split("\n"); let lineCount = lines.length - (range2.end.line - range2.start.line) - 1; let character = start.character; if (range2.end.line == start.line) { let last = lines[lines.length - 1].length; if (lines.length > 1) { character = last + character - range2.end.character; } else { character = range2.start.character + last + character - range2.end.character; } } return { line: lineCount, character: character - start.character }; } return { line: 0, character: 0 }; } function getPosition(start, edit2, lines) { let { line, character } = start; let { range: range2, newText } = edit2; let { end } = range2; if (!lines) lines = newText.split("\n"); let lineCount = lines.length - (end.line - range2.start.line) - 1; let c2 = range2.end.line - start.line; if (c2 > 0) return { line, character }; if (c2 < 0) return { line: line + lineCount, character }; if (lines.length > 1) { let last = lines[lines.length - 1].length; return { line: line + lineCount, character: last + character - end.character }; } let d2 = range2.start.character - range2.end.character; return { line: line + lineCount, character: d2 + newText.length + character }; } function getPositionFromEdits(start, edits) { let position = Position.create(start.line, start.character); let before = false; for (let i2 = edits.length - 1; i2 >= 0; i2--) { let edit2 = edits[i2]; if (before) { position.line += lineCountChange(edit2); continue; } let d2 = comparePosition(edit2.range.end, position); if (d2 > 0) continue; if (edit2.range.end.line == position.line) { position = getPosition(position, edit2); } else { before = true; position.line += lineCountChange(edit2); } } return position; } function getChangedLineCount(start, edits) { let total = 0; for (let edit2 of edits) { let r2 = getWellformedRange2(edit2.range); if (comparePosition(r2.end, start) <= 0) { total += lineCountChange(edit2); } } return total; } function mergeTextEdits(edits, oldLines, newLines) { let start = edits[0].range.start; let end = edits[edits.length - 1].range.end; let lr = oldLines.length - end.line; let cr = (oldLines[end.line] ?? "").length - end.character; let line = newLines.length - lr; let character = (newLines[line] ?? "").length - cr; let newText = getRangeText(newLines, Range.create(start, Position.create(line, character))); return TextEdit.replace(Range.create(start, end), newText); } function reduceTextEdit(edit2, oldText) { if (oldText.length === 0) return edit2; let { range: range2, newText } = edit2; let ol = oldText.length; let nl = newText.length; if (ol === 0 || nl === 0) return edit2; let { start, end } = range2; let bo = 0; for (let i2 = 1; i2 <= Math.min(nl, ol); i2++) { if (newText[i2 - 1] === oldText[i2 - 1]) { bo = i2; } else { break; } } let eo = 0; let t2 = Math.min(nl - bo, ol - bo); if (t2 > 0) { for (let i2 = 1; i2 <= t2; i2++) { if (newText[nl - i2] === oldText[ol - i2]) { eo = i2; } else { break; } } } let text = eo == 0 ? newText.slice(bo) : newText.slice(bo, -eo); if (bo > 0) start = getEnd(start, newText.slice(0, bo)); if (eo > 0) end = getEnd(range2.start, oldText.slice(0, -eo)); return TextEdit.replace(Range.create(start, end), text); } function getRevertEdit(oldLines, newLines, startLine) { if (equals(oldLines, newLines)) return void 0; let changed = diffLines(oldLines, newLines, startLine); let original = oldLines.slice(changed.start, changed.end); let range2 = Range.create(changed.start, 0, changed.start + changed.replacement.length, 0); return TextEdit.replace(range2, original.join("\n") + (original.length > 0 ? "\n" : "")); } var init_textedit = __esm({ "src/util/textedit.ts"() { "use strict"; init_main(); init_array(); init_diff(); init_object(); init_position(); init_string(); } }); // src/diagnostic/util.ts function getMessageString(message) { return MarkupContent.is(message) ? message.value : message; } function formatDiagnostic(format5, diagnostic) { let { source, code, severity, message } = diagnostic; let s2 = getSeverityName(severity)[0]; const codeStr = code !== void 0 && code !== null && code !== "" ? " " + code : ""; let msg = getMessageString(message); return format5.replace("%source", source).replace("%code", codeStr).replace("%severity", s2).replace("%message", () => msg); } function getSeverityName(severity) { switch (severity) { case DiagnosticSeverity.Warning: return "Warning"; case DiagnosticSeverity.Information: return "Information"; case DiagnosticSeverity.Hint: return "Hint"; default: return "Error"; } } function getSeverityType(severity) { switch (severity) { case DiagnosticSeverity.Warning: return "W"; case DiagnosticSeverity.Information: return "I"; case DiagnosticSeverity.Hint: return "I"; default: return "E"; } } function severityLevel(level2) { if (level2 == null) return void 0; switch (level2) { case "hint": return DiagnosticSeverity.Hint; case "information": return DiagnosticSeverity.Information; case "warning": return DiagnosticSeverity.Warning; case "error": return DiagnosticSeverity.Error; default: return DiagnosticSeverity.Hint; } } function getNameFromSeverity(severity) { switch (severity) { case DiagnosticSeverity.Error: return "CocError"; case DiagnosticSeverity.Warning: return "CocWarning"; case DiagnosticSeverity.Information: return "CocInfo"; case DiagnosticSeverity.Hint: return "CocHint"; default: return "CocError"; } } function getLocationListItem(bufnr, diagnostic, lines) { let { start, end } = diagnostic.range; let owner = diagnostic.source || "coc.nvim"; let msg = getMessageString(diagnostic.message).split("\n")[0]; let type = getSeverityName(diagnostic.severity).slice(0, 1).toUpperCase(); return { bufnr, lnum: start.line + 1, end_lnum: end.line + 1, col: Array.isArray(lines) ? byteIndex(lines[start.line] ?? "", start.character) + 1 : start.character + 1, end_col: Array.isArray(lines) ? byteIndex(lines[end.line] ?? "", end.character) + 1 : end.character + 1, text: `[${owner}${diagnostic.code ? " " + diagnostic.code : ""}] ${msg} [${type}]`, type }; } function sortDiagnostics(a2, b2) { let sa = a2.severity ?? 1; let sb = b2.severity ?? 1; if (sa != sb) return sa - sb; let d2 = comparePosition(a2.range.start, b2.range.start); if (d2 != 0) return d2; return a2.source > b2.source ? 1 : -1; } function getHighlightGroup(diagnostic) { let hlGroups2 = []; let tags = diagnostic.tags || []; if (tags.includes(DiagnosticTag.Deprecated)) { hlGroups2.push("CocDeprecatedHighlight" /* Deprecated */); } if (tags.includes(DiagnosticTag.Unnecessary)) { hlGroups2.push("CocUnusedHighlight" /* Unused */); } switch (diagnostic.severity) { case DiagnosticSeverity.Hint: hlGroups2.push("CocHintHighlight" /* Hint */); break; case DiagnosticSeverity.Information: hlGroups2.push("CocInfoHighlight" /* Information */); break; case DiagnosticSeverity.Warning: hlGroups2.push("CocWarningHighlight" /* Warning */); break; case DiagnosticSeverity.Error: hlGroups2.push("CocErrorHighlight" /* Error */); break; } return hlGroups2; } function adjustDiagnostics(diagnostics, edit2) { let { range: range2 } = edit2; let res; let lines; for (let i2 = 0; i2 < diagnostics.length; i2++) { let diag = diagnostics[i2]; let r2 = diag.range; if (rangeOverlap(range2, r2)) { if (!res) res = diagnostics.slice(0, i2); continue; } if (comparePosition(r2.start, range2.end) > 0) { if (!lines) lines = edit2.newText.split("\n"); let s2 = getPosition(r2.start, edit2, lines); let e2 = getPosition(r2.end, edit2, lines); if (s2.line >= 0 && s2.character >= 0 && e2.line >= 0 && e2.character >= 0) { if (!res) res = diagnostics.slice(0, i2); res.push({ ...diag, range: Range.create(s2, e2) }); continue; } } if (res) res.push(diag); } return res ?? diagnostics; } var init_util3 = __esm({ "src/diagnostic/util.ts"() { "use strict"; init_main(); init_position(); init_string(); init_textedit(); } }); // src/diagnostic/buffer.ts var signGroup, NAMESPACE, hlGroups, delay, aleMethod, virtualTextSrcId, floatFactory, DiagnosticBuffer; var init_buffer = __esm({ "src/diagnostic/buffer.ts"() { "use strict"; init_main(); init_esm(); init_events(); init_util(); init_ansiparse(); init_array(); init_errors(); init_node(); init_position(); init_protocol(); init_window(); init_workspace(); init_util3(); signGroup = "CocDiagnostic"; NAMESPACE = "diagnostic"; hlGroups = ["CocErrorHighlight", "CocWarningHighlight", "CocInfoHighlight", "CocHintHighlight", "CocDeprecatedHighlight", "CocUnusedHighlight"]; delay = getConditionValue(100, 10); aleMethod = getConditionValue("ale#other_source#ShowResults", "MockAleResults"); DiagnosticBuffer = class { constructor(nvim, doc) { this.nvim = nvim; this.doc = doc; this.loadConfiguration(); let timer; let fn = () => { clearTimeout(timer); this._refreshing = true; timer = setTimeout(() => { this._refreshing = false; if (!this.config.enable || !this.config.autoRefresh || !this.dirty) return; if (this.doc.hasChanged) { if (!events_default.insertMode || this.config.refreshOnInsertMode) this.refreshHighlights(); return; } void this._refresh(true); }, delay); }; fn.clear = () => { this._refreshing = false; clearTimeout(timer); }; this.refreshHighlights = fn; } nvim; doc; diagnosticsMap = /* @__PURE__ */ new Map(); _disposed = false; _dirties = /* @__PURE__ */ new Set(); _refreshing = false; _config; refreshHighlights; _onDidRefresh = new import_node4.Emitter(); onDidRefresh = this._onDidRefresh.event; get config() { return this._config; } loadConfiguration() { let config = workspace_default.getConfiguration("diagnostic", this.doc); let changed = this._config && config.enable != this._config.enable; this._config = { enable: config.get("enable", true), floatConfig: config.get("floatConfig", {}), messageTarget: config.get("messageTarget", "float"), enableHighlightLineNumber: config.get("enableHighlightLineNumber", true), highlightLimit: config.get("highlightLimit", 1e3), highlightPriority: config.get("highlightPriority"), autoRefresh: config.get("autoRefresh", true), checkCurrentLine: config.get("checkCurrentLine", false), enableSign: workspace_default.env.sign && config.get("enableSign", true), locationlistUpdate: config.get("locationlistUpdate", true), enableMessage: config.get("enableMessage", "always"), virtualText: config.get("virtualText", false), virtualTextAlign: config.get("virtualTextAlign", "after"), virtualTextWinCol: config.get("virtualTextWinCol", null), virtualTextCurrentLineOnly: config.get("virtualTextCurrentLineOnly"), virtualTextPrefix: config.get("virtualTextPrefix", " "), virtualTextFormat: config.get("virtualTextFormat", "%message"), virtualTextLimitInOneLine: config.get("virtualTextLimitInOneLine", 999), virtualTextLineSeparator: config.get("virtualTextLineSeparator", " \\ "), virtualTextLines: config.get("virtualTextLines", 3), displayByAle: config.get("displayByAle", false), displayByVimDiagnostic: config.get("displayByVimDiagnostic", false), level: severityLevel(config.get("level", "hint")), locationlistLevel: severityLevel(config.get("locationlistLevel")), signLevel: severityLevel(config.get("signLevel")), virtualTextLevel: severityLevel(config.get("virtualTextLevel")), messageLevel: severityLevel(config.get("messageLevel")), signPriority: config.get("signPriority", 10), refreshOnInsertMode: config.get("refreshOnInsertMode", false), filetypeMap: config.get("filetypeMap", {}), showUnused: config.get("showUnused", true), showDeprecated: config.get("showDeprecated", true), format: config.get("format", "[%source%code] [%severity] %message"), showRelatedInformation: config.get("showRelatedInformation", true) }; if (this._config.virtualText && !virtualTextSrcId) { void this.nvim.createNamespace("coc-diagnostic-virtualText").then((id2) => { virtualTextSrcId = id2; }); } if (changed) { if (this.config.enable) { void this._refresh(false); } else { this.clear(); } } } async setState(enable) { let curr = this._config.enable; if (curr == enable) return; this._config.enable = enable; if (enable) { await this._refresh(false); } else { this.clear(); } } get dirty() { return this._dirties.size > 0; } get bufnr() { return this.doc.bufnr; } get uri() { return this.doc.uri; } onChange(e2) { let changes = e2.contentChanges; if (changes.length > 0) { let edit2 = TextEdit.replace(changes[0].range, changes[0].text); for (let [collection, diagnostics] of this.diagnosticsMap.entries()) { let arr = adjustDiagnostics(diagnostics, edit2); if (arr === diagnostics) continue; this.diagnosticsMap.set(collection, arr); this._dirties.add(collection); } } if (!this.config.autoRefresh) return; this.refreshHighlights(); } onTextChange() { this._dirties = new Set(this.diagnosticsMap.keys()); this.refreshHighlights.clear(); } get displayByAle() { return this._config.displayByAle; } get displayByVimDiagnostic() { return this.nvim.isVim === false && this._config.displayByVimDiagnostic; } clearHighlight(collection) { this.buffer.clearNamespace(NAMESPACE + collection); } clearSigns(collection) { this.buffer.unplaceSign({ group: signGroup + collection }); } get diagnostics() { let res = []; for (let diags of this.diagnosticsMap.values()) { res.push(...diags); } return res; } get buffer() { return this.nvim.createBuffer(this.bufnr); } refreshAle(collection, diagnostics) { let aleItems = diagnostics.map((o2) => { let range2 = o2.range; return { text: o2.message, code: o2.code, lnum: range2.start.line + 1, col: range2.start.character + 1, end_lnum: range2.end.line + 1, end_col: range2.end.character, type: getSeverityType(o2.severity) }; }); this.nvim.call(aleMethod, [this.bufnr, "coc" + collection, aleItems], true); } /** * Update diagnostics when diagnostics change on collection. * @param {string} collection * @param {Diagnostic[]} diagnostics */ async update(collection, diagnostics) { let { diagnosticsMap } = this; let curr = diagnosticsMap.get(collection); if (!this._dirties.has(collection) && isFalsyOrEmpty(diagnostics) && isFalsyOrEmpty(curr)) return; diagnosticsMap.set(collection, diagnostics); void this.checkFloat(); if (!this.config.enable || diagnostics.length > 0 && this._refreshing) { this._dirties.add(collection); return; } let info = await this.getDiagnosticInfo(diagnostics.length === 0); if (!info || info.winid == -1) { this._dirties.add(collection); return; } if (this.diagnosticsMap.get(collection) !== diagnostics) { this._dirties.add(collection); return; } let map = /* @__PURE__ */ new Map(); map.set(collection, diagnostics); this.refresh(map, info); } async checkFloat() { if (workspace_default.bufnr != this.bufnr || !floatFactory) return; let pos = await window_default.getCursorPosition(); let diagnostics = this.getDiagnosticsAtPosition(pos); if (diagnostics.length == 0) { floatFactory.close(); } } /** * Reset all diagnostics of current buffer */ async reset(diagnostics) { this.refreshHighlights.clear(); let { diagnosticsMap } = this; for (let key of diagnosticsMap.keys()) { if (isFalsyOrEmpty(diagnostics[key])) diagnostics[key] = []; } for (let [key, value] of Object.entries(diagnostics)) { diagnosticsMap.set(key, value); } this._dirties = new Set(diagnosticsMap.keys()); await this._refresh(false); } async onCursorHold(lnum, col) { if (this.config.enableMessage !== "always") return; let pos = this.doc.getPosition(lnum, col); await this.echoMessage(true, pos); } /** * Echo diagnostic message under cursor. */ async echoMessage(truncate = false, position, target) { const config = this.config; if (!config.enable || config.enableMessage === "never" || this.displayByAle || this.displayByVimDiagnostic) return false; if (!target) target = config.messageTarget; let useFloat = target == "float"; let diagnostics = this.getDiagnosticsAtPosition(position); if (config.messageLevel) { diagnostics = diagnostics.filter((diagnostic) => { return diagnostic.severity && diagnostic.severity <= config.messageLevel; }); } if (useFloat) { await this.showFloat(diagnostics); } else { const lines = []; diagnostics.forEach((diagnostic) => { lines.push(formatDiagnostic(config.format, diagnostic)); }); if (lines.length) { await this.nvim.command('echo ""'); await window_default.echoLines(lines, truncate); } } return true; } async showVirtualTextCurrentLine(lnum) { let { config } = this; if (!config.virtualTextCurrentLineOnly || events_default.insertMode && !config.refreshOnInsertMode) return false; let enabled = await this.isEnabled(); if (!enabled) return false; this.showVirtualText(lnum); return true; } async showFloat(diagnostics, target = "float") { if (target !== "float") return false; if (!floatFactory) floatFactory = window_default.createFloatFactory({ modes: ["n"], autoHide: true }); if (diagnostics.length == 0) { floatFactory.close(); return false; } if (events_default.insertMode) return false; let config = this.config; let ft = ""; let docs = []; if (Object.keys(config.filetypeMap).length > 0) { let filetype = this.doc.filetype; const defaultFiletype = config.filetypeMap["default"] || ""; ft = config.filetypeMap[filetype] || (defaultFiletype == "bufferType" ? filetype : defaultFiletype); } diagnostics.forEach((diagnostic) => { let filetype = "Error"; if (diagnostic.filetype) { filetype = diagnostic.filetype; } else if (ft === "") { switch (diagnostic.severity) { case DiagnosticSeverity.Hint: filetype = "Hint"; break; case DiagnosticSeverity.Warning: filetype = "Warning"; break; case DiagnosticSeverity.Information: filetype = "Info"; break; } } else { filetype = ft; } let msg = diagnostic.message; let link = diagnostic.codeDescription?.href ?? ""; if (config.showRelatedInformation && diagnostic.relatedInformation?.length) { msg = `${diagnostic.message} Related information: `; for (const info of diagnostic.relatedInformation) { const fsPath2 = u.parse(info.location.uri).fsPath; const basename2 = path.basename(fsPath2); const line = info.location.range.start.line + 1; const column = info.location.range.start.character + 1; msg = `${msg} * ${basename2}#${line},${column}: ${info.message}`; } msg = msg + "\n\n"; } docs.push({ filetype, content: formatDiagnostic(config.format, { ...diagnostic, message: msg }) }); if (link) docs.push({ filetype: "txt", content: link }); }); await floatFactory.show(docs, this.config.floatConfig); return true; } /** * Get buffer info needed for refresh. */ async getDiagnosticInfo(force) { let { refreshOnInsertMode } = this._config; let { nvim, bufnr } = this; let checkInsert = !refreshOnInsertMode; if (force) { checkInsert = false; } else { let disabledByInsert = events_default.insertMode && !refreshOnInsertMode; if (disabledByInsert) return void 0; } return await nvim.call("coc#util#diagnostic_info", [bufnr, checkInsert]).catch(onUnexpectedError); } /** * Refresh changed diagnostics to UI. */ refresh(diagnosticsMap, info) { let { nvim, displayByAle, displayByVimDiagnostic } = this; for (let collection of diagnosticsMap.keys()) { this._dirties.delete(collection); } if (displayByAle) { nvim.pauseNotification(); for (let [collection, diagnostics] of diagnosticsMap.entries()) { this.refreshAle(collection, diagnostics); } nvim.resumeNotification(true, true); } else if (displayByVimDiagnostic) { nvim.pauseNotification(); this.setDiagnosticInfo(true); nvim.resumeNotification(true, true); } else { let emptyCollections = []; nvim.pauseNotification(); for (let [collection, diagnostics] of diagnosticsMap.entries()) { if (diagnostics.length == 0) emptyCollections.push(collection); this.addSigns(collection, diagnostics); this.updateHighlights(collection, diagnostics); } this.showVirtualText(info.lnum); this.updateLocationList(info.winid, info.locationlist); this.setDiagnosticInfo(); nvim.resumeNotification(true, true); emptyCollections.forEach((name2) => { this.diagnosticsMap.delete(name2); }); } this._onDidRefresh.fire(this.diagnostics); } updateLocationList(winid, title) { if (!this._config.locationlistUpdate || winid == -1 || title !== "Diagnostics of coc") return; let items = this.toLocationListItems(this.diagnostics); this.nvim.call("coc#ui#setloclist", [winid, items, "r", "Diagnostics of coc"], true); } toLocationListItems(diagnostics) { let { locationlistLevel } = this._config; let items = []; let lines = this.doc.textDocument.lines; diagnostics.sort(sortDiagnostics); for (let diagnostic of diagnostics) { if (locationlistLevel && diagnostic.severity && diagnostic.severity > locationlistLevel) continue; items.push(getLocationListItem(this.bufnr, diagnostic, lines)); } return items; } addSigns(collection, diagnostics) { let { enableSign, signLevel } = this._config; if (!enableSign) return; let group = signGroup + collection; let signs = []; let signsMap = /* @__PURE__ */ new Map(); for (let diagnostic of diagnostics) { let { range: range2, severity } = diagnostic; if (!severity || signLevel && severity > signLevel) { continue; } let line = range2.start.line; let exists = signsMap.get(line) || []; if (exists.includes(severity)) { continue; } exists.push(severity); signsMap.set(line, exists); let priority = this._config.signPriority + 4 - severity; signs.push({ name: getNameFromSeverity(severity), lnum: line + 1, priority }); } this.nvim.call("coc#ui#update_signs", [this.bufnr, group, signs], true); } setDiagnosticInfo(full = false) { let lnums = [0, 0, 0, 0]; let info = { error: 0, warning: 0, information: 0, hint: 0, lnums }; let items = []; for (let diagnostics of this.diagnosticsMap.values()) { for (let diagnostic of diagnostics) { let lnum = diagnostic.range.start.line + 1; switch (diagnostic.severity) { case DiagnosticSeverity.Warning: info.warning = info.warning + 1; lnums[1] = lnums[1] ? Math.min(lnums[1], lnum) : lnum; break; case DiagnosticSeverity.Information: info.information = info.information + 1; lnums[2] = lnums[2] ? Math.min(lnums[2], lnum) : lnum; break; case DiagnosticSeverity.Hint: info.hint = info.hint + 1; lnums[3] = lnums[3] ? Math.min(lnums[3], lnum) : lnum; break; default: lnums[0] = lnums[0] ? Math.min(lnums[0], lnum) : lnum; info.error = info.error + 1; } if (full) { let { start, end } = diagnostic.range; items.push({ file: u.parse(this.doc.uri).fsPath, lnum: start.line + 1, end_lnum: end.line + 1, col: start.character + 1, end_col: end.character + 1, code: diagnostic.code, source: diagnostic.source, message: getMessageString(diagnostic.message), severity: getSeverityName(diagnostic.severity), level: diagnostic.severity ?? 0, location: Location.create(this.doc.uri, diagnostic.range) }); } } } let buf = this.nvim.createBuffer(this.bufnr); buf.setVar("coc_diagnostic_info", info, true); buf.setVar("coc_diagnostic_map", items, true); this.nvim.call("coc#util#do_autocmd", ["CocDiagnosticChange"], true); } showVirtualText(lnum) { let { _config: config } = this; let { virtualText, virtualTextLevel } = config; if (!virtualText || lnum < 0) return; let { virtualTextPrefix, virtualTextLimitInOneLine, virtualTextCurrentLineOnly } = this._config; let { diagnostics, buffer } = this; if (virtualTextCurrentLineOnly) { diagnostics = diagnostics.filter((d2) => { let { start, end } = d2.range; return start.line <= lnum - 1 && end.line >= lnum - 1; }); } diagnostics.sort(sortDiagnostics); buffer.clearNamespace(virtualTextSrcId); let map = /* @__PURE__ */ new Map(); let opts = { text_align: config.virtualTextAlign, virt_text_win_col: config.virtualTextWinCol }; for (let i2 = diagnostics.length - 1; i2 >= 0; i2--) { let diagnostic = diagnostics[i2]; if (virtualTextLevel && diagnostic.severity && diagnostic.severity > virtualTextLevel) { continue; } let { line } = diagnostic.range.start; let highlight = getNameFromSeverity(diagnostic.severity) + "VirtualText"; let msg = getMessageString(diagnostic.message).split(/\n/).map((l2) => l2.trim()).filter((l2) => l2.length > 0).slice(0, this._config.virtualTextLines).join(this._config.virtualTextLineSeparator); let arr = map.get(line) ?? []; const formattedDiagnostic = formatDiagnostic(this._config.virtualTextFormat, { ...diagnostic, message: msg }); arr.unshift([virtualTextPrefix + stripAnsiColoring(formattedDiagnostic), highlight]); map.set(line, arr); } for (let [line, blocks] of map.entries()) { buffer.setVirtualText(virtualTextSrcId, line, blocks.slice(0, virtualTextLimitInOneLine), opts); } } updateHighlights(collection, diagnostics) { if (!diagnostics.length) { this.clearHighlight(collection); } else { let items = this.getHighlightItems(diagnostics); let priority = this._config.highlightPriority; this.buffer.updateHighlights(NAMESPACE + collection, items, { priority }); } } /** * Refresh all diagnostics */ async _refresh(dirtyOnly) { let info = await this.getDiagnosticInfo(!dirtyOnly); if (!info || info.winid == -1 || !this.config.enable) return; let { _dirties } = this; if (dirtyOnly) { let map = /* @__PURE__ */ new Map(); for (let [key, diagnostics] of this.diagnosticsMap.entries()) { if (!_dirties.has(key)) continue; map.set(key, diagnostics); } this.refresh(map, info); } else { this.refresh(this.diagnosticsMap, info); } } getHighlightItems(diagnostics) { let res = []; for (let i2 = 0; i2 < Math.min(this._config.highlightLimit, diagnostics.length); i2++) { let diagnostic = diagnostics[i2]; let hlGroups2 = getHighlightGroup(diagnostic); for (const hlGroup of hlGroups2) { this.doc.addHighlights(res, hlGroup, diagnostic.range); } } res.sort((a2, b2) => { if (a2.lnum != b2.lnum) return a2.lnum - b2.lnum; if (a2.colStart != b2.colStart) return a2.colStart - b2.colStart; return hlGroups.indexOf(b2.hlGroup) - hlGroups.indexOf(a2.hlGroup); }); return res; } /** * Clear all diagnostics from UI. */ clear() { let { nvim } = this; let collections = Array.from(this.diagnosticsMap.keys()); this.refreshHighlights.clear(); this._dirties.clear(); if (this.displayByAle) { for (let collection of collections) { this.nvim.call(aleMethod, [this.bufnr, collection, []], true); } } else { nvim.pauseNotification(); this.buffer.deleteVar("coc_diagnostic_info"); this.buffer.deleteVar("coc_diagnostic_map"); for (let collection of collections) { this.clearHighlight(collection); this.clearSigns(collection); } if (this._config.virtualText) { this.buffer.clearNamespace(virtualTextSrcId); } nvim.resumeNotification(true, true); } } /** * Get diagnostics at cursor position. */ getDiagnosticsAt(pos, checkCurrentLine) { let diagnostics = []; for (let diags of this.diagnosticsMap.values()) { if (checkCurrentLine) { diagnostics.push(...diags.filter((o2) => lineInRange(pos.line, o2.range))); } else { diagnostics.push(...diags.filter((o2) => positionInRange(pos, o2.range) == 0)); } } diagnostics.sort(sortDiagnostics); return diagnostics; } getDiagnosticsAtPosition(pos) { let { config, doc } = this; let res = this.getDiagnosticsAt(pos, config.checkCurrentLine); if (config.checkCurrentLine || res.length) return res; let total = doc.getline(pos.line).length; if (pos.character + 1 == total) { res = this.getDiagnosticsAt(Position.create(pos.line, pos.character + 1), false); if (res.length) return res; } if (pos.line === doc.lineCount - 1 && pos.character == 0) { pos = Position.create(pos.line + 1, 0); res = this.getDiagnosticsAt(pos, true); } return res; } async isEnabled() { if (this._disposed || !this.config.enable) return false; let buf = this.nvim.createBuffer(this.bufnr); let res = await buf.getVar("coc_diagnostic_disable"); return res != 1; } dispose() { this.clear(); this.diagnosticsMap.clear(); this._onDidRefresh.dispose(); this._disposed = true; } }; } }); // src/diagnostic/collection.ts var HintTags, DiagnosticCollection; var init_collection = __esm({ "src/diagnostic/collection.ts"() { "use strict"; init_main(); init_esm(); init_array(); init_protocol(); init_workspace(); HintTags = [DiagnosticTag.Deprecated, DiagnosticTag.Unnecessary]; DiagnosticCollection = class { constructor(name2, onDispose) { this.name = name2; this.onDispose = onDispose; } name; onDispose; diagnosticsMap = /* @__PURE__ */ new Map(); _onDidDiagnosticsChange = new import_node4.Emitter(); onDidDiagnosticsChange = this._onDidDiagnosticsChange.event; set(entries, diagnostics) { let diagnosticsPerFile = /* @__PURE__ */ new Map(); if (!Array.isArray(entries)) { let doc = workspace_default.getDocument(entries); let uri = doc ? doc.uri : entries; diagnosticsPerFile.set(uri, diagnostics || []); } else { for (let item of entries) { let [uri, diagnostics2] = item; let doc = workspace_default.getDocument(uri); uri = doc ? doc.uri : uri; if (diagnostics2 == null) { diagnostics2 = []; } else { diagnostics2 = (diagnosticsPerFile.get(uri) || []).concat(diagnostics2); } diagnosticsPerFile.set(uri, diagnostics2); } } for (let item of diagnosticsPerFile) { let [uri, diagnostics2] = item; uri = u.parse(uri).toString(); diagnostics2.forEach((o2) => { o2.range = o2.range ?? Range.create(0, 0, 0, 0); o2.message = o2.message ?? ""; o2.source = o2.source || this.name; if (!o2.severity && Array.isArray(o2.tags) && intersect(o2.tags, HintTags)) { o2.severity = DiagnosticSeverity.Hint; } }); this.diagnosticsMap.set(uri, diagnostics2); this._onDidDiagnosticsChange.fire(uri); } } delete(uri) { this.diagnosticsMap.delete(uri); this._onDidDiagnosticsChange.fire(uri); } clear() { let uris = Array.from(this.diagnosticsMap.keys()); uris = uris.filter((uri) => this.diagnosticsMap.get(uri).length > 0); this.diagnosticsMap.clear(); for (let uri of uris) { this._onDidDiagnosticsChange.fire(uri); } } forEach(callback, thisArg) { for (let uri of this.diagnosticsMap.keys()) { let diagnostics = this.diagnosticsMap.get(uri); callback.call(thisArg, uri, diagnostics, this); } } entries() { return this.diagnosticsMap.entries(); } get(uri) { let arr = this.diagnosticsMap.get(uri); return arr == null ? [] : arr.slice(); } has(uri) { return this.diagnosticsMap.has(uri); } dispose() { this.clear(); if (this.onDispose) this.onDispose(); this._onDidDiagnosticsChange.dispose(); } }; } }); // src/diagnostic/manager.ts var DiagnosticManager, manager_default; var init_manager = __esm({ "src/diagnostic/manager.ts"() { "use strict"; init_main(); init_esm(); init_commands(); init_events(); init_util(); init_array(); init_constants(); init_fs(); init_position(); init_protocol(); init_string(); init_window(); init_workspace(); init_buffer(); init_collection(); init_util3(); DiagnosticManager = class { _onDidRefresh = new import_node4.Emitter(); onDidRefresh = this._onDidRefresh.event; enabled = true; buffers; collections = []; disposables = []; messageTimer; /** * @internal */ init() { commands_default.register({ id: "workspace.diagnosticRelated", execute: () => this.jumpRelated() }, false, "jump to related locations of current diagnostic."); this.defineSigns(workspace_default.initialConfiguration.get("diagnostic")); let globalValue = workspace_default.initialConfiguration.inspect("diagnostic.enable").globalValue; this.enabled = globalValue !== false; this.buffers = workspace_default.registerBufferSync((doc) => { let buf = new DiagnosticBuffer(this.nvim, doc); buf.onDidRefresh((diagnostics2) => { this._onDidRefresh.fire({ diagnostics: diagnostics2, uri: buf.uri, bufnr: buf.bufnr }); }); let diagnostics = this.getDiagnostics(buf); if (Object.keys(diagnostics).length > 0 && buf.config.autoRefresh) { void buf.reset(diagnostics); } return buf; }); workspace_default.onDidChangeConfiguration((e2) => { if (this.buffers && e2.affectsConfiguration("diagnostic")) { for (let item of this.buffers.items) { item.loadConfiguration(); } } }, null, this.disposables); let config = workspace_default.initialConfiguration.get("diagnostic"); events_default.on("CursorMoved", (bufnr, cursor) => { if (this.messageTimer) clearTimeout(this.messageTimer); this.messageTimer = setTimeout(() => { let buf = this.buffers.getItem(bufnr); if (buf == null || buf.dirty) return; void Promise.allSettled([ buf.onCursorHold(cursor[0], cursor[1]), buf.showVirtualTextCurrentLine(cursor[0]) ]); }, config.messageDelay); }, null, this.disposables); events_default.on(["InsertEnter", "BufEnter"], () => { clearTimeout(this.messageTimer); }, null, this.disposables); events_default.on("InsertLeave", (bufnr) => { let buf = this.buffers.getItem(bufnr); if (!buf || buf.config.refreshOnInsertMode) return; for (let buf2 of this.buffers.items) { buf2.refreshHighlights(); } }, null, this.disposables); events_default.on("BufWinEnter", (bufnr) => { let buf = this.buffers.getItem(bufnr); if (buf) buf.refreshHighlights(); }, null, this.disposables); this.checkConfigurationErrors(); workspace_default.configurations.onError((ev) => { const collection = this.create("config"); collection.set(ev.uri, ev.diagnostics); }, null, this.disposables); } /** * @internal */ checkConfigurationErrors() { const errors = workspace_default.configurations.errors; if (!isFalsyOrEmpty(errors)) { const collection = this.create("config"); for (let [uri, diagnostics] of errors.entries()) { let fsPath2 = u.parse(uri).fsPath; void window_default.showErrorMessage(`Error detected for config file ${fsPath2}, please check diagnostics list.`); collection.set(uri, diagnostics); } } } /** * @internal */ defineSigns(config) { let { nvim } = this; nvim.pauseNotification(); for (let kind of ["Error", "Warning", "Info", "Hint"]) { let cmd = `sign define Coc${kind} linehl=Coc${kind}Line`; let signText = config[kind.toLowerCase() + "Sign"]; if (signText) cmd += ` texthl=Coc${kind}Sign text=${signText}`; if (!isVim && config.enableHighlightLineNumber) cmd += ` numhl=Coc${kind}Sign`; nvim.command(cmd, true); } nvim.resumeNotification(false, true); } /** * @internal */ getItem(bufnr) { return this.buffers.getItem(bufnr); } /** * @internal * Fill location list with diagnostics */ async setLocationlist(bufnr) { let doc = workspace_default.getAttachedDocument(bufnr); let buf = this.getItem(doc.bufnr); let diagnostics = []; for (let diags of Object.values(this.getDiagnostics(buf))) { diagnostics.push(...diags); } let items = buf.toLocationListItems(diagnostics); await this.nvim.call("coc#ui#setloclist", [0, items, " ", "Diagnostics of coc"]); } /** * Create collection by name */ create(name2) { let collection = this.getCollectionByName(name2); if (collection) return collection; collection = new DiagnosticCollection(name2, () => { let idx = this.collections.findIndex((o2) => o2 == collection); if (idx !== -1) this.collections.splice(idx, 1); }); this.collections.push(collection); collection.onDidDiagnosticsChange((uri) => { let buf = this.buffers?.getItem(uri); if (buf && buf.config.autoRefresh) void buf.update(name2, this.getDiagnosticsByCollection(buf, collection)); }); return collection; } /** * @internal * Get diagnostics ranges from document */ getSortedRanges(uri, minLevel, severity) { let collections = this.getCollections(uri); let res = []; let level2 = severity ? severityLevel(severity) : 0; for (let collection of collections) { let diagnostics = collection.get(uri); if (level2) { diagnostics = diagnostics.filter((o2) => o2.severity == level2); } else { if (minLevel && minLevel < DiagnosticSeverity.Hint) { diagnostics = diagnostics.filter((o2) => { return o2.severity && o2.severity > minLevel ? false : true; }); } } let ranges = diagnostics.map((o2) => o2.range); res.push(...ranges); } res.sort((a2, b2) => { if (a2.start.line != b2.start.line) { return a2.start.line - b2.start.line; } return a2.start.character - b2.start.character; }); return res; } /** * Get readonly diagnostics for a buffer or URI */ getDiagnostics(buffer) { let res = {}; let buf = typeof buffer === "string" ? this.buffers?.getItem(buffer) : buffer; if (!buf) return res; for (let collection of this.collections) { if (!collection.has(buf.uri)) continue; res[collection.name] = this.getDiagnosticsByCollection(buf, collection); } return res; } /** * @internal * Get filtered diagnostics by collection. */ getDiagnosticsByCollection(buf, collection) { let { level: level2, showUnused, showDeprecated } = buf.config; let items = collection.get(buf.uri) ?? []; if (items.length) { items = items.filter((d2) => { if (level2 && d2.severity && d2.severity > level2) { return false; } if (!showUnused && d2.tags?.includes(DiagnosticTag.Unnecessary)) { return false; } if (!showDeprecated && d2.tags?.includes(DiagnosticTag.Deprecated)) { return false; } return true; }); items.sort((a2, b2) => { return comparePosition(a2.range.start, b2.range.start); }); } return items; } getDiagnosticsInRange(document2, range2) { let res = []; for (let collection of this.collections) { for (let item of collection.get(document2.uri) ?? []) { if (!range2 || rangeIntersect(item.range, range2)) { res.push(item); } } } return res; } /** * @internal * Show diagnostics under cursor in preview window */ async preview() { let diagnostics = await this.getCurrentDiagnostics(); if (diagnostics.length == 0) { this.nvim.command("pclose", true); return; } let lines = []; for (let diagnostic of diagnostics) { let { source, code, severity, message } = diagnostic; let s2 = getSeverityName(severity)[0]; lines.push(`[${source}${code ? " " + code : ""}] [${s2}]`); lines.push(...getMessageString(message).split(/\r?\n/)); lines.push(""); } this.nvim.call("coc#ui#preview_info", [lines, "txt"], true); } async prepareJump(severity) { let bufnr = await this.nvim.call("bufnr", ["%"]); let item = this.buffers.getItem(bufnr); if (!item) return; let ranges = this.getSortedRanges(item.uri, item.config.level, severity); if (isFalsyOrEmpty(ranges)) return; let curpos = await window_default.getCursorPosition(); let wrapscan = await this.nvim.getOption("wrapscan"); return { item, curpos, wrapscan: wrapscan != 0, ranges }; } async showVirtualTextAndResetTimer(item, pos) { await item.showVirtualTextCurrentLine(pos.line + 1); if (this.messageTimer) clearTimeout(this.messageTimer); } /** * @internal * Jump to previous diagnostic position */ async jumpPrevious(severity) { let result = await this.prepareJump(severity); if (!result) return; let { curpos, item, wrapscan, ranges } = result; let pos; for (let i2 = ranges.length - 1; i2 >= 0; i2--) { let end = ranges[i2].end; if (comparePosition(end, curpos) < 0) { pos = ranges[i2].start; break; } } if (!pos && wrapscan) pos = ranges[ranges.length - 1].start; if (pos) { await window_default.moveTo(pos); await item.echoMessage(false, pos); await this.showVirtualTextAndResetTimer(item, pos); } else { void window_default.showWarningMessage(`No more diagnostic before cursor position`); } } /** * @internal * Jump to next diagnostic position */ async jumpNext(severity) { let result = await this.prepareJump(severity); if (!result) return; let { curpos, item, wrapscan, ranges } = result; let pos; for (let i2 = 0; i2 <= ranges.length - 1; i2++) { let start = ranges[i2].start; if (comparePosition(start, curpos) > 0) { let arr = await this.nvim.call("coc#util#valid_position", [start.line, start.character]); if ((arr[0] != start.line || arr[1] != start.character) && comparePosition(Position.create(arr[0], arr[1]), curpos) <= 0) { continue; } pos = Position.create(arr[0], arr[1]); break; } } if (!pos && wrapscan) pos = ranges[0].start; if (pos) { await window_default.moveTo(pos); await item.echoMessage(false, pos); await this.showVirtualTextAndResetTimer(item, pos); } else { void window_default.showWarningMessage(`No more diagnostic after cursor position`); } } /** * Get all sorted diagnostics */ async getDiagnosticList() { let res = []; let config = workspace_default.getConfiguration("diagnostic"); let level2 = severityLevel(config.get("level", "hint")); for (let collection of this.collections) { for (let [uri, diagnostics] of collection.entries()) { if (diagnostics.length == 0) continue; let u2 = u.parse(uri); let doc = workspace_default.getDocument(uri); let lines = doc && doc.attached ? doc.textDocument.lines : void 0; if (!lines && u2.scheme === "file") { try { const max = diagnostics.reduce((p2, c2) => { return Math.max(c2.range.end.line, p2); }, 0); lines = await readFileLines(u2.fsPath, 0, max); } catch (e2) { } } for (let diagnostic of diagnostics) { if (diagnostic.severity && diagnostic.severity > level2) continue; let { start, end } = diagnostic.range; let o2 = { file: u2.fsPath, bufnr: doc ? doc.bufnr : void 0, lnum: start.line + 1, end_lnum: end.line + 1, col: Array.isArray(lines) ? byteIndex(lines[start.line] ?? "", start.character) + 1 : start.character + 1, end_col: Array.isArray(lines) ? byteIndex(lines[end.line] ?? "", end.character) + 1 : end.character + 1, code: diagnostic.code, source: diagnostic.source ?? collection.name, message: getMessageString(diagnostic.message), severity: getSeverityName(diagnostic.severity), level: diagnostic.severity ?? 0, location: Location.create(uri, diagnostic.range) }; res.push(o2); } } } res.sort((a2, b2) => { if (a2.level !== b2.level) { return a2.level - b2.level; } if (a2.file !== b2.file) { return a2.file > b2.file ? 1 : -1; } else { if (a2.lnum != b2.lnum) { return a2.lnum - b2.lnum; } return a2.col - b2.col; } }); return res; } async getBufferAndPosition() { let [bufnr, lnum, col] = await this.nvim.eval(`[bufnr("%"),line('.'),col('.')]`); let item = this.buffers.getItem(bufnr); if (!item) return; let pos = item.doc.getPosition(lnum, col); return [item, pos]; } async getCurrentDiagnostics() { let res = await this.getBufferAndPosition(); if (!res) return; return res[0].getDiagnosticsAtPosition(res[1]); } /** * @internal */ async echoCurrentMessage(target) { let res = await this.getBufferAndPosition(); if (!res) return; let [item, position] = res; await item.echoMessage(false, position, target); } /** * @internal */ async jumpRelated() { let locations = await this.relatedInformation(); if (locations.length == 1) { await workspace_default.jumpTo(locations[0].uri, locations[0].range.start); } else if (locations.length > 1) { await workspace_default.showLocations(locations); } else { void window_default.showWarningMessage("No related information found."); } } /** * @internal */ async relatedInformation() { let diagnostics = await this.getCurrentDiagnostics(); let diagnostic = diagnostics.find((o2) => o2.relatedInformation != null); let locations = diagnostic ? diagnostic.relatedInformation.map((o2) => o2.location) : []; return locations; } /** * @internal */ reset() { clearTimeout(this.messageTimer); this.buffers.reset(); for (let collection of this.collections) { collection.dispose(); } this.collections = []; } /** * @internal */ dispose() { clearTimeout(this.messageTimer); this.buffers.dispose(); for (let collection of this.collections) { collection.dispose(); } this.collections = []; disposeAll(this.disposables); } get nvim() { return workspace_default.nvim; } getCollectionByName(name2) { return this.collections.find((o2) => o2.name == name2); } getCollections(uri) { return this.collections.filter((c2) => c2.has(uri)); } /** * @internal */ async toggleDiagnostic(enable) { this.enabled = enable == void 0 ? !this.enabled : enable != 0; await Promise.allSettled(this.buffers.items.map((buf) => { return buf.setState(this.enabled); })); } /** * @internal */ async toggleDiagnosticBuffer(bufnr, enable) { bufnr = bufnr ?? workspace_default.bufnr; let buf = this.buffers.getItem(bufnr); if (buf) { let isEnabled = enable == void 0 ? await buf.isEnabled() : enable == 0; await buf.doc.buffer.setVar("coc_diagnostic_disable", isEnabled ? 1 : 0); await buf.setState(!isEnabled); } } /** * @internal * Refresh diagnostics by uri or bufnr */ async refreshBuffer(uri) { let buf = this.buffers.getItem(uri); if (!buf) return false; await buf.reset(this.getDiagnostics(buf)); return true; } /** * @internal * Force diagnostics refresh. */ async refresh(bufnr) { let items; if (!bufnr) { items = this.buffers.items; } else { let item = this.buffers.getItem(bufnr); items = item ? [item] : []; } for (let item of items) { await this.refreshBuffer(item.uri); } } }; manager_default = new DiagnosticManager(); } }); // src/provider/manager.ts function addLocation(arr, location) { if (Location.is(location)) { let { range: range2, uri } = location; if (arr.find((o2) => o2.uri == uri && equals(o2.range, range2)) != null) return; arr.push(location); } else if (location && typeof location.targetUri === "string") { let { targetUri, targetSelectionRange, targetRange } = location; if (arr.find((o2) => o2.uri == targetUri && equals(o2.range, targetSelectionRange)) != null) return; arr.push({ uri: targetUri, range: targetSelectionRange, targetRange }); } } var logger11, Manager; var init_manager2 = __esm({ "src/provider/manager.ts"() { "use strict"; init_main(); init_logger(); init_errors(); init_extensionId(); init_object(); init_protocol(); init_workspace(); logger11 = createLogger("provider-manager"); Manager = class { providers = /* @__PURE__ */ new Set(); hasProvider(document2) { return this.getProvider(document2) != null; } addProvider(item) { if (!item.extension) { item.extension = getExtensionId(item.provider); } if (!item.provider.hasOwnProperty("__extensionName")) { Object.defineProperty(item.provider, "__extensionName", { get: () => item.extension, enumerable: true }); } this.providers.add(item); return import_node4.Disposable.create(() => { this.providers.delete(item); }); } handleResults(results, name2, items, token) { let serverCancelError; results.forEach((res, i2) => { if (res.status === "rejected") { if (!shouldIgnore(res.reason)) { let extension = items?.[i2]?.extension; logger11.error(`Provider error on ${name2}${extension ? ` [extension: ${extension}]` : ""}:`, res.reason); } if (token && !token.isCancellationRequested && isCancellationError(res.reason)) { serverCancelError = res.reason; } } }); if (serverCancelError) throw serverCancelError; } getProvider(document2) { let currScore = 0; let providerItem; for (let item of this.providers) { let { selector, priority } = item; let score3 = workspace_default.match(selector, document2); if (score3 == 0) continue; if (typeof priority == "number" && priority > 0) { score3 = score3 + priority; } if (score3 < currScore) continue; currScore = score3; providerItem = item; } return providerItem; } getProvideByExtension(document2, extension) { for (let item of this.providers) { if (item.provider["__extensionName"] === extension) { return item; } } logger11.warn(`User-specified formatter not found for ${document2.languageId}:`, extension); return void 0; } getFormatProvider(document2) { const userChoice = workspace_default.getConfiguration("coc.preferences", document2).get("formatterExtension"); if (userChoice) { let provider = this.getProvideByExtension(document2, userChoice); if (provider) return provider; } return this.getProvider(document2); } getProviderById(id2) { let item = Array.from(this.providers).find((o2) => o2.id == id2); return item ? item.provider : null; } getProviders(document2) { let items = Array.from(this.providers); items = items.filter((item) => workspace_default.match(item.selector, document2) > 0); return items.sort((a2, b2) => workspace_default.match(b2.selector, document2) - workspace_default.match(a2.selector, document2)); } addLocation(locations, location) { if (Array.isArray(location)) { for (let loc of location) { if (Location.is(loc)) { addLocation(locations, loc); } else if (loc && typeof loc.targetUri === "string") { addLocation(locations, loc); } } } else if (Location.is(location)) { addLocation(locations, location); } } }; } }); // src/provider/callHierarchyManager.ts var CallHierarchyManager; var init_callHierarchyManager = __esm({ "src/provider/callHierarchyManager.ts"() { "use strict"; init_manager2(); CallHierarchyManager = class extends Manager { register(selector, provider) { return this.addProvider({ id: crypto.randomUUID(), selector, provider }); } async prepareCallHierarchy(document2, position, token) { let item = this.getProvider(document2); if (!item) return null; let { provider } = item; return await Promise.resolve(provider.prepareCallHierarchy(document2, position, token)); } async provideCallHierarchyOutgoingCalls(document2, item, token) { let providerItem = this.getProvider(document2); if (!providerItem) return null; let { provider } = providerItem; return await Promise.resolve(provider.provideCallHierarchyOutgoingCalls(item, token)); } async provideCallHierarchyIncomingCalls(document2, item, token) { let providerItem = this.getProvider(document2); if (!providerItem) return null; let { provider } = providerItem; return await Promise.resolve(provider.provideCallHierarchyIncomingCalls(item, token)); } }; } }); // src/provider/codeActionManager.ts function codeActionContains(kinds, kind) { return kinds.some((k) => kind === k || kind.startsWith(k + ".")); } function checkAction(only, action) { if (isFalsyOrEmpty(only)) return true; if (Command.is(action)) return false; return codeActionContains(only, action.kind); } var CodeActionManager; var init_codeActionManager = __esm({ "src/provider/codeActionManager.ts"() { "use strict"; init_main(); init_array(); init_is(); init_lodash(); init_manager2(); CodeActionManager = class extends Manager { register(selector, provider, clientId, codeActionKinds) { return this.addProvider({ id: crypto.randomUUID(), selector, provider, kinds: codeActionKinds, clientId }); } async provideCodeActions(document2, range2, context, token) { let providers = this.getProviders(document2); const only = isFalsyOrEmpty(context.only) ? void 0 : context.only; if (only) { providers = providers.filter((p2) => { if (Array.isArray(p2.kinds) && !p2.kinds.some((kind) => codeActionContains(only, kind))) { return false; } return true; }); } let res = []; const titles = []; let results = await Promise.allSettled(providers.map((item) => { let { provider, id: id2 } = item; let fn = async () => { let actions = await Promise.resolve(provider.provideCodeActions(document2, range2, context, token)); let extensionName = provider["__extensionName"]; if (isFalsyOrEmpty(actions)) return; for (let action of actions) { if (titles.includes(action.title) || !checkAction(only, action)) continue; if (Command.is(action)) { let codeAction = { title: action.title, command: action, providerId: id2, extensionName }; res.push(codeAction); } else { res.push(Object.assign({ providerId: id2 }, action)); } titles.push(action.title); } }; return fn(); })); this.handleResults(results, "provideCodeActions", providers); return res; } async resolveCodeAction(codeAction, token) { if (codeAction.edit != null || codeAction.providerId == null) return codeAction; let provider = this.getProviderById(codeAction.providerId); if (!provider || !func(provider.resolveCodeAction)) return codeAction; let resolved = await Promise.resolve(provider.resolveCodeAction(omit(codeAction, ["providerId"]), token)); return resolved ?? codeAction; } }; } }); // src/provider/codeLensManager.ts var CodeLensManager; var init_codeLensManager = __esm({ "src/provider/codeLensManager.ts"() { "use strict"; init_lodash(); init_manager2(); init_is(); CodeLensManager = class extends Manager { register(selector, provider) { return this.addProvider({ id: crypto.randomUUID(), selector, provider }); } async provideCodeLenses(document2, token) { let providers = this.getProviders(document2); let codeLens = []; let results = await Promise.allSettled(providers.map((item) => { let { provider, id: id2 } = item; return Promise.resolve(provider.provideCodeLenses(document2, token)).then((res) => { if (Array.isArray(res)) { for (let item2 of res) { codeLens.push(Object.assign({ source: id2 }, item2)); } } }); })); this.handleResults(results, "provideCodeLenses", providers); return codeLens; } async resolveCodeLens(codeLens, token) { if (isCommand(codeLens.command)) return codeLens; let provider = this.getProviderById(codeLens.source); if (!provider || typeof provider.resolveCodeLens != "function") { return codeLens; } let res = await Promise.resolve(provider.resolveCodeLens(omit(codeLens, ["source"]), token)); Object.assign(codeLens, res); return codeLens; } }; } }); // src/provider/declarationManager.ts var DeclarationManager; var init_declarationManager = __esm({ "src/provider/declarationManager.ts"() { "use strict"; init_manager2(); DeclarationManager = class extends Manager { register(selector, provider) { return this.addProvider({ id: crypto.randomUUID(), selector, provider }); } async provideDeclaration(document2, position, token) { const providers = this.getProviders(document2); let locations = []; const results = await Promise.allSettled(providers.map((item) => { return Promise.resolve(item.provider.provideDeclaration(document2, position, token)).then((location) => { this.addLocation(locations, location); }); })); this.handleResults(results, "provideDeclaration", providers); return locations; } }; } }); // src/provider/definitionManager.ts var DefinitionManager; var init_definitionManager = __esm({ "src/provider/definitionManager.ts"() { "use strict"; init_main(); init_manager2(); DefinitionManager = class extends Manager { register(selector, provider) { return this.addProvider({ id: crypto.randomUUID(), selector, provider }); } async provideDefinition(document2, position, token) { const providers = this.getProviders(document2); let locations = []; const results = await Promise.allSettled(providers.map((item) => { return Promise.resolve(item.provider.provideDefinition(document2, position, token)).then((location) => { this.addLocation(locations, location); }); })); this.handleResults(results, "provideDefinition"); return locations; } async provideDefinitionLinks(document2, position, token) { const providers = this.getProviders(document2); let locations = []; const results = await Promise.allSettled(providers.map((item) => { return Promise.resolve(item.provider.provideDefinition(document2, position, token)).then((location) => { if (Array.isArray(location)) { location.forEach((loc) => { if (LocationLink.is(loc)) { locations.push(loc); } }); } }); })); this.handleResults(results, "provideDefinition"); return locations; } }; } }); // src/provider/documentColorManager.ts var DocumentColorManager; var init_documentColorManager = __esm({ "src/provider/documentColorManager.ts"() { "use strict"; init_object(); init_manager2(); DocumentColorManager = class extends Manager { register(selector, provider) { return this.addProvider({ id: crypto.randomUUID(), selector, provider }); } async provideDocumentColors(document2, token) { let items = this.getProviders(document2); let colors = []; const results = await Promise.allSettled(items.map((item) => { let { id: id2 } = item; return Promise.resolve(item.provider.provideDocumentColors(document2, token)).then((arr) => { let noCheck = colors.length == 0; if (Array.isArray(arr)) { for (let color of arr) { if (noCheck || !colors.some((o2) => equals(o2.range, color.range))) { colors.push(Object.assign({ source: id2 }, color)); } } } }); })); this.handleResults(results, "provideDocumentColors", items); return colors; } async provideColorPresentations(colorInformation, document2, token) { let providers = this.getProviders(document2); let { range: range2, color } = colorInformation; for (let item of providers) { let res = await Promise.resolve(item.provider.provideColorPresentations(color, { document: document2, range: range2 }, token)); if (res) return res; } return null; } }; } }); // src/provider/documentHighlightManager.ts var DocumentHighlightManager; var init_documentHighlightManager = __esm({ "src/provider/documentHighlightManager.ts"() { "use strict"; init_manager2(); DocumentHighlightManager = class extends Manager { register(selector, provider) { return this.addProvider({ id: crypto.randomUUID(), selector, provider }); } async provideDocumentHighlights(document2, position, token) { let items = this.getProviders(document2); let res = null; for (const item of items) { try { res = await Promise.resolve(item.provider.provideDocumentHighlights(document2, position, token)); if (res != null) break; } catch (e2) { this.handleResults([{ status: "rejected", reason: e2 }], "provideDocumentHighlights"); } } return res; } }; } }); // src/provider/documentLinkManager.ts function rangeToString(range2) { return `${range2.start.line},${range2.start.character},${range2.end.line},${range2.end.character}`; } var DocumentLinkManager; var init_documentLinkManager = __esm({ "src/provider/documentLinkManager.ts"() { "use strict"; init_lodash(); init_manager2(); DocumentLinkManager = class extends Manager { register(selector, provider) { return this.addProvider({ id: crypto.randomUUID(), selector, provider }); } async provideDocumentLinks(document2, token) { let items = this.getProviders(document2); if (items.length == 0) return null; const links2 = []; const seenRanges = /* @__PURE__ */ new Set(); const results = await Promise.allSettled(items.map(async (item) => { let { id: id2, provider } = item; const arr = await provider.provideDocumentLinks(document2, token); if (Array.isArray(arr)) { let check = links2.length > 0; arr.forEach((link) => { if (check) { const rangeString = rangeToString(link.range); if (!seenRanges.has(rangeString)) { seenRanges.add(rangeString); links2.push(Object.assign({ source: id2 }, link)); } } else { if (items.length > 1) seenRanges.add(rangeToString(link.range)); links2.push(Object.assign({ source: id2 }, link)); } }); } })); this.handleResults(results, "provideDocumentLinks"); return links2; } async resolveDocumentLink(link, token) { let provider = this.getProviderById(link.source); if (typeof provider?.resolveDocumentLink === "function") { let resolved = await Promise.resolve(provider.resolveDocumentLink(omit(link, ["source"]), token)); if (resolved) Object.assign(link, resolved); } return link; } }; } }); // src/provider/documentSymbolManager.ts function asDocumentSymbolTree(infos) { infos = infos.slice().sort((a2, b2) => { return compareRangesUsingStarts(a2.location.range, b2.location.range); }); const res = []; const parentStack = []; for (const info of infos) { const element = { name: toText(info.name), kind: info.kind, tags: toArray(info.tags), detail: "", range: info.location.range, selectionRange: info.location.range }; if (info.deprecated) { element.tags.push(SymbolTag.Deprecated); } while (true) { if (parentStack.length === 0) { parentStack.push(element); res.push(element); break; } const parent = parentStack[parentStack.length - 1]; if (rangeInRange(element.range, parent.range) && !equalsRange(parent.range, element.range)) { parent.children = toArray(parent.children); parent.children.push(element); parentStack.push(element); break; } parentStack.pop(); } } return res; } var DocumentSymbolManager; var init_documentSymbolManager = __esm({ "src/provider/documentSymbolManager.ts"() { "use strict"; init_main(); init_array(); init_position(); init_string(); init_manager2(); DocumentSymbolManager = class extends Manager { register(selector, provider) { return this.addProvider({ id: crypto.randomUUID(), selector, provider }); } getMetaData(document2) { let item = this.getProvider(document2); if (!item) return null; return item.provider.meta ?? {}; } async provideDocumentSymbols(document2, token) { let item = this.getProvider(document2); if (!item) return null; let symbols = []; let results = await Promise.allSettled([item].map((item2) => { return Promise.resolve(item2.provider.provideDocumentSymbols(document2, token)).then((result) => { if (!token.isCancellationRequested && !isFalsyOrEmpty(result)) { if (DocumentSymbol.is(result[0])) { symbols = result; } else { symbols = asDocumentSymbolTree(result); } } }); })); this.handleResults(results, "provideDocumentSymbols", [item]); return symbols; } }; } }); // src/provider/foldingRangeManager.ts function getParent(line, sortedRanges) { for (let r2 of sortedRanges) { if (line >= r2.startLine) { if (line <= r2.endLine) { return r2; } else { continue; } } else { break; } } return void 0; } var FoldingRangeManager; var init_foldingRangeManager = __esm({ "src/provider/foldingRangeManager.ts"() { "use strict"; init_manager2(); FoldingRangeManager = class extends Manager { register(selector, provider) { return this.addProvider({ id: crypto.randomUUID(), selector, provider }); } /** * Multiple providers can be registered for a language. In that case providers are asked in * parallel and the results are merged. * If multiple folding ranges start at the same position, only the range of the first registered provider is used. * If a folding range overlaps with an other range that has a smaller position, it is also ignored. */ async provideFoldingRanges(document2, context, token) { let items = this.getProviders(document2); let ranges = []; let results = await Promise.allSettled(items.map((item) => { return Promise.resolve(item.provider.provideFoldingRanges(document2, context, token)).then((res) => { if (Array.isArray(res) && res.length > 0) { if (ranges.length == 0) { ranges.push(...res); } else { for (let r2 of res) { let sp = getParent(r2.startLine, ranges); if (sp?.startLine === r2.startLine) continue; let ep = getParent(r2.endLine, ranges); if (sp === ep) { ranges.push(r2); } } } ranges.sort((a2, b2) => a2.startLine - b2.startLine); } }); })); this.handleResults(results, "provideFoldingRanges", items); return ranges; } }; } }); // src/provider/formatManager.ts var FormatManager; var init_formatManager = __esm({ "src/provider/formatManager.ts"() { "use strict"; init_manager2(); FormatManager = class extends Manager { register(selector, provider, priority) { return this.addProvider({ id: crypto.randomUUID(), selector, priority, provider }); } hasFormatProvider(document2) { return this.getFormatProvider(document2) != null; } async provideDocumentFormattingEdits(document2, options3, token) { let item = this.getFormatProvider(document2); if (!item) return null; let { provider } = item; let res = await Promise.resolve(provider.provideDocumentFormattingEdits(document2, options3, token)); if (Array.isArray(res)) { Object.defineProperty(res, "__extensionName", { get: () => item.provider["__extensionName"] }); } return res; } }; } }); // src/provider/formatRangeManager.ts var FormatRangeManager; var init_formatRangeManager = __esm({ "src/provider/formatRangeManager.ts"() { "use strict"; init_manager2(); FormatRangeManager = class extends Manager { register(selector, provider, priority) { return this.addProvider({ id: crypto.randomUUID(), selector, provider, priority }); } /** * Multiple providers can be registered for a language. In that case providers are sorted * by their {@link languages.match score} and the best-matching provider is used. Failure * of the selected provider will cause a failure of the whole operation. */ async provideDocumentRangeFormattingEdits(document2, range2, options3, token) { let item = this.getFormatProvider(document2); if (!item) return null; let { provider } = item; let res = await Promise.resolve(provider.provideDocumentRangeFormattingEdits(document2, range2, options3, token)); if (Array.isArray(res)) { Object.defineProperty(res, "__extensionName", { get: () => item.provider["__extensionName"] }); } return res; } /** * Provide formatting edits for multiple ranges, fallback to format each * range separately when the provider has no ranges support. * * @since 3.18.0 */ async provideDocumentRangesFormattingEdits(document2, ranges, options3, token) { let item = this.getFormatProvider(document2); if (!item) return null; let { provider } = item; let res; if (provider.provideDocumentRangesFormattingEdits) { res = await Promise.resolve(provider.provideDocumentRangesFormattingEdits(document2, ranges, options3, token)); } else { res = []; for (let range2 of ranges) { let edits = await Promise.resolve(provider.provideDocumentRangeFormattingEdits(document2, range2, options3, token)); if (Array.isArray(edits)) res.push(...edits); } } if (Array.isArray(res)) { Object.defineProperty(res, "__extensionName", { get: () => item.provider["__extensionName"] }); } return res; } }; } }); // src/provider/hoverManager.ts var HoverManager; var init_hoverManager = __esm({ "src/provider/hoverManager.ts"() { "use strict"; init_is(); init_object(); init_manager2(); HoverManager = class extends Manager { register(selector, provider) { return this.addProvider({ id: crypto.randomUUID(), selector, provider }); } async provideHover(document2, position, token) { let items = this.getProviders(document2); let hovers = []; let results = await Promise.allSettled(items.map((item) => { return Promise.resolve(item.provider.provideHover(document2, position, token)).then((hover) => { if (!isHover(hover)) return; if (hovers.findIndex((o2) => equals(o2.contents, hover.contents)) == -1) { hovers.push(hover); } }); })); this.handleResults(results, "provideHover"); return hovers; } }; } }); // src/provider/implementationManager.ts var ImplementationManager; var init_implementationManager = __esm({ "src/provider/implementationManager.ts"() { "use strict"; init_manager2(); ImplementationManager = class extends Manager { register(selector, provider) { return this.addProvider({ id: crypto.randomUUID(), selector, provider }); } async provideImplementations(document2, position, token) { const providers = this.getProviders(document2); let locations = []; const results = await Promise.allSettled(providers.map((item) => { return Promise.resolve(item.provider.provideImplementation(document2, position, token)).then((location) => { this.addLocation(locations, location); }); })); this.handleResults(results, "provideImplementations", providers); return locations; } }; } }); // src/provider/inlayHintManager.ts function sameHint(one, other) { if (comparePosition(one.position, other.position) !== 0) return false; return getLabel(one) === getLabel(other); } function isInlayHint(obj) { if (!obj || !Position.is(obj.position) || obj.label == null) return false; if (typeof obj.label !== "string") return Array.isArray(obj.label) && obj.label.every((p2) => typeof p2.value === "string"); return true; } function isValidInlayHint(hint, range2) { if (hint.label.length === 0 || Array.isArray(hint.label) && hint.label.every((part) => part.value.length === 0)) { logger12.warn("INVALID inlay hint, empty label", hint); return false; } if (!isInlayHint(hint)) { logger12.warn("INVALID inlay hint", hint); return false; } if (range2 && positionInRange(hint.position, range2) !== 0) { return false; } return true; } function getLabel(hint) { if (typeof hint.label === "string") return hint.label; return hint.label.map((o2) => o2.value).join(""); } var logger12, InlayHintManger; var init_inlayHintManager = __esm({ "src/provider/inlayHintManager.ts"() { "use strict"; init_main(); init_logger(); init_position(); init_manager2(); logger12 = createLogger("inlayHintManger"); InlayHintManger = class extends Manager { register(selector, provider) { return this.addProvider({ id: crypto.randomUUID(), selector, provider }); } /** * Multiple providers can be registered for a language. In that case providers are asked in * parallel and the results are merged. A failing provider (rejected promise or exception) will * not cause a failure of the whole operation. */ async provideInlayHints(document2, range2, token) { let items = this.getProviders(document2); let inlayHints = []; let results = await Promise.allSettled(items.map(async (item) => { let { id: id2, provider } = item; let hints = await Promise.resolve(provider.provideInlayHints(document2, range2, token)); if (!Array.isArray(hints) || token.isCancellationRequested) return; let noCheck = inlayHints.length == 0; for (let hint of hints) { if (!isValidInlayHint(hint, range2)) continue; if (!noCheck && inlayHints.findIndex((o2) => sameHint(o2, hint)) != -1) continue; inlayHints.push({ providerId: id2, ...hint }); } })); this.handleResults(results, "provideInlayHints", items, token); return inlayHints; } async resolveInlayHint(hint, token) { let provider = this.getProviderById(hint.providerId); if (!provider || typeof provider.resolveInlayHint !== "function" || hint.resolved === true) return hint; let res = await Promise.resolve(provider.resolveInlayHint(hint, token)); if (token.isCancellationRequested) return hint; return Object.assign(hint, res, { resolved: true }); } }; } }); // src/provider/inlineCompletionItemManager.ts var InlineCompletionItemManager; var init_inlineCompletionItemManager = __esm({ "src/provider/inlineCompletionItemManager.ts"() { "use strict"; init_array(); init_errors(); init_lodash(); init_manager2(); InlineCompletionItemManager = class extends Manager { register(selector, provider) { return this.addProvider({ id: crypto.randomUUID(), selector, provider }); } get isEmpty() { return this.providers.size === 0; } /** * Multiple providers can be registered for a language. In that case providers are asked in * parallel and the results are merged. A failing provider (rejected promise or exception) will * not cause a failure of the whole operation. */ async provideInlineCompletionItems(document2, position, context, token) { let providers = []; if (context.provider) { let item = this.getProvideByExtension(document2, context.provider); if (item) providers = [item]; } else { providers = this.getProviders(document2); } const items = []; const promise = Promise.allSettled(providers.map((item) => { let provider = item.provider; return Promise.resolve(provider.provideInlineCompletionItems(document2, position, omit(context, ["provider"]), token)).then((result) => { let list2 = Array.isArray(result) ? result : toArray(result?.items); for (let item2 of list2) { Object.defineProperty(item2, "provider", { get: () => provider["__extensionName"], enumerable: false }); items.push(item2); } }); })); let disposable; await Promise.race([new Promise((resolve) => { disposable = token.onCancellationRequested(() => { resolve(void 0); }); }), promise.then((results) => { if (!token.isCancellationRequested) this.handleResults(results, "provideInlineCompletionItems", providers); })]).catch(onUnexpectedError); if (disposable) disposable.dispose(); return items; } }; } }); // src/provider/nextEditManager.ts function itemKey(item) { let { textDocument, range: range2, newText } = item; return JSON.stringify([textDocument.uri, textDocument.version, range2, newText]); } var logger13, NextEditManager; var init_nextEditManager = __esm({ "src/provider/nextEditManager.ts"() { "use strict"; init_array(); init_errors(); init_logger(); init_manager2(); logger13 = createLogger("provider-next-edit"); NextEditManager = class extends Manager { owners = /* @__PURE__ */ new WeakMap(); register(selector, provider) { return this.addProvider({ id: crypto.randomUUID(), selector, provider }); } get isEmpty() { return this.providers.size === 0; } async provideNextEdits(document2, position, context, token) { let providers; if (context.provider) { let item = this.getProviders(document2).find((item2) => item2.provider["__extensionName"] === context.provider); providers = item ? [item] : []; } else { providers = this.getProviders(document2); } if (providers.length === 0 || token.isCancellationRequested) return []; let aggregate = Promise.all(providers.map(async (item) => { try { let result = await item.provider.provideNextEdits(document2, position, { triggerKind: context.triggerKind }, token); return Array.isArray(result) ? result : toArray(result?.items); } catch (err) { try { this.handleResults([{ status: "rejected", reason: err }], "provideNextEdits", [item], token); } catch (error) { void error; } return []; } })); let disposable; let results = await Promise.race([aggregate, new Promise((resolve) => { disposable = token.onCancellationRequested(() => resolve(void 0)); })]); disposable?.dispose(); if (!results) return []; if (token.isCancellationRequested) return []; let items = []; let seen = /* @__PURE__ */ new Set(); for (let i2 = 0; i2 < results.length; i2++) { for (let item of results[i2]) { if (!item || typeof item !== "object") continue; let candidate = item; if (!candidate.textDocument) continue; let key = itemKey(candidate); if (seen.has(key)) continue; seen.add(key); this.owners.set(candidate, providers[i2].provider); items.push(candidate); } } return items; } handleDidShow(item) { let provider = this.owners.get(item); if (!provider?.handleDidShowNextEdit) return; let result; try { result = provider.handleDidShowNextEdit(item); } catch (err) { this.handleDidShowError(err); return; } Promise.resolve(result).catch((err) => this.handleDidShowError(err)); } handleDidShowError(err) { if (!shouldIgnore(err)) { logger13.error("Error on handleDidShowNextEdit", err); } } }; } }); // src/provider/inlineValueManager.ts var InlineValueManager; var init_inlineValueManager = __esm({ "src/provider/inlineValueManager.ts"() { "use strict"; init_object(); init_manager2(); InlineValueManager = class extends Manager { register(selector, provider) { return this.addProvider({ id: crypto.randomUUID(), selector, provider }); } /** * Multiple providers can be registered for a language. In that case providers are asked in * parallel and the results are merged. A failing provider (rejected promise or exception) will * not cause a failure of the whole operation. */ async provideInlineValues(document2, viewPort, context, token) { const items = this.getProviders(document2); const values = []; const results = await Promise.allSettled(items.map((item) => { return Promise.resolve(item.provider.provideInlineValues(document2, viewPort, context, token)).then((arr) => { if (!Array.isArray(arr)) return; let noCheck = values.length === 0; for (let value of arr) { if (noCheck || values.every((o2) => !equals(o2, value))) { values.push(value); } } }); })); this.handleResults(results, "provideInlineValues", items); return values; } }; } }); // src/provider/linkedEditingRangeManager.ts var logger14, LinkedEditingRangeManager; var init_linkedEditingRangeManager = __esm({ "src/provider/linkedEditingRangeManager.ts"() { "use strict"; init_logger(); init_manager2(); logger14 = createLogger("linkedEditingManager"); LinkedEditingRangeManager = class extends Manager { register(selector, provider) { return this.addProvider({ id: crypto.randomUUID(), selector, provider }); } /** * Multiple providers can be registered for a language. In that case providers are sorted * by their {@link workspace.match score} and the best-matching provider that has a result is used. Failure * of the selected provider will cause a failure of the whole operation. */ async provideLinkedEditingRanges(document2, position, token) { let items = this.getProviders(document2); for (let item of items) { let res = await Promise.resolve(item.provider.provideLinkedEditingRanges(document2, position, token)); if (res != null) return res; } return null; } }; } }); // src/provider/onTypeFormatManager.ts var OnTypeFormatManager; var init_onTypeFormatManager = __esm({ "src/provider/onTypeFormatManager.ts"() { "use strict"; init_workspace(); init_manager2(); OnTypeFormatManager = class extends Manager { register(selector, provider, triggerCharacters) { return this.addProvider({ id: crypto.randomUUID(), selector, provider, triggerCharacters: triggerCharacters ?? [] }); } couldTrigger(document2, triggerCharacter) { for (let o2 of this.providers) { let { triggerCharacters, selector } = o2; if (workspace_default.match(selector, document2) > 0 && triggerCharacters.includes(triggerCharacter)) { return o2.provider; } } return null; } async onCharacterType(character, document2, position, token) { let items = this.getProviders(document2); let item = items.find((o2) => o2.triggerCharacters.includes(character)); if (!item) return null; let formatOpts = await workspace_default.getFormatOptions(document2.uri); return await Promise.resolve(item.provider.provideOnTypeFormattingEdits(document2, position, character, formatOpts, token)); } }; } }); // src/provider/referenceManager.ts var ReferenceManager; var init_referenceManager = __esm({ "src/provider/referenceManager.ts"() { "use strict"; init_manager2(); ReferenceManager = class extends Manager { register(selector, provider) { return this.addProvider({ id: crypto.randomUUID(), selector, provider }); } async provideReferences(document2, position, context, token) { const providers = this.getProviders(document2); let locations = []; const results = await Promise.allSettled(providers.map((item) => { return Promise.resolve(item.provider.provideReferences(document2, position, context, token)).then((location) => { this.addLocation(locations, location); }); })); this.handleResults(results, "provideReferences"); return locations; } }; } }); // src/provider/renameManager.ts var RenameManager; var init_renameManager = __esm({ "src/provider/renameManager.ts"() { "use strict"; init_manager2(); RenameManager = class extends Manager { register(selector, provider) { return this.addProvider({ id: crypto.randomUUID(), selector, provider }); } /** * Multiple providers can be registered for a language. In that case providers are sorted * by their {@link workspace.match score} and asked in sequence. The first provider producing a result * defines the result of the whole operation. */ async provideRenameEdits(document2, position, newName, token) { let items = this.getProviders(document2); let edit2 = null; for (const item of items) { try { edit2 = await Promise.resolve(item.provider.provideRenameEdits(document2, position, newName, token)); } catch (e2) { this.handleResults([{ status: "rejected", reason: e2 }], "provideRenameEdits"); } if (edit2 != null) break; } return edit2; } async prepareRename(document2, position, token) { let items = this.getProviders(document2); items = items.filter((o2) => typeof o2.provider.prepareRename === "function"); if (items.length === 0) return null; for (const item of items) { let res = await Promise.resolve(item.provider.prepareRename(document2, position, token)); if (res != null) return res; } return false; } }; } }); // src/provider/selectionRangeManager.ts var SelectionRangeManager; var init_selectionRangeManager = __esm({ "src/provider/selectionRangeManager.ts"() { "use strict"; init_object(); init_position(); init_manager2(); SelectionRangeManager = class extends Manager { register(selector, provider) { return this.addProvider({ id: crypto.randomUUID(), selector, provider }); } /** * Multiple providers can be registered for a language. In that case providers are asked in * parallel and the results are merged. A failing provider (rejected promise or exception) will * not cause a failure of the whole operation. */ async provideSelectionRanges(document2, positions, token) { let items = this.getProviders(document2); if (items.length === 0) return null; let selectionRangeResult = []; let results = await Promise.allSettled(items.map((item) => { return Promise.resolve(item.provider.provideSelectionRanges(document2, positions, token)).then((ranges) => { if (Array.isArray(ranges) && ranges.length > 0) { selectionRangeResult.push(ranges); } }); })); this.handleResults(results, "provideSelectionRanges"); if (selectionRangeResult.length === 0) return null; let selectionRanges = selectionRangeResult[0]; if (selectionRangeResult.length > 1) { for (let i2 = 1; i2 <= selectionRangeResult.length - 1; i2++) { let start = selectionRanges[0].range; let end = selectionRanges[selectionRanges.length - 1].range; let ranges = selectionRangeResult[i2]; let len = ranges.length; if (rangeInRange(end, ranges[0].range) && !equals(end, ranges[0].range)) { selectionRanges.push(...ranges); } else if (rangeInRange(ranges[len - 1].range, start) && !equals(ranges[len - 1].range, start)) { selectionRanges.unshift(...ranges); } } } for (let i2 = 0; i2 < selectionRanges.length - 1; i2++) { let r2 = selectionRanges[i2]; r2.parent = selectionRanges[i2 + 1]; } return selectionRanges; } }; } }); // src/provider/semanticTokensManager.ts var SemanticTokensManager; var init_semanticTokensManager = __esm({ "src/provider/semanticTokensManager.ts"() { "use strict"; init_manager2(); SemanticTokensManager = class extends Manager { register(selector, provider, legend) { return this.addProvider({ id: crypto.randomUUID(), selector, provider, legend }); } getLegend(document2) { const item = this.getProvider(document2); if (!item) return; return item.legend; } hasSemanticTokensEdits(document2) { let provider = this.getProvider(document2)?.provider; if (!provider) return false; return typeof provider.provideDocumentSemanticTokensEdits === "function"; } async provideDocumentSemanticTokens(document2, token) { let provider = this.getProvider(document2)?.provider; if (!provider || typeof provider.provideDocumentSemanticTokens !== "function") return null; return await Promise.resolve(provider.provideDocumentSemanticTokens(document2, token)); } async provideDocumentSemanticTokensEdits(document2, previousResultId, token) { let item = this.getProvider(document2); if (!item || typeof item.provider.provideDocumentSemanticTokensEdits !== "function") return null; return await Promise.resolve(item.provider.provideDocumentSemanticTokensEdits(document2, previousResultId, token)); } }; } }); // src/provider/semanticTokensRangeManager.ts var SemanticTokensRangeManager; var init_semanticTokensRangeManager = __esm({ "src/provider/semanticTokensRangeManager.ts"() { "use strict"; init_manager2(); SemanticTokensRangeManager = class extends Manager { register(selector, provider, legend) { return this.addProvider({ id: crypto.randomUUID(), selector, legend, provider }); } getLegend(document2) { const item = this.getProvider(document2); if (!item) return; return item.legend; } async provideDocumentRangeSemanticTokens(document2, range2, token) { let item = this.getProvider(document2); if (!item) return null; let { provider } = item; return await Promise.resolve(provider.provideDocumentRangeSemanticTokens(document2, range2, token)); } }; } }); // src/provider/signatureManager.ts var SignatureManager; var init_signatureManager = __esm({ "src/provider/signatureManager.ts"() { "use strict"; init_array(); init_manager2(); SignatureManager = class extends Manager { register(selector, provider, triggerCharacters) { triggerCharacters = isFalsyOrEmpty(triggerCharacters) ? [] : triggerCharacters; let characters = triggerCharacters.reduce((p2, c2) => p2.concat(c2.length == 1 ? [c2] : c2.split(/\s*/g)), []); return this.addProvider({ id: crypto.randomUUID(), selector, provider, triggerCharacters: characters }); } shouldTrigger(document2, triggerCharacter) { let items = this.getProviders(document2); if (items.length === 0) return false; for (let item of items) { if (item.triggerCharacters.includes(triggerCharacter)) { return true; } } return false; } /** * Multiple providers can be registered for a language. In that case providers are sorted * by their {@link languages.match score} and called sequentially until a provider returns a * valid result. */ async provideSignatureHelp(document2, position, token, context) { let items = this.getProviders(document2); for (const item of items) { let res = await Promise.resolve(item.provider.provideSignatureHelp(document2, position, token, context)); if (res && res.signatures && res.signatures.length > 0) return res; } return null; } }; } }); // src/provider/typeDefinitionManager.ts var TypeDefinitionManager; var init_typeDefinitionManager = __esm({ "src/provider/typeDefinitionManager.ts"() { "use strict"; init_manager2(); TypeDefinitionManager = class extends Manager { register(selector, provider) { return this.addProvider({ id: crypto.randomUUID(), selector, provider }); } async provideTypeDefinition(document2, position, token) { const providers = this.getProviders(document2); let locations = []; const results = await Promise.allSettled(providers.map((item) => { return Promise.resolve(item.provider.provideTypeDefinition(document2, position, token)).then((location) => { this.addLocation(locations, location); }); })); this.handleResults(results, "provideTypeDefinition"); return locations; } }; } }); // src/provider/typeHierarchyManager.ts var excludeKeys, TypeHierarchyManager; var init_typeHierarchyManager = __esm({ "src/provider/typeHierarchyManager.ts"() { "use strict"; init_lodash(); init_manager2(); excludeKeys = ["source"]; TypeHierarchyManager = class extends Manager { register(selector, provider) { return this.addProvider({ id: crypto.randomUUID(), selector, provider }); } /** * Multiple providers can be registered for a language. In that case providers are asked in * parallel and the results are merged. A failing provider (rejected promise or exception) will * not cause a failure of the whole operation. */ async prepareTypeHierarchy(document2, position, token) { const items = this.getProviders(document2); let hierarchyItems = []; let results = await Promise.allSettled(items.map((item) => { let { provider, id: id2 } = item; return (async () => { let arr = await Promise.resolve(provider.prepareTypeHierarchy(document2, position, token)); if (Array.isArray(arr)) { let noCheck = hierarchyItems.length === 0; arr.forEach((item2) => { if (noCheck || hierarchyItems.every((o2) => o2.name !== item2.name)) { hierarchyItems.push(Object.assign({ source: id2 }, item2)); } }); } })(); })); this.handleResults(results, "prepareTypeHierarchy", items); return hierarchyItems; } async provideTypeHierarchySupertypes(item, token) { let { source } = item; const provider = this.getProviderById(source); if (!provider) return []; return await Promise.resolve(provider.provideTypeHierarchySupertypes(omit(item, excludeKeys), token)).then((arr) => { if (Array.isArray(arr)) { return arr.map((item2) => { return Object.assign({ source }, item2); }); } return []; }); } async provideTypeHierarchySubtypes(item, token) { let { source } = item; const provider = this.getProviderById(source); if (!provider) return []; return await Promise.resolve(provider.provideTypeHierarchySubtypes(omit(item, excludeKeys), token)).then((arr) => { if (Array.isArray(arr)) { return arr.map((item2) => { return Object.assign({ source }, item2); }); } return []; }); } }; } }); // src/provider/workspaceSymbolsManager.ts var WorkspaceSymbolManager; var init_workspaceSymbolsManager = __esm({ "src/provider/workspaceSymbolsManager.ts"() { "use strict"; init_manager2(); WorkspaceSymbolManager = class extends Manager { register(provider) { return this.addProvider({ id: crypto.randomUUID(), selector: [{ language: "*" }], provider }); } async provideWorkspaceSymbols(query, token) { let entries = Array.from(this.providers); let infos = []; let results = await Promise.allSettled(entries.map((o2) => { let { id: id2, provider } = o2; return Promise.resolve(provider.provideWorkspaceSymbols(query, token)).then((list2) => { if (Array.isArray(list2)) { infos.push(...list2.map((item) => Object.assign({ source: id2 }, item))); } }); })); this.handleResults(results, "provideWorkspaceSymbols"); return infos; } async resolveWorkspaceSymbol(symbolInfo, token) { let provider = this.getProviderById(symbolInfo.source); if (!provider || typeof provider.resolveWorkspaceSymbol !== "function") return symbolInfo; return provider.resolveWorkspaceSymbol(symbolInfo, token); } hasProvider() { return this.providers.size > 0; } }; } }); // src/languages.ts var eventDebounce, ProviderName, Languages, languages_default; var init_languages = __esm({ "src/languages.ts"() { "use strict"; init_main(); init_manager(); init_callHierarchyManager(); init_codeActionManager(); init_codeLensManager(); init_declarationManager(); init_definitionManager(); init_documentColorManager(); init_documentHighlightManager(); init_documentLinkManager(); init_documentSymbolManager(); init_foldingRangeManager(); init_formatManager(); init_formatRangeManager(); init_hoverManager(); init_implementationManager(); init_inlayHintManager(); init_inlineCompletionItemManager(); init_nextEditManager(); init_inlineValueManager(); init_linkedEditingRangeManager(); init_onTypeFormatManager(); init_referenceManager(); init_renameManager(); init_selectionRangeManager(); init_semanticTokensManager(); init_semanticTokensRangeManager(); init_signatureManager(); init_typeDefinitionManager(); init_typeHierarchyManager(); init_workspaceSymbolsManager(); init_util(); init_is(); init_protocol(); init_string(); eventDebounce = getConditionValue(100, 1); ProviderName = /* @__PURE__ */ ((ProviderName3) => { ProviderName3["FormatOnType"] = "formatOnType"; ProviderName3["Rename"] = "rename"; ProviderName3["OnTypeEdit"] = "onTypeEdit"; ProviderName3["DocumentLink"] = "documentLink"; ProviderName3["DocumentColor"] = "documentColor"; ProviderName3["FoldingRange"] = "foldingRange"; ProviderName3["Format"] = "format"; ProviderName3["CodeAction"] = "codeAction"; ProviderName3["FormatRange"] = "formatRange"; ProviderName3["Hover"] = "hover"; ProviderName3["Signature"] = "signature"; ProviderName3["WorkspaceSymbols"] = "workspaceSymbols"; ProviderName3["DocumentSymbol"] = "documentSymbol"; ProviderName3["DocumentHighlight"] = "documentHighlight"; ProviderName3["Definition"] = "definition"; ProviderName3["Declaration"] = "declaration"; ProviderName3["TypeDefinition"] = "typeDefinition"; ProviderName3["Reference"] = "reference"; ProviderName3["Implementation"] = "implementation"; ProviderName3["CodeLens"] = "codeLens"; ProviderName3["SelectionRange"] = "selectionRange"; ProviderName3["CallHierarchy"] = "callHierarchy"; ProviderName3["SemanticTokens"] = "semanticTokens"; ProviderName3["SemanticTokensRange"] = "semanticTokensRange"; ProviderName3["LinkedEditing"] = "linkedEditing"; ProviderName3["InlayHint"] = "inlayHint"; ProviderName3["InlineValue"] = "inlineValue"; ProviderName3["InlineCompletion"] = "inlineCompletion"; ProviderName3["NextEdit"] = "nextEdit"; ProviderName3["TypeHierarchy"] = "typeHierarchy"; return ProviderName3; })(ProviderName || {}); Languages = class { _onDidSemanticTokensRefresh = new import_node4.Emitter(); _onDidFoldingRangeRefresh = new import_node4.Emitter(); _onDidInlayHintRefresh = new import_node4.Emitter(); _onDidCodeLensRefresh = new import_node4.Emitter(); _onDidColorsRefresh = new import_node4.Emitter(); _onDidLinksRefresh = new import_node4.Emitter(); /** * @internal */ onDidSemanticTokensRefresh = this._onDidSemanticTokensRefresh.event; /** * @internal */ onDidFoldingRangeRefresh = this._onDidFoldingRangeRefresh.event; /** * @internal */ onDidInlayHintRefresh = this._onDidInlayHintRefresh.event; /** * @internal */ onDidCodeLensRefresh = this._onDidCodeLensRefresh.event; /** * @internal */ onDidColorsRefresh = this._onDidColorsRefresh.event; /** * @internal */ onDidLinksRefresh = this._onDidLinksRefresh.event; onTypeFormatManager = new OnTypeFormatManager(); documentLinkManager = new DocumentLinkManager(); documentColorManager = new DocumentColorManager(); foldingRangeManager = new FoldingRangeManager(); renameManager = new RenameManager(); formatManager = new FormatManager(); codeActionManager = new CodeActionManager(); workspaceSymbolsManager = new WorkspaceSymbolManager(); formatRangeManager = new FormatRangeManager(); hoverManager = new HoverManager(); signatureManager = new SignatureManager(); documentSymbolManager = new DocumentSymbolManager(); documentHighlightManager = new DocumentHighlightManager(); definitionManager = new DefinitionManager(); declarationManager = new DeclarationManager(); typeDefinitionManager = new TypeDefinitionManager(); typeHierarchyManager = new TypeHierarchyManager(); referenceManager = new ReferenceManager(); implementationManager = new ImplementationManager(); codeLensManager = new CodeLensManager(); selectionRangeManager = new SelectionRangeManager(); callHierarchyManager = new CallHierarchyManager(); semanticTokensManager = new SemanticTokensManager(); semanticTokensRangeManager = new SemanticTokensRangeManager(); linkedEditingManager = new LinkedEditingRangeManager(); inlayHintManager = new InlayHintManger(); /** * @internal */ inlineCompletionItemManager = new InlineCompletionItemManager(); /** @internal */ nextEditManager = new NextEditManager(); inlineValueManager = new InlineValueManager(); /** * @internal */ registerDocumentRangeFormattingEditProvider; /** * @internal */ registerDocumentFormattingEditProvider; /** * @internal */ sources; /** * @internal */ registerReferenceProvider; constructor() { this.registerReferenceProvider = this.registerReferencesProvider; this.registerDocumentRangeFormattingEditProvider = this.registerDocumentRangeFormatProvider; this.registerDocumentFormattingEditProvider = this.registerDocumentFormatProvider; } /** * @internal */ hasFormatProvider(doc) { if (this.formatManager.hasProvider(doc)) { return true; } if (this.formatRangeManager.hasProvider(doc)) { return true; } return false; } registerOnTypeFormattingEditProvider(selector, provider, triggerCharacters) { return this.onTypeFormatManager.register(selector, provider, triggerCharacters); } registerCompletionItemProvider(name2, shortcut, selector, provider, triggerCharacters = [], priority, allCommitCharacters) { selector = string(selector) ? [{ language: selector }] : selector; this.sources.removeSource(name2); return this.sources.createLanguageSource(name2, shortcut, selector, provider, triggerCharacters, priority, allCommitCharacters); } registerInlineCompletionItemProvider(selector, provider) { return this.inlineCompletionItemManager.register(selector, provider); } registerNextEditProvider(selector, provider) { return this.nextEditManager.register(selector, provider); } registerCodeActionProvider(selector, provider, clientId, codeActionKinds) { return this.codeActionManager.register(selector, provider, clientId, codeActionKinds); } registerHoverProvider(selector, provider) { return this.hoverManager.register(selector, provider); } registerSelectionRangeProvider(selector, provider) { return this.selectionRangeManager.register(selector, provider); } registerSignatureHelpProvider(selector, provider, triggerCharacters) { return this.signatureManager.register(selector, provider, triggerCharacters); } registerDocumentSymbolProvider(selector, provider, metadata) { if (metadata) provider.meta = metadata; return this.documentSymbolManager.register(selector, provider); } registerFoldingRangeProvider(selector, provider) { return this.registerProviderWithEvent(selector, provider, "onDidChangeFoldingRanges", this.foldingRangeManager, this._onDidFoldingRangeRefresh); } registerDocumentHighlightProvider(selector, provider) { return this.documentHighlightManager.register(selector, provider); } registerDocumentLinkProvider(selector, provider) { this._onDidLinksRefresh.fire(selector); let disposable = this.documentLinkManager.register(selector, provider); return import_node4.Disposable.create(() => { disposable.dispose(); this._onDidLinksRefresh.fire(selector); }); } registerDocumentColorProvider(selector, provider) { this._onDidColorsRefresh.fire(selector); let disposable = this.documentColorManager.register(selector, provider); return import_node4.Disposable.create(() => { disposable.dispose(); this._onDidColorsRefresh.fire(selector); }); } registerDefinitionProvider(selector, provider) { return this.definitionManager.register(selector, provider); } registerDeclarationProvider(selector, provider) { return this.declarationManager.register(selector, provider); } registerTypeDefinitionProvider(selector, provider) { return this.typeDefinitionManager.register(selector, provider); } registerTypeHierarchyProvider(selector, provider) { return this.typeHierarchyManager.register(selector, provider); } registerImplementationProvider(selector, provider) { return this.implementationManager.register(selector, provider); } registerReferencesProvider(selector, provider) { return this.referenceManager.register(selector, provider); } registerRenameProvider(selector, provider) { return this.renameManager.register(selector, provider); } registerWorkspaceSymbolProvider(provider) { if (arguments.length > 1 && func(arguments[1].provideWorkspaceSymbols)) { provider = arguments[1]; } return this.workspaceSymbolsManager.register(provider); } registerDocumentFormatProvider(selector, provider, priority = 0) { return this.formatManager.register(selector, provider, priority); } registerDocumentRangeFormatProvider(selector, provider, priority = 0) { return this.formatRangeManager.register(selector, provider, priority); } registerCallHierarchyProvider(selector, provider) { return this.callHierarchyManager.register(selector, provider); } registerCodeLensProvider(selector, provider) { return this.registerProviderWithEvent(selector, provider, "onDidChangeCodeLenses", this.codeLensManager, this._onDidCodeLensRefresh); } registerDocumentSemanticTokensProvider(selector, provider, legend) { return this.registerProviderWithEvent(selector, provider, "onDidChangeSemanticTokens", this.semanticTokensManager, this._onDidSemanticTokensRefresh, legend); } registerDocumentRangeSemanticTokensProvider(selector, provider, legend) { let disposable; let timer = setTimeout(() => { disposable = this.semanticTokensRangeManager.register(selector, provider, legend); this._onDidSemanticTokensRefresh.fire(selector); }, eventDebounce); return import_node4.Disposable.create(() => { clearTimeout(timer); if (disposable) { disposable.dispose(); this._onDidSemanticTokensRefresh.fire(selector); } }); } registerInlayHintsProvider(selector, provider) { return this.registerProviderWithEvent(selector, provider, "onDidChangeInlayHints", this.inlayHintManager, this._onDidInlayHintRefresh); } /** * @internal */ registerInlineValuesProvider(selector, provider) { return this.inlineValueManager.register(selector, provider); } registerLinkedEditingRangeProvider(selector, provider) { return this.linkedEditingManager.register(selector, provider); } /** * @internal */ shouldTriggerSignatureHelp(document2, triggerCharacter) { return this.signatureManager.shouldTrigger(document2, triggerCharacter); } /** * @internal */ async getHover(document2, position, token) { return await this.hoverManager.provideHover(document2, position, token); } /** * @internal */ async getSignatureHelp(document2, position, token, context) { return await this.signatureManager.provideSignatureHelp(document2, position, token, context); } /** * @internal */ async getDefinition(document2, position, token) { return await this.definitionManager.provideDefinition(document2, position, token); } /** * @internal */ async getDefinitionLinks(document2, position, token) { return await this.definitionManager.provideDefinitionLinks(document2, position, token); } /** * @internal */ async getDeclaration(document2, position, token) { return await this.declarationManager.provideDeclaration(document2, position, token); } /** * @internal */ async getTypeDefinition(document2, position, token) { return await this.typeDefinitionManager.provideTypeDefinition(document2, position, token); } /** * @internal */ async getImplementation(document2, position, token) { return await this.implementationManager.provideImplementations(document2, position, token); } /** * @internal */ async getReferences(document2, context, position, token) { return await this.referenceManager.provideReferences(document2, position, context, token); } /** * @internal */ async getDocumentSymbol(document2, token) { return await this.documentSymbolManager.provideDocumentSymbols(document2, token); } /** * @internal */ getDocumentSymbolMetadata(document2) { return this.documentSymbolManager.getMetaData(document2); } /** * @internal */ async getSelectionRanges(document2, positions, token) { return await this.selectionRangeManager.provideSelectionRanges(document2, positions, token); } /** * @internal */ async getWorkspaceSymbols(query, token) { return await this.workspaceSymbolsManager.provideWorkspaceSymbols(toText(query), token); } /** * @internal */ async resolveWorkspaceSymbol(symbol, token) { return await this.workspaceSymbolsManager.resolveWorkspaceSymbol(symbol, token); } /** * @internal */ async prepareRename(document2, position, token) { return await this.renameManager.prepareRename(document2, position, token); } /** * @internal */ async provideRenameEdits(document2, position, newName, token) { return await this.renameManager.provideRenameEdits(document2, position, newName, token); } /** * @internal */ async provideDocumentFormattingEdits(document2, options3, token) { let hasDocumentFormatter = this.formatManager.hasFormatProvider(document2); if (!hasDocumentFormatter) { let hasRangeFormatter = this.formatRangeManager.hasProvider(document2); if (!hasRangeFormatter) return null; let end = document2.positionAt(document2.getText().length); let range2 = Range.create(Position.create(0, 0), end); return await this.provideDocumentRangeFormattingEdits(document2, range2, options3, token); } return await this.formatManager.provideDocumentFormattingEdits(document2, options3, token); } /** * @internal */ async provideDocumentRangeFormattingEdits(document2, range2, options3, token) { return await this.formatRangeManager.provideDocumentRangeFormattingEdits(document2, range2, options3, token); } /** * Provide formatting edits for multiple ranges in a document. * * @since 3.18.0 */ async provideDocumentRangesFormattingEdits(document2, ranges, options3, token) { return await this.formatRangeManager.provideDocumentRangesFormattingEdits(document2, ranges, options3, token); } /** * @internal */ async getCodeActions(document2, range2, context, token) { return await this.codeActionManager.provideCodeActions(document2, range2, context, token); } /** * @internal */ async getDocumentHighLight(document2, position, token) { return await this.documentHighlightManager.provideDocumentHighlights(document2, position, token); } /** * @internal */ async getDocumentLinks(document2, token) { return await this.documentLinkManager.provideDocumentLinks(document2, token); } /** * @internal */ async resolveDocumentLink(link, token) { return await this.documentLinkManager.resolveDocumentLink(link, token); } /** * @internal */ async provideDocumentColors(document2, token) { return await this.documentColorManager.provideDocumentColors(document2, token); } /** * @internal */ async provideFoldingRanges(document2, context, token) { return await this.foldingRangeManager.provideFoldingRanges(document2, context, token); } /** * @internal */ async provideColorPresentations(color, document2, token) { return await this.documentColorManager.provideColorPresentations(color, document2, token); } /** * @internal */ async provideInlineCompletionItems(document2, position, context, token) { return this.inlineCompletionItemManager.provideInlineCompletionItems(document2, position, context, token); } /** @internal */ async provideNextEdits(document2, position, context, token) { return this.nextEditManager.provideNextEdits(document2, position, context, token); } /** * @internal */ async getCodeLens(document2, token) { return await this.codeLensManager.provideCodeLenses(document2, token); } /** * @internal */ async resolveCodeLens(codeLens, token) { return await this.codeLensManager.resolveCodeLens(codeLens, token); } /** * @internal */ async resolveCodeAction(codeAction, token) { return await this.codeActionManager.resolveCodeAction(codeAction, token); } /** * @internal */ async provideDocumentOnTypeEdits(character, document2, position, token) { return this.onTypeFormatManager.onCharacterType(character, document2, position, token); } /** * @internal */ canFormatOnType(character, document2) { return this.onTypeFormatManager.couldTrigger(document2, character) != null; } /** * @internal */ async prepareCallHierarchy(document2, position, token) { return this.callHierarchyManager.prepareCallHierarchy(document2, position, token); } /** * @internal */ async provideIncomingCalls(document2, item, token) { return this.callHierarchyManager.provideCallHierarchyIncomingCalls(document2, item, token); } /** * @internal */ async provideOutgoingCalls(document2, item, token) { return this.callHierarchyManager.provideCallHierarchyOutgoingCalls(document2, item, token); } /** * @internal */ getLegend(document2, range2) { if (range2) return this.semanticTokensRangeManager.getLegend(document2); return this.semanticTokensManager.getLegend(document2); } /** * @internal */ hasSemanticTokensEdits(document2) { return this.semanticTokensManager.hasSemanticTokensEdits(document2); } /** * @internal */ async provideDocumentSemanticTokens(document2, token) { return this.semanticTokensManager.provideDocumentSemanticTokens(document2, token); } /** * @internal */ async provideDocumentSemanticTokensEdits(document2, previousResultId, token) { return this.semanticTokensManager.provideDocumentSemanticTokensEdits(document2, previousResultId, token); } /** * @internal */ async provideDocumentRangeSemanticTokens(document2, range2, token) { return this.semanticTokensRangeManager.provideDocumentRangeSemanticTokens(document2, range2, token); } /** * @internal */ async provideInlayHints(document2, range2, token) { return this.inlayHintManager.provideInlayHints(document2, range2, token); } /** * @internal */ async resolveInlayHint(hint, token) { return this.inlayHintManager.resolveInlayHint(hint, token); } /** * @internal */ async provideLinkedEdits(document2, position, token) { return this.linkedEditingManager.provideLinkedEditingRanges(document2, position, token); } /** * @internal */ async provideInlineValues(document2, viewPort, context, token) { return this.inlineValueManager.provideInlineValues(document2, viewPort, context, token); } /** * @internal */ async prepareTypeHierarchy(document2, position, token) { return this.typeHierarchyManager.prepareTypeHierarchy(document2, position, token); } /** * @internal */ async provideTypeHierarchySupertypes(item, token) { return this.typeHierarchyManager.provideTypeHierarchySupertypes(item, token); } /** * @internal */ async provideTypeHierarchySubtypes(item, token) { return this.typeHierarchyManager.provideTypeHierarchySubtypes(item, token); } createDiagnosticCollection(owner) { return manager_default.create(owner); } /** * @internal */ registerProviderWithEvent(selector, provider, key, manager, emitter, extra) { let disposables = []; let timer = setTimeout(() => { disposables.push(manager.register(selector, provider, extra)); emitter.fire(selector); if (func(provider[key])) { disposables.push(provider[key](() => { emitter.fire(selector); })); } }, eventDebounce); return import_node4.Disposable.create(() => { clearTimeout(timer); let registered = disposables.length > 0; disposeAll(disposables); if (registered) emitter.fire(selector); }); } hasProvider(id2, document2) { switch (id2) { case "onTypeEdit" /* OnTypeEdit */: case "formatOnType" /* FormatOnType */: return this.onTypeFormatManager.hasProvider(document2); case "rename" /* Rename */: return this.renameManager.hasProvider(document2); case "documentLink" /* DocumentLink */: return this.documentLinkManager.hasProvider(document2); case "documentColor" /* DocumentColor */: return this.documentColorManager.hasProvider(document2); case "foldingRange" /* FoldingRange */: return this.foldingRangeManager.hasProvider(document2); case "format" /* Format */: return this.formatManager.hasProvider(document2) || this.formatRangeManager.hasProvider(document2); case "codeAction" /* CodeAction */: return this.codeActionManager.hasProvider(document2); case "workspaceSymbols" /* WorkspaceSymbols */: return this.workspaceSymbolsManager.hasProvider(); case "formatRange" /* FormatRange */: return this.formatRangeManager.hasProvider(document2); case "hover" /* Hover */: return this.hoverManager.hasProvider(document2); case "signature" /* Signature */: return this.signatureManager.hasProvider(document2); case "documentSymbol" /* DocumentSymbol */: return this.documentSymbolManager.hasProvider(document2); case "documentHighlight" /* DocumentHighlight */: return this.documentHighlightManager.hasProvider(document2); case "definition" /* Definition */: return this.definitionManager.hasProvider(document2); case "declaration" /* Declaration */: return this.declarationManager.hasProvider(document2); case "typeDefinition" /* TypeDefinition */: return this.typeDefinitionManager.hasProvider(document2); case "reference" /* Reference */: return this.referenceManager.hasProvider(document2); case "implementation" /* Implementation */: return this.implementationManager.hasProvider(document2); case "codeLens" /* CodeLens */: return this.codeLensManager.hasProvider(document2); case "selectionRange" /* SelectionRange */: return this.selectionRangeManager.hasProvider(document2); case "callHierarchy" /* CallHierarchy */: return this.callHierarchyManager.hasProvider(document2); case "semanticTokens" /* SemanticTokens */: return this.semanticTokensManager.hasProvider(document2); case "semanticTokensRange" /* SemanticTokensRange */: return this.semanticTokensRangeManager.hasProvider(document2); case "linkedEditing" /* LinkedEditing */: return this.linkedEditingManager.hasProvider(document2); case "inlayHint" /* InlayHint */: return this.inlayHintManager.hasProvider(document2); case "inlineCompletion" /* InlineCompletion */: return this.inlineCompletionItemManager.hasProvider(document2); case "nextEdit" /* NextEdit */: return this.nextEditManager.hasProvider(document2); case "inlineValue" /* InlineValue */: return this.inlineValueManager.hasProvider(document2); case "typeHierarchy" /* TypeHierarchy */: return this.typeHierarchyManager.hasProvider(document2); default: return false; } } }; languages_default = new Languages(); } }); // src/model/chars.ts function getCharCode(str) { if (/^\d+$/.test(str)) return parseInt(str, 10); if (str.length > 0) return str.charCodeAt(0); return void 0; } function sameScope(a2, b2) { if (a2 < boundary) return b2 < boundary; return b2 >= boundary; } function detectLanguage(code) { if (code >= 19968 && code <= 40959) return "cn"; if (code >= 12352 && code <= 12447 || code >= 12448 && code <= 12543) return "ja"; if (code >= 44032 && code <= 55215) return "ko"; return ""; } function getSegmenter(locales) { let seg = segmenters.get(locales); if (!seg) { seg = new Intl.Segmenter(locales === "" ? void 0 : locales, { granularity: "word" }); segmenters.set(locales, seg); } return seg; } function* parseSegments(text, segmenterLocales) { if (Intl === void 0 || typeof Intl["Segmenter"] !== "function") { yield text; return; } let items = getSegmenter(segmenterLocales).segment(text); for (let item of items) { if (item.isWordLike) { yield item.segment; } } } function splitKeywordOption(iskeyword) { let res = []; let i2 = 0; let s2 = 0; let len = iskeyword.length; for (; i2 < len; i2++) { let c2 = iskeyword[i2]; if (i2 + 1 == len && s2 != len) { res.push(iskeyword.slice(s2, len)); continue; } if (c2 == ",") { let d2 = i2 - s2; if (d2 == 0) continue; if (d2 == 1) { let p2 = iskeyword[i2 - 1]; if (p2 == "^" || p2 == ",") { res.push(p2 == "," ? "," : "^,"); s2 = i2 + 1; if (p2 == "^" && iskeyword[i2 + 1] == ",") { i2++; s2++; } continue; } } res.push(iskeyword.slice(s2, i2)); s2 = i2 + 1; } } return res; } var WORD_RANGES, MAX_CODE_UNIT, boundary, segmenters, IntegerRanges, Chars; var init_chars = __esm({ "src/model/chars.ts"() { "use strict"; init_main(); init_util(); init_array(); init_object(); init_string(); WORD_RANGES = [[257, 893], [895, 902], [904, 1369], [1376, 1416], [1418, 1469], [1471, 1471], [1473, 1474], [1476, 1522], [1525, 1547], [1549, 1562], [1564, 1566], [1568, 1641], [1646, 1747], [1749, 1791], [1806, 2403], [2406, 2415], [2417, 3571], [3573, 3662], [3664, 3673], [3676, 3843], [3859, 3897], [3902, 3972], [3974, 4169], [4176, 4346], [4348, 4960], [4969, 5740], [5743, 5759], [5761, 5786], [5789, 5866], [5870, 5940], [5943, 6099], [6109, 6143], [6155, 8191], [10240, 10495], [10649, 10711], [10716, 10747], [10750, 11775], [11904, 12287], [12321, 12335], [12337, 12348], [12350, 64829], [64832, 65071], [65132, 65279], [65296, 65305], [65313, 65338], [65345, 65370], [65382, 65535]]; MAX_CODE_UNIT = 65535; boundary = 19968; segmenters = /* @__PURE__ */ new Map(); IntegerRanges = class _IntegerRanges { /** * Sorted ranges without overlap */ constructor(ranges = [], wordChars = false) { this.ranges = ranges; this.wordChars = wordChars; } ranges; wordChars; clone() { return new _IntegerRanges(this.ranges.slice(), this.wordChars); } /** * Add new range */ add(start, end) { let index = 0; let removeCount = 0; if (end != null && end < start) { let t2 = end; end = start; start = t2; } end = end == null ? start : end; for (let r2 of this.ranges) { let [s2, e2] = r2; if (e2 < start) { index++; continue; } if (s2 > end) break; removeCount++; if (s2 < start) start = s2; if (e2 > end) { end = e2; break; } } this.ranges.splice(index, removeCount, [start, end]); } exclude(start, end) { if (end != null && end < start) { let t2 = end; end = start; start = t2; } end = end == null ? start : end; let index = 0; let removeCount = 0; let created = []; for (let r2 of this.ranges) { let [s2, e2] = r2; if (e2 < start) { index++; continue; } if (s2 > end) break; removeCount++; if (s2 < start) { created.push([s2, start - 1]); } if (e2 > end) { created.push([end + 1, e2]); break; } } if (removeCount == 0 && created.length == 0) return; this.ranges.splice(index, removeCount, ...created); } flatten() { return this.ranges.reduce((p2, c2) => p2.concat(c2), []); } includes(n2) { if (n2 > 256 && this.wordChars) return intable(n2, WORD_RANGES); return intable(n2, this.ranges); } static fromKeywordOption(iskeyword) { let range2 = new _IntegerRanges(); for (let part of splitKeywordOption(iskeyword)) { let exclude = part.length > 1 && part.startsWith("^"); let method = exclude ? "exclude" : "add"; if (exclude) part = part.slice(1); if (part === "@" && !exclude) { range2.wordChars = true; range2[method](65, 90); range2[method](97, 122); range2[method](192, 255); } else if (part == "@-@") { range2[method]("@".charCodeAt(0)); } else if (part.length == 1 || /^\d+$/.test(part)) { range2[method](getCharCode(part)); } else if (part.includes("-")) { let items = part.split("-", 2); let start = getCharCode(items[0]); let end = getCharCode(items[1]); if (start === void 0 || end === void 0) continue; range2[method](start, end); } } return range2; } }; Chars = class _Chars { ranges; constructor(keywordOption) { this.ranges = IntegerRanges.fromKeywordOption(keywordOption); } addKeyword(ch) { this.ranges.add(ch.codePointAt(0)); } clone() { let chars = new _Chars(""); chars.ranges = this.ranges.clone(); return chars; } isKeywordCode(code) { if (code === 32 || code > MAX_CODE_UNIT) return false; if (isHighSurrogate(code)) return false; return this.ranges.includes(code); } isKeywordChar(ch) { let code = ch.charCodeAt(0); return this.isKeywordCode(code); } isKeyword(word) { for (let i2 = 0, l2 = word.length; i2 < l2; i2++) { if (!this.isKeywordChar(word[i2])) return false; } return true; } *iterateWords(text) { let start = -1; let prevCode; for (let i2 = 0, l2 = text.length; i2 < l2; i2++) { let code = text.charCodeAt(i2); if (this.isKeywordCode(code)) { if (start == -1) { start = i2; } else if (prevCode !== void 0 && !sameScope(prevCode, code)) { yield [start, i2]; start = i2; } } else { if (start != -1) { yield [start, i2]; start = -1; } } if (i2 === l2 - 1 && start != -1) { yield [start, i2 + 1]; } prevCode = code; } } matchLine(line, segmenterLocales = void 0, min = 2, max = 1024) { let res = /* @__PURE__ */ new Set(); let l2 = line.length; if (l2 > max) { line = line.slice(0, max); l2 = max; } for (let [start, end] of this.iterateWords(line)) { if (end - start < min) continue; let word = line.slice(start, end); let code = word.charCodeAt(0); if (segmenterLocales != null && code > 255) { if (segmenterLocales == "") { segmenterLocales = detectLanguage(code); } for (let text of parseSegments(word, segmenterLocales)) { res.add(text); } } else { res.add(word); } } return Array.from(res); } async computeWordRanges(lines, range2, token) { let s2 = range2.start.line; let e2 = range2.end.line; let res = {}; let ts = Date.now(); for (let i2 = s2; i2 <= e2; i2++) { let text = lines[i2]; if (text === void 0) break; let sc = i2 === s2 ? range2.start.character : 0; if (i2 === s2) text = text.slice(sc); if (i2 === e2) text = text.slice(0, range2.end.character - sc); if (Date.now() - ts > 15) { if (token && token.isCancellationRequested) break; await waitImmediate(); ts = Date.now(); } for (let [start, end] of this.iterateWords(text)) { let word = text.slice(start, end); let arr = hasOwnProperty2(res, word) ? res[word] : []; arr.push(Range.create(i2, start + sc, i2, end + sc)); res[word] = arr; } } return res; } }; } }); // src/model/textline.ts var TextLine; var init_textline = __esm({ "src/model/textline.ts"() { "use strict"; init_main(); TextLine = class { _line; _text; _isLastLine; constructor(line, text, isLastLine) { this._line = line; this._text = text; this._isLastLine = isLastLine; } /** * The zero-based line number. */ get lineNumber() { return this._line; } /** * The text of this line without the line separator characters. */ get text() { return this._text; } /** * The range this line covers without the line separator characters. */ get range() { return Range.create(this._line, 0, this._line, this._text.length); } /** * The range this line covers with the line separator characters. */ get rangeIncludingLineBreak() { return this._isLastLine ? this.range : Range.create(this._line, 0, this._line + 1, 0); } /** * The offset of the first character which is not a whitespace character as defined * by `/\s/`. **Note** that if a line is all whitespace the length of the line is returned. */ get firstNonWhitespaceCharacterIndex() { return /^(\s*)/.exec(this._text)[1].length; } /** * Whether this line is whitespace only, shorthand * for {@link TextLine.firstNonWhitespaceCharacterIndex} === {@link TextLine.text TextLine.text.length}. */ get isEmptyOrWhitespace() { return this.firstNonWhitespaceCharacterIndex === this._text.length; } }; } }); // src/model/textdocument.ts function computeLinesOffsets(lines, eol) { const result = []; let textOffset = 0; for (let line of lines) { result.push(textOffset); textOffset += line.length + 1; } if (eol) result.push(textOffset); return result; } var LinesTextDocument; var init_textdocument = __esm({ "src/model/textdocument.ts"() { "use strict"; init_main(); init_textedit(); init_textline(); LinesTextDocument = class { constructor(uri, languageId, version2, lines, bufnr, eol) { this.uri = uri; this.languageId = languageId; this.version = version2; this.lines = lines; this.bufnr = bufnr; this.eol = eol; } uri; languageId; version; lines; bufnr; eol; _lineOffsets; _content; get content() { if (!this._content) { this._content = this.lines.join("\n") + (this.eol ? "\n" : ""); } return this._content; } get length() { if (!this._content) { let n2 = this.lines.reduce((p2, c2) => { return p2 + c2.length + 1; }, 0); return this.eol ? n2 : n2 - 1; } return this._content.length; } get end() { let len = this.lines.length; if (this.eol) return Position.create(len, 0); return Position.create(len - 1, this.lines[len - 1].length); } get lineCount() { return this.lines.length + (this.eol ? 1 : 0); } intersectWith(range2) { let start = Position.create(0, 0); if (start.line < range2.start.line) { start = range2.start; } else if (range2.start.line === start.line) { start = Position.create(start.line, Math.max(start.character, range2.start.character)); } let end = this.end; if (range2.end.line < end.line) { end = range2.end; } else if (range2.end.line === end.line) { end = Position.create(end.line, Math.min(end.character, range2.end.character)); } return Range.create(start, end); } getText(range2) { if (range2) return getRangeText(this.lines, range2); return this.content; } lineAt(lineOrPos) { const line = Position.is(lineOrPos) ? lineOrPos.line : lineOrPos; if (typeof line !== "number" || line < 0 || line >= this.lineCount || Math.floor(line) !== line) { throw new Error("Illegal value for `line`"); } return new TextLine(line, this.lines[line] ?? "", line === this.lineCount - 1); } positionAt(offset) { offset = Math.max(Math.min(offset, this.content.length), 0); let lineOffsets = this.getLineOffsets(); let low = 0; let high = lineOffsets.length; if (high === 0) { return { line: 0, character: offset }; } while (low < high) { let mid = Math.floor((low + high) / 2); if (lineOffsets[mid] > offset) { high = mid; } else { low = mid + 1; } } let line = low - 1; return { line, character: offset - lineOffsets[line] }; } offsetAt(position) { let lineOffsets = this.getLineOffsets(); if (position.line >= lineOffsets.length) { return this.content.length; } else if (position.line < 0) { return 0; } let lineOffset = lineOffsets[position.line]; let nextLineOffset = position.line + 1 < lineOffsets.length ? lineOffsets[position.line + 1] : this.content.length; return Math.max(Math.min(lineOffset + position.character, nextLineOffset), lineOffset); } getLineRange(line) { if (line < 0 || this.lineCount === 0) return Range.create(0, 0, 0, 0); let target = Math.min(line, this.lineCount - 1); return Range.create(target, 0, target, this.lines[target]?.length ?? 0); } getEOLCharacters(line) { return line >= 0 && line < this.lineCount - 1 ? "\n" : ""; } getLineOffsets() { if (this._lineOffsets === void 0) { this._lineOffsets = computeLinesOffsets(this.lines, this.eol); } return this._lineOffsets; } }; } }); // src/model/document.ts function fireDetach(bufnr) { void events_default.fire("BufDetach", [bufnr]); } function fireLinesChanged(bufnr) { void events_default.fire("LinesChanged", [bufnr]); } function getUri(fullpath, id2, buftype) { if (!fullpath) return `untitled:${id2}`; if (path.isAbsolute(fullpath)) { fullpath = path.normalize(fullpath); if (!isWindows && /^\/[a-zA-Z]:/.test(fullpath)) { return "file://" + fullpath.split("/").map((seg) => encodeURIComponent(seg)).join("/"); } return u.file(fullpath).toString(); } if (isUrl(fullpath)) return u.parse(fullpath).toString(); if (buftype != "") return `${buftype}:${id2}`; return `unknown:${id2}`; } function getNotAttachReason(buftype, enabled, size) { if (!["", "acwrite"].includes(buftype)) { return `not a normal buffer, buftype "${buftype}"`; } if (enabled === 0) { return `b:coc_enabled = 0`; } return `buffer size ${size} exceed coc.preferences.maxFileSize`; } var import_buffer2, logger15, MAX_EDITS, debounceTime3, Document; var init_document = __esm({ "src/model/document.ts"() { "use strict"; import_buffer2 = require("buffer"); init_main(); init_esm(); init_events(); init_logger(); init_array(); init_constants(); init_diff(); init_util(); init_is(); init_node(); init_object(); init_platform(); init_position(); init_protocol(); init_string(); init_textedit(); init_chars(); init_textdocument(); logger15 = createLogger("document"); MAX_EDITS = getConditionValue(200, 400); debounceTime3 = getConditionValue(150, 15); Document = class { constructor(buffer, nvim, filetype, opts) { this.buffer = buffer; this.nvim = nvim; this.fireContentChanges = debounce2(() => { this._fireContentChanges(); }, debounceTime3); this.init(filetype, opts); } buffer; nvim; buftype; isIgnored = false; chars; eol = true; _disposed = false; _attached = false; _notAttachReason = ""; _previewwindow = false; _winid = -1; _winids = []; _filetype; _bufname; _commandLine = false; _applying = false; _uri; _changedtick; _linesTick = 0; lineWaiters = []; variables; disposables = []; _textDocument; // real current lines lines = []; _applyLines; fireContentChanges; fetchContent; _onDocumentChange = new import_node4.Emitter(); onDocumentChange = this._onDocumentChange.event; /** * Synchronize content */ get content() { return this.syncLines.join("\n") + (this.eol ? "\n" : ""); } get attached() { return this._attached; } /** * Synchronized textDocument. */ get textDocument() { return this._textDocument; } get syncLines() { return this._textDocument.lines; } get version() { return this._textDocument.version; } /** * Buffer number */ get bufnr() { return this.buffer.id; } get bufname() { return this._bufname; } get filetype() { return this._filetype; } get uri() { return this._uri; } get isCommandLine() { return this._commandLine; } /** * LanguageId of TextDocument, main filetype are used for combined filetypes * with '.' */ get languageId() { let { _filetype } = this; return _filetype.includes(".") ? _filetype.match(/(.*?)\./)[1] : _filetype; } /** * Get current buffer changedtick. */ get changedtick() { return this._changedtick; } /** * Scheme of document. */ get schema() { return u.parse(this.uri).scheme; } /** * Line count of current buffer. */ get lineCount() { return this.lines.length; } /** * Window ID when buffer create, could be -1 when no window associated. */ get winid() { return this._winid; } get winids() { return this._winids; } /** * Returns if current document is opened with previewwindow * @deprecated */ get previewwindow() { return this._previewwindow; } /** * Initialize document model. */ init(filetype, opts) { let buftype = this.buftype = opts.buftype; this._bufname = opts.bufname; this._commandLine = opts.commandline === 1; this._previewwindow = !!opts.previewwindow; this._winid = opts.winid; this._winids = toArray(opts.winids); this.variables = toObject(opts.variables); this._changedtick = opts.changedtick; this._linesTick = opts.changedtick; this.eol = opts.eol == 1; this._uri = getUri(opts.fullpath, this.bufnr, buftype); if (Array.isArray(opts.lines)) { this.lines = opts.lines.map((line) => toText(line)); this._attached = true; this.attach(); } else { this.lines = []; this._notAttachReason = getNotAttachReason(buftype, this.variables[`coc_enabled`], opts.size); } this._filetype = filetype; this.setIskeyword(opts.iskeyword, opts.lisp); this.createTextDocument(1, this.lines); } get notAttachReason() { return this._notAttachReason; } attach() { let lines = this.lines; const { bufnr } = this; this.buffer.attach(true).then((res) => { if (!res) fireDetach(this.bufnr); }, (_e) => { fireDetach(this.bufnr); }); if (isVim) { const vim_onLinesChange = (_buf, tick, firstline, lastline, linedata, replaceAll) => { this._changedtick = tick; if (replaceAll) { lines = linedata.slice(); } else { lines = [...lines.slice(0, firstline), ...linedata, ...lines.slice(lastline)]; } if (lines.length === 0) lines = [""]; if (this._applying) { this._applyLines = lines; return; } this.lines = lines; this._linesTick = tick; this.settleLineWaiters(tick); fireLinesChanged(bufnr); if (events_default.completing) return; this.fireContentChanges(); }; this.buffer.listen("vim_lines", vim_onLinesChange, this.disposables); } else { const onLinesChange = (_buf, tick, firstline, lastline, linedata) => { if (tick && tick > this._changedtick) { this._changedtick = tick; lines = [...lines.slice(0, firstline), ...linedata, ...lastline < 0 ? [] : lines.slice(lastline)]; if (lines.length == 0) lines = [""]; if (this._applying) { this._applyLines = lines; return; } this.lines = lines; this._linesTick = tick; this.settleLineWaiters(tick); fireLinesChanged(bufnr); if (events_default.completing) return; this.fireContentChanges(); } }; this.buffer.listen("lines", onLinesChange, this.disposables); this.buffer.listen("detach", () => { fireDetach(this.bufnr); }, this.disposables); } } /** * Check if document changed after last synchronize */ get dirty() { return this.lines !== this.syncLines; } get hasChanged() { if (!this.dirty) return false; return !equals(this.lines, this.syncLines); } /** * Cursor position if document is current document */ get cursor() { let { cursor } = events_default; if (cursor.bufnr !== this.bufnr) return void 0; let content = toText(this.lines[cursor.lnum - 1]); return Position.create(cursor.lnum - 1, characterIndex(content, cursor.col - 1)); } _fireContentChanges(edit2) { if (this.lines === this.syncLines) return; let textDocument = this._textDocument; let changes = []; if (!edit2) edit2 = getTextEdit(textDocument.lines, this.lines, this.cursor, events_default.cursor.insert); let original; if (edit2) { original = textDocument.getText(edit2.range); changes.push({ range: edit2.range, text: edit2.newText, rangeLength: original.length }); } else { original = ""; } let created = this.createTextDocument(this.version + (edit2 ? 1 : 0), this.lines); this._onDocumentChange.fire(Object.freeze({ bufnr: this.bufnr, original, originalLines: textDocument.lines, textDocument: { version: created.version, uri: this.uri }, document: created, contentChanges: changes })); } async applyEdits(edits, joinUndo = false, move = false) { if (Array.isArray(arguments[1])) edits = arguments[1]; if (!this._attached || edits.length === 0) return; const { bufnr } = this; this._forceSync(); let textDocument = this.textDocument; edits = filterSortEdits(textDocument, edits); let newLines = applyEdits2(textDocument, edits); if (!newLines) return; let lines = textDocument.lines; let changed = diffLines(lines, newLines, getStartLine(edits[0])); let isAppend = changed.start === changed.end && changed.start === lines.length; let original = lines.slice(changed.start, changed.end); let changes = []; if (edits.length <= MAX_EDITS && changed.start !== changed.end && changed.replacement.length > 0) { changes = toTextChanges(lines, edits); } const { cursor, col } = this.getCursorAndCol(move, edits, newLines); this.nvim.pauseNotification(); if (joinUndo) this.nvim.command(`if bufnr('%') == ${bufnr} | undojoin | endif`, true); if (isAppend) { this.buffer.setLines(changed.replacement, { start: -1, end: -1 }, true); } else { this.nvim.call("coc#ui#set_lines", [ this.bufnr, this._changedtick, original, changed.replacement, changed.start, changed.end, changes, cursor, col, lines.length ], true); } this._applying = true; void this.nvim.resumeNotification(true, true); this.lines = newLines; await waitNextTick(); fireLinesChanged(bufnr); let textEdit = edits.length == 1 ? edits[0] : mergeTextEdits(edits, lines, newLines); this.fireContentChanges.clear(); this._fireContentChanges(textEdit); let range2 = Range.create(changed.start, 0, changed.start + changed.replacement.length, 0); return TextEdit.replace(range2, original.join("\n") + (original.length > 0 ? "\n" : "")); } onTextChange() { let { bufnr } = this; if (this._applying) { this._applying = false; if (this._applyLines != null && !equals(this._applyLines, this.textDocument.lines)) { this.lines = this._applyLines; this._applyLines = void 0; fireLinesChanged(bufnr); this.fireContentChanges(); } } } getCursorAndCol(move, edits, newLines) { if (!move) return {}; let pos = Position.is(move) ? move : this.cursor; if (pos) { let position = getPositionFromEdits(pos, edits); if (!equals(pos, position)) { let content = toText(newLines[position.line]); let column = byteIndex(content, position.character) + 1; return { cursor: [position.line + 1, column], col: byteIndex(this.lines[pos.line], pos.character) + 1 }; } } return {}; } async changeLines(lines) { let filtered = []; let newLines = this.lines.slice(); for (let [lnum, text] of lines) { if (newLines[lnum] != text) { filtered.push([lnum, text]); newLines[lnum] = text; } } if (!filtered.length) return; this.nvim.call("coc#ui#change_lines", [this.bufnr, filtered], true); this.nvim.redrawVim(); this.lines = newLines; await waitNextTick(); fireLinesChanged(this.bufnr); this._forceSync(); } _forceSync() { if (!this._attached) return; this.fireContentChanges.clear(); this._fireContentChanges(); } forceSync() { if (false) { this._forceSync(); } } /** * Get offset from lnum & col */ getOffset(lnum, col) { return this.textDocument.offsetAt({ line: lnum - 1, character: col }); } /** * Check string is word. */ isWord(word) { return this.chars.isKeyword(word); } getStartWord(text) { let i2 = 0; for (; i2 < text.length; i2++) { if (!this.chars.isKeywordChar(text[i2])) break; } return text.slice(0, i2); } /** * Current word for replacement */ getWordRangeAtPosition(position, extraChars, current = true) { let chars = this.chars; if (extraChars && extraChars.length) { chars = this.chars.clone(); for (let ch2 of extraChars) { chars.addKeyword(ch2); } } let line = this.getline(position.line, current); let ch = line[position.character]; if (ch == null || !chars.isKeywordChar(ch)) return null; let start = position.character; let end = position.character + 1; while (start >= 0) { let ch2 = line[start - 1]; if (!ch2 || !chars.isKeywordChar(ch2)) break; start = start - 1; } while (end <= line.length) { let ch2 = line[end]; if (!ch2 || !chars.isKeywordChar(ch2)) break; end = end + 1; } return Range.create(position.line, start, position.line, end); } createTextDocument(version2, lines) { let { uri, languageId, eol } = this; let textDocument = this._textDocument = new LinesTextDocument(uri, languageId, version2, lines, this.bufnr, eol); return textDocument; } /** * Get ranges of word in textDocument. */ getSymbolRanges(word) { let { version: version2, languageId, uri } = this; let textDocument = new LinesTextDocument(uri, languageId, version2, this.lines, this.bufnr, this.eol); let res = []; let content = textDocument.getText(); let str = ""; for (let i2 = 0, l2 = content.length; i2 < l2; i2++) { let ch = content[i2]; if ("-" == ch && str.length == 0) { continue; } let isKeyword = this.chars.isKeywordChar(ch); if (isKeyword) { str = str + ch; } if (str.length > 0 && !isKeyword && str == word) { res.push(Range.create(textDocument.positionAt(i2 - str.length), textDocument.positionAt(i2))); } if (!isKeyword) { str = ""; } } return res; } /** * Adjust col with new valid character before position. */ fixStartcol(position, valids) { let line = this.getline(position.line); if (!line) return 0; let { character } = position; let start = line.slice(0, character); let col = byteLength(start); let { chars } = this; for (let i2 = start.length - 1; i2 >= 0; i2--) { let c2 = start[i2]; if (!chars.isKeywordChar(c2) && !valids.includes(c2)) { break; } col = col - byteLength(c2); } return col; } /** * Add vim highlight items from highlight group and range. * Synchronized lines are used for calculate cols. */ addHighlights(items, hlGroup, range2, opts = {}) { let { start, end } = range2; if (emptyRange(range2)) return; for (let line = start.line; line <= end.line; line++) { const text = this.getline(line, false); let colStart = line == start.line ? byteIndex(text, start.character) : 0; let colEnd = line == end.line ? byteIndex(text, end.character) : import_buffer2.Buffer.byteLength(text); if (colStart >= colEnd) continue; items.push(Object.assign({ hlGroup, lnum: line, colStart, colEnd }, opts)); } } /** * Line content 0 based line */ getline(line, current = true) { if (current) return this.lines[line] || ""; return this.syncLines[line] || ""; } /** * Get lines, zero indexed, end exclude. */ getLines(start, end) { return this.lines.slice(start ?? 0, end ?? this.lines.length); } /** * Get current content text. */ getDocumentContent() { let content = this.lines.join("\n"); return this.eol ? content + "\n" : content; } /** * Get variable value by key, defined by `b:coc_{key}` */ getVar(key, defaultValue2) { let val = this.variables[`coc_${key}`]; return val === void 0 ? defaultValue2 : val; } /** * Get position from lnum & col */ getPosition(lnum, col) { let line = this.getline(lnum - 1); if (!line || col == 0) return { line: lnum - 1, character: 0 }; let pre = byteSlice(line, 0, col - 1); return { line: lnum - 1, character: pre.length }; } /** * Recreate document with new filetype. */ setFiletype(filetype) { this._filetype = filetype; let lines = this.lines; this._textDocument = new LinesTextDocument(this.uri, this.languageId, 1, lines, this.bufnr, this.eol); } /** * Change iskeyword option of document */ setIskeyword(iskeyword, lisp) { let chars = this.chars = new Chars(iskeyword); let additional = this.getVar("additional_keywords", []); if (lisp) chars.addKeyword("-"); if (additional && Array.isArray(additional)) { for (let ch of additional) { chars.addKeyword(ch); } } } /** * Detach document. */ detach() { disposeAll(this.disposables); if (this._disposed) return; this._disposed = true; this._attached = false; this.lines = []; for (let item of this.lineWaiters) { clearTimeout(item.timer); item.resolve(); } this.lineWaiters = []; this.fireContentChanges.clear(); this._onDocumentChange.dispose(); } /** * Synchronize latest document content */ async synchronize() { if (!this.attached) return; let { changedtick } = this; await this.patchChange(); if (changedtick != this.changedtick) { await this.waitForLineEvents(); } } /** * Wait for pending buffer change events to be applied, bounded by 30ms. */ waitForLineEvents() { let target = this._changedtick; if (this._linesTick >= target) return Promise.resolve(); return new Promise((resolve) => { let item = { target, timer: setTimeout(() => { let idx = this.lineWaiters.indexOf(item); if (idx !== -1) this.lineWaiters.splice(idx, 1); resolve(); }, 30), resolve }; this.lineWaiters.push(item); }); } settleLineWaiters(tick) { if (this.lineWaiters.length === 0) return; let waiters = this.lineWaiters; this.lineWaiters = []; for (let item of waiters) { if (tick >= item.target) { clearTimeout(item.timer); item.resolve(); } else { this.lineWaiters.push(item); } } } /** * Synchronize buffer change */ async patchChange() { if (!this._attached) return; this._changedtick = await this.nvim.call("coc#util#get_changedtick", [this.bufnr]); this._forceSync(); } getSha256() { return sha256(this.lines.join("\n")); } async fetchLines() { let lines = await this.nvim.call("getbufline", [this.bufnr, 1, "$"]); this.lines = lines; fireLinesChanged(this.bufnr); this.fireContentChanges(); logger15.error(`Buffer ${this.bufnr} not synchronized on vim9, consider send bug report!`); } }; } }); // src/util/convert.ts function convertFormatOptions(opts) { let obj = { tabSize: opts.tabsize, insertSpaces: opts.expandtab == 1 }; if (opts.insertFinalNewline) obj.insertFinalNewline = true; if (opts.trimTrailingWhitespace) obj.trimTrailingWhitespace = true; if (opts.trimFinalNewlines) obj.trimFinalNewlines = true; return obj; } function getSymbolKind(kind) { switch (kind) { case SymbolKind.File: return "File"; case SymbolKind.Module: return "Module"; case SymbolKind.Namespace: return "Namespace"; case SymbolKind.Package: return "Package"; case SymbolKind.Class: return "Class"; case SymbolKind.Method: return "Method"; case SymbolKind.Property: return "Property"; case SymbolKind.Field: return "Field"; case SymbolKind.Constructor: return "Constructor"; case SymbolKind.Enum: return "Enum"; case SymbolKind.Interface: return "Interface"; case SymbolKind.Function: return "Function"; case SymbolKind.Variable: return "Variable"; case SymbolKind.Constant: return "Constant"; case SymbolKind.String: return "String"; case SymbolKind.Number: return "Number"; case SymbolKind.Boolean: return "Boolean"; case SymbolKind.Array: return "Array"; case SymbolKind.Object: return "Object"; case SymbolKind.Key: return "Key"; case SymbolKind.Null: return "Null"; case SymbolKind.EnumMember: return "EnumMember"; case SymbolKind.Struct: return "Struct"; case SymbolKind.Event: return "Event"; case SymbolKind.Operator: return "Operator"; case SymbolKind.TypeParameter: return "TypeParameter"; default: return "Unknown"; } } var init_convert = __esm({ "src/util/convert.ts"() { "use strict"; init_main(); } }); // node_modules/bytes/index.js var require_bytes = __commonJS({ "node_modules/bytes/index.js"(exports2, module2) { "use strict"; module2.exports = bytes2; module2.exports.format = format5; module2.exports.parse = parse4; var formatThousandsRegExp = /\B(?=(\d{3})+(?!\d))/g; var formatDecimalsRegExp = /(?:\.0*|(\.[^0]+)0+)$/; var map = { b: 1, kb: 1 << 10, mb: 1 << 20, gb: 1 << 30, tb: Math.pow(1024, 4), pb: Math.pow(1024, 5) }; var parseRegExp = /^((-|\+)?(\d+(?:\.\d+)?)) *(kb|mb|gb|tb|pb)$/i; function bytes2(value, options3) { if (typeof value === "string") { return parse4(value); } if (typeof value === "number") { return format5(value, options3); } return null; } function format5(value, options3) { if (!Number.isFinite(value)) { return null; } var mag = Math.abs(value); var thousandsSeparator = options3 && options3.thousandsSeparator || ""; var unitSeparator = options3 && options3.unitSeparator || ""; var decimalPlaces = options3 && options3.decimalPlaces !== void 0 ? options3.decimalPlaces : 2; var fixedDecimals = Boolean(options3 && options3.fixedDecimals); var unit = options3 && options3.unit || ""; if (!unit || !map[unit.toLowerCase()]) { if (mag >= map.pb) { unit = "PB"; } else if (mag >= map.tb) { unit = "TB"; } else if (mag >= map.gb) { unit = "GB"; } else if (mag >= map.mb) { unit = "MB"; } else if (mag >= map.kb) { unit = "KB"; } else { unit = "B"; } } var val = value / map[unit.toLowerCase()]; var str = val.toFixed(decimalPlaces); if (!fixedDecimals) { str = str.replace(formatDecimalsRegExp, "$1"); } if (thousandsSeparator) { str = str.split(".").map(function(s2, i2) { return i2 === 0 ? s2.replace(formatThousandsRegExp, thousandsSeparator) : s2; }).join("."); } return str + unitSeparator + unit; } function parse4(val) { if (typeof val === "number" && !isNaN(val)) { return val; } if (typeof val !== "string") { return null; } var results = parseRegExp.exec(val); var floatValue; var unit = "b"; if (!results) { floatValue = parseInt(val, 10); unit = "b"; } else { floatValue = parseFloat(results[1]); unit = results[4].toLowerCase(); } if (isNaN(floatValue)) { return null; } return Math.floor(map[unit] * floatValue); } } }); // src/core/documents.ts var logger16, cwd, filetypeDelay, Documents; var init_documents = __esm({ "src/core/documents.ts"() { "use strict"; init_main(); init_esm(); init_commands(); init_events(); init_languages(); init_logger(); init_document(); init_util(); init_array(); init_constants(); init_convert(); init_expand(); init_fs(); init_is(); init_node(); init_object(); init_platform(); init_protocol(); init_string(); logger16 = createLogger("core-documents"); cwd = normalizeFilePath(process.cwd()); filetypeDelay = getConditionValue(50, 10); Documents = class { constructor(configurations, workspaceFolder) { this.configurations = configurations; this.workspaceFolder = workspaceFolder; this._cwd = cwd; this.getConfiguration(); this.configurations.onDidChange(this.getConfiguration, this, this.disposables); } configurations; workspaceFolder; _cwd; _env; _bufnr; _root; _attached = false; _currentResolve = false; nvim; config; disposables = []; _filetypeTimer = /* @__PURE__ */ new Map(); creating = /* @__PURE__ */ new Map(); buffers = /* @__PURE__ */ new Map(); resolves = []; _onDidOpenTextDocument = new import_node4.Emitter(); _onDidCloseDocument = new import_node4.Emitter(); _onDidChangeDocument = new import_node4.Emitter(); _onDidSaveDocument = new import_node4.Emitter(); _onWillSaveDocument = new import_node4.Emitter(); onDidOpenTextDocument = this._onDidOpenTextDocument.event; onDidCloseDocument = this._onDidCloseDocument.event; onDidChangeDocument = this._onDidChangeDocument.event; onDidSaveTextDocument = this._onDidSaveDocument.event; onWillSaveTextDocument = this._onWillSaveDocument.event; async attach(nvim, env) { if (this._attached) return; this.nvim = nvim; this._env = env; this._attached = true; let { bufnrs, bufnr } = await this.nvim.call("coc#util#all_state"); this._bufnr = bufnr; await Promise.all(bufnrs.map((bufnr2) => this.createDocument(bufnr2))); if (isVim) { const checkedTick = /* @__PURE__ */ new Map(); events_default.on("CursorHold", async (bufnr2) => { let doc = this.getDocument(bufnr2); if (doc && doc.attached && checkedTick.get(bufnr2) != doc.changedtick) { let sha2562 = doc.getSha256(); let same = await nvim.callVim("coc#vim9#Check_sha256", [bufnr2, sha2562]); checkedTick.set(bufnr2, doc.changedtick); if (!same) await doc.fetchLines(); } }, null, this.disposables); } events_default.on("BufDetach", this.onBufDetach, this, this.disposables); events_default.on("BufRename", async (bufnr2) => { this.detachBuffer(bufnr2); await this.createDocument(bufnr2); }, null, this.disposables); events_default.on("DirChanged", (cwd2) => { this._cwd = normalizeFilePath(cwd2); }, null, this.disposables); const checkCurrentBuffer = (bufnr2) => { this._bufnr = bufnr2; void this.createDocument(bufnr2); }; events_default.on("CursorMoved", checkCurrentBuffer, null, this.disposables); events_default.on("CursorMovedI", checkCurrentBuffer, null, this.disposables); events_default.on("BufUnload", this.onBufUnload, this, this.disposables); events_default.on("BufEnter", this.onBufEnter, this, this.disposables); events_default.on("BufCreate", this.onBufCreate, this, this.disposables); events_default.on("TermOpen", this.onBufCreate, this, this.disposables); events_default.on("BufWritePost", this.onBufWritePost, this, this.disposables); events_default.on("BufWritePre", this.onBufWritePre, this, this.disposables); events_default.on("FileType", this.onFileTypeChange, this, this.disposables); events_default.on("BufEnter", (bufnr2) => { void this.createDocument(bufnr2); }, null, this.disposables); events_default.on("TextChanged", this.onTextChange, this, this.disposables); events_default.on("TextChangedI", this.onTextChange, this, this.disposables); } onTextChange(bufnr) { let doc = this.getDocument(bufnr); if (doc) doc.onTextChange(); } getConfiguration(e2) { if (!e2 || e2.affectsConfiguration("coc.preferences")) { let config = this.configurations.initialConfiguration.get("coc.preferences"); const bytes2 = require_bytes(); this.config = { maxFileSize: bytes2.parse(config.maxFileSize), willSaveHandlerTimeout: defaultValue(config.willSaveHandlerTimeout, 500), formatOnSaveTimeout: defaultValue(config.formatOnSaveTimeout, 500), useQuickfixForLocations: config.useQuickfixForLocations }; } } get bufnr() { return this._bufnr; } get root() { return this._root; } get cwd() { return this._cwd; } get documents() { return Array.from(this.buffers.values()).filter((o2) => o2.attached); } async getCurrentUri() { let bufnr = await this.nvim.call("bufnr", ["%"]); let doc = this.getDocument(bufnr); return doc ? doc.uri : void 0; } *attached(schema) { for (let doc of this.buffers.values()) { if (!doc.attached) continue; if (schema && doc.schema !== schema) continue; yield doc; } } get bufnrs() { return this.buffers.keys(); } detach() { this._attached = false; for (let bufnr of this.buffers.keys()) { this.onBufUnload(bufnr); } } resolveRoot(rootPatterns, requireRootPattern = false) { let doc = this.getDocument(this.bufnr); let resolved; if (doc && doc.schema == "file") { let dir = path.dirname(u.parse(doc.uri).fsPath); resolved = resolveRoot(dir, rootPatterns, this.cwd); } else { resolved = resolveRoot(this.cwd, rootPatterns); } if (requireRootPattern && !resolved) { throw new Error(`Required root pattern not resolved.`); } return resolved; } get textDocuments() { let docs = []; for (let b2 of this.buffers.values()) { if (b2.attached) docs.push(b2.textDocument); } return docs; } getDocument(uri, caseInsensitive = isWindows || isMacintosh) { if (typeof uri === "number") { return this.buffers.get(uri); } let u2 = u.parse(uri); uri = u2.toString(); let isFile2 = u2.scheme === "file"; for (let doc of this.buffers.values()) { if (doc.uri === uri) return doc; if (isFile2 && caseInsensitive && doc.uri.toLowerCase() === uri.toLowerCase()) return doc; } return null; } /** * Expand filepath with `~` and/or environment placeholders */ expand(input) { if (input.startsWith("~")) { input = os.homedir() + input.slice(1); } if (input.includes("$")) { let doc = this.getDocument(this.bufnr); let file = doc ? u.parse(doc.uri).fsPath : ""; input = expandVariables(input, { root: this._root || this._cwd, cwd: this._cwd, file }); input = input.replace(/\$[\w]+/g, (match2) => { if (match2 == "$HOME") return os.homedir(); return process.env[match2.slice(1)] || match2; }); } return input; } /** * Current document. */ get document() { if (this._currentResolve) { return new Promise((resolve) => { this.resolves.push(resolve); }); } this._currentResolve = true; return new Promise((resolve) => { this.nvim.eval(`coc#util#get_bufoptions(bufnr("%"),${this.config.maxFileSize})`).then((opts) => { let doc; if (opts != null) { this.creating.delete(opts.bufnr); doc = this._createDocument(opts); } this.resolveCurrent(doc); resolve(doc); this._currentResolve = false; }, () => { resolve(void 0); this._currentResolve = false; }); }); } resolveCurrent(document2) { if (this.resolves.length > 0) { while (this.resolves.length) { const fn = this.resolves.pop(); if (fn) fn(document2); } } } get uri() { let { bufnr } = this; if (bufnr) { let doc = this.getDocument(bufnr); if (doc) return doc.uri; } return null; } /** * Current filetypes. */ get filetypes() { let res = /* @__PURE__ */ new Set(); for (let doc of this.attached()) { res.add(doc.filetype); } return res; } /** * Get filetype by check same extension name buffer. */ getLanguageId(filepath) { let ext2 = path.extname(filepath); if (!ext2) return ""; for (let doc of this.attached()) { let fsPath2 = u.parse(doc.uri).fsPath; if (path.extname(fsPath2) == ext2) { return doc.languageId; } } return ""; } async getLines(uri) { let doc = this.getDocument(uri); if (doc) return doc.textDocument.lines; let u2 = u.parse(uri); if (u2.scheme !== "file") return []; try { let content = await readFile(u2.fsPath, "utf8"); return content.split(/\r?\n/); } catch (e2) { return []; } } /** * Current languageIds. */ get languageIds() { let res = /* @__PURE__ */ new Set(); for (let doc of this.attached()) { res.add(doc.languageId); } return res; } /** * Get format options */ async getFormatOptions(uri) { let bufnr = typeof uri === "number" ? uri : this.getBufnr(uri); let res = await this.nvim.call("coc#util#get_format_opts", [bufnr]); return convertFormatOptions(res); } getBufnr(uri) { if (!uri) return 0; let doc = this.getDocument(uri); return doc ? doc.bufnr : 0; } /** * Create document by bufnr. */ async createDocument(bufnr) { let doc = this.buffers.get(bufnr); if (doc) return doc; if (this.creating.has(bufnr)) return await this.creating.get(bufnr); let promise = new Promise((resolve) => { this.nvim.call("coc#util#get_bufoptions", [bufnr, this.config.maxFileSize]).then((opts) => { if (!this.creating.has(bufnr)) { resolve(void 0); return; } this.creating.delete(bufnr); if (!opts) { resolve(void 0); return; } doc = this._createDocument(opts); resolve(doc); }, () => { this.creating.delete(bufnr); resolve(void 0); }); }); this.creating.set(bufnr, promise); return await promise; } async onBufCreate(bufnr) { this.onBufUnload(bufnr); await this.createDocument(bufnr); } _createDocument(opts) { let { bufnr } = opts; if (this.buffers.has(bufnr)) return this.buffers.get(bufnr); let buffer = this.nvim.createBuffer(bufnr); let doc = new Document(buffer, this.nvim, this.convertFiletype(opts.filetype), opts); if (opts.size > this.config.maxFileSize) logger16.warn(`buffer ${opts.bufnr} size exceed maxFileSize ${this.config.maxFileSize}, not attached.`); this.buffers.set(bufnr, doc); if (doc.attached) { if (doc.schema == "file") { this.configurations.locateFolderConfigution(doc.uri); let root = this.workspaceFolder.resolveRoot(doc, this._cwd, true, this.expand.bind(this)); if (root && bufnr == this._bufnr) this.changeRoot(root); } this._onDidOpenTextDocument.fire(doc.textDocument); doc.onDocumentChange((e2) => this._onDidChangeDocument.fire(e2)); } logger16.debug("buffer created", bufnr, doc.attached, doc.uri); return doc; } onBufEnter(bufnr) { this._bufnr = bufnr; let doc = this.buffers.get(bufnr); if (doc) { let workspaceFolder = this.workspaceFolder.getWorkspaceFolder(u.parse(doc.uri)); if (workspaceFolder) this._root = u.parse(workspaceFolder.uri).fsPath; } } onBufUnload(bufnr) { this.creating.delete(bufnr); void this.onBufDetach(bufnr, false); } async onBufDetach(bufnr, checkReload = true) { this.clearTimer(bufnr); this.detachBuffer(bufnr); if (checkReload) { let loaded = await this.nvim.call("bufloaded", [bufnr]); if (loaded) await this.createDocument(bufnr); } } detachBuffer(bufnr) { let doc = this.buffers.get(bufnr); this.buffers.delete(bufnr); if (!doc || !doc.attached) return; logger16.debug("document detach", bufnr, doc.uri); this._onDidCloseDocument.fire(doc.textDocument); doc.detach(); const uris = this.textDocuments.map((o2) => u.parse(o2.uri)); this.workspaceFolder.onDocumentDetach(uris); } async onBufWritePost(bufnr, changedtick) { let doc = this.buffers.get(bufnr); if (doc) { if (doc.changedtick != changedtick) await doc.patchChange(); this._onDidSaveDocument.fire(doc.textDocument); } } async onBufWritePre(bufnr, bufname, changedtick) { let doc = this.buffers.get(bufnr); if (!doc || !doc.attached) return; if (doc.bufname != bufname) { this.detachBuffer(bufnr); doc = await this.createDocument(bufnr); if (!doc.attached) return; } if (doc.changedtick != changedtick) { await doc.synchronize(); } else { await doc.patchChange(); } let firing = true; let thenables = []; let event = { bufnr: doc.bufnr, document: doc.textDocument, reason: import_node4.TextDocumentSaveReason.Manual, waitUntil: (thenable) => { if (!firing) { this.nvim.echoError(`waitUntil can't be used in async manner, check log for details`); } else { thenables.push(thenable); } } }; this._onWillSaveDocument.fire(event); firing = false; let total = thenables.length; if (total) { let promise = new Promise((resolve) => { const willSaveHandlerTimeout = this.config.willSaveHandlerTimeout; let timer = setTimeout(() => { this.nvim.outWriteLine(`Will save handler timeout after ${willSaveHandlerTimeout}ms`); resolve(void 0); }, willSaveHandlerTimeout); let i2 = 0; let called = false; for (let p2 of thenables) { let cb = (res) => { if (called) return; called = true; clearTimeout(timer); resolve(res); }; p2.then((res) => { if (Array.isArray(res) && res.length && TextEdit.is(res[0])) { return cb(res); } i2 = i2 + 1; if (i2 == total) cb(void 0); }, (e2) => { logger16.error(`Error on will save handler:`, e2); i2 = i2 + 1; if (i2 == total) cb(void 0); }); } }); let edits = await promise; if (edits) await doc.applyEdits(edits, false, this.bufnr === doc.bufnr); } await this.tryCodeActionsOnSave(doc); await this.tryFormatOnSave(doc); await doc.synchronize(); } async tryFormatOnSave(document2) { if (!this.shouldFormatOnSave(document2)) return; let options3 = await this.getFormatOptions(document2.uri); let formatOnSaveTimeout = this.config.formatOnSaveTimeout; let timer; let tokenSource = new import_node4.CancellationTokenSource(); const tp = new Promise((c2) => { timer = setTimeout(() => { logger16.warn(`Format on save timeout after ${formatOnSaveTimeout}ms`, document2.uri); tokenSource.cancel(); c2(void 0); }, formatOnSaveTimeout); }); const provideEdits = languages_default.provideDocumentFormattingEdits(document2.textDocument, options3, tokenSource.token); let textEdits = await Promise.race([tp, provideEdits]); clearTimeout(timer); if (isFalsyOrEmpty(textEdits)) return; await document2.applyEdits(textEdits); let extensionName = textEdits["__extensionName"]; logger16.info(`Format buffer ${document2.bufnr} by ${toText(extensionName)}`); } async tryCodeActionsOnSave(doc) { let editorConfig = this.configurations.getConfiguration("editor", doc.textDocument); let conf = editorConfig.get("codeActionsOnSave", {}); if (emptyObject(conf)) return false; const actions = []; for (const key of Object.keys(conf)) { if (conf[key] === true || conf[key] === "always") { actions.push(key); } } if (actions.length === 0) return false; await commands_default.executeCommand("editor.action.executeCodeActions", doc, void 0, actions, this.config.willSaveHandlerTimeout); return true; } shouldFormatOnSave(document2) { const config = this.configurations.getConfiguration("coc.preferences", document2); const filetypes = config.get("formatOnSaveFiletypes", null); const enabledInConfiguration = Array.isArray(filetypes) ? filetypes.includes("*") || filetypes.includes(document2.languageId) : config.get("formatOnSave", false); if (!enabledInConfiguration) return false; if (!languages_default.hasFormatProvider(document2)) { logger16.warn(`Format provider not found for ${document2.uri}`); return false; } if (!document2 || document2.getVar("disable_autoformat", 0)) { logger16.warn(`Format ${document2.uri} disabled by b:coc_disable_autoformat`); return false; } return true; } onFileTypeChange(filetype, bufnr) { let doc = this.getDocument(bufnr); if (!doc) return; this.clearTimer(bufnr); let timer = setTimeout(() => { if (this.creating.has(bufnr) || !doc.attached) return; let converted = this.convertFiletype(filetype); if (converted === doc.filetype) return; this._onDidCloseDocument.fire(doc.textDocument); doc.setFiletype(filetype); this._onDidOpenTextDocument.fire(doc.textDocument); }, filetypeDelay); this._filetypeTimer.set(bufnr, timer); } async getQuickfixList(locations) { let filesLines = {}; let filepathList = locations.reduce((pre, curr) => { let u2 = u.parse(curr.uri); if (u2.scheme == "file" && !pre.includes(u2.fsPath) && !this.getDocument(curr.uri)) { pre.push(u2.fsPath); } return pre; }, []); await Promise.all(filepathList.map((fsPath2) => { return new Promise((resolve) => { readFile(fsPath2, "utf8").then((content) => { filesLines[fsPath2] = content.split(/\r?\n/); resolve(void 0); }, () => { resolve(); }); }); })); return await Promise.all(locations.map((loc) => { let { uri, range: range2 } = loc; let { fsPath: fsPath2 } = u.parse(uri); let text; let lines = filesLines[fsPath2]; if (lines) text = lines[range2.start.line]; return this.getQuickfixItem(loc, text); })); } /** * Populate locations to UI. */ async showLocations(locations) { let { nvim } = this; let items = await this.getQuickfixList(locations); if (this.config.useQuickfixForLocations) { let openCommand = await nvim.getVar("coc_quickfix_open_command"); if (typeof openCommand != "string") { openCommand = items.length < 10 ? `copen ${items.length}` : "copen"; } nvim.pauseNotification(); nvim.call("setqflist", [items], true); nvim.command(openCommand, true); nvim.resumeNotification(false, true); } else { await nvim.setVar("coc_jump_locations", items); if (this._env.locationlist) { nvim.command("CocList --normal --auto-preview location", true); } else { nvim.call("coc#util#do_autocmd", ["CocLocationsChange"], true); } } } fixUnixPrefix(filepath) { if (!this._env.isCygwin || !/^\w:/.test(filepath)) return filepath; return this._env.unixPrefix + filepath[0].toLowerCase() + filepath.slice(2).replace(/\\/g, "/"); } /** * Convert location to quickfix item. */ async getQuickfixItem(loc, text, type = "", module2) { let targetRange = loc.targetRange; if (LocationLink.is(loc)) { loc = Location.create(loc.targetUri, loc.targetRange); } let doc = this.getDocument(loc.uri); let { uri, range: range2 } = loc; let { start, end } = range2; let u2 = u.parse(uri); if (!text && u2.scheme == "file") { text = await this.getLine(uri, start.line); } let endLine = start.line == end.line ? text : await this.getLine(uri, end.line); let item = { uri, filename: u2.scheme == "file" ? this.fixUnixPrefix(u2.fsPath) : uri, lnum: start.line + 1, end_lnum: end.line + 1, col: text ? byteIndex(text, start.character) + 1 : start.character + 1, end_col: endLine ? byteIndex(endLine, end.character) + 1 : end.character + 1, text: text || "", range: range2 }; if (targetRange) item.targetRange = targetRange; if (module2) item.module = module2; if (type) item.type = type; if (doc) item.bufnr = doc.bufnr; return item; } /** * Get content of line by uri and line. */ async getLine(uri, line) { let document2 = this.getDocument(uri); if (document2 && document2.attached) return document2.getline(line) || ""; if (!uri.startsWith("file:")) return ""; let fsPath2 = u.parse(uri).fsPath; if (!fs.existsSync(fsPath2)) return ""; return await readFileLine(fsPath2, line); } /** * Get content from buffer or file by uri. */ async readFile(uri) { let document2 = this.getDocument(uri); if (document2) { await document2.patchChange(); return document2.content; } let u2 = u.parse(uri); if (u2.scheme != "file") return ""; let lines = await this.nvim.call("readfile", [u2.fsPath]); return lines.join("\n") + "\n"; } clearTimer(bufnr) { let timer = this._filetypeTimer.get(bufnr); if (timer) clearTimeout(timer); } convertFiletype(filetype) { switch (filetype) { case "javascript.jsx": return "javascriptreact"; case "typescript.jsx": case "typescript.tsx": return "typescriptreact"; case "tex": return "latex"; default: { let map = toObject(this._env.filetypeMap); return toText(hasOwnProperty2(map, filetype) ? map[filetype] : filetype); } } } reset() { this.creating.clear(); for (let bufnr of this.buffers.keys()) { this.onBufUnload(bufnr); } this.buffers.clear(); this.changeRoot(process.cwd()); } changeRoot(dir) { this._root = normalizeFilePath(dir); } dispose() { for (let bufnr of this.buffers.keys()) { this.onBufUnload(bufnr); } this._attached = false; this.buffers.clear(); disposeAll(this.disposables); } }; } }); // src/core/editors.ts function renamed(editor, info) { let { document: document2, uri } = editor; if (document2.bufnr != info.bufnr) return false; let u2 = u.parse(uri); if (u2.scheme === "file") return !sameFile(u2.fsPath, info.fullpath); return false; } var logger17, Editors; var init_editors = __esm({ "src/core/editors.ts"() { "use strict"; init_main(); init_esm(); init_events(); init_logger(); init_convert(); init_errors(); init_fs(); init_mutex(); init_protocol(); logger17 = createLogger("core-editors"); Editors = class { constructor(documents) { this.documents = documents; } documents; disposables = []; winid = -1; mutex = new Mutex(); previousId; nvim; editors = /* @__PURE__ */ new Map(); tabIds = /* @__PURE__ */ new Set(); creating = /* @__PURE__ */ new Set(); _onDidTabClose = new import_node4.Emitter(); _onDidChangeActiveTextEditor = new import_node4.Emitter(); _onDidChangeVisibleTextEditors = new import_node4.Emitter(); onDidTabClose = this._onDidTabClose.event; onDidChangeActiveTextEditor = this._onDidChangeActiveTextEditor.event; onDidChangeVisibleTextEditors = this._onDidChangeVisibleTextEditors.event; get activeTextEditor() { return this.editors.get(this.winid); } get visibleTextEditors() { return Array.from(this.editors.values()); } getFormatOptions(bufnr) { for (let editor of this.editors.values()) { if (editor.bufnr === bufnr || editor.uri === bufnr) return editor.options; } return void 0; } getBufWinids(bufnr) { let winids = []; for (let editor of this.editors.values()) { if (editor.bufnr == bufnr) winids.push(editor.winid); } return winids; } onChangeCurrent(editor) { if (!editor) return; let id2 = editor.id; if (id2 === this.previousId) return; this.previousId = id2; this._onDidChangeActiveTextEditor.fire(editor); } async attach(nvim) { this.nvim = nvim; let [winid, infos] = await nvim.eval(`[win_getid(),coc#util#editor_infos()]`); await Promise.allSettled(infos.map((info) => { return this.createTextEditor(info.winid); })); this.winid = winid; events_default.on("CursorHold", this.checkEditors, this, this.disposables); events_default.on("TabNew", (tabid) => { this.tabIds.add(tabid); }, null, this.disposables); events_default.on("TabClosed", this.checkTabs, this, this.disposables); events_default.on("WinEnter", (winid2) => { this.winid = winid2; let editor = this.editors.get(winid2); if (editor) this.onChangeCurrent(editor); }, null, this.disposables); events_default.on("WinClosed", (winid2) => { if (this.editors.has(winid2)) { this.editors.delete(winid2); this._onDidChangeVisibleTextEditors.fire(this.visibleTextEditors); } }, null, this.disposables); events_default.on("BufWinEnter", async (_2, winid2) => { this.winid = winid2; let changed = await this.createTextEditor(winid2); if (changed) this._onDidChangeVisibleTextEditors.fire(this.visibleTextEditors); }, null, this.disposables); this.documents.onDidOpenTextDocument(async (e2) => { let document2 = this.documents.getDocument(e2.bufnr); let changed = false; for (let winid2 of document2.winids) { let editor = this.editors.get(winid2); if (editor?.document !== document2) { let res = await this.createTextEditor(winid2).catch(onUnexpectedError); if (res) changed = true; } } if (changed) this._onDidChangeVisibleTextEditors.fire(this.visibleTextEditors); }, null, this.disposables); } checkTabs(ids) { let changed = false; for (let editor of this.editors.values()) { if (!ids.includes(editor.tabpageid)) { changed = true; this.editors.delete(editor.winid); } } for (let id2 of Array.from(this.tabIds)) { if (!ids.includes(id2)) this._onDidTabClose.fire(id2); } this.tabIds = new Set(ids); if (changed) this._onDidChangeVisibleTextEditors.fire(this.visibleTextEditors); } checkUnloadedBuffers(bufnrs) { for (let bufnr of this.documents.bufnrs) { if (!bufnrs.includes(bufnr)) { void events_default.fire("BufUnload", [bufnr]); } } } async checkEditors() { let { documents } = this; await this.mutex.use(async () => { let [winid, bufnrs, infos] = await this.nvim.eval(`[win_getid(),coc#util#get_loaded_bufs(),coc#util#editor_infos()]`); this.winid = winid; this.checkUnloadedBuffers(bufnrs); let changed = false; let winids = /* @__PURE__ */ new Set(); for (let info of infos) { let editor = this.editors.get(info.winid); let create2 = false; if (!editor) { create2 = true; } else if (renamed(editor, info)) { void events_default.fire("BufRename", [info.bufnr]); create2 = true; } else if (editor.document.bufnr != info.bufnr || editor.document !== documents.getDocument(info.bufnr) || editor.tabpageid != info.tabid) { create2 = true; } if (create2) { await this.createTextEditor(info.winid); changed = true; } winids.add(info.winid); } if (this.cleanUpEditors(winids)) { changed = true; } this.onChangeCurrent(this.activeTextEditor); if (changed) this._onDidChangeVisibleTextEditors.fire(this.visibleTextEditors); }); } cleanUpEditors(winids) { let changed = false; for (let winid of Array.from(this.editors.keys())) { if (!winids.has(winid)) { changed = true; this.editors.delete(winid); } } return changed; } async createTextEditor(winid) { let { documents, creating, nvim } = this; if (creating.has(winid)) return false; let changed = false; creating.add(winid); try { let opts = await nvim.call("coc#util#get_editoroption", [winid]); if (opts) { this.tabIds.add(opts.tabpageid); let doc = documents.getDocument(opts.bufnr); if (doc && doc.attached) { let editor = this.fromOptions(opts); this.editors.set(winid, editor); if (winid == this.winid) this.onChangeCurrent(editor); logger17.debug("editor created winid & bufnr & tabpageid: ", winid, opts.bufnr, opts.tabpageid); changed = true; } else if (this.editors.has(winid)) { this.editors.delete(winid); changed = true; } } } finally { creating.delete(winid); } return changed; } fromOptions(opts) { let { visibleRanges, bufnr, formatOptions } = opts; let { documents } = this; let document2 = documents.getDocument(bufnr); return { id: `${opts.tabpageid}-${opts.winid}-${document2.uri}`, tabpageid: opts.tabpageid, winid: opts.winid, winnr: opts.winnr, uri: document2.uri, bufnr: document2.bufnr, document: document2, visibleRanges: visibleRanges.map((o2) => Range.create(o2[0] - 1, 0, o2[1], 0)), options: convertFormatOptions(formatOptions) }; } }; } }); // node_modules/balanced-match/dist/esm/index.js var balanced, maybeMatch, range; var init_esm2 = __esm({ "node_modules/balanced-match/dist/esm/index.js"() { balanced = (a2, b2, str) => { const ma = a2 instanceof RegExp ? maybeMatch(a2, str) : a2; const mb = b2 instanceof RegExp ? maybeMatch(b2, str) : b2; const r2 = ma !== null && mb != null && range(ma, mb, str); return r2 && { start: r2[0], end: r2[1], pre: str.slice(0, r2[0]), body: str.slice(r2[0] + ma.length, r2[1]), post: str.slice(r2[1] + mb.length) }; }; maybeMatch = (reg, str) => { const m2 = str.match(reg); return m2 ? m2[0] : null; }; range = (a2, b2, str) => { let begs, beg, left, right = void 0, result; let ai = str.indexOf(a2); let bi = str.indexOf(b2, ai + 1); let i2 = ai; if (ai >= 0 && bi > 0) { if (a2 === b2) { return [ai, bi]; } begs = []; left = str.length; while (i2 >= 0 && !result) { if (i2 === ai) { begs.push(i2); ai = str.indexOf(a2, i2 + 1); } else if (begs.length === 1) { const r2 = begs.pop(); if (r2 !== void 0) result = [r2, bi]; } else { beg = begs.pop(); if (beg !== void 0 && beg < left) { left = beg; right = bi; } bi = str.indexOf(b2, i2 + 1); } i2 = ai < bi && ai >= 0 ? ai : bi; } if (begs.length && right !== void 0) { result = [left, right]; } } return result; }; } }); // node_modules/brace-expansion/dist/esm/index.js function numeric(str) { return !isNaN(str) ? parseInt(str, 10) : str.charCodeAt(0); } function escapeBraces(str) { return str.replace(slashPattern, escSlash).replace(openPattern, escOpen).replace(closePattern, escClose).replace(commaPattern, escComma).replace(periodPattern, escPeriod); } function unescapeBraces(str) { return str.replace(escSlashPattern, "\\").replace(escOpenPattern, "{").replace(escClosePattern, "}").replace(escCommaPattern, ",").replace(escPeriodPattern, "."); } function pushAll(target, items) { for (let i2 = 0; i2 < items.length; i2++) { target.push(items[i2]); } } function parseCommaParts(str) { const parts = []; let carry = ""; for (; ; ) { const m2 = balanced("{", "}", str); if (!m2) { const tail = str.split(","); tail[0] = carry + tail[0]; pushAll(parts, tail); return parts; } const { pre, body, post } = m2; const p2 = pre.split(","); p2[0] = carry + p2[0]; p2[p2.length - 1] += "{" + body + "}"; if (!post.length) { pushAll(parts, p2); return parts; } carry = p2.pop(); pushAll(parts, p2); str = post; } } function expand2(str, options3 = {}) { if (!str) { return []; } const { max = EXPANSION_MAX, maxLength = EXPANSION_MAX_LENGTH, maxDepth = EXPANSION_MAX_DEPTH, maxRewrites = EXPANSION_MAX_REWRITES } = options3; if (str.slice(0, 2) === "{}") { str = "\\{\\}" + str.slice(2); } return expand_(escapeBraces(str), max, maxLength, maxDepth, 0, maxRewrites, true).map(unescapeBraces); } function embrace(str) { return "{" + str + "}"; } function isPadded(el) { return /^-?0\d/.test(el); } function lte(i2, y2) { return i2 <= y2; } function gte(i2, y2) { return i2 >= y2; } function combine(acc, pre, values, max, maxLength, dropEmpties) { const out = []; let length = 0; for (let a2 = 0; a2 < acc.length; a2++) { for (let v2 = 0; v2 < values.length; v2++) { if (out.length >= max) return out; const expansion = acc[a2] + pre + values[v2]; if (dropEmpties && !expansion) continue; if (length + expansion.length > maxLength) return out; out.push(expansion); length += expansion.length; } } return out; } function expandSequence(body, isAlphaSequence, max, maxLength) { const n2 = body.split(/\.\./); const N = []; if (n2[0] === void 0 || n2[1] === void 0) { return N; } const x2 = numeric(n2[0]); const y2 = numeric(n2[1]); const width = Math.max(n2[0].length, n2[1].length); let incr = n2.length === 3 && n2[2] !== void 0 ? Math.max(Math.abs(numeric(n2[2])), 1) : 1; let test = lte; const reverse = y2 < x2; if (reverse) { incr *= -1; test = gte; } const pad2 = n2.some(isPadded); let length = 0; for (let i2 = x2; test(i2, y2) && N.length < max; i2 += incr) { let c2; if (isAlphaSequence) { c2 = String.fromCharCode(i2); if (c2 === "\\") { c2 = ""; } } else { c2 = String(i2); if (pad2) { const need = width - c2.length; if (need > 0) { const z = new Array(need + 1).join("0"); if (i2 < 0) { c2 = "-" + z + c2.slice(1); } else { c2 = z + c2; } } } } if (length + c2.length > maxLength) break; N.push(c2); length += c2.length; } return N; } function expand_(str, max, maxLength, maxDepth, depth, maxRewrites, isTop) { if (depth > maxDepth) { return [str]; } let acc = [""]; let rewrites = 0; let dropEmpties = false; let firstGroup = true; for (; ; ) { const m2 = balanced("{", "}", str); if (!m2) { return combine(acc, str, [""], max, maxLength, dropEmpties); } const pre = m2.pre; if (/\$$/.test(pre)) { acc = combine(acc, pre + "{" + m2.body + "}", [""], max, maxLength, dropEmpties && !m2.post.length); firstGroup = false; if (!m2.post.length) break; str = m2.post; continue; } const isNumericSequence = /^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(m2.body); const isAlphaSequence = /^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(m2.body); const isSequence = isNumericSequence || isAlphaSequence; const isOptions = m2.body.indexOf(",") >= 0; if (!isSequence && !isOptions) { if (rewrites < maxRewrites && m2.post.match(/,(?!,).*\}/)) { rewrites++; str = m2.pre + "{" + m2.body + escClose + m2.post; isTop = true; continue; } return combine(acc, pre + "{" + m2.body + "}" + m2.post, [""], max, maxLength, dropEmpties); } if (firstGroup) { dropEmpties = isTop && !isSequence; firstGroup = false; } let values; if (isSequence) { values = expandSequence(m2.body, isAlphaSequence, max, maxLength); } else { let n2 = parseCommaParts(m2.body); if (n2.length === 1 && n2[0] !== void 0) { n2 = expand_(n2[0], max, maxLength, maxDepth, depth + 1, maxRewrites, false).map(embrace); if (n2.length === 1) { acc = combine(acc, pre + n2[0], [""], max, maxLength, dropEmpties && !m2.post.length); if (!m2.post.length) break; str = m2.post; continue; } } let dropsEmpties = dropEmpties && !m2.post.length && !pre; for (let d2 = 0; dropsEmpties && d2 < acc.length; d2++) { if (acc[d2]) { dropsEmpties = false; } } values = []; let valuesLength = 0; outer: for (let j = 0; j < n2.length; j++) { const expanded = expand_(n2[j], max, maxLength, maxDepth, depth + 1, maxRewrites, false); for (let k = 0; k < expanded.length; k++) { const v2 = expanded[k]; if (dropsEmpties && !v2) continue; if (values.length >= max || valuesLength + v2.length > maxLength) { break outer; } values.push(v2); valuesLength += v2.length; } } } acc = combine(acc, pre, values, max, maxLength, dropEmpties && !m2.post.length); if (!m2.post.length) break; str = m2.post; } return acc; } var escSlash, escOpen, escClose, escComma, escPeriod, escSlashPattern, escOpenPattern, escClosePattern, escCommaPattern, escPeriodPattern, slashPattern, openPattern, closePattern, commaPattern, periodPattern, EXPANSION_MAX, EXPANSION_MAX_LENGTH, EXPANSION_MAX_DEPTH, EXPANSION_MAX_REWRITES; var init_esm3 = __esm({ "node_modules/brace-expansion/dist/esm/index.js"() { init_esm2(); escSlash = "\0SLASH" + Math.random() + "\0"; escOpen = "\0OPEN" + Math.random() + "\0"; escClose = "\0CLOSE" + Math.random() + "\0"; escComma = "\0COMMA" + Math.random() + "\0"; escPeriod = "\0PERIOD" + Math.random() + "\0"; escSlashPattern = new RegExp(escSlash, "g"); escOpenPattern = new RegExp(escOpen, "g"); escClosePattern = new RegExp(escClose, "g"); escCommaPattern = new RegExp(escComma, "g"); escPeriodPattern = new RegExp(escPeriod, "g"); slashPattern = /\\\\/g; openPattern = /\\{/g; closePattern = /\\}/g; commaPattern = /\\,/g; periodPattern = /\\\./g; EXPANSION_MAX = 1e5; EXPANSION_MAX_LENGTH = 4e6; EXPANSION_MAX_DEPTH = 1e3; EXPANSION_MAX_REWRITES = 1e3; } }); // node_modules/@isaacs/nonrecursive-glob-match/dist/esm/numeric-range.js var digit, prefix, fixed, nonneg, numericRange; var init_numeric_range = __esm({ "node_modules/@isaacs/nonrecursive-glob-match/dist/esm/numeric-range.js"() { digit = (a2, b2) => a2 === b2 ? { t: "lit", ch: String(a2) } : { t: "class", re: new RegExp(`^[${a2}-${b2}]$`) }; prefix = (d2, alts) => alts.map((s2) => [digit(d2, d2), ...s2]); fixed = (a2, b2) => { if (!a2) return [[]]; let lo = +a2[0]; let hi = +b2[0]; const ra = a2.slice(1); const rb = b2.slice(1); if (lo === hi) return prefix(lo, fixed(ra, rb)); const zeros = "0".repeat(ra.length); const nines = "9".repeat(ra.length); const out = []; if (ra !== zeros) out.push(...prefix(lo++, fixed(ra, nines))); const last = rb === nines ? [] : prefix(hi--, fixed(zeros, rb)); if (lo <= hi) { out.push([digit(lo, hi), ...Array.from(ra, () => digit(0, 9))]); } out.push(...last); return out; }; nonneg = (a2, b2, width) => { if (width) { return fixed(String(a2).padStart(width, "0"), String(b2).padStart(width, "0")); } const out = []; for (let len = String(a2).length; len <= String(b2).length; len++) { const lo = Math.max(a2, len === 1 ? 0 : 10 ** (len - 1)); const hi = Math.min(b2, 10 ** len - 1); out.push(...fixed(String(lo), String(hi))); } return out; }; numericRange = (loStr, hiStr) => { let lo = Number(loStr); let hi = Number(hiStr); if (!Number.isSafeInteger(lo) || !Number.isSafeInteger(hi)) return; if (lo > hi) [lo, hi] = [hi, lo]; const padded = /^-?0\d/.test(loStr) || /^-?0\d/.test(hiStr); const width = padded ? Math.max(loStr.length, hiStr.length) : 0; const out = []; if (lo < 0) { const neg = nonneg(Math.max(-hi, 1), -lo, width && width - 1); out.push(...neg.map((s2) => [{ t: "lit", ch: "-" }, ...s2])); } if (hi >= 0) out.push(...nonneg(Math.max(lo, 0), hi, width)); return out; }; } }); // node_modules/@isaacs/nonrecursive-glob-match/dist/esm/parse-class.js var posixClasses, braceEscape, noMatch, parseClass; var init_parse_class = __esm({ "node_modules/@isaacs/nonrecursive-glob-match/dist/esm/parse-class.js"() { posixClasses = { "[:alnum:]": ["\\p{L}\\p{Nl}\\p{Nd}"], "[:alpha:]": ["\\p{L}\\p{Nl}"], "[:ascii:]": ["\\x00-\\x7f"], "[:blank:]": ["\\p{Zs}\\t"], "[:cntrl:]": ["\\p{Cc}"], "[:digit:]": ["\\p{Nd}"], "[:graph:]": ["\\p{Z}\\p{C}", true], "[:lower:]": ["\\p{Ll}"], "[:print:]": ["\\p{C}", true], "[:punct:]": ["\\p{P}\\p{S}"], "[:space:]": ["\\p{Z}\\t\\r\\n\\v\\f"], "[:upper:]": ["\\p{Lu}"], "[:word:]": ["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}"], "[:xdigit:]": ["A-Fa-f0-9"] }; braceEscape = (s2) => s2.replace(/[[\]\\-]/g, "\\$&"); noMatch = /$./; parseClass = (glob2, position, nocase = false, form) => { const norm = (c2) => { const n2 = form ? c2.normalize(form) : c2; return [...n2].length === 1 ? n2 : c2; }; const pos = position; if (glob2.charAt(pos) !== "[") { throw new Error("not in a brace expression"); } const ranges = []; const negs = []; let i2 = pos + 1; let sawStart = false; let escaping = false; let negate = false; let endPos = pos; let rangeStart = ""; WHILE: while (i2 < glob2.length) { const c2 = String.fromCodePoint(glob2.codePointAt(i2)); if ((c2 === "!" || c2 === "^") && i2 === pos + 1) { negate = true; i2++; continue; } if (c2 === "]" && sawStart && !escaping) { endPos = i2 + 1; break; } sawStart = true; if (c2 === "\\") { if (!escaping) { escaping = true; i2++; continue; } } if (c2 === "[" && !escaping) { for (const [cls, [unip, neg]] of Object.entries(posixClasses)) { if (glob2.startsWith(cls, i2)) { if (rangeStart) { return [noMatch, glob2.length - pos]; } i2 += cls.length; if (neg) negs.push(unip); else ranges.push(unip); continue WHILE; } } } escaping = false; const n2 = norm(c2); if (rangeStart) { if (n2.codePointAt(0) > rangeStart.codePointAt(0)) { ranges.push(braceEscape(rangeStart) + "-" + braceEscape(n2)); } else if (n2 === rangeStart) { ranges.push(braceEscape(n2)); } rangeStart = ""; i2 += c2.length; continue; } if (glob2.startsWith("-]", i2 + c2.length)) { ranges.push(braceEscape(n2 + "-")); i2 += c2.length + 1; continue; } if (glob2.startsWith("-", i2 + c2.length)) { rangeStart = n2; i2 += c2.length + 1; continue; } ranges.push(braceEscape(n2)); i2 += c2.length; } if (endPos < i2) { return [noMatch, 0]; } if (!ranges.length && !negs.length) { return [noMatch, glob2.length - pos]; } const sranges = "[" + (negate ? "^" : "") + ranges.join("") + "]"; const snegs = "[" + (negate ? "" : "^") + negs.join("") + "]"; const comb = "^" + (ranges.length && negs.length ? "(" + sranges + "|" + snegs + ")" : ranges.length ? sranges : snegs); return [new RegExp(comb, nocase ? "iu" : "u"), endPos - pos]; }; } }); // node_modules/@isaacs/nonrecursive-glob-match/dist/esm/index.js var MATCH, extTypes, lit, reEscape, newFoldRe, foldCache, foldRe, litMatch, tokenize, pair, build, normalize, compile, show, State, sameState, marks, Sim, stateKey, DFA_BUDGET, Dfa, linear, testLinear, lengths, itemLengths, hasAffix, slashOrSurrogate, surrogate, codePoints, noSlash, Matcher; var init_esm4 = __esm({ "node_modules/@isaacs/nonrecursive-glob-match/dist/esm/index.js"() { init_numeric_range(); init_parse_class(); MATCH = { t: "match", id: 0 }; extTypes = "!?+*@"; lit = (ch) => ({ t: "lit", ch }); reEscape = (s2) => s2.replace(/[\\^$.*+?()[\]{}|/]/g, "\\$&"); newFoldRe = (s2) => new RegExp(`^${reEscape(s2)}$`, "iu"); foldCache = /* @__PURE__ */ new Map(); foldRe = (ch) => { let re = foldCache.get(ch); if (!re) { re = newFoldRe(ch); if (foldCache.size >= 1e3) foldCache.clear(); foldCache.set(ch, re); } return re; }; litMatch = (l2, c2) => { if (c2 === l2.ch) return true; if (!l2.re) return false; const code = c2.charCodeAt(0); if (code >= 128) return l2.re.test(c2); const ascii = l2.ascii ??= new Uint8Array(128); ascii[code] ||= l2.re.test(c2) ? 1 : 2; return ascii[code] === 1; }; tokenize = (p2, nocase, noext, form, mark) => { const toks = []; for (let i2 = 0; i2 < p2.length; ) { const c2 = String.fromCodePoint(p2.codePointAt(i2)); if (mark) { const m2 = c2 === "\\" && p2.startsWith(mark, i2 + 1) ? 1 : 0; if (m2 || c2 === mark) { const start = i2 + m2 + mark.length; const end = p2.indexOf(mark, start); const r2 = /^(-?\d+)\.\.(-?\d+)$/.exec(p2.slice(start, end)); const alts = end !== -1 && r2 && numericRange(r2[1], r2[2]); if (alts) { toks.push({ t: "ext", type: "@", alts }); i2 = end + mark.length; continue; } } } if (c2 === "\\") { const e2 = p2.codePointAt(i2 + 1); const ch = e2 === void 0 ? c2 : String.fromCodePoint(e2); toks.push(lit(ch)); i2 += 1 + ch.length; continue; } if (c2 === "[") { const [re, consumed] = parseClass(p2, i2, nocase, form); if (consumed) { toks.push({ t: "class", re }); i2 += consumed; continue; } } if (!noext && extTypes.includes(c2) && p2[i2 + 1] === "(") { toks.push({ t: "open", type: c2 }); i2 += 2; continue; } toks.push(!noext && c2 === "|" ? { t: "bar" } : !noext && c2 === ")" ? { t: "close" } : c2 === "*" ? { t: "star" } : c2 === "?" ? { t: "any" } : lit(c2)); i2 += c2.length; } return toks; }; pair = (toks) => { const pairs = /* @__PURE__ */ new Map(); const stack = []; toks.forEach((tok, i2) => { if (tok.t === "open") stack.push(i2); else if (tok.t === "close" && stack.length) pairs.set(stack.pop(), i2); }); return pairs; }; build = (toks, pairs, start, end, top) => { let seq = []; const alts = [seq]; for (let i2 = start; i2 < end; i2++) { const tok = toks[i2]; const close = pairs.get(i2); if (tok.t === "open" && close !== void 0) { const sub = build(toks, pairs, i2 + 1, close, false); seq.push({ t: "ext", type: tok.type, alts: sub }); i2 = close; } else if (tok.t === "bar" && !top) { alts.push(seq = []); } else if (tok.t === "open") { seq.push(lit(tok.type), lit("(")); } else if (tok.t === "bar") { seq.push(lit("|")); } else if (tok.t === "close") { seq.push(lit(")")); } else { seq.push(tok); } } return alts; }; normalize = (items, form) => { const out = []; let run = ""; const flush = () => { for (const ch of run.normalize(form)) out.push(lit(ch)); run = ""; }; for (const it of items) { if (it.t === "lit") { run += it.ch; continue; } flush(); out.push(it.t === "ext" ? { ...it, alts: it.alts.map((a2) => normalize(a2, form)) } : it); } flush(); return out; }; compile = (items, nocase) => { let id2 = 1; const split = (out) => ({ t: "split", id: id2++, out }); const seq = (items2, next) => items2.reduceRight((next2, it) => item(it, next2), next); const item = (it, next) => { switch (it.t) { case "lit": const re = nocase ? foldRe(it.ch) : void 0; return { t: "lit", id: id2++, ch: it.ch, re, next }; case "any": case "star": return { t: it.t, id: id2++, next }; case "class": return { t: "class", id: id2++, re: it.re, next }; } const alts = (next2) => it.alts.map((a2) => seq(a2, next2)); switch (it.type) { case "@": return split(alts(next)); case "?": return split([next, ...alts(next)]); case "!": return { t: "neg", id: id2++, sub: split(alts(MATCH)), next }; } const after = split([]); const entry = split(alts(after)); after.out.push(next, entry); return it.type === "*" ? after : entry; }; const start = seq(items, MATCH); return [start, id2]; }; show = (start) => { const lines = []; const seen = /* @__PURE__ */ new Set(); const ref = (n2) => n2.t === "match" ? "match" : String(n2.id); const walk2 = (n2, indent) => { if (n2.t === "match" || seen.has(n2)) return; seen.add(n2); const line = (desc) => lines.push(`${indent}${n2.id}: ${desc}`); switch (n2.t) { case "split": line(`split -> ${n2.out.map(ref).join(", ")}`); for (const o2 of n2.out) walk2(o2, indent); return; case "neg": line(`!(${ref(n2.sub)}) -> ${ref(n2.next)}`); walk2(n2.sub, indent + " "); return walk2(n2.next, indent); case "lit": line(`${JSON.stringify(n2.ch)} -> ${ref(n2.next)}`); break; case "class": line(`${n2.re} -> ${ref(n2.next)}`); break; default: line(`${n2.t === "any" ? "?" : "*"} -> ${ref(n2.next)}`); } walk2(n2.next, indent); }; walk2(start, ""); return [`start -> ${ref(start)}`, ...lines].join("\n"); }; State = class { // set by the Sim, to mark the nodes that this state has gen; threads = []; match = false; runs = []; // the sorted ids of the threads, with 0 for a match, once the // state is done ids = []; constructor(gen) { this.gen = gen; } // no threads, so nothing more can match get dead() { return !this.threads.length && !this.match && !this.runs.length; } }; sameState = (a2, b2) => { if (a2.ids.length !== b2.ids.length) return false; if (a2.runs.length !== b2.runs.length) return false; if (a2.ids.some((id2, i2) => id2 !== b2.ids[i2])) return false; return a2.runs.every((r2) => b2.runs.some((o2) => o2.neg === r2.neg && sameState(o2.state, r2.state))); }; marks = (size) => ({ has: new Float64Array(size), seen: new Float64Array(size), gen: 0 }); Sim = class { // `.` and `..` only match literal dots, even with `dot:true` dots; // the string starts with `.`, and `dot:true` is not set dotStart; #marks; constructor(dots, dotStart, marks2) { this.dots = dots; this.dotStart = dotStart; this.#marks = marks2; } state() { return new State(++this.#marks.gen); } // sort the ids of a state, once it has all of its threads done(state) { state.ids = state.threads.map((n2) => n2.id).sort((a2, b2) => a2 - b2); if (state.match) state.ids.unshift(MATCH.id); return state; } // true the first time that the state walks through the node, so // that loops in the graph stop #visit(state, node) { const { seen } = this.#marks; if (seen[node.id] === state.gen) return false; seen[node.id] = state.gen; return true; } #addThread(state, node) { const { has: has2 } = this.#marks; if (has2[node.id] === state.gen) return false; has2[node.id] = state.gen; state.threads.push(node); return true; } // wildcards only match a leading dot if `dot:true`. In a negated // sub-pattern, this does not apply, because the negation itself // can not match a leading dot. restricted(i2, top) { return top && (this.dots || this.dotStart && i2 === 0); } add(state, node, i2, top) { switch (node.t) { case "split": if (!this.#visit(state, node)) return; for (const o2 of node.out) this.add(state, o2, i2, top); return; case "neg": if (!this.#visit(state, node)) return; const sub = this.state(); this.add(sub, node.sub, i2, false); this.done(sub); return this.addRun(state, { t: "run", neg: node, state: sub }, i2, top); case "star": if (this.restricted(i2, top)) return; if (this.#addThread(state, node)) this.add(state, node.next, i2, top); return; case "match": state.match = true; return; default: this.#addThread(state, node); } } addRun(state, run, i2, top) { for (const r2 of state.runs) { if (r2.neg === run.neg && sameState(r2.state, run.state)) return; } state.runs.push(run); if (!run.state.match) { this.add(state, run.neg.next, i2, top); } } // the threads after char `c`, at index `i` step(state, c2, i2, top) { const next = this.state(); for (const th of state.threads) { switch (th.t) { case "lit": if (litMatch(th, c2)) { this.add(next, th.next, i2 + 1, top); } break; case "any": if (!this.restricted(i2, top)) this.add(next, th.next, i2 + 1, top); break; case "class": if (!this.restricted(i2, top) && th.re.test(c2)) { this.add(next, th.next, i2 + 1, top); } break; case "star": if (!this.restricted(i2, top)) this.add(next, th, i2 + 1, top); } } if (!this.restricted(i2, top)) { for (const run of state.runs) { if (run.state.dead) { this.addRun(next, run, i2 + 1, top); continue; } const sub = this.step(run.state, c2, i2, false); this.addRun(next, { t: "run", neg: run.neg, state: sub }, i2 + 1, top); } } return this.done(next); } }; stateKey = (state) => { const ids = state.ids.join(); if (!state.runs.length) return ids; const runs = state.runs.map((r2) => `${r2.neg.id}(${stateKey(r2.state)})`); return `${ids}|${runs.sort().join("|")}`; }; DFA_BUDGET = 1 << 18; Dfa = class { #start; #states = /* @__PURE__ */ new Map(); #size = 0; #plain; #dotStart; #sim; #dotSim; constructor(start, marks2) { this.#start = start; this.#sim = new Sim(false, false, marks2); this.#dotSim = new Sim(false, true, marks2); } #make(state) { return { state, match: state.match, dead: state.dead, next: /* @__PURE__ */ new Map() }; } #intern(state) { const key = stateKey(state); const found = this.#states.get(key); if (found) return found; if (this.#size > DFA_BUDGET) this.#clear(); const d2 = this.#make(state); this.#states.set(key, d2); this.#size += key.length + 1; return d2; } #clear() { this.#states.clear(); this.#size = 0; this.#plain = void 0; this.#dotStart = void 0; } start(dotStart) { if (dotStart) { if (this.#dotStart) return this.#dotStart; const state2 = this.#dotSim.state(); this.#dotSim.add(state2, this.#start, 0, true); return this.#dotStart = this.#make(this.#dotSim.done(state2)); } if (this.#plain) return this.#plain; const state = this.#sim.state(); this.#sim.add(state, this.#start, 0, true); return this.#plain = this.#intern(this.#sim.done(state)); } // the next state, after a miss in `d.ascii` next(d2, c2) { const code = c2.charCodeAt(0); const found = code < 128 ? void 0 : d2.next.get(c2); if (found) return found; const n2 = d2 === this.#dotStart ? this.#intern(this.#dotSim.step(d2.state, c2, 0, true)) : this.#intern(this.#sim.step(d2.state, c2, 1, true)); if (code < 128) { if (!d2.ascii) { d2.ascii = new Array(128); this.#size += 128; } d2.ascii[code] = n2; } else { d2.next.set(c2, n2); } this.#size++; return n2; } }; linear = (start) => { const nodes = []; for (let n2 = start; n2.t !== "match"; n2 = n2.next) { if (n2.t === "split" || n2.t === "neg") return void 0; nodes.push(n2); } return nodes; }; testLinear = (nodes, chars, start, end) => { let ni = 0; let ci = start; let starNi = -1; let starCi = 0; while (ci < end) { const n2 = nodes[ni]; if (n2?.t === "star") { starNi = ni++; starCi = ci; continue; } const c2 = chars[ci]; if (n2 && (n2.t === "any" || n2.t === "lit" && litMatch(n2, c2) || n2.t === "class" && n2.re.test(c2))) { ni++; ci++; continue; } if (starNi === -1) return false; ni = starNi + 1; ci = ++starCi; } while (nodes[ni]?.t === "star") ni++; return ni === nodes.length; }; lengths = (items) => { let min = 0; let max = 0; for (const it of items) { const [lo, hi] = itemLengths(it); min += lo; max += hi; } return [min, max]; }; itemLengths = (it) => { if (it.t === "star") return [0, Infinity]; if (it.t !== "ext") return [1, 1]; if (it.type === "!") return [0, Infinity]; const alts = it.alts.map(lengths); const min = Math.min(...alts.map((a2) => a2[0])); const max = Math.max(...alts.map((a2) => a2[1])); const loop = max === 0 ? 0 : Infinity; return it.type === "@" ? [min, max] : it.type === "?" ? [0, max] : it.type === "*" ? [0, loop] : [min, loop]; }; hasAffix = (lits, chars, start) => { for (let j = 0; j < lits.length; j++) { if (!litMatch(lits[j], chars[start + j])) return false; } return true; }; slashOrSurrogate = /[/\ud800-\udfff]/; surrogate = /[\ud800-\udfff]/; codePoints = (s2) => surrogate.test(s2) ? [...s2] : s2; noSlash = (s2) => { if (s2.includes("/")) { throw new Error("can only match a single path portion, got: " + s2); } }; Matcher = class { pattern; options; #start; // the number of node ids #size; #marks; // the Sim for strings that are only `.` or `..` #dotsSim; // the string to compare, if the pattern has no magic. With // `nocase:true`, the RegExp that folds case is made when it is // first used. #literal; #literalFold = false; #literalRe; // the nodes between the prefix and suffix, if the graph is a // single chain #linear; // the linear nodes are only `*` and `?`, so the length bounds and // the prefix and suffix decide the match #wild = false; // the least and most chars that a match can have #min = 0; #max = Infinity; // the literals that a match must start and end with. Each one // matches exactly one char, and they are distinct items in the // pattern, so a string that does not have them can not match. #prefix = []; #suffix = []; // the prefix and suffix as strings, if they do not fold case #prefixStr; #suffixStr; // there is a prefix or suffix to check #affix = false; #dfa; #form; constructor(pattern, options3 = {}) { if (pattern.includes("/")) { throw new Error("can only match a single path portion, got pattern: " + pattern); } this.pattern = pattern; this.options = options3; const { nocase = false, noext = false, normalize: n2 } = options3; this.#form = n2 === true ? "NFC" : n2 || void 0; const literal2 = /^[?*+@]\(\)$/.test(pattern); const toks = tokenize(pattern, nocase, noext || literal2, this.#form, options3.rangeMark); let [items] = build(toks, pair(toks), 0, toks.length, true); if (this.#form) items = normalize(items, this.#form); const [start, size] = compile(items, nocase); this.#start = start; this.#size = size; if (items.every((it) => it.t === "lit")) { this.#literal = items.map((it) => it.ch).join(""); this.#literalFold = nocase; } else { const lit2 = (it) => it.t !== "lit" ? void 0 : nocase ? { ch: it.ch, re: foldRe(it.ch) } : { ch: it.ch }; for (const it of items) { const l2 = lit2(it); if (!l2) break; this.#prefix.push(l2); } for (let j = items.length - 1; j >= 0; j--) { const l2 = lit2(items[j]); if (!l2) break; this.#suffix.unshift(l2); } this.#affix = !!(this.#prefix.length || this.#suffix.length); if (!nocase) { this.#prefixStr = this.#prefix.map((l2) => l2.ch).join(""); this.#suffixStr = this.#suffix.map((l2) => l2.ch).join(""); } this.#linear = linear(this.#start)?.slice(this.#prefix.length, -this.#suffix.length || void 0); this.#wild = !!this.#linear?.every((n3) => n3.t === "star" || n3.t === "any"); const [min, max] = lengths(items); this.#min = min; this.#max = max; } } test(s2) { if (this.#form) { noSlash(s2); return this.#test(s2.normalize(this.#form)); } if (slashOrSurrogate.test(s2)) { noSlash(s2); return this.#test(s2, [...s2]); } return this.#test(s2, s2); } /** * The same as {@link Matcher#test}, but the string is not checked * for `/` chars, so the result for a string that has one is not * defined. Only use it for a string that is known to be one path * portion, such as a part of a path that was split on `/`. It can * be faster, because some patterns do not need to look at each char * of the string. */ testUnchecked(s2) { return this.#test(this.#form ? s2.normalize(this.#form) : s2); } // Test a string that has no `/`. `chars` indexes it by code point. // If it is not given, it is only found if a step needs it. #test(s2, chars) { if (this.#literal !== void 0) { return this.#literalFold ? (this.#literalRe ??= newFoldRe(this.#literal)).test(s2) : s2 === this.#literal; } const min = this.#min; const max = this.#max; if (chars === void 0) { const most = s2.length; const least = most + 1 >> 1; if (most < min || least > max) return false; if (least < min || most > max) chars = codePoints(s2); } if (chars !== void 0 && (chars.length < min || chars.length > max)) { return false; } const prefix2 = this.#prefix.length; if (this.#affix) { if (this.#prefixStr !== void 0 && this.#suffixStr !== void 0) { if (!s2.startsWith(this.#prefixStr) || !s2.endsWith(this.#suffixStr)) { return false; } } else { chars ??= codePoints(s2); const end = chars.length - this.#suffix.length; if (!hasAffix(this.#prefix, chars, 0) || !hasAffix(this.#suffix, chars, end)) { return false; } } } const dotStart = !this.options.dot && s2.startsWith("."); if (this.#linear) { if (s2 === "." || s2 === "..") return false; if (dotStart && !prefix2) return false; if (this.#wild) return true; chars ??= codePoints(s2); const end = chars.length - this.#suffix.length; return testLinear(this.#linear, chars, prefix2, end); } chars ??= codePoints(s2); if (s2 === "." || s2 === "..") { this.#marks ??= marks(this.#size); const sim = this.#dotsSim ??= new Sim(true, false, this.#marks); const start = sim.state(); sim.add(start, this.#start, 0, true); let state = sim.done(start); for (let i2 = 0; i2 < chars.length; i2++) { state = sim.step(state, chars[i2], i2, true); } return state.match; } this.#marks ??= marks(this.#size); const dfa = this.#dfa ??= new Dfa(this.#start, this.#marks); let d2 = dfa.start(dotStart); const str = chars === s2; for (let i2 = 0; i2 < chars.length; i2++) { if (d2.dead) return false; const code = str ? s2.charCodeAt(i2) : chars[i2].charCodeAt(0); d2 = d2.ascii?.[code] ?? dfa.next(d2, chars[i2]); } return d2.match; } /** a readable listing of the state machine */ toString() { return show(this.#start); } }; } }); // node_modules/minimatch/dist/esm/assert-valid-pattern.js var MAX_PATTERN_LENGTH, assertValidPattern; var init_assert_valid_pattern = __esm({ "node_modules/minimatch/dist/esm/assert-valid-pattern.js"() { MAX_PATTERN_LENGTH = 1024 * 64; assertValidPattern = (pattern) => { if (typeof pattern !== "string") { throw new TypeError("invalid pattern"); } if (pattern.length > MAX_PATTERN_LENGTH) { throw new TypeError("pattern is too long"); } }; } }); // node_modules/minimatch/dist/esm/escape.js var escape2; var init_escape = __esm({ "node_modules/minimatch/dist/esm/escape.js"() { escape2 = (s2, { windowsPathsNoEscape = false, magicalBraces = false } = {}) => { const e2 = magicalBraces ? windowsPathsNoEscape ? s2.replace(/[?*()[\]{}]/g, "[$&]") : s2.replace(/[?*()[\]\\{}]/g, "\\$&") : windowsPathsNoEscape ? s2.replace(/[?*()[\]]/g, "[$&]") : s2.replace(/[?*()[\]\\]/g, "\\$&"); const c2 = e2.charAt(0); if (c2 === "#") { return (windowsPathsNoEscape ? "[#]" : "\\#") + e2.slice(1); } if (c2 === "!") { return (windowsPathsNoEscape ? "@(!)" : "\\!") + e2.slice(1); } return e2; }; } }); // node_modules/minimatch/dist/esm/unescape.js var unescape3; var init_unescape = __esm({ "node_modules/minimatch/dist/esm/unescape.js"() { unescape3 = (s2, { windowsPathsNoEscape = false, magicalBraces = true } = {}) => { if (windowsPathsNoEscape && s2.startsWith("@(!)")) { return "!" + unescape3(s2.slice(4), { windowsPathsNoEscape, magicalBraces }); } if (magicalBraces) { return windowsPathsNoEscape ? s2.replace(/\[([^/\\])\]/g, "$1") : s2.replace(/((?!\\).|^)\[([^/\\])\]/g, "$1$2").replace(/\\([^/])/g, "$1"); } return windowsPathsNoEscape ? s2.replace(/\[([^/\\{}])\]/g, "$1") : s2.replace(/((?!\\).|^)\[([^/\\{}])\]/g, "$1$2").replace(/\\([^/{}])/g, "$1"); }; } }); // node_modules/minimatch/dist/esm/index.js var DEFAULT_BRACE_EXPAND_MAX, DEFAULT_GLOB_STAR_RECURSION_MAX, AWE_KEY, minimatch2, cache, oldCache, cacheSize, cacheTotalWeight, cacheMax, cacheMaxWeight, cacheMaxEntryWeight, cacheWeight, tri, booleanWeights, optionsKey, copyOptions, cachedMinimatch, defaultPlatform, path2, sep, GLOBSTAR, filter, ext, defaults, braceExpand, RANGE_MIN, rangeRe, inRepeatOrNegExt, match, globMagic, classEnd, literal, MAX_EXTGLOBS, extglobCount, assertValidExtglobs, extSafe, lastSplit, lastChecked, portionMatch, endIndex, isDots, isDrive, isLongUNC, uncHost, walkable, dotPortion, isSep, nextSep, lastSep, PENDING, Minimatch; var init_esm5 = __esm({ "node_modules/minimatch/dist/esm/index.js"() { init_esm3(); init_esm4(); init_assert_valid_pattern(); init_escape(); init_unescape(); init_escape(); init_unescape(); DEFAULT_BRACE_EXPAND_MAX = 1e5; DEFAULT_GLOB_STAR_RECURSION_MAX = 200; AWE_KEY = "allowWindowsEscape"; minimatch2 = (p2, pattern, options3) => { assertValidPattern(pattern); if (!options3?.nocomment && pattern.charAt(0) === "#") { return false; } return cachedMinimatch(pattern, options3).match(p2); }; cache = /* @__PURE__ */ new Map(); oldCache = /* @__PURE__ */ new Map(); cacheSize = 0; cacheTotalWeight = 0; cacheMax = 256; cacheMaxWeight = 1 << 15; cacheMaxEntryWeight = 1 << 12; cacheWeight = (mm) => { let w2 = mm.pattern.length; for (const s2 of mm.globSet) { w2 += s2.length + 1; if (w2 > cacheMaxEntryWeight) break; } return w2; }; tri = (v2) => v2 === void 0 ? 0 : v2 ? 2 : 1; booleanWeights = new Map(Object.keys({ nobrace: 0, nocomment: 0, nonegate: 0, noglobstar: 0, noext: 0, nonull: 0, partial: 0, dot: 0, nocase: 0, nocaseMagicOnly: 0, magicalBraces: 0, matchBase: 0, flipNegate: 0, preserveMultipleSlashes: 0, windowsNoMagicRoot: 0 }).map((k, i2) => [k, 24 * 3 ** i2])); optionsKey = (o2) => { let n2 = 0; let wpe = false; for (const k in o2) { const v2 = o2[k]; switch (k) { // the same test as the Minimatch constructor case "windowsPathsNoEscape": if (v2) wpe = true; break; case AWE_KEY: if (v2 === false) wpe = true; break; case "platform": { const p2 = v2 || defaultPlatform; if (p2 === defaultPlatform) break; if (p2 === "darwin") n2 += 3; else if (p2 === "win32") n2 += 6; else if (p2 === "linux") n2 += 9; else return JSON.stringify(o2); break; } case "optimizationLevel": if (v2 === void 0) break; n2 += v2 >= 2 ? 1 : v2 >= 1 ? 0 : 2; break; case "braceExpandMax": if (v2 !== void 0 && v2 !== DEFAULT_BRACE_EXPAND_MAX) { return JSON.stringify(o2); } break; case "maxGlobstarRecursion": if (v2 !== void 0 && v2 !== DEFAULT_GLOB_STAR_RECURSION_MAX) { return JSON.stringify(o2); } break; case "normalize": if (v2 !== void 0) return JSON.stringify(o2); break; default: n2 += (booleanWeights.get(k) ?? 0) * tri(v2); } } return wpe ? n2 + 12 : n2; }; copyOptions = (o2) => { const copy = {}; for (const k in o2) copy[k] = o2[k]; return copy; }; cachedMinimatch = (pattern, options3) => { const key = options3 ? optionsKey(options3) : 0; let mm = cache.get(key)?.get(pattern); if (mm) return mm; mm = oldCache.get(key)?.get(pattern) ?? new Minimatch(pattern, copyOptions(options3)); const weight = cacheWeight(mm); if (weight > cacheMaxEntryWeight) return mm; if (cacheSize >= cacheMax || cacheTotalWeight + weight > cacheMaxWeight) { oldCache = cache; cache = /* @__PURE__ */ new Map(); cacheSize = 0; cacheTotalWeight = 0; } let byPattern = cache.get(key); if (!byPattern) cache.set(key, byPattern = /* @__PURE__ */ new Map()); byPattern.set(pattern, mm); cacheSize++; cacheTotalWeight += weight; return mm; }; defaultPlatform = typeof process === "object" && process ? process.env?.__MINIMATCH_TESTING_PLATFORM__ || process.platform : "posix"; path2 = { win32: { sep: "\\" }, posix: { sep: "/" } }; sep = defaultPlatform === "win32" ? path2.win32.sep : path2.posix.sep; minimatch2.sep = sep; GLOBSTAR = /* @__PURE__ */ Symbol("globstar **"); minimatch2.GLOBSTAR = GLOBSTAR; filter = (pattern, options3) => { let mm; return (p2) => (mm ??= cachedMinimatch(pattern, options3)).match(p2); }; minimatch2.filter = filter; ext = (a2, b2 = {}) => Object.assign({}, a2, b2); defaults = (def) => { if (!def || typeof def !== "object" || !Object.keys(def).length) { return minimatch2; } const orig = minimatch2; const m2 = (p2, pattern, options3 = {}) => orig(p2, pattern, ext(def, options3)); return Object.assign(m2, { Minimatch: class Minimatch extends orig.Minimatch { constructor(pattern, options3 = {}) { super(pattern, ext(def, options3)); } static defaults(options3) { return orig.defaults(ext(def, options3)).Minimatch; } }, unescape: (s2, options3 = {}) => orig.unescape(s2, ext(def, options3)), escape: (s2, options3 = {}) => orig.escape(s2, ext(def, options3)), filter: (pattern, options3 = {}) => orig.filter(pattern, ext(def, options3)), defaults: (options3) => orig.defaults(ext(def, options3)), braceExpand: (pattern, options3 = {}) => orig.braceExpand(pattern, ext(def, options3)), match: (list2, pattern, options3 = {}) => orig.match(list2, pattern, ext(def, options3)), sep: orig.sep, GLOBSTAR }); }; minimatch2.defaults = defaults; braceExpand = (pattern, options3 = {}) => { assertValidPattern(pattern); if (options3.nobrace || !/\{(?:(?!\{).)*\}/.test(pattern)) { return [pattern]; } let p2 = pattern.replace(/\\\\/g, "\\\\\\\\"); if (options3.windowsPathsNoEscape || options3[AWE_KEY] === false) { p2 = p2.replace(/\[([{}])\]/g, "[\\$1]"); } return expand2(p2, { max: options3.braceExpandMax }); }; minimatch2.braceExpand = braceExpand; RANGE_MIN = 100; rangeRe = /(? { const stack = []; for (let i2 = 0; i2 < portion.length; i2++) { const c2 = portion.charAt(i2); if (c2 === "\\") { i2++; } else if (c2 === mark) { if (stack.some((t2) => t2 !== "@" && t2 !== "?")) return true; } else if (portion.charAt(i2 + 1) === "(" && "!?+*@".includes(c2)) { stack.push(c2); i2++; } else if (c2 === ")") { stack.pop(); } } return false; }; match = (list2, pattern, options3 = {}) => { const mm = new Minimatch(pattern, options3); list2 = list2.filter((f2) => mm.match(f2)); if (mm.options.nonull && !list2.length) { list2.push(pattern); } return list2; }; minimatch2.match = match; globMagic = /[?*]|[+@!]\(.*?\)|\[|\]/; classEnd = (pattern, start) => { let i2 = start + 1; if (pattern.charAt(i2) === "!" || pattern.charAt(i2) === "^") i2++; let sawStart = false; for (; i2 < pattern.length; i2++) { const c2 = pattern.charAt(i2); if (c2 === "]" && sawStart) return i2; sawStart = true; if (c2 === "\\") i2++; } return -1; }; literal = (pattern, noext) => { if (!noext && (pattern === "+()" || pattern === "@()")) return pattern; let lit2 = ""; for (let i2 = 0; i2 < pattern.length; i2++) { const c2 = pattern.charAt(i2); if (c2 === "\\") { lit2 += pattern.charAt(++i2) || c2; } else if (c2 === "*" || c2 === "?") { return void 0; } else if (c2 === "[") { const close = classEnd(pattern, i2); if (close === -1) { lit2 += c2; continue; } let body = pattern.slice(i2 + 1, close); if (body.startsWith("\\")) body = body.slice(1); if ([...body].length !== 1 || "!^".includes(pattern.charAt(i2 + 1))) { return void 0; } lit2 += body; i2 = close; } else if (!noext && "+@!".includes(c2) && pattern.charAt(i2 + 1) === "(" && pattern.includes(")", i2 + 2)) { return void 0; } else { lit2 += c2; } } return lit2; }; MAX_EXTGLOBS = 256; extglobCount = (pattern) => { let n2 = 0; for (let i2 = 0; i2 < pattern.length - 1; i2++) { const c2 = pattern.charAt(i2); if (c2 === "\\") { i2++; } else if ("+@!?*".includes(c2) && pattern.charAt(i2 + 1) === "(") { n2++; i2++; } } return n2; }; assertValidExtglobs = (pattern) => { if (extglobCount(pattern) > MAX_EXTGLOBS) { throw new TypeError("pattern has too many extglobs"); } }; extSafe = (pattern) => { if (/^[?*+@]\(\)$/.test(pattern) || pattern.includes("[:")) return false; let depth = 0; for (let i2 = 0; i2 < pattern.length; i2++) { const c2 = pattern.charAt(i2); if (c2 === "\\") { if (++i2 === pattern.length) return false; } else if (c2 === "[") { const close = classEnd(pattern, i2); if (close !== -1) i2 = close; } else if ("+@!?*".includes(c2) && pattern.charAt(i2 + 1) === "(") { depth++; i2++; } else if (c2 === ")") { if (!depth--) return false; } else if (c2 === "|" && !depth) { return false; } } return !depth; }; portionMatch = (p2, f2) => typeof p2 === "string" ? f2 === p2 : f2 !== "" && p2.testUnchecked(f2); endIndex = (p2, last, lastStart, prev, prevStart) => portionMatch(p2, last) ? lastStart : prev !== void 0 && portionMatch(p2, prev) ? prevStart : -1; isDots = (p2) => p2 === "." || p2 === ".."; isDrive = (p2) => typeof p2 === "string" && /^[a-z]:$/i.test(p2); isLongUNC = (p2) => typeof p2 === "string" && /^unc$/i.test(p2); uncHost = (p2) => { if (p2[0] !== "" || p2[1] !== "") return -1; const h2 = p2[2] !== "?" ? 2 : isLongUNC(p2[3]) ? 4 : -1; const host = p2[h2]; const share = p2[h2 + 1]; return h2 !== -1 && host !== void 0 && host !== "" && host !== GLOBSTAR && share !== void 0 && share !== "" && share !== GLOBSTAR ? h2 : -1; }; walkable = (p2, dot) => !isDots(p2) && (dot || !p2.startsWith(".")); dotPortion = (f2, start, end, dot, sep2) => { for (let k = start; k < end; ) { if (f2.charCodeAt(k) === 46) { if (!dot) return true; const n2 = f2.charCodeAt(k + 1) === 46 ? k + 2 : k + 1; if (n2 >= end || isSep(f2.charCodeAt(n2), sep2)) return true; } const s2 = nextSep(f2, k, sep2); if (s2 === -1) return false; k = s2 + 1; while (k < end && isSep(f2.charCodeAt(k), sep2)) k++; } return false; }; isSep = (c2, sep2) => sep2 === "/" ? c2 === 47 : sep2 === "\\" ? c2 === 92 : c2 === 47 || c2 === 92; nextSep = (f2, from, sep2) => { if (sep2 !== "both") return f2.indexOf(sep2, from); const s2 = f2.indexOf("/", from); const b2 = f2.indexOf("\\", from); return s2 === -1 ? b2 : b2 === -1 ? s2 : Math.min(s2, b2); }; lastSep = (f2, from, sep2) => sep2 !== "both" ? f2.lastIndexOf(sep2, from) : Math.max(f2.lastIndexOf("/", from), f2.lastIndexOf("\\", from)); PENDING = {}; Minimatch = class { options; set; pattern; windowsPathsNoEscape; nonegate; negate; comment; empty; preserveMultipleSlashes; partial; globSet; globParts; nocase; isWindows; platform; windowsNoMagicRoot; maxGlobstarRecursion; // the path can be checked against the last portion, and the string // portions, of each row before it is split. See #canMatch. #endCheck; #literalCheck; // level 2 resolves `.` and `..` portions in the path #level2; // the unicode normalization form, if any #form; // the string portions of each row in the set #literals = []; // the rows that #canMatch can match without splitting the path #shapes = []; // the rows whose last portion can be checked against the path's #endRows = []; // brace expansion can make the same portion in many rows, so they // share one Matcher, and the states that it caches #matchers = /* @__PURE__ */ new Map(); // parse() returns PENDING in place of a Matcher #pending = false; // the char that marks numeric ranges in globSet, if any #rangeMark; // the GlobstarParts of each pattern row, by start index and partial #globstarParts = /* @__PURE__ */ new WeakMap(); constructor(pattern, options3 = {}) { assertValidPattern(pattern); options3 = options3 || {}; this.options = options3; this.maxGlobstarRecursion = options3.maxGlobstarRecursion ?? DEFAULT_GLOB_STAR_RECURSION_MAX; this.pattern = pattern; this.platform = options3.platform || defaultPlatform; this.isWindows = this.platform === "win32"; this.windowsPathsNoEscape = !!options3.windowsPathsNoEscape || options3[AWE_KEY] === false; if (this.windowsPathsNoEscape) { this.pattern = this.pattern.replace(/\\/g, "/"); } this.preserveMultipleSlashes = !!options3.preserveMultipleSlashes; this.negate = false; this.nonegate = !!options3.nonegate; this.comment = false; this.empty = false; this.partial = !!options3.partial; this.nocase = !!this.options.nocase; this.windowsNoMagicRoot = options3.windowsNoMagicRoot !== void 0 ? options3.windowsNoMagicRoot : !!(this.isWindows && this.nocase); this.globSet = []; this.globParts = []; this.set = []; this.#endCheck = !this.preserveMultipleSlashes; this.#level2 = (options3.optimizationLevel ?? 1) >= 2; const n2 = options3.normalize; this.#form = n2 === true ? "NFC" : n2 || void 0; this.make(); const drives = this.set.map((row) => this.#rootIndex(row)); this.#endRows = this.set.map((row, r2) => this.#endCheck && row.length - 1 > drives[r2]); this.#literals = this.set.map((row, r2) => { const end = this.#endRows[r2] ? row.length - 1 : row.length; const lits = row.slice(drives[r2] + 1, end).filter((p2) => typeof p2 === "string" && !!p2); return [...new Set(lits)]; }); this.#literalCheck = this.#literals.some((l2) => l2.length); this.#shapes = this.set.map((row, r2) => { const [p0, p1, p2] = row; if (this.#endRows[r2] && row.length === 2) { if (p0 === GLOBSTAR && p1 !== GLOBSTAR) return "tail"; } if (this.#endRows[r2] && options3.matchBase && row.length === 1 && p0 !== GLOBSTAR && p0 !== "") { return "base"; } if (!this.#endCheck || drives[r2] !== -1) return void 0; if (row.length === 3 && p0 === GLOBSTAR && p2 === GLOBSTAR && p1 !== GLOBSTAR && p1 !== "" && // the portion between is only matched below this limit this.maxGlobstarRecursion > 0) { return "mid"; } if (row.length === 2 && p1 === GLOBSTAR && p0 !== GLOBSTAR && p0 !== "") { return "head"; } return void 0; }); } // a string portion of a pattern, normalized if the option is set #norm(p2) { return this.#form ? p2.normalize(this.#form) : p2; } // On Windows, the index of the last root portion of a row, as // #matchRow finds it: 0 for `c:/...`, 3 for `//?/c:/...` and // `//host/share/...`, and 5 for `//?/UNC/host/share/...`. Otherwise // -1. #rootIndex(row) { if (!this.isWindows) return -1; if (isDrive(row[0])) return 0; const uncDrive = row[0] === "" && row[1] === "" && row[2] === "?" && isDrive(row[3]); if (uncDrive) return 3; const h2 = uncHost(row); return h2 === -1 ? -1 : h2 + 1; } hasMagic() { if (this.options.magicalBraces && this.set.length > 1) { return true; } for (const pattern of this.set) { for (const part of pattern) { if (typeof part !== "string") return true; } } return false; } make() { const pattern = this.pattern; const options3 = this.options; if (!options3.nocomment && pattern.charAt(0) === "#") { this.comment = true; return; } if (!pattern) { this.empty = true; return; } this.parseNegate(); this.globSet = [...new Set(this.#expandBraces())]; const rawGlobParts = this.globSet.map((s2) => this.#slashSplit(s2)); this.globParts = this.preprocess(rawGlobParts); this.#pending = true; let set = this.globParts.map((s2, _2, __) => { if (this.isWindows && this.windowsNoMagicRoot) { const n2 = s2[2] === "?" && isLongUNC(s2[3]) ? 6 : 4; const isUNC = s2[0] === "" && s2[1] === "" && (s2[2] === "?" || !globMagic.test(s2[2])) && s2.slice(3, n2).every((p2) => !globMagic.test(p2)); const isDrive2 = /^[a-z]:/i.test(s2[0]); if (isUNC) { return [ ...s2.slice(0, n2).map((p2) => this.#norm(p2)), ...s2.slice(n2).map((ss) => this.parse(ss)) ]; } else if (isDrive2) { return [ this.#norm(s2[0]), ...s2.slice(1).map((ss) => this.parse(ss)) ]; } } return s2.map((ss) => this.parse(ss)); }); this.set = set.filter((s2) => s2.indexOf(false) === -1); if (this.isWindows) { for (let i2 = 0; i2 < this.set.length; i2++) { const p2 = this.set[i2]; if (p2[0] === "" && p2[1] === "" && this.globParts[i2][2] === "?" && (isDrive(p2[3]) || isLongUNC(this.globParts[i2][3]))) { if (isLongUNC(this.globParts[i2][3])) p2[3] = "UNC"; p2[2] = "?"; } } } if (!options3.noext) this.mergeRows(); this.#pending = false; this.set.forEach((row, i2) => { for (let k = 0; k < row.length; k++) { if (row[k] === PENDING) { row[k] = this.parse(this.globParts[i2][k]); } } }); } // Merge rows that only differ in one portion, where each of them // is a Matcher, into one row that matches any of them with // `@(a|b|...)`. Then a path is only walked once for all of them, // for example with `**/*.{js,ts}`. mergeRows() { let merged = true; while (merged) { merged = false; if (this.set.length < 2) return; let keys = this.#mergeKeys(); const len = Math.max(0, ...this.set.map((r2) => r2.length)); for (let k = 0; k < len; k++) { const groups = /* @__PURE__ */ new Map(); const R = this.set.length + 1; this.set.forEach((row, i2) => { if (!(row[k] instanceof Matcher || row[k] === PENDING) || !extSafe(this.globParts[i2][k])) { return; } const { pre, suf } = keys[i2]; const key = pre[k] * R + suf[k + 1]; const g2 = groups.get(key); if (g2) g2.push(i2); else groups.set(key, [i2]); }); const drop = /* @__PURE__ */ new Set(); for (const g2 of groups.values()) { if (g2.length < 2) continue; const [first, ...rest] = g2; const alts = g2.map((i2) => this.globParts[i2][k]); const glob2 = `@(${alts.join("|")})`; if (extglobCount(glob2) > MAX_EXTGLOBS) continue; this.globParts[first][k] = glob2; this.set[first][k] = this.parse(glob2); for (const i2 of rest) drop.add(i2); } if (drop.size) { merged = true; this.set = this.set.filter((_2, i2) => !drop.has(i2)); this.globParts = this.globParts.filter((_2, i2) => !drop.has(i2)); if (this.set.length < 2) return; keys = this.#mergeKeys(); } } } } // For each row, number ids for its prefixes and suffixes, such that // pre[k] identifies parts[0..k) and suf[k] identifies parts[k..n). // Two rows are the same other than at portion k exactly when they // have the same pre[k] and suf[k + 1]. This is linear in the size of // the rows, where joining the whole row for every k was quadratic. #mergeKeys() { const partIds = /* @__PURE__ */ new Map(); const ids = this.globParts.map((parts) => parts.map((s2) => { let id2 = partIds.get(s2); if (id2 === void 0) partIds.set(s2, id2 = partIds.size); return id2; })); const P2 = partIds.size; const len = Math.max(0, ...ids.map((r2) => r2.length)); const keys = ids.map((r2) => ({ pre: [0], suf: new Array(r2.length + 1).fill(0) })); for (let k = 0; k < len; k++) { const m2 = /* @__PURE__ */ new Map(); ids.forEach((r2, i2) => { if (k >= r2.length) return; const { pre } = keys[i2]; const key = pre[k] * P2 + r2[k]; let id2 = m2.get(key); if (id2 === void 0) m2.set(key, id2 = m2.size + 1); pre.push(id2); }); } for (let k = len - 1; k >= 0; k--) { const m2 = /* @__PURE__ */ new Map(); ids.forEach((r2, i2) => { if (k >= r2.length) return; const { suf } = keys[i2]; const key = suf[k + 1] * P2 + r2[k]; let id2 = m2.get(key); if (id2 === void 0) m2.set(key, id2 = m2.size + 1); suf[k] = id2; }); } return keys; } // various transforms to equivalent pattern sets that are // faster to process in a filesystem walk. The goal is to // eliminate what we can, and push all ** patterns as far // to the right as possible, even if it increases the number // of patterns that we have to process. preprocess(globParts) { if (this.options.noglobstar) { for (const partset of globParts) { for (let j = 0; j < partset.length; j++) { if (partset[j] === "**") { partset[j] = "*"; } } } } const { optimizationLevel = 1 } = this.options; if (optimizationLevel >= 2) { globParts = this.firstPhasePreProcess(globParts); globParts = this.secondPhasePreProcess(globParts); } else if (optimizationLevel >= 1) { globParts = this.levelOneOptimize(globParts); } else { globParts = this.adjascentGlobstarOptimize(globParts); } return globParts; } // just get rid of adjascent ** portions adjascentGlobstarOptimize(globParts) { return globParts.map((parts) => { let gs = -1; while (-1 !== (gs = parts.indexOf("**", gs + 1))) { let i2 = gs; while (parts[i2 + 1] === "**") { i2++; } if (i2 !== gs) { parts.splice(gs, i2 - gs); } } return parts; }); } // get rid of adjascent ** and resolve .. portions levelOneOptimize(globParts) { return globParts.map((parts) => { const root = this.#rootIndex(parts) + 1; parts = parts.reduce((set, part) => { const prev = set[set.length - 1]; if (part === "**" && prev === "**") { return set; } if (part === "..") { if (set.length > root && prev && prev !== ".." && prev !== "." && prev !== "**") { set.pop(); return set; } } set.push(part); return set; }, []); return parts.length === 0 ? [""] : parts; }); } // Check the path against each row before it is split. 'no' if no // row can match, so it does not need to be split. 'yes' if a row of // `**` and one more portion matches. 'maybe' if it must be split to // know. None of this applies with partial, where the path can end // before the row does. // // On Windows, `\` is a separator in the path too, and the portions of // a row up to its drive letter or UNC share are not checked (see // #rootIndex). // // Each string portion of a row must be a portion of the path, so the // path must contain it. Level 2 can only take portions out of the // path, so this is still true then. // // The last portion of a row must match the last portion of the path, // or the one before a trailing `/` (as a/* and a/**/* match a/b/). // This does not apply to rows that end in **, rows that end in a // root, or preserveMultipleSlashes (which can leave more // than one '' at the end). At level 2, it does not apply if that // portion is `.` or `..`, which can be // resolved away. Level 2 only takes other portions out of the // middle of the path. // // A row of `**/x` then matches if the ** can walk the portions // before the one that x matches, the same as #matchGlobstar. At // level 2, this is only known if none of them are `.` or `..`, so // that the path does not change when it is resolved. #canMatch(f2) { const sep2 = !this.isWindows || !f2.includes("\\") ? "/" : f2.includes("/") ? "both" : "\\"; let ends = this.#endCheck ? 0 : -1; let last = ""; let lastStart = 0; let prev; let prevStart = 0; const dot = !!this.options.dot; ROWS: for (let r2 = 0; r2 < this.set.length; r2++) { const row = this.set[r2]; const p2 = row[row.length - 1]; let end = ends !== -1 && this.#endRows[r2] && p2 !== GLOBSTAR; if (end && ends === 0) { const i2 = lastSep(f2, f2.length, sep2); lastStart = i2 + 1; last = f2.slice(lastStart); if (last === "" && i2 >= 0) { let j = i2; while (j > 0 && isSep(f2.charCodeAt(j - 1), sep2)) j--; prevStart = j === 0 ? 0 : lastSep(f2, j - 1, sep2) + 1; prev = f2.slice(prevStart, j); } const resolves = this.#level2 && (isDots(last) || last === "" && prev !== void 0 && isDots(prev)); ends = resolves ? -1 : 1; end = !resolves; } let tailStart = -1; if (end && typeof p2 === "string") { tailStart = endIndex(p2, last, lastStart, prev, prevStart); if (tailStart === -1) continue; } if (this.#literalCheck) { for (const l2 of this.#literals[r2]) { if (!f2.includes(l2)) continue ROWS; } } if (end && typeof p2 === "object") { tailStart = endIndex(p2, last, lastStart, prev, prevStart); if (tailStart === -1) continue; } const shape = this.#shapes[r2]; if (shape === "base" && end) return "yes"; if (shape === "tail" && end) { if (this.#level2 && dotPortion(f2, 0, tailStart, true, sep2)) { return "maybe"; } if (!dotPortion(f2, 0, tailStart, dot, sep2)) return "yes"; continue; } if (shape === "mid" || shape === "head") { const m2 = this.#walk(f2, row, shape === "head", dot, sep2); if (m2 !== "no") return m2; continue; } return "maybe"; } return "no"; } // Match a row of a known shape against the split path, the same as // #matchGlobstar and #matchGlobStarBodySections do. None of these // rows have a drive letter, so they start at the first portion. #matchShape(file, row, shape) { const dot = !!this.options.dot; const n2 = file.length; if (shape === "head") { if (n2 < 2 || !portionMatch(row[0], file[0])) { return false; } for (let i2 = 1; i2 < n2; i2++) if (!walkable(file[i2], dot)) return false; return true; } const x2 = row[1]; if (shape === "tail") { let t2 = n2 - 1; if (!portionMatch(x2, file[t2])) { if (file[t2] !== "" || n2 === 1 || !portionMatch(x2, file[--t2])) { return false; } } for (let i2 = 0; i2 < t2; i2++) if (!walkable(file[i2], dot)) return false; return true; } for (let k = 0; k < n2; k++) { if (portionMatch(x2, file[k]) && k + 1 < n2) { let i2 = k + 1; while (i2 < n2 && walkable(file[i2], dot)) i2++; if (i2 === n2) return true; } if (!walkable(file[k], dot)) return false; } return false; } // Match a row of `**/x/**` or `x/**` against the path, the same as // #matchGlobstar and #matchGlobStarBodySections do once it is split. // x must match a portion (the first one, for `x/**`), the ** before // it must be able to walk the portions before that one, and there // must be a portion after it, which the ** after it can walk. At // level 2, this is only known if no portion is `.` or `..`. #walk(f2, row, head, dot, sep2) { if (this.#level2 && dotPortion(f2, 0, f2.length, true, sep2)) return "maybe"; const x2 = row[head ? 0 : 1]; let s2 = 0; for (let e2 = nextSep(f2, s2, sep2); e2 !== -1; e2 = nextSep(f2, s2, sep2)) { let next = e2 + 1; while (next < f2.length && isSep(f2.charCodeAt(next), sep2)) next++; const hit = typeof x2 === "string" ? e2 - s2 === x2.length && f2.startsWith(x2, s2) : e2 > s2 && x2.testUnchecked(f2.slice(s2, e2)); if (hit && !dotPortion(f2, next, f2.length, dot, sep2)) return "yes"; if (head || dotPortion(f2, s2, next, dot, sep2)) return "no"; s2 = next; } return "no"; } // the last split, if it was the same path with the same split // settings #cachedSplit(f2) { const last = lastSplit; return last?.f === f2 && last.isWindows === this.isWindows && last.preserveMultipleSlashes === this.preserveMultipleSlashes && last.normalize === this.#form ? last : void 0; } // split a path for match(), and keep the parts for the next call #split(f2) { const { isWindows: isWindows2, preserveMultipleSlashes } = this; let parts = this.#slashSplit(isWindows2 ? f2.split("\\").join("/") : f2); const normalize2 = this.#form; if (normalize2) parts = parts.map((p2) => p2.normalize(normalize2)); lastSplit = { f: f2, isWindows: isWindows2, preserveMultipleSlashes, normalize: normalize2, parts }; return lastSplit; } // resolve `.` and `..` portions of a path, for level 2 #levelTwoFileOptimize(file) { const parts = [...file]; let didSomething = false; do { didSomething = false; if (!this.preserveMultipleSlashes) { for (let i2 = 1; i2 < parts.length - 1; i2++) { const p2 = parts[i2]; if (i2 === 1 && p2 === "" && parts[0] === "") continue; if (p2 === "." || p2 === "") { didSomething = true; parts.splice(i2, 1); i2--; } } if (parts[0] === "." && parts.length === 2 && (parts[1] === "." || parts[1] === "")) { didSomething = true; parts.pop(); } } const root = this.#rootIndex(parts) + 1; let dd = root; while (-1 !== (dd = parts.indexOf("..", dd + 1))) { const p2 = parts[dd - 1]; if (p2 && p2 !== "." && p2 !== ".." && p2 !== "**") { didSomething = true; parts.splice(dd - 1, 2); dd = Math.max(dd - 2, root); } } } while (didSomething); return parts.length === 0 ? [""] : parts; } // First phase: single-pattern processing //
     is 1 or more portions
          //  is 1 or more portions
          // 

    is any portion other than ., .., '', or ** // is . or '' // // **/.. is *brutal* for filesystem walking performance, because // it effectively resets the recursive walk each time it occurs, // and ** cannot be reduced out by a .. pattern part like a regexp // or most strings (other than .., ., and '') can be. // //

    /**/../

    /

    / -> {

    /../

    /

    /,

    /**/

    /

    /} //

    // -> 
    /
          // 
    /

    /../ ->

    /
          // **/**/ -> **/
          //
          // **/*/ -> */**/ <== not valid because ** doesn't follow
          // this WOULD be allowed if ** did follow symlinks, or * didn't
          firstPhasePreProcess(globParts) {
            const { braceExpandMax = DEFAULT_BRACE_EXPAND_MAX } = this.options;
            let splitCells2 = 0;
            const maxSplitCells = 1e6;
            let didSomething = false;
            do {
              didSomething = false;
              for (let parts of globParts) {
                let gs = -1;
                while (-1 !== (gs = parts.indexOf("**", gs + 1))) {
                  let gss = gs;
                  while (parts[gss + 1] === "**") {
                    gss++;
                  }
                  if (gss > gs) {
                    parts.splice(gs + 1, gss - gs);
                  }
                  let next = parts[gs + 1];
                  const p2 = parts[gs + 2];
                  const p22 = parts[gs + 3];
                  if (next !== "..")
                    continue;
                  if (!p2 || p2 === "." || p2 === ".." || !p22 || p22 === "." || p22 === "..") {
                    continue;
                  }
                  const addedCells = parts.length - 1;
                  if (globParts.length >= braceExpandMax || splitCells2 + addedCells > maxSplitCells) {
                    throw new RangeError(`optimizationLevel 2: too many patterns from '**/..'`);
                  }
                  didSomething = true;
                  parts.splice(gs, 1);
                  const other = parts.slice(0);
                  other[gs] = "**";
                  splitCells2 += addedCells;
                  globParts.push(other);
                  gs--;
                }
                if (!this.preserveMultipleSlashes) {
                  for (let i2 = 1; i2 < parts.length - 1; i2++) {
                    const p2 = parts[i2];
                    if (i2 === 1 && p2 === "" && parts[0] === "")
                      continue;
                    if (p2 === "." || p2 === "") {
                      didSomething = true;
                      parts.splice(i2, 1);
                      i2--;
                    }
                  }
                  if (parts[0] === "." && parts.length === 2 && (parts[1] === "." || parts[1] === "")) {
                    didSomething = true;
                    parts.pop();
                  }
                }
                const root = this.#rootIndex(parts) + 1;
                let dd = root;
                while (-1 !== (dd = parts.indexOf("..", dd + 1))) {
                  const p2 = parts[dd - 1];
                  if (p2 && p2 !== "." && p2 !== ".." && p2 !== "**") {
                    didSomething = true;
                    const needDot = dd === 1 && parts[dd + 1] === "**";
                    const splin = needDot ? ["."] : [];
                    parts.splice(dd - 1, 2, ...splin);
                    if (parts.length === 0)
                      parts.push("");
                    dd = Math.max(dd - 2, root);
                  }
                }
              }
            } while (didSomething);
            return globParts;
          }
          // second phase: multi-pattern dedupes
          // {
    /,
    /} -> 
    /
          // {
    /*/,
    /

    /} ->

    /*/
          secondPhasePreProcess(globParts) {
            const keys = /* @__PURE__ */ new Set();
            const rows = globParts.filter((parts) => {
              const key = parts.join("/");
              if (keys.has(key))
                return false;
              keys.add(key);
              return true;
            });
            const stars = /* @__PURE__ */ new Map();
            for (const parts of rows) {
              const s2 = [];
              for (let i2 = 0; i2 < parts.length; i2++) {
                if (parts[i2] === "*")
                  s2.push(i2);
              }
              if (s2.length)
                stars.set(s2.join(","), s2);
            }
            if (!stars.size || rows.length * stars.size > 1e5)
              return rows;
            const { dot } = this.options;
            return rows.filter((parts) => {
              for (const s2 of stars.values()) {
                if (s2[s2.length - 1] >= parts.length)
                  continue;
                const c2 = [...parts];
                let ok = true;
                let changed = false;
                for (const i2 of s2) {
                  const p2 = parts[i2];
                  if (p2 === "*")
                    continue;
                  if (!p2 || p2 === "**" || !dot && p2.startsWith(".")) {
                    ok = false;
                    break;
                  }
                  c2[i2] = "*";
                  changed = true;
                }
                if (ok && changed && keys.has(c2.join("/")))
                  return false;
              }
              return true;
            });
          }
          parseNegate() {
            if (this.nonegate)
              return;
            const pattern = this.pattern;
            let negate = false;
            let negateOffset = 0;
            for (let i2 = 0; i2 < pattern.length && pattern.charAt(i2) === "!"; i2++) {
              negate = !negate;
              negateOffset++;
            }
            if (negateOffset)
              this.pattern = pattern.slice(negateOffset);
            this.negate = negate;
          }
          // Match the parts of a path against one row of the set. `resolved`
          // is the parts after level 2 resolves `.` and `..` in them, or the
          // same parts below level 2. Set partial to true to test if, for
          // example, "/a/b" matches the start of "/*/b/*/d". Partial means, if
          // you run out of file before you run out of pattern, then that's
          // fine, as long as all the parts match.
          #matchRow(file, resolved, pattern, partial) {
            let fileStartIndex = 0;
            let patternStartIndex = 0;
            const fh = this.isWindows ? uncHost(resolved) : -1;
            const ph = fh === -1 ? -1 : uncHost(pattern);
            if (ph !== -1) {
              const host = pattern[ph];
              const share = pattern[ph + 1];
              if (typeof host !== "string" || typeof share !== "string") {
                fileStartIndex = fh;
                patternStartIndex = ph;
              } else if (resolved[fh].toLowerCase() === host.toLowerCase() && resolved[fh + 1].toLowerCase() === share.toLowerCase()) {
                fileStartIndex = fh + 2;
                patternStartIndex = ph + 2;
              }
            } else if (this.isWindows) {
              const fileDrive = typeof file[0] === "string" && /^[a-z]:$/i.test(file[0]);
              const fileUNC = !fileDrive && file[0] === "" && file[1] === "" && file[2] === "?" && /^[a-z]:$/i.test(file[3]);
              const patternDrive = typeof pattern[0] === "string" && /^[a-z]:$/i.test(pattern[0]);
              const patternUNC = !patternDrive && pattern[0] === "" && pattern[1] === "" && pattern[2] === "?" && typeof pattern[3] === "string" && /^[a-z]:$/i.test(pattern[3]);
              const fdi = fileUNC ? 3 : fileDrive ? 0 : void 0;
              const pdi = patternUNC ? 3 : patternDrive ? 0 : void 0;
              if (typeof fdi === "number" && typeof pdi === "number") {
                const [fd, pd] = [
                  file[fdi],
                  pattern[pdi]
                ];
                if (fd.toLowerCase() === pd.toLowerCase()) {
                  patternStartIndex = pdi + 1;
                  fileStartIndex = fdi + 1;
                }
              }
            }
            file = resolved;
            if (pattern.includes(GLOBSTAR)) {
              return this.#matchGlobstar(file, pattern, partial, fileStartIndex, patternStartIndex);
            }
            return this.#matchOne(file, pattern, partial, fileStartIndex, patternStartIndex);
          }
          #matchGlobstar(file, pattern, partial, fileIndex, patternIndex) {
            const { head, body, tail, segments } = this.#getGlobstarParts(pattern, partial, patternIndex);
            if (head.length) {
              const headEnd = fileIndex + head.length;
              if (!this.#matchOne(file, head, partial, fileIndex, 0, headEnd)) {
                return false;
              }
              fileIndex += head.length;
              patternIndex += head.length;
            }
            let fileTailMatch = 0;
            if (tail.length) {
              if (tail.length + fileIndex > file.length)
                return false;
              let tailStart = file.length - tail.length;
              if (this.#matchOne(file, tail, partial, tailStart, 0)) {
                fileTailMatch = tail.length;
              } else {
                if (file[file.length - 1] !== "" || fileIndex + tail.length === file.length) {
                  return false;
                }
                tailStart--;
                if (!this.#matchOne(file, tail, partial, tailStart, 0)) {
                  return false;
                }
                fileTailMatch = tail.length + 1;
              }
            }
            if (!body.length) {
              let sawSome = !!fileTailMatch;
              for (let i2 = fileIndex; i2 < file.length - fileTailMatch; i2++) {
                const f2 = String(file[i2]);
                sawSome = true;
                if (f2 === "." || f2 === ".." || !this.options.dot && f2.startsWith(".")) {
                  return false;
                }
              }
              return partial || sawSome;
            }
            return !!this.#matchGlobStarBodySections(file, segments, file.length - fileTailMatch, fileIndex, 0, partial, 0, !!fileTailMatch, /* @__PURE__ */ new Set());
          }
          // Split the pattern into head, tail, and middle of ** delimited
          // parts. The tail has to be at the end, and the others just have to
          // be found in order from the head. These only depend on the pattern
          // row, so they are kept for the next path.
          #getGlobstarParts(pattern, partial, patternIndex) {
            let byStart = this.#globstarParts.get(pattern);
            if (!byStart) {
              byStart = [];
              this.#globstarParts.set(pattern, byStart);
            }
            const key = patternIndex * 2 + (partial ? 1 : 0);
            const found = byStart[key];
            if (found)
              return found;
            const firstgs = pattern.indexOf(GLOBSTAR, patternIndex);
            const lastgs = pattern.lastIndexOf(GLOBSTAR);
            const head = pattern.slice(patternIndex, firstgs);
            const body = pattern.slice(firstgs + 1, partial ? void 0 : lastgs);
            const tail = partial ? [] : pattern.slice(lastgs + 1);
            const segments = [[[], 0]];
            let current = segments[0];
            let nonGsParts = 0;
            const nonGsPartsSums = [0];
            for (const b2 of body) {
              if (b2 === GLOBSTAR) {
                nonGsPartsSums.push(nonGsParts);
                current = [[], 0];
                segments.push(current);
              } else {
                current[0].push(b2);
                nonGsParts++;
              }
            }
            segments.forEach((b2, i2) => {
              b2[1] = nonGsParts - nonGsPartsSums[i2];
            });
            const parts = { head, body, tail, segments };
            byStart[key] = parts;
            return parts;
          }
          // return false for "nope, not matching"
          // return null for "not matching, cannot keep trying"
          #matchGlobStarBodySections(file, bodySegments, fileLength, fileIndex, bodyIndex, partial, globStarDepth, sawTail, tried) {
            const bs = bodySegments[bodyIndex];
            if (!bs) {
              if (partial) {
                return fileIndex >= fileLength || fileIndex === fileLength - 1 && file[fileIndex] === "";
              }
              for (let i2 = fileIndex; i2 < fileLength; i2++) {
                sawTail = true;
                const f2 = file[i2];
                if (f2 === "." || f2 === ".." || !this.options.dot && f2.startsWith(".")) {
                  return false;
                }
              }
              return sawTail;
            }
            const [body, need] = bs;
            const after = partial ? fileLength : fileLength - need;
            while (fileIndex <= after) {
              const key = bodyIndex * (file.length + 1) + fileIndex;
              if (tried.has(key))
                return false;
              tried.add(key);
              const m2 = this.#matchOne(file, body, partial, fileIndex, 0, fileIndex + body.length);
              if (m2 && globStarDepth < this.maxGlobstarRecursion) {
                const sub = this.#matchGlobStarBodySections(file, bodySegments, fileLength, fileIndex + body.length, bodyIndex + 1, partial, globStarDepth + 1, sawTail, tried);
                if (sub !== false) {
                  return sub;
                }
              }
              if (fileIndex === after)
                break;
              const f2 = file[fileIndex];
              if (f2 === "." || f2 === ".." || !this.options.dot && f2.startsWith(".")) {
                return false;
              }
              fileIndex++;
            }
            return partial || null;
          }
          #matchOne(file, pattern, partial, fileIndex, patternIndex, fileEnd = file.length) {
            let fi;
            let pi;
            let pl;
            let fl;
            for (fi = fileIndex, pi = patternIndex, fl = Math.min(fileEnd, file.length), pl = pattern.length; fi < fl && pi < pl; fi++, pi++) {
              let p2 = pattern[pi];
              let f2 = file[fi];
              if (p2 === false || p2 === GLOBSTAR) {
                return false;
              }
              if (!portionMatch(p2, f2))
                return false;
            }
            if (fi === fl && pi === pl) {
              return true;
            } else if (fi === fl) {
              return partial;
            } else if (pi === pl) {
              return fi === fl - 1 && file[fi] === "";
            } else {
              throw new Error("wtf?");
            }
          }
          braceExpand() {
            return braceExpand(this.pattern, this.options);
          }
          // Expand braces, except numeric ranges such as {0..999} with at
          // least RANGE_MIN values. Each of those stays in its pattern as
          // `0..999`, for the Matcher to test. If a range might
          // be inside a [...] class, expand all of them instead.
          #expandBraces() {
            const { pattern } = this;
            if (this.options.nobrace)
              return this.braceExpand();
            let code = 57344;
            while (pattern.includes(String.fromCharCode(code))) {
              if (++code > 63743)
                return this.braceExpand();
            }
            const mark = String.fromCharCode(code);
            let found = false;
            const marked2 = pattern.replace(rangeRe, (m2, lo, hi) => {
              const a2 = Number(lo);
              const b2 = Number(hi);
              if (!Number.isSafeInteger(a2) || !Number.isSafeInteger(b2) || Math.abs(a2 - b2) + 1 < RANGE_MIN) {
                return m2;
              }
              found = true;
              return `${mark}${lo}..${hi}${mark}`;
            });
            if (!found)
              return this.braceExpand();
            const set = braceExpand(marked2, this.options);
            for (const p2 of set) {
              for (const portion of p2.split("/")) {
                const c2 = portion.indexOf("[");
                if (c2 !== -1 && c2 < portion.lastIndexOf(mark)) {
                  return this.braceExpand();
                }
                if (!this.options.noext && inRepeatOrNegExt(portion, mark)) {
                  return this.braceExpand();
                }
              }
            }
            this.#rangeMark = mark;
            return set;
          }
          parse(pattern) {
            assertValidPattern(pattern);
            const options3 = this.options;
            if (pattern === "**")
              return GLOBSTAR;
            if (pattern === "")
              return "";
            const { nocase, nocaseMagicOnly, noext = false, dot, normalize: normalize2 } = options3;
            const rangeMark = this.#rangeMark;
            const lit2 = rangeMark && pattern.includes(rangeMark) ? void 0 : literal(pattern, noext);
            if (lit2 !== void 0 && !(nocase && !nocaseMagicOnly && pattern.toUpperCase() !== pattern.toLowerCase())) {
              return this.#norm(lit2);
            }
            if (this.#pending)
              return PENDING;
            let m2 = this.#matchers.get(pattern);
            if (!m2) {
              if (!noext)
                assertValidExtglobs(pattern);
              m2 = new Matcher(pattern, {
                nocase,
                noext,
                dot,
                normalize: normalize2,
                ...rangeMark && { rangeMark }
              });
              this.#matchers.set(pattern, m2);
            }
            return m2;
          }
          #slashSplit(p2) {
            if (this.preserveMultipleSlashes) {
              return p2.split("/");
            } else if (this.isWindows && /^\/\/[^/]+/.test(p2)) {
              return ["", ...p2.split(/\/+/)];
            } else {
              return p2.split(/\/+/);
            }
          }
          match(f2, partial = this.partial) {
            if (this.comment) {
              return false;
            }
            if (this.empty) {
              return f2 === "";
            }
            if (f2 === "/" && partial) {
              return true;
            }
            const options3 = this.options;
            let split = this.#cachedSplit(f2);
            if (!split) {
              if (!partial && !this.#form && (this.#endCheck || this.#literalCheck) && lastChecked !== f2) {
                lastChecked = f2;
                const can = this.#canMatch(f2);
                if (can === "no")
                  return options3.flipNegate ? false : this.negate;
                if (can === "yes")
                  return options3.flipNegate ? true : !this.negate;
              }
              split = this.#split(f2);
            }
            const ff = split.parts;
            const resolved = this.#level2 ? split.resolved ??= this.#levelTwoFileOptimize(ff) : ff;
            const set = this.set;
            let filename = ff[ff.length - 1];
            if (!filename) {
              for (let i2 = ff.length - 2; !filename && i2 >= 0; i2--) {
                filename = ff[i2];
              }
            }
            for (let r2 = 0; r2 < set.length; r2++) {
              const pattern = set[r2];
              const shape = partial ? void 0 : this.#shapes[r2];
              const hit = shape === "base" ? portionMatch(pattern[0], filename) : shape ? this.#matchShape(resolved, pattern, shape) : options3.matchBase && pattern.length === 1 ? this.#matchRow([filename], [filename], pattern, partial) : this.#matchRow(ff, resolved, pattern, partial);
              if (hit) {
                if (options3.flipNegate) {
                  return true;
                }
                return !this.negate;
              }
            }
            if (options3.flipNegate) {
              return false;
            }
            return this.negate;
          }
          static defaults(def) {
            return minimatch2.defaults(def).Minimatch;
          }
        };
        minimatch2.Minimatch = Minimatch;
        minimatch2.escape = escape2;
        minimatch2.unescape = unescape3;
      }
    });
    
    // src/core/fileWatcher.ts
    function createChangeFilter(globPattern, includeDirectories = false) {
      let matcher = new Minimatch(globPattern, { dot: true });
      return (change) => {
        let files = change.files.filter((file) => (file.type === "f" || includeDirectories && file.type === "d") && matcher.match(file.name));
        return files.length === 0 ? void 0 : { ...change, files };
      };
    }
    var init_fileWatcher = __esm({
      "src/core/fileWatcher.ts"() {
        "use strict";
        init_esm5();
      }
    });
    
    // src/core/nativeWatcher.ts
    function createGitNativeOptions() {
      return {
        ignoreGlobs: ["objects", "logs", "hooks", "info", "worktrees", "modules", "rr-cache", "rebase-apply", "rebase-merge", "sequencer", "lost-found", "branches"]
      };
    }
    function detectLinuxLibc(report) {
      if (typeof report !== "object" || report == null) return "glibc";
      let header = report.header;
      return typeof header?.glibcVersionRuntime === "string" ? "glibc" : "musl";
    }
    function linuxLibc() {
      let report;
      try {
        report = process.report?.getReport();
      } catch (_e) {
        return "glibc";
      }
      if (detectLinuxLibc(report) !== "glibc") return "musl";
      let version2 = report?.header?.glibcVersionRuntime;
      if (typeof version2 === "string") {
        let match2 = /^(\d+)\.(\d+)/.exec(version2);
        if (match2) {
          let major = Number(match2[1]);
          let minor = Number(match2[2]);
          if (major < 2 || major === 2 && minor < 28) {
            throw new Error(`Native watcher requires Linux glibc 2.28 or later (detected ${version2})`);
          }
        }
      }
      return "glibc";
    }
    function getNativeWatcherTarget(platform2 = process.platform, arch = process.arch, libc = platform2 === "linux" ? linuxLibc() : void 0) {
      if ((platform2 === "darwin" || platform2 === "win32") && (arch === "x64" || arch === "arm64")) return { filename: `${platform2}-${arch}.node` };
      if (platform2 === "linux" && (arch === "x64" || arch === "arm64") && (libc === "glibc" || libc === "musl")) return { filename: `${platform2}-${arch}-${libc}.node` };
      return void 0;
    }
    function normalizeWatcherPath(filepath, platform2 = process.platform) {
      if (platform2 === "win32") {
        if (filepath.toLowerCase().startsWith("\\\\?\\unc\\")) filepath = `\\\\${filepath.slice(8)}`;
        else if (filepath.startsWith("\\\\?\\")) filepath = filepath.slice(4);
        return path.win32.normalize(filepath);
      }
      filepath = path.posix.normalize(filepath);
      return platform2 === "darwin" ? filepath.normalize("NFC") : filepath;
    }
    function relativeWatcherPath(root, filepath, platform2 = process.platform) {
      let pathModule = platform2 === "win32" ? path.win32 : path.posix;
      let normalizedRoot = normalizeWatcherPath(root, platform2);
      let normalizedPath = normalizeWatcherPath(filepath, platform2);
      let normalizedName = pathModule.relative(normalizedRoot, normalizedPath);
      if (!normalizedName || normalizedName === ".." || normalizedName.startsWith(`..${pathModule.sep}`) || pathModule.isAbsolute(normalizedName)) return void 0;
      return normalizedName.split(pathModule.sep).join("/");
    }
    function createNativeOptions(root, logicalRoot, ignored) {
      let options3 = {};
      for (let value of ignored) {
        if (!value) continue;
        if (value.includes("*")) {
          if (path.isAbsolute(value)) {
            let relative2 = relativeWatcherPath(logicalRoot, value) ?? relativeWatcherPath(root, value);
            if (!relative2) continue;
            value = relative2;
          }
          ;
          (options3.ignoreGlobs ??= []).push(value);
          continue;
        }
        let logicalPath = path.resolve(logicalRoot, value);
        let relative;
        if (isParentFolder(logicalRoot, logicalPath)) {
          relative = path.relative(logicalRoot, logicalPath);
        } else if (isParentFolder(root, logicalPath)) {
          relative = path.relative(root, logicalPath);
        } else {
          continue;
        }
        ;
        (options3.ignoreGlobs ??= []).push(relative.split(path.sep).join("/"));
      }
      return options3;
    }
    var logger18, NativeWatcher;
    var init_nativeWatcher = __esm({
      "src/core/nativeWatcher.ts"() {
        "use strict";
        init_logger();
        init_constants();
        init_errors();
        init_fs();
        init_node();
        init_protocol();
        init_fileWatcher();
        logger18 = createLogger("core-native-watcher");
        NativeWatcher = class _NativeWatcher {
          constructor(root, channel) {
            this.root = root;
            this.channel = channel;
            this.callback = (error, events) => {
              if (this.disposed) return;
              if (error) {
                logger18.error("Native watcher error", error);
                this.appendOutput(`Native watcher error: ${error}`, "Error");
                return;
              }
              if (!Array.isArray(events) || events.length === 0) return;
              this.pendingEvents.push(events);
              if (this.ready) this.scheduleDrain();
            };
          }
          root;
          channel;
          listeners = [];
          pendingEvents = [];
          binding;
          watchRoot;
          options;
          disposed = false;
          ready = false;
          drainHandle;
          callback;
          subscription = `native-${crypto.randomUUID()}`;
          supportsRenameId = true;
          static async createClient(root, channel, token = import_node4.CancellationToken.None, ignored = [], options3) {
            let target = getNativeWatcherTarget();
            if (!target) throw new Error(`No native watcher binary for ${process.platform}-${process.arch}`);
            let watcher = new _NativeWatcher(path.resolve(root), channel);
            let filepath = path.join(pluginRoot, "bin", "watcher", target.filename);
            let subscribed = false;
            watcher.appendOutput(`Native watcher binary: ${filepath}`);
            try {
              if (token.isCancellationRequested) throw new CancellationError();
              watcher.watchRoot = await fs.promises.realpath(watcher.root);
              if (token.isCancellationRequested) throw new CancellationError();
              watcher.options = options3 ?? createNativeOptions(watcher.watchRoot, watcher.root, ignored);
              watcher.binding = require(filepath);
              await watcher.binding.subscribe(watcher.watchRoot, watcher.callback, watcher.options);
              subscribed = true;
              if (token.isCancellationRequested) throw new CancellationError();
              watcher.ready = true;
              watcher.scheduleDrain();
              watcher.appendOutput(`Native watcher using ${filepath} for ${watcher.root}`);
              return watcher;
            } catch (error) {
              watcher.disposed = true;
              if (subscribed) await watcher.unsubscribe();
              throw error;
            }
          }
          subscribe(globPattern, callback, includeDirectories = false) {
            let filterChanges = createChangeFilter(globPattern, includeDirectories);
            let listener = (change) => {
              let filtered = filterChanges(change);
              if (!filtered) return;
              this.appendOutput(`file change of "${globPattern}" detected: ${JSON.stringify(filtered, null, 2)}`);
              callback(filtered);
            };
            this.listeners.push(listener);
            return import_node4.Disposable.create(() => {
              let index = this.listeners.indexOf(listener);
              if (index !== -1) this.listeners.splice(index, 1);
            });
          }
          dispose() {
            if (this.disposed) return;
            this.disposed = true;
            this.ready = false;
            this.listeners.length = 0;
            this.pendingEvents.length = 0;
            if (this.drainHandle) clearImmediate(this.drainHandle);
            this.drainHandle = void 0;
            void this.unsubscribe().catch((error) => {
              logger18.error("Error unsubscribing Native watcher", error);
              this.appendOutput(`Error unsubscribing Native watcher: ${error}`, "Error");
            });
          }
          scheduleDrain() {
            if (this.drainHandle || this.pendingEvents.length === 0) return;
            this.drainHandle = setImmediate(() => {
              this.drainHandle = void 0;
              while (!this.disposed && this.pendingEvents.length) this.emit(this.pendingEvents.shift());
            });
          }
          emit(events) {
            let files = [];
            for (let event of events) {
              let name2 = relativeWatcherPath(this.watchRoot, event.path);
              if (!name2) continue;
              files.push({ name: name2, exists: event.type !== "delete", new: event.type === "create", type: event.kind === "directory" ? "d" : "f", renameId: event.renameId });
            }
            if (files.length === 0 || this.disposed) return;
            let change = { root: this.root, subscription: this.subscription, files };
            for (let listener of this.listeners.slice()) listener(change);
          }
          async unsubscribe() {
            let binding = this.binding;
            let root = this.watchRoot;
            let options3 = this.options;
            this.binding = void 0;
            if (binding && root && options3) await binding.unsubscribe(root, this.callback, options3);
          }
          appendOutput(message, type = "Info") {
            this.channel?.appendLine(`[${type}  - ${(/* @__PURE__ */ new Date()).toLocaleTimeString()}] ${message}`);
          }
        };
      }
    });
    
    // node_modules/node-int64/Int64.js
    var require_Int64 = __commonJS({
      "node_modules/node-int64/Int64.js"(exports2, module2) {
        var VAL32 = 4294967296;
        var _HEX = [];
        for (i2 = 0; i2 < 256; i2++) {
          _HEX[i2] = (i2 > 15 ? "" : "0") + i2.toString(16);
        }
        var i2;
        var Int64 = module2.exports = function(a1, a2) {
          if (a1 instanceof Buffer) {
            this.buffer = a1;
            this.offset = a2 || 0;
          } else if (Object.prototype.toString.call(a1) == "[object Uint8Array]") {
            this.buffer = new Buffer(a1);
            this.offset = a2 || 0;
          } else {
            this.buffer = this.buffer || new Buffer(8);
            this.offset = 0;
            this.setValue.apply(this, arguments);
          }
        };
        Int64.MAX_INT = Math.pow(2, 53);
        Int64.MIN_INT = -Math.pow(2, 53);
        Int64.prototype = {
          constructor: Int64,
          /**
           * Do in-place 2's compliment.  See
           * http://en.wikipedia.org/wiki/Two's_complement
           */
          _2scomp: function() {
            var b2 = this.buffer, o2 = this.offset, carry = 1;
            for (var i3 = o2 + 7; i3 >= o2; i3--) {
              var v2 = (b2[i3] ^ 255) + carry;
              b2[i3] = v2 & 255;
              carry = v2 >> 8;
            }
          },
          /**
           * Set the value. Takes any of the following arguments:
           *
           * setValue(string) - A hexidecimal string
           * setValue(number) - Number (throws if n is outside int64 range)
           * setValue(hi, lo) - Raw bits as two 32-bit values
           */
          setValue: function(hi, lo) {
            var negate = false;
            if (arguments.length == 1) {
              if (typeof hi == "number") {
                negate = hi < 0;
                hi = Math.abs(hi);
                lo = hi % VAL32;
                hi = hi / VAL32;
                if (hi > VAL32) throw new RangeError(hi + " is outside Int64 range");
                hi = hi | 0;
              } else if (typeof hi == "string") {
                hi = (hi + "").replace(/^0x/, "");
                lo = hi.substr(-8);
                hi = hi.length > 8 ? hi.substr(0, hi.length - 8) : "";
                hi = parseInt(hi, 16);
                lo = parseInt(lo, 16);
              } else {
                throw new Error(hi + " must be a Number or String");
              }
            }
            var b2 = this.buffer, o2 = this.offset;
            for (var i3 = 7; i3 >= 0; i3--) {
              b2[o2 + i3] = lo & 255;
              lo = i3 == 4 ? hi : lo >>> 8;
            }
            if (negate) this._2scomp();
          },
          /**
           * Convert to a native JS number.
           *
           * WARNING: Do not expect this value to be accurate to integer precision for
           * large (positive or negative) numbers!
           *
           * @param allowImprecise If true, no check is performed to verify the
           * returned value is accurate to integer precision.  If false, imprecise
           * numbers (very large positive or negative numbers) will be forced to +/-
           * Infinity.
           */
          toNumber: function(allowImprecise) {
            var b2 = this.buffer, o2 = this.offset;
            var negate = b2[o2] & 128, x2 = 0, carry = 1;
            for (var i3 = 7, m2 = 1; i3 >= 0; i3--, m2 *= 256) {
              var v2 = b2[o2 + i3];
              if (negate) {
                v2 = (v2 ^ 255) + carry;
                carry = v2 >> 8;
                v2 = v2 & 255;
              }
              x2 += v2 * m2;
            }
            if (!allowImprecise && x2 >= Int64.MAX_INT) {
              return negate ? -Infinity : Infinity;
            }
            return negate ? -x2 : x2;
          },
          /**
           * Convert to a JS Number. Returns +/-Infinity for values that can't be
           * represented to integer precision.
           */
          valueOf: function() {
            return this.toNumber(false);
          },
          /**
           * Return string value
           *
           * @param radix Just like Number#toString()'s radix
           */
          toString: function(radix) {
            return this.valueOf().toString(radix || 10);
          },
          /**
           * Return a string showing the buffer octets, with MSB on the left.
           *
           * @param sep separator string. default is '' (empty string)
           */
          toOctetString: function(sep2) {
            var out = new Array(8);
            var b2 = this.buffer, o2 = this.offset;
            for (var i3 = 0; i3 < 8; i3++) {
              out[i3] = _HEX[b2[o2 + i3]];
            }
            return out.join(sep2 || "");
          },
          /**
           * Returns the int64's 8 bytes in a buffer.
           *
           * @param {bool} [rawBuffer=false]  If no offset and this is true, return the internal buffer.  Should only be used if
           *                                  you're discarding the Int64 afterwards, as it breaks encapsulation.
           */
          toBuffer: function(rawBuffer) {
            if (rawBuffer && this.offset === 0) return this.buffer;
            var out = new Buffer(8);
            this.buffer.copy(out, 0, this.offset, this.offset + 8);
            return out;
          },
          /**
           * Copy 8 bytes of int64 into target buffer at target offset.
           *
           * @param {Buffer} targetBuffer       Buffer to copy into.
           * @param {number} [targetOffset=0]   Offset into target buffer.
           */
          copy: function(targetBuffer, targetOffset) {
            this.buffer.copy(targetBuffer, targetOffset || 0, this.offset, this.offset + 8);
          },
          /**
           * Returns a number indicating whether this comes before or after or is the
           * same as the other in sort order.
           *
           * @param {Int64} other  Other Int64 to compare.
           */
          compare: function(other) {
            if ((this.buffer[this.offset] & 128) != (other.buffer[other.offset] & 128)) {
              return other.buffer[other.offset] - this.buffer[this.offset];
            }
            for (var i3 = 0; i3 < 8; i3++) {
              if (this.buffer[this.offset + i3] !== other.buffer[other.offset + i3]) {
                return this.buffer[this.offset + i3] - other.buffer[other.offset + i3];
              }
            }
            return 0;
          },
          /**
           * Returns a boolean indicating if this integer is equal to other.
           *
           * @param {Int64} other  Other Int64 to compare.
           */
          equals: function(other) {
            return this.compare(other) === 0;
          },
          /**
           * Pretty output in console.log
           */
          inspect: function() {
            return "[Int64 value:" + this + " octets:" + this.toOctetString(" ") + "]";
          }
        };
      }
    });
    
    // node_modules/bser/index.js
    var require_bser = __commonJS({
      "node_modules/bser/index.js"(exports2) {
        var EE = require("events").EventEmitter;
        var util = require("util");
        var os2 = require("os");
        var assert3 = require("assert");
        var Int64 = require_Int64();
        var isBigEndian = os2.endianness() == "BE";
        function nextPow2(size) {
          return Math.pow(2, Math.ceil(Math.log(size) / Math.LN2));
        }
        function Accumulator(initsize) {
          this.buf = Buffer.alloc(nextPow2(initsize || 8192));
          this.readOffset = 0;
          this.writeOffset = 0;
        }
        exports2.Accumulator = Accumulator;
        Accumulator.prototype.writeAvail = function() {
          return this.buf.length - this.writeOffset;
        };
        Accumulator.prototype.readAvail = function() {
          return this.writeOffset - this.readOffset;
        };
        Accumulator.prototype.reserve = function(size) {
          if (size < this.writeAvail()) {
            return;
          }
          if (this.readOffset > 0) {
            this.buf.copy(this.buf, 0, this.readOffset, this.writeOffset);
            this.writeOffset -= this.readOffset;
            this.readOffset = 0;
          }
          if (size < this.writeAvail()) {
            return;
          }
          var buf = Buffer.alloc(nextPow2(this.buf.length + size - this.writeAvail()));
          this.buf.copy(buf);
          this.buf = buf;
        };
        Accumulator.prototype.append = function(buf) {
          if (Buffer.isBuffer(buf)) {
            this.reserve(buf.length);
            buf.copy(this.buf, this.writeOffset, 0, buf.length);
            this.writeOffset += buf.length;
          } else {
            var size = Buffer.byteLength(buf);
            this.reserve(size);
            this.buf.write(buf, this.writeOffset);
            this.writeOffset += size;
          }
        };
        Accumulator.prototype.assertReadableSize = function(size) {
          if (this.readAvail() < size) {
            throw new Error("wanted to read " + size + " bytes but only have " + this.readAvail());
          }
        };
        Accumulator.prototype.peekString = function(size) {
          this.assertReadableSize(size);
          return this.buf.toString("utf-8", this.readOffset, this.readOffset + size);
        };
        Accumulator.prototype.readString = function(size) {
          var str = this.peekString(size);
          this.readOffset += size;
          return str;
        };
        Accumulator.prototype.peekInt = function(size) {
          this.assertReadableSize(size);
          switch (size) {
            case 1:
              return this.buf.readInt8(this.readOffset, size);
            case 2:
              return isBigEndian ? this.buf.readInt16BE(this.readOffset, size) : this.buf.readInt16LE(this.readOffset, size);
            case 4:
              return isBigEndian ? this.buf.readInt32BE(this.readOffset, size) : this.buf.readInt32LE(this.readOffset, size);
            case 8:
              var big = this.buf.slice(this.readOffset, this.readOffset + 8);
              if (isBigEndian) {
                return new Int64(big);
              }
              return new Int64(byteswap64(big));
            default:
              throw new Error("invalid integer size " + size);
          }
        };
        Accumulator.prototype.readInt = function(bytes2) {
          var ival = this.peekInt(bytes2);
          if (ival instanceof Int64 && isFinite(ival.valueOf())) {
            ival = ival.valueOf();
          }
          this.readOffset += bytes2;
          return ival;
        };
        Accumulator.prototype.peekDouble = function() {
          this.assertReadableSize(8);
          return isBigEndian ? this.buf.readDoubleBE(this.readOffset) : this.buf.readDoubleLE(this.readOffset);
        };
        Accumulator.prototype.readDouble = function() {
          var dval = this.peekDouble();
          this.readOffset += 8;
          return dval;
        };
        Accumulator.prototype.readAdvance = function(size) {
          if (size > 0) {
            this.assertReadableSize(size);
          } else if (size < 0 && this.readOffset + size < 0) {
            throw new Error("advance with negative offset " + size + " would seek off the start of the buffer");
          }
          this.readOffset += size;
        };
        Accumulator.prototype.writeByte = function(value) {
          this.reserve(1);
          this.buf.writeInt8(value, this.writeOffset);
          ++this.writeOffset;
        };
        Accumulator.prototype.writeInt = function(value, size) {
          this.reserve(size);
          switch (size) {
            case 1:
              this.buf.writeInt8(value, this.writeOffset);
              break;
            case 2:
              if (isBigEndian) {
                this.buf.writeInt16BE(value, this.writeOffset);
              } else {
                this.buf.writeInt16LE(value, this.writeOffset);
              }
              break;
            case 4:
              if (isBigEndian) {
                this.buf.writeInt32BE(value, this.writeOffset);
              } else {
                this.buf.writeInt32LE(value, this.writeOffset);
              }
              break;
            default:
              throw new Error("unsupported integer size " + size);
          }
          this.writeOffset += size;
        };
        Accumulator.prototype.writeDouble = function(value) {
          this.reserve(8);
          if (isBigEndian) {
            this.buf.writeDoubleBE(value, this.writeOffset);
          } else {
            this.buf.writeDoubleLE(value, this.writeOffset);
          }
          this.writeOffset += 8;
        };
        var BSER_ARRAY = 0;
        var BSER_OBJECT = 1;
        var BSER_STRING = 2;
        var BSER_INT8 = 3;
        var BSER_INT16 = 4;
        var BSER_INT32 = 5;
        var BSER_INT64 = 6;
        var BSER_REAL = 7;
        var BSER_TRUE = 8;
        var BSER_FALSE = 9;
        var BSER_NULL = 10;
        var BSER_TEMPLATE = 11;
        var BSER_SKIP = 12;
        var ST_NEED_PDU = 0;
        var ST_FILL_PDU = 1;
        var MAX_INT8 = 127;
        var MAX_INT16 = 32767;
        var MAX_INT32 = 2147483647;
        function BunserBuf() {
          EE.call(this);
          this.buf = new Accumulator();
          this.state = ST_NEED_PDU;
        }
        util.inherits(BunserBuf, EE);
        exports2.BunserBuf = BunserBuf;
        BunserBuf.prototype.append = function(buf, synchronous) {
          if (synchronous) {
            this.buf.append(buf);
            return this.process(synchronous);
          }
          try {
            this.buf.append(buf);
          } catch (err) {
            this.emit("error", err);
            return;
          }
          this.processLater();
        };
        BunserBuf.prototype.processLater = function() {
          var self = this;
          process.nextTick(function() {
            try {
              self.process(false);
            } catch (err) {
              self.emit("error", err);
            }
          });
        };
        BunserBuf.prototype.process = function(synchronous) {
          if (this.state == ST_NEED_PDU) {
            if (this.buf.readAvail() < 2) {
              return;
            }
            this.expectCode(0);
            this.expectCode(1);
            this.pduLen = this.decodeInt(
              true
              /* relaxed */
            );
            if (this.pduLen === false) {
              this.buf.readAdvance(-2);
              return;
            }
            this.buf.reserve(this.pduLen);
            this.state = ST_FILL_PDU;
          }
          if (this.state == ST_FILL_PDU) {
            if (this.buf.readAvail() < this.pduLen) {
              return;
            }
            var val = this.decodeAny();
            if (synchronous) {
              return val;
            }
            this.emit("value", val);
            this.state = ST_NEED_PDU;
          }
          if (!synchronous && this.buf.readAvail() > 0) {
            this.processLater();
          }
        };
        BunserBuf.prototype.raise = function(reason) {
          throw new Error(reason + ", in Buffer of length " + this.buf.buf.length + " (" + this.buf.readAvail() + " readable) at offset " + this.buf.readOffset + " buffer: " + JSON.stringify(this.buf.buf.slice(
            this.buf.readOffset,
            this.buf.readOffset + 32
          ).toJSON()));
        };
        BunserBuf.prototype.expectCode = function(expected) {
          var code = this.buf.readInt(1);
          if (code != expected) {
            this.raise("expected bser opcode " + expected + " but got " + code);
          }
        };
        BunserBuf.prototype.decodeAny = function() {
          var code = this.buf.peekInt(1);
          switch (code) {
            case BSER_INT8:
            case BSER_INT16:
            case BSER_INT32:
            case BSER_INT64:
              return this.decodeInt();
            case BSER_REAL:
              this.buf.readAdvance(1);
              return this.buf.readDouble();
            case BSER_TRUE:
              this.buf.readAdvance(1);
              return true;
            case BSER_FALSE:
              this.buf.readAdvance(1);
              return false;
            case BSER_NULL:
              this.buf.readAdvance(1);
              return null;
            case BSER_STRING:
              return this.decodeString();
            case BSER_ARRAY:
              return this.decodeArray();
            case BSER_OBJECT:
              return this.decodeObject();
            case BSER_TEMPLATE:
              return this.decodeTemplate();
            default:
              this.raise("unhandled bser opcode " + code);
          }
        };
        BunserBuf.prototype.decodeArray = function() {
          this.expectCode(BSER_ARRAY);
          var nitems = this.decodeInt();
          var arr = [];
          for (var i2 = 0; i2 < nitems; ++i2) {
            arr.push(this.decodeAny());
          }
          return arr;
        };
        BunserBuf.prototype.decodeObject = function() {
          this.expectCode(BSER_OBJECT);
          var nitems = this.decodeInt();
          var res = {};
          for (var i2 = 0; i2 < nitems; ++i2) {
            var key = this.decodeString();
            var val = this.decodeAny();
            res[key] = val;
          }
          return res;
        };
        BunserBuf.prototype.decodeTemplate = function() {
          this.expectCode(BSER_TEMPLATE);
          var keys = this.decodeArray();
          var nitems = this.decodeInt();
          var arr = [];
          for (var i2 = 0; i2 < nitems; ++i2) {
            var obj = {};
            for (var keyidx = 0; keyidx < keys.length; ++keyidx) {
              if (this.buf.peekInt(1) == BSER_SKIP) {
                this.buf.readAdvance(1);
                continue;
              }
              var val = this.decodeAny();
              obj[keys[keyidx]] = val;
            }
            arr.push(obj);
          }
          return arr;
        };
        BunserBuf.prototype.decodeString = function() {
          this.expectCode(BSER_STRING);
          var len = this.decodeInt();
          return this.buf.readString(len);
        };
        BunserBuf.prototype.decodeInt = function(relaxSizeAsserts) {
          if (relaxSizeAsserts && this.buf.readAvail() < 1) {
            return false;
          } else {
            this.buf.assertReadableSize(1);
          }
          var code = this.buf.peekInt(1);
          var size = 0;
          switch (code) {
            case BSER_INT8:
              size = 1;
              break;
            case BSER_INT16:
              size = 2;
              break;
            case BSER_INT32:
              size = 4;
              break;
            case BSER_INT64:
              size = 8;
              break;
            default:
              this.raise("invalid bser int encoding " + code);
          }
          if (relaxSizeAsserts && this.buf.readAvail() < 1 + size) {
            return false;
          }
          this.buf.readAdvance(1);
          return this.buf.readInt(size);
        };
        function loadFromBuffer(input) {
          var buf = new BunserBuf();
          var result = buf.append(input, true);
          if (buf.buf.readAvail()) {
            throw Error(
              "excess data found after input buffer, use BunserBuf instead"
            );
          }
          if (typeof result === "undefined") {
            throw Error(
              "no bser found in string and no error raised!?"
            );
          }
          return result;
        }
        exports2.loadFromBuffer = loadFromBuffer;
        function byteswap64(buf) {
          var swap = Buffer.alloc(buf.length);
          for (var i2 = 0; i2 < buf.length; i2++) {
            swap[i2] = buf[buf.length - 1 - i2];
          }
          return swap;
        }
        function dump_int64(buf, val) {
          var be = val.toBuffer();
          if (isBigEndian) {
            buf.writeByte(BSER_INT64);
            buf.append(be);
            return;
          }
          var le = byteswap64(be);
          buf.writeByte(BSER_INT64);
          buf.append(le);
        }
        function dump_int(buf, val) {
          var abs = Math.abs(val);
          if (abs <= MAX_INT8) {
            buf.writeByte(BSER_INT8);
            buf.writeInt(val, 1);
          } else if (abs <= MAX_INT16) {
            buf.writeByte(BSER_INT16);
            buf.writeInt(val, 2);
          } else if (abs <= MAX_INT32) {
            buf.writeByte(BSER_INT32);
            buf.writeInt(val, 4);
          } else {
            dump_int64(buf, new Int64(val));
          }
        }
        function dump_any(buf, val) {
          switch (typeof val) {
            case "number":
              if (isFinite(val) && Math.floor(val) === val) {
                dump_int(buf, val);
              } else {
                buf.writeByte(BSER_REAL);
                buf.writeDouble(val);
              }
              return;
            case "string":
              buf.writeByte(BSER_STRING);
              dump_int(buf, Buffer.byteLength(val));
              buf.append(val);
              return;
            case "boolean":
              buf.writeByte(val ? BSER_TRUE : BSER_FALSE);
              return;
            case "object":
              if (val === null) {
                buf.writeByte(BSER_NULL);
                return;
              }
              if (val instanceof Int64) {
                dump_int64(buf, val);
                return;
              }
              if (Array.isArray(val)) {
                buf.writeByte(BSER_ARRAY);
                dump_int(buf, val.length);
                for (var i2 = 0; i2 < val.length; ++i2) {
                  dump_any(buf, val[i2]);
                }
                return;
              }
              buf.writeByte(BSER_OBJECT);
              var keys = Object.keys(val);
              var num_keys = keys.length;
              for (var i2 = 0; i2 < keys.length; ++i2) {
                var key = keys[i2];
                var v2 = val[key];
                if (typeof v2 == "undefined") {
                  num_keys--;
                }
              }
              dump_int(buf, num_keys);
              for (var i2 = 0; i2 < keys.length; ++i2) {
                var key = keys[i2];
                var v2 = val[key];
                if (typeof v2 == "undefined") {
                  continue;
                }
                dump_any(buf, key);
                try {
                  dump_any(buf, v2);
                } catch (e2) {
                  throw new Error(
                    e2.message + " (while serializing object property with name `" + key + "')"
                  );
                }
              }
              return;
            default:
              throw new Error("cannot serialize type " + typeof val + " to BSER");
          }
        }
        function dumpToBuffer(val) {
          var buf = new Accumulator();
          buf.writeByte(0);
          buf.writeByte(1);
          buf.writeByte(BSER_INT32);
          buf.writeInt(0, 4);
          dump_any(buf, val);
          var off = buf.writeOffset;
          var len = off - 7;
          buf.writeOffset = 3;
          buf.writeInt(len, 4);
          buf.writeOffset = off;
          return buf.buf.slice(0, off);
        }
        exports2.dumpToBuffer = dumpToBuffer;
      }
    });
    
    // node_modules/fb-watchman/index.js
    var require_fb_watchman = __commonJS({
      "node_modules/fb-watchman/index.js"(exports2, module2) {
        "use strict";
        var net5 = require("net");
        var EE = require("events").EventEmitter;
        var util = require("util");
        var childProcess = require("child_process");
        var bser = require_bser();
        var unilateralTags = ["subscription", "log"];
        function Client(options3) {
          var self = this;
          EE.call(this);
          this.watchmanBinaryPath = "watchman";
          if (options3 && options3.watchmanBinaryPath) {
            this.watchmanBinaryPath = options3.watchmanBinaryPath.trim();
          }
          ;
          this.commands = [];
        }
        util.inherits(Client, EE);
        module2.exports.Client = Client;
        Client.prototype.sendNextCommand = function() {
          if (this.currentCommand) {
            return;
          }
          this.currentCommand = this.commands.shift();
          if (!this.currentCommand) {
            return;
          }
          this.socket.write(bser.dumpToBuffer(this.currentCommand.cmd));
        };
        Client.prototype.cancelCommands = function(why) {
          var error = new Error(why);
          var cmds = this.commands;
          this.commands = [];
          if (this.currentCommand) {
            cmds.unshift(this.currentCommand);
            this.currentCommand = null;
          }
          cmds.forEach(function(cmd) {
            cmd.cb(error);
          });
        };
        Client.prototype.connect = function() {
          var self = this;
          function makeSock(sockname) {
            self.bunser = new bser.BunserBuf();
            self.bunser.on("value", function(obj) {
              var unilateral = false;
              for (var i2 = 0; i2 < unilateralTags.length; i2++) {
                var tag = unilateralTags[i2];
                if (tag in obj) {
                  unilateral = tag;
                }
              }
              if (unilateral) {
                self.emit(unilateral, obj);
              } else if (self.currentCommand) {
                var cmd = self.currentCommand;
                self.currentCommand = null;
                if ("error" in obj) {
                  var error = new Error(obj.error);
                  error.watchmanResponse = obj;
                  cmd.cb(error);
                } else {
                  cmd.cb(null, obj);
                }
              }
              self.sendNextCommand();
            });
            self.bunser.on("error", function(err) {
              self.emit("error", err);
            });
            self.socket = net5.createConnection(sockname);
            self.socket.on("connect", function() {
              self.connecting = false;
              self.emit("connect");
              self.sendNextCommand();
            });
            self.socket.on("error", function(err) {
              self.connecting = false;
              self.emit("error", err);
            });
            self.socket.on("data", function(buf) {
              if (self.bunser) {
                self.bunser.append(buf);
              }
            });
            self.socket.on("end", function() {
              self.socket = null;
              self.bunser = null;
              self.cancelCommands("The watchman connection was closed");
              self.emit("end");
            });
          }
          if (process.env.WATCHMAN_SOCK) {
            makeSock(process.env.WATCHMAN_SOCK);
            return;
          }
          var args = ["--no-pretty", "get-sockname"];
          var proc = null;
          var spawnFailed = false;
          function spawnError(error) {
            if (spawnFailed) {
              return;
            }
            spawnFailed = true;
            if (error.code === "EACCES" || error.errno === "EACCES") {
              error.message = "The Watchman CLI is installed but cannot be spawned because of a permission problem";
            } else if (error.code === "ENOENT" || error.errno === "ENOENT") {
              error.message = "Watchman was not found in PATH.  See https://facebook.github.io/watchman/docs/install.html for installation instructions";
            }
            console.error("Watchman: ", error.message);
            self.emit("error", error);
          }
          try {
            proc = childProcess.spawn(this.watchmanBinaryPath, args, {
              stdio: ["ignore", "pipe", "pipe"],
              windowsHide: true
            });
          } catch (error) {
            spawnError(error);
            return;
          }
          var stdout = [];
          var stderr = [];
          proc.stdout.on("data", function(data) {
            stdout.push(data);
          });
          proc.stderr.on("data", function(data) {
            data = data.toString("utf8");
            stderr.push(data);
            console.error(data);
          });
          proc.on("error", function(error) {
            spawnError(error);
          });
          proc.on("close", function(code, signal) {
            if (code !== 0) {
              spawnError(new Error(
                self.watchmanBinaryPath + " " + args.join(" ") + " returned with exit code=" + code + ", signal=" + signal + ", stderr= " + stderr.join("")
              ));
              return;
            }
            try {
              var obj = JSON.parse(stdout.join(""));
              if ("error" in obj) {
                var error = new Error(obj.error);
                error.watchmanResponse = obj;
                self.emit("error", error);
                return;
              }
              makeSock(obj.sockname);
            } catch (e2) {
              self.emit("error", e2);
            }
          });
        };
        Client.prototype.command = function(args, done) {
          done = done || function() {
          };
          this.commands.push({ cmd: args, cb: done });
          if (!this.socket) {
            if (!this.connecting) {
              this.connecting = true;
              this.connect();
              return;
            }
            return;
          }
          this.sendNextCommand();
        };
        var cap_versions = {
          "cmd-watch-del-all": "3.1.1",
          "cmd-watch-project": "3.1",
          "relative_root": "3.3",
          "term-dirname": "3.1",
          "term-idirname": "3.1",
          "wildmatch": "3.7"
        };
        function vers_compare(a2, b2) {
          a2 = a2.split(".");
          b2 = b2.split(".");
          for (var i2 = 0; i2 < 3; i2++) {
            var d2 = parseInt(a2[i2] || "0") - parseInt(b2[i2] || "0");
            if (d2 != 0) {
              return d2;
            }
          }
          return 0;
        }
        function have_cap(vers, name2) {
          if (name2 in cap_versions) {
            return vers_compare(vers, cap_versions[name2]) >= 0;
          }
          return false;
        }
        Client.prototype._synthesizeCapabilityCheck = function(resp, optional, required) {
          resp.capabilities = {};
          var version2 = resp.version;
          optional.forEach(function(name2) {
            resp.capabilities[name2] = have_cap(version2, name2);
          });
          required.forEach(function(name2) {
            var have = have_cap(version2, name2);
            resp.capabilities[name2] = have;
            if (!have) {
              resp.error = "client required capability `" + name2 + "` is not supported by this server";
            }
          });
          return resp;
        };
        Client.prototype.capabilityCheck = function(caps, done) {
          var optional = caps.optional || [];
          var required = caps.required || [];
          var self = this;
          this.command(["version", {
            optional,
            required
          }], function(error, resp) {
            if (error) {
              done(error);
              return;
            }
            if (!("capabilities" in resp)) {
              resp = self._synthesizeCapabilityCheck(resp, optional, required);
              if (resp.error) {
                error = new Error(resp.error);
                error.watchmanResponse = resp;
                done(error);
                return;
              }
            }
            done(null, resp);
          });
        };
        Client.prototype.end = function() {
          this.cancelCommands("The client was ended");
          if (this.socket) {
            this.socket.end();
            this.socket = null;
          }
          this.bunser = null;
        };
      }
    });
    
    // src/core/watchman.ts
    var logger19, requiredCapabilities, Watchman;
    var init_watchman = __esm({
      "src/core/watchman.ts"() {
        "use strict";
        init_logger();
        init_node();
        init_processes();
        init_fileWatcher();
        logger19 = createLogger("core-watchman");
        requiredCapabilities = ["relative_root", "cmd-watch-project", "wildmatch", "field-new"];
        Watchman = class _Watchman {
          constructor(binaryPath, channel, socketPath) {
            this.channel = channel;
            const watchman = require_fb_watchman();
            this.client = new watchman.Client({
              watchmanBinaryPath: binaryPath
            });
            this.client.setMaxListeners(300);
            if (socketPath) {
              let client = this.client;
              let connect5 = client.connect.bind(client);
              client.connect = () => {
                let previous = process.env.WATCHMAN_SOCK;
                process.env.WATCHMAN_SOCK = socketPath;
                try {
                  connect5();
                } finally {
                  if (previous == null) delete process.env.WATCHMAN_SOCK;
                  else process.env.WATCHMAN_SOCK = previous;
                }
              };
            }
            this.client.on("error", (error) => {
              logger19.error("Watchman client error", error);
              this.appendOutput(`Watchman client error: ${error}`, "Error");
              this.dispose();
            });
          }
          channel;
          client;
          relative_path;
          _listeners = [];
          _root;
          subscription;
          supportsRenameId = false;
          get root() {
            return this._root;
          }
          checkCapability() {
            let { client } = this;
            return new Promise((resolve) => {
              client.capabilityCheck({
                optional: [],
                required: requiredCapabilities
              }, (error, resp) => {
                if (error) return resolve(false);
                let { capabilities } = resp;
                for (let key of Object.keys(capabilities)) {
                  if (!capabilities[key]) return resolve(false);
                }
                resolve(true);
              });
            });
          }
          async watchProject(root) {
            this._root = root;
            let resp = await this.command(["watch-project", root]);
            let { watch, warning, relative_path } = resp;
            if (!watch) return false;
            if (warning) {
              logger19.warn(warning);
              this.appendOutput(warning, "Warning");
            }
            this.relative_path = relative_path;
            logger19.info(`watchman watching project: ${root}`);
            this.appendOutput(`watchman watching project: ${root}`);
            let { clock } = await this.command(["clock", watch]);
            let sub = {
              expression: ["allof", ["type", "f", "wholename"]],
              fields: ["name", "size", "new", "exists", "type", "mtime_ms", "ctime_ms"],
              since: clock
            };
            if (relative_path) {
              sub.relative_root = relative_path;
              root = path.join(watch, relative_path);
            }
            let uid = crypto.randomUUID();
            let { subscribe } = await this.command(["subscribe", watch, uid, sub]);
            this.subscription = subscribe;
            this.appendOutput(`subscribing events in ${root}`);
            this.client.on("subscription", (resp2) => {
              if (!resp2 || resp2.subscription != uid || !resp2.files) return;
              for (let listener of this._listeners) {
                listener(resp2);
              }
            });
            return true;
          }
          command(args) {
            return new Promise((resolve, reject) => {
              this.client.command(args, (error, resp) => {
                if (error) return reject(error);
                resolve(resp);
              });
            });
          }
          subscribe(globPattern, cb) {
            let filterChanges = createChangeFilter(globPattern);
            let fn = (change) => {
              let ev = filterChanges(change);
              if (!ev) return;
              if (this.relative_path) ev.root = path.resolve(change.root, this.relative_path);
              this.appendOutput(`file change of "${globPattern}" detected: ${JSON.stringify(ev, null, 2)}`);
              cb(ev);
            };
            this._listeners.push(fn);
            return {
              dispose: () => {
                let idx = this._listeners.indexOf(fn);
                if (idx !== -1) this._listeners.splice(idx, 1);
              }
            };
          }
          dispose() {
            if (this.client) {
              this.client.end();
              this.client = void 0;
            }
          }
          appendOutput(message, type = "Info") {
            if (this.channel) {
              this.channel.appendLine(`[${type}  - ${(/* @__PURE__ */ new Date()).toLocaleTimeString()}] ${message}`);
            }
          }
          static async createClient(binaryPath, root, channel) {
            let watchman;
            try {
              let socketPath;
              if (!process.env.WATCHMAN_SOCK) {
                try {
                  let { stdout, stderr } = await execWithTimeout(binaryPath, ["--no-pretty", "get-sockname"], { windowsHide: true });
                  if (stderr) channel?.appendLine(`Watchman get-sockname stderr: ${stderr}`);
                  let value = JSON.parse(stdout);
                  if (typeof value !== "object" || value == null || typeof value.sockname !== "string" || value.sockname.length === 0) {
                    throw new Error(`Invalid Watchman socket response: ${stdout}`);
                  }
                  socketPath = value.sockname;
                } catch (error) {
                  let stderr = error.stderr;
                  if (stderr) channel?.appendLine(`Watchman get-sockname stderr: ${stderr}`);
                  channel?.appendLine(`Watchman get-sockname failed: ${error}`);
                  throw error;
                }
              }
              if (socketPath) channel?.appendLine(`Watchman socket: ${socketPath}`);
              else channel?.appendLine(`Watchman socket from WATCHMAN_SOCK: ${process.env.WATCHMAN_SOCK}`);
              watchman = new _Watchman(binaryPath, channel, socketPath);
              let valid = await watchman.checkCapability();
              if (!valid) throw new Error("required capabilities do not exist.");
              let watching = await watchman.watchProject(root);
              if (!watching) throw new Error("unable to watch");
              return watchman;
            } catch (e2) {
              if (watchman) watchman.dispose();
              throw e2;
            }
          }
        };
      }
    });
    
    // src/core/fileSystemWatcher.ts
    var logger20, WATCHMAN_COMMAND, FileSystemWatcherManager, FileSystemWatcher;
    var init_fileSystemWatcher = __esm({
      "src/core/fileSystemWatcher.ts"() {
        "use strict";
        init_esm();
        init_logger();
        init_util();
        init_array();
        init_errors();
        init_fs();
        init_node();
        init_protocol();
        init_nativeWatcher();
        init_watchman();
        logger20 = createLogger("fileSystemWatcher");
        WATCHMAN_COMMAND = "watchman";
        FileSystemWatcherManager = class _FileSystemWatcherManager {
          constructor(workspaceFolder, config) {
            this.workspaceFolder = workspaceFolder;
            this.config = config;
            this.disabled = config.enable === false || false || isTester;
          }
          workspaceFolder;
          config;
          clientsMap = /* @__PURE__ */ new Map();
          disposables = [];
          channel;
          creating = /* @__PURE__ */ new Map();
          tokenSourcesMap = /* @__PURE__ */ new Map();
          gitClients = /* @__PURE__ */ new Map();
          disposed = false;
          static watchers = /* @__PURE__ */ new Set();
          _onDidCreateClient = new import_node4.Emitter();
          disabled;
          onDidCreateClient = this._onDidCreateClient.event;
          attach(channel) {
            this.channel = channel;
            let createClient = (folder) => {
              let root = u.parse(folder.uri).fsPath;
              void this.createClient(root);
            };
            this.workspaceFolder.workspaceFolders.forEach((folder) => {
              createClient(folder);
            });
            this.workspaceFolder.onDidChangeWorkspaceFolders((e2) => {
              e2.added.forEach((folder) => {
                createClient(folder);
              });
              e2.removed.forEach((folder) => {
                let root = normalizeFilePath(u.parse(folder.uri).fsPath);
                this.creating.delete(root);
                let tokenSource = this.tokenSourcesMap.get(root);
                if (tokenSource) {
                  this.tokenSourcesMap.delete(root);
                  tokenSource.cancel();
                  tokenSource.dispose();
                }
                let client = this.clientsMap.get(root);
                if (client) {
                  this.clientsMap.delete(root);
                  client.dispose();
                }
              });
            }, null, this.disposables);
          }
          waitClient(root) {
            root = normalizeFilePath(root);
            if (this.clientsMap.has(root)) return Promise.resolve(this.clientsMap.get(root));
            let pending = this.creating.get(root);
            if (pending) return pending;
            return new Promise((resolve) => {
              let disposable = this.onDidCreateClient((r2) => {
                if (r2 == root) {
                  disposable.dispose();
                  resolve(this.clientsMap.get(r2));
                }
              });
            });
          }
          async createClient(root, skipCheck = false) {
            root = normalizeFilePath(root);
            if (this.disposed) return false;
            if (!skipCheck && (this.disabled || isFolderIgnored(root, this.config.ignoredFolders))) return;
            if (this.has(root)) return this.waitClient(root);
            let pending = this.creating.get(root);
            if (pending) return pending;
            let p2 = this.createClientInner(root);
            this.creating.set(root, p2);
            return p2.finally(() => {
              if (this.creating.get(root) === p2) this.creating.delete(root);
            });
          }
          async createClientInner(root) {
            let tokenSource = new import_node4.CancellationTokenSource();
            let token = tokenSource.token;
            this.tokenSourcesMap.set(root, tokenSource);
            try {
              let client;
              let backends = this.config.watchmanPath ? ["watchman", "native"] : ["native", "watchman"];
              for (let backend of backends) {
                if (token.isCancellationRequested) return false;
                try {
                  this.channel?.appendLine(`Trying ${backend} watcher for ${root}`);
                  if (backend === "native") {
                    client = await NativeWatcher.createClient(root, this.channel, token, this.config.ignoredFolders);
                  } else {
                    let watchmanPath = await this.getWatchmanPath();
                    this.channel?.appendLine(`Watchman executable: ${watchmanPath}`);
                    if (token.isCancellationRequested) return false;
                    client = await Watchman.createClient(watchmanPath, root, this.channel);
                  }
                  this.channel?.appendLine(`Using ${backend} watcher for ${root}`);
                  break;
                } catch (error) {
                  this.channel?.appendLine(`Unable to use ${backend} watcher for ${root}: ${error}`);
                }
              }
              if (token.isCancellationRequested) {
                client?.dispose();
                return false;
              }
              if (!client) {
                this.channel?.appendLine(`No file watcher backend available for ${root}`);
                return false;
              }
              this.clientsMap.set(root, client);
              for (let watcher of _FileSystemWatcherManager.watchers) {
                watcher.listen(root, client);
              }
              this._onDidCreateClient.fire(root);
              return client;
            } catch (e2) {
              if (this.channel) this.channel.appendLine(`Error on create file watcher client: ${e2}`);
              return false;
            } finally {
              if (this.tokenSourcesMap.get(root) === tokenSource) this.tokenSourcesMap.delete(root);
              tokenSource.dispose();
            }
          }
          async getWatchmanPath() {
            let watchmanPath = this.config.watchmanPath || WATCHMAN_COMMAND;
            if (!process.env.WATCHMAN_SOCK) {
              watchmanPath = await which(watchmanPath, { all: false });
            }
            return watchmanPath;
          }
          has(root) {
            let curr = Array.from(this.clientsMap.keys());
            curr.push(...this.creating.keys());
            return curr.some((r2) => sameFile(r2, root));
          }
          createFileSystemWatcher(globPattern, options3 = false, ignoreChangeEvents = false, ignoreDeleteEvents = false) {
            let opts = typeof options3 === "boolean" ? { ignoreCreateEvents: options3, ignoreChangeEvents, ignoreDeleteEvents } : options3;
            let fileWatcher = new FileSystemWatcher(globPattern, opts.ignoreCreateEvents ?? false, opts.ignoreChangeEvents ?? false, opts.ignoreDeleteEvents ?? false, opts.includeDirectories ?? false);
            let base = typeof globPattern === "string" ? void 0 : globPattern.baseUri.fsPath;
            for (let [root, client] of this.clientsMap.entries()) {
              if (base && isParentFolder(root, base, true)) {
                base = void 0;
              }
              fileWatcher.listen(root, client);
            }
            if (base) void this.createClient(base);
            _FileSystemWatcherManager.watchers.add(fileWatcher);
            return fileWatcher;
          }
          /** Share a restricted native watcher for an absolute Git metadata directory. */
          createGitFileSystemWatcher(gitDir) {
            if (!path.isAbsolute(gitDir)) throw new Error(`Git metadata directory must be absolute: ${gitDir}`);
            let root = normalizeFilePath(path.resolve(gitDir));
            let watcher = new FileSystemWatcher("{HEAD,index,packed-refs,config,shallow,refs/**}", false, false, false, false);
            if (this.disposed || this.disabled) return watcher;
            let gitClient = this.gitClients.get(root);
            if (!gitClient) {
              let tokenSource = new import_node4.CancellationTokenSource();
              let token = tokenSource.token;
              gitClient = { watchers: /* @__PURE__ */ new Set([watcher]), token };
              this.gitClients.set(root, gitClient);
              this.tokenSourcesMap.set("git:" + root, tokenSource);
              let creating = NativeWatcher.createClient(root, this.channel, token, [], createGitNativeOptions()).then((client) => {
                if (token.isCancellationRequested) {
                  client.dispose();
                  return;
                }
                gitClient.client = client;
                for (let item of gitClient.watchers) {
                  item.listen(root, client);
                }
              }).catch((error) => {
                if (this.gitClients.get(root) === gitClient) this.gitClients.delete(root);
                if (this.tokenSourcesMap.get("git:" + root) === tokenSource) this.tokenSourcesMap.delete("git:" + root);
                tokenSource.dispose();
                if (!isCancellationError(error)) {
                  this.channel?.appendLine(`Unable to use native Git metadata watcher for ${root}: ${error}`);
                }
              }).finally(() => {
                gitClient.creating = void 0;
              });
              gitClient.creating = creating;
            } else {
              gitClient.watchers.add(watcher);
              if (gitClient.client) {
                watcher.listen(root, gitClient.client);
              }
            }
            watcher.onDidDispose(() => {
              gitClient.watchers.delete(watcher);
              if (gitClient.watchers.size !== 0 || this.gitClients.get(root) !== gitClient) return;
              this.gitClients.delete(root);
              let tokenSource = this.tokenSourcesMap.get("git:" + root);
              if (tokenSource) {
                this.tokenSourcesMap.delete("git:" + root);
                tokenSource.cancel();
                tokenSource.dispose();
              }
              gitClient.client?.dispose();
            });
            return watcher;
          }
          dispose() {
            this.disposed = true;
            this._onDidCreateClient.dispose();
            for (let tokenSource of this.tokenSourcesMap.values()) {
              tokenSource.cancel();
              tokenSource.dispose();
            }
            this.tokenSourcesMap.clear();
            for (let client of this.clientsMap.values()) {
              if (client) client.dispose();
            }
            this.clientsMap.clear();
            for (let entry of this.gitClients.values()) {
              entry.client?.dispose();
            }
            this.gitClients.clear();
            _FileSystemWatcherManager.watchers.clear();
            disposeAll(this.disposables);
          }
        };
        FileSystemWatcher = class {
          constructor(globPattern, ignoreCreateEvents, ignoreChangeEvents, ignoreDeleteEvents, includeDirectories = false) {
            this.globPattern = globPattern;
            this.ignoreCreateEvents = ignoreCreateEvents;
            this.ignoreChangeEvents = ignoreChangeEvents;
            this.ignoreDeleteEvents = ignoreDeleteEvents;
            this.includeDirectories = includeDirectories;
          }
          globPattern;
          ignoreCreateEvents;
          ignoreChangeEvents;
          ignoreDeleteEvents;
          includeDirectories;
          _onDidCreate = new import_node4.Emitter();
          _onDidChange = new import_node4.Emitter();
          _onDidDelete = new import_node4.Emitter();
          _onDidRename = new import_node4.Emitter();
          disposables = [];
          subscribe;
          onDidCreate = this._onDidCreate.event;
          onDidChange = this._onDidChange.event;
          onDidDelete = this._onDidDelete.event;
          onDidRename = this._onDidRename.event;
          _onDidListen = new import_node4.Emitter();
          onDidListen = this._onDidListen.event;
          _onDidDispose = new import_node4.Emitter();
          onDidDispose = this._onDidDispose.event;
          disposed = false;
          listen(root, client) {
            if (this.disposed) return;
            let {
              globPattern,
              ignoreCreateEvents,
              ignoreChangeEvents,
              ignoreDeleteEvents
            } = this;
            let pattern;
            let basePath;
            if (typeof globPattern === "string") {
              pattern = globPattern;
            } else {
              pattern = globPattern.pattern;
              basePath = globPattern.baseUri.fsPath;
              if (!isParentFolder(root, basePath, true)) return;
            }
            const onChange = (change) => {
              let { root: root2 } = change;
              let renames = /* @__PURE__ */ new Set();
              let fireRename = (oldPath, newPath) => {
                let key = `${oldPath}\0${newPath}`;
                if (renames.has(key)) return;
                renames.add(key);
                this._onDidRename.fire({ oldUri: u.file(oldPath), newUri: u.file(newPath) });
              };
              let matches = (name2) => {
                if (!basePath) return true;
                let fullpath = path.join(root2, name2);
                if (!sameFile(root2, basePath)) {
                  if (!isParentFolder(basePath, fullpath)) return false;
                  return minimatch(path.relative(basePath, fullpath), pattern, { dot: true });
                }
                return minimatch(name2, pattern, { dot: true });
              };
              let files = change.files.filter((file) => (file.type === "f" || this.includeDirectories && file.type === "d") && matches(file.name));
              for (let file of files) {
                let uri = u.file(path.join(root2, file.name));
                if (!file.exists) {
                  if (!ignoreDeleteEvents) this._onDidDelete.fire(uri);
                } else {
                  if (file.new === true) {
                    if (!ignoreCreateEvents) this._onDidCreate.fire(uri);
                  } else {
                    if (!ignoreChangeEvents) this._onDidChange.fire(uri);
                  }
                }
              }
              if (client.supportsRenameId) {
                let renamePairs = /* @__PURE__ */ new Map();
                for (let file of files) {
                  if (!file.renameId) continue;
                  let pair2 = renamePairs.get(file.renameId) ?? {};
                  if (file.exists) pair2.newFile = file;
                  else pair2.oldFile = file;
                  renamePairs.set(file.renameId, pair2);
                }
                for (let pair2 of renamePairs.values()) {
                  if (pair2.oldFile && pair2.newFile) {
                    fireRename(path.join(root2, pair2.oldFile.name), path.join(root2, pair2.newFile.name));
                  }
                }
                return;
              }
              if (files.length == 2 && files[0].exists !== files[1].exists) {
                let oldFile = files.find((o2) => o2.exists !== true);
                let newFile = files.find((o2) => o2.exists === true);
                if (oldFile.size != null && newFile.size != null && oldFile.mtime_ms != null && newFile.mtime_ms != null && oldFile.size == newFile.size && oldFile.mtime_ms == newFile.mtime_ms) {
                  fireRename(path.join(root2, oldFile.name), path.join(root2, newFile.name));
                }
              }
              if (files.length > 2 && files.length % 2 == 0) {
                let [oldFiles, newFiles] = splitArray(files, (o2) => o2.exists === false);
                if (oldFiles.length == newFiles.length) {
                  let candidates = /* @__PURE__ */ new Map();
                  for (let newFile of newFiles) {
                    if (newFile.size == null || newFile.mtime_ms == null) continue;
                    let key = `${newFile.size}\0${newFile.mtime_ms}`;
                    let items = candidates.get(key);
                    if (items) items.push(newFile);
                    else candidates.set(key, [newFile]);
                  }
                  for (let oldFile of oldFiles) {
                    if (oldFile.size == null || oldFile.mtime_ms == null) continue;
                    let newFile = candidates.get(`${oldFile.size}\0${oldFile.mtime_ms}`)?.shift();
                    if (newFile) {
                      fireRename(path.join(root2, oldFile.name), path.join(root2, newFile.name));
                    }
                  }
                }
              }
            };
            this.subscribe = client.subscription;
            let disposable = client.subscribe(basePath ? "**/*" : pattern, onChange, this.includeDirectories);
            this.disposables.push(disposable);
            this._onDidListen.fire();
          }
          dispose() {
            if (this.disposed) return;
            this.disposed = true;
            this._onDidDispose.fire();
            FileSystemWatcherManager.watchers.delete(this);
            this._onDidRename.dispose();
            this._onDidCreate.dispose();
            this._onDidChange.dispose();
            this._onDidDelete.dispose();
            this._onDidListen.dispose();
            disposeAll(this.disposables);
          }
        };
      }
    });
    
    // src/model/highlighter.ts
    var Highlighter;
    var init_highlighter = __esm({
      "src/model/highlighter.ts"() {
        "use strict";
        init_ansiparse();
        init_string();
        Highlighter = class {
          lines = [];
          _highlights = [];
          addLine(line, hlGroup) {
            if (line.includes("\n")) {
              for (let content of line.split(/\r?\n/)) {
                this.addLine(content, hlGroup);
              }
              return;
            }
            if (hlGroup) {
              this._highlights.push({
                lnum: this.lines.length,
                colStart: line.match(/^\s*/)[0].length,
                colEnd: byteLength(line),
                hlGroup
              });
            }
            if (line.includes("\x1B")) {
              let res = parseAnsiHighlights(line);
              for (let hl of res.highlights) {
                let { span, hlGroup: hlGroup2 } = hl;
                this._highlights.push({
                  lnum: this.lines.length,
                  colStart: span[0],
                  colEnd: span[1],
                  hlGroup: hlGroup2
                });
              }
              this.lines.push(res.line);
            } else {
              this.lines.push(line);
            }
          }
          addLines(lines) {
            this.lines.push(...lines);
          }
          /**
           * Add texts to new Lines
           */
          addTexts(items) {
            let len = this.lines.length;
            let text = "";
            for (let item of items) {
              let colStart = byteLength(text);
              if (item.hlGroup) {
                this._highlights.push({
                  lnum: len,
                  colStart,
                  colEnd: colStart + byteLength(item.text),
                  hlGroup: item.hlGroup
                });
              }
              text += item.text;
            }
            this.lines.push(text);
          }
          addText(text, hlGroup) {
            if (!text) return;
            let { lines } = this;
            let pre = lines[lines.length - 1] || "";
            if (text.includes("\n")) {
              let parts = text.split("\n");
              this.addText(parts[0], hlGroup);
              for (let line of parts.slice(1)) {
                this.addLine(line, hlGroup);
              }
              return;
            }
            if (hlGroup) {
              let colStart = byteLength(pre);
              this._highlights.push({
                lnum: lines.length ? lines.length - 1 : 0,
                colStart,
                colEnd: colStart + byteLength(text),
                hlGroup
              });
            }
            if (lines.length) {
              lines[lines.length - 1] = `${pre}${text}`;
            } else {
              lines.push(text);
            }
          }
          get length() {
            return this.lines.length;
          }
          getline(line) {
            return this.lines[line] || "";
          }
          get highlights() {
            return this._highlights;
          }
          get content() {
            return this.lines.join("\n");
          }
          // default to replace
          render(buffer, start = 0, end = -1) {
            buffer.setLines(this.lines, { start, end, strictIndexing: false }, true);
            for (let item of this._highlights) {
              void buffer.addHighlight({
                hlGroup: item.hlGroup,
                colStart: item.colStart,
                colEnd: item.colEnd,
                line: start + item.lnum,
                srcId: -1
              });
            }
          }
        };
      }
    });
    
    // src/model/editInspect.ts
    function getOriginalLine(item, change) {
      if (typeof item.lnum !== "number") return void 0;
      let lnum = item.lnum;
      if (change) {
        let edits = change.edits.map((o2) => SnippetTextEdit.is(o2) ? { range: o2.range, newText: o2.snippet.value } : o2);
        edits = mergeSortEdits(edits);
        let pos = getPositionFromEdits(Position.create(lnum - 1, 0), edits);
        lnum = pos.line + 1;
      }
      return lnum;
    }
    function grouByAnnotation(changes, annotations) {
      let map = /* @__PURE__ */ new Map();
      for (let change of changes) {
        let id2 = getAnnotationKey(change) ?? null;
        let key = id2 ? annotations[id2]?.label : null;
        let arr = map.get(key);
        if (arr) {
          arr.push(change);
        } else {
          map.set(key, [change]);
        }
      }
      return map;
    }
    var global_id, EditInspect;
    var init_editInspect = __esm({
      "src/model/editInspect.ts"() {
        "use strict";
        init_main();
        init_esm();
        init_events();
        init_util();
        init_array();
        init_fs();
        init_node();
        init_textedit();
        init_highlighter();
        global_id = 0;
        EditInspect = class {
          constructor(nvim, keymaps) {
            this.nvim = nvim;
            this.keymaps = keymaps;
            events_default.on("BufUnload", (bufnr) => {
              if (bufnr == this.bufnr) this.dispose();
            }, null, this.disposables);
          }
          nvim;
          keymaps;
          disposables = [];
          bufnr;
          items = [];
          renameMap = /* @__PURE__ */ new Map();
          addFile(filepath, highlighter, lnum) {
            this.items.push({
              index: highlighter.length,
              filepath,
              lnum
            });
          }
          async show(state) {
            let { nvim } = this;
            let id2 = global_id++;
            nvim.pauseNotification();
            nvim.command(`tabe +setl\\ buftype=nofile CocWorkspaceEdit${id2}`, true);
            nvim.command(`setl bufhidden=wipe nolist`, true);
            nvim.command("setl nobuflisted wrap undolevels=-1 filetype=cocedits noswapfile", true);
            await nvim.resumeNotification(true);
            let buffer = await nvim.buffer;
            let cwd2 = await nvim.call("getcwd");
            this.bufnr = buffer.id;
            const relpath = (uri) => {
              let fsPath2 = u.parse(uri).fsPath;
              return isParentFolder(cwd2, fsPath2, true) ? path.relative(cwd2, fsPath2) : fsPath2;
            };
            const absPath = (filepath) => {
              return path.isAbsolute(filepath) ? filepath : path.join(cwd2, filepath);
            };
            let highlighter = new Highlighter();
            let changes = toArray(state.edit.documentChanges);
            let map = grouByAnnotation(changes, state.edit.changeAnnotations ?? {});
            for (let [label, changes2] of map.entries()) {
              if (label) {
                highlighter.addLine(label, "MoreMsg");
                highlighter.addLine("");
              }
              for (let change of changes2) {
                if (TextDocumentEdit.is(change)) {
                  let linesChange = state.changes[change.textDocument.uri];
                  let fsPath2 = relpath(change.textDocument.uri);
                  highlighter.addTexts([
                    { text: "Change", hlGroup: "Title" },
                    { text: " " },
                    { text: fsPath2, hlGroup: "Directory" },
                    { text: `:${linesChange.lnum}`, hlGroup: "LineNr" }
                  ]);
                  this.addFile(fsPath2, highlighter, linesChange.lnum);
                  highlighter.addLine("");
                  this.addChangedLines(highlighter, linesChange, fsPath2, linesChange.lnum);
                  highlighter.addLine("");
                } else if (CreateFile.is(change) || DeleteFile.is(change)) {
                  let title = DeleteFile.is(change) ? "Delete" : "Create";
                  let fsPath2 = relpath(change.uri);
                  highlighter.addTexts([
                    { text: title, hlGroup: "Title" },
                    { text: " " },
                    { text: fsPath2, hlGroup: "Directory" }
                  ]);
                  this.addFile(fsPath2, highlighter);
                  highlighter.addLine("");
                } else if (RenameFile.is(change)) {
                  let oldPath = relpath(change.oldUri);
                  let newPath = relpath(change.newUri);
                  highlighter.addTexts([
                    { text: "Rename", hlGroup: "Title" },
                    { text: " " },
                    { text: oldPath, hlGroup: "Directory" },
                    { text: "->", hlGroup: "Comment" },
                    { text: newPath, hlGroup: "Directory" }
                  ]);
                  this.renameMap.set(oldPath, newPath);
                  this.addFile(newPath, highlighter);
                  highlighter.addLine("");
                }
              }
            }
            nvim.pauseNotification();
            highlighter.render(buffer);
            buffer.setOption("modifiable", false, true);
            await nvim.resumeNotification(true);
            this.disposables.push(this.keymaps.registerLocalKeymap(buffer.id, "n", "", async () => {
              let lnum = await nvim.call("line", ".");
              let col = await nvim.call("col", ".");
              let find;
              for (let i2 = this.items.length - 1; i2 >= 0; i2--) {
                let item = this.items[i2];
                if (lnum >= item.index) {
                  find = item;
                  break;
                }
              }
              if (!find) return;
              let uri = u.file(absPath(find.filepath)).toString();
              let filepath = this.renameMap.has(find.filepath) ? this.renameMap.get(find.filepath) : find.filepath;
              await nvim.call("coc#util#open_file", ["tab drop", absPath(filepath)]);
              let documentChanges = toArray(state.edit.documentChanges);
              let change = documentChanges.find((o2) => TextDocumentEdit.is(o2) && o2.textDocument.uri == uri);
              let originLine = getOriginalLine(find, change);
              if (originLine !== void 0) await nvim.call("cursor", [originLine, col]);
              nvim.redrawVim();
            }, true));
            this.disposables.push(this.keymaps.registerLocalKeymap(buffer.id, "n", "", async () => {
              nvim.command("bwipeout!", true);
            }, true));
          }
          addChangedLines(highlighter, linesChange, fsPath2, lnum) {
            let diffs = fastDiff(linesChange.oldLines.join("\n"), linesChange.newLines.join("\n"));
            for (let i2 = 0; i2 < diffs.length; i2++) {
              let diff = diffs[i2];
              if (diff[0] == fastDiff.EQUAL) {
                let text = diff[1];
                if (!text.includes("\n")) {
                  highlighter.addText(text);
                } else {
                  let parts = text.split("\n");
                  highlighter.addText(parts[0]);
                  let curr = lnum + parts.length - 1;
                  highlighter.addLine("");
                  highlighter.addTexts([
                    { text: "Change", hlGroup: "Title" },
                    { text: " " },
                    { text: fsPath2, hlGroup: "Directory" },
                    { text: `:${curr}`, hlGroup: "LineNr" }
                  ]);
                  this.addFile(fsPath2, highlighter, curr);
                  highlighter.addLine("");
                  let last = parts[parts.length - 1];
                  highlighter.addText(last);
                }
                lnum += text.split("\n").length - 1;
              } else if (diff[0] == fastDiff.DELETE) {
                lnum += diff[1].split("\n").length - 1;
                highlighter.addText(diff[1], "DiffDelete");
              } else {
                highlighter.addText(diff[1], "DiffAdd");
              }
            }
          }
          dispose() {
            disposeAll(this.disposables);
          }
        };
      }
    });
    
    // src/snippets/string.ts
    var SnippetString;
    var init_string2 = __esm({
      "src/snippets/string.ts"() {
        "use strict";
        SnippetString = class _SnippetString {
          /**
           * @internal
           */
          static isSnippetString(thing) {
            if (thing instanceof _SnippetString) {
              return true;
            }
            if (!thing) {
              return false;
            }
            return typeof thing.value === "string";
          }
          static _escape(value) {
            return value.replace(/\$|}|\\/g, "\\$&");
          }
          _tabstop = 1;
          value;
          constructor(value) {
            this.value = value || "";
          }
          appendText(str) {
            this.value += _SnippetString._escape(str);
            return this;
          }
          appendTabstop(num = this._tabstop++) {
            this.value += "$";
            this.value += num;
            return this;
          }
          appendPlaceholder(value, num = this._tabstop++) {
            if (typeof value === "function") {
              const nested = new _SnippetString();
              nested._tabstop = this._tabstop;
              value(nested);
              this._tabstop = nested._tabstop;
              value = nested.value;
            } else {
              value = _SnippetString._escape(value);
            }
            this.value += "${";
            this.value += num;
            this.value += ":";
            this.value += value;
            this.value += "}";
            return this;
          }
          appendChoice(values, num = this._tabstop++) {
            const value = values.map((s2) => s2.replaceAll(/[|\\,]/g, "\\$&")).join(",");
            this.value += "${";
            this.value += num;
            this.value += "|";
            this.value += value;
            this.value += "|}";
            return this;
          }
          appendVariable(name2, defaultValue2) {
            if (typeof defaultValue2 === "function") {
              const nested = new _SnippetString();
              nested._tabstop = this._tabstop;
              defaultValue2(nested);
              this._tabstop = nested._tabstop;
              defaultValue2 = nested.value;
            } else if (typeof defaultValue2 === "string") {
              defaultValue2 = defaultValue2.replace(/\$|}/g, "\\$&");
            }
            this.value += "${";
            this.value += name2;
            if (defaultValue2) {
              this.value += ":";
              this.value += defaultValue2;
            }
            this.value += "}";
            return this;
          }
        };
      }
    });
    
    // src/core/files.ts
    function fileMatch(root, relpath, pattern) {
      let filepath = path.join(root, relpath);
      if (typeof pattern !== "string") {
        let base = pattern.baseUri.fsPath;
        if (!isParentFolder(base, filepath)) return false;
        let rp = path.relative(base, filepath);
        return minimatch(rp, pattern.pattern, { dot: true });
      }
      return minimatch(relpath, pattern, { dot: true });
    }
    function fsPath(uri) {
      return uriToFsPath(uri);
    }
    var import_async_hooks, logger21, Files;
    var init_files = __esm({
      "src/core/files.ts"() {
        "use strict";
        import_async_hooks = require("async_hooks");
        init_main();
        init_esm();
        init_commands();
        init_events();
        init_logger();
        init_editInspect();
        init_string2();
        init_errors();
        init_fs();
        init_node();
        init_mutex();
        init_object();
        init_protocol();
        init_string();
        init_textedit();
        logger21 = createLogger("core-files");
        Files = class {
          constructor(documents, configurations, workspaceFolderControl, keymaps) {
            this.documents = documents;
            this.configurations = configurations;
            this.workspaceFolderControl = workspaceFolderControl;
            this.keymaps = keymaps;
          }
          documents;
          configurations;
          workspaceFolderControl;
          keymaps;
          participantContext = new import_async_hooks.AsyncLocalStorage();
          fileOperationEvents = /* @__PURE__ */ new WeakMap();
          nvim;
          env;
          window;
          editState;
          recoveryFolders = /* @__PURE__ */ new WeakMap();
          deletedFilesFolder;
          _onDidCreateFiles = new import_node4.Emitter();
          _onDidRenameFiles = new import_node4.Emitter();
          _onDidDeleteFiles = new import_node4.Emitter();
          _onWillCreateFiles = new import_node4.Emitter();
          _onWillRenameFiles = new import_node4.Emitter();
          _onWillDeleteFiles = new import_node4.Emitter();
          onDidCreateFiles = this._onDidCreateFiles.event;
          onDidRenameFiles = this._onDidRenameFiles.event;
          onDidDeleteFiles = this._onDidDeleteFiles.event;
          onWillCreateFiles = this.willFileEvent(this._onWillCreateFiles);
          onWillRenameFiles = this.willFileEvent(this._onWillRenameFiles);
          onWillDeleteFiles = this.willFileEvent(this._onWillDeleteFiles);
          willFileEvent(emitter) {
            return (listener, thisArgs, disposables) => emitter.event((event) => {
              const operation = this.fileOperationEvents.get(event);
              if (!operation) return listener.call(thisArgs, event);
              const participant = {
                operation,
                active: true,
                enrolled: false,
                waits: 0
              };
              participant.operation.participants.push(participant);
              try {
                this.participantContext.run(participant, () => listener.call(thisArgs, event));
              } finally {
                if (participant.waits === 0) participant.active = false;
              }
            }, void 0, disposables);
          }
          /**
           * Apply edits owned by a local will-file participant without reacquiring the
           * workspace lock. Unrelated callers have no participant context.
           */
          applyParticipantEdit(edit2, fallback) {
            const participant = this.participantContext.getStore();
            if (!participant) return void 0;
            return Promise.resolve().then(() => participant.enrolled ? this.applyEventEdit(edit2, participant) : this.participantContext.exit(fallback));
          }
          applyEventEdit(edit2, participant) {
            return participant.operation.mutex.use(() => {
              if (!participant.active) return Promise.resolve(false);
              return this.participantContext.exit(() => this.applyEdit(edit2, participant.operation.recovers));
            });
          }
          attach(nvim, env, window2) {
            this.nvim = nvim;
            this.env = env;
            this.window = window2;
          }
          async openTextDocument(uri) {
            uri = typeof uri === "string" ? u.file(uri) : uri;
            let doc = this.documents.getDocument(uri.toString());
            if (doc) return doc;
            const scheme = uri.scheme;
            if (scheme == "file") {
              if (!fs.existsSync(uri.fsPath)) throw fileNotExists(uri.fsPath);
              fs.accessSync(uri.fsPath, fs.constants.R_OK);
            }
            if (scheme == "untitled") {
              await this.nvim.call("coc#util#open_file", ["tab drop", uri.path]);
              return await this.documents.document;
            }
            return await this.loadResource(uri.toString(), null);
          }
          async jumpTo(uri, position, openCommand) {
            if (!openCommand) openCommand = this.configurations.initialConfiguration.get("coc.preferences.jumpCommand", "edit");
            let { nvim } = this;
            let u2 = uri instanceof u ? uri : u.parse(uri);
            let doc = this.documents.getDocument(u2.with({ fragment: "" }).toString());
            let bufnr = doc ? doc.bufnr : -1;
            if (!position && u2.scheme === "file" && u2.fragment) {
              let parts = u2.fragment.split(",");
              let lnum = parseInt(parts[0], 10);
              if (!isNaN(lnum)) {
                let col = parts.length > 0 && /^\d+$/.test(parts[1]) ? parseInt(parts[1], 10) : void 0;
                position = Position.create(lnum - 1, col == null ? 0 : col - 1);
              }
            }
            if (bufnr != -1 && openCommand == "edit") {
              nvim.pauseNotification();
              nvim.command(`silent! normal! m'`, true);
              nvim.command(`buffer ${bufnr}`, true);
              nvim.command(`if &filetype ==# '' | filetype detect | endif`, true);
              if (position) {
                let line = doc.getline(position.line);
                let col = byteIndex(line, position.character) + 1;
                nvim.call("cursor", [position.line + 1, col], true);
              }
              await nvim.resumeNotification(true);
            } else {
              let { fsPath: fsPath2, scheme } = u2;
              let pos = position == null ? null : [position.line, position.character];
              if (scheme == "file") {
                let bufname = normalizeFilePath(fsPath2);
                await this.nvim.call("coc#util#jump", [openCommand, bufname, pos]);
              } else {
                await this.nvim.call("coc#util#jump", [openCommand, uri.toString(), pos]);
              }
            }
          }
          /**
           * Open resource by uri
           */
          async openResource(uri) {
            let { nvim } = this;
            let u2 = u.parse(uri);
            if (/^https?/.test(u2.scheme)) {
              await nvim.call("coc#ui#open_url", uri);
              return;
            }
            await this.jumpTo(uri);
            await this.documents.document;
          }
          /**
           * Load uri as document.
           */
          async loadResource(uri, cmd) {
            let doc = this.documents.getDocument(uri);
            if (doc) return doc;
            if (cmd === void 0) {
              const preferences = this.configurations.getConfiguration("workspace");
              cmd = preferences.get("openResourceCommand", "tab drop");
            }
            let u2 = u.parse(uri);
            let bufname = u2.scheme === "file" ? u2.fsPath : uri;
            let bufnr;
            if (cmd) {
              let winid = await this.nvim.call("win_getid");
              bufnr = await this.nvim.call("coc#util#open_file", [cmd, bufname]);
              await this.nvim.call("win_gotoid", [winid]);
            } else {
              let arr = await this.nvim.call("coc#ui#open_files", [[bufname]]);
              bufnr = arr[0];
            }
            return await this.documents.createDocument(bufnr);
          }
          /**
           * Load the files that not loaded
           */
          async loadResources(uris) {
            let { documents } = this;
            let files = uris.map((uri) => {
              let u2 = u.parse(uri);
              return u2.scheme == "file" ? u2.fsPath : uri;
            });
            let bufnrs = await this.nvim.call("coc#ui#open_files", [files]);
            return await Promise.all(bufnrs.map((bufnr) => {
              return documents.createDocument(bufnr);
            }));
          }
          /**
           * Create a file in vim and disk
           */
          async createFile(filepath, opts = {}, recovers) {
            let { nvim } = this;
            let exists = this.pathExists(filepath);
            if (exists && !opts.overwrite && !opts.ignoreIfExists) {
              throw fileExists(filepath);
            }
            if (!exists || opts.overwrite) {
              let tokenSource = new import_node4.CancellationTokenSource();
              try {
                await this.fireWaitUntilEvent(this._onWillCreateFiles, {
                  files: [u.file(filepath)],
                  token: tokenSource.token
                }, recovers);
              } finally {
                tokenSource.cancel();
                tokenSource.dispose();
              }
              let dir = path.dirname(filepath);
              if (!fs.existsSync(dir)) {
                let folder;
                let curr = dir;
                while (![".", "/", path.parse(dir).root].includes(curr)) {
                  if (fs.existsSync(path.dirname(curr))) {
                    folder = curr;
                    break;
                  }
                  curr = path.dirname(curr);
                }
                fs.mkdirSync(dir, { recursive: true });
                if (Array.isArray(recovers)) {
                  recovers.push(() => {
                    fs.rmSync(folder, { force: true, recursive: true });
                  });
                }
              }
              let targetExists = this.pathExists(filepath);
              if (targetExists && opts.overwrite && Array.isArray(recovers)) {
                let backup = path.join(this.getRecoveryFolder(recovers), crypto2.randomUUID());
                fs.copyFileSync(filepath, backup);
                recovers.push(() => {
                  fs.copyFileSync(backup, filepath);
                });
              }
              try {
                fs.writeFileSync(filepath, "", { encoding: "utf8", flag: opts.overwrite ? "w" : "wx" });
              } catch (e2) {
                if (e2.code === "EEXIST" && opts.ignoreIfExists) return;
                if (e2.code === "EEXIST") throw fileExists(filepath);
                throw e2;
              }
              if (!targetExists && Array.isArray(recovers)) {
                recovers.push(() => {
                  fs.rmSync(filepath, { force: true, recursive: true });
                });
              }
              let doc = await this.loadResource(filepath);
              let bufnr = doc.bufnr;
              if (!targetExists && Array.isArray(recovers)) {
                recovers.push(() => {
                  void events_default.fire("BufUnload", [bufnr]);
                  return nvim.command(`silent! bd! ${bufnr}`);
                });
              }
              this._onDidCreateFiles.fire({ files: [u.file(filepath)] });
            }
          }
          /**
           * Create a directory and missing parent directories.
           */
          async createDirectory(filepath) {
            if (this.pathExists(filepath)) throw fileExists(filepath);
            let tokenSource = new import_node4.CancellationTokenSource();
            try {
              await this.fireWaitUntilEvent(this._onWillCreateFiles, {
                files: [u.file(filepath)],
                token: tokenSource.token
              });
            } finally {
              tokenSource.cancel();
              tokenSource.dispose();
            }
            if (this.pathExists(filepath)) throw fileExists(filepath);
            await fs.promises.mkdir(filepath, { recursive: true });
            this._onDidCreateFiles.fire({ files: [u.file(filepath)] });
          }
          /**
           * Copy a file, symbolic link, or directory without replacing the target.
           */
          async copyFile(source, target) {
            let recursive;
            try {
              recursive = fs.lstatSync(source).isDirectory();
            } catch (e2) {
              if (e2.code === "ENOENT") throw fileNotExists(source);
              throw e2;
            }
            if (this.pathExists(target)) throw fileExists(target);
            let tokenSource = new import_node4.CancellationTokenSource();
            try {
              await this.fireWaitUntilEvent(this._onWillCreateFiles, {
                files: [u.file(target)],
                token: tokenSource.token
              });
            } finally {
              tokenSource.cancel();
              tokenSource.dispose();
            }
            if (this.pathExists(target)) throw fileExists(target);
            await fs.promises.cp(source, target, {
              recursive,
              force: false,
              errorOnExist: true,
              mode: fs.constants.COPYFILE_EXCL,
              verbatimSymlinks: true
            });
            this._onDidCreateFiles.fire({ files: [u.file(target)] });
          }
          /**
           * Delete a file or folder from vim and disk.
           */
          async deleteFile(filepath, opts = {}, recovers) {
            let { ignoreIfNotExists, recursive } = opts;
            let stat;
            try {
              stat = await fs.promises.lstat(filepath);
            } catch (e2) {
              if (e2.code !== "ENOENT") throw e2;
              if (!ignoreIfNotExists) throw fileNotExists(filepath);
              return;
            }
            let isDir = stat.isDirectory();
            let uri = u.file(filepath);
            await this.fireWaitUntilEvent(this._onWillDeleteFiles, { files: [uri] }, recovers);
            let bufnr = isDir ? 0 : await this.nvim.call("bufnr", [filepath]);
            if (isDir && !recursive) {
              fs.rmdirSync(filepath);
              if (Array.isArray(recovers)) {
                recovers.push(() => {
                  fs.mkdirSync(filepath);
                });
              }
            } else {
              let folder;
              if (Array.isArray(recovers)) {
                folder = this.getRecoveryFolder(recovers);
              } else {
                folder = this.deletedFilesFolder ??= fs.mkdtempSync(path.join(os.tmpdir(), "coc-delete-"));
              }
              let dest = path.join(folder, crypto2.randomUUID());
              let dir = path.dirname(filepath);
              try {
                renameSync(filepath, dest);
              } catch (e2) {
                if (this.pathExists(dest)) {
                  if (Array.isArray(recovers)) this.recoveryFolders.delete(recovers);
                  else this.deletedFilesFolder = void 0;
                  logger21.error(`Backup preserved at ${folder} after deleting ${filepath} failed:`, e2);
                }
                throw e2;
              }
              if (Array.isArray(recovers)) {
                recovers.push(async () => {
                  try {
                    fs.mkdirSync(dir, { recursive: true });
                    fs.rmSync(filepath, { force: true, recursive: true });
                    renameSync(dest, filepath);
                  } catch (e2) {
                    if (this.pathExists(dest)) {
                      this.recoveryFolders.delete(recovers);
                      logger21.error(`Backup preserved at ${folder} after restoring ${filepath} failed:`, e2);
                    }
                    throw e2;
                  }
                  if (bufnr > 0) await this.loadResource(uri.toString());
                });
              }
            }
            if (bufnr > 0) {
              void events_default.fire("BufUnload", [bufnr]);
              await this.nvim.command(`silent! bwipeout ${bufnr}`);
            }
            this._onDidDeleteFiles.fire({ files: [uri] });
          }
          /**
           * Rename a file or folder on vim and disk
           */
          async renameFile(oldPath, newPath, opts = {}, recovers) {
            let { nvim } = this;
            let { overwrite, ignoreIfExists } = opts;
            if (newPath === oldPath) return;
            let exists = this.pathExists(newPath);
            if (exists && ignoreIfExists && !overwrite) return;
            if (exists && !overwrite) throw fileExists(newPath);
            let oldStat = await statAsync(oldPath);
            let loaded = oldStat && oldStat.isDirectory() ? 0 : await nvim.call("bufloaded", [oldPath]);
            if (!loaded && !oldStat) throw fileNotExists(oldPath);
            let file = { newUri: u.file(newPath), oldUri: u.file(oldPath) };
            if (!opts.skipEvent) await this.fireWaitUntilEvent(this._onWillRenameFiles, { files: [file] }, recovers);
            exists = this.pathExists(newPath);
            if (exists && ignoreIfExists && !overwrite) return;
            if (exists && !overwrite) throw fileExists(newPath);
            if (exists && Array.isArray(recovers)) {
              let backup = path.join(this.getRecoveryFolder(recovers), crypto2.randomUUID());
              fs.cpSync(newPath, backup, { recursive: true, preserveTimestamps: true });
              recovers.push(() => {
                fs.rmSync(newPath, { force: true, recursive: true });
                fs.cpSync(backup, newPath, { recursive: true, preserveTimestamps: true });
              });
            }
            if (loaded) {
              let bufnr = await nvim.call("coc#ui#rename_file", [oldPath, newPath, oldStat != null]);
              await this.documents.onBufCreate(bufnr);
            } else {
              if (oldStat.isDirectory()) {
                for (let doc of this.documents.attached("file")) {
                  let u2 = u.parse(doc.uri);
                  if (isParentFolder(oldPath, u2.fsPath, false)) {
                    let filepath = u2.fsPath.replace(oldPath, newPath);
                    let bufnr = await nvim.call("coc#ui#rename_file", [u2.fsPath, filepath, false]);
                    await this.documents.onBufCreate(bufnr);
                  }
                }
              }
              fs.renameSync(oldPath, newPath);
            }
            if (Array.isArray(recovers)) {
              recovers.push(() => {
                return this.renameFile(newPath, oldPath, { skipEvent: true });
              });
            }
            if (!opts.skipEvent) this._onDidRenameFiles.fire({ files: [file] });
          }
          /**
           * Return denied annotations
           */
          async promptAnnotations(documentChanges, changeAnnotations) {
            let toConfirm = changeAnnotations ? getConfirmAnnotations(documentChanges, changeAnnotations) : [];
            let denied = [];
            for (let key of toConfirm) {
              let annotation = changeAnnotations[key];
              let res = await this.window.showMenuPicker(["Yes", "No"], {
                position: "center",
                title: "Confirm edits",
                content: annotation.label + (annotation.description ? " " + annotation.description : "")
              });
              if (res !== 0) denied.push(key);
            }
            return denied;
          }
          /**
           * Apply WorkspaceEdit.
           */
          async applyEdit(edit2, originRecovers) {
            let documentChanges = toDocumentChanges(edit2);
            const isNested = Array.isArray(originRecovers);
            const recovers = [];
            let currentOnly = false;
            try {
              let denied = await this.promptAnnotations(documentChanges, edit2.changeAnnotations);
              if (denied.length > 0) documentChanges = createFilteredChanges(documentChanges, denied);
              let changes = {};
              let currentUri = await this.documents.getCurrentUri();
              currentOnly = documentChanges.every((o2) => TextDocumentEdit.is(o2) && o2.textDocument.uri === currentUri);
              this.validateChanges(documentChanges);
              for (const change of documentChanges) {
                if (TextDocumentEdit.is(change)) {
                  let { textDocument, edits } = change;
                  let { uri } = textDocument;
                  let doc = await this.loadResource(uri);
                  let revertEdit;
                  if (edits.some((o2) => SnippetTextEdit.is(o2))) {
                    let snippetEdits = mergeSortEdits(edits.map((edit3) => {
                      if (SnippetTextEdit.is(edit3)) {
                        return { range: edit3.range, snippet: edit3.snippet.value };
                      }
                      return { range: edit3.range, snippet: new SnippetString().appendText(edit3.newText).value };
                    }));
                    let oldLines = doc.textDocument.lines;
                    await commands_default.executeCommand("editor.action.insertBufferSnippets", doc.bufnr, snippetEdits, doc.bufnr === events_default.bufnr);
                    let startLine = snippetEdits[0].range.start.line;
                    revertEdit = getRevertEdit(oldLines, doc.textDocument.lines, startLine);
                  } else {
                    revertEdit = await doc.applyEdits(edits, false, uri === currentUri);
                  }
                  if (revertEdit) {
                    let { newText, range: range2 } = revertEdit;
                    let start = range2.start.line;
                    let end = range2.end.line;
                    let lines = doc.getLines(start, end);
                    changes[uri] = {
                      uri,
                      lnum: start + 1,
                      newLines: lines,
                      oldLines: newText.endsWith("\n") ? newText.slice(0, -1).split("\n") : newText.split("\n")
                    };
                    recovers.push(async () => {
                      let doc2 = this.documents.getDocument(uri);
                      if (!doc2 || !doc2.attached || !equals(doc2.getLines(start, end), lines)) return;
                      await doc2.applyEdits([revertEdit]);
                      textDocument.version = doc2.version;
                    });
                  }
                } else if (CreateFile.is(change)) {
                  await this.createFile(fsPath(change.uri), change.options, recovers);
                } else if (DeleteFile.is(change)) {
                  await this.deleteFile(fsPath(change.uri), change.options, recovers);
                } else if (RenameFile.is(change)) {
                  await this.renameFile(fsPath(change.oldUri), fsPath(change.newUri), change.options, recovers);
                }
              }
              if (recovers.length === 0) return true;
              if (isNested) {
                originRecovers.push(...recovers);
              } else {
                this.discardEditState();
                this.editState = { edit: { documentChanges, changeAnnotations: edit2.changeAnnotations }, changes, recovers, applied: true };
              }
              this.nvim.redrawVim();
            } catch (e2) {
              logger21.error("Error on applyEdits:", edit2, e2);
              if (!isNested) void this.window.showErrorMessage(`Error on applyEdits: ${e2}`);
              await this.undoChanges(recovers);
              this.cleanupRecoveryFolder(recovers);
              return false;
            }
            if (isNested || currentOnly) return true;
            void this.window.showInformationMessage(`Use ':wa' to save changes or ':CocCommand workspace.inspectEdit' to inspect.`);
            return true;
          }
          async undoChanges(recovers) {
            while (recovers.length > 0) {
              let fn = recovers.pop();
              await Promise.resolve(fn());
            }
          }
          /** Check whether a path exists, including a symbolic link with no target. */
          pathExists(filepath) {
            try {
              fs.lstatSync(filepath);
              return true;
            } catch (e2) {
              if (e2.code === "ENOENT") return false;
              throw e2;
            }
          }
          getRecoveryFolder(recovers) {
            let folder = this.recoveryFolders.get(recovers);
            if (!folder) {
              folder = fs.mkdtempSync(path.join(os.tmpdir(), "coc-edit-"));
              this.recoveryFolders.set(recovers, folder);
            }
            return folder;
          }
          cleanupRecoveryFolder(recovers) {
            let folder = this.recoveryFolders.get(recovers);
            if (!folder) return;
            this.recoveryFolders.delete(recovers);
            fs.rmSync(folder, { force: true, recursive: true });
          }
          discardEditState() {
            if (!this.editState) return;
            this.cleanupRecoveryFolder(this.editState.recovers);
            this.editState = void 0;
          }
          async inspectEdit() {
            if (!this.editState) {
              void this.window.showWarningMessage("No workspace edit to inspect");
              return;
            }
            let inspect2 = new EditInspect(this.nvim, this.keymaps);
            await inspect2.show(this.editState);
          }
          async undoWorkspaceEdit() {
            let { editState } = this;
            if (!editState || !editState.applied) {
              void this.window.showWarningMessage(`No workspace edit to undo`);
              return;
            }
            editState.applied = false;
            await this.undoChanges(editState.recovers);
            this.cleanupRecoveryFolder(editState.recovers);
          }
          async redoWorkspaceEdit() {
            let { editState } = this;
            if (!editState || editState.applied) {
              void this.window.showWarningMessage(`No workspace edit to redo`);
              return;
            }
            this.discardEditState();
            await this.applyEdit(editState.edit);
          }
          dispose() {
            this.discardEditState();
            if (this.deletedFilesFolder) {
              fs.rmSync(this.deletedFilesFolder, { force: true, recursive: true });
              this.deletedFilesFolder = void 0;
            }
          }
          validateChanges(documentChanges) {
            let { documents } = this;
            for (let change of documentChanges) {
              if (TextDocumentEdit.is(change)) {
                let { uri, version: version2 } = change.textDocument;
                let doc = documents.getDocument(uri);
                if (typeof version2 === "number" && version2 > 0) {
                  if (!doc) throw notLoaded(uri);
                  if (doc.version != version2) throw new Error(`${uri} changed before apply edit`);
                } else if (!doc && !isFile(uri)) {
                  throw badScheme(uri);
                }
              } else if (CreateFile.is(change) || DeleteFile.is(change)) {
                if (!isFile(change.uri)) throw badScheme(change.uri);
              } else if (RenameFile.is(change)) {
                if (!isFile(change.oldUri) || !isFile(change.newUri)) {
                  throw badScheme(change.oldUri);
                }
              }
            }
          }
          async findFiles(include, exclude, maxResults, token) {
            let folders = this.workspaceFolderControl.workspaceFolders;
            if (token?.isCancellationRequested || !folders.length || maxResults === 0) return [];
            maxResults = maxResults ?? Infinity;
            let roots = folders.map((o2) => u.parse(o2.uri).fsPath);
            let pattern;
            if (typeof include !== "string") {
              pattern = include.pattern;
              roots = [include.baseUri.fsPath];
            } else {
              pattern = include;
            }
            let res = [];
            let exceed = false;
            const ac = new AbortController();
            if (token) {
              token.onCancellationRequested(() => {
                if (!ac.signal.aborted) ac.abort();
              });
            }
            for (let root of roots) {
              try {
                let files = await glob.glob(pattern, {
                  signal: ac.signal,
                  dot: true,
                  cwd: root,
                  nodir: true,
                  absolute: false
                });
                if (token?.isCancellationRequested) break;
                for (let file of files) {
                  if (exclude && fileMatch(root, file, exclude)) continue;
                  res.push(u.file(path.join(root, file)));
                  if (res.length === maxResults) {
                    exceed = true;
                    break;
                  }
                }
                if (exceed) break;
              } catch (e2) {
                if (e2["name"] === "AbortError") {
                  break;
                }
              }
            }
            return res;
          }
          async fireWaitUntilEvent(emitter, properties, recovers) {
            let firing = true;
            let promises = [];
            const operation = { recovers, mutex: new Mutex(), participants: [] };
            let operationTimeout = this.configurations.initialConfiguration.get("editor.fileOperationTimeout", 500);
            const event = {
              ...properties,
              waitUntil: (thenable) => {
                if (!firing) throw shouldNotAsync("waitUntil");
                const participant = this.participantContext.getStore();
                participant.enrolled = true;
                participant.waits++;
                let timedOut = false;
                let timer;
                let tp = new Promise((resolve) => {
                  timer = setTimeout(() => {
                    timedOut = true;
                    participant.active = false;
                    resolve(void 0);
                  }, operationTimeout);
                });
                let promise = Promise.race([thenable, tp]).then((edit2) => {
                  clearTimeout(timer);
                  if (timedOut) {
                    logger21.warn(`File operation waitUntil timed out after ${operationTimeout}ms, further participant edits ignored`);
                    return;
                  }
                  if (edit2 && WorkspaceEdit.is(edit2)) {
                    return this.applyEventEdit(edit2, participant);
                  }
                }).finally(() => {
                  clearTimeout(timer);
                  if (--participant.waits === 0) participant.active = false;
                });
                promises.push(promise);
              }
            };
            this.fileOperationEvents.set(event, operation);
            try {
              emitter.fire(event);
              firing = false;
              await Promise.all(promises);
            } finally {
              firing = false;
              this.fileOperationEvents.delete(event);
              for (const participant of operation.participants) participant.active = false;
              await operation.mutex.use(() => Promise.resolve());
            }
          }
        };
      }
    });
    
    // src/core/keymaps.ts
    function getKeymapModifier(mode, cmd) {
      if (cmd) return "";
      if (mode == "n" || mode == "o" || mode == "x" || mode == "v") return "";
      if (mode == "i") return "";
      if (mode == "s") return "";
      return "";
    }
    function getBufnr(buffer) {
      return typeof buffer === "number" ? buffer : 0;
    }
    function toKeymapOption(option) {
      const conf = typeof option == "boolean" ? { sync: !option } : option;
      return Object.assign({ sync: true, cancel: true, silent: true }, conf);
    }
    var logger22, Keymaps;
    var init_keymaps = __esm({
      "src/core/keymaps.ts"() {
        "use strict";
        init_logger();
        init_constants();
        init_protocol();
        init_string();
        logger22 = createLogger("core-keymaps");
        Keymaps = class {
          keymaps = /* @__PURE__ */ new Map();
          insertKeymaps = /* @__PURE__ */ new Map();
          insertKeymapId = 0;
          nvim;
          attach(nvim) {
            this.nvim = nvim;
          }
          async doKeymap(key, defaultReturn) {
            let keymap = this.keymaps.get(key) ?? this.keymaps.get("coc-" + key);
            if (!keymap) {
              logger22.error(`keymap for ${key} not found`);
              return defaultReturn;
            }
            let [fn, repeat2] = keymap;
            let res = await Promise.resolve(fn());
            if (repeat2) await this.nvim.command(`silent! call repeat#set("\\(coc-${key})", -1)`);
            if (res == null) return defaultReturn;
            return res;
          }
          async doInsertKeymap(key, ...args) {
            let fn = this.insertKeymaps.get(key);
            if (!fn) {
              logger22.error(`insert keymap for ${key} not found`);
              return [];
            }
            let res = await Promise.resolve(fn(...args));
            return Array.isArray(res) ? res : [];
          }
          /**
           * Register global (coc-${key}) key mapping.
           */
          registerKeymap(modes, name2, fn, opts = {}) {
            if (!name2) throw new Error(`Invalid key ${name2} of registerKeymap`);
            let key = `coc-${name2}`;
            if (this.keymaps.has(key)) throw new Error(`keymap: "${name2}" already exists.`);
            const lhs = `(${key})`;
            opts = Object.assign({ sync: true, cancel: true, silent: true, repeat: false }, opts);
            let { nvim } = this;
            this.keymaps.set(key, [fn, !!opts.repeat]);
            let method = opts.sync ? "request" : "notify";
            for (let mode of modes) {
              if (mode == "i") {
                const cancel = opts.cancel ? 1 : 0;
                nvim.setKeymap(mode, lhs, `coc#_insert_key('${method}', '${key}', ${cancel})`, {
                  expr: true,
                  noremap: true,
                  silent: opts.silent
                });
              } else {
                nvim.setKeymap(mode, lhs, `:${getKeymapModifier(mode, opts.cmd)}call coc#rpc#${method}('doKeymap', ['${key}'])`, {
                  noremap: true,
                  silent: opts.silent
                });
              }
            }
            return import_node4.Disposable.create(() => {
              this.keymaps.delete(key);
              for (let m2 of modes) {
                nvim.deleteKeymap(m2, lhs);
              }
            });
          }
          registerExprKeymap(mode, lhs, fn, buffer = false, cancel = true) {
            let bufnr = getBufnr(buffer);
            let id2 = `${mode}-${toBase64(lhs)}${buffer ? `-${bufnr}` : ""}`;
            let { nvim } = this;
            let rhs;
            if (mode == "i") {
              rhs = `coc#_insert_key('request', '${id2}', ${cancel ? "1" : "0"})`;
            } else {
              rhs = `coc#rpc#request('doKeymap', ['${id2}'])`;
            }
            let opts = { noremap: true, silent: true, expr: true, nowait: true };
            if (buffer !== false) {
              nvim.call("coc#compat#buf_add_keymap", [bufnr, mode, lhs, rhs, opts], true);
            } else {
              nvim.setKeymap(mode, lhs, rhs, opts);
            }
            this.keymaps.set(id2, [fn, false]);
            return import_node4.Disposable.create(() => {
              this.keymaps.delete(id2);
              if (buffer) {
                nvim.call("coc#compat#buf_del_keymap", [bufnr, mode, lhs], true);
              } else {
                nvim.deleteKeymap(mode, lhs);
              }
            });
          }
          /**
           * Register an insert-mode mapping whose callback returns literal text and
           * special keys to execute in order at the mapping's actual execution point.
           * Vim cannot guarantee ordering during batched :normal or macro input.
           */
          registerInsertKeymap(lhs, fn, option = {}) {
            let { buffer = false, arglist = [] } = option;
            let bufnr = getBufnr(buffer);
            let id2 = `insert-${++this.insertKeymapId}`;
            let { nvim } = this;
            let opts = { noremap: true, silent: true, nowait: true, expr: true };
            let args = arglist.length ? `, ${arglist.join(", ")}` : "";
            let rhs = `coc#_insert_keymap('${id2}'${args})`;
            this.insertKeymaps.set(id2, fn);
            if (buffer !== false) {
              nvim.call("coc#compat#buf_add_keymap", [bufnr, "i", lhs, rhs, { ...opts, replace_keycodes: true }], true);
            } else {
              nvim.setKeymap("i", lhs, rhs, opts);
            }
            return import_node4.Disposable.create(() => {
              this.insertKeymaps.delete(id2);
              if (buffer !== false) {
                nvim.call("coc#compat#buf_del_keymap", [bufnr, "i", lhs], true);
              } else {
                nvim.deleteKeymap("i", lhs);
              }
            });
          }
          registerLocalKeymap(bufnr, mode, lhs, fn, option) {
            let { nvim } = this;
            let buffer = nvim.createBuffer(bufnr);
            let id2 = `local-${bufnr}-${mode}-${toBase64(lhs)}`;
            const opts = toKeymapOption(option);
            this.keymaps.set(id2, [fn, !!opts.repeat]);
            const method = opts.sync ? "request" : "notify";
            const opt = { noremap: true, silent: opts.silent !== false };
            if (isVim && opts.special) opt.special = true;
            if (mode == "i") {
              const cancel = opts.cancel ? 1 : 0;
              opt.expr = true;
              buffer.setKeymap(mode, lhs, `coc#_insert_key('${method}', '${id2}', ${cancel})`, opt);
            } else {
              opt.nowait = true;
              const modify2 = getKeymapModifier(mode, opts.cmd);
              buffer.setKeymap(mode, lhs, `:${modify2}call coc#rpc#${method}('doKeymap', ['${id2}'])`, opt);
            }
            return import_node4.Disposable.create(() => {
              this.keymaps.delete(id2);
              nvim.call("coc#compat#buf_del_keymap", [bufnr, mode, lhs], true);
            });
          }
        };
      }
    });
    
    // src/core/watchers.ts
    var logger23, Watchers;
    var init_watchers = __esm({
      "src/core/watchers.ts"() {
        "use strict";
        init_events();
        init_logger();
        init_util();
        init_protocol();
        init_string();
        logger23 = createLogger("watchers");
        Watchers = class {
          nvim;
          optionCallbacks = /* @__PURE__ */ new Map();
          globalCallbacks = /* @__PURE__ */ new Map();
          disposables = [];
          constructor() {
            events_default.on("OptionSet", async (changed, oldValue, newValue) => {
              let cbs = Array.from(this.optionCallbacks.get(changed) ?? []);
              await Promise.allSettled(cbs.map((cb) => {
                return (async () => {
                  try {
                    await Promise.resolve(cb(oldValue, newValue));
                  } catch (e2) {
                    this.nvim.errWriteLine(`Error on OptionSet '${changed}': ${toErrorText(e2)}`);
                    logger23.error(`Error on OptionSet callback:`, e2);
                  }
                })();
              }));
            }, null, this.disposables);
            events_default.on("GlobalChange", async (changed, oldValue, newValue) => {
              let cbs = Array.from(this.globalCallbacks.get(changed) ?? []);
              await Promise.allSettled(cbs.map((cb) => {
                return (async () => {
                  try {
                    await Promise.resolve(cb(oldValue, newValue));
                  } catch (e2) {
                    this.nvim.errWriteLine(`Error on GlobalChange '${changed}': ${toErrorText(e2)}`);
                    logger23.error(`Error on GlobalChange callback:`, e2);
                  }
                })();
              }));
            }, null, this.disposables);
          }
          get options() {
            return Array.from(this.optionCallbacks.keys());
          }
          attach(nvim, _env) {
            this.nvim = nvim;
          }
          /**
           * Watch for option change.
           */
          watchOption(key, callback, disposables) {
            let cbs = this.optionCallbacks.get(key);
            if (!cbs) {
              cbs = /* @__PURE__ */ new Set();
              this.optionCallbacks.set(key, cbs);
            }
            cbs.add(callback);
            let cmd = `autocmd! coc_dynamic_option OptionSet ${key} call coc#rpc#notify('OptionSet',[expand(''), v:option_old, v:option_new])`;
            this.nvim.command(cmd, true);
            let disposable = import_node4.Disposable.create(() => {
              let cbs2 = this.optionCallbacks.get(key);
              cbs2.delete(callback);
              if (cbs2.size === 0) this.nvim.command(`autocmd! coc_dynamic_option OptionSet ${key}`, true);
            });
            if (disposables) disposables.push(disposable);
            return disposable;
          }
          /**
           * Watch global variable, works on neovim only.
           */
          watchGlobal(key, callback, disposables) {
            let { nvim } = this;
            let cbs = this.globalCallbacks.get(key);
            if (!cbs) {
              cbs = /* @__PURE__ */ new Set();
              this.globalCallbacks.set(key, cbs);
            }
            cbs.add(callback);
            nvim.call("coc#_watch", key, true);
            let disposable = import_node4.Disposable.create(() => {
              let cbs2 = this.globalCallbacks.get(key);
              cbs2.delete(callback);
              if (cbs2.size === 0) nvim.call("coc#_unwatch", key, true);
            });
            if (disposables) disposables.push(disposable);
            return disposable;
          }
          dispose() {
            disposeAll(this.disposables);
          }
        };
      }
    });
    
    // src/core/workspaceFolder.ts
    function toWorkspaceFolder(fsPath2) {
      if (!fsPath2 || !path.isAbsolute(fsPath2)) {
        logger24.error(`Invalid folder: ${fsPath2}, full path required.`);
        return void 0;
      }
      return {
        name: path.basename(fsPath2),
        uri: u.file(fsPath2).toString()
      };
    }
    var PatternType, logger24, PatternTypes, checkPatternTimeout, extensionRegistry3, WorkspaceFolderController;
    var init_workspaceFolder = __esm({
      "src/core/workspaceFolder.ts"() {
        "use strict";
        init_esm();
        init_events();
        init_logger();
        init_util();
        init_array();
        init_errors();
        init_extensionRegistry();
        init_fs();
        init_node();
        init_object();
        init_protocol();
        init_registry();
        PatternType = /* @__PURE__ */ ((PatternType2) => {
          PatternType2[PatternType2["Buffer"] = 0] = "Buffer";
          PatternType2[PatternType2["LanguageServer"] = 1] = "LanguageServer";
          PatternType2[PatternType2["Global"] = 2] = "Global";
          return PatternType2;
        })(PatternType || {});
        logger24 = createLogger("core-workspaceFolder");
        PatternTypes = [0 /* Buffer */, 1 /* LanguageServer */, 2 /* Global */];
        checkPatternTimeout = getConditionValue(5e3, 100);
        extensionRegistry3 = Registry.as(Extensions.ExtensionContribution);
        WorkspaceFolderController = class {
          constructor(configurations) {
            this.configurations = configurations;
            events_default.on("VimLeavePre", this.cancelAll, this);
            this.updateConfiguration();
            this.updateServerRootPatterns();
            this.configurations.onDidChange((e2) => {
              if (e2.affectsConfiguration("workspace") || e2.affectsConfiguration("coc.preferences")) {
                this.updateConfiguration();
              }
              if (e2.affectsConfiguration("languageserver")) {
                this.updateServerRootPatterns();
              }
            });
          }
          configurations;
          config;
          _onDidChangeWorkspaceFolders = new import_node4.Emitter();
          onDidChangeWorkspaceFolders = this._onDidChangeWorkspaceFolders.event;
          // filetype => patterns
          rootPatterns = /* @__PURE__ */ new Map();
          _workspaceFolders = [];
          _tokenSources = /* @__PURE__ */ new Set();
          updateConfiguration() {
            const allConfig = this.configurations.initialConfiguration;
            let config = allConfig.get("workspace");
            let oldConfig = allConfig.get("coc.preferences.rootPatterns");
            this.config = {
              rootPatterns: isFalsyOrEmpty(oldConfig) ? toArray(config.rootPatterns) : oldConfig,
              ignoredFiletypes: toArray(config.ignoredFiletypes),
              bottomUpFiletypes: toArray(config.bottomUpFiletypes),
              ignoredFolders: toArray(config.ignoredFolders),
              workspaceFolderCheckCwd: !!config.workspaceFolderCheckCwd,
              workspaceFolderFallbackCwd: !!config.workspaceFolderFallbackCwd
            };
          }
          updateServerRootPatterns() {
            let lspConfig = this.configurations.getConfiguration("languageserver", null);
            this.rootPatterns.clear();
            for (let config of Object.values(toObject(lspConfig))) {
              let { filetypes, rootPatterns } = config;
              if (Array.isArray(filetypes) && !isFalsyOrEmpty(rootPatterns)) {
                filetypes.filter((s2) => typeof s2 === "string").forEach((filetype) => {
                  this.addRootPattern(filetype, rootPatterns);
                });
              }
            }
          }
          cancelAll() {
            for (let tokenSource of this._tokenSources) {
              tokenSource.cancel();
            }
          }
          setWorkspaceFolders(folders) {
            if (!folders || !Array.isArray(folders)) return;
            let arr = folders.filter((f2) => f2.length > 0).map((f2) => toWorkspaceFolder(f2));
            this._workspaceFolders = arr.filter((o2) => o2 != null);
          }
          getWorkspaceFolder(uri) {
            if (uri.scheme !== "file") return void 0;
            if (this._workspaceFolders.length === 0) return void 0;
            let folders = Array.from(this._workspaceFolders).map((o2) => u.parse(o2.uri).fsPath);
            folders.sort((a2, b2) => b2.length - a2.length);
            let fsPath2 = uriToFsPath(uri);
            let folder = folders.find((f2) => isParentFolder(f2, fsPath2, true));
            if (folder === void 0) return void 0;
            return toWorkspaceFolder(folder);
          }
          getRelativePath(pathOrUri, includeWorkspace) {
            let resource;
            let p2 = "";
            if (typeof pathOrUri === "string") {
              resource = u.file(pathOrUri);
              p2 = pathOrUri;
            } else if (pathOrUri != null) {
              resource = pathOrUri;
              p2 = pathOrUri.fsPath;
            }
            if (!resource) return p2;
            const folder = this.getWorkspaceFolder(resource);
            if (!folder) return p2;
            if (typeof includeWorkspace === "undefined" && this._workspaceFolders) {
              includeWorkspace = this._workspaceFolders.length > 1;
            }
            let result = path.relative(u.parse(folder.uri).fsPath, resource.fsPath);
            result = result == "" ? resource.fsPath : result;
            if (includeWorkspace && folder.name) {
              result = `${folder.name}/${result}`;
            }
            return result;
          }
          get workspaceFolders() {
            return this._workspaceFolders;
          }
          addRootPattern(filetype, rootPatterns) {
            let patterns = this.rootPatterns.get(filetype) ?? [];
            for (let p2 of rootPatterns) {
              if (!patterns.includes(p2)) {
                patterns.push(p2);
              }
            }
            this.rootPatterns.set(filetype, patterns);
          }
          resolveRoot(document2, cwd2, fireEvent, expand3) {
            if (document2.buftype !== "" || document2.schema !== "file") return null;
            let u2 = u.parse(document2.uri);
            let dir = isDirectory(uriToFsPath(u2)) ? path.normalize(uriToFsPath(u2)) : path.dirname(uriToFsPath(u2));
            let { ignoredFiletypes, ignoredFolders, workspaceFolderCheckCwd, workspaceFolderFallbackCwd, bottomUpFiletypes } = this.config;
            if (ignoredFiletypes?.includes(document2.filetype)) return null;
            ignoredFolders = Array.isArray(ignoredFolders) ? ignoredFolders.filter((s2) => s2 && s2.length > 0).map((s2) => expand3(s2)) : [];
            let res = null;
            for (let patternType of PatternTypes) {
              let patterns = this.getRootPatterns(document2, patternType);
              if (patterns && patterns.length) {
                let isBottomUp = bottomUpFiletypes.includes("*") || bottomUpFiletypes.includes(document2.filetype);
                let root = resolveRoot(dir, patterns, cwd2, isBottomUp, workspaceFolderCheckCwd, ignoredFolders);
                if (root) {
                  res = root;
                  break;
                }
              }
            }
            if (!res && workspaceFolderFallbackCwd && !isFolderIgnored(cwd2, ignoredFolders) && isParentFolder(cwd2, dir, true)) {
              res = cwd2;
            }
            if (res) this.addWorkspaceFolder(res, fireEvent);
            return res;
          }
          addWorkspaceFolder(folder, fireEvent) {
            let workspaceFolder = toWorkspaceFolder(folder);
            if (!workspaceFolder) return void 0;
            if (this._workspaceFolders.findIndex((o2) => o2.uri == workspaceFolder.uri) == -1) {
              this._workspaceFolders.push(workspaceFolder);
              if (fireEvent) {
                this._onDidChangeWorkspaceFolders.fire({
                  added: [workspaceFolder],
                  removed: []
                });
              }
            }
            return workspaceFolder;
          }
          renameWorkspaceFolder(oldPath, newPath) {
            let added = toWorkspaceFolder(newPath);
            if (!added) return;
            let idx = this._workspaceFolders.findIndex((f2) => sameFile(u.parse(f2.uri).fsPath, oldPath));
            if (idx == -1) return;
            let removed = this.workspaceFolders[idx];
            this._workspaceFolders.splice(idx, 1, added);
            this._onDidChangeWorkspaceFolders.fire({
              removed: [removed],
              added: [added]
            });
          }
          removeWorkspaceFolder(fsPath2) {
            let removed = toWorkspaceFolder(fsPath2);
            if (!removed) return;
            let idx = this._workspaceFolders.findIndex((f2) => f2.uri == removed.uri);
            if (idx == -1) return;
            this._workspaceFolders.splice(idx, 1);
            this._onDidChangeWorkspaceFolders.fire({
              removed: [removed],
              added: []
            });
          }
          onDocumentDetach(uris) {
            let shouldCheck = this.configurations.initialConfiguration.get("workspace.removeEmptyWorkspaceFolder", false);
            if (!shouldCheck) return;
            let filepaths = [];
            for (const uri of uris) {
              if (uri.scheme === "file") {
                filepaths.push(uri.fsPath);
              }
            }
            for (const item of this.workspaceFolders) {
              const folder = u.parse(item.uri).fsPath;
              if (!filepaths.some((f2) => isParentFolder(folder, f2))) {
                this.removeWorkspaceFolder(folder);
                return;
              }
            }
          }
          getRootPatterns(document2, patternType) {
            if (patternType == 0 /* Buffer */) return document2.getVar("root_patterns", []);
            if (patternType == 1 /* LanguageServer */) return this.getServerRootPatterns(document2.languageId);
            return this.config.rootPatterns;
          }
          reset() {
            this.rootPatterns.clear();
            this._workspaceFolders = [];
          }
          /**
           * Get rootPatterns of filetype by languageserver configuration and extension configuration.
           */
          getServerRootPatterns(filetype) {
            let patterns = extensionRegistry3.getRootPatternsByFiletype(filetype);
            patterns = patterns.concat(toArray(this.rootPatterns.get(filetype)));
            return distinct(patterns);
          }
          checkFolder(dir, patterns, token) {
            return checkFolder(dir, patterns, token);
          }
          async checkPatterns(folders, patterns) {
            if (isFalsyOrEmpty(folders)) return false;
            let dirs = folders.map((f2) => u.parse(f2.uri).fsPath);
            let find = false;
            let tokenSource = new import_node4.CancellationTokenSource();
            this._tokenSources.add(tokenSource);
            let token = tokenSource.token;
            let timer = setTimeout(() => {
              tokenSource.cancel();
            }, checkPatternTimeout);
            try {
              let results = await Promise.allSettled(dirs.map((dir) => {
                return this.checkFolder(dir, patterns, token).then((checked) => {
                  if (checked) {
                    find = true;
                    tokenSource.cancel();
                  }
                });
              }));
              results.forEach((res) => {
                if (res.status === "rejected" && !isCancellationError(res.reason)) {
                  logger24.error(`checkPatterns error:`, patterns, res.reason);
                }
              });
              return find;
            } finally {
              clearTimeout(timer);
              this._tokenSources.delete(tokenSource);
              tokenSource.dispose();
            }
          }
        };
      }
    });
    
    // src/model/bufferSync.ts
    var BufferSync;
    var init_bufferSync = __esm({
      "src/model/bufferSync.ts"() {
        "use strict";
        init_events();
        init_util();
        init_is();
        BufferSync = class {
          constructor(_create, documents) {
            this._create = _create;
            let { disposables } = this;
            for (let doc of documents.attached()) {
              this.create(doc);
            }
            documents.onDidOpenTextDocument((e2) => {
              this.create(documents.getDocument(e2.bufnr));
            }, null, disposables);
            documents.onDidChangeDocument((e2) => {
              this.onChange(e2);
            }, null, disposables);
            documents.onDidCloseDocument((e2) => {
              this.delete(e2.bufnr);
            }, null, disposables);
            events_default.on("LinesChanged", this.onTextChange, this, disposables);
            events_default.on("WindowVisible", this.onVisible, this, disposables);
          }
          _create;
          disposables = [];
          itemsMap = /* @__PURE__ */ new Map();
          onTextChange(bufnr) {
            let o2 = this.itemsMap.get(bufnr);
            if (o2 && func(o2.item.onTextChange)) {
              o2.item.onTextChange();
            }
          }
          onVisible(ev) {
            let o2 = this.itemsMap.get(ev.bufnr);
            if (o2 && typeof o2.item.onVisible === "function") {
              o2.item.onVisible(ev.winid, ev.region);
            }
          }
          get items() {
            return Array.from(this.itemsMap.values()).map((x2) => x2.item);
          }
          getItem(bufnr) {
            if (bufnr == null) return void 0;
            if (typeof bufnr === "number") {
              return this.itemsMap.get(bufnr)?.item;
            }
            let o2 = Array.from(this.itemsMap.values()).find((v2) => {
              return v2.uri == bufnr;
            });
            return o2 ? o2.item : void 0;
          }
          create(doc) {
            let o2 = this.itemsMap.get(doc.bufnr);
            if (o2) o2.item.dispose();
            let item = this._create(doc);
            if (item) this.itemsMap.set(doc.bufnr, { uri: doc.uri, item });
          }
          onChange(e2) {
            let o2 = this.itemsMap.get(e2.bufnr);
            if (o2 && typeof o2.item.onChange == "function") {
              o2.item.onChange(e2);
            }
          }
          delete(bufnr) {
            let o2 = this.itemsMap.get(bufnr);
            if (o2) {
              o2.item.dispose();
              this.itemsMap.delete(bufnr);
            }
          }
          reset() {
            for (let o2 of this.itemsMap.values()) {
              o2.item.dispose();
            }
            this.itemsMap.clear();
          }
          dispose() {
            disposeAll(this.disposables);
            for (let o2 of this.itemsMap.values()) {
              o2.item.dispose();
            }
            this._create = void 0;
            this.itemsMap.clear();
          }
        };
      }
    });
    
    // src/model/db.ts
    var DB;
    var init_db = __esm({
      "src/model/db.ts"() {
        "use strict";
        init_node();
        init_object();
        DB = class {
          constructor(filepath) {
            this.filepath = filepath;
          }
          filepath;
          /**
           * Get data by key.
           * @param {string} key unique key allows dot notation.
           * @returns {any}
           */
          fetch(key) {
            let obj = this.load();
            if (!key) return obj;
            let parts = key.split(".");
            for (let part of parts) {
              if (typeof obj[part] === "undefined") {
                return void 0;
              }
              obj = obj[part];
            }
            return obj;
          }
          /**
           * Check if key exists
           * @param {string} key unique key allows dot notation.
           */
          exists(key) {
            let obj = this.load();
            let parts = key.split(".");
            for (let part of parts) {
              if (typeof obj[part] === "undefined") {
                return false;
              }
              obj = obj[part];
            }
            return true;
          }
          /**
           * Delete data by key
           * @param {string} key unique key allows dot notation.
           */
          delete(key) {
            let obj = this.load();
            let origin = obj;
            let parts = key.split(".");
            let len = parts.length;
            for (let i2 = 0; i2 < len; i2++) {
              if (typeof obj[parts[i2]] === "undefined") {
                break;
              }
              if (i2 == len - 1) {
                delete obj[parts[i2]];
                fs.writeFileSync(this.filepath, JSON.stringify(origin, null, 2), "utf8");
                break;
              }
              obj = obj[parts[i2]];
            }
          }
          /**
           * Save data with key
           * @param {string} key unique string that allows dot notation.
           * @param {number|null|boolean|string|{[index} data saved data.
           */
          push(key, data) {
            let origin = toObject(this.load());
            let obj = origin;
            let parts = key.split(".");
            let len = parts.length;
            for (let i2 = 0; i2 < len; i2++) {
              let key2 = parts[i2];
              if (i2 == len - 1) {
                obj[key2] = data;
                let dir = path.dirname(this.filepath);
                fs.mkdirSync(dir, { recursive: true });
                fs.writeFileSync(this.filepath, JSON.stringify(origin, null, 2));
                break;
              }
              if (typeof obj[key2] == "undefined") {
                obj[key2] = {};
                obj = obj[key2];
              } else {
                obj = obj[key2];
              }
            }
          }
          load() {
            let dir = path.dirname(this.filepath);
            let exists = fs.existsSync(dir);
            if (!exists) {
              fs.mkdirSync(dir, { recursive: true });
              fs.writeFileSync(this.filepath, "{}", "utf8");
              return {};
            }
            try {
              let content = fs.readFileSync(this.filepath, "utf8");
              return JSON.parse(content.trim());
            } catch (e2) {
              fs.writeFileSync(this.filepath, "{}", "utf8");
              return {};
            }
          }
          /**
           * Empty db file.
           */
          clear() {
            let exists = fs.existsSync(this.filepath);
            if (!exists) return;
            fs.writeFileSync(this.filepath, "{}", "utf8");
          }
          /**
           * Remove db file.
           */
          destroy() {
            if (fs.existsSync(this.filepath)) {
              fs.unlinkSync(this.filepath);
            }
          }
        };
      }
    });
    
    // src/model/status.ts
    var frames, StatusLine;
    var init_status = __esm({
      "src/model/status.ts"() {
        "use strict";
        frames = ["\u280B", "\u2819", "\u2839", "\u2838", "\u283C", "\u2834", "\u2826", "\u2827", "\u2807", "\u280F"];
        StatusLine = class {
          items = /* @__PURE__ */ new Map();
          shownIds = /* @__PURE__ */ new Set();
          _text = "";
          interval;
          nvim;
          constructor() {
            this.interval = setInterval(() => {
              this.setStatusText();
            }, 100).unref();
          }
          dispose() {
            this.items.clear();
            this.shownIds.clear();
            clearInterval(this.interval);
          }
          reset() {
            this.items.clear();
            this.shownIds.clear();
          }
          createStatusBarItem(priority, isProgress = false) {
            let uid = crypto.randomUUID();
            let item = {
              text: "",
              priority,
              isProgress,
              show: () => {
                this.shownIds.add(uid);
                this.setStatusText();
              },
              hide: () => {
                this.shownIds.delete(uid);
                this.setStatusText();
              },
              dispose: () => {
                this.shownIds.delete(uid);
                this.items.delete(uid);
                this.setStatusText();
              }
            };
            this.items.set(uid, item);
            return item;
          }
          getText() {
            if (this.shownIds.size == 0) return "";
            let d2 = /* @__PURE__ */ new Date();
            let idx = Math.floor(d2.getMilliseconds() / 100);
            let text = "";
            let items = [];
            for (let [id2, item] of this.items) {
              if (this.shownIds.has(id2)) {
                items.push(item);
              }
            }
            items.sort((a2, b2) => a2.priority - b2.priority);
            for (let item of items) {
              if (!item.isProgress) {
                text = `${text} ${item.text}`;
              } else {
                text = `${text} ${frames[idx]} ${item.text}`;
              }
            }
            return text;
          }
          setStatusText() {
            let text = this.getText();
            let { nvim } = this;
            if (text != this._text && nvim) {
              this._text = text;
              nvim.pauseNotification();
              this.nvim.setVar("coc_status", text, true);
              this.nvim.callTimer("coc#util#do_autocmd", ["CocStatusChange"], true);
              nvim.resumeNotification(false, true);
            }
          }
        };
      }
    });
    
    // src/model/tabs.ts
    var Tabs;
    var init_tabs = __esm({
      "src/model/tabs.ts"() {
        "use strict";
        init_esm();
        init_protocol();
        Tabs = class {
          constructor(editors) {
            this.editors = editors;
            this._onOpen = new import_node4.Emitter();
            this._onClose = new import_node4.Emitter();
            this.editors.onDidChangeVisibleTextEditors((editors2) => {
              let uris = Array.from(this.open);
              let seen = /* @__PURE__ */ new Set();
              let opened = /* @__PURE__ */ new Set();
              let closed = /* @__PURE__ */ new Set();
              for (let editor of editors2) {
                if (!seen.has(editor.uri) && !uris.includes(editor.uri)) {
                  this.open.add(editor.uri);
                  opened.add(u.parse(editor.uri));
                }
                seen.add(editor.uri);
              }
              for (let uri of uris) {
                if (!seen.has(uri)) {
                  this.open.delete(uri);
                  closed.add(u.parse(uri));
                }
              }
              if (opened.size > 0) {
                this._onOpen.fire(opened);
              }
              if (closed.size > 0) {
                this._onClose.fire(closed);
              }
            });
          }
          editors;
          open = /* @__PURE__ */ new Set();
          _onOpen;
          _onClose;
          attach() {
            for (let editor of this.editors.visibleTextEditors) {
              this.open.add(editor.uri);
            }
          }
          get onClose() {
            return this._onClose.event;
          }
          get onOpen() {
            return this._onOpen.event;
          }
          isActive(document2) {
            const uri = document2 instanceof u ? document2 : document2.uri;
            return this.editors.activeTextEditor?.document.uri === uri.toString();
          }
          isVisible(document2) {
            const uri = document2 instanceof u ? document2 : document2.uri;
            return this.open.has(uri.toString());
          }
          getTabResources() {
            const result = /* @__PURE__ */ new Set();
            let seen = /* @__PURE__ */ new Set();
            for (let editor of this.editors.visibleTextEditors) {
              if (!seen.has(editor.uri)) {
                result.add(u.parse(editor.uri));
                seen.add(editor.uri);
              }
            }
            return result;
          }
        };
      }
    });
    
    // src/model/task.ts
    var Task;
    var init_task = __esm({
      "src/model/task.ts"() {
        "use strict";
        init_events();
        init_util();
        init_protocol();
        Task = class {
          /**
           * @param {Neovim} nvim
           * @param {string} id unique id
           */
          constructor(nvim, id2) {
            this.nvim = nvim;
            this.id = id2;
            events_default.on("TaskExit", (id3, code) => {
              if (id3 == this.id) {
                this._onExit.fire(code);
              }
            }, null, this.disposables);
            events_default.on("TaskStderr", (id3, lines) => {
              if (id3 == this.id) {
                this._onStderr.fire(lines);
              }
            }, null, this.disposables);
            events_default.on("TaskStdout", (id3, lines) => {
              if (id3 == this.id) {
                this._onStdout.fire(lines);
              }
            }, null, this.disposables);
          }
          nvim;
          id;
          disposables = [];
          _onExit = new import_node4.Emitter();
          _onStderr = new import_node4.Emitter();
          _onStdout = new import_node4.Emitter();
          onExit = this._onExit.event;
          onStdout = this._onStdout.event;
          onStderr = this._onStderr.event;
          /**
           * Start task, task will be restarted when already running.
           * @param {TaskOptions} opts
           * @returns {Promise}
           */
          async start(opts) {
            let { nvim } = this;
            return await nvim.call("coc#task#start", [this.id, opts]);
          }
          /**
           * Stop task by SIGTERM or SIGKILL
           */
          async stop() {
            let { nvim } = this;
            await nvim.call("coc#task#stop", [this.id]);
          }
          /**
           * Check if the task is running.
           */
          get running() {
            let { nvim } = this;
            return nvim.call("coc#task#running", [this.id]);
          }
          /**
           * Stop task and dispose all events.
           */
          dispose() {
            let { nvim } = this;
            nvim.call("coc#task#stop", [this.id], true);
            this._onStdout.dispose();
            this._onStderr.dispose();
            this._onExit.dispose();
            disposeAll(this.disposables);
          }
        };
      }
    });
    
    // src/workspace.ts
    var logger25, methods, Workspace, workspace_default;
    var init_workspace = __esm({
      "src/workspace.ts"() {
        "use strict";
        init_esm();
        init_configuration2();
        init_shape();
        init_autocmds();
        init_channels();
        init_contentProvider();
        init_documents();
        init_editors();
        init_fileSystemWatcher();
        init_files();
        init_funcs();
        init_keymaps();
        init_ui();
        init_watchers();
        init_workspaceFolder();
        init_events();
        init_logger();
        init_bufferSync();
        init_db();
        init_fuzzyMatch();
        init_mru();
        init_status();
        init_strwidth();
        init_tabs();
        init_task();
        init_util();
        init_constants();
        init_errors();
        init_fs();
        init_mutex();
        init_node();
        init_object();
        init_processes();
        init_protocol();
        logger25 = createLogger("workspace");
        methods = [
          "showMessage",
          "runTerminalCommand",
          "openTerminal",
          "showQuickpick",
          "menuPick",
          "openLocalConfig",
          "showPrompt",
          "createStatusBarItem",
          "createOutputChannel",
          "showOutputChannel",
          "requestInput",
          "echoLines",
          "getCursorPosition",
          "moveTo",
          "getOffset",
          "getSelectedRange",
          "selectRange",
          "createTerminal"
        ];
        Workspace = class {
          onDidChangeConfiguration;
          onDidOpenTextDocument;
          onDidCloseTextDocument;
          onDidChangeTextDocument;
          onDidSaveTextDocument;
          onWillSaveTextDocument;
          onDidChangeWorkspaceFolders;
          onDidCreateFiles;
          onDidRenameFiles;
          onDidDeleteFiles;
          onWillCreateFiles;
          onWillRenameFiles;
          onWillDeleteFiles;
          nvim;
          /**
           * @internal
           */
          configurations;
          /**
           * @internal
           */
          workspaceFolderControl;
          /**
           * @internal
           */
          documentsManager;
          /**
           * @internal
           */
          contentProvider;
          /**
           * @internal
           */
          autocmds;
          /**
           * @internal
           */
          watchers;
          /**
           * @internal
           */
          keymaps;
          /**
           * @internal
           */
          files;
          /**
           * @internal
           */
          fileSystemWatchers;
          /**
           * @internal
           */
          editors;
          /**
           * @internal
           */
          tabs;
          isTrusted = true;
          /**
           * @internal
           */
          statusLine = new StatusLine();
          fileOperationMutex = new Mutex();
          _onDidRuntimePathChange = new import_node4.Emitter();
          onDidRuntimePathChange = this._onDidRuntimePathChange.event;
          fuzzyExports;
          strWidth;
          fuzzyReady;
          strWidthReady;
          _env;
          constructor() {
            this.fuzzyReady = initFuzzyWasm().then((api) => {
              this.fuzzyExports = api;
            }, onUnexpectedError);
            this.strWidthReady = StrWidth.create().then((strWidth) => {
              this.strWidth = strWidth;
            }, onUnexpectedError);
            events_default.on("VimResized", (columns, lines) => {
              Object.assign(toObject(this.env), { columns, lines });
            });
            Object.defineProperty(this.statusLine, "nvim", {
              get: () => this.nvim
            });
            this.configurations = new Configurations(userConfigFile, new ConfigurationProxy(this));
            this.workspaceFolderControl = new WorkspaceFolderController(this.configurations);
            let documents = this.documentsManager = new Documents(this.configurations, this.workspaceFolderControl);
            this.contentProvider = new ContentProvider(documents);
            this.watchers = new Watchers();
            this.autocmds = new Autocmds();
            this.keymaps = new Keymaps();
            this.files = new Files(documents, this.configurations, this.workspaceFolderControl, this.keymaps);
            this.editors = new Editors(documents);
            this.tabs = new Tabs(this.editors);
            this.onDidChangeWorkspaceFolders = this.workspaceFolderControl.onDidChangeWorkspaceFolders;
            this.onDidChangeConfiguration = this.configurations.onDidChange;
            this.onDidOpenTextDocument = documents.onDidOpenTextDocument;
            this.onDidChangeTextDocument = documents.onDidChangeDocument;
            this.onDidCloseTextDocument = documents.onDidCloseDocument;
            this.onDidSaveTextDocument = documents.onDidSaveTextDocument;
            this.onWillSaveTextDocument = documents.onWillSaveTextDocument;
            this.onDidCreateFiles = this.files.onDidCreateFiles;
            this.onDidRenameFiles = this.files.onDidRenameFiles;
            this.onDidDeleteFiles = this.files.onDidDeleteFiles;
            this.onWillCreateFiles = this.files.onWillCreateFiles;
            this.onWillRenameFiles = this.files.onWillRenameFiles;
            this.onWillDeleteFiles = this.files.onWillDeleteFiles;
            const config = this.getWatchConfig();
            this.fileSystemWatchers = new FileSystemWatcherManager(this.workspaceFolderControl, config);
          }
          /**
           * @internal
           */
          get initialConfiguration() {
            return this.configurations.initialConfiguration;
          }
          /**
           * @internal
           */
          getWatchConfig() {
            let { initialConfiguration } = this;
            let watchConfig = defaultValue(initialConfiguration.get("fileSystemWatch"), {});
            let watchmanPath = watchConfig.watchmanPath;
            if (!watchmanPath) watchmanPath = initialConfiguration.inspect("coc.preferences.watchmanPath").globalValue;
            if (typeof watchmanPath === "string") watchmanPath = this.expand(watchmanPath);
            let ignoredFolders = defaultValue(watchConfig.ignoredFolders, [
              "${tmpdir}",
              "/private/tmp",
              "/",
              "**/.git",
              "**/.git/**",
              "**/node_modules",
              "**/node_modules/**"
            ]);
            let enable = getConditionValue(watchConfig.enable == null ? true : !!watchConfig.enable, false);
            return {
              watchmanPath,
              enable,
              ignoredFolders: ignoredFolders.map((p2) => this.expand(p2))
            };
          }
          /**
           * @internal
           */
          async init(window2) {
            let { nvim } = this;
            for (let method of methods) {
              Object.defineProperty(this, method, {
                get: () => {
                  return (...args) => {
                    let stack = false ? "" : "\n" + Error().stack.split("\n").slice(2, 4).join("\n");
                    logger25.warn(`workspace.${method} is deprecated, please use window.${method} instead.`, stack);
                    return window2[method].apply(window2, args);
                  };
                }
              });
            }
            for (let name2 of ["onDidOpenTerminal", "onDidCloseTerminal"]) {
              Object.defineProperty(this, name2, {
                get: () => {
                  let stack = false ? "" : "\n" + Error().stack.split("\n").slice(2, 4).join("\n");
                  logger25.warn(`workspace.${name2} is deprecated, please use window.${name2} instead.`, stack);
                  return window2[name2];
                }
              });
            }
            let env = this._env = await nvim.call("coc#util#vim_info");
            this.checkVersion(APIVERSION);
            this.configurations.updateMemoryConfig(this._env.config);
            this.workspaceFolderControl.setWorkspaceFolders(this._env.workspaceFolders);
            this.workspaceFolderControl.onDidChangeWorkspaceFolders(() => {
              nvim.setVar("WorkspaceFolders", this.folderPaths, true);
            });
            this.files.attach(nvim, env, window2);
            this.contentProvider.attach(nvim);
            this.registerTextDocumentContentProvider("output", channels_default.getProvider(nvim));
            this.keymaps.attach(nvim);
            this.autocmds.attach(nvim);
            this.watchers.attach(nvim, env);
            this.watchers.watchOption("runtimepath", async (oldValue, newValue) => {
              let oldList = oldValue.split(",");
              let newList = newValue.split(",");
              let paths = newList.filter((x2) => !oldList.includes(x2));
              if (paths.length > 0) {
                let filepaths = [];
                await Promise.allSettled(paths.map((filepath) => {
                  return new Promise((resolve, reject) => {
                    let converted = this.fixWin32unixFilepath(filepath);
                    getFileType(converted).then((t2) => {
                      if (t2 == 2 /* Directory */) {
                        filepaths.push(converted);
                      }
                      resolve(void 0);
                    }, reject);
                  });
                }));
                if (filepaths.length > 0) {
                  this._onDidRuntimePathChange.fire(filepaths);
                  this.env.runtimepath = [...oldList, ...filepaths].join(",");
                }
              }
            });
            await this.documentsManager.attach(this.nvim, this._env);
            await this.editors.attach(nvim);
            this.tabs.attach();
            await Promise.allSettled([this.fuzzyReady, this.strWidthReady]);
            let channel = channels_default.create("watchman", nvim);
            this.fileSystemWatchers.attach(channel);
            if (this.strWidth) this.strWidth.setAmbw(!env.ambiguousIsNarrow);
          }
          /**
           * @internal
           */
          checkVersion(version2) {
            if (this._env.apiversion != version2) {
              this.nvim.echoError(`API version ${this._env.apiversion} is not ${APIVERSION}, building coc.nvim by 'npm ci'.`);
              this.nvim.call("coc#ui#fix", [], true);
            }
          }
          getDisplayWidth(text, cache2 = false) {
            if (!this.strWidth) return text.length;
            return this.strWidth.getWidth(text, cache2);
          }
          /**
           * @internal
           */
          get version() {
            return VERSION;
          }
          get cwd() {
            return this.documentsManager.cwd;
          }
          get env() {
            return this._env;
          }
          get root() {
            return this.documentsManager.root || this.cwd;
          }
          get rootPath() {
            return this.root;
          }
          get bufnr() {
            return this.documentsManager.bufnr;
          }
          /**
           * @internal
           * @deprecated
           */
          get insertMode() {
            return events_default.insertMode;
          }
          /**
           * @deprecated always true
           */
          get floatSupported() {
            return true;
          }
          /**
           * @internal
           * @deprecated
           */
          get uri() {
            return this.documentsManager.uri;
          }
          /**
           * @deprecated
           */
          get workspaceFolder() {
            return this.workspaceFolders[0];
          }
          get textDocuments() {
            return this.documentsManager.textDocuments;
          }
          get documents() {
            return this.documentsManager.documents;
          }
          get document() {
            return this.documentsManager.document;
          }
          get workspaceFolders() {
            return this.workspaceFolderControl.workspaceFolders;
          }
          fixWin32unixFilepath(filepath) {
            return this.documentsManager.fixUnixPrefix(filepath);
          }
          /**
           * @internal
           */
          checkPatterns(patterns, folders) {
            return this.workspaceFolderControl.checkPatterns(folders ?? this.workspaceFolderControl.workspaceFolders, patterns);
          }
          get folderPaths() {
            return this.workspaceFolders.map((f2) => u.parse(f2.uri).fsPath);
          }
          get channelNames() {
            return channels_default.names;
          }
          get pluginRoot() {
            return pluginRoot;
          }
          get isVim() {
            return this._env.isVim;
          }
          get isNvim() {
            return !this._env.isVim;
          }
          /**
           * @internal
           * Kept for backward compatible
           */
          get completeOpt() {
            return "";
          }
          get filetypes() {
            return this.documentsManager.filetypes;
          }
          get languageIds() {
            return this.documentsManager.languageIds;
          }
          /**
           * @internal
           * @deprecated Use nvim.createNamespace() instead.
           */
          createNameSpace(name2) {
            return createNameSpace(name2);
          }
          has(feature) {
            return has(this.env, feature);
          }
          /**
           * Register autocmd on vim.
           */
          registerAutocmd(autocmd, disposables) {
            let opts = Object.assign({}, autocmd);
            if (true) Error.captureStackTrace(opts);
            let disposable = this.autocmds.registerAutocmd(opts);
            if (disposables) disposables.push(disposable);
            return disposable;
          }
          /**
           * Watch for option change.
           */
          watchOption(key, callback, disposables) {
            return this.watchers.watchOption(key, callback, disposables);
          }
          /**
           * Watch global variable, works on neovim only.
           */
          watchGlobal(key, callback, disposables) {
            let cb = callback ?? function() {
            };
            return this.watchers.watchGlobal(key, cb, disposables);
          }
          /**
           * Check if selector match document.
           */
          match(selector, document2) {
            return score(selector, document2.uri, document2.languageId);
          }
          /**
           * Create a FileSystemWatcher instance. The returned watcher remains valid
           * when no native or Watchman backend is available, but emits no events.
           * Set includeDirectories in the options form to receive native directory events.
           */
          createFileSystemWatcher(globPattern, options3, ignoreChange, ignoreDelete) {
            return this.fileSystemWatchers.createFileSystemWatcher(globPattern, options3, ignoreChange, ignoreDelete);
          }
          /** Watch an absolute Git metadata directory with the native watcher. */
          createGitFileSystemWatcher(gitDir) {
            return this.fileSystemWatchers.createGitFileSystemWatcher(gitDir);
          }
          createFuzzyMatch() {
            return new FuzzyMatch(this.fuzzyExports);
          }
          getWatchmanPath() {
            return getWatchmanPath(this.configurations);
          }
          /**
           * Get configuration by section and optional resource uri.
           */
          getConfiguration(section2, scope) {
            return this.configurations.getConfiguration(section2, scope);
          }
          resolveJSONSchema(uri) {
            return this.configurations.getJSONSchema(uri);
          }
          /**
           * Get created document by uri or bufnr.
           */
          getDocument(uri) {
            return this.documentsManager.getDocument(uri);
          }
          /**
           * @internal
           */
          hasDocument(uri, version2) {
            let doc = this.documentsManager.getDocument(uri);
            return doc && (version2 != null ? doc.version == version2 : true);
          }
          /**
           * @internal
           */
          getUri(bufnr, defaultValue2 = "") {
            let doc = this.documentsManager.getDocument(bufnr);
            return doc ? doc.uri : defaultValue2;
          }
          /**
           * @internal
           */
          isAttached(bufnr) {
            let doc = this.documentsManager.getDocument(bufnr);
            return doc != null && doc.attached;
          }
          /**
           * @internal
           * Get attached document by uri or bufnr.
           * Throw error when document doesn't exist or isn't attached.
           */
          getAttachedDocument(uri) {
            let doc = this.getDocument(uri);
            if (!doc) throw new Error(`Buffer ${uri} not exists.`);
            if (!doc.attached) throw new Error(`Buffer ${uri} not attached, ${doc.notAttachReason}`);
            return doc;
          }
          /**
           * Convert location to quickfix item.
           */
          getQuickfixItem(loc, text, type = "", module2) {
            return this.documentsManager.getQuickfixItem(loc, text, type, module2);
          }
          /**
           * Create persistence Mru instance.
           */
          createMru(name2) {
            return new Mru(name2);
          }
          async getQuickfixList(locations) {
            return this.documentsManager.getQuickfixList(locations);
          }
          /**
           * Populate locations to UI.
           */
          async showLocations(locations) {
            await this.documentsManager.showLocations(locations);
          }
          /**
           * Get content of line by uri and line.
           */
          getLine(uri, line) {
            return this.documentsManager.getLine(uri, line);
          }
          /**
           * Get WorkspaceFolder of uri
           */
          getWorkspaceFolder(uri) {
            return this.workspaceFolderControl.getWorkspaceFolder(typeof uri === "string" ? u.parse(uri) : uri);
          }
          /**
           * Get content from buffer or file by uri.
           */
          readFile(uri) {
            return this.documentsManager.readFile(uri);
          }
          async getCurrentState() {
            let document2 = await this.document;
            let position = await getCursorPosition(this.nvim);
            return {
              document: document2.textDocument,
              position
            };
          }
          async getFormatOptions(uri) {
            return this.documentsManager.getFormatOptions(uri);
          }
          /**
           * Resolve module from yarn or npm.
           */
          resolveModule(name2) {
            return resolveModule(name2);
          }
          /**
           * Run nodejs command
           */
          async runCommand(cmd, cwd2, timeout2) {
            return runCommand(cmd, { cwd: cwd2 ?? this.cwd }, timeout2);
          }
          /**
           * Expand filepath with `~` and/or environment placeholders
           */
          expand(filepath) {
            return this.documentsManager.expand(filepath);
          }
          async callAsync(method, args) {
            return await callAsync(this.nvim, method, args);
          }
          registerTextDocumentContentProvider(scheme, provider) {
            return this.contentProvider.registerTextDocumentContentProvider(scheme, provider);
          }
          registerKeymap(modes, key, fn, opts = {}) {
            return this.keymaps.registerKeymap(modes, key, fn, opts);
          }
          registerExprKeymap(mode, key, fn, buffer = false, cancel = true) {
            return this.keymaps.registerExprKeymap(mode, key, fn, buffer, cancel);
          }
          registerInsertKeymap(key, fn, option) {
            return this.keymaps.registerInsertKeymap(key, fn, option);
          }
          registerLocalKeymap(bufnr, mode, key, fn, notify = false) {
            if (typeof arguments[0] === "string") {
              bufnr = this.bufnr;
              mode = arguments[0];
              key = arguments[1];
              fn = arguments[2];
              notify = arguments[3] ?? false;
            }
            return this.keymaps.registerLocalKeymap(bufnr, mode, key, fn, notify);
          }
          /**
           * Create Task instance that runs in vim.
           */
          createTask(id2) {
            return new Task(this.nvim, id2);
          }
          /**
           * Create DB instance at extension root.
           */
          createDatabase(name2) {
            return new DB(path.join(dataHome, name2 + ".json"));
          }
          registerBufferSync(create2) {
            return new BufferSync(create2, this.documentsManager);
          }
          /**
           * @internal
           */
          async attach() {
            await this.documentsManager.attach(this.nvim, this._env);
          }
          jumpTo(uri, position, openCommand) {
            return this.files.jumpTo(uri, position, openCommand);
          }
          /**
           * Findup for filename or filenames from current filepath or root.
           */
          findUp(filename) {
            return findUp2(this.nvim, this.cwd, filename);
          }
          /**
           * Apply WorkspaceEdit.
           *
           * Local will-file handlers can await this through waitUntil. Their edits
           * share the enclosing operation's recovery and are rejected after the handler
           * finishes or times out. An edit already running is allowed to finish.
           *
           * @param edit Workspace edit.
           * @param metadata Edit metadata, not used yet.
           * @returns True when the edit is applied.
           */
          applyEdit(edit2, metadata) {
            const apply = () => this.fileOperationMutex.use(() => this.files.applyEdit(edit2));
            return this.files.applyParticipantEdit(edit2, apply) ?? apply();
          }
          /**
           * Create a file in vim and disk
           */
          createFile(filepath, opts = {}) {
            return this.fileOperationMutex.use(() => this.files.createFile(filepath, opts));
          }
          /** Create a directory and its missing parent directories. */
          createDirectory(filepath) {
            return this.fileOperationMutex.use(() => this.files.createDirectory(filepath));
          }
          /** Copy a file, symbolic link, or directory without overwriting the target. */
          copyFile(source, target) {
            return this.fileOperationMutex.use(() => this.files.copyFile(source, target));
          }
          /**
           * Load uri as document.
           */
          loadFile(uri, cmd) {
            return this.files.loadResource(uri, cmd);
          }
          /**
           * Load the files that not loaded
           */
          async loadFiles(uris) {
            return this.files.loadResources(uris);
          }
          /**
           * Rename file in vim and disk
           */
          async renameFile(oldPath, newPath, opts = {}) {
            await this.fileOperationMutex.use(() => this.files.renameFile(oldPath, newPath, opts));
          }
          /**
           * Delete file from vim and disk.
           */
          async deleteFile(filepath, opts = {}) {
            await this.fileOperationMutex.use(() => this.files.deleteFile(filepath, opts));
          }
          /**
           * Open resource by uri
           */
          async openResource(uri) {
            await this.files.openResource(uri);
          }
          async computeWordRanges(uri, range2, token) {
            let doc = this.getDocument(uri);
            if (!doc) return null;
            return await doc.chars.computeWordRanges(doc.textDocument.lines, range2, token);
          }
          openTextDocument(uri) {
            return this.files.openTextDocument(uri);
          }
          /**
           * @internal
           */
          getRelativePath(pathOrUri, includeWorkspace) {
            return this.workspaceFolderControl.getRelativePath(pathOrUri, includeWorkspace);
          }
          asRelativePath(pathOrUri, includeWorkspace) {
            return this.getRelativePath(pathOrUri, includeWorkspace);
          }
          async findFiles(include, exclude, maxResults, token) {
            return this.files.findFiles(include, exclude, maxResults, token);
          }
          /**
           * @internal
           */
          detach() {
            this.documentsManager.detach();
          }
          /**
           * @internal
           */
          reset() {
            this.statusLine.reset();
            this.configurations.reset();
            this.workspaceFolderControl.reset();
            this.documentsManager.reset();
          }
          /**
           * @internal
           */
          dispose() {
            channels_default.dispose();
            this.fileSystemWatchers.dispose();
            this.files.dispose();
            this.autocmds.dispose();
            this.statusLine.dispose();
            this.watchers.dispose();
            this.contentProvider.dispose();
            this.documentsManager.dispose();
            this.configurations.dispose();
          }
        };
        workspace_default = new Workspace();
      }
    });
    
    // src/tree/filter.ts
    var sessionKey, HistoryInput, Filter;
    var init_filter2 = __esm({
      "src/tree/filter.ts"() {
        "use strict";
        init_events();
        init_protocol();
        init_util();
        sessionKey = "filter";
        HistoryInput = class {
          history = [];
          next(input) {
            let idx = this.history.indexOf(input);
            return this.history[idx + 1] ?? this.history[0];
          }
          previous(input) {
            let idx = this.history.indexOf(input);
            return this.history[idx - 1] ?? this.history[this.history.length - 1];
          }
          add(input) {
            let idx = this.history.indexOf(input);
            if (idx !== -1) {
              this.history.splice(idx, 1);
            }
            this.history.unshift(input);
          }
          toJSON() {
            return `[${this.history.join(",")}]`;
          }
        };
        Filter = class {
          constructor(nvim, keys) {
            this.nvim = nvim;
            this.text = "";
            events_default.on("InputChar", (session, character) => {
              if (session !== sessionKey || !this._activated) return;
              if (!keys.includes(character)) {
                if (character.length == 1) {
                  this.text = this.text + character;
                  this._onDidUpdate.fire(this.text);
                  return;
                }
                if (character == "" || character == "") {
                  this.text = this.text.slice(0, -1);
                  this._onDidUpdate.fire(this.text);
                  return;
                }
                if (character == "") {
                  this.text = "";
                  this._onDidUpdate.fire(this.text);
                  return;
                }
                if (character == "") {
                  let text = this.history.next(this.text);
                  if (text) {
                    this.text = text;
                    this._onDidUpdate.fire(this.text);
                  }
                  return;
                }
                if (character == "") {
                  let text = this.history.previous(this.text);
                  if (text) {
                    this.text = text;
                    this._onDidUpdate.fire(this.text);
                  }
                }
                if (character == "" || character == "") {
                  this.deactivate();
                  return;
                }
              }
              this._onDidKeyPress.fire(character);
            }, null, this.disposables);
          }
          nvim;
          _activated = false;
          text;
          history = new HistoryInput();
          disposables = [];
          _onDidUpdate = new import_node4.Emitter();
          _onDidExit = new import_node4.Emitter();
          _onDidKeyPress = new import_node4.Emitter();
          onDidKeyPress = this._onDidKeyPress.event;
          onDidUpdate = this._onDidUpdate.event;
          onDidExit = this._onDidExit.event;
          active() {
            this._activated = true;
            this.text = "";
            this.nvim.call("coc#prompt#start_prompt", [sessionKey], true);
          }
          deactivate(node) {
            if (!this._activated) return;
            this.nvim.call("coc#prompt#stop_prompt", [sessionKey], true);
            this._activated = false;
            let { text } = this;
            this.text = "";
            this._onDidExit.fire(node);
            this.history.add(text);
          }
          get activated() {
            return this._activated;
          }
          dispose() {
            this.deactivate();
            this._onDidKeyPress.dispose();
            this._onDidUpdate.dispose();
            this._onDidExit.dispose();
            disposeAll(this.disposables);
          }
        };
      }
    });
    
    // src/tree/TreeItem.ts
    function getItemLabel(item) {
      return TreeItemLabel.is(item.label) ? item.label.label : item.label;
    }
    var TreeItemLabel, TreeItemCollapsibleState, TreeItem;
    var init_TreeItem = __esm({
      "src/tree/TreeItem.ts"() {
        "use strict";
        init_esm();
        init_node();
        ((TreeItemLabel3) => {
          function is(obj) {
            return typeof obj.label == "string";
          }
          TreeItemLabel3.is = is;
        })(TreeItemLabel || (TreeItemLabel = {}));
        TreeItemCollapsibleState = /* @__PURE__ */ ((TreeItemCollapsibleState2) => {
          TreeItemCollapsibleState2[TreeItemCollapsibleState2["None"] = 0] = "None";
          TreeItemCollapsibleState2[TreeItemCollapsibleState2["Collapsed"] = 1] = "Collapsed";
          TreeItemCollapsibleState2[TreeItemCollapsibleState2["Expanded"] = 2] = "Expanded";
          return TreeItemCollapsibleState2;
        })(TreeItemCollapsibleState || {});
        TreeItem = class {
          constructor(label, collapsibleState = 0 /* None */) {
            this.collapsibleState = collapsibleState;
            if (u.isUri(label)) {
              this.resourceUri = label;
              this.label = path.basename(label.path);
              this.id = label.toString();
            } else {
              this.label = label;
            }
          }
          collapsibleState;
          label;
          id;
          description;
          icon;
          resourceUri;
          command;
          tooltip;
          deprecated;
        };
      }
    });
    
    // src/tree/TreeView.ts
    var logger26, retryTimeout, maxRetry, highlightNamespace, signOffset, globalId, BasicTreeView;
    var init_TreeView = __esm({
      "src/tree/TreeView.ts"() {
        "use strict";
        init_main();
        init_commands();
        init_events();
        init_logger();
        init_fuzzyMatch();
        init_util();
        init_array();
        init_filter();
        init_mutex();
        init_node();
        init_object();
        init_protocol();
        init_string();
        init_window();
        init_workspace();
        init_filter2();
        init_TreeItem();
        logger26 = createLogger("BasicTreeView");
        retryTimeout = getConditionValue(500, 10);
        maxRetry = getConditionValue(5, 1);
        highlightNamespace = "tree";
        signOffset = 3e3;
        globalId = 1;
        BasicTreeView = class {
          constructor(viewId, opts) {
            this.viewId = viewId;
            this.opts = opts;
            this.loadConfiguration();
            workspace_default.onDidChangeConfiguration(this.loadConfiguration, this, this.disposables);
            if (opts.enableFilter) {
              this.filter = new Filter(this.nvim, [this.keys.selectNext, this.keys.selectPrevious, this.keys.invoke]);
            }
            let id2 = globalId;
            globalId = globalId + 1;
            this.bufname = `CocTree${id2}`;
            this.tooltipFactory = window_default.createFloatFactory({ modes: ["n"] });
            this.provider = opts.treeDataProvider;
            this.leafIndent = opts.disableLeafIndent !== true;
            this.winfixwidth = opts.winfixwidth !== false;
            this.autoWidth = opts.autoWidth === true;
            let message;
            Object.defineProperty(this, "message", {
              set: (msg) => {
                message = msg ? msg.replace(/\r?\n/g, " ") : void 0;
                this.updateHeadLines();
              },
              get: () => {
                return message;
              }
            });
            let title = viewId.replace(/\r?\n/g, " ");
            Object.defineProperty(this, "title", {
              set: (newTitle) => {
                title = newTitle ? newTitle.replace(/\r?\n/g, " ") : void 0;
                this.updateHeadLines();
              },
              get: () => {
                return title;
              }
            });
            let description;
            Object.defineProperty(this, "description", {
              set: (desc) => {
                description = desc ? desc.replace(/\r?\n/g, " ") : void 0;
                this.updateHeadLines();
              },
              get: () => {
                return description;
              }
            });
            let filterText;
            Object.defineProperty(this, "filterText", {
              set: (text) => {
                let { titleCount, messageCount } = this.lineState;
                let start = titleCount + messageCount;
                if (text != null) {
                  let highlights = [{
                    lnum: start,
                    colStart: byteLength(text),
                    colEnd: byteLength(text) + 1,
                    hlGroup: "Cursor"
                  }];
                  this.renderedItems = [];
                  this.updateUI([text + " "], highlights, start, -1, true);
                  void this.doFilter(text);
                } else if (filterText != null) {
                  this.updateUI([], [], start, start + 1);
                }
                filterText = text;
              },
              get: () => {
                return filterText;
              }
            });
            if (this.provider.onDidChangeTreeData) {
              this.provider.onDidChangeTreeData(this.onDataChange, this, this.disposables);
            }
            events_default.on("BufUnload", (bufnr) => {
              if (bufnr != this.bufnr) return;
              let isVisible = this.winid != null;
              this.winid = void 0;
              this.bufnr = void 0;
              if (isVisible) this._onDidChangeVisibility.fire({ visible: false });
              this.dispose();
            }, null, this.disposables);
            events_default.on("WinClosed", (winid) => {
              if (this.winid === winid) {
                this.winid = void 0;
                this._onDidChangeVisibility.fire({ visible: false });
              }
            }, null, this.disposables);
            events_default.on("BufWinLeave", (bufnr, winid) => {
              if (bufnr == this.bufnr && winid == this.winid) {
                this.winid = void 0;
                this._onDidChangeVisibility.fire({ visible: false });
              }
            }, null, this.disposables);
            window_default.onDidTabClose((id3) => {
              if (this._targetTabId === id3) {
                this.dispose();
              }
            }, null, this.disposables);
            events_default.on("CursorHold", async (bufnr, cursor) => {
              if (bufnr != this.bufnr) return;
              await this.onHover(cursor[0]);
            }, null, this.disposables);
            events_default.on("TreeRightClick", this.onRightClick, this, this.disposables);
            events_default.on(["CursorMoved", "BufEnter"], () => {
              this.cancelResolve();
            }, null, this.disposables);
            let debounced = debounce2((bufnr, cursor) => {
              if (bufnr !== this.bufnr) return;
              let element = this.getElementByLnum(cursor[0] - 1);
              this._onDidCursorMoved.fire(element);
            }, 30);
            this.disposables.push(import_node4.Disposable.create(() => {
              debounced.clear();
            }));
            events_default.on("CursorMoved", debounced, null, this.disposables);
            events_default.on("WinEnter", (winid) => {
              if (winid != this.windowId || !this.filtering) return;
              let buf = this.nvim.createBuffer(this.bufnr);
              let line = this.startLnum - 1;
              let len = toText(this.filterText).length;
              let range2 = Range.create(line, len, line, len + 1);
              buf.highlightRanges(highlightNamespace, "Cursor", [range2]);
              this.nvim.call("coc#prompt#start_prompt", [sessionKey], true);
              this.redraw();
            }, null, this.disposables);
            events_default.on("WinLeave", (winid) => {
              if (winid != this.windowId || !this.filtering) return;
              let buf = this.nvim.createBuffer(this.bufnr);
              this.nvim.call("coc#prompt#stop_prompt", [sessionKey], true);
              buf.clearNamespace(highlightNamespace, this.startLnum - 1, this.startLnum);
            }, null, this.disposables);
            this.disposables.push(this._onDidChangeVisibility, this._onDidCursorMoved, this._onDidChangeSelection, this._onDidCollapseElement, this._onDidExpandElement);
            if (this.filter) {
              this.filter.onDidExit(async (node) => {
                let obj = node && this.nodesMap.get(node);
                let cached = this.nodesMap;
                this.nodesMap = /* @__PURE__ */ new Map();
                let didExpand = false;
                if (obj && !obj.item.command) {
                  didExpand = obj.item.collapsibleState === 1 /* Collapsed */;
                  for (let curr = node; curr; curr = this.itemsToFilter?.get(curr)) {
                    let data = cached.get(curr);
                    data.item.collapsibleState = 2 /* Expanded */;
                    this.nodesMap.set(curr, data);
                  }
                }
                this.filterText = void 0;
                this.itemsToFilter = void 0;
                let render;
                if (node && typeof this.provider.getParent === "function") {
                  this.renderedItems = [];
                  render = this.reveal(node, { focus: true });
                } else {
                  this.clearSelection();
                  render = this.render();
                }
                this._onDidFilterStateChange.fire(false);
                await render;
                if (didExpand) this._onDidExpandElement.fire({ element: node });
              });
              this.filter.onDidUpdate((text) => {
                this.filterText = text;
              });
              this.filter.onDidKeyPress(async (character) => {
                let items = toArray(this.renderedItems);
                let curr = this.selection[0];
                if (character == "" || character == this.keys.selectPrevious) {
                  let idx = items.findIndex((o2) => o2.node == curr);
                  let index = idx == -1 || idx == 0 ? items.length - 1 : idx - 1;
                  let node = items[index]?.node;
                  if (node) this.selectItem(node, true);
                }
                if (character == "" || character == this.keys.selectNext) {
                  let idx = items.findIndex((o2) => o2.node == curr);
                  let index = idx == -1 || idx == items.length - 1 ? 0 : idx + 1;
                  let node = items[index]?.node;
                  if (node) this.selectItem(node, true);
                }
                if (character == "" || character == this.keys.invoke) {
                  if (!curr) return;
                  await this.invokeCommand(curr);
                  this.filter.deactivate(curr);
                }
              });
            }
          }
          viewId;
          opts;
          bufnr;
          bufname;
          winid;
          config;
          keys;
          _targetBufnr;
          _targetWinId;
          _targetTabId;
          _selection = [];
          _keymapDefs = [];
          _onDispose = new import_node4.Emitter();
          _onDidRefrash = new import_node4.Emitter();
          _onDidExpandElement = new import_node4.Emitter();
          _onDidCollapseElement = new import_node4.Emitter();
          _onDidChangeSelection = new import_node4.Emitter();
          _onDidChangeVisibility = new import_node4.Emitter();
          _onDidFilterStateChange = new import_node4.Emitter();
          _onDidCursorMoved = new import_node4.Emitter();
          onDidRefrash = this._onDidRefrash.event;
          onDispose = this._onDispose.event;
          onDidExpandElement = this._onDidExpandElement.event;
          onDidCollapseElement = this._onDidCollapseElement.event;
          onDidChangeSelection = this._onDidChangeSelection.event;
          onDidChangeVisibility = this._onDidChangeVisibility.event;
          onDidFilterStateChange = this._onDidFilterStateChange.event;
          onDidCursorMoved = this._onDidCursorMoved.event;
          message;
          title;
          description;
          retryTimers = 0;
          renderedItems = [];
          provider;
          nodesMap = /* @__PURE__ */ new Map();
          mutex = new Mutex();
          timer;
          disposables = [];
          tooltipFactory;
          resolveTokenSource;
          lineState = { titleCount: 0, messageCount: 0 };
          filter;
          filterText;
          itemsToFilter;
          leafIndent;
          winfixwidth;
          autoWidth;
          get windowId() {
            return this.winid;
          }
          get targetTabId() {
            return this._targetTabId;
          }
          get targetWinId() {
            return this._targetWinId;
          }
          get targetBufnr() {
            return this._targetBufnr;
          }
          get startLnum() {
            let filterCount = this.filterText == null ? 0 : 1;
            return this.lineState.messageCount + this.lineState.titleCount + filterCount;
          }
          get nvim() {
            return workspace_default.nvim;
          }
          get filtering() {
            return this.filter != null && this.filter.activated;
          }
          loadConfiguration(e2) {
            if (!e2 || e2.affectsConfiguration("tree")) {
              let config = workspace_default.getConfiguration("tree", null);
              this.config = {
                openedIcon: config.get("openedIcon", " "),
                closedIcon: config.get("closedIcon", " ")
              };
              this.keys = {
                close: config.get("key.close"),
                invoke: config.get("key.invoke"),
                toggle: config.get("key.toggle"),
                actions: config.get("key.actions"),
                collapseAll: config.get("key.collapseAll"),
                toggleSelection: config.get("key.toggleSelection"),
                activeFilter: config.get("key.activeFilter"),
                selectNext: config.get("key.selectNext"),
                selectPrevious: config.get("key.selectPrevious")
              };
              if (e2 && this.visible) {
                void this.render();
              }
            }
          }
          async doFilter(text) {
            let items = [];
            let index = 0;
            let release = await this.mutex.acquire();
            try {
              if (!this.itemsToFilter) {
                let itemsToFilter = /* @__PURE__ */ new Map();
                const addNodes = async (nodes2, parent) => {
                  for (let n2 of nodes2) {
                    itemsToFilter.set(n2, parent);
                    let arr = await Promise.resolve(this.provider.getChildren(n2));
                    if (!isFalsyOrEmpty(arr)) await addNodes(arr, n2);
                  }
                };
                let nodes = await Promise.resolve(this.provider.getChildren());
                await addNodes(nodes);
                this.itemsToFilter = itemsToFilter;
              }
              let lowInput = text.toLowerCase();
              let emptyInput = text.length === 0;
              for (let n2 of this.itemsToFilter.keys()) {
                let item = await this.getTreeItem(n2);
                item = { ...item };
                let label = getItemLabel(item);
                let score3 = 0;
                if (!emptyInput) {
                  let res = fuzzyScoreGracefulAggressive(text, lowInput, 0, label, label.toLowerCase(), 0, { boostFullMatch: true, firstMatchCanBeWeak: true });
                  if (!res) continue;
                  score3 = res[0];
                  item.label = { label, highlights: toSpans(label, res) };
                } else {
                  item.label = { label, highlights: [] };
                }
                item.collapsibleState = 0 /* None */;
                let { line, highlights: highlights2 } = this.getRenderedLine(item, index, 0);
                items.push({
                  level: 0,
                  node: n2,
                  line,
                  index,
                  score: score3,
                  highlights: highlights2
                });
                index += 1;
              }
              items.sort((a2, b2) => {
                if (a2.score != b2.score) return b2.score - a2.score;
                return a2.index - b2.index;
              });
              let lnum = this.startLnum;
              let highlights = [];
              let renderedItems = this.renderedItems = items.map((o2, idx) => {
                highlights.push(...o2.highlights.map((h2) => {
                  h2.lnum = lnum + idx;
                  return h2;
                }));
                delete o2.index;
                delete o2.score;
                delete o2.highlights;
                return o2;
              });
              this.updateUI(renderedItems.map((o2) => o2.line), highlights, lnum, -1, true);
              if (renderedItems.length) {
                this.selectItem(renderedItems[0].node, true);
              } else {
                this.clearSelection();
              }
              this.redraw();
              release();
            } catch (e2) {
              release();
              logger26.error(`Error on tree filter:`, e2);
            }
          }
          async onHover(lnum) {
            let element = this.getElementByLnum(lnum - 1);
            if (!element || !this.nodesMap.has(element)) return;
            let obj = this.nodesMap.get(element);
            let item = obj.item;
            if (!item.tooltip && !obj.resolved) item = await this.resolveItem(element, item);
            if (!item.tooltip) return;
            let isMarkdown2 = MarkupContent.is(item.tooltip) && item.tooltip.kind == MarkupKind.Markdown;
            let doc = {
              filetype: isMarkdown2 ? "markdown" : "txt",
              content: MarkupContent.is(item.tooltip) ? item.tooltip.value : item.tooltip
            };
            await this.tooltipFactory.show([doc]);
          }
          async onClick(element) {
            let { nvim } = this;
            let [line, col] = await nvim.eval(`[getline('.'),col('.')]`);
            let pre = byteSlice(line, 0, col - 1);
            let character = line[pre.length];
            let { openedIcon, closedIcon } = this.config;
            if (/^\s*$/.test(pre) && [openedIcon, closedIcon].includes(character)) {
              await this.toggleExpand(element);
            } else {
              await this.invokeCommand(element);
            }
          }
          async onRightClick(winid, lnum) {
            if (winid !== this.winid || lnum === 0) return;
            let element = this.getElementByLnum(lnum - 1);
            if (!element) return;
            this.focusItem(element);
            await this.invokeActions(element);
          }
          async invokeCommand(element) {
            let obj = this.nodesMap.get(element);
            if (!obj) return;
            let item = obj.item;
            if (!item.command) item = await this.resolveItem(element, item);
            if (!item || !item.command) {
              if (item && (item.collapsibleState == 1 /* Collapsed */ || item.collapsibleState == 2 /* Expanded */)) {
                if (!this.filtering) await this.toggleExpand(element);
                return;
              }
              throw new Error(`Failed to resolve command from TreeItem.`);
            }
            if (this.opts.selectOnInvoke !== false) this.selectItem(element);
            await commands_default.execute(item.command);
          }
          async invokeActions(element) {
            if (!element) return;
            if (this.opts.selectOnInvoke !== false) this.selectItem(element);
            if (typeof this.provider.resolveActions !== "function") {
              await window_default.showWarningMessage("No actions");
              return;
            }
            let obj = this.nodesMap.get(element);
            let actions = await Promise.resolve(this.provider.resolveActions(obj.item, element));
            if (!actions || actions.length == 0) {
              await window_default.showWarningMessage("No actions available");
              return;
            }
            let keys = actions.map((o2) => o2.title);
            let res = await window_default.showMenuPicker(keys, "Choose action");
            if (res == -1) return;
            await Promise.resolve(actions[res].handler(element));
          }
          async onDataChange(node) {
            if (this.filtering) {
              this.itemsToFilter = void 0;
              await this.doFilter(toText(this.filterText));
              return;
            }
            if (!this.opts.preserveSelection) this.clearSelection();
            if (!node) {
              await this.render();
              return;
            }
            let release = await this.mutex.acquire();
            try {
              let selectionIds = this.getSelectionIds();
              let items = this.renderedItems;
              let idx = items.findIndex((o2) => o2.node === node);
              if (idx != -1 && this.bufnr) {
                let obj = items[idx];
                let level2 = obj.level;
                let removeCount = 0;
                for (let i2 = idx; i2 < items.length; i2++) {
                  let o2 = items[i2];
                  if (i2 !== idx && o2.level <= level2) break;
                  removeCount += 1;
                }
                let appendItems = [];
                let highlights = [];
                let start = idx + this.startLnum;
                await this.appendTreeNode(node, level2, start, appendItems, highlights);
                items.splice(idx, removeCount, ...appendItems);
                this.updateUI(appendItems.map((o2) => o2.line), highlights, start, start + removeCount);
                this.restoreSelection(selectionIds);
              }
              release();
            } catch (e2) {
              let errMsg = `Error on tree refresh: ${e2}`;
              logger26.error(errMsg, e2);
              this.nvim.errWriteLine("[coc.nvim] " + errMsg);
              release();
            }
          }
          async resolveItem(element, item) {
            if (typeof this.provider.resolveTreeItem === "function") {
              let tokenSource = this.resolveTokenSource = new import_node4.CancellationTokenSource();
              let token = tokenSource.token;
              item = await Promise.resolve(this.provider.resolveTreeItem(item, element, token));
              tokenSource.dispose();
              this.resolveTokenSource = void 0;
              if (token.isCancellationRequested) return void 0;
            }
            this.nodesMap.set(element, { item, resolved: true });
            return item;
          }
          get visible() {
            if (!this.bufnr) return false;
            return this.winid != null;
          }
          get valid() {
            return typeof this.bufnr === "number";
          }
          get selection() {
            return this._selection.slice();
          }
          async checkLines() {
            if (!this.bufnr) return false;
            let buf = this.nvim.createBuffer(this.bufnr);
            let curr = await buf.lines;
            let { titleCount, messageCount } = this.lineState;
            curr = curr.slice(titleCount + messageCount);
            let lines = this.renderedItems.map((o2) => o2.line);
            return equals(curr, lines);
          }
          /**
           * Expand/collapse TreeItem.
           */
          async toggleExpand(element) {
            let o2 = this.nodesMap.get(element);
            if (!o2) return;
            let treeItem = o2.item;
            let lnum = this.getItemLnum(element);
            let nodeIdx = lnum - this.startLnum;
            let obj = this.renderedItems[nodeIdx];
            if (!obj || treeItem.collapsibleState == 0 /* None */) {
              if (typeof this.provider.getParent === "function") {
                let node = await Promise.resolve(this.provider.getParent(element));
                if (node) {
                  await this.toggleExpand(node);
                  this.focusItem(node);
                }
              }
              return;
            }
            let removeCount = 0;
            if (treeItem.collapsibleState == 2 /* Expanded */) {
              let level2 = obj.level;
              for (let i2 = nodeIdx + 1; i2 < this.renderedItems.length; i2++) {
                let o3 = this.renderedItems[i2];
                if (!o3 || o3.level <= level2) break;
                removeCount += 1;
              }
              treeItem.collapsibleState = 1 /* Collapsed */;
            } else if (treeItem.collapsibleState == 1 /* Collapsed */) {
              treeItem.collapsibleState = 2 /* Expanded */;
            }
            let newItems = [];
            let newHighlights = [];
            await this.appendTreeNode(obj.node, obj.level, lnum, newItems, newHighlights);
            this.renderedItems.splice(nodeIdx, removeCount + 1, ...newItems);
            this.updateUI(newItems.map((o3) => o3.line), newHighlights, lnum, lnum + removeCount + 1);
            this.refreshSigns();
            if (treeItem.collapsibleState == 1 /* Collapsed */) {
              this._onDidCollapseElement.fire({ element });
            } else {
              this._onDidExpandElement.fire({ element });
            }
          }
          toggleSelection(element) {
            if (!element) return;
            let idx = this._selection.findIndex((o2) => o2 === element);
            if (idx !== -1) {
              this.unselectItem(idx);
            } else {
              this.selectItem(element);
            }
          }
          clearSelection() {
            if (!this.bufnr) return;
            this._selection = [];
            let buf = this.nvim.createBuffer(this.bufnr);
            buf.unplaceSign({ group: "CocTree" });
            this._onDidChangeSelection.fire({ selection: [] });
          }
          /** Capture selected item IDs before a data refresh replaces their nodes. */
          getSelectionIds() {
            let ids = /* @__PURE__ */ new Map();
            for (let item of this._selection) {
              let id2 = this.nodesMap.get(item)?.item.id;
              if (id2) ids.set(item, id2);
            }
            return ids;
          }
          /** Keep rendered selections by node identity or stable TreeItem ID. */
          restoreSelection(selectionIds = this.getSelectionIds()) {
            if (!this.opts.preserveSelection || !this.bufnr) return;
            let byId = /* @__PURE__ */ new Map();
            for (let rendered of this.renderedItems) {
              let id2 = this.nodesMap.get(rendered.node)?.item.id;
              if (id2) byId.set(id2, rendered.node);
            }
            let selection = [];
            for (let item of this._selection) {
              let rendered = this.renderedItems.find((o2) => o2.node === item)?.node;
              let id2 = selectionIds.get(item);
              let next = rendered ?? (id2 ? byId.get(id2) : void 0);
              if (next && !selection.includes(next)) selection.push(next);
            }
            let changed = selection.length !== this._selection.length || selection.some((item, index) => item !== this._selection[index]);
            this._selection = selection;
            this.refreshSigns();
            if (changed) this._onDidChangeSelection.fire({ selection: this._selection });
          }
          selectItem(item, forceSingle, noRedraw) {
            let { nvim } = this;
            let row = this.getItemLnum(item);
            if (row == null || !this.bufnr) return;
            let buf = nvim.createBuffer(this.bufnr);
            let exists = this._selection.includes(item);
            if (!this.opts.canSelectMany || forceSingle) {
              this._selection = [item];
            } else if (!exists) {
              this._selection.push(item);
            }
            nvim.pauseNotification();
            if (!this.opts.canSelectMany || forceSingle) {
              buf.unplaceSign({ group: "CocTree" });
            }
            nvim.call("win_execute", [this.winid, `normal! ${row + 1}G`], true);
            buf.placeSign({ id: signOffset + row, lnum: row + 1, name: "CocTreeSelected", group: "CocTree" });
            if (!noRedraw) this.redraw();
            nvim.resumeNotification(false, true);
            if (!exists) this._onDidChangeSelection.fire({ selection: this._selection });
          }
          unselectItem(idx) {
            let item = this._selection[idx];
            let row = this.getItemLnum(item);
            if (row == null || !this.bufnr) return;
            this._selection.splice(idx, 1);
            let buf = this.nvim.createBuffer(this.bufnr);
            buf.unplaceSign({ group: "CocTree", id: signOffset + row });
            this._onDidChangeSelection.fire({ selection: this._selection });
          }
          focusItem(element) {
            if (!this.winid) return;
            let lnum = this.getItemLnum(element);
            if (lnum == null) return;
            this.nvim.call("win_execute", [this.winid, `exe ${lnum + 1}`], true);
          }
          getElementByLnum(lnum) {
            let item = this.renderedItems[lnum - this.startLnum];
            return item ? item.node : void 0;
          }
          getItemLnum(item) {
            let idx = this.renderedItems.findIndex((o2) => o2.node === item);
            if (idx == -1) return void 0;
            return this.startLnum + idx;
          }
          async getTreeItem(element) {
            let exists;
            let resolved = false;
            let obj = this.nodesMap.get(element);
            if (obj != null) {
              exists = obj.item;
              resolved = obj.resolved;
            }
            let item = await Promise.resolve(this.provider.getTreeItem(element));
            if (exists && item && exists.collapsibleState != 0 /* None */ && item.collapsibleState != 0 /* None */) {
              item.collapsibleState = exists.collapsibleState;
            }
            this.nodesMap.set(element, { item, resolved });
            return item;
          }
          getRenderedLine(treeItem, lnum, level2) {
            let { openedIcon, closedIcon } = this.config;
            const highlights = [];
            const { label, deprecated, description } = treeItem;
            let prefix2 = "  ".repeat(level2);
            const addHighlight = (text, hlGroup) => {
              let colStart = byteLength(prefix2);
              highlights.push({
                lnum,
                hlGroup,
                colStart,
                colEnd: colStart + byteLength(text)
              });
            };
            switch (treeItem.collapsibleState) {
              case 2 /* Expanded */: {
                addHighlight(openedIcon, "CocTreeOpenClose");
                prefix2 += openedIcon + " ";
                break;
              }
              case 1 /* Collapsed */: {
                addHighlight(closedIcon, "CocTreeOpenClose");
                prefix2 += closedIcon + " ";
                break;
              }
              default:
                prefix2 += this.leafIndent ? "  " : "";
            }
            if (treeItem.icon) {
              let { text, hlGroup } = treeItem.icon;
              addHighlight(text, hlGroup);
              prefix2 += text + " ";
            }
            if (TreeItemLabel.is(label) && Array.isArray(label.highlights)) {
              let colStart = byteLength(prefix2);
              for (let o2 of label.highlights) {
                highlights.push({
                  lnum,
                  hlGroup: "CocSearch",
                  colStart: colStart + o2[0],
                  colEnd: colStart + o2[1]
                });
              }
            }
            let labelText = getItemLabel(treeItem);
            if (deprecated) {
              addHighlight(labelText, "CocDeprecatedHighlight");
            }
            prefix2 += labelText;
            if (description && description.indexOf("\n") == -1) {
              prefix2 += " ";
              addHighlight(description, "CocTreeDescription");
              prefix2 += description;
            }
            return { line: prefix2, highlights };
          }
          async appendTreeNode(element, level2, lnum, items, highlights) {
            let treeItem = await this.getTreeItem(element);
            if (!treeItem) return 0;
            let takes = 1;
            let res = this.getRenderedLine(treeItem, lnum, level2);
            highlights.push(...res.highlights);
            items.push({ level: level2, line: res.line, node: element });
            if (treeItem.collapsibleState == 2 /* Expanded */) {
              let l2 = level2 + 1;
              let children = await Promise.resolve(this.provider.getChildren(element));
              for (let el of toArray(children)) {
                let n2 = await this.appendTreeNode(el, l2, lnum + takes, items, highlights);
                takes = takes + n2;
              }
            }
            return takes;
          }
          updateUI(lines, highlights, start = 0, end = -1, noRedraw = false) {
            if (!this.bufnr) return;
            let { nvim, winid } = this;
            let buf = nvim.createBuffer(this.bufnr);
            nvim.pauseNotification();
            buf.setOption("modifiable", true, true);
            void buf.setLines(lines, { start, end, strictIndexing: false }, true);
            if (this.autoWidth) this.nvim.call("coc#window#adjust_width", [winid], true);
            if (highlights.length) {
              let highlightEnd = end == -1 ? -1 : start + lines.length;
              buf.updateHighlights(highlightNamespace, highlights, { start, end: highlightEnd });
            }
            buf.setOption("modifiable", false, true);
            if (!noRedraw) this.redraw();
            nvim.resumeNotification(false, true);
          }
          async reveal(element, options3 = {}) {
            if (this.filtering) return;
            let isShown = this.getItemLnum(element) != null;
            let { select, focus, expand: expand3 } = options3;
            let curr = element;
            if (typeof this.provider.getParent !== "function") {
              throw new Error("missing getParent function from provider for reveal.");
            }
            if (!isShown) {
              while (curr) {
                let parentNode = await Promise.resolve(this.provider.getParent(curr));
                if (parentNode) {
                  let item = await this.getTreeItem(parentNode);
                  item.collapsibleState = 2 /* Expanded */;
                  curr = parentNode;
                } else {
                  break;
                }
              }
            }
            if (expand3) {
              let item = await this.getTreeItem(element);
              if (item.collapsibleState != 0 /* None */) {
                item.collapsibleState = 2 /* Expanded */;
                if (typeof expand3 === "boolean") expand3 = 1;
                if (expand3 > 1) {
                  let curr2 = Math.min(expand3, 2);
                  let nodes = await Promise.resolve(this.provider.getChildren(element));
                  while (!isFalsyOrEmpty(nodes)) {
                    let arr = [];
                    for (let n2 of nodes) {
                      let item2 = await this.getTreeItem(n2);
                      if (item2.collapsibleState == 0 /* None */) continue;
                      item2.collapsibleState = 2 /* Expanded */;
                      if (curr2 > 1) {
                        let res = await Promise.resolve(this.provider.getChildren(n2));
                        arr.push(...res);
                      }
                    }
                    nodes = arr;
                    curr2 = curr2 - 1;
                  }
                }
              }
            }
            if (!isShown || expand3) {
              await this.render();
            }
            if (select !== false) this.selectItem(element);
            if (focus) this.focusItem(element);
          }
          updateHeadLines(initialize = false) {
            let { titleCount, messageCount } = this.lineState;
            let end = initialize ? -1 : titleCount + messageCount;
            let lines = [];
            let highlights = [];
            if (this.message) {
              highlights.push({ hlGroup: "MoreMsg", colStart: 0, colEnd: byteLength(this.message), lnum: 0 });
              lines.push(this.message);
              lines.push("");
            }
            if (this.title) {
              highlights.push({ hlGroup: "CocTreeTitle", colStart: 0, colEnd: byteLength(this.title), lnum: lines.length });
              if (this.description) {
                let colStart = byteLength(this.title) + 1;
                highlights.push({ hlGroup: "Comment", colStart, colEnd: colStart + byteLength(this.description), lnum: lines.length });
              }
              lines.push(this.title + (this.description ? " " + this.description : ""));
            }
            this.lineState.messageCount = this.message ? 2 : 0;
            this.lineState.titleCount = this.title ? 1 : 0;
            this.updateUI(lines, highlights, 0, end);
            if (!initialize) {
              this.refreshSigns();
            }
          }
          /**
           * Update signs after collapse/expand or head change
           */
          refreshSigns() {
            let { selection, nvim, bufnr } = this;
            if (!bufnr) return;
            let buf = nvim.createBuffer(bufnr);
            nvim.pauseNotification();
            buf.unplaceSign({ group: "CocTree" });
            for (let n2 of selection) {
              let row = this.getItemLnum(n2);
              if (row == null) continue;
              buf.placeSign({ id: signOffset + row, lnum: row + 1, name: "CocTreeSelected", group: "CocTree" });
            }
            nvim.resumeNotification(false, true);
          }
          // Render all tree items
          async render() {
            if (!this.bufnr) return;
            let release = await this.mutex.acquire();
            try {
              let selectionIds = this.getSelectionIds();
              let lines = [];
              let highlights = [];
              let { startLnum } = this;
              let nodes = await Promise.resolve(this.provider.getChildren());
              let level2 = 0;
              let lnum = startLnum;
              let renderedItems = [];
              if (isFalsyOrEmpty(nodes)) {
                this.message = "No results";
              } else {
                if (this.message == "No results") this.message = "";
                for (let node of nodes) {
                  let n2 = await this.appendTreeNode(node, level2, lnum, renderedItems, highlights);
                  lnum += n2;
                }
              }
              lines.push(...renderedItems.map((o2) => o2.line));
              this.renderedItems = renderedItems;
              let delta = this.startLnum - startLnum;
              highlights.forEach((o2) => o2.lnum = o2.lnum + delta);
              this.updateUI(lines, highlights, this.startLnum, -1);
              this.restoreSelection(selectionIds);
              this._onDidRefrash.fire();
              this.retryTimers = 0;
              release();
            } catch (err) {
              logger26.error("Error on render", err);
              this.renderedItems = [];
              this.nodesMap.clear();
              this.lineState = { titleCount: 0, messageCount: 1 };
              release();
              let errMsg = `${err}`.replace(/\r?\n/g, " ");
              this.updateUI([errMsg], [{ hlGroup: "WarningMsg", colStart: 0, colEnd: byteLength(errMsg), lnum: 0 }]);
              if (this.retryTimers == maxRetry) return;
              this.timer = setTimeout(() => {
                this.retryTimers = this.retryTimers + 1;
                void this.render();
              }, retryTimeout);
            }
          }
          async show(splitCommand = "belowright 30vs", waitRender = true) {
            let { nvim } = this;
            let [targetBufnr, windowId] = await nvim.eval(`[bufnr("%"),win_getid()]`);
            this._targetBufnr = targetBufnr;
            this._targetWinId = windowId;
            let opts = {
              command: splitCommand,
              bufname: this.bufname,
              viewId: this.viewId.replace(/"/g, '\\"'),
              bufnr: defaultValue(this.bufnr, -1),
              winid: defaultValue(this.winid, -1),
              bufhidden: defaultValue(this.opts.bufhidden, "wipe"),
              canSelectMany: this.opts.canSelectMany === true,
              winfixwidth: this.winfixwidth === true
            };
            let [bufnr, winid, tabId] = await nvim.call("coc#ui#create_tree", [opts]);
            this.bufnr = bufnr;
            this.winid = winid;
            this._targetTabId = tabId;
            if (winid != opts.winid) this._onDidChangeVisibility.fire({ visible: true });
            if (bufnr == opts.bufnr) return true;
            this.registerKeymaps();
            this.updateHeadLines(true);
            let promise = this.render();
            if (waitRender) await promise;
            return true;
          }
          registerLocalKeymap(mode, key, fn, notify = false) {
            if (this.bufnr) return this.addLocalKeymap(mode, key, fn, notify);
            let def = { mode, key, fn, notify };
            this._keymapDefs.push(def);
            return import_node4.Disposable.create(() => {
              let index = this._keymapDefs.indexOf(def);
              if (index !== -1) this._keymapDefs.splice(index, 1);
              def.disposable?.dispose();
            });
          }
          addLocalKeymap(mode, key, fn, notify = true) {
            if (!key) return import_node4.Disposable.create(() => {
            });
            let keymap = workspace_default.registerLocalKeymap(this.bufnr, mode, key, async () => {
              let lnum = await this.nvim.call("line", ["."]);
              let element = this.getElementByLnum(lnum - 1);
              await Promise.resolve(fn(element));
            }, notify);
            let disposed = false;
            let disposable = import_node4.Disposable.create(() => {
              if (disposed) return;
              disposed = true;
              keymap.dispose();
              let index = this.disposables.indexOf(disposable);
              if (index !== -1) this.disposables.splice(index, 1);
            });
            this.disposables.push(disposable);
            return disposable;
          }
          registerKeymaps() {
            let { toggleSelection, actions, close, invoke, toggle, collapseAll, activeFilter } = this.keys;
            let { nvim, _keymapDefs } = this;
            this.disposables.push(workspace_default.registerLocalKeymap(this.bufnr, "n", "", () => {
              nvim.call("win_gotoid", [this._targetWinId], true);
            }, true));
            this.addLocalKeymap("n", "", async (element) => {
              if (element) await this.onClick(element);
            });
            if (this.filter != null) {
              this.addLocalKeymap("n", activeFilter, async () => {
                this.nvim.command(`exe ${this.startLnum}`, true);
                this.filter.active();
                this.filterText = "";
                this._onDidFilterStateChange.fire(true);
              });
            }
            this.addLocalKeymap("n", toggleSelection, (element) => this.toggleSelection(element));
            this.addLocalKeymap("n", invoke, (element) => this.invokeCommand(element));
            this.addLocalKeymap("n", actions, (element) => this.invokeActions(element));
            this.addLocalKeymap("n", toggle, (element) => this.toggleExpand(element));
            this.addLocalKeymap("n", collapseAll, () => this.collapseAll());
            this.addLocalKeymap("n", close, () => this.hide());
            while (_keymapDefs.length) {
              const def = _keymapDefs.pop();
              def.disposable = this.addLocalKeymap(def.mode, def.key, def.fn, def.notify);
            }
          }
          hide() {
            this.nvim.call("coc#window#close", [this.winid], true);
            this.redraw();
            this.winid = void 0;
            this._onDidChangeVisibility.fire({ visible: false });
          }
          redraw() {
            if (workspace_default.isVim || this.filter?.activated) {
              this.nvim.command("redraw", true);
            }
          }
          async collapseAll() {
            for (let obj of this.nodesMap.values()) {
              let item = obj.item;
              if (item.collapsibleState == 2 /* Expanded */) {
                item.collapsibleState = 1 /* Collapsed */;
              }
            }
            await this.render();
          }
          cancelResolve() {
            if (this.resolveTokenSource) {
              this.resolveTokenSource.cancel();
              this.resolveTokenSource = void 0;
            }
          }
          dispose() {
            if (!this.provider) return;
            if (this.timer) clearTimeout(this.timer);
            this.cancelResolve();
            let { bufnr } = this;
            if (this.winid) this._onDidChangeVisibility.fire({ visible: false });
            if (bufnr) this.nvim.command(`silent! bwipeout! ${bufnr}`, true);
            this._keymapDefs = [];
            this.winid = void 0;
            this.bufnr = void 0;
            this.filter?.dispose();
            this._selection = [];
            this.itemsToFilter = /* @__PURE__ */ new Map();
            this.tooltipFactory.dispose();
            this.renderedItems = [];
            this.nodesMap.clear();
            this.provider = void 0;
            this._onDispose.fire();
            this._onDispose.dispose();
            disposeAll(this.disposables);
          }
        };
      }
    });
    
    // src/window.ts
    var Window, window_default;
    var init_window = __esm({
      "src/window.ts"() {
        "use strict";
        init_channels();
        init_dialogs();
        init_highlights();
        init_notifications();
        init_terminals();
        init_ui();
        init_TreeView();
        init_object();
        init_protocol();
        Window = class {
          nvim;
          /**
           * @internal
           */
          highlights = new Highlights();
          terminalManager = new Terminals();
          /**
           * @internal
           */
          cursors;
          /**
           * @internal
           */
          dialogs = new Dialogs();
          /**
           * @internal
           */
          notifications = new Notifications(this.dialogs);
          workspace;
          constructor() {
            Object.defineProperty(this.highlights, "nvim", {
              get: () => this.nvim
            });
            Object.defineProperty(this.dialogs, "nvim", {
              get: () => this.nvim
            });
            Object.defineProperty(this.dialogs, "configuration", {
              get: () => this.workspace.initialConfiguration
            });
            Object.defineProperty(this.notifications, "nvim", {
              get: () => this.nvim
            });
            Object.defineProperty(this.notifications, "configuration", {
              get: () => this.workspace.initialConfiguration
            });
            Object.defineProperty(this.notifications, "statusLine", {
              get: () => this.workspace.statusLine
            });
          }
          get activeTextEditor() {
            return this.workspace.editors.activeTextEditor;
          }
          get visibleTextEditors() {
            return this.workspace.editors.visibleTextEditors;
          }
          /**
           * @internal
           */
          get onDidTabClose() {
            return this.workspace.editors.onDidTabClose;
          }
          get onDidChangeActiveTextEditor() {
            return this.workspace.editors.onDidChangeActiveTextEditor;
          }
          get onDidChangeVisibleTextEditors() {
            return this.workspace.editors.onDidChangeVisibleTextEditors;
          }
          get terminals() {
            return this.terminalManager.terminals;
          }
          get onDidOpenTerminal() {
            return this.terminalManager.onDidOpenTerminal;
          }
          get onDidCloseTerminal() {
            return this.terminalManager.onDidCloseTerminal;
          }
          async createTerminal(opts) {
            return await this.terminalManager.createTerminal(this.nvim, opts);
          }
          /**
           * Run command in vim terminal for result
           * @param cmd Command to run.
           * @param cwd Cwd of terminal, default to result of |getcwd()|.
           */
          async runTerminalCommand(cmd, cwd2, keepfocus = false) {
            return await this.terminalManager.runTerminalCommand(this.nvim, cmd, cwd2, keepfocus);
          }
          /**
           * Open terminal window.
           * @param cmd Command to run.
           * @param opts Terminal option.
           * @returns number buffer number of terminal
           */
          async openTerminal(cmd, opts) {
            return await this.terminalManager.openTerminal(this.nvim, cmd, opts);
          }
          /**
           * Reveal message with message type.
           * @param msg Message text to show.
           * @param messageType Type of message, could be `error` `warning` and `more`, default to `more`
           */
          showMessage(msg, messageType = "more") {
            this.notifications.echoMessages(msg, messageType);
          }
          /**
           * Create a new output channel
           * @param name Unique name of output channel.
           * @returns A new output channel.
           */
          createOutputChannel(name2) {
            return channels_default.create(name2, this.nvim);
          }
          /**
           * Reveal buffer of output channel.
           * @param name Name of output channel.
           * @param cmd command for open output channel.
           * @param preserveFocus Preserve window focus when true.
           */
          showOutputChannel(name2, cmd, preserveFocus) {
            let command = cmd ? cmd : this.configuration.get("workspace.openOutputCommand", "vs");
            channels_default.show(name2, command, preserveFocus);
          }
          /**
           * Echo lines at the bottom of vim.
           * @param lines Line list.
           * @param truncate Truncate the lines to avoid 'press enter to continue' when true
           */
          async echoLines(lines, truncate = false) {
            await echoLines(this.nvim, this.workspace.env, lines, truncate);
          }
          /**
           * Get current cursor position (line, character both 0 based).
           * @returns Cursor position.
           */
          getCursorPosition() {
            return getCursorPosition(this.nvim);
          }
          /**
           * Move cursor to position.
           * @param position LSP position.
           */
          async moveTo(position) {
            await moveTo(this.nvim, position, this.workspace.env.isVim);
          }
          /**
           * Get selected range for current document
           */
          getSelectedRange(mode) {
            return getSelection(this.nvim, mode);
          }
          /**
           * Visual select range of current document
           */
          async selectRange(range2) {
            await selectRange(this.nvim, range2, this.nvim.isVim);
          }
          /**
           * Get current cursor character offset in document,
           * length of line break would always be 1.
           * @returns Character offset.
           */
          getOffset() {
            return getOffset(this.nvim);
          }
          /**
           * Get screen position of current cursor(relative to editor),
           * both `row` and `col` are 0 based.
           * @returns Cursor screen position.
           */
          getCursorScreenPosition() {
            return getCursorScreenPosition(this.nvim);
          }
          /**
           * Create a {@link TreeView} instance.
           * @param viewId Id of the view, used as title of TreeView when title doesn't exist.
           * @param options Options for creating the {@link TreeView}
           * @returns a {@link TreeView}.
           */
          createTreeView(viewId, options3) {
            return new BasicTreeView(viewId, options3);
          }
          /**
           * Create statusbar item that would be included in `g:coc_status`.
           * @param priority Higher priority item would be shown right.
           * @param option
           * @return A new status bar item.
           */
          createStatusBarItem(priority = 0, option = {}) {
            return this.workspace.statusLine.createStatusBarItem(priority, option.progress);
          }
          /**
           * Get diff from highlight items and current highlights on vim.
           * Return null when buffer not loaded
           * @param bufnr Buffer number
           * @param ns Highlight namespace
           * @param items Highlight items
           * @param region 0 based start and end line count (end inclusive)
           * @param token CancellationToken
           * @returns {Promise}
           */
          async diffHighlights(bufnr, ns, items, region, token) {
            return this.highlights.diffHighlights(bufnr, ns, items, region, token);
          }
          /**
           * Create a FloatFactory, user's configurations are respected.
           * @param {FloatWinConfig} conf - Float window configuration
           * @returns {FloatFactory}
           */
          createFloatFactory(conf) {
            let configuration2 = this.workspace.initialConfiguration;
            let defaults2 = toObject(configuration2.get("floatFactory.floatConfig"));
            let markdownPreference = this.workspace.configurations.markdownPreference;
            return createFloatFactory(this.workspace.nvim, Object.assign({ ...markdownPreference, maxWidth: 80 }, conf), defaults2);
          }
          /**
           * Show quickpick for single item, use `window.menuPick` for menu at current current position.
           * @deprecated Use 'window.showMenuPicker()' or `window.showQuickPick` instead.
           * @param items Label list.
           * @param placeholder Prompt text, default to 'choose by number'.
           * @returns Index of selected item, or -1 when canceled.
           */
          async showQuickpick(items, placeholder = "Choose by number") {
            return await this.showMenuPicker(items, { title: placeholder, position: "center" });
          }
          /**
           * Shows a selection list.
           */
          async showQuickPick(itemsOrItemsPromise, options3, token = import_node4.CancellationToken.None) {
            return await this.dialogs.showQuickPick(itemsOrItemsPromise, options3, token);
          }
          /**
           * Creates a {@link QuickPick} to let the user pick an item or items from a
           * list of items of type T.
           *
           * Note that in many cases the more convenient {@link window.showQuickPick}
           * is easier to use. {@link window.createQuickPick} should be used
           * when {@link window.showQuickPick} does not offer the required flexibility.
           * @return A new {@link QuickPick}.
           */
          async createQuickPick(config = {}) {
            return await this.dialogs.createQuickPick(config);
          }
          /**
           * @internal
           */
          async requestInputList(prompt, items) {
            if (items.length > this.workspace.env.lines) {
              items = items.slice(0, this.workspace.env.lines - 2);
            }
            return await this.dialogs.requestInputList(prompt, items);
          }
          /**
           * Show menu picker at current cursor position.
           * @param items Array of texts.
           * @param option Options for menu.
           * @param token A token that can be used to signal cancellation.
           * @returns Selected index (0 based), -1 when canceled.
           */
          async showMenuPicker(items, option, token) {
            return await this.dialogs.showMenuPicker(items, option, token);
          }
          /**
           * Prompt user for confirm, a float/popup window would be used when possible,
           * use vim's |confirm()| function as callback.
           * @param title The prompt text.
           * @returns Result of confirm.
           */
          async showPrompt(title) {
            return await this.dialogs.showPrompt(title);
          }
          /**
           * Show dialog window at the center of screen.
           * Note that the dialog would always be closed after button click.
           * @param config Dialog configuration.
           * @returns Dialog or null when dialog can't work.
           */
          async showDialog(config) {
            return await this.dialogs.showDialog(config);
          }
          /**
           * Request input from user
           * @param title Title text of prompt window.
           * @param value Default value of input, empty text by default.
           * @param {InputOptions} option for input window
           * @returns {Promise}
           */
          async requestInput(title, value, option) {
            return await this.dialogs.requestInput(title, this.workspace.env, value, option);
          }
          /**
           * Creates and show a {@link InputBox} to let the user enter some text input.
           * @return A new {@link InputBox}.
           */
          async createInputBox(title, value, option) {
            return await this.dialogs.createInputBox(title, value, option);
          }
          async showPickerDialog(items, title, token) {
            return await this.dialogs.showPickerDialog(items, title, token);
          }
          /**
           * Show an information message to users. Optionally provide an array of items which will be presented as
           * clickable buttons.
           * @param message The message to show.
           * @param items A set of items that will be rendered as actions in the message.
           * @return Promise that resolves to the selected item or `undefined` when being dismissed.
           */
          async showInformationMessage(message, ...items) {
            return await this.notifications._showMessage("Info", message, items);
          }
          /**
           * Show an warning message to users. Optionally provide an array of items which will be presented as
           * clickable buttons.
           * @param message The message to show.
           * @param items A set of items that will be rendered as actions in the message.
           * @return Promise that resolves to the selected item or `undefined` when being dismissed.
           */
          async showWarningMessage(message, ...items) {
            return await this.notifications._showMessage("Warning", message, items);
          }
          /**
           * Show an error message to users. Optionally provide an array of items which will be presented as
           * clickable buttons.
           * @param message The message to show.
           * @param items A set of items that will be rendered as actions in the message.
           * @return Promise that resolves to the selected item or `undefined` when being dismissed.
           */
          async showErrorMessage(message, ...items) {
            return await this.notifications._showMessage("Error", message, items);
          }
          async showNotification(config) {
            let stack = false ? void 0 : Error().stack;
            await this.notifications.showNotification(config, stack);
          }
          /**
           * Show progress in the editor. Progress is shown while running the given callback
           * and while the promise it returned isn't resolved nor rejected.
           */
          async withProgress(options3, task) {
            return this.notifications.withProgress(options3, task);
          }
          /**
           * Apply highlight diffs, normally used with `window.diffHighlights`
           *
           * Timer is used to add highlights when there're too many highlight items to add,
           * the highlight process won't be finished on that case.
           * @param {number} bufnr - Buffer name
           * @param {string} ns - Namespace
           * @param {number} priority
           * @param {HighlightDiff} diff
           * @param {boolean} notify - Use notification, default false.
           * @returns {Promise}
           */
          async applyDiffHighlights(bufnr, ns, priority, diff, notify = false) {
            return this.highlights.applyDiffHighlights(bufnr, ns, priority, diff, notify);
          }
          /**
           * Get visible ranges of bufnr with optional winid
           */
          async getVisibleRanges(bufnr, winid) {
            return await getVisibleRanges(this.nvim, bufnr, winid);
          }
          get configuration() {
            return this.workspace.initialConfiguration;
          }
          /**
           * @internal
           */
          dispose() {
            this.terminalManager.dispose();
          }
        };
        window_default = new Window();
      }
    });
    
    // src/snippets/eval.ts
    function generateContextId(bufnr) {
      return `${bufnr}-${context_id++}`;
    }
    function hasPython(snip) {
      if (!snip) return false;
      if (snip.context) return true;
      if (snip.actions && Object.keys(snip.actions).length > 0) return true;
      return false;
    }
    function getResetPythonCode(context) {
      const pyCodes = [];
      pyCodes.push(`${contexts_var} = ${contexts_var} if '${contexts_var}' in locals() else {}`);
      pyCodes.push(`context = ${contexts_var}.get('${context.id}', {}).get('context', None)`);
      pyCodes.push(`match = ${contexts_var}.get('${context.id}', {}).get('match', None)`);
      return pyCodes;
    }
    function getPyBlockCode(snip) {
      let { range: range2, line } = snip;
      let pyCodes = [
        "import re, os, vim, string, random",
        `path = vim.eval('coc#util#get_fullpath()') or ""`,
        `fn = os.path.basename(path)`
      ];
      let start = `(${range2.start.line},${range2.start.character})`;
      let end = `(${range2.start.line},${range2.end.character})`;
      let indent = line.match(/^\s*/)[0];
      pyCodes.push(...getResetPythonCode(snip));
      pyCodes.push(`snip = SnippetUtil("${escapeString(indent)}", ${start}, ${end}, context)`);
      return pyCodes;
    }
    function getInitialPythonCode(context) {
      let pyCodes = [
        "import re, os, vim, string, random",
        `path = vim.eval('coc#util#get_fullpath()') or ""`,
        `fn = os.path.basename(path)`
      ];
      let { range: range2, regex: regex2, line, id: id2 } = context;
      if (context.context) {
        pyCodes.push(`snip = ContextSnippet()`);
        pyCodes.push(`context = ${context.context}`);
      } else {
        pyCodes.push(`context = None`);
      }
      if (regex2 && Range.is(range2)) {
        let trigger = line.slice(range2.start.character, range2.end.character);
        pyCodes.push(`pattern = re.compile("${escapeString(regex2)}")`);
        pyCodes.push(`match = pattern.search("${escapeString(trigger)}")`);
      } else {
        pyCodes.push(`match = None`);
      }
      pyCodes.push(`${contexts_var} = ${contexts_var} if '${contexts_var}' in locals() else {}`);
      let prefix2 = id2.match(/^\w+-/)[0];
      pyCodes.push(`${contexts_var} = {k: v for k, v in ${contexts_var}.items() if k.startswith('${prefix2}')}`);
      pyCodes.push(`${contexts_var}['${context.id}'] = {'context': context, 'match': match}`);
      return pyCodes;
    }
    async function executePythonCode(nvim, codes) {
      if (codes.length == 0) return;
      let lines = [...codes];
      lines.unshift(`__requesting = ${events_default.requesting ? "True" : "False"}`);
      try {
        await nvim.command(`pyx ${addPythonTryCatch(lines.join("\n"))}`);
      } catch (e2) {
        let err = new Error(e2.message);
        err.stack = `Error on execute python code:
    ${codes.join("\n")}
    ` + e2.stack;
        throw err;
      }
    }
    function getVariablesCode(values) {
      let keys = Object.keys(values);
      if (keys.length == 0) return `t = ()`;
      let maxIndex = Math.max.apply(null, keys.map((v2) => Number(v2)));
      let vals = new Array(maxIndex).fill('""');
      for (let [idx, val] of Object.entries(values)) {
        vals[idx] = `"${escapeString(val)}"`;
      }
      return `t = (${vals.join(",")},)`;
    }
    function addPythonTryCatch(code, force = false) {
      if (!isVim && force === false) return code;
      let lines = [
        "import traceback, vim",
        `vim.vars['errmsg'] = ''`,
        "try:"
      ];
      lines.push(...code.split("\n").map((line) => "    " + line));
      lines.push("except Exception as e:");
      lines.push(`    vim.vars['errmsg'] = traceback.format_exc()`);
      return lines.join("\n");
    }
    function escapeString(input) {
      return input.replace(/\\/g, "\\\\").replace(/"/g, '\\"').replace(/\t/g, "\\t").replace(/\n/g, "\\n");
    }
    var contexts_var, context_id;
    var init_eval = __esm({
      "src/snippets/eval.ts"() {
        "use strict";
        init_main();
        init_events();
        init_constants();
        contexts_var = "__coc_ultisnip_contexts";
        context_id = 1;
      }
    });
    
    // src/util/async.ts
    function waitImmediate2() {
      return new Promise((resolve) => {
        setImmediate(() => {
          resolve(void 0);
        });
      });
    }
    async function runSequence(funcs, token) {
      for (const fn of funcs) {
        if (token.isCancellationRequested) {
          break;
        }
        await fn();
      }
    }
    async function forEach(items, func2, token, options3) {
      if (items.length === 0) {
        return;
      }
      const timer = new Timer(options3?.yieldAfter);
      function runBatch(start) {
        timer.start();
        for (let i2 = start; i2 < items.length; i2++) {
          func2(items[i2]);
          if (timer.shouldYield()) {
            if (options3?.yieldCallback) {
              options3.yieldCallback();
            }
            return i2 + 1;
          }
        }
        return -1;
      }
      let index = runBatch(0);
      while (index !== -1) {
        await waitImmediate2();
        if (token !== void 0 && token.isCancellationRequested) {
          break;
        }
        index = runBatch(index);
      }
    }
    async function filter2(items, isValid, onFilter, token) {
      if (items.length === 0) return;
      const timer = new Timer();
      const len = items.length;
      function convertBatch(start) {
        const result = [];
        timer.start();
        for (let i2 = start; i2 < len; i2++) {
          let item = items[i2];
          let res = isValid(item);
          if (res === true) {
            result.push(item);
          } else if (res) {
            result.push(Object.assign({}, item, res));
          }
          if (timer.shouldYield()) {
            let done = i2 === len - 1;
            onFilter(result, done);
            return done ? -1 : i2 + 1;
          }
        }
        onFilter(result, true);
        return -1;
      }
      let index = convertBatch(0);
      while (index !== -1) {
        await waitImmediate2();
        if (token != null && token.isCancellationRequested) {
          break;
        }
        index = convertBatch(index);
      }
    }
    var defaultYieldTimeout, Timer;
    var init_async = __esm({
      "src/util/async.ts"() {
        "use strict";
        defaultYieldTimeout = 15;
        Timer = class {
          yieldAfter;
          startTime;
          counter;
          total;
          counterInterval;
          constructor(yieldAfter = defaultYieldTimeout) {
            this.yieldAfter = Math.max(yieldAfter, defaultYieldTimeout);
            this.startTime = Date.now();
            this.counter = 0;
            this.total = 0;
            this.counterInterval = 1;
          }
          start() {
            this.startTime = Date.now();
          }
          shouldYield() {
            if (++this.counter >= this.counterInterval) {
              const timeTaken = Date.now() - this.startTime;
              const timeLeft = Math.max(0, this.yieldAfter - timeTaken);
              this.total += this.counter;
              this.counter = 0;
              if (timeTaken >= this.yieldAfter || timeLeft <= 1) {
                this.counterInterval = 1;
                this.total = 0;
                return true;
              } else {
                switch (timeTaken) {
                  case 0:
                  case 1:
                    this.counterInterval = this.total * 2;
                    break;
                }
              }
            }
            return false;
          }
        };
      }
    });
    
    // src/snippets/util.ts
    var util_exports = {};
    __export(util_exports, {
      WordsSource: () => WordsSource,
      convertRegex: () => convertRegex,
      getAction: () => getAction,
      getNewRange: () => getNewRange,
      getTextAfter: () => getTextAfter,
      getTextBefore: () => getTextBefore,
      normalizeSnippetString: () => normalizeSnippetString,
      shouldFormat: () => shouldFormat,
      toSnippetString: () => toSnippetString,
      wordsSource: () => wordsSource
    });
    function convertRegex(str) {
      if (str.indexOf("\\z") !== -1) {
        throw new Error("pattern \\z not supported");
      }
      if (str.indexOf("(?s)") !== -1) {
        throw new Error("pattern (?s) not supported");
      }
      if (str.indexOf("(?x)") !== -1) {
        throw new Error("pattern (?x) not supported");
      }
      if (str.indexOf("\n") !== -1) {
        throw new Error("pattern \\n not supported");
      }
      if (conditionRe.test(str)) {
        throw new Error("pattern (?id/name)yes-pattern|no-pattern not supported");
      }
      return str.replace(regex, (match2, p1) => {
        if (match2.startsWith("(?#")) return "";
        if (match2.startsWith("(?P<")) return "(?" + match2.slice(3);
        if (match2.startsWith("(?P=")) return `\\k<${p1}>`;
        return "^";
      });
    }
    function getAction(opt, action) {
      if (!opt || !opt.actions) return void 0;
      return opt.actions[action];
    }
    function shouldFormat(snippet) {
      if (/^\s/.test(snippet)) return true;
      if (snippet.indexOf("\n") !== -1) return true;
      return false;
    }
    function normalizeSnippetString(snippet, indent, opts) {
      let lines = snippet.split(/\r?\n/);
      let ind = opts.insertSpaces ? " ".repeat(opts.tabSize) : "	";
      let tabSize = defaultValue(opts.tabSize, 2);
      let noExpand = opts.noExpand;
      let trimTrailingWhitespace = opts.trimTrailingWhitespace;
      lines = lines.map((line, idx) => {
        let space = line.match(/^\s*/)[0];
        let pre = space;
        let isTab = space.startsWith("	");
        if (isTab && opts.insertSpaces && !noExpand) {
          pre = ind.repeat(space.length);
        } else if (!isTab && !opts.insertSpaces) {
          pre = ind.repeat(space.length / tabSize);
        }
        return (idx == 0 || trimTrailingWhitespace && line.length == 0 ? "" : indent) + pre + line.slice(space.length);
      });
      return lines.join("\n");
    }
    function getNewRange(base, pos, value) {
      const { line, character } = base;
      const start = {
        line: line + pos.line,
        character: pos.line == 0 ? character + pos.character : pos.character
      };
      return Range.create(start, getEnd(start, value));
    }
    function getTextBefore(range2, text, pos) {
      let newLines = [];
      let { line, character } = range2.start;
      let n2 = pos.line - line;
      const lines = text.split("\n");
      for (let i2 = 0; i2 <= n2; i2++) {
        let line2 = lines[i2];
        if (i2 == n2) {
          newLines.push(line2.slice(0, i2 == 0 ? pos.character - character : pos.character));
        } else {
          newLines.push(line2);
        }
      }
      return newLines.join("\n");
    }
    function getTextAfter(range2, text, pos) {
      let newLines = [];
      let n2 = range2.end.line - pos.line;
      const lines = text.split("\n");
      let len = lines.length;
      for (let i2 = 0; i2 <= n2; i2++) {
        let idx = len - i2 - 1;
        let line = lines[idx];
        if (i2 == n2) {
          let sc = range2.start.character;
          let from = idx == 0 ? pos.character - sc : pos.character;
          newLines.unshift(line.slice(from));
        } else {
          newLines.unshift(line);
        }
      }
      return newLines.join("\n");
    }
    function toSnippetString(snippet) {
      if (typeof snippet === "string") {
        return snippet;
      }
      if (typeof snippet.value === "string") {
        return snippet.value;
      }
      throw new TypeError(`Snippet should be string or has value as string`);
    }
    var stringStartRe, conditionRe, commentRe, namedCaptureRe, namedReferenceRe, regex, WordsSource, wordsSource;
    var init_util4 = __esm({
      "src/snippets/util.ts"() {
        "use strict";
        init_main();
        init_util();
        init_position();
        stringStartRe = /\\A/;
        conditionRe = /\(\?\(\w+\).+\|/;
        commentRe = /\(\?#.*?\)/;
        namedCaptureRe = /\(\?P<\w+>.*?\)/;
        namedReferenceRe = /\(\?P=(\w+)\)/;
        regex = new RegExp(`${commentRe.source}|${stringStartRe.source}|${namedCaptureRe.source}|${namedReferenceRe.source}`, "g");
        WordsSource = class {
          name = "$words";
          shortcut = "";
          triggerOnly = true;
          words = [];
          startcol;
          doComplete(opt) {
            return {
              startcol: this.startcol,
              items: this.words.map((s2) => {
                return { word: s2, filterText: opt.input };
              })
            };
          }
        };
        wordsSource = new WordsSource();
      }
    });
    
    // src/snippets/parser.ts
    function walk(marker, visitor, ignoreChild = false) {
      const stack = [...marker];
      while (stack.length > 0) {
        const marker2 = stack.shift();
        if (ignoreChild && marker2 instanceof TextmateSnippet) continue;
        const recurse = visitor(marker2);
        if (!recurse) {
          break;
        }
        stack.unshift(...marker2.children);
      }
    }
    function transformEscapes(input, backslashIndexes = []) {
      let res = "";
      let len = input.length;
      let i2 = 0;
      let toUpper = false;
      let toLower2 = false;
      while (i2 < len) {
        let ch = input[i2];
        if (ch.charCodeAt(0) === 92 /* Backslash */ && !backslashIndexes.includes(i2)) {
          let next = input[i2 + 1];
          if (escapedCharacters.includes(next)) {
            i2++;
            continue;
          }
          if (next == "u" || next == "l") {
            let follow = input[i2 + 2];
            if (follow) res = res + (next == "u" ? follow.toUpperCase() : follow.toLowerCase());
            i2 = i2 + 3;
            continue;
          }
          if (next == "U" || next == "L") {
            if (next == "U") {
              toUpper = true;
            } else {
              toLower2 = true;
            }
            i2 = i2 + 2;
            continue;
          }
          if (next == "E") {
            toUpper = false;
            toLower2 = false;
            i2 = i2 + 2;
            continue;
          }
          if (next == "n") {
            res += "\n";
            i2 = i2 + 2;
            continue;
          }
          if (next == "t") {
            res += "	";
            i2 = i2 + 2;
            continue;
          }
        }
        if (toUpper) {
          ch = ch.toUpperCase();
        } else if (toLower2) {
          ch = ch.toLowerCase();
        }
        res += ch;
        i2++;
      }
      return res;
    }
    function mergeTexts(marker, begin = 0) {
      let { children } = marker;
      let end;
      let start;
      for (let i2 = begin; i2 < children.length; i2++) {
        let m3 = children[i2];
        if (m3 instanceof Text) {
          if (start !== void 0) {
            end = i2;
          } else {
            start = i2;
          }
        } else {
          if (end !== void 0) {
            break;
          }
          start = void 0;
        }
      }
      if (end === void 0) return;
      let newText = "";
      for (let i2 = start; i2 <= end; i2++) {
        newText += children[i2].toString();
      }
      let m2 = new Text(newText);
      children.splice(start, end - start + 1, m2);
      m2.parent = marker;
      return mergeTexts(marker, start + 1);
    }
    function getPlaceholderId(p2) {
      if (typeof p2.id === "number") return p2.id;
      p2.id = id++;
      return p2.id;
    }
    var import_child_process, logger27, ULTISNIP_VARIABLES, id, snippet_id, knownRegexOptions, ultisnipSpecialEscape, Scanner, Marker, Text, CodeBlock, TransformableMarker, Placeholder, Choice, Transform, ConditionString, FormatString, Variable, TextmateSnippet, SnippetParser, escapedCharacters;
    var init_parser3 = __esm({
      "src/snippets/parser.ts"() {
        "use strict";
        import_child_process = require("child_process");
        init_logger();
        init_array();
        init_async();
        init_charCode();
        init_errors();
        init_node();
        init_string();
        init_eval();
        init_util4();
        logger27 = createLogger("snippets-parser");
        ULTISNIP_VARIABLES = ["VISUAL", "YANK", "UUID"];
        id = 0;
        snippet_id = 0;
        knownRegexOptions = ["d", "g", "i", "m", "s", "u", "y"];
        ultisnipSpecialEscape = ["u", "l", "U", "L", "E", "n", "t"];
        Scanner = class _Scanner {
          static _table = {
            [36 /* DollarSign */]: 0 /* Dollar */,
            [58 /* Colon */]: 1 /* Colon */,
            [44 /* Comma */]: 2 /* Comma */,
            [123 /* OpenCurlyBrace */]: 3 /* CurlyOpen */,
            [125 /* CloseCurlyBrace */]: 4 /* CurlyClose */,
            [92 /* Backslash */]: 5 /* Backslash */,
            [47 /* Slash */]: 6 /* Forwardslash */,
            [124 /* Pipe */]: 7 /* Pipe */,
            [43 /* Plus */]: 11 /* Plus */,
            [45 /* Dash */]: 12 /* Dash */,
            [63 /* QuestionMark */]: 13 /* QuestionMark */,
            [40 /* OpenParen */]: 15 /* OpenParen */,
            [41 /* CloseParen */]: 16 /* CloseParen */,
            [96 /* BackTick */]: 17 /* BackTick */,
            [33 /* ExclamationMark */]: 18 /* ExclamationMark */
          };
          static isDigitCharacter(ch) {
            return ch >= 48 /* Digit0 */ && ch <= 57 /* Digit9 */;
          }
          static isVariableCharacter(ch) {
            return ch === 95 /* Underline */ || ch >= 97 /* a */ && ch <= 122 /* z */ || ch >= 65 /* A */ && ch <= 90 /* Z */;
          }
          value;
          pos;
          constructor() {
            this.text("");
          }
          text(value) {
            this.value = value;
            this.pos = 0;
          }
          tokenText(token) {
            return this.value.slice(token.pos, token.pos + token.len);
          }
          isEnd() {
            return this.pos >= this.value.length;
          }
          next() {
            if (this.pos >= this.value.length) {
              return { type: 14 /* EOF */, pos: this.pos, len: 0 };
            }
            let pos = this.pos;
            let len = 0;
            let ch = this.value.charCodeAt(pos);
            let type;
            type = _Scanner._table[ch];
            if (typeof type === "number") {
              this.pos += 1;
              return { type, pos, len: 1 };
            }
            if (_Scanner.isDigitCharacter(ch)) {
              type = 8 /* Int */;
              do {
                len += 1;
                ch = this.value.charCodeAt(pos + len);
              } while (_Scanner.isDigitCharacter(ch));
              this.pos += len;
              return { type, pos, len };
            }
            if (_Scanner.isVariableCharacter(ch)) {
              type = 9 /* VariableName */;
              do {
                ch = this.value.charCodeAt(pos + ++len);
              } while (_Scanner.isVariableCharacter(ch) || _Scanner.isDigitCharacter(ch));
              this.pos += len;
              return { type, pos, len };
            }
            type = 10 /* Format */;
            do {
              len += 1;
              ch = this.value.charCodeAt(pos + len);
            } while (!isNaN(ch) && typeof _Scanner._table[ch] === "undefined" && !_Scanner.isDigitCharacter(ch) && !_Scanner.isVariableCharacter(ch));
            this.pos += len;
            return { type, pos, len };
          }
        };
        Marker = class {
          parent;
          _children = [];
          appendChild(child) {
            if (child instanceof Text && this._children[this._children.length - 1] instanceof Text) {
              this._children[this._children.length - 1].value += child.value;
            } else {
              child.parent = this;
              this._children.push(child);
            }
            return this;
          }
          setOnlyChild(child) {
            child.parent = this;
            this._children = [child];
          }
          replaceChildren(children) {
            for (const child of children) {
              child.parent = this;
            }
            this._children = children;
          }
          replaceWith(newMarker) {
            if (!this.parent) return false;
            let p2 = this.parent;
            let idx = p2.children.indexOf(this);
            if (idx == -1) return false;
            newMarker.parent = p2;
            p2.children.splice(idx, 1, newMarker);
            return true;
          }
          insertBefore(text) {
            if (!this.parent) return;
            let p2 = this.parent;
            let idx = p2.children.indexOf(this);
            if (idx == -1) return;
            let prev = p2.children[idx - 1];
            if (prev instanceof Text) {
              let v2 = prev.value;
              prev.replaceWith(new Text(v2 + text));
            } else {
              let marker = new Text(text);
              marker.parent = p2;
              p2.children.splice(idx, 0, marker);
            }
          }
          get children() {
            return this._children;
          }
          get snippet() {
            let candidate = this;
            while (true) {
              if (!candidate) {
                return void 0;
              }
              if (candidate instanceof TextmateSnippet) {
                return candidate;
              }
              candidate = candidate.parent;
            }
          }
          toString() {
            return this.children.reduce((prev, cur) => prev + cur.toString(), "");
          }
          len() {
            return 0;
          }
        };
        Text = class _Text extends Marker {
          constructor(value) {
            super();
            this.value = value;
          }
          value;
          static escape(value) {
            return value.replace(/\$|}|\\/g, "\\$&");
          }
          toString() {
            return this.value;
          }
          toTextmateString() {
            return _Text.escape(this.value);
          }
          len() {
            return this.value.length;
          }
          clone() {
            return new _Text(this.value);
          }
        };
        CodeBlock = class _CodeBlock extends Marker {
          constructor(code, kind, value, related) {
            super();
            this.code = code;
            this.kind = kind;
            if (Array.isArray(related)) {
              this._related = related;
            } else if (kind === "python") {
              this._related = _CodeBlock.parseRelated(code);
            }
            if (typeof value === "string") this._value = value;
          }
          code;
          kind;
          _value = "";
          _related = [];
          static parseRelated(code) {
            let list2 = [];
            let arr;
            let re = /\bt\[(\d+)\]/g;
            while (true) {
              arr = re.exec(code);
              if (arr == null) break;
              let n2 = parseInt(arr[1], 10);
              if (!list2.includes(n2)) list2.push(n2);
            }
            return list2;
          }
          get related() {
            return this._related;
          }
          get index() {
            if (this.parent instanceof Placeholder) {
              return this.parent.index;
            }
            return void 0;
          }
          async resolve(nvim, token) {
            if (!this.code.length) return;
            if (token?.isCancellationRequested) return;
            let res;
            if (this.kind == "python") {
              res = await this.evalPython(nvim, token);
            } else if (this.kind == "vim") {
              res = await this.evalVim(nvim);
            } else if (this.kind == "shell") {
              res = await this.evalShell();
            }
            if (token?.isCancellationRequested) return;
            if (res != null) this._value = res;
          }
          async evalShell() {
            let opts = { windowsHide: true };
            Object.assign(opts, { shell: process.env.SHELL });
            let res = await (0, import_util.promisify)(import_child_process.exec)(this.code, opts);
            return res.stdout.toString().replace(/\s*$/, "");
          }
          async evalVim(nvim) {
            let res = await nvim.eval(this.code);
            return res == null ? "" : res.toString();
          }
          async evalPython(nvim, token) {
            let curr = toText(this._value);
            let lines = [`snip._reset("${escapeString(curr)}")`];
            lines.push(...this.code.split(/\r?\n/).map((line) => line.replace(/\t/g, "    ")));
            await executePythonCode(nvim, lines);
            if (token?.isCancellationRequested) return;
            return await nvim.call(`pyxeval`, "str(snip.rv)");
          }
          len() {
            return this._value.length;
          }
          toString() {
            return this._value;
          }
          get value() {
            return this._value;
          }
          toTextmateString() {
            let t2 = "";
            if (this.kind == "python") {
              t2 = "!p ";
            } else if (this.kind == "shell") {
              t2 = "";
            } else if (this.kind == "vim") {
              t2 = "!v ";
            }
            return "`" + t2 + this.code + "`";
          }
          clone() {
            return new _CodeBlock(this.code, this.kind, this.value, this._related.slice());
          }
        };
        TransformableMarker = class extends Marker {
          transform;
        };
        Placeholder = class _Placeholder extends TransformableMarker {
          constructor(index) {
            super();
            this.index = index;
          }
          index;
          primary = false;
          id;
          get isFinalTabstop() {
            return this.index === 0;
          }
          get choice() {
            return this._children.length === 1 && this._children[0] instanceof Choice ? this._children[0] : void 0;
          }
          toTextmateString() {
            let transformString = "";
            if (this.transform) {
              transformString = this.transform.toTextmateString();
            }
            if (this.children.length === 0 && !this.transform) {
              return `$${this.index}`;
            } else if (this.children.length === 0 || this.children.length == 1 && this.children[0].toTextmateString() == "") {
              return `\${${this.index}${transformString}}`;
            } else if (this.choice) {
              return `\${${this.index}|${this.choice.toTextmateString()}|${transformString}}`;
            } else {
              return `\${${this.index}:${this.children.map((child) => child.toTextmateString()).join("")}${transformString}}`;
            }
          }
          clone() {
            let ret = new _Placeholder(this.index);
            if (this.transform) {
              ret.transform = this.transform.clone();
            }
            ret.id = this.id;
            ret.primary = this.primary;
            ret._children = this.children.map((child) => {
              let m2 = child.clone();
              m2.parent = ret;
              return m2;
            });
            return ret;
          }
          checkParentPlaceHolders() {
            let idx = this.index;
            let p2 = this.parent;
            while (p2 != null && !(p2 instanceof TextmateSnippet)) {
              if (p2 instanceof _Placeholder && p2.index == idx) {
                throw new Error(`Parent placeholder has same index: ${idx}`);
              }
              p2 = p2.parent;
            }
          }
        };
        Choice = class _Choice extends Marker {
          _index;
          constructor(index = 0) {
            super();
            this._index = index;
          }
          options = [];
          appendChild(marker) {
            if (marker instanceof Text) {
              marker.parent = this;
              this.options.push(marker);
            }
            return this;
          }
          toString() {
            return this.options[this._index].value;
          }
          toTextmateString() {
            return this.options.map((option) => option.value.replace(/\||,/g, "\\$&")).join(",");
          }
          len() {
            return this.options[this._index].len();
          }
          clone() {
            let ret = new _Choice(this._index);
            for (let opt of this.options) {
              ret.appendChild(opt);
            }
            return ret;
          }
        };
        Transform = class _Transform extends Marker {
          regexp;
          ascii = false;
          ultisnip = false;
          resolve(value) {
            let didMatch = false;
            let ret = value.replace(this.regexp, (...args) => {
              didMatch = true;
              return this._replace(args.slice(0, -2));
            });
            if (!didMatch && this._children.some((child) => child instanceof FormatString && Boolean(child.elseValue))) {
              ret = this._replace([]);
            }
            return ret;
          }
          _replace(groups) {
            let ret = "";
            let backslashIndexes = [];
            for (const marker of this._children) {
              let val = "";
              let len = ret.length;
              if (marker instanceof FormatString) {
                val = marker.resolve(groups[marker.index] ?? "");
                if (this.ultisnip && val.indexOf("\\") !== -1) {
                  for (let idx of iterateCharacter(val, "\\")) {
                    backslashIndexes.push(len + idx);
                  }
                }
              } else if (marker instanceof ConditionString) {
                val = marker.resolve(groups[marker.index]);
                if (this.ultisnip) {
                  val = val.replace(/(? {
                    return toText(groups[Number(args[1])]);
                  });
                }
              } else {
                val = marker.toString();
              }
              ret += val;
            }
            if (this.ascii) ret = unidecode(ret);
            return this.ultisnip ? transformEscapes(ret, backslashIndexes) : ret;
          }
          toString() {
            return "";
          }
          toTextmateString() {
            let format5 = this.children.map((c2) => c2.toTextmateString()).join("");
            if (this.ultisnip) {
              format5 = format5.replace(/\\\\(\w)/g, (match2, ch) => {
                if (ultisnipSpecialEscape.includes(ch)) {
                  return "\\" + ch;
                }
                return match2;
              });
            }
            return `/${this.regexp.source}/${format5}/${(this.regexp.ignoreCase ? "i" : "") + (this.regexp.global ? "g" : "")}`;
          }
          clone() {
            let ret = new _Transform();
            ret.regexp = new RegExp(this.regexp.source, (this.regexp.ignoreCase ? "i" : "") + (this.regexp.global ? "g" : ""));
            ret._children = this.children.map((child) => {
              let m2 = child.clone();
              m2.parent = ret;
              return m2;
            });
            return ret;
          }
        };
        ConditionString = class _ConditionString extends Marker {
          constructor(index, ifValue, elseValue) {
            super();
            this.index = index;
            this.ifValue = ifValue;
            this.elseValue = elseValue;
          }
          index;
          ifValue;
          elseValue;
          resolve(value) {
            if (value) return this.ifValue;
            return this.elseValue;
          }
          toTextmateString() {
            return "(?" + this.index + ":" + this.ifValue + (this.elseValue ? ":" + this.elseValue : "") + ")";
          }
          clone() {
            return new _ConditionString(this.index, this.ifValue, this.elseValue);
          }
        };
        FormatString = class _FormatString extends Marker {
          constructor(index, shorthandName, ifValue, elseValue) {
            super();
            this.index = index;
            this.shorthandName = shorthandName;
            this.ifValue = ifValue;
            this.elseValue = elseValue;
          }
          index;
          shorthandName;
          ifValue;
          elseValue;
          resolve(value) {
            if (this.shorthandName === "upcase") {
              return !value ? "" : value.toLocaleUpperCase();
            } else if (this.shorthandName === "downcase") {
              return !value ? "" : value.toLocaleLowerCase();
            } else if (this.shorthandName === "capitalize") {
              return !value ? "" : value[0].toLocaleUpperCase() + value.slice(1);
            } else if (this.shorthandName === "pascalcase") {
              return !value ? "" : this._toPascalCase(value);
            } else if (Boolean(value) && typeof this.ifValue === "string") {
              return this.ifValue;
            } else if (!value && typeof this.elseValue === "string") {
              return this.elseValue;
            } else {
              return value || "";
            }
          }
          _toPascalCase(value) {
            const match2 = value.match(/[a-z]+/gi);
            if (!match2) {
              return value;
            }
            return match2.map((word) => word.charAt(0).toUpperCase() + word.slice(1).toLowerCase()).join("");
          }
          toTextmateString() {
            let value = "${";
            value += this.index;
            if (this.shorthandName) {
              value += `:/${this.shorthandName}`;
            } else if (this.ifValue && this.elseValue) {
              value += `:?${this.ifValue}:${this.elseValue}`;
            } else if (this.ifValue) {
              value += `:+${this.ifValue}`;
            } else if (this.elseValue) {
              value += `:-${this.elseValue}`;
            }
            value += "}";
            return value;
          }
          clone() {
            let ret = new _FormatString(this.index, this.shorthandName, this.ifValue, this.elseValue);
            return ret;
          }
        };
        Variable = class _Variable extends TransformableMarker {
          constructor(name2, resolved = false) {
            super();
            this.name = name2;
            this._resolved = resolved;
          }
          name;
          _resolved;
          get resolved() {
            return this._resolved;
          }
          async resolve(resolver2) {
            let value = await resolver2.resolve(this);
            this._resolved = true;
            if (value && value.includes("\n")) {
              let indent = "";
              this.snippet.walk((m2) => {
                if (m2 == this) {
                  return false;
                }
                if (m2 instanceof Text) {
                  let lines2 = m2.toString().split(/\r?\n/);
                  indent = lines2[lines2.length - 1].match(/^\s*/)[0];
                }
                return true;
              }, true);
              let lines = value.split("\n");
              let indents = lines.filter((s2) => s2.length > 0).map((s2) => s2.match(/^\s*/)[0]);
              let minIndent = indents.reduce((p2, c2) => p2 < c2.length ? p2 : c2.length, 0);
              let newLines = lines.map((s2, i2) => i2 == 0 || s2.length == 0 || !s2.startsWith(" ".repeat(minIndent)) ? s2 : indent + s2.slice(minIndent));
              value = newLines.join("\n");
            }
            if (typeof value !== "string") return false;
            if (this.transform) {
              value = this.transform.resolve(toText(value));
            }
            this._children = [new Text(value.toString())];
            return true;
          }
          toTextmateString() {
            let transformString = "";
            if (this.transform) {
              transformString = this.transform.toTextmateString();
            }
            if (this.children.length === 0) {
              return `\${${this.name}${transformString}}`;
            } else {
              return `\${${this.name}:${this.children.map((child) => child.toTextmateString()).join("")}${transformString}}`;
            }
          }
          clone() {
            const ret = new _Variable(this.name, this.resolved);
            if (this.transform) {
              ret.transform = this.transform.clone();
            }
            ret._children = this.children.map((child) => {
              let m2 = child.clone();
              m2.parent = ret;
              return m2;
            });
            return ret;
          }
        };
        TextmateSnippet = class _TextmateSnippet extends Marker {
          ultisnip;
          id;
          related = {};
          constructor(ultisnip, id2) {
            super();
            this.ultisnip = ultisnip === true;
            this.id = id2 ?? snippet_id++;
          }
          get hasPythonBlock() {
            if (!this.ultisnip) return false;
            return this.pyBlocks.length > 0;
          }
          get hasCodeBlock() {
            if (!this.ultisnip) return false;
            let { pyBlocks, otherBlocks } = this;
            return pyBlocks.length > 0 || otherBlocks.length > 0;
          }
          /**
           * Values for each placeholder index
           */
          get values() {
            let values = {};
            let maxIndexNumber = 0;
            this.placeholders.forEach((c2) => {
              if (!Number.isInteger(c2.index)) return;
              maxIndexNumber = Math.max(c2.index, maxIndexNumber);
              if (c2.transform != null) return;
              if (c2.primary || values[c2.index] === void 0) values[c2.index] = c2.toString();
            });
            for (let i2 = 0; i2 <= maxIndexNumber; i2++) {
              if (values[i2] === void 0) values[i2] = "";
            }
            return values;
          }
          get orderedPyIndexBlocks() {
            let res = [];
            let filtered = this.pyBlocks.filter((o2) => typeof o2.index === "number");
            if (filtered.length === 0) return res;
            let allIndexes = filtered.map((o2) => o2.index);
            let usedIndexes = [];
            const checkBlock = (b2) => {
              let { related } = b2;
              if (related.length == 0 || related.every((idx) => !allIndexes.includes(idx) || usedIndexes.includes(idx))) {
                usedIndexes.push(b2.index);
                res.push(b2);
                return true;
              }
              return false;
            };
            while (filtered.length > 0) {
              let c2 = false;
              for (let b2 of filtered) {
                if (checkBlock(b2)) {
                  c2 = true;
                }
              }
              if (!c2) {
                break;
              }
              filtered = filtered.filter((o2) => !usedIndexes.includes(o2.index));
            }
            return res;
          }
          async evalCodeBlocks(nvim, pyCodes) {
            const { pyBlocks, otherBlocks } = this.placeholderInfo;
            await Promise.all(otherBlocks.map((block2) => {
              let pre = block2.value;
              return block2.resolve(nvim).then(() => {
                if (block2.parent instanceof Placeholder && pre !== block2.value) {
                  this.onPlaceholderUpdate(block2.parent);
                }
              });
            }));
            if (pyCodes.length === 0) return;
            let relatedBlocks = pyBlocks.filter((o2) => o2.index === void 0 && o2.related.length > 0);
            const variableCode = getVariablesCode(this.values);
            await executePythonCode(nvim, [...pyCodes, variableCode]);
            for (let block2 of pyBlocks) {
              let pre = block2.value;
              if (relatedBlocks.includes(block2)) continue;
              await block2.resolve(nvim);
              if (pre === block2.value) continue;
              if (block2.parent instanceof Placeholder) {
                this.onPlaceholderUpdate(block2.parent);
                await executePythonCode(nvim, [getVariablesCode(this.values)]);
              }
            }
            for (let block2 of this.orderedPyIndexBlocks) {
              await this.updatePyIndexBlock(nvim, block2);
            }
            for (let block2 of relatedBlocks) {
              await block2.resolve(nvim);
            }
          }
          /**
           * Update python blocks after user change Placeholder with index
           */
          async updatePythonCodes(nvim, marker, codes, token) {
            let index = marker.index;
            let blocks = this.getDependentPyIndexBlocks(index);
            await runSequence([async () => {
              await executePythonCode(nvim, [...codes, getVariablesCode(this.values)]);
            }, async () => {
              for (let block2 of blocks) {
                await this.updatePyIndexBlock(nvim, block2, token);
              }
            }, async () => {
              let filtered = this.pyBlocks.filter((o2) => o2.index === void 0 && o2.related.length > 0);
              for (let block2 of filtered) {
                await block2.resolve(nvim, token);
              }
            }], token);
          }
          getDependentPyIndexBlocks(index) {
            const res = [];
            const taken = [];
            let filtered = this.pyBlocks.filter((o2) => typeof o2.index === "number");
            const search = (idx) => {
              let blocks = filtered.filter((o2) => !taken.includes(o2.index) && o2.related.includes(idx));
              if (blocks.length > 0) {
                res.push(...blocks);
                blocks.forEach((b2) => {
                  search(b2.index);
                });
              }
            };
            search(index);
            return res;
          }
          /**
           * Update single index block
           */
          async updatePyIndexBlock(nvim, block2, token) {
            let pre = block2.value;
            await block2.resolve(nvim, token);
            if (pre === block2.value || token?.isCancellationRequested) return;
            if (block2.parent instanceof Placeholder) {
              this.onPlaceholderUpdate(block2.parent);
            }
            await executePythonCode(nvim, [getVariablesCode(this.values)]);
          }
          get placeholderInfo() {
            const pyBlocks = [];
            const otherBlocks = [];
            let placeholders = [];
            this.walk((candidate) => {
              if (candidate instanceof Placeholder) {
                placeholders.push(candidate);
              } else if (candidate instanceof CodeBlock) {
                if (candidate.kind === "python") {
                  pyBlocks.push(candidate);
                } else {
                  otherBlocks.push(candidate);
                }
              }
              return true;
            }, true);
            return { placeholders, pyBlocks, otherBlocks };
          }
          get variables() {
            const variables = [];
            this.walk((candidate) => {
              if (candidate instanceof Variable) {
                variables.push(candidate);
              }
              return true;
            }, true);
            return variables;
          }
          get placeholders() {
            let placeholders = [];
            this.walk((candidate) => {
              if (candidate instanceof Placeholder) {
                placeholders.push(candidate);
              }
              return true;
            }, true);
            return placeholders;
          }
          get pyBlocks() {
            return this.placeholderInfo.pyBlocks;
          }
          get otherBlocks() {
            return this.placeholderInfo.otherBlocks;
          }
          get first() {
            let { placeholders } = this;
            let [normals, finals] = groupBy(placeholders.filter((p2) => !p2.transform), (v2) => v2.index !== 0);
            if (normals.length) {
              let minIndex = Math.min.apply(null, normals.map((o2) => o2.index));
              let arr = normals.filter((v2) => v2.index == minIndex);
              return arr.find((p2) => p2.primary) ?? arr[0];
            }
            return finals.find((o2) => o2.primary) ?? finals[0];
          }
          async update(nvim, marker, token) {
            this.onPlaceholderUpdate(marker);
            let codes = this.related.codes ?? [];
            if (codes.length === 0 || !this.hasPythonBlock) return;
            await this.updatePythonCodes(nvim, marker, codes, token);
          }
          /**
           * Reflact changes for related markers.
           */
          onPlaceholderUpdate(marker) {
            let val = marker.toString();
            let markers = this.placeholders.filter((o2) => o2.index == marker.index);
            for (let p2 of markers) {
              p2.checkParentPlaceHolders();
              if (p2 === marker) continue;
              let newText = p2.transform ? p2.transform.resolve(val) : val;
              p2.setOnlyChild(new Text(toText(newText)));
            }
            this.synchronizeParents(markers);
          }
          synchronizeParents(markers) {
            let parents = /* @__PURE__ */ new Set();
            markers.forEach((m2) => {
              let p2 = m2.parent;
              if (p2 instanceof Placeholder) parents.add(p2);
            });
            for (let p2 of parents) {
              this.onPlaceholderUpdate(p2);
            }
          }
          offset(marker) {
            let pos = 0;
            let found = false;
            this.walk((candidate) => {
              if (candidate === marker) {
                found = true;
                return false;
              }
              pos += candidate.len();
              return true;
            }, true);
            if (!found) {
              return -1;
            }
            return pos;
          }
          fullLen(marker) {
            let ret = 0;
            walk([marker], (marker2) => {
              ret += marker2.len();
              return true;
            });
            return ret;
          }
          getTextBefore(marker, parent) {
            let res = "";
            const calc = (m2) => {
              let p2 = m2.parent;
              if (!p2) return;
              let s2 = "";
              for (let b2 of p2.children) {
                if (b2 === m2) break;
                s2 = s2 + b2.toString();
              }
              res = s2 + res;
              if (p2 == parent) return;
              calc(p2);
            };
            calc(marker);
            return res;
          }
          enclosingPlaceholders(placeholder) {
            let ret = [];
            let { parent } = placeholder;
            while (parent) {
              if (parent instanceof Placeholder) {
                ret.push(parent);
              }
              parent = parent.parent;
            }
            return ret;
          }
          async resolveVariables(resolver2) {
            let variables = this.variables;
            if (variables.length === 0) return;
            let failed = [];
            let succeed = [];
            let promises = [];
            const changedParents = /* @__PURE__ */ new Set();
            for (let item of variables) {
              promises.push(item.resolve(resolver2).then((res) => {
                changedParents.add(item.parent);
                let arr = res ? succeed : failed;
                arr.push(item);
              }, onUnexpectedError));
            }
            await Promise.allSettled(promises);
            for (const variable of succeed) {
              let text = new Text(variable.toString());
              variable.replaceWith(text);
            }
            if (failed.length > 0) {
              let indexMap = /* @__PURE__ */ new Map();
              const primarySet = /* @__PURE__ */ new Set();
              let max = this.getMaxPlaceholderIndex();
              for (let i2 = 0; i2 < failed.length; i2++) {
                const v2 = failed[i2];
                let idx = indexMap.get(v2.name);
                if (idx == null) {
                  idx = ++max;
                  indexMap.set(v2.name, idx);
                }
                let p2 = new Placeholder(idx);
                p2.transform = v2.transform;
                if (!p2.transform && !primarySet.has(idx)) {
                  primarySet.add(idx);
                  p2.primary = true;
                }
                let newText = p2.transform ? p2.transform.resolve(v2.name) : v2.name;
                p2.setOnlyChild(new Text(toText(newText)));
                v2.replaceWith(p2);
              }
            }
            changedParents.forEach((marker) => {
              mergeTexts(marker);
              if (marker instanceof Placeholder) this.onPlaceholderUpdate(marker);
            });
          }
          getMaxPlaceholderIndex() {
            let res = 0;
            this.walk((candidate) => {
              if (candidate instanceof Placeholder) {
                res = Math.max(res, candidate.index);
              }
              return true;
            }, true);
            return res;
          }
          replace(marker, children) {
            marker.replaceChildren(children);
            if (marker instanceof Placeholder) {
              this.onPlaceholderUpdate(marker);
            }
          }
          toTextmateString() {
            return this.children.reduce((prev, cur) => prev + cur.toTextmateString(), "");
          }
          clone() {
            let ret = new _TextmateSnippet(this.ultisnip, this.id);
            ret.related.codes = this.related.codes;
            ret.related.context = this.related.context;
            ret._children = this.children.map((child) => {
              let m2 = child.clone();
              m2.parent = ret;
              return m2;
            });
            return ret;
          }
          walk(visitor, ignoreChild = false) {
            walk(this.children, visitor, ignoreChild);
          }
        };
        SnippetParser = class _SnippetParser {
          constructor(ultisnip) {
            this.ultisnip = ultisnip;
          }
          ultisnip;
          static escape(value) {
            return value.replace(/\$|}|\\/g, "\\$&");
          }
          static isPlainText(value) {
            let s2 = new _SnippetParser().parse(value.replace(/\$0$/, ""), false);
            return s2.children.length == 1 && s2.children[0] instanceof Text;
          }
          _scanner = new Scanner();
          _token;
          text(value) {
            return this.parse(value, false).toString();
          }
          parse(value, insertFinalTabstop) {
            this._scanner.text(value);
            this._token = this._scanner.next();
            const snippet = new TextmateSnippet(this.ultisnip);
            while (this._parse(snippet)) {
            }
            const defaultValues = /* @__PURE__ */ new Map();
            const incompletePlaceholders = [];
            let complexPlaceholders = [];
            let hasFinal = false;
            snippet.walk((marker) => {
              if (marker instanceof Placeholder) {
                if (marker.index == 0) hasFinal = true;
                if (marker.children.some((o2) => o2 instanceof Placeholder)) {
                  marker.primary = true;
                  complexPlaceholders.push(marker);
                } else if (!defaultValues.has(marker.index) && marker.children.length > 0) {
                  marker.primary = true;
                  defaultValues.set(marker.index, marker.toString());
                } else {
                  incompletePlaceholders.push(marker);
                }
              }
              return true;
            });
            const complexIndexes = complexPlaceholders.map((p2) => p2.index);
            for (const placeholder of incompletePlaceholders) {
              if (defaultValues.has(placeholder.index)) {
                let val = defaultValues.get(placeholder.index);
                let text = new Text(placeholder.transform ? placeholder.transform.resolve(val) : val);
                placeholder.setOnlyChild(text);
              } else if (!complexIndexes.includes(placeholder.index)) {
                if (placeholder.transform) {
                  let text = new Text(placeholder.transform.resolve(""));
                  placeholder.setOnlyChild(text);
                } else {
                  placeholder.primary = true;
                  defaultValues.set(placeholder.index, "");
                }
              }
            }
            const resolveComplex = () => {
              let resolved = /* @__PURE__ */ new Set();
              for (let p2 of complexPlaceholders) {
                if (p2.children.every((o2) => !(o2 instanceof Placeholder) || defaultValues.has(o2.index))) {
                  let val = p2.toString();
                  defaultValues.set(p2.index, val);
                  for (let placeholder of incompletePlaceholders.filter((o2) => o2.index == p2.index)) {
                    let text = new Text(placeholder.transform ? placeholder.transform.resolve(val) : val);
                    placeholder.setOnlyChild(text);
                  }
                  resolved.add(p2.index);
                }
              }
              complexPlaceholders = complexPlaceholders.filter((p2) => !resolved.has(p2.index));
              if (complexPlaceholders.length == 0 || !resolved.size) return;
              resolveComplex();
            };
            resolveComplex();
            if (!hasFinal && insertFinalTabstop) {
              snippet.appendChild(new Placeholder(0));
            }
            return snippet;
          }
          _accept(type, value) {
            if (type === void 0 || this._token.type === type) {
              let ret = !value ? true : this._scanner.tokenText(this._token);
              this._token = this._scanner.next();
              return ret;
            }
            return false;
          }
          _backTo(token) {
            this._scanner.pos = token.pos + token.len;
            this._token = token;
            return false;
          }
          _until(type, checkBackSlash = false) {
            if (this._token.type === 14 /* EOF */) {
              return false;
            }
            let start = this._token;
            let pre;
            while (this._token.type !== type || checkBackSlash && pre && pre.type === 5 /* Backslash */) {
              if (checkBackSlash) pre = this._token;
              this._token = this._scanner.next();
              if (this._token.type === 14 /* EOF */) {
                return false;
              }
            }
            let value = this._scanner.value.substring(start.pos, this._token.pos);
            this._token = this._scanner.next();
            return value;
          }
          _parse(marker) {
            return this._parseEscaped(marker) || this._parseCodeBlock(marker) || this._parseTabstopOrVariableName(marker) || this._parseComplexPlaceholder(marker) || this._parseComplexVariable(marker) || this._parseAnything(marker);
          }
          // \$, \\, \} -> just text
          _parseEscaped(marker) {
            let value;
            if (value = this._accept(5 /* Backslash */, true)) {
              value = this._accept(0 /* Dollar */, true) || this._accept(4 /* CurlyClose */, true) || this._accept(5 /* Backslash */, true) || this.ultisnip && this._accept(3 /* CurlyOpen */, true) || this.ultisnip && this._accept(17 /* BackTick */, true) || value;
              marker.appendChild(new Text(value));
              return true;
            }
            return false;
          }
          // $foo -> variable, $1 -> tabstop
          _parseTabstopOrVariableName(parent) {
            let value;
            const token = this._token;
            const match2 = this._accept(0 /* Dollar */) && (value = this._accept(9 /* VariableName */, true) || this._accept(8 /* Int */, true));
            if (!match2) {
              return this._backTo(token);
            }
            if (/^\d+$/.test(value)) {
              parent.appendChild(new Placeholder(Number(value)));
            } else {
              if (this.ultisnip && !ULTISNIP_VARIABLES.includes(value)) {
                parent.appendChild(new Text("$" + value));
              } else {
                parent.appendChild(new Variable(value));
              }
            }
            return true;
          }
          _checkCulybrace(marker) {
            let count = 0;
            for (marker of marker.children) {
              if (marker instanceof Text) {
                let text = marker.value;
                for (let index = 0; index < text.length; index++) {
                  const ch = text[index];
                  if (ch === "{") {
                    count++;
                  } else if (ch === "}") {
                    count--;
                  }
                }
              }
            }
            return count <= 0;
          }
          // ${1:}, ${1} -> placeholder
          _parseComplexPlaceholder(parent) {
            let index;
            const token = this._token;
            const match2 = this._accept(0 /* Dollar */) && this._accept(3 /* CurlyOpen */) && (index = this._accept(8 /* Int */, true));
            if (!match2) {
              return this._backTo(token);
            }
            const placeholder = new Placeholder(Number(index));
            if (this._accept(1 /* Colon */)) {
              while (true) {
                const lastChar = this._scanner.isEnd();
                if (this._accept(4 /* CurlyClose */)) {
                  if (!this._checkCulybrace(placeholder) && !lastChar) {
                    placeholder.appendChild(new Text("}"));
                    continue;
                  }
                  parent.appendChild(placeholder);
                  return true;
                }
                if (this._parse(placeholder)) {
                  continue;
                }
                parent.appendChild(new Text("${" + index + ":"));
                placeholder.children.forEach(parent.appendChild, parent);
                return true;
              }
            } else if (placeholder.index > 0 && this._accept(7 /* Pipe */)) {
              const choice = new Choice();
              while (true) {
                if (this._parseChoiceElement(choice)) {
                  if (this._accept(2 /* Comma */)) {
                    continue;
                  }
                  if (this._accept(7 /* Pipe */)) {
                    placeholder.appendChild(choice);
                    if (this._accept(4 /* CurlyClose */)) {
                      parent.appendChild(placeholder);
                      return true;
                    }
                  }
                }
                this._backTo(token);
                return false;
              }
            } else if (this._accept(6 /* Forwardslash */)) {
              if (this._parseTransform(placeholder)) {
                parent.appendChild(placeholder);
                return true;
              }
              this._backTo(token);
              return false;
            } else if (this._accept(4 /* CurlyClose */)) {
              parent.appendChild(placeholder);
              return true;
            } else {
              return this._backTo(token);
            }
          }
          _parseChoiceElement(parent) {
            const token = this._token;
            const values = [];
            while (true) {
              if (this._token.type === 2 /* Comma */ || this._token.type === 7 /* Pipe */) {
                break;
              }
              let value;
              if (value = this._accept(5 /* Backslash */, true)) {
                value = this._accept(2 /* Comma */, true) || this._accept(7 /* Pipe */, true) || this._accept(5 /* Backslash */, true) || value;
              } else {
                value = this._accept(void 0, true);
              }
              if (!value) {
                this._backTo(token);
                return false;
              }
              values.push(value);
            }
            if (values.length === 0) {
              this._backTo(token);
              return false;
            }
            parent.appendChild(new Text(values.join("")));
            return true;
          }
          // ${foo:}, ${foo} -> variable
          _parseComplexVariable(parent) {
            let name2;
            const token = this._token;
            const match2 = this._accept(0 /* Dollar */) && this._accept(3 /* CurlyOpen */) && (name2 = this._accept(9 /* VariableName */, true));
            if (!match2) {
              return this._backTo(token);
            }
            if (this.ultisnip && !ULTISNIP_VARIABLES.includes(name2)) {
              return this._backTo(token);
            }
            const variable = new Variable(name2);
            if (this._accept(1 /* Colon */)) {
              while (true) {
                if (this._accept(4 /* CurlyClose */)) {
                  parent.appendChild(variable);
                  return true;
                }
                if (this._parse(variable)) {
                  continue;
                }
                parent.appendChild(new Text("${" + name2 + ":"));
                variable.children.forEach(parent.appendChild, parent);
                return true;
              }
            } else if (this._accept(6 /* Forwardslash */)) {
              if (this._parseTransform(variable)) {
                parent.appendChild(variable);
                return true;
              }
              this._backTo(token);
              return false;
            } else if (this._accept(4 /* CurlyClose */)) {
              parent.appendChild(variable);
              return true;
            } else {
              return this._backTo(token);
            }
          }
          _parseTransform(parent) {
            let transform = new Transform();
            transform.ultisnip = this.ultisnip === true;
            let regexValue = "";
            let regexOptions = "";
            while (true) {
              if (this._accept(6 /* Forwardslash */)) {
                break;
              }
              let escaped;
              if (escaped = this._accept(5 /* Backslash */, true)) {
                escaped = this._accept(6 /* Forwardslash */, true) || escaped;
                regexValue += escaped;
                continue;
              }
              if (this._token.type !== 14 /* EOF */) {
                regexValue += this._accept(void 0, true);
                continue;
              }
              return false;
            }
            while (true) {
              if (this._accept(6 /* Forwardslash */)) {
                break;
              }
              let escaped;
              if (escaped = this._accept(5 /* Backslash */, true)) {
                escaped = this._accept(5 /* Backslash */, true) || this._accept(6 /* Forwardslash */, true) || escaped;
                transform.appendChild(new Text(escaped));
                continue;
              }
              if (this._parseFormatString(transform) || this._parseConditionString(transform) || this._parseAnything(transform)) {
                continue;
              }
              return false;
            }
            let ascii = false;
            while (true) {
              if (this._accept(4 /* CurlyClose */)) {
                break;
              }
              if (this._token.type !== 14 /* EOF */) {
                let c2 = this._accept(void 0, true);
                if (c2 == "a") {
                  ascii = true;
                } else {
                  if (!knownRegexOptions.includes(c2)) {
                    logger27.error(`Unknown regex option: ${c2}`);
                  }
                  regexOptions += c2;
                }
                continue;
              }
              return false;
            }
            try {
              if (ascii) transform.ascii = true;
              if (this.ultisnip) regexValue = convertRegex(regexValue);
              transform.regexp = new RegExp(regexValue, regexOptions);
            } catch (e2) {
              return false;
            }
            parent.transform = transform;
            return true;
          }
          _parseConditionString(parent) {
            if (!this.ultisnip) return false;
            const token = this._token;
            if (!this._accept(15 /* OpenParen */)) {
              return false;
            }
            if (!this._accept(13 /* QuestionMark */)) {
              this._backTo(token);
              return false;
            }
            let index = this._accept(8 /* Int */, true);
            if (!index) {
              this._backTo(token);
              return false;
            }
            if (!this._accept(1 /* Colon */)) {
              this._backTo(token);
              return false;
            }
            let text = this._until(16 /* CloseParen */, true);
            if (text) {
              let i2 = 0;
              while (i2 < text.length) {
                let t2 = text[i2];
                if (t2 == ":" && text[i2 - 1] != "\\") {
                  break;
                }
                i2++;
              }
              let ifValue = text.slice(0, i2);
              let elseValue = text.slice(i2 + 1);
              parent.appendChild(new ConditionString(Number(index), ifValue, elseValue));
              return true;
            }
            this._backTo(token);
            return false;
          }
          _parseFormatString(parent) {
            const token = this._token;
            if (!this._accept(0 /* Dollar */)) {
              return false;
            }
            let complex = false;
            if (this._accept(3 /* CurlyOpen */)) {
              complex = true;
            }
            let index = this._accept(8 /* Int */, true);
            if (!index) {
              this._backTo(token);
              return false;
            } else if (!complex) {
              parent.appendChild(new FormatString(Number(index)));
              return true;
            } else if (this._accept(4 /* CurlyClose */)) {
              parent.appendChild(new FormatString(Number(index)));
              return true;
            } else if (!this._accept(1 /* Colon */)) {
              this._backTo(token);
              return false;
            }
            if (this.ultisnip) {
              this._backTo(token);
              return false;
            }
            if (this._accept(6 /* Forwardslash */)) {
              let shorthand = this._accept(9 /* VariableName */, true);
              if (!shorthand || !this._accept(4 /* CurlyClose */)) {
                this._backTo(token);
                return false;
              } else {
                parent.appendChild(new FormatString(Number(index), shorthand));
                return true;
              }
            } else if (this._accept(11 /* Plus */)) {
              let ifValue = this._until(4 /* CurlyClose */);
              if (ifValue) {
                parent.appendChild(new FormatString(Number(index), void 0, ifValue, void 0));
                return true;
              }
            } else if (this._accept(12 /* Dash */)) {
              let elseValue = this._until(4 /* CurlyClose */);
              if (elseValue) {
                parent.appendChild(new FormatString(Number(index), void 0, void 0, elseValue));
                return true;
              }
            } else if (this._accept(13 /* QuestionMark */)) {
              let ifValue = this._until(1 /* Colon */);
              if (ifValue) {
                let elseValue = this._until(4 /* CurlyClose */);
                if (elseValue) {
                  parent.appendChild(new FormatString(Number(index), void 0, ifValue, elseValue));
                  return true;
                }
              }
            } else {
              let elseValue = this._until(4 /* CurlyClose */);
              if (elseValue) {
                parent.appendChild(new FormatString(Number(index), void 0, void 0, elseValue));
                return true;
              }
            }
            this._backTo(token);
            return false;
          }
          _parseCodeBlock(parent) {
            if (!this.ultisnip) return false;
            const token = this._token;
            if (!this._accept(17 /* BackTick */)) {
              return false;
            }
            let text = this._until(17 /* BackTick */, true);
            if (text) {
              if (!text.startsWith("!")) {
                let marker = new CodeBlock(text.trim(), "shell");
                parent.appendChild(marker);
                return true;
              }
              if (text.startsWith("!v")) {
                let marker = new CodeBlock(text.slice(2).trim(), "vim");
                parent.appendChild(marker);
                return true;
              }
              if (text.startsWith("!p")) {
                let code = text.slice(2);
                if (code.indexOf("\n") == -1) {
                  let marker = new CodeBlock(code.trim(), "python");
                  parent.appendChild(marker);
                } else {
                  let codes = code.split(/\r?\n/);
                  codes = codes.filter((s2) => !/^\s*$/.test(s2));
                  if (!codes.length) return true;
                  let ind = codes[0].match(/^\s*/)[0];
                  if (ind.length && codes.every((s2) => s2.startsWith(ind))) {
                    codes = codes.map((s2) => s2.slice(ind.length));
                  }
                  if (ind == " " && codes[0].startsWith(ind)) codes[0] = codes[0].slice(1);
                  let marker = new CodeBlock(codes.join("\n"), "python");
                  parent.appendChild(marker);
                }
                return true;
              }
            }
            this._backTo(token);
            return false;
          }
          _parseAnything(marker) {
            if (this._token.type !== 14 /* EOF */) {
              let text = this._scanner.tokenText(this._token);
              marker.appendChild(new Text(text));
              this._accept(void 0);
              return true;
            }
            return false;
          }
        };
        escapedCharacters = [":", "(", ")", "{", "}"];
      }
    });
    
    // src/snippets/snippet.ts
    function getNextPlaceholder(marker, forward, nested = false) {
      if (!marker) return void 0;
      let { snippet } = marker;
      let idx = marker.index;
      if (idx < 0 || !snippet) return void 0;
      let arr = [];
      let min_index;
      let max_index;
      if (idx > 0) {
        snippet.walk((m2) => {
          if (m2 instanceof Placeholder && !m2.transform) {
            if (forward && (m2.index > idx || m2.isFinalTabstop) || !forward && (m2.index < idx && !m2.isFinalTabstop)) {
              arr.push(m2);
              if (!m2.isFinalTabstop) {
                min_index = min_index === void 0 ? m2.index : Math.min(min_index, m2.index);
              }
              max_index = max_index === void 0 ? m2.index : Math.max(max_index, m2.index);
            }
          }
          return true;
        }, true);
        if (arr.length > 0) {
          arr.sort((a2, b2) => {
            if (b2.primary && !a2.primary) return 1;
            if (a2.primary && !b2.primary) return -1;
            return 0;
          });
          if (forward) return min_index === void 0 ? arr[0] : arr.find((o2) => o2.index === min_index);
          return arr.find((o2) => o2.index === max_index);
        }
      }
      if (snippet.parent instanceof Placeholder) {
        return getNextPlaceholder(snippet.parent, forward, true);
      }
      if (nested) return marker;
      return void 0;
    }
    function getUltiSnipActionCodes(marker, action) {
      if (!marker) return void 0;
      const snip = marker instanceof TextmateSnippet ? marker : marker.snippet;
      if (!snip) return void 0;
      let context = snip.related.context;
      let code = getAction(context, action);
      if (!code) return void 0;
      return [code, getResetPythonCode(context)];
    }
    var CocSnippet;
    var init_snippet = __esm({
      "src/snippets/snippet.ts"() {
        "use strict";
        init_main();
        init_textdocument();
        init_util();
        init_position();
        init_protocol();
        init_eval();
        init_parser3();
        init_util4();
        CocSnippet = class {
          constructor(snippet, position, nvim, resolver2) {
            this.snippet = snippet;
            this.position = position;
            this.nvim = nvim;
            this.resolver = resolver2;
          }
          snippet;
          position;
          nvim;
          resolver;
          // placeholders and snippets from top to bottom
          _markerSequence = [];
          _placeholders = [];
          // from upper to lower
          _snippets = [];
          _text;
          _tmSnippet;
          get tmSnippet() {
            return this._tmSnippet;
          }
          get snippets() {
            return this._snippets.map((o2) => o2.marker);
          }
          getSnippet(marker) {
            return marker instanceof TextmateSnippet ? marker : marker.snippet;
          }
          deactivateSnippet(snip) {
            if (!snip) return;
            let marker = snip.parent;
            if (marker) {
              let text = new Text(snip.toString());
              snip.replaceWith(text);
              this.synchronize();
            }
          }
          getUltiSnipOption(marker, key) {
            let snip = this.getSnippet(marker);
            if (!snip) return void 0;
            let context = snip.related.context;
            if (!context) return void 0;
            return context[key];
          }
          async init(ultisnip) {
            if (typeof this.snippet === "string") {
              const parser2 = new SnippetParser(!!ultisnip);
              const snippet = parser2.parse(this.snippet, true);
              this._tmSnippet = snippet;
            } else {
              this._tmSnippet = this.snippet;
            }
            await this.resolve(this._tmSnippet, ultisnip);
            this.synchronize();
          }
          async resolve(snippet, ultisnip) {
            let { resolver: resolver2, nvim } = this;
            if (resolver2) await snippet.resolveVariables(resolver2);
            if (ultisnip) {
              let pyCodes = [];
              snippet.related.context = ultisnip;
              if (ultisnip.noPython !== true) {
                if (snippet.hasPythonBlock) {
                  pyCodes = getPyBlockCode(ultisnip);
                } else if (hasPython(ultisnip)) {
                  pyCodes = getResetPythonCode(ultisnip);
                }
                if (pyCodes.length > 0) {
                  snippet.related.codes = pyCodes;
                }
              }
              await snippet.evalCodeBlocks(nvim, pyCodes);
            }
          }
          getPlaceholderOnJump(current, forward) {
            const p2 = getNextPlaceholder(current, forward);
            return p2 ? this.getPlaceholderByMarker(p2) : void 0;
          }
          /**
           * Same index and in same snippet only
           */
          getRanges(marker) {
            if (marker.toString().length === 0 || !marker.snippet) return [];
            let tmSnippet = marker.snippet;
            let placeholders = this._placeholders.filter((o2) => o2.index == marker.index && o2.marker.snippet === tmSnippet);
            return placeholders.map((o2) => o2.range).filter((r2) => !emptyRange(r2));
          }
          /**
           * Find the most possible marker contains range, throw error when not found
           */
          findParent(range2, current) {
            const isInsert = emptyRange(range2);
            let marker;
            let markerRange;
            const { _snippets, _placeholders, _markerSequence } = this;
            const seq = _markerSequence.filter((o2) => o2 !== current);
            if (current && _markerSequence.includes(current)) seq.push(current);
            const list2 = seq.map((m2) => {
              return m2 instanceof TextmateSnippet ? _snippets.find((o2) => o2.marker === m2) : _placeholders.find((o2) => o2.marker === m2);
            });
            for (let index = list2.length - 1; index >= 0; index--) {
              const o2 = list2[index];
              if (rangeInRange(range2, o2.range)) {
                if (isInsert && o2.marker instanceof Placeholder && (o2.marker.choice || o2.marker.index === 0) && o2.marker !== current && adjacentPosition(range2.start, o2.range)) {
                  continue;
                }
                marker = o2.marker;
                markerRange = o2.range;
                break;
              }
            }
            if (!marker) throw new Error(`Unable to find parent marker in range ${JSON.stringify(range2, null, 2)}`);
            return { marker, range: markerRange };
          }
          /**
           * The change must happens with same marker parents, return the changed marker
           */
          replaceWithMarker(range2, marker, current) {
            const isInsert = emptyRange(range2);
            const result = this.findParent(range2, current);
            let parentMarker = result.marker;
            let parentRange = result.range;
            const children = parentMarker.children;
            let pos = parentRange.start;
            let startIdx = 0;
            let deleteCount = 0;
            const { start, end } = range2;
            let startMarker;
            let endMarker;
            let preText = "";
            let afterText = "";
            let len = children.length;
            for (let i2 = 0; i2 < len; i2++) {
              let child = children[i2];
              let value = child.toString();
              let s2 = Position.create(pos.line, pos.character);
              let e2 = getEnd(s2, value);
              let r2 = Range.create(s2, e2);
              if (startMarker === void 0 && positionInRange(start, r2) === 0 && !samePosition(start, e2)) {
                startMarker = child;
                startIdx = i2;
                preText = getTextBefore(Range.create(s2, e2), value, start);
                if (isInsert && samePosition(end, s2)) {
                  endMarker = child;
                  break;
                }
              }
              if (startMarker != null) {
                let val = positionInRange(end, r2);
                if (val === 0) {
                  endMarker = child;
                  afterText = getTextAfter(Range.create(s2, e2), value, end);
                }
                deleteCount += 1;
              } else if (i2 == len - 1 && samePosition(start, e2)) {
                startIdx = len;
              }
              if (endMarker != null) break;
              pos = e2;
            }
            if (marker instanceof Text) {
              let newText = new Text(preText + marker.value + afterText);
              if (samePosition(range2.start, parentRange.start) && samePosition(range2.end, parentRange.end)) {
                startIdx = 0;
                deleteCount = children.length;
              }
              parentMarker.children.splice(startIdx, deleteCount, newText);
              newText.parent = parentMarker;
              mergeTexts(parentMarker, 0);
              if (parentMarker instanceof Placeholder && parentMarker.children[0] instanceof Text) {
                let text = parentMarker.children[0];
                if (text.value.startsWith("\n")) {
                  text.replaceWith(new Text(text.value.slice(1)));
                  parentMarker.insertBefore("\n");
                }
              }
            } else {
              let markers = [];
              if (preText) markers.push(new Text(preText));
              if (parentMarker instanceof TextmateSnippet) {
                let p2 = new Placeholder((current ? current.index : 0) + Math.random());
                p2.appendChild(marker);
                p2.primary = true;
                markers.push(p2);
              } else {
                markers.push(marker);
              }
              if (afterText) markers.push(new Text(afterText));
              children.splice(startIdx, deleteCount, ...markers);
              markers.forEach((m2) => m2.parent = parentMarker);
              if (preText.length > 0 || afterText.length > 0) {
                mergeTexts(parentMarker, 0);
              }
            }
            if (parentMarker instanceof Placeholder && !parentMarker.primary) {
              let first = parentMarker.children[0];
              if (parentMarker.children.length === 1 && first instanceof Text) {
                parentMarker.replaceWith(first);
                return first;
              }
              if (Number.isInteger(parentMarker.index)) {
                parentMarker.index += 0.1;
              }
            }
            return parentMarker;
          }
          /**
           * Replace range with text, return new Cursor position when cursor provided
           *
           * Get new Cursor position for synchronize update only.
           * The cursor position should already adjusted before call this function.
           */
          async replaceWithText(range2, text, token, current, cursor) {
            let cloned = this._tmSnippet.clone();
            let marker = this.replaceWithMarker(range2, new Text(text), current);
            let snippetText = this._tmSnippet.toString();
            if (marker === this._tmSnippet) {
              this.synchronize();
              return { snippetText, marker };
            }
            let sp = this.getMarkerPosition(marker);
            let changeCharacter = sp && cursor && sp.line === cursor.line;
            const reset = () => {
              this._tmSnippet = cloned;
              this.synchronize();
            };
            token.onCancellationRequested(reset);
            await this.onMarkerUpdate(marker, token);
            if (token.isCancellationRequested) return void 0;
            let ep = this.getMarkerPosition(marker);
            let delta;
            if (cursor && sp && ep) {
              let lc = ep.line - sp.line;
              let cc = changeCharacter ? ep.character - sp.character : 0;
              if (lc != 0 || cc != 0) delta = Position.create(lc, cc);
            }
            return { snippetText, marker, delta };
          }
          async replaceWithSnippet(range2, text, current, ultisnip) {
            let snippet = new SnippetParser(!!ultisnip).parse(text, true);
            let marker = this.replaceWithMarker(range2, snippet, current);
            await this.resolve(snippet, ultisnip);
            await this.onMarkerUpdate(marker, import_node4.CancellationToken.None);
            return snippet;
          }
          /**
           * Get placeholder or snippet start position in current document
           */
          getMarkerPosition(marker) {
            if (marker instanceof Placeholder) {
              let p2 = this._placeholders.find((o3) => o3.marker === marker);
              return p2 ? p2.range.start : void 0;
            }
            let o2 = this._snippets.find((o3) => o3.marker === marker);
            return o2 ? o2.range.start : void 0;
          }
          getSnippetRange(marker) {
            let snip = marker.snippet;
            if (!snip) return void 0;
            let info = this._snippets.find((o2) => o2.marker === snip);
            return info ? info.range : void 0;
          }
          /**
           * Get TabStops of same snippet.
           */
          getSnippetTabstops(marker) {
            let snip = marker.snippet;
            if (!snip) return [];
            let res = [];
            this._placeholders.forEach((p2) => {
              const { start, end } = p2.range;
              if (p2.marker.snippet === snip && (p2.primary || p2.index === 0)) {
                res.push({
                  index: p2.index,
                  range: [start.line, start.character, end.line, end.character],
                  text: p2.value
                });
              }
            });
            return res;
          }
          async onMarkerUpdate(marker, token) {
            let ts = Date.now();
            while (marker != null) {
              if (marker instanceof Placeholder) {
                let snip = marker.snippet;
                if (!snip) break;
                await snip.update(this.nvim, marker, token);
                if (token.isCancellationRequested) return;
                marker = snip.parent;
              } else {
                marker = marker.parent;
              }
            }
            await waitWithToken(Math.max(0, 16 - Date.now() + ts), token);
            if (token.isCancellationRequested) return;
            this.synchronize();
          }
          usePython(snip) {
            return snip.hasCodeBlock || hasPython(snip.related.context);
          }
          get hasPython() {
            for (const info of this._snippets) {
              let snip = info.marker;
              if (this.usePython(snip)) return true;
            }
            return false;
          }
          resetStartPosition(pos) {
            this.position = pos;
            this.synchronize();
          }
          get start() {
            return Position.create(this.position.line, this.position.character);
          }
          get range() {
            let end = getEnd(this.position, this._text);
            return Range.create(this.position, end);
          }
          get text() {
            return this._text;
          }
          get hasBeginningPlaceholder() {
            let { position } = this;
            return this._placeholders.find((o2) => o2.index !== 0 && comparePosition(o2.range.start, position) === 0) != null;
          }
          get hasEndPlaceholder() {
            let position = this._snippets[0].range.end;
            return this._placeholders.find((o2) => o2.index !== 0 && comparePosition(o2.range.end, position) === 0) != null;
          }
          getPlaceholderByMarker(marker) {
            return this._placeholders.find((o2) => o2.marker === marker);
          }
          getPlaceholderByIndex(index) {
            let filtered = this._placeholders.filter((o2) => o2.index == index && !o2.marker.transform);
            let find = filtered.find((o2) => o2.primary);
            return defaultValue(find, filtered[0]);
          }
          getPlaceholderById(id2, index) {
            let p2 = this._tmSnippet.placeholders.find((o2) => o2.id === id2);
            if (p2) return p2;
            let placeholder = this.getPlaceholderByIndex(index);
            return placeholder ? placeholder.marker : void 0;
          }
          /**
           * Should be used after snippet resolved.
           */
          synchronize() {
            const snippet = this._tmSnippet;
            const snippetStr = snippet.toString();
            const document2 = new LinesTextDocument("/", "", 0, snippetStr.split(/\n/), 0, false);
            const placeholders = [];
            const snippets = [];
            const markerSequence = [];
            const { start } = this;
            snippets.push({ range: Range.create(start, getEnd(start, snippetStr)), marker: snippet, value: snippetStr });
            markerSequence.push(snippet);
            let offset = 0;
            snippet.walk((marker) => {
              if (marker instanceof Placeholder && marker.transform == null) {
                markerSequence.push(marker);
                const position = document2.positionAt(offset);
                const value = marker.toString();
                placeholders.push({
                  index: marker.index,
                  value,
                  marker,
                  range: getNewRange(start, position, value),
                  primary: marker.primary === true
                });
              } else if (marker instanceof TextmateSnippet) {
                markerSequence.push(marker);
                const position = document2.positionAt(offset);
                const value = marker.toString();
                snippets.push({
                  range: getNewRange(start, position, value),
                  marker,
                  value
                });
              }
              offset += marker.len();
              return true;
            }, false);
            this._snippets = snippets;
            this._text = snippetStr;
            this._placeholders = placeholders;
            this._markerSequence = markerSequence;
          }
        };
      }
    });
    
    // src/snippets/variableResolve.ts
    function padZero(n2) {
      return n2 < 10 ? "0" + n2 : n2.toString();
    }
    function parseComments(comments) {
      let start;
      let end;
      let single;
      let parts = comments.split(",");
      for (let s2 of parts) {
        if (start && end && single) break;
        if (!s2.includes(":")) continue;
        let [flag, str] = s2.split(":");
        if (flag.includes("s")) {
          start = str;
        } else if (flag.includes("e")) {
          end = str;
        } else if (!single && flag == "") {
          single = str;
        }
      }
      return { start, end, single };
    }
    function parseCommentstring(commentstring) {
      if (commentstring.endsWith("%s")) return commentstring.slice(0, -2).trim();
      return void 0;
    }
    var SnippetVariableResolver;
    var init_variableResolve = __esm({
      "src/snippets/variableResolve.ts"() {
        "use strict";
        init_esm();
        init_node();
        init_object();
        SnippetVariableResolver = class {
          constructor(nvim, workspaceFolder) {
            this.nvim = nvim;
            this.workspaceFolder = workspaceFolder;
            const currentDate = /* @__PURE__ */ new Date();
            const fullyear = currentDate.getFullYear().toString();
            Object.assign(this._variableToValue, {
              CURRENT_YEAR: fullyear,
              CURRENT_YEAR_SHORT: fullyear.slice(-2),
              CURRENT_MONTH: padZero(currentDate.getMonth() + 1),
              CURRENT_DATE: padZero(currentDate.getDate()),
              CURRENT_HOUR: padZero(currentDate.getHours()),
              CURRENT_MINUTE: padZero(currentDate.getMinutes()),
              CURRENT_SECOND: padZero(currentDate.getSeconds()),
              CURRENT_DAY_NAME: currentDate.toLocaleString("en-US", { weekday: "long" }),
              CURRENT_DAY_NAME_SHORT: currentDate.toLocaleString("en-US", { weekday: "short" }),
              CURRENT_MONTH_NAME: currentDate.toLocaleString("en-US", { month: "long" }),
              CURRENT_MONTH_NAME_SHORT: currentDate.toLocaleString("en-US", { month: "short" }),
              TM_FILENAME: null,
              TM_FILENAME_BASE: null,
              TM_DIRECTORY: null,
              TM_FILEPATH: null,
              YANK: null,
              TM_LINE_INDEX: null,
              TM_LINE_NUMBER: null,
              TM_CURRENT_LINE: null,
              TM_CURRENT_WORD: null,
              TM_SELECTED_TEXT: null,
              VISUAL: null,
              CLIPBOARD: null,
              RELATIVE_FILEPATH: null,
              RANDOM: null,
              RANDOM_HEX: null,
              UUID: null,
              BLOCK_COMMENT_START: null,
              BLOCK_COMMENT_END: null,
              LINE_COMMENT: null,
              WORKSPACE_NAME: null,
              WORKSPACE_FOLDER: null
            });
          }
          nvim;
          workspaceFolder;
          _variableToValue = {};
          async resolveValue(name2) {
            let { nvim } = this;
            if (["TM_FILENAME", "TM_FILENAME_BASE", "TM_DIRECTORY", "TM_FILEPATH"].includes(name2)) {
              let filepath = await nvim.call("coc#util#get_fullpath");
              if (name2 === "TM_FILENAME") return path.basename(filepath);
              if (name2 === "TM_FILENAME_BASE") return path.basename(filepath, path.extname(filepath));
              if (name2 === "TM_DIRECTORY") return path.dirname(filepath);
              if (name2 === "TM_FILEPATH") return filepath;
            }
            if (name2 === "YANK") {
              return await nvim.call("getreg", ['""']);
            }
            if (name2 === "TM_LINE_INDEX") {
              let lnum = await nvim.call("line", ["."]);
              return (lnum - 1).toString();
            }
            if (name2 === "TM_LINE_NUMBER") {
              let lnum = await nvim.call("line", ["."]);
              return lnum.toString();
            }
            if (name2 === "TM_CURRENT_LINE") {
              return await nvim.call("getline", ["."]);
            }
            if (name2 === "TM_CURRENT_WORD") {
              return await nvim.eval(`expand('')`);
            }
            if (name2 === "TM_SELECTED_TEXT" || name2 == "VISUAL") {
              return await nvim.eval(`get(g:,'coc_selected_text', v:null)`);
            }
            if (name2 === "CLIPBOARD") {
              return await nvim.eval("@*");
            }
            if (name2 === "RANDOM") {
              return Math.random().toString().slice(-6);
            }
            if (name2 === "RANDOM_HEX") {
              return Math.random().toString(16).slice(-6);
            }
            if (name2 === "UUID") {
              return crypto.randomUUID();
            }
            if (["RELATIVE_FILEPATH", "WORKSPACE_NAME", "WORKSPACE_FOLDER"].includes(name2)) {
              let filepath = await nvim.call("coc#util#get_fullpath");
              let folder = this.workspaceFolder.getWorkspaceFolder(u.file(filepath));
              if (name2 === "RELATIVE_FILEPATH") return this.workspaceFolder.getRelativePath(filepath);
              if (name2 === "WORKSPACE_NAME") return folder.name;
              if (name2 === "WORKSPACE_FOLDER") return u.parse(folder.uri).fsPath;
            }
            if (name2 === "LINE_COMMENT") {
              let commentstring = await nvim.eval("&commentstring");
              let s2 = parseCommentstring(commentstring);
              if (s2) return s2;
              let comments = await nvim.eval("&comments");
              let { single } = parseComments(comments);
              return single;
            }
            if (["BLOCK_COMMENT_START", "BLOCK_COMMENT_END"].includes(name2)) {
              let comments = await nvim.eval("&comments");
              let { start, end } = parseComments(comments);
              if (name2 === "BLOCK_COMMENT_START") return start;
              if (name2 === "BLOCK_COMMENT_END") return end;
            }
          }
          async resolve(variable) {
            const name2 = variable.name;
            let resolved = this._variableToValue[name2];
            if (resolved != null) return resolved.toString();
            if (hasOwnProperty2(this._variableToValue, name2)) {
              let value = await this.resolveValue(name2);
              if (!value && variable.children.length) {
                return variable.toString();
              }
              return value == null ? "" : value.toString();
            }
            if (variable.children.length) return variable.toString();
            return void 0;
          }
        };
      }
    });
    
    // src/snippets/session.ts
    var logger28, NAME_SPACE2, SnippetSession;
    var init_session = __esm({
      "src/snippets/session.ts"() {
        "use strict";
        init_main();
        init_events();
        init_logger();
        init_util();
        init_diff();
        init_errors();
        init_lodash();
        init_mutex();
        init_object();
        init_position();
        init_protocol();
        init_string();
        init_textedit();
        init_window();
        init_workspace();
        init_eval();
        init_parser3();
        init_snippet();
        init_util4();
        init_variableResolve();
        logger28 = createLogger("snippets-session");
        NAME_SPACE2 = "snippets";
        SnippetSession = class {
          constructor(nvim, document2, config) {
            this.nvim = nvim;
            this.document = document2;
            this.config = config;
          }
          nvim;
          document;
          config;
          mutex = new Mutex();
          current;
          textDocument;
          tokenSource;
          _applying = false;
          _paused = false;
          snippet = null;
          _onActiveChange = new import_node4.Emitter();
          _selected = false;
          onActiveChange = this._onActiveChange.event;
          get selected() {
            return this._selected;
          }
          async insertSnippetEdits(edits) {
            return await this.mutex.use(() => this._insertSnippetEdits(edits));
          }
          async _insertSnippetEdits(edits) {
            if (edits.length === 0) return this.isActive;
            if (edits.length === 1) return await this.start(toSnippetString(edits[0].snippet), edits[0].range, false);
            const textDocument = this.document.textDocument;
            const textEdits = filterSortEdits(textDocument, edits.map((e2) => TextEdit.replace(e2.range, toSnippetString(e2.snippet))));
            const editableFinals = this.getEditableFinals(textEdits.map((o2) => o2.newText));
            if (editableFinals.size === 0) return await this.insertNestedSnippetEdits(textEdits);
            const len = textEdits.length;
            let combined = "";
            const snippets = textEdits.map((o2) => new SnippetParser().parse(o2.newText));
            let nextIndex = 1;
            for (const snippet of snippets) {
              const localIndexes = /* @__PURE__ */ new Set();
              snippet.walk((m2) => {
                if (m2 instanceof Placeholder && m2.index > 0) localIndexes.add(m2.index);
                return true;
              });
              const indexMap = /* @__PURE__ */ new Map();
              for (const index of Array.from(localIndexes).sort((a2, b2) => a2 - b2)) {
                indexMap.set(index, nextIndex++);
              }
              snippet.walk((m2) => {
                if (m2 instanceof Placeholder && m2.index > 0) m2.index = indexMap.get(m2.index);
                return true;
              });
            }
            const sharedIndexMap = /* @__PURE__ */ new Map();
            let needsFinalTabstop = false;
            for (const snippet of snippets) {
              const localFinalMap = /* @__PURE__ */ new Map();
              snippet.walk((m2) => {
                if (m2 instanceof Placeholder && m2.index === 0 && m2.children.length > 0) {
                  needsFinalTabstop = true;
                  const key = this.getEditableFinalKey(m2);
                  let index = editableFinals.has(key) ? sharedIndexMap.get(key) : localFinalMap.get(key);
                  if (index == null) {
                    index = nextIndex++;
                    if (editableFinals.has(key)) {
                      sharedIndexMap.set(key, index);
                    } else {
                      localFinalMap.set(key, index);
                    }
                  }
                  m2.index = index;
                }
                return true;
              });
            }
            for (let i2 = 0; i2 < len; i2++) {
              combined += snippets[i2].toTextmateString();
              if (i2 !== len - 1) {
                let r2 = Range.create(textEdits[i2].range.end, textEdits[i2 + 1].range.start);
                combined += SnippetParser.escape(textDocument.getText(r2));
              }
            }
            if (needsFinalTabstop) combined += "$0";
            this.deactivate();
            let range2 = Range.create(textEdits[0].range.start, textEdits[len - 1].range.end);
            return await this.start(combined, range2, false);
          }
          getEditableFinalKey(placeholder) {
            return placeholder.toTextmateString();
          }
          getEditableFinals(snippets) {
            const counts = /* @__PURE__ */ new Map();
            for (const text of snippets) {
              const keys = /* @__PURE__ */ new Set();
              const snippet = new SnippetParser().parse(text);
              snippet.walk((m2) => {
                if (m2 instanceof Placeholder && m2.index === 0 && m2.children.length > 0) {
                  keys.add(this.getEditableFinalKey(m2));
                }
                return true;
              });
              for (const key of keys) {
                counts.set(key, (counts.get(key) ?? 0) + 1);
              }
            }
            return new Set(counts.keys());
          }
          async insertNestedSnippetEdits(textEdits) {
            const textDocument = this.document.textDocument;
            const len = textEdits.length;
            const snip = new TextmateSnippet();
            for (let i2 = 0; i2 < len; i2++) {
              let range2 = textEdits[i2].range;
              let placeholder = new Placeholder(i2 + 1);
              placeholder.appendChild(new Text(textDocument.getText(range2)));
              snip.appendChild(placeholder);
              if (i2 != len - 1) {
                let r2 = Range.create(range2.end, textEdits[i2 + 1].range.start);
                snip.appendChild(new Text(textDocument.getText(r2)));
              }
            }
            this.deactivate();
            const resolver2 = new SnippetVariableResolver(this.nvim, workspace_default.workspaceFolderControl);
            let snippet = new CocSnippet(snip, textEdits[0].range.start, this.nvim, resolver2);
            await snippet.init();
            this._paused = false;
            const edits = [];
            for (let i2 = len - 1; i2 >= 0; i2--) {
              let idx = i2 + 1;
              this.current = snip.placeholders.find((o2) => o2.index === idx);
              let edit2 = textEdits[i2];
              if (edit2.newText.length === 0) continue;
              const nested = await snippet.replaceWithSnippet(edit2.range, edit2.newText, this.current);
              this.current = nested.first;
              edits.unshift(TextEdit.replace(edit2.range, nested.toString()));
              this.nvim.call("coc#compat#del_var", ["coc_selected_text"], true);
            }
            await this.applyEdits(edits);
            this.activate(snippet);
            return this.isActive;
          }
          async start(inserted, range2, select = true, context) {
            let { document: document2, snippet } = this;
            this._paused = false;
            const edits = [];
            let textmateSnippet;
            if (inserted.length === 0) return this.isActive;
            if (snippet && this.canNestSnippet(range2, snippet)) {
              let oldRange = snippet.range;
              let previous = snippet.text;
              textmateSnippet = await this.snippet.replaceWithSnippet(range2, inserted, this.current, context);
              let edit2 = reduceTextEdit({
                range: oldRange,
                newText: this.snippet.text
              }, previous);
              edits.push(edit2);
            } else {
              this.deactivate();
              const resolver2 = new SnippetVariableResolver(this.nvim, workspace_default.workspaceFolderControl);
              snippet = new CocSnippet(inserted, range2.start, this.nvim, resolver2);
              await snippet.init(context);
              textmateSnippet = snippet.tmSnippet;
              edits.push(TextEdit.replace(range2, snippet.text));
              if (inserted.replace(/\$0$/, "").endsWith("\n")) {
                const currentLine = document2.getline(range2.start.line);
                const remain = currentLine.slice(range2.end.character);
                if (remain.length) {
                  let s2 = range2.end.character;
                  let l2 = remain.match(/^\s*/)[0].length;
                  let r2 = Range.create(range2.end.line, s2, range2.end.line, s2 + l2);
                  edits.push(TextEdit.replace(r2, currentLine.match(/^\s*/)[0]));
                }
              }
            }
            this.current = textmateSnippet.first;
            this.nvim.call("coc#compat#del_var", ["coc_selected_text"], true);
            await this.applyEdits(edits);
            this.activate(snippet);
            if (context) await this.tryPostExpand(textmateSnippet);
            let { placeholder } = this;
            if (select && placeholder) await this.selectPlaceholder(placeholder, true);
            return this.isActive;
          }
          canNestSnippet(range2, snippet) {
            let placeholder = this.placeholder;
            return !!placeholder && rangeInRange(range2, snippet.range) && rangeInRange(range2, placeholder.range);
          }
          async tryPostExpand(textmateSnippet) {
            let result = getUltiSnipActionCodes(textmateSnippet, "postExpand");
            if (!result) return;
            const { start, end } = this.snippet.range;
            const [code, resetCodes] = result;
            let pos = `[${start.line},${start.character},${end.line},${end.character}]`;
            let codes = [...resetCodes, `snip = coc_ultisnips_dict["PostExpandContext"](${pos})`, code];
            this.cancel();
            await executePythonCode(this.nvim, codes);
            await this.forceSynchronize();
          }
          async tryPostJump(code, resetCodes, info, bufnr) {
            await waitNextTick();
            this.nvim.setVar("coc_ultisnips_tabstops", info.tabstops, true);
            const { snippet_start, snippet_end } = info;
            let pos = `[${snippet_start.line},${snippet_start.character},${snippet_end.line},${snippet_end.character}]`;
            let codes = [...resetCodes, `snip = coc_ultisnips_dict["PostJumpContext"](${pos},${info.index},${info.forward ? 1 : 0})`, code];
            this.cancel();
            await executePythonCode(this.nvim, codes);
            await this.forceSynchronize();
            void events_default.fire("PlaceholderJump", [bufnr, info]);
          }
          async removeWhiteSpaceBefore(placeholder) {
            if (!emptyRange(placeholder.range)) return;
            let pos = placeholder.range.start;
            let line = this.document.getline(pos.line);
            let ms = line.match(/\s+$/);
            if (ms && line.length === pos.character) {
              let startCharacter = pos.character - ms[0].length;
              let textEdit = TextEdit.del(Range.create(pos.line, startCharacter, pos.line, pos.character));
              await this.document.applyEdits([textEdit]);
              await this.forceSynchronize();
            }
          }
          async applyEdits(edits, joinundo = false) {
            let { document: document2 } = this;
            this._applying = true;
            try {
              await document2.applyEdits(edits, joinundo);
            } finally {
              this._applying = false;
            }
            this.textDocument = document2.textDocument;
          }
          async nextPlaceholder() {
            await this.forceSynchronize();
            if (!this.current) return;
            let marker = this.current;
            if (this.snippet.getUltiSnipOption(marker, "removeWhiteSpace")) {
              let { placeholder } = this;
              if (placeholder) await this.removeWhiteSpaceBefore(placeholder);
            }
            const p2 = this.snippet.getPlaceholderOnJump(marker, true);
            await this.selectPlaceholder(p2, true);
          }
          async previousPlaceholder() {
            await this.forceSynchronize();
            if (!this.current) return;
            const p2 = this.snippet.getPlaceholderOnJump(this.current, false);
            await this.selectPlaceholder(p2, true, false);
          }
          async selectCurrentPlaceholder(triggerAutocmd = true, preserveFinalMode = false) {
            await this.forceSynchronize();
            let { placeholder } = this;
            if (placeholder) await this.selectPlaceholder(placeholder, triggerAutocmd, true, preserveFinalMode);
          }
          async selectPlaceholder(placeholder, triggerAutocmd = true, forward = true, preserveFinalMode = false) {
            let { nvim, document: document2 } = this;
            if (!document2 || !placeholder) return;
            this._selected = true;
            let { start, end } = placeholder.range;
            const line = document2.getline(start.line);
            const marker = this.current = placeholder.marker;
            const range2 = this.snippet.getSnippetRange(marker);
            const tabstops = this.snippet.getSnippetTabstops(marker);
            if (marker instanceof Placeholder && marker.choice && marker.choice.options.length) {
              const col = byteIndex(line, start.character) + 1;
              wordsSource.words = marker.choice.options.map((o2) => o2.value);
              wordsSource.startcol = col - 1;
              nvim.call("coc#snippet#show_choices", [start.line + 1, col, end, placeholder.value], true);
            } else {
              await this.select(placeholder, preserveFinalMode && placeholder.index === 0);
              this.highlights();
            }
            if (triggerAutocmd) nvim.call("coc#util#do_autocmd", ["CocJumpPlaceholder"], true);
            let info = {
              forward,
              tabstops,
              snippet_start: range2.start,
              snippet_end: range2.end,
              index: placeholder.index,
              range: placeholder.range,
              charbefore: start.character == 0 ? "" : line.slice(start.character - 1, start.character)
            };
            let result = getUltiSnipActionCodes(marker, "postJump");
            if (result) {
              this.tryPostJump(result[0], result[1], info, document2.bufnr).catch(onUnexpectedError);
            } else {
              void events_default.fire("PlaceholderJump", [document2.bufnr, info]);
            }
            this.checkFinalPlaceholder();
          }
          checkFinalPlaceholder() {
            let current = this.current;
            if (current && current.index === 0) {
              const { snippet } = current;
              if (snippet === this.snippet.tmSnippet) {
                const ranges = snippet.placeholders.filter((p2) => p2.index === 0 && !p2.transform).map((p2) => this.snippet.getPlaceholderByMarker(p2).range);
                logger28.info("Jump to final placeholder, cancelling snippet session");
                this.deactivate();
                if (ranges.length > 1) window_default.cursors.createSession(this.document).addRanges(ranges);
              } else {
                let marker = snippet.parent;
                this.snippet.deactivateSnippet(snippet);
                if (marker instanceof Placeholder) {
                  this.current = marker;
                }
              }
            }
          }
          highlights() {
            let { current, config } = this;
            if (!current || !config.highlight || events_default.bufnr !== this.bufnr) return;
            let buf = this.document.buffer;
            this.nvim.pauseNotification();
            buf.clearNamespace(NAME_SPACE2);
            let ranges = this.snippet.getRanges(current);
            buf.highlightRanges(NAME_SPACE2, "CocSnippetVisual", ranges);
            this.nvim.resumeNotification(true, true);
          }
          async select(placeholder, preserveMode = false) {
            let { range: range2, value } = placeholder;
            let { nvim } = this;
            if (value.length > 0) {
              await nvim.call("coc#snippet#select", [range2.start, range2.end, value]);
            } else {
              await nvim.call("coc#snippet#move", [range2.start, preserveMode]);
            }
            nvim.redrawVim();
          }
          async checkPosition() {
            if (!this.isActive) return;
            let position = await window_default.getCursorPosition();
            if (this.snippet && positionInRange(position, this.snippet.range) != 0) {
              logger28.info("Cursor insert out of range, cancelling snippet session");
              this.deactivate();
            }
          }
          onTextChange() {
            this.cancel();
          }
          onChange(e2) {
            if (this._applying || !this.isActive || this._paused) return;
            let changes = e2.contentChanges;
            this.cancel();
            this.synchronize({ version: e2.textDocument.version, change: changes[0] }).catch(onUnexpectedError);
          }
          async synchronize(change) {
            const { document: document2, isActive } = this;
            this._paused = false;
            if (!isActive) return;
            await this.mutex.use(() => {
              if (!document2.attached || document2.dirty || !this.snippet || !this.textDocument || document2.version === this.version) return Promise.resolve();
              if (change && (change.version - this.version !== 1 || document2.version != change.version)) {
                change = void 0;
              }
              return this._synchronize(change);
            });
          }
          async _synchronize(documentChange) {
            let { document: document2, textDocument, current, snippet } = this;
            const newDocument = document2.textDocument;
            if (equals(textDocument.lines, newDocument.lines)) {
              this.textDocument = newDocument;
              return;
            }
            const startTs = Date.now();
            let tokenSource = this.tokenSource = new import_node4.CancellationTokenSource();
            const cursor = events_default.bufnr == document2.bufnr ? await window_default.getCursorPosition() : void 0;
            let change = documentChange?.change;
            if (!change) {
              let edit2 = getTextEdit(textDocument.lines, newDocument.lines, cursor, events_default.insertMode);
              change = { range: edit2.range, text: edit2.newText };
            }
            if (!emptyRange(change.range)) {
              let reduced = reduceTextEdit(TextEdit.replace(change.range, change.text), textDocument.getText(change.range));
              change = { range: reduced.range, text: reduced.newText };
            }
            const { range: range2, start } = snippet;
            let c2 = comparePosition(change.range.start, range2.end);
            let insertEnd = emptyRange(change.range) && snippet.hasEndPlaceholder;
            if (c2 > 0 || c2 === 0 && !insertEnd) {
              logger28.info("Content change after snippet");
              this.textDocument = newDocument;
              return;
            }
            c2 = comparePosition(change.range.end, range2.start);
            let insertBeginning = emptyRange(change.range) && !change.text.endsWith("\n") && snippet.hasBeginningPlaceholder;
            if (c2 < 0 || c2 === 0 && !insertBeginning) {
              let changeEnd = change.range.end;
              let checkCharacter = range2.start.line === changeEnd.line;
              let newLines = change.text.split(/\n/);
              let lc = newLines.length - (changeEnd.line - change.range.start.line + 1);
              let cc = 0;
              if (checkCharacter) {
                if (newLines.length > 1) {
                  cc = newLines[newLines.length - 1].length - changeEnd.character;
                } else {
                  cc = change.range.start.character + change.text.length - changeEnd.character;
                }
              }
              this.snippet.resetStartPosition(Position.create(start.line + lc, start.character + cc));
              this.textDocument = newDocument;
              logger28.info("Content change before snippet, reset snippet position");
              return;
            }
            if (!rangeInRange(change.range, range2)) {
              logger28.info("Before and snippet body changed, cancel snippet session");
              this.deactivate();
              return;
            }
            if (tokenSource.token.isCancellationRequested) return;
            const nextPlaceholder = getNextPlaceholder(current, true);
            const id2 = getPlaceholderId(current);
            const res = await this.snippet.replaceWithText(change.range, change.text, tokenSource.token, current, cursor);
            this.tokenSource = void 0;
            if (!res) {
              if (this.snippet) {
                let marker = this.snippet.getPlaceholderById(id2, current.index);
                this.current = defaultValue(marker, this.snippet.tmSnippet.first);
              }
              return;
            }
            this.textDocument = newDocument;
            let { snippetText, delta } = res;
            let changedRange = Range.create(start, getEnd(start, snippetText));
            const expected = newDocument.getText(changedRange);
            if (expected !== snippetText) {
              logger28.error(`Something went wrong with the snippet implementation`, change, { snippetText, expected });
              this.deactivate();
              return;
            }
            let newText = this.snippet.text;
            if (newText !== snippetText) {
              let edit2 = reduceTextEdit({ range: changedRange, newText }, snippetText);
              await this.applyEdits([edit2], true);
              if (delta) {
                this.nvim.call(`coc#cursor#move_to`, [cursor.line + delta.line, cursor.character + delta.character], true);
              }
            }
            this.highlights();
            logger28.debug("update cost:", Date.now() - startTs, res.delta);
            this.trySelectNextOnDelete(current, nextPlaceholder).catch(onUnexpectedError);
            return;
          }
          async trySelectNextOnDelete(curr, next) {
            if (!this.config.nextOnDelete || !this.snippet || !curr || curr.snippet != null && curr.toString() != "" || !next) return;
            let p2 = this.snippet.getPlaceholderByMarker(next);
            if (p2) await this.selectPlaceholder(p2, true);
          }
          async forceSynchronize() {
            if (this.isActive) {
              this._paused = false;
              await this.document.patchChange();
              await this.synchronize();
            } else {
              await this.document.patchChange();
            }
          }
          async onCompleteDone() {
            if (this.isActive) {
              this._paused = false;
              this.document._forceSync();
              await this.synchronize();
            }
          }
          get version() {
            return this.textDocument ? this.textDocument.version : -1;
          }
          get isActive() {
            return this.snippet != null;
          }
          get bufnr() {
            return this.document.bufnr;
          }
          activate(snippet) {
            if (this.isActive) return;
            this.snippet = snippet;
            this.nvim.call("coc#snippet#enable", [this.bufnr, this.config.preferComplete ? 1 : 0], true);
            this._onActiveChange.fire(true);
          }
          deactivate() {
            this.cancel();
            if (!this.isActive) return;
            this.snippet = null;
            this.current = null;
            this.nvim.call("coc#snippet#disable", [this.bufnr], true);
            if (this.config.highlight) this.nvim.call("coc#highlight#clear_highlight", [this.bufnr, NAME_SPACE2, 0, -1], true);
            this._onActiveChange.fire(false);
            logger28.debug(`session ${this.bufnr} deactivate`);
          }
          get placeholder() {
            if (!this.snippet || !this.current) return void 0;
            return this.snippet.getPlaceholderByMarker(this.current);
          }
          cancel(pause = false) {
            if (!this.isActive) return;
            if (this.tokenSource) {
              this.tokenSource.cancel();
              this.tokenSource.dispose();
              this.tokenSource = null;
            }
            if (pause) this._paused = true;
          }
          dispose() {
            this.cancel();
            this._onActiveChange.dispose();
            this.snippet = null;
            this.current = null;
            this.textDocument = void 0;
          }
          async resolveSnippet(nvim, snippetString, ultisnip) {
            let context;
            if (ultisnip) {
              ultisnip = omit(ultisnip, ["actions"]);
              context = Object.assign({
                range: Range.create(0, 0, 0, 0),
                line: ""
              }, ultisnip, { id: generateContextId(events_default.bufnr) });
              if (ultisnip.noPython !== true && snippetString.includes("`!p")) {
                await executePythonCode(nvim, getInitialPythonCode(context));
              }
            }
            const resolver2 = new SnippetVariableResolver(nvim, workspace_default.workspaceFolderControl);
            const snippet = new CocSnippet(snippetString, Position.create(0, 0), nvim, resolver2);
            await snippet.init(context);
            return snippet.text;
          }
        };
      }
    });
    
    // src/snippets/manager.ts
    var SnippetManager, manager_default2;
    var init_manager3 = __esm({
      "src/snippets/manager.ts"() {
        "use strict";
        init_main();
        init_commands();
        init_events();
        init_util();
        init_object();
        init_position();
        init_window();
        init_workspace();
        init_eval();
        init_session();
        init_util4();
        SnippetManager = class {
          disposables = [];
          _statusItem;
          bufferSync;
          config;
          /**
           * @internal
           */
          init() {
            this.synchronizeConfig();
            workspace_default.onDidChangeConfiguration((e2) => {
              if (e2.affectsConfiguration("snippet") || e2.affectsConfiguration("suggest")) {
                this.synchronizeConfig();
              }
            }, null, this.disposables);
            events_default.on(["InsertCharPre", "Enter"], () => {
              let session = this.session;
              if (session) session.cancel();
            }, null, this.disposables);
            events_default.on("CompleteDone", async (_item, _line, bufnr) => {
              let session = this.bufferSync.getItem(bufnr);
              if (session) await session.onCompleteDone();
            }, null, this.disposables);
            events_default.on("CompleteStart", async (opt) => {
              let session = this.bufferSync.getItem(opt.bufnr);
              if (session) session.cancel(true);
            }, null, this.disposables);
            events_default.on("InsertEnter", async (bufnr) => {
              let session = this.bufferSync.getItem(bufnr);
              if (session) await session.checkPosition();
            }, null, this.disposables);
            this.bufferSync = workspace_default.registerBufferSync((doc) => {
              let session = new SnippetSession(this.nvim, doc, this.config);
              session.onActiveChange((isActive) => {
                if (events_default.bufnr !== session.bufnr) return;
                this.statusItem[isActive ? "show" : "hide"]();
              });
              return session;
            });
            this.disposables.push(this.bufferSync);
            window_default.onDidChangeActiveTextEditor(async (e2) => {
              let session = this.bufferSync.getItem(e2.bufnr);
              if (session && session.isActive) {
                this.statusItem.show();
                if (!session.selected) {
                  await session.selectCurrentPlaceholder();
                }
              } else {
                this.statusItem.hide();
              }
            }, null, this.disposables);
            commands_default.register({
              id: "editor.action.insertSnippet",
              execute: async (edit2, ultisnip) => {
                const opts = ultisnip === true ? {} : ultisnip;
                return await this.insertSnippet(edit2.newText, true, edit2.range, InsertTextMode.adjustIndentation, opts ? opts : void 0);
              }
            }, true);
            commands_default.register({
              id: "editor.action.insertBufferSnippets",
              execute: async (bufnr, edits, select) => {
                return await this.insertBufferSnippets(bufnr, edits, select);
              }
            }, true);
          }
          get nvim() {
            return workspace_default.nvim;
          }
          get statusItem() {
            if (this._statusItem) return this._statusItem;
            const snippetConfig = workspace_default.initialConfiguration.get("snippet");
            const statusItem = this._statusItem = window_default.createStatusBarItem(0);
            statusItem.text = defaultValue(snippetConfig.statusText, "");
            return this._statusItem;
          }
          synchronizeConfig() {
            const snippetConfig = workspace_default.getConfiguration("snippet", null);
            const suggest = workspace_default.getConfiguration("suggest", null);
            let obj = {
              highlight: defaultValue(snippetConfig.inspect("highlight").globalValue, false),
              nextOnDelete: defaultValue(snippetConfig.inspect("nextPlaceholderOnDelete").globalValue, false),
              preferComplete: suggest.get("preferCompleteThanJumpPlaceholder", false)
            };
            if (this.config) {
              Object.assign(this.config, obj);
            } else {
              this.config = obj;
            }
          }
          async toRange(range2) {
            if (range2) return toValidRange(range2);
            let pos = await window_default.getCursorPosition();
            return Range.create(pos, pos);
          }
          async insertBufferSnippets(bufnr, edits, select = false) {
            let document2 = workspace_default.getAttachedDocument(bufnr);
            const session = this.bufferSync.getItem(bufnr);
            session.deactivate();
            let snippetEdits = [];
            for (const edit2 of edits) {
              let currentLine = document2.getline(edit2.range.start.line);
              let inserted = await this.normalizeInsertText(bufnr, toSnippetString(edit2.snippet), currentLine, InsertTextMode.asIs);
              snippetEdits.push({ range: edit2.range, snippet: inserted });
            }
            await session.synchronize();
            let isActive = await session.insertSnippetEdits(snippetEdits);
            if (isActive && select && workspace_default.bufnr === bufnr) {
              await session.selectCurrentPlaceholder(true, true);
            }
            return isActive;
          }
          /**
           * Insert snippet to specific buffer, ultisnips not supported, and the placeholder is not selected
           */
          async insertBufferSnippet(bufnr, snippet, range2, insertTextMode) {
            let document2 = workspace_default.getAttachedDocument(bufnr);
            const session = this.bufferSync.getItem(bufnr);
            session.deactivate();
            range2 = toValidRange(range2);
            const line = document2.getline(range2.start.line);
            const snippetStr = toSnippetString(snippet);
            const inserted = await this.normalizeInsertText(document2.bufnr, snippetStr, line, insertTextMode);
            await session.synchronize();
            return await session.start(inserted, range2, false);
          }
          /**
           * Insert snippet at current cursor position
           */
          async insertSnippet(snippet, select = true, range2, insertTextMode, ultisnip) {
            let { nvim } = workspace_default;
            let document2 = workspace_default.getAttachedDocument(workspace_default.bufnr);
            const session = this.bufferSync.getItem(document2.bufnr);
            let context;
            session.cancel(true);
            range2 = await this.toRange(range2);
            const currentLine = document2.getline(range2.start.line);
            const snippetStr = toSnippetString(snippet);
            const inserted = await this.normalizeInsertText(document2.bufnr, snippetStr, currentLine, insertTextMode, ultisnip);
            if (ultisnip != null) {
              const usePy = hasPython(ultisnip) || inserted.includes("`!p");
              const bufnr = document2.bufnr;
              context = Object.assign({ range: deepClone(range2), line: currentLine }, ultisnip, { id: generateContextId(bufnr) });
              if (usePy) {
                if (session.placeholder) {
                  let { start, end } = session.placeholder.range;
                  let last = {
                    current_text: session.placeholder.value,
                    start: { line: start.line, col: start.character },
                    end: { line: end.line, col: end.character }
                  };
                  this.nvim.setVar("coc_last_placeholder", last, true);
                } else {
                  this.nvim.call("coc#compat#del_var", ["coc_last_placeholder"], true);
                }
                const codes = getInitialPythonCode(context);
                let preExpand = getAction(ultisnip, "preExpand");
                if (preExpand) {
                  nvim.call("coc#cursor#move_to", [range2.end.line, range2.end.character], true);
                  await executePythonCode(nvim, codes.concat(['snip = coc_ultisnips_dict["PreExpandContext"]()', preExpand]));
                  const [valid, pos] = await nvim.call("pyxeval", "snip.getResult()");
                  if (valid) {
                    let count = range2.end.character - range2.start.character;
                    range2 = Range.create(pos[0], Math.max(0, pos[1] - count), pos[0], pos[1]);
                  } else {
                    range2 = Range.create(pos[0], pos[1], pos[0], pos[1]);
                  }
                } else {
                  await executePythonCode(nvim, codes);
                }
              }
            }
            const noMove = ultisnip == null && !session.isActive;
            if (!noMove) {
              const { start } = range2;
              nvim.call("coc#cursor#move_to", [start.line, start.character], true);
              if (!emptyRange(range2)) {
                await document2.applyEdits([TextEdit.del(range2)]);
              }
              if (session.isActive) {
                await session.synchronize();
                let pos = await window_default.getCursorPosition();
                range2 = Range.create(pos, pos);
              } else {
                range2.end = Position.create(start.line, start.character);
              }
            }
            await session.start(inserted, range2, select, context);
            return session.isActive;
          }
          /**
           * @internal
           */
          async selectCurrentPlaceholder(triggerAutocmd = true) {
            let { session } = this;
            if (session) return await session.selectCurrentPlaceholder(triggerAutocmd);
          }
          async nextPlaceholder() {
            let { session } = this;
            if (session) {
              await session.nextPlaceholder();
            } else {
              this.nvim.call("coc#snippet#disable", [], true);
            }
            return "";
          }
          async previousPlaceholder() {
            let { session } = this;
            if (session) {
              await session.previousPlaceholder();
            } else {
              this.nvim.call("coc#snippet#disable", [], true);
            }
            return "";
          }
          cancel() {
            let session = this.bufferSync.getItem(workspace_default.bufnr);
            if (session) return session.deactivate();
            this.nvim.call("coc#snippet#disable", [], true);
            this.statusItem.hide();
          }
          /**
           * @internal
           */
          get session() {
            return this.bufferSync.getItem(workspace_default.bufnr);
          }
          /**
           * exported method
           */
          getSession(bufnr) {
            let session = this.bufferSync.getItem(bufnr);
            return session && session.isActive ? session : void 0;
          }
          isActivated(bufnr) {
            let session = this.bufferSync.getItem(bufnr);
            return session && session.isActive;
          }
          /**
           * @internal
           */
          jumpable() {
            let { session } = this;
            if (!session) return false;
            return session.placeholder != null && session.placeholder.index != 0;
          }
          /**
           * Exposed for snippet preview
           */
          async resolveSnippet(snippetString, ultisnip) {
            let session = this.bufferSync.getItem(workspace_default.bufnr);
            if (!session) return;
            return await session.resolveSnippet(this.nvim, snippetString, ultisnip);
          }
          /**
           * @internal
           */
          async normalizeInsertText(bufnr, snippetString, currentLine, insertTextMode, ultisnip) {
            let inserted = "";
            if (insertTextMode === InsertTextMode.asIs || !shouldFormat(snippetString)) {
              inserted = snippetString;
            } else {
              const currentIndent = currentLine.match(/^\s*/)[0];
              let formatOptions = await workspace_default.getFormatOptions(bufnr);
              let opts = ultisnip ?? {};
              formatOptions.trimTrailingWhitespace = opts.trimTrailingWhitespace !== false;
              if (opts.noExpand) formatOptions.noExpand = true;
              inserted = normalizeSnippetString(snippetString, currentIndent, formatOptions);
            }
            return inserted;
          }
          /**
           * @internal
           */
          dispose() {
            this.cancel();
            disposeAll(this.disposables);
          }
        };
        manager_default2 = new SnippetManager();
      }
    });
    
    // src/completion/types.ts
    var SourceType;
    var init_types2 = __esm({
      "src/completion/types.ts"() {
        "use strict";
        SourceType = /* @__PURE__ */ ((SourceType2) => {
          SourceType2[SourceType2["Native"] = 0] = "Native";
          SourceType2[SourceType2["Remote"] = 1] = "Remote";
          SourceType2[SourceType2["Service"] = 2] = "Service";
          return SourceType2;
        })(SourceType || {});
      }
    });
    
    // src/util/map.ts
    var Touch, LinkedMap, LRUCache;
    var init_map = __esm({
      "src/util/map.ts"() {
        "use strict";
        ((Touch2) => {
          Touch2.None = 0;
          Touch2.First = 1;
          Touch2.AsOld = Touch2.First;
          Touch2.Last = 2;
          Touch2.AsNew = Touch2.Last;
        })(Touch || (Touch = {}));
        LinkedMap = class {
          [Symbol.toStringTag] = "LinkedMap";
          _map;
          _head;
          _tail;
          _size;
          _state;
          constructor() {
            this._map = /* @__PURE__ */ new Map();
            this._head = void 0;
            this._tail = void 0;
            this._size = 0;
            this._state = 0;
          }
          clear() {
            this._map.clear();
            this._head = void 0;
            this._tail = void 0;
            this._size = 0;
            this._state++;
          }
          isEmpty() {
            return !this._head && !this._tail;
          }
          get size() {
            return this._size;
          }
          get first() {
            return this._head?.value;
          }
          get last() {
            return this._tail?.value;
          }
          before(key) {
            const item = this._map.get(key);
            return item ? item.previous?.value : void 0;
          }
          after(key) {
            const item = this._map.get(key);
            return item ? item.next?.value : void 0;
          }
          has(key) {
            return this._map.has(key);
          }
          get(key, touch = Touch.None) {
            const item = this._map.get(key);
            if (!item) {
              return void 0;
            }
            if (touch !== Touch.None) {
              this.touch(item, touch);
            }
            return item.value;
          }
          set(key, value, touch = Touch.None) {
            let item = this._map.get(key);
            if (item) {
              item.value = value;
              if (touch !== Touch.None) {
                this.touch(item, touch);
              }
            } else {
              item = { key, value, next: void 0, previous: void 0 };
              switch (touch) {
                case Touch.None:
                  this.addItemLast(item);
                  break;
                case Touch.First:
                  this.addItemFirst(item);
                  break;
                case Touch.Last:
                  this.addItemLast(item);
                  break;
                default:
                  this.addItemLast(item);
                  break;
              }
              this._map.set(key, item);
              this._size++;
            }
            return this;
          }
          delete(key) {
            return !!this.remove(key);
          }
          remove(key) {
            const item = this._map.get(key);
            if (!item) {
              return void 0;
            }
            this._map.delete(key);
            this.removeItem(item);
            this._size--;
            return item.value;
          }
          shift() {
            if (!this._head && !this._tail) {
              return void 0;
            }
            const item = this._head;
            this._map.delete(item.key);
            this.removeItem(item);
            this._size--;
            return item.value;
          }
          forEach(callbackfn, thisArg) {
            const state = this._state;
            let current = this._head;
            while (current) {
              if (thisArg) {
                callbackfn.bind(thisArg)(current.value, current.key, this);
              } else {
                callbackfn(current.value, current.key, this);
              }
              if (this._state !== state) {
                throw new Error(`LinkedMap got modified during iteration.`);
              }
              current = current.next;
            }
          }
          keys() {
            const state = this._state;
            let current = this._head;
            const iterator = {
              [Symbol.iterator]: () => {
                return iterator;
              },
              [Symbol.dispose]: () => {
              },
              next: () => {
                if (this._state !== state) {
                  throw new Error(`LinkedMap got modified during iteration.`);
                }
                if (current) {
                  const result = { value: current.key, done: false };
                  current = current.next;
                  return result;
                } else {
                  return { value: void 0, done: true };
                }
              }
            };
            return iterator;
          }
          values() {
            const state = this._state;
            let current = this._head;
            const iterator = {
              [Symbol.iterator]: () => {
                return iterator;
              },
              [Symbol.dispose]: () => {
              },
              next: () => {
                if (this._state !== state) {
                  throw new Error(`LinkedMap got modified during iteration.`);
                }
                if (current) {
                  const result = { value: current.value, done: false };
                  current = current.next;
                  return result;
                } else {
                  return { value: void 0, done: true };
                }
              }
            };
            return iterator;
          }
          entries() {
            const state = this._state;
            let current = this._head;
            const iterator = {
              [Symbol.iterator]: () => {
                return iterator;
              },
              [Symbol.dispose]: () => {
              },
              next: () => {
                if (this._state !== state) {
                  throw new Error(`LinkedMap got modified during iteration.`);
                }
                if (current) {
                  const result = { value: [current.key, current.value], done: false };
                  current = current.next;
                  return result;
                } else {
                  return { value: void 0, done: true };
                }
              }
            };
            return iterator;
          }
          [Symbol.iterator]() {
            return this.entries();
          }
          trimOld(newSize) {
            if (newSize >= this.size) {
              return;
            }
            if (newSize === 0) {
              this.clear();
              return;
            }
            let current = this._head;
            let currentSize = this.size;
            while (current && currentSize > newSize) {
              this._map.delete(current.key);
              current = current.next;
              currentSize--;
            }
            this._head = current;
            this._size = currentSize;
            if (current) {
              current.previous = void 0;
            }
            this._state++;
          }
          addItemFirst(item) {
            if (!this._head && !this._tail) {
              this._tail = item;
            } else {
              item.next = this._head;
              this._head.previous = item;
            }
            this._head = item;
            this._state++;
          }
          addItemLast(item) {
            if (!this._head && !this._tail) {
              this._head = item;
            } else {
              item.previous = this._tail;
              this._tail.next = item;
            }
            this._tail = item;
            this._state++;
          }
          removeItem(item) {
            if (item === this._head && item === this._tail) {
              this._head = void 0;
              this._tail = void 0;
            } else if (item === this._head) {
              item.next.previous = void 0;
              this._head = item.next;
            } else if (item === this._tail) {
              item.previous.next = void 0;
              this._tail = item.previous;
            } else {
              const next = item.next;
              const previous = item.previous;
              next.previous = previous;
              previous.next = next;
            }
            item.next = void 0;
            item.previous = void 0;
            this._state++;
          }
          touch(item, touch) {
            if (touch !== Touch.First && touch !== Touch.Last) {
              return;
            }
            if (touch === Touch.First) {
              if (item === this._head) {
                return;
              }
              const next = item.next;
              const previous = item.previous;
              if (item === this._tail) {
                previous.next = void 0;
                this._tail = previous;
              } else {
                next.previous = previous;
                previous.next = next;
              }
              item.previous = void 0;
              item.next = this._head;
              this._head.previous = item;
              this._head = item;
              this._state++;
            } else if (touch === Touch.Last) {
              if (item === this._tail) {
                return;
              }
              const next = item.next;
              const previous = item.previous;
              if (item === this._head) {
                next.previous = void 0;
                this._head = next;
              } else {
                next.previous = previous;
                previous.next = next;
              }
              item.next = void 0;
              item.previous = this._tail;
              this._tail.next = item;
              this._tail = item;
              this._state++;
            }
          }
          toJSON() {
            const data = [];
            this.forEach((value, key) => {
              data.push([key, value]);
            });
            return data;
          }
          fromJSON(data) {
            this.clear();
            for (const [key, value] of data) {
              this.set(key, value);
            }
          }
        };
        LRUCache = class extends LinkedMap {
          _limit;
          _ratio;
          constructor(limit, ratio = 1) {
            super();
            this._limit = limit;
            this._ratio = Math.min(Math.max(0, ratio), 1);
          }
          get limit() {
            return this._limit;
          }
          set limit(limit) {
            this._limit = limit;
            this.checkTrim();
          }
          get ratio() {
            return this._ratio;
          }
          set ratio(ratio) {
            this._ratio = Math.min(Math.max(0, ratio), 1);
            this.checkTrim();
          }
          get(key, touch = Touch.AsNew) {
            return super.get(key, touch);
          }
          peek(key) {
            return super.get(key, Touch.None);
          }
          set(key, value) {
            super.set(key, value, Touch.Last);
            this.checkTrim();
            return this;
          }
          checkTrim() {
            if (this.size > this._limit) {
              this.trimOld(Math.round(this._limit * this._ratio));
            }
          }
        };
      }
    });
    
    // src/completion/util.ts
    function useAscii(input) {
      return input.length > 0 && input.charCodeAt(0) < ASCII_END;
    }
    function getKindText(kind, kindMap, defaultKindText) {
      return number(kind) ? kindMap.get(kind) ?? defaultKindText : kind;
    }
    function getKindHighlight(kind) {
      return number(kind) ? highlightsMap[kind] ?? DEFAULT_HL_GROUP : DEFAULT_HL_GROUP;
    }
    function getPriority(source, defaultValue2) {
      if (number(source.priority)) {
        return source.priority;
      }
      return defaultValue2;
    }
    function getDetail(item, filetype) {
      const { detail, labelDetails, label } = item;
      if (!isEmpty(labelDetails)) {
        let content = (labelDetails.detail ?? "") + (labelDetails.description ? ` ${labelDetails.description}` : "");
        return { filetype: "txt", content };
      }
      if (detail && detail !== label) {
        let isText = /^[\w-\s.,\t\n]+$/.test(detail);
        return { filetype: isText ? "txt" : filetype, content: detail };
      }
      return void 0;
    }
    function deltaCount(info) {
      if (!info.insertChar || !info.insertChars) return 0;
      if (info.insertChars.length != 2) return 0;
      let pre = info.pre;
      let last = pre[pre.length - 1];
      if (last !== info.insertChars[0] || !pariedCharacters.has(last)) return 0;
      let next = info.line[pre.length];
      if (!next || pariedCharacters.get(last) != next) return 0;
      return 1;
    }
    function toCompleteDoneItem(selected, item) {
      if (!item || !selected) return {};
      return Object.assign({
        word: selected.word,
        abbr: selected.abbr,
        kind: selected.kind,
        menu: selected.menu,
        source: selected.source.name,
        isSnippet: selected.isSnippet,
        user_data: `${selected.source.name}:0`
      }, item);
    }
    function getDocumentations(completeItem, filetype, detailRendered = false) {
      let docs = [];
      if (isCompletionItem(completeItem)) {
        let { documentation } = completeItem;
        if (!detailRendered) {
          let doc = getDetail(completeItem, filetype);
          if (doc) docs.push(doc);
        }
        if (documentation) {
          if (typeof documentation == "string") {
            docs.push({ filetype: "txt", content: documentation });
          } else if (documentation.value) {
            docs.push({
              filetype: documentation.kind == "markdown" ? "markdown" : "txt",
              content: documentation.value
            });
          }
        }
      } else {
        if (completeItem.documentation) {
          docs = completeItem.documentation;
        } else if (completeItem.info) {
          docs.push({ content: completeItem.info, filetype: "txt" });
        }
      }
      return docs;
    }
    function getResumeInput(option, pretext) {
      if (!option) return null;
      const { line, col } = option;
      const start = characterIndex(line, col);
      const pl = pretext.length;
      if (pl < start) return null;
      for (let i2 = 0; i2 < start; i2++) {
        if (pretext.charCodeAt(i2) !== line.charCodeAt(i2)) {
          return null;
        }
      }
      return byteSlice(pretext, option.col);
    }
    function checkIgnoreRegexps(ignoreRegexps, input) {
      if (!ignoreRegexps || ignoreRegexps.length == 0 || input.length == 0) return false;
      return ignoreRegexps.some((regexp) => {
        try {
          return new RegExp(regexp).test(input);
        } catch (e2) {
          return false;
        }
      });
    }
    function createKindMap(labels) {
      return /* @__PURE__ */ new Map([
        [CompletionItemKind.Text, labels["text"] ?? "v"],
        [CompletionItemKind.Method, labels["method"] ?? "f"],
        [CompletionItemKind.Function, labels["function"] ?? "f"],
        [CompletionItemKind.Constructor, typeof labels["constructor"] == "function" ? "f" : labels["constructor"] ?? ""],
        [CompletionItemKind.Field, labels["field"] ?? "m"],
        [CompletionItemKind.Variable, labels["variable"] ?? "v"],
        [CompletionItemKind.Class, labels["class"] ?? "C"],
        [CompletionItemKind.Interface, labels["interface"] ?? "I"],
        [CompletionItemKind.Module, labels["module"] ?? "M"],
        [CompletionItemKind.Property, labels["property"] ?? "m"],
        [CompletionItemKind.Unit, labels["unit"] ?? "U"],
        [CompletionItemKind.Value, labels["value"] ?? "v"],
        [CompletionItemKind.Enum, labels["enum"] ?? "E"],
        [CompletionItemKind.Keyword, labels["keyword"] ?? "k"],
        [CompletionItemKind.Snippet, labels["snippet"] ?? "S"],
        [CompletionItemKind.Color, labels["color"] ?? "v"],
        [CompletionItemKind.File, labels["file"] ?? "F"],
        [CompletionItemKind.Reference, labels["reference"] ?? "r"],
        [CompletionItemKind.Folder, labels["folder"] ?? "F"],
        [CompletionItemKind.EnumMember, labels["enumMember"] ?? "m"],
        [CompletionItemKind.Constant, labels["constant"] ?? "v"],
        [CompletionItemKind.Struct, labels["struct"] ?? "S"],
        [CompletionItemKind.Event, labels["event"] ?? "E"],
        [CompletionItemKind.Operator, labels["operator"] ?? "O"],
        [CompletionItemKind.TypeParameter, labels["typeParameter"] ?? "T"]
      ]);
    }
    function shouldStop(bufnr, info, option) {
      let { pre } = info;
      if (pre.length === 0 || getUnicodeClass(pre[pre.length - 1]) === "space") return true;
      if (option.bufnr != bufnr || option.linenr != info.lnum) return true;
      let text = byteSlice(option.line, 0, option.col);
      if (!pre.startsWith(text)) return true;
      return false;
    }
    function getInput(chars, pre, asciiCharactersOnly) {
      let len = 0;
      let prev;
      for (let i2 = pre.length - 1; i2 >= 0; i2--) {
        let code = pre.charCodeAt(i2);
        let word = isWordCode(chars, code, asciiCharactersOnly);
        if (!word || prev !== void 0 && !sameScope(prev, code)) {
          break;
        }
        len += 1;
        prev = code;
      }
      return len == 0 ? "" : pre.slice(-len);
    }
    function isWordCode(chars, code, asciiCharactersOnly) {
      if (!chars.isKeywordCode(code)) return false;
      if (isLowSurrogate(code)) return false;
      if (asciiCharactersOnly && code >= 255) return false;
      return true;
    }
    function highlightOffset(pre, item) {
      let { filterText, abbr } = item;
      let idx = abbr.indexOf(filterText);
      if (idx == -1) return -1;
      let n2 = idx == 0 ? 0 : byteIndex(abbr, idx);
      return pre + n2;
    }
    function emptLabelDetails(labelDetails) {
      if (!labelDetails) return true;
      return !labelDetails.detail && !labelDetails.description;
    }
    function isSnippetItem(item, itemDefaults) {
      let insertTextFormat = item.insertTextFormat ?? itemDefaults.insertTextFormat;
      return insertTextFormat === InsertTextFormat.Snippet;
    }
    function hasAction(item, itemDefaults) {
      return isSnippetItem(item, itemDefaults) || !isFalsyOrEmpty(item.additionalTextEdits);
    }
    function applyItemDefaults(item, itemDefaults, applyKind) {
      if (applyKind?.commitCharacters === ApplyKind.Merge && itemDefaults.commitCharacters) {
        let characters = item.commitCharacters ?? [];
        item.commitCharacters = Array.from(/* @__PURE__ */ new Set([...itemDefaults.commitCharacters, ...characters]));
      }
      if (applyKind?.data === ApplyKind.Merge) {
        if (item.data == null) {
          item.data = itemDefaults.data;
        } else if (typeof item.data === "object" && !Array.isArray(item.data)) {
          let base = itemDefaults.data != null && typeof itemDefaults.data === "object" && !Array.isArray(itemDefaults.data) ? itemDefaults.data : {};
          item.data = Object.assign({}, base, item.data);
        }
      } else if (item.data == null && itemDefaults.data != null) {
        item.data = itemDefaults.data;
      }
    }
    function toValidWord(snippet, excludes) {
      for (let i2 = 0; i2 < snippet.length; i2++) {
        let code = snippet.charCodeAt(i2);
        if (excludes.includes(code)) {
          return snippet.slice(0, i2);
        }
      }
      return snippet;
    }
    function snippetToWord(text, kind) {
      if (kind === CompletionItemKind.Function || kind === CompletionItemKind.Method || kind === CompletionItemKind.Class) {
        text = text.replace(/\(.+/, "");
      }
      if (!text.includes(DollarSign)) return text;
      return toValidWord(new SnippetParser().text(text), INVALID_WORD_CHARS);
    }
    function getWord(item, itemDefaults) {
      let { label, data, kind } = item;
      if (data && string(data.word)) return data.word;
      let textToInsert = item.textEdit ? item.textEdit.newText : item.insertText;
      if (!string(textToInsert)) return label;
      return isSnippetItem(item, itemDefaults) ? snippetToWord(textToInsert, kind) : toValidWord(textToInsert, INVALID_WORD_CHARS);
    }
    function getReplaceRange(item, defaultRange, character, insertMode) {
      let editRange;
      if (item.textEdit) {
        editRange = InsertReplaceEdit.is(item.textEdit) ? item.textEdit : item.textEdit.range;
      } else if (defaultRange) {
        editRange = defaultRange;
      }
      let range2;
      if (editRange) {
        if (Range.is(editRange)) {
          range2 = editRange;
        } else {
          range2 = insertMode == "insert" /* Insert */ || editRange.insert.end.character > editRange.replace.end.character ? editRange.insert : editRange.replace;
        }
      }
      if (range2 && number(character) && range2.start.character > character) range2.start.character = character;
      return range2;
    }
    function toItemKey(item) {
      let label = item.filterText;
      let source = item.source.name;
      let kind = item.kind ?? "";
      return `${label}|${source}|${kind}`;
    }
    var INVALID_WORD_CHARS, DollarSign, QuestionMark, MAX_CODE_POINT, MAX_MRU_ITEMS, DEFAULT_HL_GROUP, highlightsMap, Converter, MruLoader;
    var init_util5 = __esm({
      "src/completion/util.ts"() {
        "use strict";
        init_main();
        init_chars();
        init_parser3();
        init_util();
        init_array();
        init_charCode();
        init_constants();
        init_is();
        init_map();
        init_node();
        init_object();
        init_string();
        init_types2();
        INVALID_WORD_CHARS = [10 /* LineFeed */, 13 /* CarriageReturn */];
        DollarSign = "$";
        QuestionMark = "?";
        MAX_CODE_POINT = 1114111;
        MAX_MRU_ITEMS = 100;
        DEFAULT_HL_GROUP = "CocSymbolDefault";
        highlightsMap = {
          [CompletionItemKind.Text]: "CocSymbolText",
          [CompletionItemKind.Method]: "CocSymbolMethod",
          [CompletionItemKind.Function]: "CocSymbolFunction",
          [CompletionItemKind.Constructor]: "CocSymbolConstructor",
          [CompletionItemKind.Field]: "CocSymbolField",
          [CompletionItemKind.Variable]: "CocSymbolVariable",
          [CompletionItemKind.Class]: "CocSymbolClass",
          [CompletionItemKind.Interface]: "CocSymbolInterface",
          [CompletionItemKind.Module]: "CocSymbolModule",
          [CompletionItemKind.Property]: "CocSymbolProperty",
          [CompletionItemKind.Unit]: "CocSymbolUnit",
          [CompletionItemKind.Value]: "CocSymbolValue",
          [CompletionItemKind.Enum]: "CocSymbolEnum",
          [CompletionItemKind.Keyword]: "CocSymbolKeyword",
          [CompletionItemKind.Snippet]: "CocSymbolSnippet",
          [CompletionItemKind.Color]: "CocSymbolColor",
          [CompletionItemKind.File]: "CocSymbolFile",
          [CompletionItemKind.Reference]: "CocSymbolReference",
          [CompletionItemKind.Folder]: "CocSymbolFolder",
          [CompletionItemKind.EnumMember]: "CocSymbolEnumMember",
          [CompletionItemKind.Constant]: "CocSymbolConstant",
          [CompletionItemKind.Struct]: "CocSymbolStruct",
          [CompletionItemKind.Event]: "CocSymbolEvent",
          [CompletionItemKind.Operator]: "CocSymbolOperator",
          [CompletionItemKind.TypeParameter]: "CocSymbolTypeParameter"
        };
        Converter = class {
          constructor(inputStart, option, opt) {
            this.inputStart = inputStart;
            this.option = option;
            this.opt = opt;
            this.character = opt.position.character;
            this.inputLen = opt.position.character - inputStart;
          }
          inputStart;
          option;
          opt;
          // cache the sliced text
          previousCache = /* @__PURE__ */ new Map();
          postCache = /* @__PURE__ */ new Map();
          // cursor position
          character;
          minCharacter = Number.MAX_SAFE_INTEGER;
          inputLen;
          /**
           * Text before input to replace
           */
          getPrevious(character) {
            if (this.previousCache.has(character)) return this.previousCache.get(character);
            let prev = this.opt.line.slice(character, this.inputStart);
            this.previousCache.set(character, prev);
            return prev;
          }
          /**
           * Text after cursor to replace
           */
          getAfter(character) {
            if (this.postCache.has(character)) return this.postCache.get(character);
            let text = this.opt.line.slice(this.character, character);
            this.postCache.set(character, text);
            return text;
          }
          /**
           * Exclude follow characters to replace from end of word
           */
          fixFollow(word, isSnippet, endCharacter) {
            if (isSnippet || endCharacter <= this.character) return word;
            let toReplace = this.getAfter(endCharacter);
            if (word.length - this.inputLen > toReplace.length && word.endsWith(toReplace)) {
              return word.slice(0, -toReplace.length);
            }
            return word;
          }
          /**
           * Better filter text with prefix before input removed if exists.
           */
          getDelta(filterText, character) {
            if (character < this.inputStart) {
              let prev = this.getPrevious(character);
              if (filterText.startsWith(prev)) return prev.length;
            }
            return 0;
          }
          convertToDurationItem(item) {
            if (isCompletionItem(item)) {
              return this.convertLspCompleteItem(item);
            } else if (string(item.word)) {
              return this.convertVimCompleteItem(item);
            }
            return void 0;
          }
          convertVimCompleteItem(item) {
            const { option } = this;
            const { range: range2, asciiMatch } = option;
            const word = toText(item.word);
            const character = range2.start.character;
            this.minCharacter = Math.min(this.minCharacter, character);
            let filterText = item.filterText ?? word;
            filterText = asciiMatch ? unidecode(filterText) : filterText;
            const delta = this.getDelta(filterText, character);
            return {
              word: this.fixFollow(word, item.isSnippet, range2.end.character),
              abbr: item.abbr ?? word,
              filterText,
              delta,
              character,
              dup: item.dup === 1,
              menu: item.menu,
              kind: item.kind,
              isSnippet: !!item.isSnippet,
              insertText: item.insertText,
              preselect: item.preselect,
              sortText: item.sortText,
              deprecated: item.deprecated,
              detail: item.detail,
              labelDetails: item.labelDetails,
              get source() {
                return option.source;
              },
              get priority() {
                return option.source.priority ?? 99;
              },
              get shortcut() {
                return toText(option.source.shortcut);
              }
            };
          }
          convertLspCompleteItem(item) {
            const { option } = this;
            const label = item.label.trim();
            const itemDefaults = toObject(option.itemDefaults);
            const word = getWord(item, itemDefaults);
            const range2 = getReplaceRange(item, itemDefaults?.editRange, this.character, this.option.insertMode) ?? option.range;
            const character = range2.start.character;
            const data = toObject(item.data);
            const filterText = item.filterText ?? item.label;
            const delta = this.getDelta(filterText, character);
            let obj = {
              // the word to be insert from it's own character.
              word: this.fixFollow(word, isSnippetItem(item, itemDefaults), range2.end.character),
              abbr: label,
              character,
              delta,
              kind: item.kind,
              detail: item.detail,
              sortText: item.sortText,
              filterText,
              preselect: item.preselect === true,
              deprecated: item.deprecated === true || item.tags?.includes(CompletionItemTag.Deprecated),
              isSnippet: hasAction(item, itemDefaults),
              get source() {
                return option.source;
              },
              get priority() {
                return option.priority;
              },
              get shortcut() {
                return toText(option.source.shortcut);
              },
              dup: data.dup !== 0
            };
            this.minCharacter = Math.min(this.minCharacter, character);
            if (data.optional && !obj.abbr.endsWith(QuestionMark)) obj.abbr += QuestionMark;
            if (!emptLabelDetails(item.labelDetails)) obj.labelDetails = item.labelDetails;
            if (number(item["score"]) && !obj.sortText) obj.sortText = String.fromCodePoint(MAX_CODE_POINT - Math.round(item["score"]));
            return obj;
          }
        };
        MruLoader = class {
          max = 0;
          items = new LRUCache(MAX_MRU_ITEMS);
          itemsNoPrefix = new LRUCache(MAX_MRU_ITEMS);
          getScore(input, item, selection) {
            let key = toItemKey(item);
            if (input.length == 0) return this.itemsNoPrefix.get(key) ?? -1;
            if (selection === "recentlyUsedByPrefix" /* RecentlyUsedByPrefix */) key = `${input}|${key}`;
            let map = selection === "recentlyUsed" /* RecentlyUsed */ ? this.itemsNoPrefix : this.items;
            return map.get(key) ?? -1;
          }
          add(prefix2, item) {
            if (!number(item.kind)) return;
            let key = toItemKey(item);
            if (!item.filterText.startsWith(prefix2)) {
              prefix2 = "";
            }
            let line = `${prefix2}|${key}`;
            this.items.set(line, this.max);
            this.itemsNoPrefix.set(key, this.max);
            this.max += 1;
          }
          clear() {
            this.max = 0;
            this.items.clear();
            this.itemsNoPrefix.clear();
          }
        };
      }
    });
    
    // src/completion/source-language.ts
    function getUltisnipOption(item) {
      let opts = item.data?.ultisnip === true ? {} : item.data?.ultisnip;
      return opts ? opts : void 0;
    }
    function fixIndent(line, currline, range2) {
      let oldIndent = line.match(/^\s*/)[0];
      let newIndent = currline.match(/^\s*/)[0];
      if (oldIndent === newIndent) return 0;
      let d2 = newIndent.length - oldIndent.length;
      range2.start.character += d2;
      range2.end.character += d2;
      return d2;
    }
    function fixTextEdit(character, edit2) {
      if (TextEdit.is(edit2)) {
        if (character < edit2.range.start.character) {
          edit2.range.start.character = character;
        }
      }
      if (InsertReplaceEdit.is(edit2)) {
        if (character < edit2.insert.start.character) {
          edit2.insert.start.character = character;
        }
        if (character < edit2.replace.start.character) {
          edit2.replace.start.character = character;
        }
      }
      return edit2;
    }
    var logger29, LanguageSource;
    var init_source_language = __esm({
      "src/completion/source-language.ts"() {
        "use strict";
        init_main();
        init_commands();
        init_ui();
        init_logger();
        init_manager3();
        init_util();
        init_array();
        init_errors();
        init_is();
        init_object();
        init_protocol();
        init_string();
        init_workspace();
        init_types2();
        init_util5();
        logger29 = createLogger("source-language");
        LanguageSource = class {
          constructor(name2, shortcut, provider, documentSelector, triggerCharacters, allCommitCharacters, priority) {
            this.name = name2;
            this.shortcut = shortcut;
            this.provider = provider;
            this.documentSelector = documentSelector;
            this.triggerCharacters = triggerCharacters;
            this.allCommitCharacters = allCommitCharacters;
            this.priority = priority;
          }
          name;
          shortcut;
          provider;
          documentSelector;
          triggerCharacters;
          allCommitCharacters;
          priority;
          sourceType = 2 /* Service */;
          _enabled = true;
          itemDefaults = {};
          hasDefaultRange;
          // cursor position on trigger
          triggerContext;
          // Kept Promise for resolve
          resolving = /* @__PURE__ */ new WeakMap();
          get enable() {
            return this._enabled;
          }
          toggle() {
            this._enabled = !this._enabled;
          }
          shouldCommit(item, character) {
            if (this.allCommitCharacters.includes(character)) return true;
            let commitCharacters = toArray(item.commitCharacters ?? this.itemDefaults.commitCharacters);
            return commitCharacters.includes(character);
          }
          async doComplete(option, token) {
            let { triggerCharacter, bufnr, position } = option;
            let triggerKind = this.getTriggerKind(option);
            this.triggerContext = { lnum: position.line, character: position.character, line: option.line };
            let context = { triggerKind, option };
            if (triggerKind == import_node4.CompletionTriggerKind.TriggerCharacter) context.triggerCharacter = triggerCharacter;
            let textDocument = workspace_default.getDocument(bufnr).textDocument;
            await waitImmediate();
            let result = await Promise.resolve(this.provider.provideCompletionItems(textDocument, position, token, context));
            if (!result || token.isCancellationRequested) return null;
            let completeItems = Array.isArray(result) ? result : result.items;
            if (!completeItems || completeItems.length == 0) return null;
            let itemDefaults = this.itemDefaults = toObject(result["itemDefaults"]);
            let applyKind = isCompletionList(result) ? result["applyKind"] : void 0;
            if (applyKind || itemDefaults.data != null) {
              for (let item of completeItems) {
                applyItemDefaults(item, itemDefaults, applyKind);
              }
            }
            let isIncomplete = isCompletionList(result) ? result.isIncomplete === true : false;
            this.hasDefaultRange = isEditRange(itemDefaults.editRange);
            return { isIncomplete, items: completeItems, itemDefaults };
          }
          onCompleteResolve(item, opt, token) {
            let hasResolve = func(this.provider.resolveCompletionItem);
            if (!hasResolve) return;
            let promise = this.resolving.get(item);
            if (promise) return promise;
            let invalid = false;
            promise = new Promise(async (resolve, reject) => {
              let disposable = token.onCancellationRequested(() => {
                this.resolving.delete(item);
                reject(new CancellationError());
              });
              try {
                let resolved = await Promise.resolve(this.provider.resolveCompletionItem(item, token));
                disposable.dispose();
                if (!token.isCancellationRequested) {
                  if (!resolved) {
                    invalid = true;
                    this.resolving.delete(item);
                  } else {
                    if (resolved.textEdit) {
                      resolved.textEdit = fixTextEdit(opt.position.character, resolved.textEdit);
                    }
                    Object.assign(item, resolved);
                  }
                }
                resolve();
              } catch (e2) {
                invalid = true;
                this.resolving.delete(item);
                reject(e2);
              }
            });
            if (!invalid) {
              this.resolving.set(item, promise);
            }
            return promise;
          }
          async onCompleteDone(item, opt) {
            let doc = workspace_default.getDocument(opt.bufnr);
            await doc.patchChange();
            let additionalEdits = !isFalsyOrEmpty(item.additionalTextEdits);
            let version2 = doc.version;
            let isSnippet = await this.applyTextEdit(doc, additionalEdits, item, opt);
            if (additionalEdits) {
              let move = !isSnippet;
              if (isSnippet) {
                let pos = await getLineAndPosition(workspace_default.nvim);
                move = Position.create(pos.line, pos.character);
              } else {
                await manager_default2.getSession(opt.bufnr)?.synchronize();
              }
              await doc.applyEdits(item.additionalTextEdits, doc.version != version2, move);
              if (isSnippet) await manager_default2.selectCurrentPlaceholder();
            }
            if (item.command) {
              if (commands_default.has(item.command.command)) {
                void commands_default.execute(item.command);
              } else {
                logger29.warn(`Command "${item.command.command}" not registered to coc.nvim`);
              }
            }
          }
          async applyTextEdit(doc, additionalEdits, item, option) {
            let { linenr, col } = option;
            let { character, line } = this.triggerContext;
            let pos = await getLineAndPosition(workspace_default.nvim);
            if (pos.line != linenr - 1) return;
            let { textEdit, textEditText, insertText, label } = item;
            let range2 = getReplaceRange(item, this.itemDefaults?.editRange, void 0, option.insertMode);
            if (!range2) {
              let end = character + (option.insertMode == "insert" /* Insert */ ? 0 : option.followWord.length);
              range2 = Range.create(pos.line, characterIndex(line, col), pos.line, end);
            }
            let invalidRangeEnd = range2.end.character < character;
            if (invalidRangeEnd) range2.end.character = character;
            let newText = textEdit ? textEdit.newText : (textEditText && this.hasDefaultRange ? textEditText : insertText) ?? label;
            let indentCount = fixIndent(line, pos.text, range2);
            let delta = pos.character - character - indentCount;
            if (delta !== 0) range2.end.character += delta;
            let next = pos.text[range2.end.character];
            if (invalidRangeEnd && next && newText.endsWith(next) && pariedCharacters.get(newText[0]) === next) {
              range2.end.character += 1;
            }
            if (option.snippetsSupport !== false && isSnippetItem(item, this.itemDefaults)) {
              let opts = getUltisnipOption(item);
              let insertTextMode = item.insertTextMode ?? this.itemDefaults.insertTextMode;
              return await manager_default2.insertSnippet(newText, !additionalEdits, range2, insertTextMode, opts);
            }
            await doc.applyEdits([TextEdit.replace(range2, newText)], false, pos);
            return false;
          }
          getTriggerKind(opt) {
            let { triggerCharacters } = this;
            let isTrigger = triggerCharacters.includes(opt.triggerCharacter);
            let triggerKind = import_node4.CompletionTriggerKind.Invoked;
            if (opt.triggerForInComplete) {
              triggerKind = import_node4.CompletionTriggerKind.TriggerForIncompleteCompletions;
            } else if (isTrigger) {
              triggerKind = import_node4.CompletionTriggerKind.TriggerCharacter;
            }
            return triggerKind;
          }
        };
      }
    });
    
    // src/completion/wordDistance.ts
    var WordDistance;
    var init_wordDistance = __esm({
      "src/completion/wordDistance.ts"() {
        "use strict";
        init_main();
        init_events();
        init_languages();
        init_array();
        init_object();
        init_is();
        init_position();
        init_workspace();
        init_util();
        WordDistance = class _WordDistance {
          static None = new class extends _WordDistance {
            distance() {
              return 0;
            }
          }();
          static async create(localityBonus, opt, token) {
            let { position } = opt;
            let cursor = [opt.linenr, opt.colnr];
            if (!localityBonus) return _WordDistance.None;
            let doc = workspace_default.getDocument(opt.bufnr);
            const selectionRanges = await languages_default.getSelectionRanges(doc.textDocument, [position], token);
            if (!selectionRanges || token.isCancellationRequested) return _WordDistance.None;
            let ranges = [];
            const iterate = (r2) => {
              if (r2 && r2.range.end.line - r2.range.start.line < 2e3) {
                ranges.unshift(r2.range);
                iterate(r2.parent);
              }
            };
            iterate(toArray(selectionRanges)[0]);
            let wordRanges = ranges.length > 0 ? await Promise.race([waitWithToken(100, token), workspace_default.computeWordRanges(opt.bufnr, ranges[0], token)]) : void 0;
            if (!objectLiteral(wordRanges)) return _WordDistance.None;
            delete wordRanges[opt.word];
            return new class extends _WordDistance {
              // Unlike VSCode, word insert position is used here
              distance(anchor, item) {
                if (!equals([events_default.cursor.lnum, events_default.cursor.col], cursor)) {
                  return 0;
                }
                if (item.kind === CompletionItemKind.Keyword || toObject(item.source)["name"] === "snippets") {
                  return 2 << 20;
                }
                const wordLines = wordRanges[item.word];
                if (isFalsyOrEmpty(wordLines)) {
                  return 2 << 20;
                }
                const idx = binarySearch(wordLines, Range.create(anchor, anchor), compareRangesUsingStarts);
                const bestWordRange = idx >= 0 ? wordLines[idx] : wordLines[Math.max(0, ~idx - 1)];
                let blockDistance = ranges.length;
                for (const range2 of ranges) {
                  if (!rangeInRange(bestWordRange, range2)) {
                    break;
                  }
                  blockDistance -= 1;
                }
                return blockDistance;
              }
            }();
          }
        };
      }
    });
    
    // src/completion/complete.ts
    function sortItems(emptyInput, defaultSortMethod, a2, b2) {
      let sa = a2.sortText;
      let sb = b2.sortText;
      if (a2.score !== b2.score) return b2.score - a2.score;
      if (a2.priority !== b2.priority) return b2.priority - a2.priority;
      if (a2.source === b2.source && sa !== sb) return sa < sb ? -1 : 1;
      if (a2.localBonus !== b2.localBonus) return b2.localBonus - a2.localBonus;
      if (emptyInput) return b2.character - a2.character;
      switch (defaultSortMethod) {
        case "none" /* None */:
          return 0;
        case "alphabetical" /* Alphabetical */:
          return a2.filterText.localeCompare(b2.filterText);
        case "length" /* Length */:
        default:
          return a2.filterText.length - b2.filterText.length;
      }
    }
    function selectTopItems(items, count, compare2) {
      if (count <= 0) return [];
      if (items.length <= count) {
        items.sort(compare2);
        return items;
      }
      let top = [];
      for (let item of items) {
        if (top.length < count) {
          insertSorted(top, item, compare2);
        } else if (compare2(item, top[top.length - 1]) < 0) {
          insertSorted(top, item, compare2);
          top.pop();
        }
      }
      return top;
    }
    function insertSorted(arr, item, compare2) {
      let low = 0;
      let high = arr.length;
      while (low < high) {
        let mid = low + high >>> 1;
        if (compare2(arr[mid], item) <= 0) {
          low = mid + 1;
        } else {
          high = mid;
        }
      }
      arr.splice(low, 0, item);
    }
    var logger30, MAX_DISTANCE, MIN_TIMEOUT, MAX_TIMEOUT, MAX_TRIGGER_WAIT, WORD_SOURCES, GRACEFUL_MAX_ITEMS, AGGRESSIVE_MAX_ITEMS, Complete;
    var init_complete = __esm({
      "src/completion/complete.ts"() {
        "use strict";
        init_main();
        init_logger();
        init_util();
        init_array();
        init_filter();
        init_is();
        init_numbers();
        init_protocol();
        init_string();
        init_workspace();
        init_source_language();
        init_types2();
        init_util5();
        init_wordDistance();
        logger30 = createLogger("completion-complete");
        MAX_DISTANCE = 2 << 20;
        MIN_TIMEOUT = 50;
        MAX_TIMEOUT = 15e3;
        MAX_TRIGGER_WAIT = 200;
        WORD_SOURCES = /* @__PURE__ */ new Set(["buffer", "around", "word"]);
        GRACEFUL_MAX_ITEMS = 2e3;
        AGGRESSIVE_MAX_ITEMS = 300;
        Complete = class {
          constructor(option, document2, config, sources) {
            this.option = option;
            this.document = document2;
            this.config = config;
            this.sources = sources;
            this.inputStart = characterIndex(option.line, option.col);
            this.timeout = clamp(this.config.timeout, MIN_TIMEOUT, MAX_TIMEOUT);
            sources.sort((a2, b2) => (b2.priority ?? 99) - (a2.priority ?? 99));
            this.names = sources.map((o2) => o2.name);
            this.asciiMatch = config.asciiMatch && useAscii(option.input);
          }
          option;
          document;
          config;
          sources;
          // identify this complete
          results = /* @__PURE__ */ new Map();
          _input = "";
          _completing = false;
          timer;
          names = [];
          asciiMatch;
          timeout;
          cid = 0;
          minCharacter = Number.MAX_SAFE_INTEGER;
          inputStart;
          completingSources = /* @__PURE__ */ new Set();
          _onDidRefresh = new import_node4.Emitter();
          wordDistance;
          tokenSources = /* @__PURE__ */ new Set();
          tokensInfo = /* @__PURE__ */ new WeakMap();
          itemsMap = /* @__PURE__ */ new WeakMap();
          onDidRefresh = this._onDidRefresh.event;
          get nvim() {
            return workspace_default.nvim;
          }
          // trigger texts starts at character
          getTrigger(character) {
            let { linenr, col } = this.option;
            let line = this.document.getline(linenr - 1);
            let pre = line.slice(0, characterIndex(line, col)) + this.input;
            return pre.slice(character);
          }
          fireRefresh(waitTime) {
            clearTimeout(this.timer);
            if (!waitTime) {
              process.nextTick(() => {
                this._onDidRefresh.fire();
              });
            } else {
              this.timer = setTimeout(() => {
                this._onDidRefresh.fire();
              }, waitTime);
            }
          }
          get totalLength() {
            let len = 0;
            for (let result of this.results.values()) {
              len += result.items.length;
            }
            return len;
          }
          resolveItem(item) {
            if (!item) return void 0;
            return { source: item.source, item: this.itemsMap.get(item) };
          }
          get isCompleting() {
            return this._completing;
          }
          get input() {
            return this._input;
          }
          get isEmpty() {
            return this.results.size === 0;
          }
          hasSource(source) {
            return this.sources.includes(source);
          }
          getIncompleteSources() {
            return this.sources.filter((s2) => {
              let res = this.results.get(s2.name);
              return res && res.isIncomplete === true;
            });
          }
          getBackspaceSources() {
            let sources = this.sources.filter((s2) => this.results.has(s2.name));
            return sources.some((s2) => this.results.get(s2.name)?.isIncomplete === true || s2 instanceof LanguageSource) ? sources : [];
          }
          async doComplete() {
            let tokenSource = this.createTokenSource(false);
            let token = tokenSource.token;
            let res = await Promise.all([
              this.nvim.call("coc#util#synname", []),
              this.nvim.call("coc#_suggest_variables", []),
              this.document.patchChange()
            ]);
            if (token.isCancellationRequested) return;
            this.option.synname = res[0];
            let variables = res[1];
            if (variables.disable) {
              logger30.warn("suggest cancelled by b:coc_suggest_disable || macro recording");
              return true;
            }
            if (!isFalsyOrEmpty(variables.disabled_sources)) {
              this.sources = this.sources.filter((s2) => !variables.disabled_sources.includes(s2.name));
              if (this.sources.length === 0) {
                logger30.warn("suggest cancelled by b:coc_disabled_sources");
                return true;
              }
            }
            if (!isFalsyOrEmpty(variables.blacklist) && variables.blacklist.includes(this.option.input)) {
              logger30.warn("suggest cancelled by b:coc_suggest_blacklist");
              return true;
            }
            void WordDistance.create(this.config.localityBonus, this.option, token).then((instance2) => {
              this.wordDistance = instance2;
            });
            await waitWithToken(clamp(this.config.triggerCompletionWait, 0, MAX_TRIGGER_WAIT), tokenSource.token);
            await this.completeSources(this.sources, tokenSource, this.cid);
          }
          async completeSources(sources, tokenSource, cid) {
            const token = tokenSource.token;
            if (token.isCancellationRequested) return;
            this._completing = true;
            const remains = new Set(sources.map((s2) => s2.name));
            let timer;
            let disposable;
            let tp = new Promise((resolve) => {
              disposable = token.onCancellationRequested(() => {
                clearTimeout(timer);
                resolve();
              });
              timer = setTimeout(() => {
                let names = Array.from(remains);
                disposable.dispose();
                tokenSource.cancel();
                logger30.warn(`Completion timeout after ${this.timeout}ms`, names);
                this.nvim.setVar(`coc_timeout_sources`, names, true);
                resolve();
              }, this.timeout);
            });
            const range2 = this.getDefaultRange();
            let promises = sources.map((s2) => this.completeSource(s2, range2, token).then((added) => {
              remains.delete(s2.name);
              if (token.isCancellationRequested) return;
              if (this.completingSources.size === 0) {
                this.fireRefresh(0);
              } else if (added) {
                this.fireRefresh(16);
              }
            }));
            await Promise.race([tp, Promise.allSettled(promises)]);
            this.tokenSources.delete(tokenSource);
            disposable.dispose();
            clearTimeout(timer);
            if (cid === this.cid) this._completing = false;
          }
          async completeSource(source, range2, token) {
            let opt = Object.assign({}, this.option);
            let { asciiMatch } = this;
            const insertMode = this.config.insertMode;
            const sourceName = source.name;
            if (opt.triggerForInComplete && this.results.get(sourceName)?.isIncomplete !== true) {
              opt.triggerForInComplete = false;
            }
            let added = false;
            this.completingSources.add(sourceName);
            try {
              if (func(source.shouldComplete)) {
                let shouldRun = await Promise.resolve(source.shouldComplete(opt));
                if (!shouldRun || token.isCancellationRequested) return;
              }
              const start = Date.now();
              const map = this.itemsMap;
              await new Promise((resolve, reject) => {
                Promise.resolve(source.doComplete(opt, token)).then((result) => {
                  if (token.isCancellationRequested) {
                    resolve(void 0);
                    return;
                  }
                  let len = result ? result.items.length : 0;
                  logger30.debug(`Source "${sourceName}" finished with ${len} items ms cost:`, Date.now() - start);
                  if (len > 0) {
                    if (number(result.startcol)) {
                      let line = opt.linenr - 1;
                      range2 = Range.create(line, characterIndex(opt.line, result.startcol), line, range2.end.character);
                    }
                    const priority = getPriority(source, this.config.languageSourcePriority);
                    const option = { source, insertMode, priority, asciiMatch, itemDefaults: result.itemDefaults, range: range2 };
                    const converter = new Converter(this.inputStart, option, opt);
                    const items = result.items.reduce((items2, item) => {
                      let completeItem = converter.convertToDurationItem(item);
                      if (!completeItem) {
                        logger30.error(`Unexpected completion item from ${sourceName}:`, item);
                        return items2;
                      }
                      map.set(completeItem, item);
                      items2.push(completeItem);
                      return items2;
                    }, []);
                    this.minCharacter = Math.min(this.minCharacter, converter.minCharacter);
                    this.results.set(sourceName, { items, isIncomplete: result.isIncomplete === true });
                    added = true;
                  } else {
                    this.results.delete(sourceName);
                  }
                  resolve();
                }, (err) => {
                  reject(err);
                });
              });
            } catch (err) {
              logger30.error("Complete error:", source.name, err);
            }
            this.completingSources.delete(sourceName);
            return added;
          }
          async completeInComplete(resumeInput, sources = this.getIncompleteSources()) {
            let { document: document2 } = this;
            this.cancelInComplete();
            let tokenSource = this.createTokenSource(true);
            await document2.patchChange();
            let { input, colnr, linenr, followWord, position } = this.option;
            Object.assign(this.option, {
              word: resumeInput + followWord,
              input: resumeInput,
              line: document2.getline(linenr - 1),
              position: { line: position.line, character: position.character + resumeInput.length - input.length },
              colnr: colnr + (resumeInput.length - input.length),
              triggerCharacter: void 0,
              triggerForInComplete: true
            });
            this.cid++;
            await this.completeSources(sources, tokenSource, this.cid);
          }
          filterItems(input) {
            let { results, names, option, inputStart } = this;
            this._input = input;
            let len = input.length;
            let { maxItemCount, defaultSortMethod, removeDuplicateItems, removeCurrentWord } = this.config;
            let arr = [];
            let words = /* @__PURE__ */ new Set();
            const emptyInput = len == 0;
            const lowInput = input.toLowerCase();
            const scoreFn = this.getScoreFn();
            const scoreOption = { boostFullMatch: true, firstMatchCanBeWeak: false };
            const anchor = Position.create(option.linenr - 1, inputStart);
            for (let name2 of names) {
              let result = results.get(name2);
              if (!result) continue;
              let isWord = WORD_SOURCES.has(name2);
              let items = result.items;
              for (let idx = 0; idx < items.length; idx++) {
                let item = items[idx];
                let { word, filterText, dup } = item;
                if (dup !== true && words.has(word)) continue;
                if (removeCurrentWord && isWord && word === input) continue;
                if (removeDuplicateItems && item.isSnippet !== true && words.has(word)) continue;
                let fuzzyResult;
                if (!emptyInput) {
                  let lowText = filterText.toLowerCase();
                  scoreOption.firstMatchCanBeWeak = item.delta === 0 && item.character !== inputStart;
                  if (item.delta > 0) {
                    let prev = filterText.slice(0, item.delta);
                    let lowPrev = lowText.slice(0, item.delta);
                    fuzzyResult = scoreFn(prev + input, lowPrev + lowInput, 0, filterText, lowText, 0, scoreOption);
                  } else {
                    fuzzyResult = scoreFn(input, lowInput, 0, filterText, lowText, 0, scoreOption);
                  }
                  if (fuzzyResult == null) continue;
                  item.score = fuzzyResult[0];
                  item.positions = fuzzyResult;
                  if (this.wordDistance) item.localBonus = MAX_DISTANCE - this.wordDistance.distance(anchor, item);
                } else if (item.character < inputStart) {
                  let trigger = option.line.slice(item.character, inputStart);
                  scoreOption.firstMatchCanBeWeak = true;
                  let lowText = filterText.toLowerCase();
                  fuzzyResult = anyScore(trigger, trigger.toLowerCase(), 0, filterText, lowText, 0, scoreOption);
                  item.score = fuzzyResult[0];
                  item.positions = fuzzyResult;
                } else {
                  item.score = 0;
                  item.positions = void 0;
                }
                words.add(word);
                arr.push(item);
              }
            }
            let top = selectTopItems(arr, maxItemCount, sortItems.bind(null, emptyInput, defaultSortMethod));
            return this.limitCompleteItems(top);
          }
          getScoreFn() {
            let { filterGraceful } = this.config;
            if (!filterGraceful) return fuzzyScore;
            let len = this.totalLength;
            if (len > GRACEFUL_MAX_ITEMS) return fuzzyScore;
            if (len > AGGRESSIVE_MAX_ITEMS) return fuzzyScoreGraceful;
            return fuzzyScoreGracefulAggressive;
          }
          async filterResults(input, backspace = false) {
            let sources = backspace ? this.getBackspaceSources() : this.getIncompleteSources();
            if ((input.length > this.option.input.length || backspace) && sources.length > 0) {
              this.fireRefresh(30);
              void this.completeInComplete(input, sources);
              return void 0;
            }
            clearTimeout(this.timer);
            return this.filterItems(input);
          }
          limitCompleteItems(items) {
            let { highPrioritySourceLimit, lowPrioritySourceLimit } = this.config;
            if (!highPrioritySourceLimit && !lowPrioritySourceLimit) return items;
            let counts = /* @__PURE__ */ new Map();
            return items.filter((item) => {
              let { priority, source } = item;
              let isLow = priority < 90;
              let curr = counts.get(source) || 0;
              if (lowPrioritySourceLimit && isLow && curr == lowPrioritySourceLimit || highPrioritySourceLimit && !isLow && curr == highPrioritySourceLimit) {
                return false;
              }
              counts.set(source, curr + 1);
              return true;
            });
          }
          getDefaultRange() {
            let { insertMode } = this.config;
            let { linenr, followWord, position } = this.option;
            let line = linenr - 1;
            let end = position.character + (insertMode == "replace" /* Replace */ ? followWord.length : 0);
            return Range.create(line, this.inputStart, line, end);
          }
          createTokenSource(isIncomplete) {
            let tokenSource = new import_node4.CancellationTokenSource();
            this.tokenSources.add(tokenSource);
            tokenSource.token.onCancellationRequested(() => {
              this.tokenSources.delete(tokenSource);
            });
            this.tokensInfo.set(tokenSource, isIncomplete);
            return tokenSource;
          }
          cancelInComplete() {
            let { tokenSources, tokensInfo } = this;
            for (let tokenSource of Array.from(tokenSources)) {
              if (tokensInfo.get(tokenSource) === true) {
                tokenSource.cancel();
              }
            }
          }
          cancel() {
            let { tokenSources, timer } = this;
            clearTimeout(timer);
            for (let tokenSource of Array.from(tokenSources)) {
              tokenSource.cancel();
            }
            tokenSources.clear();
            this._completing = false;
          }
          dispose() {
            this.cancel();
            this.results.clear();
            this._onDidRefresh.dispose();
          }
        };
      }
    });
    
    // src/completion/floating.ts
    var logger31, RESOLVE_TIMEOUT, Floating;
    var init_floating = __esm({
      "src/completion/floating.ts"() {
        "use strict";
        init_logger();
        init_markdown();
        init_util();
        init_errors();
        init_is();
        init_protocol();
        init_workspace();
        init_util5();
        logger31 = createLogger("completion-floating");
        RESOLVE_TIMEOUT = getConditionValue(500, 50);
        Floating = class {
          constructor(config) {
            this.config = config;
          }
          config;
          resolveTokenSource;
          async resolveItem(source, item, opt, showDocs, detailRendered = false) {
            this.cancel();
            if (func(source.onCompleteResolve)) {
              try {
                await this.requestWithToken((token) => {
                  return Promise.resolve(source.onCompleteResolve(item, opt, token));
                });
              } catch (e2) {
                if (isCancellationError(e2)) return;
                logger31.error(`Error on resolve complete item from ${source.name}:`, item, e2);
              }
            }
            if (showDocs) {
              this.show(getDocumentations(item, opt.filetype, detailRendered));
            }
          }
          show(docs) {
            let config = this.config.floatConfig;
            docs = docs.filter((o2) => o2.content.trim().length > 0);
            if (docs.length === 0) {
              this.close();
            } else {
              const markdownPreference = workspace_default.configurations.markdownPreference;
              let { lines, codes, highlights } = parseDocuments(docs, markdownPreference);
              let opts = {
                codes,
                highlights,
                highlight: config.highlight ?? "CocFloating",
                maxWidth: config.maxWidth || 80,
                rounded: config.rounded ? 1 : 0,
                focusable: config.focusable === true ? 1 : 0
              };
              if (string(config.title)) opts.title = config.title;
              if (config.shadow) opts.shadow = 1;
              if (config.border) opts.border = [1, 1, 1, 1];
              if (config.borderhighlight) opts.borderhighlight = config.borderhighlight;
              if (typeof config.winblend === "number") opts.winblend = config.winblend;
              let { nvim } = workspace_default;
              nvim.call("coc#dialog#create_pum_float", [lines, opts], true);
              nvim.redrawVim();
            }
          }
          close() {
            workspace_default.nvim.call("coc#pum#close_detail", [], true);
            workspace_default.nvim.redrawVim();
          }
          cancel() {
            if (this.resolveTokenSource) {
              this.resolveTokenSource.cancel();
              this.resolveTokenSource = void 0;
            }
          }
          requestWithToken(fn) {
            let tokenSource = this.resolveTokenSource = new import_node4.CancellationTokenSource();
            return new Promise((resolve, reject) => {
              let called = false;
              let onFinish = (err) => {
                if (called) return;
                called = true;
                disposable.dispose();
                clearTimeout(timer);
                if (this.resolveTokenSource === tokenSource) {
                  this.resolveTokenSource = void 0;
                }
                if (err) {
                  reject(err);
                } else {
                  resolve();
                }
              };
              let timer = setTimeout(() => {
                tokenSource.cancel();
              }, RESOLVE_TIMEOUT);
              let disposable = tokenSource.token.onCancellationRequested(() => {
                onFinish(new CancellationError());
              });
              fn(tokenSource.token).then(() => {
                onFinish();
              }, (e2) => {
                onFinish(e2);
              });
            });
          }
        };
      }
    });
    
    // src/completion/pum.ts
    function positionHighlights(hls, label, positions, pre, line, max) {
      for (let span of matchSpansReverse(label, positions, 2, max)) {
        hls.push({
          hlGroup: "CocPumSearch" /* PumSearch */,
          lnum: line,
          colStart: pre + span[0],
          colEnd: pre + span[1]
        });
      }
    }
    function getInsertWord(word, codes, start) {
      if (codes.length === 0) return word;
      for (let i2 = start; i2 < word.length; i2++) {
        if (codes.includes(word.charCodeAt(i2))) {
          return word.slice(0, i2);
        }
      }
      return word;
    }
    function getItemWidth(item, config) {
      const { abbrWidth, menuWidth, kindWidth, shortcutWidth } = config;
      switch (item) {
        case "abbr" /* Abbr */:
          return abbrWidth + 1;
        case "menu" /* Menu */:
          return menuWidth == 0 ? 0 : menuWidth + 1;
        case "kind" /* Kind */:
          return kindWidth == 0 ? 0 : kindWidth + 1;
        case "shortcut" /* Shortcut */:
          return shortcutWidth == 0 ? 0 : shortcutWidth + 1;
        default:
          return 0;
      }
    }
    function prefixWord(word, character, line, minCharacter) {
      return minCharacter < character ? line.slice(minCharacter, character) + word : word;
    }
    var validPumItems, PopupMenu;
    var init_pum = __esm({
      "src/completion/pum.ts"() {
        "use strict";
        init_fuzzyMatch();
        init_array();
        init_filter();
        init_is();
        init_numbers();
        init_string();
        init_workspace();
        init_util5();
        validPumItems = ["abbr", "menu", "kind", "shortcut"];
        PopupMenu = class {
          constructor(config, mruLoader) {
            this.config = config;
            this.mruLoader = mruLoader;
          }
          config;
          mruLoader;
          _search = "";
          _pumConfig;
          get nvim() {
            return workspace_default.nvim;
          }
          get search() {
            return this._search;
          }
          reset() {
            this._search = "";
            this._pumConfig = void 0;
          }
          get pumConfig() {
            if (this._pumConfig) return this._pumConfig;
            let { floatConfig, pumAlign, pumFloatConfig, reversePumAboveCursor } = this.config;
            if (!pumFloatConfig) pumFloatConfig = floatConfig;
            let obj = {};
            if (pumFloatConfig.border) {
              obj.border = [1, 1, 1, 1];
              obj.rounded = pumFloatConfig.rounded ? 1 : 0;
              obj.borderhighlight = pumFloatConfig.borderhighlight ?? "CocFloatBorder";
            }
            if (string(pumFloatConfig.highlight)) obj.highlight = pumFloatConfig.highlight;
            if (number(pumFloatConfig.winblend)) obj.winblend = pumFloatConfig.winblend;
            if (string(pumFloatConfig.title)) obj.title = pumFloatConfig.title;
            if (string(pumAlign) && validPumItems.includes(pumAlign)) obj.pumAlign = pumAlign;
            obj.shadow = pumFloatConfig.shadow === true;
            obj.reverse = reversePumAboveCursor === true;
            this._pumConfig = obj;
            return obj;
          }
          stringWidth(text, cache2 = false) {
            return workspace_default.getDisplayWidth(text, cache2);
          }
          show(items, search, option) {
            this._search = search;
            let { noselect, formatItems, enablePreselect, invalidInsertCharacters, selection, virtualText, kindMap, defaultKindText } = this.config;
            const invalidInsertCodes = invalidInsertCharacters.map((ch) => ch.charCodeAt(0));
            let selectedIndex = enablePreselect ? items.findIndex((o2) => o2.preselect) : -1;
            let maxMru = -1;
            let abbrWidth = 0;
            let menuWidth = 0;
            let kindWidth = 0;
            let shortcutWidth = 0;
            let checkMru = selectedIndex == -1 && !noselect && selection !== "first" /* First */;
            let labels = [];
            let baseCharacter = characterIndex(option.line, option.col);
            let minCharacter = baseCharacter;
            for (let i2 = 0; i2 < items.length; i2++) {
              let item = items[i2];
              if (checkMru) {
                let n2 = this.mruLoader.getScore(search, item, selection);
                if (n2 > maxMru) {
                  maxMru = n2;
                  selectedIndex = i2;
                }
              }
              if (number(item.character) && item.character < minCharacter) {
                minCharacter = item.character;
              }
              let label = this.getLabel(item);
              labels.push(label);
              abbrWidth = Math.max(this.stringWidth(label.text, true), abbrWidth);
              if (item.kind) kindWidth = Math.max(this.stringWidth(getKindText(item.kind, kindMap, defaultKindText), true), kindWidth);
              if (item.menu) menuWidth = Math.max(this.stringWidth(item.menu, true), menuWidth);
              if (item.shortcut) shortcutWidth = Math.max(this.stringWidth(item.shortcut, true) + 2, shortcutWidth);
            }
            if (selectedIndex !== -1 && search.length > 0) {
              let item = items[selectedIndex];
              if (!item.word.startsWith(search) && !item.filterText.startsWith(search)) {
                selectedIndex = -1;
              }
            }
            if (!noselect) {
              selectedIndex = selectedIndex == -1 ? 0 : selectedIndex;
            } else {
              if (selectedIndex > 0) {
                let [item] = items.splice(selectedIndex, 1);
                items.unshift(item);
                let [label] = labels.splice(selectedIndex, 1);
                labels.unshift(label);
              }
              selectedIndex = -1;
            }
            let opt = {
              input: search,
              index: selectedIndex,
              bufnr: option.bufnr,
              line: option.linenr,
              // col for pum
              col: option.col,
              // col for word insert
              startcol: byteIndex(option.line, minCharacter),
              virtualText,
              words: items.map((o2) => {
                let character = o2.character;
                let start = Math.max(1, option.position.character - character + 1);
                let word = getInsertWord(o2.word, invalidInsertCodes, start);
                return prefixWord(word, character, option.line, minCharacter);
              })
            };
            let pumConfig = this.pumConfig;
            let lines = [];
            let highlights = [];
            let width = 0;
            let buildConfig = { border: !!pumConfig.border, menuWidth, abbrWidth, kindWidth, shortcutWidth };
            this.adjustAbbrWidth(buildConfig);
            let pumAlign = pumConfig.pumAlign;
            let offset = 0;
            if (pumAlign) {
              for (let item of formatItems) {
                if (item !== pumAlign) {
                  offset += getItemWidth(item, buildConfig);
                } else {
                  break;
                }
              }
            }
            let lowInput = search.toLowerCase();
            for (let index = 0; index < items.length; index++) {
              let [displayWidth, text] = this.buildItem(search, lowInput, items[index], labels[index], highlights, index, buildConfig);
              width = Math.max(width, displayWidth);
              lines.push(text);
            }
            let config = Object.assign({ width, highlights, offset }, pumConfig);
            this.nvim.call("coc#pum#create", [lines, opt, config], true);
            this.nvim.redrawVim();
          }
          getLabel(item) {
            let { labelDetails, detail } = item;
            let { snippetIndicator, labelMaxLength, detailField, detailMaxLength } = this.config;
            let label = item.abbr;
            let hls = [];
            if (item.isSnippet && !label.endsWith(snippetIndicator)) {
              label = label + snippetIndicator;
            }
            if (detailField === "abbr" && detail && !labelDetails && detail.length < detailMaxLength) {
              labelDetails = { detail: " " + detail.replace(/\r?\n\s*/g, " ") };
            }
            if (labelDetails) {
              let added = (labelDetails.detail ?? "") + (labelDetails.description ? ` ${labelDetails.description}` : "");
              if (label.length + added.length <= labelMaxLength) {
                let start = byteLength(label);
                hls.push({ start, end: start + byteLength(added), hlGroup: "CocPumDetail" /* PumDetail */ });
                label = label + added;
                item.detailRendered = true;
              }
            }
            if (label.length > labelMaxLength) {
              label = label.slice(0, labelMaxLength - 1) + ".";
            }
            return { text: label, highlights: hls };
          }
          adjustAbbrWidth(config) {
            let { formatItems } = this.config;
            let pumwidth = toNumber(workspace_default.env.pumwidth, 15);
            let len = 0;
            for (const item of formatItems) {
              len += getItemWidth(item, config);
            }
            if (len < pumwidth) {
              config.abbrWidth = config.abbrWidth + pumwidth - len;
            }
          }
          buildItem(input, lowInput, item, label, hls, index, config) {
            let { labelMaxLength, formatItems, kindMap, defaultKindText } = this.config;
            let text = config.border ? "" : " ";
            let len = byteLength(text);
            let displayWidth = text.length;
            let append = (str, width) => {
              let s2 = this.fillWidth(str, width);
              displayWidth += width;
              len += byteLength(s2);
              text += s2;
            };
            for (const name2 of formatItems) {
              switch (name2) {
                case "abbr": {
                  if (!isFalsyOrEmpty(item.positions)) {
                    let pre = highlightOffset(len, item);
                    if (pre != -1) {
                      positionHighlights(hls, item.filterText, item.positions, pre, index, labelMaxLength);
                    } else {
                      let score3 = anyScore(input, lowInput, 0, item.abbr, item.abbr.toLowerCase(), 0);
                      positionHighlights(hls, item.abbr, score3, len, index, labelMaxLength);
                    }
                  }
                  let abbr = label.text;
                  let start = len;
                  append(abbr, config.abbrWidth + 1);
                  label.highlights.forEach((hl) => {
                    hls.push({
                      hlGroup: hl.hlGroup,
                      lnum: index,
                      colStart: start + hl.start,
                      colEnd: start + hl.end
                    });
                  });
                  if (item.deprecated) {
                    hls.push({
                      hlGroup: "CocPumDeprecated" /* PumDeprecated */,
                      lnum: index,
                      colStart: start,
                      colEnd: len - 1
                    });
                  }
                  break;
                }
                case "menu": {
                  if (config.menuWidth > 0) {
                    let colStart = len;
                    append(toText(item.menu), config.menuWidth + 1);
                    if (item.menu) {
                      hls.push({
                        hlGroup: "CocPumMenu" /* PumMenu */,
                        lnum: index,
                        colStart,
                        colEnd: colStart + byteLength(item.menu)
                      });
                    }
                  }
                  break;
                }
                case "kind":
                  if (config.kindWidth > 0) {
                    let { kind } = item;
                    let kindText = getKindText(kind, kindMap, defaultKindText);
                    let colStart = len;
                    append(toText(kindText), config.kindWidth + 1);
                    if (kindText) {
                      hls.push({
                        hlGroup: getKindHighlight(kind),
                        lnum: index,
                        colStart,
                        colEnd: colStart + byteLength(kindText)
                      });
                    }
                  }
                  break;
                case "shortcut":
                  if (config.shortcutWidth > 0) {
                    let colStart = len;
                    let shortcut = item.shortcut;
                    append(shortcut ? `[${shortcut}]` : "", config.shortcutWidth + 1);
                    if (shortcut) {
                      hls.push({
                        hlGroup: "CocPumShortcut" /* PumShortcut */,
                        lnum: index,
                        colStart,
                        colEnd: colStart + byteLength(shortcut) + 2
                      });
                    }
                  }
                  break;
              }
            }
            return [displayWidth, text];
          }
          fillWidth(text, width) {
            let n2 = width - this.stringWidth(text);
            return text + " ".repeat(Math.max(n2, 0));
          }
        };
      }
    });
    
    // node_modules/pend/index.js
    var require_pend = __commonJS({
      "node_modules/pend/index.js"(exports2, module2) {
        module2.exports = Pend;
        function Pend() {
          this.pending = 0;
          this.max = Infinity;
          this.listeners = [];
          this.waiting = [];
          this.error = null;
        }
        Pend.prototype.go = function(fn) {
          if (this.pending < this.max) {
            pendGo(this, fn);
          } else {
            this.waiting.push(fn);
          }
        };
        Pend.prototype.wait = function(cb) {
          if (this.pending === 0) {
            cb(this.error);
          } else {
            this.listeners.push(cb);
          }
        };
        Pend.prototype.hold = function() {
          return pendHold(this);
        };
        function pendHold(self) {
          self.pending += 1;
          var called = false;
          return onCb;
          function onCb(err) {
            if (called) throw new Error("callback called twice");
            called = true;
            self.error = self.error || err;
            self.pending -= 1;
            if (self.waiting.length > 0 && self.pending < self.max) {
              pendGo(self, self.waiting.shift());
            } else if (self.pending === 0) {
              var listeners = self.listeners;
              self.listeners = [];
              listeners.forEach(cbListener);
            }
          }
          function cbListener(listener) {
            listener(self.error);
          }
        }
        function pendGo(self, fn) {
          fn(pendHold(self));
        }
      }
    });
    
    // node_modules/yauzl/fd-slicer.js
    var require_fd_slicer = __commonJS({
      "node_modules/yauzl/fd-slicer.js"(exports2) {
        var fs2 = require("fs");
        var util = require("util");
        var stream = require("stream");
        var Readable = stream.Readable;
        var PassThrough = stream.PassThrough;
        var Pend = require_pend();
        var EventEmitter5 = require("events").EventEmitter;
        exports2.BufferSlicer = BufferSlicer;
        exports2.FdSlicer = FdSlicer;
        util.inherits(FdSlicer, EventEmitter5);
        function FdSlicer(fd) {
          EventEmitter5.call(this);
          this.fd = fd;
          this.pend = new Pend();
          this.pend.max = 1;
          this.refCount = 0;
        }
        FdSlicer.prototype.read = function(buffer, offset, length, position, callback) {
          var self = this;
          self.pend.go(function(cb) {
            fs2.read(self.fd, buffer, offset, length, position, function(err, bytesRead, buffer2) {
              cb();
              callback(err, bytesRead, buffer2);
            });
          });
        };
        FdSlicer.prototype.createReadStream = function(options3) {
          return new ReadStream(this, options3);
        };
        FdSlicer.prototype.ref = function() {
          this.refCount += 1;
        };
        FdSlicer.prototype.unref = function() {
          var self = this;
          self.refCount -= 1;
          if (self.refCount < 0) throw new Error("invalid unref");
          if (self.refCount > 0) return;
          fs2.close(self.fd, onCloseDone);
          function onCloseDone(err) {
            if (err) {
              self.emit("error", err);
            } else {
              self.emit("close");
            }
          }
        };
        util.inherits(ReadStream, Readable);
        function ReadStream(context, options3) {
          options3 = options3 || {};
          Readable.call(this, options3);
          this.context = context;
          this.context.ref();
          this.start = options3.start || 0;
          this.endOffset = options3.end;
          this.pos = this.start;
        }
        ReadStream.prototype._read = function(n2) {
          var self = this;
          var toRead = Math.min(self._readableState.highWaterMark, n2);
          if (self.endOffset != null) {
            toRead = Math.min(toRead, self.endOffset - self.pos);
          }
          if (toRead <= 0) {
            self.push(null);
            this._cleanup();
            return;
          }
          self.context.pend.go(function(cb) {
            var buffer = Buffer.allocUnsafe(toRead);
            fs2.read(self.context.fd, buffer, 0, toRead, self.pos, function(err, bytesRead) {
              if (err) {
                self.destroy(err);
              } else if (bytesRead === 0) {
                self.push(null);
                self._cleanup();
              } else {
                self.pos += bytesRead;
                self.push(buffer.slice(0, bytesRead));
              }
              cb();
            });
          });
        };
        ReadStream.prototype._destroy = function(err, cb) {
          this._cleanup();
          cb(err);
        };
        ReadStream.prototype._cleanup = function() {
          if (this.context != null) {
            this.context.unref();
            this.context = null;
          }
        };
        util.inherits(BufferSlicer, EventEmitter5);
        function BufferSlicer(buffer) {
          EventEmitter5.call(this);
          this.refCount = 0;
          this.buffer = buffer;
        }
        BufferSlicer.prototype.read = function(buffer, offset, length, position, callback) {
          if (!(0 <= offset && offset <= buffer.length)) throw new RangeError("offset outside buffer: 0 <= " + offset + " <= " + buffer.length);
          if (position < 0) throw new RangeError("position is negative: " + position);
          if (offset + length > buffer.length) {
            length = buffer.length - offset;
          }
          if (position + length > this.buffer.length) {
            length = this.buffer.length - position;
          }
          if (length <= 0) {
            setImmediate(function() {
              callback(null, 0);
            });
            return;
          }
          this.buffer.copy(buffer, offset, position, position + length);
          setImmediate(function() {
            callback(null, length);
          });
        };
        BufferSlicer.prototype.createReadStream = function(options3) {
          options3 = options3 || {};
          var readStream = new PassThrough(options3);
          readStream.start = options3.start || 0;
          readStream.endOffset = options3.end;
          readStream.pos = readStream.endOffset || this.buffer.length;
          var entireSlice = this.buffer.slice(readStream.start, readStream.pos);
          var maxChunkSize = 65536;
          var offset = 0;
          while (true) {
            var nextOffset = offset + maxChunkSize;
            if (nextOffset >= entireSlice.length) {
              if (offset < entireSlice.length) {
                readStream.write(entireSlice.slice(offset, entireSlice.length));
              }
              break;
            }
            readStream.write(entireSlice.slice(offset, nextOffset));
            offset = nextOffset;
          }
          readStream.end();
          return readStream;
        };
        BufferSlicer.prototype.ref = function() {
          this.refCount += 1;
        };
        BufferSlicer.prototype.unref = function() {
          this.refCount -= 1;
          if (this.refCount < 0) {
            throw new Error("invalid unref");
          }
        };
      }
    });
    
    // node_modules/yauzl/crc32.js
    var require_crc32 = __commonJS({
      "node_modules/yauzl/crc32.js"(exports2, module2) {
        var CRC_TABLE = new Int32Array([
          0,
          1996959894,
          3993919788,
          2567524794,
          124634137,
          1886057615,
          3915621685,
          2657392035,
          249268274,
          2044508324,
          3772115230,
          2547177864,
          162941995,
          2125561021,
          3887607047,
          2428444049,
          498536548,
          1789927666,
          4089016648,
          2227061214,
          450548861,
          1843258603,
          4107580753,
          2211677639,
          325883990,
          1684777152,
          4251122042,
          2321926636,
          335633487,
          1661365465,
          4195302755,
          2366115317,
          997073096,
          1281953886,
          3579855332,
          2724688242,
          1006888145,
          1258607687,
          3524101629,
          2768942443,
          901097722,
          1119000684,
          3686517206,
          2898065728,
          853044451,
          1172266101,
          3705015759,
          2882616665,
          651767980,
          1373503546,
          3369554304,
          3218104598,
          565507253,
          1454621731,
          3485111705,
          3099436303,
          671266974,
          1594198024,
          3322730930,
          2970347812,
          795835527,
          1483230225,
          3244367275,
          3060149565,
          1994146192,
          31158534,
          2563907772,
          4023717930,
          1907459465,
          112637215,
          2680153253,
          3904427059,
          2013776290,
          251722036,
          2517215374,
          3775830040,
          2137656763,
          141376813,
          2439277719,
          3865271297,
          1802195444,
          476864866,
          2238001368,
          4066508878,
          1812370925,
          453092731,
          2181625025,
          4111451223,
          1706088902,
          314042704,
          2344532202,
          4240017532,
          1658658271,
          366619977,
          2362670323,
          4224994405,
          1303535960,
          984961486,
          2747007092,
          3569037538,
          1256170817,
          1037604311,
          2765210733,
          3554079995,
          1131014506,
          879679996,
          2909243462,
          3663771856,
          1141124467,
          855842277,
          2852801631,
          3708648649,
          1342533948,
          654459306,
          3188396048,
          3373015174,
          1466479909,
          544179635,
          3110523913,
          3462522015,
          1591671054,
          702138776,
          2966460450,
          3352799412,
          1504918807,
          783551873,
          3082640443,
          3233442989,
          3988292384,
          2596254646,
          62317068,
          1957810842,
          3939845945,
          2647816111,
          81470997,
          1943803523,
          3814918930,
          2489596804,
          225274430,
          2053790376,
          3826175755,
          2466906013,
          167816743,
          2097651377,
          4027552580,
          2265490386,
          503444072,
          1762050814,
          4150417245,
          2154129355,
          426522225,
          1852507879,
          4275313526,
          2312317920,
          282753626,
          1742555852,
          4189708143,
          2394877945,
          397917763,
          1622183637,
          3604390888,
          2714866558,
          953729732,
          1340076626,
          3518719985,
          2797360999,
          1068828381,
          1219638859,
          3624741850,
          2936675148,
          906185462,
          1090812512,
          3747672003,
          2825379669,
          829329135,
          1181335161,
          3412177804,
          3160834842,
          628085408,
          1382605366,
          3423369109,
          3138078467,
          570562233,
          1426400815,
          3317316542,
          2998733608,
          733239954,
          1555261956,
          3268935591,
          3050360625,
          752459403,
          1541320221,
          2607071920,
          3965973030,
          1969922972,
          40735498,
          2617837225,
          3943577151,
          1913087877,
          83908371,
          2512341634,
          3803740692,
          2075208622,
          213261112,
          2463272603,
          3855990285,
          2094854071,
          198958881,
          2262029012,
          4057260610,
          1759359992,
          534414190,
          2176718541,
          4139329115,
          1873836001,
          414664567,
          2282248934,
          4279200368,
          1711684554,
          285281116,
          2405801727,
          4167216745,
          1634467795,
          376229701,
          2685067896,
          3608007406,
          1308918612,
          956543938,
          2808555105,
          3495958263,
          1231636301,
          1047427035,
          2932959818,
          3654703836,
          1088359270,
          936918e3,
          2847714899,
          3736837829,
          1202900863,
          817233897,
          3183342108,
          3401237130,
          1404277552,
          615818150,
          3134207493,
          3453421203,
          1423857449,
          601450431,
          3009837614,
          3294710456,
          1567103746,
          711928724,
          3020668471,
          3272380065,
          1510334235,
          755167117
        ]);
        function crc32(buf) {
          let crc = -1;
          for (let x2 of buf) {
            crc = CRC_TABLE[(crc ^ x2) & 255] ^ crc >>> 8;
          }
          return (crc ^ -1) >>> 0;
        }
        module2.exports = crc32;
      }
    });
    
    // node_modules/yauzl/index.js
    var require_yauzl = __commonJS({
      "node_modules/yauzl/index.js"(exports2) {
        var fs2 = require("fs");
        var zlib2 = require("zlib");
        var fd_slicer = require_fd_slicer();
        var util = require("util");
        var EventEmitter5 = require("events").EventEmitter;
        var Transform2 = require("stream").Transform;
        var PassThrough = require("stream").PassThrough;
        var Writable = require("stream").Writable;
        var crc32 = typeof zlib2.crc32 === "function" ? zlib2.crc32 : require_crc32();
        exports2.open = open2;
        exports2.fromFd = fromFd;
        exports2.fromBuffer = fromBuffer;
        exports2.fromRandomAccessReader = fromRandomAccessReader;
        exports2.openPromise = openPromise;
        exports2.fromFdPromise = fromFdPromise;
        exports2.fromBufferPromise = fromBufferPromise;
        exports2.fromRandomAccessReaderPromise = fromRandomAccessReaderPromise;
        exports2.dosDateTimeToDate = dosDateTimeToDate;
        exports2.getFileNameLowLevel = getFileNameLowLevel2;
        exports2.validateFileName = validateFileName;
        exports2.parseExtraFields = parseExtraFields;
        exports2.ZipFile = ZipFile;
        exports2.Entry = Entry;
        exports2.LocalFileHeader = LocalFileHeader;
        exports2.RandomAccessReader = RandomAccessReader;
        function openPromise(path4, options3) {
          return new Promise((resolve, reject) => {
            open2(path4, { ...options3, lazyEntries: true }, function(err, zipfile) {
              if (err) return reject(err);
              resolve(zipfile);
            });
          });
        }
        function fromFdPromise(fd, options3) {
          return new Promise((resolve, reject) => {
            fromFd(fd, { ...options3, lazyEntries: true }, function(err, zipfile) {
              if (err) return reject(err);
              resolve(zipfile);
            });
          });
        }
        function fromBufferPromise(buffer, options3) {
          return new Promise((resolve, reject) => {
            fromBuffer(buffer, { ...options3, lazyEntries: true }, function(err, zipfile) {
              if (err) return reject(err);
              resolve(zipfile);
            });
          });
        }
        function fromRandomAccessReaderPromise(reader, totalSize, options3) {
          return new Promise((resolve, reject) => {
            fromRandomAccessReader(reader, totalSize, { ...options3, lazyEntries: true }, function(err, zipfile) {
              if (err) return reject(err);
              resolve(zipfile);
            });
          });
        }
        function open2(path4, options3, callback) {
          if (typeof options3 === "function") {
            callback = options3;
            options3 = null;
          }
          if (options3 == null) options3 = {};
          if (options3.autoClose == null) options3.autoClose = true;
          if (options3.lazyEntries == null) options3.lazyEntries = false;
          if (options3.decodeStrings == null) options3.decodeStrings = true;
          if (options3.validateEntrySizes == null) options3.validateEntrySizes = true;
          if (options3.strictFileNames == null) options3.strictFileNames = false;
          if (callback == null) callback = defaultCallback;
          fs2.open(path4, "r", function(err, fd) {
            if (err) return callback(err);
            fromFd(fd, options3, function(err2, zipfile) {
              if (err2) fs2.close(fd, defaultCallback);
              callback(err2, zipfile);
            });
          });
        }
        function fromFd(fd, options3, callback) {
          if (typeof options3 === "function") {
            callback = options3;
            options3 = null;
          }
          if (options3 == null) options3 = {};
          if (options3.autoClose == null) options3.autoClose = false;
          if (options3.lazyEntries == null) options3.lazyEntries = false;
          if (options3.decodeStrings == null) options3.decodeStrings = true;
          if (options3.validateEntrySizes == null) options3.validateEntrySizes = true;
          if (options3.strictFileNames == null) options3.strictFileNames = false;
          if (callback == null) callback = defaultCallback;
          fs2.fstat(fd, function(err, stats) {
            if (err) return callback(err);
            var reader = new fd_slicer.FdSlicer(fd);
            fromRandomAccessReader(reader, stats.size, options3, callback);
          });
        }
        function fromBuffer(buffer, options3, callback) {
          if (typeof options3 === "function") {
            callback = options3;
            options3 = null;
          }
          if (options3 == null) options3 = {};
          options3.autoClose = false;
          if (options3.lazyEntries == null) options3.lazyEntries = false;
          if (options3.decodeStrings == null) options3.decodeStrings = true;
          if (options3.validateEntrySizes == null) options3.validateEntrySizes = true;
          if (options3.strictFileNames == null) options3.strictFileNames = false;
          var reader = new fd_slicer.BufferSlicer(buffer);
          fromRandomAccessReader(reader, buffer.length, options3, callback);
        }
        function fromRandomAccessReader(reader, totalSize, options3, callback) {
          if (typeof options3 === "function") {
            callback = options3;
            options3 = null;
          }
          if (options3 == null) options3 = {};
          if (options3.autoClose == null) options3.autoClose = true;
          if (options3.lazyEntries == null) options3.lazyEntries = false;
          if (options3.decodeStrings == null) options3.decodeStrings = true;
          var decodeStrings = !!options3.decodeStrings;
          if (options3.validateEntrySizes == null) options3.validateEntrySizes = true;
          if (options3.strictFileNames == null) options3.strictFileNames = false;
          if (callback == null) callback = defaultCallback;
          if (typeof totalSize !== "number") throw new Error("expected totalSize parameter to be a number");
          if (totalSize > Number.MAX_SAFE_INTEGER) {
            throw new Error("zip file too large. only file sizes up to 2^52 are supported due to JavaScript's Number type being an IEEE 754 double.");
          }
          reader.ref();
          var eocdrWithoutCommentSize = 22;
          var zip64EocdlSize = 20;
          var maxCommentSize = 65535;
          var bufferSize = Math.min(zip64EocdlSize + eocdrWithoutCommentSize + maxCommentSize, totalSize);
          var buffer = newBuffer(bufferSize);
          var bufferReadStart = totalSize - buffer.length;
          readAndAssertNoEof(reader, buffer, 0, bufferSize, bufferReadStart, function(err) {
            if (err) return callback(err);
            for (var i2 = bufferSize - eocdrWithoutCommentSize; i2 >= 0; i2 -= 1) {
              if (buffer.readUInt32LE(i2) !== 101010256) continue;
              var eocdrBuffer = buffer.subarray(i2);
              var diskNumber = eocdrBuffer.readUInt16LE(4);
              var entryCount = eocdrBuffer.readUInt16LE(10);
              var centralDirectoryOffset = eocdrBuffer.readUInt32LE(16);
              var commentLength = eocdrBuffer.readUInt16LE(20);
              var expectedCommentLength = eocdrBuffer.length - eocdrWithoutCommentSize;
              if (commentLength !== expectedCommentLength) {
                return callback(new Error("Invalid comment length. Expected: " + expectedCommentLength + ". Found: " + commentLength + ". Are there extra bytes at the end of the file? Or is the end of central dir signature `PK\u263A\u263B` in the comment?"));
              }
              var comment = decodeStrings ? decodeBuffer(eocdrBuffer.subarray(22), false) : eocdrBuffer.subarray(22);
              if (i2 - zip64EocdlSize >= 0 && buffer.readUInt32LE(i2 - zip64EocdlSize) === 117853008) {
                var zip64EocdlBuffer = buffer.subarray(i2 - zip64EocdlSize, i2 - zip64EocdlSize + zip64EocdlSize);
                var zip64EocdrOffset = readUInt64LE(zip64EocdlBuffer, 8);
                var zip64EocdrBuffer = newBuffer(56);
                return readAndAssertNoEof(reader, zip64EocdrBuffer, 0, zip64EocdrBuffer.length, zip64EocdrOffset, function(err2) {
                  if (err2) return callback(err2);
                  if (zip64EocdrBuffer.readUInt32LE(0) !== 101075792) {
                    return callback(new Error("invalid zip64 end of central directory record signature"));
                  }
                  diskNumber = zip64EocdrBuffer.readUInt32LE(16);
                  if (diskNumber !== 0) {
                    return callback(new Error("multi-disk zip files are not supported: found disk number: " + diskNumber));
                  }
                  entryCount = readUInt64LE(zip64EocdrBuffer, 32);
                  centralDirectoryOffset = readUInt64LE(zip64EocdrBuffer, 48);
                  return callback(null, new ZipFile(reader, centralDirectoryOffset, totalSize, entryCount, comment, options3.autoClose, options3.lazyEntries, decodeStrings, options3.validateEntrySizes, options3.strictFileNames));
                });
              }
              if (diskNumber !== 0) {
                return callback(new Error("multi-disk zip files are not supported: found disk number: " + diskNumber));
              }
              return callback(null, new ZipFile(reader, centralDirectoryOffset, totalSize, entryCount, comment, options3.autoClose, options3.lazyEntries, decodeStrings, options3.validateEntrySizes, options3.strictFileNames));
            }
            callback(new Error("End of central directory record signature not found. Either not a zip file, or file is truncated."));
          });
        }
        util.inherits(ZipFile, EventEmitter5);
        function ZipFile(reader, centralDirectoryOffset, fileSize, entryCount, comment, autoClose, lazyEntries, decodeStrings, validateEntrySizes, strictFileNames) {
          var self = this;
          EventEmitter5.call(self);
          self.reader = reader;
          self.reader.on("error", function(err) {
            emitError(self, err);
          });
          self.reader.once("close", function() {
            self.emit("close");
          });
          self.readEntryCursor = centralDirectoryOffset;
          self.fileSize = fileSize;
          self.entryCount = entryCount;
          self.comment = comment;
          self.entriesRead = 0;
          self.autoClose = !!autoClose;
          self.lazyEntries = !!lazyEntries;
          self.decodeStrings = !!decodeStrings;
          self.validateEntrySizes = !!validateEntrySizes;
          self.strictFileNames = !!strictFileNames;
          self.isOpen = true;
          self.emittedError = false;
          self.hasEachEntryBeenCalled = false;
          if (!self.lazyEntries) self._readEntry();
        }
        ZipFile.prototype.close = function() {
          if (!this.isOpen) return;
          this.isOpen = false;
          this.reader.unref();
        };
        function emitErrorAndAutoClose(self, err) {
          if (self.autoClose) self.close();
          emitError(self, err);
        }
        function emitError(self, err) {
          if (self.emittedError) return;
          self.emittedError = true;
          self.emit("error", err);
        }
        ZipFile.prototype.readEntry = function() {
          if (!this.lazyEntries) throw new Error("readEntry() called without lazyEntries:true");
          this._readEntry();
        };
        ZipFile.prototype._readEntry = function() {
          var self = this;
          if (self.entryCount === self.entriesRead) {
            setImmediate(function() {
              if (self.autoClose) self.close();
              if (self.emittedError) return;
              self.emit("end");
            });
            return;
          }
          if (self.emittedError) return;
          var buffer = newBuffer(46);
          readAndAssertNoEof(self.reader, buffer, 0, buffer.length, self.readEntryCursor, function(err) {
            if (err) return emitErrorAndAutoClose(self, err);
            if (self.emittedError) return;
            var entry = new Entry();
            var signature = buffer.readUInt32LE(0);
            if (signature !== 33639248) return emitErrorAndAutoClose(self, new Error("invalid central directory file header signature: 0x" + signature.toString(16)));
            entry.versionMadeBy = buffer.readUInt16LE(4);
            entry.versionNeededToExtract = buffer.readUInt16LE(6);
            entry.generalPurposeBitFlag = buffer.readUInt16LE(8);
            entry.compressionMethod = buffer.readUInt16LE(10);
            entry.lastModFileTime = buffer.readUInt16LE(12);
            entry.lastModFileDate = buffer.readUInt16LE(14);
            entry.crc32 = buffer.readUInt32LE(16);
            entry.compressedSize = buffer.readUInt32LE(20);
            entry.uncompressedSize = buffer.readUInt32LE(24);
            entry.fileNameLength = buffer.readUInt16LE(28);
            entry.extraFieldLength = buffer.readUInt16LE(30);
            entry.fileCommentLength = buffer.readUInt16LE(32);
            entry.internalFileAttributes = buffer.readUInt16LE(36);
            entry.externalFileAttributes = buffer.readUInt32LE(38);
            entry.relativeOffsetOfLocalHeader = buffer.readUInt32LE(42);
            if (entry.generalPurposeBitFlag & 64) return emitErrorAndAutoClose(self, new Error("strong encryption is not supported"));
            self.readEntryCursor += 46;
            buffer = newBuffer(entry.fileNameLength + entry.extraFieldLength + entry.fileCommentLength);
            readAndAssertNoEof(self.reader, buffer, 0, buffer.length, self.readEntryCursor, function(err2) {
              if (err2) return emitErrorAndAutoClose(self, err2);
              if (self.emittedError) return;
              entry.fileNameRaw = buffer.subarray(0, entry.fileNameLength);
              var fileCommentStart = entry.fileNameLength + entry.extraFieldLength;
              entry.extraFieldRaw = buffer.subarray(entry.fileNameLength, fileCommentStart);
              entry.fileCommentRaw = buffer.subarray(fileCommentStart, fileCommentStart + entry.fileCommentLength);
              try {
                entry.extraFields = parseExtraFields(entry.extraFieldRaw);
              } catch (err3) {
                return emitErrorAndAutoClose(self, err3);
              }
              if (self.decodeStrings) {
                var isUtf8 = (entry.generalPurposeBitFlag & 2048) !== 0;
                entry.fileComment = decodeBuffer(entry.fileCommentRaw, isUtf8);
                entry.fileName = getFileNameLowLevel2(entry.generalPurposeBitFlag, entry.fileNameRaw, entry.extraFields, self.strictFileNames);
                var errorMessage = validateFileName(entry.fileName);
                if (errorMessage != null) return emitErrorAndAutoClose(self, new Error(errorMessage));
              } else {
                entry.fileComment = entry.fileCommentRaw;
                entry.fileName = entry.fileNameRaw;
              }
              entry.comment = entry.fileComment;
              self.readEntryCursor += buffer.length;
              self.entriesRead += 1;
              for (var i2 = 0; i2 < entry.extraFields.length; i2++) {
                var extraField = entry.extraFields[i2];
                if (extraField.id !== 1) continue;
                var zip64EiefBuffer = extraField.data;
                var index = 0;
                if (entry.uncompressedSize === 4294967295) {
                  if (index + 8 > zip64EiefBuffer.length) {
                    return emitErrorAndAutoClose(self, new Error("zip64 extended information extra field does not include uncompressed size"));
                  }
                  entry.uncompressedSize = readUInt64LE(zip64EiefBuffer, index);
                  index += 8;
                }
                if (entry.compressedSize === 4294967295) {
                  if (index + 8 > zip64EiefBuffer.length) {
                    return emitErrorAndAutoClose(self, new Error("zip64 extended information extra field does not include compressed size"));
                  }
                  entry.compressedSize = readUInt64LE(zip64EiefBuffer, index);
                  index += 8;
                }
                if (entry.relativeOffsetOfLocalHeader === 4294967295) {
                  if (index + 8 > zip64EiefBuffer.length) {
                    return emitErrorAndAutoClose(self, new Error("zip64 extended information extra field does not include relative header offset"));
                  }
                  entry.relativeOffsetOfLocalHeader = readUInt64LE(zip64EiefBuffer, index);
                  index += 8;
                }
                break;
              }
              if (self.validateEntrySizes && entry.compressionMethod === 0) {
                var expectedCompressedSize = entry.uncompressedSize;
                if (entry.isEncrypted()) {
                  expectedCompressedSize += 12;
                }
                if (entry.compressedSize !== expectedCompressedSize) {
                  var msg = "compressed/uncompressed size mismatch for stored file: " + entry.compressedSize + " != " + entry.uncompressedSize;
                  return emitErrorAndAutoClose(self, new Error(msg));
                }
              }
              self.emit("entry", entry);
              if (!self.lazyEntries) self._readEntry();
            });
          });
        };
        ZipFile.prototype.eachEntry = function() {
          const self = this;
          if (!self.lazyEntries) throw new Error("eachEntry() requires lazyEntries: true");
          if (self.hasEachEntryBeenCalled) throw new Error("eachEntry() must only be called once per ZipFile");
          self.hasEachEntryBeenCalled = true;
          let pendingResolveReject = null;
          self.on("entry", onEntry);
          self.on("end", onEnd);
          self.on("error", onError);
          function cleanup() {
            self.removeListener("entry", onEntry);
            self.removeListener("end", onEnd);
            self.removeListener("error", onError);
            if (self.autoClose) self.close();
          }
          function onEntry(entry) {
            let { resolve } = pendingResolveReject;
            pendingResolveReject = null;
            resolve({ value: entry });
          }
          function onEnd() {
            let { resolve } = pendingResolveReject;
            pendingResolveReject = null;
            cleanup();
            resolve({ done: true });
          }
          function onError(err) {
            let { reject } = pendingResolveReject;
            pendingResolveReject = null;
            cleanup();
            reject(err);
          }
          return {
            [Symbol.asyncIterator]() {
              return this;
            },
            next() {
              const promise = new Promise((resolve, reject) => {
                if (pendingResolveReject != null) throw new Error("next() called before previous Promise was resolved.");
                pendingResolveReject = { resolve, reject };
              });
              self.readEntry();
              return promise;
            },
            return(value) {
              cleanup();
              return Promise.resolve({ done: true, value });
            },
            throw(value) {
              cleanup();
              return Promise.reject(value);
            }
          };
        };
        ZipFile.prototype.openReadStream = function(entry, options3, callback) {
          var self = this;
          var relativeStart = 0;
          var relativeEnd = entry.compressedSize;
          if (callback == null) {
            callback = options3;
            options3 = null;
          }
          if (options3 == null) {
            options3 = {};
          } else {
            if (options3.decodeFileData === false) {
              if (options3.decrypt != null) {
                throw new Error("cannot use options.decrypt when options.decodeFileData === false");
              }
              if (options3.decompress != null) {
                throw new Error("cannot use options.decompress when options.decodeFileData === false");
              }
            } else {
              if (options3.decrypt != null) {
                if (!entry.isEncrypted()) {
                  throw new Error("options.decrypt can only be specified for encrypted entries. See also option decodeFileData.");
                }
                if (options3.decrypt !== false) throw new Error("invalid options.decrypt value: " + options3.decrypt);
                if (entry.isCompressed()) {
                  if (options3.decompress !== false) throw new Error("entry is encrypted and compressed, and options.decompress !== false. See also option decodeFileData.");
                }
              }
              if (options3.decompress != null) {
                if (!entry.isCompressed()) {
                  throw new Error("options.decompress can only be specified for compressed entries. See also option decodeFileData.");
                }
                if (!(options3.decompress === false || options3.decompress === true)) {
                  throw new Error("invalid options.decompress value: " + options3.decompress);
                }
                decompress = options3.decompress;
              }
            }
            if (options3.start != null) {
              relativeStart = options3.start;
              if (relativeStart < 0) throw new Error("options.start < 0");
              if (relativeStart > entry.compressedSize) throw new Error("options.start > entry.compressedSize");
            }
            if (options3.end != null) {
              relativeEnd = options3.end;
              if (relativeEnd < 0) throw new Error("options.end < 0");
              if (relativeEnd > entry.compressedSize) throw new Error("options.end > entry.compressedSize");
              if (relativeEnd < relativeStart) throw new Error("options.end < options.start");
            }
          }
          var rawMode = options3.decodeFileData === false || // Explicitly requested raw.
          (entry.compressionMethod === 0 || // Naturally without compression.
          entry.compressionMethod === 8 && options3.decompress === false) && (!entry.isEncrypted() || // Naturally without encryption.
          options3.decrypt === false);
          if (options3.start != null || options3.end != null) {
            if (!rawMode) throw new Error("start/end range require options.decodeFileData === false for non-trivial encoded entries.");
          }
          if (!self.isOpen) return callback(new Error("closed"));
          if (entry.isEncrypted() && !rawMode) {
            if (options3.decrypt !== false) return callback(new Error("entry is encrypted, and options.decodeFileData !== false"));
          }
          var decompress;
          if (rawMode) {
            decompress = false;
          } else if (entry.compressionMethod === 8) {
            decompress = options3.decodeFileData !== true;
          } else {
            return callback(new Error("unsupported compression method: " + entry.compressionMethod));
          }
          self.readLocalFileHeader(entry, { minimal: true }, function(err, localFileHeader) {
            if (err) return callback(err);
            self.openReadStreamLowLevel(
              localFileHeader.fileDataStart,
              entry.compressedSize,
              relativeStart,
              relativeEnd,
              decompress,
              entry.uncompressedSize,
              callback
            );
          });
        };
        ZipFile.prototype.openReadStreamLowLevel = function(fileDataStart, compressedSize, relativeStart, relativeEnd, decompress, uncompressedSize, callback) {
          var self = this;
          var fileDataEnd = fileDataStart + compressedSize;
          var readStream = self.reader.createReadStream({
            start: fileDataStart + relativeStart,
            end: fileDataStart + relativeEnd
          });
          var endpointStream = readStream;
          if (decompress) {
            var destroyed = false;
            var inflateFilter = zlib2.createInflateRaw();
            readStream.on("error", function(err) {
              setImmediate(function() {
                if (!destroyed) inflateFilter.emit("error", err);
              });
            });
            readStream.pipe(inflateFilter);
            if (self.validateEntrySizes) {
              endpointStream = new AssertByteCountStream(uncompressedSize);
              inflateFilter.on("error", function(err) {
                setImmediate(function() {
                  if (!destroyed) endpointStream.emit("error", err);
                });
              });
              inflateFilter.pipe(endpointStream);
            } else {
              endpointStream = inflateFilter;
            }
            installDestroyFn(endpointStream, function() {
              destroyed = true;
              if (inflateFilter !== endpointStream) inflateFilter.unpipe(endpointStream);
              readStream.unpipe(inflateFilter);
              readStream.destroy();
            });
          }
          callback(null, endpointStream);
        };
        ZipFile.prototype.readLocalFileHeader = function(entry, options3, callback) {
          var self = this;
          if (callback == null) {
            callback = options3;
            options3 = null;
          }
          if (options3 == null) options3 = {};
          self.reader.ref();
          var buffer = newBuffer(30);
          readAndAssertNoEof(self.reader, buffer, 0, buffer.length, entry.relativeOffsetOfLocalHeader, function(err) {
            try {
              if (err) return callback(err);
              var signature = buffer.readUInt32LE(0);
              if (signature !== 67324752) {
                return callback(new Error("invalid local file header signature: 0x" + signature.toString(16)));
              }
              var fileNameLength = buffer.readUInt16LE(26);
              var extraFieldLength = buffer.readUInt16LE(28);
              var fileDataStart = entry.relativeOffsetOfLocalHeader + 30 + fileNameLength + extraFieldLength;
              if (fileDataStart + entry.compressedSize > self.fileSize) {
                return callback(new Error("file data overflows file bounds: " + fileDataStart + " + " + entry.compressedSize + " > " + self.fileSize));
              }
              if (options3.minimal) {
                return callback(null, { fileDataStart });
              }
              var localFileHeader = new LocalFileHeader();
              localFileHeader.fileDataStart = fileDataStart;
              localFileHeader.versionNeededToExtract = buffer.readUInt16LE(4);
              localFileHeader.generalPurposeBitFlag = buffer.readUInt16LE(6);
              localFileHeader.compressionMethod = buffer.readUInt16LE(8);
              localFileHeader.lastModFileTime = buffer.readUInt16LE(10);
              localFileHeader.lastModFileDate = buffer.readUInt16LE(12);
              localFileHeader.crc32 = buffer.readUInt32LE(14);
              localFileHeader.compressedSize = buffer.readUInt32LE(18);
              localFileHeader.uncompressedSize = buffer.readUInt32LE(22);
              localFileHeader.fileNameLength = fileNameLength;
              localFileHeader.extraFieldLength = extraFieldLength;
              buffer = newBuffer(fileNameLength + extraFieldLength);
              self.reader.ref();
              readAndAssertNoEof(self.reader, buffer, 0, buffer.length, entry.relativeOffsetOfLocalHeader + 30, function(err2) {
                try {
                  if (err2) return callback(err2);
                  localFileHeader.fileName = buffer.subarray(0, fileNameLength);
                  localFileHeader.extraField = buffer.subarray(fileNameLength);
                  return callback(null, localFileHeader);
                } finally {
                  self.reader.unref();
                }
              });
            } finally {
              self.reader.unref();
            }
          });
        };
        ZipFile.prototype.openReadStreamPromise = function(entry, options3) {
          return new Promise((resolve, reject) => {
            this.openReadStream(entry, options3, function(err, readStream) {
              if (err) return reject(err);
              resolve(readStream);
            });
          });
        };
        ZipFile.prototype.openReadStreamLowLevelPromise = function(fileDataStart, compressedSize, relativeStart, relativeEnd, decompress, uncompressedSize) {
          return new Promise((resolve, reject) => {
            this.openReadStream(fileDataStart, compressedSize, relativeStart, relativeEnd, decompress, uncompressedSize, function(err, readStream) {
              if (err) return reject(err);
              resolve(readStream);
            });
          });
        };
        ZipFile.prototype.readLocalFileHeaderPromise = function(entry, options3) {
          return new Promise((resolve, reject) => {
            this.readLocalFileHeader(entry, options3, function(err, localFileHeader) {
              if (err) return reject(err);
              resolve(localFileHeader);
            });
          });
        };
        function Entry() {
        }
        Entry.prototype.getLastModDate = function(options3) {
          if (options3 == null) options3 = {};
          if (!options3.forceDosFormat) {
            for (var i2 = 0; i2 < this.extraFields.length; i2++) {
              var extraField = this.extraFields[i2];
              if (extraField.id === 21589) {
                var data = extraField.data;
                if (data.length < 5) continue;
                var flags = data[0];
                var HAS_MTIME = 1;
                if (!(flags & HAS_MTIME)) continue;
                var posixTimestamp = data.readInt32LE(1);
                return new Date(posixTimestamp * 1e3);
              } else if (extraField.id === 10) {
                var data = extraField.data;
                if (data.length !== 32) continue;
                if (data.readUInt16LE(4) !== 1) continue;
                if (data.readUInt16LE(6) !== 24) continue;
                var hundredNanoSecondsSince1601 = data.readUInt32LE(8) + 4294967296 * data.readInt32LE(12);
                var millisecondsSince1970 = hundredNanoSecondsSince1601 / 1e4 - 116444736e5;
                return new Date(millisecondsSince1970);
              }
            }
          }
          return dosDateTimeToDate(this.lastModFileDate, this.lastModFileTime, options3.timezone);
        };
        Entry.prototype.canDecodeFileData = function() {
          return !this.isEncrypted() && (this.compressionMethod === 0 || this.compressionMethod === 8);
        };
        Entry.prototype.isEncrypted = function() {
          return (this.generalPurposeBitFlag & 1) !== 0;
        };
        Entry.prototype.isCompressed = function() {
          return this.compressionMethod === 8;
        };
        function LocalFileHeader() {
        }
        function dosDateTimeToDate(date, time, timezone) {
          var day = date & 31;
          var month = (date >> 5 & 15) - 1;
          var year = (date >> 9 & 127) + 1980;
          var millisecond = 0;
          var second = (time & 31) * 2;
          var minute = time >> 5 & 63;
          var hour = time >> 11 & 31;
          if (timezone == null || timezone === "local") {
            return new Date(year, month, day, hour, minute, second, millisecond);
          } else if (timezone === "UTC") {
            return new Date(Date.UTC(year, month, day, hour, minute, second, millisecond));
          } else {
            throw new Error("unrecognized options.timezone: " + options.timezone);
          }
        }
        function getFileNameLowLevel2(generalPurposeBitFlag, fileNameBuffer, extraFields, strictFileNames) {
          var fileName = null;
          for (var i2 = 0; i2 < extraFields.length; i2++) {
            var extraField = extraFields[i2];
            if (extraField.id === 28789) {
              if (extraField.data.length < 6) {
                continue;
              }
              if (extraField.data.readUInt8(0) !== 1) {
                continue;
              }
              var oldNameCrc32 = extraField.data.readUInt32LE(1);
              if (crc32(fileNameBuffer) !== oldNameCrc32) {
                continue;
              }
              fileName = decodeBuffer(extraField.data.subarray(5), true);
              break;
            }
          }
          if (fileName == null) {
            var isUtf8 = (generalPurposeBitFlag & 2048) !== 0;
            fileName = decodeBuffer(fileNameBuffer, isUtf8);
          }
          if (!strictFileNames) {
            fileName = fileName.replace(/\\/g, "/");
          }
          return fileName;
        }
        function validateFileName(fileName) {
          if (fileName.indexOf("\\") !== -1) {
            return "invalid characters in fileName: " + fileName;
          }
          if (/^[a-zA-Z]:/.test(fileName) || /^\//.test(fileName)) {
            return "absolute path: " + fileName;
          }
          if (fileName.split("/").indexOf("..") !== -1) {
            return "invalid relative path: " + fileName;
          }
          return null;
        }
        function parseExtraFields(extraFieldBuffer) {
          var extraFields = [];
          var i2 = 0;
          while (i2 < extraFieldBuffer.length - 3) {
            var headerId = extraFieldBuffer.readUInt16LE(i2 + 0);
            var dataSize = extraFieldBuffer.readUInt16LE(i2 + 2);
            var dataStart = i2 + 4;
            var dataEnd = dataStart + dataSize;
            if (dataEnd > extraFieldBuffer.length) throw new Error("extra field length exceeds extra field buffer size");
            var dataBuffer = extraFieldBuffer.subarray(dataStart, dataEnd);
            extraFields.push({
              id: headerId,
              data: dataBuffer
            });
            i2 = dataEnd;
          }
          return extraFields;
        }
        function readAndAssertNoEof(reader, buffer, offset, length, position, callback) {
          if (length === 0) {
            return setImmediate(function() {
              callback(null, newBuffer(0));
            });
          }
          reader.read(buffer, offset, length, position, function(err, bytesRead) {
            if (err) return callback(err);
            if (bytesRead < length) {
              return callback(new Error("unexpected EOF"));
            }
            callback();
          });
        }
        util.inherits(AssertByteCountStream, Transform2);
        function AssertByteCountStream(byteCount) {
          Transform2.call(this);
          this.actualByteCount = 0;
          this.expectedByteCount = byteCount;
        }
        AssertByteCountStream.prototype._transform = function(chunk, encoding2, cb) {
          this.actualByteCount += chunk.length;
          if (this.actualByteCount > this.expectedByteCount) {
            var msg = "too many bytes in the stream. expected " + this.expectedByteCount + ". got at least " + this.actualByteCount;
            return cb(new Error(msg));
          }
          cb(null, chunk);
        };
        AssertByteCountStream.prototype._flush = function(cb) {
          if (this.actualByteCount < this.expectedByteCount) {
            var msg = "not enough bytes in the stream. expected " + this.expectedByteCount + ". got only " + this.actualByteCount;
            return cb(new Error(msg));
          }
          cb();
        };
        util.inherits(RandomAccessReader, EventEmitter5);
        function RandomAccessReader() {
          EventEmitter5.call(this);
          this.refCount = 0;
        }
        RandomAccessReader.prototype.ref = function() {
          this.refCount += 1;
        };
        RandomAccessReader.prototype.unref = function() {
          var self = this;
          self.refCount -= 1;
          if (self.refCount > 0) return;
          if (self.refCount < 0) throw new Error("invalid unref");
          self.close(onCloseDone);
          function onCloseDone(err) {
            if (err) return self.emit("error", err);
            self.emit("close");
          }
        };
        RandomAccessReader.prototype.createReadStream = function(options3) {
          if (options3 == null) options3 = {};
          var start = options3.start;
          var end = options3.end;
          if (start === end) {
            var emptyStream = new PassThrough();
            setImmediate(function() {
              emptyStream.end();
            });
            return emptyStream;
          }
          var stream = this._readStreamForRange(start, end);
          var destroyed = false;
          var refUnrefFilter = new RefUnrefFilter(this);
          stream.on("error", function(err) {
            setImmediate(function() {
              if (!destroyed) refUnrefFilter.emit("error", err);
            });
          });
          installDestroyFn(refUnrefFilter, function() {
            stream.unpipe(refUnrefFilter);
            refUnrefFilter.unref();
            stream.destroy();
          });
          var byteCounter = new AssertByteCountStream(end - start);
          refUnrefFilter.on("error", function(err) {
            setImmediate(function() {
              if (!destroyed) byteCounter.emit("error", err);
            });
          });
          installDestroyFn(byteCounter, function() {
            destroyed = true;
            refUnrefFilter.unpipe(byteCounter);
            refUnrefFilter.destroy();
          });
          return stream.pipe(refUnrefFilter).pipe(byteCounter);
        };
        RandomAccessReader.prototype._readStreamForRange = function(start, end) {
          throw new Error("not implemented");
        };
        RandomAccessReader.prototype.read = function(buffer, offset, length, position, callback) {
          var readStream = this.createReadStream({ start: position, end: position + length });
          var writeStream = new Writable();
          var written = 0;
          writeStream._write = function(chunk, encoding2, cb) {
            chunk.copy(buffer, offset + written, 0, chunk.length);
            written += chunk.length;
            cb();
          };
          writeStream.on("finish", callback);
          readStream.on("error", function(error) {
            callback(error);
          });
          readStream.pipe(writeStream);
        };
        RandomAccessReader.prototype.close = function(callback) {
          setImmediate(callback);
        };
        util.inherits(RefUnrefFilter, PassThrough);
        function RefUnrefFilter(context) {
          PassThrough.call(this);
          this.context = context;
          this.context.ref();
          this.unreffedYet = false;
        }
        RefUnrefFilter.prototype._flush = function(cb) {
          this.unref();
          cb();
        };
        RefUnrefFilter.prototype.unref = function(cb) {
          if (this.unreffedYet) return;
          this.unreffedYet = true;
          this.context.unref();
        };
        var cp437 = "\0\u263A\u263B\u2665\u2666\u2663\u2660\u2022\u25D8\u25CB\u25D9\u2642\u2640\u266A\u266B\u263C\u25BA\u25C4\u2195\u203C\xB6\xA7\u25AC\u21A8\u2191\u2193\u2192\u2190\u221F\u2194\u25B2\u25BC !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~\u2302\xC7\xFC\xE9\xE2\xE4\xE0\xE5\xE7\xEA\xEB\xE8\xEF\xEE\xEC\xC4\xC5\xC9\xE6\xC6\xF4\xF6\xF2\xFB\xF9\xFF\xD6\xDC\xA2\xA3\xA5\u20A7\u0192\xE1\xED\xF3\xFA\xF1\xD1\xAA\xBA\xBF\u2310\xAC\xBD\xBC\xA1\xAB\xBB\u2591\u2592\u2593\u2502\u2524\u2561\u2562\u2556\u2555\u2563\u2551\u2557\u255D\u255C\u255B\u2510\u2514\u2534\u252C\u251C\u2500\u253C\u255E\u255F\u255A\u2554\u2569\u2566\u2560\u2550\u256C\u2567\u2568\u2564\u2565\u2559\u2558\u2552\u2553\u256B\u256A\u2518\u250C\u2588\u2584\u258C\u2590\u2580\u03B1\xDF\u0393\u03C0\u03A3\u03C3\xB5\u03C4\u03A6\u0398\u03A9\u03B4\u221E\u03C6\u03B5\u2229\u2261\xB1\u2265\u2264\u2320\u2321\xF7\u2248\xB0\u2219\xB7\u221A\u207F\xB2\u25A0\xA0";
        function decodeBuffer(buffer, isUtf8) {
          if (isUtf8) {
            return buffer.toString("utf8");
          } else {
            var result = "";
            for (var i2 = 0; i2 < buffer.length; i2++) {
              result += cp437[buffer[i2]];
            }
            return result;
          }
        }
        function readUInt64LE(buffer, offset) {
          var lower32 = buffer.readUInt32LE(offset);
          var upper32 = buffer.readUInt32LE(offset + 4);
          return upper32 * 4294967296 + lower32;
        }
        var newBuffer;
        if (typeof Buffer.allocUnsafe === "function") {
          newBuffer = function(len) {
            return Buffer.allocUnsafe(len);
          };
        } else {
          newBuffer = function(len) {
            return new Buffer(len);
          };
        }
        function installDestroyFn(stream, fn) {
          if (typeof stream.destroy === "function") {
            stream._destroy = function(err, cb) {
              fn();
              if (cb != null) cb(err);
            };
          } else {
            stream.destroy = fn;
          }
        }
        function defaultCallback(err) {
          if (err) throw err;
        }
      }
    });
    
    // node_modules/mimic-response/index.js
    function mimicResponse(fromStream, toStream) {
      if (toStream._readableState.autoDestroy) {
        throw new Error("The second stream must have the `autoDestroy` option set to `false`");
      }
      const fromProperties = /* @__PURE__ */ new Set([...Object.keys(fromStream), ...knownProperties]);
      const properties = {};
      for (const property of fromProperties) {
        if (property in toStream) {
          continue;
        }
        properties[property] = {
          get() {
            const value = fromStream[property];
            const isFunction = typeof value === "function";
            return isFunction ? value.bind(fromStream) : value;
          },
          set(value) {
            fromStream[property] = value;
          },
          enumerable: true,
          configurable: false
        };
      }
      Object.defineProperties(toStream, properties);
      fromStream.once("aborted", () => {
        toStream.destroy();
        toStream.emit("aborted");
      });
      fromStream.once("close", () => {
        if (fromStream.complete) {
          if (toStream.readable) {
            toStream.once("end", () => {
              toStream.emit("close");
            });
          } else {
            toStream.emit("close");
          }
        } else {
          toStream.emit("close");
        }
      });
      return toStream;
    }
    var knownProperties;
    var init_mimic_response = __esm({
      "node_modules/mimic-response/index.js"() {
        knownProperties = [
          "aborted",
          "complete",
          "headers",
          "httpVersion",
          "httpVersionMinor",
          "httpVersionMajor",
          "method",
          "rawHeaders",
          "rawTrailers",
          "setTimeout",
          "socket",
          "statusCode",
          "statusMessage",
          "trailers",
          "url"
        ];
      }
    });
    
    // node_modules/decompress-response/index.js
    function decompressResponse(response) {
      const contentEncoding = (response.headers["content-encoding"] || "").toLowerCase();
      const supportedEncodings = ["gzip", "deflate", "br"];
      if (supportsZstd) {
        supportedEncodings.push("zstd");
      }
      if (!supportedEncodings.includes(contentEncoding)) {
        return response;
      }
      let isEmpty2 = true;
      const headers = { ...response.headers };
      const finalStream = new import_node_stream.PassThrough({
        autoDestroy: false
      });
      finalStream.once("error", () => {
        response.destroy();
      });
      function handleContentEncoding(data) {
        let decompressStream;
        if (contentEncoding === "zstd") {
          decompressStream = import_node_zlib.default.createZstdDecompress();
        } else if (contentEncoding === "br") {
          decompressStream = import_node_zlib.default.createBrotliDecompress();
        } else if (contentEncoding === "deflate" && data.length > 0 && (data[0] & 8) === 0) {
          decompressStream = import_node_zlib.default.createInflateRaw();
        } else {
          decompressStream = import_node_zlib.default.createUnzip();
        }
        decompressStream.once("error", (error) => {
          if (isEmpty2 && !response.readable) {
            finalStream.end();
            return;
          }
          finalStream.destroy(error);
        });
        checker.pipe(decompressStream).pipe(finalStream);
      }
      const checker = new import_node_stream.Transform({
        transform(data, _encoding, callback) {
          if (isEmpty2 === false) {
            callback(null, data);
            return;
          }
          isEmpty2 = false;
          handleContentEncoding(data);
          callback(null, data);
        },
        flush(callback) {
          if (isEmpty2) {
            finalStream.end();
          }
          callback();
        }
      });
      delete headers["content-encoding"];
      delete headers["content-length"];
      finalStream.headers = headers;
      mimicResponse(response, finalStream);
      response.pipe(checker);
      return finalStream;
    }
    var import_node_stream, import_node_zlib, supportsZstd;
    var init_decompress_response = __esm({
      "node_modules/decompress-response/index.js"() {
        import_node_stream = require("node:stream");
        import_node_zlib = __toESM(require("node:zlib"), 1);
        init_mimic_response();
        supportsZstd = typeof import_node_zlib.default.createZstdDecompress === "function";
      }
    });
    
    // node_modules/ms/index.js
    var require_ms = __commonJS({
      "node_modules/ms/index.js"(exports2, module2) {
        var s2 = 1e3;
        var m2 = s2 * 60;
        var h2 = m2 * 60;
        var d2 = h2 * 24;
        var w2 = d2 * 7;
        var y2 = d2 * 365.25;
        module2.exports = function(val, options3) {
          options3 = options3 || {};
          var type = typeof val;
          if (type === "string" && val.length > 0) {
            return parse4(val);
          } else if (type === "number" && isFinite(val)) {
            return options3.long ? fmtLong(val) : fmtShort(val);
          }
          throw new Error(
            "val is not a non-empty string or a valid number. val=" + JSON.stringify(val)
          );
        };
        function parse4(str) {
          str = String(str);
          if (str.length > 100) {
            return;
          }
          var match2 = /^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(
            str
          );
          if (!match2) {
            return;
          }
          var n2 = parseFloat(match2[1]);
          var type = (match2[2] || "ms").toLowerCase();
          switch (type) {
            case "years":
            case "year":
            case "yrs":
            case "yr":
            case "y":
              return n2 * y2;
            case "weeks":
            case "week":
            case "w":
              return n2 * w2;
            case "days":
            case "day":
            case "d":
              return n2 * d2;
            case "hours":
            case "hour":
            case "hrs":
            case "hr":
            case "h":
              return n2 * h2;
            case "minutes":
            case "minute":
            case "mins":
            case "min":
            case "m":
              return n2 * m2;
            case "seconds":
            case "second":
            case "secs":
            case "sec":
            case "s":
              return n2 * s2;
            case "milliseconds":
            case "millisecond":
            case "msecs":
            case "msec":
            case "ms":
              return n2;
            default:
              return void 0;
          }
        }
        function fmtShort(ms) {
          var msAbs = Math.abs(ms);
          if (msAbs >= d2) {
            return Math.round(ms / d2) + "d";
          }
          if (msAbs >= h2) {
            return Math.round(ms / h2) + "h";
          }
          if (msAbs >= m2) {
            return Math.round(ms / m2) + "m";
          }
          if (msAbs >= s2) {
            return Math.round(ms / s2) + "s";
          }
          return ms + "ms";
        }
        function fmtLong(ms) {
          var msAbs = Math.abs(ms);
          if (msAbs >= d2) {
            return plural(ms, msAbs, d2, "day");
          }
          if (msAbs >= h2) {
            return plural(ms, msAbs, h2, "hour");
          }
          if (msAbs >= m2) {
            return plural(ms, msAbs, m2, "minute");
          }
          if (msAbs >= s2) {
            return plural(ms, msAbs, s2, "second");
          }
          return ms + " ms";
        }
        function plural(ms, msAbs, n2, name2) {
          var isPlural = msAbs >= n2 * 1.5;
          return Math.round(ms / n2) + " " + name2 + (isPlural ? "s" : "");
        }
      }
    });
    
    // node_modules/debug/src/common.js
    var require_common = __commonJS({
      "node_modules/debug/src/common.js"(exports2, module2) {
        function setup(env) {
          createDebug4.debug = createDebug4;
          createDebug4.default = createDebug4;
          createDebug4.coerce = coerce;
          createDebug4.disable = disable;
          createDebug4.enable = enable;
          createDebug4.enabled = enabled;
          createDebug4.humanize = require_ms();
          createDebug4.destroy = destroy;
          Object.keys(env).forEach((key) => {
            createDebug4[key] = env[key];
          });
          createDebug4.names = [];
          createDebug4.skips = [];
          createDebug4.formatters = {};
          function selectColor(namespace) {
            let hash = 0;
            for (let i2 = 0; i2 < namespace.length; i2++) {
              hash = (hash << 5) - hash + namespace.charCodeAt(i2);
              hash |= 0;
            }
            return createDebug4.colors[Math.abs(hash) % createDebug4.colors.length];
          }
          createDebug4.selectColor = selectColor;
          function createDebug4(namespace) {
            let prevTime;
            let enableOverride = null;
            let namespacesCache;
            let enabledCache;
            function debug4(...args) {
              if (!debug4.enabled) {
                return;
              }
              const self = debug4;
              const curr = Number(/* @__PURE__ */ new Date());
              const ms = curr - (prevTime || curr);
              self.diff = ms;
              self.prev = prevTime;
              self.curr = curr;
              prevTime = curr;
              args[0] = createDebug4.coerce(args[0]);
              if (typeof args[0] !== "string") {
                args.unshift("%O");
              }
              let index = 0;
              args[0] = args[0].replace(/%([a-zA-Z%])/g, (match2, format5) => {
                if (match2 === "%%") {
                  return "%";
                }
                index++;
                const formatter = createDebug4.formatters[format5];
                if (typeof formatter === "function") {
                  const val = args[index];
                  match2 = formatter.call(self, val);
                  args.splice(index, 1);
                  index--;
                }
                return match2;
              });
              createDebug4.formatArgs.call(self, args);
              const logFn = self.log || createDebug4.log;
              logFn.apply(self, args);
            }
            debug4.namespace = namespace;
            debug4.useColors = createDebug4.useColors();
            debug4.color = createDebug4.selectColor(namespace);
            debug4.extend = extend;
            debug4.destroy = createDebug4.destroy;
            Object.defineProperty(debug4, "enabled", {
              enumerable: true,
              configurable: false,
              get: () => {
                if (enableOverride !== null) {
                  return enableOverride;
                }
                if (namespacesCache !== createDebug4.namespaces) {
                  namespacesCache = createDebug4.namespaces;
                  enabledCache = createDebug4.enabled(namespace);
                }
                return enabledCache;
              },
              set: (v2) => {
                enableOverride = v2;
              }
            });
            if (typeof createDebug4.init === "function") {
              createDebug4.init(debug4);
            }
            return debug4;
          }
          function extend(namespace, delimiter) {
            const newDebug = createDebug4(this.namespace + (typeof delimiter === "undefined" ? ":" : delimiter) + namespace);
            newDebug.log = this.log;
            return newDebug;
          }
          function enable(namespaces) {
            createDebug4.save(namespaces);
            createDebug4.namespaces = namespaces;
            createDebug4.names = [];
            createDebug4.skips = [];
            const split = (typeof namespaces === "string" ? namespaces : "").trim().replace(/\s+/g, ",").split(",").filter(Boolean);
            for (const ns of split) {
              if (ns[0] === "-") {
                createDebug4.skips.push(ns.slice(1));
              } else {
                createDebug4.names.push(ns);
              }
            }
          }
          function matchesTemplate(search, template) {
            let searchIndex = 0;
            let templateIndex = 0;
            let starIndex = -1;
            let matchIndex = 0;
            while (searchIndex < search.length) {
              if (templateIndex < template.length && (template[templateIndex] === search[searchIndex] || template[templateIndex] === "*")) {
                if (template[templateIndex] === "*") {
                  starIndex = templateIndex;
                  matchIndex = searchIndex;
                  templateIndex++;
                } else {
                  searchIndex++;
                  templateIndex++;
                }
              } else if (starIndex !== -1) {
                templateIndex = starIndex + 1;
                matchIndex++;
                searchIndex = matchIndex;
              } else {
                return false;
              }
            }
            while (templateIndex < template.length && template[templateIndex] === "*") {
              templateIndex++;
            }
            return templateIndex === template.length;
          }
          function disable() {
            const namespaces = [
              ...createDebug4.names,
              ...createDebug4.skips.map((namespace) => "-" + namespace)
            ].join(",");
            createDebug4.enable("");
            return namespaces;
          }
          function enabled(name2) {
            for (const skip of createDebug4.skips) {
              if (matchesTemplate(name2, skip)) {
                return false;
              }
            }
            for (const ns of createDebug4.names) {
              if (matchesTemplate(name2, ns)) {
                return true;
              }
            }
            return false;
          }
          function coerce(val) {
            if (val instanceof Error) {
              return val.stack || val.message;
            }
            return val;
          }
          function destroy() {
            console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");
          }
          createDebug4.enable(createDebug4.load());
          return createDebug4;
        }
        module2.exports = setup;
      }
    });
    
    // node_modules/debug/src/browser.js
    var require_browser = __commonJS({
      "node_modules/debug/src/browser.js"(exports2, module2) {
        exports2.formatArgs = formatArgs;
        exports2.save = save;
        exports2.load = load;
        exports2.useColors = useColors;
        exports2.storage = localstorage();
        exports2.destroy = /* @__PURE__ */ (() => {
          let warned = false;
          return () => {
            if (!warned) {
              warned = true;
              console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");
            }
          };
        })();
        exports2.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 useColors() {
          if (typeof window !== "undefined" && window.process && (window.process.type === "renderer" || window.process.__nwjs)) {
            return true;
          }
          if (typeof navigator !== "undefined" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)) {
            return false;
          }
          let m2;
          return typeof document !== "undefined" && document.documentElement && document.documentElement.style && document.documentElement.style.WebkitAppearance || // Is firebug? http://stackoverflow.com/a/398120/376773
          typeof window !== "undefined" && 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 !== "undefined" && navigator.userAgent && (m2 = navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)) && parseInt(m2[1], 10) >= 31 || // Double check webkit in userAgent just in case we are in a worker
          typeof navigator !== "undefined" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/);
        }
        function formatArgs(args) {
          args[0] = (this.useColors ? "%c" : "") + this.namespace + (this.useColors ? " %c" : " ") + args[0] + (this.useColors ? "%c " : " ") + "+" + module2.exports.humanize(this.diff);
          if (!this.useColors) {
            return;
          }
          const c2 = "color: " + this.color;
          args.splice(1, 0, c2, "color: inherit");
          let index = 0;
          let lastC = 0;
          args[0].replace(/%[a-zA-Z%]/g, (match2) => {
            if (match2 === "%%") {
              return;
            }
            index++;
            if (match2 === "%c") {
              lastC = index;
            }
          });
          args.splice(lastC, 0, c2);
        }
        exports2.log = console.debug || console.log || (() => {
        });
        function save(namespaces) {
          try {
            if (namespaces) {
              exports2.storage.setItem("debug", namespaces);
            } else {
              exports2.storage.removeItem("debug");
            }
          } catch (error) {
          }
        }
        function load() {
          let r2;
          try {
            r2 = exports2.storage.getItem("debug") || exports2.storage.getItem("DEBUG");
          } catch (error) {
          }
          if (!r2 && typeof process !== "undefined" && "env" in process) {
            r2 = process.env.DEBUG;
          }
          return r2;
        }
        function localstorage() {
          try {
            return localStorage;
          } catch (error) {
          }
        }
        module2.exports = require_common()(exports2);
        var { formatters } = module2.exports;
        formatters.j = function(v2) {
          try {
            return JSON.stringify(v2);
          } catch (error) {
            return "[UnexpectedJSONParseError]: " + error.message;
          }
        };
      }
    });
    
    // node_modules/debug/src/node.js
    var require_node = __commonJS({
      "node_modules/debug/src/node.js"(exports2, module2) {
        var tty = require("tty");
        var util = require("util");
        exports2.init = init;
        exports2.log = log;
        exports2.formatArgs = formatArgs;
        exports2.save = save;
        exports2.load = load;
        exports2.useColors = useColors;
        exports2.destroy = util.deprecate(
          () => {
          },
          "Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."
        );
        exports2.colors = [6, 2, 3, 4, 5, 1];
        try {
          const supportsColor = require("supports-color");
          if (supportsColor && (supportsColor.stderr || supportsColor).level >= 2) {
            exports2.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 (error) {
        }
        exports2.inspectOpts = Object.keys(process.env).filter((key) => {
          return /^debug_/i.test(key);
        }).reduce((obj, key) => {
          const prop = key.substring(6).toLowerCase().replace(/_([a-z])/g, (_2, k) => {
            return k.toUpperCase();
          });
          let val = process.env[key];
          if (/^(yes|on|true|enabled)$/i.test(val)) {
            val = true;
          } else if (/^(no|off|false|disabled)$/i.test(val)) {
            val = false;
          } else if (val === "null") {
            val = null;
          } else {
            val = Number(val);
          }
          obj[prop] = val;
          return obj;
        }, {});
        function useColors() {
          return "colors" in exports2.inspectOpts ? Boolean(exports2.inspectOpts.colors) : tty.isatty(process.stderr.fd);
        }
        function formatArgs(args) {
          const { namespace: name2, useColors: useColors2 } = this;
          if (useColors2) {
            const c2 = this.color;
            const colorCode = "\x1B[3" + (c2 < 8 ? c2 : "8;5;" + c2);
            const prefix2 = `  ${colorCode};1m${name2} \x1B[0m`;
            args[0] = prefix2 + args[0].split("\n").join("\n" + prefix2);
            args.push(colorCode + "m+" + module2.exports.humanize(this.diff) + "\x1B[0m");
          } else {
            args[0] = getDate() + name2 + " " + args[0];
          }
        }
        function getDate() {
          if (exports2.inspectOpts.hideDate) {
            return "";
          }
          return (/* @__PURE__ */ new Date()).toISOString() + " ";
        }
        function log(...args) {
          return process.stderr.write(util.formatWithOptions(exports2.inspectOpts, ...args) + "\n");
        }
        function save(namespaces) {
          if (namespaces) {
            process.env.DEBUG = namespaces;
          } else {
            delete process.env.DEBUG;
          }
        }
        function load() {
          return process.env.DEBUG;
        }
        function init(debug4) {
          debug4.inspectOpts = {};
          const keys = Object.keys(exports2.inspectOpts);
          for (let i2 = 0; i2 < keys.length; i2++) {
            debug4.inspectOpts[keys[i2]] = exports2.inspectOpts[keys[i2]];
          }
        }
        module2.exports = require_common()(exports2);
        var { formatters } = module2.exports;
        formatters.o = function(v2) {
          this.inspectOpts.colors = this.useColors;
          return util.inspect(v2, this.inspectOpts).split("\n").map((str) => str.trim()).join(" ");
        };
        formatters.O = function(v2) {
          this.inspectOpts.colors = this.useColors;
          return util.inspect(v2, this.inspectOpts);
        };
      }
    });
    
    // node_modules/debug/src/index.js
    var require_src = __commonJS({
      "node_modules/debug/src/index.js"(exports2, module2) {
        if (typeof process === "undefined" || process.type === "renderer" || process.browser === true || process.__nwjs) {
          module2.exports = require_browser();
        } else {
          module2.exports = require_node();
        }
      }
    });
    
    // node_modules/follow-redirects/debug.js
    var require_debug2 = __commonJS({
      "node_modules/follow-redirects/debug.js"(exports2, module2) {
        var debug4;
        module2.exports = function() {
          if (!debug4) {
            try {
              debug4 = require_src()("follow-redirects");
            } catch (error) {
            }
            if (typeof debug4 !== "function") {
              debug4 = function() {
              };
            }
          }
          debug4.apply(null, arguments);
        };
      }
    });
    
    // node_modules/follow-redirects/index.js
    var require_follow_redirects = __commonJS({
      "node_modules/follow-redirects/index.js"(exports2, module2) {
        var url = require("url");
        var URL4 = url.URL;
        var http3 = require("http");
        var https2 = require("https");
        var Writable = require("stream").Writable;
        var assert3 = require("assert");
        var debug4 = require_debug2();
        (function detectUnsupportedEnvironment() {
          var looksLikeNode = typeof process !== "undefined";
          var looksLikeBrowser = typeof window !== "undefined" && typeof document !== "undefined";
          var looksLikeV8 = isFunction(Error.captureStackTrace);
          if (!looksLikeNode && (looksLikeBrowser || !looksLikeV8)) {
            console.warn("The follow-redirects package should be excluded from browser builds.");
          }
        })();
        var useNativeURL = false;
        try {
          assert3(new URL4(""));
        } catch (error) {
          useNativeURL = error.code === "ERR_INVALID_URL";
        }
        var sensitiveHeaders = [
          "Authorization",
          "Proxy-Authorization",
          "Cookie"
        ];
        var preservedUrlFields = [
          "auth",
          "host",
          "hostname",
          "href",
          "path",
          "pathname",
          "port",
          "protocol",
          "query",
          "search",
          "hash"
        ];
        var events = ["abort", "aborted", "connect", "error", "socket", "timeout"];
        var eventHandlers = /* @__PURE__ */ Object.create(null);
        events.forEach(function(event) {
          eventHandlers[event] = function(arg1, arg2, arg3) {
            this._redirectable.emit(event, arg1, arg2, arg3);
          };
        });
        var InvalidUrlError = createErrorType(
          "ERR_INVALID_URL",
          "Invalid URL",
          TypeError
        );
        var RedirectionError = createErrorType(
          "ERR_FR_REDIRECTION_FAILURE",
          "Redirected request failed"
        );
        var TooManyRedirectsError = createErrorType(
          "ERR_FR_TOO_MANY_REDIRECTS",
          "Maximum number of redirects exceeded",
          RedirectionError
        );
        var MaxBodyLengthExceededError = createErrorType(
          "ERR_FR_MAX_BODY_LENGTH_EXCEEDED",
          "Request body larger than maxBodyLength limit"
        );
        var WriteAfterEndError = createErrorType(
          "ERR_STREAM_WRITE_AFTER_END",
          "write after end"
        );
        var destroy = Writable.prototype.destroy || noop;
        function RedirectableRequest(options3, responseCallback) {
          Writable.call(this);
          this._sanitizeOptions(options3);
          this._options = options3;
          this._ended = false;
          this._ending = false;
          this._redirectCount = 0;
          this._redirects = [];
          this._requestBodyLength = 0;
          this._requestBodyBuffers = [];
          if (responseCallback) {
            this.on("response", responseCallback);
          }
          var self = this;
          this._onNativeResponse = function(response) {
            try {
              self._processResponse(response);
            } catch (cause) {
              self.emit("error", cause instanceof RedirectionError ? cause : new RedirectionError({ cause }));
            }
          };
          this._headerFilter = new RegExp("^(?:" + sensitiveHeaders.concat(options3.sensitiveHeaders).map(escapeRegex).join("|") + ")$", "i");
          this._performRequest();
        }
        RedirectableRequest.prototype = Object.create(Writable.prototype);
        RedirectableRequest.prototype.abort = function() {
          destroyRequest(this._currentRequest);
          this._currentRequest.abort();
          this.emit("abort");
        };
        RedirectableRequest.prototype.destroy = function(error) {
          destroyRequest(this._currentRequest, error);
          destroy.call(this, error);
          return this;
        };
        RedirectableRequest.prototype.write = function(data, encoding2, callback) {
          if (this._ending) {
            throw new WriteAfterEndError();
          }
          if (!isString(data) && !isBuffer(data)) {
            throw new TypeError("data should be a string, Buffer or Uint8Array");
          }
          if (isFunction(encoding2)) {
            callback = encoding2;
            encoding2 = null;
          }
          if (data.length === 0) {
            if (callback) {
              callback();
            }
            return;
          }
          if (this._requestBodyLength + data.length <= this._options.maxBodyLength) {
            this._requestBodyLength += data.length;
            this._requestBodyBuffers.push({ data, encoding: encoding2 });
            this._currentRequest.write(data, encoding2, callback);
          } else {
            this.emit("error", new MaxBodyLengthExceededError());
            this.abort();
          }
        };
        RedirectableRequest.prototype.end = function(data, encoding2, callback) {
          if (isFunction(data)) {
            callback = data;
            data = encoding2 = null;
          } else if (isFunction(encoding2)) {
            callback = encoding2;
            encoding2 = null;
          }
          if (!data) {
            this._ended = this._ending = true;
            this._currentRequest.end(null, null, callback);
          } else {
            var self = this;
            var currentRequest = this._currentRequest;
            this.write(data, encoding2, function() {
              self._ended = true;
              currentRequest.end(null, null, callback);
            });
            this._ending = true;
          }
        };
        RedirectableRequest.prototype.setHeader = function(name2, value) {
          this._options.headers[name2] = value;
          this._currentRequest.setHeader(name2, value);
        };
        RedirectableRequest.prototype.removeHeader = function(name2) {
          delete this._options.headers[name2];
          this._currentRequest.removeHeader(name2);
        };
        RedirectableRequest.prototype.setTimeout = function(msecs, callback) {
          var self = this;
          function destroyOnTimeout(socket) {
            socket.setTimeout(msecs);
            socket.removeListener("timeout", socket.destroy);
            socket.addListener("timeout", socket.destroy);
          }
          function startTimer(socket) {
            if (self._timeout) {
              clearTimeout(self._timeout);
            }
            self._timeout = setTimeout(function() {
              self.emit("timeout");
              clearTimer();
            }, msecs);
            destroyOnTimeout(socket);
          }
          function clearTimer() {
            if (self._timeout) {
              clearTimeout(self._timeout);
              self._timeout = null;
            }
            self.removeListener("abort", clearTimer);
            self.removeListener("error", clearTimer);
            self.removeListener("response", clearTimer);
            self.removeListener("close", clearTimer);
            if (callback) {
              self.removeListener("timeout", callback);
            }
            if (!self.socket) {
              self._currentRequest.removeListener("socket", startTimer);
            }
          }
          if (callback) {
            this.on("timeout", callback);
          }
          if (this.socket) {
            startTimer(this.socket);
          } else {
            this._currentRequest.once("socket", startTimer);
          }
          this.on("socket", destroyOnTimeout);
          this.on("abort", clearTimer);
          this.on("error", clearTimer);
          this.on("response", clearTimer);
          this.on("close", clearTimer);
          return this;
        };
        [
          "flushHeaders",
          "getHeader",
          "setNoDelay",
          "setSocketKeepAlive"
        ].forEach(function(method) {
          RedirectableRequest.prototype[method] = function(a2, b2) {
            return this._currentRequest[method](a2, b2);
          };
        });
        ["aborted", "connection", "socket"].forEach(function(property) {
          Object.defineProperty(RedirectableRequest.prototype, property, {
            get: function() {
              return this._currentRequest[property];
            }
          });
        });
        RedirectableRequest.prototype._sanitizeOptions = function(options3) {
          if (!options3.headers) {
            options3.headers = {};
          } else if (Array.isArray(options3.headers)) {
            var headerList = options3.headers;
            options3.headers = {};
            for (var i2 = 0; i2 < headerList.length; i2 += 2) {
              options3.headers[headerList[i2]] = headerList[i2 + 1];
            }
          }
          if (!Array.isArray(options3.sensitiveHeaders)) {
            options3.sensitiveHeaders = [];
          }
          if (options3.host) {
            if (!options3.hostname) {
              options3.hostname = options3.host;
            }
            delete options3.host;
          }
          if (!options3.pathname && options3.path) {
            var searchPos = options3.path.indexOf("?");
            if (searchPos < 0) {
              options3.pathname = options3.path;
            } else {
              options3.pathname = options3.path.substring(0, searchPos);
              options3.search = options3.path.substring(searchPos);
            }
          }
        };
        RedirectableRequest.prototype._performRequest = function() {
          var protocol = this._options.protocol;
          var nativeProtocol = this._options.nativeProtocols[protocol];
          if (!nativeProtocol) {
            throw new TypeError("Unsupported protocol " + protocol);
          }
          if (this._options.agents) {
            var scheme = protocol.slice(0, -1);
            this._options.agent = this._options.agents[scheme];
          }
          var request2 = this._currentRequest = nativeProtocol.request(this._options, this._onNativeResponse);
          request2._redirectable = this;
          for (var event of events) {
            request2.on(event, eventHandlers[event]);
          }
          this._currentUrl = /^\//.test(this._options.path) ? url.format(this._options) : (
            // When making a request to a proxy, […]
            // a client MUST send the target URI in absolute-form […].
            this._options.path
          );
          if (this._isRedirect) {
            var i2 = 0;
            var self = this;
            var buffers = this._requestBodyBuffers;
            (function writeNext(error) {
              if (request2 === self._currentRequest) {
                if (error) {
                  self.emit("error", error);
                } else if (i2 < buffers.length) {
                  var buffer = buffers[i2++];
                  if (!request2.finished) {
                    request2.write(buffer.data, buffer.encoding, writeNext);
                  }
                } else if (self._ended) {
                  request2.end();
                }
              }
            })();
          }
        };
        RedirectableRequest.prototype._processResponse = function(response) {
          var statusCode = response.statusCode;
          if (this._options.trackRedirects) {
            this._redirects.push({
              url: this._currentUrl,
              headers: response.headers,
              statusCode
            });
          }
          var location = response.headers.location;
          if (!location || this._options.followRedirects === false || statusCode < 300 || statusCode >= 400) {
            response.responseUrl = this._currentUrl;
            response.redirects = this._redirects;
            this.emit("response", response);
            this._requestBodyBuffers = [];
            return;
          }
          destroyRequest(this._currentRequest);
          response.destroy();
          if (++this._redirectCount > this._options.maxRedirects) {
            throw new TooManyRedirectsError();
          }
          var requestHeaders;
          var beforeRedirect = this._options.beforeRedirect;
          if (beforeRedirect) {
            requestHeaders = Object.assign({
              // The Host header was set by nativeProtocol.request
              Host: response.req.getHeader("host")
            }, this._options.headers);
          }
          var method = this._options.method;
          if ((statusCode === 301 || statusCode === 302) && this._options.method === "POST" || // RFC7231§6.4.4: The 303 (See Other) status code indicates that
          // the server is redirecting the user agent to a different resource […]
          // A user agent can perform a retrieval request targeting that URI
          // (a GET or HEAD request if using HTTP) […]
          statusCode === 303 && !/^(?:GET|HEAD)$/.test(this._options.method)) {
            this._options.method = "GET";
            this._requestBodyBuffers = [];
            removeMatchingHeaders(/^content-/i, this._options.headers);
          }
          var currentHostHeader = removeMatchingHeaders(/^host$/i, this._options.headers);
          var currentUrlParts = parseUrl(this._currentUrl);
          var currentHost = currentHostHeader || currentUrlParts.host;
          var currentUrl = /^\w+:/.test(location) ? this._currentUrl : url.format(Object.assign(currentUrlParts, { host: currentHost }));
          var redirectUrl = resolveUrl(location, currentUrl);
          debug4("redirecting to", redirectUrl.href);
          this._isRedirect = true;
          spreadUrlObject(redirectUrl, this._options);
          if (redirectUrl.protocol !== currentUrlParts.protocol && redirectUrl.protocol !== "https:" || redirectUrl.host !== currentHost && !isSubdomain(redirectUrl.host, currentHost)) {
            removeMatchingHeaders(this._headerFilter, this._options.headers);
          }
          if (isFunction(beforeRedirect)) {
            var responseDetails = {
              headers: response.headers,
              statusCode
            };
            var requestDetails = {
              url: currentUrl,
              method,
              headers: requestHeaders
            };
            beforeRedirect(this._options, responseDetails, requestDetails);
            this._sanitizeOptions(this._options);
          }
          this._performRequest();
        };
        function wrap(protocols) {
          var exports3 = {
            maxRedirects: 21,
            maxBodyLength: 10 * 1024 * 1024
          };
          var nativeProtocols = {};
          Object.keys(protocols).forEach(function(scheme) {
            var protocol = scheme + ":";
            var nativeProtocol = nativeProtocols[protocol] = protocols[scheme];
            var wrappedProtocol = exports3[scheme] = Object.create(nativeProtocol);
            function request2(input, options3, callback) {
              if (isURL(input)) {
                input = spreadUrlObject(input);
              } else if (isString(input)) {
                input = spreadUrlObject(parseUrl(input));
              } else {
                callback = options3;
                options3 = validateUrl(input);
                input = { protocol };
              }
              if (isFunction(options3)) {
                callback = options3;
                options3 = null;
              }
              options3 = Object.assign({
                maxRedirects: exports3.maxRedirects,
                maxBodyLength: exports3.maxBodyLength
              }, input, options3);
              options3.nativeProtocols = nativeProtocols;
              if (!isString(options3.host) && !isString(options3.hostname)) {
                options3.hostname = "::1";
              }
              assert3.equal(options3.protocol, protocol, "protocol mismatch");
              debug4("options", options3);
              return new RedirectableRequest(options3, callback);
            }
            function get(input, options3, callback) {
              var wrappedRequest = wrappedProtocol.request(input, options3, callback);
              wrappedRequest.end();
              return wrappedRequest;
            }
            Object.defineProperties(wrappedProtocol, {
              request: { value: request2, configurable: true, enumerable: true, writable: true },
              get: { value: get, configurable: true, enumerable: true, writable: true }
            });
          });
          return exports3;
        }
        function noop() {
        }
        function parseUrl(input) {
          var parsed;
          if (useNativeURL) {
            parsed = new URL4(input);
          } else {
            parsed = validateUrl(url.parse(input));
            if (!isString(parsed.protocol)) {
              throw new InvalidUrlError({ input });
            }
          }
          return parsed;
        }
        function resolveUrl(relative, base) {
          return useNativeURL ? new URL4(relative, base) : parseUrl(url.resolve(base, relative));
        }
        function validateUrl(input) {
          if (/^\[/.test(input.hostname) && !/^\[[:0-9a-f]+\]$/i.test(input.hostname)) {
            throw new InvalidUrlError({ input: input.href || input });
          }
          if (/^\[/.test(input.host) && !/^\[[:0-9a-f]+\](:\d+)?$/i.test(input.host)) {
            throw new InvalidUrlError({ input: input.href || input });
          }
          return input;
        }
        function spreadUrlObject(urlObject, target) {
          var spread = target || {};
          for (var key of preservedUrlFields) {
            spread[key] = urlObject[key];
          }
          if (spread.hostname.startsWith("[")) {
            spread.hostname = spread.hostname.slice(1, -1);
          }
          if (spread.port !== "") {
            spread.port = Number(spread.port);
          }
          spread.path = spread.search ? spread.pathname + spread.search : spread.pathname;
          return spread;
        }
        function removeMatchingHeaders(regex2, headers) {
          var lastValue;
          for (var header in headers) {
            if (regex2.test(header)) {
              lastValue = headers[header];
              delete headers[header];
            }
          }
          return lastValue === null || typeof lastValue === "undefined" ? void 0 : String(lastValue).trim();
        }
        function createErrorType(code, message, baseClass) {
          function CustomError(properties) {
            if (isFunction(Error.captureStackTrace)) {
              Error.captureStackTrace(this, this.constructor);
            }
            Object.assign(this, properties || {});
            this.code = code;
            this.message = this.cause ? message + ": " + this.cause.message : message;
          }
          CustomError.prototype = new (baseClass || Error)();
          Object.defineProperties(CustomError.prototype, {
            constructor: {
              value: CustomError,
              enumerable: false
            },
            name: {
              value: "Error [" + code + "]",
              enumerable: false
            }
          });
          return CustomError;
        }
        function destroyRequest(request2, error) {
          for (var event of events) {
            request2.removeListener(event, eventHandlers[event]);
          }
          request2.on("error", noop);
          request2.destroy(error);
        }
        function isSubdomain(subdomain, domain) {
          assert3(isString(subdomain) && isString(domain));
          var dot = subdomain.length - domain.length - 1;
          return dot > 0 && subdomain[dot] === "." && subdomain.endsWith(domain);
        }
        function isString(value) {
          return typeof value === "string" || value instanceof String;
        }
        function isFunction(value) {
          return typeof value === "function";
        }
        function isBuffer(value) {
          return typeof value === "object" && "length" in value;
        }
        function isURL(value) {
          return URL4 && value instanceof URL4;
        }
        function escapeRegex(regex2) {
          return regex2.replace(/[\^$\\.*+?()[\]{}|]/g, "\\$&");
        }
        module2.exports = wrap({ http: http3, https: https2 });
        module2.exports.wrap = wrap;
      }
    });
    
    // node_modules/agent-base/dist/helpers.js
    var init_helpers = __esm({
      "node_modules/agent-base/dist/helpers.js"() {
      }
    });
    
    // node_modules/agent-base/dist/index.js
    var net2, http, import_https, INTERNAL, Agent2;
    var init_dist2 = __esm({
      "node_modules/agent-base/dist/index.js"() {
        net2 = __toESM(require("net"), 1);
        http = __toESM(require("http"), 1);
        import_https = require("https");
        init_helpers();
        INTERNAL = /* @__PURE__ */ Symbol("AgentBaseInternalState");
        Agent2 = class extends http.Agent {
          constructor(opts) {
            super(opts);
            this[INTERNAL] = {};
          }
          /**
           * Determine whether this is an `http` or `https` request.
           */
          isSecureEndpoint(options3) {
            if (options3) {
              if (typeof options3.secureEndpoint === "boolean") {
                return options3.secureEndpoint;
              }
              if (typeof options3.protocol === "string") {
                return options3.protocol === "https:";
              }
            }
            const { stack } = new Error();
            if (typeof stack !== "string")
              return false;
            return stack.split("\n").some((l2) => l2.indexOf("(https.js:") !== -1 || l2.indexOf("node:https:") !== -1);
          }
          // In order to support async signatures in `connect()` and Node's native
          // connection pooling in `http.Agent`, the array of sockets for each origin
          // has to be updated synchronously. This is so the length of the array is
          // accurate when `addRequest()` is next called. We achieve this by creating a
          // fake socket and adding it to `sockets[origin]` and incrementing
          // `totalSocketCount`.
          incrementSockets(name2) {
            if (this.maxSockets === Infinity && this.maxTotalSockets === Infinity) {
              return null;
            }
            if (!this.sockets[name2]) {
              this.sockets[name2] = [];
            }
            const fakeSocket = new net2.Socket({ writable: false });
            this.sockets[name2].push(fakeSocket);
            this.totalSocketCount++;
            return fakeSocket;
          }
          decrementSockets(name2, socket) {
            if (!this.sockets[name2] || socket === null) {
              return;
            }
            const sockets = this.sockets[name2];
            const index = sockets.indexOf(socket);
            if (index !== -1) {
              sockets.splice(index, 1);
              this.totalSocketCount--;
              if (sockets.length === 0) {
                delete this.sockets[name2];
              }
            }
          }
          // In order to properly update the socket pool, we need to call `getName()` on
          // the core `https.Agent` if it is a secureEndpoint.
          getName(options3) {
            const secureEndpoint = this.isSecureEndpoint(options3);
            if (secureEndpoint) {
              return import_https.Agent.prototype.getName.call(this, options3);
            }
            return super.getName(options3);
          }
          createSocket(req, options3, cb) {
            const connectOpts = {
              ...options3,
              secureEndpoint: this.isSecureEndpoint(options3)
            };
            const name2 = this.getName(connectOpts);
            const fakeSocket = this.incrementSockets(name2);
            Promise.resolve().then(() => this.connect(req, connectOpts)).then((socket) => {
              this.decrementSockets(name2, fakeSocket);
              if (typeof socket.addRequest === "function") {
                try {
                  return socket.addRequest(req, connectOpts);
                } catch (err) {
                  return cb(err);
                }
              }
              this[INTERNAL].currentSocket = socket;
              super.createSocket(req, options3, cb);
            }, (err) => {
              this.decrementSockets(name2, fakeSocket);
              cb(err);
            });
          }
          createConnection() {
            const socket = this[INTERNAL].currentSocket;
            this[INTERNAL].currentSocket = void 0;
            if (!socket) {
              throw new Error("No socket was returned in the `connect()` function");
            }
            return socket;
          }
          get defaultPort() {
            return this[INTERNAL].defaultPort ?? (this.protocol === "https:" ? 443 : 80);
          }
          set defaultPort(v2) {
            if (this[INTERNAL]) {
              this[INTERNAL].defaultPort = v2;
            }
          }
          get protocol() {
            return this[INTERNAL].protocol ?? (this.isSecureEndpoint() ? "https:" : "http:");
          }
          set protocol(v2) {
            if (this[INTERNAL]) {
              this[INTERNAL].protocol = v2;
            }
          }
        };
      }
    });
    
    // node_modules/proxy-agent-negotiate/dist/index.js
    function createNegotiateAuth() {
      return async ({ response, scheme }) => {
        if (scheme.toLowerCase() !== "negotiate") {
          throw new Error(`Expected Negotiate scheme but got "${scheme}"`);
        }
        let kerberos;
        try {
          kerberos = await import("kerberos");
        } catch {
          throw new Error('The "kerberos" package is required for Negotiate proxy authentication. Install it with: npm install kerberos');
        }
        const proxyAuthenticate = response.headers["proxy-authenticate"] || "";
        const challengeHeader = Array.isArray(proxyAuthenticate) ? proxyAuthenticate[0] : proxyAuthenticate;
        const serverToken = typeof challengeHeader === "string" && challengeHeader.includes(" ") ? challengeHeader.split(" ").slice(1).join(" ") : void 0;
        const client = await kerberos.initializeClient("HTTP@proxy", {
          mechOID: kerberos.GSS_MECH_OID_SPNEGO
        });
        const token = await client.step(serverToken || "");
        if (!token) {
          throw new Error("Kerberos client.step() returned no token");
        }
        return {
          headers: {
            "Proxy-Authorization": `Negotiate ${token}`
          }
        };
      };
    }
    var init_dist3 = __esm({
      "node_modules/proxy-agent-negotiate/dist/index.js"() {
      }
    });
    
    // node_modules/http-proxy-agent/dist/index.js
    function omit2(obj, ...keys) {
      const ret = {};
      let key;
      for (key in obj) {
        if (!keys.includes(key)) {
          ret[key] = obj[key];
        }
      }
      return ret;
    }
    var net3, tls, import_debug, import_events33, import_url, debug, HttpProxyAgent;
    var init_dist4 = __esm({
      "node_modules/http-proxy-agent/dist/index.js"() {
        net3 = __toESM(require("net"), 1);
        tls = __toESM(require("tls"), 1);
        import_debug = __toESM(require_src(), 1);
        import_events33 = require("events");
        init_dist2();
        import_url = require("url");
        init_dist3();
        debug = (0, import_debug.default)("http-proxy-agent");
        HttpProxyAgent = class extends Agent2 {
          constructor(proxy, opts) {
            super(opts);
            this.proxy = typeof proxy === "string" ? new import_url.URL(proxy) : proxy;
            this.proxyHeaders = opts?.headers ?? {};
            debug("Creating new HttpProxyAgent instance: %o", this.proxy.href);
            if (opts?.negotiate) {
              this.onProxyAuth = createNegotiateAuth();
            } else if (opts?.onProxyAuth) {
              this.onProxyAuth = opts.onProxyAuth;
            }
            const host = (this.proxy.hostname || this.proxy.host).replace(/^\[|\]$/g, "");
            const port = this.proxy.port ? parseInt(this.proxy.port, 10) : this.proxy.protocol === "https:" ? 443 : 80;
            this.connectOpts = {
              ...opts ? omit2(opts, "headers", "onProxyAuth", "negotiate") : null,
              host,
              port
            };
          }
          addRequest(req, opts) {
            req._header = null;
            this.setRequestProps(req, opts);
            super.addRequest(req, opts);
          }
          setRequestProps(req, opts) {
            const { proxy } = this;
            const protocol = opts.secureEndpoint ? "https:" : "http:";
            const hostname = req.getHeader("host") || "localhost";
            const base = `${protocol}//${hostname}`;
            const url = new import_url.URL(req.path, base);
            if (opts.port !== 80) {
              url.port = String(opts.port);
            }
            req.path = String(url);
            const headers = typeof this.proxyHeaders === "function" ? this.proxyHeaders() : { ...this.proxyHeaders };
            if (proxy.username || proxy.password) {
              const auth = `${decodeURIComponent(proxy.username)}:${decodeURIComponent(proxy.password)}`;
              headers["Proxy-Authorization"] = `Basic ${Buffer.from(auth).toString("base64")}`;
            }
            if (!headers["Proxy-Connection"]) {
              headers["Proxy-Connection"] = this.keepAlive ? "Keep-Alive" : "close";
            }
            for (const name2 of Object.keys(headers)) {
              const value = headers[name2];
              if (value) {
                req.setHeader(name2, value);
              }
            }
          }
          async connect(req, opts) {
            req._header = null;
            if (!req.path.includes("://")) {
              this.setRequestProps(req, opts);
            }
            let first;
            let endOfHeaders;
            debug("Regenerating stored HTTP header string for request");
            req._implicitHeader();
            if (req.outputData && req.outputData.length > 0) {
              debug("Patching connection write() output buffer with updated header");
              first = req.outputData[0].data;
              endOfHeaders = first.indexOf("\r\n\r\n") + 4;
              req.outputData[0].data = req._header + first.substring(endOfHeaders);
              debug("Output buffer: %o", req.outputData[0].data);
            }
            let socket;
            if (this.proxy.protocol === "https:") {
              debug("Creating `tls.Socket`: %o", this.connectOpts);
              socket = tls.connect(this.connectOpts);
            } else {
              debug("Creating `net.Socket`: %o", this.connectOpts);
              socket = net3.connect(this.connectOpts);
            }
            await (0, import_events33.once)(socket, "connect");
            const connect5 = { socket };
            req.emit("proxyConnect", connect5);
            this.emit("proxyConnect", connect5, req);
            req.emit("proxy", { proxy: this.proxy.href, socket });
            return socket;
          }
        };
        HttpProxyAgent.protocols = ["http", "https"];
      }
    });
    
    // node_modules/https-proxy-agent/dist/parse-proxy-response.js
    function parseProxyResponse(socket) {
      return new Promise((resolve, reject) => {
        let buffersLength = 0;
        const buffers = [];
        function read() {
          const b2 = socket.read();
          if (b2)
            ondata(b2);
          else
            socket.once("readable", read);
        }
        function cleanup() {
          socket.removeListener("end", onend);
          socket.removeListener("error", onerror);
          socket.removeListener("readable", read);
        }
        function onend() {
          cleanup();
          debug2("onend");
          reject(new Error("Proxy connection ended before receiving CONNECT response"));
        }
        function onerror(err) {
          cleanup();
          debug2("onerror %o", err);
          reject(err);
        }
        function ondata(b2) {
          buffers.push(b2);
          buffersLength += b2.length;
          const buffered = Buffer.concat(buffers, buffersLength);
          const endOfHeaders = buffered.indexOf("\r\n\r\n");
          if (endOfHeaders === -1) {
            debug2("have not received end of HTTP headers yet...");
            read();
            return;
          }
          const headerParts = buffered.slice(0, endOfHeaders).toString("ascii").split("\r\n");
          const firstLine = headerParts.shift();
          if (!firstLine) {
            socket.destroy();
            return reject(new Error("No header received from proxy CONNECT response"));
          }
          const firstLineParts = firstLine.split(" ");
          const statusCode = +firstLineParts[1];
          const statusText = firstLineParts.slice(2).join(" ");
          const headers = {};
          for (const header of headerParts) {
            if (!header)
              continue;
            const firstColon = header.indexOf(":");
            if (firstColon === -1) {
              socket.destroy();
              return reject(new Error(`Invalid header from proxy CONNECT response: "${header}"`));
            }
            const key = header.slice(0, firstColon).toLowerCase();
            const value = header.slice(firstColon + 1).trimStart();
            const current = headers[key];
            if (typeof current === "string") {
              headers[key] = [current, value];
            } else if (Array.isArray(current)) {
              current.push(value);
            } else {
              headers[key] = value;
            }
          }
          debug2("got proxy server response: %o %o", firstLine, headers);
          cleanup();
          resolve({
            connect: {
              statusCode,
              statusText,
              headers
            },
            buffered
          });
        }
        socket.on("error", onerror);
        socket.on("end", onend);
        read();
      });
    }
    var import_debug2, debug2;
    var init_parse_proxy_response = __esm({
      "node_modules/https-proxy-agent/dist/parse-proxy-response.js"() {
        import_debug2 = __toESM(require_src(), 1);
        debug2 = (0, import_debug2.default)("https-proxy-agent:parse-proxy-response");
      }
    });
    
    // node_modules/https-proxy-agent/dist/index.js
    function resume(socket) {
      setImmediate(() => {
        socket.resume();
      });
    }
    function omit3(obj, ...keys) {
      const ret = {};
      let key;
      for (key in obj) {
        if (!keys.includes(key)) {
          ret[key] = obj[key];
        }
      }
      return ret;
    }
    var net4, tls2, import_assert, import_debug3, import_url2, debug3, setServernameFromNonIpHost, HttpsProxyAgent;
    var init_dist5 = __esm({
      "node_modules/https-proxy-agent/dist/index.js"() {
        net4 = __toESM(require("net"), 1);
        tls2 = __toESM(require("tls"), 1);
        import_assert = __toESM(require("assert"), 1);
        import_debug3 = __toESM(require_src(), 1);
        init_dist2();
        import_url2 = require("url");
        init_parse_proxy_response();
        init_dist3();
        debug3 = (0, import_debug3.default)("https-proxy-agent");
        setServernameFromNonIpHost = (options3) => {
          if (options3.servername === void 0 && options3.host && !net4.isIP(options3.host)) {
            return {
              ...options3,
              servername: options3.host
            };
          }
          return options3;
        };
        HttpsProxyAgent = class extends Agent2 {
          constructor(proxy, opts) {
            super(opts);
            this.options = { path: void 0 };
            this.proxy = typeof proxy === "string" ? new import_url2.URL(proxy) : proxy;
            this.proxyHeaders = opts?.headers ?? {};
            debug3("Creating new HttpsProxyAgent instance: %o", this.proxy.href);
            if (opts?.negotiate) {
              this.onProxyAuth = createNegotiateAuth();
            } else if (opts?.onProxyAuth) {
              this.onProxyAuth = opts.onProxyAuth;
            }
            const host = (this.proxy.hostname || this.proxy.host).replace(/^\[|\]$/g, "");
            const port = this.proxy.port ? parseInt(this.proxy.port, 10) : this.proxy.protocol === "https:" ? 443 : 80;
            this.connectOpts = {
              // Attempt to negotiate http/1.1 for proxy servers that support http/2
              ALPNProtocols: ["http/1.1"],
              ...opts ? omit3(opts, "headers", "onProxyAuth", "negotiate") : null,
              host,
              port
            };
          }
          /**
           * Called when the node-core HTTP client library is creating a
           * new HTTP request.
           */
          async connect(req, opts) {
            const { proxy } = this;
            if (!opts.host) {
              throw new TypeError('No "host" provided');
            }
            let socket;
            if (proxy.protocol === "https:") {
              debug3("Creating `tls.Socket`: %o", this.connectOpts);
              socket = tls2.connect(setServernameFromNonIpHost(this.connectOpts));
            } else {
              debug3("Creating `net.Socket`: %o", this.connectOpts);
              socket = net4.connect(this.connectOpts);
            }
            const headers = typeof this.proxyHeaders === "function" ? this.proxyHeaders() : { ...this.proxyHeaders };
            const host = net4.isIPv6(opts.host) ? `[${opts.host}]` : opts.host;
            let payload = `CONNECT ${host}:${opts.port} HTTP/1.1\r
    `;
            if (proxy.username || proxy.password) {
              const auth = `${decodeURIComponent(proxy.username)}:${decodeURIComponent(proxy.password)}`;
              headers["Proxy-Authorization"] = `Basic ${Buffer.from(auth).toString("base64")}`;
            }
            headers.Host = `${host}:${opts.port}`;
            if (!headers["Proxy-Connection"]) {
              headers["Proxy-Connection"] = this.keepAlive ? "Keep-Alive" : "close";
            }
            for (const name2 of Object.keys(headers)) {
              payload += `${name2}: ${headers[name2]}\r
    `;
            }
            const proxyResponsePromise = parseProxyResponse(socket);
            socket.write(`${payload}\r
    `);
            const { connect: connect5, buffered } = await proxyResponsePromise;
            req.emit("proxyConnect", connect5);
            this.emit("proxyConnect", connect5, req);
            req.emit("proxy", { proxy: this.proxy.href, socket });
            if (connect5.statusCode === 200) {
              req.once("socket", resume);
              if (opts.secureEndpoint) {
                debug3("Upgrading socket connection to TLS");
                return tls2.connect({
                  ...omit3(setServernameFromNonIpHost(opts), "host", "path", "port"),
                  socket
                });
              }
              return socket;
            }
            if (connect5.statusCode === 407 && this.onProxyAuth) {
              debug3("Got 407 response, invoking onProxyAuth callback");
              socket.destroy();
              const proxyAuthenticate = connect5.headers["proxy-authenticate"] || "";
              const scheme = Array.isArray(proxyAuthenticate) ? proxyAuthenticate[0].split(/\s/)[0] : proxyAuthenticate.split(/\s/)[0];
              const authResponse = await this.onProxyAuth({
                response: connect5,
                scheme
              });
              return this._connectWithAuth(req, opts, authResponse.headers);
            }
            socket.destroy();
            const fakeSocket = new net4.Socket({ writable: false });
            fakeSocket.readable = true;
            req.once("socket", (s2) => {
              debug3("Replaying proxy buffer for failed request");
              (0, import_assert.default)(s2.listenerCount("data") > 0);
              s2.push(buffered);
              s2.push(null);
            });
            return fakeSocket;
          }
          /**
           * Retry a CONNECT request with additional auth headers.
           */
          async _connectWithAuth(req, opts, authHeaders) {
            const { proxy } = this;
            let socket;
            if (proxy.protocol === "https:") {
              socket = tls2.connect(setServernameFromNonIpHost(this.connectOpts));
            } else {
              socket = net4.connect(this.connectOpts);
            }
            const headers = typeof this.proxyHeaders === "function" ? this.proxyHeaders() : { ...this.proxyHeaders };
            const host = net4.isIPv6(opts.host) ? `[${opts.host}]` : opts.host;
            let payload = `CONNECT ${host}:${opts.port} HTTP/1.1\r
    `;
            if (proxy.username || proxy.password) {
              const auth = `${decodeURIComponent(proxy.username)}:${decodeURIComponent(proxy.password)}`;
              headers["Proxy-Authorization"] = `Basic ${Buffer.from(auth).toString("base64")}`;
            }
            Object.assign(headers, authHeaders);
            headers.Host = `${host}:${opts.port}`;
            if (!headers["Proxy-Connection"]) {
              headers["Proxy-Connection"] = this.keepAlive ? "Keep-Alive" : "close";
            }
            for (const name2 of Object.keys(headers)) {
              payload += `${name2}: ${headers[name2]}\r
    `;
            }
            const proxyResponsePromise = parseProxyResponse(socket);
            socket.write(`${payload}\r
    `);
            const { connect: connect5 } = await proxyResponsePromise;
            req.emit("proxyConnect", connect5);
            this.emit("proxyConnect", connect5, req);
            if (connect5.statusCode === 200) {
              req.once("socket", resume);
              if (opts.secureEndpoint) {
                debug3("Upgrading socket connection to TLS");
                return tls2.connect({
                  ...omit3(setServernameFromNonIpHost(opts), "host", "path", "port"),
                  socket
                });
              }
              return socket;
            }
            socket.destroy();
            throw new Error(`Proxy authentication failed with status ${connect5.statusCode} after retry`);
          }
        };
        HttpsProxyAgent.protocols = ["http", "https"];
      }
    });
    
    // src/model/fetch.ts
    function getRequestModule(url) {
      return url.protocol === "https:" ? import_follow_redirects.https : import_follow_redirects.http;
    }
    function getText(data) {
      if (typeof data === "string" || Buffer.isBuffer(data)) return data;
      return JSON.stringify(data);
    }
    function toURL(urlInput) {
      if (urlInput instanceof URL) return urlInput;
      let url = new URL(urlInput);
      if (!["https:", "http:"].includes(url.protocol)) throw new Error(`Not valid protocol with ${urlInput}, should be http: or https:`);
      return url;
    }
    function toPort(port, protocol) {
      if (port) {
        port = typeof port === "number" ? port : parseInt(port, 10);
        if (!isNaN(port)) return port;
      }
      return protocol.startsWith("https") ? 443 : 80;
    }
    function getDataType(data) {
      if (data === null) return "null";
      if (data === void 0) return "undefined";
      if (typeof data == "string") return "string";
      if (Buffer.isBuffer(data)) return "buffer";
      if (Array.isArray(data) || objectLiteral(data)) return "object";
      return "unknown";
    }
    function getSystemProxyURI(endpoint, env = process.env) {
      let noProxy = env.NO_PROXY ?? env.no_proxy;
      if (noProxy === "*") {
        return null;
      }
      if (noProxy) {
        const hostname = endpoint.hostname.replace(/^\.*/, ".").toLowerCase();
        const port = toPort(endpoint.port, endpoint.protocol).toString();
        const noProxyList = noProxy.split(",");
        for (let i2 = 0, len = noProxyList.length; i2 < len; i2++) {
          let noProxyItem = noProxyList[i2].trim().toLowerCase();
          if (noProxyItem.includes(":")) {
            let noProxyItemParts = noProxyItem.split(":", 2);
            let noProxyHost = noProxyItemParts[0].replace(/^\.*/, ".");
            let noProxyPort = noProxyItemParts[1];
            if (port == noProxyPort && hostname.endsWith(noProxyHost)) {
              return null;
            }
          } else {
            noProxyItem = noProxyItem.replace(/^\.*/, ".");
            if (hostname.endsWith(noProxyItem)) {
              return null;
            }
          }
        }
      }
      let proxyUri;
      if (endpoint.protocol === "http:") {
        proxyUri = env.HTTP_PROXY || env.http_proxy || null;
      } else {
        proxyUri = env.HTTPS_PROXY || env.https_proxy || env.HTTP_PROXY || env.http_proxy || null;
      }
      return proxyUri;
    }
    function getAgent(endpoint, options3) {
      let proxy = options3.proxy || getSystemProxyURI(endpoint);
      if (proxy) {
        let proxyURL;
        try {
          proxyURL = new URL(proxy);
          if (!/^https?:$/.test(proxyURL.protocol)) return null;
        } catch (e2) {
          return null;
        }
        let rejectUnauthorized = typeof options3.proxyStrictSSL === "boolean" ? options3.proxyStrictSSL : true;
        logger32.info(`Using proxy ${proxy} from ${options3.proxy ? "configuration" : "system environment"} for ${endpoint.hostname}:`);
        const agentOptions = { rejectUnauthorized };
        return endpoint.protocol === "http:" ? new HttpProxyAgent(proxyURL, agentOptions) : new HttpsProxyAgent(proxyURL, agentOptions);
      }
      return null;
    }
    function resolveRequestOptions(url, options3) {
      let config = workspace_default.getConfiguration("http", null);
      let dataType = getDataType(options3.data);
      let proxyOptions = {
        proxy: config.get("proxy", ""),
        proxyStrictSSL: config.get("proxyStrictSSL", true),
        proxyAuthorization: config.get("proxyAuthorization", null),
        proxyCA: config.get("proxyCA", null)
      };
      if (options3.query && !url.search) {
        url.search = `?${new URLSearchParams(options3.query).toString()}`;
      }
      let agent = getAgent(url, proxyOptions);
      let opts = {
        method: options3.method ?? "GET",
        hostname: url.hostname,
        port: toPort(url.port, url.protocol),
        path: url.pathname + url.search,
        agent,
        rejectUnauthorized: proxyOptions.proxyStrictSSL,
        maxRedirects: 3,
        headers: {
          "User-Agent": "Mozilla/5.0 (X11; Linux x86_64)",
          "Accept-Encoding": "gzip, deflate",
          ...options3.headers ?? {}
        }
      };
      if (dataType == "object") {
        opts.headers["Content-Type"] = "application/json";
      } else if (dataType == "string") {
        opts.headers["Content-Type"] = "text/plain";
      }
      if (proxyOptions.proxyAuthorization) opts.headers["Proxy-Authorization"] = proxyOptions.proxyAuthorization;
      if (proxyOptions.proxyCA) opts.ca = fs.readFileSync(proxyOptions.proxyCA);
      if (options3.user) opts.auth = options3.user + ":" + toText(options3.password);
      if (url.username) opts.auth = url.username + ":" + toText(url.password);
      if (options3.timeout) opts.timeout = options3.timeout;
      if (options3.buffer) opts.buffer = true;
      let maxResponseSize = options3.maxResponseSize ?? DEFAULT_MAX_RESPONSE_SIZE;
      if (!Number.isFinite(maxResponseSize) || maxResponseSize <= 0) throw new Error("maxResponseSize must be a positive finite number");
      opts.maxResponseSize = maxResponseSize;
      return opts;
    }
    function parseCharset(contentType) {
      let match2 = /;\s*charset\s*=\s*"?([^";\s]+)"?/i.exec(contentType);
      let encoding2 = match2 ? match2[1] : "utf8";
      let lower = encoding2.toLowerCase();
      if (lower === "iso-8859-1" || lower === "latin-1") encoding2 = "latin1";
      else if (lower === "utf-16" || lower === "utf-16le" || lower === "ucs-2" || lower === "ucs2") encoding2 = "utf16le";
      else if (lower === "us-ascii") encoding2 = "ascii";
      if (!Buffer.isEncoding(encoding2)) {
        throw new Error(`Unsupported charset: ${encoding2}`);
      }
      return encoding2;
    }
    function request(url, data, opts, token, obj = {}) {
      let mod = getRequestModule(url);
      return new Promise((resolve, reject) => {
        let timer;
        let settled = false;
        let req;
        let cancellation;
        const cleanup = () => {
          cancellation?.dispose();
          cancellation = void 0;
          if (timer) clearTimeout(timer);
        };
        const succeed = (value) => {
          if (settled) return;
          settled = true;
          cleanup();
          resolve(value);
        };
        const fail = (error) => {
          if (settled) return;
          settled = true;
          cleanup();
          reject(error);
        };
        req = mod.request(opts, (res) => {
          let readable = res;
          if (res.statusCode >= 200 && res.statusCode < 300 || res.statusCode === 1223) {
            let headers = res.headers;
            let chunks = [];
            let size = 0;
            let contentType = toText(headers["content-type"]);
            readable = decompressResponse(res);
            readable.on("data", (chunk) => {
              size += chunk.length;
              let maxResponseSize = opts.maxResponseSize ?? DEFAULT_MAX_RESPONSE_SIZE;
              if (size > maxResponseSize) {
                readable.destroy(new Error(`Response exceeds maximum size of ${maxResponseSize} bytes`));
                return;
              }
              chunks.push(chunk);
            });
            readable.on("end", () => {
              let buf = Buffer.concat(chunks);
              if (!opts.buffer && (contentType.startsWith("application/json") || contentType.startsWith("text/"))) {
                try {
                  let encoding2 = parseCharset(contentType);
                  let rawData = buf.toString(encoding2);
                  if (!contentType.includes("application/json")) {
                    succeed(rawData);
                  } else {
                    try {
                      const parsedData = JSON.parse(rawData);
                      succeed(parsedData);
                    } catch (e2) {
                      fail(new Error(`Parse response error: ${e2}`));
                    }
                  }
                } catch (e2) {
                  fail(new Error(`Decode response error: ${e2 instanceof Error ? e2.message : String(e2)}`));
                }
              } else {
                succeed(buf);
              }
            });
            readable.on("error", (err) => {
              fail(new Error(`Connection error to ${url}: ${err.message}`));
            });
          } else {
            res.resume();
            fail(new Error(`Bad response from ${url}: ${res.statusCode}`));
          }
        });
        cancellation = token?.onCancellationRequested(() => {
          req.destroy(new CancellationError());
        });
        obj.req = req;
        req.on("error", (e2) => {
          if (e2["code"] == "ECONNRESET") {
            timer = setTimeout(() => {
              fail(e2);
            }, timeout);
          } else {
            fail(e2);
          }
        });
        req.on("timeout", () => {
          req.destroy(new Error(`Request timeout after ${opts.timeout}ms`));
        });
        if (data) req.write(getText(data));
        if (opts.timeout) req.setTimeout(opts.timeout);
        req.end();
      });
    }
    function fetch(urlInput, options3 = {}, token) {
      let url = toURL(urlInput);
      let opts = resolveRequestOptions(url, options3);
      return request(url, options3.data, opts, token).catch((err) => {
        logger32.error(`Fetch error for ${url}:`, opts, err);
        if (opts.agent && opts.agent.proxy) {
          let { proxy } = opts.agent;
          throw new Error(`Request failed using proxy ${proxy.host}: ${err.message}`);
        } else {
          throw err;
        }
      });
    }
    var import_follow_redirects, logger32, timeout, DEFAULT_MAX_RESPONSE_SIZE;
    var init_fetch = __esm({
      "src/model/fetch.ts"() {
        "use strict";
        init_decompress_response();
        import_follow_redirects = __toESM(require_follow_redirects());
        init_dist4();
        init_dist5();
        init_logger();
        init_util();
        init_errors();
        init_is();
        init_node();
        init_string();
        init_workspace();
        logger32 = createLogger("model-fetch");
        timeout = getConditionValue(500, 50);
        DEFAULT_MAX_RESPONSE_SIZE = 128 * 1024 * 1024;
      }
    });
    
    // node_modules/content-disposition/dist/index.js
    var dist_exports2 = {};
    __export(dist_exports2, {
      create: () => create,
      decodeExtended: () => decodeExtended,
      encodeExtended: () => encodeExtended,
      format: () => format4,
      parse: () => parse3
    });
    function create(filename, options3) {
      const type = options3?.type || "attachment";
      const parameters = createParameters(filename, options3?.fallback);
      return format4({ type, parameters }, { extended: false });
    }
    function isTokenValid(str) {
      const len = str.length;
      if (len === 0)
        return false;
      for (let index = 0; index < len; index++) {
        if ((CHAR_MAP[str.charCodeAt(index)] & TOKEN_FLAG) === 0)
          return false;
      }
      return true;
    }
    function parse3(header, options3) {
      const len = header.length;
      const multipart = options3?.multipart === true;
      const extended = options3?.extended !== false;
      let index = 0;
      while ((CHAR_MAP[header.charCodeAt(index)] & OWS) !== 0) {
        index++;
      }
      const typeStart = index;
      let typeFlags = 0;
      let whitespace = -1;
      while (index < len) {
        const code = header.charCodeAt(index);
        const flags = CHAR_MAP[code];
        if ((flags & SEMI_FLAG) !== 0)
          break;
        if ((flags & OWS) !== 0) {
          if (whitespace === -1)
            whitespace = index;
        } else {
          whitespace = -1;
        }
        typeFlags |= code & NON_ASCII | flags;
        index++;
      }
      const typeEnd = whitespace === -1 ? index : whitespace;
      const typeValue = header.slice(typeStart, typeEnd);
      const type = (typeFlags & CASE_FLAGS) === 0 ? typeValue : typeValue.toLowerCase();
      const parameters = new NullObject();
      const seenKeys = new NullObject();
      parameter: while (index < len) {
        index++;
        while ((CHAR_MAP[header.charCodeAt(index)] & OWS) !== 0) {
          index++;
        }
        const keyStart = index;
        let keyFlags = 0;
        let keyWhitespace = -1;
        while (index < len) {
          const code = header.charCodeAt(index);
          const flags = CHAR_MAP[code];
          if ((flags & SEMI_FLAG) !== 0)
            continue parameter;
          if (code === EQ) {
            const keyEnd = keyWhitespace === -1 ? index : keyWhitespace;
            const keyValue = header.slice(keyStart, keyEnd);
            const key = (keyFlags & CASE_FLAGS) === 0 ? keyValue : keyValue.toLowerCase();
            index++;
            while ((CHAR_MAP[header.charCodeAt(index)] & OWS) !== 0) {
              index++;
            }
            if (index < len && header.charCodeAt(index) === DQUOTE) {
              const quotedStart = ++index;
              let encoded = false;
              while (index < len) {
                const code2 = header.charCodeAt(index);
                if (code2 === DQUOTE) {
                  if (parameters[key] === void 0 && !seenKeys[key]) {
                    parameters[key] = encoded ? multipart ? decodeMultipartEscapes(header, quotedStart, index) : unescapeQuotedPairs(header, quotedStart, index) : header.slice(quotedStart, index);
                  }
                  index++;
                  while (index < len) {
                    if ((CHAR_MAP[header.charCodeAt(index)] & SEMI_FLAG) !== 0) {
                      break;
                    }
                    index++;
                  }
                  seenKeys[key] = true;
                  continue parameter;
                }
                if (multipart) {
                  if (code2 === /* % */
                  37) {
                    const decodedCode = multipartEscapeCode(header, index, len);
                    if (decodedCode !== 0) {
                      encoded = true;
                      index += 3;
                      continue;
                    }
                  }
                } else if (code2 === BSLASH && index + 1 < len) {
                  encoded = true;
                  index += 2;
                  continue;
                }
                index++;
              }
              seenKeys[key] = true;
              continue parameter;
            }
            const valueStart = index;
            const delimiter = header.indexOf(";", index);
            index = delimiter === -1 ? len : delimiter;
            if (seenKeys[key])
              continue parameter;
            seenKeys[key] = true;
            let valueEnd = index;
            while (valueEnd > valueStart && (CHAR_MAP[header.charCodeAt(valueEnd - 1)] & OWS) !== 0) {
              valueEnd--;
            }
            const value = header.slice(valueStart, valueEnd);
            if (extended && key.charCodeAt(key.length - 1) === ASTERISK) {
              const normalizedKey = key.slice(0, -1);
              const decoded = decodeExtended(value);
              if (decoded !== void 0) {
                parameters[normalizedKey] = decoded;
                continue parameter;
              }
            }
            if (parameters[key] === void 0)
              parameters[key] = value;
            continue parameter;
          }
          if ((flags & OWS) !== 0) {
            if (keyWhitespace === -1)
              keyWhitespace = index;
          } else {
            keyWhitespace = -1;
          }
          keyFlags |= code & NON_ASCII | flags;
          index++;
        }
      }
      return { type, parameters };
    }
    function multipartEscapeCode(str, index, len) {
      if (index + 2 >= len)
        return 0;
      const code2 = str.charCodeAt(index + 1);
      const code3 = str.charCodeAt(index + 2);
      if (code2 === 50 && code3 === 50)
        return DQUOTE;
      if (code2 !== 48)
        return 0;
      if (code3 === 100 || code3 === 68)
        return 13;
      if (code3 === 97 || code3 === 65)
        return 10;
      return 0;
    }
    function unescapeQuotedPairs(str, start, end) {
      let result = "";
      for (let index = start; index < end; index++) {
        if (str.charCodeAt(index) === BSLASH) {
          result += str.slice(start, index);
          start = ++index;
        }
      }
      return result + str.slice(start, end);
    }
    function decodeMultipartEscapes(str, start, end) {
      let result = "";
      for (let index = start; index < end; index++) {
        if (str.charCodeAt(index) !== /* % */
        37)
          continue;
        const decodedCode = multipartEscapeCode(str, index, end);
        if (decodedCode === 0)
          continue;
        result += str.slice(start, index);
        result += String.fromCharCode(decodedCode);
        index += 2;
        start = index + 1;
      }
      return result + str.slice(start, end);
    }
    function createParameters(filename, fallback = true) {
      if (filename === void 0)
        return;
      if (typeof fallback === "string") {
        if (!ASCII_TEXT_REGEXP.test(fallback)) {
          throw new TypeError("Fallback must be valid US-ASCII: " + fallback);
        }
        if (fallback === filename)
          return { filename };
        return { filename: fallback, "filename*": encodeExtended(filename) };
      }
      if (ASCII_TEXT_REGEXP.test(filename) && !INVALID_FILENAME_REGEXP.test(filename)) {
        return { filename };
      }
      if (fallback === false) {
        return { "filename*": encodeExtended(filename) };
      }
      return {
        filename: getAscii(filename),
        "filename*": encodeExtended(filename)
      };
    }
    function decodeExtended(str) {
      const charsetEnd = str.indexOf("'");
      if (charsetEnd <= 0) {
        return void 0;
      }
      const languageEnd = str.indexOf("'", charsetEnd + 1);
      if (languageEnd === -1) {
        return void 0;
      }
      const charset = str.slice(0, charsetEnd).toLowerCase();
      const encoded = str.slice(languageEnd + 1);
      switch (charset) {
        case "iso-8859-1": {
          return decodeHexEscapes(encoded);
        }
        case "utf-8":
        case "utf8": {
          return tryDecodeURIComponent(encoded);
        }
      }
      return void 0;
    }
    function tryDecodeURIComponent(str) {
      try {
        return decodeURIComponent(str);
      } catch {
        return void 0;
      }
    }
    function format4(obj, options3) {
      const { type, parameters } = obj;
      const multipart = options3?.multipart === true;
      const extended = options3?.extended !== false;
      if (!type || !isTokenValid(type)) {
        throw new TypeError("Invalid type: " + type);
      }
      let result = type;
      if (parameters) {
        for (const param of Object.keys(parameters)) {
          const value = parameters[param];
          if (!isTokenValid(param)) {
            throw new TypeError("Invalid parameter name: " + param);
          }
          if (multipart) {
            result += "; " + param + "=" + qmultipart(value);
            continue;
          }
          const formatted = parameterValue(value);
          if (formatted !== void 0) {
            result += "; " + param + "=" + formatted;
            continue;
          }
          if (!extended) {
            throw new TypeError("Invalid parameter value: " + value);
          }
          if (param.charCodeAt(param.length - 1) === ASTERISK) {
            throw new TypeError("Invalid extended parameter value: " + value);
          }
          result += "; " + param + "*=" + encodeExtended(value);
        }
      }
      return result;
    }
    function getAscii(val) {
      return val.replace(NON_ASCII_REGEXP, "?");
    }
    function pencode(char) {
      return "%" + char.charCodeAt(0).toString(16).toUpperCase();
    }
    function parameterValue(str) {
      const len = str.length;
      if (len === 0)
        return '""';
      let index = 0;
      while (index < len && (CHAR_MAP[str.charCodeAt(index)] & TOKEN_FLAG) !== 0) {
        index++;
      }
      if (index === len)
        return str;
      let result = '"';
      let start = 0;
      for (; index < len; index++) {
        const code = str.charCodeAt(index);
        if (code < SP || code === 127 || code > 255)
          return void 0;
        if (code === DQUOTE || code === BSLASH) {
          result += str.slice(start, index) + "\\";
          start = index;
        }
      }
      return result + str.slice(start) + '"';
    }
    function qmultipart(str) {
      if (!/[\n\r"]/.test(str))
        return '"' + str + '"';
      let result = '"';
      let start = 0;
      for (let index = 0; index < str.length; index++) {
        const code = str.charCodeAt(index);
        if (code === DQUOTE || code === 10 || code === 13) {
          result += str.slice(start, index);
          result += code === DQUOTE ? "%22" : code === 10 ? "%0A" : "%0D";
          start = index + 1;
        }
      }
      return result + str.slice(start) + '"';
    }
    function encodeExtended(str) {
      const encoded = encodeURIComponent(str).replace(ENCODE_URL_ATTR_CHAR_REGEXP, pencode);
      return "UTF-8''" + encoded;
    }
    function decodeHexEscapes(str) {
      let index = str.indexOf("%");
      if (index === -1)
        return str;
      let start = 0;
      let result = "";
      do {
        const high = HEX_VALUES[str.charCodeAt(index + 1)];
        const low = HEX_VALUES[str.charCodeAt(index + 2)];
        if (!high || !low)
          return void 0;
        result += str.slice(start, index) + String.fromCharCode(high - 1 << 4 | low - 1);
        start = index + 3;
        index = str.indexOf("%", start);
      } while (index !== -1);
      return result + str.slice(start);
    }
    var NullObject, SP, HTAB, SEMI, EQ, DQUOTE, BSLASH, ASTERISK, LOWER_CASE, OWS, SEMI_FLAG, TOKEN_FLAG, NON_ASCII, CASE_FLAGS, CHAR_MAP, ENCODE_URL_ATTR_CHAR_REGEXP, NON_ASCII_REGEXP, INVALID_FILENAME_REGEXP, ASCII_TEXT_REGEXP, HEX_VALUES;
    var init_dist6 = __esm({
      "node_modules/content-disposition/dist/index.js"() {
        NullObject = /* @__PURE__ */ (() => {
          const C2 = function() {
          };
          C2.prototype = /* @__PURE__ */ Object.create(null);
          return C2;
        })();
        SP = 32;
        HTAB = 9;
        SEMI = 59;
        EQ = 61;
        DQUOTE = 34;
        BSLASH = 92;
        ASTERISK = 42;
        LOWER_CASE = 1;
        OWS = 2;
        SEMI_FLAG = 4;
        TOKEN_FLAG = 8;
        NON_ASCII = 65280;
        CASE_FLAGS = LOWER_CASE | NON_ASCII;
        CHAR_MAP = new Uint8Array(256);
        for (let code = 65; code <= 90; code++) {
          CHAR_MAP[code] |= LOWER_CASE | TOKEN_FLAG;
        }
        CHAR_MAP[HTAB] |= OWS;
        CHAR_MAP[SP] |= OWS;
        CHAR_MAP[SEMI] |= SEMI_FLAG;
        for (let code = 128; code <= 255; code++) {
          CHAR_MAP[code] |= LOWER_CASE;
        }
        for (const char of "!#$%&'*+-.^_`|~0123456789abcdefghijklmnopqrstuvwxyz") {
          CHAR_MAP[char.charCodeAt(0)] |= TOKEN_FLAG;
        }
        ENCODE_URL_ATTR_CHAR_REGEXP = /[\x00-\x20"'()*,/:;<=>?@[\\\]{}\x7f]/g;
        NON_ASCII_REGEXP = /[^\x20-\x7e]/g;
        INVALID_FILENAME_REGEXP = /%[0-9A-Fa-f]{2}/;
        ASCII_TEXT_REGEXP = /^[\x20-\x7e]*$/;
        HEX_VALUES = new Uint8Array(128);
        for (let code = 48; code <= 57; code++)
          HEX_VALUES[code] = code - 47;
        for (let code = 65; code <= 70; code++)
          HEX_VALUES[code] = code - 54;
        for (let code = 97; code <= 102; code++)
          HEX_VALUES[code] = code - 86;
      }
    });
    
    // node_modules/tar/dist/commonjs/server/index.min.js
    var require_index_min3 = __commonJS({
      "node_modules/tar/dist/commonjs/server/index.min.js"(exports2) {
        "use strict";
        var w2 = (i2, e2) => () => (e2 || i2((e2 = { exports: {} }).exports, e2), e2.exports);
        var $ = w2((v2) => {
          "use strict";
          Object.defineProperty(v2, "__esModule", { value: true });
          v2.writeAscii = v2.encodeUtf8Into = v2.decodeUtf8 = v2.utf8Length = v2.isReadableStream = v2.isBlob = v2.isArrayBuffer = v2.isUint8Array = void 0;
          var Wn = (i2) => ArrayBuffer.isView(i2) && i2[Symbol.toStringTag] === "Uint8Array";
          v2.isUint8Array = Wn;
          var $n = (i2) => Object.prototype.toString.call(i2) === "[object ArrayBuffer]";
          v2.isArrayBuffer = $n;
          var Gn = (i2) => typeof i2?.size == "number" && typeof i2.stream == "function";
          v2.isBlob = Gn;
          var Yn = (i2) => typeof i2?.getReader == "function";
          v2.isReadableStream = Yn;
          var Vn = new TextDecoder("utf-8", { ignoreBOM: true }), Kn = new TextEncoder(), Xn = (i2) => {
            let e2 = i2.length;
            for (let t2 = 0; t2 < i2.length; t2++) {
              let n2 = i2.charCodeAt(t2);
              n2 < 128 || (n2 < 2048 ? e2 += 1 : n2 >= 55296 && n2 <= 56319 && (i2.charCodeAt(t2 + 1) & 64512) === 56320 ? (e2 += 2, t2++) : e2 += 2);
            }
            return e2;
          };
          v2.utf8Length = Xn;
          var Jn = (i2, e2 = 0, t2 = i2.length) => {
            let n2 = "";
            for (let r2 = e2; r2 < t2; r2++) {
              let s2 = i2[r2];
              if (s2 >= 128) return Vn.decode(i2.subarray(e2, t2));
              n2 += String.fromCharCode(s2);
            }
            return n2;
          };
          v2.decodeUtf8 = Jn;
          var Zn = (i2, e2, t2, n2) => {
            let { written: r2 } = Kn.encodeInto(i2, e2.subarray(t2, t2 + n2));
            e2.fill(0, t2 + r2, t2 + n2);
          };
          v2.encodeUtf8Into = Zn;
          var Qn = (i2, e2, t2) => {
            for (let n2 = 0; n2 < i2.length; n2++) e2[t2 + n2] = i2.charCodeAt(n2);
          };
          v2.writeAscii = Qn;
        });
        var di = w2((te) => {
          "use strict";
          Object.defineProperty(te, "__esModule", { value: true });
          te.parse = te.encode = void 0;
          var er = (i2, e2) => {
            if (Number.isSafeInteger(i2)) i2 < 0 ? ir(i2, e2) : tr(i2, e2);
            else throw Error("cannot encode number outside of javascript safe integer range");
            return e2;
          };
          te.encode = er;
          var tr = (i2, e2) => {
            e2[0] = 128;
            for (var t2 = e2.length; t2 > 1; t2--) e2[t2 - 1] = i2 & 255, i2 = Math.floor(i2 / 256);
          }, ir = (i2, e2) => {
            e2[0] = 255;
            var t2 = false;
            i2 = i2 * -1;
            for (var n2 = e2.length; n2 > 1; n2--) {
              var r2 = i2 & 255;
              i2 = Math.floor(i2 / 256), t2 ? e2[n2 - 1] = li(r2) : r2 === 0 ? e2[n2 - 1] = 0 : (t2 = true, e2[n2 - 1] = hi(r2));
            }
          }, nr = (i2) => {
            let e2 = i2[0], t2 = e2 === 128 ? sr(i2.subarray(1, i2.length)) : e2 === 255 ? rr(i2) : null;
            if (t2 === null) throw Error("invalid base256 encoding");
            if (!Number.isSafeInteger(t2)) throw Error("parsed number outside of javascript safe integer range");
            return t2;
          };
          te.parse = nr;
          var rr = (i2) => {
            for (var e2 = i2.length, t2 = 0, n2 = false, r2 = e2 - 1; r2 > -1; r2--) {
              var s2 = Number(i2[r2]), o2;
              n2 ? o2 = li(s2) : s2 === 0 ? o2 = s2 : (n2 = true, o2 = hi(s2)), o2 !== 0 && (t2 -= o2 * Math.pow(256, e2 - r2 - 1));
            }
            return t2;
          }, sr = (i2) => {
            for (var e2 = i2.length, t2 = 0, n2 = e2 - 1; n2 > -1; n2--) {
              var r2 = Number(i2[n2]);
              r2 !== 0 && (t2 += r2 * Math.pow(256, e2 - n2 - 1));
            }
            return t2;
          }, li = (i2) => (255 ^ i2) & 255, hi = (i2) => (255 ^ i2) + 1 & 255;
        });
        var C2 = w2((g2) => {
          "use strict";
          Object.defineProperty(g2, "__esModule", { value: true });
          g2.relative = g2.resolve = g2.isAbsolute = g2.basename = g2.dirname = g2.join = g2.normalize = void 0;
          var or = (i2) => {
            let e2 = i2.charCodeAt(0) === 47, t2 = [];
            for (let s2 of i2.split("/")) s2 === "" || s2 === "." || (s2 !== ".." ? t2.push(s2) : t2.length && t2[t2.length - 1] !== ".." ? t2.pop() : e2 || t2.push(s2));
            let n2 = t2.length && i2.charCodeAt(i2.length - 1) === 47, r2 = t2.join("/") + (n2 ? "/" : "");
            return e2 ? "/" + r2 : r2 || (i2.endsWith("/") ? "./" : ".");
          };
          g2.normalize = or;
          var ar = (...i2) => (0, g2.normalize)(i2.filter((e2) => e2).join("/"));
          g2.join = ar;
          var cr = (i2) => {
            let e2 = i2.length;
            for (; e2 > 1 && i2.charCodeAt(e2 - 1) === 47; ) e2--;
            let t2 = i2.lastIndexOf("/", e2 - 1);
            return t2 === -1 ? "." : t2 === 0 ? "/" : t2 === 1 && i2.charCodeAt(0) === 47 ? "//" : i2.slice(0, t2);
          };
          g2.dirname = cr;
          var lr = (i2) => {
            let e2 = i2.length;
            for (; e2 > 0 && i2.charCodeAt(e2 - 1) === 47; ) e2--;
            return i2.slice(i2.lastIndexOf("/", e2 - 1) + 1, e2);
          };
          g2.basename = lr;
          var hr = (i2) => i2.charCodeAt(0) === 47;
          g2.isAbsolute = hr;
          var dr = (...i2) => {
            let e2 = "";
            for (let n2 = i2.length - 1; n2 >= 0 && !(0, g2.isAbsolute)(e2); n2--) {
              let r2 = i2[n2];
              r2 && (e2 = e2 ? r2 + "/" + e2 : r2);
            }
            let t2 = (0, g2.normalize)(e2);
            return t2.length > 1 && t2.endsWith("/") ? t2.slice(0, -1) : t2;
          };
          g2.resolve = dr;
          var ur = (i2, e2) => {
            let t2 = (0, g2.resolve)(i2).split("/"), n2 = (0, g2.resolve)(e2).split("/");
            t2[t2.length - 1] || t2.pop(), n2[n2.length - 1] || n2.pop();
            let r2 = 0;
            for (; r2 < t2.length && r2 < n2.length && t2[r2] === n2[r2]; ) r2++;
            return [...Array.from({ length: t2.length - r2 }, () => ".."), ...n2.slice(r2)].join("/");
          };
          g2.relative = ur;
        });
        var gt = w2((O) => {
          "use strict";
          Object.defineProperty(O, "__esModule", { value: true });
          O.code = O.name = O.normalFsTypes = O.isName = O.isCode = void 0;
          var fr = (i2) => O.name.has(i2);
          O.isCode = fr;
          var pr = (i2) => O.code.has(i2);
          O.isName = pr;
          O.normalFsTypes = /* @__PURE__ */ new Set(["0", "", "1", "2", "3", "4", "5", "6", "7", "D"]);
          O.name = /* @__PURE__ */ new Map([["0", "File"], ["", "OldFile"], ["1", "Link"], ["2", "SymbolicLink"], ["3", "CharacterDevice"], ["4", "BlockDevice"], ["5", "Directory"], ["6", "FIFO"], ["7", "ContiguousFile"], ["g", "GlobalExtendedHeader"], ["x", "ExtendedHeader"], ["A", "SolarisACL"], ["D", "GNUDumpDir"], ["I", "Inode"], ["K", "NextFileHasLongLinkpath"], ["L", "NextFileHasLongPath"], ["M", "ContinuationFile"], ["N", "OldGnuLongPath"], ["S", "SparseFile"], ["V", "TapeVolumeHeader"], ["X", "OldExtendedHeader"]]);
          O.code = new Map(Array.from(O.name).map((i2) => [i2[1], i2[0]]));
        });
        var ne = w2((q) => {
          "use strict";
          var mr = q && q.__createBinding || (Object.create ? (function(i2, e2, t2, n2) {
            n2 === void 0 && (n2 = t2);
            var r2 = Object.getOwnPropertyDescriptor(e2, t2);
            (!r2 || ("get" in r2 ? !e2.__esModule : r2.writable || r2.configurable)) && (r2 = { enumerable: true, get: function() {
              return e2[t2];
            } }), Object.defineProperty(i2, n2, r2);
          }) : (function(i2, e2, t2, n2) {
            n2 === void 0 && (n2 = t2), i2[n2] = e2[t2];
          })), yr = q && q.__setModuleDefault || (Object.create ? (function(i2, e2) {
            Object.defineProperty(i2, "default", { enumerable: true, value: e2 });
          }) : function(i2, e2) {
            i2.default = e2;
          }), ui = q && q.__importStar || /* @__PURE__ */ (function() {
            var i2 = function(e2) {
              return i2 = Object.getOwnPropertyNames || function(t2) {
                var n2 = [];
                for (var r2 in t2) Object.prototype.hasOwnProperty.call(t2, r2) && (n2[n2.length] = r2);
                return n2;
              }, i2(e2);
            };
            return function(e2) {
              if (e2 && e2.__esModule) return e2;
              var t2 = {};
              if (e2 != null) for (var n2 = i2(e2), r2 = 0; r2 < n2.length; r2++) n2[r2] !== "default" && mr(t2, e2, n2[r2]);
              return yr(t2, e2), t2;
            };
          })();
          Object.defineProperty(q, "__esModule", { value: true });
          q.Header = void 0;
          var A2 = $(), fi = ui(di()), _e = C2(), ie = ui(gt()), wr = (i2) => i2 === void 0 || i2 < 0 ? void 0 : i2, St = class {
            cksumValid = false;
            needPax = false;
            nullBlock = false;
            block;
            path;
            mode;
            uid;
            gid;
            size;
            cksum;
            #e = "Unsupported";
            linkpath;
            uname;
            gname;
            devmaj = 0;
            devmin = 0;
            atime;
            ctime;
            mtime;
            charset;
            comment;
            constructor(e2, t2 = 0, n2, r2) {
              (0, A2.isUint8Array)(e2) ? this.decode(e2, t2 || 0, n2, r2) : e2 && this.#t(e2);
            }
            decode(e2, t2, n2, r2) {
              if (t2 || (t2 = 0), !e2 || !(e2.length >= t2 + 512)) throw new Error("need 512 bytes for header");
              let s2 = N(e2, t2 + 156, 1), o2 = ie.normalFsTypes.has(s2), a2 = o2 ? n2 : void 0, c2 = o2 ? r2 : void 0;
              if (this.path = a2?.path ?? N(e2, t2, 100), this.mode = a2?.mode ?? c2?.mode ?? D(e2, t2 + 100, 8), this.uid = a2?.uid ?? c2?.uid ?? D(e2, t2 + 108, 8), this.gid = a2?.gid ?? c2?.gid ?? D(e2, t2 + 116, 8), this.size = wr(a2?.size ?? D(e2, t2 + 124, 12)), this.mtime = a2?.mtime ?? c2?.mtime ?? bt(e2, t2 + 136, 12), this.cksum = D(e2, t2 + 148, 12), c2 && this.#t(c2, true), a2 && this.#t(a2), ie.isCode(s2) && (this.#e = s2 || "0"), this.#e === "0" && this.path.slice(-1) === "/" && (this.#e = "5"), this.#e === "5" && (this.size = 0), this.linkpath = N(e2, t2 + 157, 100), (0, A2.decodeUtf8)(e2, t2 + 257, t2 + 265) === "ustar\x0000") if (this.uname = a2?.uname ?? c2?.uname ?? N(e2, t2 + 265, 32), this.gname = a2?.gname ?? c2?.gname ?? N(e2, t2 + 297, 32), this.devmaj = a2?.devmaj ?? c2?.devmaj ?? D(e2, t2 + 329, 8) ?? 0, this.devmin = a2?.devmin ?? c2?.devmin ?? D(e2, t2 + 337, 8) ?? 0, e2[t2 + 475] !== 0) {
                let h2 = N(e2, t2 + 345, 155);
                this.path = h2 + "/" + this.path;
              } else {
                let h2 = N(e2, t2 + 345, 130);
                h2 && (this.path = h2 + "/" + this.path), this.atime = n2?.atime ?? r2?.atime ?? bt(e2, t2 + 476, 12), this.ctime = n2?.ctime ?? r2?.ctime ?? bt(e2, t2 + 488, 12);
              }
              let l2 = 256;
              for (let h2 = t2; h2 < t2 + 148; h2++) l2 += e2[h2];
              for (let h2 = t2 + 156; h2 < t2 + 512; h2++) l2 += e2[h2];
              this.cksumValid = l2 === this.cksum, this.cksum === void 0 && l2 === 256 && (this.nullBlock = true);
            }
            #t(e2, t2 = false) {
              Object.assign(this, Object.fromEntries(Object.entries(e2).filter(([n2, r2]) => !(r2 == null || n2 === "size" && (t2 || Number(r2) < 0) || n2 === "path" && t2 || n2 === "linkpath" && t2 || n2 === "global"))));
            }
            encode(e2, t2 = 0) {
              if (e2 || (e2 = this.block = new Uint8Array(512)), this.#e === "Unsupported" && (this.#e = "0"), !(e2.length >= t2 + 512)) throw new Error("need 512 bytes for header");
              let n2 = this.ctime || this.atime ? 130 : 155, r2 = _r(this.path || "", n2), s2 = r2[0], o2 = r2[1];
              this.needPax = !!r2[2], this.needPax = G(e2, t2, 100, s2) || this.needPax, this.needPax = L(e2, t2 + 100, 8, this.mode) || this.needPax, this.needPax = L(e2, t2 + 108, 8, this.uid) || this.needPax, this.needPax = L(e2, t2 + 116, 8, this.gid) || this.needPax, this.needPax = L(e2, t2 + 124, 12, this.size) || this.needPax, this.needPax = vt(e2, t2 + 136, 12, this.mtime) || this.needPax, e2[t2 + 156] = Number(this.#e.codePointAt(0)), this.needPax = G(e2, t2 + 157, 100, this.linkpath) || this.needPax, (0, A2.writeAscii)("ustar\x0000", e2, t2 + 257), this.needPax = G(e2, t2 + 265, 32, this.uname) || this.needPax, this.needPax = G(e2, t2 + 297, 32, this.gname) || this.needPax, this.needPax = L(e2, t2 + 329, 8, this.devmaj) || this.needPax, this.needPax = L(e2, t2 + 337, 8, this.devmin) || this.needPax, this.needPax = G(e2, t2 + 345, n2, o2) || this.needPax, e2[t2 + 475] !== 0 ? this.needPax = G(e2, t2 + 345, 155, o2) || this.needPax : (this.needPax = G(e2, t2 + 345, 130, o2) || this.needPax, this.needPax = vt(e2, t2 + 476, 12, this.atime) || this.needPax, this.needPax = vt(e2, t2 + 488, 12, this.ctime) || this.needPax);
              let a2 = 256;
              for (let c2 = t2; c2 < t2 + 148; c2++) a2 += e2[c2];
              for (let c2 = t2 + 156; c2 < t2 + 512; c2++) a2 += e2[c2];
              return this.cksum = a2, L(e2, t2 + 148, 8, this.cksum), this.cksumValid = true, this.needPax;
            }
            get type() {
              return this.#e === "Unsupported" ? this.#e : ie.name.get(this.#e);
            }
            get typeKey() {
              return this.#e;
            }
            set type(e2) {
              let t2 = String(ie.code.get(e2));
              if (ie.isCode(t2) || t2 === "Unsupported") this.#e = t2;
              else if (ie.isCode(e2)) this.#e = e2;
              else throw new TypeError("invalid entry type: " + e2);
            }
          };
          q.Header = St;
          var _r = (i2, e2) => {
            let n2 = i2, r2 = "", s2, o2 = i2.charAt(0) === "/" ? "/" : ".";
            if ((0, A2.utf8Length)(n2) < 100) s2 = [n2, r2, false];
            else {
              r2 = (0, _e.dirname)(n2), n2 = (0, _e.basename)(n2);
              do
                (0, A2.utf8Length)(n2) <= 100 && (0, A2.utf8Length)(r2) <= e2 ? s2 = [n2, r2, false] : (0, A2.utf8Length)(n2) > 100 && (0, A2.utf8Length)(r2) <= e2 ? s2 = [n2.slice(0, 99), r2, true] : (n2 = (0, _e.join)((0, _e.basename)(r2), n2), r2 = (0, _e.dirname)(r2));
              while (r2 !== o2 && s2 === void 0);
              s2 || (s2 = [i2.slice(0, 99), "", true]);
            }
            return s2;
          }, N = (i2, e2, t2) => {
            let n2 = e2, r2 = Math.min(e2 + t2, i2.length);
            for (; n2 < r2 && i2[n2] !== 0; ) n2++;
            return (0, A2.decodeUtf8)(i2, e2, n2);
          }, bt = (i2, e2, t2) => gr(D(i2, e2, t2)), gr = (i2) => i2 === void 0 ? void 0 : new Date(i2 * 1e3), D = (i2, e2, t2) => Number(i2[e2]) & 128 ? fi.parse(i2.subarray(e2, e2 + t2)) : vr(i2, e2, t2), br = (i2) => isNaN(i2) ? void 0 : i2, vr = (i2, e2, t2) => br(parseInt(N(i2, e2, t2).trim(), 8)), Sr = { 12: 8589934591, 8: 2097151 }, L = (i2, e2, t2, n2) => n2 === void 0 ? false : n2 > Sr[t2] || n2 < 0 ? (fi.encode(n2, i2.subarray(e2, e2 + t2)), true) : (kr(i2, e2, t2, n2), false), kr = (i2, e2, t2, n2) => (0, A2.writeAscii)(jr(n2, t2), i2, e2), jr = (i2, e2) => Or(Math.floor(i2).toString(8), e2), Or = (i2, e2) => (i2.length === e2 - 1 ? i2 : "0".repeat(e2 - i2.length - 2) + i2 + " ") + "\0", vt = (i2, e2, t2, n2) => n2 === void 0 ? false : L(i2, e2, t2, n2.getTime() / 1e3), G = (i2, e2, t2, n2) => n2 === void 0 ? false : ((0, A2.encodeUtf8Into)(n2, i2, e2, t2), n2.length !== (0, A2.utf8Length)(n2) || n2.length > t2);
        });
        var Fe = w2((Me) => {
          "use strict";
          Object.defineProperty(Me, "__esModule", { value: true });
          Me.Pax = void 0;
          var Pr = ne(), ge = $(), Er = C2(), Rr = /^\d+$/, kt = class i2 {
            atime;
            mtime;
            ctime;
            charset;
            comment;
            gid;
            uid;
            gname;
            uname;
            linkpath;
            dev;
            ino;
            nlink;
            path;
            size;
            mode;
            global;
            constructor(e2, t2 = false) {
              this.atime = e2.atime, this.charset = e2.charset, this.comment = e2.comment, this.ctime = e2.ctime, this.dev = e2.dev, this.gid = e2.gid, this.global = t2, this.gname = e2.gname, this.ino = e2.ino, this.linkpath = e2.linkpath, this.mtime = e2.mtime, this.nlink = e2.nlink, this.path = e2.path, this.size = e2.size, this.uid = e2.uid, this.uname = e2.uname;
            }
            encode() {
              let e2 = this.encodeBody();
              if (e2 === "") return new Uint8Array(0);
              let t2 = (0, ge.utf8Length)(e2), n2 = 512 * Math.ceil(1 + t2 / 512), r2 = new Uint8Array(n2);
              return new Pr.Header({ path: ("PaxHeader/" + (0, Er.basename)(this.path ?? "")).slice(0, 99), mode: this.mode || 420, uid: this.uid, gid: this.gid, size: t2, mtime: this.mtime, type: this.global ? "GlobalExtendedHeader" : "ExtendedHeader", linkpath: "", uname: this.uname || "", gname: this.gname || "", devmaj: 0, devmin: 0, atime: this.atime, ctime: this.ctime }).encode(r2), (0, ge.encodeUtf8Into)(e2, r2, 512, t2), r2;
            }
            encodeBody() {
              return this.encodeField("path") + this.encodeField("ctime") + this.encodeField("atime") + this.encodeField("dev") + this.encodeField("ino") + this.encodeField("nlink") + this.encodeField("charset") + this.encodeField("comment") + this.encodeField("gid") + this.encodeField("gname") + this.encodeField("linkpath") + this.encodeField("mtime") + this.encodeField("size") + this.encodeField("uid") + this.encodeField("uname");
            }
            encodeField(e2) {
              if (this[e2] === void 0) return "";
              let t2 = this[e2], n2 = typeof t2 == "object" ? t2.getTime() / 1e3 : t2, r2 = " " + (e2 === "dev" || e2 === "ino" || e2 === "nlink" ? "SCHILY." : "") + e2 + "=" + n2 + `
    `, s2 = (0, ge.utf8Length)(r2), o2 = Math.floor(Math.log(s2) / Math.log(10)) + 1;
              return s2 + o2 >= Math.pow(10, o2) && (o2 += 1), o2 + s2 + r2;
            }
            static parse(e2, t2, n2 = false) {
              return i2.parseBytes(new TextEncoder().encode(e2), t2, n2);
            }
            static parseBytes(e2, t2, n2 = false) {
              return new i2(xr(Ar(e2), t2), n2);
            }
          };
          Me.Pax = kt;
          var xr = (i2, e2) => e2 ? Object.assign({}, e2, i2) : i2, Ar = (i2) => {
            let e2 = /* @__PURE__ */ Object.create(null), t2 = 0;
            for (; t2 < i2.length; ) {
              let n2 = t2;
              for (; n2 < i2.length && i2[n2] >= 48 && i2[n2] <= 57; ) n2++;
              if (n2 === t2 || i2[n2] !== 32) break;
              let r2 = Number((0, ge.decodeUtf8)(i2, t2, n2)), s2 = t2 + r2;
              if (s2 <= n2 + 1 || s2 > i2.length || i2[s2 - 1] !== 10) break;
              Tr(e2, (0, ge.decodeUtf8)(i2, n2 + 1, s2 - 1)), t2 = s2;
            }
            return e2;
          }, Tr = (i2, e2) => {
            let t2 = e2.split("="), n2 = t2.shift();
            if (!n2) return i2;
            let r2 = n2.replace(/^SCHILY\.(dev|ino|nlink)/, "$1"), s2 = t2.join("="), o2 = s2.indexOf("\0"), a2 = o2 === -1 ? s2 : s2.slice(0, o2);
            switch (r2) {
              case "path":
              case "linkpath":
              case "type":
              case "charset":
              case "comment":
              case "gname":
              case "uname":
                i2[r2] = a2;
                break;
              case "ctime":
              case "atime":
              case "mtime":
                let c2 = new Date(Number(a2) * 1e3);
                isNaN(c2.getTime()) || (i2[r2] = c2);
                break;
              case "size":
              case "gid":
              case "uid":
              case "dev":
              case "ino":
              case "nlink":
              case "mode":
                if (!Rr.test(a2.trim())) break;
                let l2 = +a2;
                if (!Number.isSafeInteger(l2)) break;
                i2[r2] = l2;
                break;
            }
            return i2;
          };
        });
        var re = w2((ze) => {
          "use strict";
          Object.defineProperty(ze, "__esModule", { value: true });
          ze.gzip = void 0;
          ze.gzip = { name: "gzip", headLength: 2, detect: (i2) => i2[0] === 31 && i2[1] === 139, decompress: () => new DecompressionStream("gzip"), compress: (i2) => {
            let e2 = new CompressionStream("gzip");
            if (!i2?.portable) return e2;
            let t2 = 0;
            return { writable: e2.writable, readable: e2.readable.pipeThrough(new TransformStream({ transform: (n2, r2) => {
              t2 <= 9 && t2 + n2.length > 9 && (n2[9 - t2] = 255), t2 += n2.length, r2.enqueue(n2);
            } })) };
          } };
        });
        var B = w2((Y) => {
          "use strict";
          Object.defineProperty(Y, "__esModule", { value: true });
          Y.dealias = Y.aliases = void 0;
          Y.aliases = { C: "cwd", f: "file", z: "gzip", P: "preservePaths", U: "unlink", "strip-components": "strip", stripComponents: "strip", "keep-newer": "newer", keepNewer: "newer", "keep-newer-files": "newer", keepNewerFiles: "newer", k: "keep", "keep-existing": "keep", keepExisting: "keep", m: "noMtime", "no-mtime": "noMtime", p: "preserveOwner", L: "follow", h: "follow", onentry: "onEntry", onReadEntry: "onEntry" };
          var qr = (i2) => {
            let e2 = Object.assign(/* @__PURE__ */ Object.create(null), i2);
            for (let [t2, n2] of Object.entries(Y.aliases)) e2[t2] !== void 0 && (e2[n2] ??= e2[t2]), delete e2[t2];
            return e2.noChmod === false && (e2.chmod ??= true), delete e2.noChmod, e2;
          };
          Y.dealias = qr;
        });
        var Ce = w2((Ue) => {
          "use strict";
          Object.defineProperty(Ue, "__esModule", { value: true });
          Ue.concat = void 0;
          var Mr = (i2) => {
            if (i2.length === 1) return i2[0].slice();
            let e2 = 0;
            for (let r2 of i2) e2 += r2.length;
            let t2 = new Uint8Array(e2), n2 = 0;
            for (let r2 of i2) t2.set(r2, n2), n2 += r2.length;
            return t2;
          };
          Ue.concat = Mr;
        });
        var V = w2((se) => {
          "use strict";
          Object.defineProperty(se, "__esModule", { value: true });
          se.countOption = se.ownOptions = void 0;
          var Fr = (i2, e2) => Object.assign(/* @__PURE__ */ Object.create(null), i2, e2);
          se.ownOptions = Fr;
          var zr = (i2, e2, t2) => {
            if (e2 == null || e2 === 0) return t2;
            if (e2 === 1 / 0 || Number.isInteger(e2) && Number(e2) > 0) return e2;
            throw new TypeError(`${i2} must be a positive integer`);
          };
          se.countOption = zr;
        });
        var ve = w2((I) => {
          "use strict";
          Object.defineProperty(I, "__esModule", { value: true });
          I.ReadEntrySync = I.ReadEntry = I.EntryData = void 0;
          var mi = Ce(), Ur = /* @__PURE__ */ new Set(["File", "OldFile", "Link", "SymbolicLink", "CharacterDevice", "BlockDevice", "Directory", "FIFO", "ContiguousFile", "GNUDumpDir"]), Ne = (i2) => i2.replaceAll("\\", "/"), be = class {
            header;
            extended;
            globalExtended;
            type;
            path;
            mode;
            uid;
            gid;
            uname;
            gname;
            size;
            mtime;
            atime;
            ctime;
            linkpath;
            devmaj;
            devmin;
            dev;
            ino;
            nlink;
            absolute;
            ignore;
            invalid = false;
            unsupported = false;
            constructor(e2, t2, n2, r2 = false) {
              if (!e2.path) throw new Error("no path provided for tar.ReadEntry");
              this.header = e2, this.extended = t2, this.globalExtended = n2, this.type = e2.type, this.ignore = !Ur.has(this.type), this.path = r2 ? Ne(e2.path) : e2.path, this.mode = e2.mode && e2.mode & 4095, this.uid = e2.uid, this.gid = e2.gid, this.uname = e2.uname, this.gname = e2.gname, this.size = e2.size ?? 0, this.mtime = e2.mtime, this.atime = e2.atime, this.ctime = e2.ctime, this.linkpath = e2.linkpath ? r2 ? Ne(e2.linkpath) : e2.linkpath : void 0, this.devmaj = e2.devmaj, this.devmin = e2.devmin, n2 && this.#e(n2), t2 && (this.#e(t2), t2.path != null && (this.path = r2 ? Ne(t2.path) : t2.path), t2.linkpath != null && (this.linkpath = r2 ? Ne(t2.linkpath) : t2.linkpath));
            }
            #e(e2) {
              e2.uid != null && (this.uid = e2.uid), e2.gid != null && (this.gid = e2.gid), e2.uname != null && (this.uname = e2.uname), e2.gname != null && (this.gname = e2.gname), e2.mtime != null && (this.mtime = e2.mtime), e2.atime != null && (this.atime = e2.atime), e2.ctime != null && (this.ctime = e2.ctime), e2.dev != null && (this.dev = e2.dev), e2.ino != null && (this.ino = e2.ino), e2.nlink != null && (this.nlink = e2.nlink);
            }
          };
          I.EntryData = be;
          var pi = new TextDecoder(), yi = (i2) => {
            let e2 = "";
            for (let t2 of i2) e2 += pi.decode(t2, { stream: true });
            return e2 + pi.decode();
          }, wi = () => new TypeError("Body has already been consumed"), jt = class extends be {
            #e;
            #t = false;
            #i;
            constructor(e2, t2, n2, r2, s2) {
              super(e2, t2, n2, r2), this.#e = s2;
            }
            get bodyUsed() {
              return this.#t;
            }
            get body() {
              if (this.#i) return this.#i;
              let e2 = false;
              return this.#i = new ReadableStream({ pull: async (t2) => {
                e2 || (this.#n(), e2 = true);
                let [n2] = await this.#r(1);
                n2 ? t2.enqueue(n2) : t2.close();
              } }, { highWaterMark: 0 });
            }
            #n() {
              if (this.#t) throw wi();
              this.#t = true;
            }
            #s(e2, t2 = 1 / 0) {
              let n2 = this.#e;
              for (; n2 && e2.length < t2; ) {
                let r2 = n2.readBody(this);
                if (r2 === null) break;
                if (r2 === void 0) return false;
                e2.push(r2);
              }
              return true;
            }
            async #r(e2) {
              let t2 = [];
              for (; !this.#s(t2, e2); ) await this.#e?.fill();
              return t2;
            }
            async bytes() {
              this.#n();
              let e2 = [];
              for (; !this.#s(e2); ) await this.#e?.fill();
              return (0, mi.concat)(e2);
            }
            async arrayBuffer() {
              return (await this.bytes()).buffer;
            }
            async text() {
              return this.#n(), yi(await this.#r());
            }
            async blob() {
              return this.#n(), new Blob(await this.#r());
            }
          };
          I.ReadEntry = jt;
          var Ot = class extends be {
            #e;
            #t = false;
            #i;
            constructor(e2, t2, n2, r2, s2) {
              super(e2, t2, n2, r2), this.#e = s2;
            }
            get bodyUsed() {
              return this.#t;
            }
            get body() {
              return this.#i ??= this.#n();
            }
            *#n() {
              this.#s();
              for (let e2; e2 = this.#e?.readBody(this); ) yield e2;
            }
            #s() {
              if (this.#t) throw wi();
              this.#t = true;
            }
            #r() {
              this.#s();
              let e2 = [];
              for (let t2; t2 = this.#e?.readBody(this); ) e2.push(t2);
              return e2;
            }
            bytes() {
              return (0, mi.concat)(this.#r());
            }
            arrayBuffer() {
              return this.bytes().buffer;
            }
            text() {
              return yi(this.#r());
            }
          };
          I.ReadEntrySync = Ot;
        });
        var oe = w2((K) => {
          "use strict";
          Object.defineProperty(K, "__esModule", { value: true });
          K.warn = K.tarError = void 0;
          var _i = (i2, e2, t2, n2) => (i2.file && (n2.file = i2.file), n2.code = typeof t2 == "object" && t2.code || e2, n2.tarCode = e2, n2), Cr = (i2, e2, t2, n2 = {}) => Object.assign(typeof t2 == "object" ? t2 : new Error(`${e2}: ${t2}`), _i(i2, e2, t2, n2));
          K.tarError = Cr;
          var Nr = (i2, e2, t2, n2 = {}) => {
            let r2 = Object.hasOwn(n2, "recoverable") && n2.recoverable === false;
            if (i2.strict || r2) throw (0, K.tarError)(i2, e2, t2, n2);
            _i(i2, e2, t2, n2), typeof t2 == "object" && (n2 = Object.assign(t2, n2), t2 = t2.message), i2.onwarn?.(e2, t2, n2);
          };
          K.warn = Nr;
        });
        var Ie = w2((Be) => {
          "use strict";
          Object.defineProperty(Be, "__esModule", { value: true });
          Be.Parser = void 0;
          var Dr = $(), Lr = ne(), gi = Fe(), Br = V(), Ir = ve(), Hr = oe(), bi = 0, ae = 1, De = 2, Le = 3, vi = 4, Pt = { type: "entryEnd" }, Wr = { type: "end" }, $r = /* @__PURE__ */ new Set(["ExtendedHeader", "OldExtendedHeader", "GlobalExtendedHeader", "NextFileHasLongPath", "OldGnuLongPath", "NextFileHasLongLinkpath"]), Si = (i2) => {
            let e2 = i2.indexOf(0);
            return (0, Dr.decodeUtf8)(i2, 0, e2 === -1 ? i2.length : e2);
          }, Et = class {
            maxMetaEntrySize;
            position = 0;
            offset = 0;
            #e;
            #t;
            #i;
            #n = [];
            #s;
            #r = 0;
            #o;
            #a = 0;
            #c = bi;
            #l;
            #d;
            #y;
            #w = 0;
            #u = 0;
            #h = 0;
            #p;
            #_;
            #S;
            #g;
            #b = false;
            #m;
            #f = false;
            #v = 0;
            constructor(e2 = {}, t2) {
              e2 = this.#e = (0, Br.ownOptions)(e2), this.maxMetaEntrySize = e2.maxMetaEntrySize || 1024 * 1024, this.#t = e2.filter;
              let n2 = e2.platform === "win32";
              this.#i = t2 ?? ((r2, s2, o2) => new Ir.EntryData(r2, s2, o2, n2));
            }
            warn(e2, t2, n2) {
              (0, Hr.warn)(this.#e, e2, t2, n2);
            }
            push(e2) {
              this.#b || this.#n.push(e2);
            }
            end() {
              this.#b = true;
            }
            get bodyRemain() {
              let e2 = this.#s, t2 = this.#c;
              return t2 !== De && t2 !== Le || this.#n.length || e2 && this.#r < e2.length ? 0 : this.#h;
            }
            skipBody() {
              this.#f = this.#c === De, this.offset += this.#h, this.#u = this.#h = 0, this.#k();
            }
            next() {
              if (this.#f) return this.#f = false, Pt;
              for (; ; ) {
                let e2 = this.#s, t2 = this.#r;
                if (!e2 || t2 === e2.length) {
                  if (e2 = this.#s = this.#n.shift(), t2 = this.#r = 0, !e2) {
                    if (!this.#b || this.#v === 2) return;
                    let h2 = this.#O();
                    if (h2) return h2;
                  }
                  continue;
                }
                let n2 = e2.length - t2, r2 = this.#c;
                if (r2 <= ae) {
                  let h2;
                  if (this.#a === 0 && n2 >= 512) this.#r = t2 + 512, h2 = this.#j(e2, t2);
                  else {
                    let d2 = this.#o ??= new Uint8Array(512), f2 = Math.min(512 - this.#a, n2);
                    if (d2.set(e2.subarray(t2, t2 + f2), this.#a), this.#r = t2 + f2, this.#a += f2, this.#a < 512) continue;
                    this.#a = 0, h2 = this.#j(d2, 0);
                  }
                  if (h2) return h2;
                  continue;
                }
                let s2 = this.#h, o2 = n2 < s2 ? n2 : s2, a2 = this.#u, c2 = o2 < a2 ? o2 : a2;
                this.#r = t2 + o2, this.offset += o2, this.#h = s2 - o2, this.#u = a2 - c2;
                let l2 = o2 === s2;
                if (r2 === vi) {
                  let h2 = this.#y;
                  h2.set(e2.subarray(t2, t2 + c2), this.#w), this.#w += c2, l2 && (this.#k(), this.#P(h2));
                  continue;
                }
                if (l2 && this.#k(), r2 !== Le) {
                  if (c2 === 0) {
                    if (l2) return Pt;
                    continue;
                  }
                  return this.#f = l2, { type: "body", data: c2 === e2.length ? e2 : e2.subarray(t2, t2 + c2) };
                }
              }
            }
            #k() {
              let e2 = this.#l;
              e2 && (this.position = this.offset, this.#l = void 0), e2?.invalid || (this.#m = true), this.#c = ae;
            }
            #O() {
              let e2 = this.#c;
              if (e2 > ae) {
                let t2 = this.#l, n2 = (512 - this.#h % 512) % 512, r2 = this.#h + n2;
                this.#l = void 0, this.#y = void 0, this.#c = ae, t2?.invalid || (this.#m = true), this.#f = e2 === De, this.warn("TAR_BAD_ARCHIVE", `Truncated input (needed ${r2} more bytes, only ${n2} available)`, { entry: t2, header: this.#d });
                return;
              }
              return this.#f ? (this.#f = false, Pt) : (this.#v === 0 && (this.#v = 1, (e2 === bi || this.#m === false) && this.warn("TAR_BAD_ARCHIVE", "Unrecognized archive format")), this.#v = 2, Wr);
            }
            #j(e2, t2) {
              this.offset += 512, this.#m === void 0 && (this.#m = false);
              let n2 = this.#p, r2 = this.#_, s2 = this.#S;
              (r2 !== void 0 || s2 !== void 0) && (n2 = Object.assign(/* @__PURE__ */ Object.create(null), n2), n2.path ??= r2, n2.linkpath ??= s2);
              let o2;
              try {
                o2 = new Lr.Header(e2, t2, n2, this.#g);
              } catch (d2) {
                this.warn("TAR_ENTRY_INVALID", d2);
                return;
              }
              if (o2.nullBlock) {
                this.#b = true, this.#s = void 0, this.#n.length = 0, this.#a = 0, this.#c = ae;
                return;
              }
              if (!o2.cksumValid) {
                this.warn("TAR_ENTRY_INVALID", "checksum failure", { header: o2 });
                return;
              }
              if (!o2.path) {
                this.warn("TAR_ENTRY_INVALID", "path is required", { header: o2 });
                return;
              }
              let a2 = o2.type, c2 = a2 === "Link" || a2 === "SymbolicLink";
              if (c2 && !o2.linkpath) {
                this.warn("TAR_ENTRY_INVALID", "linkpath required", { header: o2 });
                return;
              }
              if (!c2 && o2.linkpath && a2 !== "ExtendedHeader" && a2 !== "GlobalExtendedHeader") {
                this.warn("TAR_ENTRY_INVALID", "linkpath forbidden", { header: o2 });
                return;
              }
              let l2 = o2.size ?? 0;
              if (this.#d = o2, this.#u = l2, this.#h = 512 * Math.ceil(l2 / 512), l2 || (this.#m = true), $r.has(a2)) {
                l2 > this.maxMetaEntrySize ? this.#c = Le : l2 > 0 && (this.#y = new Uint8Array(l2), this.#w = 0, this.#c = vi);
                return;
              }
              this.#p = this.#_ = this.#S = void 0;
              let h2 = this.#i(o2, n2, this.#g);
              return !h2.ignore && this.#t && !this.#t(h2.path, h2) && (h2.ignore = true), l2 ? (this.#l = h2, this.#c = h2.ignore ? Le : De) : (this.#c = ae, this.position = this.offset, this.#f = !h2.ignore), { type: "entry", entry: h2 };
            }
            #P(e2) {
              switch (this.#d.type) {
                case "ExtendedHeader":
                case "OldExtendedHeader":
                  this.#p = gi.Pax.parseBytes(e2, this.#p, false);
                  break;
                case "GlobalExtendedHeader":
                  this.#g = gi.Pax.parseBytes(e2, this.#g, true);
                  break;
                case "NextFileHasLongPath":
                case "OldGnuLongPath":
                  this.#_ = Si(e2);
                  break;
                default:
                  this.#S = Si(e2);
              }
            }
          };
          Be.Parser = Et;
        });
        var ce = w2((M) => {
          "use strict";
          Object.defineProperty(M, "__esModule", { value: true });
          M.readFileSync = M.readFile = M.SKIP = void 0;
          var Gr = V(), Yr = 16 * 1024 * 1024, ki = 64 * 1024, Vr = 1024 * 1024;
          M.SKIP = /* @__PURE__ */ Symbol.for("tar.readFile.skip");
          var He = class {
            pos = 0;
            size = 0;
            #e;
            #t = ki;
            constructor(e2) {
              this.#e = (0, Gr.countOption)("maxReadSize", e2, Yr);
            }
            next() {
              let e2 = Math.min(this.#t, this.#e, this.size - this.pos);
              return this.#t *= 2, e2;
            }
            skip(e2) {
              return e2 < Vr || this.pos + e2 > this.size ? false : (this.pos += e2, this.#t = ki, true);
            }
          };
          async function* Kr(i2, e2, t2) {
            let n2 = await i2.open(e2, "r");
            try {
              t2.size = (await n2.stat()).size;
              for (let r2; r2 = t2.next(); ) {
                let s2 = new Uint8Array(r2), { bytesRead: o2 } = await n2.read(s2, 0, r2, t2.pos);
                if (!o2) break;
                t2.pos += o2, yield o2 < r2 ? s2.subarray(0, o2) : s2;
              }
            } finally {
              await n2.close().catch(() => {
              });
            }
          }
          function* Xr(i2, e2, t2) {
            let n2 = i2.openSync(e2, "r");
            try {
              t2.size = i2.fstatSync(n2).size;
              for (let r2; r2 = t2.next(); ) {
                let s2 = new Uint8Array(r2), o2 = i2.readSync(n2, s2, 0, r2, t2.pos);
                if (!o2) break;
                t2.pos += o2, yield o2 < r2 ? s2.subarray(0, o2) : s2;
              }
            } finally {
              try {
                i2.closeSync(n2);
              } catch {
              }
            }
          }
          var Jr = (i2, e2, t2) => {
            let n2 = new He(t2);
            return Object.assign(Kr(i2, e2, n2), { [M.SKIP]: (r2) => n2.skip(r2) });
          };
          M.readFile = Jr;
          var Zr = (i2, e2, t2) => {
            let n2 = new He(t2);
            return Object.assign(Xr(i2, e2, n2), { [M.SKIP]: (r2) => n2.skip(r2) });
          };
          M.readFileSync = Zr;
        });
        var H = w2((b2) => {
          "use strict";
          Object.defineProperty(b2, "__esModule", { value: true });
          b2.entriesSync = b2.entries = b2.TarReaderSync = b2.TarReader = b2.EntryCursor = b2.findCodec = b2.headLength = void 0;
          var le = $(), Qr = ne(), ji = re(), xt = Ce(), Oi = V(), Pi = Ie(), Ei = ve(), es = ce(), ts = oe(), Rt = () => {
          }, is = (i2) => Math.max(512, ...i2.map((e2) => e2.headLength));
          b2.headLength = is;
          var ns = (i2) => {
            try {
              let e2 = new Qr.Header(i2);
              return e2.cksumValid || e2.nullBlock;
            } catch {
              return false;
            }
          }, rs = (i2, e2, t2 = "") => i2.find((n2) => n2.detect(e2)) ?? (ns(e2) ? void 0 : i2.find((n2) => n2.extensions?.some((r2) => t2.endsWith(r2))));
          b2.findCodec = rs;
          var Ri = (i2) => typeof i2.maxDecompressionRatio == "number" ? i2.maxDecompressionRatio : 1e3, We = (i2, e2) => (0, ts.tarError)(i2, "TAR_ABORT", e2, { recoverable: false }), xi = (i2, e2, t2) => We(i2, new Error(`max decompression ratio exceeded: ${e2.toFixed(2)} > ${t2}`)), ss = () => new TypeError("The body of an entry cannot be read after a later entry"), Se = class {
            parser;
            current;
            ended = false;
            constructor(e2) {
              this.parser = e2;
            }
            entry() {
              if (this.current = void 0, this.ended) return null;
              for (let e2; e2 = this.parser.next(); ) {
                if (e2.type === "end") return this.ended = true, null;
                if (e2.type === "entry" && !e2.entry.ignore) return this.current = e2.entry;
              }
            }
            body(e2) {
              if (e2 !== this.current) throw ss();
              let t2 = this.parser.next();
              if (t2) return t2.type === "body" ? t2.data : (this.current = void 0, null);
            }
          };
          b2.EntryCursor = Se;
          var Ai = (i2, e2) => {
            if (i2.current) return;
            let t2 = i2.parser.bodyRemain;
            t2 && e2[es.SKIP]?.(t2) && i2.parser.skipBody();
          }, os2 = (i2) => {
            if ((0, le.isUint8Array)(i2)) return [i2].values();
            if ((0, le.isArrayBuffer)(i2)) return [new Uint8Array(i2)].values();
            if ((0, le.isBlob)(i2) && (i2 = i2.stream()), (0, le.isReadableStream)(i2)) {
              let e2 = i2.getReader();
              return { next: () => e2.read(), return: () => e2.cancel() };
            }
            return Symbol.asyncIterator in i2 ? i2[Symbol.asyncIterator]() : i2[Symbol.iterator]();
          }, $e = class {
            parser;
            #e;
            #t;
            #i;
            #n;
            #s;
            #r;
            #o = false;
            constructor(e2, t2 = {}) {
              t2 = (0, Oi.ownOptions)(t2);
              let n2 = t2.platform === "win32";
              this.parser = new Pi.Parser(t2, (r2, s2, o2) => new Ei.ReadEntry(r2, s2, o2, n2, this)), this.#e = new Se(this.parser), this.#t = t2, this.#i = os2(e2);
            }
            poll() {
              return this.#o ? null : this.#e.entry();
            }
            readBody(e2) {
              return this.#e.body(e2);
            }
            fill() {
              return this.#r ??= this.#a();
            }
            async #a() {
              try {
                let e2 = this.#n ??= await this.#c(this.#i), t2 = this.#s;
                this.#s = void 0, e2 === this.#i && Ai(this.#e, e2);
                let n2 = t2 ? { value: t2, done: false } : await e2.next();
                n2.done ? this.parser.end() : this.parser.push(n2.value);
              } finally {
                this.#r = void 0;
              }
            }
            async #c(e2) {
              let t2 = this.#t, n2 = [...t2.codecs ?? [], ji.gzip], r2 = (0, b2.headLength)(n2), s2;
              for (; !s2 || s2.length < r2; ) {
                let y2 = await e2.next();
                if (y2.done) break;
                s2 = s2 ? (0, xt.concat)([s2, y2.value]) : y2.value;
              }
              let o2 = s2 && (0, b2.findCodec)(n2, s2, t2.file);
              if (!o2) return this.#s = s2, e2;
              let a2 = 0, c2 = 0, { readable: l2, writable: h2 } = o2.decompress(), d2 = h2.getWriter(), f2 = l2.getReader(), p2 = false;
              (async () => {
                try {
                  for (; ; ) {
                    if (await d2.ready, p2) return;
                    let y2 = s2 ? { value: s2, done: false } : await e2.next();
                    if (s2 = void 0, p2) return;
                    if (y2.done) return await d2.close();
                    a2 += y2.value.length, await d2.write(y2.value);
                  }
                } catch (y2) {
                  p2 || await d2.abort(y2).catch(Rt);
                }
              })();
              let m2 = Ri(t2);
              return { next: async () => {
                let y2 = await f2.read().catch((j) => {
                  throw We(t2, j);
                });
                if (!y2.done) {
                  c2 += y2.value.length;
                  let j = c2 / a2;
                  if (j > m2) throw xi(t2, j, m2);
                }
                return y2;
              }, return: async () => (p2 = true, await f2.cancel().catch(Rt), await d2.abort().catch(Rt), await e2.return?.(), { value: void 0, done: true }) };
            }
            async next() {
              try {
                for (; ; ) {
                  let e2 = this.poll();
                  if (e2) return { value: e2, done: false };
                  if (e2 === null) break;
                  await this.fill();
                }
              } catch (e2) {
                throw await this.return(), e2;
              }
              return this.return();
            }
            async return() {
              return this.#o || (this.#o = true, this.#e.current = void 0, await (this.#n ?? this.#i).return?.()), { value: void 0, done: true };
            }
            [Symbol.asyncIterator]() {
              return this;
            }
          };
          b2.TarReader = $e;
          var Ge = class {
            parser;
            #e;
            #t;
            #i;
            #n;
            #s;
            #r = false;
            constructor(e2, t2 = {}) {
              t2 = (0, Oi.ownOptions)(t2);
              let n2 = t2.platform === "win32";
              this.parser = new Pi.Parser(t2, (r2, s2, o2) => new Ei.ReadEntrySync(r2, s2, o2, n2, this)), this.#e = new Se(this.parser), this.#t = t2, this.#i = (0, le.isUint8Array)(e2) ? [e2].values() : (0, le.isArrayBuffer)(e2) ? [new Uint8Array(e2)].values() : e2[Symbol.iterator]();
            }
            readBody(e2) {
              for (; ; ) {
                let t2 = this.#e.body(e2);
                if (t2 !== void 0) return t2;
                this.#o();
              }
            }
            #o() {
              let e2 = this.#n ??= this.#a(this.#i), t2 = this.#s;
              this.#s = void 0, e2 === this.#i && Ai(this.#e, e2);
              let n2 = t2 ? { value: t2, done: false } : e2.next();
              n2.done ? this.parser.end() : this.parser.push(n2.value);
            }
            #a(e2) {
              let t2 = this.#t, n2 = [...t2.codecs ?? [], ji.gzip], r2 = (0, b2.headLength)(n2), s2, o2;
              for (; (!s2 || s2.length < r2) && !(o2 = e2.next()).done; ) s2 = s2 ? (0, xt.concat)([s2, o2.value]) : o2.value;
              let a2 = s2 && (0, b2.findCodec)(n2, s2, t2.file);
              if (!s2 || !a2) return this.#s = s2, e2;
              let { decompressSync: c2 } = a2;
              if (!c2) throw We(t2, new Error(`the ${a2.name} codec has no decompressSync function`));
              let l2 = [s2];
              for (; !(o2 = e2.next()).done; ) l2.push(o2.value);
              let h2 = (0, xt.concat)(l2), d2 = Ri(t2), f2;
              try {
                f2 = c2(h2, { maxOutputLength: h2.length * d2 });
              } catch (_2) {
                throw We(t2, _2);
              }
              let p2 = f2.length / h2.length;
              if (p2 > d2) throw xi(t2, p2, d2);
              return [f2].values();
            }
            next() {
              try {
                for (; ; ) {
                  let e2 = this.#r ? null : this.#e.entry();
                  if (e2) return { value: e2, done: false };
                  if (e2 === null) break;
                  this.#o();
                }
              } catch (e2) {
                throw this.return(), e2;
              }
              return this.return();
            }
            return() {
              return this.#r || (this.#r = true, this.#e.current = void 0, (this.#n ?? this.#i).return?.()), { value: void 0, done: true };
            }
            [Symbol.iterator]() {
              return this;
            }
          };
          b2.TarReaderSync = Ge;
          var as = (i2, e2) => new $e(i2, e2);
          b2.entries = as;
          var cs = (i2, e2) => new Ge(i2, e2);
          b2.entriesSync = cs;
        });
        var Ti = w2((Ye) => {
          "use strict";
          Object.defineProperty(Ye, "__esModule", { value: true });
          Ye.modeFix = void 0;
          var ls = (i2, e2, t2) => (i2 &= 4095, t2 && (i2 = (i2 | 384) & -19), e2 && (i2 & 256 && (i2 |= 64), i2 & 32 && (i2 |= 8), i2 & 4 && (i2 |= 1)), i2);
          Ye.modeFix = ls;
        });
        var Tt = w2((he) => {
          "use strict";
          Object.defineProperty(he, "__esModule", { value: true });
          he.decode = he.encode = void 0;
          var Ve = ["|", "<", ">", "?", ":"], At = Ve.map((i2) => String.fromCodePoint(61440 + Number(i2.codePointAt(0)))), hs = new Map(Ve.map((i2, e2) => [i2, At[e2]])), ds = new Map(At.map((i2, e2) => [i2, Ve[e2]])), us = (i2) => Ve.reduce((e2, t2) => e2.split(t2).join(hs.get(t2)), i2);
          he.encode = us;
          var fs2 = (i2) => At.reduce((e2, t2) => e2.split(t2).join(ds.get(t2)), i2);
          he.decode = fs2;
        });
        var Ke = w2((E) => {
          "use strict";
          Object.defineProperty(E, "__esModule", { value: true });
          E.win32Dirname = E.win32Resolve = E.win32IsAbsolute = E.win32Root = void 0;
          var qi = C2(), X = (i2) => i2 === 47 || i2 === 92, ps = (i2) => i2 >= 65 && i2 <= 90 || i2 >= 97 && i2 <= 122, ms = (i2) => {
            let e2 = i2.length, t2 = 0;
            if (X(i2.charCodeAt(0))) {
              if (t2 = 1, X(i2.charCodeAt(1))) {
                let n2 = 2, r2 = n2;
                for (; n2 < e2 && !X(i2.charCodeAt(n2)); ) n2++;
                if (n2 < e2 && n2 !== r2) {
                  for (r2 = n2; n2 < e2 && X(i2.charCodeAt(n2)); ) n2++;
                  if (n2 < e2 && n2 !== r2) {
                    for (r2 = n2; n2 < e2 && !X(i2.charCodeAt(n2)); ) n2++;
                    n2 === e2 ? t2 = n2 : n2 !== r2 && (t2 = n2 + 1);
                  }
                }
              }
            } else ps(i2.charCodeAt(0)) && i2.charCodeAt(1) === 58 && (t2 = X(i2.charCodeAt(2)) ? 3 : 2);
            return i2.slice(0, t2);
          };
          E.win32Root = ms;
          var ys = (i2) => X(i2.charCodeAt(0)) || (0, E.win32Root)(i2).length === 3;
          E.win32IsAbsolute = ys;
          var ws = (i2, e2) => {
            let t2 = (0, E.win32IsAbsolute)(e2) ? e2 : i2 + "/" + e2, n2 = (0, E.win32Root)(t2);
            return n2 + (0, qi.resolve)("/", t2.slice(n2.length)).slice(1);
          };
          E.win32Resolve = ws;
          var _s = (i2) => {
            let e2 = (0, E.win32Root)(i2), t2 = (0, qi.dirname)(i2.slice(e2.length));
            return t2 === "." ? e2 : e2 + t2;
          };
          E.win32Dirname = _s;
        });
        var qt = w2((Xe) => {
          "use strict";
          Object.defineProperty(Xe, "__esModule", { value: true });
          Xe.stripAbsolutePath = void 0;
          var gs = Ke(), bs = (i2) => {
            let e2 = "";
            for (let t2; t2 = (0, gs.win32Root)(i2); ) i2.charAt(0) === "/" && i2.slice(0, 4) !== "//?/" && (t2 = "/"), i2 = i2.slice(t2.length), e2 += t2;
            return [e2, i2];
          };
          Xe.stripAbsolutePath = bs;
        });
        var Mt = w2((Je) => {
          "use strict";
          Object.defineProperty(Je, "__esModule", { value: true });
          Je.toStream = void 0;
          var vs = (i2) => new ReadableStream({ pull: async (e2) => {
            let t2 = await i2.next();
            t2.done ? e2.close() : e2.enqueue(t2.value);
          }, cancel: async () => {
            await i2.return?.();
          } }, { highWaterMark: 0 });
          Je.toStream = vs;
        });
        var Qe = w2((Ze) => {
          "use strict";
          Object.defineProperty(Ze, "__esModule", { value: true });
          Ze.stripTrailingSlashes = void 0;
          var Ss = (i2) => {
            let e2 = i2.length - 1, t2 = -1;
            for (; e2 > -1 && i2.charAt(e2) === "/"; ) t2 = e2, e2--;
            return t2 === -1 ? i2 : i2.slice(0, t2);
          };
          Ze.stripTrailingSlashes = Ss;
        });
        var zt = w2((tt) => {
          "use strict";
          Object.defineProperty(tt, "__esModule", { value: true });
          tt.WriteEntry = void 0;
          var et = $(), ks = ne(), js = V(), Os = Fe(), Ps = Qe(), Es = new TextEncoder(), Mi = (i2, e2) => e2 ? (0, Ps.stripTrailingSlashes)(e2) + "/" + i2.replace(/^\.(\/|$)/, "") : i2, Ft = class {
            path;
            type;
            mode;
            uid;
            gid;
            uname;
            gname;
            size;
            mtime;
            atime;
            ctime;
            linkpath;
            dev;
            ino;
            nlink;
            body;
            absolute;
            header;
            constructor(e2, t2) {
              if (e2.type === "Unsupported") throw new Error("writing entry that should be ignored");
              if (typeof t2 == "string" && (t2 = Es.encode(t2)), this.path = e2.path, this.type = e2.type ?? "File", this.mode = e2.mode, this.uid = e2.uid, this.gid = e2.gid, this.uname = e2.uname, this.gname = e2.gname, e2.size === void 0 && t2 !== void 0 && !(0, et.isUint8Array)(t2) && !(0, et.isBlob)(t2)) throw new TypeError("a stream body needs the size option");
              this.size = e2.size ?? ((0, et.isUint8Array)(t2) ? t2.length : (0, et.isBlob)(t2) ? t2.size : 0), this.mtime = e2.mtime, this.atime = e2.atime, this.ctime = e2.ctime, this.linkpath = e2.linkpath, this.dev = e2.dev, this.ino = e2.ino, this.nlink = e2.nlink, this.body = t2;
            }
            encode(e2 = {}, t2 = new Uint8Array(512)) {
              e2 = (0, js.ownOptions)(e2);
              let n2 = Mi(this.path, e2.prefix), r2 = this.type === "Link" && this.linkpath !== void 0 ? Mi(this.linkpath, e2.prefix) : this.linkpath, { uid: s2, gid: o2, uname: a2, gname: c2, size: l2, mtime: h2, atime: d2, ctime: f2 } = this;
              if (this.header = new ks.Header({ path: n2, linkpath: r2, mode: this.mode, uid: s2, gid: o2, size: l2, mtime: h2, type: this.type, uname: a2, gname: c2, atime: d2, ctime: f2 }), !this.header.encode(t2) || e2.noPax) return [t2];
              let { dev: p2, ino: _2, nlink: m2 } = this;
              return [new Os.Pax({ atime: d2, ctime: f2, gid: o2, gname: c2, mtime: h2, path: n2, linkpath: r2, size: l2, uid: s2, uname: a2, dev: p2, ino: _2, nlink: m2 }).encode(), t2];
            }
          };
          tt.WriteEntry = Ft;
        });
        var rt = w2((k) => {
          "use strict";
          var Rs = k && k.__createBinding || (Object.create ? (function(i2, e2, t2, n2) {
            n2 === void 0 && (n2 = t2);
            var r2 = Object.getOwnPropertyDescriptor(e2, t2);
            (!r2 || ("get" in r2 ? !e2.__esModule : r2.writable || r2.configurable)) && (r2 = { enumerable: true, get: function() {
              return e2[t2];
            } }), Object.defineProperty(i2, n2, r2);
          }) : (function(i2, e2, t2, n2) {
            n2 === void 0 && (n2 = t2), i2[n2] = e2[t2];
          })), xs = k && k.__setModuleDefault || (Object.create ? (function(i2, e2) {
            Object.defineProperty(i2, "default", { enumerable: true, value: e2 });
          }) : function(i2, e2) {
            i2.default = e2;
          }), As = k && k.__importStar || /* @__PURE__ */ (function() {
            var i2 = function(e2) {
              return i2 = Object.getOwnPropertyNames || function(t2) {
                var n2 = [];
                for (var r2 in t2) Object.prototype.hasOwnProperty.call(t2, r2) && (n2[n2.length] = r2);
                return n2;
              }, i2(e2);
            };
            return function(e2) {
              if (e2 && e2.__esModule) return e2;
              var t2 = {};
              if (e2 != null) for (var n2 = i2(e2), r2 = 0; r2 < n2.length; r2++) n2[r2] !== "default" && Rs(t2, e2, n2[r2]);
              return xs(t2, e2), t2;
            };
          })();
          Object.defineProperty(k, "__esModule", { value: true });
          k.PackSync = k.Pack = k.PackBase = k.PackJob = void 0;
          var je = $(), Ts = Ti(), qs = As(Tt()), Ms = re(), Fs = Ce(), Nt = V(), Ut = C2(), zs = qt(), Us = Mt(), ke = oe(), Fi = Ke(), zi = zt(), Cs = 16 * 1024 * 1024, F = () => {
          }, Oe = (i2) => 512 * Math.ceil(i2 / 512), J = (i2) => i2.replaceAll("\\", "/"), Ct = (i2) => `${i2.dev}:${i2.ino}`, it = { bigint: true }, Ns = ({ dev: i2, ino: e2 }) => !Number.isSafeInteger(i2) || !Number.isSafeInteger(e2), nt = (i2, e2) => i2.dev === e2.dev && i2.ino === e2.ino, Bt = (i2, e2) => Object.assign(new Error(i2), { path: e2, syscall: "read", code: "EOF" }), Li = (i2, e2) => Bt(`encountered unexpected EOF: ${i2} has fewer than the ${e2} bytes of its stat`, i2), Bi = (i2, e2) => Bt(`did not encounter expected EOF: ${i2} has more than the ${e2} bytes of its stat`, i2), Ii = (i2) => i2.absolute ?? i2.path, Ds = (i2) => Object.assign(new Error("writing more data than expected"), { path: Ii(i2) }), Hi = (i2) => Symbol.asyncIterator in i2 || Symbol.iterator in i2, Ls = (i2) => typeof i2.encode == "function", U = class {
            path;
            absolute;
            up;
            linkpath;
            ready;
            constructor(e2, t2) {
              this.path = e2, this.absolute = t2;
            }
          };
          k.PackJob = U;
          var Pe = class {
            opt;
            fs;
            cwd;
            win32;
            maxReadSize;
            header;
            codec;
            codecOptions;
            ended = false;
            head;
            tail;
            wake;
            #e = /* @__PURE__ */ new Map();
            constructor(e2, t2) {
              e2 = this.opt = (0, Nt.ownOptions)(e2), this.fs = e2.fs, this.win32 = e2.platform === "win32", this.maxReadSize = (0, Nt.countOption)("maxReadSize", e2.maxReadSize, Cs);
              let { prefix: n2, noPax: r2 } = e2;
              this.header = { prefix: n2 && this.win32 ? J(n2) : n2, noPax: r2 };
              let s2 = e2.cwd && (this.win32 ? J(e2.cwd) : e2.cwd);
              if (s2 && !(this.win32 ? Fi.win32IsAbsolute : Ut.isAbsolute)(s2)) throw new TypeError("cwd must be an absolute path");
              this.cwd = s2 && this.#t(s2, "");
              let o2 = e2, a2 = ["gzip", "brotli", "zstd", "compress"].filter((l2) => o2[l2]);
              if (a2.length > 1) throw new TypeError(`${a2.join(", ")} are mutually exclusive`);
              let [c2] = a2;
              if (c2) {
                let l2 = e2.compress, [h2, d2] = l2 ? Array.isArray(l2) ? l2 : [l2] : [[...e2.codecs ?? [], Ms.gzip].find((f2) => f2.name === c2), o2[c2]];
                if (!h2?.[t2]) throw new TypeError(`no codec named ${h2?.name ?? c2} has a ${t2} function`);
                this.codec = h2, this.codecOptions = { ...typeof d2 == "object" ? d2 : void 0, ...h2.name === "gzip" && e2.portable ? { portable: true } : void 0 };
              }
            }
            #t(e2, t2) {
              return this.win32 ? (0, Fi.win32Resolve)(e2, t2) : (0, Ut.resolve)(e2, t2);
            }
            resolve(e2) {
              if (!this.cwd || !this.fs) throw new TypeError("a path needs the cwd and fs options");
              return this.#t(this.cwd, this.win32 ? J(e2) : e2);
            }
            add(e2) {
              if (this.ended) throw new Error("write after end");
              if (typeof e2 != "string") this.push(e2);
              else {
                let t2 = this.win32 ? J(e2) : e2;
                this.push(new U(t2 || "./", this.resolve(t2)));
              }
              return this;
            }
            end() {
              return this.ended = true, this.wake?.(), this;
            }
            push(e2) {
              let t2 = { item: e2 };
              this.tail ? this.tail.next = t2 : this.head = t2, this.tail = t2, this.wake?.();
            }
            shift() {
              this.head = this.head?.next, this.head || (this.tail = void 0);
            }
            needsExact(e2) {
              return Ns(e2) && (e2.isDirectory() ? !!this.opt.follow : e2.isFile() && e2.nlink > 1);
            }
            plan(e2, t2, n2) {
              let { filter: r2 } = this.opt;
              if (!(r2 && !r2(e2.path, t2))) {
                if (t2.isDirectory()) {
                  for (let s2 = e2.up; s2; s2 = s2.up) if (s2.key === Ct(n2)) {
                    (0, ke.warn)(this.opt, "TAR_ENTRY_ERROR", "directory is its own ancestor", { path: e2.path, absolute: e2.absolute });
                    return;
                  }
                  return "Directory";
                }
                if (t2.isSymbolicLink()) return "SymbolicLink";
                if (!t2.isFile()) {
                  (0, ke.warn)(this.opt, "TAR_ENTRY_UNSUPPORTED", "unsupported file type", { path: e2.path, absolute: e2.absolute });
                  return;
                }
                if (t2.nlink > 1) {
                  let s2 = Ct(n2), o2 = this.#e.get(s2), a2 = this.cwd;
                  if (o2 !== e2.absolute && o2?.startsWith(a2.endsWith("/") ? a2 : a2 + "/")) return e2.linkpath = (0, Ut.relative)(a2, o2), "Link";
                  this.#e.set(s2, e2.absolute);
                }
                return "File";
              }
            }
            children(e2, t2, n2) {
              let r2 = e2.path === "./" ? "" : e2.path.replace(/\/*$/, "/"), s2 = e2.absolute.endsWith("/") ? e2.absolute : e2.absolute + "/", o2 = this.opt.follow ? { key: Ct(n2), up: e2.up } : void 0;
              return [...t2].sort().map((a2) => {
                let c2 = new U(r2 + a2, s2 + a2);
                return c2.up = o2, c2;
              });
            }
            missing(e2, t2) {
              if (t2?.code !== "ENOENT") throw t2;
              (0, ke.warn)(this.opt, "TAR_ENTRY_ERROR", t2, { path: e2.path, absolute: e2.absolute });
            }
            changed(e2, t2) {
              (0, ke.warn)(this.opt, "TAR_ENTRY_ERROR", t2 === "Directory" ? "directory changed between lstat and readdir" : "file changed between lstat and open", { path: e2.path, absolute: e2.absolute });
            }
            pathEntry(e2, t2, n2, r2, s2) {
              let { processUid: o2, processUname: a2 = "" } = this.opt, c2 = new zi.WriteEntry({ path: e2.path, type: n2, mode: t2.mode, uid: t2.uid, gid: t2.gid, uname: t2.uid === o2 ? a2 : "", size: n2 === "File" ? t2.size : 0, mtime: t2.mtime, atime: t2.atime, ctime: t2.ctime, linkpath: r2 && this.win32 ? J(r2) : r2, dev: t2.dev, ino: t2.ino, nlink: t2.nlink }, s2);
              return c2.absolute = e2.absolute, this.#i(c2, true);
            }
            addedEntry(e2) {
              if (Ls(e2)) return this.#i(e2, false);
              let { filter: t2 } = this.opt;
              if (!(t2 && !t2(e2.path, e2))) return this.#i(new zi.WriteEntry(e2, e2.body), false);
            }
            #i(e2, t2) {
              let { opt: n2, win32: r2 } = this, s2 = e2.type === "Directory";
              r2 && !t2 && (e2.path = J(e2.path), e2.linkpath && (e2.linkpath = J(e2.linkpath)));
              let [o2, a2] = n2.preservePaths ? ["", e2.path] : (0, zs.stripAbsolutePath)(e2.path);
              return e2.path = a2, t2 && (r2 && (e2.path = qs.decode(e2.path)), e2.path === "" && (e2.path = "./")), o2 && (0, ke.warn)(n2, "TAR_ENTRY_INFO", `stripping ${o2} from absolute path`, { entry: e2, path: o2 + e2.path }), t2 && s2 && !e2.path.endsWith("/") && (e2.path += "/"), n2.portable && (e2.uid = e2.gid = e2.dev = e2.ino = e2.nlink = void 0, e2.uname = e2.gname = void 0, e2.atime = e2.ctime = void 0), e2.mode !== void 0 && (e2.mode = (0, Ts.modeFix)(e2.mode, s2, !!n2.portable)), e2.mtime = n2.noMtime || n2.portable && s2 ? void 0 : n2.mtime || e2.mtime, e2;
            }
          };
          k.PackBase = Pe;
          var Ui = async (i2, e2, t2, n2, r2, s2) => {
            for (; t2 < e2.length && n2 < r2; ) {
              let { bytesRead: o2 } = await i2.read(e2, t2, e2.length - t2, n2);
              if (o2 <= 0) throw Li(s2, r2);
              if (o2 > r2 - n2) throw Bi(s2, r2);
              t2 += o2, n2 += o2;
            }
            return n2;
          }, Ci = (i2, e2, t2, n2, r2, s2, o2) => {
            for (; n2 < t2.length && r2 < s2; ) {
              let a2 = i2.readSync(e2, t2, n2, t2.length - n2, r2);
              if (a2 <= 0) throw Li(o2, s2);
              if (a2 > s2 - r2) throw Bi(o2, s2);
              n2 += a2, r2 += a2;
            }
            return r2;
          };
          async function* Bs(i2) {
            if ((0, je.isUint8Array)(i2)) yield i2;
            else if ((0, je.isBlob)(i2) || (0, je.isReadableStream)(i2)) {
              let e2 = ((0, je.isBlob)(i2) ? i2.stream() : i2).getReader();
              try {
                for (; ; ) {
                  let t2 = await e2.read();
                  if (t2.done) break;
                  yield t2.value;
                }
              } finally {
                await e2.cancel().catch(F);
              }
            } else i2 && (yield* i2);
          }
          function* Is2(i2) {
            if ((0, je.isUint8Array)(i2)) yield i2;
            else if (i2 && Symbol.iterator in i2) yield* i2;
            else if (i2) throw new TypeError("PackSync needs a body that is a string, a Uint8Array, or an iterable");
          }
          var Wi = (i2, e2, t2) => {
            if (t2.length > e2) throw Ds(i2);
            return e2 - t2.length;
          }, $i = (i2, e2) => {
            if (e2) throw Bt("encountered unexpected EOF", Ii(i2));
            return new Uint8Array(Oe(i2.size) - i2.size);
          };
          async function* Ni(i2) {
            if (!i2.size) return;
            let e2 = i2.size;
            for await (let n2 of Bs(i2.body)) e2 = Wi(i2, e2, n2), yield n2;
            let t2 = $i(i2, e2);
            t2.length && (yield t2);
          }
          function* Di(i2) {
            if (!i2.size) return;
            let e2 = i2.size;
            for (let n2 of Is2(i2.body)) e2 = Wi(i2, e2, n2), yield n2;
            let t2 = $i(i2, e2);
            t2.length && (yield t2);
          }
          var Dt = class extends Pe {
            jobs;
            #e;
            #t = Promise.resolve();
            constructor(e2 = {}) {
              super(e2, "compress"), this.jobs = (0, Nt.countOption)("jobs", this.opt.jobs, 4);
            }
            async next() {
              let e2 = await (this.#e ??= this.#i()).next();
              return e2.done ? { value: void 0, done: true } : e2;
            }
            async return() {
              return this.end(), await this.#e?.return(), { value: void 0, done: true };
            }
            [Symbol.asyncIterator]() {
              return this;
            }
            #i() {
              let { codec: e2 } = this;
              return e2?.compress ? this.#n(e2.compress(this.codecOptions)) : this.#s();
            }
            async *#n(e2) {
              let t2 = this.#s(), n2, r2 = (0, Us.toStream)({ next: () => t2.next().catch((s2) => {
                throw n2 = { er: s2 }, r2.cancel().catch(F), s2;
              }) }).pipeThrough(e2).getReader();
              try {
                for (; ; ) {
                  let s2 = await r2.read();
                  if (n2) throw n2.er;
                  if (s2.done) break;
                  yield s2.value;
                }
              } finally {
                await r2.cancel().catch(F), await t2.return();
              }
            }
            async *#s() {
              try {
                for (; ; ) {
                  let e2 = this.head;
                  if (!e2) {
                    if (this.ended) break;
                    await new Promise((n2) => this.wake = n2);
                    continue;
                  }
                  this.#r();
                  let { item: t2 } = e2;
                  if (t2 instanceof U) yield* this.#c(t2);
                  else if (!Hi(t2)) yield* this.#d(t2);
                  else for await (let n2 of t2) yield* this.#d(n2);
                  this.shift();
                }
                yield new Uint8Array(1024);
              } finally {
                for (let e2 = this.head; e2; e2 = e2.next) {
                  let { item: t2 } = e2;
                  if (!(t2 instanceof U) || !t2.ready) break;
                  await (await t2.ready.catch(F))?.handle?.close().catch(F);
                }
              }
            }
            #r() {
              let e2 = this.fs, t2 = this.head;
              for (let n2 = 0; t2 && n2 < this.jobs; n2++, t2 = t2.next) {
                let r2 = t2.item;
                if (!(r2 instanceof U)) break;
                if (r2.ready) continue;
                let s2 = this.#o(e2, r2.absolute);
                s2.catch(F);
                let o2 = this.#t.then(() => s2).then(([a2, c2]) => {
                  let l2 = this.plan(r2, a2, c2);
                  return l2 && { load: this.#a(e2, r2, a2, c2, l2) };
                }, (a2) => this.missing(r2, a2));
                this.#t = o2.catch(F), r2.ready = o2.then((a2) => a2?.load), r2.ready.catch(F);
              }
            }
            async #o(e2, t2) {
              let { follow: n2 } = this.opt, r2 = await (n2 ? e2.stat(t2) : e2.lstat(t2)), s2 = this.needsExact(r2) ? await (n2 ? e2.stat(t2, it) : e2.lstat(t2, it)) : r2;
              return [r2, s2];
            }
            async #a(e2, t2, n2, r2, s2) {
              let { absolute: o2 } = t2, { follow: a2, noDirRecurse: c2 } = this.opt, l2 = { stat: n2, id: r2, type: s2 };
              if (s2 === "SymbolicLink") l2.linkpath = await e2.readlink(o2);
              else if (s2 === "Directory" && !c2) l2.names = await e2.readdir(o2), l2.changed = !a2 && !nt(n2, await e2.lstat(o2));
              else if (s2 === "File" && n2.size) {
                let h2 = await e2.open(o2, "r");
                try {
                  let { size: d2 } = n2, f2 = Oe(d2);
                  !a2 && !nt(n2, await h2.stat()) ? l2.changed = true : f2 > this.maxReadSize ? l2.handle = h2 : (l2.buf = new Uint8Array(512 + f2), await Ui(h2, l2.buf, 512, 0, d2, o2));
                } catch (d2) {
                  throw await h2.close().catch(F), d2;
                }
                l2.handle || await h2.close();
              }
              return l2;
            }
            async *#c(e2) {
              let t2 = await e2.ready;
              if (!t2) return;
              let { stat: n2, id: r2, type: s2, names: o2, buf: a2, handle: c2 } = t2;
              if (t2.changed) return this.changed(e2, s2);
              let l2 = false;
              try {
                let h2 = a2 ? a2.subarray(512, 512 + n2.size) : c2 && this.#l(c2, n2.size, e2.absolute), d2 = this.pathEntry(e2, n2, s2, t2.linkpath ?? e2.linkpath, h2);
                if (o2) for (let p2 of this.children(e2, o2, r2)) this.push(p2);
                await this.opt.onWriteEntry?.(d2);
                let f2 = a2 && d2.body === h2 && d2.size === n2.size;
                yield* d2.encode(this.header, f2 ? a2 : void 0), f2 || (yield* Ni(d2)), l2 = true;
              } finally {
                if (c2) {
                  t2.handle = void 0;
                  let h2 = c2.close();
                  await (l2 ? h2 : h2.catch(F));
                }
              }
            }
            async *#l(e2, t2, n2) {
              let r2 = Oe(t2);
              for (let s2 = 0; s2 < t2; ) {
                let o2 = new Uint8Array(Math.min(r2 - s2, this.maxReadSize)), a2 = await Ui(e2, o2, 0, s2, t2, n2);
                yield o2.subarray(0, a2 - s2), s2 = a2;
              }
            }
            async *#d(e2) {
              let t2 = this.addedEntry(e2);
              t2 && (await this.opt.onWriteEntry?.(t2), yield* t2.encode(this.header), yield* Ni(t2));
            }
          };
          k.Pack = Dt;
          var Lt = class extends Pe {
            #e;
            constructor(e2 = {}) {
              super(e2, "compressSync");
            }
            next() {
              let e2 = (this.#e ??= this.#t()).next();
              return e2.done ? { value: void 0, done: true } : e2;
            }
            return() {
              return this.ended = true, this.#e?.return(), { value: void 0, done: true };
            }
            [Symbol.iterator]() {
              return this;
            }
            *#t() {
              let { codec: e2 } = this;
              if (!e2?.compressSync) return yield* this.#i();
              yield e2.compressSync((0, Fs.concat)([...this.#i()]), this.codecOptions);
            }
            *#i() {
              for (let e2; e2 = this.head; this.shift()) {
                let { item: t2 } = e2;
                if (t2 instanceof U) {
                  let n2 = [t2];
                  for (let r2 of n2) yield* this.#n(r2, n2);
                } else if (!Hi(t2)) yield* this.#r(t2);
                else for (let n2 of t2) yield* this.#r(n2);
              }
              this.ended = true, yield new Uint8Array(1024);
            }
            *#n(e2, t2) {
              let n2 = this.fs, { absolute: r2 } = e2, { follow: s2, noDirRecurse: o2 } = this.opt, a2;
              try {
                a2 = s2 ? n2.statSync(r2) : n2.lstatSync(r2);
              } catch (m2) {
                return this.missing(e2, m2);
              }
              let c2 = this.needsExact(a2) ? s2 ? n2.statSync(r2, it) : n2.lstatSync(r2, it) : a2, l2 = this.plan(e2, a2, c2);
              if (!l2) return;
              let { linkpath: h2 } = e2, d2, f2, p2, _2 = false;
              try {
                if (l2 === "SymbolicLink") h2 = n2.readlinkSync(r2);
                else if (l2 === "Directory" && !o2) {
                  let j = n2.readdirSync(r2);
                  if (!s2 && !nt(a2, n2.lstatSync(r2))) return this.changed(e2, l2);
                  t2.push(...this.children(e2, j, c2));
                } else if (l2 === "File" && a2.size) {
                  let { size: j } = a2, ci = Oe(j);
                  if (p2 = n2.openSync(r2, "r"), !s2 && !nt(a2, n2.fstatSync(p2))) return this.changed(e2, l2);
                  ci > this.maxReadSize ? f2 = this.#s(n2, p2, j, r2) : (d2 = new Uint8Array(512 + ci), Ci(n2, p2, d2, 512, 0, j, r2), f2 = d2.subarray(512, 512 + j));
                }
                let m2 = this.pathEntry(e2, a2, l2, h2, f2);
                this.opt.onWriteEntry?.(m2);
                let y2 = d2 && m2.body === f2 && m2.size === a2.size;
                yield* m2.encode(this.header, y2 ? d2 : void 0), y2 || (yield* Di(m2)), _2 = true;
              } finally {
                if (p2 !== void 0 && !_2) try {
                  n2.closeSync(p2);
                } catch {
                }
              }
              p2 !== void 0 && n2.closeSync(p2);
            }
            *#s(e2, t2, n2, r2) {
              let s2 = Oe(n2);
              for (let o2 = 0; o2 < n2; ) {
                let a2 = new Uint8Array(Math.min(s2 - o2, this.maxReadSize)), c2 = Ci(e2, t2, a2, 0, o2, n2, r2);
                yield a2.subarray(0, c2 - o2), o2 = c2;
              }
            }
            *#r(e2) {
              let t2 = this.addedEntry(e2);
              t2 && (this.opt.onWriteEntry?.(t2), yield* t2.encode(this.header), yield* Di(t2));
            }
          };
          k.PackSync = Lt;
        });
        var Re = w2((S) => {
          "use strict";
          Object.defineProperty(S, "__esModule", { value: true });
          S.packFilesSync = S.packFiles = S.writeChunksSync = S.writeChunks = void 0;
          S.create = Xs;
          S.createSync = Js;
          var Yi = B(), Vi = H(), Ki = rt(), Xi = ce(), Hs = Mt(), Ee = 64 * 1024, st = 4 * Ee, Ws = () => {
          }, It = (i2, e2) => {
            if (!e2?.length) throw new TypeError("no paths specified to add to archive");
            if (i2.file && !i2.fs) throw new TypeError("the file option needs the fs option");
          }, Gi = async (i2, e2, t2, n2) => {
            for (let r2 = 0; r2 < t2; ) r2 += (await i2.write(e2, r2, t2 - r2, n2 + r2)).bytesWritten;
          }, $s = async (i2, e2, t2) => {
            let n2 = new Uint8Array(st), r2 = 0, s2 = async () => {
              await Gi(i2, n2, r2, t2), t2 += r2, r2 = 0;
            };
            for await (let o2 of e2) (r2 + o2.length > st || o2.length >= Ee) && await s2(), o2.length >= Ee ? (await Gi(i2, o2, o2.length, t2), t2 += o2.length) : (n2.set(o2, r2), r2 += o2.length);
            await s2();
          };
          S.writeChunks = $s;
          var Gs = (i2, e2, t2, n2) => {
            let r2 = new Uint8Array(st), s2 = 0, o2 = (a2, c2) => {
              for (let l2 = 0; l2 < c2; ) l2 += i2.writeSync(e2, a2, l2, c2 - l2, n2 + l2);
              n2 += c2;
            };
            for (let a2 of t2) (s2 + a2.length > st || a2.length >= Ee) && (o2(r2, s2), s2 = 0), a2.length >= Ee ? o2(a2, a2.length) : (r2.set(a2, s2), s2 += a2.length);
            o2(r2, s2);
          };
          S.writeChunksSync = Gs;
          var Ys = async (i2, e2, t2, n2) => {
            let r2 = await e2.open(t2, "w", n2), s2 = false;
            try {
              await (0, S.writeChunks)(r2, i2, 0), s2 = true;
            } finally {
              let o2 = r2.close();
              await (s2 ? o2 : o2.catch(Ws));
            }
          }, Vs = (i2, e2) => {
            let { fs: t2, strict: n2, onwarn: r2, codecs: s2, platform: o2 } = i2, a2 = new Ki.Pack(i2);
            for (let c2 of e2) if (typeof c2 != "string" || c2.charAt(0) !== "@") a2.add(c2);
            else {
              let l2 = a2.resolve(c2.slice(1));
              a2.add(new Vi.TarReader((0, Xi.readFile)(t2, l2, i2.maxReadSize), { strict: n2, onwarn: r2, codecs: s2, platform: o2, file: l2 }));
            }
            return a2.end();
          };
          S.packFiles = Vs;
          var Ks = (i2, e2) => {
            let { strict: t2, onwarn: n2, codecs: r2, platform: s2 } = i2, o2 = new Ki.PackSync(i2);
            for (let a2 of e2) if (typeof a2 != "string" || a2.charAt(0) !== "@") o2.add(a2);
            else {
              let c2 = o2.resolve(a2.slice(1));
              o2.add(new Vi.TarReaderSync((0, Xi.readFileSync)(i2.fs, c2, i2.maxReadSize), { strict: t2, onwarn: n2, codecs: r2, platform: s2, file: c2 }));
            }
            return o2;
          };
          S.packFilesSync = Ks;
          function Xs(i2, e2) {
            let t2 = (0, Yi.dealias)(i2);
            if (!t2.file) return It(t2, e2), (0, Hs.toStream)((0, S.packFiles)(t2, e2));
            try {
              return It(t2, e2), Ys((0, S.packFiles)(t2, e2), t2.fs, t2.file, t2.mode || 438);
            } catch (n2) {
              return Promise.reject(n2);
            }
          }
          function Js(i2, e2) {
            let t2 = (0, Yi.dealias)(i2);
            It(t2, e2);
            let { file: n2 } = t2, r2 = t2.fs, s2 = (0, S.packFilesSync)(t2, e2);
            if (!n2) return s2;
            let o2 = r2.openSync(n2, "w", t2.mode || 438);
            try {
              (0, S.writeChunksSync)(r2, o2, s2, 0);
            } catch (a2) {
              try {
                r2.closeSync(o2);
              } catch {
              }
              throw a2;
            }
            r2.closeSync(o2);
          }
        });
        var xe = w2((z) => {
          "use strict";
          Object.defineProperty(z, "__esModule", { value: true });
          z.listSync = z.list = z.filesFilter = void 0;
          var Ji = Qe(), Zi = B(), Qi = H(), en = ce(), Zs = oe(), Qs = (i2, e2) => {
            let t2 = new Set(i2.map((o2) => (0, Ji.stripTrailingSlashes)(o2))), n2 = new Set(t2), r2 = 0;
            for (let o2 of t2) r2 = Math.max(r2, o2.length);
            let s2 = (o2) => {
              let a2 = (0, Ji.stripTrailingSlashes)(o2), c2 = a2.charAt(0) === "/" ? "/" : ".", l2 = false;
              for (let h2 = a2.length; h2 > 0; h2 = a2.lastIndexOf("/", h2 - 1)) {
                if (h2 > r2) continue;
                let d2 = a2.slice(0, h2);
                if (!(d2 === c2 || !t2.has(d2)) && (l2 = true, n2.delete(d2), !n2.size)) break;
              }
              return l2;
            };
            return [(o2, a2) => {
              let c2 = !e2 || e2(o2, a2);
              return s2(o2) && c2;
            }, (o2) => {
              for (let a2 of n2) (0, Zs.warn)(o2, "TAR_ENTRY_ERROR", `${a2}: not found in archive`, { path: a2 });
            }];
          };
          z.filesFilter = Qs;
          var tn = () => new TypeError("list needs input, or file and fs"), eo = async (i2, e2) => {
            let t2 = (0, Zi.dealias)(i2), { input: n2, file: r2, fs: s2, onEntry: o2 } = t2, a2 = n2 ?? (r2 && s2 ? (0, en.readFile)(s2, r2, t2.maxReadSize) : void 0);
            if (!a2) throw tn();
            let [c2, l2] = e2?.length ? (0, z.filesFilter)(e2, t2.filter) : [];
            c2 && (t2.filter = c2);
            let h2 = new Qi.TarReader(a2, t2);
            try {
              for (; ; ) {
                let d2 = h2.poll();
                if (d2 === null) break;
                d2 === void 0 ? await h2.fill() : o2 && await o2(d2);
              }
            } finally {
              await h2.return();
            }
            l2?.(t2);
          };
          z.list = eo;
          var to = (i2, e2) => {
            let t2 = (0, Zi.dealias)(i2), { input: n2, file: r2, fs: s2, onEntry: o2 } = t2, a2 = n2 ?? (r2 && s2 ? (0, en.readFileSync)(s2, r2, t2.maxReadSize) : void 0);
            if (!a2) throw tn();
            let [c2, l2] = e2?.length ? (0, z.filesFilter)(e2, t2.filter) : [];
            c2 && (t2.filter = c2);
            let h2 = new Qi.TarReaderSync(a2, t2);
            for (let d2 of h2) o2?.(d2);
            l2?.(t2);
          };
          z.listSync = to;
        });
        var Ht = w2((ue) => {
          "use strict";
          Object.defineProperty(ue, "__esModule", { value: true });
          ue.delete = ue.deleteSync = void 0;
          var io = re(), nn = Re(), rn = B(), de = H(), no = xe(), sn = ce(), ro = () => {
          }, on = (i2, e2) => {
            if (!i2.file) throw new TypeError("file is required");
            if (!i2.fs) throw new TypeError("the file option needs the fs option");
            let t2 = [...i2.codecs ?? [], io.gzip];
            if (e2?.length) return [t2, ...(0, no.filesFilter)(e2, i2.filter)];
            if (i2.filter) return [t2, i2.filter];
            throw new TypeError("no paths specified to delete");
          }, an = (i2) => `${i2}.${Math.random().toString(36).slice(2)}.tmp`, so = async (i2, e2) => {
            let t2 = (0, rn.dealias)(i2), [n2, r2, s2] = on(t2, e2), { fs: o2, file: a2, filter: c2, maxReadSize: l2, ...h2 } = t2, d2 = new Uint8Array((0, de.headLength)(n2)), f2 = 0, p2 = await o2.open(a2, "r");
            try {
              for (let y2 = 1; y2 > 0 && f2 < d2.length; f2 += y2) y2 = (await p2.read(d2, f2, d2.length - f2, f2)).bytesRead;
            } finally {
              await p2.close();
            }
            let { mode: _2 } = await o2.stat(a2), m2 = an(a2);
            try {
              await (0, nn.create)({ ...h2, fs: o2, file: m2, mode: _2 & 511, compress: (0, de.findCodec)(n2, d2.subarray(0, f2), a2), preservePaths: true, filter: (y2, j) => !r2(y2, j) }, [new de.TarReader((0, sn.readFile)(o2, a2, l2), { ...h2, file: a2 })]), s2?.(t2), await o2.rename(m2, a2);
            } catch (y2) {
              throw await o2.unlink(m2).catch(ro), y2;
            }
          };
          ue.delete = so;
          var oo = (i2, e2) => {
            let t2 = (0, rn.dealias)(i2), [n2, r2, s2] = on(t2, e2), { fs: o2, file: a2, filter: c2, maxReadSize: l2, ...h2 } = t2, d2 = new Uint8Array((0, de.headLength)(n2)), f2 = 0, p2 = o2.openSync(a2, "r");
            try {
              for (let y2 = 1; y2 > 0 && f2 < d2.length; f2 += y2) y2 = o2.readSync(p2, d2, f2, d2.length - f2, f2);
            } finally {
              o2.closeSync(p2);
            }
            let { mode: _2 } = o2.statSync(a2), m2 = an(a2);
            try {
              (0, nn.createSync)({ ...h2, fs: o2, file: m2, mode: _2 & 511, compress: (0, de.findCodec)(n2, d2.subarray(0, f2), a2), preservePaths: true, filter: (y2, j) => !r2(y2, j) }, [new de.TarReaderSync((0, sn.readFileSync)(o2, a2, l2), { ...h2, file: a2 })]), s2?.(t2), o2.renameSync(m2, a2);
            } catch (y2) {
              try {
                o2.unlinkSync(m2);
              } catch {
              }
              throw y2;
            }
          };
          ue.deleteSync = oo;
        });
        var $t = w2((ot) => {
          "use strict";
          Object.defineProperty(ot, "__esModule", { value: true });
          ot.CwdError = void 0;
          var Wt = class extends Error {
            path;
            code;
            syscall = "chdir";
            constructor(e2, t2) {
              super(`${t2}: Cannot cd into '${e2}'`), this.path = e2, this.code = t2;
            }
            get name() {
              return "CwdError";
            }
          };
          ot.CwdError = Wt;
        });
        var ct = w2((at) => {
          "use strict";
          Object.defineProperty(at, "__esModule", { value: true });
          at.SymlinkError = void 0;
          var Gt = class extends Error {
            path;
            symlink;
            syscall = "symlink";
            code = "TAR_SYMLINK_ERROR";
            constructor(e2, t2) {
              super("TAR_SYMLINK_ERROR: Cannot extract through symbolic link"), this.symlink = e2, this.path = t2;
            }
            get name() {
              return "SymlinkError";
            }
          };
          at.SymlinkError = Gt;
        });
        var pn = w2((fe) => {
          "use strict";
          Object.defineProperty(fe, "__esModule", { value: true });
          fe.mkdirSync = fe.mkdir = void 0;
          var cn = $t(), ln = ct(), hn = C2(), dn = (i2) => {
            let e2 = i2.mode | 448, { uid: t2, gid: n2 } = i2;
            return { mode: e2, needChmod: (e2 & i2.umask) !== 0, owner: typeof t2 == "number" && typeof n2 == "number" && (t2 !== i2.processUid || n2 !== i2.processGid) ? { uid: t2, gid: n2 } : void 0 };
          }, un = (i2, e2) => i2.endsWith("/") ? i2 + e2 : i2 + "/" + e2, fn = (i2, e2) => {
            let t2 = i2.replaceAll("\\", "/"), n2 = [e2];
            for (let r2 = e2.length; !t2.endsWith(e2.slice(0, r2)); ) {
              if (r2 = e2.lastIndexOf("/", r2 - 1), r2 <= 0) return [e2];
              n2.push(e2.slice(0, r2));
            }
            return n2;
          }, ao = async (i2, e2, t2) => {
            let { mode: n2, needChmod: r2, owner: s2 } = dn(t2), { cwd: o2 } = t2, a2 = [];
            if (e2 === o2) {
              let c2 = "ENOTDIR";
              if (!await i2.stat(e2).then((h2) => h2.isDirectory(), (h2) => (c2 = h2?.code || c2, false))) throw new cn.CwdError(e2, c2);
            } else if (t2.preserve) {
              let c2 = await i2.mkdir(e2, { mode: n2, recursive: true });
              c2 && (a2 = fn(c2, e2));
            } else {
              let c2 = (0, hn.relative)(o2, e2).split("/"), l2 = o2;
              for (let h2 = 0; h2 < c2.length; h2++) {
                l2 = un(l2, c2[h2]);
                try {
                  await i2.mkdir(l2, { mode: n2 });
                } catch (d2) {
                  let f2 = await i2.lstat(l2);
                  if (f2.isDirectory()) continue;
                  if (!t2.unlink) throw f2.isSymbolicLink() ? new ln.SymlinkError(l2, l2 + "/" + c2.slice(h2 + 1).join("/")) : d2;
                  await i2.unlink(l2), await i2.mkdir(l2, { mode: n2 });
                }
                a2.push(l2);
              }
            }
            if (s2) for (let c2 of a2) await i2.lchown(c2, s2.uid, s2.gid);
            r2 && await i2.chmod(e2, n2);
          };
          fe.mkdir = ao;
          var co = (i2, e2, t2) => {
            let { mode: n2, needChmod: r2, owner: s2 } = dn(t2), { cwd: o2 } = t2, a2 = [];
            if (e2 === o2) {
              let c2 = "ENOTDIR", l2 = false;
              try {
                l2 = i2.statSync(e2).isDirectory();
              } catch (h2) {
                c2 = h2?.code || c2;
              }
              if (!l2) throw new cn.CwdError(e2, c2);
            } else if (t2.preserve) {
              let c2 = i2.mkdirSync(e2, { mode: n2, recursive: true });
              c2 && (a2 = fn(c2, e2));
            } else {
              let c2 = (0, hn.relative)(o2, e2).split("/"), l2 = o2;
              for (let h2 = 0; h2 < c2.length; h2++) {
                l2 = un(l2, c2[h2]);
                try {
                  i2.mkdirSync(l2, { mode: n2 });
                } catch (d2) {
                  let f2 = i2.lstatSync(l2);
                  if (f2.isDirectory()) continue;
                  if (!t2.unlink) throw f2.isSymbolicLink() ? new ln.SymlinkError(l2, l2 + "/" + c2.slice(h2 + 1).join("/")) : d2;
                  i2.unlinkSync(l2), i2.mkdirSync(l2, { mode: n2 });
                }
                a2.push(l2);
              }
            }
            if (s2) for (let c2 of a2) i2.lchownSync(c2, s2.uid, s2.gid);
            r2 && i2.chmodSync(e2, n2);
          };
          fe.mkdirSync = co;
        });
        var yn = w2((lt) => {
          "use strict";
          Object.defineProperty(lt, "__esModule", { value: true });
          lt.normalizeUnicode = void 0;
          var Yt = /* @__PURE__ */ Object.create(null), mn = 1e4, pe = /* @__PURE__ */ new Set(), lo = 256, ho = (i2) => {
            if (i2.length > lo) return i2.normalize("NFD").toLocaleLowerCase("en").toLocaleUpperCase("en");
            pe.has(i2) ? pe.delete(i2) : Yt[i2] = i2.normalize("NFD").toLocaleLowerCase("en").toLocaleUpperCase("en"), pe.add(i2);
            let e2 = Yt[i2], t2 = pe.size - mn;
            if (t2 > mn / 10) {
              for (let n2 of pe) if (pe.delete(n2), delete Yt[n2], --t2 <= 0) break;
            }
            return e2;
          };
          lt.normalizeUnicode = ho;
        });
        var Kt = w2((ht) => {
          "use strict";
          Object.defineProperty(ht, "__esModule", { value: true });
          ht.PathReservations = void 0;
          var uo = yn(), fo = Qe(), po = C2(), Vt = class {
            #e = { queue: [], name: "" };
            #t = /* @__PURE__ */ new Map();
            #i = /* @__PURE__ */ new Set();
            #n;
            constructor(e2 = false) {
              this.#n = e2;
            }
            reserve(e2, t2) {
              return new Promise((n2, r2) => {
                let s2 = () => {
                  t2().then(() => {
                    this.#o(s2), n2();
                  }, (o2) => {
                    this.#o(s2), r2(o2);
                  });
                };
                this.#s(e2, s2);
              });
            }
            #s(e2, t2) {
              let n2 = this.#e, r2 = /* @__PURE__ */ new Set(), s2 = /* @__PURE__ */ new Set();
              for (let o2 of this.#n ? ["win32 parallelization disabled"] : e2) {
                let a2 = this.#n ? o2 : (0, fo.stripTrailingSlashes)((0, po.join)((0, uo.normalizeUnicode)(o2))), c2 = n2;
                for (let l2 of a2.split("/")) {
                  c2 !== n2 && s2.add(c2);
                  let h2 = c2.kids ??= /* @__PURE__ */ new Map(), d2 = h2.get(l2);
                  d2 || h2.set(l2, d2 = { queue: [], name: l2, up: c2 }), c2 = d2;
                }
                r2.add(c2);
              }
              for (let o2 of r2) s2.delete(o2);
              this.#t.set(t2, { dirs: s2, paths: r2 });
              for (let o2 of r2) o2.queue.push(t2);
              for (let { queue: o2 } of s2) {
                let a2 = o2[o2.length - 1];
                a2 instanceof Set ? a2.add(t2) : o2.push(/* @__PURE__ */ new Set([t2]));
              }
              this.#r(t2);
            }
            #r(e2) {
              let { paths: t2, dirs: n2 } = this.#t.get(e2);
              for (let r2 of t2) if (r2.queue[0] !== e2) return;
              for (let { queue: r2 } of n2) {
                let s2 = r2[0];
                if (!(s2 instanceof Set) || !s2.has(e2)) return;
              }
              this.#i.add(e2), e2();
            }
            #o(e2) {
              let { paths: t2, dirs: n2 } = this.#t.get(e2), r2 = /* @__PURE__ */ new Set();
              for (let { queue: s2 } of t2) {
                s2.shift();
                let o2 = s2[0];
                if (typeof o2 == "function") r2.add(o2);
                else if (o2) for (let a2 of o2) r2.add(a2);
              }
              for (let { queue: s2 } of n2) {
                let o2 = s2[0];
                o2.size > 1 ? o2.delete(e2) : (s2.shift(), s2.length && r2.add(s2[0]));
              }
              for (let s2 of t2) for (; s2.up && !s2.queue.length && !s2.kids?.size; ) s2.up.kids?.delete(s2.name), s2 = s2.up;
              this.#i.delete(e2), this.#t.delete(e2);
              for (let s2 of r2) this.#r(s2);
            }
          };
          ht.PathReservations = Vt;
        });
        var wn = w2((dt) => {
          "use strict";
          Object.defineProperty(dt, "__esModule", { value: true });
          dt.writeFlags = void 0;
          var mo = 512 * 1024, yo = (i2, e2) => {
            if (!i2) return () => "w";
            let { O_CREAT: t2, O_TRUNC: n2, O_WRONLY: r2, O_NOFOLLOW: s2, UV_FS_O_FILEMAP: o2 } = i2, a2 = n2 | t2 | r2;
            if (!e2) {
              let l2 = typeof s2 == "number" ? s2 | a2 : "w";
              return () => l2;
            }
            if (!o2) return () => "w";
            let c2 = o2 | a2;
            return (l2) => l2 < mo ? c2 : "w";
          };
          dt.writeFlags = yo;
        });
        var ft = w2((R) => {
          "use strict";
          var wo = R && R.__createBinding || (Object.create ? (function(i2, e2, t2, n2) {
            n2 === void 0 && (n2 = t2);
            var r2 = Object.getOwnPropertyDescriptor(e2, t2);
            (!r2 || ("get" in r2 ? !e2.__esModule : r2.writable || r2.configurable)) && (r2 = { enumerable: true, get: function() {
              return e2[t2];
            } }), Object.defineProperty(i2, n2, r2);
          }) : (function(i2, e2, t2, n2) {
            n2 === void 0 && (n2 = t2), i2[n2] = e2[t2];
          })), _o = R && R.__setModuleDefault || (Object.create ? (function(i2, e2) {
            Object.defineProperty(i2, "default", { enumerable: true, value: e2 });
          }) : function(i2, e2) {
            i2.default = e2;
          }), go = R && R.__importStar || /* @__PURE__ */ (function() {
            var i2 = function(e2) {
              return i2 = Object.getOwnPropertyNames || function(t2) {
                var n2 = [];
                for (var r2 in t2) Object.prototype.hasOwnProperty.call(t2, r2) && (n2[n2.length] = r2);
                return n2;
              }, i2(e2);
            };
            return function(e2) {
              if (e2 && e2.__esModule) return e2;
              var t2 = {};
              if (e2 != null) for (var n2 = i2(e2), r2 = 0; r2 < n2.length; r2++) n2[r2] !== "default" && wo(t2, e2, n2[r2]);
              return _o(t2, e2), t2;
            };
          })();
          Object.defineProperty(R, "__esModule", { value: true });
          R.UnpackSync = R.Unpack = R.UnpackBase = void 0;
          var bo = ct(), _n = go(Tt()), vn = H(), Sn = pn(), Xt = V(), vo = Kt(), T = C2(), So = qt(), ko = oe(), Ae = Ke(), jo = wn(), Oo = 1024, gn = 32768, Po = 16, ut = /* @__PURE__ */ new Set(["File", "OldFile", "ContiguousFile"]), me = /* @__PURE__ */ new Set(["Directory", "GNUDumpDir"]), Eo = /* @__PURE__ */ new Set(["Link", "SymbolicLink"]), bn = (i2, e2, t2) => i2 !== void 0 ? i2 : e2 !== void 0 && e2 === e2 >>> 0 ? e2 : t2, Te = class {
            opt;
            cwd;
            win32;
            strip;
            maxDepth;
            preservePaths;
            unlink;
            keep;
            newer;
            noMtime;
            chmod;
            uid;
            gid;
            preserveOwner;
            forceChown;
            processUid;
            processGid;
            processUmask;
            umask;
            dmode;
            fmode;
            writeFlag;
            resolve;
            dirname;
            fatal;
            constructor(e2) {
              let t2 = this.opt = (0, Xt.ownOptions)(e2), n2 = this.win32 = t2.platform === "win32";
              if (this.resolve = n2 ? Ae.win32Resolve : T.resolve, this.dirname = n2 ? Ae.win32Dirname : T.dirname, typeof t2.cwd != "string") throw new TypeError("cwd is required");
              let r2 = n2 ? t2.cwd.replaceAll("\\", "/") : t2.cwd;
              if (!(n2 ? Ae.win32IsAbsolute : T.isAbsolute)(r2)) throw new TypeError("cwd must be an absolute path");
              if (this.cwd = this.resolve(r2, ""), typeof t2.uid == "number" || typeof t2.gid == "number") {
                if (typeof t2.uid != "number" || typeof t2.gid != "number") throw new TypeError("cannot set owner without number uid and gid");
                if (t2.uid !== t2.uid >>> 0 || t2.gid !== t2.gid >>> 0) throw new TypeError("uid and gid must be unsigned 32-bit integers");
                if (t2.preserveOwner) throw new TypeError("cannot preserve owner in archive and also set owner explicitly");
                this.uid = t2.uid, this.gid = t2.gid;
              }
              this.processUid = t2.processUid, this.processGid = t2.processGid, this.preserveOwner = t2.preserveOwner === void 0 && typeof t2.uid != "number" ? t2.processUid === 0 : !!t2.preserveOwner, this.forceChown = t2.forceChown === true, this.maxDepth = typeof t2.maxDepth == "number" ? t2.maxDepth : Oo, this.strip = Number(t2.strip) || 0, this.preservePaths = !!t2.preservePaths, this.unlink = !!t2.unlink, this.keep = !!t2.keep, this.newer = !!t2.newer, this.noMtime = !!t2.noMtime, this.chmod = !!t2.chmod, this.processUmask = this.chmod ? typeof t2.processUmask == "number" ? t2.processUmask : 18 : 0, this.umask = typeof t2.umask == "number" ? t2.umask : this.processUmask, this.dmode = t2.dmode || 511 & ~this.umask, this.fmode = t2.fmode || 438 & ~this.umask, this.writeFlag = (0, jo.writeFlags)(t2.fs.constants, n2);
            }
            warn(e2, t2, n2 = {}) {
              (e2 === "TAR_BAD_ARCHIVE" || e2 === "TAR_ABORT") && (n2.recoverable = false), n2.cwd = this.cwd, (0, ko.warn)(this.opt, e2, t2, n2);
            }
            readerOptions() {
              return (0, Xt.ownOptions)(this.opt, { strict: false, onwarn: (e2, t2, n2) => n2 instanceof Error ? this.warn(e2, n2) : this.warn(e2, t2, n2) });
            }
            entryError(e2, t2) {
              if (this.fatal?.error === e2 || e2?.name === "CwdError") throw e2;
              this.warn("TAR_ENTRY_ERROR", e2, { entry: t2 });
            }
            fail(e2) {
              return this.fatal ??= { error: e2 }, e2;
            }
            #e(e2, t2) {
              let n2 = e2[t2];
              if (!n2 || this.preservePaths) return true;
              let [r2, s2] = (0, So.stripAbsolutePath)(n2), o2 = s2.replaceAll("\\", "/").split("/");
              if (o2.includes("..")) {
                if (t2 === "path" || e2.type === "Link") return this.warn("TAR_ENTRY_ERROR", `${t2} contains '..'`, { entry: e2, [t2]: n2 }), false;
                let a2 = o2.findIndex((h2) => h2 !== ".." && h2 !== "." && h2 !== "");
                if (a2 !== -1 && o2.includes("..", a2)) return this.warn("TAR_ENTRY_ERROR", `${t2} contains '..' after a path portion`, { entry: e2, [t2]: n2 }), false;
                let c2 = (0, T.dirname)((0, T.normalize)(e2.path)), l2 = (0, T.normalize)((0, T.join)(c2, o2.join("/")));
                if (l2.startsWith("../") || l2 === "..") return this.warn("TAR_ENTRY_ERROR", `${t2} escapes extraction directory`, { entry: e2, [t2]: n2 }), false;
              }
              return r2 && (e2[t2] = s2, this.warn("TAR_ENTRY_INFO", `stripping ${r2} from absolute ${t2}`, { entry: e2, [t2]: n2 })), true;
            }
            check(e2) {
              let t2 = e2.path, n2 = t2.split("/");
              if (this.strip) {
                if (n2.length < this.strip) return false;
                if (e2.type === "Link") {
                  let c2 = String(e2.linkpath).split("/");
                  if (c2.length < this.strip) return false;
                  e2.linkpath = c2.slice(this.strip).join("/");
                }
                if (n2.splice(0, this.strip), n2.every((c2) => c2 === "")) return false;
                e2.path = n2.join("/");
              }
              let { maxDepth: r2 } = this;
              if (isFinite(r2) && n2.length > r2) return this.warn("TAR_ENTRY_ERROR", "path excessively deep", { entry: e2, path: t2, depth: n2.length, maxDepth: r2 }), false;
              let { linkpath: s2 } = e2;
              if (s2 && isFinite(r2) && s2.split("/").length > r2) return this.warn("TAR_ENTRY_ERROR", "linkpath excessively deep", { entry: e2, path: t2, linkpath: s2, maxDepth: r2 }), false;
              for (let c2 of ["path", "linkpath"]) {
                let { length: l2 } = e2[c2] ?? "";
                if (l2 > gn) return this.warn("TAR_ENTRY_ERROR", `${c2} excessively long`, { entry: e2, path: t2, length: l2, maxLength: gn }), false;
              }
              if (!this.#e(e2, "path") || !this.#e(e2, "linkpath")) return false;
              let { cwd: o2 } = this, a2 = this.resolve(o2, e2.path);
              if (!this.preservePaths && a2 !== o2 && !a2.startsWith(o2.endsWith("/") ? o2 : o2 + "/")) return this.warn("TAR_ENTRY_ERROR", "path escaped extraction target", { entry: e2, path: e2.path, resolvedPath: a2, cwd: o2 }), false;
              if (a2 === o2 && !me.has(e2.type)) return false;
              if (this.win32) {
                let c2 = (0, Ae.win32Root)(a2);
                a2 = c2 + _n.encode(a2.slice(c2.length));
                let l2 = (0, Ae.win32Root)(e2.path);
                e2.path = l2 + _n.encode(e2.path.slice(l2.length));
              }
              if (e2.absolute = a2, typeof e2.mode == "number" && (e2.mode &= 511), me.has(e2.type)) e2.mode && (e2.mode |= 448);
              else if (!ut.has(e2.type) && !Eo.has(e2.type)) return e2.unsupported = true, this.warn("TAR_ENTRY_UNSUPPORTED", `unsupported entry type: ${e2.type}`, { entry: e2 }), false;
              return true;
            }
            reservedPaths(e2) {
              let { path: t2, linkpath: n2 } = e2;
              return n2 ? [t2, e2.type === "SymbolicLink" && !(0, T.isAbsolute)(n2) ? (0, T.join)((0, T.dirname)(t2), n2) : n2] : [t2];
            }
            mkdirOptions(e2) {
              return { uid: this.uid, gid: this.gid, processUid: this.processUid, processGid: this.processGid, umask: this.processUmask, preserve: this.preservePaths, unlink: this.unlink, cwd: this.cwd, mode: e2 };
            }
            owner(e2) {
              let t2 = this.forceChown || this.preserveOwner && (typeof e2.uid == "number" && e2.uid !== this.processUid || typeof e2.gid == "number" && e2.gid !== this.processGid) || typeof this.uid == "number" && this.uid !== this.processUid || typeof this.gid == "number" && this.gid !== this.processGid, n2 = bn(this.uid, e2.uid, this.processUid), r2 = bn(this.gid, e2.gid, this.processGid);
              return t2 && typeof n2 == "number" && typeof r2 == "number" ? { uid: n2, gid: r2 } : void 0;
            }
            times(e2) {
              return e2.mtime && !this.noMtime ? { atime: e2.atime || /* @__PURE__ */ new Date(), mtime: e2.mtime } : void 0;
            }
            skip(e2, t2) {
              return this.keep || this.newer && t2.mtime > (e2.mtime ?? t2.mtime);
            }
            isReusable(e2, t2) {
              return e2.type === "File" && !this.unlink && t2.isFile() && t2.nlink <= 1 && !this.win32;
            }
            linkParts(e2, t2) {
              let n2 = String(e2.linkpath);
              return e2.type === "Link" ? n2.split("/") : (0, T.relative)(this.cwd, this.resolve(this.dirname(t2), n2)).split("/");
            }
            parentParts(e2) {
              let { cwd: t2 } = this, n2 = e2 === t2 ? t2 : this.dirname(e2);
              return n2 === t2 ? [] : (0, T.relative)(t2, n2).split("/");
            }
            symlinkError(e2, t2) {
              return new bo.SymlinkError(e2, this.resolve(this.cwd, t2.join("/")));
            }
          };
          R.UnpackBase = Te;
          var kn = (i2) => i2 + ".DELETE." + Array.from(crypto.getRandomValues(new Uint8Array(16)), (e2) => e2.toString(16).padStart(2, "0")).join(""), Jt = class extends Te {
            #e;
            #t;
            #i;
            #n = 0;
            #s;
            #r = false;
            #o;
            constructor(e2) {
              super(e2), this.#e = this.opt.fs, this.#t = new vo.PathReservations(this.win32), this.#i = (0, Xt.countOption)("jobs", this.opt.jobs, Po);
            }
            async extract(e2) {
              let t2 = new vn.TarReader(e2, this.readerOptions()), { onEntry: n2 } = this.opt, r2 = !!this.opt.transform;
              try {
                for (; !this.fatal; ) {
                  let s2 = t2.poll();
                  if (s2 === null) break;
                  if (s2 === void 0) {
                    await t2.fill();
                    continue;
                  }
                  if (n2 && await n2(s2), s2.bodyUsed || !this.check(s2)) continue;
                  let o2 = [], a2 = !r2;
                  if (a2 && ut.has(s2.type)) for (; ; ) {
                    let l2 = t2.readBody(s2);
                    if (l2 === null) break;
                    if (l2 === void 0) {
                      a2 = false;
                      break;
                    }
                    o2.push(l2);
                  }
                  let c2 = this.#c(s2, o2, a2 ? void 0 : t2);
                  for (a2 || await c2; this.#n >= this.#i; ) await this.#a();
                }
              } catch (s2) {
                this.fail(s2);
              }
              for (await t2.return().catch((s2) => this.fail(s2)); this.#n > 0; ) await this.#a();
              if (this.fatal) {
                let { error: s2 } = this.fatal;
                throw s2 && typeof s2 == "object" && "tarCode" in s2 && Object.assign(s2, { cwd: this.cwd }), s2;
              }
            }
            #a() {
              return new Promise((e2) => {
                this.#s = e2;
              });
            }
            #c(e2, t2, n2) {
              return this.#n++, this.#t.reserve(this.reservedPaths(e2), async () => {
                try {
                  this.fatal || await this.#y(e2, t2, n2);
                } catch (r2) {
                  try {
                    this.entryError(r2, e2);
                  } catch (s2) {
                    this.fail(s2);
                  }
                }
                this.#n--, this.#s?.();
              });
            }
            #l(e2, t2) {
              return (0, Sn.mkdir)(this.#e, e2, this.mkdirOptions(t2));
            }
            #d() {
              return this.#o ??= this.#l(this.cwd, this.dmode).then(() => {
                this.#r = true;
              }, (e2) => {
                throw this.#o = void 0, e2;
              });
            }
            async #y(e2, t2, n2) {
              let r2 = this.#e, s2 = e2.absolute, { cwd: o2 } = this;
              if (this.#r || await this.#d(), s2 !== o2) {
                let c2 = this.dirname(s2);
                c2 !== o2 && await this.#l(c2, this.dmode);
              }
              let a2 = await r2.lstat(s2).catch(() => {
              });
              if (!(a2 && this.skip(e2, a2))) {
                if (a2 && !this.isReusable(e2, a2) && (a2.isDirectory() && me.has(e2.type) ? this.chmod && e2.mode && (a2.mode & 4095) !== e2.mode && await r2.chmod(s2, e2.mode) : s2 !== o2 && (a2.isDirectory() ? await r2.rmdir(s2) : await this.#w(s2))), ut.has(e2.type)) return this.#p(e2, s2, t2, n2);
                if (me.has(e2.type)) await this.#h(e2, s2);
                else {
                  await this.#u(this.linkParts(e2, s2));
                  let c2 = String(e2.linkpath);
                  e2.type === "Link" ? await r2.link(this.resolve(o2, c2), s2) : await r2.symlink(c2, s2);
                }
                await this.#u(this.parentParts(s2));
              }
            }
            async #w(e2) {
              let t2 = this.#e;
              if (!this.win32) return t2.unlink(e2);
              let n2 = kn(e2);
              await t2.rename(e2, n2), await t2.unlink(n2);
            }
            async #u(e2) {
              if (this.preservePaths) return;
              let t2 = this.cwd;
              for (let n2 of e2) {
                t2 = this.resolve(t2, n2);
                let r2 = await this.#e.lstat(t2).catch(() => {
                });
                if (!r2) return;
                if (r2.isSymbolicLink()) throw this.symlinkError(t2, e2);
              }
            }
            async #h(e2, t2) {
              let n2 = this.#e;
              await this.#l(t2, e2.mode ?? this.dmode);
              let r2 = this.times(e2);
              r2 && await n2.lutimes(t2, r2.atime, r2.mtime).catch(() => {
              });
              let s2 = this.owner(e2);
              s2 && await n2.lchown(t2, s2.uid, s2.gid).catch(() => {
              });
            }
            async #p(e2, t2, n2, r2) {
              let s2 = this.#e, o2 = await s2.open(t2, this.writeFlag(e2.size), e2.mode ?? this.fmode);
              try {
                if (await this.#u(this.parentParts(t2)), r2) await this.#_(e2, n2, r2, o2);
                else for (let l2 of n2) await o2.write(l2);
                let a2 = this.times(e2);
                if (a2) {
                  let { atime: l2, mtime: h2 } = a2;
                  await o2.utimes(l2, h2).catch(async (d2) => {
                    await s2.utimes(t2, l2, h2).catch(() => {
                      throw d2;
                    });
                  });
                }
                let c2 = this.owner(e2);
                if (c2) {
                  let { uid: l2, gid: h2 } = c2;
                  await o2.chown(l2, h2).catch(async (d2) => {
                    await s2.chown(t2, l2, h2).catch(() => {
                      throw d2;
                    });
                  });
                }
              } catch (a2) {
                throw await o2.close().catch(() => {
                }), a2;
              }
              await o2.close();
            }
            async #_(e2, t2, n2, r2) {
              let s2 = 0, o2 = async () => {
                if (s2 < t2.length) return t2[s2++];
                try {
                  for (; ; ) {
                    let p2 = n2.readBody(e2);
                    if (p2 !== void 0) return p2;
                    await n2.fill();
                  }
                } catch (p2) {
                  throw this.fail(p2);
                }
              }, a2 = this.opt.transform?.(e2);
              if (!a2) {
                let p2, _2;
                try {
                  for (let m2; (m2 = await o2()) && (await p2, !_2); ) p2 = r2.write(m2).then(() => {
                  }, (y2) => {
                    _2 = { error: y2 };
                  });
                } finally {
                  await p2;
                }
                if (_2) throw _2.error;
                return;
              }
              let c2 = a2.writable.getWriter(), l2 = a2.readable.getReader(), h2, d2 = async (p2) => {
                h2 ??= { error: p2 }, await l2.cancel(p2).catch(() => {
                }), await c2.abort(p2).catch(() => {
                });
              }, f2 = (async () => {
                try {
                  for (let p2; p2 = await o2(); ) await c2.write(p2);
                  await c2.close();
                } catch (p2) {
                  await d2(p2);
                }
              })();
              try {
                for (; ; ) {
                  let { done: p2, value: _2 } = await l2.read();
                  if (p2) break;
                  await r2.write(_2);
                }
              } catch (p2) {
                await d2(p2);
              }
              if (await f2, h2) throw h2.error;
            }
          };
          R.Unpack = Jt;
          var Zt = class extends Te {
            #e;
            #t = false;
            constructor(e2) {
              super(e2), this.#e = this.opt.fs;
            }
            extract(e2) {
              let t2 = new vn.TarReaderSync(e2, this.readerOptions()), { onEntry: n2 } = this.opt;
              try {
                for (let r2 of t2) if (n2?.(r2), !r2.bodyUsed && this.check(r2)) try {
                  this.#n(r2, t2);
                } catch (s2) {
                  this.entryError(s2, r2);
                }
              } catch (r2) {
                throw r2 && typeof r2 == "object" && "tarCode" in r2 && Object.assign(r2, { cwd: this.cwd }), r2;
              }
            }
            #i(e2, t2) {
              (0, Sn.mkdirSync)(this.#e, e2, this.mkdirOptions(t2));
            }
            #n(e2, t2) {
              let n2 = this.#e, r2 = e2.absolute, { cwd: s2 } = this;
              if (this.#t || (this.#i(s2, this.dmode), this.#t = true), r2 !== s2) {
                let a2 = this.dirname(r2);
                a2 !== s2 && this.#i(a2, this.dmode);
              }
              let o2;
              try {
                o2 = n2.lstatSync(r2);
              } catch {
              }
              if (!(o2 && this.skip(e2, o2))) {
                if (o2 && !this.isReusable(e2, o2) && (o2.isDirectory() && me.has(e2.type) ? this.chmod && e2.mode && (o2.mode & 4095) !== e2.mode && n2.chmodSync(r2, e2.mode) : r2 !== s2 && (o2.isDirectory() ? n2.rmdirSync(r2) : this.#s(r2))), ut.has(e2.type)) return this.#a(e2, r2, t2);
                if (me.has(e2.type)) this.#o(e2, r2);
                else {
                  this.#r(this.linkParts(e2, r2));
                  let a2 = String(e2.linkpath);
                  e2.type === "Link" ? n2.linkSync(this.resolve(s2, a2), r2) : n2.symlinkSync(a2, r2);
                }
                this.#r(this.parentParts(r2));
              }
            }
            #s(e2) {
              let t2 = this.#e;
              if (!this.win32) return t2.unlinkSync(e2);
              let n2 = kn(e2);
              t2.renameSync(e2, n2), t2.unlinkSync(n2);
            }
            #r(e2) {
              if (this.preservePaths) return;
              let t2 = this.cwd;
              for (let n2 of e2) {
                t2 = this.resolve(t2, n2);
                let r2;
                try {
                  r2 = this.#e.lstatSync(t2);
                } catch {
                  return;
                }
                if (r2.isSymbolicLink()) throw this.symlinkError(t2, e2);
              }
            }
            #o(e2, t2) {
              let n2 = this.#e;
              this.#i(t2, e2.mode ?? this.dmode);
              let r2 = this.times(e2);
              if (r2) try {
                n2.lutimesSync(t2, r2.atime, r2.mtime);
              } catch {
              }
              let s2 = this.owner(e2);
              if (s2) try {
                n2.lchownSync(t2, s2.uid, s2.gid);
              } catch {
              }
            }
            #a(e2, t2, n2) {
              let r2 = this.#e, s2 = r2.openSync(t2, this.writeFlag(e2.size), e2.mode ?? this.fmode);
              try {
                this.#r(this.parentParts(t2));
                let o2 = this.opt.transform?.(e2);
                for (; ; ) {
                  let l2;
                  try {
                    l2 = n2.readBody(e2);
                  } catch (h2) {
                    throw this.fail(h2);
                  }
                  if (!l2) break;
                  r2.writeSync(s2, o2 ? o2(l2) : l2);
                }
                let a2 = this.times(e2);
                if (a2) {
                  let { atime: l2, mtime: h2 } = a2;
                  try {
                    r2.futimesSync(s2, l2, h2);
                  } catch (d2) {
                    try {
                      r2.utimesSync(t2, l2, h2);
                    } catch {
                      throw d2;
                    }
                  }
                }
                let c2 = this.owner(e2);
                if (c2) {
                  let { uid: l2, gid: h2 } = c2;
                  try {
                    r2.fchownSync(s2, l2, h2);
                  } catch (d2) {
                    try {
                      r2.chownSync(t2, l2, h2);
                    } catch {
                      throw d2;
                    }
                  }
                }
              } catch (o2) {
                try {
                  r2.closeSync(s2);
                } catch {
                }
                throw o2;
              }
              r2.closeSync(s2);
            }
          };
          R.UnpackSync = Zt;
        });
        var Qt = w2((ye) => {
          "use strict";
          Object.defineProperty(ye, "__esModule", { value: true });
          ye.extractSync = ye.extract = void 0;
          var jn = B(), On = xe(), Pn = ce(), En = ft(), Rn = () => new TypeError("extract needs input or file"), Ro = async (i2, e2) => {
            let t2 = (0, jn.dealias)(i2), n2 = t2.input ?? (t2.file ? (0, Pn.readFile)(t2.fs, t2.file, t2.maxReadSize) : void 0);
            if (!n2) throw Rn();
            let [r2, s2] = e2?.length ? (0, On.filesFilter)(e2, t2.filter) : [];
            r2 && (t2.filter = r2), await new En.Unpack(t2).extract(n2), s2?.(t2);
          };
          ye.extract = Ro;
          var xo = (i2, e2) => {
            let t2 = (0, jn.dealias)(i2), n2 = t2.input ?? (t2.file ? (0, Pn.readFileSync)(t2.fs, t2.file, t2.maxReadSize) : void 0);
            if (!n2) throw Rn();
            let [r2, s2] = e2?.length ? (0, On.filesFilter)(e2, t2.filter) : [];
            r2 && (t2.filter = r2), new En.UnpackSync(t2).extract(n2), s2?.(t2);
          };
          ye.extractSync = xo;
        });
        var yt = w2((W) => {
          "use strict";
          Object.defineProperty(W, "__esModule", { value: true });
          W.replaceSync = W.replace = W.AppendScan = void 0;
          var Ao = re(), Tn = B(), pt = Re(), To = Ie(), xn = 64 * 1024, An = {}, qo = () => {
          }, mt = () => new Error("cannot append to compressed archives"), qn = (i2, e2) => {
            let { file: t2 } = i2;
            if (!t2) throw new TypeError("file is required");
            if (i2.gzip || i2.brotli || i2.zstd || t2.endsWith(".br") || t2.endsWith(".tbr")) throw new TypeError(mt().message);
            if (!e2?.length) throw new TypeError("no paths specified to add/replace");
          }, qe = class {
            buf = new Uint8Array(xn);
            pos = 0;
            #e;
            #t;
            #i;
            #n;
            constructor(e2, t2 = [], n2) {
              this.#e = e2, this.#i = [...t2, Ao.gzip], this.#n = n2, this.#t = new To.Parser({ filter: () => false, onwarn: (r2, s2, o2) => {
                throw o2 instanceof Error ? o2 : An;
              } });
            }
            get position() {
              return this.#t.position;
            }
            get want() {
              return Math.min(xn, this.#e - this.pos);
            }
            push(e2) {
              let t2 = this.buf.subarray(0, e2);
              if (this.pos === 0 && this.#i.some((s2) => s2.detect(t2))) throw mt();
              let n2 = this.#t;
              this.pos += e2;
              let r2 = 0;
              n2.push(t2);
              try {
                for (let s2; s2 = n2.next(); ) {
                  if (s2.type !== "entry") return false;
                  let { entry: o2 } = s2;
                  if (r2 = n2.offset + 512 * Math.ceil(o2.size / 512), r2 > this.#e) return false;
                  o2.mtime && this.#n?.set(o2.path, o2.mtime);
                }
                this.pos < r2 && (n2.skipBody(), this.pos = r2);
              } catch (s2) {
                if (s2 !== An) throw s2;
                return false;
              }
              return e2 > 0 && this.pos < this.#e;
            }
          };
          W.AppendScan = qe;
          var Mo = async (i2, e2) => {
            let t2 = (0, Tn.dealias)(i2);
            qn(t2, e2);
            let { fs: n2, file: r2 } = t2, s2 = (0, pt.packFiles)(t2, e2);
            if (s2.codec) throw new TypeError(mt().message);
            let o2 = await n2.open(r2, "r+").catch((c2) => {
              if (c2?.code !== "ENOENT") throw c2;
              return n2.open(r2, "w+", t2.mode || 438);
            }), a2 = false;
            try {
              let { size: c2 } = await o2.stat(), l2 = new qe(c2, t2.codecs, t2.mtimeCache);
              for (; l2.push((await o2.read(l2.buf, 0, l2.want, l2.pos)).bytesRead); ) ;
              await (0, pt.writeChunks)(o2, s2, l2.position), a2 = true;
            } finally {
              let c2 = o2.close();
              await (a2 ? c2 : c2.catch(qo));
            }
          };
          W.replace = Mo;
          var Fo = (i2, e2) => {
            let t2 = (0, Tn.dealias)(i2);
            qn(t2, e2);
            let { fs: n2, file: r2 } = t2, s2 = (0, pt.packFilesSync)(t2, e2);
            if (s2.codec) throw new TypeError(mt().message);
            let o2;
            try {
              o2 = n2.openSync(r2, "r+");
            } catch (a2) {
              if (a2?.code !== "ENOENT") throw a2;
              o2 = n2.openSync(r2, "w+", t2.mode || 438);
            }
            try {
              let { size: a2 } = n2.fstatSync(o2), c2 = new qe(a2, t2.codecs, t2.mtimeCache);
              for (; c2.push(n2.readSync(o2, c2.buf, 0, c2.want, c2.pos)); ) ;
              (0, pt.writeChunksSync)(n2, o2, s2, c2.position);
            } catch (a2) {
              try {
                n2.closeSync(o2);
              } catch {
              }
              throw a2;
            }
            n2.closeSync(o2);
          };
          W.replaceSync = Fo;
        });
        var ei = w2((we) => {
          "use strict";
          Object.defineProperty(we, "__esModule", { value: true });
          we.updateSync = we.update = void 0;
          var Mn = yt(), zo = (i2, e2) => {
            let t2 = e2.getTime(), n2 = i2.getTime();
            return (t2 % 1e3 === 0 ? n2 - n2 % 1e3 : n2) > t2;
          }, Fn = (i2) => {
            let { filter: e2 } = i2, t2 = i2.mtimeCache ?? /* @__PURE__ */ new Map();
            return { ...i2, mtimeCache: t2, filter: (n2, r2) => {
              if (e2 && !e2(n2, r2)) return false;
              if ("isDirectory" in r2 && r2.isDirectory()) return true;
              let s2 = t2.get(n2);
              return !s2 || !r2.mtime || zo(r2.mtime, s2);
            } };
          }, Uo = (i2, e2) => (0, Mn.replace)(Fn(i2), e2);
          we.update = Uo;
          var Co = (i2, e2) => (0, Mn.replaceSync)(Fn(i2), e2);
          we.updateSync = Co;
        });
        var ri = w2((u2) => {
          "use strict";
          var No = u2 && u2.__createBinding || (Object.create ? (function(i2, e2, t2, n2) {
            n2 === void 0 && (n2 = t2);
            var r2 = Object.getOwnPropertyDescriptor(e2, t2);
            (!r2 || ("get" in r2 ? !e2.__esModule : r2.writable || r2.configurable)) && (r2 = { enumerable: true, get: function() {
              return e2[t2];
            } }), Object.defineProperty(i2, n2, r2);
          }) : (function(i2, e2, t2, n2) {
            n2 === void 0 && (n2 = t2), i2[n2] = e2[t2];
          })), Do = u2 && u2.__setModuleDefault || (Object.create ? (function(i2, e2) {
            Object.defineProperty(i2, "default", { enumerable: true, value: e2 });
          }) : function(i2, e2) {
            i2.default = e2;
          }), Lo = u2 && u2.__importStar || /* @__PURE__ */ (function() {
            var i2 = function(e2) {
              return i2 = Object.getOwnPropertyNames || function(t2) {
                var n2 = [];
                for (var r2 in t2) Object.prototype.hasOwnProperty.call(t2, r2) && (n2[n2.length] = r2);
                return n2;
              }, i2(e2);
            };
            return function(e2) {
              if (e2 && e2.__esModule) return e2;
              var t2 = {};
              if (e2 != null) for (var n2 = i2(e2), r2 = 0; r2 < n2.length; r2++) n2[r2] !== "default" && No(t2, e2, n2[r2]);
              return Do(t2, e2), t2;
            };
          })();
          Object.defineProperty(u2, "__esModule", { value: true });
          u2.WriteEntry = u2.u = u2.update = u2.UnpackBase = u2.Unpack = u2.SymlinkError = u2.r = u2.replace = u2.AppendScan = u2.ReadEntry = u2.EntryData = u2.PathReservations = u2.Parser = u2.PackJob = u2.PackBase = u2.Pack = u2.t = u2.list = u2.x = u2.extract = u2.TarReader = u2.EntryCursor = u2.entries = u2.aliases = u2.CwdError = u2.delete = u2.c = u2.create = u2.gzip = u2.types = u2.Pax = u2.Header = void 0;
          var Bo = ne();
          Object.defineProperty(u2, "Header", { enumerable: true, get: function() {
            return Bo.Header;
          } });
          var Io = Fe();
          Object.defineProperty(u2, "Pax", { enumerable: true, get: function() {
            return Io.Pax;
          } });
          u2.types = Lo(gt());
          var Ho = re();
          Object.defineProperty(u2, "gzip", { enumerable: true, get: function() {
            return Ho.gzip;
          } });
          var zn = Re();
          Object.defineProperty(u2, "create", { enumerable: true, get: function() {
            return zn.create;
          } });
          Object.defineProperty(u2, "c", { enumerable: true, get: function() {
            return zn.create;
          } });
          var Wo = Ht();
          Object.defineProperty(u2, "delete", { enumerable: true, get: function() {
            return Wo.delete;
          } });
          var $o = $t();
          Object.defineProperty(u2, "CwdError", { enumerable: true, get: function() {
            return $o.CwdError;
          } });
          var Go = B();
          Object.defineProperty(u2, "aliases", { enumerable: true, get: function() {
            return Go.aliases;
          } });
          var ti = H();
          Object.defineProperty(u2, "entries", { enumerable: true, get: function() {
            return ti.entries;
          } });
          Object.defineProperty(u2, "EntryCursor", { enumerable: true, get: function() {
            return ti.EntryCursor;
          } });
          Object.defineProperty(u2, "TarReader", { enumerable: true, get: function() {
            return ti.TarReader;
          } });
          var Un = Qt();
          Object.defineProperty(u2, "extract", { enumerable: true, get: function() {
            return Un.extract;
          } });
          Object.defineProperty(u2, "x", { enumerable: true, get: function() {
            return Un.extract;
          } });
          var Cn = xe();
          Object.defineProperty(u2, "list", { enumerable: true, get: function() {
            return Cn.list;
          } });
          Object.defineProperty(u2, "t", { enumerable: true, get: function() {
            return Cn.list;
          } });
          var ii = rt();
          Object.defineProperty(u2, "Pack", { enumerable: true, get: function() {
            return ii.Pack;
          } });
          Object.defineProperty(u2, "PackBase", { enumerable: true, get: function() {
            return ii.PackBase;
          } });
          Object.defineProperty(u2, "PackJob", { enumerable: true, get: function() {
            return ii.PackJob;
          } });
          var Yo = Ie();
          Object.defineProperty(u2, "Parser", { enumerable: true, get: function() {
            return Yo.Parser;
          } });
          var Vo = Kt();
          Object.defineProperty(u2, "PathReservations", { enumerable: true, get: function() {
            return Vo.PathReservations;
          } });
          var Nn = ve();
          Object.defineProperty(u2, "EntryData", { enumerable: true, get: function() {
            return Nn.EntryData;
          } });
          Object.defineProperty(u2, "ReadEntry", { enumerable: true, get: function() {
            return Nn.ReadEntry;
          } });
          var ni = yt();
          Object.defineProperty(u2, "AppendScan", { enumerable: true, get: function() {
            return ni.AppendScan;
          } });
          Object.defineProperty(u2, "replace", { enumerable: true, get: function() {
            return ni.replace;
          } });
          Object.defineProperty(u2, "r", { enumerable: true, get: function() {
            return ni.replace;
          } });
          var Ko = ct();
          Object.defineProperty(u2, "SymlinkError", { enumerable: true, get: function() {
            return Ko.SymlinkError;
          } });
          var Dn = ft();
          Object.defineProperty(u2, "Unpack", { enumerable: true, get: function() {
            return Dn.Unpack;
          } });
          Object.defineProperty(u2, "UnpackBase", { enumerable: true, get: function() {
            return Dn.UnpackBase;
          } });
          var Ln = ei();
          Object.defineProperty(u2, "update", { enumerable: true, get: function() {
            return Ln.update;
          } });
          Object.defineProperty(u2, "u", { enumerable: true, get: function() {
            return Ln.update;
          } });
          var Xo = zt();
          Object.defineProperty(u2, "WriteEntry", { enumerable: true, get: function() {
            return Xo.WriteEntry;
          } });
        });
        var oi = w2((P2) => {
          "use strict";
          var Jo = P2 && P2.__createBinding || (Object.create ? (function(i2, e2, t2, n2) {
            n2 === void 0 && (n2 = t2);
            var r2 = Object.getOwnPropertyDescriptor(e2, t2);
            (!r2 || ("get" in r2 ? !e2.__esModule : r2.writable || r2.configurable)) && (r2 = { enumerable: true, get: function() {
              return e2[t2];
            } }), Object.defineProperty(i2, n2, r2);
          }) : (function(i2, e2, t2, n2) {
            n2 === void 0 && (n2 = t2), i2[n2] = e2[t2];
          })), Zo = P2 && P2.__setModuleDefault || (Object.create ? (function(i2, e2) {
            Object.defineProperty(i2, "default", { enumerable: true, value: e2 });
          }) : function(i2, e2) {
            i2.default = e2;
          }), Qo = P2 && P2.__importStar || /* @__PURE__ */ (function() {
            var i2 = function(e2) {
              return i2 = Object.getOwnPropertyNames || function(t2) {
                var n2 = [];
                for (var r2 in t2) Object.prototype.hasOwnProperty.call(t2, r2) && (n2[n2.length] = r2);
                return n2;
              }, i2(e2);
            };
            return function(e2) {
              if (e2 && e2.__esModule) return e2;
              var t2 = {};
              if (e2 != null) for (var n2 = i2(e2), r2 = 0; r2 < n2.length; r2++) n2[r2] !== "default" && Jo(t2, e2, n2[r2]);
              return Zo(t2, e2), t2;
            };
          })();
          Object.defineProperty(P2, "__esModule", { value: true });
          P2.zlibCodecs = P2.codecStream = void 0;
          var ea = require("node:buffer"), ta = Qo(require("node:zlib")), wt = 64 * 1024, ia = (i2, e2 = false, t2) => {
            let n2, r2, s2 = false, o2 = false, a2, c2, l2 = e2 ? new Uint8Array(wt) : void 0, h2 = 0, d2 = (m2) => new Promise((y2) => {
              a2 = y2, i2.write(m2, () => y2());
            }), f2 = async (m2) => {
              h2 && await d2(m2.subarray(0, h2)), h2 = 0;
            }, p2 = () => {
              o2 = true, a2?.(), c2?.();
            }, _2 = () => {
              p2(), i2.destroy();
            };
            return i2.pause(), i2.on("data", (m2) => {
              t2?.(m2), t2 = void 0, s2 = false, i2.pause(), n2.enqueue(m2);
            }), i2.on("end", () => {
              o2 || n2.close();
            }), i2.on("error", (m2) => {
              n2.error(m2), r2.error(m2), p2();
            }), i2.on("close", p2), { readable: new ReadableStream({ start: (m2) => {
              n2 = m2;
            }, pull: () => {
              s2 = true, c2?.(), i2.resume();
            }, cancel: (m2) => {
              r2.error(m2), _2();
            } }, { highWaterMark: 0 }), writable: new WritableStream({ start: (m2) => {
              r2 = m2;
              let { signal: y2 } = m2;
              y2.addEventListener("abort", () => {
                n2.error(y2.reason), _2();
              });
            }, write: async (m2) => {
              l2 ? (h2 + m2.length > wt && await f2(l2), m2.length > wt ? await d2(m2) : (l2.set(m2, h2), h2 += m2.length)) : await d2(m2), !s2 && !o2 && await new Promise((y2) => c2 = y2);
            }, close: async () => {
              l2 && await f2(l2), await new Promise((m2) => {
                a2 = m2, i2.end();
              });
            } }) };
          };
          P2.codecStream = ia;
          var na = (i2) => i2 >= ea.constants.MAX_LENGTH ? {} : { maxOutputLength: Math.max(1, Math.floor(i2)) }, si = (i2, e2, t2, n2, r2) => ({ ...i2, decompress: () => (0, P2.codecStream)(t2({ chunkSize: wt })), compress: (s2) => (0, P2.codecStream)(e2(s2), true), decompressSync: (s2, { maxOutputLength: o2 }) => {
            try {
              return r2(s2, na(o2));
            } catch (a2) {
              throw a2?.code !== "ERR_BUFFER_TOO_LARGE" ? a2 : new Error(`max decompression ratio exceeded: the output is larger than ${o2} bytes`);
            }
          }, compressSync: n2 }), Bn = (i2) => {
            i2[9] = 255;
          }, ra = (i2 = ta) => {
            let { createBrotliCompress: e2, createBrotliDecompress: t2, brotliCompressSync: n2, brotliDecompressSync: r2, createZstdCompress: s2, createZstdDecompress: o2, zstdCompressSync: a2, zstdDecompressSync: c2 } = i2, h2 = [{ ...si({ name: "gzip", headLength: 2, detect: (d2) => d2[0] === 31 && d2[1] === 139 }, i2.createGzip, i2.createGunzip, i2.gzipSync, i2.gunzipSync), compress: ({ portable: d2, ...f2 } = {}) => (0, P2.codecStream)(i2.createGzip(f2), true, d2 ? Bn : void 0), compressSync: (d2, { portable: f2, ...p2 } = {}) => {
              let _2 = i2.gzipSync(d2, p2);
              return f2 && Bn(_2), _2;
            } }];
            return e2 && t2 && n2 && r2 && h2.push(si({ name: "brotli", headLength: 0, detect: () => false, extensions: [".tar.br", ".tbr"] }, e2, t2, n2, r2)), s2 && o2 && a2 && c2 && h2.push(si({ name: "zstd", headLength: 4, detect: (d2) => d2[0] === 40 && d2[1] === 181 && d2[2] === 47 && d2[3] === 253 }, s2, o2, a2, c2)), h2;
          };
          P2.zlibCodecs = ra;
        });
        var In = exports2 && exports2.__createBinding || (Object.create ? (function(i2, e2, t2, n2) {
          n2 === void 0 && (n2 = t2);
          var r2 = Object.getOwnPropertyDescriptor(e2, t2);
          (!r2 || ("get" in r2 ? !e2.__esModule : r2.writable || r2.configurable)) && (r2 = { enumerable: true, get: function() {
            return e2[t2];
          } }), Object.defineProperty(i2, n2, r2);
        }) : (function(i2, e2, t2, n2) {
          n2 === void 0 && (n2 = t2), i2[n2] = e2[t2];
        }));
        var sa = exports2 && exports2.__setModuleDefault || (Object.create ? (function(i2, e2) {
          Object.defineProperty(i2, "default", { enumerable: true, value: e2 });
        }) : function(i2, e2) {
          i2.default = e2;
        });
        var ai = exports2 && exports2.__importStar || /* @__PURE__ */ (function() {
          var i2 = function(e2) {
            return i2 = Object.getOwnPropertyNames || function(t2) {
              var n2 = [];
              for (var r2 in t2) Object.prototype.hasOwnProperty.call(t2, r2) && (n2[n2.length] = r2);
              return n2;
            }, i2(e2);
          };
          return function(e2) {
            if (e2 && e2.__esModule) return e2;
            var t2 = {};
            if (e2 != null) for (var n2 = i2(e2), r2 = 0; r2 < n2.length; r2++) n2[r2] !== "default" && In(t2, e2, n2[r2]);
            return sa(t2, e2), t2;
          };
        })();
        var oa = exports2 && exports2.__exportStar || function(i2, e2) {
          for (var t2 in i2) t2 !== "default" && !Object.prototype.hasOwnProperty.call(e2, t2) && In(e2, i2, t2);
        };
        Object.defineProperty(exports2, "__esModule", { value: true });
        exports2.u = exports2.r = exports2.t = exports2.x = exports2.delete = exports2.deleteSync = exports2.updateSync = exports2.update = exports2.replaceSync = exports2.replace = exports2.extractSync = exports2.extract = exports2.listSync = exports2.list = exports2.entriesSync = exports2.entries = exports2.codecStream = exports2.zlibCodecs = exports2.UnpackSync = exports2.ReadEntrySync = exports2.PackSync = exports2.TarReaderSync = void 0;
        exports2.create = _t;
        exports2.c = _t;
        exports2.createSync = Ta;
        exports2.create = _t;
        exports2.c = _t;
        var aa = ai(require("node:fs"));
        var ca = ai(require("node:fs/promises"));
        var la = require("node:path");
        var Z = ai(ri());
        var ha = Re();
        var da = Ht();
        var ua = B();
        var fa = H();
        var pa = Qt();
        var ma = xe();
        var ya = yt();
        var wa = ei();
        var _a = oi();
        oa(ri(), exports2);
        var ga = H();
        Object.defineProperty(exports2, "TarReaderSync", { enumerable: true, get: function() {
          return ga.TarReaderSync;
        } });
        var ba = rt();
        Object.defineProperty(exports2, "PackSync", { enumerable: true, get: function() {
          return ba.PackSync;
        } });
        var va = ve();
        Object.defineProperty(exports2, "ReadEntrySync", { enumerable: true, get: function() {
          return va.ReadEntrySync;
        } });
        var Sa = ft();
        Object.defineProperty(exports2, "UnpackSync", { enumerable: true, get: function() {
          return Sa.UnpackSync;
        } });
        var Hn = oi();
        Object.defineProperty(exports2, "zlibCodecs", { enumerable: true, get: function() {
          return Hn.zlibCodecs;
        } });
        Object.defineProperty(exports2, "codecStream", { enumerable: true, get: function() {
          return Hn.codecStream;
        } });
        var Q = ca;
        var ee = aa;
        var ka = process.platform === "win32" ? "win32" : "posix";
        var ja = (0, _a.zlibCodecs)();
        var x2 = (i2, e2, t2) => {
          let n2 = (0, ua.dealias)(i2);
          return n2.fs ??= e2, n2.platform ??= ka, n2.codecs = [...n2.codecs ?? [], ...ja], t2 && (n2.cwd = (0, la.resolve)(n2.cwd ?? ""), n2.processUid ??= process.getuid?.(), n2.processGid ??= process.getgid?.(), n2.processUname ??= process.env.USER, n2.chmod && (n2.processUmask ??= process.umask())), n2;
        };
        var Oa = (i2, e2 = {}) => Z.entries(i2, x2(e2, Q, false));
        exports2.entries = Oa;
        var Pa = (i2, e2 = {}) => (0, fa.entriesSync)(i2, x2(e2, ee, false));
        exports2.entriesSync = Pa;
        var Ea = (i2, e2) => Z.list(x2(i2, Q, false), e2);
        exports2.list = Ea;
        exports2.t = exports2.list;
        var Ra = (i2, e2) => (0, ma.listSync)(x2(i2, ee, false), e2);
        exports2.listSync = Ra;
        var xa = (i2, e2) => Z.extract(x2(i2, Q, true), e2);
        exports2.extract = xa;
        exports2.x = exports2.extract;
        var Aa = (i2, e2) => (0, pa.extractSync)(x2(i2, ee, true), e2);
        exports2.extractSync = Aa;
        function _t(i2, e2) {
          return Z.create(x2(i2, Q, true), e2);
        }
        function Ta(i2, e2) {
          return (0, ha.createSync)(x2(i2, ee, true), e2);
        }
        var qa = (i2, e2) => Z.replace(x2(i2, Q, true), e2);
        exports2.replace = qa;
        exports2.r = exports2.replace;
        var Ma = (i2, e2) => (0, ya.replaceSync)(x2(i2, ee, true), e2);
        exports2.replaceSync = Ma;
        var Fa = (i2, e2) => Z.update(x2(i2, Q, true), e2);
        exports2.update = Fa;
        exports2.u = exports2.update;
        var za = (i2, e2) => (0, wa.updateSync)(x2(i2, ee, true), e2);
        exports2.updateSync = za;
        var Ua = (i2, e2) => Z.delete(x2(i2, Q, false), e2);
        exports2.delete = Ua;
        var Ca = (i2, e2) => (0, da.deleteSync)(x2(i2, ee, false), e2);
        exports2.deleteSync = Ca;
      }
    });
    
    // src/model/download.ts
    function getEtag(headers) {
      let header = headers["etag"];
      if (typeof header !== "string") return void 0;
      header = header.replace(/^W\//, "");
      if (!header.startsWith('"') || !header.endsWith('"')) return void 0;
      return header.slice(1, -1);
    }
    function getExtname(dispositionHeader) {
      const contentDisposition = (init_dist6(), __toCommonJS(dist_exports2));
      let disposition = contentDisposition.parse(dispositionHeader);
      let filename = disposition.parameters.filename;
      if (filename) return path.extname(filename);
      return void 0;
    }
    function isSafeEntryPath(dest, entryPath) {
      let destPath = path.join(dest, entryPath);
      let relative = path.relative(dest, destPath);
      return relative !== "" && relative !== ".." && !relative.startsWith(`..${path.sep}`) && !path.isAbsolute(relative);
    }
    function openZip(filepath) {
      return new Promise((resolve, reject) => {
        (0, import_yauzl.open)(filepath, { lazyEntries: true, decodeStrings: false }, (error, zipfile) => {
          if (error) reject(error);
          else resolve(zipfile);
        });
      });
    }
    function openZipEntry(zipfile, entry) {
      return new Promise((resolve, reject) => {
        zipfile.openReadStream(entry, (error, stream) => {
          if (error) reject(error);
          else resolve(stream);
        });
      });
    }
    async function unzipFile(filepath, dest, maxExtractSize, maxArchiveEntries) {
      let zipfile = await openZip(filepath);
      return await new Promise((resolve, reject) => {
        let settled = false;
        let entries = 0;
        let extractedSize = 0;
        const fail = (error) => {
          if (settled) return;
          settled = true;
          zipfile.close();
          reject(error);
        };
        zipfile.on("error", fail);
        zipfile.on("end", () => {
          if (settled) return;
          settled = true;
          resolve();
        });
        zipfile.on("entry", (entry) => {
          entries++;
          extractedSize += entry.uncompressedSize;
          if (entries > maxArchiveEntries || extractedSize > maxExtractSize) {
            fail(new Error("Zip archive exceeds extraction limits"));
            return;
          }
          let entryPath = (0, import_yauzl.getFileNameLowLevel)(entry.generalPurposeBitFlag, entry.fileNameRaw, entry.extraFields, false);
          entryPath = entryPath.replace(/(?<=^|[/\\]+)[.][.]+(?=[/\\]+|$)/g, ".");
          if (!isSafeEntryPath(dest, entryPath)) {
            fail(new Error(`Zip entry path is invalid: ${entryPath}`));
            return;
          }
          let target = path.join(dest, entryPath);
          let isDirectory2 = entryPath.endsWith("/");
          let parent = isDirectory2 ? target : path.dirname(target);
          void ensureNoSymlink(dest, parent).then(() => fs.promises.mkdir(parent, { recursive: true })).then(async () => {
            await ensureNoSymlink(dest, parent);
            if (!isDirectory2) {
              let input = await openZipEntry(zipfile, entry);
              await writeZipEntry(input, target);
            }
            zipfile.readEntry();
          }, fail).catch(fail);
        });
        zipfile.readEntry();
      });
    }
    async function ensureNoSymlink(dest, target) {
      let relative = path.relative(dest, target);
      let current = dest;
      for (let part of relative.split(path.sep).filter(Boolean)) {
        current = path.join(current, part);
        try {
          let stat = await fs.promises.lstat(current);
          if (stat.isSymbolicLink()) throw new Error(`Refusing to extract through symbolic link: ${current}`);
          if (!stat.isDirectory()) throw new Error(`Invalid extraction directory: ${current}`);
        } catch (e2) {
          if (e2.code !== "ENOENT") throw e2;
        }
      }
    }
    async function writeZipEntry(input, target) {
      let flags = fs.constants.O_WRONLY | fs.constants.O_CREAT | fs.constants.O_TRUNC;
      if (typeof fs.constants.O_NOFOLLOW === "number") flags |= fs.constants.O_NOFOLLOW;
      let handle = await fs.promises.open(target, flags, 438);
      try {
        await (0, import_promises.pipeline)(input, handle.createWriteStream());
      } finally {
        await handle.close().catch(() => void 0);
      }
    }
    function extractZip(res, dest, options3) {
      let emitter = new import_events34.EventEmitter();
      let archive = path.join(dest, `.coc-download-${crypto2.randomUUID()}.zip`);
      let output = fs.createWriteStream(archive);
      let settled = false;
      const finish = (error) => {
        if (settled) return;
        settled = true;
        void fs.promises.unlink(archive).catch((e2) => {
          if (e2.code !== "ENOENT") logger33.warn(`Unable to remove temporary archive ${archive}:`, e2);
        }).then(() => {
          if (error) emitter.emit("error", error);
          else emitter.emit("finish");
        });
      };
      output.on("error", finish);
      output.on("finish", () => {
        void unzipFile(
          archive,
          dest,
          options3.maxExtractSize ?? DEFAULT_MAX_EXTRACT_SIZE,
          options3.maxArchiveEntries ?? DEFAULT_MAX_ARCHIVE_ENTRIES
        ).then(() => finish(), finish);
      });
      res.on("error", (error) => {
        output.destroy(error);
      });
      res.pipe(output);
      return emitter;
    }
    function download(urlInput, options3, token, obj = {}) {
      let url = toURL(urlInput);
      let { etagAlgorithm } = options3;
      let { dest, onProgress, extract } = options3;
      for (let [name2, value] of Object.entries({
        maxDownloadSize: options3.maxDownloadSize,
        maxExtractSize: options3.maxExtractSize,
        maxArchiveEntries: options3.maxArchiveEntries
      })) {
        if (value !== void 0 && (!Number.isFinite(value) || value <= 0)) throw new Error(`${name2} must be a positive finite number`);
      }
      if (!dest || !path.isAbsolute(dest)) {
        throw new Error(`Invalid dest path: ${dest}`);
      }
      dest = path.resolve(dest);
      if (!fs.existsSync(dest)) {
        fs.mkdirSync(dest, { recursive: true });
      } else {
        let stat = fs.statSync(dest);
        if (stat && !stat.isDirectory()) {
          throw new Error(`${dest} exists, but not directory!`);
        }
      }
      let mod = getRequestModule(url);
      let opts = resolveRequestOptions(url, options3);
      if (!opts.agent && options3.agent) opts.agent = options3.agent;
      let extname = path.extname(url.pathname);
      return new Promise((resolve, reject) => {
        let timer;
        let settled = false;
        let cancellation;
        const cleanup = () => {
          cancellation?.dispose();
          cancellation = void 0;
          if (timer) clearTimeout(timer);
        };
        const succeed = (value) => {
          if (settled) return;
          settled = true;
          cleanup();
          resolve(value);
        };
        const fail = (error) => {
          if (settled) return;
          settled = true;
          cleanup();
          reject(error);
        };
        const req = mod.request(opts, (res) => {
          if (res.statusCode >= 200 && res.statusCode < 300 || res.statusCode === 1223) {
            let headers = res.headers;
            let dispositionHeader = headers["content-disposition"];
            let etag = getEtag(headers);
            let checkEtag = etag && typeof etagAlgorithm === "string";
            if (!extname && dispositionHeader) {
              extname = getExtname(dispositionHeader);
            }
            if (extract === true) {
              if (extname === ".zip" || headers["content-type"] == "application/zip") {
                extract = "unzip";
              } else if (extname == ".tgz") {
                extract = "untar";
              } else {
                fail(new Error(`Unable to detect extract method for ${url}`));
                return;
              }
            }
            let total = Number(headers["content-length"]);
            let hasTotal = !isNaN(total);
            let cur = 0;
            res.on("error", (err) => {
              fail(new Error(`Unable to connect ${url}: ${err.message}`));
            });
            let hash = checkEtag ? crypto2.createHash(etagAlgorithm) : void 0;
            res.on("data", (chunk) => {
              cur += chunk.length;
              if (cur > (options3.maxDownloadSize ?? DEFAULT_MAX_DOWNLOAD_SIZE)) {
                res.destroy(new Error(`Download exceeds maximum size of ${options3.maxDownloadSize ?? DEFAULT_MAX_DOWNLOAD_SIZE} bytes`));
                return;
              }
              if (hash) hash.update(chunk);
              if (hasTotal) {
                let percent = (cur / total * 100).toFixed(1);
                if (typeof onProgress === "function") {
                  onProgress(percent);
                } else {
                  logger33.info(`Download ${url} progress ${percent}%`);
                }
              }
            });
            res.on("end", () => {
              clearTimeout(timer);
              timer = void 0;
              logger33.info("Download completed:", url);
            });
            const finish = () => {
              if (hash) {
                if (hash.digest("hex") !== etag) {
                  fail(new Error(`Etag check failed by ${etagAlgorithm}, content not match.`));
                  return;
                }
              }
              logger33.info(`Downloaded ${url} => ${dest}`);
              setTimeout(() => {
                succeed(dest);
              }, 100);
            };
            if (extract === "untar") {
              const tar = require_index_min3();
              let entries = 0;
              let extractedSize = 0;
              void tar.extract({
                // tar can stop at the end marker before the HTTP response ends.
                input: res.iterator({ destroyOnReturn: false }),
                strip: options3.strip ?? 1,
                cwd: dest,
                preservePaths: false,
                filter: (_entryPath, entry) => {
                  entries++;
                  extractedSize += entry.size ?? 0;
                  if (entry.type === "SymbolicLink" || entry.type === "Link") {
                    throw new Error("Tar archive links are not supported");
                  }
                  if (entries > (options3.maxArchiveEntries ?? DEFAULT_MAX_ARCHIVE_ENTRIES) || extractedSize > (options3.maxExtractSize ?? DEFAULT_MAX_EXTRACT_SIZE)) {
                    throw new Error("Tar archive exceeds extraction limits");
                  }
                  return true;
                }
              }).then(() => {
                if (res.readableEnded) return finish();
                res.once("end", finish);
                res.resume();
              }).catch((error) => {
                res.destroy();
                fail(error);
              });
              return;
            }
            let stream;
            if (extract === "unzip") {
              stream = extractZip(res, dest, options3);
            } else {
              dest = path.join(dest, `${crypto2.randomUUID()}${extname}`);
              stream = res.pipe(fs.createWriteStream(dest));
            }
            stream.on("finish", finish);
            stream.on("error", fail);
          } else {
            res.resume();
            fail(new Error(`Invalid response from ${url}: ${res.statusCode}`));
          }
        });
        obj.req = req;
        req.on("error", (e2) => {
          if (e2["code"] == "ECONNRESET") {
            timer = setTimeout(() => {
              fail(e2);
            }, timeout);
          } else {
            clearTimeout(timer);
            if (opts.agent && opts.agent.proxy) {
              fail(new Error(`Request failed using proxy ${opts.agent.proxy.host}: ${e2.message}`));
              return;
            }
            fail(e2);
          }
        });
        cancellation = token?.onCancellationRequested(() => {
          req.destroy(new Error("request aborted"));
        });
        req.on("timeout", () => {
          req.destroy(new Error(`request timeout after ${options3.timeout}ms`));
        });
        if (typeof options3.timeout === "number" && options3.timeout) {
          req.setTimeout(options3.timeout);
        }
        req.end();
      });
    }
    var import_events34, import_promises, import_yauzl, logger33, DEFAULT_MAX_DOWNLOAD_SIZE, DEFAULT_MAX_EXTRACT_SIZE, DEFAULT_MAX_ARCHIVE_ENTRIES;
    var init_download = __esm({
      "src/model/download.ts"() {
        "use strict";
        import_events34 = require("events");
        import_promises = require("stream/promises");
        import_yauzl = __toESM(require_yauzl());
        init_logger();
        init_node();
        init_fetch();
        logger33 = createLogger("model-download");
        DEFAULT_MAX_DOWNLOAD_SIZE = 512 * 1024 * 1024;
        DEFAULT_MAX_EXTRACT_SIZE = 1024 * 1024 * 1024;
        DEFAULT_MAX_ARCHIVE_ENTRIES = 1e5;
      }
    });
    
    // src/extension/installer.ts
    function extensionPath(root, name2) {
      if (typeof name2 !== "string" || !/^(?:@[^/\\]+\/)?[^/\\]+$/.test(name2) || name2.includes("\0") || name2.split("/").some((part) => part === "." || part === "..")) {
        throw new Error(`Invalid extension name: ${name2}`);
      }
      let resolvedRoot = path.resolve(root);
      let target = path.resolve(resolvedRoot, name2);
      let relative = path.relative(resolvedRoot, target);
      if (!relative || relative === ".." || relative.startsWith(`..${path.sep}`) || path.isAbsolute(relative)) {
        throw new Error(`Invalid extension name: ${name2}`);
      }
      return target;
    }
    function registryUrl(home = os.homedir()) {
      let res;
      let filepath = path.join(home, ".npmrc");
      if (fs.existsSync(filepath)) {
        try {
          let content = fs.readFileSync(filepath, "utf8");
          let uri;
          for (let line of content.split(/\r?\n/)) {
            if (line.startsWith("#")) continue;
            let ms = line.match(/^(.*?)=(.*)$/);
            if (ms && ms[1] === "coc.nvim:registry") {
              uri = ms[2];
            }
          }
          if (uri) res = new URL(uri);
        } catch (e2) {
          logger34.debug("Error on parse .npmrc:", e2);
        }
      }
      return res ?? new URL("https://registry.npmjs.org");
    }
    function npmrcValue(value) {
      value = value.trim();
      if (value.startsWith('"') && value.endsWith('"') || value.startsWith("'") && value.endsWith("'")) {
        if (value.startsWith("'")) {
          value = value.slice(1, -1);
        } else {
          try {
            value = JSON.parse(value);
          } catch {
          }
        }
      } else {
        let result = "";
        let escaped = false;
        for (let character of value) {
          if (escaped) {
            result += "\\;#".includes(character) ? character : `\\${character}`;
            escaped = false;
          } else if (character === ";" || character === "#") {
            break;
          } else if (character === "\\") {
            escaped = true;
          } else {
            result += character;
          }
        }
        if (escaped) result += "\\";
        value = result.trim();
      }
      return value.replace(/\$\{([^}]+)\}/g, (_match, name2) => process.env[name2] ?? "");
    }
    function parseReleaseAgeConfig(content) {
      let config = { age: 0, exclude: /* @__PURE__ */ new Set() };
      let excludeIsArray = false;
      for (let line of content.split(/\r?\n/)) {
        let ms = line.match(/^\s*(min-release-age(?:-exclude)?)(\[\])?\s*=\s*(.*?)\s*$/);
        if (!ms) continue;
        let value = npmrcValue(ms[3]);
        if (ms[1] === "min-release-age-exclude") {
          if (!ms[2] && !excludeIsArray) config.exclude.clear();
          if (ms[2]) excludeIsArray = true;
          for (let pattern of value.split(",")) {
            pattern = pattern.trim();
            if (pattern) config.exclude.add(pattern);
          }
        } else {
          let days = Number(value);
          if (Number.isFinite(days) && days >= 0) config.age = days;
        }
      }
      return config;
    }
    function releaseAgeConfig(home = os.homedir()) {
      let filepath = path.join(home, ".npmrc");
      if (!fs.existsSync(filepath)) return { age: 0, exclude: /* @__PURE__ */ new Set() };
      try {
        return parseReleaseAgeConfig(fs.readFileSync(filepath, "utf8"));
      } catch (e2) {
        logger34.debug("Error on parse .npmrc:", e2);
      }
      return { age: 0, exclude: /* @__PURE__ */ new Set() };
    }
    function isNpmCommand(exePath) {
      let name2 = path.basename(exePath);
      return name2 === "npm" || name2 === "npm.CMD";
    }
    function isYarn(exePath) {
      let name2 = path.basename(exePath);
      return ["yarn", "yarn.CMD", "yarnpkg", "yarnpkg.CMD"].includes(name2);
    }
    function isPnpm(exePath) {
      let name2 = path.basename(exePath);
      return name2 === "pnpm" || name2 === "pnpm.CMD";
    }
    function isSymbolicLink(folder) {
      if (fs.existsSync(folder)) {
        let stat = fs.lstatSync(folder);
        if (stat.isSymbolicLink()) {
          return true;
        }
      }
      return false;
    }
    function getDependencies(obj) {
      return Object.keys(obj.dependencies ?? {}).filter((id2) => !local_dependencies.includes(id2));
    }
    function getExtensionDependencies(obj) {
      if (obj.extensionDependencies?.length > 0) {
        return [...new Set(obj.extensionDependencies)];
      }
      return [];
    }
    var import_events35, logger34, local_dependencies, Installer;
    var init_installer = __esm({
      "src/extension/installer.ts"() {
        "use strict";
        import_events35 = require("events");
        init_logger();
        init_download();
        init_fetch();
        init_fs();
        init_node();
        init_string();
        init_workspace();
        logger34 = createLogger("extension-installer");
        local_dependencies = ["coc.nvim", "esbuild", "webpack", "@types/node"];
        Installer = class _Installer extends import_events35.EventEmitter {
          constructor(root, npm, def) {
            super();
            this.root = root;
            this.npm = npm;
            this.def = def;
            if (/^https?:/.test(def)) {
              this.url = def;
            } else {
              let ms = def.match(/(.+)@([^/]+)$/);
              if (ms) {
                this.name = ms[1];
                this.version = ms[2];
              } else {
                this.name = def;
              }
            }
          }
          root;
          npm;
          def;
          name;
          url;
          version;
          get info() {
            return { name: this.name, version: this.version };
          }
          async getInfo() {
            if (this.url) return await this.getInfoFromUri();
            let registry = registryUrl();
            this.log(`Get info from ${registry}`);
            let buffer = await this.fetch(new URL(this.name, registry), { timeout: 1e4, buffer: true });
            let res = JSON.parse(buffer.toString());
            let { age: releaseAge, exclude } = releaseAgeConfig();
            if ([...exclude].some((pattern) => minimatch(this.name, pattern))) releaseAge = 0;
            if (!this.version) {
              this.version = res["dist-tags"]["latest"];
              if (releaseAge > 0) {
                let cutoff = Date.now() - releaseAge * 24 * 60 * 60 * 1e3;
                let published = Date.parse(res.time?.[this.version]);
                if (!Number.isFinite(published) || published > cutoff) {
                  let versions = Object.keys(res.versions ?? {}).filter((version2) => {
                    let published2 = Date.parse(res.time?.[version2]);
                    return Number.isFinite(published2) && published2 <= cutoff;
                  });
                  this.version = semver.maxSatisfying(versions, "*") ?? void 0;
                  if (!this.version) throw new Error(`${this.def} has no release older than ${releaseAge} days.`);
                }
              }
            } else if (releaseAge > 0) {
              let published = Date.parse(res.time?.[this.version]);
              let cutoff = Date.now() - releaseAge * 24 * 60 * 60 * 1e3;
              if (!Number.isFinite(published) || published > cutoff) {
                throw new Error(`${this.def} is not older than ${releaseAge} days.`);
              }
            }
            let obj = res["versions"][this.version];
            if (!obj) throw new Error(`${this.def} doesn't exists in ${registry}.`);
            let requiredVersion = obj["engines"] && obj["engines"]["coc"];
            if (!requiredVersion) throw new Error(`${this.def} is not a valid coc extension, "engines" field with coc property required.`);
            extensionPath(this.root, res.name);
            return {
              "dist.tarball": obj["dist"]["tarball"],
              "engines.coc": requiredVersion,
              version: obj["version"],
              name: res.name
            };
          }
          async getInfoFromUri() {
            let { url } = this;
            let repository;
            try {
              repository = new URL(url);
            } catch (_e) {
              throw new Error(`"${url}" is not supported, coc.nvim support github.com only`);
            }
            if (repository.protocol !== "https:" || repository.hostname !== "github.com") {
              throw new Error(`"${url}" is not supported, coc.nvim support github.com only`);
            }
            url = url.replace(/\/$/, "");
            let branch = "master";
            if (url.includes("@")) {
              let idx = url.indexOf("@");
              branch = url.substring(idx + 1);
              url = url.substring(0, idx);
            }
            let fileUrl = url.replace("github.com", "raw.githubusercontent.com") + `/${branch}/package.json`;
            this.log(`Get info from ${fileUrl}`);
            let content = await this.fetch(fileUrl, { timeout: 1e4 });
            let obj = typeof content == "string" ? JSON.parse(content) : content;
            extensionPath(this.root, obj.name);
            this.name = obj.name;
            return {
              "dist.tarball": `${url}/archive/${branch}.tar.gz`,
              "engines.coc": obj["engines"] ? obj["engines"]["coc"] : null,
              name: obj.name,
              version: obj.version
            };
          }
          log(msg, isProgress = false) {
            this.emit("message", msg, isProgress);
          }
          async install() {
            this.log(`Using npm from: ${this.npm}`);
            let info = await this.getInfo();
            logger34.info(`Fetched info of ${this.def}`, info);
            let { name: name2, version: version2 } = info;
            let required = toText(info["engines.coc"]).replace(/^\^/, ">=");
            if (required && !semver.satisfies(workspace_default.version, required)) {
              throw new Error(`${name2} ${info.version} requires coc.nvim >= ${required}, please update coc.nvim.`);
            }
            let updated = await this.doInstall(info, /* @__PURE__ */ new Set());
            return { name: name2, updated, version: version2, url: this.url, folder: extensionPath(this.root, info.name) };
          }
          async update(url) {
            if (url) this.url = url;
            let version2;
            if (this.name) {
              let folder = extensionPath(this.root, this.name);
              if (isSymbolicLink(folder)) {
                this.log(`Skipped update for symbol link`);
                return;
              }
              let obj = loadJson(path.join(folder, "package.json"));
              version2 = obj.version;
            }
            this.log(`Using npm from: ${this.npm}`);
            let info = await this.getInfo();
            if (version2 && info.version && semver.gte(version2, info.version)) {
              this.log(`Current version ${version2} is up to date.`);
              return;
            }
            let required = info["engines.coc"] ? info["engines.coc"].replace(/^\^/, ">=") : "";
            if (required && !semver.satisfies(workspace_default.version, required)) {
              throw new Error(`${info.version} requires coc.nvim ${required}, please update coc.nvim.`);
            }
            let succeed = await this.doInstall(info, /* @__PURE__ */ new Set());
            if (!succeed) return;
            let jsonFile = path.join(this.root, info.name, "package.json");
            this.log(`Updated to v${info.version}`);
            return path.dirname(jsonFile);
          }
          getInstallArguments(exePath, url) {
            let env = "production";
            let args = ["install", "--ignore-scripts"];
            if (url && url.startsWith("https://github.com")) {
              args = ["install"];
              env = "development";
            } else {
              if (isNpmCommand(exePath)) {
                args.push("--no-package-lock");
                args.push("--omit=dev");
                args.push("--legacy-peer-deps");
                args.push("--no-global");
              }
              if (isYarn(exePath)) {
                args.push("--no-lockfile");
                args.push("--production");
                args.push("--ignore-engines");
              }
              if (isPnpm(exePath)) {
                args.push("--no-lockfile");
                args.push("--production");
                args.push("--config.strict-peer-dependencies=false");
              }
            }
            return { env, args };
          }
          readLines(key, stream) {
            const rl = readline.createInterface({
              input: stream
            });
            rl.on("line", (line) => {
              this.log(`${key} ${line}`, true);
            });
          }
          installDependencies(folder, dependencies) {
            if (dependencies.length == 0) return Promise.resolve();
            return new Promise((resolve, reject) => {
              let { env, args } = this.getInstallArguments(this.npm, this.url);
              this.log(`Installing dependencies by: ${this.npm} ${args.join(" ")}.`);
              const cmd = process.platform === "win32" && this.npm.includes(" ") ? `"${this.npm}"` : this.npm;
              const child = child_process.spawn(cmd, args, {
                cwd: folder,
                shell: process.platform === "win32",
                env: { ...process.env, NODE_ENV: env }
              });
              this.readLines("[npm stdout]", child.stdout);
              this.readLines("[npm stderr]", child.stderr);
              child.stderr.setEncoding("utf8");
              child.stdout.setEncoding("utf8");
              child.on("error", reject);
              child.on("exit", (code) => {
                if (code) {
                  reject(new Error(`${this.npm} install exited with ${code}`));
                  return;
                }
                resolve();
              });
            });
          }
          async doInstall(info, installing = /* @__PURE__ */ new Set()) {
            let dest = extensionPath(this.root, info.name);
            if (isSymbolicLink(dest)) return false;
            if (installing.has(info.name)) {
              this.log(`Skipping dependency: ${info.name} (already installed or in progress)`);
              return false;
            }
            installing.add(info.name);
            let downloadFolder = path.join(path.resolve(this.root), `.coc-download-${crypto.randomUUID()}`);
            let url = info["dist.tarball"];
            this.log(`Downloading from ${url}`);
            let etagAlgorithm = url.startsWith("https://registry.npmjs.org") ? "md5" : void 0;
            let obj;
            try {
              await this.download(url, {
                dest: downloadFolder,
                etagAlgorithm,
                extract: "untar",
                onProgress: (p2) => this.log(`Download progress ${p2}%`, true)
              });
              this.log(`Extension download at ${downloadFolder}`);
              obj = loadJson(path.join(downloadFolder, "package.json"));
              await this.installDependencies(downloadFolder, getDependencies(obj));
              const extensionDependencies = getExtensionDependencies(obj);
              if (extensionDependencies.length > 0) {
                this.log(`Installing extension dependencies: ${extensionDependencies.join(", ")}`);
                for (const dependency of extensionDependencies) {
                  const installer = new _Installer(this.root, this.npm, dependency);
                  installer.on("message", (msg, isProgress) => {
                    this.log(msg, isProgress);
                  });
                  await installer.doInstall(await installer.getInfo(), installing);
                }
              }
            } catch (e2) {
              fs.rmSync(downloadFolder, { recursive: true, force: true });
              throw e2;
            }
            this.log(`Download extension ${info.name}@${info.version} at ${downloadFolder}`);
            fs.mkdirSync(path.dirname(dest), { recursive: true });
            if (fs.existsSync(dest)) fs.rmSync(dest, { force: true, recursive: true });
            fs.renameSync(downloadFolder, dest);
            this.log(`Move extension ${info.name}@${info.version} to ${dest}`);
            return true;
          }
          async download(url, options3) {
            return await download(url, options3);
          }
          async fetch(url, options3 = {}) {
            return await fetch(url, options3);
          }
        };
      }
    });
    
    // src/extension/console.ts
    function formatDuration(diff) {
      let ms = Number(diff) / 1e6;
      let text = ms.toFixed(3).replace(/\.?0+$/, "");
      return `${text}ms`;
    }
    function formatCell(value) {
      if (value === null) return "null";
      if (value === void 0) return "undefined";
      if (typeof value === "string") return value;
      if (typeof value === "object") return (0, import_util.inspect)(value, { depth: 1, colors: false });
      return String(value);
    }
    function formatTable(data) {
      try {
        if (Array.isArray(data)) {
          if (data.length === 0) return "(empty table)";
          let rows = data;
          if (rows.every((item) => item !== null && typeof item === "object")) {
            let keys = [];
            let objects = rows;
            for (let row of objects) {
              for (let key of Object.keys(row)) {
                if (!keys.includes(key)) keys.push(key);
              }
            }
            if (keys.length === 0) return "(empty table)";
            let lines2 = [`(index)	${keys.join("	")}`];
            objects.forEach((row, i2) => {
              lines2.push(`${i2}	${keys.map((k) => formatCell(row[k])).join("	")}`);
            });
            return lines2.join("\n");
          }
          let lines = ["(index)	Value"];
          rows.forEach((value, i2) => lines.push(`${i2}	${formatCell(value)}`));
          return lines.join("\n");
        }
        let tag = Object.prototype.toString.call(data);
        if (tag === "[object Map]") {
          let lines = ["Key	Value"];
          for (let [key, value] of data) {
            lines.push(`${formatCell(key)}	${formatCell(value)}`);
          }
          return lines.join("\n");
        }
        if (tag === "[object Set]") {
          let lines = ["Value"];
          for (let value of data) lines.push(formatCell(value));
          return lines.join("\n");
        }
        if (data !== null && typeof data === "object") {
          let entries = Object.entries(data);
          if (entries.length === 0) return "(empty table)";
          let lines = ["Key	Value"];
          for (let [key, value] of entries) lines.push(`${key}	${formatCell(value)}`);
          return lines.join("\n");
        }
        return (0, import_util.inspect)(data, { colors: false });
      } catch (e2) {
        try {
          return (0, import_util.inspect)(data, { colors: false });
        } catch (err) {
          return String(data);
        }
      }
    }
    function createExtensionConsole(extensionId, logger75) {
      let state = {
        timers: /* @__PURE__ */ new Map(),
        counters: /* @__PURE__ */ new Map(),
        groupDepth: 0
      };
      const indent = () => "  ".repeat(state.groupDepth);
      const attributed = typeof logger75.category === "string" && logger75.category.includes(extensionId);
      const attribution = attributed ? "" : `extension:${extensionId} `;
      const emit = (level2, text) => {
        logger75[level2](`${indent()}${attribution}${text}`);
      };
      const fallback = (method, error) => {
        let message = String(error);
        if (error instanceof Error) message = error.message;
        try {
          logger75.error(`extension:${extensionId} console.${method} internal error: ${message}`);
        } catch (e2) {
        }
      };
      const safe = (method, fn) => {
        try {
          fn();
        } catch (e2) {
          fallback(method, e2);
        }
      };
      const write = (level2, args) => {
        let message = args.length === 0 ? "" : (0, import_util.format)(...args);
        emit(level2, message);
      };
      let consoleObj = {
        log: (...args) => safe("log", () => write("info", args)),
        info: (...args) => safe("info", () => write("info", args)),
        warn: (...args) => safe("warn", () => write("warn", args)),
        error: (...args) => safe("error", () => write("error", args)),
        debug: (...args) => safe("debug", () => write("debug", args)),
        trace: function trace(...args) {
          safe("trace", () => {
            let message = args.length === 0 ? "Trace" : (0, import_util.format)(...args);
            let err = new Error();
            Error.captureStackTrace(err, trace);
            let stack = "";
            if (err.stack) stack = err.stack.split("\n").slice(1).join("\n");
            emit("trace", `${message}
    ${stack}`);
          });
        },
        assert: (condition, ...args) => {
          safe("assert", () => {
            if (condition) return;
            emit("error", `Assertion failed${args.length ? `: ${(0, import_util.format)(...args)}` : ""}`);
          });
        },
        dir: (...args) => {
          safe("dir", () => {
            let value = args[0];
            let options3 = args.length > 1 && args[1] !== null && typeof args[1] === "object" ? args[1] : {};
            emit("info", (0, import_util.inspect)(value, { colors: false, showHidden: false, depth: 2, ...options3 }));
          });
        },
        dirxml: (...args) => {
          safe("dirxml", () => {
            let value = args[0];
            emit("info", (0, import_util.inspect)(value, { colors: false, showHidden: false, depth: 2 }));
          });
        },
        table: (...args) => {
          safe("table", () => {
            emit("info", formatTable(args[0]));
          });
        },
        time: (label = "default") => {
          safe("time", () => {
            if (state.timers.has(label)) {
              emit("warn", `Warning: Label '${label}' already exists for console.time()`);
              return;
            }
            state.timers.set(label, process.hrtime.bigint());
          });
        },
        timeLog: (label = "default", ...args) => {
          safe("timeLog", () => {
            let start = state.timers.get(label);
            if (start === void 0) {
              emit("warn", `Warning: No such label '${label}' for console.timeLog()`);
              return;
            }
            let suffix = "";
            if (args.length) suffix = ` ${(0, import_util.format)(...args)}`;
            emit("info", `${label}: ${formatDuration(process.hrtime.bigint() - start)}${suffix}`);
          });
        },
        timeEnd: (label = "default") => {
          safe("timeEnd", () => {
            let start = state.timers.get(label);
            if (start === void 0) {
              emit("warn", `Warning: No such label '${label}' for console.timeEnd()`);
              return;
            }
            state.timers.delete(label);
            emit("info", `${label}: ${formatDuration(process.hrtime.bigint() - start)}`);
          });
        },
        count: (label = "default") => {
          safe("count", () => {
            let n2 = (state.counters.get(label) ?? 0) + 1;
            state.counters.set(label, n2);
            emit("info", `${label}: ${n2}`);
          });
        },
        countReset: (label = "default") => {
          safe("countReset", () => {
            state.counters.delete(label);
          });
        },
        group: (...args) => {
          safe("group", () => {
            if (args.length) emit("info", (0, import_util.format)(...args));
            state.groupDepth++;
          });
        },
        groupCollapsed: (...args) => {
          safe("groupCollapsed", () => {
            if (args.length) emit("info", (0, import_util.format)(...args));
            state.groupDepth++;
          });
        },
        groupEnd: () => {
          safe("groupEnd", () => {
            if (state.groupDepth > 0) state.groupDepth--;
          });
        },
        clear: () => {
        },
        profile: () => {
        },
        profileEnd: () => {
        },
        timeStamp: () => {
        }
      };
      return { console: consoleObj, state };
    }
    function getConsoleFacade(runtime) {
      let facade = runtime.consoleFacade;
      if (!facade) {
        facade = Object.assign({}, NATIVE_CONSOLE);
        for (let method of CONSOLE_METHODS) {
          let fn = runtime.console[method];
          if (typeof fn === "function") facade[method] = fn;
        }
        Object.defineProperty(runtime, "consoleFacade", {
          value: facade,
          enumerable: false,
          configurable: true,
          writable: true
        });
      }
      return facade;
    }
    var CONSOLE_METHODS, NATIVE_CONSOLE;
    var init_console = __esm({
      "src/extension/console.ts"() {
        "use strict";
        init_node();
        CONSOLE_METHODS = [
          "log",
          "info",
          "warn",
          "error",
          "debug",
          "trace",
          "assert",
          "dir",
          "dirxml",
          "table",
          "time",
          "timeLog",
          "timeEnd",
          "count",
          "countReset",
          "group",
          "groupCollapsed",
          "groupEnd",
          "clear",
          "profile",
          "profileEnd",
          "timeStamp"
        ];
        NATIVE_CONSOLE = require("console");
      }
    });
    
    // src/extension/facade.ts
    function trackExtensionDisposable(context, disposable) {
      context.subscriptions.push(disposable);
      return disposable;
    }
    function isRegistrationMethod(singletonName, name2) {
      if (name2.startsWith("register")) return true;
      if (singletonName === "events") {
        return name2 === "on" || name2 === "once";
      }
      if (singletonName === "sources") {
        return name2 === "addSource" || name2 === "removeSource";
      }
      if (singletonName === "diagnosticManager") {
        return name2 === "create" || name2 === "createDiagnosticCollection";
      }
      if (singletonName === "workspace") {
        if (name2.startsWith("onDid")) return true;
        if (name2.startsWith("onWill")) return true;
        if (WORKSPACE_REGISTRATION_METHODS.has(name2)) return true;
        return false;
      }
      return false;
    }
    function wrapNestedCallbacks(obj, extensionId) {
      for (let key of ["callback", "provideTextDocumentContent"]) {
        let fn = obj[key];
        if (typeof fn === "function" && getExtensionId(fn) == null) {
          obj[key] = wrapCallbackWithExtension(fn, extensionId);
        }
      }
    }
    function createWrappedFacade(context, core, singletonName) {
      const wrapFunctions = singletonName === "workspace";
      return new Proxy(core, {
        get(target, prop, receiver) {
          if (typeof prop !== "string") {
            return Reflect.get(target, prop, receiver);
          }
          const value = Reflect.get(target, prop, target);
          if (typeof value !== "function") return value;
          if (isRegistrationMethod(singletonName, prop)) {
            return (...args) => {
              for (let i2 = 0; i2 < args.length; i2++) {
                const arg = args[i2];
                if (Array.isArray(arg)) continue;
                if (typeof arg === "function") {
                  if (wrapFunctions) {
                    args[i2] = wrapCallbackWithExtension(arg, context.extensionId);
                  } else {
                    setExtensionId(arg, context.extensionId);
                  }
                  continue;
                }
                if (arg != null && typeof arg === "object") {
                  setExtensionId(arg, context.extensionId);
                  if (wrapFunctions) {
                    wrapNestedCallbacks(arg, context.extensionId);
                  }
                }
              }
              let result = value.apply(target, args);
              if (result != null && typeof result.dispose === "function") {
                trackExtensionDisposable(context, result);
              }
              return result;
            };
          }
          return value.bind(target);
        },
        set() {
          return false;
        }
      });
    }
    function createExtensionApi(context, core) {
      const api = {};
      Object.defineProperty(api, "nvim", {
        enumerable: true,
        configurable: false,
        get: () => core?.workspace?.nvim
      });
      for (const name2 of WRAPPED_SINGLETONS) {
        if (core && core[name2] != null) {
          api[name2] = createWrappedFacade(context, core[name2], name2);
        }
      }
      for (const name2 of SHARED_VALUE_EXPORTS) {
        if (core && name2 in core) {
          api[name2] = core[name2];
        }
      }
      return Object.freeze(api);
    }
    var WRAPPED_SINGLETONS, SHARED_VALUE_EXPORTS, WORKSPACE_REGISTRATION_METHODS;
    var init_facade = __esm({
      "src/extension/facade.ts"() {
        "use strict";
        init_extensionId();
        WRAPPED_SINGLETONS = [
          "workspace",
          "window",
          "snippetManager",
          "events",
          "services",
          "commands",
          "sources",
          "mcp",
          "languages",
          "diagnosticManager",
          "extensions",
          "listManager"
        ];
        SHARED_VALUE_EXPORTS = [
          "Uri",
          "LineBuilder",
          "NullLogger",
          "SettingMonitor",
          "LanguageClient",
          "CancellationTokenSource",
          "ProgressType",
          "RequestType",
          "RequestType0",
          "NotificationType",
          "NotificationType0",
          "ProtocolRequestType",
          "ProtocolRequestType0",
          "ProtocolNotificationType",
          "ProtocolNotificationType0",
          "Highlighter",
          "Mru",
          "Emitter",
          "SnippetString",
          "BasicList",
          "Mutex",
          "TreeItem",
          "SemanticTokensBuilder",
          "FloatFactory",
          "RelativePattern",
          "CancellationError",
          "WorkspaceChange",
          "ResponseError",
          "StringValue",
          "SnippetTextEdit",
          "Trace",
          "DocumentUri",
          "WorkspaceFolder",
          "SelectedCompletionInfo",
          "InlineCompletionContext",
          "InlineCompletionItem",
          "InlineCompletionList",
          "InlineCompletionTriggerKind",
          "InlineValueText",
          "InlineValueVariableLookup",
          "InlineValueEvaluatableExpression",
          "InlineValueContext",
          "InlayHintKind",
          "InlayHintLabelPart",
          "InlayHint",
          "DiagnosticRelatedInformation",
          "SemanticTokens",
          "SemanticTokenTypes",
          "SemanticTokenModifiers",
          "AnnotatedTextEdit",
          "ChangeAnnotation",
          "SymbolTag",
          "Command",
          "Color",
          "CodeDescription",
          "ColorInformation",
          "ColorPresentation",
          "TextDocumentEdit",
          "TextDocumentIdentifier",
          "VersionedTextDocumentIdentifier",
          "TextDocumentItem",
          "DocumentHighlight",
          "SelectionRange",
          "DocumentLink",
          "CodeLens",
          "FormattingOptions",
          "CodeAction",
          "CodeActionContext",
          "DocumentSymbol",
          "WorkspaceSymbol",
          "CreateFile",
          "RenameFile",
          "WorkspaceEdit",
          "InsertReplaceEdit",
          "InsertTextMode",
          "CompletionItem",
          "CompletionList",
          "Hover",
          "ParameterInformation",
          "SignatureInformation",
          "SymbolInformation",
          "MarkupContent",
          "ErrorCodes",
          "EOL",
          "ExtensionType",
          "CompletionItemTag",
          "integer",
          "uinteger",
          "FoldingRangeKind",
          "FoldingRange",
          "ChangeAnnotationIdentifier",
          "DeleteFile",
          "OptionalVersionedTextDocumentIdentifier",
          "CompletionItemLabelDetails",
          "MarkedString",
          "ProviderName",
          "DocumentDiagnosticReportKind",
          "UniquenessLevel",
          "MonikerKind",
          "PatternType",
          "SourceType",
          "ConfigurationTarget",
          "ServiceStat",
          "FileType",
          "State",
          "ClientState",
          "CloseAction",
          "ErrorAction",
          "TransportKind",
          "MessageTransports",
          "RevealOutputChannelOn",
          "MarkupKind",
          "DiagnosticTag",
          "DocumentHighlightKind",
          "SymbolKind",
          "SignatureHelpTriggerKind",
          "FileChangeType",
          "CodeActionKind",
          "CodeActionTriggerKind",
          "CompletionTriggerKind",
          "Diagnostic",
          "DiagnosticSeverity",
          "CompletionItemKind",
          "InsertTextFormat",
          "Location",
          "LocationLink",
          "CancellationToken",
          "Position",
          "Range",
          "TextEdit",
          "Disposable",
          "Event",
          "TreeItemCollapsibleState",
          "DiagnosticPullMode",
          "ApplyKind",
          "terminate",
          "fetch",
          "download",
          "ansiparse",
          "disposeAll",
          "concurrent",
          "watchFile",
          "wait",
          "runCommand",
          "isRunning",
          "executable"
        ];
        WORKSPACE_REGISTRATION_METHODS = /* @__PURE__ */ new Set([
          "registerKeymap",
          "registerExprKeymap",
          "registerInsertKeymap",
          "registerLocalKeymap",
          "registerBufferSync",
          "registerAutocmd",
          "registerTextDocumentContentProvider",
          "createFileSystemWatcher"
        ]);
      }
    });
    
    // src/extension/esm.ts
    function ensureVMModules() {
      if (typeof vm.SourceTextModule !== "function" || typeof vm.SyntheticModule !== "function") {
        throw new Error(
          "coc.nvim requires Node.js VM modules support for ESM extensions; start Node with --experimental-vm-modules"
        );
      }
    }
    function getPackageType(dirname) {
      let dir = dirname;
      while (true) {
        let pkgFile = path.join(dir, "package.json");
        if (fs.existsSync(pkgFile)) {
          let key = pkgFile;
          if (packageTypeCache.has(key)) return packageTypeCache.get(key);
          let type;
          try {
            let obj = JSON.parse(fs.readFileSync(pkgFile, "utf8"));
            if (obj.type === "module") {
              type = "module";
            } else if (obj.type === "commonjs") {
              type = "commonjs";
            } else {
              type = void 0;
            }
          } catch (e2) {
            type = void 0;
          }
          packageTypeCache.set(key, type);
          return type;
        }
        let parent = path.dirname(dir);
        if (parent === dir) return void 0;
        dir = parent;
      }
    }
    function resolveModuleFormat(filename, packageType) {
      let ext2 = path.extname(filename).toLowerCase();
      if (ext2 === ".mjs") return "module";
      if (ext2 === ".cjs") return "commonjs";
      if (ext2 === ".json") return "json";
      if (ext2 === ".node") return "native";
      if (ext2 === ".js") {
        let type = packageType ?? getPackageType(path.dirname(filename));
        return type === "module" ? "module" : "commonjs";
      }
      return "commonjs";
    }
    function isBuiltin(request2) {
      if (request2.startsWith("node:")) return true;
      return Module.isBuiltin(request2) === true;
    }
    function findPackageDir(parentFile, request2) {
      let name2 = request2.startsWith("@") ? request2.split("/").slice(0, 2).join("/") : request2.split("/")[0];
      let dir = path.dirname(parentFile);
      while (true) {
        let candidate = path.join(dir, "node_modules", name2);
        if (fs.existsSync(path.join(candidate, "package.json"))) {
          return candidate;
        }
        let parent = path.dirname(dir);
        if (parent === dir) return void 0;
        dir = parent;
      }
    }
    function pickCocNvimTarget(target) {
      if (typeof target === "string") return target;
      if (Array.isArray(target)) {
        for (let i2 = 0; i2 < target.length; i2++) {
          let res = pickCocNvimTarget(target[i2]);
          if (res) {
            return res;
          }
        }
        return void 0;
      }
      if (target !== null && typeof target === "object") {
        if (target["coc.nvim"] !== void 0) {
          return pickNestedTarget(target["coc.nvim"]);
        }
      }
      return void 0;
    }
    function pickNestedTarget(target) {
      if (typeof target === "string") return target;
      if (Array.isArray(target)) {
        for (let i2 = 0; i2 < target.length; i2++) {
          let res = pickNestedTarget(target[i2]);
          if (res) return res;
        }
        return void 0;
      }
      if (target !== null && typeof target === "object") {
        for (let key of ["node", "require", "import", "default"]) {
          if (target[key] !== void 0) {
            let res = pickNestedTarget(target[key]);
            if (res) return res;
          }
        }
      }
      return void 0;
    }
    function resolveCocNvimExport(packageDir, subpath) {
      let pkg;
      try {
        pkg = JSON.parse(fs.readFileSync(path.join(packageDir, "package.json"), "utf8"));
      } catch (e2) {
        return void 0;
      }
      let exportsField = pkg.exports;
      if (exportsField === null || typeof exportsField !== "object" || Array.isArray(exportsField)) {
        return void 0;
      }
      let target = subpath === "." ? exportsField["."] ?? exportsField["./"] ?? exportsField : exportsField[subpath];
      if (target === void 0) return void 0;
      return pickCocNvimTarget(target);
    }
    function resolveExtensionModule(runtime, request2, parentIdentifier, mode) {
      if (request2 === "coc.nvim") return { type: "coc-api", id: "coc.nvim" };
      if (isBuiltin(request2)) return { type: "builtin", id: request2 };
      let parentFile = parentIdentifier.startsWith("file://") ? (0, import_url3.fileURLToPath)(parentIdentifier) : parentIdentifier;
      let packageDir = findPackageDir(parentFile, request2);
      if (packageDir) {
        let name2 = request2.startsWith("@") ? request2.split("/").slice(0, 2).join("/") : request2.split("/")[0];
        let subpath = request2 === name2 ? "." : "./" + request2.slice(name2.length + 1);
        let cocTarget = resolveCocNvimExport(packageDir, subpath);
        if (cocTarget) {
          let filename2 = tryRealpath(path.join(packageDir, cocTarget));
          if (fs.existsSync(filename2)) {
            return { type: "file", filename: filename2, format: resolveModuleFormat(filename2) };
          }
        }
      }
      let record = new Module(parentFile);
      record.filename = parentFile;
      record.id = parentFile;
      record.paths = Module._nodeModulePaths(path.dirname(parentFile));
      let conditions = mode === "import" ? /* @__PURE__ */ new Set(["coc.nvim", "node", "import"]) : /* @__PURE__ */ new Set(["coc.nvim", "node", "require"]);
      let filename = Module._resolveFilename(request2, record, false, { conditions });
      let normalized = tryRealpath(filename);
      return { type: "file", filename: normalized, format: resolveModuleFormat(normalized) };
    }
    function tryRealpath(filename) {
      try {
        return fs.realpathSync(filename);
      } catch (e2) {
        return filename;
      }
    }
    function canonicalFileURL(filename) {
      return (0, import_url3.pathToFileURL)(tryRealpath(filename)).href;
    }
    async function loadESMModule(runtime, request2, parentIdentifier) {
      let resolved = resolveExtensionModule(runtime, request2, parentIdentifier, "import");
      if (resolved.type === "coc-api") return createCocApiModule(runtime);
      if (resolved.type === "builtin") return createBuiltinModule(runtime, resolved.id);
      switch (resolved.format) {
        case "module":
          return loadSourceTextModule(runtime, resolved.filename);
        case "commonjs":
          return createCommonJSBridgeModule(runtime, resolved.filename);
        case "json":
          return createJsonModule(runtime, resolved.filename);
        case "native":
          throw new Error(`ESM import of native addon ${resolved.filename} is not supported`);
      }
    }
    async function dynamicImportModule(runtime, request2, parentIdentifier) {
      let module2 = await loadESMModule(runtime, request2, parentIdentifier);
      instantiateModule(module2);
      await module2.evaluate();
      return module2;
    }
    async function loadSourceTextModule(runtime, filename, sourceCode) {
      ensureVMModules();
      let identifier = canonicalFileURL(filename);
      let cached = runtime.esmModules.get(identifier);
      if (cached) return cached;
      let source = sourceCode ?? fs.readFileSync(filename, "utf8");
      let module2 = new vm.SourceTextModule(source, {
        context: runtime.context,
        identifier,
        initializeImportMeta(meta) {
          meta.url = identifier;
          meta.resolve = (specifier) => {
            let resolved = resolveExtensionModule(runtime, specifier, identifier, "import");
            if (resolved.type === "file") return (0, import_url3.pathToFileURL)(resolved.filename).href;
            return resolved.id;
          };
        },
        importModuleDynamically(specifier, referencingModule) {
          return dynamicImportModule(runtime, specifier, referencingModule.identifier);
        }
      });
      runtime.esmModules.set(identifier, module2);
      try {
        let deps = [];
        for (let request2 of module2.moduleRequests) {
          deps.push(await loadESMModule(runtime, request2.specifier, identifier));
        }
        module2.linkRequests(deps);
      } catch (e2) {
        runtime.esmModules.delete(identifier);
        throw e2;
      }
      return module2;
    }
    function instantiateModule(module2) {
      if (module2.status === "unlinked" && typeof module2.instantiate === "function") {
        ;
        module2.instantiate();
      }
    }
    async function createSyntheticModule(runtime, identifier, names, evaluator) {
      ensureVMModules();
      let cached = runtime.esmModules.get(identifier);
      if (cached) return cached;
      let module2 = new vm.SyntheticModule(names, evaluator, {
        context: runtime.context,
        identifier
      });
      runtime.esmModules.set(identifier, module2);
      return module2;
    }
    function createCocApiModule(runtime) {
      let names = Object.keys(runtime.api);
      return createSyntheticModule(runtime, "coc:nvim-api", names, function() {
        for (let name2 of names) {
          this.setExport(name2, runtime.api[name2]);
        }
      });
    }
    function createBuiltinModule(runtime, specifier) {
      let identifier = `builtin:${specifier}`;
      let value;
      if (specifier === "process" || specifier === "node:process") {
        value = runtime.context.process;
      } else if (specifier === "console" || specifier === "node:console") {
        value = getConsoleFacade(runtime);
      } else {
        value = require(specifier);
      }
      let names = ["default", ...Object.keys(value)];
      return createSyntheticModule(runtime, identifier, names, function() {
        this.setExport("default", value);
        for (let name2 of Object.keys(value)) {
          this.setExport(name2, value[name2]);
        }
      });
    }
    function createCommonJSBridgeModule(runtime, filename) {
      let identifier = `cjs-bridge:${canonicalFileURL(filename)}`;
      let exports2 = getLoader(runtime).loadJavaScript(filename);
      let names = ["default", "module.exports"];
      if (exports2 !== null && (typeof exports2 === "object" || typeof exports2 === "function")) {
        for (let name2 of Object.keys(exports2)) {
          if (name2 !== "default" && name2 !== "module.exports") names.push(name2);
        }
      }
      return createSyntheticModule(runtime, identifier, names, function() {
        this.setExport("default", exports2);
        this.setExport("module.exports", exports2);
        for (let name2 of names) {
          if (name2 !== "default" && name2 !== "module.exports") {
            this.setExport(name2, exports2[name2]);
          }
        }
      });
    }
    function createJsonModule(runtime, filename) {
      let identifier = `json:${canonicalFileURL(filename)}`;
      let value = getLoader(runtime).loadJson(filename);
      return createSyntheticModule(runtime, identifier, ["default"], function() {
        this.setExport("default", value);
      });
    }
    async function loadESMEntry(runtime, filename, sourceCode) {
      ensureVMModules();
      let identifier = canonicalFileURL(filename);
      let module2 = await loadSourceTextModule(runtime, filename, sourceCode);
      try {
        instantiateModule(module2);
        await module2.evaluate();
      } catch (e2) {
        runtime.esmModules.delete(identifier);
        throw e2;
      }
      return module2.namespace;
    }
    function requireESMError(filename) {
      let url = (0, import_url3.pathToFileURL)(filename).href;
      let err = new Error(`require() of ES Module ${url} not supported. Use dynamic import() instead.`);
      err.code = "ERR_REQUIRE_ESM";
      return err;
    }
    var import_url3, Module, packageTypeCache;
    var init_esm6 = __esm({
      "src/extension/esm.ts"() {
        "use strict";
        init_node();
        import_url3 = require("url");
        init_console();
        init_loader();
        Module = require("module");
        packageTypeCache = /* @__PURE__ */ new Map();
      }
    });
    
    // src/list/commandTask.ts
    var import_events36, spawn, logger35, CommandTask;
    var init_commandTask = __esm({
      "src/list/commandTask.ts"() {
        "use strict";
        import_events36 = require("events");
        init_logger();
        init_util();
        init_node();
        init_workspace();
        spawn = child_process.spawn;
        logger35 = createLogger("list-commandTask");
        CommandTask = class extends import_events36.EventEmitter {
          constructor(opt) {
            super();
            this.opt = opt;
            this.start();
          }
          opt;
          disposables = [];
          start() {
            let { cmd, args, cwd: cwd2, onLine } = this.opt;
            let proc = spawn(cmd, args, { cwd: cwd2 || workspace_default.cwd, windowsHide: true, shell: process.platform === "win32" });
            this.disposables.push({
              dispose: () => {
                proc.kill();
              }
            });
            proc.on("error", (e2) => {
              this.emit("error", e2.message);
            });
            proc.stderr.on("data", (chunk) => {
              logger35.error(`[${cmd} Error]`, chunk.toString("utf8"));
            });
            const rl = readline.createInterface(proc.stdout);
            rl.on("line", (line) => {
              let res = onLine(line);
              if (res) this.emit("data", res);
            });
            rl.on("close", () => {
              this.emit("end");
            });
          }
          dispose() {
            disposeAll(this.disposables);
          }
        };
      }
    });
    
    // src/list/configuration.ts
    var validKeys, ListConfiguration, configuration_default;
    var init_configuration3 = __esm({
      "src/list/configuration.ts"() {
        "use strict";
        init_window();
        init_workspace();
        validKeys = [
          "",
          "",
          "",
          "",
          "",
          "",
          "",
          "",
          "",
          "",
          "",
          "",
          "",
          "",
          "",
          "",
          "",
          "",
          "",
          "<2-LeftMouse>",
          "",
          "",
          "",
          "",
          "",
          "",
          "",
          "",
          "",
          "",
          "",
          "",
          "",
          "",
          "",
          "",
          "",
          "",
          "",
          "",
          "",
          "",
          "",
          "",
          "",
          "",
          "",
          "",
          "",
          "",
          "",
          "",
          "",
          "",
          "",
          "",
          "",
          "",
          "",
          "",
          "",
          "",
          "",
          "",
          "",
          "",
          "",
          "",
          "",
          "",
          "",
          "",
          "",
          "",
          ""
        ];
        ListConfiguration = class {
          get debounceTime() {
            return this.get("interactiveDebounceTime", 100);
          }
          get extendedSearchMode() {
            return this.get("extendedSearchMode", true);
          }
          get smartcase() {
            return this.get("smartCase", false);
          }
          get signOffset() {
            return this.get("signOffset", 900);
          }
          get(key, defaultValue2) {
            let configuration2 = workspace_default.initialConfiguration;
            return configuration2.get("list." + key, defaultValue2);
          }
          get previousKey() {
            return this.fixKey(this.get("previousKeymap", ""));
          }
          get nextKey() {
            return this.fixKey(this.get("nextKeymap", ""));
          }
          fixKey(key) {
            if (validKeys.includes(key)) return key;
            let find = validKeys.find((s2) => s2.toLowerCase() == key.toLowerCase());
            if (find) return find;
            void window_default.showErrorMessage(`Configured key "${key}" not supported.`);
            return null;
          }
        };
        configuration_default = new ListConfiguration();
      }
    });
    
    // src/list/basic.ts
    function toVimFiletype(filetype) {
      switch (filetype) {
        case "latex":
          return "tex";
        default:
          return filetype;
      }
    }
    var BasicList;
    var init_basic = __esm({
      "src/list/basic.ts"() {
        "use strict";
        init_main();
        init_esm();
        init_util();
        init_fs();
        init_position();
        init_string();
        init_workspace();
        init_commandTask();
        init_configuration3();
        BasicList = class {
          name;
          defaultAction = "open";
          actions = [];
          options = [];
          disposables = [];
          nvim;
          optionMap;
          config;
          constructor() {
            this.nvim = workspace_default.nvim;
            this.config = configuration_default;
          }
          get alignColumns() {
            return configuration_default.get("alignColumns", false);
          }
          get floatPreview() {
            return configuration_default.get("floatPreview", false);
          }
          get hlGroup() {
            return configuration_default.get("previewHighlightGroup", "Search");
          }
          get previewHeight() {
            return configuration_default.get("maxPreviewHeight", 12);
          }
          get splitRight() {
            return configuration_default.get("previewSplitRight", false);
          }
          get toplineStyle() {
            return configuration_default.get("previewToplineStyle", "offset");
          }
          get toplineOffset() {
            return configuration_default.get("previewToplineOffset", 3);
          }
          parseArguments(args) {
            if (!this.optionMap) {
              this.optionMap = /* @__PURE__ */ new Map();
              for (let opt of this.options) {
                let parts = opt.name.split(/,\s*/g).map((s2) => s2.replace(/\s+.*/g, ""));
                let name2 = opt.key ? opt.key : parts[parts.length - 1].replace(/^-+/, "");
                for (let p2 of parts) {
                  this.optionMap.set(p2, { name: name2, hasValue: opt.hasValue });
                }
              }
            }
            let res = {};
            for (let i2 = 0; i2 < args.length; i2++) {
              let arg = args[i2];
              let def = this.optionMap.get(arg);
              if (!def) continue;
              let value = true;
              if (def.hasValue) {
                value = toText(args[i2 + 1]);
                i2 = i2 + 1;
              }
              res[def.name] = value;
            }
            return res;
          }
          /**
           * Get configuration of current list
           */
          getConfig() {
            return workspace_default.getConfiguration(`list.source.${this.name}`);
          }
          addAction(name2, fn, options3) {
            this.createAction(Object.assign({
              name: name2,
              execute: fn
            }, options3 || {}));
          }
          addMultipleAction(name2, fn, options3) {
            this.createAction(Object.assign({
              name: name2,
              multiple: true,
              execute: fn
            }, options3 || {}));
          }
          createCommandTask(opt) {
            return new CommandTask(opt);
          }
          addLocationActions() {
            this.createAction({
              name: "preview",
              execute: async (item, context) => {
                let loc = await this.convertLocation(item.location);
                await this.previewLocation(loc, context);
              }
            });
            let { nvim } = this;
            this.createAction({
              name: "quickfix",
              multiple: true,
              execute: async (items) => {
                let quickfixItems = await Promise.all(items.map((item) => this.convertLocation(item.location).then((loc) => workspace_default.getQuickfixItem(loc))));
                await nvim.call("setqflist", [quickfixItems]);
                let openCommand = await nvim.getVar("coc_quickfix_open_command");
                nvim.command(typeof openCommand === "string" ? openCommand : "copen", true);
              }
            });
            for (let name2 of ["open", "tabe", "drop", "vsplit", "split"]) {
              this.createAction({
                name: name2,
                execute: async (item, context) => {
                  await this.jumpTo(item.location, name2 == "open" ? null : name2, context);
                },
                tabPersist: name2 === "open"
              });
            }
          }
          async convertLocation(location) {
            if (typeof location == "string") return Location.create(location, Range.create(0, 0, 0, 0));
            if (Location.is(location)) return location;
            let u2 = u.parse(location.uri);
            if (u2.scheme != "file") return Location.create(location.uri, Range.create(0, 0, 0, 0));
            return await lineToLocation(u2.fsPath, location.line, location.text);
          }
          async jumpTo(location, command, context) {
            if (command == null && context && context.options.position === "tab") {
              command = "tabe";
            }
            if (typeof location == "string") {
              await workspace_default.jumpTo(location, null, command);
              return;
            }
            let { range: range2, uri } = await this.convertLocation(location);
            let position = range2.start;
            if (position.line == 0 && position.character == 0 && comparePosition(position, range2.end) == 0) {
              position = null;
            }
            await workspace_default.jumpTo(uri, position, command);
          }
          createAction(action) {
            let { name: name2 } = action;
            let idx = this.actions.findIndex((o2) => o2.name == name2);
            if (idx !== -1) this.actions.splice(idx, 1);
            this.actions.push(action);
          }
          async previewLocation(location, context) {
            let { uri, range: range2 } = location;
            let doc = workspace_default.getDocument(location.uri);
            let u2 = u.parse(uri);
            let lines = await workspace_default.documentsManager.getLines(uri);
            let config = {
              bufnr: doc ? doc.bufnr : void 0,
              winid: context.window.id,
              range: emptyRange(range2) ? null : range2,
              lnum: range2.start.line + 1,
              name: u2.scheme == "file" ? u2.fsPath : uri,
              filetype: toVimFiletype(doc ? doc.languageId : workspace_default.documentsManager.getLanguageId(u2.fsPath)),
              position: context.options.position,
              maxHeight: this.previewHeight,
              splitRight: this.splitRight,
              hlGroup: this.hlGroup,
              scheme: u2.scheme,
              toplineStyle: this.toplineStyle,
              toplineOffset: this.toplineOffset,
              targetRange: location.targetRange
            };
            await this.openPreview(lines, config);
          }
          async preview(options3, context) {
            let { bufname, filetype, range: range2, lines, lnum } = options3;
            let config = {
              winid: context.window.id,
              lnum: range2 ? range2.start.line + 1 : lnum || 1,
              filetype,
              position: context.options.position,
              maxHeight: this.previewHeight,
              splitRight: this.splitRight,
              hlGroup: this.hlGroup,
              toplineStyle: this.toplineStyle,
              toplineOffset: this.toplineOffset
            };
            if (bufname) config.name = bufname;
            if (range2) config.range = range2;
            await this.openPreview(lines, config);
          }
          async openPreview(lines, config) {
            let { nvim } = this;
            if (this.floatPreview && config.position !== "tab") {
              await nvim.call("coc#list#float_preview", [lines, config]);
            } else {
              await nvim.call("coc#list#preview", [lines, config]);
            }
            nvim.command("redraw", true);
          }
          doHighlight() {
          }
          dispose() {
            disposeAll(this.disposables);
          }
        };
      }
    });
    
    // src/util/fuzzy.ts
    function getCharCodes(str) {
      let len = str.length;
      let res = new Uint16Array(len);
      for (let i2 = 0, l2 = len; i2 < l2; i2++) {
        res[i2] = str.charCodeAt(i2);
      }
      return res;
    }
    function caseMatch(input, code, ignorecase = false) {
      if (input === code) return true;
      if (code < ASCII_END) {
        if (input >= 97 && input <= 122 && code + 32 === input) return true;
        if (ignorecase) {
          if (input <= 90 && input + 32 === code) return true;
          if (toLower(input) === code) return true;
        }
      } else {
        let lower = toLower(code);
        if (lower === input || ignorecase && toLower(input) === lower) return true;
      }
      return false;
    }
    function toLower(code) {
      return String.fromCharCode(code).toLowerCase().charCodeAt(0);
    }
    function fuzzyMatch(needle, text, ignorecase = false) {
      let totalCount = needle.length;
      let tl = text.length;
      if (totalCount > tl) return false;
      let i2 = 0;
      let curr = needle[0];
      for (let j = 0; j < tl; j++) {
        let code = text.charCodeAt(j);
        if (caseMatch(curr, code, ignorecase)) {
          i2 = i2 + 1;
          curr = needle[i2];
          if (i2 === totalCount) return true;
          continue;
        }
        if (tl - j - 1 < totalCount - i2) {
          break;
        }
      }
      return false;
    }
    var init_fuzzy = __esm({
      "src/util/fuzzy.ts"() {
        "use strict";
        init_constants();
      }
    });
    
    // src/list/db.ts
    var logger36, DB_PATH, DataBase, db_default;
    var init_db2 = __esm({
      "src/list/db.ts"() {
        "use strict";
        init_logger();
        init_constants();
        init_node();
        init_string();
        logger36 = createLogger("list-db");
        DB_PATH = path.join(dataHome, "list_history.dat");
        DataBase = class {
          folders = [];
          names = [];
          items = [];
          _changed = false;
          constructor() {
            try {
              this.load();
            } catch (e2) {
              logger36.error(`Error on load db`, e2);
            }
          }
          get currItems() {
            return this.items;
          }
          getHistory(name2, folder) {
            let nameIndex = this.names.indexOf(name2);
            let folderIndex = this.folders.indexOf(folder);
            if (nameIndex == -1 || folderIndex == -1) return [];
            return this.items.reduce((p2, c2) => {
              if (c2[1] == nameIndex && c2[2] == folderIndex) {
                p2.push(c2[0]);
              }
              return p2;
            }, []);
          }
          addItem(name2, text, folder) {
            let { folders, names } = this;
            if (byteLength(text) > 255) {
              text = byteSlice(text, 0, 255);
            }
            if (!folders.includes(folder)) {
              folders.push(folder);
            }
            if (!names.includes(name2)) {
              names.push(name2);
            }
            let nameIndex = names.indexOf(name2);
            let folderIndex = folders.indexOf(folder);
            let idx = this.items.findIndex((o2) => o2[0] == text && o2[1] == nameIndex && o2[2] == folderIndex);
            if (idx != -1) this.items.splice(idx, 1);
            this.items.push([text, nameIndex, folderIndex]);
            this._changed = true;
          }
          save() {
            let { folders, items, names } = this;
            if (!this._changed) return;
            let bufs = folders.reduce((p2, folder) => {
              p2.push(Buffer.from(folder, "utf8"), Buffer.alloc(1));
              return p2;
            }, []);
            let folderBuf = Buffer.concat(bufs);
            bufs = names.reduce((p2, name2) => {
              p2.push(Buffer.from(name2, "utf8"), Buffer.alloc(1));
              return p2;
            }, []);
            let nameBuf = Buffer.concat(bufs);
            let buf = Buffer.allocUnsafe(9);
            buf.writeUInt8(2, 0);
            buf.writeUInt32BE(folderBuf.byteLength, 1);
            buf.writeUInt32BE(nameBuf.byteLength, 5);
            bufs = items.reduce((p2, item) => {
              let b2 = Buffer.from(item[0], "utf8");
              p2.push(Buffer.from([b2.byteLength]), b2, Buffer.from([item[1], item[2]]));
              return p2;
            }, []);
            let resultBuf = Buffer.concat([buf, folderBuf, nameBuf, ...bufs]);
            fs.mkdirSync(path.dirname(DB_PATH), { recursive: true });
            fs.writeFileSync(DB_PATH, resultBuf);
            this._changed = false;
          }
          load() {
            if (!fs.existsSync(DB_PATH)) return;
            let buffer = fs.readFileSync(DB_PATH);
            let folder_length = buffer.readUInt32BE(1);
            let name_length = buffer.readUInt32BE(5);
            let folderBuf = buffer.slice(9, 9 + folder_length);
            let start = 0;
            let folders = [];
            let names = [];
            for (let i2 = 0; i2 < folderBuf.byteLength; i2++) {
              if (folderBuf[i2] === 0) {
                let text = folderBuf.slice(start, i2).toString("utf8");
                folders.push(text);
                start = i2 + 1;
              }
            }
            let offset = 9 + folder_length;
            let nameBuf = buffer.slice(offset, offset + name_length);
            start = 0;
            for (let i2 = 0; i2 < nameBuf.byteLength; i2++) {
              if (nameBuf[i2] === 0) {
                let text = nameBuf.slice(start, i2).toString("utf8");
                names.push(text);
                start = i2 + 1;
              }
            }
            let itemsBuf = buffer.slice(offset + name_length);
            start = 0;
            let total = itemsBuf.byteLength;
            while (start < total) {
              let len = itemsBuf.readUInt8(start);
              let end = start + 1 + len;
              let text = itemsBuf.slice(start + 1, end).toString("utf8");
              this.items.push([text, itemsBuf.readUInt8(end), itemsBuf.readUInt8(end + 1)]);
              start = end + 2;
            }
            this.names = names;
            this.folders = folders;
          }
        };
        db_default = new DataBase();
      }
    });
    
    // src/list/history.ts
    var logger37, InputHistory;
    var init_history = __esm({
      "src/list/history.ts"() {
        "use strict";
        init_node();
        init_logger();
        init_array();
        init_fuzzy();
        init_db2();
        init_string();
        logger37 = createLogger("list-history");
        InputHistory = class {
          constructor(prompt, name2, db, cwd2) {
            this.prompt = prompt;
            this.name = name2;
            this.db = db;
            this.cwd = cwd2;
          }
          prompt;
          name;
          db;
          cwd;
          _index = -1;
          _filtered = [];
          historyInput;
          get loaded() {
            return this.db.getHistory(this.name, this.cwd);
          }
          get filtered() {
            return this._filtered;
          }
          get index() {
            return this._index;
          }
          static migrate(folder) {
            try {
              let files = fs.readdirSync(folder);
              files = files.filter((f2) => f2.startsWith("list-") && f2.endsWith("-history.json") && fs.statSync(path.join(folder, f2)).isFile());
              if (files.length === 0) return;
              let db = new DataBase();
              for (let file of files) {
                let name2 = file.match(/^list-(.*)-history.json$/)[1];
                let content = fs.readFileSync(path.join(folder, file), "utf8");
                let obj = JSON.parse(content);
                for (let [key, texts] of Object.entries(obj)) {
                  let folder2 = Buffer.from(key, "base64").toString("utf8");
                  if (Array.isArray(texts)) {
                    texts.forEach((text) => {
                      db.addItem(name2, text, folder2);
                    });
                  }
                }
              }
              files.forEach((f2) => {
                fs.unlinkSync(path.join(folder, f2));
              });
              db.save();
            } catch (e2) {
              logger37.error(`Error on migrate history:`, e2);
            }
          }
          get curr() {
            return this._index == -1 || this._filtered == null ? null : this._filtered[this._index];
          }
          filter() {
            let { input } = this.prompt;
            if (input === this.curr) return;
            this.historyInput = "";
            if (input.length > 0) {
              let codes = getCharCodes(input);
              this._filtered = this.loaded.filter((s2) => fuzzyMatch(codes, s2));
            } else {
              this._filtered = this.loaded;
            }
            this._index = -1;
          }
          add() {
            let { db, prompt, cwd: cwd2 } = this;
            let { input } = prompt;
            if (!input || input.length < 2 || input == this.historyInput) return;
            db.addItem(this.name, input, cwd2);
          }
          previous() {
            let { _filtered, _index } = this;
            if (isFalsyOrEmpty(_filtered)) return;
            if (_index <= 0) {
              this._index = _filtered.length - 1;
            } else {
              this._index = _index - 1;
            }
            this.historyInput = this.prompt.input = toText(_filtered[this._index]);
          }
          next() {
            let { _filtered, _index } = this;
            if (isFalsyOrEmpty(_filtered)) return;
            if (_index == _filtered.length - 1) {
              this._index = 0;
            } else {
              this._index = _index + 1;
            }
            this.historyInput = this.prompt.input = toText(_filtered[this._index]);
          }
        };
      }
    });
    
    // src/list/mappings.ts
    var Mappings;
    var init_mappings = __esm({
      "src/list/mappings.ts"() {
        "use strict";
        init_window();
        init_configuration3();
        Mappings = class {
          constructor(manager, nvim) {
            this.manager = manager;
            this.nvim = nvim;
            let { prompt } = manager;
            this.addAction("do:switch", async () => {
              await manager.switchMatcher();
            });
            this.addAction("do:selectall", async () => {
              await manager.session?.ui.selectAll();
            });
            this.addAction("do:help", async () => {
              await manager.session?.showHelp();
            });
            this.addAction("do:refresh", async () => {
              await manager.session?.reloadItems();
            });
            this.addAction("do:exit", async () => {
              await manager.cancel();
            });
            this.addAction("do:stop", () => {
              manager.stop();
            });
            this.addAction("do:cancel", async () => {
              await manager.cancel(false);
            });
            this.addAction("do:toggle", async () => {
              await manager.session?.ui.toggleSelection();
            });
            this.addAction("do:jumpback", () => {
              manager.session?.jumpBack();
            });
            this.addAction("do:previous", async () => {
              await this.navigate(true);
            });
            this.addAction("do:next", async () => {
              await this.navigate(false);
            });
            this.addAction("do:defaultaction", async () => {
              await manager.doAction();
            });
            this.addAction("do:chooseaction", async () => {
              await manager.chooseAction();
            });
            this.addAction("do:togglemode", () => {
              manager.toggleMode();
            });
            this.addAction("do:previewtoggle", async () => {
              await manager.togglePreview();
            });
            this.addAction("do:previewup", () => {
              this.scrollPreview("up");
            });
            this.addAction("do:previewdown", () => {
              this.scrollPreview("down");
            });
            this.addAction("do:command", async () => {
              await manager.cancel(false);
              await nvim.eval('feedkeys(":")');
            });
            this.addAction("prompt:previous", () => {
              manager.session?.history.previous();
            });
            this.addAction("prompt:next", () => {
              manager.session?.history.next();
            });
            this.addAction("prompt:start", () => {
              prompt.moveToStart();
            });
            this.addAction("prompt:end", () => {
              prompt.moveToEnd();
            });
            this.addAction("prompt:left", () => {
              prompt.moveLeft();
            });
            this.addAction("prompt:right", () => {
              prompt.moveRight();
            });
            this.addAction("prompt:leftword", () => {
              prompt.moveLeftWord();
            });
            this.addAction("prompt:rightword", () => {
              prompt.moveRightWord();
            });
            this.addAction("prompt:deleteforward", () => {
              prompt.onBackspace();
            });
            this.addAction("prompt:deletebackward", () => {
              prompt.removeNext();
            });
            this.addAction("prompt:removetail", () => {
              prompt.removeTail();
            });
            this.addAction("prompt:removeahead", () => {
              prompt.removeAhead();
            });
            this.addAction("prompt:removeword", () => {
              prompt.removeWord();
            });
            this.addAction("prompt:insertregister", () => {
              prompt.insertRegister();
            });
            this.addAction("prompt:paste", async () => {
              await prompt.paste();
            });
            this.addAction("eval", async (expr) => {
              await prompt.eval(expr);
            });
            this.addAction("command", async (expr) => {
              await manager.command(expr);
            });
            this.addAction("action", async (expr) => {
              await manager.doAction(expr);
            });
            this.addAction("feedkeys", async (expr) => {
              await manager.feedkeys(expr);
            });
            this.addAction("feedkeys!", async (expr) => {
              await manager.feedkeys(expr, false);
            });
            this.addAction("normal", async (expr) => {
              await manager.normal(expr, false);
            });
            this.addAction("normal!", async (expr) => {
              await manager.normal(expr, true);
            });
            this.addAction("call", async (expr) => {
              await manager.call(expr);
            });
            this.addAction("expr", async (expr) => {
              let name2 = await manager.call(expr);
              await manager.doAction(name2);
            });
            this.addKeyMapping("insert", "", "do:switch");
            this.addKeyMapping("insert", "", "prompt:next");
            this.addKeyMapping("insert", "", "prompt:previous");
            this.addKeyMapping("insert", "", "prompt:paste");
            this.addKeyMapping("insert", ["", ""], "do:defaultaction");
            this.addKeyMapping("insert", ["", "", "	"], "do:chooseaction");
            this.addKeyMapping("insert", "", "do:togglemode");
            this.addKeyMapping("insert", "", "do:stop");
            this.addKeyMapping("insert", "", "do:refresh");
            this.addKeyMapping("insert", "", "prompt:left");
            this.addKeyMapping("insert", "", "prompt:right");
            this.addKeyMapping("insert", ["", ""], "prompt:end");
            this.addKeyMapping("insert", ["", ""], "prompt:start");
            this.addKeyMapping("insert", ["", "", ""], "prompt:deleteforward");
            this.addKeyMapping("insert", "", "prompt:removeword");
            this.addKeyMapping("insert", "", "prompt:removeahead");
            this.addKeyMapping("insert", "", "prompt:insertregister");
            this.addKeyMapping("normal", "t", "action:tabe");
            this.addKeyMapping("normal", "s", "action:split");
            this.addKeyMapping("normal", "r", "action:refactor");
            this.addKeyMapping("normal", "d", "action:drop");
            this.addKeyMapping("normal", ["", "", "\r"], "do:defaultaction");
            this.addKeyMapping("normal", "", "do:selectall");
            this.addKeyMapping("normal", " ", "do:toggle");
            this.addKeyMapping("normal", "p", "do:previewtoggle");
            this.addKeyMapping("normal", ["", "	", ""], "do:chooseaction");
            this.addKeyMapping("normal", "", "do:stop");
            this.addKeyMapping("normal", "", "do:refresh");
            this.addKeyMapping("normal", "", "do:jumpback");
            this.addKeyMapping("normal", "", "do:previewdown");
            this.addKeyMapping("normal", "", "do:previewup");
            this.addKeyMapping("normal", ["i", "I", "o", "O", "a", "A"], "do:togglemode");
            this.addKeyMapping("normal", "?", "do:help");
            this.addKeyMapping("normal", ":", "do:command");
            this.createMappings();
          }
          manager;
          nvim;
          insertMappings = /* @__PURE__ */ new Map();
          normalMappings = /* @__PURE__ */ new Map();
          userInsertMappings = /* @__PURE__ */ new Map();
          userNormalMappings = /* @__PURE__ */ new Map();
          actions = /* @__PURE__ */ new Map();
          createMappings() {
            let insertMappings = configuration_default.get("insertMappings", {});
            this.userInsertMappings = this.fixUserMappings(insertMappings, "list.insertMappings");
            let normalMappings = configuration_default.get("normalMappings", {});
            this.userNormalMappings = this.fixUserMappings(normalMappings, "list.normalMappings");
          }
          hasUserMapping(mode, key) {
            let map = mode == "insert" ? this.userInsertMappings : this.userNormalMappings;
            return map.has(key);
          }
          isValidAction(action) {
            if (this.actions.has(action)) return true;
            let [key, expr] = action.split(":", 2);
            if (!expr || !this.actions.has(key)) return false;
            return true;
          }
          fixUserMappings(mappings, entry) {
            let res = /* @__PURE__ */ new Map();
            for (let [key, value] of Object.entries(mappings)) {
              if (!this.isValidAction(value)) {
                void window_default.showWarningMessage(`Invalid configuration - unable to support action "${value}" in "${entry}"`);
                continue;
              }
              if (key.length == 1) {
                res.set(key, value);
              } else if (key.startsWith("<") && key.endsWith(">")) {
                if (key.toLowerCase() == "") {
                  res.set(" ", value);
                } else if (key.toLowerCase() == "") {
                  res.set("", value);
                } else if (validKeys.includes(key)) {
                  res.set(key, value);
                } else {
                  let find = false;
                  for (let i2 = 0; i2 < validKeys.length; i2++) {
                    if (validKeys[i2].toLowerCase() == key.toLowerCase()) {
                      find = true;
                      res.set(validKeys[i2], value);
                      break;
                    }
                  }
                  if (!find) void window_default.showWarningMessage(`Invalid configuration - unable to recognize "${key}" in "${entry}"`);
                }
              } else {
                void window_default.showWarningMessage(`Invalid configuration - unable to recognize key "${key}" in "${entry}"`);
              }
            }
            return res;
          }
          async navigate(up) {
            let ui = this.manager.session?.ui;
            if (!ui) return false;
            await ui.moveCursor(up ? -1 : 1);
            return true;
          }
          async doInsertKeymap(key) {
            if (key === configuration_default.nextKey) return await this.navigate(false);
            if (key === configuration_default.previousKey) return await this.navigate(true);
            let expr = this.userInsertMappings.get(key);
            if (expr) {
              let fn = this.getAction(expr);
              await Promise.resolve(fn());
              return true;
            }
            if (this.insertMappings.has(key)) {
              let fn = this.insertMappings.get(key);
              await Promise.resolve(fn());
              return true;
            }
            return false;
          }
          async doNormalKeymap(key) {
            let expr = this.userNormalMappings.get(key);
            if (expr) {
              let fn = this.getAction(expr);
              await Promise.resolve(fn());
              return true;
            }
            if (this.normalMappings.has(key)) {
              let fn = this.normalMappings.get(key);
              await Promise.resolve(fn());
              return true;
            }
            return false;
          }
          addKeyMapping(mode, key, action) {
            let mappings = mode == "insert" ? this.insertMappings : this.normalMappings;
            let fn = this.getAction(action);
            if (Array.isArray(key)) {
              for (let k of key) {
                mappings.set(k, fn);
              }
            } else {
              mappings.set(key, fn);
            }
          }
          addAction(key, fn) {
            this.actions.set(key, fn);
          }
          getAction(action) {
            if (this.actions.has(action)) return () => {
              return this.doAction(action);
            };
            let [key, expr] = action.split(":", 2);
            if (!expr || !this.actions.has(key)) throw new Error(`Invalid action ${action}`);
            return () => {
              return this.doAction(key, expr);
            };
          }
          async doAction(key, expr) {
            let fn = this.actions.get(key);
            if (!fn) throw new Error(`Action ${key} doesn't exist`);
            await Promise.resolve(fn(expr));
          }
          scrollPreview(dir) {
            const floatPreview = configuration_default.get("floatPreview", false);
            let { nvim } = this;
            nvim.pauseNotification();
            nvim.call("coc#list#scroll_preview", [dir, floatPreview], true);
            nvim.command("redraw", true);
            nvim.resumeNotification(false, true);
          }
        };
      }
    });
    
    // src/list/prompt.ts
    function getLastWordRemovedText(text) {
      let res = text;
      res = res.trimEnd();
      if (res === "") return res;
      const last = getUnicodeClass(res[res.length - 1]);
      while (res !== "" && getUnicodeClass(res[res.length - 1]) === last) {
        res = res.slice(0, res.length - 1);
      }
      return res;
    }
    var Prompt;
    var init_prompt = __esm({
      "src/list/prompt.ts"() {
        "use strict";
        init_protocol();
        init_string();
        init_configuration3();
        Prompt = class {
          constructor(nvim) {
            this.nvim = nvim;
          }
          nvim;
          cursorIndex = 0;
          _input = "";
          _matcher;
          _mode = "insert";
          interactive = false;
          requestInput = false;
          _onDidChangeInput = new import_node4.Emitter();
          onDidChangeInput = this._onDidChangeInput.event;
          get input() {
            return this._input;
          }
          set input(str) {
            if (this._input == str) return;
            this.cursorIndex = str.length;
            this._input = str;
            this.drawPrompt();
            this._onDidChangeInput.fire(this._input);
          }
          get mode() {
            return this._mode;
          }
          set mode(val) {
            if (val == this._mode) return;
            this._mode = val;
            this.drawPrompt();
          }
          set matcher(val) {
            this._matcher = val;
            this.drawPrompt();
          }
          start(opts) {
            if (opts) {
              this.interactive = opts.interactive;
              this.cursorIndex = opts.input.length;
              this._input = opts.input;
              this._mode = opts.mode;
              this._matcher = opts.interactive ? "" : opts.matcher;
            }
            this.nvim.call("coc#prompt#start_prompt", ["list"], true);
            this.drawPrompt();
          }
          cancel() {
            let { nvim } = this;
            nvim.call("coc#prompt#stop_prompt", ["list"], true);
          }
          reset() {
            this._input = "";
            this.cursorIndex = 0;
          }
          drawPrompt() {
            let indicator = configuration_default.get("indicator", ">");
            let { cursorIndex, interactive, input, _matcher } = this;
            let cmds = ['echo ""'];
            if (this.mode == "insert") {
              if (interactive) {
                cmds.push(`echohl MoreMsg | echon 'INTERACTIVE ' | echohl None`);
              } else if (_matcher) {
                cmds.push(`echohl MoreMsg | echon '${_matcher.toUpperCase()} ' | echohl None`);
              }
              cmds.push(`echohl Special | echon '${indicator} ' | echohl None`);
              if (cursorIndex == input.length) {
                cmds.push(`echon '${input.replace(/'/g, "''")}'`);
                cmds.push(`echohl Cursor | echon ' ' | echohl None`);
              } else {
                let pre = input.slice(0, cursorIndex);
                if (pre) cmds.push(`echon '${pre.replace(/'/g, "''")}'`);
                cmds.push(`echohl Cursor | echon '${input[cursorIndex].replace(/'/, "''")}' | echohl None`);
                let post = input.slice(cursorIndex + 1);
                cmds.push(`echon '${post.replace(/'/g, "''")}'`);
              }
            } else {
              cmds.push(`echohl MoreMsg | echo "" | echohl None`);
            }
            cmds.push("redraw");
            let cmd = cmds.join("|");
            this.nvim.command(cmd, true);
          }
          moveLeft() {
            if (this.cursorIndex == 0) return;
            this.cursorIndex = this.cursorIndex - 1;
            this.drawPrompt();
          }
          moveRight() {
            if (this.cursorIndex == this._input.length) return;
            this.cursorIndex = this.cursorIndex + 1;
            this.drawPrompt();
          }
          moveLeftWord() {
            let { cursorIndex, input } = this;
            if (cursorIndex == 0) return;
            let pre = input.slice(0, cursorIndex);
            let remain = getLastWordRemovedText(pre);
            this.cursorIndex = cursorIndex - (pre.length - remain.length);
            this.drawPrompt();
            this._onDidChangeInput.fire(this._input);
          }
          moveRightWord() {
            let { cursorIndex, input } = this;
            if (cursorIndex == input.length) return;
            let post = input.slice(cursorIndex);
            let nextWord = post.match(/[\w$]+ */).at(0) ?? post;
            this.cursorIndex = cursorIndex + nextWord.length;
            this.drawPrompt();
            this._onDidChangeInput.fire(this._input);
          }
          moveToEnd() {
            if (this.cursorIndex == this._input.length) return;
            this.cursorIndex = this._input.length;
            this.drawPrompt();
          }
          moveToStart() {
            if (this.cursorIndex == 0) return;
            this.cursorIndex = 0;
            this.drawPrompt();
          }
          onBackspace() {
            let { cursorIndex, input } = this;
            if (cursorIndex == 0) return;
            let pre = input.slice(0, cursorIndex);
            let post = input.slice(cursorIndex);
            this.cursorIndex = cursorIndex - 1;
            this._input = `${pre.slice(0, pre.length - 1)}${post}`;
            this.drawPrompt();
            this._onDidChangeInput.fire(this._input);
          }
          removeNext() {
            let { cursorIndex, input } = this;
            if (cursorIndex == input.length) return;
            let pre = input.slice(0, cursorIndex);
            let post = input.slice(cursorIndex + 1);
            this._input = `${pre}${post}`;
            this.drawPrompt();
            this._onDidChangeInput.fire(this._input);
          }
          removeWord() {
            let { cursorIndex, input } = this;
            if (cursorIndex == 0) return;
            let pre = input.slice(0, cursorIndex);
            let post = input.slice(cursorIndex);
            let remain = getLastWordRemovedText(pre);
            this.cursorIndex = cursorIndex - (pre.length - remain.length);
            this._input = `${remain}${post}`;
            this.drawPrompt();
            this._onDidChangeInput.fire(this._input);
          }
          removeTail() {
            let { cursorIndex, input } = this;
            if (cursorIndex == input.length) return;
            let pre = input.slice(0, cursorIndex);
            this._input = pre;
            this.drawPrompt();
            this._onDidChangeInput.fire(this._input);
          }
          removeAhead() {
            let { cursorIndex, input } = this;
            if (cursorIndex == 0) return;
            let post = input.slice(cursorIndex);
            this.cursorIndex = 0;
            this._input = post;
            this.drawPrompt();
            this._onDidChangeInput.fire(this._input);
          }
          async acceptCharacter(ch) {
            if (this.requestInput) {
              this.requestInput = false;
              if (/^[0-9a-z"%#*+/:\-.]$/.test(ch)) {
                let text = await this.nvim.call("getreg", ch);
                text = text.replace(/\n/g, " ");
                this.addText(text);
              }
            } else {
              this.addText(ch);
            }
          }
          insertRegister() {
            this.requestInput = true;
          }
          async paste() {
            let text = await this.nvim.eval("@*");
            text = text.replace(/\n/g, "");
            if (!text) return;
            this.addText(text);
          }
          async eval(expression) {
            let text = await this.nvim.call("eval", [expression]);
            text = text.replace(/\n/g, "");
            this.addText(text);
          }
          addText(text) {
            let { cursorIndex, input } = this;
            this.cursorIndex = cursorIndex + text.length;
            let pre = input.slice(0, cursorIndex);
            let post = input.slice(cursorIndex);
            this._input = `${pre}${text}${post}`;
            this.drawPrompt();
            this._onDidChangeInput.fire(this._input);
          }
        };
      }
    });
    
    // src/util/sequence.ts
    var Sequence;
    var init_sequence = __esm({
      "src/util/sequence.ts"() {
        "use strict";
        Sequence = class {
          _busy = false;
          _fns = [];
          _resolves = [];
          run(fn) {
            if (!this._busy) {
              this._busy = true;
              void fn().finally(() => {
                this.next();
              });
            } else {
              this._fns.push(fn);
            }
          }
          waitFinish() {
            if (!this._busy) return Promise.resolve();
            return new Promise((resolve) => {
              this._resolves.push(resolve);
            });
          }
          next() {
            let fn = this._fns.shift();
            if (!fn) {
              this.finish();
            } else {
              void fn().finally(() => {
                this.next();
              });
            }
          }
          finish() {
            this._busy = false;
            let fn;
            while ((fn = this._resolves.pop()) != null) {
              fn();
            }
          }
          cancel() {
            this._fns = [];
            this.finish();
          }
        };
      }
    });
    
    // src/list/ui.ts
    var debounceTime4, ListUI;
    var init_ui2 = __esm({
      "src/list/ui.ts"() {
        "use strict";
        init_events();
        init_util();
        init_array();
        init_node();
        init_protocol();
        init_sequence();
        init_string();
        init_workspace();
        init_configuration3();
        debounceTime4 = getConditionValue(100, 20);
        ListUI = class {
          constructor(nvim, name2, listOptions) {
            this.nvim = nvim;
            this.name = name2;
            this.listOptions = listOptions;
            this.newTab = listOptions.position == "tab";
            this.reversed = listOptions.reverse === true;
            events_default.on("BufWinLeave", async (bufnr) => {
              if (bufnr != this.bufnr || this.window == null) return;
              this.window = null;
              this._onDidClose.fire(bufnr);
            }, null, this.disposables);
            events_default.on("WinClosed", (winid) => {
              if (this.winid == winid) {
                let { bufnr } = this;
                this.window = null;
                this.buffer = null;
                this._onDidClose.fire(bufnr);
              }
            }, null, this.disposables);
            events_default.on("CursorMoved", async (bufnr, cursor) => {
              if (bufnr != this.bufnr) return;
              let idx = this.lnumToIndex(cursor[0]);
              this.onLineChange(idx);
            }, null, this.disposables);
            let debounced = debounce2(async (bufnr) => {
              if (bufnr != this.bufnr) return;
              let [winid, start, end] = await nvim.eval('[win_getid(),line("w0"),line("w$")]');
              if (end < 300 || winid != this.winid) return;
              let h2 = end - start + 1;
              let s2 = this.lnumToIndex(start);
              let e2 = this.lnumToIndex(start + h2 * 2);
              nvim.pauseNotification();
              this.doHighlight(s2, e2);
              nvim.command("redraw", true);
              nvim.resumeNotification(false, true);
            }, debounceTime4);
            this.disposables.push({
              dispose: () => {
                debounced.clear();
              }
            });
            events_default.on("CursorMoved", debounced, null, this.disposables);
          }
          nvim;
          name;
          listOptions;
          window;
          height;
          tabnr;
          newTab = false;
          reversed = false;
          buffer;
          currIndex = 0;
          items = [];
          disposables = [];
          selected = /* @__PURE__ */ new Set();
          mouseDown;
          sequence = new Sequence();
          _onDidChangeLine = new import_node4.Emitter();
          _onDidOpen = new import_node4.Emitter();
          _onDidClose = new import_node4.Emitter();
          _onDidLineChange = new import_node4.Emitter();
          _onDoubleClick = new import_node4.Emitter();
          onDidChangeLine = this._onDidChangeLine.event;
          onDidLineChange = this._onDidLineChange.event;
          onDidOpen = this._onDidOpen.event;
          onDidClose = this._onDidClose.event;
          onDidDoubleClick = this._onDoubleClick.event;
          onDidChangeItems(ev) {
            if (!ev.append) this.clearSelection();
            this.sequence.run(async () => {
              let { items, reload, append, finished, sorted } = ev;
              if (this.shouldSort && !sorted) {
                items = append ? this.items.concat(items) : items;
                reload = append == true;
                append = false;
                items.sort((a2, b2) => {
                  if (a2.score != b2.score) return b2.score - a2.score;
                  if (a2.sortText > b2.sortText) return 1;
                  return -1;
                });
              }
              if (append) {
                await this.appendItems(items);
              } else {
                await this.drawItems(items, finished, reload);
              }
            });
          }
          lnumToIndex(lnum) {
            let { reversed, length } = this;
            if (!reversed) return lnum - 1;
            return Math.max(0, length - lnum);
          }
          indexToLnum(index) {
            let { reversed, length } = this;
            if (!reversed) return Math.min(index + 1, length);
            return Math.max(Math.min(length, length - index), 1);
          }
          get bufnr() {
            return this.buffer?.id;
          }
          get winid() {
            return this.window?.id;
          }
          get limitLines() {
            return configuration_default.get("limitLines", Infinity);
          }
          onLineChange(index) {
            if (this.currIndex == index) return;
            this.currIndex = index;
            this._onDidChangeLine.fire(index);
          }
          get index() {
            return this.currIndex;
          }
          getItem(index) {
            return this.items[index];
          }
          get item() {
            let { window: window2 } = this;
            if (!window2) return Promise.resolve(null);
            return window2.cursor.then((cursor) => {
              this.currIndex = this.lnumToIndex(cursor[0]);
              return this.items[this.currIndex];
            });
          }
          async echoMessage(item) {
            let { items } = this;
            let idx = items.indexOf(item);
            let msg = `[${idx + 1}/${items.length}] ${toText(item.label)}`;
            this.nvim.callTimer("coc#ui#echo_lines", [[msg]], true);
          }
          updateItem(item, index) {
            if (!this.buffer || index >= this.length) return;
            let { nvim } = this;
            let lnum = this.indexToLnum(index);
            nvim.pauseNotification();
            this.buffer.setOption("modifiable", true, true);
            nvim.call("setbufline", [this.bufnr, lnum, item.label], true);
            this.doHighlight(index, index + 1);
            this.buffer.setOption("modifiable", false, true);
            nvim.resumeNotification(true, true);
          }
          async getItems() {
            if (this.length == 0 || !this.window) return [];
            let mode = await this.nvim.call("mode");
            if (mode == "v" || mode == "V") {
              let [start, end] = await this.getSelectedRange();
              let res = [];
              for (let i2 = start; i2 <= end; i2++) {
                let idx = this.lnumToIndex(i2);
                let item2 = this.items[idx];
                if (item2) res.push(item2);
              }
              return res;
            }
            let { selectedItems } = this;
            if (selectedItems.length) return selectedItems;
            let item = await this.item;
            return toArray(item);
          }
          async onMouse(event) {
            let { nvim, window: window2 } = this;
            if (!window2) return;
            let [winid, lnum, col] = await nvim.eval(`[v:mouse_winid,v:mouse_lnum,v:mouse_col]`);
            if (event == "mouseDown") {
              this.mouseDown = { winid, lnum, col, current: winid == window2.id };
              return;
            }
            let current = winid == window2.id;
            if (current && event == "doubleClick") {
              this.setCursor(lnum);
              this._onDoubleClick.fire();
            }
            if (current && event == "mouseDrag") {
              if (!this.mouseDown) return;
              await this.selectLines(this.mouseDown.lnum, lnum);
            } else if (current && event == "mouseUp") {
              if (!this.mouseDown) return;
              if (this.mouseDown.lnum == lnum) {
                this.setCursor(lnum);
                nvim.command("redraw", true);
              } else {
                await this.selectLines(this.mouseDown.lnum, lnum);
              }
            } else if (!current && event == "mouseUp") {
              nvim.pauseNotification();
              nvim.call("win_gotoid", winid, true);
              nvim.call("cursor", [lnum, col], true);
              nvim.command("redraw", true);
              nvim.resumeNotification(false, true);
            }
          }
          async resume() {
            let { items, selected, nvim } = this;
            await this.drawItems(items, true, true);
            if (!selected.size || !this.buffer) return;
            nvim.pauseNotification();
            for (let lnum of selected) {
              this.buffer.placeSign({ lnum, id: configuration_default.signOffset + lnum, name: "CocSelected", group: "coc-list" });
            }
            nvim.command("redraw", true);
            nvim.resumeNotification(false, true);
          }
          async toggleSelection() {
            let { nvim, reversed } = this;
            await nvim.call("win_gotoid", [this.winid]);
            let lnum = await nvim.call("line", ".");
            let mode = await nvim.call("mode");
            if (mode == "v" || mode == "V") {
              let [start, end] = await this.getSelectedRange();
              let reverse = start > end;
              if (reverse) [start, end] = [end, start];
              for (let i2 = start; i2 <= end; i2++) {
                this.toggleLine(i2);
              }
              this.setCursor(end);
              nvim.command("redraw", true);
              await nvim.resumeNotification();
              return;
            }
            nvim.pauseNotification();
            this.toggleLine(lnum);
            this.setCursor(reversed ? lnum - 1 : lnum + 1);
            nvim.command("redraw", true);
            await nvim.resumeNotification();
          }
          toggleLine(lnum) {
            let { selected, buffer } = this;
            let exists = selected.has(lnum);
            const signOffset2 = configuration_default.signOffset;
            if (!exists) {
              selected.add(lnum);
              buffer.placeSign({ lnum, id: signOffset2 + lnum, name: "CocSelected", group: "coc-list" });
            } else {
              selected.delete(lnum);
              buffer.unplaceSign({ id: signOffset2 + lnum, group: "coc-list" });
            }
          }
          async selectLines(start, end) {
            let { nvim, buffer, length } = this;
            const signOffset2 = configuration_default.signOffset;
            this.clearSelection();
            let { selected } = this;
            nvim.pauseNotification();
            let reverse = start > end;
            if (reverse) [start, end] = [end, start];
            for (let i2 = start; i2 <= end; i2++) {
              if (i2 > length) break;
              selected.add(i2);
              buffer.placeSign({ lnum: i2, id: signOffset2 + i2, name: "CocSelected", group: "coc-list" });
            }
            this.setCursor(end);
            nvim.command("redraw", true);
            await nvim.resumeNotification();
          }
          async selectAll() {
            let { length } = this;
            if (length > 0) await this.selectLines(1, length);
          }
          clearSelection() {
            let { selected, buffer } = this;
            if (buffer && selected.size > 0) {
              buffer.unplaceSign({ group: "coc-list" });
              this.selected.clear();
            }
          }
          get ready() {
            if (this.window) return Promise.resolve();
            return new Promise((resolve) => {
              let disposable = this.onDidLineChange(() => {
                disposable.dispose();
                resolve();
              });
            });
          }
          getHeight(len, finished) {
            let { listOptions } = this;
            if (typeof listOptions.height === "number") return listOptions.height;
            let height = configuration_default.get("height", 10);
            if (finished && !listOptions.interactive && listOptions.input.length == 0) {
              height = Math.min(len, height);
            }
            return Math.max(1, height);
          }
          async drawItems(items, finished, reload = false) {
            const { nvim, name: name2, listOptions } = this;
            this.items = items.length > this.limitLines ? items.slice(0, this.limitLines) : items;
            if (!this.window) {
              let height = this.getHeight(items.length, finished);
              let { position, numberSelect } = listOptions;
              let [bufnr, winid, tabnr] = await nvim.call("coc#list#create", [position, height, name2, numberSelect]);
              this.tabnr = tabnr;
              this.height = height;
              this.buffer = nvim.createBuffer(bufnr);
              let win = this.window = nvim.createWindow(winid);
              let statusSegments = configuration_default.get("statusLineSegments");
              if (statusSegments) win.setOption("statusline", statusSegments.join(" "), true);
              this._onDidOpen.fire(this.bufnr);
            }
            const lines = [];
            let selectIndex = 0;
            this.items.forEach((item, idx) => {
              lines.push(item.label);
              if (!reload && selectIndex == 0 && item.preselect) selectIndex = idx;
            });
            let newIndex = reload ? this.currIndex : selectIndex;
            this.setLines(lines, 0, newIndex);
            this._onDidLineChange.fire();
          }
          async appendItems(items) {
            if (!this.window || items.length === 0) return;
            let curr = this.items.length;
            let remain = this.limitLines - curr;
            if (remain > 0) {
              let append = remain < items.length ? items.slice(0, remain) : items;
              this.items = this.items.concat(append);
              this.setLines(append.map((item) => item.label), append.length, this.currIndex);
            }
          }
          get shouldSort() {
            let { matcher, interactive } = this.listOptions;
            if (interactive || matcher !== "fuzzy") return false;
            return true;
          }
          setLines(lines, append, index) {
            let { nvim, buffer, window: window2, reversed, newTab } = this;
            if (!buffer || !window2) return;
            nvim.pauseNotification();
            if (!append) {
              nvim.call("coc#compat#clear_matches", [window2.id], true);
              if (!lines.length) {
                lines = ["No results, press ? on normal mode to get help."];
                nvim.call("coc#compat#matchaddpos", ["Comment", [[1]], 99, window2.id], true);
              }
            }
            buffer.setOption("modifiable", true, true);
            if (reversed) {
              let replacement = lines.reverse();
              if (append) {
                nvim.call("appendbufline", [buffer.id, 0, replacement], true);
              } else {
                buffer.setLines(replacement, { start: 0, end: -1, strictIndexing: false }, true);
              }
            } else {
              buffer.setLines(lines, { start: append ? -1 : 0, end: -1, strictIndexing: false }, true);
            }
            buffer.setOption("modifiable", false, true);
            if (reversed && !newTab) {
              let maxHeight = configuration_default.get("height", 10);
              nvim.call("coc#window#set_height", [window2.id, Math.max(Math.min(maxHeight, this.length), 1)], true);
            }
            if (index > this.items.length - 1) index = 0;
            if (index == 0) {
              if (append == 0) {
                this.doHighlight(0, 299);
              } else {
                let s2 = this.length - append - 1;
                if (s2 < 300) this.doHighlight(s2, Math.min(299, this.length - 1));
              }
            } else {
              let height = newTab ? workspace_default.env.lines : this.height;
              this.doHighlight(Math.max(0, index - height), Math.min(index + height + 1, this.length - 1));
            }
            if (!append) {
              this.currIndex = index;
              let lnum = this.indexToLnum(index);
              window2.setCursor([lnum, 0], true);
              nvim.call("coc#list#select", [buffer.id, lnum], true);
            }
            if (reversed) nvim.command("normal! zb", true);
            nvim.command("redraws", true);
            nvim.resumeNotification(true, true);
          }
          restoreWindow() {
            if (this.newTab) return;
            let { winid, height } = this;
            if (winid && height) {
              this.nvim.call("coc#window#set_height", [winid, height], true);
            }
          }
          get length() {
            return this.items.length;
          }
          get selectedItems() {
            let { selected, items } = this;
            let res = [];
            for (let i2 of selected) {
              let idx = this.lnumToIndex(i2);
              if (items[i2 - 1]) res.push(items[idx]);
            }
            return res;
          }
          doHighlight(start, end) {
            let { items, reversed, length, buffer } = this;
            const highlightItems = [];
            const iterate = (i2) => {
              let lnum = this.indexToLnum(i2) - 1;
              let { ansiHighlights } = items[i2];
              if (ansiHighlights) {
                for (let hi of ansiHighlights) {
                  let { span, hlGroup } = hi;
                  highlightItems.push({ hlGroup, lnum, colStart: span[0], colEnd: span[1] });
                }
              }
            };
            if (reversed) {
              for (let i2 = Math.min(end, length - 1); i2 >= start; i2--) {
                iterate(i2);
              }
            } else {
              for (let i2 = start; i2 <= Math.min(end, length - 1); i2++) {
                iterate(i2);
              }
            }
            start = this.indexToLnum(start) - 1;
            end = this.indexToLnum(end) - 1;
            if (start > end) {
              [start, end] = [end, start];
            }
            if (!buffer || highlightItems.length == 0) return;
            buffer.updateHighlights("list", highlightItems, { start, end: end + 1, priority: 99 });
          }
          setCursor(lnum, col = 0, index) {
            let { items } = this;
            let max = items.length == 0 ? 1 : items.length;
            if (lnum > max) return;
            index = index == null ? this.lnumToIndex(lnum) : index;
            this.onLineChange(index);
            this.window?.setCursor([lnum, col], true);
            this.nvim.call("coc#list#select", [this.bufnr, lnum], true);
          }
          async setIndex(index) {
            if (index < 0 || index >= this.items.length) return;
            let { nvim } = this;
            let lnum = this.indexToLnum(index);
            nvim.pauseNotification();
            this.setCursor(lnum, 0, index);
            nvim.command("redraw", true);
            await nvim.resumeNotification(false);
          }
          async moveCursor(delta) {
            let { index, reversed } = this;
            await this.setIndex(reversed ? index - delta : index + delta);
          }
          async getSelectedRange() {
            let { nvim } = this;
            await nvim.call("coc#prompt#stop_prompt", ["list"]);
            await nvim.eval('feedkeys("\\", "in")');
            let [, start] = await nvim.call("getpos", "'<");
            let [, end] = await nvim.call("getpos", "'>");
            this.nvim.call("coc#prompt#start_prompt", ["list"], true);
            return [start, end];
          }
          cancel() {
            this.sequence.cancel();
          }
          reset() {
            this.cancel();
            if (this.window) {
              this.window = null;
              this.buffer = null;
              this.tabnr = void 0;
            }
          }
          dispose() {
            disposeAll(this.disposables);
            this.nvim.call("coc#window#close", [defaultValue(this.winid, -1)], true);
            this.reset();
            this.items = [];
            this._onDidChangeLine.dispose();
            this._onDidOpen.dispose();
            this._onDidClose.dispose();
            this._onDidLineChange.dispose();
            this._onDoubleClick.dispose();
          }
        };
      }
    });
    
    // src/list/worker.ts
    function getFilterLabel(item) {
      return item.filterText != null ? patchLine(item.filterText, item.label) : item.label;
    }
    function toInputs(input, extendedSearchMode) {
      return extendedSearchMode ? parseInput(input) : [input];
    }
    function convertItemLabel(item) {
      let { label, converted } = item;
      if (converted) return item;
      if (label.includes("\n")) {
        label = item.label = label.replace(/\r?\n.*/gm, "");
      }
      if (label.includes(controlCode)) {
        let { line, highlights } = parseAnsiHighlights(label);
        item.label = line;
        if (!Array.isArray(item.ansiHighlights)) item.ansiHighlights = highlights;
      }
      item.converted = true;
      return item;
    }
    function indexOf(label, input, smartcase, ignorecase) {
      if (smartcase) return smartcaseIndex(input, label);
      return ignorecase ? label.toLowerCase().indexOf(input.toLowerCase()) : label.indexOf(input);
    }
    function parseInput(input) {
      let res = [];
      let startIdx = 0;
      let currIdx = 0;
      let prev = "";
      for (; currIdx < input.length; currIdx++) {
        let ch = input[currIdx];
        if (WHITE_SPACE_CHARS.includes(ch.charCodeAt(0))) {
          if (prev && prev != "\\" && startIdx != currIdx) {
            res.push(input.slice(startIdx, currIdx));
            startIdx = currIdx + 1;
          }
        } else {
        }
        prev = ch;
      }
      if (startIdx != input.length) {
        res.push(input.slice(startIdx, input.length));
      }
      return res.map((s2) => s2.replace(/\\\s/g, " ").trim()).filter((s2) => s2.length > 0);
    }
    var logger38, controlCode, WHITE_SPACE_CHARS, SEARCH_HL_GROUP, Worker;
    var init_worker = __esm({
      "src/list/worker.ts"() {
        "use strict";
        init_logger();
        init_util();
        init_ansiparse();
        init_array();
        init_async();
        init_diff();
        init_fuzzy();
        init_mutex();
        init_protocol();
        init_string();
        init_workspace();
        init_configuration3();
        logger38 = createLogger("list-worker");
        controlCode = "\x1B";
        WHITE_SPACE_CHARS = [32, 9];
        SEARCH_HL_GROUP = "CocListSearch";
        Worker = class {
          constructor(list2, prompt, listOptions) {
            this.list = list2;
            this.prompt = prompt;
            this.listOptions = listOptions;
            this.fuzzyMatch = workspace_default.createFuzzyMatch();
          }
          list;
          prompt;
          listOptions;
          _loading = false;
          _finished = false;
          mutex = new Mutex();
          filteredCount;
          totalItems = [];
          tokenSource;
          filterTokenSource;
          _onDidChangeItems = new import_node4.Emitter();
          _onDidChangeLoading = new import_node4.Emitter();
          fuzzyMatch;
          onDidChangeItems = this._onDidChangeItems.event;
          onDidChangeLoading = this._onDidChangeLoading.event;
          set loading(loading) {
            if (this._loading == loading) return;
            this._loading = loading;
            this._onDidChangeLoading.fire(loading);
          }
          get isLoading() {
            return this._loading;
          }
          async loadItems(context, reload = false) {
            this.cancelFilter();
            this.filteredCount = 0;
            this._finished = false;
            let { list: list2, listOptions } = this;
            this.loading = true;
            let { interactive } = listOptions;
            let source = this.tokenSource = new import_node4.CancellationTokenSource();
            let token = source.token;
            let items;
            try {
              items = await list2.loadItems(context, token);
            } catch (e2) {
              if (this.tokenSource === source) {
                this.tokenSource = null;
                this.loading = false;
              }
              throw e2;
            }
            if (token.isCancellationRequested) {
              if (this.tokenSource === source) {
                this.tokenSource = null;
                this.loading = false;
              }
              return;
            }
            items = items ?? [];
            if (Array.isArray(items)) {
              this.tokenSource = null;
              this.totalItems = items;
              this.loading = false;
              this._finished = true;
              let filtered;
              if (!interactive) {
                this.filterTokenSource = new import_node4.CancellationTokenSource();
                await this.mutex.use(async () => {
                  await this.filterItems(items, { reload }, token);
                });
              } else {
                filtered = this.convertToHighlightItems(items);
                this._onDidChangeItems.fire({
                  sorted: true,
                  items: filtered,
                  reload,
                  finished: true
                });
              }
            } else {
              let task = items;
              let totalItems = this.totalItems = [];
              let taken = 0;
              let currInput = context.input;
              this.filterTokenSource = new import_node4.CancellationTokenSource();
              let _onData = async (finished) => {
                await this.mutex.use(async () => {
                  let inputChanged = this.input != currInput;
                  if (inputChanged) {
                    currInput = this.input;
                    taken = defaultValue(this.filteredCount, 0);
                  }
                  if (taken >= totalItems.length) return;
                  let append = taken > 0;
                  let remain = totalItems.slice(taken);
                  taken = totalItems.length;
                  if (!interactive) {
                    let tokenSource = this.filterTokenSource;
                    await this.filterItems(remain, { append, reload }, tokenSource.token);
                  } else {
                    let items2 = this.convertToHighlightItems(remain);
                    this._onDidChangeItems.fire({ items: items2, append, reload, sorted: true, finished });
                  }
                });
              };
              let interval2 = setInterval(async () => {
                await _onData();
              }, 50);
              task.on("data", (item) => {
                totalItems.push(item);
              });
              let onEnd = async () => {
                if (task == null) return;
                clearInterval(interval2);
                this.tokenSource = null;
                task = null;
                this.loading = false;
                this._finished = true;
                disposable.dispose();
                if (token.isCancellationRequested) return;
                if (totalItems.length == 0) {
                  this._onDidChangeItems.fire({ items: [], append: false, sorted: true, reload, finished: true });
                  return;
                }
                await _onData(true);
              };
              let disposable = token.onCancellationRequested(() => {
                this.mutex.reset();
                task?.dispose();
                void onEnd();
              });
              let toDispose = task;
              task.on("error", async (error) => {
                if (task == null) return;
                task = null;
                toDispose.dispose();
                this.tokenSource = null;
                this.loading = false;
                disposable.dispose();
                clearInterval(interval2);
                workspace_default.nvim.call("coc#prompt#stop_prompt", ["list"], true);
                workspace_default.nvim.echoError(`Task error: ${error.toString()}`);
                logger38.error("List task error:", error);
              });
              task.on("end", onEnd);
            }
          }
          /*
           * Draw all items with filter if necessary
           */
          async drawItems() {
            let { totalItems } = this;
            if (totalItems.length === 0) return;
            this.cancelFilter();
            let tokenSource = this.filterTokenSource = new import_node4.CancellationTokenSource();
            let token = tokenSource.token;
            await this.mutex.use(async () => {
              if (token.isCancellationRequested) return;
              let { totalItems: totalItems2 } = this;
              this.filteredCount = totalItems2.length;
              await this.filterItems(totalItems2, {}, tokenSource.token);
            });
          }
          cancelFilter() {
            if (this.filterTokenSource) {
              this.filterTokenSource.cancel();
              this.filterTokenSource = null;
            }
          }
          stop() {
            this.cancelFilter();
            if (this.tokenSource) {
              this.tokenSource.cancel();
              this.tokenSource = null;
            }
            this.loading = false;
          }
          get length() {
            return this.totalItems.length;
          }
          get input() {
            return this.prompt.input;
          }
          /**
           * Add highlights for interactive list
           */
          convertToHighlightItems(items) {
            let input = toText(this.input);
            if (input.length > 0) this.fuzzyMatch.setPattern(input);
            let res = items.map((item) => {
              convertItemLabel(item);
              let search = input.length > 0 && item.filterText !== "";
              if (search) {
                let filterLabel = getFilterLabel(item);
                let results = this.fuzzyMatch.matchHighlights(filterLabel, SEARCH_HL_GROUP);
                item.ansiHighlights = Array.isArray(item.ansiHighlights) ? item.ansiHighlights.filter((o2) => o2.hlGroup !== SEARCH_HL_GROUP) : [];
                if (results) item.ansiHighlights.push(...results.highlights);
              }
              return item;
            });
            this.fuzzyMatch.free();
            return res;
          }
          async filterItemsByInclude(input, items, token, onFilter) {
            let { ignorecase } = this.listOptions;
            const smartcase = configuration_default.smartcase;
            let inputs = toInputs(input, configuration_default.extendedSearchMode);
            if (ignorecase) inputs = inputs.map((s2) => s2.toLowerCase());
            await filter2(items, (item) => {
              convertItemLabel(item);
              let spans = [];
              let filterLabel = getFilterLabel(item);
              let byteIndex2 = bytes(filterLabel);
              let curr = 0;
              item.ansiHighlights = toArray(item.ansiHighlights).filter((o2) => o2.hlGroup !== SEARCH_HL_GROUP);
              for (let input2 of inputs) {
                let label = filterLabel.slice(curr);
                let idx = indexOf(label, input2, smartcase, ignorecase);
                if (idx === -1) break;
                let end = idx + curr + input2.length;
                spans.push([byteIndex2(idx + curr), byteIndex2(end)]);
                curr = end;
              }
              if (spans.length !== inputs.length) return false;
              item.ansiHighlights.push(...spans.map((s2) => {
                return { span: s2, hlGroup: SEARCH_HL_GROUP };
              }));
              return true;
            }, onFilter, token);
          }
          async filterItemsByRegex(input, items, token, onFilter) {
            let { ignorecase } = this.listOptions;
            let flags = ignorecase ? "iu" : "u";
            let inputs = toInputs(input, configuration_default.extendedSearchMode);
            let regexes = inputs.reduce((p2, c2) => {
              try {
                p2.push(new RegExp(c2, flags));
              } catch (e2) {
              }
              return p2;
            }, []);
            await filter2(items, (item) => {
              convertItemLabel(item);
              item.ansiHighlights = toArray(item.ansiHighlights).filter((o2) => o2.hlGroup !== SEARCH_HL_GROUP);
              let spans = [];
              let filterLabel = getFilterLabel(item);
              let byteIndex2 = bytes(filterLabel);
              let curr = 0;
              for (let regex2 of regexes) {
                let ms = filterLabel.slice(curr).match(regex2);
                if (ms == null) break;
                let end = ms.index + curr + ms[0].length;
                spans.push([byteIndex2(ms.index + curr), byteIndex2(end)]);
                curr = end;
              }
              if (spans.length !== inputs.length) return false;
              item.ansiHighlights.push(...spans.map((s2) => {
                return { span: s2, hlGroup: SEARCH_HL_GROUP };
              }));
              return true;
            }, onFilter, token);
          }
          async filterItemsByFuzzyMatch(input, items, token, onFilter) {
            let { extendedSearchMode, smartcase } = configuration_default;
            let { sort } = this.listOptions;
            let idx = 0;
            this.fuzzyMatch.setPattern(input, !extendedSearchMode);
            let codes = getCharCodes(input);
            if (extendedSearchMode) codes = codes.filter((c2) => !WHITE_SPACE_CHARS.includes(c2));
            await filter2(items, (item) => {
              convertItemLabel(item);
              let filterLabel = getFilterLabel(item);
              let match2 = this.fuzzyMatch.matchHighlights(filterLabel, SEARCH_HL_GROUP);
              if (!match2 || smartcase && !fuzzyMatch(codes, filterLabel)) return false;
              let ansiHighlights = Array.isArray(item.ansiHighlights) ? item.ansiHighlights.filter((o2) => o2.hlGroup != SEARCH_HL_GROUP) : [];
              ansiHighlights.push(...match2.highlights);
              return {
                sortText: typeof item.sortText === "string" ? item.sortText : String.fromCharCode(idx),
                score: match2.score,
                ansiHighlights
              };
            }, (items2, done) => {
              onFilter(items2, done, sort);
            }, token);
          }
          async filterItems(arr, opts, token) {
            let { input } = this;
            if (input.length === 0) {
              let items = arr.map((item) => {
                return convertItemLabel(item);
              });
              this._onDidChangeItems.fire({ items, sorted: true, finished: this._finished, ...opts });
              return;
            }
            let called = false;
            let itemsToSort = [];
            const onFilter = (items, done, sort) => {
              let finished = done && this._finished;
              if (token.isCancellationRequested || !finished && items.length == 0) return;
              if (sort) {
                itemsToSort.push(...items);
                if (done) this._onDidChangeItems.fire({ items: itemsToSort, append: false, sorted: false, reload: opts.reload, finished });
              } else {
                let append = opts.append === true || called;
                called = true;
                this._onDidChangeItems.fire({ items, append, sorted: true, reload: opts.reload, finished });
              }
            };
            switch (this.listOptions.matcher) {
              case "strict":
                await this.filterItemsByInclude(input, arr, token, onFilter);
                break;
              case "regex":
                await this.filterItemsByRegex(input, arr, token, onFilter);
                break;
              default:
                await this.filterItemsByFuzzyMatch(input, arr, token, onFilter);
            }
          }
          dispose() {
            this.stop();
          }
        };
      }
    });
    
    // src/list/session.ts
    var logger39, frames2, debounceTime5, ListSession;
    var init_session2 = __esm({
      "src/list/session.ts"() {
        "use strict";
        init_highlighter();
        init_logger();
        init_util();
        init_errors();
        init_node();
        init_protocol();
        init_string();
        init_window();
        init_workspace();
        init_configuration3();
        init_db2();
        init_history();
        init_ui2();
        init_worker();
        logger39 = createLogger("list-session");
        frames2 = ["\u280B", "\u2819", "\u2839", "\u2838", "\u283C", "\u2834", "\u2826", "\u2827", "\u2807", "\u280F"];
        debounceTime5 = getConditionValue(50, 1);
        ListSession = class {
          constructor(nvim, prompt, list2, listOptions, listArgs) {
            this.nvim = nvim;
            this.prompt = prompt;
            this.list = list2;
            this.listOptions = listOptions;
            this.listArgs = listArgs;
            this.ui = new ListUI(nvim, list2.name, listOptions);
            this.history = new InputHistory(prompt, list2.name, db_default, workspace_default.cwd);
            this.worker = new Worker(list2, prompt, listOptions);
            let debouncedChangeLine = debounce2(async () => {
              let [previewing, currwin, lnum] = await nvim.eval('[coc#list#has_preview(),win_getid(),line(".")]');
              if (previewing && currwin == this.winid) {
                let idx = this.ui.lnumToIndex(lnum);
                await this.doPreview(idx);
              }
            }, debounceTime5);
            this.disposables.push({
              dispose: () => {
                debouncedChangeLine.clear();
              }
            });
            this.ui.onDidChangeLine(debouncedChangeLine, null, this.disposables);
            this.ui.onDidChangeLine(this.resolveItem, this, this.disposables);
            this.ui.onDidLineChange(this.resolveItem, this, this.disposables);
            let debounced = debounce2(async () => {
              this.updateStatus();
              let { autoPreview } = this.listOptions;
              if (!autoPreview) {
                let [previewing, mode] = await nvim.eval("[coc#list#has_preview(),mode()]");
                if (mode != "n" || !previewing) return;
              }
              await this.doAction("preview");
            }, 50);
            this.disposables.push({
              dispose: () => {
                debounced.clear();
              }
            });
            this.ui.onDidLineChange(debounced, null, this.disposables);
            this.ui.onDidOpen(async () => {
              if (typeof this.list.doHighlight == "function") {
                this.list.doHighlight();
              }
              if (this.listOptions.first) {
                await this.doAction();
              }
            }, null, this.disposables);
            this.ui.onDidClose(this.hide, this, this.disposables);
            this.ui.onDidDoubleClick(this.doAction, this, this.disposables);
            this.worker.onDidChangeItems((ev) => {
              if (this.hidden) return;
              this.ui.onDidChangeItems(ev);
            }, null, this.disposables);
            let start = 0;
            let timer;
            let interval2;
            this.disposables.push(import_node4.Disposable.create(() => {
              clearTimeout(timer);
              clearInterval(interval2);
            }));
            this.worker.onDidChangeLoading((loading) => {
              if (this.hidden) return;
              if (timer) clearTimeout(timer);
              if (loading) {
                start = Date.now();
                if (interval2) clearInterval(interval2);
                interval2 = setInterval(() => {
                  let idx = Math.floor((Date.now() - start) % 1e3 / 100);
                  this.loadingFrame = frames2[idx];
                  this.updateStatus();
                }, 100);
              } else {
                timer = setTimeout(() => {
                  this.loadingFrame = "";
                  if (interval2) clearInterval(interval2);
                  interval2 = null;
                  this.updateStatus();
                }, Math.max(0, 200 - (Date.now() - start)));
              }
            }, null, this.disposables);
          }
          nvim;
          prompt;
          list;
          listOptions;
          listArgs;
          history;
          ui;
          worker;
          cwd;
          loadingFrame = "";
          timer;
          hidden = false;
          disposables = [];
          savedHeight;
          targetWinid;
          targetBufnr;
          /**
           * Original list arguments.
           */
          args = [];
          async start(args) {
            this.args = args;
            this.cwd = workspace_default.cwd;
            this.hidden = false;
            let { listArgs } = this;
            let res = await this.nvim.eval(`[win_getid(),bufnr("%"),${workspace_default.isVim ? 'winheight("%")' : "nvim_win_get_height(0)"}]`);
            this.listArgs = listArgs;
            this.history.filter();
            this.targetWinid = res[0];
            this.targetBufnr = res[1];
            this.savedHeight = res[2];
            await this.worker.loadItems(this.context);
          }
          async reloadItems() {
            if (!this.ui.winid) return;
            await this.worker.loadItems(this.context, true);
          }
          async call(fname) {
            await this.nvim.call("coc#prompt#stop_prompt", ["list"]);
            let targets = await this.ui.getItems();
            let context = {
              name: this.name,
              args: this.listArgs,
              input: this.prompt.input,
              winid: this.targetWinid,
              bufnr: this.targetBufnr,
              targets
            };
            let res = await this.nvim.call(fname, [context]);
            this.prompt.start();
            return res;
          }
          async chooseAction() {
            let { nvim, defaultAction } = this;
            let { actions } = this.list;
            let names = actions.map((o2) => o2.name);
            let idx = names.indexOf(defaultAction.name);
            if (idx != -1) {
              names.splice(idx, 1);
              names.unshift(defaultAction.name);
            }
            let shortcuts = /* @__PURE__ */ new Set();
            let choices = [];
            let invalids = [];
            let menuAction = workspace_default.env.dialog && configuration_default.get("menuAction", false);
            for (let name2 of names) {
              let i2 = 0;
              for (let ch of name2) {
                if (!shortcuts.has(ch)) {
                  shortcuts.add(ch);
                  choices.push(`${name2.slice(0, i2)}&${name2.slice(i2)}`);
                  break;
                }
                i2++;
              }
              if (i2 == name2.length) {
                invalids.push(name2);
              }
            }
            if (invalids.length && !menuAction) {
              names = names.filter((s2) => !invalids.includes(s2));
            }
            let n2;
            if (menuAction) {
              nvim.call("coc#prompt#stop_prompt", ["list"], true);
              n2 = await window_default.showMenuPicker(names, { title: "Choose action", shortcuts: true });
              n2 = n2 + 1;
              this.prompt.start();
            } else {
              await nvim.call("coc#prompt#stop_prompt", ["list"]);
              n2 = await nvim.call("confirm", ["Choose action:", choices.join("\n")]);
              await wait(10);
              this.prompt.start();
            }
            if (n2) await this.doAction(names[n2 - 1]);
          }
          async doAction(name2) {
            let { list: list2 } = this;
            let action;
            if (name2 != null) {
              action = list2.actions.find((o2) => o2.name == name2);
              if (!action) {
                void window_default.showErrorMessage(`Action ${name2} not found`);
                return;
              }
            } else {
              action = this.defaultAction;
            }
            let items;
            if (name2 == "preview") {
              let item = await this.ui.item;
              items = item ? [item] : [];
            } else {
              items = await this.ui.getItems();
            }
            if (items.length) await this.doItemAction(items, action);
          }
          async doPreview(index) {
            let item = this.ui.getItem(index);
            let action = this.list.actions.find((o2) => o2.name == "preview");
            if (!item || !action) return;
            await this.doItemAction([item], action);
          }
          async first() {
            await this.doDefaultAction(0);
          }
          async last() {
            await this.doDefaultAction(this.ui.length - 1);
          }
          async previous() {
            await this.doDefaultAction(this.ui.index - 1);
          }
          async next() {
            await this.doDefaultAction(this.ui.index + 1);
          }
          async doDefaultAction(index) {
            let { ui } = this;
            let item = ui.getItem(index);
            if (!item) return;
            await this.ui.setIndex(index);
            await this.doItemAction([item], this.defaultAction);
            await ui.echoMessage(item);
          }
          /**
           * list name
           */
          get name() {
            return this.list.name;
          }
          /**
           * Window id used by list.
           * @returns {number | undefined}
           */
          get winid() {
            return this.ui.winid;
          }
          get length() {
            return this.ui.length;
          }
          get defaultAction() {
            let { defaultAction, actions, name: name2 } = this.list;
            let config = workspace_default.getConfiguration(`list.source.${name2}`);
            let action;
            if (config.defaultAction) action = actions.find((o2) => o2.name == config.defaultAction);
            if (!action) action = actions.find((o2) => o2.name == defaultAction);
            if (!action) action = actions[0];
            if (!action) throw new Error(`default action "${defaultAction}" not found`);
            return action;
          }
          async hide(notify = false, isVim2 = workspace_default.isVim) {
            if (this.hidden) return;
            let { nvim, timer, targetWinid, context } = this;
            let { winid } = this.ui;
            if (timer) clearTimeout(timer);
            this.worker.stop();
            this.history.add();
            this.ui.reset();
            db_default.save();
            this.hidden = true;
            nvim.pauseNotification();
            if (!isVim2) nvim.call("coc#prompt#stop_prompt", ["list"], true);
            if (winid) nvim.call("coc#list#close", [winid, context.options.position, targetWinid, this.savedHeight], true);
            if (notify) {
              nvim.resumeNotification(true, true);
              return;
            }
            await nvim.resumeNotification(false);
            if (isVim2) {
              await wait(10);
              nvim.call("coc#prompt#stop_prompt", ["list"], true);
              nvim.redrawVim();
            }
          }
          toggleMode() {
            let mode = this.prompt.mode == "normal" ? "insert" : "normal";
            this.prompt.mode = mode;
            this.listOptions.mode = mode;
            this.updateStatus();
          }
          stop() {
            this.worker.stop();
          }
          async resolveItem() {
            let index = this.ui.index;
            let item = this.ui.getItem(index);
            if (!item || item.resolved) return;
            let { list: list2 } = this;
            if (typeof list2.resolveItem === "function") {
              let label = item.label;
              let resolved = await Promise.resolve(list2.resolveItem(item));
              if (resolved && index == this.ui.index) {
                Object.assign(item, resolved, { resolved: true });
                if (label == resolved.label) return;
                this.ui.updateItem(item, index);
              }
            }
          }
          async showHelp() {
            await this.hide();
            let { list: list2, nvim } = this;
            nvim.pauseNotification();
            nvim.command(`tabe +setl\\ previewwindow [LIST HELP]`, true);
            nvim.command("setl nobuflisted noswapfile buftype=nofile bufhidden=wipe", true);
            await nvim.resumeNotification();
            let hasOptions = list2.options && list2.options.length;
            let buf = await nvim.buffer;
            let highlighter = new Highlighter();
            highlighter.addLine("NAME", "Label");
            highlighter.addLine(`  ${list2.name} - ${list2.description || ""}
    `);
            highlighter.addLine("SYNOPSIS", "Label");
            highlighter.addLine(`  :CocList [LIST OPTIONS] ${list2.name}${hasOptions ? " [ARGUMENTS]" : ""}
    `);
            if (list2.detail) {
              highlighter.addLine("DESCRIPTION", "Label");
              let lines = list2.detail.split("\n").map((s2) => "  " + s2);
              highlighter.addLine(lines.join("\n") + "\n");
            }
            if (hasOptions) {
              highlighter.addLine("ARGUMENTS", "Label");
              highlighter.addLine("");
              for (let opt of list2.options) {
                highlighter.addLine(opt.name, "Special");
                highlighter.addLine(`  ${opt.description}`);
                highlighter.addLine("");
              }
              highlighter.addLine("");
            }
            let config = workspace_default.getConfiguration(`list.source.${list2.name}`);
            if (Object.keys(config).length) {
              highlighter.addLine("CONFIGURATIONS", "Label");
              highlighter.addLine("");
              for (let key of Object.keys(config)) {
                let val = config[key];
                let name2 = `list.source.${list2.name}.${key}`;
                let description = defaultValue(workspace_default.configurations.getDescription(name2), key);
                highlighter.addLine(`  "${name2}"`, "MoreMsg");
                highlighter.addText(` - ${description} current value: `);
                highlighter.addText(JSON.stringify(val), "Special");
              }
              highlighter.addLine("");
            }
            highlighter.addLine("ACTIONS", "Label");
            highlighter.addLine(`  ${list2.actions.map((o2) => o2.name).join(", ")}`);
            highlighter.addLine("");
            highlighter.addLine(`see ':h coc-list-options' for available list options.`, "Comment");
            nvim.pauseNotification();
            highlighter.render(buf, 0, -1);
            nvim.command("setl nomod", true);
            nvim.command("setl nomodifiable", true);
            nvim.command("normal! gg", true);
            nvim.command("nnoremap  q :bd!", true);
            await nvim.resumeNotification();
          }
          async switchMatcher() {
            let { matcher, interactive } = this.listOptions;
            if (interactive) return;
            const list2 = ["fuzzy", "strict", "regex"];
            let idx = list2.indexOf(matcher) + 1;
            if (idx >= list2.length) idx = 0;
            this.listOptions.matcher = list2[idx];
            this.prompt.matcher = list2[idx];
            await this.worker.drawItems();
          }
          updateStatus() {
            let { ui, list: list2, nvim } = this;
            if (!ui.bufnr) return;
            let buf = nvim.createBuffer(ui.bufnr);
            let status = {
              mode: this.prompt.mode.toUpperCase(),
              args: this.args.join(" "),
              name: list2.name,
              cwd: this.cwd,
              loading: this.loadingFrame,
              total: this.worker.length
            };
            buf.setVar("list_status", status, true);
            nvim.command("redraws", true);
          }
          get context() {
            let { winid } = this.ui;
            return {
              options: this.listOptions,
              args: this.listArgs,
              input: this.prompt.input,
              cwd: workspace_default.cwd,
              window: this.window,
              buffer: this.buffer,
              listWindow: winid ? this.nvim.createWindow(winid) : void 0
            };
          }
          get window() {
            return this.targetWinid ? this.nvim.createWindow(this.targetWinid) : void 0;
          }
          get buffer() {
            return this.targetBufnr ? this.nvim.createBuffer(this.targetBufnr) : void 0;
          }
          onMouseEvent(key) {
            switch (key) {
              case "":
                return this.ui.onMouse("mouseDown");
              case "":
                return this.ui.onMouse("mouseDrag");
              case "":
                return this.ui.onMouse("mouseUp");
              case "<2-LeftMouse>":
                return this.ui.onMouse("doubleClick");
            }
          }
          async doNumberSelect(ch) {
            if (!this.listOptions.numberSelect) return false;
            let code = ch.charCodeAt(0);
            if (code >= 48 && code <= 57) {
              let n2 = Number(ch);
              if (n2 == 0) n2 = 10;
              if (this.ui.length >= n2) {
                this.nvim.pauseNotification();
                this.ui.setCursor(n2);
                await this.nvim.resumeNotification();
                await this.doAction();
                return true;
              }
            }
            return false;
          }
          jumpBack() {
            let { targetWinid, nvim } = this;
            if (targetWinid) {
              nvim.pauseNotification();
              nvim.call("coc#prompt#stop_prompt", ["list"], true);
              this.nvim.call("win_gotoid", [targetWinid], true);
              nvim.resumeNotification(false, true);
            }
          }
          async resume() {
            if (this.winid) await this.hide();
            let res = await this.nvim.eval(`[win_getid(),bufnr("%"),${workspace_default.isVim ? 'winheight("%")' : "nvim_win_get_height(0)"}]`);
            this.hidden = false;
            this.targetWinid = res[0];
            this.targetBufnr = res[1];
            this.savedHeight = res[2];
            this.prompt.start();
            await this.ui.resume();
            if (this.listOptions.autoPreview) {
              await this.doAction("preview");
            }
          }
          async doItemAction(items, action) {
            let { noQuit, position } = this.listOptions;
            let { nvim } = this;
            let persistAction = action.persist === true || action.name == "preview";
            if (position === "tab" && action.tabPersist) persistAction = true;
            let persist = this.winid && (persistAction || noQuit);
            if (persist) {
              if (!persistAction) {
                nvim.pauseNotification();
                nvim.call("coc#prompt#stop_prompt", ["list"], true);
                nvim.call("win_gotoid", [this.context.window.id], true);
                await nvim.resumeNotification();
              }
            } else {
              await this.hide();
            }
            if (action.multiple) {
              await Promise.resolve(action.execute(items, this.context));
            } else if (action.parallel) {
              await Promise.all(items.map((item) => Promise.resolve(action.execute(item, this.context))));
            } else {
              for (let item of items) {
                await Promise.resolve(action.execute(item, this.context));
              }
            }
            if (persist) this.ui.restoreWindow();
            if (action.reload && persist) {
              await this.reloadItems();
            } else if (persist) {
              this.nvim.command("redraw", true);
            }
          }
          onInputChange() {
            if (this.timer) clearTimeout(this.timer);
            this.ui.cancel();
            this.history.filter();
            this.listOptions.input = this.prompt.input;
            if (this.listOptions.interactive) {
              this.worker.stop();
              this.timer = setTimeout(() => {
                void this.worker.loadItems(this.context).catch((e2) => {
                  if (isCancellationError(e2)) return;
                  void window_default.showErrorMessage(`Error on reload "${this.list.name}": ${toErrorText(e2)}`);
                  logger39.error(`Error on reload ${this.list.name} list:`, e2);
                });
              }, configuration_default.debounceTime);
            } else {
              void this.worker.drawItems();
            }
          }
          dispose() {
            void this.hide(true);
            disposeAll(this.disposables);
            this.worker.dispose();
            this.ui.dispose();
          }
        };
      }
    });
    
    // src/list/formatting.ts
    function fixWidth(str, width) {
      if (str.length > width) {
        return str.slice(0, width - 1) + ".";
      }
      return str + " ".repeat(width - str.length);
    }
    function formatUri(uri, cwd2) {
      if (!uri.startsWith("file:")) return uri;
      let filepath = u.parse(uri).fsPath;
      return isParentFolder(cwd2, filepath) ? path.relative(cwd2, filepath) : filepath;
    }
    function formatListItems(align, list2) {
      if (list2.length === 0) {
        return [];
      }
      let processedList = [];
      if (align) {
        const maxWidths = Array(Math.max(...list2.map((item) => item.label.length))).fill(0);
        for (let item of list2) {
          for (let i2 = 0; i2 < item.label.length; i2++) {
            maxWidths[i2] = Math.max(maxWidths[i2], (item.label[i2] ?? "").length);
          }
        }
        processedList = list2.map((item) => ({
          ...item,
          label: item.label.map((element, idx) => (element ?? "").padEnd(maxWidths[idx])).join("	")
        }));
      } else {
        processedList = list2.map((item) => ({ ...item, label: item.label.join("	") }));
      }
      return processedList;
    }
    function formatPath(format5, pathToFormat) {
      if (format5 === "hidden") {
        return "";
      } else if (format5 === "full") {
        return pathToFormat;
      } else if (format5 === "short") {
        const segments = pathToFormat.split(path.sep);
        if (segments.length < 2) {
          return pathToFormat;
        }
        const shortenedInit = segments.slice(0, segments.length - 2).filter((seg) => seg.length > 0).map((seg) => seg[0]);
        return [...shortenedInit, segments[segments.length - 1]].join(path.sep);
      } else {
        const segments = pathToFormat.split(path.sep);
        return toText(segments[segments.length - 1]);
      }
    }
    var init_formatting = __esm({
      "src/list/formatting.ts"() {
        "use strict";
        init_node();
        init_esm();
        init_fs();
        init_string();
      }
    });
    
    // src/list/source/commands.ts
    function score2(list2, key) {
      let idx = list2.indexOf(key);
      return idx == -1 ? -1 : list2.length - idx;
    }
    var extensionRegistry4, CommandsList;
    var init_commands2 = __esm({
      "src/list/source/commands.ts"() {
        "use strict";
        init_commands();
        init_extensionRegistry();
        init_registry();
        init_workspace();
        init_basic();
        init_formatting();
        init_string();
        extensionRegistry4 = Registry.as(Extensions.ExtensionContribution);
        CommandsList = class extends BasicList {
          defaultAction = "run";
          description = "registered commands of coc.nvim";
          name = "commands";
          mru;
          constructor() {
            super();
            this.mru = workspace_default.createMru("commands");
            this.addAction("run", async (item) => {
              await commands_default.fireCommand(item.data.cmd);
            });
            this.addAction("append", async (item) => {
              let { cmd } = item.data;
              await workspace_default.nvim.feedKeys(`:CocCommand ${cmd} `, "n", false);
            });
          }
          async loadItems(_context) {
            let items = [];
            let mruList = await this.mru.load();
            let ids = /* @__PURE__ */ new Set();
            for (const obj of extensionRegistry4.onCommands.concat(commands_default.commandList)) {
              let { id: id2, title } = obj;
              if (ids.has(id2)) continue;
              ids.add(id2);
              let desc = toText(title);
              items.push({
                label: [id2, desc],
                filterText: id2 + " " + desc,
                data: { cmd: id2, score: score2(mruList, id2) }
              });
            }
            items.sort((a2, b2) => b2.data.score - a2.data.score);
            return formatListItems(this.alignColumns, items);
          }
          doHighlight() {
            let { nvim } = this;
            nvim.pauseNotification();
            nvim.command("syntax match CocCommandsTitle /\\t.*$/ contained containedin=CocCommandsLine", true);
            nvim.command("highlight default link CocCommandsTitle Comment", true);
            nvim.resumeNotification(false, true);
          }
        };
      }
    });
    
    // src/list/source/location.ts
    var LocationList;
    var init_location = __esm({
      "src/list/source/location.ts"() {
        "use strict";
        init_main();
        init_esm();
        init_commands();
        init_array();
        init_fs();
        init_node();
        init_string();
        init_basic();
        LocationList = class extends BasicList {
          defaultAction = "open";
          description = "show locations saved by g:coc_jump_locations variable";
          name = "location";
          constructor() {
            super();
            this.createAction({
              name: "refactor",
              multiple: true,
              execute: async (items) => {
                let locations = items.map((o2) => o2.location);
                await commands_default.executeCommand("editor.action.showRefactor", locations);
              }
            });
            this.addLocationActions();
          }
          async formatFilepath(file) {
            if (typeof global.formatFilepath === "function") {
              return await global.formatFilepath(file) + "";
            }
            return file;
          }
          async loadItems(context, _token) {
            let locs = await this.nvim.getVar("coc_jump_locations");
            locs = toArray(locs);
            let bufnr = context.buffer.id;
            let ignoreFilepath = locs.every((o2) => o2.bufnr == bufnr);
            let items = await Promise.all(locs.map((loc) => {
              let filename = ignoreFilepath ? "" : loc.filename;
              if (filename.length > 0 && path.isAbsolute(filename)) {
                filename = isParentFolder(context.cwd, filename) ? path.relative(context.cwd, filename) : filename;
              }
              return this.createItem(filename, loc);
            }));
            return items;
          }
          async createItem(filename, loc) {
            let uri = loc.uri ?? u.file(loc.filename).toString();
            let label = "";
            const ansiHighlights = [];
            let start = 0;
            filename = await this.formatFilepath(filename);
            if (filename.length > 0) {
              label = filename + " ";
              ansiHighlights.push({ span: [start, start + byteLength(filename)], hlGroup: "Directory" });
            }
            start = byteLength(label);
            let lnum = loc.lnum ?? loc.range.start.line + 1;
            let col = loc.col ?? byteLength(loc.text.slice(0, loc.range.start.character)) + 1;
            let position = `|${loc.type ? loc.type + " " : ""}${lnum} Col ${col}|`;
            label += position;
            ansiHighlights.push({ span: [start, start + byteLength(position)], hlGroup: "LineNr" });
            if (loc.type) {
              let hl = loc.type.toLowerCase() === "error" ? "Error" : "WarningMsg";
              ansiHighlights.push({ span: [start + 1, start + byteLength(loc.type)], hlGroup: hl });
            }
            if (loc.range && loc.range.start.line == loc.range.end.line) {
              let len = byteLength(label) + 1;
              let start2 = len + byteLength(loc.text.slice(0, loc.range.start.character));
              let end = len + byteLength(loc.text.slice(0, loc.range.end.character));
              ansiHighlights.push({ span: [start2, end], hlGroup: "Search" });
            }
            label += " " + loc.text;
            let filterText = `${filename}${loc.text.trim()}`;
            let location;
            if (loc.range) {
              location = Location.create(uri, loc.range);
            } else {
              let start2 = Position.create(loc.lnum - 1, loc.col - 1);
              let end = Position.create((loc.end_lnum ?? loc.lnum) - 1, (loc.end_col ?? loc.col) - 1);
              location = Location.create(uri, Range.create(start2, end));
            }
            location.targetRange = loc.targetRange ? loc.targetRange : Range.create(lnum - 1, 0, lnum - 1, 99);
            return {
              label,
              location,
              filterText,
              ansiHighlights
            };
          }
        };
      }
    });
    
    // src/list/source/diagnostics.ts
    function convertToLabel(item, cwd2, includeCode, pathFormat = "full") {
      const file = isParentFolder(cwd2, item.file) ? path.relative(cwd2, item.file) : item.file;
      const formattedPath = formatPath(pathFormat, file);
      const formattedPosition = pathFormat !== "hidden" ? [`${formattedPath}:${item.lnum}`] : [];
      const source = includeCode ? `[${item.source} ${defaultValue(item.code, "")}]` : item.source;
      return [...formattedPosition, source, item.severity, item.message];
    }
    var DiagnosticsList;
    var init_diagnostics = __esm({
      "src/list/source/diagnostics.ts"() {
        "use strict";
        init_esm();
        init_manager();
        init_util3();
        init_util();
        init_fs();
        init_node();
        init_workspace();
        init_formatting();
        init_location();
        DiagnosticsList = class extends LocationList {
          defaultAction = "open";
          description = "diagnostics of current workspace";
          name = "diagnostics";
          options = [{
            name: "--buffer",
            hasValue: false,
            description: "list diagnostics of current buffer only"
          }, {
            name: "--workspace-folder",
            hasValue: false,
            description: "list diagnostics of current workspace folder only"
          }, {
            name: "-l, -level LEVEL",
            hasValue: true,
            description: 'filter diagnostics by diagnostic level, could be "error", "warning" and "information"'
          }];
          constructor(manager, event = true) {
            super();
            if (event) {
              manager_default.onDidRefresh(async () => {
                let session = manager.getSession("diagnostics");
                if (session) await session.reloadItems();
              }, null, this.disposables);
            }
          }
          async filterDiagnostics(parsedArgs) {
            let list2 = await manager_default.getDiagnosticList();
            if (parsedArgs["workspace-folder"]) {
              const folder = workspace_default.getWorkspaceFolder(workspace_default.root);
              if (folder) {
                const normalized = u.parse(folder.uri);
                list2 = list2.filter((item) => isParentFolder(normalized.fsPath, item.file));
              }
            } else if (parsedArgs.buffer) {
              const doc = await workspace_default.document;
              const normalized = u.parse(doc.uri);
              list2 = list2.filter((item) => item.file === normalized.fsPath);
            }
            if (typeof parsedArgs.level === "string") {
              let level2 = severityLevel(parsedArgs.level);
              list2 = list2.filter((item) => item.level <= level2);
            }
            return list2;
          }
          async loadItems(context) {
            let { cwd: cwd2, args } = context;
            const parsedArgs = this.parseArguments(args);
            let list2 = await this.filterDiagnostics(parsedArgs);
            const config = this.getConfig();
            const includeCode = config.get("includeCode", true);
            const pathFormat = config.get("pathFormat", "full");
            const unformatted = list2.map((item) => {
              return {
                label: convertToLabel(item, cwd2, includeCode, pathFormat),
                location: item.location
              };
            });
            return formatListItems(this.alignColumns, unformatted);
          }
          doHighlight() {
            let { nvim } = this;
            nvim.pauseNotification();
            nvim.command("syntax match CocDiagnosticsFile /\\v^\\s*\\S+/ contained containedin=CocDiagnosticsLine", true);
            nvim.command("syntax match CocDiagnosticsError /\\tError\\s*\\t/ contained containedin=CocDiagnosticsLine", true);
            nvim.command("syntax match CocDiagnosticsWarning /\\tWarning\\s*\\t/ contained containedin=CocDiagnosticsLine", true);
            nvim.command("syntax match CocDiagnosticsInfo /\\tInformation\\s*\\t/ contained containedin=CocDiagnosticsLine", true);
            nvim.command("syntax match CocDiagnosticsHint /\\tHint\\s*\\t/ contained containedin=CocDiagnosticsLine", true);
            nvim.command("highlight default link CocDiagnosticsFile Comment", true);
            nvim.command("highlight default link CocDiagnosticsError CocErrorSign", true);
            nvim.command("highlight default link CocDiagnosticsWarning CocWarningSign", true);
            nvim.command("highlight default link CocDiagnosticsInfo CocInfoSign", true);
            nvim.command("highlight default link CocDiagnosticsHint CocHintSign", true);
            nvim.resumeNotification(false, true);
          }
        };
      }
    });
    
    // src/list/source/extensions.ts
    function sortExtensionItem(a2, b2) {
      if (a2.data.priority != b2.data.priority) {
        return b2.data.priority - a2.data.priority;
      }
      return b2.data.id > a2.data.id ? 1 : -1;
    }
    function getExtensionPrefix(state) {
      let prefix2 = "+";
      if (state == "disabled") {
        prefix2 = "-";
      } else if (state == "activated") {
        prefix2 = "*";
      } else if (state == "unknown") {
        prefix2 = "?";
      }
      return prefix2;
    }
    function getExtensionPriority(stat) {
      switch (stat) {
        case "unknown":
          return 2;
        case "activated":
          return 1;
        case "disabled":
          return -1;
        default:
          return 0;
      }
    }
    var delay2, ExtensionList;
    var init_extensions = __esm({
      "src/list/source/extensions.ts"() {
        "use strict";
        init_esm();
        init_extension();
        init_util();
        init_node();
        init_workspace();
        init_basic();
        init_formatting();
        delay2 = getConditionValue(50, 0);
        ExtensionList = class extends BasicList {
          constructor(manager) {
            super();
            this.manager = manager;
            this.addAction("toggle", async (item) => {
              let { id: id2, state } = item.data;
              if (state == "disabled") return;
              if (state == "activated") {
                await this.manager.deactivate(id2);
              } else {
                await this.manager.activate(id2);
              }
              await wait(delay2);
            }, { persist: true, reload: true, parallel: true });
            this.addAction("configuration", async (item) => {
              let { root } = item.data;
              let jsonFile = path.join(root, "package.json");
              if (fs.existsSync(jsonFile)) {
                let lines = fs.readFileSync(jsonFile, "utf8").split(/\r?\n/);
                let idx = lines.findIndex((s2) => s2.includes('"contributes"'));
                await workspace_default.jumpTo(u.file(jsonFile), { line: idx == -1 ? 0 : idx, character: 0 });
              }
            });
            this.addAction("open", async (item) => {
              let { root } = item.data;
              workspace_default.nvim.call("coc#ui#open_url", [root], true);
            });
            this.addAction("disable", async (item) => {
              let { id: id2, state } = item.data;
              if (state !== "disabled") await this.manager.toggleExtension(id2);
            }, { persist: true, reload: true, parallel: true });
            this.addAction("enable", async (item) => {
              let { id: id2, state } = item.data;
              if (state == "disabled") await this.manager.toggleExtension(id2);
            }, { persist: true, reload: true, parallel: true });
            this.addAction("lock", async (item) => {
              let { id: id2 } = item.data;
              this.manager.states.setLocked(id2, true);
            }, { persist: true, reload: true });
            this.addAction("help", async (item) => {
              let { root } = item.data;
              let files = fs.readdirSync(root, { encoding: "utf8" });
              let file = files.find((f2) => /^readme/i.test(f2));
              if (file) await workspace_default.jumpTo(u.file(path.join(root, file)));
            });
            this.addAction("reload", async (item) => {
              let { id: id2 } = item.data;
              await this.manager.reloadExtension(id2);
            }, { persist: true, reload: true });
            this.addMultipleAction("uninstall", async (items) => {
              let ids = [];
              for (let item of items) {
                if (item.data.isLocal) continue;
                ids.push(item.data.id);
              }
              await this.manager.uninstallExtensions(ids);
            });
          }
          manager;
          defaultAction = "toggle";
          description = "manage coc extensions";
          name = "extensions";
          async loadItems() {
            let items = [];
            let list2 = await extension_default.getExtensionStates();
            for (let stat of list2) {
              let prefix2 = getExtensionPrefix(stat.state);
              let root = fs.realpathSync(stat.root);
              let locked = stat.isLocked;
              items.push({
                label: [`${prefix2} ${stat.id}${locked ? " \uE0A2" : ""}`, ...stat.isLocal ? ["[RTP]"] : [], stat.version, root.replace(os.homedir(), "~")],
                filterText: stat.id,
                data: {
                  id: stat.id,
                  root,
                  state: stat.state,
                  isLocal: stat.isLocal,
                  priority: getExtensionPriority(stat.state)
                }
              });
            }
            items.sort(sortExtensionItem);
            return formatListItems(this.alignColumns, items);
          }
          doHighlight() {
            let { nvim } = this;
            nvim.pauseNotification();
            nvim.command("syntax match CocExtensionsActivated /\\v^\\*/ contained containedin=CocExtensionsLine", true);
            nvim.command("syntax match CocExtensionsLoaded /\\v^\\+/ contained containedin=CocExtensionsLine", true);
            nvim.command("syntax match CocExtensionsDisabled /\\v^-/ contained containedin=CocExtensionsLine", true);
            nvim.command("syntax match CocExtensionsName /\\v%3c\\S+/ contained containedin=CocExtensionsLine", true);
            nvim.command("syntax match CocExtensionsRoot /\\v\\t[^\\t]*$/ contained containedin=CocExtensionsLine", true);
            nvim.command("syntax match CocExtensionsLocal /\\v\\[RTP\\]/ contained containedin=CocExtensionsLine", true);
            nvim.command("highlight default link CocExtensionsActivated Special", true);
            nvim.command("highlight default link CocExtensionsLoaded Normal", true);
            nvim.command("highlight default link CocExtensionsDisabled Comment", true);
            nvim.command("highlight default link CocExtensionsName String", true);
            nvim.command("highlight default link CocExtensionsLocal MoreMsg", true);
            nvim.command("highlight default link CocExtensionsRoot Comment", true);
            nvim.resumeNotification(false, true);
          }
        };
      }
    });
    
    // src/list/source/folders.ts
    var FoldList;
    var init_folders = __esm({
      "src/list/source/folders.ts"() {
        "use strict";
        init_esm();
        init_fs();
        init_window();
        init_workspace();
        init_basic();
        FoldList = class extends BasicList {
          defaultAction = "edit";
          description = "list of current workspace folders";
          name = "folders";
          constructor() {
            super();
            this.addAction("edit", async (item) => {
              let newPath = await this.nvim.call("input", ["Folder: ", item.label, "dir"]);
              if (!isDirectory(newPath)) {
                void window_default.showWarningMessage(`invalid path: ${newPath}`);
                return;
              }
              workspace_default.workspaceFolderControl.renameWorkspaceFolder(item.label, newPath);
            });
            this.addAction("delete", async (item) => {
              workspace_default.workspaceFolderControl.removeWorkspaceFolder(item.label);
            }, { reload: true, persist: true });
            this.addAction("newfile", async (item, context) => {
              let file = await window_default.requestInput("File name", item.label + "/");
              if (!file) return;
              await workspace_default.createFile(file, { overwrite: false, ignoreIfExists: true });
              await this.jumpTo(u.file(file).toString(), null, context);
            });
          }
          async loadItems() {
            return workspace_default.folderPaths.map((p2) => ({ label: p2 }));
          }
        };
      }
    });
    
    // src/list/source/links.ts
    var LinksList;
    var init_links = __esm({
      "src/list/source/links.ts"() {
        "use strict";
        init_main();
        init_languages();
        init_workspace();
        init_basic();
        init_formatting();
        LinksList = class extends BasicList {
          defaultAction = "open";
          description = "links of current buffer";
          name = "links";
          constructor() {
            super();
            this.addAction("open", async (item) => {
              let { target } = item.data;
              await workspace_default.openResource(target);
            });
            this.addAction("jump", async (item) => {
              let { location } = item.data;
              await workspace_default.jumpTo(location.uri, location.range.start);
            });
          }
          async loadItems(context, token) {
            let buf = await context.window.buffer;
            let doc = workspace_default.getAttachedDocument(buf.id);
            let items = [];
            let links2 = await languages_default.getDocumentLinks(doc.textDocument, token);
            if (links2 == null) throw new Error("Links provider not found.");
            for (let link of links2) {
              link = link.target ? link : await languages_default.resolveDocumentLink(link, token);
              if (link.target) {
                items.push({
                  label: formatUri(link.target, workspace_default.cwd),
                  data: {
                    target: link.target,
                    location: Location.create(doc.uri, link.range)
                  }
                });
              }
            }
            return items;
          }
        };
      }
    });
    
    // src/list/source/lists.ts
    function mruScore(list2, key) {
      let idx = list2.indexOf(key);
      return idx == -1 ? -1 : list2.length - idx;
    }
    var ListsList;
    var init_lists = __esm({
      "src/list/source/lists.ts"() {
        "use strict";
        init_mru();
        init_string();
        init_basic();
        init_formatting();
        ListsList = class extends BasicList {
          constructor(listMap) {
            super();
            this.listMap = listMap;
            this.addAction("open", async (item) => {
              let { name: name2 } = item.data;
              await this.mru.add(name2);
              setTimeout(() => {
                this.nvim.command(`CocList ${name2}`, true);
              }, 50);
            });
          }
          listMap;
          name = "lists";
          defaultAction = "open";
          description = "registered lists of coc.nvim";
          mru = new Mru("lists");
          async loadItems(_context) {
            let items = [];
            let mruList = await this.mru.load();
            for (let list2 of this.listMap.values()) {
              if (list2.name == "lists") continue;
              items.push({
                label: [list2.name, toText(list2.description)],
                data: {
                  name: list2.name,
                  interactive: list2.interactive,
                  score: mruScore(mruList, list2.name)
                }
              });
            }
            items.sort((a2, b2) => b2.data.score - a2.data.score);
            return formatListItems(this.alignColumns, items);
          }
          doHighlight() {
            let { nvim } = this;
            nvim.pauseNotification();
            nvim.command("syntax match CocListsDesc /\\t.*$/ contained containedin=CocListsLine", true);
            nvim.command("highlight default link CocListsDesc Comment", true);
            nvim.resumeNotification(false, true);
          }
        };
      }
    });
    
    // src/list/source/notifications.ts
    var NotificationsList;
    var init_notifications2 = __esm({
      "src/list/source/notifications.ts"() {
        "use strict";
        init_window();
        init_basic();
        NotificationsList = class extends BasicList {
          defaultAction = "clear";
          description = "notifications history";
          name = "notifications";
          constructor() {
            super();
            this.addAction("clear", async () => {
              window_default.notifications.clearHistory();
            });
          }
          async loadItems() {
            return window_default.notifications.history.map((item) => {
              return {
                label: `${item.time} ${item.kind.toUpperCase().padEnd(7)} ${item.message}`,
                filterText: item.message
              };
            });
          }
          doHighlight() {
            let { nvim } = this;
            nvim.pauseNotification();
            nvim.command("syntax match CocNotificationTime /\\v^\\s*\\S+/ contained containedin=CocNotificationsLine", true);
            nvim.command("syntax match CocNotificationInfo /\\/ contained containedin=CocNotificationsLine", true);
            nvim.command("syntax match CocNotificationError /\\/ contained containedin=CocNotificationsLine", true);
            nvim.command("syntax match CocNotificationWarning /\\/ contained containedin=CocNotificationsLine", true);
            nvim.command("highlight default link CocNotificationTime Comment", true);
            nvim.command("highlight default link CocNotificationInfo CocInfoSign", true);
            nvim.command("highlight default link CocNotificationError CocErrorSign", true);
            nvim.command("highlight default link CocNotificationWarning CocWarningSign", true);
            nvim.resumeNotification(false, true);
          }
        };
      }
    });
    
    // src/list/source/outline.ts
    function symbolsToListItems(symbols, uri, filterKind) {
      let items = [];
      const addSymbols = (symbols2, level2 = 0) => {
        symbols2.sort((a2, b2) => {
          return compareRangesUsingStarts(a2.selectionRange, b2.selectionRange);
        });
        for (let s2 of symbols2) {
          let kind = getSymbolKind(s2.kind);
          let location = Location.create(uri, s2.selectionRange);
          items.push({
            label: [`${"| ".repeat(level2)}${s2.name}`, `[${kind}]`, `${s2.range.start.line + 1}`],
            filterText: getFilterText(s2, filterKind),
            location,
            data: { kind }
          });
          if (!isFalsyOrEmpty(s2.children)) {
            addSymbols(s2.children, level2 + 1);
          }
        }
      };
      addSymbols(symbols);
      if (filterKind) {
        items = items.filter((o2) => o2.data.kind.toLowerCase().indexOf(filterKind) == 0);
      }
      return items;
    }
    function getFilterText(s2, kind) {
      if (typeof kind === "string" && kind.length > 0) return s2.name;
      return `${s2.name}${getSymbolKind(s2.kind)}`;
    }
    async function loadCtagsSymbols(document2, nvim, token) {
      if (!which.sync("ctags", { nothrow: true })) {
        return [];
      }
      let uri = u.parse(document2.uri);
      let extname = path.extname(uri.fsPath);
      let content = "";
      let tempname = await nvim.call("tempname");
      let filepath = `${tempname}.${extname}`;
      let cwd2 = path.dirname(tempname);
      let escaped = await nvim.call("fnameescape", filepath);
      await writeFile(escaped, document2.getDocumentContent());
      try {
        content = await runCommand(`ctags -f - --excmd=number --language-force=${document2.filetype} ${escaped}`, { cwd: cwd2 }, token);
      } catch (e2) {
      }
      if (!content.trim().length) {
        content = await runCommand(`ctags -f - --excmd=number ${escaped}`, { cwd: cwd2 }, token);
      }
      content = content.trim();
      if (!content) return [];
      return contentToItems(content, document2);
    }
    function contentToItems(content, document2) {
      let lines = content.split(/\r?\n/);
      let items = [];
      for (let line of lines) {
        let parts = line.split("	");
        if (parts.length < 4) continue;
        let lnum = Number(parts[2].replace(/;"$/, ""));
        let text = document2.getline(lnum - 1);
        let idx = text.indexOf(parts[0]);
        let start = idx == -1 ? 0 : idx;
        let range2 = Range.create(lnum - 1, start, lnum - 1, start + parts[0].length);
        items.push({
          label: `${parts[0]} [${parts[3]}] ${lnum}`,
          filterText: parts[0],
          location: Location.create(document2.uri, range2),
          data: { line: lnum }
        });
      }
      items.sort((a2, b2) => a2.data.line - b2.data.line);
      return items;
    }
    var Outline;
    var init_outline = __esm({
      "src/list/source/outline.ts"() {
        "use strict";
        init_main();
        init_esm();
        init_languages();
        init_array();
        init_convert();
        init_fs();
        init_node();
        init_position();
        init_processes();
        init_workspace();
        init_formatting();
        init_location();
        Outline = class extends LocationList {
          description = "symbols of current document";
          name = "outline";
          options = [{
            name: "-k, -kind KIND",
            hasValue: true,
            description: "filter symbol by kind"
          }];
          async loadItems(context, token) {
            let document2 = workspace_default.getAttachedDocument(context.buffer.id);
            let config = this.getConfig();
            let ctagsFiletypes = config.get("ctagsFiletypes", []);
            let symbols;
            let args = this.parseArguments(context.args);
            let filterKind = args.kind ? args.kind.toString().toLowerCase() : null;
            if (!ctagsFiletypes.includes(document2.filetype)) {
              symbols = await languages_default.getDocumentSymbol(document2.textDocument, token);
            }
            if (token.isCancellationRequested) return [];
            if (!symbols) return await loadCtagsSymbols(document2, this.nvim, token);
            if (isFalsyOrEmpty(symbols)) return [];
            let items = symbolsToListItems(symbols, document2.uri, filterKind);
            return formatListItems(this.alignColumns, items);
          }
          doHighlight() {
            let { nvim } = this;
            nvim.pauseNotification();
            nvim.command("syntax match CocOutlineName /\\v\\s?[^\\t]+\\s/ contained containedin=CocOutlineLine", true);
            nvim.command("syntax match CocOutlineIndentLine /\\v\\|/ contained containedin=CocOutlineLine,CocOutlineName", true);
            nvim.command("syntax match CocOutlineKind /\\[\\w\\+\\]/ contained containedin=CocOutlineLine", true);
            nvim.command("syntax match CocOutlineLine /\\d\\+$/ contained containedin=CocOutlineLine", true);
            nvim.command("highlight default link CocOutlineName Normal", true);
            nvim.command("highlight default link CocOutlineIndentLine Comment", true);
            nvim.command("highlight default link CocOutlineKind Typedef", true);
            nvim.command("highlight default link CocOutlineLine Comment", true);
            nvim.resumeNotification(false, true);
          }
        };
      }
    });
    
    // src/language-client/features.ts
    function ensure(target, key) {
      if (target[key] === void 0) {
        target[key] = {};
      }
      return target[key];
    }
    var LSPCancellationError, BaseFeature, StaticFeature, DynamicFeature, DynamicDocumentFeature, TextDocumentEventFeature, TextDocumentLanguageFeature;
    var init_features = __esm({
      "src/language-client/features.ts"() {
        "use strict";
        init_errors();
        init_is();
        init_protocol();
        init_workspace();
        init_util();
        LSPCancellationError = class extends CancellationError {
          data;
          constructor(data) {
            super();
            this.data = data;
          }
        };
        BaseFeature = class {
          _client;
          constructor(client) {
            this._client = client;
          }
          sendRequest(type, params, token, defaultValue2) {
            return this._client.sendRequest(type, params, token).then(((res) => {
              return token.isCancellationRequested || res == null ? defaultValue2 ?? null : res;
            }), (error) => {
              return this._client.handleFailedRequest(type, token, error, defaultValue2 ?? null);
            });
          }
        };
        ((StaticFeature4) => {
          function is(value) {
            return value !== void 0 && value !== null && func(value.fillClientCapabilities) && func(value.initialize) && func(value.dispose) && (value.fillInitializeParams === void 0 || func(value.fillInitializeParams)) && value.registrationType === void 0;
          }
          StaticFeature4.is = is;
        })(StaticFeature || (StaticFeature = {}));
        ((DynamicFeature8) => {
          function is(value) {
            const candidate = value;
            return candidate !== void 0 && candidate !== null && func(candidate.fillClientCapabilities) && func(candidate.initialize) && func(candidate.dispose) && (candidate.fillInitializeParams === void 0 || func(candidate.fillInitializeParams)) && func(candidate.register) && func(candidate.unregister) && candidate.registrationType !== void 0;
          }
          DynamicFeature8.is = is;
        })(DynamicFeature || (DynamicFeature = {}));
        DynamicDocumentFeature = class extends BaseFeature {
          constructor(client) {
            super(client);
          }
          /**
           * Returns the state the feature is in.
           */
          getState() {
            const selectors = this.getDocumentSelectors();
            let count = 0;
            for (const selector of selectors) {
              count++;
              for (const document2 of workspace_default.textDocuments) {
                if (workspace_default.match(selector, document2) > 0) {
                  return { kind: "document", id: this.registrationType.method, registrations: true, matches: true };
                }
              }
            }
            const registrations = count > 0;
            return { kind: "document", id: this.registrationType.method, registrations, matches: false };
          }
          sendWithMiddleware(fn, key, ...params) {
            const middleware = this._client.middleware;
            return middleware[key] ? middleware[key](...params, fn) : fn(...params);
          }
        };
        TextDocumentEventFeature = class extends DynamicDocumentFeature {
          _event;
          _type;
          _middleware;
          _createParams;
          _selectorFilter;
          _listener;
          _selectors;
          _onAboutToSendNotification;
          _onNotificationSent;
          static textDocumentFilter(selectors, textDocument) {
            for (const selector of selectors) {
              if (workspace_default.match(selector, textDocument) > 0) {
                return true;
              }
            }
            return false;
          }
          constructor(client, event, type, middleware, createParams, selectorFilter) {
            super(client);
            this._event = event;
            this._type = type;
            this._middleware = middleware;
            this._createParams = createParams;
            this._selectorFilter = selectorFilter;
            this._selectors = /* @__PURE__ */ new Map();
            this._onAboutToSendNotification = new import_node4.Emitter();
            this._onNotificationSent = new import_node4.Emitter();
          }
          getDocumentSelectors() {
            return this._selectors.values();
          }
          register(data) {
            if (!data.registerOptions.documentSelector) {
              return;
            }
            if (!this._listener) {
              this._listener = this._event((data2) => {
                this.callback(data2).catch((error) => {
                  this._client.error(`Sending document notification ${this._type.method} failed.`, error);
                });
              });
            }
            this._selectors.set(data.id, data.registerOptions.documentSelector);
          }
          async callback(data) {
            if (!this.matches(data)) return;
            return await this.sendNotification(data);
          }
          async sendNotification(data) {
            const doSend = async (data2) => {
              const params = this._createParams(data2);
              this.aboutToSendNotification(data2, this._type, params);
              await this._client.sendNotification(this._type, params);
              this.notificationSent(data2, this._type, params);
            };
            return this.sendWithMiddleware(doSend, this._middleware, data);
          }
          matches(data) {
            return !this._selectorFilter || this._selectorFilter(this._selectors.values(), data);
          }
          get onNotificationSent() {
            return this._onNotificationSent.event;
          }
          get onAboutToSendNotification() {
            return this._onAboutToSendNotification.event;
          }
          aboutToSendNotification(data, type, params) {
            this._onAboutToSendNotification.fire({ original: data, type, params });
          }
          notificationSent(data, type, params) {
            this._onNotificationSent.fire({ original: data, type, params });
          }
          unregister(id2) {
            this._selectors.delete(id2);
          }
          dispose() {
            this._selectors.clear();
            this._onAboutToSendNotification.dispose();
            this._onAboutToSendNotification = new import_node4.Emitter();
            this._onNotificationSent.dispose();
            this._onNotificationSent = new import_node4.Emitter();
            if (this._listener) {
              this._listener.dispose();
              this._listener = void 0;
            }
          }
          getProvider(document2) {
            for (const selector of this.getDocumentSelectors()) {
              if (workspace_default.match(selector, document2) > 0) {
                return {
                  send: (data) => {
                    return this.callback(data);
                  }
                };
              }
            }
            return void 0;
          }
        };
        TextDocumentLanguageFeature = class extends DynamicDocumentFeature {
          _registrationType;
          _registrations;
          constructor(client, registrationType) {
            super(client);
            this._registrationType = registrationType;
            this._registrations = /* @__PURE__ */ new Map();
          }
          *getDocumentSelectors() {
            for (const registration of this._registrations.values()) {
              const selector = registration.data.registerOptions.documentSelector;
              if (selector != null) {
                yield selector;
              }
            }
          }
          get registrationType() {
            return this._registrationType;
          }
          get registrationLength() {
            return this._registrations.size;
          }
          register(data) {
            if (!data.registerOptions.documentSelector) {
              return;
            }
            let registration = this.registerLanguageProvider(data.registerOptions, data.id);
            this._registrations.set(data.id, { disposable: registration[0], data, provider: registration[1] });
          }
          unregister(id2) {
            let registration = this._registrations.get(id2);
            if (registration !== void 0) {
              this._registrations.delete(id2);
              registration.disposable.dispose();
            }
          }
          dispose() {
            this._registrations.forEach((value) => {
              value.disposable.dispose();
            });
            this._registrations.clear();
          }
          getRegistration(documentSelector, capability) {
            if (!capability) {
              return [void 0, void 0];
            } else if (import_node4.TextDocumentRegistrationOptions.is(capability)) {
              const id2 = import_node4.StaticRegistrationOptions.hasId(capability) ? capability.id : crypto.randomUUID();
              const selector = defaultValue(capability.documentSelector, documentSelector);
              return [id2, Object.assign({}, capability, { documentSelector: selector })];
            } else if (boolean(capability) && capability === true || import_node4.WorkDoneProgressOptions.is(capability)) {
              const options3 = capability === true ? { documentSelector } : Object.assign({}, capability, { documentSelector });
              return [crypto.randomUUID(), options3];
            }
            return [void 0, void 0];
          }
          getRegistrationOptions(documentSelector, capability) {
            if (!documentSelector || !capability) {
              return void 0;
            }
            return boolean(capability) && capability === true ? { documentSelector } : Object.assign({}, capability, { documentSelector });
          }
          getProvider(textDocument) {
            for (const registration of this._registrations.values()) {
              let selector = registration.data.registerOptions.documentSelector;
              if (selector !== null && workspace_default.match(selector, textDocument) > 0) {
                return registration.provider;
              }
            }
            return void 0;
          }
          getAllProviders() {
            const result = [];
            for (const item of this._registrations.values()) {
              result.push(item.provider);
            }
            return result;
          }
        };
      }
    });
    
    // src/language-client/callHierarchy.ts
    var CallHierarchyFeature;
    var init_callHierarchy = __esm({
      "src/language-client/callHierarchy.ts"() {
        "use strict";
        init_languages();
        init_protocol();
        init_features();
        CallHierarchyFeature = class extends TextDocumentLanguageFeature {
          constructor(client) {
            super(client, import_node4.CallHierarchyPrepareRequest.type);
          }
          fillClientCapabilities(cap) {
            const capabilities = cap;
            const capability = ensure(ensure(capabilities, "textDocument"), "callHierarchy");
            capability.dynamicRegistration = true;
          }
          initialize(capabilities, documentSelector) {
            const [id2, options3] = this.getRegistration(documentSelector, capabilities.callHierarchyProvider);
            if (!id2 || !options3) {
              return;
            }
            this.register({ id: id2, registerOptions: options3 });
          }
          registerLanguageProvider(options3) {
            const provider = {
              prepareCallHierarchy: (document2, position, token) => {
                const client = this._client;
                const prepareCallHierarchy = (document3, position2, token2) => {
                  const params = client.code2ProtocolConverter.asTextDocumentPositionParams(document3, position2);
                  return this.sendRequest(import_node4.CallHierarchyPrepareRequest.type, params, token2);
                };
                const middleware = client.middleware;
                return middleware.prepareCallHierarchy ? middleware.prepareCallHierarchy(document2, position, token, prepareCallHierarchy) : prepareCallHierarchy(document2, position, token);
              },
              provideCallHierarchyIncomingCalls: (item, token) => {
                const client = this._client;
                const provideCallHierarchyIncomingCalls = (item2, token2) => {
                  return this.sendRequest(import_node4.CallHierarchyIncomingCallsRequest.type, { item: item2 }, token2);
                };
                const middleware = client.middleware;
                return middleware.provideCallHierarchyIncomingCalls ? middleware.provideCallHierarchyIncomingCalls(item, token, provideCallHierarchyIncomingCalls) : provideCallHierarchyIncomingCalls(item, token);
              },
              provideCallHierarchyOutgoingCalls: (item, token) => {
                const client = this._client;
                const provideCallHierarchyOutgoingCalls = (item2, token2) => {
                  return this.sendRequest(import_node4.CallHierarchyOutgoingCallsRequest.type, { item: item2 }, token2);
                };
                const middleware = client.middleware;
                return middleware.provideCallHierarchyOutgoingCalls ? middleware.provideCallHierarchyOutgoingCalls(item, token, provideCallHierarchyOutgoingCalls) : provideCallHierarchyOutgoingCalls(item, token);
              }
            };
            this._client.attachExtensionName(provider);
            return [languages_default.registerCallHierarchyProvider(options3.documentSelector, provider), provider];
          }
        };
      }
    });
    
    // src/language-client/codeAction.ts
    var CodeActionFeature;
    var init_codeAction = __esm({
      "src/language-client/codeAction.ts"() {
        "use strict";
        init_main();
        init_commands();
        init_languages();
        init_protocol();
        init_features();
        CodeActionFeature = class extends TextDocumentLanguageFeature {
          disposables = [];
          constructor(client) {
            super(client, import_node4.CodeActionRequest.type);
          }
          fillClientCapabilities(capabilities) {
            const cap = ensure(ensure(capabilities, "textDocument"), "codeAction");
            cap.dynamicRegistration = true;
            cap.isPreferredSupport = true;
            cap.disabledSupport = true;
            cap.dataSupport = true;
            cap.honorsChangeAnnotations = false;
            cap.resolveSupport = {
              properties: ["edit"]
            };
            cap.codeActionLiteralSupport = {
              codeActionKind: {
                valueSet: [
                  CodeActionKind.Empty,
                  CodeActionKind.QuickFix,
                  CodeActionKind.Refactor,
                  CodeActionKind.RefactorExtract,
                  CodeActionKind.RefactorInline,
                  CodeActionKind.RefactorRewrite,
                  CodeActionKind.Source,
                  CodeActionKind.SourceOrganizeImports
                ]
              }
            };
          }
          initialize(capabilities, documentSelector) {
            const options3 = this.getRegistrationOptions(documentSelector, capabilities.codeActionProvider);
            if (!options3) {
              return;
            }
            this.register({
              id: crypto.randomUUID(),
              registerOptions: options3
            });
          }
          registerLanguageProvider(options3) {
            const registerCommand = (id2) => {
              const client = this._client;
              const executeCommand = (command, args) => {
                const params = {
                  command,
                  arguments: args
                };
                return client.sendRequest(import_node4.ExecuteCommandRequest.type, params);
              };
              this.disposables.push(commands_default.registerCommand(id2, (...args) => {
                return this.sendWithMiddleware(executeCommand, "executeCommand", id2, args);
              }, null, true));
            };
            const provider = {
              provideCodeActions: (document2, range2, context, token) => {
                const client = this._client;
                const _provideCodeActions = (document3, range3, context2, token2) => {
                  const params = {
                    textDocument: client.code2ProtocolConverter.asTextDocumentIdentifier(document3),
                    range: range3,
                    context: context2
                  };
                  return this.sendRequest(import_node4.CodeActionRequest.type, params, token2).then(
                    (values) => {
                      if (!values) return void 0;
                      values.forEach((val) => {
                        let cmd = Command.is(val) ? val.command : val.command?.command;
                        if (cmd && !commands_default.has(cmd)) registerCommand(cmd);
                      });
                      return values;
                    }
                  );
                };
                const middleware = client.middleware;
                return middleware.provideCodeActions ? middleware.provideCodeActions(document2, range2, context, token, _provideCodeActions) : _provideCodeActions(document2, range2, context, token);
              },
              resolveCodeAction: options3.resolveProvider ? (item, token) => {
                const middleware = this._client.middleware;
                const resolveCodeAction = (item2, token2) => {
                  return this.sendRequest(import_node4.CodeActionResolveRequest.type, item2, token2, item2);
                };
                return middleware.resolveCodeAction ? middleware.resolveCodeAction(item, token, resolveCodeAction) : resolveCodeAction(item, token);
              } : void 0
            };
            this._client.attachExtensionName(provider);
            return [languages_default.registerCodeActionProvider(options3.documentSelector, provider, this._client.id, options3.codeActionKinds), provider];
          }
          dispose() {
            this.disposables.forEach((o2) => {
              o2.dispose();
            });
            this.disposables = [];
            super.dispose();
          }
        };
      }
    });
    
    // src/language-client/codeLens.ts
    var CodeLensFeature;
    var init_codeLens = __esm({
      "src/language-client/codeLens.ts"() {
        "use strict";
        init_languages();
        init_protocol();
        init_features();
        CodeLensFeature = class extends TextDocumentLanguageFeature {
          constructor(client) {
            super(client, import_node4.CodeLensRequest.type);
          }
          fillClientCapabilities(capabilities) {
            let codeLens = ensure(ensure(capabilities, "textDocument"), "codeLens");
            codeLens.dynamicRegistration = true;
            codeLens.resolveSupport = { properties: ["command"] };
            ensure(ensure(capabilities, "workspace"), "codeLens").refreshSupport = true;
          }
          initialize(capabilities, documentSelector) {
            const client = this._client;
            client.onRequest(import_node4.CodeLensRefreshRequest.type, async () => {
              for (const provider of this.getAllProviders()) {
                provider.onDidChangeCodeLensEmitter.fire();
              }
            });
            const options3 = this.getRegistrationOptions(documentSelector, capabilities.codeLensProvider);
            if (!options3) return;
            this.register({ id: crypto.randomUUID(), registerOptions: options3 });
          }
          registerLanguageProvider(options3) {
            const emitter = new import_node4.Emitter();
            const provider = {
              onDidChangeCodeLenses: emitter.event,
              provideCodeLenses: (document2, token) => {
                const client = this._client;
                const provideCodeLenses = (document3, token2) => {
                  return this.sendRequest(
                    import_node4.CodeLensRequest.type,
                    client.code2ProtocolConverter.asCodeLensParams(document3),
                    token2
                  );
                };
                const middleware = client.middleware;
                return middleware.provideCodeLenses ? middleware.provideCodeLenses(document2, token, provideCodeLenses) : provideCodeLenses(document2, token);
              },
              resolveCodeLens: options3.resolveProvider ? (codeLens, token) => {
                const client = this._client;
                const resolveCodeLens = (codeLens2, token2) => {
                  return this.sendRequest(
                    import_node4.CodeLensResolveRequest.type,
                    codeLens2,
                    token2,
                    codeLens2
                  );
                };
                const middleware = client.middleware;
                return middleware.resolveCodeLens ? middleware.resolveCodeLens(codeLens, token, resolveCodeLens) : resolveCodeLens(codeLens, token);
              } : void 0
            };
            this._client.attachExtensionName(provider);
            return [languages_default.registerCodeLensProvider(options3.documentSelector, provider), { provider, onDidChangeCodeLensEmitter: emitter }];
          }
        };
      }
    });
    
    // src/language-client/colorProvider.ts
    var ColorProviderFeature;
    var init_colorProvider = __esm({
      "src/language-client/colorProvider.ts"() {
        "use strict";
        init_languages();
        init_protocol();
        init_features();
        ColorProviderFeature = class extends TextDocumentLanguageFeature {
          constructor(client) {
            super(client, import_node4.DocumentColorRequest.type);
          }
          fillClientCapabilities(capabilities) {
            ensure(ensure(capabilities, "textDocument"), "colorProvider").dynamicRegistration = true;
          }
          initialize(capabilities, documentSelector) {
            let [id2, options3] = this.getRegistration(documentSelector, capabilities.colorProvider);
            if (!id2 || !options3) {
              return;
            }
            this.register({ id: id2, registerOptions: options3 });
          }
          registerLanguageProvider(options3) {
            const provider = {
              provideColorPresentations: (color, context, token) => {
                const client = this._client;
                const provideColorPresentations = (color2, context2, token2) => {
                  const requestParams = {
                    color: color2,
                    textDocument: client.code2ProtocolConverter.asTextDocumentIdentifier(context2.document),
                    range: context2.range
                  };
                  return this.sendRequest(import_node4.ColorPresentationRequest.type, requestParams, token2);
                };
                const middleware = client.middleware;
                return middleware.provideColorPresentations ? middleware.provideColorPresentations(color, context, token, provideColorPresentations) : provideColorPresentations(color, context, token);
              },
              provideDocumentColors: (document2, token) => {
                const client = this._client;
                const provideDocumentColors = (document3, token2) => {
                  const requestParams = {
                    textDocument: client.code2ProtocolConverter.asTextDocumentIdentifier(document3)
                  };
                  return this.sendRequest(import_node4.DocumentColorRequest.type, requestParams, token2);
                };
                const middleware = client.middleware;
                return middleware.provideDocumentColors ? middleware.provideDocumentColors(document2, token, provideDocumentColors) : provideDocumentColors(document2, token);
              }
            };
            this._client.attachExtensionName(provider);
            return [languages_default.registerDocumentColorProvider(options3.documentSelector, provider), provider];
          }
        };
      }
    });
    
    // src/language-client/completion.ts
    var SupportedCompletionItemKinds, CompletionItemFeature;
    var init_completion = __esm({
      "src/language-client/completion.ts"() {
        "use strict";
        init_main();
        init_languages();
        init_protocol();
        init_workspace();
        init_features();
        SupportedCompletionItemKinds = [
          CompletionItemKind.Text,
          CompletionItemKind.Method,
          CompletionItemKind.Function,
          CompletionItemKind.Constructor,
          CompletionItemKind.Field,
          CompletionItemKind.Variable,
          CompletionItemKind.Class,
          CompletionItemKind.Interface,
          CompletionItemKind.Module,
          CompletionItemKind.Property,
          CompletionItemKind.Unit,
          CompletionItemKind.Value,
          CompletionItemKind.Enum,
          CompletionItemKind.Keyword,
          CompletionItemKind.Snippet,
          CompletionItemKind.Color,
          CompletionItemKind.File,
          CompletionItemKind.Reference,
          CompletionItemKind.Folder,
          CompletionItemKind.EnumMember,
          CompletionItemKind.Constant,
          CompletionItemKind.Struct,
          CompletionItemKind.Event,
          CompletionItemKind.Operator,
          CompletionItemKind.TypeParameter
        ];
        CompletionItemFeature = class extends TextDocumentLanguageFeature {
          constructor(client) {
            super(client, import_node4.CompletionRequest.type);
          }
          fillClientCapabilities(capabilities) {
            let snippetSupport = this._client.clientOptions.disableSnippetCompletion !== true && workspace_default.getConfiguration("suggest").get("snippetsSupport", true);
            let completion = ensure(ensure(capabilities, "textDocument"), "completion");
            completion.dynamicRegistration = true;
            completion.contextSupport = true;
            completion.completionItem = {
              snippetSupport,
              commitCharactersSupport: true,
              documentationFormat: this._client.supportedMarkupKind,
              deprecatedSupport: true,
              preselectSupport: true,
              insertReplaceSupport: true,
              tagSupport: { valueSet: [CompletionItemTag.Deprecated] },
              resolveSupport: { properties: ["documentation", "detail", "additionalTextEdits"] },
              labelDetailsSupport: true,
              insertTextModeSupport: { valueSet: [InsertTextMode.asIs, InsertTextMode.adjustIndentation] }
            };
            completion.completionItemKind = { valueSet: SupportedCompletionItemKinds };
            completion.insertTextMode = InsertTextMode.adjustIndentation;
            completion.completionList = {
              itemDefaults: [
                "commitCharacters",
                "editRange",
                "insertTextFormat",
                "insertTextMode",
                "data"
              ],
              applyKindSupport: true
            };
          }
          initialize(capabilities, documentSelector) {
            const options3 = this.getRegistrationOptions(documentSelector, capabilities.completionProvider);
            if (!options3) return;
            this.register({
              id: crypto.randomUUID(),
              registerOptions: options3
            });
          }
          registerLanguageProvider(options3, id2) {
            let triggerCharacters = options3.triggerCharacters || [];
            let allCommitCharacters = options3.allCommitCharacters || [];
            const provider = {
              provideCompletionItems: (document2, position, token, context) => {
                const middleware = this._client.middleware;
                const provideCompletionItems = (document3, position2, context2, token2) => {
                  return this.sendRequest(
                    import_node4.CompletionRequest.type,
                    this._client.code2ProtocolConverter.asCompletionParams(document3, position2, context2),
                    token2,
                    []
                  );
                };
                return middleware.provideCompletionItem ? middleware.provideCompletionItem(document2, position, context, token, provideCompletionItems) : provideCompletionItems(document2, position, context, token);
              },
              resolveCompletionItem: options3.resolveProvider ? (item, token) => {
                const middleware = this._client.middleware;
                const resolveCompletionItem = (item2, token2) => {
                  return this.sendRequest(
                    import_node4.CompletionResolveRequest.type,
                    item2,
                    token2,
                    item2
                  );
                };
                return middleware.resolveCompletionItem ? middleware.resolveCompletionItem(item, token, resolveCompletionItem) : resolveCompletionItem(item, token);
              } : void 0
            };
            this._client.attachExtensionName(provider);
            let name2 = this._client.id + (this.registrationLength == 0 ? "" : "-" + id2);
            const disposable = languages_default.registerCompletionItemProvider(
              name2,
              "LS",
              options3.documentSelector,
              provider,
              triggerCharacters,
              options3.priority,
              allCommitCharacters
            );
            return [disposable, provider];
          }
        };
      }
    });
    
    // src/language-client/configuration.ts
    var PullConfigurationFeature, SyncConfigurationFeature;
    var init_configuration4 = __esm({
      "src/language-client/configuration.ts"() {
        "use strict";
        init_util2();
        init_util();
        init_is();
        init_protocol();
        init_workspace();
        init_features();
        PullConfigurationFeature = class {
          constructor(_client) {
            this._client = _client;
          }
          _client;
          get method() {
            return import_node4.ConfigurationRequest.method;
          }
          fillClientCapabilities(capabilities) {
            ensure(capabilities, "workspace").configuration = true;
          }
          getState() {
            return { kind: "static" };
          }
          initialize() {
            let client = this._client;
            let { configuredSection } = client;
            client.onRequest(import_node4.ConfigurationRequest.type, (params, token) => {
              let configuration2 = (params2) => {
                let result = [];
                for (let item of params2.items) {
                  let section2 = configuredSection ? configuredSection + (item.section ? `.${item.section}` : "") : item.section;
                  result.push(this.getConfiguration(item.scopeUri, section2));
                }
                return result;
              };
              let middleware = client.middleware.workspace;
              return middleware?.configuration ? middleware.configuration(params, token, configuration2) : configuration2(params, token);
            });
          }
          getConfiguration(resource, section2) {
            let result = null;
            if (section2) {
              let index = section2.lastIndexOf(".");
              if (index === -1) {
                result = toJSONObject(workspace_default.getConfiguration(void 0, resource).get(section2));
              } else {
                let config = workspace_default.getConfiguration(section2.substring(0, index), resource);
                result = toJSONObject(mergeConfigProperties(config))[section2.substring(index + 1)];
              }
            } else {
              let config = workspace_default.getConfiguration(section2, resource);
              result = {};
              for (let key of Object.keys(config)) {
                if (config.has(key)) {
                  result[key] = toJSONObject(config.get(key));
                }
              }
            }
            return result ?? null;
          }
          dispose() {
          }
        };
        SyncConfigurationFeature = class _SyncConfigurationFeature {
          constructor(_client) {
            this._client = _client;
          }
          _client;
          _listeners = /* @__PURE__ */ new Map();
          configuredUID;
          getState() {
            return { kind: "workspace", id: this.registrationType.method, registrations: this._listeners.size > 0 };
          }
          get registrationType() {
            return import_node4.DidChangeConfigurationNotification.type;
          }
          fillClientCapabilities(capabilities) {
            ensure(ensure(capabilities, "workspace"), "didChangeConfiguration").dynamicRegistration = true;
          }
          initialize() {
            let section2 = defaultValue(this._client.clientOptions.synchronize, {}).configurationSection;
            if (section2 !== void 0) {
              let id2 = this.configuredUID = crypto.randomUUID();
              this.register({
                id: id2,
                registerOptions: {
                  section: section2
                }
              });
            }
          }
          register(data) {
            if (this._client.configuredSection && data.id !== this.configuredUID) return;
            let { section: section2 } = data.registerOptions;
            let disposable = workspace_default.onDidChangeConfiguration((event) => {
              this.onDidChangeConfiguration(section2, event);
            });
            this._listeners.set(data.id, disposable);
            if (section2 !== void 0) {
              this.onDidChangeConfiguration(section2, void 0);
            }
          }
          unregister(id2) {
            let disposable = this._listeners.get(id2);
            if (disposable) {
              this._listeners.delete(id2);
              disposable.dispose();
            }
          }
          dispose() {
            for (let disposable of this._listeners.values()) {
              disposable.dispose();
            }
            this._listeners.clear();
          }
          onDidChangeConfiguration(configurationSection, event) {
            let { configuredSection } = this._client;
            let sections;
            if (string(configurationSection)) {
              sections = [configurationSection];
            } else {
              sections = configurationSection;
            }
            if (sections != null && event != null) {
              let keys = sections.map((s2) => s2.startsWith("languageserver.") ? "languageserver" : s2);
              let affected = keys.some((section2) => event.affectsConfiguration(section2));
              if (!affected) return;
            }
            let didChangeConfiguration = (sections2) => {
              if (sections2 == null) {
                return this._client.sendNotification(import_node4.DidChangeConfigurationNotification.type, { settings: null });
              }
              let workspaceFolder = this._client.clientOptions.workspaceFolder;
              let settings = configuredSection ? _SyncConfigurationFeature.getConfiguredSettings(configuredSection, workspaceFolder) : _SyncConfigurationFeature.extractSettingsInformation(sections2, workspaceFolder);
              return this._client.sendNotification(import_node4.DidChangeConfigurationNotification.type, { settings });
            };
            let middleware = this._client.middleware.workspace?.didChangeConfiguration;
            let promise = middleware ? Promise.resolve(middleware(sections, didChangeConfiguration)) : didChangeConfiguration(sections);
            promise.catch((error) => {
              this._client.error(`Sending notification ${import_node4.DidChangeConfigurationNotification.type.method} failed`, error);
            });
          }
          static getConfiguredSettings(key, workspaceFolder) {
            let len = ".settings".length;
            let config = workspace_default.getConfiguration(key.slice(0, -len), workspaceFolder);
            return mergeConfigProperties(toJSONObject(config.get("settings", {})));
          }
          static extractSettingsInformation(keys, workspaceFolder) {
            function ensurePath(config, path4) {
              let current = config;
              for (let i2 = 0; i2 < path4.length - 1; i2++) {
                let obj = current[path4[i2]];
                if (!obj) {
                  obj = /* @__PURE__ */ Object.create(null);
                  current[path4[i2]] = obj;
                }
                current = obj;
              }
              return current;
            }
            let result = /* @__PURE__ */ Object.create(null);
            for (let i2 = 0; i2 < keys.length; i2++) {
              let key = keys[i2];
              let index = key.indexOf(".");
              let config;
              if (index >= 0) {
                config = workspace_default.getConfiguration(key.substring(0, index), workspaceFolder).get(key.substring(index + 1));
              } else {
                config = workspace_default.getConfiguration(key, workspaceFolder);
              }
              let path4 = keys[i2].split(".");
              ensurePath(result, path4)[path4[path4.length - 1]] = config;
            }
            return result;
          }
        };
      }
    });
    
    // src/language-client/declaration.ts
    var DeclarationFeature;
    var init_declaration = __esm({
      "src/language-client/declaration.ts"() {
        "use strict";
        init_languages();
        init_protocol();
        init_features();
        DeclarationFeature = class extends TextDocumentLanguageFeature {
          constructor(client) {
            super(client, import_node4.DeclarationRequest.type);
          }
          fillClientCapabilities(capabilities) {
            let declarationSupport = ensure(ensure(capabilities, "textDocument"), "declaration");
            declarationSupport.dynamicRegistration = true;
            declarationSupport.linkSupport = true;
          }
          initialize(capabilities, documentSelector) {
            const [id2, options3] = this.getRegistration(documentSelector, capabilities.declarationProvider);
            if (!id2 || !options3) {
              return;
            }
            this.register({ id: id2, registerOptions: options3 });
          }
          registerLanguageProvider(options3) {
            const provider = {
              provideDeclaration: (document2, position, token) => {
                const client = this._client;
                const provideDeclaration = (document3, position2, token2) => this.sendRequest(import_node4.DeclarationRequest.type, client.code2ProtocolConverter.asTextDocumentPositionParams(document3, position2), token2);
                const middleware = client.middleware;
                return middleware.provideDeclaration ? middleware.provideDeclaration(document2, position, token, provideDeclaration) : provideDeclaration(document2, position, token);
              }
            };
            this._client.attachExtensionName(provider);
            return [languages_default.registerDeclarationProvider(options3.documentSelector, provider), provider];
          }
        };
      }
    });
    
    // src/language-client/definition.ts
    var DefinitionFeature;
    var init_definition = __esm({
      "src/language-client/definition.ts"() {
        "use strict";
        init_languages();
        init_protocol();
        init_features();
        DefinitionFeature = class extends TextDocumentLanguageFeature {
          constructor(client) {
            super(client, import_node4.DefinitionRequest.type);
          }
          fillClientCapabilities(capabilities) {
            let definitionSupport = ensure(ensure(capabilities, "textDocument"), "definition");
            definitionSupport.dynamicRegistration = true;
            definitionSupport.linkSupport = true;
          }
          initialize(capabilities, documentSelector) {
            const options3 = this.getRegistrationOptions(documentSelector, capabilities.definitionProvider);
            if (!options3) {
              return;
            }
            this.register({
              id: crypto.randomUUID(),
              registerOptions: options3
            });
          }
          registerLanguageProvider(options3) {
            const provider = {
              provideDefinition: (document2, position, token) => {
                const client = this._client;
                const provideDefinition = (document3, position2, token2) => {
                  return this.sendRequest(
                    import_node4.DefinitionRequest.type,
                    client.code2ProtocolConverter.asTextDocumentPositionParams(document3, position2),
                    token2
                  );
                };
                const middleware = client.middleware;
                return middleware.provideDefinition ? middleware.provideDefinition(document2, position, token, provideDefinition) : provideDefinition(document2, position, token);
              }
            };
            this._client.attachExtensionName(provider);
            return [languages_default.registerDefinitionProvider(options3.documentSelector, provider), provider];
          }
        };
      }
    });
    
    // src/language-client/diagnostic.ts
    var DiagnosticPullMode, DocumentOrUri, workspacePullDebounce, DocumentPullStateTracker, DiagnosticRequestor, timeoutDebounce, BackgroundScheduler, DiagnosticFeatureProviderImpl, DiagnosticFeature;
    var init_diagnostic = __esm({
      "src/language-client/diagnostic.ts"() {
        "use strict";
        init_main();
        init_esm();
        init_languages();
        init_util();
        init_errors();
        init_map();
        init_node();
        init_protocol();
        init_window();
        init_workspace();
        init_features();
        DiagnosticPullMode = /* @__PURE__ */ ((DiagnosticPullMode2) => {
          DiagnosticPullMode2["onType"] = "onType";
          DiagnosticPullMode2["onSave"] = "onSave";
          DiagnosticPullMode2["onFocus"] = "onFocus";
          return DiagnosticPullMode2;
        })(DiagnosticPullMode || {});
        ((DocumentOrUri2) => {
          function asKey(document2) {
            return document2 instanceof u ? document2.toString() : document2.uri;
          }
          DocumentOrUri2.asKey = asKey;
        })(DocumentOrUri || (DocumentOrUri = {}));
        workspacePullDebounce = getConditionValue(3e3, 10);
        DocumentPullStateTracker = class {
          documentPullStates;
          workspacePullStates;
          constructor() {
            this.documentPullStates = /* @__PURE__ */ new Map();
            this.workspacePullStates = /* @__PURE__ */ new Map();
          }
          track(kind, document2, arg1) {
            const states = kind === 1 /* document */ ? this.documentPullStates : this.workspacePullStates;
            const [key, uri, version2] = document2 instanceof u ? [document2.toString(), document2, arg1] : [document2.uri.toString(), u.parse(document2.uri), document2.version];
            let state = states.get(key);
            if (state === void 0) {
              state = { document: uri, pulledVersion: version2, resultId: void 0 };
              states.set(key, state);
            }
            return state;
          }
          update(kind, document2, arg1, arg2) {
            const states = kind === 1 /* document */ ? this.documentPullStates : this.workspacePullStates;
            const [key, uri, version2, resultId] = document2 instanceof u ? [document2.toString(), document2, arg1, arg2] : [document2.uri, u.parse(document2.uri), document2.version, arg1];
            let state = states.get(key);
            if (state === void 0) {
              state = { document: uri, pulledVersion: version2, resultId };
              states.set(key, state);
            } else {
              state.pulledVersion = version2;
              state.resultId = resultId;
            }
          }
          unTrack(kind, document2) {
            const key = DocumentOrUri.asKey(document2);
            const states = kind === 1 /* document */ ? this.documentPullStates : this.workspacePullStates;
            states.delete(key);
          }
          tracks(kind, document2) {
            const key = DocumentOrUri.asKey(document2);
            const states = kind === 1 /* document */ ? this.documentPullStates : this.workspacePullStates;
            return states.has(key);
          }
          trackingDocuments() {
            return Array.from(this.documentPullStates.keys());
          }
          tracksSameVersion(kind, document2) {
            const key = document2.uri.toString();
            const states = kind === 1 /* document */ ? this.documentPullStates : this.workspacePullStates;
            const state = states.get(key);
            return state !== void 0 && state.pulledVersion === document2.version;
          }
          getResultId(kind, document2) {
            const key = DocumentOrUri.asKey(document2);
            const states = kind === 1 /* document */ ? this.documentPullStates : this.workspacePullStates;
            return states.get(key)?.resultId;
          }
          getAllResultIds() {
            const result = [];
            for (let [uri, value] of this.workspacePullStates) {
              if (this.documentPullStates.has(uri)) {
                value = this.documentPullStates.get(uri);
              }
              if (value.resultId !== void 0) {
                result.push({ uri, value: value.resultId });
              }
            }
            return result;
          }
        };
        DiagnosticRequestor = class extends BaseFeature {
          isDisposed;
          enableWorkspace;
          client;
          options;
          onDidChangeDiagnosticsEmitter;
          provider;
          diagnostics;
          openRequests;
          pendingDocumentForgets;
          documentStates;
          workspaceErrorCounter;
          workspaceCancellation;
          workspaceTimeout;
          constructor(client, options3) {
            super(client);
            this.client = client;
            this.options = options3;
            this.enableWorkspace = options3.workspaceDiagnostics && this.client.clientOptions.diagnosticPullOptions?.workspace !== false;
            this.isDisposed = false;
            this.onDidChangeDiagnosticsEmitter = new import_node4.Emitter();
            this.provider = this.createProvider();
            this.diagnostics = languages_default.createDiagnosticCollection(`${client.id}:pull:${defaultValue(options3.identifier, client.id)}`);
            this.openRequests = /* @__PURE__ */ new Map();
            this.pendingDocumentForgets = /* @__PURE__ */ new Map();
            this.documentStates = new DocumentPullStateTracker();
            this.workspaceErrorCounter = 0;
          }
          knows(kind, document2) {
            return this.documentStates.tracks(kind, document2) || this.openRequests.has(DocumentOrUri.asKey(document2));
          }
          knowsSameVersion(kind, document2) {
            const requestState = this.openRequests.get(document2.uri.toString());
            if (requestState === void 0) {
              return this.documentStates.tracksSameVersion(kind, document2);
            }
            if (requestState.state === "reschedule" /* reschedule */) {
              return true;
            }
            if (requestState.state === "drop" /* outDated */) {
              return false;
            }
            return requestState.version === document2.version;
          }
          forget(kind, document2) {
            this.documentStates.unTrack(kind, document2);
          }
          cancelPendingForget(document2) {
            this.pendingDocumentForgets.delete(DocumentOrUri.asKey(document2));
          }
          pull(document2, cb) {
            if (this.isDisposed) {
              return;
            }
            const uri = DocumentOrUri.asKey(document2);
            this.pullAsync(document2).then(() => {
              if (cb) {
                cb();
              }
            }, (error) => {
              this.client.error(`Document pull failed for text document ${uri.toString()}`, error, false);
            });
          }
          async pullAsync(document2, version2) {
            if (this.isDisposed) {
              return;
            }
            const isUri = document2 instanceof u;
            const key = DocumentOrUri.asKey(document2);
            version2 = isUri ? version2 : document2.version;
            const currentRequestState = this.openRequests.get(key);
            const documentState = isUri ? this.documentStates.track(1 /* document */, document2, version2) : this.documentStates.track(1 /* document */, document2);
            if (currentRequestState === void 0) {
              const tokenSource = new import_node4.CancellationTokenSource();
              this.openRequests.set(key, { state: "open" /* active */, document: document2, version: version2, tokenSource });
              let report;
              let afterState;
              try {
                report = await this.provider.provideDiagnostics(document2, documentState.resultId, tokenSource.token) ?? { kind: import_node4.DocumentDiagnosticReportKind.Full, items: [] };
              } catch (error) {
                if (error instanceof LSPCancellationError && import_node4.DiagnosticServerCancellationData.is(error.data) && error.data.retriggerRequest === false) {
                  afterState = { state: "drop" /* outDated */, document: document2 };
                } else if (error instanceof CancellationError) {
                  const current = this.openRequests.get(key);
                  afterState = current?.state === "drop" /* outDated */ ? { state: "drop" /* outDated */, document: current.document } : { state: "reschedule" /* reschedule */, document: document2 };
                } else {
                  throw error;
                }
              }
              afterState = afterState ?? this.openRequests.get(key);
              if (afterState === void 0) {
                this.client.error(`Lost request state in diagnostic pull model. Clearing diagnostics for ${key}`);
                this.diagnostics.delete(key);
                return;
              }
              this.openRequests.delete(key);
              if (!workspace_default.tabs.isVisible(document2)) {
                this.documentStates.unTrack(1 /* document */, document2);
                return;
              }
              if (afterState.state === "drop" /* outDated */) {
                return;
              }
              if (report !== void 0) {
                if (report.kind === import_node4.DocumentDiagnosticReportKind.Full) {
                  this.diagnostics.set(key, report.items);
                }
                documentState.pulledVersion = version2;
                documentState.resultId = report.resultId;
              }
              if (afterState.state === "reschedule" /* reschedule */) {
                this.pull(document2);
              }
            } else {
              if (currentRequestState.state === "open" /* active */) {
                currentRequestState.tokenSource.cancel();
                this.openRequests.set(key, { state: "reschedule" /* reschedule */, document: currentRequestState.document });
              } else if (currentRequestState.state === "drop" /* outDated */) {
                this.openRequests.set(key, { state: "reschedule" /* reschedule */, document: currentRequestState.document });
              }
            }
          }
          forgetDocument(document2) {
            if (this.isDisposed) {
              return;
            }
            const key = DocumentOrUri.asKey(document2);
            const request2 = this.openRequests.get(key);
            if (this.options.workspaceDiagnostics && key !== "untitled") {
              if (request2 !== void 0) {
                this.openRequests.set(key, { state: "reschedule" /* reschedule */, document: document2 });
              } else {
                const pendingForget = /* @__PURE__ */ Symbol();
                this.pendingDocumentForgets.set(key, pendingForget);
                this.pull(document2, () => {
                  if (this.pendingDocumentForgets.get(key) === pendingForget) {
                    this.pendingDocumentForgets.delete(key);
                    this.forget(1 /* document */, document2);
                  }
                });
              }
              this.forget(2 /* workspace */, document2);
            } else {
              if (request2 !== void 0) {
                if (request2.state === "open" /* active */) {
                  request2.tokenSource.cancel();
                }
                this.openRequests.set(key, { state: "drop" /* outDated */, document: document2 });
              }
              this.diagnostics.delete(key);
              this.forget(1 /* document */, document2);
            }
          }
          pullWorkspace() {
            if (!this.enableWorkspace || this.isDisposed) return;
            this.pullWorkspaceAsync().then(() => {
              if (this.isDisposed) return;
              this.workspaceErrorCounter = 0;
              this.workspaceTimeout = (0, import_node4.RAL)().timer.setTimeout(() => {
                this.pullWorkspace();
              }, workspacePullDebounce);
            }, (error) => {
              if (this.isDisposed) return;
              if (!(error instanceof LSPCancellationError) && !import_node4.DiagnosticServerCancellationData.is(error.data)) {
                this.client.error(`Workspace diagnostic pull failed.`, error);
                this.workspaceErrorCounter++;
              }
              if (this.workspaceErrorCounter <= 5) {
                this.workspaceTimeout = (0, import_node4.RAL)().timer.setTimeout(() => {
                  this.pullWorkspace();
                }, workspacePullDebounce);
              }
            });
          }
          async pullWorkspaceAsync() {
            if (!this.provider.provideWorkspaceDiagnostics) {
              return;
            }
            if (this.workspaceCancellation !== void 0) {
              this.workspaceCancellation.cancel();
              this.workspaceCancellation = void 0;
            }
            this.workspaceCancellation = new import_node4.CancellationTokenSource();
            const previousResultIds = this.documentStates.getAllResultIds();
            await this.provider.provideWorkspaceDiagnostics(previousResultIds, this.workspaceCancellation.token, (chunk) => {
              if (!chunk || this.isDisposed) {
                return;
              }
              for (const item of chunk.items) {
                if (item.kind === import_node4.DocumentDiagnosticReportKind.Full) {
                  if (!this.documentStates.tracks(1 /* document */, u.parse(item.uri))) {
                    this.diagnostics.set(item.uri.toString(), item.items);
                  }
                }
                this.documentStates.update(2 /* workspace */, u.parse(item.uri), item.version ?? void 0, item.resultId);
              }
            });
          }
          createProvider() {
            const provider = {
              onDidChangeDiagnostics: this.onDidChangeDiagnosticsEmitter.event,
              provideDiagnostics: (document2, previousResultId, token) => {
                const middleware = this.client.middleware;
                const client = this._client;
                const provideDiagnostics = (document3, previousResultId2, token2) => {
                  const uri = client.code2ProtocolConverter.asUri(document3 instanceof u ? document3 : u.parse(document3.uri));
                  const params = {
                    identifier: this.options.identifier,
                    textDocument: { uri },
                    previousResultId: previousResultId2
                  };
                  return this.sendRequest(import_node4.DocumentDiagnosticRequest.type, params, token2, { kind: import_node4.DocumentDiagnosticReportKind.Full, items: [] }).then(async (result) => {
                    if (this.isDisposed) {
                      return { kind: import_node4.DocumentDiagnosticReportKind.Full, items: [] };
                    }
                    if (token2.isCancellationRequested) {
                      throw new CancellationError();
                    }
                    if (result === void 0 || result === null) {
                      return { kind: import_node4.DocumentDiagnosticReportKind.Full, items: [] };
                    }
                    if (middleware.handleDiagnostics && result.kind == import_node4.DocumentDiagnosticReportKind.Full) {
                      middleware.handleDiagnostics(uri, result.items, (_2, diagnostics) => {
                        result.items = diagnostics;
                      });
                    }
                    return result;
                  });
                };
                return middleware.provideDiagnostics ? middleware.provideDiagnostics(document2, previousResultId, token, provideDiagnostics) : provideDiagnostics(document2, previousResultId, token);
              }
            };
            if (this.options.workspaceDiagnostics) {
              provider.provideWorkspaceDiagnostics = (resultIds, token, resultReporter) => {
                const provideWorkspaceDiagnostics = (resultIds2, token2, resultReporter2) => {
                  const partialResultToken = crypto.randomUUID();
                  const disposable = this.client.onProgress(import_node4.WorkspaceDiagnosticRequest.partialResult, partialResultToken, (partialResult) => {
                    if (partialResult == void 0) {
                      resultReporter2(null);
                      return;
                    }
                    resultReporter2(partialResult);
                  });
                  const params = {
                    identifier: this.options.identifier,
                    previousResultIds: resultIds2,
                    partialResultToken
                  };
                  return this.sendRequest(import_node4.WorkspaceDiagnosticRequest.type, params, token2, { items: [] }).then(async (result) => {
                    resultReporter2(result);
                    return { items: [] };
                  }).finally(() => {
                    disposable.dispose();
                  });
                };
                const middleware = this.client.middleware;
                return middleware.provideWorkspaceDiagnostics ? middleware.provideWorkspaceDiagnostics(resultIds, token, resultReporter, provideWorkspaceDiagnostics) : provideWorkspaceDiagnostics(resultIds, token, resultReporter);
              };
            }
            return provider;
          }
          dispose() {
            this.isDisposed = true;
            this.workspaceCancellation?.cancel();
            this.workspaceTimeout?.dispose();
            for (const request2 of this.openRequests.values()) {
              if (request2.state === "open" /* active */) {
                request2.tokenSource.cancel();
              }
            }
            this.openRequests.clear();
          }
        };
        timeoutDebounce = getConditionValue(500, 10);
        BackgroundScheduler = class {
          client;
          diagnosticRequestor;
          lastDocumentToPull;
          documents;
          timeoutHandle;
          // The problem is that there could be outstanding diagnostic requests
          // when we shutdown which when we receive the result will trigger a
          // reschedule. So we remember if the background scheduler got disposed
          // and ignore those re-schedules
          isDisposed;
          constructor(client, diagnosticRequestor) {
            this.client = client;
            this.diagnosticRequestor = diagnosticRequestor;
            this.documents = new LinkedMap();
            this.isDisposed = false;
          }
          add(document2) {
            if (this.isDisposed === true) {
              return;
            }
            const key = document2.uri;
            if (this.documents.has(key)) {
              return;
            }
            this.documents.set(key, document2, Touch.AsNew);
            this.lastDocumentToPull = document2;
          }
          remove(document2) {
            const key = DocumentOrUri.asKey(document2);
            this.documents.delete(key);
            if (this.documents.size === 0) {
              this.stop();
              return;
            }
            if (key === this.lastDocumentToPullKey()) {
              const before = this.documents.before(key);
              if (before === void 0) {
                this.stop();
              } else {
                this.lastDocumentToPull = before;
              }
            }
          }
          trigger() {
            this.lastDocumentToPull = this.documents.last;
            this.runLoop();
          }
          runLoop() {
            if (this.isDisposed === true) {
              return;
            }
            if (this.documents.size === 0) {
              this.stop();
              return;
            }
            if (this.lastDocumentToPull === void 0) {
              return;
            }
            if (this.timeoutHandle !== void 0) {
              return;
            }
            this.timeoutHandle = (0, import_node4.RAL)().timer.setTimeout(() => {
              const document2 = this.documents.first;
              if (document2 === void 0) {
                return;
              }
              const key = DocumentOrUri.asKey(document2);
              this.diagnosticRequestor.pullAsync(document2).catch((error) => {
                this.client.error(`Document pull failed for text document ${key}`, error, false);
              }).finally(() => {
                this.timeoutHandle = void 0;
                this.documents.set(key, document2, Touch.Last);
                if (key !== this.lastDocumentToPullKey()) {
                  this.runLoop();
                }
              });
            }, timeoutDebounce);
          }
          dispose() {
            this.stop();
            this.documents.clear();
            this.lastDocumentToPull = void 0;
          }
          stop() {
            this.timeoutHandle?.dispose();
            this.timeoutHandle = void 0;
            this.lastDocumentToPull = void 0;
          }
          lastDocumentToPullKey() {
            return this.lastDocumentToPull !== void 0 ? DocumentOrUri.asKey(this.lastDocumentToPull) : void 0;
          }
        };
        DiagnosticFeatureProviderImpl = class {
          disposable;
          diagnosticRequestor;
          activeTextDocument;
          backgroundScheduler;
          constructor(client, options3) {
            const diagnosticPullOptions = Object.assign({ onChange: false, onSave: false, onFocus: false }, client.clientOptions.diagnosticPullOptions);
            const selector = options3.documentSelector ?? [];
            const disposables = [];
            const ignored = diagnosticPullOptions.ignored ?? [];
            const matches = (document2) => {
              if (diagnosticPullOptions.match !== void 0) {
                return diagnosticPullOptions.match(selector, u.parse(document2.uri));
              }
              if (workspace_default.match(selector, document2) <= 0 || !workspace_default.tabs.isVisible(document2)) return false;
              if (ignored.length > 0 && ignored.some((p2) => minimatch(u.parse(document2.uri).fsPath, p2, { dot: true }))) return false;
              return true;
            };
            const isActiveDocument = (document2) => {
              return document2.uri === this.activeTextDocument?.uri;
            };
            const considerDocument = (textDocument, mode) => {
              return (diagnosticPullOptions.filter === void 0 || !diagnosticPullOptions.filter(textDocument, mode)) && this.diagnosticRequestor.knows(1 /* document */, textDocument);
            };
            this.diagnosticRequestor = new DiagnosticRequestor(client, options3);
            this.backgroundScheduler = new BackgroundScheduler(client, this.diagnosticRequestor);
            const addToBackgroundIfNeeded = (document2) => {
              if (!matches(document2) || !options3.interFileDependencies || isActiveDocument(document2) || diagnosticPullOptions.onChange === false) return;
              this.backgroundScheduler.add(document2);
            };
            this.activeTextDocument = window_default.activeTextEditor?.document.textDocument;
            disposables.push(window_default.onDidChangeActiveTextEditor((editor) => {
              const oldActive = this.activeTextDocument;
              this.activeTextDocument = editor?.document.textDocument;
              if (oldActive !== void 0) {
                addToBackgroundIfNeeded(oldActive);
              }
              if (this.activeTextDocument !== void 0) {
                this.backgroundScheduler.remove(this.activeTextDocument);
                if (diagnosticPullOptions.onFocus === true && matches(this.activeTextDocument) && considerDocument(this.activeTextDocument, "onFocus" /* onFocus */)) {
                  this.diagnosticRequestor.pull(this.activeTextDocument);
                }
              }
            }));
            const openFeature = client.getFeature(import_node4.DidOpenTextDocumentNotification.method);
            disposables.push(openFeature.onNotificationSent((event) => {
              const textDocument = event.original;
              if (matches(textDocument)) {
                this.diagnosticRequestor.cancelPendingForget(textDocument);
                if (this.diagnosticRequestor.knowsSameVersion(1 /* document */, textDocument)) {
                  return;
                }
                this.diagnosticRequestor.pull(textDocument, () => {
                  addToBackgroundIfNeeded(textDocument);
                });
              }
            }));
            disposables.push(workspace_default.tabs.onOpen((opened) => {
              for (const resource of opened) {
                this.diagnosticRequestor.cancelPendingForget(resource);
                if (this.diagnosticRequestor.knows(1 /* document */, resource)) {
                  continue;
                }
                const uriStr = resource.toString();
                let textDocument = workspace_default.getDocument(uriStr)?.textDocument;
                if (textDocument !== void 0 && matches(textDocument)) {
                  this.diagnosticRequestor.pull(textDocument, () => {
                    addToBackgroundIfNeeded(textDocument);
                  });
                }
              }
            }));
            for (const textDocument of workspace_default.textDocuments) {
              if (matches(textDocument)) {
                this.diagnosticRequestor.pull(textDocument, () => {
                  addToBackgroundIfNeeded(textDocument);
                });
              }
            }
            if (diagnosticPullOptions.onChange === true) {
              const changeFeature = client.getFeature(import_node4.DidChangeTextDocumentNotification.method);
              disposables.push(changeFeature.onNotificationSent(async (event) => {
                const textDocument = workspace_default.getDocument(event.original.bufnr).textDocument;
                if (considerDocument(textDocument, "onType" /* onType */)) {
                  this.diagnosticRequestor.pull(textDocument, () => {
                    this.backgroundScheduler.trigger();
                  });
                }
              }));
            }
            if (diagnosticPullOptions.onSave === true) {
              const saveFeature = client.getFeature(import_node4.DidSaveTextDocumentNotification.method);
              disposables.push(saveFeature.onNotificationSent((event) => {
                const textDocument = event.original;
                if (considerDocument(textDocument, "onSave" /* onSave */)) {
                  this.diagnosticRequestor.pull(event.original);
                }
              }));
            }
            const closeFeature = client.getFeature(import_node4.DidCloseTextDocumentNotification.method);
            disposables.push(closeFeature.onAboutToSendNotification((event) => {
              this.cleanUpDocument(event.original);
            }));
            disposables.push(workspace_default.tabs.onClose((closed) => {
              for (const document2 of closed) {
                this.cleanUpDocument(document2);
              }
            }));
            this.diagnosticRequestor.onDidChangeDiagnosticsEmitter.event(() => {
              for (const textDocument of workspace_default.textDocuments) {
                if (matches(textDocument)) {
                  this.diagnosticRequestor.pull(textDocument);
                }
              }
            });
            if (options3.workspaceDiagnostics === true && options3.identifier !== "da348dc5-c30a-4515-9d98-31ff3be38d14") {
              this.diagnosticRequestor.pullWorkspace();
            }
            this.disposable = import_node4.Disposable.create(() => [...disposables, this.backgroundScheduler, this.diagnosticRequestor].forEach((d2) => d2.dispose()));
          }
          get onDidChangeDiagnosticsEmitter() {
            return this.diagnosticRequestor.onDidChangeDiagnosticsEmitter;
          }
          get diagnostics() {
            return this.diagnosticRequestor.provider;
          }
          knows(kind, textDocument) {
            return this.diagnosticRequestor.knows(kind, textDocument);
          }
          forget(document2) {
            this.cleanUpDocument(document2);
          }
          cleanUpDocument(document2) {
            this.backgroundScheduler.remove(document2);
            if (this.diagnosticRequestor.knows(1 /* document */, document2)) {
              this.diagnosticRequestor.forgetDocument(document2);
            }
          }
        };
        DiagnosticFeature = class extends TextDocumentLanguageFeature {
          constructor(client) {
            super(client, import_node4.DocumentDiagnosticRequest.type);
          }
          fillClientCapabilities(capabilities) {
            let capability = ensure(ensure(capabilities, "textDocument"), "diagnostic");
            capability.relatedInformation = true;
            capability.tagSupport = { valueSet: [DiagnosticTag.Unnecessary, DiagnosticTag.Deprecated] };
            capability.codeDescriptionSupport = true;
            capability.dataSupport = true;
            capability.dynamicRegistration = true;
            capability.relatedDocumentSupport = true;
            ensure(ensure(capabilities, "workspace"), "diagnostics").refreshSupport = true;
          }
          initialize(capabilities, documentSelector) {
            const client = this._client;
            client.onRequest(import_node4.DiagnosticRefreshRequest.type, async () => {
              for (const provider of this.getAllProviders()) {
                provider.onDidChangeDiagnosticsEmitter.fire();
              }
            });
            let [id2, options3] = this.getRegistration(documentSelector, capabilities.diagnosticProvider);
            if (!id2 || !options3) return;
            this.register({ id: id2, registerOptions: options3 });
          }
          registerLanguageProvider(options3) {
            const provider = new DiagnosticFeatureProviderImpl(this._client, options3);
            return [provider.disposable, provider];
          }
          refresh() {
            for (const provider of this.getAllProviders()) {
              provider.onDidChangeDiagnosticsEmitter.fire();
            }
          }
        };
      }
    });
    
    // src/language-client/documentHighlight.ts
    var DocumentHighlightFeature;
    var init_documentHighlight = __esm({
      "src/language-client/documentHighlight.ts"() {
        "use strict";
        init_languages();
        init_protocol();
        init_features();
        DocumentHighlightFeature = class extends TextDocumentLanguageFeature {
          constructor(client) {
            super(client, import_node4.DocumentHighlightRequest.type);
          }
          fillClientCapabilities(capabilities) {
            ensure(
              ensure(capabilities, "textDocument"),
              "documentHighlight"
            ).dynamicRegistration = true;
          }
          initialize(capabilities, documentSelector) {
            const options3 = this.getRegistrationOptions(documentSelector, capabilities.documentHighlightProvider);
            if (!options3) {
              return;
            }
            this.register({
              id: crypto.randomUUID(),
              registerOptions: options3
            });
          }
          registerLanguageProvider(options3) {
            const provider = {
              provideDocumentHighlights: (document2, position, token) => {
                const client = this._client;
                const _provideDocumentHighlights = (document3, position2, token2) => {
                  return this.sendRequest(
                    import_node4.DocumentHighlightRequest.type,
                    client.code2ProtocolConverter.asTextDocumentPositionParams(document3, position2),
                    token2
                  );
                };
                const middleware = client.middleware;
                return middleware.provideDocumentHighlights ? middleware.provideDocumentHighlights(document2, position, token, _provideDocumentHighlights) : _provideDocumentHighlights(document2, position, token);
              }
            };
            this._client.attachExtensionName(provider);
            return [languages_default.registerDocumentHighlightProvider(options3.documentSelector, provider), provider];
          }
        };
      }
    });
    
    // src/language-client/documentLink.ts
    var DocumentLinkFeature;
    var init_documentLink = __esm({
      "src/language-client/documentLink.ts"() {
        "use strict";
        init_languages();
        init_protocol();
        init_features();
        DocumentLinkFeature = class extends TextDocumentLanguageFeature {
          constructor(client) {
            super(client, import_node4.DocumentLinkRequest.type);
          }
          fillClientCapabilities(capabilities) {
            const documentLinkCapabilities = ensure(ensure(capabilities, "textDocument"), "documentLink");
            documentLinkCapabilities.dynamicRegistration = true;
            documentLinkCapabilities.tooltipSupport = true;
          }
          initialize(capabilities, documentSelector) {
            const options3 = this.getRegistrationOptions(documentSelector, capabilities.documentLinkProvider);
            if (!options3) {
              return;
            }
            this.register({
              id: crypto.randomUUID(),
              registerOptions: options3
            });
          }
          registerLanguageProvider(options3) {
            const provider = {
              provideDocumentLinks: (document2, token) => {
                const client = this._client;
                const provideDocumentLinks = (document3, token2) => {
                  return this.sendRequest(
                    import_node4.DocumentLinkRequest.type,
                    client.code2ProtocolConverter.asDocumentLinkParams(document3),
                    token2
                  );
                };
                const middleware = client.middleware;
                return middleware.provideDocumentLinks ? middleware.provideDocumentLinks(document2, token, provideDocumentLinks) : provideDocumentLinks(document2, token);
              },
              resolveDocumentLink: options3.resolveProvider ? (link, token) => {
                const client = this._client;
                let resolveDocumentLink = (link2, token2) => {
                  return this.sendRequest(import_node4.DocumentLinkResolveRequest.type, link2, token2, link2);
                };
                const middleware = client.middleware;
                return middleware.resolveDocumentLink ? middleware.resolveDocumentLink(link, token, resolveDocumentLink) : resolveDocumentLink(link, token);
              } : void 0
            };
            this._client.attachExtensionName(provider);
            return [languages_default.registerDocumentLinkProvider(options3.documentSelector, provider), provider];
          }
        };
      }
    });
    
    // src/language-client/documentSymbol.ts
    var SupportedSymbolKinds, SupportedSymbolTags, DocumentSymbolFeature;
    var init_documentSymbol = __esm({
      "src/language-client/documentSymbol.ts"() {
        "use strict";
        init_main();
        init_languages();
        init_protocol();
        init_features();
        SupportedSymbolKinds = [
          SymbolKind.File,
          SymbolKind.Module,
          SymbolKind.Namespace,
          SymbolKind.Package,
          SymbolKind.Class,
          SymbolKind.Method,
          SymbolKind.Property,
          SymbolKind.Field,
          SymbolKind.Constructor,
          SymbolKind.Enum,
          SymbolKind.Interface,
          SymbolKind.Function,
          SymbolKind.Variable,
          SymbolKind.Constant,
          SymbolKind.String,
          SymbolKind.Number,
          SymbolKind.Boolean,
          SymbolKind.Array,
          SymbolKind.Object,
          SymbolKind.Key,
          SymbolKind.Null,
          SymbolKind.EnumMember,
          SymbolKind.Struct,
          SymbolKind.Event,
          SymbolKind.Operator,
          SymbolKind.TypeParameter
        ];
        SupportedSymbolTags = [
          SymbolTag.Deprecated
        ];
        DocumentSymbolFeature = class extends TextDocumentLanguageFeature {
          constructor(client) {
            super(client, import_node4.DocumentSymbolRequest.type);
          }
          fillClientCapabilities(capabilities) {
            let symbolCapabilities = ensure(ensure(capabilities, "textDocument"), "documentSymbol");
            symbolCapabilities.dynamicRegistration = true;
            symbolCapabilities.symbolKind = {
              valueSet: SupportedSymbolKinds
            };
            symbolCapabilities.hierarchicalDocumentSymbolSupport = true;
            symbolCapabilities.tagSupport = {
              valueSet: SupportedSymbolTags
            };
            symbolCapabilities.labelSupport = true;
          }
          initialize(capabilities, documentSelector) {
            const options3 = this.getRegistrationOptions(documentSelector, capabilities.documentSymbolProvider);
            if (!options3) {
              return;
            }
            this.register({
              id: crypto.randomUUID(),
              registerOptions: options3
            });
          }
          registerLanguageProvider(options3) {
            const provider = {
              meta: options3.label ? { label: options3.label } : void 0,
              provideDocumentSymbols: (document2, token) => {
                const client = this._client;
                const _provideDocumentSymbols = (document3, token2) => {
                  return this.sendRequest(
                    import_node4.DocumentSymbolRequest.type,
                    client.code2ProtocolConverter.asDocumentSymbolParams(document3),
                    token2
                  );
                };
                const middleware = client.middleware;
                return middleware.provideDocumentSymbols ? middleware.provideDocumentSymbols(document2, token, _provideDocumentSymbols) : _provideDocumentSymbols(document2, token);
              }
            };
            this._client.attachExtensionName(provider);
            return [languages_default.registerDocumentSymbolProvider(options3.documentSelector, provider), provider];
          }
        };
      }
    });
    
    // src/language-client/executeCommand.ts
    var ExecuteCommandFeature;
    var init_executeCommand = __esm({
      "src/language-client/executeCommand.ts"() {
        "use strict";
        init_commands();
        init_protocol();
        init_features();
        ExecuteCommandFeature = class extends BaseFeature {
          _commands = /* @__PURE__ */ new Map();
          constructor(client) {
            super(client);
          }
          getState() {
            return { kind: "workspace", id: this.registrationType.method, registrations: this._commands.size > 0 };
          }
          get registrationType() {
            return import_node4.ExecuteCommandRequest.type;
          }
          fillClientCapabilities(capabilities) {
            ensure(ensure(capabilities, "workspace"), "executeCommand").dynamicRegistration = true;
          }
          initialize(capabilities) {
            if (!capabilities.executeCommandProvider) {
              return;
            }
            this.register({
              id: crypto.randomUUID(),
              registerOptions: Object.assign({}, capabilities.executeCommandProvider)
            });
          }
          register(data) {
            const client = this._client;
            const middleware = client.middleware;
            const executeCommand = (command, args) => {
              const params = {
                command,
                arguments: args
              };
              return client.sendRequest(import_node4.ExecuteCommandRequest.type, params, import_node4.CancellationToken.None).then(
                void 0,
                (error) => {
                  client.handleFailedRequest(import_node4.ExecuteCommandRequest.type, void 0, error, void 0);
                }
              );
            };
            if (data.registerOptions.commands) {
              let disposables = [];
              for (const command of data.registerOptions.commands) {
                disposables.push(commands_default.registerCommand(command, (...args) => {
                  return middleware.executeCommand ? middleware.executeCommand(command, args, executeCommand) : executeCommand(command, args);
                }, null, true));
              }
              this._commands.set(data.id, disposables);
            }
          }
          unregister(id2) {
            let disposables = this._commands.get(id2);
            if (disposables) {
              this._commands.delete(id2);
              disposables.forEach((disposable) => disposable.dispose());
            }
          }
          dispose() {
            this._commands.forEach((value) => {
              value.forEach((disposable) => disposable.dispose());
            });
            this._commands.clear();
          }
        };
      }
    });
    
    // src/language-client/fileOperations.ts
    function access(target, key) {
      return target[key];
    }
    function assign(target, key, value) {
      target[key] = value;
    }
    var FileOperationFeature, NotificationFileOperationFeature, DidCreateFilesFeature, DidRenameFilesFeature, DidDeleteFilesFeature, RequestFileOperationFeature, WillCreateFilesFeature, WillRenameFilesFeature, WillDeleteFilesFeature;
    var init_fileOperations = __esm({
      "src/language-client/fileOperations.ts"() {
        "use strict";
        init_util();
        init_fs();
        init_node();
        init_protocol();
        init_workspace();
        init_features();
        FileOperationFeature = class _FileOperationFeature extends BaseFeature {
          _event;
          _registrationType;
          _clientCapability;
          _serverCapability;
          _listener;
          _filters = /* @__PURE__ */ new Map();
          constructor(client, event, registrationType, clientCapability, serverCapability) {
            super(client);
            this._event = event;
            this._registrationType = registrationType;
            this._clientCapability = clientCapability;
            this._serverCapability = serverCapability;
          }
          getState() {
            return { kind: "workspace", id: this._registrationType.method, registrations: this._filters.size > 0 };
          }
          get registrationType() {
            return this._registrationType;
          }
          fillClientCapabilities(capabilities) {
            const value = ensure(ensure(capabilities, "workspace"), "fileOperations");
            assign(value, "dynamicRegistration", true);
            assign(value, this._clientCapability, true);
          }
          initialize(capabilities) {
            const options3 = capabilities.workspace?.fileOperations;
            const capability = options3 !== void 0 ? access(options3, this._serverCapability) : void 0;
            if (capability?.filters !== void 0) {
              try {
                this.register({
                  id: crypto.randomUUID(),
                  registerOptions: { filters: capability.filters }
                });
              } catch (e2) {
                this._client.warn(
                  `Ignoring invalid glob pattern for ${this._serverCapability} registration: ${e2}`
                );
              }
            }
          }
          register(data) {
            if (!this._listener) {
              this._listener = this._event(this.send, this);
            }
            const minimatchFilter = data.registerOptions.filters.map((filter3) => {
              const matcher = new minimatch.Minimatch(
                filter3.pattern.glob,
                _FileOperationFeature.asMinimatchOptions(filter3.pattern.options)
              );
              if (matcher.set.length === 0) {
                throw new Error(`Invalid pattern ${filter3.pattern.glob}!`);
              }
              return { scheme: filter3.scheme, matcher, kind: filter3.pattern.matches };
            });
            this._filters.set(data.id, minimatchFilter);
          }
          sendWithMiddleware(fn, key, ...params) {
            const middleware = defaultValue(defaultValue(this._client.middleware, {}).workspace, {});
            return middleware[key] ? middleware[key](...params, fn) : fn(...params);
          }
          unregister(id2) {
            this._filters.delete(id2);
          }
          dispose() {
            this._filters.clear();
            if (this._listener) {
              this._listener.dispose();
              this._listener = void 0;
            }
          }
          async filter(event, prop) {
            const fileMatches = await Promise.all(
              event.files.map(async (item) => {
                const uri = prop(item);
                const path4 = uri.fsPath.replace(/\\/g, "/");
                for (const filters of this._filters.values()) {
                  for (const filter3 of filters) {
                    if (filter3.scheme !== void 0 && filter3.scheme !== uri.scheme) {
                      continue;
                    }
                    if (filter3.matcher.match(path4)) {
                      if (filter3.kind === void 0) {
                        return true;
                      }
                      const fileType = await getFileType(uri.fsPath);
                      if (fileType === void 0) {
                        this._client.error(`Failed to determine file type for ${uri.toString()}.`);
                        return true;
                      }
                      if (fileType === 1 /* File */ && filter3.kind === import_node4.FileOperationPatternKind.file || fileType === 2 /* Directory */ && filter3.kind === import_node4.FileOperationPatternKind.folder) {
                        return true;
                      }
                    } else if (filter3.kind === import_node4.FileOperationPatternKind.folder) {
                      const fileType = await getFileType(uri.fsPath);
                      if (fileType === 2 /* Directory */ && filter3.matcher.match(`${path4}/`)) {
                        return true;
                      }
                    }
                  }
                }
                return false;
              })
            );
            const files = event.files.filter((_2, index) => fileMatches[index]);
            return { ...event, files };
          }
          static asMinimatchOptions(options3) {
            const result = { dot: true };
            if (options3?.ignoreCase === true) {
              result.nocase = true;
            }
            return result;
          }
        };
        NotificationFileOperationFeature = class extends FileOperationFeature {
          _notificationType;
          _accessUri;
          _createParams;
          constructor(client, event, notificationType, clientCapability, serverCapability, accessUri, createParams) {
            super(client, event, notificationType, clientCapability, serverCapability);
            this._notificationType = notificationType;
            this._accessUri = accessUri;
            this._createParams = createParams;
          }
          async send(originalEvent) {
            const filteredEvent = await this.filter(originalEvent, this._accessUri);
            if (filteredEvent.files.length) {
              const next = async (event) => {
                return this._client.sendNotification(
                  this._notificationType,
                  this._createParams(event)
                );
              };
              let promise = this.doSend(filteredEvent, next);
              if (promise) {
                await promise.catch((e2) => {
                  this._client.error(`Sending notification ${this.registrationType.method} failed`, e2);
                });
              }
            }
          }
        };
        DidCreateFilesFeature = class extends NotificationFileOperationFeature {
          constructor(client) {
            super(
              client,
              workspace_default.onDidCreateFiles,
              import_node4.DidCreateFilesNotification.type,
              "didCreate",
              "didCreate",
              (i2) => i2,
              client.code2ProtocolConverter.asDidCreateFilesParams
            );
          }
          doSend(event, next) {
            return this.sendWithMiddleware(next, "didCreateFiles", event);
          }
        };
        DidRenameFilesFeature = class extends NotificationFileOperationFeature {
          constructor(client) {
            super(
              client,
              workspace_default.onDidRenameFiles,
              import_node4.DidRenameFilesNotification.type,
              "didRename",
              "didRename",
              (i2) => i2.oldUri,
              client.code2ProtocolConverter.asDidRenameFilesParams
            );
          }
          doSend(event, next) {
            return this.sendWithMiddleware(next, "didRenameFiles", event);
          }
        };
        DidDeleteFilesFeature = class extends NotificationFileOperationFeature {
          constructor(client) {
            super(
              client,
              workspace_default.onDidDeleteFiles,
              import_node4.DidDeleteFilesNotification.type,
              "didDelete",
              "didDelete",
              (i2) => i2,
              client.code2ProtocolConverter.asDidDeleteFilesParams
            );
          }
          doSend(event, next) {
            return this.sendWithMiddleware(next, "didDeleteFiles", event);
          }
        };
        RequestFileOperationFeature = class extends FileOperationFeature {
          _requestType;
          _accessUri;
          _createParams;
          constructor(client, event, requestType, clientCapability, serverCapability, accessUri, createParams) {
            super(client, event, requestType, clientCapability, serverCapability);
            this._requestType = requestType;
            this._accessUri = accessUri;
            this._createParams = createParams;
          }
          async send(originalEvent) {
            const waitUntil = this.waitUntil(originalEvent);
            originalEvent.waitUntil(waitUntil);
          }
          async waitUntil(originalEvent) {
            const filteredEvent = await this.filter(originalEvent, this._accessUri);
            if (filteredEvent.files.length) {
              const next = (event) => {
                return this.sendRequest(this._requestType, this._createParams(event), import_node4.CancellationToken.None);
              };
              return this.doSend(filteredEvent, next);
            } else {
              return void 0;
            }
          }
        };
        WillCreateFilesFeature = class extends RequestFileOperationFeature {
          constructor(client) {
            super(
              client,
              workspace_default.onWillCreateFiles,
              import_node4.WillCreateFilesRequest.type,
              "willCreate",
              "willCreate",
              (i2) => i2,
              client.code2ProtocolConverter.asWillCreateFilesParams
            );
          }
          doSend(event, next) {
            return this.sendWithMiddleware(next, "willCreateFiles", event);
          }
        };
        WillRenameFilesFeature = class extends RequestFileOperationFeature {
          constructor(client) {
            super(
              client,
              workspace_default.onWillRenameFiles,
              import_node4.WillRenameFilesRequest.type,
              "willRename",
              "willRename",
              (i2) => i2.oldUri,
              client.code2ProtocolConverter.asWillRenameFilesParams
            );
          }
          doSend(event, next) {
            return this.sendWithMiddleware(next, "willRenameFiles", event);
          }
        };
        WillDeleteFilesFeature = class extends RequestFileOperationFeature {
          constructor(client) {
            super(
              client,
              workspace_default.onWillDeleteFiles,
              import_node4.WillDeleteFilesRequest.type,
              "willDelete",
              "willDelete",
              (i2) => i2,
              client.code2ProtocolConverter.asWillDeleteFilesParams
            );
          }
          doSend(event, next) {
            return this.sendWithMiddleware(next, "willDeleteFiles", event);
          }
        };
      }
    });
    
    // src/language-client/fileRename.ts
    var FileRenameFeature;
    var init_fileRename = __esm({
      "src/language-client/fileRename.ts"() {
        "use strict";
        init_util();
        init_fs();
        init_node();
        init_protocol();
        init_workspace();
        FileRenameFeature = class {
          constructor(_client) {
            this._client = _client;
          }
          _client;
          method = import_node4.DidRenameFilesNotification.method;
          _disposables = [];
          _lastRename;
          _filters = [];
          fillClientCapabilities(_capabilities) {
          }
          initialize(capabilities) {
            const options3 = capabilities.workspace?.fileOperations?.didRename;
            if (!options3?.filters.length) return;
            try {
              this._filters = options3.filters.map((filter3) => {
                const matcher = new minimatch.Minimatch(filter3.pattern.glob, {
                  dot: true,
                  nocase: filter3.pattern.options?.ignoreCase === true
                });
                if (matcher.set.length === 0) throw new Error(`Invalid pattern ${filter3.pattern.glob}!`);
                return { scheme: filter3.scheme, matcher, kind: filter3.pattern.matches };
              });
            } catch (error) {
              this._client.warn(`Ignoring invalid glob pattern for external rename notifications: ${error}`);
              return;
            }
            const watcher = workspace_default.createFileSystemWatcher("**/*", {
              ignoreCreateEvents: true,
              ignoreChangeEvents: true,
              ignoreDeleteEvents: true,
              includeDirectories: true
            });
            this._disposables.push(watcher);
            workspace_default.onWillRenameFiles((event) => {
              this._lastRename = event.files[0];
            }, null, this._disposables);
            watcher.onDidRename((file) => {
              const lastRename = this._lastRename;
              if (lastRename?.oldUri.toString() === file.oldUri.toString() && lastRename.newUri.toString() === file.newUri.toString()) {
                this._lastRename = void 0;
                return;
              }
              void this.send(file).catch((error) => {
                this._client.error(`Sending notification ${this.method} failed`, error);
              });
            }, null, this._disposables);
          }
          async send(file) {
            const filters = this._filters;
            const path4 = file.oldUri.fsPath.replace(/\\/g, "/");
            let matches = false;
            for (const filter3 of filters) {
              if (filter3.scheme !== void 0 && filter3.scheme !== file.oldUri.scheme) continue;
              const pathMatches = filter3.matcher.match(path4);
              if (!pathMatches && !(filter3.kind === "folder" && filter3.matcher.match(`${path4}/`))) continue;
              if (filter3.kind === void 0) {
                matches = true;
                break;
              }
              const type = await getFileType(file.newUri.fsPath);
              if (type === void 0 && pathMatches) {
                this._client.error(`Failed to determine file type for ${file.newUri.toString()}.`);
                matches = true;
              } else {
                matches = filter3.kind === "file" && type === 1 /* File */ || filter3.kind === "folder" && type === 2 /* Directory */;
              }
              if (matches) break;
            }
            if (!matches || this._filters !== filters) return;
            const event = { files: [file] };
            const next = (event2) => {
              if (this._filters !== filters) return Promise.resolve();
              return this._client.sendNotification(
                import_node4.DidRenameFilesNotification.type,
                this._client.code2ProtocolConverter.asDidRenameFilesParams(event2)
              );
            };
            const middleware = this._client.middleware.workspace?.didRenameFiles;
            await (middleware ? middleware(event, next) : next(event));
          }
          dispose() {
            disposeAll(this._disposables);
            this._lastRename = void 0;
            this._filters = [];
          }
        };
      }
    });
    
    // src/model/relativePattern.ts
    var RelativePattern2;
    var init_relativePattern = __esm({
      "src/model/relativePattern.ts"() {
        "use strict";
        init_esm();
        init_errors();
        RelativePattern2 = class {
          pattern;
          baseUri;
          constructor(base, pattern) {
            if (typeof base !== "string") {
              if (!base || !u.isUri(base) && typeof base.uri !== "string") {
                throw illegalArgument("base");
              }
            }
            if (typeof pattern !== "string") {
              throw illegalArgument("pattern");
            }
            if (typeof base === "string") {
              this.baseUri = u.file(base);
            } else if (u.isUri(base)) {
              this.baseUri = base;
            } else {
              this.baseUri = u.parse(base.uri);
            }
            this.pattern = pattern;
          }
          toJSON() {
            return {
              pattern: this.pattern,
              baseUri: this.baseUri.toJSON()
            };
          }
        };
      }
    });
    
    // src/language-client/fileSystemWatcher.ts
    function asRelativePattern(rp) {
      let { baseUri, pattern } = rp;
      if (typeof baseUri === "string") {
        return new RelativePattern2(u.parse(baseUri), pattern);
      }
      return new RelativePattern2(baseUri, pattern);
    }
    var FileSystemWatcherFeature;
    var init_fileSystemWatcher2 = __esm({
      "src/language-client/fileSystemWatcher.ts"() {
        "use strict";
        init_esm();
        init_relativePattern();
        init_util();
        init_is();
        init_protocol();
        init_workspace();
        init_features();
        FileSystemWatcherFeature = class {
          _watchers = /* @__PURE__ */ new Map();
          _fileEventsMap = /* @__PURE__ */ new Map();
          _client;
          _notifyFileEvent;
          constructor(client, notifyFileEvent) {
            this._client = client;
            this._notifyFileEvent = notifyFileEvent;
            this._watchers = /* @__PURE__ */ new Map();
          }
          getState() {
            return { kind: "workspace", id: this.registrationType.method, registrations: this._watchers.size > 0 };
          }
          get registrationType() {
            return import_node4.DidChangeWatchedFilesNotification.type;
          }
          fillClientCapabilities(capabilities) {
            ensure(ensure(capabilities, "workspace"), "didChangeWatchedFiles").dynamicRegistration = true;
            ensure(ensure(capabilities, "workspace"), "didChangeWatchedFiles").relativePatternSupport = true;
          }
          initialize(_capabilities, _documentSelector) {
            let fileEvents = defaultValue(this._client.clientOptions.synchronize, {}).fileEvents;
            if (!fileEvents) return;
            let watchers = Array.isArray(fileEvents) ? fileEvents : [fileEvents];
            let disposables = [];
            for (let fileSystemWatcher of watchers) {
              disposables.push(fileSystemWatcher);
              this.hookListeners(
                fileSystemWatcher,
                !fileSystemWatcher.ignoreCreateEvents,
                !fileSystemWatcher.ignoreChangeEvents,
                !fileSystemWatcher.ignoreDeleteEvents,
                disposables
              );
            }
            this._watchers.set(crypto.randomUUID(), disposables);
          }
          register(data) {
            if (!Array.isArray(data.registerOptions.watchers)) {
              return;
            }
            let disposables = [];
            for (let watcher of data.registerOptions.watchers) {
              let globPattern;
              if (string(watcher.globPattern)) {
                globPattern = watcher.globPattern;
              } else if (import_node4.RelativePattern.is(watcher.globPattern)) {
                globPattern = asRelativePattern(watcher.globPattern);
              } else {
                continue;
              }
              let watchCreate = true;
              let watchChange = true;
              let watchDelete = true;
              if (watcher.kind != null) {
                watchCreate = (watcher.kind & import_node4.WatchKind.Create) !== 0;
                watchChange = (watcher.kind & import_node4.WatchKind.Change) !== 0;
                watchDelete = (watcher.kind & import_node4.WatchKind.Delete) !== 0;
              }
              let fileSystemWatcher = workspace_default.createFileSystemWatcher(
                globPattern,
                !watchCreate,
                !watchChange,
                !watchDelete
              );
              this.hookListeners(
                fileSystemWatcher,
                watchCreate,
                watchChange,
                watchDelete,
                disposables
              );
              disposables.push(fileSystemWatcher);
            }
            this._watchers.set(data.id, disposables);
          }
          hookListeners(fileSystemWatcher, watchCreate, watchChange, watchDelete, listeners) {
            const client = this._client;
            if (watchCreate) {
              fileSystemWatcher.onDidCreate(
                (resource) => this._notifyFileEvent({
                  uri: client.code2ProtocolConverter.asUri(resource),
                  type: import_node4.FileChangeType.Created
                }),
                null,
                listeners
              );
            }
            if (watchChange) {
              fileSystemWatcher.onDidChange(
                (resource) => this._notifyFileEvent({
                  uri: client.code2ProtocolConverter.asUri(resource),
                  type: import_node4.FileChangeType.Changed
                }),
                null,
                listeners
              );
            }
            if (watchDelete) {
              fileSystemWatcher.onDidDelete(
                (resource) => this._notifyFileEvent({
                  uri: client.code2ProtocolConverter.asUri(resource),
                  type: import_node4.FileChangeType.Deleted
                }),
                null,
                listeners
              );
            }
          }
          unregister(id2) {
            let disposables = this._watchers.get(id2);
            if (disposables) {
              this._watchers.delete(id2);
              disposeAll(disposables);
            }
          }
          dispose() {
            this._fileEventsMap.clear();
            this._watchers.forEach((disposables) => {
              disposeAll(disposables);
            });
            this._watchers.clear();
          }
        };
      }
    });
    
    // src/language-client/foldingRange.ts
    var import_vscode_languageserver_protocol, FoldingRangeFeature;
    var init_foldingRange = __esm({
      "src/language-client/foldingRange.ts"() {
        "use strict";
        import_vscode_languageserver_protocol = __toESM(require_api3());
        init_languages();
        init_protocol();
        init_features();
        FoldingRangeFeature = class extends TextDocumentLanguageFeature {
          constructor(client) {
            super(client, import_node4.FoldingRangeRequest.type);
          }
          fillClientCapabilities(capabilities) {
            let capability = ensure(ensure(capabilities, "textDocument"), "foldingRange");
            capability.dynamicRegistration = true;
            capability.rangeLimit = 5e3;
            capability.lineFoldingOnly = true;
            capability.foldingRangeKind = { valueSet: [import_node4.FoldingRangeKind.Comment, import_node4.FoldingRangeKind.Imports, import_node4.FoldingRangeKind.Region] };
            capability.foldingRange = { collapsedText: false };
            ensure(ensure(capabilities, "workspace"), "foldingRange").refreshSupport = true;
          }
          initialize(capabilities, documentSelector) {
            this._client.onRequest(import_vscode_languageserver_protocol.FoldingRangeRefreshRequest.type, async () => {
              for (const provider of this.getAllProviders()) {
                provider.onDidChangeFoldingRanges.fire();
              }
            });
            const [id2, options3] = this.getRegistration(documentSelector, capabilities.foldingRangeProvider);
            if (!id2 || !options3) {
              return;
            }
            this.register({ id: id2, registerOptions: options3 });
          }
          registerLanguageProvider(options3) {
            const eventEmitter = new import_vscode_languageserver_protocol.Emitter();
            const provider = {
              onDidChangeFoldingRanges: eventEmitter.event,
              provideFoldingRanges: (document2, context, token) => {
                const client = this._client;
                const provideFoldingRanges = (document3, _2, token2) => {
                  const requestParams = {
                    textDocument: client.code2ProtocolConverter.asTextDocumentIdentifier(document3)
                  };
                  return this.sendRequest(import_node4.FoldingRangeRequest.type, requestParams, token2);
                };
                const middleware = client.middleware;
                return middleware.provideFoldingRanges ? middleware.provideFoldingRanges(document2, context, token, provideFoldingRanges) : provideFoldingRanges(document2, context, token);
              }
            };
            this._client.attachExtensionName(provider);
            return [languages_default.registerFoldingRangeProvider(options3.documentSelector, provider), { provider, onDidChangeFoldingRanges: eventEmitter }];
          }
        };
      }
    });
    
    // src/language-client/formatting.ts
    var DocumentFormattingFeature, DocumentRangeFormattingFeature, DocumentOnTypeFormattingFeature;
    var init_formatting2 = __esm({
      "src/language-client/formatting.ts"() {
        "use strict";
        init_languages();
        init_protocol();
        init_features();
        DocumentFormattingFeature = class extends TextDocumentLanguageFeature {
          constructor(client) {
            super(client, import_node4.DocumentFormattingRequest.type);
          }
          fillClientCapabilities(capabilities) {
            ensure(
              ensure(capabilities, "textDocument"),
              "formatting"
            ).dynamicRegistration = true;
          }
          initialize(capabilities, documentSelector) {
            const options3 = this.getRegistrationOptions(documentSelector, capabilities.documentFormattingProvider);
            if (!options3) {
              return;
            }
            this.register({
              id: crypto.randomUUID(),
              registerOptions: options3
            });
          }
          registerLanguageProvider(options3) {
            const provider = {
              provideDocumentFormattingEdits: (document2, options4, token) => {
                const client = this._client;
                const provideDocumentFormattingEdits = (document3, options5, token2) => {
                  const params = {
                    textDocument: client.code2ProtocolConverter.asTextDocumentIdentifier(document3),
                    options: options5
                  };
                  return this.sendRequest(import_node4.DocumentFormattingRequest.type, params, token2);
                };
                const middleware = client.middleware;
                return middleware.provideDocumentFormattingEdits ? middleware.provideDocumentFormattingEdits(document2, options4, token, provideDocumentFormattingEdits) : provideDocumentFormattingEdits(document2, options4, token);
              }
            };
            this._client.attachExtensionName(provider);
            return [
              languages_default.registerDocumentFormatProvider(options3.documentSelector, provider, this._client.clientOptions.formatterPriority),
              provider
            ];
          }
        };
        DocumentRangeFormattingFeature = class extends TextDocumentLanguageFeature {
          constructor(client) {
            super(client, import_node4.DocumentRangeFormattingRequest.type);
          }
          fillClientCapabilities(capabilities) {
            let rangeFormatting = ensure(ensure(capabilities, "textDocument"), "rangeFormatting");
            rangeFormatting.dynamicRegistration = true;
            rangeFormatting.rangesSupport = true;
          }
          initialize(capabilities, documentSelector) {
            const options3 = this.getRegistrationOptions(documentSelector, capabilities.documentRangeFormattingProvider);
            if (!options3) {
              return;
            }
            this.register({
              id: crypto.randomUUID(),
              registerOptions: options3
            });
          }
          registerLanguageProvider(options3) {
            const provider = {
              provideDocumentRangeFormattingEdits: (document2, range2, options4, token) => {
                const client = this._client;
                const provideDocumentRangeFormattingEdits = (document3, range3, options5, token2) => {
                  const params = {
                    textDocument: client.code2ProtocolConverter.asTextDocumentIdentifier(document3),
                    range: range3,
                    options: options5
                  };
                  return this.sendRequest(import_node4.DocumentRangeFormattingRequest.type, params, token2);
                };
                const middleware = client.middleware;
                return middleware.provideDocumentRangeFormattingEdits ? middleware.provideDocumentRangeFormattingEdits(document2, range2, options4, token, provideDocumentRangeFormattingEdits) : provideDocumentRangeFormattingEdits(document2, range2, options4, token);
              },
              provideDocumentRangesFormattingEdits: options3.rangesSupport ? (document2, ranges, options4, token) => {
                const client = this._client;
                const provideDocumentRangesFormattingEdits = (document3, ranges2, options5, token2) => {
                  const params = {
                    textDocument: client.code2ProtocolConverter.asTextDocumentIdentifier(document3),
                    ranges: ranges2,
                    options: options5
                  };
                  return this.sendRequest(import_node4.DocumentRangesFormattingRequest.type, params, token2);
                };
                const middleware = client.middleware;
                return middleware.provideDocumentRangesFormattingEdits ? middleware.provideDocumentRangesFormattingEdits(document2, ranges, options4, token, provideDocumentRangesFormattingEdits) : provideDocumentRangesFormattingEdits(document2, ranges, options4, token);
              } : void 0
            };
            this._client.attachExtensionName(provider);
            return [
              languages_default.registerDocumentRangeFormatProvider(options3.documentSelector, provider, this._client.clientOptions.formatterPriority),
              provider
            ];
          }
        };
        DocumentOnTypeFormattingFeature = class extends TextDocumentLanguageFeature {
          constructor(client) {
            super(client, import_node4.DocumentOnTypeFormattingRequest.type);
          }
          fillClientCapabilities(capabilities) {
            ensure(ensure(capabilities, "textDocument"), "onTypeFormatting").dynamicRegistration = true;
          }
          initialize(capabilities, documentSelector) {
            const options3 = this.getRegistrationOptions(documentSelector, capabilities.documentOnTypeFormattingProvider);
            if (!options3) {
              return;
            }
            this.register({
              id: crypto.randomUUID(),
              registerOptions: options3
            });
          }
          registerLanguageProvider(options3) {
            const provider = {
              provideOnTypeFormattingEdits: (document2, position, ch, options4, token) => {
                const client = this._client;
                const provideOnTypeFormattingEdits = (document3, position2, ch2, options5, token2) => {
                  const params = {
                    textDocument: client.code2ProtocolConverter.asVersionedTextDocumentIdentifier(document3),
                    position: position2,
                    ch: ch2,
                    options: options5
                  };
                  return this.sendRequest(import_node4.DocumentOnTypeFormattingRequest.type, params, token2);
                };
                const middleware = client.middleware;
                return middleware.provideOnTypeFormattingEdits ? middleware.provideOnTypeFormattingEdits(document2, position, ch, options4, token, provideOnTypeFormattingEdits) : provideOnTypeFormattingEdits(document2, position, ch, options4, token);
              }
            };
            this._client.attachExtensionName(provider);
            const moreTriggerCharacter = options3.moreTriggerCharacter || [];
            const characters = [options3.firstTriggerCharacter, ...moreTriggerCharacter];
            return [languages_default.registerOnTypeFormattingEditProvider(options3.documentSelector, provider, characters), provider];
          }
        };
      }
    });
    
    // src/language-client/hover.ts
    var HoverFeature;
    var init_hover = __esm({
      "src/language-client/hover.ts"() {
        "use strict";
        init_languages();
        init_protocol();
        init_features();
        HoverFeature = class extends TextDocumentLanguageFeature {
          constructor(client) {
            super(client, import_node4.HoverRequest.type);
          }
          fillClientCapabilities(capabilities) {
            const hoverCapability = ensure(
              ensure(capabilities, "textDocument"),
              "hover"
            );
            hoverCapability.dynamicRegistration = true;
            hoverCapability.contentFormat = this._client.supportedMarkupKind;
          }
          initialize(capabilities, documentSelector) {
            const options3 = this.getRegistrationOptions(documentSelector, capabilities.hoverProvider);
            if (!options3) {
              return;
            }
            this.register({
              id: crypto.randomUUID(),
              registerOptions: options3
            });
          }
          registerLanguageProvider(options3) {
            const provider = {
              provideHover: (document2, position, token) => {
                const client = this._client;
                const provideHover = (document3, position2, token2) => {
                  return this.sendRequest(
                    import_node4.HoverRequest.type,
                    client.code2ProtocolConverter.asTextDocumentPositionParams(document3, position2),
                    token2
                  );
                };
                const middleware = client.middleware;
                return middleware.provideHover ? middleware.provideHover(document2, position, token, provideHover) : provideHover(document2, position, token);
              }
            };
            this._client.attachExtensionName(provider);
            return [languages_default.registerHoverProvider(options3.documentSelector, provider), provider];
          }
        };
      }
    });
    
    // src/language-client/implementation.ts
    var ImplementationFeature;
    var init_implementation = __esm({
      "src/language-client/implementation.ts"() {
        "use strict";
        init_languages();
        init_protocol();
        init_features();
        ImplementationFeature = class extends TextDocumentLanguageFeature {
          constructor(client) {
            super(client, import_node4.ImplementationRequest.type);
          }
          fillClientCapabilities(capabilities) {
            const implementationSupport = ensure(ensure(capabilities, "textDocument"), "implementation");
            implementationSupport.dynamicRegistration = true;
            implementationSupport.linkSupport = true;
          }
          initialize(capabilities, documentSelector) {
            const [id2, options3] = this.getRegistration(documentSelector, capabilities.implementationProvider);
            if (!id2 || !options3) {
              return;
            }
            this.register({ id: id2, registerOptions: options3 });
          }
          registerLanguageProvider(options3) {
            const provider = {
              provideImplementation: (document2, position, token) => {
                const client = this._client;
                const provideImplementation = (document3, position2, token2) => this.sendRequest(import_node4.ImplementationRequest.type, client.code2ProtocolConverter.asTextDocumentPositionParams(document3, position2), token2);
                const middleware = client.middleware;
                return middleware.provideImplementation ? middleware.provideImplementation(document2, position, token, provideImplementation) : provideImplementation(document2, position, token);
              }
            };
            this._client.attachExtensionName(provider);
            return [languages_default.registerImplementationProvider(options3.documentSelector, provider), provider];
          }
        };
      }
    });
    
    // src/language-client/inlayHint.ts
    var InlayHintsFeature;
    var init_inlayHint = __esm({
      "src/language-client/inlayHint.ts"() {
        "use strict";
        init_languages();
        init_protocol();
        init_features();
        InlayHintsFeature = class extends TextDocumentLanguageFeature {
          constructor(client) {
            super(client, import_node4.InlayHintRequest.type);
          }
          fillClientCapabilities(capabilities) {
            const inlayHint = ensure(ensure(capabilities, "textDocument"), "inlayHint");
            inlayHint.dynamicRegistration = true;
            inlayHint.resolveSupport = {
              properties: ["tooltip", "textEdits", "label.tooltip", "label.location", "label.command"]
            };
            ensure(ensure(capabilities, "workspace"), "inlayHint").refreshSupport = true;
          }
          initialize(capabilities, documentSelector) {
            this._client.onRequest(import_node4.InlayHintRefreshRequest.type, async () => {
              for (const provider of this.getAllProviders()) {
                provider.onDidChangeInlayHints.fire();
              }
            });
            const [id2, options3] = this.getRegistration(documentSelector, capabilities.inlayHintProvider);
            if (!id2 || !options3) {
              return;
            }
            this.register({ id: id2, registerOptions: options3 });
          }
          registerLanguageProvider(options3) {
            const eventEmitter = new import_node4.Emitter();
            const provider = {
              onDidChangeInlayHints: eventEmitter.event,
              provideInlayHints: (document2, range2, token) => {
                const client = this._client;
                const provideInlayHints = (document3, range3, token2) => {
                  const requestParams = {
                    textDocument: client.code2ProtocolConverter.asTextDocumentIdentifier(document3),
                    range: range3
                  };
                  return this.sendRequest(import_node4.InlayHintRequest.type, requestParams, token2, null);
                };
                const middleware = client.middleware;
                return middleware.provideInlayHints ? middleware.provideInlayHints(document2, range2, token, provideInlayHints) : provideInlayHints(document2, range2, token);
              }
            };
            provider.resolveInlayHint = options3.resolveProvider === true ? (hint, token) => {
              const resolveInlayHint = (item, token2) => {
                return this.sendRequest(import_node4.InlayHintResolveRequest.type, item, token2);
              };
              return this.sendWithMiddleware(resolveInlayHint, "resolveInlayHint", hint, token);
            } : void 0;
            const selector = options3.documentSelector;
            this._client.attachExtensionName(provider);
            return [languages_default.registerInlayHintsProvider(selector, provider), { provider, onDidChangeInlayHints: eventEmitter }];
          }
        };
      }
    });
    
    // src/language-client/inlineCompletion.ts
    var import_vscode_languageserver_protocol2, InlineCompletionItemFeature;
    var init_inlineCompletion = __esm({
      "src/language-client/inlineCompletion.ts"() {
        "use strict";
        import_vscode_languageserver_protocol2 = __toESM(require_api3());
        init_languages();
        init_features();
        InlineCompletionItemFeature = class extends TextDocumentLanguageFeature {
          constructor(client) {
            super(client, import_vscode_languageserver_protocol2.InlineCompletionRequest.type);
          }
          fillClientCapabilities(capabilities) {
            const inlineCompletion = ensure(ensure(capabilities, "textDocument"), "inlineCompletion");
            inlineCompletion.dynamicRegistration = true;
          }
          initialize(capabilities, documentSelector) {
            const options3 = this.getRegistrationOptions(documentSelector, capabilities.inlineCompletionProvider);
            if (!options3) {
              return;
            }
            this.register({
              id: crypto.randomUUID(),
              registerOptions: options3
            });
          }
          registerLanguageProvider(options3) {
            const provider = {
              provideInlineCompletionItems: (document2, position, context, token) => {
                const provideInlineCompletionItems = (document3, position2, context2, token2) => {
                  const params = {
                    textDocument: { uri: document3.uri },
                    position: position2,
                    context: context2
                  };
                  return this.sendRequest(import_vscode_languageserver_protocol2.InlineCompletionRequest.type, params, token2, null);
                };
                const middleware = this._client.middleware;
                return middleware.provideInlineCompletionItems ? middleware.provideInlineCompletionItems(document2, position, context, token, provideInlineCompletionItems) : provideInlineCompletionItems(document2, position, context, token);
              }
            };
            this._client.attachExtensionName(provider);
            return [languages_default.registerInlineCompletionItemProvider(options3.documentSelector, provider), provider];
          }
        };
      }
    });
    
    // src/language-client/inlineValue.ts
    var InlineValueFeature;
    var init_inlineValue = __esm({
      "src/language-client/inlineValue.ts"() {
        "use strict";
        init_languages();
        init_protocol();
        init_features();
        InlineValueFeature = class extends TextDocumentLanguageFeature {
          constructor(client) {
            super(client, import_node4.InlineValueRequest.type);
          }
          fillClientCapabilities(capabilities) {
            ensure(ensure(capabilities, "textDocument"), "inlineValue").dynamicRegistration = true;
            ensure(ensure(capabilities, "workspace"), "inlineValue").refreshSupport = true;
          }
          initialize(capabilities, documentSelector) {
            this._client.onRequest(import_node4.InlineValueRefreshRequest.type, async () => {
              for (const provider of this.getAllProviders()) {
                provider.onDidChangeInlineValues.fire();
              }
            });
            const [id2, options3] = this.getRegistration(documentSelector, capabilities.inlineValueProvider);
            if (!id2 || !options3) {
              return;
            }
            this.register({ id: id2, registerOptions: options3 });
          }
          registerLanguageProvider(options3) {
            const eventEmitter = new import_node4.Emitter();
            const provider = {
              onDidChangeInlineValues: eventEmitter.event,
              provideInlineValues: (document2, viewPort, context, token) => {
                const client = this._client;
                const provideInlineValues = (document3, range2, context2, token2) => {
                  const requestParams = {
                    textDocument: client.code2ProtocolConverter.asTextDocumentIdentifier(document3),
                    range: range2,
                    context: context2
                  };
                  return this.sendRequest(import_node4.InlineValueRequest.type, requestParams, token2);
                };
                const middleware = client.middleware;
                return middleware.provideInlineValues ? middleware.provideInlineValues(document2, viewPort, context, token, provideInlineValues) : provideInlineValues(document2, viewPort, context, token);
              }
            };
            this._client.attachExtensionName(provider);
            const selector = options3.documentSelector;
            return [languages_default.registerInlineValuesProvider(selector, provider), { provider, onDidChangeInlineValues: eventEmitter }];
          }
        };
      }
    });
    
    // src/language-client/linkedEditingRange.ts
    var LinkedEditingFeature;
    var init_linkedEditingRange = __esm({
      "src/language-client/linkedEditingRange.ts"() {
        "use strict";
        init_languages();
        init_protocol();
        init_features();
        LinkedEditingFeature = class extends TextDocumentLanguageFeature {
          constructor(client) {
            super(client, import_node4.LinkedEditingRangeRequest.type);
          }
          fillClientCapabilities(capabilities) {
            const linkedEditingSupport = ensure(ensure(capabilities, "textDocument"), "linkedEditingRange");
            linkedEditingSupport.dynamicRegistration = true;
          }
          initialize(capabilities, documentSelector) {
            let [id2, options3] = this.getRegistration(documentSelector, capabilities.linkedEditingRangeProvider);
            if (!id2 || !options3) {
              return;
            }
            this.register({ id: id2, registerOptions: options3 });
          }
          registerLanguageProvider(options3) {
            const provider = {
              provideLinkedEditingRanges: (document2, position, token) => {
                const client = this._client;
                const provideLinkedEditing = (document3, position2, token2) => {
                  const params = client.code2ProtocolConverter.asTextDocumentPositionParams(document3, position2);
                  return this.sendRequest(import_node4.LinkedEditingRangeRequest.type, params, token2);
                };
                const middleware = client.middleware;
                return middleware.provideLinkedEditingRange ? middleware.provideLinkedEditingRange(document2, position, token, provideLinkedEditing) : provideLinkedEditing(document2, position, token);
              }
            };
            this._client.attachExtensionName(provider);
            return [languages_default.registerLinkedEditingRangeProvider(options3.documentSelector, provider), provider];
          }
        };
      }
    });
    
    // src/language-client/progressPart.ts
    function validPercent(n2) {
      if (typeof n2 !== "number") return false;
      return n2 >= 0 && n2 <= 100;
    }
    var ProgressPart;
    var init_progressPart = __esm({
      "src/language-client/progressPart.ts"() {
        "use strict";
        init_util();
        init_protocol();
        init_window();
        ProgressPart = class {
          constructor(client, token, done) {
            this.client = client;
            this.token = token;
            this.disposables.push(client.onProgress(import_node4.WorkDoneProgress.type, this.token, (value) => {
              switch (value.kind) {
                case "begin":
                  this.begin(value);
                  break;
                case "report":
                  this.report(value);
                  break;
                case "end":
                  this.done(value.message);
                  if (done) {
                    done(this);
                  }
                  break;
              }
            }));
          }
          client;
          token;
          disposables = [];
          _cancelled = false;
          _percent = 0;
          _started = false;
          progress;
          _resolve;
          _reject;
          begin(params) {
            if (this._started || this._cancelled) return false;
            this._started = true;
            void window_default.withProgress({
              source: `language-client-${this.client.id}`,
              cancellable: params.cancellable,
              title: params.title
            }, (progress, token) => {
              this.progress = progress;
              this.report(params);
              if (this._cancelled) return Promise.resolve();
              this.disposables.push(token.onCancellationRequested(() => {
                this.client.sendNotification(import_node4.WorkDoneProgressCancelNotification.type, { token: this.token });
                this.cancel();
              }));
              return new Promise((resolve, reject) => {
                this._resolve = resolve;
                this._reject = reject;
              });
            });
            return true;
          }
          report(params) {
            if (this.progress) {
              let msg = {};
              if (params.message) msg.message = params.message;
              if (validPercent(params.percentage)) {
                msg.increment = Math.round(params.percentage) - this._percent;
                this._percent = Math.round(params.percentage);
              }
              if (Object.keys(msg).length > 0) {
                this.progress.report(msg);
              }
            }
          }
          cancel() {
            if (this._cancelled) return;
            this.cleanUp();
            if (this._reject !== void 0) {
              this._reject();
              this._resolve = void 0;
              this._reject = void 0;
            }
          }
          done(message) {
            if (this.progress) {
              let msg = {};
              if (message) msg.message = message;
              if (typeof this._percent === "number" && this._percent > 0) msg.increment = 100 - this._percent;
              this.progress.report(msg);
            }
            this.cleanUp();
            if (this._resolve) {
              this._resolve();
              this._resolve = void 0;
              this._reject = void 0;
            }
          }
          cleanUp() {
            this._cancelled = true;
            this.progress = void 0;
            disposeAll(this.disposables);
          }
        };
      }
    });
    
    // src/language-client/progress.ts
    var ProgressFeature;
    var init_progress2 = __esm({
      "src/language-client/progress.ts"() {
        "use strict";
        init_protocol();
        init_features();
        init_progressPart();
        ProgressFeature = class {
          constructor(_client) {
            this._client = _client;
          }
          _client;
          activeParts = /* @__PURE__ */ new Set();
          get method() {
            return import_node4.WorkDoneProgressCreateRequest.method;
          }
          fillInitializeParams(_params) {
          }
          fillClientCapabilities(capabilities) {
            ensure(capabilities, "window").workDoneProgress = true;
          }
          getState() {
            return { kind: "window", id: import_node4.WorkDoneProgressCreateRequest.method, registrations: this.activeParts.size > 0 };
          }
          initialize() {
            let client = this._client;
            const deleteHandler = (part) => {
              this.activeParts.delete(part);
            };
            const createHandler = (params) => {
              this.activeParts.add(new ProgressPart(this._client, params.token, deleteHandler));
            };
            client.onRequest(import_node4.WorkDoneProgressCreateRequest.type, createHandler);
          }
          dispose() {
            for (const part of this.activeParts) {
              part.done();
            }
            this.activeParts.clear();
          }
        };
      }
    });
    
    // src/language-client/reference.ts
    var ReferencesFeature;
    var init_reference = __esm({
      "src/language-client/reference.ts"() {
        "use strict";
        init_languages();
        init_protocol();
        init_features();
        ReferencesFeature = class extends TextDocumentLanguageFeature {
          constructor(client) {
            super(client, import_node4.ReferencesRequest.type);
          }
          fillClientCapabilities(capabilities) {
            ensure(
              ensure(capabilities, "textDocument"),
              "references"
            ).dynamicRegistration = true;
          }
          initialize(capabilities, documentSelector) {
            const options3 = this.getRegistrationOptions(documentSelector, capabilities.referencesProvider);
            if (!options3) {
              return;
            }
            this.register({
              id: crypto.randomUUID(),
              registerOptions: options3
            });
          }
          registerLanguageProvider(options3) {
            const provider = {
              provideReferences: (document2, position, options4, token) => {
                const client = this._client;
                const _providerReferences = (document3, position2, options5, token2) => {
                  return this.sendRequest(
                    import_node4.ReferencesRequest.type,
                    client.code2ProtocolConverter.asReferenceParams(document3, position2, options5),
                    token2
                  );
                };
                const middleware = client.middleware;
                return middleware.provideReferences ? middleware.provideReferences(document2, position, options4, token, _providerReferences) : _providerReferences(document2, position, options4, token);
              }
            };
            this._client.attachExtensionName(provider);
            return [languages_default.registerReferencesProvider(options3.documentSelector, provider), provider];
          }
        };
      }
    });
    
    // src/language-client/rename.ts
    var RenameFeature;
    var init_rename = __esm({
      "src/language-client/rename.ts"() {
        "use strict";
        init_main();
        init_languages();
        init_is();
        init_protocol();
        init_features();
        RenameFeature = class extends TextDocumentLanguageFeature {
          constructor(client) {
            super(client, import_node4.RenameRequest.type);
          }
          fillClientCapabilities(capabilities) {
            let rename = ensure(ensure(capabilities, "textDocument"), "rename");
            rename.dynamicRegistration = true;
            rename.prepareSupport = true;
            rename.honorsChangeAnnotations = true;
            rename.prepareSupportDefaultBehavior = import_node4.PrepareSupportDefaultBehavior.Identifier;
          }
          initialize(capabilities, documentSelector) {
            const options3 = this.getRegistrationOptions(documentSelector, capabilities.renameProvider);
            if (!options3) {
              return;
            }
            if (boolean(capabilities.renameProvider)) {
              options3.prepareProvider = false;
            }
            this.register({
              id: crypto.randomUUID(),
              registerOptions: options3
            });
          }
          registerLanguageProvider(options3) {
            const provider = {
              provideRenameEdits: (document2, position, newName, token) => {
                const client = this._client;
                const provideRenameEdits = (document3, position2, newName2, token2) => {
                  const params = {
                    textDocument: client.code2ProtocolConverter.asTextDocumentIdentifier(document3),
                    position: position2,
                    newName: newName2
                  };
                  return this.sendRequest(import_node4.RenameRequest.type, params, token2);
                };
                const middleware = client.middleware;
                return middleware.provideRenameEdits ? middleware.provideRenameEdits(document2, position, newName, token, provideRenameEdits) : provideRenameEdits(document2, position, newName, token);
              },
              prepareRename: options3.prepareProvider ? (document2, position, token) => {
                const client = this._client;
                const prepareRename = (document3, position2, token2) => {
                  const params = {
                    textDocument: client.code2ProtocolConverter.asTextDocumentIdentifier(document3),
                    position: position2
                  };
                  return this.sendRequest(import_node4.PrepareRenameRequest.type, params, token2).then((result) => {
                    if (!result) return null;
                    if (Range.is(result)) {
                      return result;
                    } else if (this.isDefaultBehavior(result)) {
                      return result.defaultBehavior === true ? null : Promise.reject(new Error(`The element can't be renamed.`));
                    } else if (result && Range.is(result.range)) {
                      return {
                        range: result.range,
                        placeholder: result.placeholder
                      };
                    }
                  });
                };
                const middleware = client.middleware;
                return middleware.prepareRename ? middleware.prepareRename(document2, position, token, prepareRename) : prepareRename(document2, position, token);
              } : void 0
            };
            this._client.attachExtensionName(provider);
            return [languages_default.registerRenameProvider(options3.documentSelector, provider), provider];
          }
          isDefaultBehavior(value) {
            const candidate = value;
            return candidate && boolean(candidate.defaultBehavior);
          }
        };
      }
    });
    
    // src/language-client/selectionRange.ts
    var SelectionRangeFeature;
    var init_selectionRange = __esm({
      "src/language-client/selectionRange.ts"() {
        "use strict";
        init_languages();
        init_protocol();
        init_features();
        SelectionRangeFeature = class extends TextDocumentLanguageFeature {
          constructor(client) {
            super(client, import_node4.SelectionRangeRequest.type);
          }
          fillClientCapabilities(capabilities) {
            let capability = ensure(ensure(capabilities, "textDocument"), "selectionRange");
            capability.dynamicRegistration = true;
          }
          initialize(capabilities, documentSelector) {
            let [id2, options3] = this.getRegistration(documentSelector, capabilities.selectionRangeProvider);
            if (!id2 || !options3) {
              return;
            }
            this.register({ id: id2, registerOptions: options3 });
          }
          registerLanguageProvider(options3) {
            const provider = {
              provideSelectionRanges: (document2, positions, token) => {
                const client = this._client;
                const provideSelectionRanges = (document3, positions2, token2) => {
                  const requestParams = {
                    textDocument: client.code2ProtocolConverter.asTextDocumentIdentifier(document3),
                    positions: positions2
                  };
                  return this.sendRequest(import_node4.SelectionRangeRequest.type, requestParams, token2);
                };
                const middleware = client.middleware;
                return middleware.provideSelectionRanges ? middleware.provideSelectionRanges(document2, positions, token, provideSelectionRanges) : provideSelectionRanges(document2, positions, token);
              }
            };
            this._client.attachExtensionName(provider);
            return [languages_default.registerSelectionRangeProvider(options3.documentSelector, provider), provider];
          }
        };
      }
    });
    
    // src/language-client/semanticTokens.ts
    var SemanticTokensFeature;
    var init_semanticTokens = __esm({
      "src/language-client/semanticTokens.ts"() {
        "use strict";
        init_main();
        init_languages();
        init_is();
        init_protocol();
        init_features();
        SemanticTokensFeature = class extends TextDocumentLanguageFeature {
          constructor(client) {
            super(client, import_node4.SemanticTokensRegistrationType.type);
          }
          fillClientCapabilities(capabilities) {
            const capability = ensure(ensure(capabilities, "textDocument"), "semanticTokens");
            capability.dynamicRegistration = true;
            capability.tokenTypes = [
              SemanticTokenTypes.namespace,
              SemanticTokenTypes.type,
              SemanticTokenTypes.class,
              SemanticTokenTypes.enum,
              SemanticTokenTypes.interface,
              SemanticTokenTypes.struct,
              SemanticTokenTypes.typeParameter,
              SemanticTokenTypes.parameter,
              SemanticTokenTypes.variable,
              SemanticTokenTypes.property,
              SemanticTokenTypes.enumMember,
              SemanticTokenTypes.event,
              SemanticTokenTypes.function,
              SemanticTokenTypes.method,
              SemanticTokenTypes.macro,
              SemanticTokenTypes.keyword,
              SemanticTokenTypes.modifier,
              SemanticTokenTypes.comment,
              SemanticTokenTypes.string,
              SemanticTokenTypes.number,
              SemanticTokenTypes.regexp,
              SemanticTokenTypes.decorator,
              SemanticTokenTypes.label,
              SemanticTokenTypes.operator
            ];
            capability.tokenModifiers = [
              SemanticTokenModifiers.declaration,
              SemanticTokenModifiers.definition,
              SemanticTokenModifiers.readonly,
              SemanticTokenModifiers.static,
              SemanticTokenModifiers.deprecated,
              SemanticTokenModifiers.abstract,
              SemanticTokenModifiers.async,
              SemanticTokenModifiers.modification,
              SemanticTokenModifiers.documentation,
              SemanticTokenModifiers.defaultLibrary
            ];
            capability.formats = [import_node4.TokenFormat.Relative];
            capability.requests = {
              range: true,
              full: {
                delta: true
              }
            };
            capability.multilineTokenSupport = false;
            capability.overlappingTokenSupport = false;
            capability.serverCancelSupport = true;
            capability.augmentsSyntaxTokens = true;
            ensure(ensure(capabilities, "workspace"), "semanticTokens").refreshSupport = true;
          }
          initialize(capabilities, documentSelector) {
            const client = this._client;
            client.onRequest(import_node4.SemanticTokensRefreshRequest.type, async () => {
              for (const provider of this.getAllProviders()) {
                provider.onDidChangeSemanticTokensEmitter.fire();
              }
            });
            const [id2, options3] = this.getRegistration(documentSelector, capabilities.semanticTokensProvider);
            if (!id2 || !options3) {
              return;
            }
            this.register({ id: id2, registerOptions: options3 });
          }
          registerLanguageProvider(options3) {
            const fullProvider = boolean(options3.full) ? options3.full : options3.full !== void 0;
            const hasEditProvider = options3.full !== void 0 && typeof options3.full !== "boolean" && options3.full.delta === true;
            const eventEmitter = new import_node4.Emitter();
            const documentProvider = fullProvider ? {
              onDidChangeSemanticTokens: eventEmitter.event,
              provideDocumentSemanticTokens: (document2, token) => {
                const client = this._client;
                const middleware = client.middleware;
                const provideDocumentSemanticTokens = (document3, token2) => {
                  const params = {
                    textDocument: client.code2ProtocolConverter.asTextDocumentIdentifier(document3)
                  };
                  return this.sendRequest(import_node4.SemanticTokensRequest.type, params, token2);
                };
                return middleware.provideDocumentSemanticTokens ? middleware.provideDocumentSemanticTokens(document2, token, provideDocumentSemanticTokens) : provideDocumentSemanticTokens(document2, token);
              },
              provideDocumentSemanticTokensEdits: hasEditProvider ? (document2, previousResultId, token) => {
                const client = this._client;
                const middleware = client.middleware;
                const provideDocumentSemanticTokensEdits = (document3, previousResultId2, token2) => {
                  const params = {
                    textDocument: client.code2ProtocolConverter.asTextDocumentIdentifier(document3),
                    previousResultId: previousResultId2
                  };
                  return this.sendRequest(import_node4.SemanticTokensDeltaRequest.type, params, token2);
                };
                return middleware.provideDocumentSemanticTokensEdits ? middleware.provideDocumentSemanticTokensEdits(document2, previousResultId, token, provideDocumentSemanticTokensEdits) : provideDocumentSemanticTokensEdits(document2, previousResultId, token);
              } : void 0
            } : void 0;
            const hasRangeProvider = options3.range === true;
            const rangeProvider = hasRangeProvider ? {
              provideDocumentRangeSemanticTokens: (document2, range2, token) => {
                const client = this._client;
                const middleware = client.middleware;
                const provideDocumentRangeSemanticTokens = (document3, range3, token2) => {
                  const params = {
                    textDocument: client.code2ProtocolConverter.asTextDocumentIdentifier(document3),
                    range: range3
                  };
                  return this.sendRequest(import_node4.SemanticTokensRangeRequest.type, params, token2);
                };
                return middleware.provideDocumentRangeSemanticTokens ? middleware.provideDocumentRangeSemanticTokens(document2, range2, token, provideDocumentRangeSemanticTokens) : provideDocumentRangeSemanticTokens(document2, range2, token);
              }
            } : void 0;
            const disposables = [];
            if (documentProvider !== void 0) {
              this._client.attachExtensionName(documentProvider);
              disposables.push(languages_default.registerDocumentSemanticTokensProvider(options3.documentSelector, documentProvider, options3.legend));
            }
            if (rangeProvider !== void 0) {
              this._client.attachExtensionName(rangeProvider);
              disposables.push(languages_default.registerDocumentRangeSemanticTokensProvider(options3.documentSelector, rangeProvider, options3.legend));
            }
            return [import_node4.Disposable.create(() => disposables.forEach((item) => item.dispose())), { range: rangeProvider, full: documentProvider, onDidChangeSemanticTokensEmitter: eventEmitter }];
          }
        };
      }
    });
    
    // src/language-client/signatureHelp.ts
    var SignatureHelpFeature;
    var init_signatureHelp = __esm({
      "src/language-client/signatureHelp.ts"() {
        "use strict";
        init_languages();
        init_protocol();
        init_features();
        SignatureHelpFeature = class extends TextDocumentLanguageFeature {
          constructor(client) {
            super(client, import_node4.SignatureHelpRequest.type);
          }
          fillClientCapabilities(capabilities) {
            let config = ensure(ensure(capabilities, "textDocument"), "signatureHelp");
            config.dynamicRegistration = true;
            config.contextSupport = true;
            config.signatureInformation = {
              documentationFormat: this._client.supportedMarkupKind,
              activeParameterSupport: true,
              noActiveParameterSupport: true,
              parameterInformation: {
                labelOffsetSupport: true
              }
            };
          }
          initialize(capabilities, documentSelector) {
            const options3 = this.getRegistrationOptions(documentSelector, capabilities.signatureHelpProvider);
            if (!options3) return;
            this.register({
              id: crypto.randomUUID(),
              registerOptions: options3
            });
          }
          registerLanguageProvider(options3) {
            const provider = {
              provideSignatureHelp: (document2, position, token, context) => {
                const client = this._client;
                const providerSignatureHelp = (document3, position2, context2, token2) => {
                  return this.sendRequest(
                    import_node4.SignatureHelpRequest.type,
                    client.code2ProtocolConverter.asSignatureHelpParams(document3, position2, context2),
                    token2
                  );
                };
                const middleware = client.middleware;
                return middleware.provideSignatureHelp ? middleware.provideSignatureHelp(document2, position, context, token, providerSignatureHelp) : providerSignatureHelp(document2, position, context, token);
              }
            };
            this._client.attachExtensionName(provider);
            const disposable = languages_default.registerSignatureHelpProvider(options3.documentSelector, provider, options3.triggerCharacters);
            return [disposable, provider];
          }
        };
      }
    });
    
    // src/language-client/textDocumentContent.ts
    var import_vscode_languageserver_protocol3, TextDocumentContentFeature;
    var init_textDocumentContent = __esm({
      "src/language-client/textDocumentContent.ts"() {
        "use strict";
        import_vscode_languageserver_protocol3 = __toESM(require_api3());
        init_esm();
        init_util();
        init_array();
        init_workspace();
        init_features();
        TextDocumentContentFeature = class {
          _client;
          _registrations = /* @__PURE__ */ new Map();
          constructor(client) {
            this._client = client;
          }
          getState() {
            const registrations = this._registrations.size > 0;
            return { kind: "workspace", id: import_vscode_languageserver_protocol3.TextDocumentContentRequest.method, registrations };
          }
          get registrationType() {
            return import_vscode_languageserver_protocol3.TextDocumentContentRequest.type;
          }
          getProviders() {
            const result = [];
            for (const registration of this._registrations.values()) {
              result.push(...registration.providers);
            }
            return result;
          }
          fillClientCapabilities(capabilities) {
            const textDocumentContent = ensure(ensure(capabilities, "workspace"), "textDocumentContent");
            textDocumentContent.dynamicRegistration = true;
          }
          initialize(capabilities) {
            const client = this._client;
            client.onRequest(import_vscode_languageserver_protocol3.TextDocumentContentRefreshRequest.type, async (params) => {
              const uri = u.parse(params.uri);
              for (const registrations of this._registrations.values()) {
                for (const provider of registrations.providers) {
                  if (provider.scheme === uri.scheme) {
                    provider.onDidChangeEmitter.fire(uri);
                  }
                }
              }
            });
            const capability = defaultValue(defaultValue(capabilities, {}).workspace, {}).textDocumentContent;
            if (capability) {
              const id2 = import_vscode_languageserver_protocol3.StaticRegistrationOptions.hasId(capability) ? capability.id : crypto.randomUUID();
              this.register({
                id: id2,
                registerOptions: capability
              });
            }
          }
          register(data) {
            const registrations = [];
            const disposables = [];
            for (const scheme of toArray(data.registerOptions.schemes)) {
              const [disposable, registration] = this.registerTextDocumentContentProvider(scheme);
              disposables.push(disposable);
              registrations.push(registration);
            }
            this._registrations.set(data.id, {
              disposable: import_vscode_languageserver_protocol3.Disposable.create(() => {
                disposeAll(disposables);
              }),
              providers: registrations
            });
          }
          registerTextDocumentContentProvider(scheme) {
            const eventEmitter = new import_vscode_languageserver_protocol3.Emitter();
            const provider = {
              onDidChange: eventEmitter.event,
              provideTextDocumentContent: (uri, token) => {
                const client = this._client;
                const provideTextDocumentContent = (uri2, token2) => {
                  const params = {
                    uri: uri2.toString()
                  };
                  return client.sendRequest(import_vscode_languageserver_protocol3.TextDocumentContentRequest.type, params, token2).then((result) => {
                    return result?.text;
                  }, (error) => {
                    return client.handleFailedRequest(import_vscode_languageserver_protocol3.TextDocumentContentRequest.type, token2, error, null);
                  });
                };
                const middleware = client.middleware;
                return middleware.provideTextDocumentContent ? middleware.provideTextDocumentContent(uri, token, provideTextDocumentContent) : provideTextDocumentContent(uri, token);
              }
            };
            return [workspace_default.registerTextDocumentContentProvider(scheme, provider), { scheme, onDidChangeEmitter: eventEmitter, provider }];
          }
          unregister(id2) {
            const registration = this._registrations.get(id2);
            if (registration !== void 0) {
              this._registrations.delete(id2);
              registration.disposable.dispose();
            }
          }
          dispose() {
            this._registrations.forEach((value) => {
              value.disposable.dispose();
            });
            this._registrations.clear();
          }
        };
      }
    });
    
    // src/language-client/textSynchronization.ts
    var path3, DidOpenTextDocumentFeature, DidCloseTextDocumentFeature, DidChangeTextDocumentFeature, WillSaveFeature, WillSaveWaitUntilFeature, DidSaveTextDocumentFeature;
    var init_textSynchronization = __esm({
      "src/language-client/textSynchronization.ts"() {
        "use strict";
        path3 = __toESM(require("path"));
        init_esm();
        init_util();
        init_protocol();
        init_workspace();
        init_features();
        DidOpenTextDocumentFeature = class extends TextDocumentEventFeature {
          _syncedDocuments;
          _pendingOpenNotifications;
          _delayOpen;
          _pendingOpenListeners;
          constructor(client, syncedDocuments) {
            super(
              client,
              workspace_default.onDidOpenTextDocument,
              import_node4.DidOpenTextDocumentNotification.type,
              "didOpen",
              (textDocument) => {
                let params = client.code2ProtocolConverter.asOpenTextDocumentParams(textDocument);
                let languageIdMap = client.clientOptions.languageIdMap;
                if (languageIdMap && params.textDocument) {
                  let uri = u.parse(textDocument.uri);
                  let fsPath2 = uri.scheme === "file" ? uri.fsPath : textDocument.uri;
                  let filename = path3.basename(fsPath2);
                  let languageId = languageIdMap[filename] ?? languageIdMap[fsPath2];
                  if (languageId) params.textDocument.languageId = languageId;
                }
                return params;
              },
              TextDocumentEventFeature.textDocumentFilter
            );
            this._syncedDocuments = syncedDocuments;
            this._pendingOpenNotifications = /* @__PURE__ */ new Map();
            this._delayOpen = defaultValue(defaultValue(client.clientOptions.textSynchronization, {}).delayOpenNotifications, false);
          }
          async callback(document2) {
            if (!this._delayOpen) {
              return super.callback(document2);
            } else {
              if (!this.matches(document2)) {
                return;
              }
              const tabsModel = workspace_default.tabs;
              if (tabsModel.isVisible(document2)) {
                return super.callback(document2);
              } else {
                this._pendingOpenNotifications.set(document2.uri.toString(), document2);
              }
            }
          }
          fillClientCapabilities(capabilities) {
            ensure(ensure(capabilities, "textDocument"), "synchronization").dynamicRegistration = true;
          }
          get openDocuments() {
            return this._syncedDocuments.values();
          }
          initialize(capabilities, documentSelector) {
            let textDocumentSyncOptions = capabilities.resolvedTextDocumentSync;
            if (documentSelector && textDocumentSyncOptions && textDocumentSyncOptions.openClose) {
              this.register({
                id: crypto.randomUUID(),
                registerOptions: { documentSelector }
              });
            }
          }
          get registrationType() {
            return import_node4.DidOpenTextDocumentNotification.type;
          }
          register(data) {
            super.register(data);
            if (!data.registerOptions.documentSelector) return;
            const onError = (error) => {
              this._client.error(`Sending document notification ${this._type.method} failed`, error);
            };
            workspace_default.textDocuments.forEach((textDocument) => {
              let uri = textDocument.uri;
              if (!this._syncedDocuments.has(uri)) {
                this.callback(textDocument).catch(onError);
              }
            });
            if (this._delayOpen && this._pendingOpenListeners === void 0) {
              this._pendingOpenListeners = [];
              const tabsModel = workspace_default.tabs;
              this._pendingOpenListeners.push(tabsModel.onClose((closed) => {
                for (const uri of closed) {
                  this._pendingOpenNotifications.delete(uri.toString());
                }
              }));
              this._pendingOpenListeners.push(tabsModel.onOpen((opened) => {
                for (const uri of opened) {
                  const document2 = this._pendingOpenNotifications.get(uri.toString());
                  if (document2 !== void 0) {
                    super.callback(document2).catch(onError);
                    this._pendingOpenNotifications.delete(uri.toString());
                  }
                }
              }));
              this._pendingOpenListeners.push(workspace_default.onDidCloseTextDocument((document2) => {
                this._pendingOpenNotifications.delete(document2.uri);
              }));
            }
          }
          /**
           * Sends any pending open notifications unless they are for the document
           * being closed.
           * @param closingDocument The document being closed.
           * @returns Whether a pending open notification was dropped because it was for the closing document.
           */
          async sendPendingOpenNotifications(closingDocument) {
            if (!this._delayOpen) return false;
            const notifications = Array.from(this._pendingOpenNotifications.values());
            this._pendingOpenNotifications.clear();
            let didDropOpenNotification = false;
            for (const notification of notifications) {
              if (closingDocument !== void 0 && notification.uri.toString() === closingDocument) {
                didDropOpenNotification = true;
                continue;
              }
              await super.callback(notification);
            }
            return didDropOpenNotification;
          }
          notificationSent(textDocument, type, params) {
            super.notificationSent(textDocument, type, params);
            this._syncedDocuments.set(textDocument.uri.toString(), textDocument);
          }
          dispose() {
            this._pendingOpenNotifications.clear();
            disposeAll(this._pendingOpenListeners ?? []);
            this._pendingOpenListeners = void 0;
            super.dispose();
          }
        };
        DidCloseTextDocumentFeature = class extends TextDocumentEventFeature {
          constructor(client, _syncedDocuments) {
            super(
              client,
              workspace_default.onDidCloseTextDocument,
              import_node4.DidCloseTextDocumentNotification.type,
              "didClose",
              (textDocument) => client.code2ProtocolConverter.asCloseTextDocumentParams(textDocument),
              TextDocumentEventFeature.textDocumentFilter
            );
            this._syncedDocuments = _syncedDocuments;
          }
          _syncedDocuments;
          get registrationType() {
            return import_node4.DidCloseTextDocumentNotification.type;
          }
          fillClientCapabilities(capabilities) {
            ensure(
              ensure(capabilities, "textDocument"),
              "synchronization"
            ).dynamicRegistration = true;
          }
          initialize(capabilities, documentSelector) {
            let textDocumentSyncOptions = capabilities.resolvedTextDocumentSync;
            if (documentSelector && textDocumentSyncOptions && textDocumentSyncOptions.openClose) {
              this.register({
                id: crypto.randomUUID(),
                registerOptions: { documentSelector }
              });
            }
          }
          notificationSent(textDocument, type, params) {
            super.notificationSent(textDocument, type, params);
            this._syncedDocuments.delete(textDocument.uri.toString());
          }
          unregister(id2) {
            let selector = this._selectors.get(id2);
            if (!selector) return;
            super.unregister(id2);
            let selectors = this._selectors.values();
            this._syncedDocuments.forEach((textDocument) => {
              if (workspace_default.match(selector, textDocument) > 0 && !this._selectorFilter(selectors, textDocument)) {
                this.sendNotification(textDocument).catch((error) => {
                  this._client.error(`Sending document notification ${this._type.method} failed`, error);
                });
              }
            });
          }
        };
        DidChangeTextDocumentFeature = class extends DynamicDocumentFeature {
          _listener;
          _changeData;
          _onAboutToSendNotification;
          _onNotificationSent;
          constructor(client) {
            super(client);
            this._changeData = /* @__PURE__ */ new Map();
            this._onAboutToSendNotification = new import_node4.Emitter();
            this._onNotificationSent = new import_node4.Emitter();
          }
          *getDocumentSelectors() {
            for (const data of this._changeData.values()) {
              yield data.documentSelector;
            }
          }
          get registrationType() {
            return import_node4.DidChangeTextDocumentNotification.type;
          }
          fillClientCapabilities(capabilities) {
            ensure(ensure(capabilities, "textDocument"), "synchronization").dynamicRegistration = true;
          }
          initialize(capabilities, documentSelector) {
            let textDocumentSyncOptions = capabilities.resolvedTextDocumentSync;
            if (documentSelector && textDocumentSyncOptions && textDocumentSyncOptions.change !== void 0 && textDocumentSyncOptions.change !== import_node4.TextDocumentSyncKind.None) {
              this.register({
                id: crypto.randomUUID(),
                registerOptions: Object.assign(
                  {},
                  { documentSelector },
                  { syncKind: textDocumentSyncOptions.change }
                )
              });
            }
          }
          register(data) {
            if (!data.registerOptions.documentSelector) return;
            if (!this._listener) {
              this._listener = workspace_default.onDidChangeTextDocument(this.callback, this);
            }
            this._changeData.set(data.id, {
              documentSelector: data.registerOptions.documentSelector,
              syncKind: data.registerOptions.syncKind
            });
          }
          callback(event) {
            if (event.contentChanges.length === 0) {
              return;
            }
            const promises = [];
            for (const changeData of this._changeData.values()) {
              if (workspace_default.match(changeData.documentSelector, event.document) > 0) {
                let middleware = this._client.middleware;
                let didChange;
                const client = this._client;
                if (changeData.syncKind === import_node4.TextDocumentSyncKind.Incremental) {
                  didChange = async (event2) => {
                    const params = client.code2ProtocolConverter.asChangeTextDocumentParams(event2);
                    this.aboutToSendNotification(event2, import_node4.DidChangeTextDocumentNotification.type, params);
                    await this._client.sendNotification(import_node4.DidChangeTextDocumentNotification.type, params);
                    this.notificationSent(event2, import_node4.DidChangeTextDocumentNotification.type, params);
                  };
                } else if (changeData.syncKind === import_node4.TextDocumentSyncKind.Full) {
                  didChange = async (event2) => {
                    const params = client.code2ProtocolConverter.asFullChangeTextDocumentParams(event2.document);
                    this.aboutToSendNotification(event2, import_node4.DidChangeTextDocumentNotification.type, params);
                    await this._client.sendNotification(import_node4.DidChangeTextDocumentNotification.type, params);
                    this.notificationSent(event2, import_node4.DidChangeTextDocumentNotification.type, params);
                  };
                }
                if (didChange) {
                  promises.push(middleware.didChange ? middleware.didChange(event, didChange) : didChange(event));
                }
              }
            }
            return Promise.all(promises).then(void 0, (error) => {
              this._client.error(`Sending document notification ${import_node4.DidChangeTextDocumentNotification.type.method} failed`, error);
            });
          }
          get onNotificationSent() {
            return this._onNotificationSent.event;
          }
          get onAboutToSendNotification() {
            return this._onAboutToSendNotification.event;
          }
          aboutToSendNotification(changeEvent, type, params) {
            this._onAboutToSendNotification.fire({ original: changeEvent, type, params });
          }
          notificationSent(changeEvent, type, params) {
            this._onNotificationSent.fire({ original: changeEvent, type, params });
          }
          unregister(id2) {
            this._changeData.delete(id2);
          }
          dispose() {
            this._changeData.clear();
            this._onAboutToSendNotification.dispose();
            this._onAboutToSendNotification = new import_node4.Emitter();
            this._onNotificationSent.dispose();
            this._onNotificationSent = new import_node4.Emitter();
            if (this._listener) {
              this._listener.dispose();
              this._listener = void 0;
            }
          }
          getProvider(document2) {
            for (const changeData of this._changeData.values()) {
              if (workspace_default.match(changeData.documentSelector, document2) > 0) {
                return {
                  send: (event) => {
                    return this.callback(event);
                  }
                };
              }
            }
            return void 0;
          }
        };
        WillSaveFeature = class extends TextDocumentEventFeature {
          constructor(client) {
            super(
              client,
              workspace_default.onWillSaveTextDocument,
              import_node4.WillSaveTextDocumentNotification.type,
              "willSave",
              (willSaveEvent) => client.code2ProtocolConverter.asWillSaveTextDocumentParams(willSaveEvent),
              (selectors, willSaveEvent) => TextDocumentEventFeature.textDocumentFilter(selectors, willSaveEvent.document)
            );
          }
          get registrationType() {
            return import_node4.WillSaveTextDocumentNotification.type;
          }
          fillClientCapabilities(capabilities) {
            let value = ensure(ensure(capabilities, "textDocument"), "synchronization");
            value.willSave = true;
          }
          initialize(capabilities, documentSelector) {
            let textDocumentSyncOptions = capabilities.resolvedTextDocumentSync;
            if (documentSelector && textDocumentSyncOptions && textDocumentSyncOptions.willSave) {
              this.register({
                id: crypto.randomUUID(),
                registerOptions: { documentSelector }
              });
            }
          }
        };
        WillSaveWaitUntilFeature = class extends DynamicDocumentFeature {
          _listener;
          _selectors;
          constructor(client) {
            super(client);
            this._selectors = /* @__PURE__ */ new Map();
          }
          getDocumentSelectors() {
            return this._selectors.values();
          }
          get registrationType() {
            return import_node4.WillSaveTextDocumentWaitUntilRequest.type;
          }
          fillClientCapabilities(capabilities) {
            let value = ensure(ensure(capabilities, "textDocument"), "synchronization");
            value.willSaveWaitUntil = true;
          }
          initialize(capabilities, documentSelector) {
            let textDocumentSyncOptions = capabilities.resolvedTextDocumentSync;
            if (documentSelector && documentSelector.length > 0 && textDocumentSyncOptions && textDocumentSyncOptions.willSaveWaitUntil) {
              this.register({
                id: crypto.randomUUID(),
                registerOptions: { documentSelector }
              });
            }
          }
          register(data) {
            if (data.registerOptions.documentSelector) {
              if (!this._listener) {
                this._listener = workspace_default.onWillSaveTextDocument(this.callback, this);
              }
              this._selectors.set(data.id, data.registerOptions.documentSelector);
            }
          }
          callback(event) {
            if (TextDocumentEventFeature.textDocumentFilter(
              this._selectors.values(),
              event.document
            )) {
              const client = this._client;
              let middleware = this._client.middleware;
              let willSaveWaitUntil = (event2) => {
                return this.sendRequest(
                  import_node4.WillSaveTextDocumentWaitUntilRequest.type,
                  client.code2ProtocolConverter.asWillSaveTextDocumentParams(event2),
                  import_node4.CancellationToken.None
                );
              };
              event.waitUntil(
                middleware.willSaveWaitUntil ? middleware.willSaveWaitUntil(event, willSaveWaitUntil) : willSaveWaitUntil(event)
              );
            }
          }
          unregister(id2) {
            this._selectors.delete(id2);
            if (this._selectors.size === 0 && this._listener) {
              this._listener.dispose();
              this._listener = void 0;
            }
          }
          dispose() {
            this._selectors.clear();
            if (this._listener) {
              this._listener.dispose();
              this._listener = void 0;
            }
          }
        };
        DidSaveTextDocumentFeature = class extends TextDocumentEventFeature {
          _includeText;
          constructor(client) {
            super(
              client,
              workspace_default.onDidSaveTextDocument,
              import_node4.DidSaveTextDocumentNotification.type,
              "didSave",
              (textDocument) => client.code2ProtocolConverter.asSaveTextDocumentParams(textDocument, this._includeText),
              TextDocumentEventFeature.textDocumentFilter
            );
            this._includeText = false;
          }
          get registrationType() {
            return import_node4.DidSaveTextDocumentNotification.type;
          }
          fillClientCapabilities(capabilities) {
            ensure(ensure(capabilities, "textDocument"), "synchronization").didSave = true;
          }
          initialize(capabilities, documentSelector) {
            const textDocumentSyncOptions = capabilities.resolvedTextDocumentSync;
            if (documentSelector && textDocumentSyncOptions && textDocumentSyncOptions.save) {
              const saveOptions = typeof textDocumentSyncOptions.save === "boolean" ? { includeText: false } : { includeText: !!textDocumentSyncOptions.save.includeText };
              this.register({
                id: crypto.randomUUID(),
                registerOptions: Object.assign({}, { documentSelector }, saveOptions)
              });
            }
          }
          register(data) {
            this._includeText = !!data.registerOptions.includeText;
            super.register(data);
          }
        };
      }
    });
    
    // src/language-client/typeDefinition.ts
    var TypeDefinitionFeature;
    var init_typeDefinition = __esm({
      "src/language-client/typeDefinition.ts"() {
        "use strict";
        init_languages();
        init_protocol();
        init_features();
        TypeDefinitionFeature = class extends TextDocumentLanguageFeature {
          constructor(client) {
            super(client, import_node4.TypeDefinitionRequest.type);
          }
          fillClientCapabilities(capabilities) {
            const typeDefinitionSupport = ensure(ensure(capabilities, "textDocument"), "typeDefinition");
            typeDefinitionSupport.dynamicRegistration = true;
            typeDefinitionSupport.linkSupport = true;
          }
          initialize(capabilities, documentSelector) {
            const [id2, options3] = this.getRegistration(documentSelector, capabilities.typeDefinitionProvider);
            if (!id2 || !options3) {
              return;
            }
            this.register({ id: id2, registerOptions: options3 });
          }
          registerLanguageProvider(options3) {
            const provider = {
              provideTypeDefinition: (document2, position, token) => {
                const client = this._client;
                const provideTypeDefinition = (document3, position2, token2) => this.sendRequest(import_node4.TypeDefinitionRequest.type, client.code2ProtocolConverter.asTextDocumentPositionParams(document3, position2), token2);
                const middleware = client.middleware;
                return middleware.provideTypeDefinition ? middleware.provideTypeDefinition(document2, position, token, provideTypeDefinition) : provideTypeDefinition(document2, position, token);
              }
            };
            this._client.attachExtensionName(provider);
            return [languages_default.registerTypeDefinitionProvider(options3.documentSelector, provider), provider];
          }
        };
      }
    });
    
    // src/language-client/typeHierarchy.ts
    var TypeHierarchyFeature;
    var init_typeHierarchy = __esm({
      "src/language-client/typeHierarchy.ts"() {
        "use strict";
        init_languages();
        init_protocol();
        init_features();
        TypeHierarchyFeature = class extends TextDocumentLanguageFeature {
          constructor(client) {
            super(client, import_node4.TypeHierarchyPrepareRequest.type);
          }
          fillClientCapabilities(capabilities) {
            const capability = ensure(ensure(capabilities, "textDocument"), "typeHierarchy");
            capability.dynamicRegistration = true;
          }
          initialize(capabilities, documentSelector) {
            const [id2, options3] = this.getRegistration(documentSelector, capabilities.typeHierarchyProvider);
            if (!id2 || !options3) {
              return;
            }
            this.register({ id: id2, registerOptions: options3 });
          }
          registerLanguageProvider(options3) {
            const client = this._client;
            const selector = options3.documentSelector;
            const provider = {
              prepareTypeHierarchy: (document2, position, token) => {
                const prepareTypeHierarchy = (document3, position2, token2) => {
                  const params = client.code2ProtocolConverter.asTextDocumentPositionParams(document3, position2);
                  return this.sendRequest(import_node4.TypeHierarchyPrepareRequest.type, params, token2);
                };
                const middleware = client.middleware;
                return middleware.prepareTypeHierarchy ? middleware.prepareTypeHierarchy(document2, position, token, prepareTypeHierarchy) : prepareTypeHierarchy(document2, position, token);
              },
              provideTypeHierarchySupertypes: (item, token) => {
                const provideTypeHierarchySupertypes = (item2, token2) => {
                  return this.sendRequest(import_node4.TypeHierarchySupertypesRequest.type, { item: item2 }, token2);
                };
                const middleware = client.middleware;
                return middleware.provideTypeHierarchySupertypes ? middleware.provideTypeHierarchySupertypes(item, token, provideTypeHierarchySupertypes) : provideTypeHierarchySupertypes(item, token);
              },
              provideTypeHierarchySubtypes: (item, token) => {
                const provideTypeHierarchySubtypes = (item2, token2) => {
                  return this.sendRequest(import_node4.TypeHierarchySubtypesRequest.type, { item: item2 }, token2);
                };
                const middleware = client.middleware;
                return middleware.provideTypeHierarchySubtypes ? middleware.provideTypeHierarchySubtypes(item, token, provideTypeHierarchySubtypes) : provideTypeHierarchySubtypes(item, token);
              }
            };
            this._client.attachExtensionName(provider);
            return [languages_default.registerTypeHierarchyProvider(selector, provider), provider];
          }
        };
      }
    });
    
    // src/language-client/utils/index.ts
    function isValidRequestType(type) {
      if (typeof type == "string") return true;
      for (let clz of requestTypes) {
        if (type instanceof clz) {
          return true;
        }
      }
      return false;
    }
    function isValidNotificationType(type) {
      if (typeof type == "string") return true;
      for (let clz of notificationTypes) {
        if (type instanceof clz) {
          return true;
        }
      }
      return false;
    }
    function getLocale() {
      const lang = process.env.LANG;
      if (!lang) return "en";
      return lang.split(".")[0];
    }
    function toMethod(type) {
      return string(type) ? type : type.method;
    }
    function currentTimeStamp() {
      return (/* @__PURE__ */ new Date()).toLocaleTimeString();
    }
    function getTracePrefix(data) {
      if (data.isLSPMessage && data.type) {
        return `[LSP - ${currentTimeStamp()}] `;
      }
      return `[Trace - ${currentTimeStamp()}] `;
    }
    function getParameterStructures(kind) {
      switch (kind) {
        case "auto":
          return import_node56.ParameterStructures.auto;
        case "byPosition":
          return import_node56.ParameterStructures.byPosition;
        case "byName":
          return import_node56.ParameterStructures.byName;
        default:
          return import_node56.ParameterStructures.auto;
      }
    }
    function fixRequestType(type, params) {
      if (isValidRequestType(type)) return type;
      let n2 = typeof type.numberOfParams === "number" ? type.numberOfParams : params.length;
      switch (n2) {
        case 0:
          return new import_node56.RequestType0(type.method);
        case 1:
          if (type["parameterStructures"] != null) {
            return new import_node56.RequestType1(type.method, getParameterStructures(type["parameterStructures"].toString()));
          }
          return new import_node56.RequestType1(type.method);
        case 2:
          return new import_node56.RequestType2(type.method);
        case 3:
          return new import_node56.RequestType3(type.method);
        case 4:
          return new import_node56.RequestType4(type.method);
        case 5:
          return new import_node56.RequestType5(type.method);
        case 6:
          return new import_node56.RequestType6(type.method);
        case 7:
          return new import_node56.RequestType7(type.method);
        case 8:
          return new import_node56.RequestType8(type.method);
        case 9:
          return new import_node56.RequestType9(type.method);
        default:
          return new import_node56.RequestType(type.method);
      }
    }
    function fixNotificationType(type, params) {
      if (isValidNotificationType(type)) return type;
      let n2 = typeof type.numberOfParams === "number" ? type.numberOfParams : params.length;
      switch (n2) {
        case 0:
          return new import_node56.NotificationType0(type.method);
        case 1:
          if (type["parameterStructures"] != null) {
            return new import_node56.NotificationType1(type.method, getParameterStructures(type["parameterStructures"].toString()));
          }
          return new import_node56.NotificationType1(type.method);
        case 2:
          return new import_node56.NotificationType2(type.method);
        case 3:
          return new import_node56.NotificationType3(type.method);
        case 4:
          return new import_node56.NotificationType4(type.method);
        case 5:
          return new import_node56.NotificationType5(type.method);
        case 6:
          return new import_node56.NotificationType6(type.method);
        case 7:
          return new import_node56.NotificationType7(type.method);
        case 8:
          return new import_node56.NotificationType8(type.method);
        case 9:
          return new import_node56.NotificationType9(type.method);
        default:
          return new import_node56.NotificationType(type.method);
      }
    }
    function data2String(data, color = false) {
      if (data instanceof import_node4.ResponseError) {
        const responseError = data;
        return `  Message: ${responseError.message}
      Code: ${responseError.code} ${responseError.data ? "\n" + responseError.data.toString() : ""}`;
      }
      if (data instanceof Error) {
        if (string(data.stack)) {
          return data.stack;
        }
        return data.message;
      }
      if (string(data)) {
        return data;
      }
      return (0, import_util.inspect)(data, false, null, color);
    }
    function createClientPipeTransport(pipeName, encoding2 = "utf-8") {
      let connectResolve;
      let connectReject;
      const connected = new Promise((resolve, reject) => {
        connectResolve = resolve;
        connectReject = reject;
      });
      void connected.catch(() => {
      });
      return new Promise((resolve, reject) => {
        const server = net.createServer((socket) => {
          server.close();
          connectResolve([
            new import_node56.SocketMessageReader(socket, encoding2),
            new import_node56.SocketMessageWriter(socket, encoding2)
          ]);
        });
        server.on("error", reject);
        server.listen(pipeName, () => {
          server.removeListener("error", reject);
          const dispose = () => {
            server.close();
            connectReject(new Error("Transport disposed before connection established."));
          };
          resolve({
            onConnected: () => {
              return connected;
            },
            dispose,
            close: dispose
          });
        });
      });
    }
    function createClientSocketTransport(port, encoding2 = "utf-8") {
      let connectResolve;
      let connectReject;
      const connected = new Promise((resolve, reject) => {
        connectResolve = resolve;
        connectReject = reject;
      });
      void connected.catch(() => {
      });
      return new Promise((resolve, reject) => {
        const server = net.createServer((socket) => {
          server.close();
          connectResolve([
            new import_node56.SocketMessageReader(socket, encoding2),
            new import_node56.SocketMessageWriter(socket, encoding2)
          ]);
        });
        server.on("error", reject);
        server.listen(port, "127.0.0.1", () => {
          server.removeListener("error", reject);
          const dispose = () => {
            server.close();
            connectReject(new Error("Transport disposed before connection established."));
          };
          resolve({
            port: () => port,
            onConnected: () => {
              return connected;
            },
            dispose,
            close: dispose
          });
        });
      });
    }
    var import_node56, requestTypes, notificationTypes;
    var init_utils = __esm({
      "src/language-client/utils/index.ts"() {
        "use strict";
        import_node56 = __toESM(require_main2());
        init_is();
        init_node();
        init_protocol();
        requestTypes = [
          import_node56.RequestType,
          import_node56.RequestType0
        ];
        notificationTypes = [
          import_node56.NotificationType,
          import_node56.NotificationType0
        ];
      }
    });
    
    // src/language-client/utils/async.ts
    var Delayer;
    var init_async2 = __esm({
      "src/language-client/utils/async.ts"() {
        "use strict";
        init_protocol();
        Delayer = class {
          defaultDelay;
          timeout;
          completionPromise;
          onSuccess;
          task;
          constructor(defaultDelay) {
            this.defaultDelay = defaultDelay;
            this.timeout = void 0;
            this.completionPromise = void 0;
            this.onSuccess = void 0;
            this.task = void 0;
          }
          trigger(task, delay3 = this.defaultDelay) {
            this.task = task;
            if (delay3 >= 0) {
              this.cancelTimeout();
            }
            if (!this.completionPromise) {
              this.completionPromise = new Promise((resolve) => {
                this.onSuccess = resolve;
              }).then(() => {
                this.completionPromise = void 0;
                this.onSuccess = void 0;
                let result = this.task();
                this.task = void 0;
                return result;
              });
            }
            if (delay3 >= 0 || this.timeout === void 0) {
              this.timeout = (0, import_node4.RAL)().timer.setTimeout(() => {
                this.timeout = void 0;
                this.onSuccess(void 0);
              }, delay3 >= 0 ? delay3 : this.defaultDelay);
            }
            return this.completionPromise;
          }
          forceDelivery() {
            if (!this.completionPromise) {
              return void 0;
            }
            this.cancelTimeout();
            let result = this.task();
            this.completionPromise = void 0;
            this.onSuccess = void 0;
            this.task = void 0;
            return result;
          }
          isTriggered() {
            return this.timeout !== void 0;
          }
          cancel() {
            this.cancelTimeout();
            this.completionPromise = void 0;
          }
          dispose() {
            this.cancelTimeout();
          }
          cancelTimeout() {
            if (this.timeout !== void 0) {
              this.timeout.dispose();
              this.timeout = void 0;
            }
          }
        };
      }
    });
    
    // src/language-client/utils/codeConverter.ts
    function createConverter(uriConverter) {
      uriConverter = uriConverter || ((value) => value.toString());
      function asUri(value) {
        if (u.isUri(value)) {
          return uriConverter(value);
        } else {
          return uriConverter(u.parse(value));
        }
      }
      function asTextDocumentItem(textDocument) {
        return {
          uri: asUri(textDocument.uri),
          languageId: textDocument.languageId,
          version: textDocument.version,
          text: textDocument.getText()
        };
      }
      function asTextDocumentIdentifier(textDocument) {
        return {
          uri: asUri(textDocument.uri)
        };
      }
      function asVersionedTextDocumentIdentifier(textDocument) {
        return {
          uri: asUri(textDocument.uri),
          version: textDocument.version
        };
      }
      function asOpenTextDocumentParams(textDocument) {
        return {
          textDocument: asTextDocumentItem(textDocument)
        };
      }
      function asChangeTextDocumentParams(event) {
        let { textDocument, contentChanges } = event;
        let result = {
          textDocument: {
            uri: asUri(textDocument.uri),
            version: textDocument.version
          },
          contentChanges: contentChanges.slice()
        };
        return result;
      }
      function asFullChangeTextDocumentParams(textDocument) {
        return {
          textDocument: asVersionedTextDocumentIdentifier(textDocument),
          contentChanges: [{ text: textDocument.getText() }]
        };
      }
      function asCloseTextDocumentParams(textDocument) {
        return {
          textDocument: asTextDocumentIdentifier(textDocument)
        };
      }
      function asSaveTextDocumentParams(textDocument, includeText = false) {
        let result = {
          textDocument: asVersionedTextDocumentIdentifier(textDocument)
        };
        if (includeText) {
          result.text = textDocument.getText();
        }
        return result;
      }
      function asWillSaveTextDocumentParams(event) {
        return {
          textDocument: asTextDocumentIdentifier(event.document),
          reason: event.reason
        };
      }
      function asDidCreateFilesParams(event) {
        return {
          files: event.files.map((file) => ({ uri: asUri(file) }))
        };
      }
      function asDidRenameFilesParams(event) {
        return {
          files: event.files.map(
            (file) => ({ oldUri: asUri(file.oldUri), newUri: asUri(file.newUri) })
          )
        };
      }
      function asDidDeleteFilesParams(event) {
        return {
          files: event.files.map((file) => ({ uri: asUri(file) }))
        };
      }
      function asWillCreateFilesParams(event) {
        return {
          files: event.files.map((file) => ({ uri: asUri(file) }))
        };
      }
      function asWillRenameFilesParams(event) {
        return {
          files: event.files.map((file) => ({ oldUri: asUri(file.oldUri), newUri: asUri(file.newUri) }))
        };
      }
      function asWillDeleteFilesParams(event) {
        return {
          files: event.files.map((file) => ({ uri: asUri(file) }))
        };
      }
      function asTextDocumentPositionParams(textDocument, position) {
        return {
          textDocument: asTextDocumentIdentifier(textDocument),
          position
        };
      }
      function asCompletionParams(textDocument, position, context) {
        return {
          textDocument: asTextDocumentIdentifier(textDocument),
          position,
          context: omit(context, ["option"])
        };
      }
      function asSignatureHelpParams(textDocument, position, context) {
        return {
          textDocument: asTextDocumentIdentifier(textDocument),
          position,
          context
        };
      }
      function asReferenceParams(textDocument, position, options3) {
        return {
          textDocument: asTextDocumentIdentifier(textDocument),
          position,
          context: { includeDeclaration: options3.includeDeclaration }
        };
      }
      function asDocumentSymbolParams(textDocument) {
        return {
          textDocument: asTextDocumentIdentifier(textDocument)
        };
      }
      function asCodeLensParams(textDocument) {
        return {
          textDocument: asTextDocumentIdentifier(textDocument)
        };
      }
      function asDocumentLinkParams(textDocument) {
        return {
          textDocument: asTextDocumentIdentifier(textDocument)
        };
      }
      return {
        asUri,
        asTextDocumentItem,
        asTextDocumentIdentifier,
        asVersionedTextDocumentIdentifier,
        asOpenTextDocumentParams,
        asChangeTextDocumentParams,
        asFullChangeTextDocumentParams,
        asCloseTextDocumentParams,
        asSaveTextDocumentParams,
        asWillSaveTextDocumentParams,
        asDidCreateFilesParams,
        asDidRenameFilesParams,
        asDidDeleteFilesParams,
        asWillCreateFilesParams,
        asWillRenameFilesParams,
        asWillDeleteFilesParams,
        asTextDocumentPositionParams,
        asCompletionParams,
        asSignatureHelpParams,
        asReferenceParams,
        asDocumentSymbolParams,
        asCodeLensParams,
        asDocumentLinkParams
      };
    }
    var init_codeConverter = __esm({
      "src/language-client/utils/codeConverter.ts"() {
        "use strict";
        init_esm();
        init_lodash();
      }
    });
    
    // src/language-client/utils/errorHandler.ts
    function toCloseHandlerResult(result) {
      if (typeof result === "number") return { action: result };
      return result;
    }
    var CloseAction, ErrorAction, DefaultErrorHandler;
    var init_errorHandler = __esm({
      "src/language-client/utils/errorHandler.ts"() {
        "use strict";
        CloseAction = /* @__PURE__ */ ((CloseAction2) => {
          CloseAction2[CloseAction2["DoNotRestart"] = 1] = "DoNotRestart";
          CloseAction2[CloseAction2["Restart"] = 2] = "Restart";
          return CloseAction2;
        })(CloseAction || {});
        ErrorAction = /* @__PURE__ */ ((ErrorAction2) => {
          ErrorAction2[ErrorAction2["Continue"] = 1] = "Continue";
          ErrorAction2[ErrorAction2["Shutdown"] = 2] = "Shutdown";
          return ErrorAction2;
        })(ErrorAction || {});
        DefaultErrorHandler = class {
          constructor(name2, maxRestartCount, outputChannel) {
            this.name = name2;
            this.maxRestartCount = maxRestartCount;
            this.outputChannel = outputChannel;
            this.restarts = [];
          }
          name;
          maxRestartCount;
          outputChannel;
          restarts;
          milliseconds = 3 * 60 * 1e3;
          error(_error, _message, count) {
            if (count && count <= 3) {
              return { action: 1 /* Continue */ };
            }
            return { action: 2 /* Shutdown */ };
          }
          closed() {
            this.restarts.push(Date.now());
            if (this.restarts.length <= this.maxRestartCount) {
              return { action: 2 /* Restart */ };
            } else {
              let diff = this.restarts[this.restarts.length - 1] - this.restarts[0];
              if (diff <= this.milliseconds) {
                if (this.outputChannel) this.outputChannel.appendLine(`The server crashed ${this.restarts.length} times in the last 3 minutes. The server will not be restarted.`);
                return {
                  action: 1 /* DoNotRestart */,
                  message: `The "${this.name}" server crashed ${this.restarts.length} times in the last 3 minutes. The server will not be restarted.`
                };
              } else {
                this.restarts.shift();
                return { action: 2 /* Restart */ };
              }
            }
          }
        };
      }
    });
    
    // src/language-client/utils/logger.ts
    var logger40, ConsoleLogger, NullLogger;
    var init_logger2 = __esm({
      "src/language-client/utils/logger.ts"() {
        "use strict";
        init_logger();
        logger40 = createLogger("language-client");
        ConsoleLogger = class {
          error(message) {
            logger40.error(message);
          }
          warn(message) {
            logger40.warn(message);
          }
          info(message) {
            logger40.info(message);
          }
          log(message) {
            logger40.log(message);
          }
        };
        NullLogger = class {
          error(_message) {
          }
          warn(_message) {
          }
          info(_message) {
          }
          log(_message) {
          }
        };
      }
    });
    
    // src/language-client/workspaceFolders.ts
    function access2(target, key) {
      if (target === void 0) {
        return void 0;
      }
      return target[key];
    }
    function arrayDiff(left, right) {
      return left.filter((element) => !right.includes(element));
    }
    var WorkspaceFoldersFeature;
    var init_workspaceFolders = __esm({
      "src/language-client/workspaceFolders.ts"() {
        "use strict";
        init_esm();
        init_util();
        init_array();
        init_fs();
        init_protocol();
        init_workspace();
        WorkspaceFoldersFeature = class {
          constructor(_client) {
            this._client = _client;
          }
          _client;
          _listeners = /* @__PURE__ */ new Map();
          _initialFolders;
          getState() {
            return { kind: "workspace", id: this.registrationType.method, registrations: this._listeners.size > 0 };
          }
          get registrationType() {
            return import_node4.DidChangeWorkspaceFoldersNotification.type;
          }
          getValidWorkspaceFolders() {
            let { workspaceFolders } = workspace_default;
            let ignoredRootPaths = this._client.clientOptions.ignoredRootPaths;
            let arr = isFalsyOrEmpty(ignoredRootPaths) ? workspaceFolders.slice(0) : workspaceFolders.filter((o2) => {
              let fsPath2 = u.parse(o2.uri).fsPath;
              return ignoredRootPaths.every((p2) => !sameFile(p2, fsPath2));
            });
            return arr.length > 0 ? arr : void 0;
          }
          fillInitializeParams(params) {
            const folders = this.getValidWorkspaceFolders();
            this.initializeWithFolders(folders);
            if (folders == null) {
              params.workspaceFolders = null;
            } else {
              params.workspaceFolders = folders.map((folder) => this.asProtocol(folder));
            }
          }
          initializeWithFolders(currentWorkspaceFolders) {
            this._initialFolders = currentWorkspaceFolders;
          }
          fillClientCapabilities(capabilities) {
            capabilities.workspace = defaultValue(capabilities.workspace, {});
            capabilities.workspace.workspaceFolders = true;
          }
          initialize(capabilities) {
            let client = this._client;
            client.onRequest(import_node4.WorkspaceFoldersRequest.type, (token) => {
              let workspaceFolders = () => {
                let folders = this.getValidWorkspaceFolders();
                if (folders == null) {
                  return null;
                }
                return folders.map((folder) => this.asProtocol(folder));
              };
              const middleware = client.middleware.workspace;
              return middleware && middleware.workspaceFolders ? middleware.workspaceFolders(token, workspaceFolders) : workspaceFolders(token);
            });
            const value = access2(access2(access2(capabilities, "workspace"), "workspaceFolders"), "changeNotifications");
            let id2;
            if (typeof value === "string") {
              id2 = value;
            } else if (value) {
              id2 = crypto.randomUUID();
            }
            if (id2) {
              this.register({ id: id2, registerOptions: void 0 });
            }
          }
          sendInitialEvent(currentWorkspaceFolders) {
            let promise;
            if (this._initialFolders && currentWorkspaceFolders) {
              const removed = arrayDiff(this._initialFolders, currentWorkspaceFolders);
              const added = arrayDiff(currentWorkspaceFolders, this._initialFolders);
              if (added.length > 0 || removed.length > 0) {
                promise = this.doSendEvent(added, removed);
              }
            } else if (this._initialFolders) {
              promise = this.doSendEvent([], this._initialFolders);
            } else if (currentWorkspaceFolders) {
              promise = this.doSendEvent(currentWorkspaceFolders, []);
            }
            if (promise) {
              promise.catch(this.onNotificationError.bind(this));
            }
          }
          onNotificationError(error) {
            this._client.error(`Sending notification ${import_node4.DidChangeWorkspaceFoldersNotification.type.method} failed`, error);
          }
          doSendEvent(addedFolders, removedFolders) {
            let params = {
              event: {
                added: addedFolders.map((folder) => this.asProtocol(folder)),
                removed: removedFolders.map((folder) => this.asProtocol(folder))
              }
            };
            return this._client.sendNotification(import_node4.DidChangeWorkspaceFoldersNotification.type, params);
          }
          register(data) {
            let id2 = data.id;
            let client = this._client;
            if (this._listeners.size == 0) {
              let disposable = workspace_default.onDidChangeWorkspaceFolders((event) => {
                let didChangeWorkspaceFolders = (e2) => {
                  return this.doSendEvent(e2.added, e2.removed);
                };
                let middleware = client.middleware.workspace;
                const promise = middleware && middleware.didChangeWorkspaceFolders ? middleware.didChangeWorkspaceFolders(event, didChangeWorkspaceFolders) : didChangeWorkspaceFolders(event);
                if (promise) {
                  promise.catch(this.onNotificationError.bind(this));
                }
              });
              this._listeners.set(id2, disposable);
              let workspaceFolders = this.getValidWorkspaceFolders();
              this.sendInitialEvent(workspaceFolders);
            }
          }
          unregister(id2) {
            const disposable = this._listeners.get(id2);
            if (disposable === void 0) {
              return;
            }
            this._listeners.delete(id2);
            disposable.dispose();
          }
          dispose() {
            for (let disposable of this._listeners.values()) {
              disposable.dispose();
            }
            this._listeners.clear();
          }
          asProtocol(workspaceFolder) {
            return { uri: this._client.code2ProtocolConverter.asUri(u.parse(workspaceFolder.uri)), name: workspaceFolder.name };
          }
        };
      }
    });
    
    // src/language-client/workspaceSymbol.ts
    var WorkspaceFeature, WorkspaceSymbolFeature;
    var init_workspaceSymbol = __esm({
      "src/language-client/workspaceSymbol.ts"() {
        "use strict";
        init_languages();
        init_protocol();
        init_documentSymbol();
        init_features();
        WorkspaceFeature = class extends BaseFeature {
          constructor(_client, _registrationType) {
            super(_client);
            this._registrationType = _registrationType;
          }
          _registrationType;
          _registrations = /* @__PURE__ */ new Map();
          getState() {
            const registrations = this._registrations.size > 0;
            return { kind: "workspace", id: this._registrationType.method, registrations };
          }
          get registrationType() {
            return this._registrationType;
          }
          register(data) {
            const registration = this.registerLanguageProvider(data.registerOptions);
            this._registrations.set(data.id, { disposable: registration[0], provider: registration[1] });
          }
          unregister(id2) {
            const registration = this._registrations.get(id2);
            if (registration) {
              this._registrations.delete(id2);
              registration.disposable.dispose();
            }
          }
          dispose() {
            this._registrations.forEach((value) => {
              value.disposable.dispose();
            });
            this._registrations.clear();
          }
          getProviders() {
            const result = [];
            for (const registration of this._registrations.values()) {
              result.push(registration.provider);
            }
            return result;
          }
        };
        WorkspaceSymbolFeature = class extends WorkspaceFeature {
          constructor(client) {
            super(client, import_node4.WorkspaceSymbolRequest.type);
          }
          fillClientCapabilities(capabilities) {
            let symbolCapabilities = ensure(ensure(capabilities, "workspace"), "symbol");
            symbolCapabilities.dynamicRegistration = true;
            symbolCapabilities.symbolKind = {
              valueSet: SupportedSymbolKinds
            };
            symbolCapabilities.tagSupport = {
              valueSet: SupportedSymbolTags
            };
            symbolCapabilities.resolveSupport = { properties: ["location.range"] };
          }
          initialize(capabilities) {
            if (!capabilities.workspaceSymbolProvider) {
              return;
            }
            this.register({
              id: crypto.randomUUID(),
              registerOptions: capabilities.workspaceSymbolProvider === true ? { workDoneProgress: false } : capabilities.workspaceSymbolProvider
            });
          }
          registerLanguageProvider(options3) {
            const provider = {
              provideWorkspaceSymbols: (query, token) => {
                const client = this._client;
                const provideWorkspaceSymbols = (query2, token2) => {
                  return this.sendRequest(import_node4.WorkspaceSymbolRequest.type, { query: query2 }, token2);
                };
                const middleware = client.middleware;
                return middleware.provideWorkspaceSymbols ? middleware.provideWorkspaceSymbols(query, token, provideWorkspaceSymbols) : provideWorkspaceSymbols(query, token);
              },
              resolveWorkspaceSymbol: options3.resolveProvider === true ? (item, token) => {
                const client = this._client;
                const resolveWorkspaceSymbol = (item2, token2) => {
                  return this.sendRequest(import_node4.WorkspaceSymbolResolveRequest.type, item2, token2);
                };
                const middleware = client.middleware;
                return middleware.resolveWorkspaceSymbol ? middleware.resolveWorkspaceSymbol(item, token, resolveWorkspaceSymbol) : resolveWorkspaceSymbol(item, token);
              } : void 0
            };
            this._client.attachExtensionName(provider);
            return [languages_default.registerWorkspaceSymbolProvider(provider), provider];
          }
        };
      }
    });
    
    // src/language-client/client.ts
    function createConnection(input, output, errorHandler, closeHandler, options3) {
      let logger75 = new ConsoleLogger();
      let connection = (0, import_node4.createProtocolConnection)(input, output, logger75, options3);
      connection.onError((data) => {
        errorHandler(data[0], data[1], data[2]);
      });
      connection.onClose(closeHandler);
      let result = {
        id: "",
        listen: () => connection.listen(),
        hasPendingResponse: connection.hasPendingResponse,
        sendRequest: connection.sendRequest,
        onRequest: connection.onRequest,
        sendNotification: connection.sendNotification,
        onNotification: connection.onNotification,
        onProgress: connection.onProgress,
        sendProgress: connection.sendProgress,
        trace: (value, tracer, traceOptions) => {
          return connection.trace(value, tracer, traceOptions);
        },
        initialize: (params) => {
          return connection.sendRequest(import_node4.InitializeRequest.type, params);
        },
        shutdown: () => {
          return connection.sendRequest(import_node4.ShutdownRequest.type, void 0);
        },
        exit: () => {
          return connection.sendNotification(import_node4.ExitNotification.type);
        },
        end: () => connection.end(),
        dispose: () => connection.dispose()
      };
      return result;
    }
    var import_vscode_languageserver_protocol4, logger41, redOpen, redClose, RevealOutputChannelOn, State2, ClientState, MessageTransports, delayTime, SLOW_REQUEST_TIMEOUT, BaseLanguageClient, ProposedFeatures;
    var init_client = __esm({
      "src/language-client/client.ts"() {
        "use strict";
        import_vscode_languageserver_protocol4 = __toESM(require_api3());
        init_main();
        init_esm();
        init_languages();
        init_logger();
        init_util();
        init_array();
        init_errors();
        init_extensionRegistry();
        init_fs();
        init_is();
        init_node();
        init_position();
        init_protocol();
        init_string();
        init_window();
        init_workspace();
        init_callHierarchy();
        init_codeAction();
        init_codeLens();
        init_colorProvider();
        init_completion();
        init_configuration4();
        init_declaration();
        init_definition();
        init_diagnostic();
        init_documentHighlight();
        init_documentLink();
        init_documentSymbol();
        init_executeCommand();
        init_features();
        init_fileOperations();
        init_fileRename();
        init_fileSystemWatcher2();
        init_foldingRange();
        init_formatting2();
        init_hover();
        init_implementation();
        init_inlayHint();
        init_inlineCompletion();
        init_inlineValue();
        init_linkedEditingRange();
        init_progress2();
        init_progressPart();
        init_reference();
        init_rename();
        init_selectionRange();
        init_semanticTokens();
        init_signatureHelp();
        init_textDocumentContent();
        init_textSynchronization();
        init_typeDefinition();
        init_typeHierarchy();
        init_utils();
        init_async2();
        init_codeConverter();
        init_errorHandler();
        init_logger2();
        init_workspaceFolders();
        init_workspaceSymbol();
        logger41 = createLogger("language-client-client");
        redOpen = "\x1B[31m";
        redClose = "\x1B[39m";
        RevealOutputChannelOn = /* @__PURE__ */ ((RevealOutputChannelOn2) => {
          RevealOutputChannelOn2[RevealOutputChannelOn2["Debug"] = 0] = "Debug";
          RevealOutputChannelOn2[RevealOutputChannelOn2["Info"] = 1] = "Info";
          RevealOutputChannelOn2[RevealOutputChannelOn2["Warn"] = 2] = "Warn";
          RevealOutputChannelOn2[RevealOutputChannelOn2["Error"] = 3] = "Error";
          RevealOutputChannelOn2[RevealOutputChannelOn2["Never"] = 4] = "Never";
          return RevealOutputChannelOn2;
        })(RevealOutputChannelOn || {});
        State2 = /* @__PURE__ */ ((State3) => {
          State3[State3["Stopped"] = 1] = "Stopped";
          State3[State3["Running"] = 2] = "Running";
          State3[State3["Starting"] = 3] = "Starting";
          State3[State3["StartFailed"] = 4] = "StartFailed";
          return State3;
        })(State2 || {});
        ClientState = /* @__PURE__ */ ((ClientState2) => {
          ClientState2[ClientState2["Initial"] = 0] = "Initial";
          ClientState2[ClientState2["Starting"] = 1] = "Starting";
          ClientState2[ClientState2["StartFailed"] = 2] = "StartFailed";
          ClientState2[ClientState2["Running"] = 3] = "Running";
          ClientState2[ClientState2["Stopping"] = 4] = "Stopping";
          ClientState2[ClientState2["Stopped"] = 5] = "Stopped";
          return ClientState2;
        })(ClientState || {});
        ((MessageTransports2) => {
          function is(value) {
            let candidate = value;
            return candidate && import_node4.MessageReader.is(value.reader) && import_node4.MessageWriter.is(value.writer);
          }
          MessageTransports2.is = is;
        })(MessageTransports || (MessageTransports = {}));
        delayTime = getConditionValue(250, 10);
        SLOW_REQUEST_TIMEOUT = 3e3;
        BaseLanguageClient = class _BaseLanguageClient {
          _rootPath;
          _consoleDebug = false;
          __extensionName;
          _id;
          _name;
          _clientOptions;
          _state;
          _onStart;
          _onStop;
          // Resolves the in-flight stop when the connection closes while stopping,
          // so the shutdown sequence owns its own finalization.
          _onStopClose;
          _connection;
          _initializeResult;
          _outputChannel;
          _traceOutputChannel;
          _capabilities;
          _disposed;
          _ignoredRegistrations;
          _listeners;
          _notificationHandlers;
          _notificationDisposables;
          _pendingNotificationHandlers;
          _requestHandlers;
          _requestDisposables;
          _pendingRequestHandlers;
          _progressHandlers;
          _pendingProgressHandlers;
          _progressDisposables;
          _fileEvents;
          _fileEventDelayer;
          // undefined allows lazy creation; null prevents recreation after shutdown.
          _diagnostics;
          _syncedDocuments;
          _traceFormat;
          _trace;
          _tracer;
          _stateChangeEmitter;
          _c2p;
          _didOpenTextDocumentFeature;
          constructor(id2, name2, clientOptions) {
            this._id = id2;
            this._name = name2;
            if (clientOptions.outputChannel) {
              this._outputChannel = clientOptions.outputChannel;
            } else {
              this._outputChannel = void 0;
            }
            this._traceOutputChannel = clientOptions.traceOutputChannel;
            this._clientOptions = this.resolveClientOptions(clientOptions);
            this.$state = 0 /* Initial */;
            this._connection = void 0;
            this._initializeResult = void 0;
            this._listeners = [];
            this._diagnostics = void 0;
            this._notificationHandlers = /* @__PURE__ */ new Map();
            this._pendingNotificationHandlers = /* @__PURE__ */ new Map();
            this._notificationDisposables = /* @__PURE__ */ new Map();
            this._requestHandlers = /* @__PURE__ */ new Map();
            this._pendingRequestHandlers = /* @__PURE__ */ new Map();
            this._requestDisposables = /* @__PURE__ */ new Map();
            this._progressHandlers = /* @__PURE__ */ new Map();
            this._pendingProgressHandlers = /* @__PURE__ */ new Map();
            this._progressDisposables = /* @__PURE__ */ new Map();
            this._fileEvents = [];
            this._fileEventDelayer = new Delayer(delayTime);
            this._ignoredRegistrations = /* @__PURE__ */ new Set();
            this._onStop = void 0;
            this._stateChangeEmitter = new import_node4.Emitter();
            this._trace = import_node4.Trace.Off;
            this._tracer = {
              log: (messageOrDataObject, data) => {
                if (string(messageOrDataObject)) {
                  this.traceMessage(messageOrDataObject, data);
                } else {
                  this.traceObject(messageOrDataObject);
                }
              }
            };
            this._c2p = createConverter(clientOptions.uriConverter ? clientOptions.uriConverter.code2Protocol : void 0);
            this._syncedDocuments = /* @__PURE__ */ new Map();
            this.registerBuiltinFeatures();
            Error.captureStackTrace(this);
          }
          /**
           * @internal
           */
          switchConsole() {
            this._consoleDebug = !this._consoleDebug;
            this.changeTrace(import_node4.Trace.Verbose, import_node4.TraceFormat.Text);
          }
          resolveClientOptions(clientOptions) {
            const markdown = { isTrusted: false, supportHtml: false };
            if (clientOptions.markdown != null) {
              markdown.isTrusted = clientOptions.markdown.isTrusted === true;
              markdown.supportHtml = clientOptions.markdown.supportHtml === true;
            }
            let disableSnippetCompletion = clientOptions.disableSnippetCompletion;
            let disableMarkdown = clientOptions.disableMarkdown;
            if (disableMarkdown === void 0) {
              disableMarkdown = workspace_default.initialConfiguration.get("coc.preferences.enableMarkdown") === false;
            }
            const pullConfig = workspace_default.getConfiguration("pullDiagnostic", clientOptions.workspaceFolder);
            let pullOption = clientOptions.diagnosticPullOptions ?? {};
            if (pullOption.onChange === void 0) pullOption.onChange = pullConfig.get("onChange");
            if (pullOption.onSave === void 0) pullOption.onSave = pullConfig.get("onSave");
            if (pullOption.workspace === void 0) pullOption.workspace = pullConfig.get("workspace");
            pullOption.ignored = pullConfig.get("ignored", []).concat(pullOption.ignored ?? []);
            let disabledFeatures = clientOptions.disabledFeatures ?? [];
            for (let key of ["disableCompletion", "disableWorkspaceFolders", "disableDiagnostics"]) {
              if (typeof clientOptions[key] === "boolean") {
                let stack = false ? "" : "\n" + Error().stack.split("\n").slice(2, 4).join("\n");
                logger41.warn(`${key} in the client options is deprecated. use disabledFeatures instead.`, stack);
                if (clientOptions[key] === true) {
                  let s2 = key.slice(7);
                  disabledFeatures.push(s2[0].toLowerCase() + s2.slice(1));
                }
              }
            }
            return {
              disabledFeatures,
              disableMarkdown,
              disableSnippetCompletion,
              diagnosticPullOptions: pullOption,
              rootPatterns: defaultValue(clientOptions.rootPatterns, []),
              requireRootPattern: clientOptions.requireRootPattern,
              disableDynamicRegister: clientOptions.disableDynamicRegister,
              formatterPriority: defaultValue(clientOptions.formatterPriority, 0),
              ignoredRootPaths: defaultValue(clientOptions.ignoredRootPaths, []),
              documentSelector: defaultValue(clientOptions.documentSelector, []),
              synchronize: defaultValue(clientOptions.synchronize, {}),
              diagnosticCollectionName: clientOptions.diagnosticCollectionName,
              outputChannelName: defaultValue(clientOptions.outputChannelName, this._id),
              revealOutputChannelOn: defaultValue(clientOptions.revealOutputChannelOn, 4 /* Never */),
              stdioEncoding: defaultValue(clientOptions.stdioEncoding, "utf8"),
              initializationOptions: clientOptions.initializationOptions,
              initializationFailedHandler: clientOptions.initializationFailedHandler,
              progressOnInitialization: clientOptions.progressOnInitialization === true,
              errorHandler: clientOptions.errorHandler ?? this.createDefaultErrorHandler(clientOptions.connectionOptions?.maxRestartCount),
              middleware: defaultValue(clientOptions.middleware, {}),
              workspaceFolder: clientOptions.workspaceFolder,
              connectionOptions: clientOptions.connectionOptions,
              uriConverter: clientOptions.uriConverter,
              textSynchronization: this.createTextSynchronizationOptions(clientOptions.textSynchronization),
              languageIdMap: clientOptions.languageIdMap,
              markdown
            };
          }
          createTextSynchronizationOptions(options3) {
            if (options3 && typeof options3.delayOpenNotifications === "boolean") {
              return { delayOpenNotifications: options3.delayOpenNotifications };
            }
            return { delayOpenNotifications: false };
          }
          /**
           * @internal
           */
          get supportedMarkupKind() {
            if (!this.clientOptions.disableMarkdown) return [MarkupKind.Markdown, MarkupKind.PlainText];
            return [MarkupKind.PlainText];
          }
          get state() {
            return this.getPublicState();
          }
          get $state() {
            return this._state;
          }
          set $state(value) {
            let oldState = this.getPublicState();
            this._state = value;
            let newState = this.getPublicState();
            if (newState !== oldState) {
              this._stateChangeEmitter.fire({ oldState, newState });
            }
          }
          get id() {
            return this._id;
          }
          get name() {
            return this._name;
          }
          get middleware() {
            return this._clientOptions.middleware;
          }
          /**
           * @internal
           */
          get code2ProtocolConverter() {
            return this._c2p;
          }
          /**
           * @internal
           */
          getPublicState() {
            switch (this.$state) {
              case 1 /* Starting */:
                return 3 /* Starting */;
              case 3 /* Running */:
                return 2 /* Running */;
              case 2 /* StartFailed */:
                return 4 /* StartFailed */;
              default:
                return 1 /* Stopped */;
            }
          }
          get initializeResult() {
            return this._initializeResult;
          }
          async sendRequest(type, ...params) {
            if (this.$state === 2 /* StartFailed */ || this.$state === 4 /* Stopping */ || this.$state === 5 /* Stopped */) {
              return Promise.reject(new import_node4.ResponseError(import_node4.ErrorCodes.ConnectionInactive, `Client is not running`));
            }
            const connection = await this.$start();
            await this._didOpenTextDocumentFeature.sendPendingOpenNotifications();
            let param;
            let token;
            if (params.length === 1) {
              if (import_vscode_languageserver_protocol4.CancellationToken.is(params[0])) {
                token = params[0];
              } else {
                param = params[0];
              }
            } else if (params.length === 2) {
              param = params[0];
              token = params[1];
            }
            if (token !== void 0 && token.isCancellationRequested) {
              return Promise.reject(new import_node4.ResponseError(import_node4.LSPErrorCodes.RequestCancelled, "Request got cancelled"));
            }
            type = fixRequestType(type, params);
            const _sendRequest = this._clientOptions.middleware.sendRequest;
            let request2;
            if (_sendRequest !== void 0) {
              request2 = Promise.resolve(_sendRequest(type, param, token, (type2, param2, token2) => {
                const params2 = [];
                if (param2 !== void 0) {
                  params2.push(param2);
                }
                if (token2 !== void 0) {
                  params2.push(token2);
                }
                return connection.sendRequest(type2, ...params2);
              }));
            } else {
              request2 = connection.sendRequest(type, ...params);
            }
            return this.trackSlowRequest(toMethod(type), request2);
          }
          /**
           * Log requests that are still pending after a while without timing them
           * out. Slow responses are expected for some methods and must not be
           * interrupted.
           */
          trackSlowRequest(method, request2) {
            let timer = setTimeout(() => {
              let msg = `[Warn  - ${currentTimeStamp()}] Request "${method}" still pending after ${SLOW_REQUEST_TIMEOUT / 1e3}s`;
              this.outputChannel.appendLine(msg);
            }, SLOW_REQUEST_TIMEOUT);
            if (typeof timer.unref === "function") timer.unref();
            return request2.finally(() => {
              clearTimeout(timer);
            });
          }
          onRequest(type, handler) {
            const method = toMethod(type);
            this._requestHandlers.set(method, handler);
            const connection = this.activeConnection();
            let disposable;
            if (connection !== void 0) {
              this._requestDisposables.set(method, connection.onRequest(type, handler));
              disposable = {
                dispose: () => {
                  const disposable2 = this._requestDisposables.get(method);
                  if (disposable2 !== void 0) {
                    disposable2.dispose();
                    this._requestDisposables.delete(method);
                  }
                }
              };
            } else {
              this._pendingRequestHandlers.set(method, handler);
              disposable = {
                dispose: () => {
                  this._pendingRequestHandlers.delete(method);
                  const disposable2 = this._requestDisposables.get(method);
                  if (disposable2 !== void 0) {
                    disposable2.dispose();
                    this._requestDisposables.delete(method);
                  }
                }
              };
            }
            return {
              dispose: () => {
                this._requestHandlers.delete(method);
                disposable.dispose();
              }
            };
          }
          async sendNotification(type, params) {
            if (this.$state === 2 /* StartFailed */ || this.$state === 4 /* Stopping */ || this.$state === 5 /* Stopped */) {
              this.error(`Client is not running when send notification`, type);
              return;
            }
            try {
              let documentToClose;
              if (typeof type !== "string" && type.method === import_vscode_languageserver_protocol4.DidCloseTextDocumentNotification.method) {
                documentToClose = params.textDocument.uri;
              }
              const connection = await this.$start();
              const didDropOpenNotification = await this._didOpenTextDocumentFeature.sendPendingOpenNotifications(documentToClose);
              if (didDropOpenNotification) {
                return;
              }
              type = fixNotificationType(type, params == null ? [] : [params]);
              const _sendNotification = this._clientOptions.middleware.sendNotification;
              return await Promise.resolve(_sendNotification ? _sendNotification(type, connection.sendNotification.bind(connection), params) : connection.sendNotification(type, params));
            } catch (error) {
              if (this._disposed === "disposing" || this._disposed === "disposed") {
                return;
              }
              this.error(`Sending notification ${toMethod(type)} failed.`, error);
              if ([4 /* Stopping */, 5 /* Stopped */].includes(this._state)) return;
              throw error;
            }
          }
          onNotification(type, handler) {
            const method = toMethod(type);
            this._notificationHandlers.set(method, handler);
            const connection = this.activeConnection();
            let disposable;
            if (connection !== void 0) {
              this._notificationDisposables.set(method, connection.onNotification(type, handler));
              disposable = {
                dispose: () => {
                  const disposable2 = this._notificationDisposables.get(method);
                  if (disposable2 !== void 0) {
                    disposable2.dispose();
                    this._notificationDisposables.delete(method);
                  }
                }
              };
            } else {
              this._pendingNotificationHandlers.set(method, handler);
              disposable = {
                dispose: () => {
                  this._pendingNotificationHandlers.delete(method);
                  const disposable2 = this._notificationDisposables.get(method);
                  if (disposable2 !== void 0) {
                    disposable2.dispose();
                    this._notificationDisposables.delete(method);
                  }
                }
              };
            }
            return {
              dispose: () => {
                this._notificationHandlers.delete(method);
                disposable.dispose();
              }
            };
          }
          onProgress(type, token, handler) {
            this._progressHandlers.set(token, { type, handler });
            const connection = this.activeConnection();
            let disposable;
            const handleWorkDoneProgress = this._clientOptions.middleware.handleWorkDoneProgress;
            const realHandler = import_node4.WorkDoneProgress.is(type) && handleWorkDoneProgress !== void 0 ? (params) => {
              handleWorkDoneProgress(token, params, () => handler(params));
            } : handler;
            if (connection !== void 0) {
              this._progressDisposables.set(token, connection.onProgress(type, token, realHandler));
              disposable = {
                dispose: () => {
                  const disposable2 = this._progressDisposables.get(token);
                  if (disposable2 !== void 0) {
                    disposable2.dispose();
                    this._progressDisposables.delete(token);
                  }
                }
              };
            } else {
              this._pendingProgressHandlers.set(token, { type, handler });
              disposable = {
                dispose: () => {
                  this._pendingProgressHandlers.delete(token);
                  const disposable2 = this._progressDisposables.get(token);
                  if (disposable2 !== void 0) {
                    disposable2.dispose();
                    this._progressDisposables.delete(token);
                  }
                }
              };
            }
            return {
              dispose: () => {
                this._progressHandlers.delete(token);
                disposable.dispose();
              }
            };
          }
          async sendProgress(type, token, value) {
            if (this.$state === 2 /* StartFailed */ || this.$state === 4 /* Stopping */ || this.$state === 5 /* Stopped */) {
              return Promise.reject(new import_node4.ResponseError(import_node4.ErrorCodes.ConnectionInactive, `Client is not running`));
            }
            try {
              const connection = await this.$start();
              await connection.sendProgress(type, token, value);
            } catch (error) {
              this.error(`Sending progress for token ${token} failed.`, error);
              throw error;
            }
          }
          /**
           * @internal
           * languageserver.xxx.settings or undefined
           */
          get configuredSection() {
            let section2 = defaultValue(this._clientOptions.synchronize, {}).configurationSection;
            return typeof section2 === "string" && section2.startsWith("languageserver.") ? section2 : void 0;
          }
          get clientOptions() {
            return this._clientOptions;
          }
          get onDidChangeState() {
            return this._stateChangeEmitter.event;
          }
          get outputChannel() {
            if (!this._outputChannel) {
              let { outputChannelName } = this._clientOptions;
              this._outputChannel = window_default.createOutputChannel(defaultValue(outputChannelName, this._name));
            }
            return this._outputChannel;
          }
          /**
           * @internal
           */
          get traceOutputChannel() {
            return this._traceOutputChannel ? this._traceOutputChannel : this.outputChannel;
          }
          get diagnostics() {
            if (this._diagnostics === null || this._clientOptions.disabledFeatures.includes("diagnostics")) {
              return void 0;
            }
            if (this._diagnostics === void 0) {
              let opts = this._clientOptions;
              let name2 = opts.diagnosticCollectionName ? opts.diagnosticCollectionName : this._id;
              this._diagnostics = languages_default.createDiagnosticCollection(name2);
            }
            return this._diagnostics;
          }
          createDefaultErrorHandler(maxRestartCount) {
            return new DefaultErrorHandler(this._id, maxRestartCount ?? 4, this._outputChannel);
          }
          set trace(value) {
            this.changeTrace(value, this._traceFormat);
          }
          consoleMessage(message, error = false) {
            if (this._consoleDebug) {
              error ? console.error(redOpen + message + redClose) : console.log(message);
            }
          }
          debug(message, data, showNotification = true) {
            this.logOutputMessage(import_node4.MessageType.Debug, 0 /* Debug */, "Debug", message, data, showNotification);
          }
          info(message, data, showNotification = true) {
            this.logOutputMessage(import_node4.MessageType.Info, 1 /* Info */, "Info", message, data, showNotification);
          }
          warn(message, data, showNotification = true) {
            this.logOutputMessage(import_node4.MessageType.Warning, 2 /* Warn */, "Warn", message, data, showNotification);
          }
          error(message, data, showNotification = true) {
            this.logOutputMessage(import_node4.MessageType.Error, 3 /* Error */, "Error", message, data, showNotification);
          }
          logOutputMessage(type, reveal, name2, message, data, showNotification) {
            const msg = `[${name2.padEnd(5)} - ${currentTimeStamp()}] ${this.getLogMessage(message, data)}`;
            this.outputChannel.appendLine(msg);
            this.consoleMessage(msg, type === import_node4.MessageType.Error);
            if (showNotification === "force" || showNotification && this._clientOptions.revealOutputChannelOn <= reveal) {
              this.showNotificationMessage(type, message, data);
            }
          }
          traceObject(data) {
            this.traceOutputChannel.appendLine(`${getTracePrefix(data)}${data2String(data)}`);
          }
          traceMessage(message, data) {
            const msg = `[Trace - ${currentTimeStamp()}] ${this.getLogMessage(message, data)}`;
            this.traceOutputChannel.appendLine(msg);
            this.consoleMessage(msg);
          }
          getLogMessage(message, data) {
            return data != null ? `${message}
    ${data2String(data)}` : message;
          }
          showNotificationMessage(type, message, data) {
            message = message ?? "A request has failed. See the output for more information.";
            if (data) {
              message += "\n" + data2String(data);
            }
            const messageFunc = type === import_node4.MessageType.Error ? window_default.showErrorMessage.bind(window_default) : type === import_node4.MessageType.Warning ? window_default.showWarningMessage.bind(window_default) : window_default.showInformationMessage.bind(window_default);
            let fn = getConditionValue(messageFunc, (_2, _obj) => Promise.resolve(global.__showOutput));
            fn(message, { title: "Go to output" }).then((selection) => {
              if (selection !== void 0) {
                this.outputChannel.show(true);
              }
            }, onUnexpectedError);
          }
          needsStart() {
            return this.$state === 0 /* Initial */ || this.$state === 4 /* Stopping */ || this.$state === 5 /* Stopped */;
          }
          needsStop() {
            return this.$state === 1 /* Starting */ || this.$state === 3 /* Running */;
          }
          activeConnection() {
            return this.$state === 3 /* Running */ && this._connection !== void 0 ? this._connection : void 0;
          }
          /**
           * @internal
           */
          get hasPendingResponse() {
            return this._connection?.hasPendingResponse();
          }
          onReady() {
            if (this._onStart) return this._onStart;
            if (this.$state === 5 /* Stopped */ || this.$state === 2 /* StartFailed */) {
              return Promise.reject(new Error(`${this._name} client is not running and can't become ready.`));
            }
            return new Promise((resolve, reject) => {
              let disposable = this.onDidChangeState((e2) => {
                if (e2.newState === 2 /* Running */) {
                  disposable.dispose();
                  resolve();
                } else if (e2.newState === 1 /* Stopped */ || e2.newState === 4 /* StartFailed */) {
                  disposable.dispose();
                  reject(new Error(`${this._name} client stopped before it became ready.`));
                }
              });
            });
          }
          get started() {
            return this.$state != 0 /* Initial */;
          }
          isRunning() {
            return this.$state === 3 /* Running */;
          }
          /**
           * @internal
           */
          async _start() {
            if (this._disposed === "disposing" || this._disposed === "disposed") {
              throw new Error(`Client got disposed and can't be restarted.`);
            }
            if (this.$state === 4 /* Stopping */) {
              throw new Error(`Client is currently stopping. Can only restart a full stopped client`);
            }
            if (this._onStart !== void 0) {
              return this._onStart;
            }
            this._rootPath = this.resolveRootPath();
            const [promise, resolve, reject] = this.createOnStartPromise();
            this._onStart = promise;
            this._diagnostics = void 0;
            for (const [method, handler] of this._notificationHandlers) {
              if (!this._pendingNotificationHandlers.has(method)) {
                this._pendingNotificationHandlers.set(method, handler);
              }
            }
            for (const [method, handler] of this._requestHandlers) {
              if (!this._pendingRequestHandlers.has(method)) {
                this._pendingRequestHandlers.set(method, handler);
              }
            }
            for (const [token, data] of this._progressHandlers) {
              if (!this._pendingProgressHandlers.has(token)) {
                this._pendingProgressHandlers.set(token, data);
              }
            }
            this.$state = 1 /* Starting */;
            try {
              const connection = await this.createConnection();
              this.handleConnectionEvents(connection);
              connection.listen();
              await this.initialize(connection);
              resolve();
            } catch (error) {
              if (this._onStart !== void 0 && this._onStart !== promise) {
                this._onStart.then(resolve, reject);
                void promise.catch(() => {
                });
              } else {
                this.$state = 2 /* StartFailed */;
                this.error(`${this._name} client: couldn't create connection to server.`, error, "force");
                reject(error);
              }
            }
            return this._onStart;
          }
          start() {
            let p2 = this._start();
            p2.dispose = () => {
              if (this.needsStop()) {
                void this.stop();
              }
            };
            return p2;
          }
          async $start() {
            if (this.$state === 2 /* StartFailed */) {
              throw new Error(`Previous start failed. Can't restart server.`);
            }
            await this._start();
            const connection = this.activeConnection();
            if (connection === void 0) {
              throw new Error(`Starting server failed`);
            }
            return connection;
          }
          handleConnectionEvents(connection) {
            connection.onNotification(import_node4.LogMessageNotification.type, (message) => {
              switch (message.type) {
                case import_node4.MessageType.Error:
                  this.error(message.message);
                  break;
                case import_node4.MessageType.Warning:
                  this.warn(message.message);
                  break;
                case import_node4.MessageType.Info:
                  this.info(message.message);
                  break;
                case import_node4.MessageType.Debug:
                  this.debug(message.message);
                  break;
                default:
                  this.outputChannel.appendLine(message.message);
              }
            });
            connection.onNotification(import_node4.ShowMessageNotification.type, (message) => {
              switch (message.type) {
                case import_node4.MessageType.Error:
                  void window_default.showErrorMessage(message.message);
                  break;
                case import_node4.MessageType.Warning:
                  void window_default.showWarningMessage(message.message);
                  break;
                case import_node4.MessageType.Info:
                  void window_default.showInformationMessage(message.message);
                  break;
                default:
                  void window_default.showInformationMessage(message.message);
              }
            });
            connection.onRequest(import_node4.ShowMessageRequest.type, (params) => {
              let messageFunc;
              switch (params.type) {
                case import_node4.MessageType.Error:
                  messageFunc = window_default.showErrorMessage.bind(window_default);
                  break;
                case import_node4.MessageType.Warning:
                  messageFunc = window_default.showWarningMessage.bind(window_default);
                  break;
                case import_node4.MessageType.Info:
                  messageFunc = window_default.showInformationMessage.bind(window_default);
                  break;
                default:
                  messageFunc = window_default.showInformationMessage.bind(window_default);
              }
              let actions = toArray(params.actions);
              return messageFunc(params.message, ...actions);
            });
            connection.onRequest(import_node4.ShowDocumentRequest.type, async (params, token) => {
              const showDocument = async (params2) => {
                try {
                  if (params2.external === true || /^https?:\/\//.test(params2.uri)) {
                    await workspace_default.openResource(params2.uri);
                    return { success: true };
                  } else {
                    let { selection, takeFocus } = params2;
                    if (takeFocus === false) {
                      await workspace_default.loadFile(params2.uri);
                    } else {
                      await workspace_default.jumpTo(params2.uri, selection?.start);
                      if (selection && comparePosition(selection.start, selection.end) != 0) {
                        await window_default.selectRange(selection);
                      }
                    }
                    return { success: true };
                  }
                } catch (error) {
                  return { success: false };
                }
              };
              const middleware = this._clientOptions.middleware.window?.showDocument;
              if (middleware !== void 0) {
                return middleware(params, token, showDocument);
              } else {
                return showDocument(params);
              }
            });
          }
          createOnStartPromise() {
            let resolve;
            let reject;
            const promise = new Promise((_resolve, _reject) => {
              resolve = _resolve;
              reject = _reject;
            });
            return [promise, resolve, reject];
          }
          resolveRootPath() {
            if (this._clientOptions.workspaceFolder) {
              return u.parse(this._clientOptions.workspaceFolder.uri).fsPath;
            }
            let { ignoredRootPaths, rootPatterns, requireRootPattern } = this._clientOptions;
            let resolved;
            if (!isFalsyOrEmpty(rootPatterns)) {
              resolved = workspace_default.documentsManager.resolveRoot(rootPatterns, requireRootPattern);
            }
            let rootPath = resolved || workspace_default.rootPath;
            if (sameFile(rootPath, os.homedir()) || ignoredRootPaths.some((p2) => sameFile(rootPath, p2))) {
              this.warn(`Ignored rootPath ${rootPath} of client "${this._id}"`);
              return null;
            }
            return rootPath;
          }
          initialize(connection) {
            let { initializationOptions, workspaceFolder, progressOnInitialization } = this._clientOptions;
            this.refreshTrace(false);
            let rootPath = this._rootPath;
            let initParams = {
              processId: process.pid,
              rootPath: rootPath ? rootPath : null,
              rootUri: rootPath ? this.code2ProtocolConverter.asUri(u.file(rootPath)) : null,
              capabilities: this.computeClientCapabilities(),
              initializationOptions: func(initializationOptions) ? initializationOptions() : initializationOptions,
              trace: import_node4.Trace.toString(this._trace),
              workspaceFolders: workspaceFolder ? [workspaceFolder] : null,
              locale: getLocale(),
              clientInfo: {
                name: "coc.nvim",
                version: workspace_default.version
              }
            };
            this.fillInitializeParams(initParams);
            if (progressOnInitialization) {
              const token = crypto.randomUUID();
              initParams.workDoneToken = token;
              connection.id = this._id;
              const part = new ProgressPart(connection, token);
              part.begin({ title: `Initializing ${this.id}`, kind: "begin" });
              return this.doInitialize(connection, initParams).then((result) => {
                part.done();
                return result;
              }, (error) => {
                part.done();
                return Promise.reject(error);
              });
            } else {
              return this.doInitialize(connection, initParams);
            }
          }
          async doInitialize(connection, initParams) {
            try {
              const result = await connection.initialize(initParams);
              if (result.capabilities.positionEncoding !== void 0 && result.capabilities.positionEncoding !== import_node4.PositionEncodingKind.UTF16) {
                throw new Error(`Unsupported position encoding (${result.capabilities.positionEncoding}) received from server ${this.name}`);
              }
              this._initializeResult = result;
              this.$state = 3 /* Running */;
              let textDocumentSyncOptions;
              if (number(result.capabilities.textDocumentSync)) {
                if (result.capabilities.textDocumentSync === import_node4.TextDocumentSyncKind.None) {
                  textDocumentSyncOptions = {
                    openClose: false,
                    change: import_node4.TextDocumentSyncKind.None,
                    save: void 0
                  };
                } else {
                  textDocumentSyncOptions = {
                    openClose: true,
                    change: result.capabilities.textDocumentSync,
                    save: {
                      includeText: false
                    }
                  };
                }
              } else if (result.capabilities.textDocumentSync !== void 0 && result.capabilities.textDocumentSync !== null) {
                textDocumentSyncOptions = result.capabilities.textDocumentSync;
              }
              this._capabilities = Object.assign({}, result.capabilities, { resolvedTextDocumentSync: textDocumentSyncOptions });
              connection.onNotification(import_node4.PublishDiagnosticsNotification.type, (params) => this.handleDiagnostics(params));
              for (let requestType of [import_node4.RegistrationRequest.type, "client/registerFeature"]) {
                connection.onRequest(requestType, (params) => this.handleRegistrationRequest(params));
              }
              for (let requestType of [import_node4.UnregistrationRequest.type, "client/unregisterFeature"]) {
                connection.onRequest(requestType, (params) => this.handleUnregistrationRequest(params));
              }
              connection.onRequest(import_node4.ApplyWorkspaceEditRequest.type, (params) => this.handleApplyWorkspaceEdit(params));
              for (const [method, handler] of this._pendingNotificationHandlers) {
                this._notificationDisposables.set(method, connection.onNotification(method, handler));
              }
              this._pendingNotificationHandlers.clear();
              for (const [method, handler] of this._pendingRequestHandlers) {
                this._requestDisposables.set(method, connection.onRequest(method, handler));
              }
              this._pendingRequestHandlers.clear();
              for (const [token, data] of this._pendingProgressHandlers) {
                this._progressDisposables.set(token, connection.onProgress(data.type, token, data.handler));
              }
              this._pendingProgressHandlers.clear();
              await connection.sendNotification(import_node4.InitializedNotification.type, {});
              this.hookConfigurationChanged();
              this.initializeFeatures(connection);
              return result;
            } catch (error) {
              process.nextTick(() => {
                try {
                  if (this._connection !== connection) {
                    logger41.error(`Server "${this.id}" initialization failed on a superseded connection.`, error);
                    return;
                  }
                  this.error("Server initialization failed.", error);
                  logger41.error(`Server "${this.id}" initialization failed.`, error);
                  let cb = (retry) => {
                    process.nextTick(() => {
                      new Promise((resolve, reject) => {
                        if (retry) {
                          this.initialize(connection).then(resolve, reject);
                        } else {
                          this.stop().then(resolve, reject);
                        }
                      }).catch((err) => {
                        this.error(`Unexpected error`, err, false);
                      });
                    });
                  };
                  if (this._clientOptions.initializationFailedHandler) {
                    cb(this._clientOptions.initializationFailedHandler(error));
                  } else if (error instanceof import_node4.ResponseError && error.data && error.data.retry) {
                    void window_default.showErrorMessage(error.message, { title: "Retry", id: "retry" }).then((item) => {
                      cb(item && item.id === "retry");
                    });
                  } else {
                    if (error && error.message) {
                      void window_default.showErrorMessage(toText(error.message));
                    }
                    cb(false);
                  }
                } catch (e2) {
                  this.error(`Error during initialization failure handling for "${this.id}".`, e2, false);
                }
              });
              throw error;
            }
          }
          stop(timeout2 = 2e3) {
            return this.shutdown("stop" /* Stop */, timeout2);
          }
          async shutdown(mode, timeout2) {
            if (this.$state === 5 /* Stopped */ || this.$state === 0 /* Initial */) {
              return;
            }
            if (this.$state === 1 /* Starting */ && this._onStart) {
              await this._onStart;
            }
            if (this.$state === 4 /* Stopping */) {
              return this._onStop;
            }
            const connection = this._connection;
            if (connection === void 0 || this.$state !== 3 /* Running */ && this.$state !== 2 /* StartFailed */) {
              throw new Error(`Client is not running and can't be stopped. Its current state is: ${this.$state}`);
            }
            this._initializeResult = void 0;
            this.$state = 4 /* Stopping */;
            this.cleanUp(mode);
            let tm;
            const tp = new Promise((c2) => {
              tm = setTimeout(c2, timeout2);
            });
            const shutdown = (async (connection2) => {
              await connection2.shutdown();
              await connection2.exit();
              return connection2;
            })(connection);
            const close = new Promise((resolve) => {
              this._onStopClose = () => resolve(connection);
            });
            return this._onStop = Promise.race([tp, shutdown, close]).then((connection2) => {
              if (tm) clearTimeout(tm);
              if (connection2 !== void 0) {
                connection2.end();
                connection2.dispose();
              } else {
                this.error(`Stopping server timed out`, void 0);
                throw new Error(`Stopping the server timed out`);
              }
            }, (error) => {
              this.error(`Stopping server failed`, error);
              throw error;
            }).finally(() => {
              this.$state = 5 /* Stopped */;
              if (mode === "stop") {
                this.cleanUpChannel();
              }
              this._onStart = void 0;
              this._onStop = void 0;
              this._onStopClose = void 0;
              this._connection = void 0;
              this._ignoredRegistrations.clear();
            });
          }
          dispose(timeout2 = 2e3) {
            if (this._disposed) return;
            try {
              this._disposed = "disposing";
              if (!this.needsStop()) return;
              return this.stop(timeout2);
            } finally {
              this._disposed = "disposed";
            }
          }
          cleanUp(mode) {
            this._fileEvents = [];
            this._fileEventDelayer.cancel();
            if (this._listeners) {
              disposeAll(this._listeners);
            }
            if (this._syncedDocuments) {
              this._syncedDocuments.clear();
            }
            for (const feature of Array.from(this._features.entries()).map((entry) => entry[1]).reverse()) {
              if (typeof feature.dispose === "function") {
                feature.dispose();
              }
            }
            if (mode === "stop" /* Stop */ || mode === "restart" /* Restart */) {
              if (this._diagnostics !== void 0 && this._diagnostics !== null) {
                this._diagnostics.dispose();
              }
              this._diagnostics = null;
            }
          }
          cleanUpChannel() {
            if (this._outputChannel) {
              this._outputChannel.dispose();
              this._outputChannel = void 0;
            }
          }
          /**
           * @internal
           */
          notifyFileEvent(event) {
            const didChangeWatchedFile = async (event2) => {
              if (event2) this._fileEvents.push(event2);
              return this._fileEventDelayer.trigger(async () => {
                const fileEvents = this._fileEvents;
                if (fileEvents.length === 0) return;
                this._fileEvents = [];
                try {
                  await this.sendNotification(import_vscode_languageserver_protocol4.DidChangeWatchedFilesNotification.type, { changes: fileEvents });
                } catch (error) {
                  this._fileEvents = fileEvents;
                  throw error;
                }
              });
            };
            const workSpaceMiddleware = this.clientOptions.middleware.workspace;
            (workSpaceMiddleware?.didChangeWatchedFile ? workSpaceMiddleware.didChangeWatchedFile(event, didChangeWatchedFile) : didChangeWatchedFile(event)).catch((error) => {
              this.error(`Notifying ${import_vscode_languageserver_protocol4.DidChangeWatchedFilesNotification.method} failed.`, error);
            });
          }
          /**
           * @internal
           * @deprecated
           */
          async forceDocumentSync() {
          }
          /**
           * @internal
           */
          isSynced(uri) {
            return this._syncedDocuments ? this._syncedDocuments.has(uri) : false;
          }
          async createConnection() {
            let onError = (error) => {
              this.error(`Unexpected connection error: `, error);
            };
            let errorHandler = (error, message, count) => {
              this.handleConnectionError(error, message, count).catch(onError);
            };
            let closeHandler = () => {
              this.handleConnectionClosed().catch(onError);
            };
            const transports = await this.createMessageTransports(defaultValue(this._clientOptions.stdioEncoding, "utf8"));
            this._connection = createConnection(transports.reader, transports.writer, errorHandler, closeHandler, this._clientOptions.connectionOptions);
            return this._connection;
          }
          async handleConnectionClosed() {
            if (this.$state === 5 /* Stopped */) {
              logger41.info(`client ${this._id} normal closed`);
              return;
            }
            if (this.$state === 4 /* Stopping */) {
              this._onStopClose?.();
              return;
            }
            try {
              if (this._connection !== void 0) {
                this._connection.dispose();
              }
            } catch (error) {
            }
            let handlerResult = { action: 1 /* DoNotRestart */ };
            let err;
            try {
              let result = await this._clientOptions.errorHandler.closed();
              handlerResult = toCloseHandlerResult(result);
            } catch (error) {
              err = error;
            }
            this._connection = void 0;
            if (handlerResult.action === 1 /* DoNotRestart */) {
              this.error(handlerResult.message ?? "Connection to server got closed. Server will not be restarted.", void 0, handlerResult.handled === true ? false : "force");
              this.cleanUp("stop" /* Stop */);
              if (this.$state === 1 /* Starting */) {
                this.$state = 2 /* StartFailed */;
              } else {
                this.$state = 5 /* Stopped */;
              }
              this._onStop = Promise.resolve();
              this._onStart = void 0;
            } else if (handlerResult.action === 2 /* Restart */) {
              this.info(handlerResult.message ?? "Connection to server got closed. Server will restart.", void 0, !handlerResult.handled);
              this.cleanUp("restart" /* Restart */);
              this.$state = 0 /* Initial */;
              this._onStop = Promise.resolve();
              this._onStart = void 0;
              this.start().catch((error) => {
                this.error(`Restarting server failed`, error, "force");
              });
            }
            if (err) throw err;
          }
          /**
           * @internal
           */
          async handleConnectionError(error, message, count) {
            let res = await this._clientOptions.errorHandler.error(error, message, count);
            let result = typeof res === "number" ? { action: res } : defaultValue(res, { action: 2 /* Shutdown */ });
            const showNotification = result.handled === true ? false : "force";
            if (result.action === 2 /* Shutdown */) {
              const msg = result.message ?? `Client ${this._name}: connection to server is erroring.
    ${error.message}
    Shutting down server.`;
              this.error(msg, error, showNotification);
              return this.stop();
            } else {
              const msg = result.message ?? `Client ${this._name}: connection to server is erroring.
    ${error.message}`;
              this.error(msg, error, showNotification);
            }
          }
          hookConfigurationChanged() {
            workspace_default.onDidChangeConfiguration((e2) => {
              if (e2.affectsConfiguration(this._id)) {
                this.refreshTrace(true);
              }
            }, null, this._listeners);
          }
          refreshTrace(sendNotification) {
            let config = workspace_default.getConfiguration(this._id, null);
            let trace = import_node4.Trace.Off;
            let traceFormat = import_node4.TraceFormat.Text;
            if (config) {
              const traceConfig = config.get("trace.server", "off");
              if (typeof traceConfig === "string") {
                trace = import_node4.Trace.fromString(traceConfig);
              } else {
                trace = import_node4.Trace.fromString(config.get("trace.server.verbosity", "off"));
                traceFormat = import_node4.TraceFormat.fromString(config.get("trace.server.format", "text"));
              }
            }
            if (sendNotification && this._trace == trace && this._traceFormat == traceFormat) {
              return;
            }
            this.changeTrace(trace, traceFormat, sendNotification);
          }
          changeTrace(trace, traceFormat, sendNotification = true) {
            if (this._trace === trace) return;
            this._trace = trace;
            this._traceFormat = traceFormat;
            if (this._connection && (this.$state === 3 /* Running */ || this.$state === 1 /* Starting */)) {
              this._connection.trace(this._trace, this._tracer, {
                sendNotification,
                traceFormat: this._traceFormat
              }).catch((error) => {
                this.error(`Updating trace failed with error`, error, false);
              });
            }
          }
          _features = [];
          _dynamicFeatures = /* @__PURE__ */ new Map();
          /**
           * @internal
           */
          registerFeatures(features) {
            for (let feature of features) {
              this.registerFeature(feature, "");
            }
          }
          registerFeature(feature, name2) {
            let { disabledFeatures } = this._clientOptions;
            if (disabledFeatures.length > 0 && disabledFeatures.includes(name2)) return;
            this._features.push(feature);
            if (DynamicFeature.is(feature)) {
              const registrationType = feature.registrationType;
              this._dynamicFeatures.set(registrationType.method, feature);
            }
          }
          getStaticFeature(method) {
            return this._features.find((o2) => StaticFeature.is(o2) && o2.method == method);
          }
          getFeature(request2) {
            return this._dynamicFeatures.get(request2);
          }
          registerBuiltinFeatures() {
            this.registerFeature(new SyncConfigurationFeature(this), "configuration");
            this._didOpenTextDocumentFeature = new DidOpenTextDocumentFeature(this, this._syncedDocuments);
            this.registerFeature(this._didOpenTextDocumentFeature, "document");
            this.registerFeature(new DidChangeTextDocumentFeature(this), "document");
            this.registerFeature(new DidCloseTextDocumentFeature(this, this._syncedDocuments), "document");
            this.registerFeature(new WillSaveFeature(this), "willSave");
            this.registerFeature(new WillSaveWaitUntilFeature(this), "willSaveWaitUntil");
            this.registerFeature(new DidSaveTextDocumentFeature(this), "didSave");
            this.registerFeature(new FileSystemWatcherFeature(this, this.notifyFileEvent.bind(this)), "fileSystemWatcher");
            this.registerFeature(new CompletionItemFeature(this), "completion");
            this.registerFeature(new HoverFeature(this), "hover");
            this.registerFeature(new SignatureHelpFeature(this), "signatureHelp");
            this.registerFeature(new ReferencesFeature(this), "references");
            this.registerFeature(new DefinitionFeature(this), "definition");
            this.registerFeature(new DocumentHighlightFeature(this), "documentHighlight");
            this.registerFeature(new DocumentSymbolFeature(this), "documentSymbol");
            this.registerFeature(new CodeActionFeature(this), "codeAction");
            this.registerFeature(new CodeLensFeature(this), "codeLens");
            this.registerFeature(new DocumentFormattingFeature(this), "documentFormatting");
            this.registerFeature(new DocumentRangeFormattingFeature(this), "documentRangeFormatting");
            this.registerFeature(new DocumentOnTypeFormattingFeature(this), "documentOnTypeFormatting");
            this.registerFeature(new RenameFeature(this), "rename");
            this.registerFeature(new DocumentLinkFeature(this), "documentLink");
            this.registerFeature(new ExecuteCommandFeature(this), "executeCommand");
            this.registerFeature(new PullConfigurationFeature(this), "pullConfiguration");
            this.registerFeature(new TypeDefinitionFeature(this), "typeDefinition");
            this.registerFeature(new ImplementationFeature(this), "implementation");
            this.registerFeature(new DeclarationFeature(this), "declaration");
            this.registerFeature(new ColorProviderFeature(this), "colorProvider");
            this.registerFeature(new FoldingRangeFeature(this), "foldingRange");
            this.registerFeature(new SelectionRangeFeature(this), "selectionRange");
            this.registerFeature(new CallHierarchyFeature(this), "callHierarchy");
            this.registerFeature(new ProgressFeature(this), "progress");
            this.registerFeature(new LinkedEditingFeature(this), "linkedEditing");
            this.registerFeature(new DidCreateFilesFeature(this), "fileEvents");
            this.registerFeature(new DidRenameFilesFeature(this), "fileEvents");
            this.registerFeature(new FileRenameFeature(this), "fileEvents");
            this.registerFeature(new DidDeleteFilesFeature(this), "fileEvents");
            this.registerFeature(new WillCreateFilesFeature(this), "fileEvents");
            this.registerFeature(new WillRenameFilesFeature(this), "fileEvents");
            this.registerFeature(new WillDeleteFilesFeature(this), "fileEvents");
            this.registerFeature(new SemanticTokensFeature(this), "semanticTokens");
            this.registerFeature(new InlayHintsFeature(this), "inlayHint");
            this.registerFeature(new InlineCompletionItemFeature(this), "inlineCompletion");
            this.registerFeature(new TextDocumentContentFeature(this), "textDocumentContent");
            this.registerFeature(new InlineValueFeature(this), "inlineValue");
            this.registerFeature(new DiagnosticFeature(this), "pullDiagnostic");
            this.registerFeature(new TypeHierarchyFeature(this), "typeHierarchy");
            this.registerFeature(new WorkspaceSymbolFeature(this), "workspaceSymbol");
            if (this.clientOptions.workspaceFolder === void 0) {
              this.registerFeature(new WorkspaceFoldersFeature(this), "workspaceFolders");
            }
          }
          /**
           * @internal
           */
          registerProposedFeatures() {
            this.registerFeatures(ProposedFeatures.createAll(this));
          }
          fillInitializeParams(params) {
            for (let feature of this._features) {
              if (func(feature.fillInitializeParams)) {
                feature.fillInitializeParams(params);
              }
            }
          }
          computeClientCapabilities() {
            const result = {};
            ensure(result, "workspace").applyEdit = true;
            const workspaceEdit = ensure(ensure(result, "workspace"), "workspaceEdit");
            workspaceEdit.documentChanges = true;
            workspaceEdit.resourceOperations = [import_node4.ResourceOperationKind.Create, import_node4.ResourceOperationKind.Rename, import_node4.ResourceOperationKind.Delete];
            workspaceEdit.failureHandling = import_node4.FailureHandlingKind.Undo;
            workspaceEdit.normalizesLineEndings = true;
            workspaceEdit.changeAnnotationSupport = {
              groupsOnLabel: false
            };
            workspaceEdit.metadataSupport = true;
            workspaceEdit.snippetEditSupport = true;
            const diagnostics = ensure(ensure(result, "textDocument"), "publishDiagnostics");
            diagnostics.relatedInformation = true;
            diagnostics.versionSupport = true;
            diagnostics.tagSupport = { valueSet: [DiagnosticTag.Unnecessary, DiagnosticTag.Deprecated] };
            diagnostics.codeDescriptionSupport = true;
            diagnostics.dataSupport = true;
            const textDocumentFilter = ensure(ensure(result, "textDocument"), "filters");
            textDocumentFilter.relativePatternSupport = true;
            const windowCapabilities = ensure(result, "window");
            const showMessage = ensure(windowCapabilities, "showMessage");
            showMessage.messageActionItem = { additionalPropertiesSupport: true };
            const showDocument = ensure(windowCapabilities, "showDocument");
            showDocument.support = true;
            const generalCapabilities = ensure(result, "general");
            generalCapabilities.staleRequestSupport = {
              cancel: true,
              retryOnContentModified: Array.from(_BaseLanguageClient.RequestsToCancelOnContentModified)
            };
            generalCapabilities.regularExpressions = { engine: "ECMAScript", version: "ES2020" };
            generalCapabilities.markdown = { parser: "marked", version: "10.0.0" };
            generalCapabilities.positionEncodings = ["utf-16"];
            if (this._clientOptions.markdown.supportHtml) {
              generalCapabilities.markdown.allowedTags = ["ul", "li", "p", "code", "blockquote", "ol", "h1", "h2", "h3", "h4", "h5", "h6", "hr", "em", "pre", "table", "thead", "tbody", "tr", "th", "td", "div", "del", "a", "strong", "br", "span"];
            }
            for (let feature of this._features) {
              feature.fillClientCapabilities(result);
            }
            return result;
          }
          initializeFeatures(_connection) {
            let documentSelector = this._clientOptions.documentSelector;
            for (let feature of this._features) {
              if (func(feature.preInitialize)) {
                feature.preInitialize(this._capabilities, documentSelector);
              }
            }
            for (let feature of this._features) {
              feature.initialize(this._capabilities, documentSelector);
            }
          }
          handleRegistrationRequest(params) {
            if (this.clientOptions.disableDynamicRegister) return;
            const middleware = this.clientOptions.middleware.handleRegisterCapability;
            if (middleware) {
              return middleware(params, (nextParams) => this.doRegisterCapability(nextParams));
            } else {
              return this.doRegisterCapability(params);
            }
          }
          async doRegisterCapability(params) {
            if (!this.isRunning()) {
              for (const registration of params.registrations) {
                this._ignoredRegistrations.add(registration.id);
              }
              return;
            }
            for (const registration of params.registrations) {
              const feature = this._dynamicFeatures.get(registration.method);
              if (!feature) {
                this.error(`No feature implementation for "${registration.method}" found. Registration failed.`, void 0, false);
                continue;
              }
              const options3 = { ...defaultValue(registration.registerOptions, {}) };
              options3.documentSelector = options3.documentSelector ?? this._clientOptions.documentSelector;
              const data = {
                id: registration.id,
                registerOptions: options3
              };
              feature.register(data);
            }
          }
          handleUnregistrationRequest(params) {
            const middleware = this._clientOptions.middleware.handleUnregisterCapability;
            if (middleware) {
              return middleware(params, (nextParams) => this.doUnregisterCapability(nextParams));
            } else {
              return this.doUnregisterCapability(params);
            }
          }
          async doUnregisterCapability(params) {
            for (const unregistration of params.unregisterations) {
              if (this._ignoredRegistrations.has(unregistration.id)) {
                continue;
              }
              const feature = this._dynamicFeatures.get(unregistration.method);
              if (feature) feature.unregister(unregistration.id);
            }
          }
          handleDiagnostics(params) {
            if (this._diagnostics === null) return;
            let { uri, diagnostics, version: version2 } = params;
            if (number(version2) && !workspace_default.hasDocument(uri, version2)) return;
            let middleware = this.clientOptions.middleware.handleDiagnostics;
            if (middleware) {
              middleware(
                uri,
                diagnostics,
                (uri2, diagnostics2) => this.setDiagnostics(uri2, diagnostics2)
              );
            } else {
              this.setDiagnostics(uri, diagnostics);
            }
          }
          setDiagnostics(uri, diagnostics) {
            let collection = this.diagnostics;
            if (collection) collection.set(uri, diagnostics);
          }
          doHandleApplyWorkspaceEdit(params) {
            return workspace_default.files.applyEdit(params.edit).then((applied) => {
              return { applied };
            });
          }
          async handleApplyWorkspaceEdit(params) {
            const middleware = this.clientOptions.middleware.workspace?.handleApplyEdit;
            if (middleware) {
              try {
                let resultOrError = await Promise.resolve(middleware(params, (nextParams) => this.doHandleApplyWorkspaceEdit(nextParams)));
                if (resultOrError instanceof import_node4.ResponseError) {
                  throw resultOrError;
                }
              } catch (error) {
                this.error(`Error on apply workspace edit`, error, false);
                return { applied: false };
              }
            } else {
              return this.doHandleApplyWorkspaceEdit(params);
            }
          }
          static RequestsToCancelOnContentModified = /* @__PURE__ */ new Set([
            import_node4.InlayHintRequest.method,
            import_node4.SemanticTokensRequest.method,
            import_node4.SemanticTokensRangeRequest.method,
            import_node4.SemanticTokensDeltaRequest.method
          ]);
          handleFailedRequest(type, token, error, defaultValue2, showNotification = true) {
            if (token && token.isCancellationRequested) return defaultValue2;
            if (error instanceof import_node4.ResponseError) {
              if (error.code === import_node4.ErrorCodes.PendingResponseRejected || error.code === import_node4.ErrorCodes.ConnectionInactive) {
                return defaultValue2;
              }
              if (error.code === import_node4.LSPErrorCodes.RequestCancelled || error.code === import_node4.LSPErrorCodes.ServerCancelled) {
                if (error.data != null) {
                  throw new LSPCancellationError(error.data);
                } else {
                  throw new CancellationError();
                }
              } else if (error.code === import_node4.LSPErrorCodes.ContentModified) {
                if (_BaseLanguageClient.RequestsToCancelOnContentModified.has(type.method)) {
                  throw new CancellationError();
                } else {
                  return defaultValue2;
                }
              }
            }
            this.error(`Request ${type.method} failed.`, error, showNotification);
            throw error;
          }
          /**
           * @internal
           */
          // Should be kept
          logFailedRequest(type, error) {
            if (error instanceof import_node4.ResponseError && error.code === import_node4.LSPErrorCodes.RequestCancelled) {
              return;
            }
            this.error(`Request ${type.method} failed.`, error);
          }
          /**
           * @internal
           * Return extension name or id.
           */
          getExtensionName() {
            if (this.__extensionName) return this.__extensionName;
            let name2 = parseExtensionName(toText(this["stack"]));
            if (name2 && name2 !== "coc.nvim") {
              this.__extensionName = name2;
              return name2;
            }
            return this._id;
          }
          /**
           * @internal
           * Add __extensionName property to provider
           */
          attachExtensionName(provider) {
            if (!provider.hasOwnProperty("__extensionName")) {
              Object.defineProperty(provider, "__extensionName", {
                get: () => this.getExtensionName(),
                enumerable: true
              });
            }
          }
        };
        ProposedFeatures = {
          createAll: (_client) => {
            let result = [];
            return result;
          }
        };
      }
    });
    
    // src/language-client/index.ts
    function getRuntimePath(runtime, serverWorkingDirectory) {
      if (path.isAbsolute(runtime)) {
        return runtime;
      }
      const mainRootPath = mainGetRootPath();
      if (mainRootPath !== void 0) {
        const result = path.join(mainRootPath, runtime);
        if (fs.existsSync(result)) {
          return result;
        }
      }
      if (serverWorkingDirectory !== void 0) {
        const result = path.join(serverWorkingDirectory, runtime);
        if (fs.existsSync(result)) {
          return result;
        }
      }
      return runtime;
    }
    function mainGetRootPath() {
      let folders = workspace_default.workspaceFolders;
      if (!folders || folders.length === 0) {
        return void 0;
      }
      return u.parse(folders[0].uri).fsPath;
    }
    function getServerWorkingDir(options3) {
      let cwd2 = options3 && options3.cwd;
      if (cwd2 && !path.isAbsolute(cwd2)) cwd2 = path.join(workspace_default.cwd, cwd2);
      if (!cwd2) cwd2 = workspace_default.cwd;
      return new Promise((s2) => {
        fs.lstat(cwd2, (err, stats) => {
          s2(!err && stats.isDirectory() ? cwd2 : void 0);
        });
      });
    }
    function forkServer(node, args, options3) {
      return new Promise((resolve, reject) => {
        let sp;
        try {
          sp = child_process.fork(node.module, args, options3);
        } catch (e2) {
          reject(e2);
          return;
        }
        sp.on("error", (err) => {
          reject(err instanceof Error ? err : new Error(String(err)));
        });
        if (sp.pid === void 0) {
          return;
        }
        resolve(sp);
      });
    }
    function waitForConnection(serverProcess, transport, timeout2) {
      return new Promise((resolve, reject) => {
        if (serverProcess.exitCode !== null || serverProcess.signalCode !== null) {
          transport.dispose();
          reject(new Error("Server process exited before connection established."));
          return;
        }
        let done = false;
        let timer;
        const finish = (fn) => {
          if (done) return;
          done = true;
          clearTimeout(timer);
          serverProcess.off("exit", onExit);
          fn();
        };
        const onExit = (code, signal) => {
          transport.dispose();
          finish(() => reject(new Error(`Server process exited with code ${code}${signal ? ` and signal ${signal}` : ""} before connection established.`)));
        };
        timer = setTimeout(() => {
          transport.dispose();
          terminate(serverProcess);
          finish(() => reject(new Error(`Timed out after ${timeout2}ms waiting for language server to connect.`)));
        }, timeout2);
        serverProcess.once("exit", onExit);
        transport.onConnected().then((protocol) => {
          finish(() => resolve(protocol));
        }, (error) => {
          finish(() => reject(error));
        });
      });
    }
    function startedInDebugMode(args) {
      if (args) {
        return args.some((arg) => {
          return debugStartWith.some((value) => arg.startsWith(value)) || debugEquals.some((value) => arg === value);
        });
      }
      return false;
    }
    function handleChildProcessStartError(childProcess, message) {
      if (childProcess === null) {
        return Promise.reject(message);
      }
      childProcess.unref();
      return new Promise((_2, reject) => {
        childProcess.on("error", (err) => {
          reject(`${message} ${err}`);
        });
        setImmediate(() => reject(message));
      });
    }
    function checkProcessDied(childProcess) {
      if (!childProcess || childProcess.pid === void 0) return;
      setTimeout(() => {
        try {
          process.kill(childProcess.pid, 0);
          terminate(childProcess);
        } catch (error) {
        }
      }, STOP_TIMEOUT);
    }
    var logger42, debugStartWith, debugEquals, STOP_TIMEOUT, RESTART_TIMEOUT, CONNECT_TIMEOUT, TransportKind, Transport, Executable, NodeModule, StreamInfo, ChildProcessInfo, LanguageClient, SettingMonitor;
    var init_language_client = __esm({
      "src/language-client/index.ts"() {
        "use strict";
        init_esm();
        init_logger();
        init_util();
        init_is();
        init_node();
        init_processes();
        init_protocol();
        init_workspace();
        init_client();
        init_utils();
        init_client();
        logger42 = createLogger("language-client-index");
        debugStartWith = ["--debug=", "--debug-brk=", "--inspect=", "--inspect-brk="];
        debugEquals = ["--debug", "--debug-brk", "--inspect", "--inspect-brk"];
        STOP_TIMEOUT = getConditionValue(2e3, 10);
        RESTART_TIMEOUT = getConditionValue(1e3, 10);
        CONNECT_TIMEOUT = getConditionValue(3e4, 2e3);
        TransportKind = /* @__PURE__ */ ((TransportKind2) => {
          TransportKind2[TransportKind2["stdio"] = 0] = "stdio";
          TransportKind2[TransportKind2["ipc"] = 1] = "ipc";
          TransportKind2[TransportKind2["pipe"] = 2] = "pipe";
          TransportKind2[TransportKind2["socket"] = 3] = "socket";
          return TransportKind2;
        })(TransportKind || {});
        ((Transport3) => {
          function isSocket(value) {
            let candidate = value;
            return candidate && candidate.kind === 3 /* socket */ && number(candidate.port);
          }
          Transport3.isSocket = isSocket;
        })(Transport || (Transport = {}));
        ((Executable3) => {
          function is(value) {
            return string(value.command);
          }
          Executable3.is = is;
        })(Executable || (Executable = {}));
        ((NodeModule2) => {
          function is(value) {
            return string(value.module);
          }
          NodeModule2.is = is;
        })(NodeModule || (NodeModule = {}));
        ((StreamInfo2) => {
          function is(value) {
            let candidate = value;
            return candidate && candidate.writer !== void 0 && candidate.reader !== void 0;
          }
          StreamInfo2.is = is;
        })(StreamInfo || (StreamInfo = {}));
        ((ChildProcessInfo2) => {
          function is(value) {
            let candidate = value;
            return candidate && candidate.process !== void 0 && typeof candidate.detached === "boolean";
          }
          ChildProcessInfo2.is = is;
        })(ChildProcessInfo || (ChildProcessInfo = {}));
        LanguageClient = class extends BaseLanguageClient {
          _forceDebug;
          _isInDebugMode;
          _serverProcess;
          _isDetached;
          _serverOptions;
          constructor(arg1, arg2, arg3, arg4, arg5) {
            let id2;
            let name2;
            let serverOptions;
            let clientOptions;
            let forceDebug;
            if (string(arg2)) {
              id2 = arg1;
              name2 = arg2;
              serverOptions = arg3;
              clientOptions = arg4;
              forceDebug = !!arg5;
            } else {
              id2 = arg1.toLowerCase();
              name2 = arg1;
              serverOptions = arg2;
              clientOptions = arg3;
              forceDebug = arg4;
            }
            super(id2, name2, clientOptions);
            this._serverOptions = serverOptions;
            this._forceDebug = !!forceDebug;
            this._isInDebugMode = !!forceDebug;
          }
          shutdown(mode, timeout2) {
            return super.shutdown(mode, timeout2).then(() => {
              if (this._serverProcess) {
                let toCheck = this._serverProcess;
                this._serverProcess = void 0;
                if (this._isDetached === void 0 || !this._isDetached) {
                  checkProcessDied(toCheck);
                }
                this._isDetached = void 0;
              }
            }, (err) => {
              if (this._serverProcess && err.message.includes("timed out")) {
                this._serverProcess.kill("SIGKILL");
                this._serverProcess = void 0;
                return;
              }
              throw err;
            });
          }
          get serviceState() {
            return this._state;
          }
          handleConnectionClosed() {
            this._serverProcess = void 0;
            return super.handleConnectionClosed();
          }
          get isInDebugMode() {
            return this._isInDebugMode;
          }
          async restart() {
            await this.stop();
            if (this.isInDebugMode) {
              await new Promise((resolve) => setTimeout(resolve, RESTART_TIMEOUT));
              await this._start();
            } else {
              await this._start();
            }
          }
          createMessageTransports(encoding2) {
            function getEnvironment(env, fork) {
              if (!env && !fork) {
                return void 0;
              }
              let result = /* @__PURE__ */ Object.create(null);
              Object.keys(process.env).forEach((key) => result[key] = process.env[key]);
              if (env) {
                Object.keys(env).forEach((key) => result[key] = env[key]);
              }
              return result;
            }
            function assertStdio(process2) {
              if (process2.stdin === null || process2.stdout === null || process2.stderr === null) {
                process2.kill("SIGKILL");
                throw new Error("Process created without stdio streams");
              }
            }
            function logMessage(kind, data, outputChannel) {
              let msg = `[${kind} - ${currentTimeStamp()}] ${data}`;
              outputChannel.appendLine(msg);
            }
            function pipeStdoutToLogOutputChannel(input, outputChannel) {
              readline.createInterface({
                input,
                crlfDelay: Infinity,
                terminal: false,
                historySize: 0
              }).on("line", (data) => logMessage("Stdout", data, outputChannel));
            }
            function pipeStderrToLogOutputChannel(input, outputChannel) {
              readline.createInterface({
                input,
                crlfDelay: Infinity,
                terminal: false,
                historySize: 0
              }).on("line", (data) => logMessage("Stderr", data, outputChannel));
            }
            let server = this._serverOptions;
            if (func(server)) {
              return server().then((result) => {
                if (MessageTransports.is(result)) {
                  this._isDetached = !!result.detached;
                  return result;
                } else if (StreamInfo.is(result)) {
                  this._isDetached = !!result.detached;
                  return {
                    reader: new import_node4.StreamMessageReader(result.reader),
                    writer: new import_node4.StreamMessageWriter(result.writer)
                  };
                } else {
                  let cp;
                  if (ChildProcessInfo.is(result)) {
                    cp = result.process;
                    this._isDetached = result.detached;
                  } else {
                    cp = result;
                    this._isDetached = false;
                  }
                  pipeStderrToLogOutputChannel(cp.stderr, this.outputChannel);
                  return {
                    reader: new import_node4.StreamMessageReader(cp.stdout),
                    writer: new import_node4.StreamMessageWriter(cp.stdin)
                  };
                }
              });
            }
            let json;
            let runDebug = server;
            if (runDebug.run || runDebug.debug) {
              if (typeof v8debug === "object" || this._forceDebug || startedInDebugMode(process.execArgv)) {
                json = runDebug.debug;
                this._isInDebugMode = true;
              } else {
                json = runDebug.run;
                this._isInDebugMode = false;
              }
            } else {
              json = server;
            }
            return getServerWorkingDir(json.options).then((serverWorkingDir) => {
              if (NodeModule.is(json) && json.module) {
                let node = json;
                let transport = node.transport || 0 /* stdio */;
                let pipeName;
                let runtime = node.runtime ? getRuntimePath(node.runtime, serverWorkingDir) : void 0;
                return new Promise((resolve, reject) => {
                  let args = node.args && node.args.slice() || [];
                  if (transport === 1 /* ipc */) {
                    args.push("--node-ipc");
                  } else if (transport === 0 /* stdio */) {
                    args.push("--stdio");
                  } else if (transport === 2 /* pipe */) {
                    pipeName = (0, import_node4.generateRandomPipeName)();
                    args.push(`--pipe=${pipeName}`);
                  } else if (Transport.isSocket(transport)) {
                    args.push(`--socket=${transport.port}`);
                  }
                  args.push(`--clientProcessId=${process.pid}`);
                  let options3 = node.options || /* @__PURE__ */ Object.create(null);
                  options3.env = getEnvironment(options3.env, true);
                  options3.execArgv = options3.execArgv || [];
                  options3.cwd = serverWorkingDir;
                  options3.silent = true;
                  if (runtime) options3.execPath = runtime;
                  if (transport === 1 /* ipc */ || transport === 0 /* stdio */) {
                    forkServer(node, args, options3).then((sp) => {
                      try {
                        assertStdio(sp);
                      } catch (e2) {
                        reject(e2);
                        return;
                      }
                      this._serverProcess = sp;
                      logger42.info(`Language server "${this.id}" started with ${sp.pid}`);
                      pipeStderrToLogOutputChannel(sp.stderr, this.outputChannel);
                      if (transport === 1 /* ipc */) {
                        pipeStdoutToLogOutputChannel(sp.stdout, this.outputChannel);
                        resolve({ reader: new import_node4.IPCMessageReader(this._serverProcess), writer: new import_node4.IPCMessageWriter(this._serverProcess) });
                      } else {
                        resolve({ reader: new import_node4.StreamMessageReader(sp.stdout), writer: new import_node4.StreamMessageWriter(sp.stdin) });
                      }
                    }, (err) => {
                      this.error(`Starting language server "${this.id}" failed.`, err, false);
                      reject(err);
                    });
                  } else if (transport === 2 /* pipe */) {
                    return createClientPipeTransport(pipeName).then((transport2) => {
                      return forkServer(node, args, options3).then((sp) => {
                        try {
                          assertStdio(sp);
                        } catch (e2) {
                          transport2.dispose();
                          reject(e2);
                          return;
                        }
                        logger42.info(`Language server "${this.id}" started with ${sp.pid}`);
                        this._serverProcess = sp;
                        pipeStderrToLogOutputChannel(sp.stderr, this.outputChannel);
                        pipeStdoutToLogOutputChannel(sp.stdout, this.outputChannel);
                        void waitForConnection(sp, transport2, CONNECT_TIMEOUT).then((protocol) => {
                          resolve({ reader: protocol[0], writer: protocol[1] });
                        }, (err) => {
                          this.error(`Language server "${this.id}" failed to connect.`, err, false);
                          reject(err);
                        });
                      }, (err) => {
                        transport2.dispose();
                        this.error(`Starting language server "${this.id}" failed.`, err, false);
                        reject(err);
                      });
                    });
                  } else if (Transport.isSocket(transport)) {
                    return createClientSocketTransport(transport.port).then((transport2) => {
                      return forkServer(node, args, options3).then((sp) => {
                        try {
                          assertStdio(sp);
                        } catch (e2) {
                          transport2.dispose();
                          reject(e2);
                          return;
                        }
                        this._serverProcess = sp;
                        logger42.info(`Language server "${this.id}" started with ${sp.pid}`);
                        pipeStderrToLogOutputChannel(sp.stderr, this.outputChannel);
                        pipeStdoutToLogOutputChannel(sp.stdout, this.outputChannel);
                        void waitForConnection(sp, transport2, CONNECT_TIMEOUT).then((protocol) => {
                          resolve({ reader: protocol[0], writer: protocol[1] });
                        }, (err) => {
                          this.error(`Language server "${this.id}" failed to connect.`, err, false);
                          reject(err);
                        });
                      }, (err) => {
                        transport2.dispose();
                        this.error(`Starting language server "${this.id}" failed.`, err, false);
                        reject(err);
                      });
                    });
                  }
                });
              } else if (Executable.is(json) && json.command) {
                let command = json;
                let args = Array.isArray(command.args) ? command.args.slice(0) : [];
                let pipeName;
                const transport = json.transport;
                if (transport === 0 /* stdio */) {
                  args.push("--stdio");
                } else if (transport === 2 /* pipe */) {
                  pipeName = (0, import_node4.generateRandomPipeName)();
                  args.push(`--pipe=${pipeName}`);
                } else if (Transport.isSocket(transport)) {
                  args.push(`--socket=${transport.port}`);
                } else if (transport === 1 /* ipc */) {
                  throw new Error(`Transport kind ipc is not supported for command executable`);
                }
                let options3 = Object.assign({ shell: process.platform === "win32" }, command.options);
                options3.env = getEnvironment(options3.env, false);
                options3.cwd = options3.cwd ?? serverWorkingDir;
                options3.windowsHide = true;
                const attachProcess = (serverProcess, pipiStdout = true) => {
                  this._serverProcess = serverProcess;
                  this._isDetached = !!options3.detached;
                  logger42.info(`Language server "${this.id}" started with ${serverProcess.pid}`);
                  if (pipiStdout) pipeStdoutToLogOutputChannel(serverProcess.stdout, this.outputChannel);
                  pipeStderrToLogOutputChannel(serverProcess.stderr, this.outputChannel);
                };
                let cmd = workspace_default.expand(json.command);
                if (transport === void 0 || transport === 0 /* stdio */) {
                  const serverProcess = child_process.spawn(cmd, args, options3);
                  if (!serverProcess || !serverProcess.pid) {
                    return handleChildProcessStartError(serverProcess, `Launching server using command ${cmd} failed.`);
                  }
                  attachProcess(serverProcess, false);
                  return Promise.resolve({ reader: new import_node4.StreamMessageReader(serverProcess.stdout), writer: new import_node4.StreamMessageWriter(serverProcess.stdin) });
                } else if (transport === 2 /* pipe */ || Transport.isSocket(transport)) {
                  let promise;
                  if (transport === 2 /* pipe */) {
                    promise = createClientPipeTransport(pipeName);
                  } else {
                    promise = createClientSocketTransport(transport.port);
                  }
                  return promise.then((transport2) => {
                    const serverProcess = child_process.spawn(cmd, args, options3);
                    if (!serverProcess || !serverProcess.pid) {
                      transport2.dispose();
                      return handleChildProcessStartError(serverProcess, `Launching server using command ${cmd} failed.`);
                    }
                    attachProcess(serverProcess);
                    return waitForConnection(serverProcess, transport2, CONNECT_TIMEOUT).then((protocol) => {
                      return { reader: protocol[0], writer: protocol[1] };
                    });
                  });
                }
              }
              return Promise.reject(new Error(`Unsupported server configuration ${JSON.stringify(server, null, 2)}`));
            }).finally(() => {
              if (this._serverProcess !== void 0) {
                this._serverProcess.on("exit", (code, signal) => {
                  if (code === 0) {
                    this.info("Server process exited successfully", void 0, false);
                  } else if (code !== null) {
                    this.error(`Server process exited with code ${code}.`, void 0, false);
                  }
                  if (signal !== null) {
                    this.error(`Server process exited with signal ${signal}.`, void 0, false);
                  }
                });
              }
            });
          }
        };
        SettingMonitor = class {
          constructor(_client, _setting) {
            this._client = _client;
            this._setting = _setting;
            this._listeners = [];
          }
          _client;
          _setting;
          _listeners;
          start() {
            workspace_default.onDidChangeConfiguration((e2) => {
              if (e2.affectsConfiguration(this._setting)) {
                this.onDidChangeConfiguration();
              }
            }, null, this._listeners);
            this.onDidChangeConfiguration();
            return {
              dispose: () => {
                disposeAll(this._listeners);
                void this._client.dispose();
              }
            };
          }
          onDidChangeConfiguration() {
            let index = this._setting.indexOf(".");
            let primary = index >= 0 ? this._setting.substring(0, index) : this._setting;
            let rest = index >= 0 ? this._setting.substring(index + 1) : void 0;
            let enabled = rest ? workspace_default.getConfiguration(primary).get(rest, true) : workspace_default.getConfiguration().get(primary, true);
            if (enabled && this._client.needsStart()) {
              this._client.start().catch((error) => this._client.error("Start failed after configuration change", error, "force"));
            } else if (!enabled && this._client.needsStop()) {
              this._client.stop().catch((error) => this._client.error("Stop failed after configuration change", error, "force"));
            }
          }
        };
      }
    });
    
    // src/services.ts
    function documentSelectorToLanguageIds(documentSelector) {
      let res = documentSelector.map((filter3) => {
        if (typeof filter3 == "string") {
          return filter3;
        }
        return filter3.language;
      });
      res = res.filter((s2) => typeof s2 == "string");
      return Array.from(new Set(res));
    }
    function getLanguageServerOptions(id2, name2, config, folder) {
      let { command, module: module2, port, args, filetypes } = config;
      args = args || [];
      if (!filetypes) {
        void window_default.showErrorMessage(`Wrong configuration of LS "${name2}", filetypes not found`);
        return null;
      }
      if (!command && !module2 && !port) {
        void window_default.showErrorMessage(`Wrong configuration of LS "${name2}", no command or module specified.`);
        return null;
      }
      let serverOptions;
      args = args.map((s2) => workspace_default.expand(s2));
      if (module2) {
        module2 = workspace_default.expand(module2);
        if (!fs.existsSync(module2)) {
          void window_default.showErrorMessage(`Module file "${module2}" not found for LS "${name2}"`);
          return null;
        }
        serverOptions = {
          module: module2,
          runtime: config.runtime ?? process.execPath,
          args,
          transport: getTransportKind(config),
          options: getForkOptions(config)
        };
      } else if (command) {
        serverOptions = {
          command,
          args,
          options: getSpawnOptions(config)
        };
      } else {
        serverOptions = () => new Promise((resolve, reject) => {
          let client = new net.Socket();
          let host = config.host ?? "127.0.0.1";
          logger43.info(`languageserver "${id2}" connecting to ${host}:${port}`);
          client.connect(port, host, () => {
            resolve({
              reader: client,
              writer: client
            });
          });
          client.on("error", (e2) => {
            reject(new Error(`Connection error for ${id2}: ${e2.message}`));
          });
        });
      }
      let disabledFeatures = Array.from(config.disabledFeatures || []);
      for (let key of ["disableWorkspaceFolders", "disableCompletion", "disableDiagnostics"]) {
        if (config[key] === true) {
          logger43.warn(`Language server config "${key}" is deprecated, use "disabledFeatures" instead.`);
          let s2 = key.slice(7);
          disabledFeatures.push(s2[0].toLowerCase() + s2.slice(1));
        }
      }
      let disableSnippetCompletion = !!config.disableSnippetCompletion;
      let ignoredRootPaths = toArray(config.ignoredRootPaths);
      let clientOptions = {
        workspaceFolder: folder == null ? void 0 : { name: path.basename(folder.fsPath), uri: folder.toString() },
        rootPatterns: config.rootPatterns,
        requireRootPattern: config.requireRootPattern,
        ignoredRootPaths: ignoredRootPaths.map((s2) => workspace_default.expand(s2)),
        disableSnippetCompletion,
        disableDynamicRegister: !!config.disableDynamicRegister,
        disabledFeatures,
        formatterPriority: config.formatterPriority,
        documentSelector: getDocumentSelector(config.filetypes, config.additionalSchemes),
        revealOutputChannelOn: getRevealOutputChannelOn(config.revealOutputChannelOn),
        synchronize: {
          configurationSection: `${id2}.settings`
        },
        diagnosticCollectionName: name2,
        outputChannelName: id2,
        stdioEncoding: config.stdioEncoding,
        languageIdMap: config.languageIdMap,
        progressOnInitialization: config.progressOnInitialization === true,
        initializationOptions: config.initializationOptions ?? {}
      };
      if (config.maxRestartCount) {
        clientOptions.connectionOptions = { maxRestartCount: config.maxRestartCount };
      }
      return [clientOptions, serverOptions];
    }
    function isValidServerConfig(key, config) {
      let errors = [];
      let fields = ["module", "command", "transport"];
      for (let field of fields) {
        let val = config[field];
        if (val && typeof val !== "string") {
          errors.push(`"${field}" field of languageserver ${key} should be string`);
        }
      }
      if (config.transportPort != null && typeof config.transportPort !== "number") {
        errors.push(`"transportPort" field of languageserver ${key} should be number`);
      }
      if (!Array.isArray(config.filetypes) || !config.filetypes.every((s2) => typeof s2 === "string")) {
        errors.push(`"filetypes" field of languageserver ${key} should be array of string`);
      }
      if (config.additionalSchemes && (!Array.isArray(config.additionalSchemes) || config.additionalSchemes.some((s2) => typeof s2 !== "string"))) {
        errors.push(`"additionalSchemes" field of languageserver ${key} should be array of string`);
      }
      if (errors.length) {
        logger43.error(`Invalid language server configuration for ${key}`, errors.join("\n"));
        return false;
      }
      return true;
    }
    function getRevealOutputChannelOn(revealOn) {
      switch (revealOn) {
        case "info":
          return 1 /* Info */;
        case "warn":
          return 2 /* Warn */;
        case "error":
          return 3 /* Error */;
        case "never":
          return 4 /* Never */;
        default:
          return 4 /* Never */;
      }
    }
    function getDocumentSelector(filetypes, additionalSchemes) {
      let documentSelector = [];
      let schemes = ["file", "untitled"].concat(additionalSchemes || []);
      if (!filetypes) return schemes.map((s2) => ({ scheme: s2 }));
      filetypes.forEach((filetype) => {
        documentSelector.push(...schemes.map((scheme) => ({ language: filetype, scheme })));
      });
      return documentSelector;
    }
    function getTransportKind(config) {
      let { transport, transportPort } = config;
      if (!transport || transport == "ipc") return 1 /* ipc */;
      if (transport == "stdio") return 0 /* stdio */;
      if (transport == "pipe") return 2 /* pipe */;
      return { kind: 3 /* socket */, port: transportPort };
    }
    function getForkOptions(config) {
      return {
        cwd: config.cwd && workspace_default.expand(config.cwd),
        execArgv: config.execArgv ?? [],
        env: config.env ?? void 0
      };
    }
    function getSpawnOptions(config) {
      return {
        cwd: config.cwd && workspace_default.expand(config.cwd),
        detached: !!config.detached,
        shell: process.platform === "win32" || !!config.shell,
        env: config.env ?? void 0
      };
    }
    function convertState(state) {
      switch (state) {
        case 2 /* Running */:
          return 3 /* Running */;
        case 3 /* Starting */:
          return 1 /* Starting */;
        case 1 /* Stopped */:
          return 5 /* Stopped */;
        case 4 /* StartFailed */:
          return 2 /* StartFailed */;
        default:
          return void 0;
      }
    }
    function stateString(state) {
      switch (state) {
        case 2 /* Running */:
          return "running";
        case 3 /* Starting */:
          return "starting";
        case 1 /* Stopped */:
          return "stopped";
        case 4 /* StartFailed */:
          return "startFailed";
        default:
          return "unknown";
      }
    }
    function getStateName(state) {
      switch (state) {
        case 0 /* Initial */:
          return "init";
        case 3 /* Running */:
          return "running";
        case 1 /* Starting */:
          return "starting";
        case 2 /* StartFailed */:
          return "startFailed";
        case 4 /* Stopping */:
          return "stopping";
        case 5 /* Stopped */:
          return "stopped";
        default:
          return "unknown";
      }
    }
    var logger43, ServiceStat, ServiceManager, services_default;
    var init_services = __esm({
      "src/services.ts"() {
        "use strict";
        init_esm();
        init_events();
        init_language_client();
        init_logger();
        init_util();
        init_array();
        init_node();
        init_object();
        init_protocol();
        init_window();
        init_workspace();
        logger43 = createLogger("services");
        ServiceStat = /* @__PURE__ */ ((ServiceStat2) => {
          ServiceStat2[ServiceStat2["Initial"] = 0] = "Initial";
          ServiceStat2[ServiceStat2["Starting"] = 1] = "Starting";
          ServiceStat2[ServiceStat2["StartFailed"] = 2] = "StartFailed";
          ServiceStat2[ServiceStat2["Running"] = 3] = "Running";
          ServiceStat2[ServiceStat2["Stopping"] = 4] = "Stopping";
          ServiceStat2[ServiceStat2["Stopped"] = 5] = "Stopped";
          return ServiceStat2;
        })(ServiceStat || {});
        ServiceManager = class {
          registered = /* @__PURE__ */ new Map();
          disposables = [];
          pendingNotifications = /* @__PURE__ */ new Map();
          /**
           * @deprecated
           */
          regist;
          /**
           * @deprecated
           */
          registLanguageClient;
          constructor() {
            this.registLanguageClient = this.registerLanguageClient.bind(this);
            this.regist = this.register.bind(this);
          }
          /**
           * @internal
           */
          init() {
            workspace_default.onDidOpenTextDocument((document2) => {
              void this.start(document2);
            }, null, this.disposables);
            const iterate = (folders) => {
              for (let folder of folders) {
                this.registerClientsFromFolder(folder);
              }
            };
            workspace_default.onDidChangeWorkspaceFolders((e2) => {
              iterate(e2.added);
            }, null, this.disposables);
            let lspConfig = workspace_default.initialConfiguration.get("languageserver", {});
            this.registerClientsByConfig(lspConfig);
            iterate(workspace_default.workspaceFolders);
            workspace_default.onDidChangeConfiguration((e2) => {
              if (e2.affectsConfiguration("languageserver")) {
                let lspConfig2 = workspace_default.getConfiguration("languageserver", null);
                this.registerClientsByConfig(lspConfig2);
              }
            }, null, this.disposables);
          }
          registerClientsFromFolder(workspaceFolder) {
            let uri = u.parse(workspaceFolder.uri);
            let lspConfig = workspace_default.getConfiguration(void 0, uri);
            let config = lspConfig.inspect("languageserver").workspaceFolderValue;
            this.registerClientsByConfig(config, uri);
          }
          register(service) {
            let { id: id2 } = service;
            if (this.registered.get(id2)) return;
            this.registered.set(id2, service);
            let readyDisposable = this.tryStartService(service);
            service.onServiceReady(() => {
              logger43.info(`service ${id2} started`);
            }, null, this.disposables);
            return import_node4.Disposable.create(() => {
              if (!this.registered.has(id2)) return;
              if (readyDisposable) readyDisposable.dispose();
              service.dispose();
              this.registered.delete(id2);
            });
          }
          /**
           * @internal
           */
          tryStartService(service) {
            if (!events_default.ready) {
              let disposable = events_default.on("ready", () => {
                disposable.dispose();
                if (this.registered.has(service.id) && this.registered.get(service.id) !== service) return;
                if (this.shouldStart(service)) {
                  void service.start();
                }
              });
              return disposable;
            } else if (this.shouldStart(service)) {
              void service.start();
            }
            return void 0;
          }
          getService(id2) {
            let service = this.registered.get(id2);
            if (!service) service = this.registered.get(`languageserver.${id2}`);
            return service;
          }
          shouldStart(service) {
            if (service.state != 0 /* Initial */) return false;
            let selector = service.selector;
            for (let doc of workspace_default.documents) {
              if (workspace_default.match(selector, doc.textDocument)) {
                return true;
              }
            }
            return false;
          }
          /**
           * @internal
           */
          async start(document2) {
            let services = [];
            for (let service of this.registered.values()) {
              if (service.state == 0 /* Initial */ && workspace_default.match(service.selector, document2) > 0) {
                services.push(service);
              }
            }
            await Promise.allSettled(services.map((service) => Promise.resolve(service.start())));
          }
          stop(id2) {
            let service = this.registered.get(id2);
            if (service) return Promise.resolve(service.stop());
          }
          /**
           * @internal
           * Best-effort stop of all registered services, used on process exit.
           * Stops waiting after `timeout` milliseconds.
           */
          stopAll(timeout2 = 3e3) {
            let all = Array.from(this.registered.values());
            return Promise.race([
              Promise.allSettled(all.map((s2) => Promise.resolve(s2.stop()))).then(() => void 0),
              wait(timeout2)
            ]);
          }
          async toggle(id2) {
            let service = this.registered.get(id2);
            if (!service) throw new Error(`Service ${id2} not found`);
            let { state } = service;
            if (state == 3 /* Running */) {
              await Promise.resolve(service.stop());
            } else if (state == 0 /* Initial */ || state == 2 /* StartFailed */) {
              await service.start();
            } else if (state == 5 /* Stopped */) {
              await service.restart();
            }
          }
          /**
           * @internal
           */
          getServiceStats() {
            let res = [];
            for (let [id2, service] of this.registered) {
              res.push({
                id: id2,
                languageIds: documentSelectorToLanguageIds(service.selector),
                state: getStateName(service.state)
              });
            }
            return res;
          }
          registerClientsByConfig(lspConfig, folder) {
            for (let key of Object.keys(toObject(lspConfig))) {
              let config = lspConfig[key];
              if (!isValidServerConfig(key, config)) {
                continue;
              }
              this.registerLanguageClient(key, config, folder);
            }
          }
          async getLanguageClient(id2) {
            let service = this.getService(id2);
            if (!service) await wait(100);
            service = this.getService(id2);
            if (!service || !service.client) {
              throw new Error(`Language server ${id2} not found`);
            }
            return service.client;
          }
          /**
           * @internal
           */
          async sendNotification(id2, method, params) {
            let client = await this.getLanguageClient(id2);
            await Promise.resolve(client.sendNotification(method, params));
          }
          /**
           * @internal
           */
          async sendRequest(id2, method, params, token) {
            let client = await this.getLanguageClient(id2);
            token = token ?? import_node4.CancellationToken.None;
            return await Promise.resolve(client.sendRequest(method, params, token));
          }
          /**
           * @internal
           */
          registerNotification(id2, method) {
            let service = this.getService(id2);
            if (service && service.client) {
              service.client.onNotification(method, async (result) => {
                this.sendNotificationVim(id2, method, result);
              });
            }
            let arr = this.pendingNotifications.get(id2) ?? [];
            arr.push({ id: id2, method });
            this.pendingNotifications.set(id2, arr);
          }
          getRegisteredNotifications(id2) {
            id2 = id2.startsWith("languageserver") ? id2.slice("languageserver.".length) : id2;
            return this.pendingNotifications.get(id2) ?? [];
          }
          sendNotificationVim(id2, method, result) {
            workspace_default.nvim.call("coc#do_notify", [id2, method, result], true);
          }
          registerLanguageClient(name2, config, folder) {
            let id2 = typeof name2 === "string" ? `languageserver.${name2}` : name2.id;
            let disposables = [];
            let onDidServiceReady = new import_node4.Emitter();
            let client = typeof name2 === "string" ? null : name2;
            if (this.registered.has(id2)) return import_node4.Disposable.create(() => {
            });
            if (client && typeof client.dispose === "function") disposables.push(client);
            let created = false;
            let service = {
              id: id2,
              client,
              name: typeof name2 === "string" ? name2 : name2.name,
              selector: typeof name2 === "string" ? getDocumentSelector(config.filetypes, config.additionalSchemes) : name2.clientOptions.documentSelector,
              state: client && client.state === 2 /* Running */ ? 3 /* Running */ : 0 /* Initial */,
              onServiceReady: onDidServiceReady.event,
              start: async () => {
                if (!created) {
                  if (typeof name2 == "string" && !client) {
                    let config2 = workspace_default.getConfiguration(void 0, folder).get(`languageserver.${name2}`, {});
                    let opts = getLanguageServerOptions(id2, name2, config2, folder);
                    if (!opts || config2.enable === false) return;
                    client = new LanguageClient(id2, name2, opts[1], opts[0]);
                    service.selector = opts[0].documentSelector;
                    service.client = client;
                    disposables.push(client);
                  }
                  created = true;
                  for (let item of this.getRegisteredNotifications(id2)) {
                    service.client.onNotification(item.method, async (result) => {
                      this.sendNotificationVim(item.id, item.method, result);
                    });
                  }
                  client.onDidChangeState((changeEvent) => {
                    let { oldState, newState } = changeEvent;
                    service.state = convertState(newState);
                    let oldStr = stateString(oldState);
                    let newStr = stateString(newState);
                    logger43.info(`LanguageClient ${client.name} state change: ${oldStr} => ${newStr}`);
                  }, null, disposables);
                }
                try {
                  if (!client.needsStart()) {
                    service.state = convertState(client.state);
                  } else {
                    service.state = 1 /* Starting */;
                    logger43.debug(`starting service: ${id2}`);
                    await client.start();
                    onDidServiceReady.fire(void 0);
                  }
                } catch (e2) {
                  void window_default.showErrorMessage(`Server ${id2} failed to start: ${e2}`);
                  logger43.error(`Server ${id2} failed to start:`, e2);
                  service.state = 2 /* StartFailed */;
                }
              },
              dispose: async () => {
                onDidServiceReady.dispose();
                disposeAll(disposables);
              },
              stop: async () => {
                if (!client || !client.needsStop()) return;
                await Promise.resolve(client.stop());
              },
              restart: async () => {
                if (client) {
                  service.state = 1 /* Starting */;
                  try {
                    await client.restart();
                  } catch (e2) {
                    void window_default.showErrorMessage(`Server ${id2} failed to restart: ${e2}`);
                    logger43.error(`Server ${id2} failed to restart:`, e2);
                    service.state = 2 /* StartFailed */;
                  }
                } else {
                  await service.start();
                }
              }
            };
            return this.register(service);
          }
          /**
           * @internal
           */
          dispose() {
            disposeAll(this.disposables);
            for (let service of this.registered.values()) {
              service.dispose();
            }
            this.registered.clear();
          }
        };
        services_default = new ServiceManager();
      }
    });
    
    // src/list/source/services.ts
    var ServicesList;
    var init_services2 = __esm({
      "src/list/source/services.ts"() {
        "use strict";
        init_services();
        init_util();
        init_basic();
        init_formatting();
        ServicesList = class extends BasicList {
          defaultAction = "toggle";
          description = "registered services of coc.nvim";
          name = "services";
          constructor() {
            super();
            this.addAction("toggle", async (item) => {
              let { id: id2 } = item.data;
              await services_default.toggle(id2);
              await wait(50);
            }, { persist: true, reload: true });
          }
          async loadItems(_context) {
            let stats = services_default.getServiceStats();
            return formatListItems(this.alignColumns, stats.map((stat) => {
              let prefix2 = stat.state == "running" ? "*" : " ";
              return {
                label: [prefix2, stat.id, `[${stat.state}]`, stat.languageIds.join(", ")],
                data: { id: stat.id }
              };
            }));
          }
          doHighlight() {
            let { nvim } = this;
            nvim.pauseNotification();
            nvim.command("syntax match CocServicesPrefix /\\v^./ contained containedin=CocServicesLine", true);
            nvim.command("syntax match CocServicesName /\\v%3c\\S+/ contained containedin=CocServicesLine", true);
            nvim.command("syntax match CocServicesStat /\\v\\t\\[\\w+\\]/ contained containedin=CocServicesLine", true);
            nvim.command("syntax match CocServicesLanguages /\\v(\\])@<=.*$/ contained containedin=CocServicesLine", true);
            nvim.command("highlight default link CocServicesPrefix Special", true);
            nvim.command("highlight default link CocServicesName Type", true);
            nvim.command("highlight default link CocServicesStat Statement", true);
            nvim.command("highlight default link CocServicesLanguages Comment", true);
            nvim.resumeNotification(false, true);
          }
        };
      }
    });
    
    // src/list/source/sources.ts
    var SourcesList;
    var init_sources = __esm({
      "src/list/source/sources.ts"() {
        "use strict";
        init_main();
        init_esm();
        init_sources2();
        init_basic();
        init_formatting();
        SourcesList = class extends BasicList {
          defaultAction = "toggle";
          description = "registered completion sources";
          name = "sources";
          constructor() {
            super();
            this.addAction("toggle", async (item) => {
              let { name: name2 } = item.data;
              sources_default.toggleSource(name2);
            }, { persist: true, reload: true });
            this.addAction("refresh", async (item) => {
              let { name: name2 } = item.data;
              await sources_default.refresh(name2);
            }, { persist: true, reload: true });
            this.addAction("open", async (item, context) => {
              let { location } = item;
              if (location) await this.jumpTo(location, null, context);
            });
          }
          async loadItems() {
            let stats = sources_default.sourceStats();
            return stats.map((stat) => {
              let prefix2 = stat.disabled ? " " : "*";
              let location;
              if (stat.filepath) {
                location = Location.create(u.file(stat.filepath).toString(), Range.create(0, 0, 0, 0));
              }
              return {
                label: `${prefix2} ${fixWidth(stat.name, 22)} ${fixWidth("[" + stat.shortcut + "]", 10)} ${fixWidth(stat.triggerCharacters.join(""), 10)} ${fixWidth(stat.priority.toString(), 3)} ${stat.filetypes.join(",")}`,
                location,
                data: { name: stat.name }
              };
            });
          }
          doHighlight() {
            let { nvim } = this;
            nvim.pauseNotification();
            nvim.command("syntax match CocSourcesPrefix /\\v^./ contained containedin=CocSourcesLine", true);
            nvim.command("syntax match CocSourcesName /\\v%3c\\S+/ contained containedin=CocSourcesLine", true);
            nvim.command("syntax match CocSourcesType /\\v%25v.*%36v/ contained containedin=CocSourcesLine", true);
            nvim.command("syntax match CocSourcesPriority /\\v%46v.*%52v/ contained containedin=CocSourcesLine", true);
            nvim.command("syntax match CocSourcesFileTypes /\\v\\S+$/ contained containedin=CocSourcesLine", true);
            nvim.command("highlight default link CocSourcesPrefix Special", true);
            nvim.command("highlight default link CocSourcesName Type", true);
            nvim.command("highlight default link CocSourcesPriority Number", true);
            nvim.command("highlight default link CocSourcesFileTypes Comment", true);
            nvim.command("highlight default link CocSourcesType Statement", true);
            nvim.resumeNotification(false, true);
          }
        };
      }
    });
    
    // src/list/source/symbols.ts
    function toTargetLocation(location) {
      if (!Location.is(location)) {
        return Location.create(location.uri, Range.create(0, 0, 0, 0));
      }
      let loc = Location.create(location.uri, Range.create(location.range.start, location.range.start));
      loc.targetRange = location.range;
      return loc;
    }
    function sortSymbolItems(a2, b2) {
      if (a2.data.score != b2.data.score) {
        return b2.data.score - a2.data.score;
      }
      if (a2.data.kind != b2.data.kind) {
        return a2.data.kind - b2.data.kind;
      }
      return a2.data.file.length - b2.data.file.length;
    }
    var Symbols;
    var init_symbols = __esm({
      "src/list/source/symbols.ts"() {
        "use strict";
        init_main();
        init_languages();
        init_util();
        init_array();
        init_convert();
        init_node();
        init_protocol();
        init_string();
        init_workspace();
        init_formatting();
        init_location();
        Symbols = class extends LocationList {
          interactive = true;
          description = "search workspace symbols";
          detail = "Symbols list is provided by server, it works on interactive mode only.";
          fuzzyMatch = workspace_default.createFuzzyMatch();
          name = "symbols";
          options = [{
            name: "-k, -kind KIND",
            description: "Filter symbols by kind.",
            hasValue: true
          }];
          async loadItems(context, token) {
            let { input } = context;
            let args = this.parseArguments(context.args);
            let filterKind = args.kind ? args.kind.toString().toLowerCase() : "";
            if (!languages_default.hasProvider("workspaceSymbols" /* WorkspaceSymbols */, { uri: "file:///1", languageId: "" })) {
              throw new Error("No workspace symbols provider registered");
            }
            let symbols = await languages_default.getWorkspaceSymbols(input, token);
            if (token.isCancellationRequested) return [];
            let config = this.getConfig();
            let excludes = config.get("excludes", []);
            let items = [];
            this.fuzzyMatch.setPattern(input, true);
            for (let s2 of symbols) {
              let kind = getSymbolKind(s2.kind);
              if (filterKind && kind.toLowerCase() != filterKind) {
                continue;
              }
              let file = formatUri(s2.location.uri, workspace_default.cwd);
              if (excludes.some((p2) => minimatch(file, p2))) {
                continue;
              }
              let item = await this.createListItem(input, s2, kind, file);
              if (token.isCancellationRequested) break;
              items.push(item);
            }
            this.fuzzyMatch.free();
            if (token.isCancellationRequested) return [];
            items.sort(sortSymbolItems);
            return items;
          }
          async resolveItem(item) {
            let symbolItem = item.data.original;
            if (!symbolItem || Location.is(symbolItem.location)) return null;
            let tokenSource = new import_node4.CancellationTokenSource();
            let resolved = await languages_default.resolveWorkspaceSymbol(symbolItem, tokenSource.token);
            resolved = defaultValue(resolved, symbolItem);
            if (Location.is(resolved.location)) {
              symbolItem.location = resolved.location;
              item.location = toTargetLocation(resolved.location);
            }
            return item;
          }
          async createListItem(input, item, kind, file) {
            let { name: name2 } = item;
            let label = "";
            let ansiHighlights = [];
            let parts = [name2, `[${kind}]`, await this.formatFilepath(file)];
            let highlights = ["Normal", "Typedef", "Comment"];
            for (let index = 0; index < parts.length; index++) {
              const text = parts[index];
              let start = byteLength(label);
              label += text;
              let end = byteLength(label);
              if (index != parts.length - 1) {
                label += " ";
              }
              ansiHighlights.push({ span: [start, end], hlGroup: highlights[index] });
              if (index === 0 && toArray(item.tags).includes(SymbolTag.Deprecated) || item["deprecated"]) {
                ansiHighlights.push({ span: [start, end], hlGroup: "CocDeprecatedHighlight" });
              }
            }
            let score3 = 0;
            if (input.length > 0) {
              let result = this.fuzzyMatch.matchHighlights(name2, "CocListSearch");
              if (result) {
                score3 = result.score;
                ansiHighlights.push(...result.highlights);
              }
            }
            return {
              label,
              filterText: "",
              ansiHighlights,
              location: toTargetLocation(item.location),
              data: {
                original: item,
                input,
                kind: item.kind,
                file,
                score: score3
              }
            };
          }
        };
      }
    });
    
    // src/list/manager.ts
    function createConfigurationNode(name2, interactive, id2) {
      let properties = {};
      properties[`list.source.${name2}.defaultAction`] = {
        type: "string",
        default: null,
        description: `Default action of "${name2}" list.`
      };
      properties[`list.source.${name2}.defaultOptions`] = {
        type: "array",
        default: interactive ? ["--interactive"] : [],
        description: `Default list options of "${name2}" list, only used when both list option and argument are empty.`,
        uniqueItems: true,
        items: {
          type: "string",
          enum: [
            "--top",
            "--normal",
            "--no-sort",
            "--input",
            "--height",
            "--tab",
            "--strict",
            "--regex",
            "--ignore-case",
            "--number-select",
            "--reverse",
            "--interactive",
            "--auto-preview",
            "--first",
            "--no-quit"
          ]
        }
      };
      properties[`list.source.${name2}.defaultArgs`] = {
        type: "array",
        default: [],
        description: `Default argument list of "${name2}" list, only used when list argument is empty.`,
        uniqueItems: true,
        items: { type: "string" }
      };
      let node = {
        scope: 1 /* APPLICATION */,
        properties
      };
      if (id2) node.extensionInfo = { id: id2 };
      return node;
    }
    var logger44, mouseKeys, winleaveDalay, ListManager, manager_default3;
    var init_manager4 = __esm({
      "src/list/manager.ts"() {
        "use strict";
        init_registry2();
        init_types();
        init_events();
        init_extension();
        init_logger();
        init_util();
        init_constants();
        init_errors();
        init_extensionRegistry();
        init_node();
        init_protocol();
        init_registry();
        init_string();
        init_window();
        init_workspace();
        init_configuration3();
        init_history();
        init_mappings();
        init_prompt();
        init_session2();
        init_commands2();
        init_diagnostics();
        init_extensions();
        init_folders();
        init_links();
        init_lists();
        init_location();
        init_notifications2();
        init_outline();
        init_services2();
        init_sources();
        init_symbols();
        logger44 = createLogger("list-manager");
        mouseKeys = ["", "", "", "<2-LeftMouse>"];
        winleaveDalay = isVim ? 50 : 0;
        ListManager = class {
          /**
           * @internal
           */
          prompt;
          /**
           * @internal
           */
          mappings;
          plugTs = 0;
          sessionsMap = /* @__PURE__ */ new Map();
          lastSession;
          disposables = [];
          listMap = /* @__PURE__ */ new Map();
          constructor() {
            InputHistory.migrate(dataHome);
          }
          get nvim() {
            return workspace_default.nvim;
          }
          /**
           * @internal
           */
          init(nvim) {
            this.prompt = new Prompt(nvim);
            this.mappings = new Mappings(this, nvim);
            let signText = configuration_default.get("selectedSignText", "*");
            nvim.command(`sign define CocSelected text=${signText} texthl=CocSelectedText linehl=CocSelectedLine`, true);
            events_default.on("InputChar", this.onInputChar, this, this.disposables);
            events_default.on("FocusGained", async () => {
              let session = await this.getCurrentSession();
              if (session) this.prompt.drawPrompt();
            }, null, this.disposables);
            events_default.on("WinEnter", (winid) => {
              let session = this.getSessionByWinid(winid);
              if (session) this.prompt.start(session.listOptions);
            }, null, this.disposables);
            let timer;
            events_default.on("WinLeave", (winid) => {
              clearTimeout(timer);
              let session = this.getSessionByWinid(winid);
              if (session) {
                timer = setTimeout(() => {
                  this.prompt.cancel();
                }, winleaveDalay);
              }
            }, null, this.disposables);
            workspace_default.onDidChangeConfiguration((e2) => {
              if (e2.source !== 0 /* Default */ && e2.affectsConfiguration("list")) {
                this.mappings.createMappings();
              }
            }, null, this.disposables);
            this.prompt.onDidChangeInput(() => {
              this.session?.onInputChange();
            });
          }
          /**
           * @internal
           */
          registerLists() {
            this.registerList(new LinksList(), true);
            this.registerList(new LocationList(), true);
            this.registerList(new Symbols(), true);
            this.registerList(new Outline(), true);
            this.registerList(new CommandsList(), true);
            this.registerList(new ExtensionList(extension_default.manager), true);
            this.registerList(new DiagnosticsList(this), true);
            this.registerList(new NotificationsList(), true);
            this.registerList(new SourcesList(), true);
            this.registerList(new ServicesList(), true);
            this.registerList(new ListsList(this.listMap), true);
            this.registerList(new FoldList(), true);
          }
          /**
           * @internal
           */
          async start(args) {
            let res = this.parseArgs(args);
            if (!res) return;
            let { name: name2 } = res.list;
            let curr = this.sessionsMap.get(name2);
            if (curr) curr.dispose();
            this.prompt.start(res.options);
            let session = new ListSession(this.nvim, this.prompt, res.list, res.options, res.listArgs);
            this.sessionsMap.set(name2, session);
            this.lastSession = session;
            try {
              await session.start(args);
            } catch (e2) {
              this.nvim.call("coc#prompt#stop_prompt", ["list"], true);
              this.nvim.command(`echo ""`, true);
              if (isCancellationError(e2)) return;
              void window_default.showErrorMessage(`Error on "CocList ${name2}": ${toErrorText(e2)}`);
              this.nvim.redrawVim();
              logger44.error(`Error on load ${name2} list:`, e2);
            }
          }
          getSessionByWinid(winid) {
            for (let session of this.sessionsMap.values()) {
              if (session && session.winid == winid) {
                this.lastSession = session;
                return session;
              }
            }
            return null;
          }
          /**
           * @internal
           */
          async getCurrentSession() {
            let { id: id2 } = await this.nvim.window;
            for (let session of this.sessionsMap.values()) {
              if (session && session.winid == id2) {
                this.lastSession = session;
                return session;
              }
            }
            return null;
          }
          /**
           * @internal
           */
          async resume(name2) {
            if (!name2) {
              await this.session?.resume();
            } else {
              let session = this.sessionsMap.get(name2);
              if (!session) {
                void window_default.showWarningMessage(`Can't find exists ${name2} list`);
                return;
              }
              this.lastSession = session;
              await session.resume();
            }
          }
          /**
           * @internal
           */
          async doAction(name2) {
            let lastSession = this.lastSession;
            if (!lastSession) return;
            await lastSession.doAction(name2);
          }
          /**
           * @internal
           */
          async first(name2) {
            let s2 = this.getSession(name2);
            if (s2) await s2.first();
          }
          /**
           * @internal
           */
          async last(name2) {
            let s2 = this.getSession(name2);
            if (s2) await s2.last();
          }
          /**
           * @internal
           */
          async previous(name2) {
            let s2 = this.getSession(name2);
            if (s2) await s2.previous();
          }
          /**
           * @internal
           */
          async next(name2) {
            let s2 = this.getSession(name2);
            if (s2) await s2.next();
          }
          /**
           * @internal
           */
          getSession(name2) {
            if (!name2) return this.session;
            return this.sessionsMap.get(name2);
          }
          /**
           * @internal
           */
          async cancel(close = true) {
            this.prompt.cancel();
            if (!close) return;
            if (this.session) await this.session.hide();
          }
          /**
           * @internal
           * Clear all list sessions
           */
          reset() {
            this.prompt.cancel();
            this.lastSession = void 0;
            for (let session of this.sessionsMap.values()) {
              session.dispose();
            }
            this.sessionsMap.clear();
            this.nvim.call("coc#prompt#stop_prompt", ["list"], true);
          }
          /**
           * @internal
           */
          async switchMatcher() {
            await this.session?.switchMatcher();
          }
          /**
           * @internal
           */
          async togglePreview() {
            let { nvim } = this;
            let winid = await nvim.call("coc#list#get_preview", [0]);
            if (winid != -1) {
              await nvim.call("coc#list#close_preview", []);
              await nvim.command("redraw");
            } else {
              await this.doAction("preview");
            }
          }
          /**
           * @internal
           */
          async chooseAction() {
            let { lastSession } = this;
            if (lastSession) await lastSession.chooseAction();
          }
          /**
           * @internal
           */
          parseArgs(args) {
            let options3 = [];
            let interactive = false;
            let autoPreview = false;
            let numberSelect = false;
            let noQuit = false;
            let first = false;
            let reverse = false;
            let name2;
            let input = "";
            let matcher = "fuzzy";
            let position = "bottom";
            let listArgs = [];
            let listOptions = [];
            let height;
            for (let arg of args) {
              if (!name2 && arg.startsWith("-")) {
                listOptions.push(arg);
              } else if (!name2) {
                if (!/^\w+$/.test(arg)) {
                  void window_default.showErrorMessage(`Invalid list option: "${arg}"`);
                  return null;
                }
                name2 = arg;
              } else {
                listArgs.push(arg);
              }
            }
            name2 = name2 || "lists";
            let config = workspace_default.initialConfiguration.get(`list.source.${name2}`);
            if (!listOptions.length && !listArgs.length) listOptions = defaultValue(config?.defaultOptions, []);
            if (!listArgs.length) listArgs = defaultValue(config?.defaultArgs, []);
            for (let opt of listOptions) {
              if (opt.startsWith("--input=")) {
                input = opt.slice(8);
              } else if (opt.startsWith("--height=")) {
                height = toInteger(opt.slice(9));
              } else if (opt == "--number-select" || opt == "-N") {
                numberSelect = true;
              } else if (opt == "--auto-preview" || opt == "-A") {
                autoPreview = true;
              } else if (opt == "--regex" || opt == "-R") {
                matcher = "regex";
              } else if (opt == "--strict" || opt == "-S") {
                matcher = "strict";
              } else if (opt == "--interactive" || opt == "-I") {
                interactive = true;
              } else if (opt == "--top") {
                position = "top";
              } else if (opt == "--tab") {
                position = "tab";
              } else if (opt == "--ignore-case" || opt == "--normal" || opt == "--no-sort") {
                options3.push(opt.slice(2));
              } else if (opt == "--first") {
                first = true;
              } else if (opt == "--reverse") {
                reverse = true;
              } else if (opt == "--no-quit") {
                noQuit = true;
              } else {
                void window_default.showErrorMessage(`Invalid option "${opt}" of list`);
                return null;
              }
            }
            let list2 = this.listMap.get(name2);
            if (!list2) {
              void window_default.showErrorMessage(`List ${name2} not found`);
              return null;
            }
            if (interactive && !list2.interactive) {
              void window_default.showErrorMessage(`Interactive mode of "${name2}" list not supported`);
              return null;
            }
            return {
              list: list2,
              listArgs,
              options: {
                numberSelect,
                autoPreview,
                height,
                reverse,
                noQuit,
                first,
                input,
                interactive,
                matcher,
                position,
                ignorecase: options3.includes("ignore-case") ? true : false,
                mode: !options3.includes("normal") ? "insert" : "normal",
                sort: !options3.includes("no-sort") ? true : false
              }
            };
          }
          async onInputChar(session, ch, charmod) {
            if (!ch || session != "list") return;
            let { mode } = this.prompt;
            let now = Date.now();
            if (ch == "" || this.plugTs && now - this.plugTs < 20) {
              this.plugTs = now;
              return;
            }
            if (ch == "") {
              await this.cancel();
              return;
            }
            if (mode == "insert") {
              await this.onInsertInput(ch, charmod);
            } else {
              await this.onNormalInput(ch, charmod);
            }
          }
          /**
           * @internal
           */
          async onInsertInput(ch, charmod) {
            let { session } = this;
            if (mouseKeys.includes(ch)) {
              await this.onMouseEvent(ch);
              return;
            }
            if (!session) return;
            let n2 = await session.doNumberSelect(ch);
            if (n2) return;
            let done = await this.mappings.doInsertKeymap(ch);
            if (done || charmod) return;
            if (ch.startsWith("<") && ch.endsWith(">")) {
              await this.feedkeys(ch, false);
              return;
            }
            for (let s2 of ch) {
              let code = s2.codePointAt(0);
              if (code == 65533) return;
              if (code < 32 || code >= 127 && code <= 159) return;
              await this.prompt.acceptCharacter(s2);
            }
          }
          /**
           * @internal
           */
          async onNormalInput(ch, _charmod) {
            if (mouseKeys.includes(ch)) {
              await this.onMouseEvent(ch);
              return;
            }
            let used = await this.mappings.doNormalKeymap(ch);
            if (!used) await this.feedkeys(ch);
          }
          onMouseEvent(key) {
            return this.session?.onMouseEvent(key);
          }
          /**
           * @internal
           */
          async feedkeys(key, remap = true) {
            let { nvim } = this;
            key = key.startsWith("<") && key.endsWith(">") ? `\\${key}` : key;
            await nvim.call("coc#prompt#stop_prompt", ["list"]);
            await nvim.call("eval", [`feedkeys("${key}", "${remap ? "i" : "in"}")`]);
            this.triggerCursorMoved();
            this.prompt.start();
          }
          /**
           * @internal
           */
          async command(command) {
            let { nvim } = this;
            await nvim.call("coc#prompt#stop_prompt", ["list"]);
            await nvim.command(command);
            this.triggerCursorMoved();
            this.prompt.start();
          }
          /**
           * @internal
           */
          async normal(command, bang) {
            let { nvim } = this;
            await nvim.call("coc#prompt#stop_prompt", ["list"]);
            await nvim.command(`normal${bang ? "!" : ""} ${command}`);
            this.triggerCursorMoved();
            this.prompt.start();
          }
          /**
           * @internal
           */
          triggerCursorMoved() {
            if (this.nvim.isVim) this.nvim.command("doautocmd  CursorMoved", true);
            this.nvim.call("coc#util#do_autocmd", ["CocListMoved"], true);
          }
          /**
           * @internal
           */
          async call(fname) {
            if (this.session) return await this.session.call(fname);
          }
          /**
           * @internal
           */
          get session() {
            return this.lastSession;
          }
          registerList(list2, internal = false) {
            let { name: name2, interactive } = list2;
            let id2;
            if (!internal && true) id2 = parseExtensionName(Error().stack);
            let removed = this.deregisterList(name2);
            this.listMap.set(name2, list2);
            const configNode = createConfigurationNode(name2, interactive, id2);
            if (!removed) workspace_default.configurations.updateConfigurations([configNode]);
            return import_node4.Disposable.create(() => {
              this.deregisterList(name2);
              const configurationRegistry3 = Registry.as(Extensions3.Configuration);
              configurationRegistry3.deregisterConfigurations([configNode]);
            });
          }
          deregisterList(name2) {
            let exists = this.listMap.get(name2);
            if (exists) {
              if (typeof exists.dispose == "function") {
                exists.dispose();
              }
              this.listMap.delete(name2);
              return true;
            }
            return false;
          }
          get names() {
            return Array.from(this.listMap.keys());
          }
          /**
           * @internal
           */
          get descriptions() {
            let d2 = {};
            for (let name2 of this.listMap.keys()) {
              let list2 = this.listMap.get(name2);
              d2[name2] = list2.description;
            }
            return d2;
          }
          /**
           * @internal
           * Get items of {name} list
           * @param {string} name
           * @returns {Promise}
           */
          async loadItems(name2) {
            let args = [name2];
            let res = this.parseArgs(args);
            if (!res || !name2) return;
            let { list: list2, options: options3, listArgs } = res;
            let source = new import_node4.CancellationTokenSource();
            let token = source.token;
            let arr = await this.nvim.eval('[win_getid(),bufnr("%")]');
            let items = await list2.loadItems({
              options: options3,
              args: listArgs,
              input: "",
              cwd: workspace_default.cwd,
              window: this.nvim.createWindow(arr[0]),
              buffer: this.nvim.createBuffer(arr[1]),
              listWindow: null
            }, token);
            if (!items || Array.isArray(items)) {
              return items;
            }
            let task = items;
            let newItems = await new Promise((resolve, reject) => {
              let items2 = [];
              task.on("data", (item) => {
                item.label = stripAnsi(item.label);
                items2.push(item);
              });
              task.on("end", () => {
                resolve(items2);
              });
              task.on("error", (msg) => {
                reject(msg instanceof Error ? msg : new Error(msg));
                task.dispose();
              });
            });
            return newItems;
          }
          /**
           * @internal
           */
          toggleMode() {
            let lastSession = this.lastSession;
            if (lastSession) lastSession.toggleMode();
          }
          /**
           * @internal
           */
          get isActivated() {
            return this.session?.winid != null;
          }
          /**
           * @internal
           */
          stop() {
            let lastSession = this.lastSession;
            if (lastSession) lastSession.stop();
          }
          /**
           * @internal
           */
          dispose() {
            for (let session of this.sessionsMap.values()) {
              session.dispose();
            }
            this.sessionsMap.clear();
            this.lastSession = void 0;
            disposeAll(this.disposables);
          }
        };
        manager_default3 = new ListManager();
      }
    });
    
    // src/mcp/protocol.ts
    function supportsStructuredContent(protocolVersion) {
      return protocolVersion !== PROTOCOL_VERSION_2024_11_05;
    }
    function supportsToolMetadata(protocolVersion) {
      return protocolVersion !== PROTOCOL_VERSION_2024_11_05;
    }
    var PROTOCOL_VERSION, SUPPORTED_PROTOCOL_VERSIONS, PROTOCOL_VERSION_2024_11_05, DEFAULT_FRAME_MAX_BYTES, DEFAULT_TOOL_TIMEOUT, DEFAULT_READ_TIMEOUT, AUTH_TIMEOUT, MAX_IN_FLIGHT, METHOD_INITIALIZE, METHOD_SHUTDOWN, NOTIFICATION_INITIALIZED, NOTIFICATION_EXIT, METHOD_PING, METHOD_TOOLS_LIST, METHOD_TOOLS_CALL, NOTIFICATION_TOOLS_LIST_CHANGED, METHOD_LOGGING_SET_LEVEL, METHOD_ROOTS_LIST, NOTIFICATION_ROOTS_LIST_CHANGED, NOTIFICATION_CANCELLED, NOTIFICATION_PROGRESS, METHOD_RESOURCES_LIST, METHOD_RESOURCES_READ, METHOD_RESOURCES_TEMPLATES_LIST, METHOD_COC_AUTH, METHOD_COC_STATUS, METHOD_COC_SUBSCRIBE, METHOD_COC_UNSUBSCRIBE, METHOD_COC_CHALLENGE, JSONRPC_PARSE_ERROR, JSONRPC_INVALID_REQUEST, JSONRPC_METHOD_NOT_FOUND, JSONRPC_INVALID_PARAMS, JSONRPC_INTERNAL_ERROR, COC_AUTH_FAILED, COC_RESOURCE_NOT_FOUND, COC_REQUEST_TIMEOUT, COC_SESSION_CLOSED;
    var init_protocol2 = __esm({
      "src/mcp/protocol.ts"() {
        "use strict";
        PROTOCOL_VERSION = "2025-06-18";
        SUPPORTED_PROTOCOL_VERSIONS = ["2025-11-25", "2025-06-18", "2024-11-05"];
        PROTOCOL_VERSION_2024_11_05 = "2024-11-05";
        DEFAULT_FRAME_MAX_BYTES = 16 * 1024 * 1024;
        DEFAULT_TOOL_TIMEOUT = 5e3;
        DEFAULT_READ_TIMEOUT = 15e3;
        AUTH_TIMEOUT = 5e3;
        MAX_IN_FLIGHT = 16;
        METHOD_INITIALIZE = "initialize";
        METHOD_SHUTDOWN = "shutdown";
        NOTIFICATION_INITIALIZED = "notifications/initialized";
        NOTIFICATION_EXIT = "notifications/exit";
        METHOD_PING = "ping";
        METHOD_TOOLS_LIST = "tools/list";
        METHOD_TOOLS_CALL = "tools/call";
        NOTIFICATION_TOOLS_LIST_CHANGED = "notifications/tools/list_changed";
        METHOD_LOGGING_SET_LEVEL = "logging/setLevel";
        METHOD_ROOTS_LIST = "roots/list";
        NOTIFICATION_ROOTS_LIST_CHANGED = "notifications/roots/list_changed";
        NOTIFICATION_CANCELLED = "notifications/cancelled";
        NOTIFICATION_PROGRESS = "notifications/progress";
        METHOD_RESOURCES_LIST = "resources/list";
        METHOD_RESOURCES_READ = "resources/read";
        METHOD_RESOURCES_TEMPLATES_LIST = "resources/templates/list";
        METHOD_COC_AUTH = "coc/auth";
        METHOD_COC_STATUS = "coc/status";
        METHOD_COC_SUBSCRIBE = "coc/subscribe";
        METHOD_COC_UNSUBSCRIBE = "coc/unsubscribe";
        METHOD_COC_CHALLENGE = "coc/challenge";
        JSONRPC_PARSE_ERROR = -32700;
        JSONRPC_INVALID_REQUEST = -32600;
        JSONRPC_METHOD_NOT_FOUND = -32601;
        JSONRPC_INVALID_PARAMS = -32602;
        JSONRPC_INTERNAL_ERROR = -32603;
        COC_AUTH_FAILED = -32001;
        COC_RESOURCE_NOT_FOUND = -32002;
        COC_REQUEST_TIMEOUT = -32003;
        COC_SESSION_CLOSED = -32800;
      }
    });
    
    // src/mcp/auth.ts
    function generateToken() {
      return crypto2.randomBytes(32).toString("hex");
    }
    function getMcpDir() {
      return process.env.COC_MCP_DIR || path.join(os.homedir(), ".coc", "mcp");
    }
    function getInstanceFilePath(pid, mcpDir = getMcpDir()) {
      return path.join(mcpDir, `coc-${pid}.json`);
    }
    function writeInstanceFile(info, mcpDir = getMcpDir()) {
      let filepath = getInstanceFilePath(info.pid, mcpDir);
      try {
        fs.mkdirSync(path.dirname(filepath), { recursive: true });
        fs.writeFileSync(filepath, JSON.stringify(info, null, 2), { encoding: "utf8", mode: 384 });
        try {
          fs.chmodSync(filepath, 384);
        } catch (_e) {
        }
      } catch (e2) {
        logger45.error("Failed to write mcp instance file", e2);
      }
    }
    function removeInstanceFile(pid, mcpDir = getMcpDir()) {
      try {
        fs.unlinkSync(getInstanceFilePath(pid, mcpDir));
      } catch (_e) {
      }
    }
    function removeSocketFile(socketPath) {
      try {
        fs.unlinkSync(socketPath);
      } catch (_e) {
      }
    }
    function createDiscoveryInfo(options3) {
      return {
        version: 1,
        pid: options3.pid,
        transport: options3.transport,
        host: options3.host,
        port: options3.port,
        socketPath: options3.socketPath,
        token: options3.token,
        protocolVersion: PROTOCOL_VERSION,
        serverInfo: { name: "coc.nvim", version: VERSION },
        apiVersion: APIVERSION,
        cwd: options3.cwd,
        workspaceRoot: options3.workspaceRoot,
        startedAt: Date.now()
      };
    }
    var logger45;
    var init_auth = __esm({
      "src/mcp/auth.ts"() {
        "use strict";
        init_logger();
        init_constants();
        init_node();
        init_processes();
        init_protocol2();
        logger45 = createLogger("mcp-auth");
      }
    });
    
    // src/mcp/notifications.ts
    function editorStateParams(editor) {
      return {
        uri: editor ? editor.uri : null,
        bufnr: editor ? editor.bufnr : null,
        languageId: editor?.document ? editor.document.languageId : null
      };
    }
    function serviceStateParams(stat, current) {
      return {
        id: stat.id,
        state: current ? getStateName(current.state) : "running",
        languageIds: stat.languageIds
      };
    }
    var NotificationManager;
    var init_notifications3 = __esm({
      "src/mcp/notifications.ts"() {
        "use strict";
        init_manager();
        init_services();
        init_util();
        init_window();
        init_workspace();
        NotificationManager = class {
          constructor(server) {
            this.server = server;
            this.disposables.push(manager_default.onDidRefresh((e2) => {
              let version2 = -1;
              try {
                version2 = workspace_default.getDocument(e2.uri)?.version ?? -1;
              } catch (_err) {
              }
              this.server.broadcastEvent("coc/diagnostics_changed", {
                uri: e2.uri,
                bufnr: e2.bufnr,
                version: version2,
                diagnostics: e2.diagnostics
              });
            }));
            this.disposables.push(workspace_default.onDidChangeTextDocument((e2) => {
              this.server.broadcastEvent("coc/document_changed", {
                uri: e2.textDocument.uri,
                version: e2.textDocument.version,
                changes: e2.contentChanges
              });
            }));
            this.disposables.push(workspace_default.onDidSaveTextDocument((doc) => {
              this.server.broadcastEvent("coc/document_saved", {
                uri: doc.uri,
                version: doc.version,
                languageId: doc.languageId
              });
            }));
            this.disposables.push(workspace_default.onDidChangeWorkspaceFolders((e2) => {
              let map = (f2) => ({ name: f2.name, uri: f2.uri });
              this.server.broadcastEvent("coc/workspace_folders_changed", {
                added: e2.added.map(map),
                removed: e2.removed.map(map)
              });
            }));
            try {
              this.disposables.push(window_default.onDidChangeActiveTextEditor((editor) => {
                this.server.broadcastEvent("coc/editor_state_changed", editorStateParams(editor));
              }));
            } catch (_e) {
            }
            for (let stat of services_default.getServiceStats()) {
              let service = services_default.getService(stat.id);
              if (!service) continue;
              this.disposables.push(service.onServiceReady(() => {
                let current = services_default.getService(stat.id);
                this.server.broadcastEvent("coc/service_state_changed", serviceStateParams(stat, current));
              }));
            }
          }
          server;
          disposables = [];
          dispose() {
            disposeAll(this.disposables);
          }
        };
      }
    });
    
    // src/mcp/tools/util.ts
    function textResult(text, structuredContent) {
      let result = {
        content: [{ type: "text", text }]
      };
      if (structuredContent !== void 0) result.structuredContent = structuredContent;
      return result;
    }
    function textContent(text) {
      return { type: "text", text };
    }
    function errorResult(message) {
      return {
        content: [textContent(message)],
        isError: true
      };
    }
    function toUri(input) {
      if (input.includes("://")) return input;
      return u.file(path.resolve(input)).toString();
    }
    function toFsPath(input) {
      return u.parse(toUri(input)).fsPath;
    }
    async function resolveDocument(uriInput, open2) {
      if (!uriInput) {
        let active = window_default.activeTextEditor?.document;
        let uri2 = active ? active.uri : void 0;
        if (!uri2) return { uri: "", error: "No active document, uri is required" };
        return await resolveDocument(uri2, open2);
      }
      let uri = toUri(uriInput);
      let denied = checkPath(uri);
      if (denied) return { uri, error: denied };
      let doc = workspace_default.getDocument(uri);
      if (doc && doc.attached) return { doc, uri };
      if (open2) {
        try {
          let opened = await workspace_default.loadFile(uri, "");
          return { doc: opened, uri };
        } catch (e2) {
          return { uri, error: e2 instanceof Error ? e2.message : String(e2) };
        }
      }
      return { uri };
    }
    function collectEditUris(edit2) {
      let uris = [];
      if (edit2 && typeof edit2.changes === "object" && edit2.changes !== null) {
        uris.push(...Object.keys(edit2.changes));
      }
      if (Array.isArray(edit2?.documentChanges)) {
        for (let change of edit2.documentChanges) {
          if (!change) continue;
          if (typeof change.textDocument?.uri === "string") uris.push(change.textDocument.uri);
          if (typeof change.uri === "string") uris.push(change.uri);
          if (typeof change.oldUri === "string") uris.push(change.oldUri);
          if (typeof change.newUri === "string") uris.push(change.newUri);
        }
      }
      return uris;
    }
    function globMatch(pattern, fsPath2) {
      let normalized = fsPath2.replace(/\\/g, "/");
      let p2 = pattern.replace(/\\/g, "/");
      if (!path.isAbsolute(pattern)) {
        let root = "";
        try {
          root = workspace_default.root || process.cwd();
        } catch (_e) {
          root = process.cwd();
        }
        p2 = path.join(root, pattern).replace(/\\/g, "/");
      }
      let isDir = false;
      try {
        isDir = fs.statSync(fsPath2).isDirectory();
      } catch (_e) {
      }
      return minimatch(normalized, p2, { dot: true }) || isDir && minimatch(normalized + "/", p2, { dot: true });
    }
    function globVariants(pattern) {
      let variants = [pattern];
      if (!path.isAbsolute(pattern)) return variants;
      let metaIdx = pattern.search(/[*?[\]{}]/);
      let staticPart = metaIdx === -1 ? pattern : pattern.slice(0, metaIdx);
      let rest = metaIdx === -1 ? "" : pattern.slice(metaIdx);
      let trimmed = staticPart.replace(/[\\/]+$/, "");
      let dirPrefix = metaIdx > 0 && /[\\/]/.test(pattern[metaIdx - 1]);
      let staticDir = dirPrefix ? trimmed : trimmed === "" ? staticPart : path.dirname(trimmed);
      let base = dirPrefix ? "" : trimmed === "" ? "" : path.basename(trimmed);
      let resolved = realFsPath(staticDir);
      if (resolved !== staticDir) {
        let joined = base ? path.join(resolved, base) : resolved;
        if (rest) {
          variants.push(joined + (dirPrefix ? "/" : "") + rest);
        } else {
          variants.push(joined);
        }
      }
      return variants;
    }
    function folderPaths() {
      try {
        return workspace_default.folderPaths;
      } catch (_e) {
        return [];
      }
    }
    function checkPath(input, opts = {}) {
      let uri = toUri(input);
      let fsPath2 = u.parse(uri).fsPath;
      let config = workspace_default.getConfiguration("mcp");
      let denied = toArray(config.get("deniedPaths", []));
      let realPath = realFsPath(fsPath2);
      let paths = realPath === fsPath2 ? [fsPath2] : [fsPath2, realPath];
      for (let glob2 of denied) {
        if (glob2 && paths.some((p2) => globVariants(glob2).some((g2) => globMatch(g2, p2)))) {
          return `Path is denied by mcp.deniedPaths: ${glob2}`;
        }
      }
      let allowed = toArray(config.get("allowedPaths", []));
      if (allowed.length > 0) {
        for (let p2 of paths) {
          let ok = allowed.some((glob2) => glob2 && globVariants(glob2).some((g2) => globMatch(g2, p2)));
          if (!ok) return `Path is not allowed by mcp.allowedPaths: ${fsPath2}`;
        }
        return null;
      }
      let roots = folderPaths();
      if (roots.length === 0) {
        try {
          roots = [workspace_default.root || process.cwd()];
        } catch (_e) {
          roots = [process.cwd()];
        }
      }
      let rootVariants = [];
      for (let root of roots) {
        rootVariants.push(root);
        let resolved = realFsPath(root);
        if (resolved !== root) rootVariants.push(resolved);
      }
      let insideRoot = paths.every((p2) => rootVariants.some((root) => isParentFolder(root, p2, true)));
      if (insideRoot) return null;
      if (workspace_default.getDocument(uri)) return null;
      if (!opts.write) {
        let tmpdir = os.tmpdir();
        let tmpVariants = [tmpdir];
        let resolved = realFsPath(tmpdir);
        if (resolved !== tmpdir) tmpVariants.push(resolved);
        if (paths.every((p2) => tmpVariants.some((t2) => isParentFolder(t2, p2, true)))) return null;
      }
      return `Path is outside the workspace and not opened: ${fsPath2}`;
    }
    var init_util6 = __esm({
      "src/mcp/tools/util.ts"() {
        "use strict";
        init_esm();
        init_fs();
        init_node();
        init_array();
        init_window();
        init_workspace();
      }
    });
    
    // src/mcp/resources.ts
    var logger46, ResourceNotFoundError, DOCUMENT_PREFIX, ResourceManager;
    var init_resources = __esm({
      "src/mcp/resources.ts"() {
        "use strict";
        init_logger();
        init_manager();
        init_services();
        init_node();
        init_workspace();
        init_util6();
        logger46 = createLogger("mcp-resources");
        ResourceNotFoundError = class extends Error {
          code = -32002;
        };
        DOCUMENT_PREFIX = "coc://documents/";
        ResourceManager = class {
          documentUri(fileUri) {
            return DOCUMENT_PREFIX + encodeURIComponent(fileUri);
          }
          listResources() {
            let resources = [];
            try {
              for (let doc of workspace_default.documents) {
                resources.push({
                  uri: this.documentUri(doc.uri),
                  name: doc.uri,
                  mimeType: "text/plain"
                });
              }
            } catch (_e) {
            }
            resources.push({ uri: "coc://diagnostics", name: "Workspace diagnostics", mimeType: "application/json" });
            resources.push({ uri: "coc://services", name: "Language server status", mimeType: "application/json" });
            resources.push({ uri: "coc://workspace", name: "Workspace information", mimeType: "application/json" });
            return { resources };
          }
          listTemplates() {
            return {
              resourceTemplates: [{
                uriTemplate: DOCUMENT_PREFIX + "{uri}",
                name: "Document content",
                description: "Text content of an editor document (file URI encoded as parameter)."
              }]
            };
          }
          async read(uri) {
            if (uri.startsWith(DOCUMENT_PREFIX)) {
              let fileUri = decodeURIComponent(uri.slice(DOCUMENT_PREFIX.length));
              let ref = await resolveDocument(fileUri, false);
              if (ref.error) throw new ResourceNotFoundError(ref.error);
              let text;
              if (ref.doc) {
                text = ref.doc.getDocumentContent();
              } else {
                try {
                  text = fs.readFileSync(toFsPath(fileUri), "utf8");
                } catch (e2) {
                  throw new ResourceNotFoundError(e2 instanceof Error ? e2.message : String(e2));
                }
              }
              return { contents: [{ uri, mimeType: "text/plain", text }] };
            }
            switch (uri) {
              case "coc://diagnostics": {
                let list2 = await manager_default.getDiagnosticList();
                return { contents: [{ uri, mimeType: "application/json", text: JSON.stringify(list2, null, 2) }] };
              }
              case "coc://services": {
                let stats = services_default.getServiceStats().map((stat) => {
                  let service = services_default.getService(stat.id);
                  let init = service?.client?.initializeResult;
                  return {
                    id: stat.id,
                    state: stat.state,
                    languageIds: stat.languageIds,
                    capabilities: init?.capabilities ?? null
                  };
                });
                return { contents: [{ uri, mimeType: "application/json", text: JSON.stringify(stats, null, 2) }] };
              }
              case "coc://workspace": {
                let info = {
                  version: workspace_default.version,
                  cwd: workspace_default.cwd || process.cwd(),
                  root: workspace_default.root || process.cwd(),
                  folders: workspace_default.folderPaths
                };
                return { contents: [{ uri, mimeType: "application/json", text: JSON.stringify(info, null, 2) }] };
              }
              default:
                throw new ResourceNotFoundError(`Resource not found: ${uri}`);
            }
          }
          dispose() {
          }
        };
      }
    });
    
    // src/mcp/dispatcher.ts
    function logAudit(session, message) {
      if (session.logLevel === "debug" || session.logLevel === "info") {
        logger47.info(`[audit] session ${session.id}: ${message}`);
      }
    }
    function normalizeResult(result, protocolVersion) {
      if (result && Array.isArray(result.content) && result.content.every((c2) => c2 && typeof c2 === "object" && c2.type === "text" && typeof c2.text === "string")) {
        if (!supportsStructuredContent(protocolVersion) && "structuredContent" in result) {
          let { structuredContent: _sc, ...rest } = result;
          return rest;
        }
        return result;
      }
      let text = typeof result === "string" ? result : JSON.stringify(result ?? {});
      let normalized = {
        content: [{ type: "text", text }],
        isError: false
      };
      if (supportsStructuredContent(protocolVersion)) normalized.structuredContent = result;
      return normalized;
    }
    function handleInitialize(server, session, id2, params) {
      let protocolVersion = params?.protocolVersion;
      if (typeof protocolVersion !== "string" || !SUPPORTED_PROTOCOL_VERSIONS.includes(protocolVersion)) {
        session.sendError(
          id2,
          JSONRPC_INVALID_REQUEST,
          `Unsupported protocol version ${JSON.stringify(protocolVersion)}, supported: ${SUPPORTED_PROTOCOL_VERSIONS.join(", ")}`
        );
        return;
      }
      session.protocolVersion = protocolVersion;
      if (!session.clientInfo) session.clientInfo = params?.clientInfo;
      session.initialized = true;
      session.sendResult(id2, {
        protocolVersion,
        capabilities: server.capabilities(),
        serverInfo: server.serverInfo(),
        instructions: "coc.nvim MCP server. Use workspace/info to inspect the editor state."
      });
    }
    async function handleToolCall(server, session, id2, params) {
      let name2 = params?.name;
      if (typeof name2 !== "string") {
        session.sendError(id2, JSONRPC_INVALID_PARAMS, "Tool name is required");
        return;
      }
      if (!server.tools.has(name2)) {
        let message = server.tools.isAllowed(name2) ? `Unknown tool: ${name2}` : `Tool not allowed by mcp.allowedTools: ${name2}`;
        session.sendError(id2, JSONRPC_INVALID_PARAMS, message);
        return;
      }
      let args = params?.arguments;
      if (args !== void 0 && (args === null || typeof args !== "object" || Array.isArray(args))) {
        let message = "Tool arguments must be an object";
        if (session.protocolVersion === "2025-11-25") {
          session.sendResult(id2, {
            content: [{ type: "text", text: message }],
            isError: true
          });
        } else {
          session.sendError(id2, JSONRPC_INVALID_PARAMS, message);
        }
        return;
      }
      if (session.inFlight >= server.maxInFlight) {
        session.sendError(id2, JSONRPC_INTERNAL_ERROR, "Too many concurrent requests");
        return;
      }
      let tool = server.tools.get(name2);
      let tokenSource = new import_node4.CancellationTokenSource();
      let start = Date.now();
      let done = false;
      let cancelled = false;
      let timer;
      let timeout2 = tool?.annotations?.readOnlyHint === true ? server.readTimeout : server.timeout;
      const finish = (fn) => {
        if (done) return;
        done = true;
        if (timer) clearTimeout(timer);
        session.pending.delete(id2);
        session.inFlight--;
        tokenSource.dispose();
        if (!cancelled) fn();
      };
      session.inFlight++;
      try {
        let call = () => server.tools.call(name2, args ?? {}, { token: tokenSource.token });
        let callPromise = tool?.annotations?.destructiveHint === true ? server.withWriteLock(call) : call();
        callPromise.catch(() => {
        });
        let resultPromise;
        if (timeout2 > 0) {
          resultPromise = Promise.race([
            callPromise,
            new Promise((_2, reject) => {
              timer = setTimeout(() => {
                tokenSource.cancel();
                reject(new ToolTimeoutError(String(timeout2)));
              }, timeout2);
            })
          ]);
        } else {
          resultPromise = callPromise;
        }
        let cancelWait = () => {
        };
        resultPromise = Promise.race([
          resultPromise,
          new Promise((_2, reject) => {
            cancelWait = () => reject(new ToolCancelledError());
          })
        ]);
        session.pending.set(id2, {
          cancel: () => {
            cancelled = true;
            tokenSource.cancel();
            cancelWait();
            finish(() => {
            });
          },
          timer
        });
        let result = await resultPromise;
        finish(() => {
          logAudit(session, `Tool ${name2} finished in ${Date.now() - start}ms`);
          session.sendResult(id2, normalizeResult(result, session.protocolVersion));
        });
      } catch (e2) {
        finish(() => {
          if (e2 instanceof ToolTimeoutError) {
            logAudit(session, `Tool ${name2} timed out after ${timeout2}ms`);
            session.sendError(id2, COC_REQUEST_TIMEOUT, `Tool ${name2} timed out after ${timeout2}ms`);
          } else {
            logAudit(session, `Tool ${name2} failed after ${Date.now() - start}ms: ${toErrorText(e2)}`);
            logger47.error(`Tool ${name2} failed`, e2);
            session.sendError(id2, JSONRPC_INTERNAL_ERROR, `Tool ${name2} failed: ${toErrorText(e2)}`);
          }
        });
      }
    }
    async function handleMessage(server, session, msg) {
      if (!session.active) return;
      session.touch();
      if (!msg || typeof msg !== "object" || msg.jsonrpc !== "2.0" || typeof msg.method !== "string") {
        session.sendError(msg && typeof msg.id !== "undefined" ? msg.id : null, JSONRPC_INVALID_REQUEST, "Invalid message");
        return;
      }
      let { id: id2, method, params } = msg;
      let isNotification = typeof id2 === "undefined";
      let isRequest = !isNotification;
      if (method === METHOD_COC_CHALLENGE) {
        session.nonce = crypto2.randomBytes(32).toString("hex");
        if (isRequest) session.sendResult(id2, { nonce: session.nonce });
        return;
      }
      if (method === METHOD_COC_AUTH) {
        if (session.authenticated) {
          if (isRequest) session.sendError(id2, JSONRPC_INVALID_REQUEST, "Already authenticated");
          return;
        }
        let authParams = params ?? {};
        if (server.options.authClientPublicKey) {
          let nonce = authParams.nonce;
          let signature = authParams.signature;
          if (typeof nonce !== "string" || nonce !== session.nonce || typeof signature !== "string") {
            session.nonce = void 0;
            if (isRequest) session.sendError(id2, COC_AUTH_FAILED, "Signature challenge mismatch");
            session.close();
            return;
          }
          let valid = false;
          try {
            valid = crypto2.verify("sha256", Buffer.from(nonce), server.options.authClientPublicKey, Buffer.from(signature, "base64"));
          } catch (_e) {
            valid = false;
          }
          session.nonce = void 0;
          if (!valid) {
            if (isRequest) session.sendError(id2, COC_AUTH_FAILED, "Signature verification failed");
            session.close();
            return;
          }
        } else {
          if (authParams.token !== server.options.token) {
            if (isRequest) session.sendError(id2, COC_AUTH_FAILED, "Invalid token");
            session.close();
            return;
          }
        }
        session.authenticated = true;
        session.clientInfo = authParams.clientInfo;
        if (isRequest) {
          session.sendResult(id2, {
            ok: true,
            protocolVersion: PROTOCOL_VERSION,
            serverInfo: server.serverInfo(),
            capabilities: server.capabilities(),
            extensions: ["coc/auth", "coc/status"]
          });
        }
        return;
      }
      if (!session.authenticated) {
        if (isRequest) session.sendError(id2, COC_AUTH_FAILED, "Not authenticated");
        session.close();
        return;
      }
      if (!session.initialized) {
        if (method === METHOD_INITIALIZE && isRequest) {
          handleInitialize(server, session, id2, params);
          return;
        }
        if (method === METHOD_PING) {
          if (isRequest) session.sendResult(id2, {});
          return;
        }
        if (isRequest) session.sendError(id2, JSONRPC_INVALID_REQUEST, "Server not initialized");
        return;
      }
      if (session.shutdown && method !== NOTIFICATION_EXIT) {
        if (isRequest) session.sendError(id2, COC_SESSION_CLOSED, "Server is shutting down");
        return;
      }
      if (isRequest && !session.checkRateLimit(server.maxRequestsPerSecond)) {
        session.sendError(id2, JSONRPC_INTERNAL_ERROR, "Rate limit exceeded, slow down");
        return;
      }
      switch (method) {
        case METHOD_SHUTDOWN:
          session.shutdown = true;
          if (isRequest) session.sendResult(id2, null);
          return;
        case NOTIFICATION_EXIT:
          session.close();
          return;
        case METHOD_PING:
          if (isRequest) session.sendResult(id2, {});
          return;
        case NOTIFICATION_INITIALIZED:
          return;
        case METHOD_TOOLS_LIST:
          if (isRequest) {
            let { tools } = server.tools.list();
            if (!supportsToolMetadata(session.protocolVersion)) {
              tools = tools.map((t2) => ({ name: t2.name, description: t2.description, inputSchema: t2.inputSchema }));
            }
            session.sendResult(id2, { tools });
          }
          return;
        case METHOD_TOOLS_CALL:
          if (isRequest) await handleToolCall(server, session, id2, params);
          return;
        case METHOD_LOGGING_SET_LEVEL:
          session.logLevel = typeof params?.level === "string" ? params.level : "info";
          if (isRequest) session.sendResult(id2, null);
          return;
        case METHOD_ROOTS_LIST:
          if (isRequest) session.sendResult(id2, { roots: session.roots.map((uri) => ({ uri })) });
          return;
        case NOTIFICATION_ROOTS_LIST_CHANGED:
          session.roots = Array.isArray(params?.roots) ? params.roots.map((r2) => r2?.uri).filter((u2) => typeof u2 === "string") : [];
          return;
        case NOTIFICATION_CANCELLED:
          server.cancelRequest(session, params?.requestId);
          return;
        case NOTIFICATION_PROGRESS:
          return;
        case METHOD_COC_STATUS:
          if (isRequest) session.sendResult(id2, server.status());
          return;
        case METHOD_COC_SUBSCRIBE:
          if (isRequest) {
            let events = Array.isArray(params?.events) ? params.events.filter((e2) => typeof e2 === "string" && e2.startsWith("coc/")) : [];
            for (let event of events) session.subscriptions.add(event);
            session.sendResult(id2, { subscribed: events });
          }
          return;
        case METHOD_COC_UNSUBSCRIBE:
          if (isRequest) {
            let events = Array.isArray(params?.events) ? params.events.filter((e2) => typeof e2 === "string") : [];
            for (let event of events) session.subscriptions.delete(event);
            session.sendResult(id2, { unsubscribed: events });
          }
          return;
        case METHOD_RESOURCES_LIST:
          if (isRequest) session.sendResult(id2, server.resources.listResources());
          return;
        case METHOD_RESOURCES_TEMPLATES_LIST:
          if (isRequest) session.sendResult(id2, server.resources.listTemplates());
          return;
        case METHOD_RESOURCES_READ:
          if (isRequest) {
            let resourceUri = params?.uri;
            if (typeof resourceUri !== "string") {
              session.sendError(id2, JSONRPC_INVALID_PARAMS, "uri is required");
              return;
            }
            try {
              let result = await server.resources.read(resourceUri);
              session.sendResult(id2, result);
            } catch (e2) {
              if (e2 instanceof ResourceNotFoundError) {
                session.sendError(id2, COC_RESOURCE_NOT_FOUND, e2.message);
              } else {
                logger47.error(`Failed to read resource ${resourceUri}`, e2);
                session.sendError(id2, JSONRPC_INTERNAL_ERROR, `Failed to read resource: ${toErrorText(e2)}`);
              }
            }
          }
          return;
        default:
          if (isRequest) session.sendError(id2, JSONRPC_METHOD_NOT_FOUND, `Method not found: ${method}`);
      }
    }
    var logger47, ToolTimeoutError, ToolCancelledError;
    var init_dispatcher = __esm({
      "src/mcp/dispatcher.ts"() {
        "use strict";
        init_logger();
        init_string();
        init_node();
        init_protocol();
        init_protocol2();
        init_resources();
        logger47 = createLogger("mcp-dispatcher");
        ToolTimeoutError = class extends Error {
        };
        ToolCancelledError = class extends Error {
        };
      }
    });
    
    // src/mcp/framing.ts
    function encodeMessage(msg) {
      let line = JSON.stringify(msg);
      if (line == null) {
        throw new Error("Unable to serialize message to JSON");
      }
      return Buffer.from(line + "\n", "utf8");
    }
    var FrameSplitter;
    var init_framing = __esm({
      "src/mcp/framing.ts"() {
        "use strict";
        init_protocol2();
        FrameSplitter = class {
          constructor(maxBytes = DEFAULT_FRAME_MAX_BYTES, onFrame, onError) {
            this.maxBytes = maxBytes;
            this.onFrame = onFrame;
            this.onError = onError;
          }
          maxBytes;
          onFrame;
          onError;
          buffer = Buffer.alloc(0);
          disposed = false;
          push(chunk) {
            if (this.disposed) return;
            let buf = typeof chunk === "string" ? Buffer.from(chunk, "utf8") : chunk;
            if (buf.length === 0) return;
            this.buffer = this.buffer.length === 0 ? buf : Buffer.concat([this.buffer, buf]);
            let index;
            while ((index = this.buffer.indexOf(10)) !== -1) {
              let line = this.buffer.subarray(0, index);
              this.buffer = this.buffer.subarray(index + 1);
              if (line.length === 0) continue;
              if (line.length > this.maxBytes) {
                this.onError({ message: `Frame exceeds ${this.maxBytes} bytes` });
                continue;
              }
              this.processLine(line);
            }
            if (this.buffer.length > this.maxBytes) {
              this.onError({ message: `Frame exceeds ${this.maxBytes} bytes` });
              this.buffer = Buffer.alloc(0);
            }
          }
          processLine(line) {
            let text = line.toString("utf8");
            let msg;
            try {
              msg = JSON.parse(text);
            } catch (e2) {
              this.onError({ message: e2 instanceof Error ? e2.message : String(e2), raw: text });
              return;
            }
            this.onFrame(msg);
          }
          dispose() {
            this.disposed = true;
            this.buffer = Buffer.alloc(0);
          }
        };
      }
    });
    
    // src/mcp/session.ts
    var logger48, sessionId, Session;
    var init_session3 = __esm({
      "src/mcp/session.ts"() {
        "use strict";
        init_protocol2();
        init_framing();
        init_logger();
        logger48 = createLogger("mcp-session");
        sessionId = 0;
        Session = class {
          constructor(socket, onClose, authTimeout = AUTH_TIMEOUT, idleTimeout = 0) {
            this.socket = socket;
            this.onClose = onClose;
            this.authTimeout = authTimeout;
            this.idleTimeout = idleTimeout;
            this.id = ++sessionId;
            if (this.authTimeout > 0) {
              this.authTimer = setTimeout(() => {
                if (!this.authenticated) {
                  logger48.warn(`Session ${this.id} not authenticated within ${authTimeout}ms, closing`);
                  this.close();
                }
              }, authTimeout);
            }
          }
          socket;
          onClose;
          authTimeout;
          idleTimeout;
          id;
          authenticated = false;
          initialized = false;
          shutdown = false;
          protocolVersion;
          clientInfo;
          nonce;
          roots = [];
          subscriptions = /* @__PURE__ */ new Set();
          logLevel = "info";
          inFlight = 0;
          pending = /* @__PURE__ */ new Map();
          createdAt = Date.now();
          lastActiveAt = Date.now();
          requestTimes = [];
          queue = Promise.resolve();
          authTimer;
          idleTimer;
          closed = false;
          get active() {
            return !this.closed;
          }
          /**
           * Run a request handler after all previously queued requests. Requests
           * (and the exit notification) are processed in order so that shutdown/exit
           * cannot cut off an in-flight tool call. Notifications such as
           * notifications/cancelled are handled out of band and must not be queued.
           * Once the session is closed, tasks that have not started yet are dropped:
           * close is the session's execution boundary.
           */
          enqueue(task) {
            let run = () => {
              if (this.closed) return;
              return task();
            };
            this.queue = this.queue.then(run, run);
          }
          touch() {
            this.lastActiveAt = Date.now();
            if (this.closed || this.idleTimeout <= 0) return;
            if (this.idleTimer) clearTimeout(this.idleTimer);
            this.idleTimer = setTimeout(() => {
              logger48.info(`Session ${this.id} idle timeout, closing`);
              this.close();
            }, this.idleTimeout);
          }
          /**
           * Sliding-window per-session request rate limit. Returns false when the
           * session exceeded `limitPerSecond` requests in the last second.
           */
          checkRateLimit(limitPerSecond) {
            if (limitPerSecond <= 0) return true;
            let now = Date.now();
            let windowStart = now - 1e3;
            this.requestTimes = this.requestTimes.filter((t2) => t2 > windowStart);
            if (this.requestTimes.length >= limitPerSecond) return false;
            this.requestTimes.push(now);
            return true;
          }
          send(msg) {
            if (this.closed) return;
            try {
              this.socket.write(encodeMessage(msg));
            } catch (e2) {
              logger48.error(`Session ${this.id} failed to write`, e2);
              this.close();
            }
          }
          sendResult(id2, result) {
            this.send({ jsonrpc: "2.0", id: id2, result });
          }
          sendError(id2, code, message, data) {
            let error = { code, message };
            if (data !== void 0) error.data = data;
            this.send({ jsonrpc: "2.0", id: id2, error });
          }
          sendNotification(method, params) {
            let msg = { jsonrpc: "2.0", method };
            if (params !== void 0) msg.params = params;
            this.send(msg);
          }
          close() {
            if (this.closed) return;
            this.closed = true;
            if (this.authTimer) clearTimeout(this.authTimer);
            if (this.idleTimer) clearTimeout(this.idleTimer);
            for (let pending of this.pending.values()) {
              if (pending.timer) clearTimeout(pending.timer);
              pending.cancel();
            }
            this.pending.clear();
            this.onClose(this);
            try {
              this.socket.end();
            } catch (_e) {
            }
          }
        };
      }
    });
    
    // src/mcp/tools/index.ts
    function toToolInfo(tool) {
      let info = {
        name: tool.name,
        description: tool.description,
        inputSchema: tool.inputSchema
      };
      if (tool.title) info.title = tool.title;
      if (tool.outputSchema) info.outputSchema = tool.outputSchema;
      if (tool.annotations) info.annotations = tool.annotations;
      return info;
    }
    var ToolRegistry;
    var init_tools = __esm({
      "src/mcp/tools/index.ts"() {
        "use strict";
        init_protocol();
        ToolRegistry = class {
          tools = /* @__PURE__ */ new Map();
          allowed = null;
          _onDidChange = new import_node4.Emitter();
          onDidChange = this._onDidChange.event;
          /**
           * Restrict exposed tools to a whitelist of names. `null` allows every
           * registered tool; an empty set exposes none. Tools outside the whitelist
           * are hidden from `tools/list` and rejected by `has`/`get`/`call`.
           */
          setAllowedTools(names) {
            this.allowed = names ? new Set(names) : null;
            this._onDidChange.fire();
          }
          isAllowed(name2) {
            return this.allowed === null || this.allowed.has(name2);
          }
          register(tool) {
            if (this.tools.has(tool.name)) {
              throw new Error(`Tool ${tool.name} already registered`);
            }
            this.tools.set(tool.name, tool);
            this._onDidChange.fire();
            return import_node4.Disposable.create(() => {
              this.unregister(tool.name);
            });
          }
          unregister(name2) {
            if (this.tools.delete(name2)) {
              this._onDidChange.fire();
            }
          }
          get(name2) {
            let tool = this.tools.get(name2);
            return tool && this.isAllowed(name2) ? tool : void 0;
          }
          has(name2) {
            return this.isAllowed(name2) && this.tools.has(name2);
          }
          list() {
            let tools = [];
            for (let tool of this.tools.values()) {
              if (!this.isAllowed(tool.name)) continue;
              tools.push(toToolInfo(tool));
            }
            return { tools };
          }
          async call(name2, args, context) {
            let tool = this.get(name2);
            if (!tool) {
              throw new Error(`Unknown tool: ${name2}`);
            }
            return await Promise.resolve(tool.handler(args, context));
          }
          dispose() {
            this.tools.clear();
            this._onDidChange.dispose();
          }
        };
      }
    });
    
    // src/mcp/server.ts
    var logger49, McpServer;
    var init_server = __esm({
      "src/mcp/server.ts"() {
        "use strict";
        init_logger();
        init_constants();
        init_mutex();
        init_node();
        init_dispatcher();
        init_framing();
        init_protocol2();
        init_session3();
        init_tools();
        init_resources();
        logger49 = createLogger("mcp-server");
        McpServer = class {
          constructor(options3, tools, resources) {
            this.options = options3;
            this.ownsTools = tools === void 0;
            this.tools = tools ?? new ToolRegistry();
            this.resources = resources ?? new ResourceManager();
            this.toolChangeDisposable = this.tools.onDidChange(() => {
              this.broadcastNotification(NOTIFICATION_TOOLS_LIST_CHANGED, void 0);
            });
          }
          options;
          tools;
          resources;
          ownsTools;
          server;
          sessions = /* @__PURE__ */ new Map();
          address;
          disposed = false;
          writeMutex = new Mutex();
          toolChangeDisposable;
          get authRequired() {
            return this.options.authRequired;
          }
          get timeout() {
            return this.options.timeout ?? DEFAULT_TOOL_TIMEOUT;
          }
          get readTimeout() {
            return this.options.readTimeout ?? DEFAULT_READ_TIMEOUT;
          }
          get maxInFlight() {
            return MAX_IN_FLIGHT;
          }
          get maxRequestsPerSecond() {
            return this.options.maxRequestsPerSecond ?? 60;
          }
          serverInfo() {
            return { name: "coc.nvim", version: VERSION, description: "coc.nvim MCP server" };
          }
          capabilities() {
            return {
              tools: { listChanged: true },
              resources: { subscribe: false, listChanged: false },
              logging: {}
            };
          }
          listen() {
            return new Promise((resolve, reject) => {
              let server = net.createServer((socket) => {
                this.handleConnection(socket);
              });
              server.on("error", (err) => {
                logger49.error("MCP server error", err);
                reject(err);
              });
              if (this.options.transport === "unix") {
                let socketPath = this.options.socketPath;
                if (!socketPath) {
                  reject(new Error("socketPath is required for unix transport"));
                  return;
                }
                server.listen(socketPath, () => {
                  this.server = server;
                  this.address = { host: "unix", port: 0, socketPath };
                  resolve(this.address);
                });
              } else {
                server.listen(this.options.port, this.options.host, () => {
                  this.server = server;
                  let addr = server.address();
                  this.address = { host: this.options.host, port: addr.port, socketPath: "" };
                  resolve(this.address);
                });
              }
            });
          }
          status() {
            let clients = Array.from(this.sessions.values()).map((s2) => ({
              id: s2.id,
              pid: s2.clientInfo && typeof s2.clientInfo.pid === "number" ? s2.clientInfo.pid : null,
              name: s2.clientInfo && typeof s2.clientInfo.name === "string" ? s2.clientInfo.name : null,
              version: s2.clientInfo && typeof s2.clientInfo.version === "string" ? s2.clientInfo.version : null,
              connectedAt: s2.createdAt,
              lastActiveAt: s2.lastActiveAt
            }));
            return {
              running: !this.disposed,
              transport: this.options.transport,
              host: this.address?.host ?? this.options.host,
              port: this.address?.port ?? this.options.port,
              socketPath: this.address?.socketPath ?? this.options.socketPath,
              clients,
              tools: this.tools.list().tools.map((t2) => t2.name),
              protocolVersion: PROTOCOL_VERSION
            };
          }
          cancelRequest(session, requestId) {
            if (requestId === void 0 || requestId === null) return;
            let pending = session.pending.get(requestId);
            if (pending) {
              pending.cancel();
            }
          }
          /**
           * Global write lock: mutating tool calls are serialized across all
           * sessions so concurrent clients cannot race edits on the same buffers.
           * Read-only tools run in parallel without the lock.
           */
          withWriteLock(fn) {
            return this.writeMutex.use(fn);
          }
          broadcastNotification(method, params) {
            for (let session of this.sessions.values()) {
              if (session.initialized && !session.shutdown) {
                session.sendNotification(method, params);
              }
            }
          }
          /**
           * Broadcast a `coc/*` event only to sessions that subscribed to it.
           */
          broadcastEvent(event, params) {
            for (let session of this.sessions.values()) {
              if (session.initialized && !session.shutdown && session.subscriptions.has(event)) {
                session.sendNotification(event, params);
              }
            }
          }
          dispose() {
            if (this.disposed) return;
            this.disposed = true;
            this.toolChangeDisposable.dispose();
            for (let session of this.sessions.values()) {
              session.close();
            }
            this.sessions.clear();
            if (this.ownsTools) this.tools.dispose();
            let server = this.server;
            this.server = void 0;
            if (server) {
              server.close();
            }
          }
          handleConnection(socket) {
            if (this.disposed || this.sessions.size >= this.options.maxClients) {
              socket.destroy();
              return;
            }
            let session = new Session(
              socket,
              (s2) => {
                this.sessions.delete(s2.id);
              },
              AUTH_TIMEOUT,
              this.options.idleTimeout ?? 0
            );
            if (!this.options.authRequired) session.authenticated = true;
            this.sessions.set(session.id, session);
            let splitter = new FrameSplitter(
              this.options.frameMaxBytes ?? DEFAULT_FRAME_MAX_BYTES,
              (msg) => {
                if (!session.active) return;
                let isRequest = typeof msg?.id !== "undefined";
                let isExit = msg?.method === "notifications/exit";
                if (isRequest || isExit) {
                  let parallel = false;
                  if (isRequest && msg?.method === "tools/call" && typeof msg?.params?.name === "string") {
                    let tool = this.tools.get(msg.params.name);
                    parallel = tool?.annotations?.readOnlyHint === true;
                  }
                  if (parallel) {
                    void handleMessage(this, session, msg);
                  } else {
                    session.enqueue(() => handleMessage(this, session, msg));
                  }
                } else {
                  void handleMessage(this, session, msg);
                }
              },
              (err) => {
                this.handleFrameError(session, err);
              }
            );
            socket.on("data", (chunk) => {
              if (!session.active) {
                socket.destroy();
                return;
              }
              splitter.push(chunk);
            });
            socket.on("error", (err) => {
              logger49.error(`Session ${session.id} socket error`, err);
            });
            socket.on("close", () => {
              splitter.dispose();
              session.close();
            });
            logger49.info(`MCP client connected, session ${session.id}, total ${this.sessions.size}`);
          }
          handleFrameError(session, err) {
            if (!session.active) return;
            logger49.warn(`Session ${session.id} frame error: ${err.message}`);
            let id2 = null;
            if (err.raw) {
              try {
                let parsed = JSON.parse(err.raw);
                if (parsed && typeof parsed.id !== "undefined") id2 = parsed.id;
              } catch (_e) {
                let match2 = /"id"\s*:\s*(\d+)/.exec(err.raw);
                if (match2) id2 = Number(match2[1]);
              }
            }
            session.sendError(id2, JSONRPC_PARSE_ERROR, `Parse error: ${err.message}`);
          }
        };
      }
    });
    
    // src/mcp/tools/document.ts
    function readDiskText(uri) {
      let filepath = toFsPath(uri);
      try {
        let stat = fs.statSync(filepath);
        if (stat.size > MAX_READ_BYTES) {
          return { text: "", error: `File exceeds ${MAX_READ_BYTES} bytes, use range or startLine/endLine` };
        }
        return { text: fs.readFileSync(filepath, "utf8") };
      } catch (e2) {
        return { text: "", error: e2 instanceof Error ? e2.message : String(e2) };
      }
    }
    async function readDiskWindow(uri, startLine, endLine) {
      let filepath = toFsPath(uri);
      try {
        let lines = await readFileLines(filepath, startLine, Math.max(startLine, endLine - 1));
        return { lines };
      } catch (e2) {
        return { lines: [], error: e2 instanceof Error ? e2.message : String(e2) };
      }
    }
    function windowToRangeText(lines, range2) {
      if (lines.length === 0) return "";
      let start = range2.start;
      let end = range2.end;
      if (lines.length === 1) {
        return lines[0].slice(start.character, end.character);
      }
      let middle = lines.slice(1, -1);
      return lines[0].slice(start.character) + "\n" + middle.join("\n") + (middle.length > 0 ? "\n" : "") + lines[lines.length - 1].slice(0, end.character);
    }
    function lineWindow(doc, startLine, endLine) {
      let start = Math.max(0, startLine ?? 0);
      let end = endLine ?? doc.lineCount;
      if (end <= start) return "";
      let lines = doc.getLines(start, end);
      return lines.join("\n");
    }
    function toTextEdits(args) {
      let edits = args?.edits;
      if (!Array.isArray(edits) || edits.length === 0) return null;
      let result = [];
      for (let edit2 of edits) {
        if (!edit2 || typeof edit2 !== "object" || !edit2.range || typeof edit2.newText !== "string") return null;
        let range2 = edit2.range;
        if (!range2.start || typeof range2.start.line !== "number" || typeof range2.start.character !== "number" || !range2.end || typeof range2.end.line !== "number" || typeof range2.end.character !== "number") {
          return null;
        }
        result.push(TextEdit.replace(Range.create(range2.start, range2.end), edit2.newText));
      }
      return result;
    }
    async function saveDocument(doc) {
      let { nvim } = workspace_default;
      let bufnr = doc.bufnr;
      let winid = await nvim.call("bufwinid", [bufnr]);
      if (winid > 0) {
        await nvim.call("win_execute", [winid, "write"]);
        return;
      }
      let curr = await nvim.eval('bufnr("%")');
      await nvim.command(`silent! buffer ${bufnr}`);
      try {
        await nvim.command("write");
      } finally {
        if (curr && curr !== bufnr) {
          await nvim.command(`silent! buffer ${curr}`);
        }
      }
    }
    function createDocumentTools() {
      return [
        {
          name: "document/read",
          title: "Read Document",
          description: "Read text from an editor buffer (unsaved changes included). Supports full text, an LSP range, or a line window; the disk fallback reads only the requested lines incrementally, so large files are fine for range/line reads.",
          inputSchema: {
            type: "object",
            properties: {
              uri: { type: "string", description: "File URI or absolute path. Omit to use the active document." },
              range: {
                type: "object",
                properties: {
                  start: { $ref: "#/definitions/Position" },
                  end: { $ref: "#/definitions/Position" }
                },
                description: "LSP range to read; omit for full text."
              },
              startLine: { type: "integer", description: "0-based inclusive start line for a line window." },
              endLine: { type: "integer", description: "0-based exclusive end line for a line window." }
            }
          },
          outputSchema: {
            type: "object",
            properties: {
              uri: { type: "string" },
              version: { type: "integer" },
              changedtick: { type: "integer" },
              languageId: { type: "string" },
              text: { type: "string" },
              lineCount: { type: "integer" },
              fromBuffer: { type: "boolean" }
            }
          },
          annotations: { readOnlyHint: true, idempotentHint: true },
          handler: async (args) => {
            let ref = await resolveDocument(args?.uri, false);
            if (ref.error) return errorResult(ref.error);
            let uri = ref.uri;
            let fromBuffer = false;
            let text;
            let version2 = -1;
            let changedtick = -1;
            let languageId = "";
            if (ref.doc) {
              fromBuffer = true;
              version2 = ref.doc.version;
              changedtick = ref.doc.changedtick;
              languageId = ref.doc.languageId;
              if (args?.range) {
                text = ref.doc.textDocument.getText(Range.create(args.range.start, args.range.end));
              } else if (args?.startLine !== void 0 || args?.endLine !== void 0) {
                text = lineWindow(ref.doc, args.startLine, args.endLine);
              } else {
                text = ref.doc.getDocumentContent();
              }
            } else {
              if (args?.range) {
                let start = Math.max(0, args.range.start.line);
                let end = Math.max(start + 1, args.range.end.line + 1);
                let read = await readDiskWindow(uri, start, end);
                if (read.error) return errorResult(read.error);
                text = windowToRangeText(read.lines, args.range);
              } else if (args?.startLine !== void 0 || args?.endLine !== void 0) {
                let start = Math.max(0, args.startLine ?? 0);
                let end = Math.max(start + 1, args.endLine ?? start + 1);
                let read = await readDiskWindow(uri, start, end);
                if (read.error) return errorResult(read.error);
                text = read.lines.join("\n");
              } else {
                let read = readDiskText(uri);
                if (read.error) return errorResult(read.error);
                text = read.text;
              }
            }
            let result = {
              uri,
              version: version2,
              changedtick,
              languageId,
              text,
              lineCount: ref.doc ? ref.doc.lineCount : text.split("\n").length,
              fromBuffer
            };
            return textResult(JSON.stringify(result, null, 2), result);
          }
        },
        {
          name: "document/read_lines",
          title: "Read Document Lines",
          description: "Read a line window from an editor buffer (0-based, end exclusive). Returns lines with their numbers.",
          inputSchema: {
            type: "object",
            properties: {
              uri: { type: "string" },
              startLine: { type: "integer", default: 0 },
              endLine: { type: "integer", description: "Exclusive end line; defaults to the last line." },
              maxLines: { type: "integer", default: 5e3 }
            }
          },
          outputSchema: {
            type: "object",
            properties: {
              uri: { type: "string" },
              startLine: { type: "integer" },
              endLine: { type: "integer" },
              fromBuffer: { type: "boolean" },
              lines: { type: "array", items: { type: "object" } }
            }
          },
          annotations: { readOnlyHint: true, idempotentHint: true },
          handler: async (args) => {
            let ref = await resolveDocument(args?.uri, false);
            if (ref.error) return errorResult(ref.error);
            let maxLines = Math.max(1, args?.maxLines ?? 5e3);
            if (ref.doc) {
              let start2 = Math.max(0, args?.startLine ?? 0);
              let end2 = Math.min(ref.doc.lineCount, args?.endLine ?? ref.doc.lineCount);
              if (end2 - start2 > maxLines) end2 = start2 + maxLines;
              let lines2 = ref.doc.getLines(start2, end2).map((text, index) => ({ line: start2 + index, text }));
              let result2 = { uri: ref.uri, startLine: start2, endLine: end2, lines: lines2, fromBuffer: true };
              return textResult(JSON.stringify(result2, null, 2), result2);
            }
            let start = Math.max(0, args?.startLine ?? 0);
            let end = args?.endLine ?? start + maxLines;
            if (end - start > maxLines) end = start + maxLines;
            let read = await readDiskWindow(ref.uri, start, end);
            if (read.error) return errorResult(read.error);
            let lines = read.lines.map((text, index) => ({ line: start + index, text }));
            let result = { uri: ref.uri, startLine: start, endLine: start + lines.length, lines, fromBuffer: false };
            return textResult(JSON.stringify(result, null, 2), result);
          }
        },
        {
          name: "document/apply_edits",
          title: "Apply Document Edits",
          description: 'Apply LSP TextEdits to one document. target "buffer" only affects the editor buffer (disk unchanged); "both" writes disk after applying. Fails with a conflict result when the given version does not match the current document version.',
          inputSchema: {
            type: "object",
            properties: {
              uri: { type: "string" },
              version: { type: "integer", description: "Document version from document/read; checked for optimistic concurrency." },
              edits: {
                type: "array",
                items: {
                  type: "object",
                  properties: {
                    range: {
                      type: "object",
                      properties: {
                        start: { $ref: "#/definitions/Position" },
                        end: { $ref: "#/definitions/Position" }
                      }
                    },
                    newText: { type: "string" }
                  },
                  required: ["range", "newText"]
                },
                minItems: 1
              },
              target: { type: "string", enum: ["buffer", "both"], default: "both" },
              joinUndo: { type: "boolean", default: true }
            },
            required: ["edits"]
          },
          outputSchema: {
            type: "object",
            properties: {
              uri: { type: "string" },
              applied: { type: "boolean" },
              target: { type: "string" },
              editCount: { type: "integer" },
              version: { type: "integer" },
              changedtick: { type: "integer" }
            }
          },
          annotations: { destructiveHint: true, idempotentHint: false },
          handler: async (args) => {
            let edits = toTextEdits(args);
            if (!edits) return errorResult("edits must be a non-empty array of {range, newText}");
            let ref = await resolveDocument(args?.uri, true);
            if (ref.error) return errorResult(ref.error);
            let doc = ref.doc;
            if (typeof args?.version === "number" && args.version !== doc.version) {
              return errorResult(`Document version conflict: expected ${args.version}, current ${doc.version}. Re-read the document and retry.`);
            }
            try {
              await doc.applyEdits(edits, args?.joinUndo !== false);
            } catch (e2) {
              return errorResult(`Failed to apply edits: ${e2 instanceof Error ? e2.message : String(e2)}`);
            }
            if (args?.target === "both" || args?.target === void 0) {
              try {
                await saveDocument(doc);
              } catch (e2) {
                return errorResult(`Edits applied to buffer but save failed: ${e2 instanceof Error ? e2.message : String(e2)}`);
              }
            }
            let result = {
              uri: ref.uri,
              applied: true,
              target: args?.target === "buffer" ? "buffer" : "both",
              editCount: edits.length,
              version: doc.version,
              changedtick: doc.changedtick
            };
            return textResult(JSON.stringify(result, null, 2), result);
          }
        },
        {
          name: "document/write",
          title: "Write Document",
          description: "Save an open editor buffer to disk.",
          inputSchema: {
            type: "object",
            properties: {
              uri: { type: "string" }
            }
          },
          outputSchema: {
            type: "object",
            properties: {
              uri: { type: "string" },
              saved: { type: "boolean" },
              version: { type: "integer" }
            }
          },
          annotations: { destructiveHint: true },
          handler: async (args) => {
            let ref = await resolveDocument(args?.uri, true);
            if (ref.error) return errorResult(ref.error);
            try {
              await saveDocument(ref.doc);
            } catch (e2) {
              return errorResult(`Save failed: ${e2 instanceof Error ? e2.message : String(e2)}`);
            }
            let result = { uri: ref.uri, saved: true, version: ref.doc.version };
            return textResult(JSON.stringify(result, null, 2), result);
          }
        },
        {
          name: "document/format",
          title: "Format Document",
          description: "Format a document or an LSP range using the language server formatter. Applies the returned TextEdits to the buffer.",
          inputSchema: {
            type: "object",
            properties: {
              uri: { type: "string" },
              range: {
                type: "object",
                properties: {
                  start: { $ref: "#/definitions/Position" },
                  end: { $ref: "#/definitions/Position" }
                }
              }
            }
          },
          outputSchema: {
            type: "object",
            properties: {
              uri: { type: "string" },
              formatted: { type: "boolean" },
              editCount: { type: "integer" },
              version: { type: "integer" }
            }
          },
          annotations: { destructiveHint: true, idempotentHint: true },
          handler: async (args, context) => {
            let ref = await resolveDocument(args?.uri, true);
            if (ref.error) return errorResult(ref.error);
            let doc = ref.doc;
            await doc.synchronize();
            let options3 = await workspace_default.getFormatOptions(ref.uri);
            let textEdits;
            try {
              if (args?.range) {
                textEdits = await languages_default.provideDocumentRangeFormattingEdits(doc.textDocument, Range.create(args.range.start, args.range.end), options3, context.token);
              } else {
                textEdits = await languages_default.provideDocumentFormattingEdits(doc.textDocument, options3, context.token);
              }
            } catch (e2) {
              return errorResult(`Format request failed: ${e2 instanceof Error ? e2.message : String(e2)}`);
            }
            if (isFalsyOrEmpty(textEdits)) {
              let result2 = { uri: ref.uri, formatted: false, editCount: 0, version: doc.version };
              return textResult(JSON.stringify(result2, null, 2), result2);
            }
            await doc.applyEdits(textEdits, false, true);
            let result = { uri: ref.uri, formatted: true, editCount: textEdits.length, version: doc.version };
            return textResult(JSON.stringify(result, null, 2), result);
          }
        },
        {
          name: "document/open",
          title: "Open Documents",
          description: 'Open one or more files in the Vim/Neovim editor using workspace.openResource (which honors coc.preferences.jumpCommand), optionally at a 1-based line (and column) via a "#line" fragment. Typical usage: after editing files, open each file at its first changed line.',
          inputSchema: {
            type: "object",
            properties: {
              uri: { type: "string", description: "File URI or absolute path (single file)." },
              line: { type: "integer", description: "1-based line to jump to (with uri)." },
              col: { type: "integer", description: "1-based column to jump to (with uri, default 1)." },
              files: {
                type: "array",
                description: "Files to open: strings (uri/path) or { uri, line?, col? }.",
                items: {
                  oneOf: [
                    { type: "string" },
                    {
                      type: "object",
                      properties: {
                        uri: { type: "string" },
                        line: { type: "integer" },
                        col: { type: "integer" }
                      },
                      required: ["uri"]
                    }
                  ]
                }
              }
            }
          },
          outputSchema: {
            type: "object",
            properties: {
              count: { type: "integer" },
              files: { type: "array" }
            }
          },
          annotations: { readOnlyHint: true },
          handler: async (args) => {
            let targets = [];
            if (Array.isArray(args?.files)) {
              for (let item of args.files) {
                if (typeof item === "string") {
                  targets.push({ uri: toUri(item) });
                } else if (item && typeof item.uri === "string") {
                  targets.push({ uri: toUri(item.uri), line: item.line, col: item.col });
                } else {
                  return errorResult("files entries must be strings or { uri, line?, col? }");
                }
              }
            } else if (typeof args?.uri === "string") {
              targets.push({ uri: toUri(args.uri), line: args.line, col: args.col });
            } else {
              return errorResult("uri or files is required");
            }
            if (targets.length === 0) return errorResult("no files to open");
            let opened = [];
            for (let target of targets) {
              let denied = checkPath(target.uri);
              if (denied) return errorResult(denied);
              let u2 = u.parse(target.uri);
              if (typeof target.line === "number") {
                let line = Math.max(1, Math.floor(target.line));
                let fragment = String(line);
                if (typeof target.col === "number" && target.col > 0) {
                  fragment += "," + Math.floor(target.col);
                }
                u2 = u2.with({ fragment });
              }
              try {
                await workspace_default.openResource(u2.toString());
              } catch (e2) {
                return errorResult(`Failed to open ${target.uri}: ${e2 instanceof Error ? e2.message : String(e2)}`);
              }
              opened.push({ uri: target.uri, line: target.line, col: target.col });
            }
            let result = { count: opened.length, files: opened };
            return textResult(JSON.stringify(result, null, 2), result);
          }
        }
      ];
    }
    var logger50, MAX_READ_BYTES;
    var init_document2 = __esm({
      "src/mcp/tools/document.ts"() {
        "use strict";
        init_main();
        init_esm();
        init_languages();
        init_logger();
        init_array();
        init_fs();
        init_node();
        init_workspace();
        init_util6();
        logger50 = createLogger("mcp-document");
        MAX_READ_BYTES = 2 * 1024 * 1024;
      }
    });
    
    // src/mcp/tools/queryCache.ts
    var QueryCache;
    var init_queryCache = __esm({
      "src/mcp/tools/queryCache.ts"() {
        "use strict";
        QueryCache = class {
          constructor(options3) {
            this.options = options3;
          }
          options;
          entries = /* @__PURE__ */ new Map();
          get size() {
            return this.entries.size;
          }
          get(key) {
            let entry = this.entries.get(key);
            if (!entry) return void 0;
            if (Date.now() >= entry.expires) {
              this.entries.delete(key);
              return void 0;
            }
            this.entries.delete(key);
            this.entries.set(key, entry);
            return entry.value;
          }
          set(key, value) {
            this.entries.delete(key);
            this.entries.set(key, { value, expires: Date.now() + this.options.ttlMs });
            while (this.entries.size > this.options.maxEntries) {
              let oldest = this.entries.keys().next().value;
              if (oldest === void 0) break;
              this.entries.delete(oldest);
            }
          }
          /**
           * Remove every entry belonging to a document uri. Keys start with
           * `uri + '\0'` and uris never contain NUL, so the prefix check is exact.
           */
          deleteUri(uri) {
            let prefix2 = uri + "\0";
            for (let key of this.entries.keys()) {
              if (key.startsWith(prefix2)) this.entries.delete(key);
            }
          }
          clear() {
            this.entries.clear();
          }
          dispose() {
            this.clear();
          }
        };
      }
    });
    
    // src/mcp/tools/lsp.ts
    function maxResultsFromArgs(args, fallback) {
      let n2 = args?.maxResults;
      if (typeof n2 !== "number" || !isFinite(n2)) return fallback;
      return Math.min(Math.max(1, Math.floor(n2)), MAX_RESULTS_HARD_LIMIT);
    }
    function limitResults(list2, maxResults) {
      let all = Array.isArray(list2) ? list2 : [];
      if (all.length > maxResults) {
        return { items: all.slice(0, maxResults), total: all.length, truncated: true };
      }
      return { items: all, total: all.length, truncated: false };
    }
    function positionFromArgs(args, key = "position") {
      let p2 = args?.[key];
      if (!p2 || typeof p2.line !== "number" || typeof p2.character !== "number") return null;
      return Position.create(p2.line, p2.character);
    }
    function rangeFromArgs(args, key = "range") {
      let r2 = args?.[key];
      if (!r2 || !r2.start || !r2.end) return null;
      let start = positionFromArgs(r2, "start");
      let end = positionFromArgs(r2, "end");
      if (!start || !end) return null;
      return Range.create(start, end);
    }
    function fullRange(doc) {
      const end = Position.create(doc.lineCount, 0);
      return Range.create(Position.create(0, 0), end);
    }
    function hasProvider(name2, doc) {
      try {
        return languages_default.hasProvider(name2, doc.textDocument);
      } catch (_e) {
        return false;
      }
    }
    async function resolvePositionedDoc(args) {
      let ref = await resolveDocument(args?.uri, true);
      if (ref.error) return { doc: void 0, uri: ref.uri, error: ref.error };
      let doc = ref.doc;
      let pos = positionFromArgs(args);
      if (!pos) return { doc, uri: ref.uri, error: "position {line, character} is required" };
      doc._forceSync();
      return { doc, uri: ref.uri, position: pos };
    }
    function locationText(label, items, limited) {
      if (items.length === 0) return `${label}: no results`;
      let lines = items.map((item, index) => {
        let pos = item.range?.start;
        let where = pos ? `${pos.line + 1}:${pos.character + 1}` : "";
        return `${index + 1}. ${item.uri} ${where}`;
      });
      let shown = `${items.length} result${items.length > 1 ? "s" : ""}`;
      if (limited && limited.total > items.length) shown = `${items.length} of ${limited.total} results`;
      let suffix = limited?.truncated ? " (truncated: raise maxResults to return more)" : "";
      return `${label}: ${shown}${suffix}
    ${lines.join("\n")}`;
    }
    function normalizeLocations(result) {
      let locations = [];
      let list2 = Array.isArray(result) ? result : result ? [result] : [];
      for (let loc of list2) {
        if (!loc || typeof loc !== "object") continue;
        if (typeof loc.targetUri === "string") {
          let item = { uri: loc.targetUri, range: loc.targetSelectionRange ?? loc.targetRange };
          if (loc.targetRange) item.targetRange = loc.targetRange;
          if (locations.find((o2) => o2.uri === item.uri && equals(o2.range, item.range))) continue;
          locations.push(item);
        } else if (typeof loc.uri === "string" && loc.range) {
          if (locations.find((o2) => o2.uri === loc.uri && equals(o2.range, loc.range))) continue;
          locations.push({ uri: loc.uri, range: loc.range });
        }
      }
      return locations;
    }
    function configuredServiceId(doc) {
      let config = workspace_default.getConfiguration("mcp");
      let map = config.get("languageServiceMap", {});
      let id2 = map[doc.languageId];
      return typeof id2 === "string" && id2.length > 0 ? id2 : void 0;
    }
    function disableLanguageTrace(doc) {
      let serviceId = configuredServiceId(doc);
      if (!serviceId) return;
      let service = services_default.getService(serviceId);
      if (service?.client) service.client.trace = import_node4.Trace.Off;
    }
    function queryCacheKey(variant, doc, pos) {
      let version2 = doc.version;
      if (pos) {
        return `${doc.uri}\0${variant}\0${version2}\0${pos.line}\0${pos.character}`;
      }
      return `${doc.uri}\0${variant}\0${version2}\0-1\0-1`;
    }
    function queryVariant(method, serviceId) {
      return `${method}:${serviceId ?? ""}`;
    }
    function isErrorResult(result) {
      return result && typeof result === "object" && "error" in result;
    }
    async function withQueryCache(variant, doc, pos, fetch2) {
      let key = queryCacheKey(variant, doc, pos);
      let cached = lspQueryCache.get(key);
      if (cached !== void 0) return cached;
      let result = await fetch2();
      if (!isErrorResult(result)) lspQueryCache.set(key, result);
      return result;
    }
    function invalidateLspQueryCache(uri) {
      lspQueryCache.deleteUri(uri);
    }
    function getServiceLimiter(serviceId, limit) {
      let limiter = serviceLimiters.get(serviceId);
      if (!limiter) {
        limiter = new ServiceLimiter(limit);
        serviceLimiters.set(serviceId, limiter);
      } else {
        limiter.limit = limit;
      }
      return limiter;
    }
    function withServiceLimit(serviceId, limit, fn, token) {
      return getServiceLimiter(serviceId, limit).run(fn, token);
    }
    async function serviceCall(serviceId, method, params, token) {
      let service = services_default.getService(serviceId);
      if (!service || !service.client) return { error: `Language server "${serviceId}" not found or not running` };
      service.client.trace = import_node4.Trace.Off;
      let limit = workspace_default.getConfiguration("mcp").get("maxConcurrentRequests", 4);
      let limiter = getServiceLimiter(serviceId, limit);
      let maxStuck = limit > 0 ? limiter.limit : MAX_STUCK_REQUESTS;
      if (limiter.stuckCount >= maxStuck) {
        return {
          error: `Language server "${serviceId}" has ${limiter.stuckCount} stuck requests, new queries rejected. Restart the language server to recover.`
        };
      }
      try {
        let result = await withServiceLimit(serviceId, limit, () => services_default.sendRequest(serviceId, method, params, token), token);
        return { result };
      } catch (e2) {
        return { error: e2 instanceof Error ? e2.message : String(e2) };
      }
    }
    function referencesQuery(includeDeclaration) {
      return {
        provider: "reference" /* Reference */,
        label: "References",
        cacheKey: `references:${includeDeclaration}`,
        fetch: (doc, pos, token) => languages_default.getReferences(doc.textDocument, { includeDeclaration }, pos, token),
        serviceMethod: "textDocument/references",
        buildParams: (doc, pos) => ({
          textDocument: { uri: doc.uri },
          position: pos,
          context: { includeDeclaration }
        })
      };
    }
    async function getLocationResult(doc, pos, serviceId, query, token) {
      disableLanguageTrace(doc);
      return withQueryCache(queryVariant(query.cacheKey, serviceId), doc, pos, async () => {
        if (serviceId) {
          let call = await serviceCall(serviceId, query.serviceMethod, query.buildParams(doc, pos), token);
          if (call.error) return { error: `${query.label} request failed: ${call.error}` };
          return { locations: normalizeLocations(call.result) };
        }
        if (!hasProvider(query.provider, doc)) {
          return { error: `${query.label} provider not found for ${doc.uri}` };
        }
        try {
          return { locations: await query.fetch(doc, pos, token) };
        } catch (e2) {
          logger51.error(`${query.label} request failed`, e2);
          return { error: `${query.label} request failed: ${e2 instanceof Error ? e2.message : String(e2)}` };
        }
      });
    }
    async function locationResultBody(doc, pos, serviceId, query, maxResults, token) {
      let res = await getLocationResult(doc, pos, serviceId, query, token);
      if ("error" in res) return res;
      let limited = limitResults(res.locations, maxResults);
      let items = limited.items.map((loc) => ({ uri: loc.uri, range: loc.range }));
      return { count: limited.total, returned: items.length, truncated: limited.truncated, locations: items };
    }
    async function locationTool(args, context, query, defaultMaxResults = 200) {
      let r2 = await resolvePositionedDoc(args);
      if (r2.error) return errorResult(r2.error);
      let doc = r2.doc;
      let pos = r2.position;
      let body = await locationResultBody(doc, pos, configuredServiceId(doc), query, maxResultsFromArgs(args, defaultMaxResults), context.token);
      if ("error" in body) return errorResult(body.error);
      let result = { uri: doc.uri, position: pos, ...body };
      return textResult(locationText(query.label, body.locations, { items: body.locations, total: body.count, truncated: body.truncated }), result);
    }
    function hoverContents(contents) {
      let list2 = Array.isArray(contents) ? contents : [contents];
      let parts = [];
      for (let item of list2) {
        if (typeof item === "string") {
          parts.push(item);
        } else if (item && typeof item === "object") {
          let markdown = item;
          if (typeof markdown.value === "string") {
            parts.push(markdown.value);
          }
        }
      }
      return parts;
    }
    function hoverSummary(hover) {
      return {
        contents: hoverContents(hover.contents),
        range: hover.range
      };
    }
    async function getHoverResult(doc, pos, serviceId, token) {
      disableLanguageTrace(doc);
      return withQueryCache(queryVariant("hover", serviceId), doc, pos, async () => {
        if (serviceId) {
          let call = await serviceCall(serviceId, "textDocument/hover", { textDocument: { uri: doc.uri }, position: pos }, token);
          if (call.error) return { error: `Hover request failed: ${call.error}` };
          return { hovers: call.result ? [call.result] : [] };
        }
        if (!hasProvider("hover" /* Hover */, doc)) return { error: `Hover provider not found for ${doc.uri}` };
        try {
          return { hovers: await languages_default.getHover(doc.textDocument, pos, token) };
        } catch (e2) {
          return { error: `Hover request failed: ${e2 instanceof Error ? e2.message : String(e2)}` };
        }
      });
    }
    function signatureSummary(help) {
      return {
        activeSignature: help?.activeSignature ?? -1,
        activeParameter: help?.activeParameter ?? -1,
        signatures: (help?.signatures || []).map((s2) => ({
          label: s2.label,
          documentation: typeof s2.documentation === "string" ? s2.documentation : s2.documentation?.value,
          parameters: (s2.parameters || []).map((p2) => ({
            label: p2.label,
            documentation: typeof p2.documentation === "string" ? p2.documentation : p2.documentation?.value
          }))
        }))
      };
    }
    async function getSignatureResult(doc, pos, serviceId, token) {
      disableLanguageTrace(doc);
      return withQueryCache(queryVariant("signature_help", serviceId), doc, pos, async () => {
        if (serviceId) {
          let call = await serviceCall(serviceId, "textDocument/signatureHelp", {
            textDocument: { uri: doc.uri },
            position: pos,
            context: { triggerKind: import_vscode_languageserver_protocol5.SignatureHelpTriggerKind.Invoked, isRetrigger: false }
          }, token);
          if (call.error) return { error: `Signature help request failed: ${call.error}` };
          return { help: call.result };
        }
        if (!hasProvider("signature" /* Signature */, doc)) return { error: `Signature help provider not found for ${doc.uri}` };
        try {
          let help = await languages_default.getSignatureHelp(doc.textDocument, pos, token, {
            triggerKind: import_vscode_languageserver_protocol5.SignatureHelpTriggerKind.Invoked,
            isRetrigger: false
          });
          return { help };
        } catch (e2) {
          return { error: `Signature help request failed: ${e2 instanceof Error ? e2.message : String(e2)}` };
        }
      });
    }
    function flattenSymbols(symbols, maxResults) {
      let flattened = [];
      let walk2 = (list2, depth) => {
        for (let s2 of list2 || []) {
          flattened.push({
            name: s2.name,
            kind: symbolKindName(s2.kind),
            detail: s2.detail,
            range: s2.range,
            selectionRange: s2.selectionRange,
            depth
          });
          walk2(s2.children, depth + 1);
        }
      };
      walk2(symbols || [], 0);
      return limitResults(flattened, maxResults);
    }
    async function getDocumentSymbolResult(doc, serviceId, token) {
      disableLanguageTrace(doc);
      return withQueryCache(queryVariant("document_symbols", serviceId), doc, null, async () => {
        if (serviceId) {
          let call = await serviceCall(serviceId, "textDocument/documentSymbol", { textDocument: { uri: doc.uri } }, token);
          if (call.error) return { error: `Document symbol request failed: ${call.error}` };
          return { symbols: normalizeDocumentSymbols(call.result) };
        }
        if (!hasProvider("documentSymbol" /* DocumentSymbol */, doc)) return { error: `Document symbol provider not found for ${doc.uri}` };
        try {
          return { symbols: await languages_default.getDocumentSymbol(doc.textDocument, token) };
        } catch (e2) {
          return { error: `Document symbol request failed: ${e2 instanceof Error ? e2.message : String(e2)}` };
        }
      });
    }
    function normalizeDocumentSymbols(result) {
      if (!Array.isArray(result) || result.length === 0) return null;
      return DocumentSymbol.is(result[0]) ? result : asDocumentSymbolTree(result);
    }
    async function runBatchMethod(method, doc, pos, serviceId, maxResults, includeDeclaration, token) {
      switch (method) {
        case "hover": {
          let res = await getHoverResult(doc, pos, serviceId, token);
          if ("error" in res) return { error: res.error };
          return { count: res.hovers.length, hovers: res.hovers.map(hoverSummary) };
        }
        case "signature_help": {
          let res = await getSignatureResult(doc, pos, serviceId, token);
          if ("error" in res) return { error: res.error };
          return signatureSummary(res.help);
        }
        case "references":
          return await locationResultBody(doc, pos, serviceId, referencesQuery(includeDeclaration), maxResults, token);
        case "definition":
        case "declaration":
        case "type_definition":
        case "implementation":
          return await locationResultBody(doc, pos, serviceId, LOCATION_QUERIES[method], maxResults, token);
        case "document_symbols": {
          let res = await getDocumentSymbolResult(doc, serviceId, token);
          if ("error" in res) return { error: res.error };
          let limited = flattenSymbols(res.symbols, maxResults);
          return { count: limited.total, returned: limited.items.length, truncated: limited.truncated, symbols: limited.items };
        }
        default:
          return { error: `Unknown batch method: ${method}` };
      }
    }
    function countTextEdits(edit2) {
      let count = 0;
      if (edit2?.changes && typeof edit2.changes === "object") {
        for (let key of Object.keys(edit2.changes)) {
          count += Array.isArray(edit2.changes[key]) ? edit2.changes[key].length : 0;
        }
      }
      if (Array.isArray(edit2?.documentChanges)) {
        for (let change of edit2.documentChanges) {
          if (change?.edits && Array.isArray(change.edits)) count += change.edits.length;
        }
      }
      return count;
    }
    function codeActionSummary(action) {
      return {
        title: action.title,
        kind: action.kind,
        isPreferred: action.isPreferred === true,
        disabled: action.disabled ? { reason: action.disabled.reason } : void 0,
        hasEdit: action.edit !== void 0,
        command: action.command ? {
          command: action.command.command,
          title: action.command.title
        } : void 0
      };
    }
    function hoverResultText(hovers) {
      return hovers.map((h2) => h2.contents.join("\n\n")).filter(Boolean).join("\n\n---\n\n") || "No hover content";
    }
    function signatureResultText(result) {
      if (result.signatures.length === 0) return "No signature help";
      return result.signatures.map((signature, index) => {
        let mark = index === result.activeSignature ? "*" : " ";
        return `${mark} ${signature.label}`;
      }).join("\n");
    }
    function documentSymbolsText(limited) {
      if (limited.items.length === 0) return "No document symbols";
      return limited.items.map((symbol) => `${"  ".repeat(symbol.depth)}${symbol.name} (${symbol.kind})`).join("\n") + (limited.truncated ? `
    
    Truncated: showing ${limited.items.length} of ${limited.total} symbols (raise maxResults to return more)` : "");
    }
    function workspaceSymbolsText(limited) {
      if (limited.items.length === 0) return "No workspace symbols";
      return limited.items.map((symbol) => `${symbol.name} (${symbol.kind})${symbol.containerName ? " in " + symbol.containerName : ""}`).join("\n") + (limited.truncated ? `
    
    Truncated: showing ${limited.items.length} of ${limited.total} symbols (raise maxResults to return more)` : "");
    }
    function batchResultText(method, result) {
      if (result?.error) return `${method}: error - ${result.error}`;
      if (result?.locations) return `${method}: ${result.returned} of ${result.count} location(s)${result.truncated ? " (truncated)" : ""}`;
      if (result?.symbols) return `${method}: ${result.returned} of ${result.count} symbol(s)${result.truncated ? " (truncated)" : ""}`;
      if (result?.hovers) return `${method}: ${result.count} hover item(s)`;
      if (result?.signatures) return `${method}: ${result.signatures.length} signature(s)`;
      return `${method}: done`;
    }
    function diagnosticText(diagnostic) {
      let severity = ["Error", "Warning", "Information", "Hint"][(diagnostic.severity ?? 1) - 1] ?? "Unknown";
      let pos = diagnostic.range.start;
      let codeText = "";
      let code = diagnostic.code;
      if (code != null) {
        codeText = typeof code === "object" ? String(code.value) : String(code);
      }
      return `${severity} ${pos.line + 1}:${pos.character + 1} ${diagnostic.message}${codeText ? ` [${codeText}]` : ""}`;
    }
    function diagnosticsText(limited) {
      if (limited.items.length === 0) return "No diagnostics";
      return limited.items.map(diagnosticText).join("\n") + (limited.truncated ? `
    
    Truncated: showing ${limited.items.length} of ${limited.total} diagnostics (raise maxResults to return more)` : "");
    }
    function codeActionsText(actions, limited) {
      if (actions.length === 0) return "No code actions";
      return actions.map((action, index) => `${index}. ${action.title}${action.disabled ? " (disabled: " + action.disabled.reason + ")" : ""}`).join("\n") + (limited.truncated ? `
    
    Truncated: showing ${actions.length} of ${limited.total} actions (raise maxResults to return more)` : "");
    }
    function selectCodeAction(actions, args) {
      let action;
      if (typeof args?.title === "string") {
        action = actions.find((item) => item.title === args.title);
        if (!action) return { error: `Code action not found: ${args.title}` };
      } else if (typeof args?.index === "number") {
        action = actions[args.index];
        if (!action) return { error: `Code action at index ${args.index} not found` };
      } else {
        return { error: "title or index is required" };
      }
      if (action.disabled) return { error: `Code action "${action.title}" is disabled: ${action.disabled.reason}` };
      return { action };
    }
    function serviceCapabilitySummary(stat, service) {
      let init = service?.client?.initializeResult;
      return {
        id: stat.id,
        state: stat.state,
        languageIds: stat.languageIds,
        capabilities: init?.capabilities ?? null,
        serverInfo: init?.serverInfo ?? null
      };
    }
    function symbolKindName(kind) {
      if (typeof kind === "number") {
        return SYMBOL_KIND_NAMES[kind] ?? String(kind);
      }
      if (typeof kind === "string") {
        let numeric2 = Number(kind);
        if (!isNaN(numeric2) && SYMBOL_KIND_NAMES[numeric2]) {
          return SYMBOL_KIND_NAMES[numeric2];
        }
        return kind;
      }
      return void 0;
    }
    async function getCodeActionList(args, context) {
      let ref = await resolveDocument(args?.uri, true);
      if (ref.error) return { actions: [], error: ref.error };
      let doc = ref.doc;
      doc._forceSync();
      disableLanguageTrace(doc);
      let range2 = rangeFromArgs(args) ?? fullRange(doc);
      let diagnostics = manager_default.getDiagnosticsInRange(doc.textDocument, range2);
      let codeActionContext = {
        diagnostics,
        triggerKind: CodeActionTriggerKind.Invoked
      };
      if (typeof args?.kind === "string") codeActionContext.only = [args.kind];
      let actions;
      try {
        actions = await languages_default.getCodeActions(doc.textDocument, range2, codeActionContext, context.token);
      } catch (e2) {
        return { doc, range: range2, actions: [], error: `Code action request failed: ${e2 instanceof Error ? e2.message : String(e2)}` };
      }
      return { doc, range: range2, actions: actions || [] };
    }
    function positionInputSchema(extra) {
      return {
        type: "object",
        properties: {
          uri: { type: "string" },
          position: { $ref: "#/definitions/Position" },
          maxResults: { type: "integer", minimum: 1, maximum: MAX_RESULTS_HARD_LIMIT, description: "Maximum number of results to return (default 200)." },
          ...extra
        },
        required: ["position"]
      };
    }
    function locationOutputSchema(locations) {
      return {
        type: "object",
        properties: {
          uri: { type: "string" },
          position: { type: "object" },
          count: { type: "integer", description: "Total number of results found." },
          returned: { type: "integer", description: "Number of results returned, may be less than count when truncated." },
          truncated: { type: "boolean", description: "True when results were truncated to the maxResults limit." },
          locations: { type: "array", items: locations ?? { type: "object" } }
        }
      };
    }
    function createLspTools() {
      return [
        {
          name: "lsp/hover",
          title: "Hover",
          description: "Get hover information (signature, documentation) at a position from the language server.",
          inputSchema: {
            type: "object",
            properties: {
              uri: { type: "string" },
              position: { $ref: "#/definitions/Position" }
            },
            required: ["position"]
          },
          outputSchema: {
            type: "object",
            properties: {
              uri: { type: "string" },
              position: { type: "object" },
              count: { type: "integer" },
              hovers: {
                type: "array",
                items: {
                  type: "object",
                  properties: {
                    contents: { type: "array", items: { type: "string" } },
                    range: { type: "object" }
                  }
                }
              }
            }
          },
          annotations: { readOnlyHint: true, idempotentHint: true },
          handler: async (args, context) => {
            let r2 = await resolvePositionedDoc(args);
            if (r2.error) return errorResult(r2.error);
            let doc = r2.doc;
            let pos = r2.position;
            let res = await getHoverResult(doc, pos, configuredServiceId(doc), context.token);
            if ("error" in res) return errorResult(res.error);
            let list2 = res.hovers.map(hoverSummary);
            let text = hoverResultText(list2);
            let result = { uri: doc.uri, position: pos, count: list2.length, hovers: list2 };
            return textResult(text, result);
          }
        },
        {
          name: "lsp/signature_help",
          title: "Signature Help",
          description: "Get signature help (parameter labels and documentation) at a position.",
          inputSchema: {
            type: "object",
            properties: {
              uri: { type: "string" },
              position: { $ref: "#/definitions/Position" }
            },
            required: ["position"]
          },
          outputSchema: {
            type: "object",
            properties: {
              uri: { type: "string" },
              position: { type: "object" },
              activeSignature: { type: "integer" },
              activeParameter: { type: "integer" },
              signatures: {
                type: "array",
                items: {
                  type: "object",
                  properties: {
                    label: { type: "string" },
                    documentation: { type: "string" },
                    parameters: { type: "array", items: { type: "object" } }
                  }
                }
              }
            }
          },
          annotations: { readOnlyHint: true, idempotentHint: true },
          handler: async (args, context) => {
            let r2 = await resolvePositionedDoc(args);
            if (r2.error) return errorResult(r2.error);
            let doc = r2.doc;
            let pos = r2.position;
            let res = await getSignatureResult(doc, pos, configuredServiceId(doc), context.token);
            if ("error" in res) return errorResult(res.error);
            let result = { uri: doc.uri, position: pos, ...signatureSummary(res.help) };
            let text = signatureResultText(result);
            return textResult(text, result);
          }
        },
        {
          name: "lsp/document_symbols",
          title: "Document Symbols",
          description: "List symbols in a document (flattened with kind and ranges).",
          inputSchema: {
            type: "object",
            properties: {
              uri: { type: "string" },
              maxResults: { type: "integer", minimum: 1, maximum: MAX_RESULTS_HARD_LIMIT, description: "Maximum number of symbols to return (default 500)." }
            }
          },
          outputSchema: {
            type: "object",
            properties: {
              uri: { type: "string" },
              count: { type: "integer", description: "Total number of symbols found." },
              returned: { type: "integer", description: "Number of symbols returned, may be less than count when truncated." },
              truncated: { type: "boolean", description: "True when results were truncated to the maxResults limit." },
              symbols: { type: "array", items: { type: "object" } }
            }
          },
          annotations: { readOnlyHint: true, idempotentHint: true },
          handler: async (args, context) => {
            let ref = await resolveDocument(args?.uri, true);
            if (ref.error) return errorResult(ref.error);
            let doc = ref.doc;
            doc._forceSync();
            let res = await getDocumentSymbolResult(doc, configuredServiceId(doc), context.token);
            if ("error" in res) return errorResult(res.error);
            let limited = flattenSymbols(res.symbols, maxResultsFromArgs(args, 500));
            let result = { uri: doc.uri, count: limited.total, returned: limited.items.length, truncated: limited.truncated, symbols: limited.items };
            let text = documentSymbolsText(limited);
            return textResult(text, result);
          }
        },
        {
          name: "lsp/workspace_symbols",
          title: "Workspace Symbols",
          description: "Search workspace symbols by query string.",
          inputSchema: {
            type: "object",
            properties: {
              query: { type: "string" },
              maxResults: { type: "integer", minimum: 1, maximum: MAX_RESULTS_HARD_LIMIT, description: "Maximum number of symbols to return (default 500)." }
            },
            required: ["query"]
          },
          outputSchema: {
            type: "object",
            properties: {
              query: { type: "string" },
              count: { type: "integer", description: "Total number of symbols found." },
              returned: { type: "integer", description: "Number of symbols returned, may be less than count when truncated." },
              truncated: { type: "boolean", description: "True when results were truncated to the maxResults limit." },
              symbols: { type: "array", items: { type: "object" } }
            }
          },
          annotations: { readOnlyHint: true, idempotentHint: true },
          handler: async (args, context) => {
            let query = args?.query;
            if (typeof query !== "string" || query.length === 0) return errorResult("query is required");
            let symbols;
            try {
              symbols = await languages_default.getWorkspaceSymbols(query, context.token);
            } catch (e2) {
              return errorResult(`Workspace symbol request failed: ${e2 instanceof Error ? e2.message : String(e2)}`);
            }
            let list2 = (symbols || []).map((s2) => ({
              name: s2.name,
              kind: symbolKindName(s2.kind),
              containerName: s2.containerName,
              location: s2.location
            }));
            let limited = limitResults(list2, maxResultsFromArgs(args, 500));
            let result = { query, count: limited.total, returned: limited.items.length, truncated: limited.truncated, symbols: limited.items };
            let text = workspaceSymbolsText(limited);
            return textResult(text, result);
          }
        },
        {
          name: "lsp/definition",
          title: "Definition",
          description: "Find definitions at a position.",
          inputSchema: positionInputSchema(),
          outputSchema: {
            type: "object",
            properties: {
              uri: { type: "string" },
              position: { type: "object" },
              count: { type: "integer", description: "Total number of results found." },
              returned: { type: "integer", description: "Number of results returned, may be less than count when truncated." },
              truncated: { type: "boolean", description: "True when results were truncated to the maxResults limit." },
              locations: {
                type: "array",
                items: {
                  type: "object",
                  properties: {
                    uri: { type: "string" },
                    range: { type: "object" }
                  }
                }
              }
            }
          },
          annotations: { readOnlyHint: true, idempotentHint: true },
          handler: (args, context) => locationTool(args, context, LOCATION_QUERIES.definition)
        },
        {
          name: "lsp/declaration",
          title: "Declaration",
          description: "Find declarations at a position.",
          inputSchema: positionInputSchema(),
          outputSchema: locationOutputSchema(),
          annotations: { readOnlyHint: true, idempotentHint: true },
          handler: (args, context) => locationTool(args, context, LOCATION_QUERIES.declaration)
        },
        {
          name: "lsp/type_definition",
          title: "Type Definition",
          description: "Find type definitions at a position.",
          inputSchema: positionInputSchema(),
          outputSchema: locationOutputSchema(),
          annotations: { readOnlyHint: true, idempotentHint: true },
          handler: (args, context) => locationTool(args, context, LOCATION_QUERIES.type_definition)
        },
        {
          name: "lsp/implementation",
          title: "Implementation",
          description: "Find implementations at a position.",
          inputSchema: positionInputSchema(),
          outputSchema: locationOutputSchema(),
          annotations: { readOnlyHint: true, idempotentHint: true },
          handler: (args, context) => locationTool(args, context, LOCATION_QUERIES.implementation)
        },
        {
          name: "lsp/references",
          title: "References",
          description: "Find references at a position, optionally including the declaration.",
          inputSchema: positionInputSchema({
            includeDeclaration: { type: "boolean", default: true }
          }),
          outputSchema: locationOutputSchema(),
          annotations: { readOnlyHint: true, idempotentHint: true },
          handler: (args, context) => locationTool(args, context, referencesQuery(args?.includeDeclaration !== false))
        },
        {
          name: "lsp/batch",
          title: "Batch LSP Queries",
          description: "Run several LSP queries on one document in a single call, executed in parallel. methods: hover, signature_help, definition, declaration, type_definition, implementation, references, document_symbols.",
          inputSchema: {
            type: "object",
            properties: {
              uri: { type: "string" },
              position: { $ref: "#/definitions/Position" },
              methods: {
                type: "array",
                items: { type: "string" },
                minItems: 1,
                description: "LSP queries to run in parallel."
              },
              includeDeclaration: { type: "boolean", default: true, description: "Whether references includes the declaration." },
              maxResults: { type: "integer", minimum: 1, maximum: MAX_RESULTS_HARD_LIMIT, description: "Maximum results per list method (default 200)." }
            },
            required: ["methods"]
          },
          outputSchema: {
            type: "object",
            properties: {
              uri: { type: "string" },
              position: { type: "object" },
              results: { type: "object" }
            }
          },
          annotations: { readOnlyHint: true, idempotentHint: true },
          handler: async (args, context) => {
            let methods2 = args?.methods;
            if (!Array.isArray(methods2) || methods2.length === 0) return errorResult("methods is required");
            for (let m2 of methods2) {
              if (typeof m2 !== "string" || !BATCH_METHODS.includes(m2)) return errorResult(`Unknown batch method: ${String(m2)}`);
            }
            let ref = await resolveDocument(args?.uri, true);
            if (ref.error) return errorResult(ref.error);
            let doc = ref.doc;
            let pos = positionFromArgs(args);
            let needsPosition = methods2.some((m2) => BATCH_POSITION_METHODS.has(m2));
            if (needsPosition && !pos) return errorResult("position {line, character} is required");
            doc._forceSync();
            let serviceId = configuredServiceId(doc);
            let maxResults = maxResultsFromArgs(args, 200);
            let includeDeclaration = args?.includeDeclaration !== false;
            let results = {};
            await Promise.all(methods2.map(async (m2) => {
              try {
                results[m2] = await runBatchMethod(m2, doc, pos, serviceId, maxResults, includeDeclaration, context.token);
              } catch (e2) {
                results[m2] = { error: `Batch method ${m2} failed: ${e2 instanceof Error ? e2.message : String(e2)}` };
              }
            }));
            let text = methods2.map((method) => batchResultText(method, results[method])).join("\n");
            let result = { uri: doc.uri, position: pos ?? null, results };
            return textResult(text, result);
          }
        },
        {
          name: "lsp/diagnostics",
          title: "Document Diagnostics",
          description: "Get diagnostics for a document (optionally filtered to a range).",
          inputSchema: {
            type: "object",
            properties: {
              uri: { type: "string" },
              range: { $ref: "#/definitions/Range" },
              maxResults: { type: "integer", minimum: 1, maximum: MAX_RESULTS_HARD_LIMIT, description: "Maximum number of diagnostics to return (default 100)." }
            }
          },
          outputSchema: {
            type: "object",
            properties: {
              uri: { type: "string" },
              count: { type: "integer", description: "Total number of diagnostics found." },
              returned: { type: "integer", description: "Number of diagnostics returned, may be less than count when truncated." },
              truncated: { type: "boolean", description: "True when results were truncated to the maxResults limit." },
              diagnostics: { type: "array", items: { type: "object" } }
            }
          },
          annotations: { readOnlyHint: true, idempotentHint: true },
          handler: async (args) => {
            let ref = await resolveDocument(args?.uri, false);
            if (ref.error) return errorResult(ref.error);
            if (!ref.doc) return errorResult(`Document is not open: ${ref.uri}`);
            let doc = ref.doc;
            let diagnostics = [];
            try {
              diagnostics = manager_default.getDiagnosticsInRange(doc.textDocument, rangeFromArgs(args));
            } catch (e2) {
              return errorResult(`Failed to read diagnostics: ${e2 instanceof Error ? e2.message : String(e2)}`);
            }
            let limited = limitResults(diagnostics, maxResultsFromArgs(args, 100));
            let result = { uri: ref.uri, count: limited.total, returned: limited.items.length, truncated: limited.truncated, diagnostics: limited.items };
            let text = diagnosticsText(limited);
            return textResult(text, result);
          }
        },
        {
          name: "lsp/code_actions",
          title: "Code Actions",
          description: "List available code actions for a document range (diagnostics-based).",
          inputSchema: {
            type: "object",
            properties: {
              uri: { type: "string" },
              range: { $ref: "#/definitions/Range" },
              kind: { type: "string", description: 'Optional CodeActionKind filter, e.g. "source.organizeImports".' },
              maxResults: { type: "integer", minimum: 1, maximum: MAX_RESULTS_HARD_LIMIT, description: "Maximum number of actions to return (default 100)." }
            }
          },
          outputSchema: {
            type: "object",
            properties: {
              uri: { type: "string" },
              count: { type: "integer", description: "Total number of actions found." },
              returned: { type: "integer", description: "Number of actions returned, may be less than count when truncated." },
              truncated: { type: "boolean", description: "True when results were truncated to the maxResults limit." },
              actions: {
                type: "array",
                items: {
                  type: "object",
                  properties: {
                    title: { type: "string" },
                    kind: { type: "string" },
                    isPreferred: { type: "boolean" },
                    disabled: { type: "object" },
                    hasEdit: { type: "boolean" },
                    command: { type: "object" }
                  }
                }
              }
            }
          },
          annotations: { readOnlyHint: true, idempotentHint: true },
          handler: async (args, context) => {
            let list2 = await getCodeActionList(args, context);
            if (list2.error) return errorResult(list2.error);
            let limited = limitResults(list2.actions, maxResultsFromArgs(args, 100));
            let actions = limited.items.map(codeActionSummary);
            let result = { uri: list2.doc.uri, count: limited.total, returned: actions.length, truncated: limited.truncated, actions };
            let text = codeActionsText(actions, limited);
            return textResult(text, result);
          }
        },
        {
          name: "lsp/apply_code_action",
          title: "Apply Code Action",
          description: "Apply a code action by title or index from lsp/code_actions. Applies the edit or executes the command.",
          inputSchema: {
            type: "object",
            properties: {
              uri: { type: "string" },
              range: { $ref: "#/definitions/Range" },
              kind: { type: "string" },
              title: { type: "string", description: "Exact action title to apply." },
              index: { type: "integer", description: "Index in the lsp/code_actions list." }
            }
          },
          outputSchema: {
            type: "object",
            properties: {
              uri: { type: "string" },
              title: { type: "string" },
              applied: { type: "boolean" },
              actions: { type: "array", items: { type: "string" } }
            }
          },
          annotations: { destructiveHint: true },
          handler: async (args, context) => {
            let list2 = await getCodeActionList(args, context);
            if (list2.error) return errorResult(list2.error);
            let selection = selectCodeAction(list2.actions, args);
            if (selection.error) return errorResult(selection.error);
            let selected = selection.action;
            let resolved;
            try {
              resolved = await languages_default.resolveCodeAction(selected, context.token);
            } catch (e2) {
              return errorResult(`Failed to resolve code action: ${e2 instanceof Error ? e2.message : String(e2)}`);
            }
            if (!resolved) return errorResult("Failed to resolve code action");
            let applied = [];
            if (resolved.edit) {
              try {
                await workspace_default.applyEdit(resolved.edit);
                applied.push("edit");
              } catch (e2) {
                return errorResult(`Failed to apply code action edit: ${e2 instanceof Error ? e2.message : String(e2)}`);
              }
            }
            if (resolved.command) {
              try {
                await commands_default.execute(resolved.command);
                applied.push("command");
              } catch (e2) {
                return errorResult(`Failed to execute code action command: ${e2 instanceof Error ? e2.message : String(e2)}`);
              }
            }
            let result = { uri: list2.doc.uri, title: selected.title, applied: true, actions: applied };
            return textResult(JSON.stringify(result, null, 2), result);
          }
        },
        {
          name: "lsp/rename",
          title: "Rename Symbol",
          description: "Rename the symbol at a position across the workspace using the language server. preview=true returns the WorkspaceEdit without applying.",
          inputSchema: {
            type: "object",
            properties: {
              uri: { type: "string" },
              position: { $ref: "#/definitions/Position" },
              newName: { type: "string" },
              preview: { type: "boolean", default: false }
            },
            required: ["position", "newName"]
          },
          outputSchema: {
            type: "object",
            properties: {
              uri: { type: "string" },
              preview: { type: "boolean" },
              applied: { type: "boolean" },
              newName: { type: "string" },
              files: { type: "array", items: { type: "string" } },
              editCount: { type: "integer" },
              edit: { type: "object" }
            }
          },
          annotations: { destructiveHint: true, idempotentHint: true },
          handler: async (args, context) => {
            let r2 = await resolvePositionedDoc(args);
            if (r2.error) return errorResult(r2.error);
            let doc = r2.doc;
            let pos = r2.position;
            let newName = args?.newName;
            if (typeof newName !== "string" || newName.length === 0) return errorResult("newName is required");
            let prepared;
            let serviceId = configuredServiceId(doc);
            if (serviceId) {
              let call = await serviceCall(serviceId, "textDocument/prepareRename", { textDocument: { uri: doc.uri }, position: pos }, context.token);
              if (call.error) return errorResult(`Rename prepare failed: ${call.error}`);
              prepared = call.result;
              if (prepared == null) return errorResult("Invalid position for rename");
            } else {
              if (!hasProvider("rename" /* Rename */, doc)) return errorResult(`Rename provider not found for ${doc.uri}`);
              try {
                prepared = await languages_default.prepareRename(doc.textDocument, pos, context.token);
              } catch (e2) {
                return errorResult(`Rename prepare failed: ${e2 instanceof Error ? e2.message : String(e2)}`);
              }
              if (prepared === false) return errorResult("Invalid position for rename");
            }
            let edit2;
            if (serviceId) {
              let call = await serviceCall(serviceId, "textDocument/rename", {
                textDocument: { uri: doc.uri },
                position: pos,
                newName
              }, context.token);
              if (call.error) return errorResult(`Rename request failed: ${call.error}`);
              edit2 = call.result;
            } else {
              try {
                edit2 = await languages_default.provideRenameEdits(doc.textDocument, pos, newName, context.token);
              } catch (e2) {
                return errorResult(`Rename request failed: ${e2 instanceof Error ? e2.message : String(e2)}`);
              }
            }
            if (!edit2) return errorResult("Rename provider returned no edits");
            let files = collectEditUris(edit2);
            let editCount = countTextEdits(edit2);
            if (args?.preview === true) {
              let result2 = { uri: doc.uri, preview: true, applied: false, newName, files, editCount, edit: edit2 };
              return textResult(JSON.stringify(result2, null, 2), result2);
            }
            let applied;
            try {
              applied = await workspace_default.applyEdit(edit2);
            } catch (e2) {
              return errorResult(`Failed to apply rename: ${e2 instanceof Error ? e2.message : String(e2)}`);
            }
            let result = { uri: doc.uri, preview: false, applied, newName, files, editCount };
            return textResult(JSON.stringify(result, null, 2), result);
          }
        },
        {
          name: "lsp/execute_command",
          title: "Execute Language Server Command",
          description: "Execute a workspace/executeCommand on a language server by service id.",
          inputSchema: {
            type: "object",
            properties: {
              serviceId: { type: "string" },
              command: { type: "string" },
              arguments: { type: "array" }
            },
            required: ["serviceId", "command"]
          },
          outputSchema: {
            type: "object",
            properties: {
              command: { type: "string" },
              result: {}
            }
          },
          annotations: { openWorldHint: true },
          handler: async (args, context) => {
            let serviceId = args?.serviceId;
            let command = args?.command;
            if (typeof serviceId !== "string" || typeof command !== "string") return errorResult("serviceId and command are required");
            let service = services_default.getService(serviceId);
            if (!service || !service.client) return errorResult(`Language server "${serviceId}" not found or not running`);
            let result;
            try {
              result = await services_default.sendRequest(serviceId, "workspace/executeCommand", {
                command,
                arguments: Array.isArray(args?.arguments) ? args.arguments : []
              }, context.token);
            } catch (e2) {
              return errorResult(`Execute command failed: ${e2 instanceof Error ? e2.message : String(e2)}`);
            }
            return textResult(JSON.stringify(result ?? null, null, 2), { command, result });
          }
        },
        {
          name: "lsp/request",
          title: "Language Server Request",
          description: "Send an arbitrary LSP request to a language server by service id. Advanced: method and params follow the LSP specification.",
          inputSchema: {
            type: "object",
            properties: {
              serviceId: { type: "string" },
              method: { type: "string" },
              params: { type: "object" }
            },
            required: ["serviceId", "method"]
          },
          outputSchema: {
            type: "object",
            properties: {
              method: { type: "string" },
              result: {}
            }
          },
          annotations: { openWorldHint: true },
          handler: async (args, context) => {
            let serviceId = args?.serviceId;
            let method = args?.method;
            if (typeof serviceId !== "string" || typeof method !== "string") return errorResult("serviceId and method are required");
            let service = services_default.getService(serviceId);
            if (!service || !service.client) return errorResult(`Language server "${serviceId}" not found or not running`);
            let result;
            try {
              result = await services_default.sendRequest(serviceId, method, args?.params, context.token);
            } catch (e2) {
              return errorResult(`Request ${method} failed: ${e2 instanceof Error ? e2.message : String(e2)}`);
            }
            return textResult(JSON.stringify(result ?? null, null, 2), { method, result });
          }
        },
        {
          name: "lsp/capabilities",
          title: "Language Server Capabilities",
          description: "List running language servers and their capabilities (from initialize result).",
          inputSchema: {
            type: "object",
            properties: {
              serviceId: { type: "string", description: "Optional; list one server instead of all." }
            }
          },
          outputSchema: {
            type: "object",
            properties: {
              count: { type: "integer" },
              services: {
                type: "array",
                items: {
                  type: "object",
                  properties: {
                    id: { type: "string" },
                    state: { type: "string" },
                    languageIds: { type: "array", items: { type: "string" } },
                    capabilities: { type: "object" },
                    serverInfo: { type: "object" }
                  }
                }
              }
            }
          },
          annotations: { readOnlyHint: true, idempotentHint: true },
          handler: async () => {
            let all = services_default.getServiceStats();
            let servicesList = all.map((stat) => serviceCapabilitySummary(stat, services_default.getService(stat.id)));
            let result = { count: servicesList.length, services: servicesList };
            let text = servicesList.length === 0 ? "No language servers running" : servicesList.map((s2) => `${s2.id} [${s2.state}] ${s2.languageIds.join(",")}`).join("\n");
            return textResult(text, result);
          }
        }
      ];
    }
    var import_vscode_languageserver_protocol5, logger51, MAX_RESULTS_HARD_LIMIT, QUERY_CACHE_TTL_MS, QUERY_CACHE_MAX_ENTRIES, MAX_STUCK_REQUESTS, lspQueryCache, ServiceLimiter, serviceLimiters, LOCATION_QUERIES, BATCH_METHODS, BATCH_POSITION_METHODS, SYMBOL_KIND_NAMES;
    var init_lsp = __esm({
      "src/mcp/tools/lsp.ts"() {
        "use strict";
        init_main();
        import_vscode_languageserver_protocol5 = __toESM(require_api3());
        init_commands();
        init_manager();
        init_languages();
        init_logger();
        init_documentSymbolManager();
        init_services();
        init_protocol();
        init_object();
        init_workspace();
        init_queryCache();
        init_util6();
        logger51 = createLogger("mcp-lsp");
        MAX_RESULTS_HARD_LIMIT = 1e3;
        QUERY_CACHE_TTL_MS = 5e3;
        QUERY_CACHE_MAX_ENTRIES = 200;
        MAX_STUCK_REQUESTS = 16;
        lspQueryCache = new QueryCache({
          maxEntries: QUERY_CACHE_MAX_ENTRIES,
          ttlMs: QUERY_CACHE_TTL_MS
        });
        workspace_default.onDidChangeTextDocument((e2) => invalidateLspQueryCache(e2.textDocument.uri));
        workspace_default.onDidCloseTextDocument((doc) => invalidateLspQueryCache(doc.uri));
        ServiceLimiter = class {
          constructor(limit) {
            this.limit = limit;
          }
          limit;
          active = 0;
          waiting = [];
          abandoned = 0;
          /**
           * Running requests that were cancelled but have not settled yet. When
           * every slot is occupied by stuck requests the language server is
           * effectively unresponsive, so new queries fail fast instead of queueing
           * behind them forever.
           */
          get stuckCount() {
            return this.abandoned;
          }
          run(fn, token) {
            return new Promise((resolve, reject) => {
              if (token?.isCancellationRequested) {
                reject(new import_vscode_languageserver_protocol5.ResponseError(import_vscode_languageserver_protocol5.LSPErrorCodes.RequestCancelled, "Request got cancelled"));
                return;
              }
              let task = { cancelled: false, run: () => {
              } };
              let settled = false;
              let stuck = false;
              let disposable;
              if (token) {
                disposable = token.onCancellationRequested(() => {
                  if (task.cancelled || settled) return;
                  task.cancelled = true;
                  let idx = this.waiting.indexOf(task);
                  if (idx !== -1) {
                    this.waiting.splice(idx, 1);
                    if (disposable) disposable.dispose();
                    reject(new import_vscode_languageserver_protocol5.ResponseError(import_vscode_languageserver_protocol5.LSPErrorCodes.RequestCancelled, "Request got cancelled"));
                  } else {
                    this.abandoned++;
                    stuck = true;
                  }
                });
              }
              task.run = () => {
                let cleanup = () => {
                  settled = true;
                  this.active--;
                  if (stuck) this.abandoned--;
                  if (disposable) disposable.dispose();
                  this.pump();
                };
                Promise.resolve().then(fn).then(
                  (value) => {
                    cleanup();
                    resolve(value);
                  },
                  (error) => {
                    cleanup();
                    reject(error);
                  }
                );
              };
              this.waiting.push(task);
              this.pump();
            });
          }
          pump() {
            while ((this.limit <= 0 || this.active < this.limit) && this.waiting.length > 0) {
              this.active++;
              this.waiting.shift().run();
            }
          }
        };
        serviceLimiters = /* @__PURE__ */ new Map();
        LOCATION_QUERIES = {
          definition: {
            provider: "definition" /* Definition */,
            label: "Definition",
            cacheKey: "definition",
            fetch: (doc, pos, token) => languages_default.getDefinition(doc.textDocument, pos, token),
            serviceMethod: "textDocument/definition",
            buildParams: (doc, pos) => ({ textDocument: { uri: doc.uri }, position: pos })
          },
          declaration: {
            provider: "declaration" /* Declaration */,
            label: "Declaration",
            cacheKey: "declaration",
            fetch: (doc, pos, token) => languages_default.getDeclaration(doc.textDocument, pos, token),
            serviceMethod: "textDocument/declaration",
            buildParams: (doc, pos) => ({ textDocument: { uri: doc.uri }, position: pos })
          },
          type_definition: {
            provider: "typeDefinition" /* TypeDefinition */,
            label: "Type definition",
            cacheKey: "type_definition",
            fetch: (doc, pos, token) => languages_default.getTypeDefinition(doc.textDocument, pos, token),
            serviceMethod: "textDocument/typeDefinition",
            buildParams: (doc, pos) => ({ textDocument: { uri: doc.uri }, position: pos })
          },
          implementation: {
            provider: "implementation" /* Implementation */,
            label: "Implementation",
            cacheKey: "implementation",
            fetch: (doc, pos, token) => languages_default.getImplementation(doc.textDocument, pos, token),
            serviceMethod: "textDocument/implementation",
            buildParams: (doc, pos) => ({ textDocument: { uri: doc.uri }, position: pos })
          }
        };
        BATCH_METHODS = [
          "hover",
          "signature_help",
          "definition",
          "declaration",
          "type_definition",
          "implementation",
          "references",
          "document_symbols"
        ];
        BATCH_POSITION_METHODS = new Set(BATCH_METHODS.filter((m2) => m2 !== "document_symbols"));
        SYMBOL_KIND_NAMES = {};
        for (let key of Object.keys(SymbolKind)) {
          let value = SymbolKind[key];
          if (typeof value === "number") {
            SYMBOL_KIND_NAMES[value] = key;
          }
        }
      }
    });
    
    // src/mcp/tools/editor.ts
    function lineText(doc, line) {
      if (line < 0 || line >= doc.lineCount) return "";
      return doc.getLines(line, line + 1)[0] ?? "";
    }
    function innermostSymbol(symbols, pos) {
      let best = null;
      let walk2 = (list2, depth) => {
        for (let s2 of list2 ?? []) {
          if (positionInRange(pos, s2.range) === 0) {
            best = { name: s2.name, kind: (symbolKindName(s2.kind) ?? "").toLowerCase(), depth };
            walk2(s2.children, depth + 1);
          }
        }
      };
      walk2(symbols, 0);
      return best ? { name: best.name, kind: best.kind } : null;
    }
    async function getVisualSelection(doc, nvim) {
      let mode = await nvim.call("mode", []);
      if (mode !== "v" && mode !== "V" && mode !== "") return null;
      let [sl, sc, cl, cc, exclusive] = await nvim.eval(`[line('v'), col('v'), line('.'), col('.'), &selection ==# 'exclusive']`);
      let [startText, endText] = await nvim.eval(`[strpart(getline(${sl}), 0, ${sc} - 1), strpart(getline(${cl}), 0, ${cc} - 1)]`);
      let startChar = startText.length;
      let endChar = endText.length;
      let range2;
      if (mode === "V") {
        let start = Position.create(Math.min(sl, cl) - 1, 0);
        let end = Position.create(Math.max(sl, cl), 0);
        range2 = Range.create(start, end);
      } else {
        let start = Position.create(sl - 1, startChar);
        let end = Position.create(cl - 1, endChar);
        if (end.line < start.line || end.line === start.line && end.character < start.character) {
          let tmp = start;
          start = end;
          end = tmp;
        }
        let samePosition2 = start.line === end.line && start.character === end.character;
        if (!exclusive || samePosition2) {
          let endLine = lineText(doc, end.line);
          if (end.character !== endLine.length) {
            let character = Array.from(endLine.slice(end.character))[0];
            end = Position.create(end.line, end.character + (character?.length ?? 0));
          }
        }
        range2 = Range.create(start, end);
      }
      return { range: range2, text: doc.textDocument.getText(range2) };
    }
    function createEditorTools() {
      return [
        {
          name: "editor/state",
          title: "Editor State",
          description: "Return a snapshot of the active editor: workspace root, active document (uri, language, version), cursor position, latest visual selection, visible line range, surrounding lines (previous/current/next), innermost document symbol under the cursor and current diagnostics.",
          inputSchema: {
            type: "object",
            properties: {}
          },
          outputSchema: {
            type: "object",
            properties: {
              workspace: { type: "string", description: "Workspace root path." },
              document: {
                type: "object",
                properties: {
                  uri: { type: "string" },
                  language: { type: "string" },
                  version: { type: "integer" }
                }
              },
              cursor: { $ref: "#/definitions/Position" },
              selection: {
                type: ["object", "null"],
                properties: {
                  range: { $ref: "#/definitions/Range" },
                  text: { type: "string" }
                },
                description: "Active visual selection, null when not in visual mode."
              },
              visibleRange: {
                type: ["object", "null"],
                properties: {
                  start: { type: "integer", description: "0-based first visible line." },
                  end: { type: "integer", description: "0-based last visible line, inclusive." },
                  lines: { type: "array", items: { type: "string" } }
                }
              },
              surroundingCode: {
                type: "object",
                properties: {
                  before: { type: "string", description: "Text of the line above the cursor." },
                  current: { type: "string", description: "Text of the line containing the cursor." },
                  after: { type: "string", description: "Text of the line below the cursor." }
                }
              },
              symbol: {
                type: ["object", "null"],
                properties: {
                  name: { type: "string" },
                  kind: { type: "string" }
                },
                description: "Innermost document symbol containing the cursor, null when unknown."
              },
              diagnostics: {
                type: "array",
                items: { type: "object" },
                description: "LSP diagnostics of the active document."
              }
            }
          },
          annotations: { readOnlyHint: true, idempotentHint: true },
          handler: async (_args, context) => {
            let editor = window_default.activeTextEditor;
            if (!editor) return errorResult("No active editor");
            let denied = checkPath(editor.document.uri);
            if (denied) return errorResult(denied);
            let doc = editor.document;
            let nvim = workspace_default.nvim;
            let cursor = await window_default.getCursorPosition();
            let selection = await getVisualSelection(doc, nvim);
            let visible = await nvim.call("coc#window#visible_range", [editor.winid]);
            let visibleRange = visible ? { start: visible[0] - 1, end: visible[1] - 1, lines: doc.getLines(visible[0] - 1, visible[1]) } : null;
            let symbol = null;
            try {
              doc._forceSync();
              let res = await getDocumentSymbolResult(doc, configuredServiceId(doc), context.token);
              if (!("error" in res)) {
                symbol = innermostSymbol(res.symbols, cursor);
              }
            } catch (_e) {
            }
            let result = {
              workspace: workspace_default.root,
              document: {
                uri: doc.uri,
                language: doc.languageId,
                version: doc.version
              },
              cursor,
              selection,
              visibleRange,
              surroundingCode: {
                before: lineText(doc, cursor.line - 1),
                current: lineText(doc, cursor.line),
                after: lineText(doc, cursor.line + 1)
              },
              symbol,
              diagnostics: manager_default.getDiagnosticsInRange(doc.textDocument)
            };
            let text = [
              `Workspace: ${result.workspace}`,
              `Document: ${result.document.uri} (${result.document.language}, v${result.document.version})`,
              `Cursor: ${result.cursor.line}:${result.cursor.character}`,
              result.selection ? `Selection: ${result.selection.range.start.line}:${result.selection.range.start.character}-${result.selection.range.end.line}:${result.selection.range.end.character} ${JSON.stringify(result.selection.text)}` : "Selection: none",
              result.visibleRange ? `Visible: lines ${result.visibleRange.start}-${result.visibleRange.end}` : "Visible: n/a",
              result.symbol ? `Symbol: ${result.symbol.name} (${result.symbol.kind})` : "Symbol: n/a",
              `Diagnostics: ${result.diagnostics.length}`
            ].join("\n");
            return textResult(text, result);
          }
        }
      ];
    }
    var init_editor = __esm({
      "src/mcp/tools/editor.ts"() {
        "use strict";
        init_main();
        init_manager();
        init_window();
        init_workspace();
        init_util6();
        init_lsp();
        init_position();
      }
    });
    
    // src/mcp/tools/workspace.ts
    function findRg() {
      try {
        return which.sync("rg");
      } catch (_e) {
        return null;
      }
    }
    function parseRgLine(line) {
      try {
        let obj = JSON.parse(line);
        if (obj.type !== "match") return null;
        let data = obj.data;
        if (!data || !data.path || !data.lines) return null;
        let lineText2 = typeof data.lines.text === "string" ? data.lines.text : "";
        lineText2 = lineText2.replace(/\n$/, "");
        let start = data.submatches && data.submatches[0] ? data.submatches[0].start : 0;
        let column = Buffer.from(lineText2, "utf8").subarray(0, start).toString("utf8").length;
        return { file: data.path.text, line: (data.line_number || 1) - 1, column, text: lineText2 };
      } catch (_e) {
        return null;
      }
    }
    function searchWithRg(pattern, args, root, maxResults) {
      return new Promise((resolve, reject) => {
        let rg = findRg();
        if (!rg) {
          reject(new Error("rg not found"));
          return;
        }
        let argv = ["--json", "--line-number", "--column", "--no-heading", "--color", "never"];
        if (args.regex !== true) argv.push("--fixed-strings");
        if (args.caseSensitive === false) argv.push("--ignore-case");
        else if (args.caseSensitive == null) argv.push("--smart-case");
        if (typeof args.include === "string" && args.include) argv.push("--glob", args.include);
        if (typeof args.exclude === "string" && args.exclude) argv.push("--glob", `!${args.exclude}`);
        argv.push("--", pattern, root);
        let cp = child_process.spawn(rg, argv, { stdio: ["ignore", "pipe", "ignore"] });
        let output = "";
        let results = [];
        let done = false;
        let timer = setTimeout(() => {
          cp.kill();
        }, 15e3);
        cp.stdout.on("data", (chunk) => {
          if (done) return;
          output += chunk.toString("utf8");
          if (output.length > 5 * 1024 * 1024) {
            done = true;
            cp.kill();
          }
          let idx;
          while ((idx = output.indexOf("\n")) !== -1) {
            let line = output.slice(0, idx);
            output = output.slice(idx + 1);
            let match2 = parseRgLine(line);
            if (match2 && !checkPath(match2.file)) {
              results.push(match2);
              if (results.length >= maxResults) {
                done = true;
                cp.kill();
              }
            }
          }
        });
        cp.on("error", (err) => {
          clearTimeout(timer);
          reject(err);
        });
        cp.on("close", () => {
          clearTimeout(timer);
          resolve(results);
        });
      });
    }
    function escapeRegExp2(text) {
      return text.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
    }
    function unsafeFallbackRegex(pattern) {
      return pattern.length > 1e3 || /\\[1-9]/.test(pattern) || /\(\?[=!<]/.test(pattern) || /\([^)]*[+*{][^)]*\)\s*(?:[+*?]|\{)/.test(pattern);
    }
    async function searchWithJs(pattern, args, root, maxResults) {
      if (args.regex === true && unsafeFallbackRegex(pattern)) {
        throw new Error("Regex is too complex for the JavaScript search fallback; install ripgrep to use it safely");
      }
      let include = new RelativePattern2(u.file(root), typeof args.include === "string" && args.include ? args.include : "**/*");
      let uris = await workspace_default.findFiles(include, args.exclude || null, 500);
      let flags = args.caseSensitive === true ? "" : "i";
      let source = args.regex === true ? pattern : escapeRegExp2(pattern);
      let re;
      try {
        re = new RegExp(source, flags);
      } catch (e2) {
        throw new Error(`Invalid regex: ${e2 instanceof Error ? e2.message : String(e2)}`);
      }
      let results = [];
      for (let uri of uris) {
        if (results.length >= maxResults) break;
        let filepath = uri.fsPath;
        if (checkPath(filepath)) continue;
        let content;
        try {
          let stat = fs.statSync(filepath);
          if (stat.size > 2 * 1024 * 1024) continue;
          content = fs.readFileSync(filepath, "utf8");
        } catch (_e) {
          continue;
        }
        if (content.includes("\0")) continue;
        let lines = content.split("\n");
        for (let i2 = 0; i2 < lines.length; i2++) {
          if (results.length >= maxResults) break;
          let match2 = re.exec(lines[i2]);
          if (match2) {
            results.push({ file: filepath, line: i2, column: match2.index ?? 0, text: lines[i2] });
          }
        }
      }
      return results;
    }
    function getConfigValue(key) {
      try {
        let conf = workspace_default.configurations.configuration.getValue(void 0, {});
        if (!key) return conf;
        return key.split(".").reduce((obj, k) => {
          return obj == null ? void 0 : obj[k];
        }, conf);
      } catch (_e) {
        return void 0;
      }
    }
    function createWorkspaceTools() {
      return [
        {
          name: "workspace/info",
          title: "Workspace Information",
          description: "Get workspace root, folders, cwd, opened documents and language server status of the coc.nvim instance.",
          inputSchema: {
            type: "object",
            properties: {},
            additionalProperties: false
          },
          outputSchema: {
            type: "object",
            properties: {
              version: { type: "string" },
              cwd: { type: "string" },
              root: { type: "string" },
              folders: { type: "array" },
              documents: { type: "array" },
              services: { type: "array" }
            }
          },
          annotations: { readOnlyHint: true, idempotentHint: true },
          handler: async () => {
            let folders = [];
            let documents = [];
            let serviceList = [];
            try {
              folders = workspace_default.workspaceFolders.map((f2) => ({ name: f2.name, uri: f2.uri }));
            } catch (_e) {
            }
            try {
              documents = workspace_default.documents.map((d2) => ({
                uri: d2.uri,
                languageId: d2.languageId,
                version: d2.version
              }));
            } catch (_e) {
            }
            try {
              serviceList = services_default.getServiceStats().map((s2) => ({
                id: s2.id,
                state: s2.state,
                languageIds: s2.languageIds
              }));
            } catch (_e) {
            }
            let info = {
              version: workspace_default.version,
              cwd: workspace_default.cwd || process.cwd(),
              root: workspace_default.root || process.cwd(),
              folders,
              documents,
              services: serviceList
            };
            return {
              content: [{ type: "text", text: JSON.stringify(info, null, 2) }],
              structuredContent: info
            };
          }
        },
        {
          name: "workspace/configuration",
          title: "Read coc Configuration",
          description: 'Read a coc.nvim configuration value by dotted key, e.g. "mcp.autoStart". Returns value and inspection data (default/user/workspace sources).',
          inputSchema: {
            type: "object",
            properties: {
              key: {
                type: "string",
                description: 'Dotted configuration key, e.g. "mcp.autoStart". Empty string returns the whole configuration tree.'
              }
            },
            required: ["key"]
          },
          outputSchema: {
            type: "object",
            properties: {
              key: { type: "string" },
              value: {},
              inspect: {}
            }
          },
          annotations: { readOnlyHint: true, idempotentHint: true },
          handler: async (args) => {
            let key = typeof args?.key === "string" ? args.key : "";
            let value = getConfigValue(key);
            let inspect2;
            try {
              if (key) inspect2 = workspace_default.getConfiguration(null, null).inspect(key);
            } catch (_e) {
            }
            let result = { key, value, inspect: inspect2 };
            return {
              content: [{ type: "text", text: JSON.stringify(result, null, 2) }],
              structuredContent: result
            };
          }
        },
        {
          name: "workspace/search",
          title: "Search Workspace",
          description: "Search files in the workspace with ripgrep (fallback: built-in JavaScript search). Returns {file, line, column, text} matches.",
          inputSchema: {
            type: "object",
            properties: {
              pattern: { type: "string" },
              regex: { type: "boolean", default: false, description: "Treat pattern as a regular expression." },
              include: { type: "string", description: 'Glob of files to include, e.g. "**/*.ts".' },
              exclude: { type: "string", description: "Glob of files to exclude." },
              caseSensitive: { type: "boolean" },
              root: { type: "string", description: "Directory to search, defaults to the workspace root." },
              maxResults: { type: "integer", default: 100 }
            },
            required: ["pattern"]
          },
          outputSchema: {
            type: "object",
            properties: {
              count: { type: "integer" },
              engine: { type: "string" },
              matches: {
                type: "array",
                items: {
                  type: "object",
                  properties: {
                    file: { type: "string" },
                    line: { type: "integer" },
                    column: { type: "integer" },
                    text: { type: "string" }
                  }
                }
              }
            }
          },
          annotations: { readOnlyHint: true, idempotentHint: true },
          handler: async (args) => {
            let pattern = args?.pattern;
            if (typeof pattern !== "string" || pattern.length === 0) {
              return errorResult("pattern is required");
            }
            let root = args?.root ? toFsPath(args.root) : workspace_default.root || process.cwd();
            let rootDenied = checkPath(root);
            if (rootDenied) return errorResult(rootDenied);
            let maxResults = Math.min(Math.max(1, args?.maxResults ?? 100), 500);
            let engine = "rg";
            let matches;
            try {
              if (findRg()) {
                matches = await searchWithRg(pattern, args ?? {}, root, maxResults);
              } else {
                engine = "js";
                matches = await searchWithJs(pattern, args ?? {}, root, maxResults);
              }
            } catch (e2) {
              return errorResult(`Search failed: ${e2 instanceof Error ? e2.message : String(e2)}`);
            }
            let result = { count: matches.length, engine, matches };
            return textResult(JSON.stringify(result, null, 2), result);
          }
        },
        {
          name: "workspace/files",
          title: "List Workspace Files",
          description: "List files in the workspace matching a glob pattern.",
          inputSchema: {
            type: "object",
            properties: {
              include: { type: "string", description: 'Glob pattern, e.g. "**/*.ts".' },
              exclude: { type: "string" },
              maxResults: { type: "integer", default: 200 }
            },
            required: ["include"]
          },
          outputSchema: {
            type: "object",
            properties: {
              count: { type: "integer" },
              files: {
                type: "array",
                items: {
                  type: "object",
                  properties: {
                    uri: { type: "string" },
                    filepath: { type: "string" }
                  }
                }
              }
            }
          },
          annotations: { readOnlyHint: true, idempotentHint: true },
          handler: async (args) => {
            let include = args?.include;
            if (typeof include !== "string" || include.length === 0) {
              return errorResult("include glob is required");
            }
            let maxResults = Math.min(Math.max(1, args?.maxResults ?? 200), 1e3);
            let uris = await workspace_default.findFiles(include, args?.exclude || null, maxResults);
            let files = uris.filter((uri) => !checkPath(uri.toString())).map((uri) => ({ uri: uri.toString(), filepath: uri.fsPath }));
            let result = { count: files.length, files };
            return textResult(JSON.stringify(result, null, 2), result);
          }
        },
        {
          name: "workspace/apply_edit",
          title: "Apply Workspace Edit",
          description: 'Apply an LSP WorkspaceEdit (multi-file TextEdits plus create/rename/delete) through the editor, optionally with WorkspaceEditMetadata (e.g. { "isRefactoring": true }). All buffers, LSP notifications and undo are kept in sync; modified buffers are saved with :wa so the edits are on disk when the tool returns.',
          inputSchema: {
            type: "object",
            properties: {
              edit: {
                type: "object",
                description: "LSP WorkspaceEdit: { changes?: {[uri]: TextEdit[]}, documentChanges?: (TextDocumentEdit|CreateFile|RenameFile|DeleteFile)[] }"
              },
              metadata: {
                type: "object",
                description: 'Optional WorkspaceEditMetadata, e.g. { "isRefactoring": true }.',
                properties: {
                  isRefactoring: { type: "boolean" }
                }
              }
            },
            required: ["edit"]
          },
          outputSchema: {
            type: "object",
            properties: {
              applied: { type: "boolean" },
              files: { type: "array", items: { type: "string" } },
              pendingSave: { type: "boolean" },
              saved: { type: "boolean", description: "Whether modified buffers were written to disk after applying." },
              saveError: { type: "string", description: "Error when :wa failed; edits are in buffers but files may not be on disk." },
              metadata: { type: ["object", "null"] }
            }
          },
          annotations: { destructiveHint: true },
          handler: async (args) => {
            let edit2 = args?.edit;
            if (!edit2 || typeof edit2 !== "object") return errorResult("edit (WorkspaceEdit) is required");
            let metadata;
            if (args?.metadata !== void 0) {
              if (args.metadata === null || typeof args.metadata !== "object") {
                return errorResult("metadata must be an object");
              }
              if (args.metadata.isRefactoring !== void 0 && typeof args.metadata.isRefactoring !== "boolean") {
                return errorResult("metadata.isRefactoring must be a boolean");
              }
              metadata = { isRefactoring: args.metadata.isRefactoring };
            }
            let uris = collectEditUris(edit2);
            for (let uri of new Set(uris)) {
              let denied = checkPath(uri, { write: true });
              if (denied) return errorResult(denied);
            }
            let applied;
            let pendingSave = false;
            try {
              applied = await workspace_default.applyEdit(edit2, metadata);
            } catch (e2) {
              return errorResult(`Failed to apply edit: ${e2 instanceof Error ? e2.message : String(e2)}`);
            }
            if (Array.isArray(edit2.documentChanges)) {
              pendingSave = edit2.documentChanges.some((change) => change?.textDocument?.uri && Array.isArray(change.edits));
            } else if (edit2.changes && typeof edit2.changes === "object") {
              pendingSave = Object.keys(edit2.changes).length > 0;
            }
            let saved = applied && !pendingSave;
            let saveError;
            if (applied && pendingSave) {
              try {
                await workspace_default.nvim.command("wa");
                saved = true;
              } catch (e2) {
                saved = false;
                saveError = e2 instanceof Error ? e2.message : String(e2);
              }
            }
            let files = [...new Set(uris)];
            let result = {
              applied,
              files,
              pendingSave,
              saved,
              metadata: metadata ?? null,
              ...saveError ? { saveError } : {}
            };
            return textResult(JSON.stringify(result, null, 2), result);
          }
        },
        {
          name: "workspace/create_file",
          title: "Create File",
          description: "Create a file in the editor and on disk.",
          inputSchema: {
            type: "object",
            properties: {
              filepath: { type: "string", description: "Absolute path or file URI." },
              overwrite: { type: "boolean", default: false },
              ignoreIfExists: { type: "boolean", default: false }
            },
            required: ["filepath"]
          },
          outputSchema: {
            type: "object",
            properties: {
              uri: { type: "string" },
              filepath: { type: "string" },
              created: { type: "boolean" }
            }
          },
          annotations: { destructiveHint: true },
          handler: async (args) => {
            let input = args?.filepath;
            if (typeof input !== "string" || input.length === 0) return errorResult("filepath is required");
            let filepath = toFsPath(input);
            let denied = checkPath(filepath, { write: true });
            if (denied) return errorResult(denied);
            try {
              await workspace_default.createFile(filepath, {
                overwrite: args?.overwrite === true,
                ignoreIfExists: args?.ignoreIfExists === true
              });
            } catch (e2) {
              return errorResult(`Failed to create ${filepath}: ${e2 instanceof Error ? e2.message : String(e2)}`);
            }
            let uri = u.file(filepath).toString();
            let result = { uri, filepath, created: true };
            return textResult(JSON.stringify(result, null, 2), result);
          }
        },
        {
          name: "workspace/rename_file",
          title: "Rename File",
          description: "Rename or move a file, keeping open buffers in sync.",
          inputSchema: {
            type: "object",
            properties: {
              oldPath: { type: "string" },
              newPath: { type: "string" },
              overwrite: { type: "boolean", default: false },
              ignoreIfExists: { type: "boolean", default: false }
            },
            required: ["oldPath", "newPath"]
          },
          outputSchema: {
            type: "object",
            properties: {
              oldPath: { type: "string" },
              newPath: { type: "string" },
              renamed: { type: "boolean" }
            }
          },
          annotations: { destructiveHint: true },
          handler: async (args) => {
            let oldInput = args?.oldPath;
            let newInput = args?.newPath;
            if (typeof oldInput !== "string" || oldInput.length === 0 || typeof newInput !== "string" || newInput.length === 0) {
              return errorResult("oldPath and newPath are required");
            }
            let oldPath = toFsPath(oldInput);
            let newPath = toFsPath(newInput);
            let denied = checkPath(oldPath, { write: true }) ?? checkPath(newPath, { write: true });
            if (denied) return errorResult(denied);
            try {
              await workspace_default.renameFile(oldPath, newPath, {
                overwrite: args?.overwrite === true,
                ignoreIfExists: args?.ignoreIfExists === true
              });
            } catch (e2) {
              return errorResult(`Failed to rename ${oldPath}: ${e2 instanceof Error ? e2.message : String(e2)}`);
            }
            let result = { oldPath, newPath, renamed: true };
            return textResult(JSON.stringify(result, null, 2), result);
          }
        },
        {
          name: "workspace/delete_file",
          title: "Delete File",
          description: "Delete a file or directory (recursive for directories), closing associated buffers.",
          inputSchema: {
            type: "object",
            properties: {
              filepath: { type: "string" },
              recursive: { type: "boolean", default: false },
              ignoreIfNotExists: { type: "boolean", default: false }
            },
            required: ["filepath"]
          },
          outputSchema: {
            type: "object",
            properties: {
              filepath: { type: "string" },
              deleted: { type: "boolean" }
            }
          },
          annotations: { destructiveHint: true },
          handler: async (args) => {
            let input = args?.filepath;
            if (typeof input !== "string" || input.length === 0) return errorResult("filepath is required");
            let filepath = toFsPath(input);
            let denied = checkPath(filepath, { write: true });
            if (denied) return errorResult(denied);
            try {
              await workspace_default.deleteFile(filepath, {
                recursive: args?.recursive === true,
                ignoreIfNotExists: args?.ignoreIfNotExists === true
              });
            } catch (e2) {
              return errorResult(`Failed to delete ${filepath}: ${e2 instanceof Error ? e2.message : String(e2)}`);
            }
            let result = { filepath, deleted: true };
            return textResult(JSON.stringify(result, null, 2), result);
          }
        }
      ];
    }
    var init_workspace2 = __esm({
      "src/mcp/tools/workspace.ts"() {
        "use strict";
        init_esm();
        init_relativePattern();
        init_services();
        init_node();
        init_workspace();
        init_util6();
      }
    });
    
    // src/mcp/index.ts
    function resolveTransport(transport) {
      if (transport === "unix") return "unix";
      if (transport === "auto") return process.platform === "win32" ? "tcp" : "unix";
      return "tcp";
    }
    var logger52, McpService, mcp_default;
    var init_mcp = __esm({
      "src/mcp/index.ts"() {
        "use strict";
        init_logger();
        init_events();
        init_node();
        init_workspace();
        init_auth();
        init_notifications3();
        init_resources();
        init_server();
        init_tools();
        init_document2();
        init_editor();
        init_lsp();
        init_workspace2();
        logger52 = createLogger("mcp");
        McpService = class {
          server;
          startPromise;
          generation = 0;
          notifications;
          token = "";
          registry;
          socketPath;
          vimLeaveDisposable;
          pid = 0;
          get running() {
            return this.server != null;
          }
          status() {
            if (!this.server) return { running: false };
            let cwd2 = "";
            try {
              cwd2 = workspace_default.cwd || process.cwd();
            } catch (_e) {
              cwd2 = process.cwd();
            }
            return { pid: process.pid, cwd: cwd2, ...this.server.status() };
          }
          /**
           * Human-readable status lines shared by `:CocCommand mcp.status` and
           * `:CocInfo`.
           */
          getStatusLines() {
            let status = this.status();
            if (!status.running) {
              return ["MCP server: not running"];
            }
            let address = status.transport === "unix" ? String(status.socketPath) : `${status.host}:${status.port}`;
            let lines = [
              "MCP server: running",
              `  transport: ${status.transport}`,
              `  address: ${address}`,
              `  pid: ${status.pid}`,
              `  cwd: ${status.cwd}`,
              `  clients: ${status.clients.length}`,
              ...status.clients.map((c2) => {
                let connected = new Date(c2.connectedAt).toLocaleTimeString();
                let last = new Date(c2.lastActiveAt).toLocaleTimeString();
                return `    #${c2.id} ${c2.name || "client"} pid ${c2.pid ?? "-"} connected ${connected} last ${last}`;
              }),
              `  tools: ${status.tools.length}`,
              ...status.tools.map((t2) => `    ${t2}`),
              `  protocol: ${status.protocolVersion}`
            ];
            return lines;
          }
          /**
           * Start the MCP socket server. No-op when mcp.autoStart is false, unless
           * force is true (`:CocCommand mcp.start` starts the server regardless).
           * Concurrent calls share a single start flow; a stop() while starting
           * invalidates the pending start so its server and discovery artifacts are
           * never published.
           */
          start(force = false) {
            if (this.server) return Promise.resolve();
            if (this.startPromise) return this.startPromise;
            let promise = this.doStart(force);
            this.startPromise = promise;
            void promise.then(() => {
              if (this.startPromise === promise) this.startPromise = void 0;
            }, () => {
              if (this.startPromise === promise) this.startPromise = void 0;
            });
            return promise;
          }
          async doStart(force) {
            let config = this.getConfig();
            if (!force && !config.autoStart) {
              logger52.info("MCP server disabled by configuration");
              return;
            }
            let generation = this.generation;
            let pid = this.pid = workspace_default.env ? workspace_default.env.pid : process.pid;
            let token = generateToken();
            let socketPath = config.transport === "unix" ? path.join(getMcpDir(), `coc-${process.pid}.sock`) : void 0;
            fs.mkdirSync(getMcpDir(), { recursive: true });
            let registry = this.getRegistry();
            registry.setAllowedTools(config.allowedTools);
            let server = new McpServer({
              transport: config.transport,
              host: config.host,
              port: config.port,
              socketPath,
              token,
              authRequired: config.authRequired,
              maxClients: config.maxClients,
              frameMaxBytes: config.frameMaxBytes,
              timeout: config.timeout,
              idleTimeout: config.idleTimeout,
              maxRequestsPerSecond: config.maxRequestsPerSecond,
              authClientPublicKey: config.authClientPublicKey,
              readTimeout: config.readTimeout
            }, registry, new ResourceManager());
            try {
              let address = await server.listen();
              if (generation !== this.generation) {
                server.dispose();
                return;
              }
              this.server = server;
              this.notifications = new NotificationManager(server);
              this.vimLeaveDisposable = events_default.on("VimLeavePre", () => {
                this.stop();
              });
              this.token = token;
              this.socketPath = socketPath;
              let cwd2 = "";
              let root = "";
              try {
                cwd2 = workspace_default.cwd || process.cwd();
                root = workspace_default.root || cwd2;
              } catch (_e) {
                cwd2 = process.cwd();
                root = cwd2;
              }
              writeInstanceFile(createDiscoveryInfo({
                transport: config.transport,
                host: address.host,
                port: address.port,
                socketPath: address.socketPath || socketPath,
                token,
                pid,
                cwd: cwd2,
                workspaceRoot: root
              }));
              if (workspace_default.nvim) {
                workspace_default.nvim.setVar("coc_mcp_started", 1, true);
              }
              let location = config.transport === "unix" ? address.socketPath : `${address.host}:${address.port}`;
              logger52.info(`MCP server listening on ${location}, tools: ${server.tools.list().tools.length}`);
            } catch (e2) {
              server.dispose();
              logger52.error("Failed to start MCP server", e2);
            }
          }
          /**
           * Called once at plugin init: start the server when mcp.autoStart is set,
           * or when it was running before a coc.nvim restart (`:CocRestart`), whose
           * started state is kept in a vim variable.
           */
          async init(started = false) {
            if (started) {
              await this.start(true);
            } else {
              await this.start();
            }
          }
          /**
           * Stop the MCP socket server and remove the discovery file.
           */
          stop() {
            this.generation++;
            let server = this.server;
            this.server = void 0;
            if (server) server.dispose();
            if (this.notifications) {
              this.notifications.dispose();
              this.notifications = void 0;
            }
            if (this.vimLeaveDisposable) {
              let disposable = this.vimLeaveDisposable;
              this.vimLeaveDisposable = void 0;
              disposable.dispose();
            }
            this.token = "";
            if (this.socketPath) {
              removeSocketFile(this.socketPath);
              this.socketPath = void 0;
            }
            removeInstanceFile(process.pid);
            if (this.pid && this.pid !== process.pid) {
              removeInstanceFile(this.pid);
            }
            this.pid = 0;
            if (workspace_default.nvim) {
              workspace_default.nvim.setVar("coc_mcp_started", 0, true);
            }
            if (server) logger52.info("MCP server stopped");
          }
          dispose() {
            this.stop();
          }
          /**
           * Register a custom MCP tool from a coc.nvim extension. The tool becomes
           * available on the next `tools/list` (immediately when the server is
           * running, via `notifications/tools/list_changed`). Returns a Disposable
           * that unregisters the tool.
           */
          registerTool(tool) {
            let name2 = tool?.name;
            if (typeof name2 !== "string" || name2.length === 0) {
              throw new Error("Tool name is required");
            }
            return this.getRegistry().register(tool);
          }
          getRegistry() {
            if (!this.registry) {
              let registry = new ToolRegistry();
              for (let tool of [...createWorkspaceTools(), ...createDocumentTools(), ...createLspTools(), ...createEditorTools()]) {
                registry.register(tool);
              }
              this.registry = registry;
            }
            return this.registry;
          }
          getConfig() {
            let config = workspace_default.getConfiguration("mcp");
            return {
              autoStart: config.get("autoStart", false),
              host: config.get("host", "127.0.0.1"),
              port: config.get("port", 0),
              transport: resolveTransport(config.get("transport", "auto")),
              authRequired: config.get("authRequired", true),
              maxClients: config.get("maxClients", 4),
              frameMaxBytes: config.get("frameMaxBytes", 16 * 1024 * 1024),
              timeout: config.get("timeout", 5e3),
              idleTimeout: config.get("idleTimeout", 0),
              maxRequestsPerSecond: config.get("maxRequestsPerSecond", 60),
              authClientPublicKey: config.get("authClientPublicKey", ""),
              readTimeout: config.get("readTimeout", 15e3),
              // Only tools listed in mcp.allowedTools are exposed to agents
              // (default: none). Built-in tools:
              // document/read, document/read_lines, document/apply_edits,
              // document/write, document/format, document/open,
              // workspace/info, workspace/configuration, workspace/search,
              // workspace/files, workspace/apply_edit, workspace/create_file,
              // workspace/rename_file, workspace/delete_file,
              // lsp/hover, lsp/signature_help, lsp/definition, lsp/declaration,
              // lsp/type_definition, lsp/implementation, lsp/references,
              // lsp/document_symbols, lsp/workspace_symbols, lsp/diagnostics,
              // lsp/code_actions, lsp/apply_code_action, lsp/rename,
              // lsp/execute_command, lsp/request, lsp/capabilities, lsp/batch.
              allowedTools: config.get("allowedTools", [])
            };
          }
        };
        mcp_default = new McpService();
      }
    });
    
    // src/model/line.ts
    var LineBuilder;
    var init_line = __esm({
      "src/model/line.ts"() {
        "use strict";
        init_string();
        LineBuilder = class {
          constructor(addSpace = false) {
            this.addSpace = addSpace;
          }
          addSpace;
          _label = "";
          _len = 0;
          _highlights = [];
          append(text, hlGroup, nested) {
            if (text.length == 0) return;
            let space = this._len > 0 && this.addSpace ? " " : "";
            let start = this._len + space.length;
            this._label = this._label + space + text;
            this._len = this._len + byteLength(text) + space.length;
            if (hlGroup) {
              this._highlights.push({
                hlGroup,
                span: [start, start + byteLength(text)]
              });
            }
            if (nested) {
              for (let item of nested) {
                let s2 = start + byteIndex(text, item.offset);
                let e2 = start + byteIndex(text, item.offset + item.length);
                this._highlights.push({
                  hlGroup: item.hlGroup,
                  span: [s2, e2]
                });
              }
            }
          }
          appendBuilder(builder) {
            let space = this._len > 0 && this.addSpace ? " " : "";
            let curr = this._len + space.length;
            this._label = this._label + space + builder.label;
            this._len = this._len + byteLength(builder.label) + space.length;
            this._highlights.push(...builder.highlights.map((item) => {
              return {
                hlGroup: item.hlGroup,
                span: item.span.map((v2) => {
                  return curr + v2;
                })
              };
            }));
          }
          get label() {
            return this._label;
          }
          get highlights() {
            return this._highlights;
          }
        };
      }
    });
    
    // src/model/semanticTokensBuilder.ts
    function isStringArray(value) {
      return Array.isArray(value) && value.every((elem) => typeof elem === "string");
    }
    function isStrArrayOrUndefined(arg) {
      return typeof arg === "undefined" || isStringArray(arg);
    }
    var SemanticTokensBuilder;
    var init_semanticTokensBuilder = __esm({
      "src/model/semanticTokensBuilder.ts"() {
        "use strict";
        init_main();
        SemanticTokensBuilder = class _SemanticTokensBuilder {
          _prevLine;
          _prevChar;
          _dataIsSortedAndDeltaEncoded;
          _data;
          _dataLen;
          _tokenTypeStrToInt;
          _tokenModifierStrToInt;
          _hasLegend;
          constructor(legend) {
            this._prevLine = 0;
            this._prevChar = 0;
            this._dataIsSortedAndDeltaEncoded = true;
            this._data = [];
            this._dataLen = 0;
            this._tokenTypeStrToInt = /* @__PURE__ */ new Map();
            this._tokenModifierStrToInt = /* @__PURE__ */ new Map();
            this._hasLegend = false;
            if (legend) {
              this._hasLegend = true;
              for (let i2 = 0, len = legend.tokenTypes.length; i2 < len; i2++) {
                this._tokenTypeStrToInt.set(legend.tokenTypes[i2], i2);
              }
              for (let i2 = 0, len = legend.tokenModifiers.length; i2 < len; i2++) {
                this._tokenModifierStrToInt.set(legend.tokenModifiers[i2], i2);
              }
            }
          }
          push(arg0, arg1, arg2, arg3, arg4) {
            if (typeof arg0 === "number" && typeof arg1 === "number" && typeof arg2 === "number" && typeof arg3 === "number" && (typeof arg4 === "number" || typeof arg4 === "undefined")) {
              if (typeof arg4 === "undefined") {
                arg4 = 0;
              }
              return this._pushEncoded(arg0, arg1, arg2, arg3, arg4);
            }
            if (Range.is(arg0) && typeof arg1 === "string" && isStrArrayOrUndefined(arg2)) {
              return this._push(arg0, arg1, arg2);
            }
            throw new Error("Illegal argument");
          }
          _push(range2, tokenType, tokenModifiers) {
            if (!this._hasLegend) {
              throw new Error("Legend must be provided in constructor");
            }
            if (range2.start.line !== range2.end.line) {
              throw new Error("`range` cannot span multiple lines");
            }
            if (!this._tokenTypeStrToInt.has(tokenType)) {
              throw new Error("`tokenType` is not in the provided legend");
            }
            const line = range2.start.line;
            const char = range2.start.character;
            const length = range2.end.character - range2.start.character;
            const nTokenType = this._tokenTypeStrToInt.get(tokenType);
            let nTokenModifiers = 0;
            if (tokenModifiers) {
              for (const tokenModifier of tokenModifiers) {
                if (!this._tokenModifierStrToInt.has(tokenModifier)) {
                  throw new Error("`tokenModifier` is not in the provided legend");
                }
                const nTokenModifier = this._tokenModifierStrToInt.get(tokenModifier);
                nTokenModifiers |= 1 << nTokenModifier >>> 0;
              }
            }
            this._pushEncoded(line, char, length, nTokenType, nTokenModifiers);
          }
          _pushEncoded(line, char, length, tokenType, tokenModifiers) {
            if (this._dataIsSortedAndDeltaEncoded && (line < this._prevLine || line === this._prevLine && char < this._prevChar)) {
              this._dataIsSortedAndDeltaEncoded = false;
              const tokenCount = this._data.length / 5 | 0;
              let prevLine = 0;
              let prevChar = 0;
              for (let i2 = 0; i2 < tokenCount; i2++) {
                let line2 = this._data[5 * i2];
                let char2 = this._data[5 * i2 + 1];
                if (line2 === 0) {
                  line2 = prevLine;
                  char2 += prevChar;
                } else {
                  line2 += prevLine;
                }
                this._data[5 * i2] = line2;
                this._data[5 * i2 + 1] = char2;
                prevLine = line2;
                prevChar = char2;
              }
            }
            let pushLine = line;
            let pushChar = char;
            if (this._dataIsSortedAndDeltaEncoded && this._dataLen > 0) {
              pushLine -= this._prevLine;
              if (pushLine === 0) {
                pushChar -= this._prevChar;
              }
            }
            this._data[this._dataLen++] = pushLine;
            this._data[this._dataLen++] = pushChar;
            this._data[this._dataLen++] = length;
            this._data[this._dataLen++] = tokenType;
            this._data[this._dataLen++] = tokenModifiers;
            this._prevLine = line;
            this._prevChar = char;
          }
          static _sortAndDeltaEncode(data) {
            let pos = [];
            const tokenCount = data.length / 5 | 0;
            for (let i2 = 0; i2 < tokenCount; i2++) {
              pos[i2] = i2;
            }
            pos.sort((a2, b2) => {
              const aLine = data[5 * a2];
              const bLine = data[5 * b2];
              if (aLine === bLine) {
                const aChar = data[5 * a2 + 1];
                const bChar = data[5 * b2 + 1];
                return aChar - bChar;
              }
              return aLine - bLine;
            });
            const result = new Array(data.length);
            let prevLine = 0;
            let prevChar = 0;
            for (let i2 = 0; i2 < tokenCount; i2++) {
              const srcOffset = 5 * pos[i2];
              const line = data[srcOffset + 0];
              const char = data[srcOffset + 1];
              const length = data[srcOffset + 2];
              const tokenType = data[srcOffset + 3];
              const tokenModifiers = data[srcOffset + 4];
              const pushLine = line - prevLine;
              const pushChar = pushLine === 0 ? char - prevChar : char;
              const dstOffset = 5 * i2;
              result[dstOffset + 0] = pushLine;
              result[dstOffset + 1] = pushChar;
              result[dstOffset + 2] = length;
              result[dstOffset + 3] = tokenType;
              result[dstOffset + 4] = tokenModifiers;
              prevLine = line;
              prevChar = char;
            }
            return result;
          }
          /**
           * Finish and create a `SemanticTokens` instance.
           */
          build(resultId) {
            if (!this._dataIsSortedAndDeltaEncoded) {
              return { data: _SemanticTokensBuilder._sortAndDeltaEncode(this._data), resultId };
            }
            return { data: this._data, resultId };
          }
        };
      }
    });
    
    // src/tree/index.ts
    var init_tree = __esm({
      "src/tree/index.ts"() {
        "use strict";
        init_TreeItem();
      }
    });
    
    // src/index.ts
    var require_src2 = __commonJS({
      "src/index.ts"(exports2, module2) {
        "use strict";
        init_main();
        init_esm();
        init_commands();
        init_sources2();
        init_manager();
        init_events();
        init_extension();
        init_languages();
        init_basic();
        init_manager4();
        init_mcp();
        init_download();
        init_fetch();
        init_floatFactory();
        init_highlighter();
        init_mru();
        init_relativePattern();
        init_services();
        init_manager3();
        init_string2();
        init_ansiparse();
        init_errors();
        init_mutex();
        init_protocol();
        init_window();
        init_workspace();
        init_language_client();
        init_types2();
        init_types();
        init_workspaceFolder();
        init_line();
        init_semanticTokensBuilder();
        init_tree();
        init_util();
        init_fs();
        init_processes();
        module2.exports = {
          get nvim() {
            return workspace_default.nvim;
          },
          Uri: u,
          LineBuilder,
          NullLogger,
          SettingMonitor,
          LanguageClient,
          CancellationTokenSource: import_node4.CancellationTokenSource,
          ProgressType: import_node4.ProgressType,
          RequestType: import_node4.RequestType,
          RequestType0: import_node4.RequestType0,
          NotificationType: import_node4.NotificationType,
          NotificationType0: import_node4.NotificationType0,
          ProtocolRequestType: import_node4.ProtocolRequestType,
          ProtocolRequestType0: import_node4.ProtocolRequestType0,
          ProtocolNotificationType: import_node4.ProtocolNotificationType,
          ProtocolNotificationType0: import_node4.ProtocolNotificationType0,
          Highlighter,
          Mru,
          Emitter: import_node4.Emitter,
          SnippetString,
          BasicList,
          Mutex,
          TreeItem,
          SemanticTokensBuilder,
          FloatFactory: FloatFactoryImpl,
          RelativePattern: RelativePattern2,
          CancellationError,
          WorkspaceChange,
          ResponseError: import_node4.ResponseError,
          StringValue,
          SnippetTextEdit,
          Trace: import_node4.Trace,
          DocumentUri,
          WorkspaceFolder,
          SelectedCompletionInfo,
          InlineCompletionContext: import_node4.InlineCompletionContext,
          InlineCompletionItem: import_node4.InlineCompletionItem,
          InlineCompletionList,
          InlineCompletionTriggerKind,
          InlineValueText,
          InlineValueVariableLookup,
          InlineValueEvaluatableExpression,
          InlineValueContext,
          InlayHintKind,
          InlayHintLabelPart,
          InlayHint,
          DiagnosticRelatedInformation,
          SemanticTokens,
          SemanticTokenTypes,
          SemanticTokenModifiers,
          AnnotatedTextEdit,
          ChangeAnnotation,
          SymbolTag,
          Command,
          Color,
          CodeDescription,
          ColorInformation,
          ColorPresentation,
          TextDocumentEdit,
          TextDocumentIdentifier,
          VersionedTextDocumentIdentifier,
          TextDocumentItem,
          DocumentHighlight,
          SelectionRange,
          DocumentLink,
          CodeLens,
          FormattingOptions,
          CodeAction,
          CodeActionContext,
          DocumentSymbol,
          WorkspaceSymbol,
          CreateFile,
          RenameFile,
          WorkspaceEdit,
          InsertReplaceEdit,
          InsertTextMode,
          CompletionItem,
          CompletionList,
          Hover,
          ParameterInformation,
          SignatureInformation,
          SymbolInformation,
          MarkupContent,
          ErrorCodes: import_node4.ErrorCodes,
          EOL,
          ExtensionType,
          CompletionItemTag,
          integer,
          uinteger,
          FoldingRangeKind,
          FoldingRange,
          ChangeAnnotationIdentifier,
          DeleteFile,
          OptionalVersionedTextDocumentIdentifier,
          CompletionItemLabelDetails,
          MarkedString,
          ProviderName,
          DocumentDiagnosticReportKind: import_node4.DocumentDiagnosticReportKind,
          UniquenessLevel: import_node4.UniquenessLevel,
          MonikerKind: import_node4.MonikerKind,
          PatternType,
          SourceType,
          ConfigurationTarget: ConfigurationUpdateTarget,
          ServiceStat,
          FileType,
          State: State2,
          ClientState,
          CloseAction,
          ErrorAction,
          TransportKind,
          MessageTransports,
          RevealOutputChannelOn,
          MarkupKind,
          DiagnosticTag,
          DocumentHighlightKind,
          SymbolKind,
          SignatureHelpTriggerKind: import_node4.SignatureHelpTriggerKind,
          FileChangeType: import_node4.FileChangeType,
          CodeActionKind,
          Diagnostic,
          DiagnosticSeverity,
          CompletionItemKind,
          InsertTextFormat,
          Location,
          LocationLink,
          CancellationToken: import_node4.CancellationToken,
          Position,
          Range,
          TextEdit,
          Disposable: import_node4.Disposable,
          Event: import_node4.Event,
          workspace: workspace_default,
          window: window_default,
          CodeActionTriggerKind,
          CompletionTriggerKind: import_node4.CompletionTriggerKind,
          snippetManager: manager_default2,
          events: events_default,
          services: services_default,
          commands: commands_default,
          sources: sources_default,
          mcp: mcp_default,
          languages: languages_default,
          diagnosticManager: manager_default,
          extensions: extension_default,
          listManager: manager_default3,
          TreeItemCollapsibleState,
          DiagnosticPullMode,
          ApplyKind,
          terminate,
          fetch,
          download,
          ansiparse,
          disposeAll,
          concurrent,
          watchFile,
          wait,
          runCommand,
          isRunning,
          executable
        };
      }
    });
    
    // src/extension/loader.ts
    function removedGlobalStub(name2) {
      return () => {
        throw new Error(`process.${name2}() is not allowed in extension sandbox`);
      };
    }
    function createProcessFacade() {
      const facade = new process.constructor();
      for (let key of Reflect.ownKeys(process)) {
        if (typeof key === "string" && key.startsWith("_")) continue;
        facade[key] = process[key];
      }
      REMOVED_GLOBALS.forEach((name2) => {
        facade[name2] = removedGlobalStub(name2);
      });
      facade["chdir"] = () => {
      };
      facade["umask"] = (mask) => {
        if (typeof mask !== "undefined") {
          throw new Error("Cannot use process.umask() to change mask (read-only)");
        }
        return process.umask();
      };
      return facade;
    }
    function copyGlobalProperties(sandbox, globalObj) {
      for (const key of Object.keys(globalObj)) {
        const value = sandbox[key];
        if (value === void 0) {
          sandbox[key] = globalObj[key];
        }
      }
      return sandbox;
    }
    function createExtensionContext(id2, console2) {
      const sandbox = vm.createContext({
        console: console2,
        Buffer,
        URL: globalThis.URL,
        WebAssembly: globalThis.WebAssembly
      }, { name: id2 });
      copyGlobalProperties(sandbox, global);
      sandbox["process"] = createProcessFacade();
      return sandbox;
    }
    function stripBOM(content) {
      if (content.charCodeAt(0) === 65279) return content.slice(1);
      return content;
    }
    function stripShebang(content) {
      return content.startsWith("#!") ? content.replace(/^#![^\n]*/, "") : content;
    }
    function getLoader(runtime) {
      let loader = runtime.loader;
      if (!loader) {
        loader = new ExtensionLoader(runtime);
        Object.defineProperty(runtime, "loader", {
          value: loader,
          enumerable: false,
          configurable: true,
          writable: true
        });
      }
      return loader;
    }
    function createExtensionRequire(runtime, parent) {
      const loader = getLoader(runtime);
      const req = (request2) => {
        return loader.require(request2, parent);
      };
      req.resolve = (request2, options3) => {
        return loader.resolve(request2, parent, options3);
      };
      req.resolve.paths = (request2) => {
        return loader.resolvePaths(request2, parent);
      };
      req.main = mainModule;
      return req;
    }
    function createExtensionRuntime(id2, filename, core, logger75, extensionRoot, subscriptions = []) {
      const { console: console2, state } = createExtensionConsole(id2, logger75);
      const root = extensionRoot ?? path.dirname(filename);
      let realRoot = root;
      try {
        realRoot = fs.realpathSync(root);
      } catch (e2) {
      }
      const apiContext = {
        extensionId: id2,
        extensionRoot: realRoot,
        subscriptions
      };
      const runtime = {
        id: id2,
        root,
        realRoot,
        entry: filename,
        context: createExtensionContext(id2, console2),
        api: createExtensionApi(apiContext, core),
        console: console2,
        consoleState: state,
        cjsModules: /* @__PURE__ */ new Map(),
        esmModules: /* @__PURE__ */ new Map()
      };
      Object.defineProperty(runtime, "apiContext", {
        value: apiContext,
        enumerable: false,
        configurable: true,
        writable: true
      });
      return runtime;
    }
    function disposeExtension(id2) {
      let runtime = runtimes.get(id2);
      if (runtime) {
        runtime.cjsModules.clear();
        runtime.esmModules.clear();
        runtime.consoleState.timers.clear();
        runtime.consoleState.counters.clear();
        runtime.consoleState.groupDepth = 0;
        let apiContext = runtime.apiContext;
        if (apiContext) {
          let subscriptions = Array.from(new Set(apiContext.subscriptions));
          apiContext.subscriptions.length = 0;
          for (let disposable of subscriptions) {
            disposable.dispose();
          }
        }
        runtimes.delete(id2);
      }
    }
    function getLogger(useConsole, id2) {
      if (useConsole) {
        return consoleLogger;
      }
      return createLogger(`extension:${id2}`);
    }
    function finalizeExports(id2, defaultImport) {
      const activate = defaultImport && defaultImport["activate"] || defaultImport;
      if (typeof activate !== "function") {
        disposeExtension(id2);
        return { activate: () => {
        } };
      }
      return typeof defaultImport === "function" ? { activate } : Object.assign({}, defaultImport);
    }
    function emptyExtension() {
      return { activate: () => {
      }, deactivate: null };
    }
    async function createExtensionAsync(id2, filename, isEmpty2, options3, subscriptions) {
      if (isEmpty2 || options3?.sourceCode == null && !fs.existsSync(filename)) return emptyExtension();
      disposeExtension(id2);
      const logger75 = getLogger(!global.__isMain && true, id2);
      let api;
      if (global.__isMain === void 0) {
        api = {};
      } else {
        api = require_src2();
      }
      const runtime = createExtensionRuntime(id2, filename, api, logger75, options3?.extensionRoot, subscriptions);
      runtimes.set(id2, runtime);
      const loader = getLoader(runtime);
      let defaultImport;
      const sourceCode = options3?.sourceCode;
      try {
        if (options3?.sourceFormat === "module" || sourceCode == null && resolveModuleFormat(filename) === "module") {
          defaultImport = await loadESMEntry(
            runtime,
            options3?.sourceFilename ?? filename,
            sourceCode
          );
        } else {
          defaultImport = loader.loadJavaScript(filename, void 0, sourceCode);
        }
        if (typeof defaultImport === "object" && defaultImport !== null && typeof defaultImport["default"] === "function" && typeof defaultImport["activate"] !== "function") {
          defaultImport = defaultImport["default"];
        }
        return finalizeExports(id2, defaultImport);
      } catch (e2) {
        disposeExtension(id2);
        throw e2;
      }
    }
    var Module2, mainModule, REMOVED_GLOBALS, consoleLogger, ExtensionLoader, runtimes;
    var init_loader = __esm({
      "src/extension/loader.ts"() {
        "use strict";
        init_logger();
        init_node();
        init_console();
        init_facade();
        init_esm6();
        Module2 = require("module");
        mainModule = require.main;
        REMOVED_GLOBALS = [
          "reallyExit",
          "abort",
          "umask",
          "setuid",
          "setgid",
          "setgroups",
          "_fatalException",
          "exit",
          "kill"
        ];
        consoleLogger = {
          category: "",
          log: console.log.bind(console),
          debug: console.debug.bind(console),
          error: console.error.bind(console),
          warn: console.warn.bind(console),
          info: console.info.bind(console),
          trace: console.log.bind(console),
          fatal: console.error.bind(console),
          mark: console.log.bind(console)
        };
        ExtensionLoader = class {
          constructor(runtime) {
            this.runtime = runtime;
          }
          runtime;
          parents = /* @__PURE__ */ new WeakMap();
          isBuiltin(request2) {
            if (request2.startsWith("node:")) return true;
            return Module2.isBuiltin(request2) === true;
          }
          normalizeFilename(filename) {
            try {
              return fs.realpathSync(filename);
            } catch (e2) {
              return path.resolve(filename);
            }
          }
          parentModule(parent) {
            const record = new Module2(parent.filename);
            record.filename = parent.filename;
            record.id = parent.filename;
            record.paths = Module2._nodeModulePaths(parent.dirname);
            return record;
          }
          /**
           * Resolve a request against the parent module using Node's resolver.
           */
          resolve(request2, parent, options3) {
            if (this.isBuiltin(request2)) return request2;
            return Module2._resolveFilename(request2, this.parentModule(parent), false, options3);
          }
          /**
           * Node-compatible `require.resolve.paths` for a request from a parent
           * module. Returns null for builtins, like Node does.
           */
          resolvePaths(request2, parent) {
            return Module2._resolveLookupPaths(request2, this.parentModule(parent));
          }
          /**
           * Extension-local require: API injection, builtins, then modules in this
           * runtime.
           */
          require(request2, parent) {
            if (request2 === "coc.nvim") return this.runtime.api;
            if (this.isBuiltin(request2)) return this.loadBuiltin(request2);
            let resolved = resolveExtensionModule(this.runtime, request2, parent.filename, "require");
            if (resolved.type === "file" && resolved.format === "module") {
              throw requireESMError(resolved.filename);
            }
            return this.load(resolved.filename, parent);
          }
          load(filename, parent, isMain = false) {
            const cacheKey = this.normalizeFilename(filename);
            const ext2 = path.extname(cacheKey).toLowerCase();
            if (ext2 === ".json") return this.loadJson(cacheKey, parent);
            if (ext2 === ".node") return this.loadNative(cacheKey, parent);
            if (ext2 === ".js" || ext2 === ".cjs" || ext2 === "") return this.loadJavaScript(cacheKey, parent);
            if (ext2 === ".mjs") throw requireESMError(cacheKey);
            throw new Error(`Unsupported module type "${ext2}" for ${cacheKey}`);
          }
          /**
           * Load a native addon outside the VM. The addon is dlopen'd by Node and its
           * exports are cached in the runtime module cache.
           */
          loadNative(filename, parent) {
            const cacheKey = this.normalizeFilename(filename);
            const cached = this.runtime.cjsModules.get(cacheKey);
            if (cached) return cached.exports;
            const nodeModule = new Module2(cacheKey);
            nodeModule.filename = cacheKey;
            nodeModule.paths = Module2._nodeModulePaths(path.dirname(cacheKey));
            const nativeLoad = Module2._extensions && Module2._extensions[".node"];
            if (typeof nativeLoad !== "function") {
              throw new Error(`Unsupported native addon: ${cacheKey}`);
            }
            nativeLoad(nodeModule, cacheKey);
            const module2 = this.createModule(cacheKey, parent);
            module2.exports = nodeModule.exports;
            module2.loaded = true;
            return module2.exports;
          }
          /**
           * Load a JSON module synchronously and cache the parsed value per runtime.
           */
          loadJson(filename, parent) {
            const cacheKey = this.normalizeFilename(filename);
            const cached = this.runtime.cjsModules.get(cacheKey);
            if (cached) return cached.exports;
            const source = fs.readFileSync(cacheKey, "utf8");
            let value;
            try {
              value = JSON.parse(stripBOM(source));
            } catch (e2) {
              throw new Error(`Error parsing JSON module ${cacheKey}: ${e2.message}`, { cause: e2 });
            }
            const module2 = this.createModule(cacheKey, parent);
            module2.exports = value;
            module2.loaded = true;
            return module2.exports;
          }
          loadBuiltin(request2) {
            if (request2 === "process" || request2 === "node:process") {
              return this.runtime.context.process;
            }
            if (request2 === "console" || request2 === "node:console") {
              return getConsoleFacade(this.runtime);
            }
            return require(request2);
          }
          /**
           * Load a CommonJS JavaScript module. The module record is cached before
           * execution so circular dependencies observe partial exports; failed
           * modules are removed from the cache and the module graph.
           */
          loadJavaScript(filename, parent, source) {
            const cacheKey = this.normalizeFilename(filename);
            const cached = this.runtime.cjsModules.get(cacheKey);
            if (cached) return cached.exports;
            const module2 = this.createModule(cacheKey, parent);
            let code;
            if (source !== void 0) {
              code = source;
            } else {
              try {
                code = fs.readFileSync(cacheKey, "utf8");
              } catch (e2) {
                this.failModule(module2);
                throw e2;
              }
            }
            try {
              this.compileCommonJS(module2, code);
              module2.loaded = true;
            } catch (e2) {
              this.failModule(module2);
              throw e2;
            }
            return module2.exports;
          }
          /**
           * Compile and execute one CommonJS module with `vm.compileFunction` inside
           * the extension context.
           */
          compileCommonJS(module2, source) {
            const code = stripShebang(stripBOM(source));
            const fn = vm.compileFunction(
              code,
              ["exports", "require", "module", "__filename", "__dirname"],
              {
                filename: module2.filename,
                parsingContext: this.runtime.context,
                importModuleDynamically: (specifier) => {
                  return dynamicImportModule(this.runtime, specifier, module2.filename);
                }
              }
            );
            const localRequire = createExtensionRequire(this.runtime, module2);
            module2["require"] = localRequire;
            fn.call(module2.exports, module2.exports, localRequire, module2, module2.filename, module2.dirname);
          }
          /**
           * Drop all cached modules of this runtime.
           */
          clear() {
            this.runtime.cjsModules.clear();
          }
          createModule(filename, parent) {
            const module2 = {
              id: filename,
              filename,
              dirname: path.dirname(filename),
              exports: {},
              loaded: false,
              parent,
              children: []
            };
            this.runtime.cjsModules.set(filename, module2);
            if (parent) {
              parent.children.push(module2);
              let parents = this.parents.get(module2);
              if (!parents) {
                parents = /* @__PURE__ */ new Set();
                this.parents.set(module2, parents);
              }
              parents.add(parent);
            }
            return module2;
          }
          failModule(module2) {
            this.runtime.cjsModules.delete(module2.filename);
            const parents = this.parents.get(module2);
            if (parents) {
              for (const parent of parents) {
                let idx = parent.children.indexOf(module2);
                if (idx !== -1) parent.children.splice(idx, 1);
              }
              this.parents.delete(module2);
            }
            for (const child of module2.children) {
              if (child.parent === module2) child.parent = void 0;
              const childParents = this.parents.get(child);
              if (childParents) childParents.delete(module2);
            }
            module2.children = [];
          }
        };
        runtimes = /* @__PURE__ */ new Map();
      }
    });
    
    // src/model/memos.ts
    var Memos;
    var init_memos = __esm({
      "src/model/memos.ts"() {
        "use strict";
        init_fs();
        init_node();
        init_object();
        Memos = class {
          constructor(filepath) {
            this.filepath = filepath;
            if (!fs.existsSync(filepath)) {
              fs.mkdirSync(path.dirname(filepath), { recursive: true });
              fs.writeFileSync(filepath, "{}", "utf8");
            }
          }
          filepath;
          merge(filepath) {
            if (!fs.existsSync(filepath)) return;
            let obj = loadJson(filepath);
            let current = loadJson(this.filepath);
            Object.assign(current, obj);
            writeJson(this.filepath, current);
            fs.unlinkSync(filepath);
          }
          fetchContent(id2, key) {
            let res = loadJson(this.filepath);
            let obj = res[id2];
            if (!obj) return void 0;
            return obj[key];
          }
          async update(id2, key, value) {
            let { filepath } = this;
            let current = loadJson(filepath);
            current[id2] = current[id2] || {};
            if (value !== void 0) {
              current[id2][key] = deepClone(value);
            } else {
              delete current[id2][key];
            }
            writeJson(filepath, current);
          }
          createMemento(id2) {
            return {
              get: (key, defaultValue2) => {
                let res = this.fetchContent(id2, key);
                return res === void 0 ? defaultValue2 : res;
              },
              update: async (key, value) => {
                await this.update(id2, key, value);
              }
            };
          }
        };
      }
    });
    
    // src/util/timing.ts
    function createTiming(name2, timeout2) {
      let start;
      let timer;
      let _label;
      return {
        start(label) {
          _label = label;
          start = Date.now();
          clearTimeout(timer);
          if (timeout2) {
            timer = setTimeout(() => {
              logger53.error(`${name2} timeout after ${timeout2}ms`);
            }, timeout2);
            timer.unref();
          }
        },
        stop() {
          clearTimeout(timer);
          logger53.trace(`${name2}${_label ? ` ${_label}` : ""} cost:`, Date.now() - start);
        }
      };
    }
    var logger53;
    var init_timing = __esm({
      "src/util/timing.ts"() {
        "use strict";
        init_logger();
        logger53 = createLogger("timing");
      }
    });
    
    // src/extension/stat.ts
    function toInterval(opt) {
      return opt === "daily" ? ONE_DAY : ONE_DAY * 7;
    }
    function validExtensionFolder(folder, version2) {
      let errors = [];
      let res = loadExtensionJson(folder, version2, errors);
      return res != null && errors.length == 0;
    }
    function getEntryFile(main) {
      if (!main) return "index.js";
      if (!main.endsWith(".js")) return main + ".js";
      return main;
    }
    async function loadGlobalJsonAsync(folder, version2) {
      let jsonFile = path.join(folder, "package.json");
      let content = await readFile(jsonFile, "utf8");
      let packageJSON = JSON.parse(content);
      let { engines } = packageJSON;
      let main = getEntryFile(packageJSON.main);
      if (!engines || typeof engines.coc !== "string" && typeof engines.vscode !== "string") throw new Error("Invalid engines field");
      let keys = Object.keys(engines);
      if (keys.includes("coc") && !semver.satisfies(version2, engines["coc"].replace(/^\^/, ">="))) {
        throw new Error(`coc.nvim version not match, required ${engines["coc"]}`);
      }
      if (!engines.vscode && !fs.existsSync(path.join(folder, main))) {
        throw new Error(`main file ${main} not found, you may need to build the project.`);
      }
      return packageJSON;
    }
    function loadExtensionJson(folder, version2, errors) {
      let jsonFile = path.join(folder, "package.json");
      if (!fs.existsSync(jsonFile)) {
        errors.push(`package.json not found in ${folder}`);
        return void 0;
      }
      let packageJSON = loadJson2(jsonFile);
      let { name: name2, engines } = packageJSON;
      let main = getEntryFile(packageJSON.main);
      if (!name2) errors.push(`can't find name in package.json`);
      if (!engines || !objectLiteral(engines)) {
        errors.push(`invalid engines in ${jsonFile}`);
      }
      if (engines && !engines.vscode && !fs.existsSync(path.join(folder, main))) {
        errors.push(`main file ${main} not found, you may need to build the project.`);
      }
      if (engines) {
        let keys = Object.keys(engines);
        if (!keys.includes("coc") && !keys.includes("vscode")) {
          errors.push(`Engines in package.json doesn't have coc or vscode`);
        }
        if (keys.includes("coc")) {
          let required = engines["coc"].replace(/^\^/, ">=");
          if (!semver.satisfies(version2, required)) {
            errors.push(`Please update coc.nvim, ${packageJSON.name} requires coc.nvim ${engines["coc"]}`);
          }
        }
      }
      return packageJSON;
    }
    function getExtensionName(def) {
      if (/^https?:/.test(def)) return def;
      if (!def.includes("@")) return def;
      return def.replace(/@[\d.]+$/, "");
    }
    function checkExtensionRoot(root) {
      try {
        if (!fs.existsSync(root)) {
          fs.mkdirSync(root, { recursive: true });
        }
        let stat = fs.statSync(root);
        if (!stat.isDirectory()) {
          logger54.info(`Trying to delete ${root}`);
          fs.unlinkSync(root);
          fs.mkdirSync(root, { recursive: true });
        }
        let jsonFile = path.join(root, "package.json");
        if (!fs.existsSync(jsonFile)) {
          fs.writeFileSync(jsonFile, '{"dependencies":{}}', "utf8");
        }
      } catch (e2) {
        console.error(`Unexpected error when check data home ${root}: ${e2}`);
        return false;
      }
      return true;
    }
    async function getJsFiles(folder) {
      if (!fs.existsSync(folder)) return [];
      let files = await fs.promises.readdir(folder);
      return files.filter((f2) => f2.endsWith(".js"));
    }
    function loadJson2(filepath) {
      try {
        let text = fs.readFileSync(filepath, "utf8");
        let data = JSON.parse(text);
        return toObject(data);
      } catch (e2) {
        logger54.error(`Error on parse json file ${filepath}`, e2);
        return {};
      }
    }
    var logger54, ONE_DAY, DISABLE_PROMPT_KEY, ExtensionStat;
    var init_stat = __esm({
      "src/extension/stat.ts"() {
        "use strict";
        init_logger();
        init_array();
        init_fs();
        init_is();
        init_node();
        init_object();
        logger54 = createLogger("extension-stat");
        ONE_DAY = 24 * 60 * 60 * 1e3;
        DISABLE_PROMPT_KEY = "disablePrompt";
        ExtensionStat = class {
          constructor(folder) {
            this.folder = folder;
            try {
              this.migrate();
            } catch (e2) {
              logger54.error(`Error on update package.json at ${folder}`, e2);
            }
          }
          folder;
          disabled = /* @__PURE__ */ new Set();
          locked = /* @__PURE__ */ new Set();
          extensions = /* @__PURE__ */ new Set();
          localExtensions = /* @__PURE__ */ new Map();
          migrate() {
            let curr = loadJson2(this.jsonFile);
            let db = path.join(this.folder, "db.json");
            let changed = false;
            if (fs.existsSync(db)) {
              let obj = loadJson2(db);
              let def = obj.extension ?? {};
              for (let [key, o2] of Object.entries(def)) {
                if (o2.disabled) this.disabled.add(key);
                if (o2.locked) this.locked.add(key);
              }
              curr.disabled = Array.from(this.disabled);
              curr.locked = Array.from(this.locked);
              curr.lastUpdate = obj.lastUpdate;
              fs.unlinkSync(db);
              changed = true;
            } else {
              this.disabled = new Set(curr.disabled ?? []);
              this.locked = new Set(curr.locked ?? []);
            }
            if (changed) writeJson(this.jsonFile, curr);
            let ids = Object.keys(curr.dependencies ?? {});
            this.extensions = new Set(ids);
          }
          addNoPromptFolder(uri) {
            let curr = loadJson2(this.jsonFile);
            curr[DISABLE_PROMPT_KEY] = curr[DISABLE_PROMPT_KEY] ?? [];
            curr[DISABLE_PROMPT_KEY].push(uri);
            writeJson(this.jsonFile, curr);
          }
          shouldPrompt(uri) {
            let curr = loadJson2(this.jsonFile);
            let arr = curr[DISABLE_PROMPT_KEY] ?? [];
            return !arr.includes(uri);
          }
          reset() {
            writeJson(this.jsonFile, {});
          }
          *activated() {
            let { disabled } = this;
            for (let key of Object.keys(this.dependencies)) {
              if (!disabled.has(key)) {
                yield key;
              }
            }
          }
          addLocalExtension(name2, folder) {
            this.localExtensions.set(name2, folder);
          }
          getFolder(name2) {
            if (this.extensions.has(name2)) return path.join(this.folder, "node_modules", name2);
            return this.localExtensions.get(name2);
          }
          getExtensionsStat() {
            let res = {};
            for (let id2 of this.extensions) {
              if (this.disabled.has(id2)) {
                res[id2] = 1 /* Disabled */;
              } else if (this.locked.has(id2)) {
                res[id2] = 2 /* Locked */;
              } else {
                res[id2] = 0 /* Normal */;
              }
            }
            return res;
          }
          hasExtension(id2) {
            return this.extensions.has(id2);
          }
          addExtension(id2, val) {
            let curr = loadJson2(this.jsonFile);
            curr.dependencies = curr.dependencies ?? {};
            curr.dependencies[id2] = val;
            this.extensions.add(id2);
            writeJson(this.jsonFile, curr);
          }
          removeExtension(id2) {
            let curr = loadJson2(this.jsonFile);
            if (curr.disabled) curr.disabled = curr.disabled.filter((key) => key !== id2);
            if (curr.locked) curr.locked = curr.locked.filter((key) => key !== id2);
            curr.dependencies = curr.dependencies ?? {};
            delete curr.dependencies[id2];
            this.extensions.delete(id2);
            writeJson(this.jsonFile, curr);
          }
          isDisabled(id2) {
            return this.disabled.has(id2);
          }
          get lockedExtensions() {
            return Array.from(this.locked);
          }
          get disabledExtensions() {
            return Array.from(this.disabled);
          }
          get dependencies() {
            let curr = loadJson2(this.jsonFile);
            return curr.dependencies ?? {};
          }
          setDisable(id2, disable) {
            if (disable) {
              this.disabled.add(id2);
            } else {
              this.disabled.delete(id2);
            }
            this.update("disabled", Array.from(this.disabled));
          }
          setLocked(id2, locked) {
            if (locked) {
              this.locked.add(id2);
            } else {
              this.locked.delete(id2);
            }
            this.update("locked", Array.from(this.disabled));
          }
          setLastUpdate() {
            this.update("lastUpdate", Date.now());
          }
          shouldUpdate(opt) {
            if (opt === "never") return false;
            let interval2 = toInterval(opt);
            let curr = loadJson2(this.jsonFile);
            return curr.lastUpdate == null || Date.now() - curr.lastUpdate > interval2;
          }
          get globalIds() {
            let curr = loadJson2(this.jsonFile);
            return Object.keys(curr.dependencies ?? {});
          }
          /**
           * Filter out global extensions that needs install
           */
          filterGlobalExtensions(names) {
            let disabledExtensions = this.disabledExtensions;
            let dependencies = this.dependencies;
            let map = /* @__PURE__ */ new Map();
            toArray(names).forEach((def) => {
              if (!def || typeof def !== "string") return;
              let name2 = getExtensionName(def);
              map.set(name2, def);
            });
            let currentUrls = [];
            let exists = [];
            for (let [key, val] of Object.entries(dependencies)) {
              if (fs.existsSync(path.join(this.folder, "node_modules", key, "package.json"))) {
                exists.push(key);
                if (typeof val === "string" && /^https?:/.test(val)) {
                  currentUrls.push(val);
                }
              }
            }
            for (let name2 of map.keys()) {
              if (disabledExtensions.includes(name2) || this.extensions.has(name2)) {
                map.delete(name2);
                continue;
              }
              if (/^https?:/.test(name2) && currentUrls.some((url) => url.startsWith(name2)) || exists.includes(name2)) {
                map.delete(name2);
              }
            }
            return Array.from(map.values());
          }
          update(key, value) {
            let curr = loadJson2(this.jsonFile);
            curr[key] = value;
            writeJson(this.jsonFile, curr);
          }
          get jsonFile() {
            return path.join(this.folder, "package.json");
          }
        };
      }
    });
    
    // src/extension/manager.ts
    function getEvents(activationEvents) {
      let res = [];
      for (let ev of toArray(activationEvents)) {
        let [name2] = ev.split(":", 2);
        if (name2 && !res.includes(name2)) res.push(name2);
      }
      return res;
    }
    function getOnCommandList(activationEvents) {
      let res = [];
      for (let ev of toArray(activationEvents)) {
        let [name2, command] = ev.split(":", 2);
        if (name2 === "onCommand" /* OnCommand */ && command) res.push(command);
      }
      return res;
    }
    function checkLanguageId(document2, activationEvents) {
      for (let eventName of activationEvents) {
        let parts = eventName.split(":");
        let ev = parts[0];
        if (ev == "onLanguage" /* OnLanguage */ && (document2.languageId == parts[1] || document2.filetype == parts[1])) {
          return true;
        }
      }
      return false;
    }
    function checkCommand(command, activationEvents) {
      for (let eventName of activationEvents) {
        let parts = eventName.split(":");
        let ev = parts[0];
        if (ev == "onCommand" /* OnCommand */ && command == parts[1]) {
          return true;
        }
      }
      return false;
    }
    function checkFileSystem(uri, activationEvents) {
      let scheme = u.parse(uri).scheme;
      for (let eventName of activationEvents) {
        let parts = eventName.split(":");
        let ev = parts[0];
        if (ev == "onFileSystem" /* OnFileSystem */ && scheme == parts[1]) {
          return true;
        }
      }
      return false;
    }
    function getActivationEvents(json) {
      return toArray(json.activationEvents).filter((key) => typeof key === "string" && key.length > 0);
    }
    function toWorkspaceContainsPatterns(activationEvents) {
      let patterns = [];
      for (let eventName of activationEvents) {
        let parts = eventName.split(":");
        if (parts[0] == "workspaceContains" /* WorkspaceContains */ && parts[1]) {
          patterns.push(parts[1]);
        }
      }
      return patterns;
    }
    var logger55, ExtensionType, extensionRegistry5, memos, configurationRegistry2, ExtensionManager;
    var init_manager5 = __esm({
      "src/extension/manager.ts"() {
        "use strict";
        init_esm();
        init_registry2();
        init_types();
        init_events();
        init_loader();
        init_logger();
        init_memos();
        init_util();
        init_array();
        init_constants();
        init_errors();
        init_extensionId();
        init_extensionRegistry();
        init_fs();
        init_is();
        init_lodash();
        init_node();
        init_object();
        init_protocol();
        init_registry();
        init_timing();
        init_window();
        init_workspace();
        init_stat();
        logger55 = createLogger("extensions-manager");
        ExtensionType = /* @__PURE__ */ ((ExtensionType2) => {
          ExtensionType2[ExtensionType2["Global"] = 0] = "Global";
          ExtensionType2[ExtensionType2["Local"] = 1] = "Local";
          ExtensionType2[ExtensionType2["SingleFile"] = 2] = "SingleFile";
          ExtensionType2[ExtensionType2["Internal"] = 3] = "Internal";
          return ExtensionType2;
        })(ExtensionType || {});
        extensionRegistry5 = Registry.as(Extensions.ExtensionContribution);
        memos = new Memos(path.resolve(dataHome, "memos.json"));
        memos.merge(path.resolve(dataHome, "../memos.json"));
        configurationRegistry2 = Registry.as(Extensions3.Configuration);
        ExtensionManager = class {
          constructor(states, folder) {
            this.states = states;
            this.folder = folder;
            this.modulesFolder = path.join(this.folder, "node_modules");
          }
          states;
          folder;
          activated = false;
          disposables = [];
          configurationNodes = [];
          extensions = /* @__PURE__ */ new Map();
          _onDidLoadExtension = new import_node4.Emitter();
          _onDidActiveExtension = new import_node4.Emitter();
          _onDidUnloadExtension = new import_node4.Emitter();
          singleExtensionsRoot = path.join(configHome, "coc-extensions");
          modulesFolder;
          onDidLoadExtension = this._onDidLoadExtension.event;
          onDidActiveExtension = this._onDidActiveExtension.event;
          onDidUnloadExtension = this._onDidUnloadExtension.event;
          activateExtensions() {
            this.activated = true;
            if (process.env.COC_NO_PLUGINS == "1") return;
            configurationRegistry2.registerConfigurations(this.configurationNodes);
            this.attachEvents();
            let promises = [];
            for (let key of this.extensions.keys()) {
              const { extension } = this.extensions.get(key);
              const activationEvents = extension.packageJSON.activationEvents;
              if (!activationEvents || activationEvents.includes("*")) {
                promises.push(this.activate(key).then(() => void 0));
              } else {
                void this.autoActivate(key, extension);
              }
            }
            return Promise.allSettled(promises);
          }
          async loadFileExtensions() {
            let folder = this.singleExtensionsRoot;
            let files = await getJsFiles(folder);
            await Promise.allSettled(files.map((file) => {
              return this.loadExtensionFile(path.join(folder, file));
            }));
          }
          attachEvents() {
            workspace_default.onDidRuntimePathChange(async (paths) => {
              let folders = paths.filter((p2) => p2 && validExtensionFolder(p2, workspace_default.version));
              let outputChannel = window_default.createOutputChannel("extensions");
              await Promise.allSettled(folders.map((folder) => {
                outputChannel.appendLine(`Loading extension from runtimepath: ${folder}`);
                return this.loadExtension(folder);
              }));
            }, null, this.disposables);
            workspace_default.onDidOpenTextDocument((document2) => {
              let doc = workspace_default.getDocument(document2.bufnr);
              this.tryActivateExtensions("onLanguage" /* OnLanguage */, (events) => {
                return checkLanguageId(doc, events);
              });
              this.tryActivateExtensions("onFileSystem" /* OnFileSystem */, (events) => {
                return checkFileSystem(doc.uri, events);
              });
            }, null, this.disposables);
            events_default.on("Command", async (command) => {
              let fired = false;
              this.tryActivateExtensions("onCommand" /* OnCommand */, (events) => {
                let result = checkCommand(command, events);
                if (result) fired = true;
                return result;
              });
              if (fired) await wait(50);
            }, null, this.disposables);
            workspace_default.onDidChangeWorkspaceFolders((e2) => {
              if (e2.added.length > 0) {
                this.tryActivateExtensions("workspaceContains" /* WorkspaceContains */, (events) => {
                  let patterns = toWorkspaceContainsPatterns(events);
                  return workspace_default.checkPatterns(patterns, e2.added);
                });
              }
            }, null, this.disposables);
          }
          /**
           * Unload & remove all global extensions, return removed extensions.
           */
          async cleanExtensions() {
            let { globalIds } = this.states;
            await remove(this.modulesFolder);
            return globalIds.filter((id2) => !this.states.isDisabled(id2));
          }
          tryActivateExtensions(event, check) {
            for (let item of this.extensions.values()) {
              if (item.extension.isActive) continue;
              let events = item.events;
              if (!events.includes(event)) continue;
              let { extension } = item;
              let activationEvents = getActivationEvents(extension.packageJSON);
              void Promise.resolve(check(activationEvents)).then((checked) => {
                if (checked) void Promise.resolve(this.activate(extension.id));
              });
            }
          }
          async checkAutoActivate(packageJSON) {
            let activationEvents = getActivationEvents(packageJSON);
            if (activationEvents.length === 0 || activationEvents.includes("*")) {
              return true;
            }
            let patterns = [];
            for (let eventName of activationEvents) {
              let parts = eventName.split(":");
              let ev = parts[0];
              if (ev === "onLanguage" /* OnLanguage */) {
                if (workspace_default.languageIds.has(parts[1]) || workspace_default.filetypes.has(parts[1])) {
                  return true;
                }
              } else if (ev === "workspaceContains" /* WorkspaceContains */ && parts[1]) {
                patterns.push(parts[1]);
              } else if (ev === "onFileSystem" /* OnFileSystem */) {
                for (let doc of workspace_default.documents) {
                  let u2 = u.parse(doc.uri);
                  if (u2.scheme == parts[1]) {
                    return true;
                  }
                }
              }
            }
            if (patterns.length > 0) {
              let res = await workspace_default.checkPatterns(patterns);
              if (res) return true;
            }
            return false;
          }
          has(id2) {
            return this.extensions.has(id2);
          }
          getExtension(id2) {
            return this.extensions.get(id2);
          }
          get loadedExtensions() {
            return Array.from(this.extensions.keys());
          }
          get all() {
            return Array.from(this.extensions.values()).map((o2) => o2.extension);
          }
          /**
           * Activate extension, throw error if disabled or doesn't exist.
           * Returns true if extension successfully activated.
           */
          async activate(id2) {
            return this.activateWithSet(id2, /* @__PURE__ */ new Set());
          }
          async activateWithSet(id2, activating) {
            let item = this.extensions.get(id2);
            if (!item) throw new Error(`Extension ${id2} not registered!`);
            let { extension } = item;
            if (extension.isActive) return true;
            if (activating.has(id2)) {
              logger55.warn(`Circular dependency detected: ${id2}`);
              return false;
            }
            activating = new Set(activating).add(id2);
            const { packageJSON } = extension;
            if (packageJSON.extensionDependencies?.length > 0) {
              const deps = packageJSON.extensionDependencies;
              const results = await Promise.allSettled(deps.map((dep) => this.activateWithSet(dep, activating)));
              for (let i2 = 0; i2 < results.length; i2++) {
                const result = results[i2];
                if (result.status === "rejected" || result.status === "fulfilled" && !result.value) {
                  const dep = deps[i2];
                  const reason = result.status === "rejected" ? result.reason : void 0;
                  if (reason !== void 0) {
                    logger55.error(`Could not activate dependency ${dep} for ${id2}.`, reason);
                  } else {
                    logger55.error(`Could not activate dependency ${dep} for ${id2}, activation failed.`);
                  }
                  return false;
                }
              }
            }
            await extension.activate();
            return extension.isActive === true;
          }
          async deactivate(id2) {
            let item = this.extensions.get(id2);
            if (!item) return;
            await Promise.resolve(item.deactivate());
          }
          /**
           * Load extension from folder, folder should contains coc extension.
           */
          async loadExtension(folder, noActive = false) {
            if (Array.isArray(folder)) {
              let results = await Promise.allSettled(folder.map((f2) => {
                return this.loadExtension(f2, noActive);
              }));
              results.forEach((res) => {
                if (res.status === "rejected") throw new Error(`Error on loadExtension ${res.reason}`);
              });
              return true;
            }
            let errors = [];
            let obj = loadExtensionJson(folder, workspace_default.version, errors);
            if (errors.length > 0) throw new Error(errors[0]);
            let { name: name2 } = obj;
            if (this.states.isDisabled(name2)) return false;
            await this.unloadExtension(name2);
            let isLocal = !this.states.hasExtension(name2);
            if (isLocal) this.states.addLocalExtension(name2, folder);
            await this.registerExtension(folder, Object.freeze(obj), isLocal ? 1 /* Local */ : 0 /* Global */, noActive);
            return true;
          }
          /**
           * Deactivate & unregist extension
           */
          async unloadExtension(id2) {
            let item = this.extensions.get(id2);
            if (item) {
              await this.deactivate(id2);
              this.unregistContribution(id2);
              this.extensions.delete(id2);
              this._onDidUnloadExtension.fire(id2);
            }
            disposeExtension(id2);
          }
          async reloadExtension(id2) {
            let item = this.extensions.get(id2);
            if (!item || item.type == 3 /* Internal */) {
              throw new Error(`Extension ${id2} not registered`);
            }
            if (item.type == 2 /* SingleFile */) {
              await this.loadExtensionFile(item.filepath);
            } else {
              await this.loadExtension(item.directory);
            }
          }
          async call(id2, method, args) {
            let item = this.extensions.get(id2);
            if (!item) throw new Error(`extension ${id2} not registered`);
            let { extension } = item;
            if (!extension.isActive) {
              await this.activate(id2);
            }
            let { exports: exports2 } = extension;
            if (!exports2 || typeof exports2[method] !== "function") {
              throw new Error(`method ${method} not found on extension ${id2}`);
            }
            return await Promise.resolve(exports2[method].apply(null, args));
          }
          registContribution(id2, packageJSON, directory, filepath) {
            let { contributes, activationEvents } = packageJSON;
            let { configuration: configuration2, rootPatterns, commands } = contributes ?? {};
            let definitions;
            let props = getProperties(configuration2 ?? {});
            if (!isEmpty(props)) {
              let properties = convertProperties(props, 2 /* WINDOW */);
              if (objectLiteral(configuration2.definitions)) {
                let prefix2 = id2.replace(/[^\w]/g, "");
                const addPrefix = (obj, key) => {
                  if (key == "$ref") {
                    let val = obj[key];
                    if (string(val) && val.startsWith("#/definitions/")) {
                      obj[key] = val.slice(0, 14) + prefix2 + "." + val.slice(14);
                    }
                  }
                };
                deepIterate(properties, addPrefix);
                definitions = {};
                Object.entries(deepClone(configuration2.definitions)).forEach(([key, val]) => {
                  if (objectLiteral(val)) {
                    definitions[prefix2 + "." + key] = val;
                    deepIterate(val, addPrefix);
                  }
                });
              }
              let node = { properties, extensionInfo: { id: id2, displayName: packageJSON.displayName } };
              let toRemove = [];
              let idx = this.configurationNodes.findIndex((o2) => o2.extensionInfo.id === id2);
              if (idx !== -1) {
                toRemove.push(this.configurationNodes[idx]);
                this.configurationNodes.splice(idx, 1);
              }
              this.configurationNodes.push(node);
              if (this.activated) {
                workspace_default.configurations.updateConfigurations([node], toRemove);
              }
            }
            extensionRegistry5.registerExtension(id2, {
              name: id2,
              directory,
              filepath,
              commands,
              definitions,
              rootPatterns,
              onCommands: getOnCommandList(activationEvents)
            });
          }
          getExtensionState(id2) {
            let disabled = this.states.isDisabled(id2);
            if (disabled) return "disabled";
            let item = this.getExtension(id2);
            if (!item) return "unknown";
            let { extension } = item;
            return extension.isActive ? "activated" : "loaded";
          }
          async autoActivate(id2, extension) {
            try {
              let checked = await this.checkAutoActivate(extension.packageJSON);
              if (checked) await Promise.resolve(this.activate(id2));
            } catch (e2) {
              logger55.error(`Error on activate ${id2}`, e2);
            }
          }
          async loadExtensionFile(filepath, noActive = false) {
            let stat = await statAsync(filepath);
            if (!stat || !stat.isFile()) return;
            let filename = path.basename(filepath);
            let basename2 = path.basename(filepath, ".js");
            let name2 = "single-" + basename2;
            let root = path.dirname(filepath);
            let packageJSON = { name: name2, main: filename, engines: { coc: ">=0.0.82" } };
            let confpath = path.join(root, basename2 + ".json");
            let obj = loadJson(confpath);
            for (const attr of ["activationEvents", "contributes"]) {
              packageJSON[attr] = obj[attr];
            }
            await this.unloadExtension(name2);
            await this.registerExtension(root, packageJSON, 2 /* SingleFile */, noActive);
            return name2;
          }
          registerExtensions(stats) {
            for (let stat of stats) {
              try {
                let extensionType = stat.isLocal ? 1 /* Local */ : 0 /* Global */;
                void this.registerExtension(stat.root, stat.packageJSON, extensionType);
              } catch (e2) {
                logger55.error(`Error on regist extension from ${stat.root}: `, e2);
              }
            }
          }
          async registerExtension(root, packageJSON, extensionType, noActive = false, options3) {
            let id2 = packageJSON.name;
            if (this.states.isDisabled(id2)) return;
            let isActive = false;
            let isActivating = false;
            let activationAbandoned = false;
            let result;
            let filename = options3?.sourceCode ? path.join(root, "index.js") : path.join(root, packageJSON.main || "index.js");
            let extensionPath2 = extensionType === 2 /* SingleFile */ ? filename : root;
            let exports2;
            let ext2;
            let subscriptions = [];
            const timing = createTiming(`activate ${id2}`, 5e3);
            let extension = {
              activate: () => {
                if (result) return result;
                isActivating = true;
                activationAbandoned = false;
                result = new Promise(async (resolve, reject) => {
                  timing.start();
                  try {
                    let isEmpty2 = typeof packageJSON.engines.coc === "undefined";
                    ext2 = await extensionContext.run(id2, () => createExtensionAsync(id2, filename, isEmpty2, options3, subscriptions));
                    let context = {
                      subscriptions,
                      extensionPath: extensionPath2,
                      globalState: memos.createMemento(`${id2}|global`),
                      workspaceState: memos.createMemento(`${id2}|${workspace_default.rootPath}`),
                      asAbsolutePath: (relativePath) => path.join(root, relativePath),
                      storagePath: path.join(this.folder, `${id2}-data`),
                      logger: createLogger(`extension:${id2}`)
                    };
                    let res = await extensionContext.run(id2, () => ext2.activate(context));
                    isActivating = false;
                    if (activationAbandoned) {
                      let items = Array.from(new Set(subscriptions));
                      subscriptions.length = 0;
                      disposeAll(items);
                      if (ext2 && typeof ext2.deactivate === "function") {
                        await Promise.resolve(extensionContext.run(id2, () => ext2.deactivate()));
                      }
                      ext2 = void 0;
                      result = void 0;
                      timing.stop();
                      resolve(res);
                      return;
                    }
                    isActive = true;
                    exports2 = res;
                    this._onDidActiveExtension.fire(extension);
                    timing.stop();
                    resolve(res);
                  } catch (e2) {
                    isActivating = false;
                    logger55.error(`Error on active extension ${id2}:`, e2);
                    reject(e2);
                  }
                });
                return result;
              },
              id: id2,
              packageJSON,
              extensionPath: extensionPath2,
              extensionUri: u.file(extensionPath2),
              get isActive() {
                return isActive;
              },
              get module() {
                return ext2;
              },
              get exports() {
                if (!isActive) throw new Error(`Invalid access to exports, extension "${id2}" not activated`);
                return exports2;
              }
            };
            Object.freeze(extension);
            this.extensions.set(id2, {
              id: id2,
              type: extensionType,
              isLocal: extensionType == 1 /* Local */,
              extension,
              directory: root,
              filepath: filename,
              events: getEvents(packageJSON.activationEvents),
              deactivate: async () => {
                if (isActivating && result) {
                  const timeout2 = getConditionValue(1e3, 50);
                  const completed = await Promise.race([
                    result.then(() => true, () => true),
                    wait(timeout2).then(() => false)
                  ]);
                  if (!completed) {
                    activationAbandoned = true;
                    logger55.warn(`Activation of extension ${id2} did not finish within ${timeout2}ms before deactivation`);
                  }
                }
                if (!isActive) return;
                isActive = false;
                result = void 0;
                exports2 = void 0;
                disposeExtension(id2);
                if (ext2 && typeof ext2.deactivate === "function") {
                  try {
                    await Promise.resolve(extensionContext.run(id2, () => ext2.deactivate()));
                    ext2 = void 0;
                  } catch (e2) {
                    logger55.error(`Error on ${id2} deactivate: `, e2);
                  }
                }
              }
            });
            this.registContribution(id2, packageJSON, root, filename);
            this._onDidLoadExtension.fire(extension);
            if (this.activated && !noActive) await this.autoActivate(id2, extension);
          }
          unregistContribution(id2) {
            let idx = this.configurationNodes.findIndex((o2) => o2.extensionInfo.id === id2);
            extensionRegistry5.unregistExtension(id2);
            if (idx !== -1) {
              let node = this.configurationNodes[idx];
              this.configurationNodes.splice(idx, 1);
              if (this.activated) configurationRegistry2.deregisterConfigurations([node]);
            }
          }
          async registerInternalExtension(extension, deactivate) {
            let { id: id2, packageJSON } = extension;
            this.extensions.set(id2, {
              id: id2,
              directory: __dirname,
              type: 3 /* Internal */,
              events: getEvents(packageJSON.activationEvents),
              extension,
              deactivate,
              isLocal: true
            });
            this.registContribution(id2, packageJSON, __dirname);
            this._onDidLoadExtension.fire(extension);
            await this.autoActivate(id2, extension);
          }
          /**
           * Only global extensions can be uninstalled
           */
          async uninstallExtensions(ids) {
            let [globals, filtered] = splitArray(ids, (id2) => this.states.hasExtension(id2));
            for (let id2 of globals) {
              await this.unloadExtension(id2);
              this.states.removeExtension(id2);
              extensionRegistry5.unregistExtension(id2);
              await remove(path.join(this.modulesFolder, id2));
            }
            if (filtered.length > 0) {
              void window_default.showWarningMessage(`Global extensions ${filtered.join(", ")} not found`);
            }
            if (globals.length > 0) {
              void window_default.showInformationMessage(`Removed extensions: ${globals.join(" ")}`);
            }
          }
          async toggleExtension(id2) {
            let state = this.getExtensionState(id2);
            if (state == "activated") await this.deactivate(id2);
            if (state != "disabled") {
              this.states.setDisable(id2, true);
              this.unregistContribution(id2);
              await this.unloadExtension(id2);
            } else {
              this.states.setDisable(id2, false);
              if (id2.startsWith("single-")) {
                let filepath = path.join(this.singleExtensionsRoot, `${id2.replace(/^single-/, "")}.js`);
                await this.loadExtensionFile(filepath);
              } else {
                let folder = this.states.getFolder(id2);
                if (folder) {
                  await this.loadExtension(folder);
                } else {
                  void window_default.showWarningMessage(`Extension ${id2} not found`);
                }
              }
            }
          }
          async watchExtension(id2) {
            let item = this.getExtension(id2);
            if (!item) throw new Error(`extension ${id2} not found`);
            if (id2.startsWith("single-")) {
              void window_default.showInformationMessage(`watching ${item.filepath}`);
              this.disposables.push(watchFile(item.filepath, async () => {
                await this.loadExtensionFile(item.filepath);
                void window_default.showInformationMessage(`reloaded ${id2}`);
              }, false));
            } else {
              let client = await workspace_default.fileSystemWatchers.createClient(item.directory, true);
              if (!client) throw new Error("file watcher not available");
              void window_default.showInformationMessage(`watching ${item.directory}`);
              client.subscribe("**/*.js", async () => {
                this.reloadExtension(id2).then(() => {
                  void window_default.showInformationMessage(`reloaded ${id2}`);
                }, onUnexpectedError);
              });
            }
          }
          /**
           * load extension in folder or file
           */
          async load(filepath, active, options3) {
            let name2;
            if (options3?.sourceCode) {
              let extensionRoot = options3.extensionRoot ?? filepath;
              let obj = loadJson(path.join(extensionRoot, "package.json"));
              name2 = obj.name;
              if (!name2) throw new Error(`Unable to load extension at ${extensionRoot}, missing package.json`);
              await this.unloadExtension(name2);
              await this.registerExtension(extensionRoot, obj, 1 /* Local */, true, options3);
            } else if (isDirectory(filepath)) {
              let obj = loadJson(path.join(filepath, "package.json"));
              name2 = obj.name;
              await this.loadExtension(filepath, true);
            } else {
              name2 = await this.loadExtensionFile(filepath, true);
            }
            if (!name2) throw new Error(`Unable to load extension at ${filepath}`);
            let disabled = this.states.isDisabled(name2);
            if (disabled) throw new Error(`extension ${name2} is disabled`);
            let item = this.getExtension(name2);
            if (active) await this.activate(name2);
            return {
              get isActive() {
                return item.extension.isActive;
              },
              get name() {
                return name2;
              },
              get api() {
                return item.extension.exports;
              },
              get exports() {
                let module2 = item.extension.module ?? {};
                return omit(module2, ["activate"]);
              },
              get _exports() {
                return global.__isMain ? void 0 : item.extension.module;
              },
              unload: () => {
                return this.unloadExtension(name2);
              }
            };
          }
          dispose() {
            disposeAll(this.disposables);
          }
        };
      }
    });
    
    // src/extension/ui.ts
    var interval, InstallChannel, debounceTime6, InstallBuffer;
    var init_ui3 = __esm({
      "src/extension/ui.ts"() {
        "use strict";
        init_events();
        init_status();
        init_util();
        init_node();
        init_protocol();
        init_string();
        init_window();
        init_workspace();
        interval = getConditionValue(100, 1);
        InstallChannel = class {
          constructor(settings, channel) {
            this.settings = settings;
            this.channel = channel;
          }
          settings;
          channel;
          get isUpdate() {
            return this.settings.isUpdate;
          }
          getText() {
            return this.isUpdate ? "update" : "install";
          }
          start(names) {
            this.channel.appendLine(`${this.isUpdate ? "Updating" : "Installing"} ${names.join(", ")}`);
          }
          addMessage(name2, msg, isProgress) {
            if (!isProgress) {
              this.channel.appendLine(`${name2} - ${msg}`);
            }
          }
          startProgress(name2) {
            this.channel.appendLine(`Start ${this.getText()} ${name2}`);
          }
          finishProgress(name2, succeed) {
            if (succeed) {
              this.channel.appendLine(`${name2} ${this.getText()} succeed!`);
            } else {
              this.channel.appendLine(`${name2} ${this.getText()} failed!`);
            }
          }
        };
        debounceTime6 = getConditionValue(500, 10);
        InstallBuffer = class {
          constructor(settings) {
            this.settings = settings;
            let floatFactory4 = window_default.createFloatFactory({ modes: ["n"] });
            this.disposables.push(floatFactory4);
            let fn = debounce2(async (bufnr, cursor) => {
              if (bufnr == this.bufnr) {
                let msgs = this.getMessages(cursor[0] - 1);
                let docs = msgs.length > 0 ? [{ content: msgs.join("\n"), filetype: "txt" }] : [];
                await floatFactory4.show(docs);
              }
            }, debounceTime6);
            this.disposables.push(import_node4.Disposable.create(() => {
              fn.clear();
            }));
            events_default.on("CursorMoved", fn, this.disposables);
            events_default.on("BufUnload", (bufnr) => {
              if (bufnr === this.bufnr) {
                this.dispose();
              }
            }, null, this.disposables);
          }
          settings;
          statMap = /* @__PURE__ */ new Map();
          updated = /* @__PURE__ */ new Set();
          messagesMap = /* @__PURE__ */ new Map();
          disposables = [];
          names = [];
          interval;
          bufnr;
          async start(names) {
            this.statMap.clear();
            this.names = names;
            for (let name2 of names) {
              this.statMap.set(name2, 0 /* Waiting */);
            }
            await this.show();
          }
          addMessage(name2, msg) {
            let lines = this.messagesMap.get(name2) || [];
            this.messagesMap.set(name2, lines.concat(msg.trim().split(/\r?\n/)));
            if (msg.startsWith("Updated to") || msg.startsWith("Installed extension")) {
              this.updated.add(name2);
            }
          }
          startProgress(name2) {
            this.statMap.set(name2, 2 /* Progressing */);
          }
          finishProgress(name2, succeed) {
            this.statMap.set(name2, succeed ? 3 /* Success */ : 1 /* Failed */);
          }
          get remains() {
            let count = 0;
            for (let name2 of this.names) {
              let stat = this.statMap.get(name2);
              if (![3 /* Success */, 1 /* Failed */].includes(stat)) {
                count = count + 1;
              }
            }
            return count;
          }
          getLinesAndHighlights(start) {
            let lines = [];
            let highlights = [];
            for (let name2 of this.names) {
              let state = this.statMap.get(name2);
              let processText = "*";
              let hlGroup;
              let lnum = start + lines.length;
              switch (state) {
                case 2 /* Progressing */: {
                  let d2 = /* @__PURE__ */ new Date();
                  let idx = Math.floor(d2.getMilliseconds() / 100);
                  processText = frames[idx];
                  hlGroup = void 0;
                  break;
                }
                case 1 /* Failed */:
                  processText = "\u2717";
                  hlGroup = "ErrorMsg";
                  break;
                case 3 /* Success */:
                  processText = "\u2713";
                  hlGroup = this.updated.has(name2) ? "MoreMsg" : "Comment";
                  break;
              }
              let msgs = this.messagesMap.get(name2) || [];
              let pre = `- ${processText} `;
              let len = byteLength(pre);
              if (hlGroup) {
                highlights.push({ hlGroup, lnum, colStart: len, colEnd: len + byteLength(name2) });
              }
              lines.push(`${pre}${name2} ${msgs.length ? msgs[msgs.length - 1] : ""}`);
            }
            return { lines, highlights };
          }
          getMessages(line) {
            let name2 = this.names[line - 2];
            return this.messagesMap.get(name2) ?? [];
          }
          get stopped() {
            return this.interval == null;
          }
          get isUpdate() {
            return this.settings.isUpdate;
          }
          // draw frame
          draw() {
            let { remains, bufnr } = this;
            let { nvim } = workspace_default;
            if (!bufnr) return;
            let buffer = nvim.createBuffer(bufnr);
            let first = remains == 0 ? `${this.isUpdate ? "Update" : "Install"} finished` : `Installing, ${remains} remaining...`;
            let { lines, highlights } = this.getLinesAndHighlights(2);
            nvim.pauseNotification();
            buffer.setLines([first, "", ...lines], { start: 0, end: -1, strictIndexing: false }, true);
            buffer.updateHighlights("coc-extensions", highlights, { priority: 99 });
            if (remains == 0 && this.interval) {
              clearInterval(this.interval);
              this.interval = null;
            }
            nvim.resumeNotification(true, true);
          }
          highlight() {
            let { nvim } = workspace_default;
            nvim.call("matchadd", ["CocListFgCyan", "^\\-\\s\\zs\\*"], true);
            nvim.call("matchadd", ["CocListFgGreen", "^\\-\\s\\zs\u2713"], true);
            nvim.call("matchadd", ["CocListFgRed", "^\\-\\s\\zs\u2717"], true);
          }
          async show() {
            let isSync = events_default.requesting === true;
            let { nvim } = workspace_default;
            let name2 = "[Coc Extensions]";
            let bufnr = await nvim.call("bufadd", [name2]);
            let command = isSync ? "buffer" : this.settings.updateUIInTab ? "tab sbuffer" : "vertical sbuffer";
            nvim.pauseNotification();
            nvim.command(`${command} ${bufnr}`, true);
            nvim.command("setl buftype=nofile bufhidden=wipe noswapfile nobuflisted wrap undolevels=-1", true);
            if (!isSync) nvim.command("nnoremap  q :q", true);
            this.highlight();
            await nvim.resumeNotification();
            this.bufnr = bufnr;
            this.interval = setInterval(() => {
              this.draw();
            }, interval);
          }
          dispose() {
            this.bufnr = void 0;
            this.messagesMap.clear();
            this.statMap.clear();
            disposeAll(this.disposables);
            clearInterval(this.interval);
            this.interval = null;
          }
        };
      }
    });
    
    // src/extension/index.ts
    function toUrl(val) {
      return isUrl(val) ? val.replace(/\.git(#master|#main)?$/, "") : "";
    }
    var logger56, EXTENSIONS_FOLDER, Extensions4, extension_default;
    var init_extension = __esm({
      "src/extension/index.ts"() {
        "use strict";
        init_commands();
        init_types();
        init_events();
        init_logger();
        init_util();
        init_array();
        init_constants();
        init_is();
        init_node();
        init_object();
        init_processes();
        init_window();
        init_workspace();
        init_installer();
        init_manager5();
        init_stat();
        init_ui3();
        init_manager5();
        logger56 = createLogger("extensions-index");
        EXTENSIONS_FOLDER = path.join(dataHome, "extensions");
        Extensions4 = class {
          /**
           * @internal
           */
          manager;
          /**
           * @internal
           */
          states;
          /**
           * @internal
           */
          modulesFolder = path.join(EXTENSIONS_FOLDER, "node_modules");
          globalPromise;
          constructor() {
            checkExtensionRoot(EXTENSIONS_FOLDER);
            this.states = new ExtensionStat(EXTENSIONS_FOLDER);
            this.manager = new ExtensionManager(this.states, EXTENSIONS_FOLDER);
            commands_default.register({
              id: "extensions.forceUpdateAll",
              execute: async () => {
                let arr = await this.manager.cleanExtensions();
                logger56.info(`Force update extensions: ${arr}`);
                await this.installExtensions(arr);
              }
            }, false, "remove all global extensions and install them");
            this.globalPromise = this.globalExtensions();
            commands_default.register({
              id: "extensions.toggleAutoUpdate",
              execute: async () => {
                let settings = this.getUpdateSettings();
                let target = 1 /* Global */;
                let config = workspace_default.getConfiguration(null, null);
                if (settings.updateCheck == "never") {
                  await config.update("extensions.updateCheck", "daily", target);
                  void window_default.showInformationMessage("Extension auto update enabled.");
                } else {
                  await config.update("extensions.updateCheck", "never", target);
                  void window_default.showInformationMessage("Extension auto update disabled.");
                }
                await config.update("coc.preferences.extensionUpdateCheck", void 0, target);
              }
            }, false, "toggle auto update of extensions.");
            events_default.once("ready", () => {
              void this.checkRecommendation(workspace_default.workspaceFolders[0]);
              workspace_default.onDidChangeWorkspaceFolders((e2) => {
                void this.checkRecommendation(e2.added[0]);
              });
            });
          }
          /**
           * @internal
           */
          async checkRecommendation(workspaceFolder) {
            if (!workspaceFolder) return;
            let config = workspace_default.getConfiguration("extensions", workspaceFolder);
            let recommendations = toArray(config.inspect("recommendations").workspaceFolderValue);
            const unInstalled = recommendations.filter((name2) => !this.states.hasExtension(name2));
            let uri = workspaceFolder.uri;
            if (!this.manager.states.shouldPrompt(uri) || unInstalled.length === 0) return;
            let items = [{
              title: `Install ${unInstalled.join(", ")}`,
              index: 1
            }, {
              title: "Don't show again",
              isCloseAffordance: true,
              index: 2
            }];
            const item = await window_default.showInformationMessage(`Install recommend extensions?`, ...items);
            if (!item) return;
            if (item.index === 1) {
              await this.installExtensions(unInstalled);
            } else {
              this.manager.states.addNoPromptFolder(uri);
            }
          }
          /**
           * @internal
           */
          getUpdateSettings() {
            let config = workspace_default.getConfiguration(null, null);
            let extensionsConfig = toObject(config.inspect("extensions").globalValue);
            return {
              updateCheck: extensionsConfig.updateCheck ?? config.get("coc.preferences.extensionUpdateCheck", "never"),
              updateUIInTab: extensionsConfig.updateUIInTab ?? config.get("coc.preferences.extensionUpdateUIInTab", false),
              silentAutoupdate: extensionsConfig.silentAutoupdate ?? config.get("coc.preferences.silentAutoupdate", true)
            };
          }
          /**
           * @internal
           */
          async init(runtimepath) {
            if (process.env.COC_NO_PLUGINS == "1") return;
            let stats = await this.globalPromise;
            this.manager.registerExtensions(stats);
            let localStats = this.runtimeExtensionStats(runtimepath.split(","));
            this.manager.registerExtensions(localStats);
            void this.manager.loadFileExtensions();
          }
          /**
           * @internal
           */
          async activateExtensions() {
            await this.manager.activateExtensions();
            if (process.env.COC_NO_PLUGINS == "1") {
              logger56.warn("Extensions disabled by env COC_NO_PLUGINS");
              return;
            }
            let names = this.states.filterGlobalExtensions(workspace_default.env.globalExtensions);
            void this.installExtensions(names);
            let settings = this.getUpdateSettings();
            if (this.states.shouldUpdate(settings.updateCheck)) {
              this.outputChannel.appendLine("Start auto update...");
              this.updateExtensions(settings.silentAutoupdate, settings.updateUIInTab).catch((e2) => {
                this.outputChannel.appendLine(`Error on updateExtensions ${e2}`);
              });
            }
          }
          get onDidLoadExtension() {
            return this.manager.onDidLoadExtension;
          }
          get onDidActiveExtension() {
            return this.manager.onDidActiveExtension;
          }
          get onDidUnloadExtension() {
            return this.manager.onDidUnloadExtension;
          }
          get outputChannel() {
            return window_default.createOutputChannel("extensions");
          }
          /**
           * Get all loaded extensions.
           */
          get all() {
            return this.manager.all;
          }
          /**
           * @internal
           */
          has(id2) {
            return this.manager.has(id2);
          }
          /**
           * @internal
           */
          getExtension(id2) {
            return this.manager.getExtension(id2);
          }
          getExtensionById(extensionId) {
            let item = this.manager.getExtension(extensionId);
            return item ? item.extension : void 0;
          }
          /**
           * @internal
           * @deprecated Used by old version coc-json.
           */
          get schemes() {
            return {};
          }
          /**
           * @internal
           * @deprecated Used by old version coc-json.
           */
          addSchemeProperty(key, def) {
          }
          /**
           * @public Get state of extension
           */
          getExtensionState(id2) {
            return this.manager.getExtensionState(id2);
          }
          isActivated(id2) {
            let item = this.manager.getExtension(id2);
            return item != null && item.extension.isActive;
          }
          /**
           * @internal
           */
          async call(id2, method, args) {
            return await this.manager.call(id2, method, args);
          }
          /**
           * @internal
           */
          get npm() {
            let npm = workspace_default.initialConfiguration.get("npm.binPath");
            npm = workspace_default.expand(npm);
            for (let exe of [npm, "npm"]) {
              if (executable(exe)) return which.sync(exe);
            }
            void window_default.showErrorMessage(`Can't find ${npm} or npm in your $PATH`);
            return null;
          }
          createInstallerUI(isUpdate, silent, updateUIInTab) {
            return silent ? new InstallChannel({ isUpdate }, this.outputChannel) : new InstallBuffer({ isUpdate, updateUIInTab });
          }
          /**
           * @internal
           */
          createInstaller(npm, def) {
            return new Installer(this.modulesFolder, npm, def);
          }
          /**
           * @internal
           * Install extensions, can be called without initialize.
           */
          async installExtensions(list2) {
            if (isFalsyOrEmpty(list2) || !this.npm) return;
            let { npm } = this;
            list2 = distinct(list2);
            let installBuffer = this.createInstallerUI(false, false, false);
            await Promise.resolve(installBuffer.start(list2));
            let fn = async (key) => {
              try {
                installBuffer.startProgress(key);
                let installer = this.createInstaller(npm, key);
                installer.on("message", (msg, isProgress) => {
                  installBuffer.addMessage(key, msg, isProgress);
                });
                let result = await installer.install();
                installBuffer.finishProgress(key, true);
                this.states.addExtension(result.name, result.url ? result.url : `>=${result.version}`);
                let ms = key.match(/@[\d.]+$/);
                if (ms != null) this.states.setLocked(result.name, true);
                await this.manager.loadExtension(result.folder);
              } catch (err) {
                installBuffer.addMessage(key, err.message);
                installBuffer.finishProgress(key, false);
                void window_default.showErrorMessage(`Error on install ${key}: ${err}`);
                logger56.error(`Error on install ${key}`, err);
              }
            };
            await concurrent(list2, fn);
          }
          /**
           * @internal
           * Update global extensions
           */
          async updateExtensions(silent = false, updateUIInTab = false) {
            let { npm } = this;
            if (!npm) return;
            let stats = this.globalExtensionStats();
            stats = stats.filter((s2) => {
              if (s2.isLocked || s2.state === "disabled") {
                this.outputChannel.appendLine(`Skipped update for ${s2.isLocked ? "locked" : "disabled"} extension "${s2.id}"`);
                return false;
              }
              return true;
            });
            this.states.setLastUpdate();
            this.cleanModulesFolder();
            let installBuffer = this.createInstallerUI(true, silent, updateUIInTab);
            await Promise.resolve(installBuffer.start(stats.map((o2) => o2.id)));
            let fn = async (stat) => {
              let { id: id2 } = stat;
              try {
                installBuffer.startProgress(id2);
                let url = stat.exotic ? stat.uri : null;
                let installer = this.createInstaller(npm, id2);
                installer.on("message", (msg, isProgress) => {
                  installBuffer.addMessage(id2, msg, isProgress);
                });
                let directory = await installer.update(url);
                installBuffer.finishProgress(id2, true);
                if (directory) await this.manager.loadExtension(directory);
              } catch (err) {
                installBuffer.addMessage(id2, err.message);
                installBuffer.finishProgress(id2, false);
                void window_default.showErrorMessage(`Error on update ${id2}: ${err}`);
                logger56.error(`Error on update ${id2}`, err);
              }
            };
            await concurrent(stats, fn, silent ? 1 : 3);
          }
          /**
           * Get all extension states
           */
          async getExtensionStates() {
            let runtimepaths = await workspace_default.nvim.runtimePaths;
            let localStats = this.runtimeExtensionStats(runtimepaths);
            let globalStats = this.globalExtensionStats();
            return localStats.concat(globalStats);
          }
          /**
           * @internal
           */
          async globalExtensions() {
            if (process.env.COC_NO_PLUGINS == "1") return [];
            let results = await Promise.all(Array.from(this.states.activated(), async (key) => {
              let root = path.join(this.modulesFolder, key);
              try {
                let json = await loadGlobalJsonAsync(root, VERSION);
                return { root, isLocal: false, packageJSON: json };
              } catch (err) {
                logger56.error(`Error on load package.json of ${key}`, err);
                return void 0;
              }
            }));
            return results.filter((o2) => o2 !== void 0);
          }
          /**
           * @internal
           */
          globalExtensionStats() {
            let dependencies = this.states.dependencies;
            let lockedExtensions = this.states.lockedExtensions;
            let infos = [];
            Object.entries(dependencies).map(([key, val]) => {
              let root = path.join(this.modulesFolder, key);
              let errors = [];
              let obj = loadExtensionJson(root, VERSION, errors);
              if (errors.length > 0) {
                this.outputChannel.appendLine(`Error on load ${key} at ${root}: ${errors.join("\n")}`);
                return;
              }
              obj.name = key;
              infos.push({
                id: key,
                root,
                isLocal: false,
                version: obj.version,
                description: obj.description ?? "",
                isLocked: lockedExtensions.includes(key),
                exotic: /^https?:/.test(val),
                uri: toUrl(val),
                state: this.getExtensionState(key),
                packageJSON: obj
              });
            });
            logger56.debug("globalExtensionStats:", infos.length);
            return infos;
          }
          /**
           * @internal
           */
          runtimeExtensionStats(runtimepaths) {
            let lockedExtensions = this.states.lockedExtensions;
            let infos = [];
            let localIds = /* @__PURE__ */ new Set();
            runtimepaths.map((root) => {
              if (!root) return;
              let errors = [];
              let obj = loadExtensionJson(root, workspace_default.version, errors);
              if (errors.length > 0) return;
              let { name: name2 } = obj;
              if (!name2 || this.states.hasExtension(name2) || localIds.has(name2)) return;
              this.states.addLocalExtension(name2, root);
              localIds.add(name2);
              infos.push({
                id: obj.name,
                isLocal: true,
                isLocked: lockedExtensions.includes(name2),
                version: obj.version,
                description: obj.description ?? "",
                exotic: false,
                root,
                state: this.getExtensionState(obj.name),
                packageJSON: Object.freeze(obj)
              });
            });
            return infos;
          }
          /**
           * @internal
           * Remove unnecessary folders in node_modules
           */
          cleanModulesFolder() {
            let globalIds = this.states.globalIds;
            let folders = globalIds.map((s2) => s2.replace(/\/.*$/, ""));
            if (!fs.existsSync(this.modulesFolder)) return;
            let files = fs.readdirSync(this.modulesFolder);
            for (let file of files) {
              if (folders.includes(file)) continue;
              let p2 = path.join(this.modulesFolder, file);
              let stat = fs.lstatSync(p2);
              if (stat.isSymbolicLink()) {
                fs.unlinkSync(p2);
              } else if (stat.isDirectory()) {
                fs.rmSync(p2, { recursive: true, force: true });
              }
            }
          }
          /**
           * @internal
           */
          dispose() {
            this.manager.dispose();
          }
        };
        extension_default = new Extensions4();
      }
    });
    
    // src/completion/keywords.ts
    var KeywordsBuffer;
    var init_keywords = __esm({
      "src/completion/keywords.ts"() {
        "use strict";
        init_esm();
        init_events();
        init_util();
        init_async();
        init_fs();
        init_protocol();
        KeywordsBuffer = class {
          constructor(doc, segmenterLocales) {
            this.doc = doc;
            this.segmenterLocales = segmenterLocales;
            void this.parseWords(segmenterLocales);
            let uri = u.parse(doc.uri);
            if (uri.scheme === "file") {
              void isGitIgnored(uri.fsPath).then((ignored) => {
                this._gitIgnored = ignored;
              });
            }
          }
          doc;
          segmenterLocales;
          lineWords = [];
          _gitIgnored = false;
          tokenSource;
          minimalCharacterLen = 2;
          getWords() {
            let res = [];
            for (let words of this.lineWords) {
              words.forEach((word) => {
                if (!res.includes(word)) {
                  res.push(word);
                }
              });
            }
            return res;
          }
          cancel() {
            if (this.tokenSource) {
              this.tokenSource.cancel();
              this.tokenSource = void 0;
            }
          }
          async parseWords(segmenterLocales) {
            let { lineWords, doc, minimalCharacterLen } = this;
            let { chars } = doc;
            let tokenSource = this.tokenSource = new import_node4.CancellationTokenSource();
            let token = tokenSource.token;
            await forEach(doc.textDocument.lines, (line) => {
              let words = chars.matchLine(line, segmenterLocales, minimalCharacterLen);
              lineWords.push(words);
            }, token, { yieldAfter: 20 });
          }
          get bufnr() {
            return this.doc.bufnr;
          }
          get gitIgnored() {
            return this._gitIgnored;
          }
          onCompleteDone(idx) {
            let { doc, segmenterLocales, minimalCharacterLen } = this;
            let line = doc.getline(idx);
            this.lineWords[idx] = doc.chars.matchLine(line, segmenterLocales, minimalCharacterLen);
          }
          onChange(e2) {
            if (events_default.completing || e2.contentChanges.length == 0) return;
            let { lineWords, doc, segmenterLocales, minimalCharacterLen } = this;
            let { range: range2, text } = e2.contentChanges[0];
            let { start, end } = range2;
            let sl = start.line;
            let el = end.line;
            let del = el - sl;
            let newLines = doc.textDocument.lines.slice(sl, sl + text.split(/\n/).length);
            let arr = newLines.map((line) => doc.chars.matchLine(line, segmenterLocales, minimalCharacterLen));
            lineWords.splice(sl, del + 1, ...arr);
          }
          *matchWords(line) {
            let { lineWords } = this;
            if (line >= lineWords.length) line = lineWords.length - 1;
            for (let i2 = 0; i2 < lineWords.length; i2++) {
              let idx = i2 < line ? line - i2 - 1 : i2;
              let words = defaultValue(lineWords[idx], []);
              for (let word of words) {
                yield word;
              }
            }
          }
          dispose() {
            this.cancel();
            this.lineWords = [];
          }
        };
      }
    });
    
    // src/completion/source.ts
    function firstMatchFuzzy(firstCode, ascii, word) {
      let ch = word[0];
      if (ascii && !WORD_PREFIXES_CODE.includes(firstCode) && WORD_PREFIXES.includes(ch)) ch = word[1];
      if (ascii && ch.charCodeAt(0) > ASCII_END) ch = unidecode(ch);
      return caseMatch(firstCode, ch.charCodeAt(0));
    }
    var WORD_PREFIXES, WORD_PREFIXES_CODE, MAX_DURATION, MAX_COUNT, Source;
    var init_source = __esm({
      "src/completion/source.ts"() {
        "use strict";
        init_events();
        init_util();
        init_array();
        init_constants();
        init_fuzzy();
        init_is();
        init_node();
        init_string();
        init_workspace();
        init_types2();
        WORD_PREFIXES = ["_", "$", "-"];
        WORD_PREFIXES_CODE = [95, 36, 45];
        MAX_DURATION = getConditionValue(80, 20);
        MAX_COUNT = 50;
        Source = class {
          name;
          filepath;
          sourceType;
          isSnippet;
          documentSelector;
          /**
           * Words that not match during session
           * The word that not match previous input would not match further input
           */
          noMatchWords = /* @__PURE__ */ new Set();
          config;
          disposables = [];
          _disabled = false;
          defaults;
          constructor(option) {
            this.name = option.name;
            this.filepath = option.filepath || "";
            this.sourceType = option.sourceType || 0 /* Native */;
            this.isSnippet = !!option.isSnippet;
            this.defaults = option;
            this.documentSelector = option.documentSelector;
            const key = `coc.source.${option.name}`;
            this.config = defaultValue(workspace_default.initialConfiguration.get(key), {});
            workspace_default.onDidChangeConfiguration((e2) => {
              if (e2.affectsConfiguration(key)) {
                this.config = defaultValue(workspace_default.initialConfiguration.get(key), {});
              }
            }, null, this.disposables);
            events_default.on("CompleteDone", () => {
              this.noMatchWords.clear();
            }, null, this.disposables);
          }
          get nvim() {
            return workspace_default.nvim;
          }
          /**
           * Priority of source, higher priority makes items lower index.
           */
          get priority() {
            return this.getConfig("priority", 1);
          }
          get triggerPatterns() {
            let patterns = this.getConfig("triggerPatterns", null);
            if (isFalsyOrEmpty(patterns)) return null;
            return patterns.map((s2) => string(s2) ? new RegExp(s2 + "$") : s2);
          }
          /**
           * When triggerOnly is true, not trigger completion on keyword character insert.
           */
          get triggerOnly() {
            let triggerOnly = this.defaults["triggerOnly"];
            if (boolean(triggerOnly)) return triggerOnly;
            return Array.isArray(this.triggerPatterns) && this.triggerPatterns.length > 0;
          }
          get triggerCharacters() {
            return toArray(this.getConfig("triggerCharacters", []));
          }
          get firstMatch() {
            return this.getConfig("firstMatch", true);
          }
          get remoteFns() {
            return toArray(this.defaults.remoteFns);
          }
          get shortcut() {
            let shortcut = this.getConfig("shortcut", "");
            return shortcut ? shortcut : this.name.slice(0, 3);
          }
          get enable() {
            if (this._disabled) return false;
            return this.getConfig("enable", true);
          }
          get filetypes() {
            return this.getConfig("filetypes", null);
          }
          get disableSyntaxes() {
            return this.getConfig("disableSyntaxes", []);
          }
          getConfig(key, defaultValue2) {
            let val = this.config[key];
            if (func(val) || val == null) return defaultValue2 ?? null;
            return val;
          }
          toggle() {
            this._disabled = !this._disabled;
          }
          get menu() {
            return "";
          }
          async checkComplete(opt) {
            let { disableSyntaxes } = this;
            if (!isFalsyOrEmpty(disableSyntaxes) && opt.synname) {
              let synname = opt.synname.toLowerCase();
              if (disableSyntaxes.findIndex((s2) => synname.includes(s2.toLowerCase())) !== -1) {
                return false;
              }
            }
            let fn = this.defaults["shouldComplete"];
            if (func(fn)) return !!await Promise.resolve(fn.call(this, opt));
            return true;
          }
          async refresh() {
            let fn = this.defaults["refresh"];
            if (func(fn)) await Promise.resolve(fn.call(this));
          }
          async onCompleteDone(item, opt) {
            let fn = this.defaults["onCompleteDone"];
            if (func(fn)) await Promise.resolve(fn.call(this, item, opt));
          }
          async doComplete(opt, token) {
            let shouldRun = await this.checkComplete(opt);
            if (!shouldRun || token.isCancellationRequested) return null;
            let fn = this.defaults["doComplete"];
            return await Promise.resolve(fn.call(this, opt, token));
          }
          async onCompleteResolve(item, opt, token) {
            let fn = this.defaults["onCompleteResolve"];
            if (func(fn)) await Promise.resolve(fn.call(this, item, opt, token));
          }
          /**
           * Add words to items with timer.
           */
          async getResults(iterables, input, exclude, items, token) {
            let { firstMatch, noMatchWords } = this;
            let start = Date.now();
            let prev = start;
            let len = input.length;
            let firstCode = input.charCodeAt(0);
            let codes = getCharCodes(input);
            let ascii = isAlphabet(firstCode);
            let i2 = 0;
            for (let iterable of iterables) {
              for (let w2 of iterable) {
                i2++;
                if (i2 % 100 === 0) {
                  let curr = Date.now();
                  if (curr - prev > 15 || prev === start) {
                    await waitImmediate();
                    prev = curr;
                  }
                  if (token.isCancellationRequested || curr - start > MAX_DURATION) return true;
                }
                if (w2.length <= 1 && w2.charCodeAt(0) < 255 || w2 === exclude || items.has(w2) || noMatchWords.has(w2)) continue;
                if (firstMatch && !firstMatchFuzzy(firstCode, ascii, w2)) {
                  noMatchWords.add(w2);
                  continue;
                }
                if (len > 1) {
                  let matched = fuzzyMatch(codes, ascii && w2[0].charCodeAt(0) > ASCII_END ? unidecode(w2) : w2);
                  if (!matched) {
                    noMatchWords.add(w2);
                    continue;
                  }
                }
                items.add(w2);
                if (items.size == MAX_COUNT) return true;
              }
            }
            return false;
          }
          dispose() {
            disposeAll(this.disposables);
          }
        };
      }
    });
    
    // src/completion/source-vim.ts
    function getMethodName(name2, names) {
      if (names.includes(name2)) return name2;
      let key = name2[0].toUpperCase() + name2.slice(1);
      if (names.includes(key)) return key;
      throw new Error(`${name2} not exists`);
    }
    function checkInclude(name2, fns) {
      if (fns.includes(name2)) return true;
      let key = name2[0].toUpperCase() + name2.slice(1);
      return fns.includes(key);
    }
    var VimSource;
    var init_source_vim = __esm({
      "src/completion/source-vim.ts"() {
        "use strict";
        init_main();
        init_ui();
        init_manager3();
        init_string();
        init_workspace();
        init_source();
        init_is();
        VimSource = class extends Source {
          async callOptionalFunc(fname, args, isNotify = false) {
            let exists = checkInclude(fname, this.remoteFns);
            if (!exists) return null;
            let name2 = `coc#source#${this.name}#${getMethodName(fname, this.remoteFns)}`;
            if (isNotify) return this.nvim.call(name2, args, true);
            return await this.nvim.call(name2, args);
          }
          async checkComplete(opt) {
            let shouldRun = await super.checkComplete(opt);
            if (!shouldRun) return false;
            if (!checkInclude("should_complete", this.remoteFns)) return true;
            let res = await this.callOptionalFunc("should_complete", [opt]);
            return !!res;
          }
          async refresh() {
            await this.callOptionalFunc("refresh", []);
          }
          async insertSnippet(insertText, opt) {
            let pos = await getLineAndPosition(this.nvim);
            let { line, col } = opt;
            let oldIndent = line.match(/^\s*/)[0];
            let newIndent = pos.text.match(/^\s*/)[0];
            let range2 = Range.create(pos.line, characterIndex(line, col) + newIndent.length - oldIndent.length, pos.line, pos.character);
            await manager_default2.insertSnippet(insertText, true, range2);
          }
          async onCompleteDone(item, opt) {
            if (checkInclude("on_complete", this.remoteFns)) {
              await this.callOptionalFunc("on_complete", [item], true);
            } else if (item.isSnippet && item.insertText) {
              await this.insertSnippet(item.insertText, opt);
            }
          }
          onEnter(bufnr) {
            let doc = workspace_default.getDocument(bufnr);
            if (!doc || !checkInclude("on_enter", this.remoteFns)) return;
            let { filetypes } = this;
            if (filetypes && !filetypes.includes(doc.filetype)) return;
            void this.callOptionalFunc("on_enter", [{
              bufnr,
              uri: doc.uri,
              languageId: doc.filetype
            }], true);
          }
          async doComplete(opt, token) {
            let shouldRun = await this.checkComplete(opt);
            if (!shouldRun) return null;
            let startcol = await this.callOptionalFunc("get_startcol", [opt]);
            if (token.isCancellationRequested) return null;
            let { col, input, line, colnr } = opt;
            if (number(startcol) && startcol >= 0 && startcol !== col) {
              input = byteSlice(line, startcol, colnr - 1);
              opt = Object.assign({}, opt, {
                col: startcol,
                changed: col - startcol,
                input
              });
            }
            const vim9 = this.remoteFns.includes("Complete");
            let vimItems = await this.nvim.callAsync("coc#_do_complete", [this.name, { ...opt, vim9 }]);
            if (!vimItems || vimItems.length == 0 || token.isCancellationRequested) return null;
            let checkFirst = this.firstMatch && input.length > 0;
            let inputFirst = checkFirst ? input[0].toLowerCase() : "";
            let items = [];
            vimItems.forEach((item) => {
              let obj = string(item) ? { word: item } : item;
              if (checkFirst) {
                let ch = (obj.filterText ?? obj.word)[0];
                if (inputFirst && ch.toLowerCase() !== inputFirst) return;
              }
              if (this.isSnippet) obj.isSnippet = true;
              items.push(obj);
            });
            return { items, startcol: number(startcol) ? startcol : void 0 };
          }
        };
      }
    });
    
    // src/completion/native/around.ts
    var around_exports = {};
    __export(around_exports, {
      Around: () => Around,
      register: () => register
    });
    function register(sourceMap, keywords) {
      let source = new Around(keywords);
      sourceMap.set("around", source);
    }
    var Around;
    var init_around = __esm({
      "src/completion/native/around.ts"() {
        "use strict";
        init_util();
        init_source();
        Around = class extends Source {
          constructor(keywords) {
            super({ name: "around", filepath: __filename });
            this.keywords = keywords;
          }
          keywords;
          async doComplete(opt, token) {
            const shouldRun = await this.checkComplete(opt);
            if (!shouldRun) return null;
            let { bufnr, input, word, linenr, triggerForInComplete } = opt;
            if (input.length === 0) return null;
            await waitImmediate();
            let buf = this.keywords.getItem(bufnr);
            if (!buf) return null;
            if (!triggerForInComplete) this.noMatchWords = /* @__PURE__ */ new Set();
            if (token.isCancellationRequested) return null;
            let iterable = buf.matchWords(linenr - 1);
            let items = /* @__PURE__ */ new Set();
            let isIncomplete = await this.getResults([iterable], input, word, items, token);
            return {
              isIncomplete,
              items: Array.from(items, (word2) => ({ word: word2 }))
            };
          }
        };
      }
    });
    
    // src/completion/native/buffer.ts
    var buffer_exports = {};
    __export(buffer_exports, {
      Buffer: () => Buffer2,
      register: () => register2
    });
    function register2(sourceMap, keywords) {
      let source = new Buffer2(keywords);
      sourceMap.set("buffer", source);
    }
    var Buffer2;
    var init_buffer2 = __esm({
      "src/completion/native/buffer.ts"() {
        "use strict";
        init_util();
        init_source();
        Buffer2 = class extends Source {
          constructor(keywords) {
            super({ name: "buffer", filepath: __filename });
            this.keywords = keywords;
          }
          keywords;
          get ignoreGitignore() {
            return this.getConfig("ignoreGitignore", true);
          }
          async doComplete(opt, token) {
            const shouldRun = await this.checkComplete(opt);
            if (!shouldRun) return null;
            let { bufnr, input, word, triggerForInComplete } = opt;
            if (input.length === 0) return null;
            await waitImmediate();
            if (!triggerForInComplete) this.noMatchWords = /* @__PURE__ */ new Set();
            if (token.isCancellationRequested) return null;
            let iterables = [];
            for (let buf of this.keywords.items) {
              if (buf.bufnr === bufnr || this.ignoreGitignore && buf.gitIgnored) continue;
              iterables.push(buf.matchWords(0));
            }
            let items = /* @__PURE__ */ new Set();
            let isIncomplete = await this.getResults(iterables, input, word, items, token);
            return {
              isIncomplete,
              items: Array.from(items).map((s2) => {
                return { word: s2 };
              })
            };
          }
        };
      }
    });
    
    // src/completion/native/file.ts
    var file_exports = {};
    __export(file_exports, {
      File: () => File,
      filterFiles: () => filterFiles,
      getDirectory: () => getDirectory,
      getFileItem: () => getFileItem,
      getItemsFromRoot: () => getItemsFromRoot,
      getLastPart: () => getLastPart,
      register: () => register3,
      resolveEnvVariables: () => resolveEnvVariables
    });
    function resolveEnvVariables(str, env = process.env) {
      let replaced = str;
      replaced = replaced.replace(/%([^%]+)%/g, (m2, n2) => env[n2] ?? m2);
      replaced = replaced.replace(
        /\$([A-Z_]+[A-Z0-9_]*)|\${([A-Z0-9_]*)}/gi,
        (m2, a2, b2) => env[a2 || b2] ?? m2
      );
      return replaced;
    }
    function getLastPart(text) {
      let begin = text.length - 1;
      while (begin >= 0) {
        let curr = text[begin];
        if (invalid_characters.has(curr)) {
          begin++;
          break;
        }
        if (curr == " " && text[begin - 1] !== "\\") {
          begin++;
          break;
        }
        if (begin == 0) break;
        begin--;
      }
      if (begin >= text.length) return null;
      return text.slice(begin);
    }
    async function getFileItem(root, filename) {
      let f2 = path.join(root, filename);
      let stat = await statAsync(f2);
      if (stat) {
        let dir = stat.isDirectory();
        let abbr = dir ? filename + "/" : filename;
        let word = filename;
        return { word, abbr, kind: dir ? CompletionItemKind.Folder : CompletionItemKind.File };
      }
      return null;
    }
    function filterFiles(files, ignoreHidden, ignorePatterns = []) {
      return files.filter((f2) => {
        if (!f2 || ignoreHidden && f2.startsWith(".")) return false;
        for (let p2 of ignorePatterns) {
          if (minimatch(f2, p2, { dot: true })) return false;
        }
        return true;
      });
    }
    function getDirectory(pathstr, root) {
      let part = /[\\/]$/.test(pathstr) ? pathstr : path.dirname(pathstr);
      return path.isAbsolute(pathstr) ? part : path.join(root, part);
    }
    async function getItemsFromRoot(pathstr, root, ignoreHidden, ignorePatterns) {
      let res = [];
      let dir = getDirectory(pathstr, root);
      let stat = await statAsync(dir);
      if (stat && stat.isDirectory()) {
        let files = await fs.promises.readdir(dir);
        files = filterFiles(files, ignoreHidden, ignorePatterns);
        let items = await Promise.all(files.map((filename) => getFileItem(dir, filename)));
        res = res.concat(items);
      }
      res = res.filter((item) => item != null);
      return res;
    }
    function register3(sourceMap) {
      sourceMap.set("file", new File(isWindows));
    }
    var pathRe, invalid_characters, File;
    var init_file = __esm({
      "src/completion/native/file.ts"() {
        "use strict";
        init_main();
        init_fs();
        init_node();
        init_platform();
        init_string();
        init_workspace();
        init_source();
        pathRe = /(?:\.{0,2}|~|\$HOME|([\w]+)|[a-zA-Z]:|)(\/|\\+)(?:[\u4E00-\u9FA5\u00A0-\u024F\w .@()-]+(\/|\\+))*(?:[\u4E00-\u9FA5\u00A0-\u024F\w .@()-])*$/;
        invalid_characters = /* @__PURE__ */ new Set(["#", "<", "$", "+", "%", ">", "!", "`", "&", "*", "'", "|", "{", "?", '"', "=", "}", "@"]);
        File = class extends Source {
          constructor(isWindows2) {
            super({
              name: "file",
              filepath: __filename
            });
            this.isWindows = isWindows2;
          }
          isWindows;
          get triggerCharacters() {
            let characters = this.getConfig("triggerCharacters", []);
            return this.isWindows ? characters : characters.filter((s2) => s2 != "\\");
          }
          getPathOption(opt) {
            let { line, colnr } = opt;
            let part = resolveEnvVariables(byteSlice(line, 0, colnr - 1));
            let filepath = getLastPart(part);
            if (!filepath || filepath.endsWith("//")) return null;
            let ms = part.match(pathRe);
            if (ms && ms.length) {
              const pathstr = workspace_default.expand(ms[0]);
              let input = ms[0].match(/[^/\\]*$/)[0];
              return { pathstr, part: ms[1], startcol: colnr - input.length - 1, input };
            }
            return null;
          }
          shouldTrim(ext2) {
            let trimSameExts = this.getConfig("trimSameExts", []);
            return trimSameExts.includes(ext2);
          }
          async getRoot(pathstr, part, filepath, cwd2) {
            let root;
            let dirname = filepath ? path.dirname(filepath) : "";
            if (pathstr.startsWith(".")) {
              root = filepath ? dirname : cwd2;
            } else if (this.isWindows && /^\w+:/.test(pathstr)) {
              root = /[\\/]$/.test(pathstr) ? pathstr : path.win32.dirname(pathstr);
            } else if (!this.isWindows && pathstr.startsWith("/")) {
              root = pathstr.endsWith("/") ? pathstr : path.posix.dirname(pathstr);
            } else if (part) {
              let exists = await fs.promises.access(path.join(dirname, part)).then(() => true, () => false);
              if (exists) {
                root = dirname;
              } else {
                exists = await fs.promises.access(path.join(cwd2, part)).then(() => true, () => false);
                if (exists) root = cwd2;
              }
            } else {
              root = cwd2;
            }
            return root;
          }
          async doComplete(opt, token) {
            const shouldRun = await this.checkComplete(opt);
            if (!shouldRun) return null;
            let { filepath } = opt;
            let option = this.getPathOption(opt);
            if (!option || option.startcol < opt.col) return null;
            let { pathstr, part, startcol } = option;
            let startPart = opt.col == startcol ? "" : byteSlice(opt.line, opt.col, startcol);
            let ext2 = path.extname(path.basename(filepath));
            let cwd2 = await this.nvim.call("getcwd", []);
            let root = await this.getRoot(pathstr, part, filepath, cwd2);
            if (!root || token.isCancellationRequested) return null;
            let items = await getItemsFromRoot(pathstr, root, this.getConfig("ignoreHidden", true), this.getConfig("ignorePatterns", []));
            let trimExt = this.shouldTrim(ext2);
            return {
              items: items.map((item) => {
                let ex = path.extname(item.word);
                item.word = trimExt && ex === ext2 ? item.word.replace(ext2, "") : item.word;
                return {
                  word: `${startPart}${item.word}`,
                  abbr: `${startPart}${item.abbr}`,
                  menu: this.menu
                };
              })
            };
          }
        };
      }
    });
    
    // src/completion/sources.ts
    function logError(err) {
      logger57.error("Error on source create", err);
    }
    function getSourceType(sourceType) {
      if (sourceType === 0 /* Native */) return "native";
      if (sourceType === 1 /* Remote */) return "remote";
      return "service";
    }
    var logger57, Sources, sources_default;
    var init_sources2 = __esm({
      "src/completion/sources.ts"() {
        "use strict";
        init_events();
        init_extension();
        init_logger();
        init_util();
        init_array();
        init_fs();
        init_is();
        init_node();
        init_protocol();
        init_string();
        init_window();
        init_workspace();
        init_keywords();
        init_source();
        init_source_language();
        init_source_vim();
        init_types2();
        init_util5();
        logger57 = createLogger("sources");
        Sources = class {
          sourceMap = /* @__PURE__ */ new Map();
          disposables = [];
          remoteSourcePaths = [];
          /**
           * @internal
           */
          keywords;
          /**
           * @internal
           */
          init() {
            this.keywords = workspace_default.registerBufferSync((doc) => {
              const segmenterLocales = workspace_default.getConfiguration("suggest", doc).get("segmenterLocales");
              return new KeywordsBuffer(doc, segmenterLocales);
            });
            this.createNativeSources();
            this.createRemoteSources();
            events_default.on("BufEnter", this.onDocumentEnter, this, this.disposables);
            events_default.on("CompleteDone", (_item, linenr, bufnr) => {
              let item = this.keywords.getItem(bufnr);
              if (item) item.onCompleteDone(linenr - 1);
            }, null, this.disposables);
            workspace_default.onDidRuntimePathChange((newPaths) => {
              for (let p2 of newPaths) {
                this.createVimSources(p2).catch(logError);
              }
            }, null, this.disposables);
          }
          get nvim() {
            return workspace_default.nvim;
          }
          /**
           * @internal
           */
          getKeywordsBuffer(bufnr) {
            return this.keywords.getItem(bufnr);
          }
          createNativeSources() {
            void Promise.all([
              Promise.resolve().then(() => (init_util4(), util_exports)).then((m2) => this.sourceMap.set(m2.wordsSource.name, m2.wordsSource)),
              Promise.resolve().then(() => (init_around(), around_exports)).then((module2) => {
                module2.register(this.sourceMap, this.keywords);
              }),
              Promise.resolve().then(() => (init_buffer2(), buffer_exports)).then((module2) => {
                module2.register(this.sourceMap, this.keywords);
              }),
              Promise.resolve().then(() => (init_file(), file_exports)).then((module2) => {
                module2.register(this.sourceMap);
              })
            ]);
          }
          /**
           * @internal
           */
          createLanguageSource(name2, shortcut, selector, provider, triggerCharacters, priority, allCommitCharacters) {
            let source = new LanguageSource(
              name2,
              shortcut,
              provider,
              selector,
              toArray(triggerCharacters),
              toArray(allCommitCharacters),
              priority
            );
            logger57.trace("created service source", name2);
            this.sourceMap.set(name2, source);
            return {
              dispose: () => {
                this.sourceMap.delete(name2);
              }
            };
          }
          /**
           * @internal
           */
          async createVimSourceExtension(filepath) {
            let { nvim } = this;
            try {
              let name2 = path.basename(filepath, ".vim");
              await nvim.command(`source ${filepath.split(path.sep).join(path.posix.sep)}`);
              let fns = await nvim.call("coc#_remote_fns", name2);
              let lowercased = fns.map((fn) => fn[0].toLowerCase() + fn.slice(1));
              for (let fn of ["init", "complete"]) {
                if (!lowercased.includes(fn)) {
                  throw new Error(`function "coc#source#${name2}#${fn}" not found`);
                }
              }
              let props = await nvim.call(`coc#source#${name2}#${getMethodName("init", fns)}`, []);
              let packageJSON = {
                name: `coc-vim-source-${name2}`,
                engines: {
                  coc: ">= 0.0.1"
                },
                activationEvents: props.filetypes ? props.filetypes.map((f2) => `onLanguage:${f2}`) : ["*"],
                contributes: {
                  configuration: {
                    properties: {
                      [`coc.source.${name2}.enable`]: {
                        type: "boolean",
                        default: true
                      },
                      [`coc.source.${name2}.firstMatch`]: {
                        type: "boolean",
                        default: !!props.firstMatch
                      },
                      [`coc.source.${name2}.triggerCharacters`]: {
                        type: "number",
                        default: props.triggerCharacters ?? []
                      },
                      [`coc.source.${name2}.priority`]: {
                        type: "number",
                        default: props.priority ?? 9
                      },
                      [`coc.source.${name2}.shortcut`]: {
                        type: "string",
                        default: props.shortcut ?? name2.slice(0, 3).toUpperCase(),
                        description: "Shortcut text shown in complete menu."
                      },
                      [`coc.source.${name2}.disableSyntaxes`]: {
                        type: "array",
                        default: [],
                        items: {
                          type: "string"
                        }
                      },
                      [`coc.source.${name2}.filetypes`]: {
                        type: "array",
                        default: props.filetypes || null,
                        description: "Enabled filetypes.",
                        items: {
                          type: "string"
                        }
                      }
                    }
                  }
                }
              };
              let isActive = false;
              let extension = {
                id: packageJSON.name,
                packageJSON,
                exports: void 0,
                extensionPath: filepath,
                activate: () => {
                  isActive = true;
                  let source = new VimSource({
                    name: name2,
                    filepath,
                    isSnippet: props.isSnippet,
                    sourceType: 1 /* Remote */,
                    triggerOnly: !!props.triggerOnly,
                    remoteFns: fns
                  });
                  this.addSource(source);
                  return Promise.resolve();
                }
              };
              Object.defineProperty(extension, "isActive", {
                get: () => isActive
              });
              await extension_default.manager.registerInternalExtension(extension, () => {
                isActive = false;
                this.removeSource(name2);
              });
            } catch (e2) {
              if (!this.nvim.isVim) {
                let lines = await readFileLines(filepath, 0, 1);
                if (lines.length > 0 && lines[0].startsWith("vim9script")) return;
              }
              void window_default.showErrorMessage(`Error on create vim source from ${filepath}: ${e2}`);
              logger57.error(`Error on create vim source from ${filepath}`, e2);
            }
          }
          createRemoteSources() {
            let paths = workspace_default.env.runtimepath.split(",");
            for (let path4 of paths) {
              this.createVimSources(path4).catch(logError);
            }
          }
          /**
           * @internal
           */
          async createVimSources(pluginPath) {
            if (this.remoteSourcePaths.includes(pluginPath) || !pluginPath) return;
            this.remoteSourcePaths.push(pluginPath);
            let folder = path.join(pluginPath, "autoload/coc/source");
            let stat = await statAsync(folder);
            if (stat && stat.isDirectory()) {
              let arr = await fs.promises.readdir(folder);
              let files = arr.filter((s2) => s2.endsWith(".vim")).map((s2) => path.join(folder, s2));
              await Promise.allSettled(files.map((p2) => this.createVimSourceExtension(p2)));
            }
          }
          get names() {
            return Array.from(this.sourceMap.keys());
          }
          get sources() {
            return Array.from(this.sourceMap.values());
          }
          has(name2) {
            return this.names.findIndex((o2) => o2 == name2) != -1;
          }
          getSource(name2) {
            return this.sourceMap.get(name2) ?? null;
          }
          /**
           * @internal
           */
          shouldCommit(source, item, commitCharacter) {
            if (!item || source == null || commitCharacter.length === 0) return false;
            if (func(source.shouldCommit)) {
              return source.shouldCommit(item, commitCharacter);
            }
            return false;
          }
          /**
           * @internal
           */
          getSources(opt) {
            let { source } = opt;
            if (source) return toArray(this.getSource(source));
            let uri = workspace_default.getUri(opt.bufnr);
            return this.getNormalSources(opt.filetype, uri);
          }
          /**
           * @internal
           * Get sources should be used without trigger.
           * @param {string} filetype
           * @returns {ISource[]}
           */
          getNormalSources(filetype, uri) {
            let languageIds = filetype.split(".");
            let res = this.sources.filter((source) => {
              let { filetypes, triggerOnly, documentSelector, enable } = source;
              if (!enable || triggerOnly || filetypes && !intersect(filetypes, languageIds)) return false;
              if (documentSelector && languageIds.every((filetype2) => workspace_default.match(documentSelector, { uri, languageId: filetype2 }) == 0)) return false;
              return true;
            });
            return res;
          }
          checkTrigger(source, pre, character) {
            let { triggerCharacters, triggerPatterns } = source;
            if (!isFalsyOrEmpty(triggerCharacters) && triggerCharacters.includes(character)) {
              return true;
            }
            if (!isFalsyOrEmpty(triggerPatterns) && triggerPatterns.findIndex((p2) => p2.test(pre)) !== -1) {
              return true;
            }
            return false;
          }
          /**
           * @internal
           */
          shouldTrigger(pre, filetype, uri) {
            return this.getTriggerSources(pre, filetype, uri).length > 0;
          }
          /**
           * @internal
           */
          getTriggerSources(pre, filetype, uri, disabled = []) {
            if (!pre) return [];
            let character = pre[pre.length - 1];
            let languageIds = filetype.split(".");
            return this.sources.filter((source) => {
              let { filetypes, enable, documentSelector, name: name2 } = source;
              if (disabled.includes(name2)) return false;
              if (!enable || Array.isArray(filetypes) && !intersect(filetypes, languageIds)) return false;
              if (documentSelector && languageIds.every((languageId) => workspace_default.match(documentSelector, { uri, languageId }) == 0)) {
                return false;
              }
              return this.checkTrigger(source, pre, character);
            });
          }
          addSource(source) {
            let { name: name2 } = source;
            if (this.names.includes(name2)) {
              logger57.warn(`Recreate source ${name2}`);
            }
            this.sourceMap.set(name2, source);
            return import_node4.Disposable.create(() => {
              this.removeSource(source);
            });
          }
          removeSource(source) {
            let name2 = typeof source == "string" ? source : source.name;
            let obj = typeof source === "string" ? this.sourceMap.get(source) : source;
            if (obj && typeof obj.dispose === "function") obj.dispose();
            this.sourceMap.delete(name2);
          }
          async refresh(name2) {
            for (let source of this.sources) {
              if (!name2 || source.name == name2) {
                if (typeof source.refresh === "function") {
                  await Promise.resolve(source.refresh());
                }
              }
            }
          }
          toggleSource(name2) {
            let source = this.getSource(name2);
            if (source && typeof source.toggle === "function") {
              source.toggle();
            }
          }
          sourceStats() {
            let stats = [];
            let languageSourcePriority = workspace_default.initialConfiguration.get("suggest.languageSourcePriority");
            for (let item of this.sourceMap.values()) {
              if (item.name === "$words") continue;
              stats.push({
                name: item.name,
                priority: getPriority(item, languageSourcePriority),
                triggerCharacters: toArray(item.triggerCharacters),
                shortcut: toText(item.shortcut),
                filetypes: toArray(item.filetypes ?? item.documentSelector?.map((o2) => string(o2) ? o2 : o2.language)),
                filepath: toText(item.filepath),
                type: getSourceType(item.sourceType),
                disabled: !item.enable
              });
            }
            return stats;
          }
          onDocumentEnter(bufnr) {
            let { sources } = this;
            for (let s2 of sources) {
              if (s2.enable && func(s2.onEnter)) {
                s2.onEnter(bufnr);
              }
            }
          }
          createSource(config) {
            if (typeof config.name !== "string" || typeof config.doComplete !== "function") {
              logger57.error(`Bad config for createSource:`, config);
              throw new TypeError(`name and doComplete required for createSource`);
            }
            let source = new Source(Object.assign({ sourceType: 2 /* Service */ }, config));
            return this.addSource(source);
          }
          /**
           * @internal
           */
          dispose() {
            disposeAll(this.disposables);
          }
        };
        sources_default = new Sources();
      }
    });
    
    // src/completion/index.ts
    var logger58, TRIGGER_TIMEOUT, CURSORMOVE_DEBOUNCE, Completion, completion_default;
    var init_completion2 = __esm({
      "src/completion/index.ts"() {
        "use strict";
        init_main();
        init_esm();
        init_commands();
        init_events();
        init_logger();
        init_util();
        init_array();
        init_errors();
        init_is();
        init_node();
        init_numbers();
        init_object();
        init_string();
        init_window();
        init_workspace();
        init_complete();
        init_floating();
        init_pum();
        init_sources2();
        init_types2();
        init_util5();
        logger58 = createLogger("completion");
        TRIGGER_TIMEOUT = getConditionValue(200, 20);
        CURSORMOVE_DEBOUNCE = getConditionValue(20, 20);
        Completion = class {
          config;
          staticConfig;
          pum;
          _mru;
          pretext;
          triggerTimer;
          popupEvent;
          floating;
          disposables = [];
          complete = null;
          _debounced;
          // Ordered items shown in the pum
          activeItems = [];
          get nvim() {
            return workspace_default.nvim;
          }
          clearTriggerTimer() {
            clearTimeout(this.triggerTimer);
            this.triggerTimer = null;
          }
          init() {
            this.loadConfiguration();
            workspace_default.onDidChangeConfiguration(this.loadConfiguration, this, this.disposables);
            window_default.onDidChangeActiveTextEditor((e2) => {
              this.loadLocalConfig(e2.document);
            }, null, this.disposables);
            this._mru = new MruLoader();
            this.pum = new PopupMenu(this.staticConfig, this._mru);
            this.floating = new Floating(this.staticConfig);
            this._debounced = debounce2(this.onCursorMovedI.bind(this), CURSORMOVE_DEBOUNCE);
            events_default.on("BufEnter", () => {
              this._debounced.clear();
            }, null, this.disposables);
            events_default.on(["CursorMoved", "InsertLeave"], () => {
              this.cancelAndClose();
            }, null, this.disposables);
            events_default.on("PumNavigate", () => {
              this.complete?.cancel();
            }, null, this.disposables);
            events_default.on("CursorMovedI", this._debounced, this, this.disposables);
            events_default.on("CursorMovedI", () => {
              this.clearTriggerTimer();
            }, null, this.disposables);
            events_default.on("InsertEnter", this.onInsertEnter, this, this.disposables);
            events_default.on("TextChangedI", this.onTextChangedI, this, this.disposables);
            events_default.on("MenuPopupChanged", async (ev) => {
              if (this.complete == null) return;
              this.popupEvent = ev;
              if (ev.inserted) this.complete.cancel();
              let selectedItem = this.activeItems[ev.index];
              let resolved = this.complete.resolveItem(selectedItem);
              if (!resolved || !ev.move && this.complete.isCompleting) return;
              let detailRendered = selectedItem.detailRendered;
              let showDocs = this.config.enableFloat;
              await this.floating.resolveItem(resolved.source, resolved.item, this.option, showDocs, detailRendered);
            }, null, this.disposables);
            this.nvim.call("coc#ui#check_pum_keymappings", [this.config.autoTrigger], true);
            commands_default.registerCommand("editor.action.triggerSuggest", async (source) => {
              await this.startCompletion({ source });
            }, this, true);
          }
          get mru() {
            return this._mru;
          }
          onCursorMovedI(bufnr, cursor, hasInsert) {
            if (hasInsert || !this.option || bufnr !== this.option.bufnr) return;
            let { linenr, col } = this.option;
            if (this.selectedItem && linenr === cursor[0] && col + byteLength(this.selectedItem.word) + 1 == cursor[1]) {
              return;
            }
            if (linenr === cursor[0] && cursor[1] === byteLength(toText(this.pretext)) + 1) {
              return;
            }
            this.cancelAndClose();
          }
          get option() {
            if (!this.complete) return null;
            return this.complete.option;
          }
          get isActivated() {
            return this.complete != null;
          }
          get selectedItem() {
            if (!this.popupEvent) return void 0;
            return this.activeItems[this.popupEvent.index];
          }
          get selectedCompletionInfo() {
            let item = this.selectedItem;
            let { pretext } = this;
            if (!pretext || !item) return void 0;
            let line = this.option.linenr - 1;
            let end = pretext.length;
            return { range: Range.create(line, item.character, line, end), text: item.word };
          }
          /**
           * Configuration for current document
           */
          loadLocalConfig(doc) {
            let suggest = workspace_default.getConfiguration("suggest", doc);
            this.config = {
              autoTrigger: suggest.get("autoTrigger", "always"),
              insertMode: suggest.get("insertMode", "replace" /* Replace */),
              filterGraceful: suggest.get("filterGraceful", true),
              enableFloat: suggest.get("enableFloat", true),
              languageSourcePriority: suggest.get("languageSourcePriority", 99),
              snippetsSupport: suggest.get("snippetsSupport", true),
              defaultSortMethod: suggest.get("defaultSortMethod", "length" /* Length */),
              removeDuplicateItems: suggest.get("removeDuplicateItems", false),
              removeCurrentWord: suggest.get("removeCurrentWord", false),
              acceptSuggestionOnCommitCharacter: suggest.get("acceptSuggestionOnCommitCharacter", false),
              triggerCompletionWait: suggest.get("triggerCompletionWait", 0),
              triggerAfterInsertEnter: suggest.get("triggerAfterInsertEnter", false),
              maxItemCount: suggest.get("maxCompleteItemCount", 256),
              timeout: suggest.get("timeout", 500),
              minTriggerInputLength: suggest.get("minTriggerInputLength", 1),
              localityBonus: suggest.get("localityBonus", true),
              highPrioritySourceLimit: suggest.get("highPrioritySourceLimit", null),
              lowPrioritySourceLimit: suggest.get("lowPrioritySourceLimit", null),
              ignoreRegexps: suggest.get("ignoreRegexps", []),
              asciiMatch: suggest.get("asciiMatch", true),
              asciiCharactersOnly: suggest.get("asciiCharactersOnly", false)
            };
          }
          loadConfiguration(e2) {
            if (e2 && !e2.affectsConfiguration("suggest")) return;
            if (e2) this.pum.reset();
            let suggest = workspace_default.initialConfiguration.get("suggest");
            let labels = defaultValue(suggest.completionItemKindLabels, {});
            this.staticConfig = Object.assign(this.staticConfig ?? {}, {
              kindMap: createKindMap(labels),
              defaultKindText: toText(labels["default"]),
              detailField: suggest.detailField,
              detailMaxLength: toNumber(suggest.detailMaxLength, 100),
              invalidInsertCharacters: toArray(suggest.invalidInsertCharacters),
              formatItems: suggest.formatItems,
              filterOnBackspace: suggest.filterOnBackspace,
              pumAlign: suggest.pumAlign,
              floatConfig: toObject(suggest.floatConfig),
              pumFloatConfig: suggest.pumFloatConfig,
              labelMaxLength: suggest.labelMaxLength,
              reTriggerAfterIndent: !!suggest.reTriggerAfterIndent,
              reversePumAboveCursor: !!suggest.reversePumAboveCursor,
              snippetIndicator: toText(suggest.snippetIndicator),
              noselect: !!suggest.noselect,
              enablePreselect: !!suggest.enablePreselect,
              virtualText: !!suggest.virtualText,
              selection: suggest.selection
            });
            let doc = workspace_default.getDocument(workspace_default.bufnr);
            this.loadLocalConfig(doc);
          }
          async startCompletion(opt) {
            this.clearTriggerTimer();
            let sourceList;
            if (string(opt.source)) {
              sourceList = toArray(sources_default.getSource(opt.source));
            }
            let info = await this.nvim.call("coc#util#change_info");
            if (workspace_default.getDocument(events_default.bufnr) == null) {
              return;
            }
            let doc = workspace_default.getAttachedDocument(events_default.bufnr);
            info.pre = byteSlice(info.line, 0, info.col - 1);
            const option = this.getCompleteOption(doc, info, true, opt.col);
            await this._startCompletion(option, sourceList);
          }
          async _startCompletion(option, sourceList) {
            this._debounced.clear();
            let doc = workspace_default.getAttachedDocument(option.bufnr);
            option.filetype = doc.filetype;
            logger58.debug("trigger completion with", option);
            this.cancelAndClose();
            sourceList = sourceList ?? sources_default.getSources(option);
            if (isFalsyOrEmpty(sourceList)) return;
            this.pretext = byteSlice(option.line, 0, option.colnr - 1);
            let complete = this.complete = new Complete(
              option,
              doc,
              this.config,
              sourceList
            );
            void events_default.fire("CompleteStart", [option]);
            complete.onDidRefresh(async () => {
              if (complete.isEmpty) {
                if (this.triggerTimer == null) this.cancelAndClose();
                return;
              }
              this.clearTriggerTimer();
              await this.filterResults();
            });
            let shouldStop2 = await complete.doComplete();
            if (shouldStop2) this.cancelAndClose(false);
          }
          hasIndentChange(info) {
            let { option, pretext } = this;
            if (!option || option.linenr != info.lnum) return false;
            let previous = pretext.match(/^\s*/)[0];
            let current = info.pre.match(/^\s*/)[0];
            if (previous == current || pretext.slice(previous.length) !== info.pre.slice(current.length)) return false;
            return true;
          }
          shouldStopOnBackspace(doc, info, option) {
            if (info.pre.length >= this.pretext.length) return false;
            if (this.staticConfig.filterOnBackspace === false) return true;
            if (getResumeInput(option, info.pre) !== "") return false;
            if (this.complete?.getBackspaceSources().length) return false;
            let triggerSources = this.getTriggerSources(doc, info.pre);
            return !triggerSources.some((source) => this.complete?.hasSource(source));
          }
          async onTextChangedI(bufnr, info) {
            const doc = workspace_default.getDocument(bufnr);
            if (!doc || !doc.attached) return;
            this._debounced.clear();
            const { option, staticConfig } = this;
            if (option != null) {
              if (!info.insertChar) {
                let pre = byteSlice(option.line, 0, option.col);
                if (this.selectedItem) {
                  let { word, startcol } = this.popupEvent;
                  let unchangedNoinsert = !this.popupEvent.inserted && option.bufnr == bufnr && option.linenr == info.lnum && pre + this.pum.search == info.pre && shouldStop(bufnr, info, option);
                  if (byteSlice(option.line, 0, startcol) + word == info.pre || unchangedNoinsert) {
                    this.pretext = info.pre;
                    return;
                  }
                } else if (pre + this.pum.search == info.pre) {
                  this.pretext = info.pre;
                  return;
                }
              }
              if (staticConfig.reTriggerAfterIndent && this.hasIndentChange(info)) {
                this.cancelAndClose();
                await this.triggerCompletion(doc, info);
                return;
              }
              if (shouldStop(bufnr, info, option) || this.shouldStopOnBackspace(doc, info, option)) {
                this.cancelAndClose();
                return;
              }
            }
            if (info.pre === this.pretext) return;
            this.clearTriggerTimer();
            let pretext = this.pretext = info.pre;
            if (!info.insertChar) {
              if (this.complete) await this.filterResults(info);
              return;
            }
            if (this.config.acceptSuggestionOnCommitCharacter && this.selectedItem) {
              let last = pretext.slice(-1);
              let resolvedItem = this.selectedItem;
              let result = this.complete.resolveItem(resolvedItem);
              if (result && sources_default.shouldCommit(result.source, result.item, last)) {
                logger58.debug(`commit by commit character: ${last}`);
                let startcol = byteIndex(this.option.line, resolvedItem.character) + 1;
                let delta = deltaCount(info);
                await this.nvim.call("coc#pum#replace", [startcol, resolvedItem.word, delta]);
                await this.stop("confirm" /* Confirm */, true);
                let res = await this.nvim.evalVim(`[getline('.'),col('.'),mode()]`);
                let currentPre = byteSlice(res[0], 0, res[1] - 1);
                if (res[2] != "i" || currentPre[currentPre.length - 1] == last) return;
                if (pariedCharacters.has(last) && currentPre.slice(-2) == `${last}${pariedCharacters.get(last)}`) return;
                this.nvim.call("feedkeys", [last, "n"], true);
                return;
              }
            }
            if (!doc.chars.isKeywordChar(info.insertChar)) {
              let triggerSources = this.getTriggerSources(doc, pretext);
              if (triggerSources.length > 0) {
                await this.triggerCompletion(doc, info, triggerSources);
                return;
              }
            }
            if (!this.complete) {
              await this.triggerCompletion(doc, info);
              return;
            }
            if (this.complete.isEmpty) {
              this.triggerTimer = setTimeout(async () => {
                this.triggerTimer = null;
                await this.triggerCompletion(doc, info);
              }, TRIGGER_TIMEOUT);
              return;
            }
            await this.filterResults(info);
          }
          getTriggerSources(doc, pretext) {
            let disabled = doc.getVar("disabled_sources", []);
            if (this.config.autoTrigger === "none") return [];
            return sources_default.getTriggerSources(pretext, doc.filetype, doc.uri, disabled);
          }
          async triggerCompletion(doc, info, sources) {
            let { minTriggerInputLength, autoTrigger } = this.config;
            let { pre } = info;
            if (autoTrigger === "none") return false;
            if (!sources && !this.shouldTrigger(doc, pre)) return false;
            const option = this.getCompleteOption(doc, info);
            if (sources == null && option.input.length < minTriggerInputLength) {
              logger58.trace(`Suggest not triggered with input "${option.input}", minimal trigger input length: ${minTriggerInputLength}`);
              return false;
            }
            if (checkIgnoreRegexps(this.config.ignoreRegexps, option.input)) return false;
            await this._startCompletion(option, sources);
            return true;
          }
          getCompleteOption(doc, info, manual = false, col) {
            let { pre } = info;
            let input;
            if (number(col)) {
              input = byteSlice(info.line, col - 1, info.col - 1);
            } else {
              input = getInput(doc.chars, info.pre, this.config.asciiCharactersOnly);
            }
            let followWord = doc.getStartWord(info.line.slice(info.pre.length));
            return {
              input,
              position: Position.create(info.lnum - 1, info.pre.length),
              line: info.line,
              followWord,
              filetype: doc.filetype,
              linenr: info.lnum,
              col: info.col - 1 - byteLength(input),
              colnr: info.col,
              bufnr: doc.bufnr,
              word: input + followWord,
              changedtick: info.changedtick,
              synname: "",
              filepath: doc.schema === "file" ? u.parse(doc.uri).fsPath : "",
              triggerCharacter: manual ? void 0 : toText(pre[pre.length - 1])
            };
          }
          addMruItem() {
            let { selectedItem, complete } = this;
            if (!selectedItem) return;
            let character = selectedItem.character;
            this._mru.add(complete.getTrigger(character), selectedItem);
          }
          cancelAndClose(close = true) {
            this.clearTriggerTimer();
            if (!this.complete) return;
            const { linenr, bufnr } = this.complete.option;
            this._onFinish("" /* Normal */, close);
            void events_default.fire("CompleteDone", [{}, linenr, bufnr]);
          }
          _onFinish(kind, close) {
            this.floating.cancel();
            let inserted = kind === "confirm" /* Confirm */ || this.popupEvent?.inserted;
            if (inserted) this.addMruItem();
            let doc = this.complete.document;
            this.cancel();
            doc._forceSync();
            if (close) this.nvim.call("coc#pum#_close", [], true);
          }
          async stop(kind, close = false) {
            let { complete } = this;
            if (complete == null) return;
            const item = this.selectedItem;
            const resolved = complete.resolveItem(item);
            const option = complete.option;
            this._onFinish(kind, close);
            if (resolved && kind == "confirm" /* Confirm */) {
              try {
                await this.confirmCompletion(resolved.source, resolved.item, option);
              } catch (e2) {
                if (!shouldIgnore(e2)) {
                  logger58.error("Error on confirm completion:", e2);
                }
              }
            }
            void events_default.fire("CompleteDone", [toCompleteDoneItem(item, resolved?.item), option.linenr, option.bufnr]);
          }
          async confirmCompletion(source, item, option) {
            await this.floating.resolveItem(source, item, option, false);
            if (!func(source.onCompleteDone)) return;
            let { insertMode, snippetsSupport } = this.config;
            let opt = Object.assign({ insertMode, snippetsSupport }, option);
            await Promise.resolve(source.onCompleteDone(item, opt));
          }
          async onInsertEnter(bufnr) {
            if (!this.config.triggerAfterInsertEnter || this.config.autoTrigger !== "always") return;
            let doc = workspace_default.getDocument(bufnr);
            if (!doc || !doc.attached) return;
            let change = await this.nvim.call("coc#util#change_info");
            change.pre = byteSlice(change.line, 0, change.col - 1);
            await this.triggerCompletion(doc, change);
          }
          shouldTrigger(doc, pre) {
            let { autoTrigger } = this.config;
            if (autoTrigger == "none") return false;
            if (sources_default.shouldTrigger(pre, doc.filetype, doc.uri)) return true;
            if (autoTrigger !== "always") return false;
            return true;
          }
          async filterResults(info) {
            let { complete, option, pretext } = this;
            let search = getResumeInput(option, pretext);
            if (search == null || !complete) {
              this.cancelAndClose();
              return;
            }
            let items = await complete.filterResults(search, info != null && !info.insertChar && search === "");
            if (items === void 0 || !this.option) return;
            let doc = workspace_default.getDocument(option.bufnr);
            if (info && info.insertChar && items.length == 0) {
              let triggerSources = this.getTriggerSources(doc, pretext);
              if (triggerSources.length > 0) {
                await this.triggerCompletion(doc, info, triggerSources);
                return;
              }
            }
            if (items.length == 0) {
              let last = search.slice(-1);
              if (!complete.isCompleting || last.length === 0 || !doc.chars.isKeywordChar(last)) {
                this.cancelAndClose();
              }
              return;
            }
            this.activeItems = items;
            this.pum.show(items, search, this.option);
          }
          cancel() {
            if (this.complete != null) {
              this.complete.dispose();
              this.complete = null;
            }
            if (this.triggerTimer != null) {
              this.clearTriggerTimer();
            }
            this.pretext = void 0;
            this.activeItems = [];
            this.popupEvent = void 0;
          }
          dispose() {
            disposeAll(this.disposables);
          }
        };
        completion_default = new Completion();
      }
    });
    
    // src/cursors/util.ts
    function splitRange(doc, range2) {
      let { start, end } = range2;
      if (start.line === end.line) {
        return start.character === end.character ? [] : [Range.create(start.line, start.character, end.line, end.character)];
      }
      let splited = [];
      let startLength = doc.getline(start.line).length;
      if (start.character !== startLength) {
        splited.push(Range.create(start.line, start.character, start.line, startLength));
      }
      for (let i2 = start.line + 1; i2 < end.line; i2++) {
        let curr = doc.getline(i2);
        if (curr.length === 0) continue;
        splited.push(Range.create(i2, 0, i2, curr.length));
      }
      if (end.character !== 0) {
        splited.push(Range.create(end.line, 0, end.line, end.character));
      }
      return splited;
    }
    function getVisualRanges(doc, range2) {
      let { start, end } = getWellformedRange2(range2);
      let sc = start.character < end.character ? start.character : end.character;
      let ec = start.character < end.character ? end.character : start.character;
      let ranges = [];
      for (let i2 = start.line; i2 <= end.line; i2++) {
        let line = doc.getline(i2);
        ranges.push(Range.create(i2, sc, i2, Math.min(line.length, ec)));
      }
      return ranges;
    }
    function isSurroundChange(change) {
      return Array.isArray(change["prepend"]) && Array.isArray(change["append"]);
    }
    function getDelta(change) {
      if (isSurroundChange(change)) {
        return change.append[1].length + change.prepend[1].length - change.append[0] - change.prepend[0];
      }
      return change.insert.length - change.remove;
    }
    function getChange(r2, range2, newText) {
      let text = r2.text;
      if (equals(r2.range, range2)) {
        let idx = text.indexOf(newText);
        if (idx !== -1) {
          let prepend = [idx, ""];
          let n2 = text.length - newText.length - idx;
          let append = [n2, ""];
          return { prepend, append, remove: r2.text.length === n2 };
        }
        idx = newText.indexOf(text);
        if (idx !== -1) {
          let prepend = [0, newText.slice(0, idx)];
          let append = [0, newText.slice(-(newText.length - text.length - idx))];
          return { prepend, append, remove: false };
        }
      }
      if (equals(r2.range.end, range2.end)) {
        let remove3 = range2.end.character - range2.start.character;
        return { offset: remove3, remove: remove3, insert: newText, fromEnd: true };
      }
      let remove2 = range2.end.character - range2.start.character;
      let offset = range2.start.character - r2.range.start.character;
      return { offset, remove: remove2, insert: newText };
    }
    function getBeforeCount(textRange, ranges, exclude) {
      let n2 = 0;
      for (let idx = 0; idx < ranges.length; idx++) {
        const r2 = ranges[idx];
        if (r2.position.line < textRange.position.line || r2 === exclude) continue;
        if (r2.isBefore(textRange)) {
          n2++;
          continue;
        }
        break;
      }
      return n2;
    }
    var init_util7 = __esm({
      "src/cursors/util.ts"() {
        "use strict";
        init_main();
        init_object();
        init_textedit();
      }
    });
    
    // src/cursors/textRange.ts
    var TextRange;
    var init_textRange = __esm({
      "src/cursors/textRange.ts"() {
        "use strict";
        init_main();
        init_position();
        init_textedit();
        init_util7();
        TextRange = class {
          start;
          end;
          _text;
          constructor(line, character, text) {
            this.start = Position.create(line, character);
            this._text = text;
            this.end = getEnd(this.start, this._text);
          }
          get position() {
            return this.start;
          }
          get line() {
            return this.start.line;
          }
          get text() {
            return this._text;
          }
          get range() {
            return Range.create(this.start, this.end);
          }
          get textEdit() {
            return {
              range: this.range,
              newText: this.text
            };
          }
          applyChange(change) {
            if (isSurroundChange(change)) {
              this.applySurroundChange(change);
            } else {
              this.applyTextChange(change);
            }
          }
          applySurroundChange(change) {
            let { prepend, append, remove: remove2 } = change;
            if (remove2) {
              this._text = "";
            } else {
              let len = this._text.length;
              let text = this._text.substring(prepend[0], len - append[0]);
              this._text = `${prepend[1]}${text}${append[1]}`;
            }
          }
          applyTextChange(change) {
            let { text } = this;
            let { offset, remove: remove2, fromEnd, insert } = change;
            if (fromEnd) offset = -offset;
            let pre = text.slice(0, fromEnd && offset == 0 ? text.length : offset);
            let after = text.slice(pre.length);
            if (remove2) after = after.slice(remove2);
            this._text = `${pre}${insert || ""}${after}`;
          }
          /**
           * Adjust range
           */
          move(delta) {
            if (delta != 0) {
              let { line, character } = this.start;
              this.start = Position.create(line, character + delta);
            }
            this.end = getEnd(this.start, this._text);
          }
          adjustFromEdit(edit2) {
            let changed = getChangedPosition(this.start, edit2);
            if (changed.line || changed.character) {
              let { line, character } = this.start;
              this.start = Position.create(line + changed.line, character + changed.character);
              this.end = getEnd(this.start, this._text);
            }
            return changed.character;
          }
          isBefore(range2) {
            let { position } = range2;
            let { line, character } = this.start;
            return position.line == line && position.character > character;
          }
        };
      }
    });
    
    // src/cursors/session.ts
    function surroundChanges(changes, len) {
      if (changes.length != 2 || changes[0].offset != 0) return false;
      let end = changes[1].offset + (changes[1].remove ? changes[1].remove.length : 0);
      if (end !== len) return false;
      return true;
    }
    var logger59, CursorSession;
    var init_session4 = __esm({
      "src/cursors/session.ts"() {
        "use strict";
        init_main3();
        init_main();
        init_logger();
        init_util();
        init_node();
        init_position();
        init_protocol();
        init_textedit();
        init_window();
        init_workspace();
        init_textRange();
        init_util7();
        logger59 = createLogger("cursors-session");
        CursorSession = class {
          constructor(nvim, doc, config) {
            this.nvim = nvim;
            this.doc = doc;
            this.config = config;
            let { bufnr } = doc;
            doc.buffer.setVar("coc_cursors_activated", 1, true);
            let { cancelKey, nextKey, previousKey } = this.config;
            this.disposables.push(workspace_default.registerLocalKeymap(bufnr, "n", cancelKey, () => {
              this.cancel();
            }));
            this.disposables.push(workspace_default.registerLocalKeymap(bufnr, "n", nextKey, async () => {
              let ranges = this.ranges.map((o2) => o2.range);
              let curr = await window_default.getCursorPosition();
              for (let r2 of ranges) {
                if (comparePosition(r2.start, curr) > 0) {
                  await window_default.moveTo(r2.start);
                  return;
                }
              }
              let wrap = this.config.wrapscan;
              if (ranges.length && wrap) await window_default.moveTo(ranges[0].start);
            }));
            this.disposables.push(workspace_default.registerLocalKeymap(bufnr, "n", previousKey, async () => {
              let ranges = this.ranges.map((o2) => o2.range);
              let curr = await window_default.getCursorPosition();
              for (let i2 = ranges.length - 1; i2 >= 0; i2--) {
                let r2 = ranges[i2];
                if (comparePosition(r2.end, curr) < 0) {
                  await window_default.moveTo(r2.start);
                  return;
                }
              }
              let wrap = this.config.wrapscan;
              if (ranges.length && wrap) await window_default.moveTo(ranges[ranges.length - 1].start);
            }));
            this.doc.onDocumentChange(async (e2) => {
              await this.onChange(e2);
              if (this.activated && !this.changing) {
                this._onDidUpdate.fire();
              }
            }, this, this.disposables);
          }
          nvim;
          doc;
          config;
          _onDidCancel = new import_node4.Emitter();
          _onDidUpdate = new import_node4.Emitter();
          onDidCancel = this._onDidCancel.event;
          onDidUpdate = this._onDidUpdate.event;
          disposables = [];
          ranges = [];
          activated = true;
          changing = false;
          checkRanges() {
            if (this.ranges.length == 0) {
              this.cancel();
            }
          }
          /**
           * Add or remove range.
           */
          addRange(range2) {
            let { ranges } = this;
            let idx = ranges.findIndex((o2) => rangeIntersect(o2.range, range2));
            if (idx !== -1) {
              ranges.splice(idx, 1);
            } else {
              this.createRange(range2);
              ranges.sort((a2, b2) => comparePosition(a2.range.start, b2.range.start));
            }
            if (this.ranges.length == 0) {
              this.cancel();
            } else {
              this.doHighlights();
            }
          }
          addRanges(ranges) {
            this.doc._forceSync();
            this.ranges = this.ranges.filter((r2) => {
              return !ranges.some((range2) => rangeOverlap(range2, r2.range));
            });
            for (let range2 of ranges) {
              this.createRange(range2);
            }
            this.ranges.sort((a2, b2) => comparePosition(a2.range.start, b2.range.start));
            this.doHighlights();
            return true;
          }
          createRange(range2) {
            let { textDocument } = this.doc;
            let { line, character } = range2.start;
            let text = textDocument.getText(range2);
            this.ranges.push(new TextRange(line, character, text));
          }
          async onChange(e2) {
            if (!this.activated || this.changing) return;
            if (e2.contentChanges.length === 0) {
              this.doHighlights();
              return;
            }
            let change = e2.contentChanges[0];
            let { text, range: range2 } = change;
            let affected = this.ranges.filter((r2) => {
              if (!rangeIntersect(range2, r2.range)) return false;
              if (rangeAdjacent(range2, r2.range)) {
                if (text.includes("\n") || !emptyRange(range2)) return false;
              }
              return true;
            });
            if (emptyRange(range2) && affected.length > 0) {
              affected = affected.slice(0, 1);
            }
            if (affected.length == 0) {
              logger59.debug("no affected ranges");
              this.ranges.forEach((r2) => {
                r2.adjustFromEdit({ range: range2, newText: text });
              });
              this.doHighlights();
            } else if (affected.length == 1 && rangeInRange(range2, affected[0].range)) {
              logger59.debug("affected single range");
              if (text.includes("\n")) {
                this.cancel();
                return;
              }
              await this.applySingleEdit(affected[0], { range: range2, newText: text });
            } else if (!text.length || !this.validChange(range2, text)) {
              logger59.debug("filter affected ranges.");
              let ranges = this.ranges.filter((r2) => !affected.includes(r2));
              if (ranges.length > 0) {
                this.ranges = ranges;
                ranges.forEach((r2) => {
                  r2.adjustFromEdit({ range: range2, newText: text });
                });
                this.doHighlights();
              } else {
                this.cancel();
              }
            } else {
              logger59.debug("Check undo & redo");
              let first = this.ranges[0];
              let last = this.ranges[this.ranges.length - 1];
              let originalLines = e2.originalLines.slice(first.line, last.line + 1);
              let newLines = this.doc.textDocument.lines.slice(first.line, last.line + 1);
              this.applyComposedEdit(originalLines, newLines);
            }
          }
          validChange(range2, text) {
            if (lineCountChange(TextEdit.replace(range2, text)) != 0) return false;
            if (!rangeInRange(range2, this.range)) return false;
            let first = this.ranges[0];
            let last = this.ranges[this.ranges.length - 1];
            if (range2.start.line != first.position.line || range2.end.line != last.position.line) return false;
            return true;
          }
          get range() {
            let first = this.ranges[0];
            let last = this.ranges[this.ranges.length - 1];
            return Range.create(first.position, last.range.end);
          }
          doHighlights() {
            let { nvim, ranges, doc } = this;
            let buffer = doc.buffer;
            let items = [];
            ranges.forEach((r2) => {
              doc.addHighlights(items, "CocCursorRange", r2.range, {
                combine: false,
                start_incl: true,
                end_incl: true
              });
            });
            items.sort((a2, b2) => {
              if (a2.lnum != b2.lnum) return a2.lnum - b2.lnum;
              return a2.colStart - b2.colStart;
            });
            buffer.updateHighlights("cursors", items, { priority: 4096 });
            nvim.redrawVim();
          }
          get currentRanges() {
            return this.ranges.map((r2) => r2.range);
          }
          /**
           * Cancel session and highlights
           */
          cancel() {
            if (!this.activated) return;
            let buffer = this.doc.buffer;
            this.activated = false;
            this.ranges = [];
            buffer.clearNamespace("cursors");
            buffer.setVar("coc_cursors_activated", 0, true);
            this._onDidUpdate.fire();
            this._onDidCancel.fire();
          }
          /**
           * Called on buffer unload or cancel
           */
          dispose() {
            if (!this.doc) return;
            this._onDidCancel.dispose();
            this._onDidUpdate.dispose();
            disposeAll(this.disposables);
            this.ranges = [];
            this.doc = null;
          }
          async applySingleEdit(textRange, edit2) {
            let { doc } = this;
            let ranges = this.ranges.slice();
            let version2 = doc.version;
            let text = textRange.text;
            let start = edit2.range.start.character - textRange.position.character;
            let end = edit2.range.end.character - textRange.position.character;
            let newText = text.slice(0, start) + edit2.newText + text.slice(end);
            let converted;
            if (newText !== text && (newText.toUpperCase() === text.toUpperCase() || newText.toLowerCase() === text.toLowerCase() || text !== text.toUpperCase() && newText === newText.toUpperCase() || text !== text.toLowerCase() && newText === newText.toLowerCase())) {
              let cases = await this.nvim.call("map", [ranges.map((r2) => r2.text), "[toupper(v:val), tolower(v:val)]"]);
              if (!this.activated || !this.doc) return;
              if (doc.version !== version2 || ranges.length !== this.ranges.length || ranges.some((r2, i2) => r2 !== this.ranges[i2])) {
                this.cancel();
                return;
              }
              let source = cases[ranges.indexOf(textRange)];
              if (source[0] === newText) converted = cases.map((pair2) => pair2[0]);
              else if (source[1] === newText) converted = cases.map((pair2) => pair2[1]);
            }
            let after = ranges.filter((r2) => r2 !== textRange && r2.position.line == textRange.position.line);
            after.forEach((r2) => r2.adjustFromEdit(edit2));
            let change = getChange(textRange, edit2.range, edit2.newText);
            let deltas = ranges.map((r2, i2) => {
              let length = r2.text.length;
              if (converted) {
                r2.applyTextChange({ offset: 0, remove: length, insert: converted[i2] });
              } else {
                r2.applyChange(change);
              }
              return r2.text.length - length;
            });
            let edits = ranges.filter((r2) => r2 !== textRange).map((o2) => o2.textEdit);
            this.changing = true;
            try {
              await doc.applyEdits(edits, true, true);
            } finally {
              this.changing = false;
            }
            if (!this.activated || !this.doc) return;
            let offset = 0;
            for (let i2 = 0; i2 < ranges.length; i2++) {
              let r2 = ranges[i2];
              if (i2 == 0 || r2.line !== ranges[i2 - 1].line) offset = 0;
              r2.move(offset);
              if (r2 !== textRange) offset += deltas[i2];
            }
            this.doHighlights();
          }
          applyComposedEdit(originalLines, newLines) {
            let diffs = fastDiff(originalLines[0], newLines[0]);
            let first = this.ranges[0];
            let s2 = first.position.character;
            let firstLine = first.position.line;
            let len = first.text.length;
            let diff = diffs[0];
            if (s2 > 0 && (diff[0] != fastDiff.EQUAL || !diff[1].startsWith(originalLines[0].slice(0, s2)))) {
              this.cancel();
              return false;
            }
            let used = 0;
            let invalid = false;
            let changes = [];
            for (let i2 = 0; i2 < diffs.length; i2++) {
              let [kind, text] = diffs[i2];
              if (i2 == 0 && s2 > 0) {
                text = text.slice(s2);
              }
              if (kind == fastDiff.EQUAL) {
                used += text.length;
                if (used > len) break;
              } else if (kind == fastDiff.DELETE) {
                let offset = used;
                used += text.length;
                if (used > len) {
                  invalid = true;
                  break;
                }
                changes.push({ offset, remove: text });
              } else {
                let prev = diffs[i2 - 1];
                if (prev && prev[0] == fastDiff.DELETE) {
                  changes[changes.length - 1].add = text;
                } else {
                  changes.push({ offset: used, add: text });
                }
              }
            }
            if (invalid || !changes.length) {
              this.cancel();
              return false;
            }
            let doc = TextDocument2.create("file:///1", "", 0, originalLines.join("\n"));
            let change;
            if (changes.length == 1) {
              change = {
                offset: changes[0].offset,
                remove: changes[0].remove ? changes[0].remove.length : 0,
                insert: changes[0].add ?? ""
              };
            } else if (surroundChanges(changes, len)) {
              change = {
                prepend: [changes[0].remove ? changes[0].remove.length : 0, changes[0].add ?? ""],
                append: [changes[1].remove ? changes[1].remove.length : 0, changes[1].add ?? ""],
                remove: false
              };
            } else {
              let text = first.text;
              let oldText = "";
              let newText = "";
              let offset = changes[0].offset;
              for (let c2 of changes) {
                if (c2.offset > offset + oldText.length) {
                  let s3 = text.slice(offset + oldText.length, c2.offset);
                  oldText += s3;
                  newText += s3;
                }
                if (c2.add) {
                  newText += c2.add;
                }
                if (c2.remove) {
                  oldText += c2.remove;
                }
              }
              change = {
                offset,
                remove: oldText.length,
                insert: newText
              };
            }
            let edits = this.ranges.map((o2) => {
              let line = o2.position.line - firstLine;
              let { start, end } = o2.range;
              let range2 = Range.create(line, start.character, line, end.character);
              o2.applyChange(change);
              return TextEdit.replace(range2, o2.text);
            });
            let content = TextDocument2.applyEdits(doc, edits);
            if (content !== newLines.join("\n")) {
              this.cancel();
              return false;
            }
            let delta = getDelta(change);
            if (delta != 0) {
              for (let r2 of this.ranges) {
                let n2 = getBeforeCount(r2, this.ranges);
                r2.move(n2 * delta);
              }
            }
            this.doHighlights();
            return true;
          }
        };
      }
    });
    
    // src/cursors/index.ts
    var Cursors;
    var init_cursors = __esm({
      "src/cursors/index.ts"() {
        "use strict";
        init_main();
        init_commands();
        init_window();
        init_workspace();
        init_session4();
        init_util7();
        Cursors = class {
          constructor(nvim) {
            this.nvim = nvim;
            this.loadConfiguration();
            workspace_default.onDidChangeConfiguration(this.loadConfiguration, this, this.disposables);
            workspace_default.onDidCloseTextDocument((e2) => {
              let session = this.getSession(e2.bufnr);
              if (!session) return;
              this.sessionsMap.delete(e2.bufnr);
              session.dispose();
            }, null, this.disposables);
            this.disposables.push(commands_default.registerCommand("editor.action.addRanges", async (ranges) => {
              await this.addRanges(ranges);
            }, null, true));
            this.disposables.push(commands_default.registerCommand("editor.action.cancelRanges", async () => {
              let doc = await workspace_default.document;
              this.cancel(doc.bufnr);
            }, null, true));
          }
          nvim;
          sessionsMap = /* @__PURE__ */ new Map();
          disposables = [];
          config;
          loadConfiguration(e2) {
            if (!e2 || e2.affectsConfiguration("cursors")) {
              let config = workspace_default.initialConfiguration;
              this.config = config.get("cursors");
            }
          }
          cancel(uri) {
            let doc = workspace_default.getDocument(uri);
            if (!doc) return;
            let session = this.getSession(doc.bufnr);
            if (session) session.cancel();
          }
          getSession(bufnr) {
            return this.sessionsMap.get(bufnr);
          }
          async isActivated() {
            let bufnr = await this.nvim.call("bufnr", ["%"]);
            return this.sessionsMap.get(bufnr) != null;
          }
          async select(bufnr, kind, mode) {
            let doc = workspace_default.getAttachedDocument(bufnr);
            let { nvim } = this;
            let session = this.createSession(doc);
            let range2;
            if (kind == "operator") {
              let res = await nvim.eval(`[getpos("'["),getpos("']")]`);
              if (mode == "char") {
                let start = doc.getPosition(res[0][1], res[0][2]);
                let end = doc.getPosition(res[1][1], res[1][2] + 1);
                let ranges = splitRange(doc, Range.create(start, end));
                session.addRanges(ranges);
              } else {
                let ranges = [];
                for (let i2 = res[0][1] - 1; i2 <= res[1][1] - 1; i2++) {
                  let line = doc.getline(i2);
                  ranges.push(Range.create(i2, 0, i2, line.length));
                }
                session.addRanges(ranges);
              }
            } else if (kind == "word") {
              let pos = await window_default.getCursorPosition();
              range2 = doc.getWordRangeAtPosition(pos);
              if (!range2) {
                let line = doc.getline(pos.line);
                if (pos.character == line.length) {
                  range2 = Range.create(pos.line, Math.max(0, line.length - 1), pos.line, line.length);
                } else {
                  range2 = Range.create(pos.line, pos.character, pos.line, pos.character + 1);
                }
              }
              session.addRange(range2);
              await nvim.command(`silent! call repeat#set("\\(coc-cursors-${kind})", -1)`);
            } else if (kind == "position") {
              let pos = await window_default.getCursorPosition();
              let line = doc.getline(pos.line);
              if (pos.character >= line.length) {
                range2 = Range.create(pos.line, Math.max(0, line.length - 1), pos.line, line.length);
              } else {
                range2 = Range.create(pos.line, pos.character, pos.line, pos.character + 1);
              }
              session.addRange(range2);
              await nvim.command(`silent! call repeat#set("\\(coc-cursors-${kind})", -1)`);
            } else if (kind == "range") {
              await nvim.call("eval", 'feedkeys("\\", "in")');
              let range3 = await window_default.getSelectedRange(mode);
              if (range3) {
                let ranges = mode == "" ? getVisualRanges(doc, range3) : splitRange(doc, range3);
                for (let r2 of ranges) {
                  session.addRange(r2);
                }
              }
            } else {
              throw new Error(`select kind "${kind}" not supported`);
            }
            session.checkRanges();
          }
          createSession(doc) {
            let { bufnr } = doc;
            let session = this.getSession(bufnr);
            if (session) return session;
            session = new CursorSession(this.nvim, doc, this.config);
            this.sessionsMap.set(bufnr, session);
            session.onDidCancel(() => {
              session.dispose();
              this.sessionsMap.delete(bufnr);
            });
            return session;
          }
          // Add ranges to current document
          async addRanges(ranges) {
            let { nvim } = this;
            let bufnr = await nvim.call("bufnr", ["%"]);
            let doc = workspace_default.getAttachedDocument(bufnr);
            let session = this.createSession(doc);
            return session.addRanges(ranges);
          }
          reset() {
            for (let session of this.sessionsMap.values()) {
              session.cancel();
            }
            this.sessionsMap.clear();
          }
        };
      }
    });
    
    // src/tree/LocationsDataProvider.ts
    function addChildren(el, children, token) {
      if (!Array.isArray(children) || token && token.isCancellationRequested) return;
      children.forEach((item) => item.parent = el);
      el.children = children;
    }
    var LocationsDataProvider;
    var init_LocationsDataProvider = __esm({
      "src/tree/LocationsDataProvider.ts"() {
        "use strict";
        init_main();
        init_esm();
        init_commands();
        init_node();
        init_protocol();
        init_workspace();
        init_TreeItem();
        LocationsDataProvider = class _LocationsDataProvider {
          constructor(meta, winid, config, commandId, rootItems, getIcon, resolveChildren) {
            this.meta = meta;
            this.winid = winid;
            this.config = config;
            this.commandId = commandId;
            this.rootItems = rootItems;
            this.getIcon = getIcon;
            this.resolveChildren = resolveChildren;
            this.addAction("Open in new tab", async (element) => {
              await commands_default.executeCommand(this.commandId, winid, element, "tabe");
            });
            this.addAction("Dismiss", async (element) => {
              if (element.parent == null) {
                let els = this.rootItems.filter((o2) => o2 !== element);
                this.reset(els);
              } else {
                let parentElement = element.parent;
                let idx = parentElement.children.findIndex((o2) => o2 === element);
                parentElement.children.splice(idx, 1);
                this._onDidChangeTreeData.fire(parentElement);
              }
            });
          }
          meta;
          winid;
          config;
          commandId;
          rootItems;
          getIcon;
          resolveChildren;
          _onDidChangeTreeData = new import_node4.Emitter();
          onDidChangeTreeData = this._onDidChangeTreeData.event;
          tokenSource;
          actions = [];
          static rangesHighlight = "CocSelectedRange";
          cancel() {
            if (this.tokenSource) {
              this.tokenSource.cancel();
              this.tokenSource = void 0;
            }
          }
          reset(rootItems) {
            this.rootItems = rootItems;
            this._onDidChangeTreeData.fire(void 0);
          }
          addAction(title, handler) {
            this.actions.push({ title, handler });
          }
          async getChildren(element) {
            this.cancel();
            this.tokenSource = new import_node4.CancellationTokenSource();
            let { token } = this.tokenSource;
            if (!element) {
              for (let o2 of this.rootItems) {
                let children = await this.resolveChildren(o2, this.meta, token);
                addChildren(o2, children, token);
              }
              return this.rootItems;
            }
            if (element.children) return element.children;
            let items = await this.resolveChildren(element, this.meta, token);
            this.tokenSource = void 0;
            addChildren(element, items, token);
            return items;
          }
          getTreeItem(element) {
            let item = new TreeItem(element.name, element.children ? 2 /* Expanded */ : 1 /* Collapsed */);
            if (this.config.enableTooltip) {
              item.tooltip = path.relative(workspace_default.cwd, u.parse(element.uri).fsPath);
            }
            if (typeof element.detail === "string" && element.detail.length > 0 && element.name !== element.detail) {
              item.description = element.detail;
            }
            item.deprecated = element.tags?.includes(SymbolTag.Deprecated);
            item.icon = this.getIcon(element.kind);
            item.command = {
              command: this.commandId,
              title: "open location",
              arguments: [this.winid, element, this.config.openCommand]
            };
            return item;
          }
          resolveActions() {
            return this.actions;
          }
          dispose() {
            this.cancel();
            let win = workspace_default.nvim.createWindow(this.winid);
            win.clearMatchGroup(_LocationsDataProvider.rangesHighlight);
          }
        };
      }
    });
    
    // src/handler/callHierarchy.ts
    function toCallHierarchyItem(item) {
      return omit(item, ["children", "parent", "ranges", "sourceUri"]);
    }
    function isCallHierarchyItem(item) {
      if (item && typeof item.name === "string" && item.kind && Range.is(item.range)) return true;
      return false;
    }
    function getTitle(kind) {
      return `${kind.toUpperCase()} CALLS`;
    }
    var HIGHLIGHT_GROUP, CallHierarchyHandler;
    var init_callHierarchy2 = __esm({
      "src/handler/callHierarchy.ts"() {
        "use strict";
        init_main();
        init_commands();
        init_events();
        init_languages();
        init_LocationsDataProvider();
        init_TreeView();
        init_util();
        init_array();
        init_lodash();
        init_protocol();
        init_window();
        init_workspace();
        HIGHLIGHT_GROUP = "CocSelectedRange";
        CallHierarchyHandler = class _CallHierarchyHandler {
          constructor(nvim, handler) {
            this.nvim = nvim;
            this.handler = handler;
            this.loadConfiguration();
            workspace_default.onDidChangeConfiguration(this.loadConfiguration, this, this.disposables);
            this.disposables.push(commands_default.registerCommand(_CallHierarchyHandler.commandId, async (winid, item, openCommand) => {
              let { nvim: nvim2 } = this;
              await nvim2.call("win_gotoid", [winid]);
              await workspace_default.jumpTo(item.uri, item.selectionRange.start, openCommand);
              let win = await nvim2.window;
              win.clearMatchGroup(HIGHLIGHT_GROUP);
              win.highlightRanges(HIGHLIGHT_GROUP, [item.selectionRange], 10, true);
              if (isFalsyOrEmpty(item.ranges)) return;
              if (item.sourceUri) {
                let doc = workspace_default.getDocument(item.sourceUri);
                if (!doc) return;
                let winid2 = await nvim2.call("coc#compat#buf_win_id", [doc.bufnr]);
                if (winid2 == -1) return;
                if (winid2 != win.id) {
                  win = nvim2.createWindow(winid2);
                  win.clearMatchGroup(HIGHLIGHT_GROUP);
                }
              }
              win.highlightRanges(HIGHLIGHT_GROUP, item.ranges, 100, true);
              this.highlightWinids.add(win.id);
            }, null, true));
            events_default.on("BufWinEnter", (_2, winid) => {
              if (this.highlightWinids.has(winid)) {
                this.highlightWinids.delete(winid);
                let win = nvim.createWindow(winid);
                win.clearMatchGroup(HIGHLIGHT_GROUP);
              }
            }, null, this.disposables);
            commands_default.register({
              id: "document.showIncomingCalls",
              execute: async () => {
                await this.showCallHierarchyTree("incoming");
              }
            }, false, "show incoming calls in tree view.");
            commands_default.register({
              id: "document.showOutgoingCalls",
              execute: async () => {
                await this.showCallHierarchyTree("outgoing");
              }
            }, false, "show outgoing calls in tree view.");
          }
          nvim;
          handler;
          config;
          disposables = [];
          static commandId = "callHierarchy.reveal";
          highlightWinids = /* @__PURE__ */ new Set();
          loadConfiguration(e2) {
            if (!e2 || e2.affectsConfiguration("callHierarchy")) {
              let c2 = workspace_default.getConfiguration("callHierarchy", null);
              this.config = {
                splitCommand: c2.get("splitCommand"),
                openCommand: c2.get("openCommand"),
                enableTooltip: c2.get("enableTooltip")
              };
            }
          }
          createProvider(rootItems, doc, winid, kind) {
            let provider = new LocationsDataProvider(
              kind,
              winid,
              this.config,
              _CallHierarchyHandler.commandId,
              rootItems,
              (kind2) => this.handler.getIcon(kind2),
              (el, meta, token) => this.getChildren(doc, el, meta, token)
            );
            for (let kind2 of ["incoming", "outgoing"]) {
              let name2 = kind2 === "incoming" ? "Show Incoming Calls" /* Incoming */ : "Show Outgoing Calls" /* Outgoing */;
              provider.addAction(name2, (el) => {
                provider.meta = kind2;
                let rootItems2 = [toCallHierarchyItem(el)];
                provider.reset(rootItems2);
              });
            }
            return provider;
          }
          async getChildren(doc, item, kind, token) {
            let items = [];
            let callHierarchyItem = toCallHierarchyItem(item);
            if (kind == "incoming") {
              let res = await languages_default.provideIncomingCalls(doc, callHierarchyItem, token);
              if (res) items = res.map((o2) => Object.assign(o2.from, { ranges: o2.fromRanges }));
            } else {
              let res = await languages_default.provideOutgoingCalls(doc, callHierarchyItem, token);
              if (res) items = res.map((o2) => Object.assign(o2.to, { ranges: o2.fromRanges, sourceUri: item.uri }));
            }
            return items;
          }
          async prepare(doc, position, token) {
            this.handler.checkProvider("callHierarchy" /* CallHierarchy */, doc);
            const res = await languages_default.prepareCallHierarchy(doc, position, token);
            return isCallHierarchyItem(res) ? [res] : res;
          }
          async getCallHierarchyItems(item, kind) {
            const { doc, position } = await this.handler.getCurrentState();
            const source = new import_node4.CancellationTokenSource();
            if (!item) {
              await doc.synchronize();
              let res = await this.prepare(doc.textDocument, position, source.token);
              item = res ? res[0] : void 0;
              if (!res) throw new Error("Unable to getCallHierarchyItem at current position");
            }
            let method = kind == "incoming" ? "provideIncomingCalls" : "provideOutgoingCalls";
            return await languages_default[method](doc.textDocument, item, source.token);
          }
          async getIncoming(item) {
            return await this.getCallHierarchyItems(item, "incoming");
          }
          async getOutgoing(item) {
            return await this.getCallHierarchyItems(item, "outgoing");
          }
          async showCallHierarchyTree(kind) {
            const { doc, position, winid } = await this.handler.getCurrentState();
            await doc.synchronize();
            if (!languages_default.hasProvider("callHierarchy" /* CallHierarchy */, doc.textDocument)) {
              void window_default.showErrorMessage(`CallHierarchy provider not found for current document, it's not supported by your languageserver`);
              return;
            }
            const res = await languages_default.prepareCallHierarchy(doc.textDocument, position, import_node4.CancellationToken.None);
            const rootItems = isCallHierarchyItem(res) ? [res] : res;
            if (isFalsyOrEmpty(rootItems)) {
              void window_default.showWarningMessage("Unable to get CallHierarchyItem at cursor position.");
              return;
            }
            let provider = this.createProvider(rootItems, doc.textDocument, winid, kind);
            let treeView = new BasicTreeView("CALLS", { treeDataProvider: provider });
            treeView.title = getTitle(kind);
            provider.onDidChangeTreeData((e2) => {
              if (!e2) treeView.title = getTitle(provider.meta);
            });
            treeView.onDidChangeVisibility((e2) => {
              if (!e2.visible) provider.dispose();
            });
            this.disposables.push(treeView);
            await treeView.show(this.config.splitCommand);
          }
          dispose() {
            this.highlightWinids.clear();
            disposeAll(this.disposables);
          }
        };
      }
    });
    
    // src/handler/codeActions.ts
    function shouldAutoApply(only) {
      if (!only) return false;
      if (typeof only === "string" || only[0] === CodeActionKind.QuickFix || only[0] === CodeActionKind.SourceFixAll) {
        return workspace_default.initialConfiguration.get("coc.preferences.autoApplySingleQuickfix", true);
      }
      return false;
    }
    function isQuickfix(codeAction) {
      return codeAction.kind && codeAction.kind.startsWith("quickfix");
    }
    function toCodeActionText(action) {
      let text = action.title;
      let tooltip = action.command?.tooltip;
      if (tooltip) text = `${text} - ${tooltip}`;
      let kind = action.kind;
      if (kind && kind.length > 0 && this.codeActionsShowKind) {
        text = `${text} [${kind.split(".")[0]}]`;
      }
      return text.length > 80 ? `${text.slice(0, 77)}...` : text;
    }
    var logger60, CodeActions;
    var init_codeActions = __esm({
      "src/handler/codeActions.ts"() {
        "use strict";
        init_main();
        init_commands();
        init_manager();
        init_languages();
        init_logger();
        init_array();
        init_numbers();
        init_protocol();
        init_timing();
        init_window();
        init_workspace();
        logger60 = createLogger("handler-codeActions");
        CodeActions = class {
          constructor(nvim, handler) {
            this.nvim = nvim;
            this.handler = handler;
            handler.addDisposable(commands_default.registerCommand("editor.action.organizeImport", async () => {
              let succeed = await this.organizeImport();
              if (!succeed) void window_default.showWarningMessage(`Organize import action not found`);
            }));
            commands_default.titles.set("editor.action.organizeImport", "Run organize import code action, show warning when not exists");
            handler.addDisposable(commands_default.registerCommand("editor.action.executeCodeActions", async (doc, range2, actionKinds, timeout2) => {
              await this.executeCodeActions(doc, range2, actionKinds, timeout2);
            }, this, true));
          }
          nvim;
          handler;
          async executeCodeActions(doc, range2, actionKinds, timeout2) {
            let timing = createTiming("Execute code action", timeout2);
            let applied = [];
            for (const kind of actionKinds) {
              let codeActions = await this.getCodeActions(doc, range2, [kind]);
              let codeAction = codeActions.find((o2) => !o2.disabled);
              if (codeAction) {
                logger60.info(`Apply code action "${kind}" to buffer ${doc.bufnr}`);
                timing.start(`"${kind}"`);
                let tokenSource = new import_node4.CancellationTokenSource();
                let timer;
                let _resolve;
                const tp = new Promise((c2) => {
                  timer = setTimeout(() => {
                    logger60.warn(`Apply code action "${kind}" timeout after ${timeout2}ms`);
                    tokenSource.cancel();
                    c2(void 0);
                  }, timeout2);
                  _resolve = c2;
                });
                await Promise.race([tp, this.applyCodeAction(codeAction, tokenSource.token)]);
                if (!tokenSource.token.isCancellationRequested) {
                  applied.push(kind);
                }
                timing.stop();
                clearTimeout(timer);
                _resolve(void 0);
                tokenSource.dispose();
                await doc.synchronize();
              }
            }
            return applied;
          }
          async codeActionRange(start, end, only) {
            let { doc } = await this.handler.getCurrentState();
            await doc.synchronize();
            let line = doc.getline(end - 1);
            let range2 = Range.create(start - 1, 0, end - 1, line.length);
            let codeActions = await this.getCodeActions(doc, range2, only ? [only] : null);
            codeActions = codeActions.filter((o2) => !o2.disabled);
            if (!codeActions || codeActions.length == 0) {
              void window_default.showWarningMessage(`No${only ? " " + only : ""} code action available`);
              return;
            }
            let idx = await window_default.showMenuPicker(codeActions.map(toCodeActionText.bind(this)), "Choose action");
            let action = codeActions[idx];
            if (action) await this.applyCodeAction(action);
          }
          async organizeImport() {
            let { doc } = await this.handler.getCurrentState();
            await doc.synchronize();
            let actions = await this.getCodeActions(doc, void 0, [CodeActionKind.SourceOrganizeImports]);
            if (actions && actions.length) {
              await this.applyCodeAction(actions[0]);
              return true;
            }
            return false;
          }
          async getCodeActions(doc, range2, only) {
            let excludeSourceAction = range2 !== null && (!only || only.findIndex((o2) => o2.startsWith(CodeActionKind.Source)) == -1);
            range2 = range2 ?? Range.create(0, 0, doc.lineCount, 0);
            let diagnostics = manager_default.getDiagnosticsInRange(doc.textDocument, range2);
            let context = { diagnostics, triggerKind: CodeActionTriggerKind.Invoked };
            if (!isFalsyOrEmpty(only)) context.only = only;
            let tokenSource = new import_node4.CancellationTokenSource();
            let codeActions = await languages_default.getCodeActions(doc.textDocument, range2, context, tokenSource.token);
            if (!codeActions || codeActions.length == 0) return [];
            if (excludeSourceAction) {
              codeActions = codeActions.filter((o2) => !o2.kind || !o2.kind.startsWith(CodeActionKind.Source));
            }
            codeActions.sort((a2, b2) => {
              if (a2.disabled && !b2.disabled) return 1;
              if (b2.disabled && !a2.disabled) return -1;
              if (a2.isPreferred != b2.isPreferred) return boolToNumber(b2.isPreferred) - boolToNumber(a2.isPreferred);
              if (!only) {
                if (isQuickfix(a2) && !isQuickfix(b2)) return -1;
                if (isQuickfix(b2) && !isQuickfix(a2)) return 1;
              }
              return 0;
            });
            return codeActions;
          }
          get floatActions() {
            return workspace_default.initialConfiguration.get("coc.preferences.floatActions", true);
          }
          get codeActionsShowKind() {
            return workspace_default.initialConfiguration.get("coc.preferences.codeActionsShowKind", true);
          }
          async doCodeAction(mode, only, showDisable = false) {
            let { doc, position } = await this.handler.getCurrentState();
            let range2;
            if (mode) {
              range2 = await window_default.getSelectedRange(mode);
            } else {
              range2 = Range.create(position, position);
            }
            await doc.synchronize();
            let codeActions = await this.getCodeActions(doc, range2, Array.isArray(only) ? only : null);
            if (typeof only == "string") {
              codeActions = codeActions.filter((o2) => o2.title == only || o2.command && o2.command.title == only);
            } else if (Array.isArray(only)) {
              codeActions = codeActions.filter((o2) => only.some((k) => o2.kind && o2.kind.startsWith(k)));
            }
            if (!this.floatActions || !showDisable) codeActions = codeActions.filter((o2) => !o2.disabled);
            if (!codeActions || codeActions.length == 0) {
              void window_default.showWarningMessage(`No${only ? " " + only : ""} code action available`);
              return;
            }
            if (codeActions.length == 1 && !codeActions[0].disabled && shouldAutoApply(only)) {
              await this.applyCodeAction(codeActions[0]);
              return;
            }
            let idx = this.floatActions ? await window_default.showMenuPicker(
              codeActions.map((o2) => {
                return { text: toCodeActionText.call(this, o2), disabled: o2.disabled };
              }),
              "Choose action"
            ) : await window_default.requestInputList("Choose action by number", codeActions.map(toCodeActionText.bind(this)));
            let action = codeActions[idx];
            if (action) await this.applyCodeAction(action);
          }
          /**
           * Get current codeActions
           */
          async getCurrentCodeActions(mode, only) {
            let { doc } = await this.handler.getCurrentState();
            let range2;
            if (mode) range2 = await window_default.getSelectedRange(mode);
            let codeActions = await this.getCodeActions(doc, range2, only);
            return codeActions.filter((o2) => !o2.disabled);
          }
          /**
           * Invoke preferred quickfix at current position
           */
          async doQuickfix() {
            let actions = await this.getCurrentCodeActions("currline", [CodeActionKind.QuickFix]);
            if (!actions || actions.length == 0) {
              void window_default.showWarningMessage(`No quickfix action available`);
              return;
            }
            await this.applyCodeAction(actions[0]);
            this.nvim.command(`silent! call repeat#set("\\(coc-fix-current)", -1)`, true);
          }
          async applyCodeAction(action, token) {
            if (action.disabled) {
              throw new Error(`Action "${action.title}" is disabled: ${action.disabled.reason}`);
            }
            token = token == null ? import_node4.CancellationToken.None : token;
            let resolved = await languages_default.resolveCodeAction(action, token);
            if (!resolved || token.isCancellationRequested) return;
            let { edit: edit2, command } = resolved;
            if (edit2) await workspace_default.applyEdit(edit2);
            if (command) await commands_default.execute(command);
          }
        };
      }
    });
    
    // src/handler/codelens/buffer.ts
    function getTextAlign(position) {
      if (position == "top") return "above" /* Above */;
      if (position == "eol") return "after" /* After */;
      if (position === "right_align") return "right" /* Right */;
      return "above" /* Above */;
    }
    function getCommands(line, codeLenses) {
      if (!codeLenses?.length) return [];
      let commands = [];
      for (let codeLens of codeLenses) {
        let { range: range2, command } = codeLens;
        if (!isCommand(command)) continue;
        if (line == range2.start.line) {
          commands.push(command);
        }
      }
      return commands;
    }
    function getCommandText(command) {
      let text = command.title;
      if (command.tooltip) text = `${text} - ${command.tooltip}`;
      return text.length > 80 ? `${text.slice(0, 77)}...` : text;
    }
    var logger61, srcId, debounceTime7, CODELENS_HL, NORMAL_HL, CodeLensBuffer;
    var init_buffer3 = __esm({
      "src/handler/codelens/buffer.ts"() {
        "use strict";
        init_commands();
        init_languages();
        init_logger();
        init_util();
        init_array();
        init_errors();
        init_is();
        init_node();
        init_protocol();
        init_window();
        init_workspace();
        logger61 = createLogger("codelens-buffer");
        debounceTime7 = getConditionValue(200, 20);
        CODELENS_HL = "CocCodeLens";
        NORMAL_HL = "Normal";
        CodeLensBuffer = class {
          constructor(nvim, document2) {
            this.nvim = nvim;
            this.document = document2;
            this.resolveCodeLens = debounce2(() => {
              this._resolveCodeLenses().catch(onUnexpectedError);
            }, debounceTime7);
            this.debounceFetch = debounce2(() => {
              this.fetchCodeLenses().catch(onUnexpectedError);
            }, debounceTime7);
            if (this.hasProvider) this.debounceFetch();
          }
          nvim;
          document;
          codeLenses;
          tokenSource;
          resolveTokenSource;
          _config;
          resolveCodeLens;
          debounceFetch;
          get config() {
            if (this._config) return this._config;
            this.loadConfiguration();
            return this._config;
          }
          loadConfiguration() {
            let config = workspace_default.getConfiguration("codeLens", this.document);
            this._config = {
              enabled: config.get("enable", false),
              display: config.get("display", true),
              position: config.get("position", "top"),
              separator: config.get("separator", ""),
              subseparator: config.get("subseparator", " ")
            };
          }
          async toggleDisplay() {
            if (!this.hasProvider || !this.config.enabled) return;
            if (this.config.display) {
              this.config.display = false;
              this.clear();
            } else {
              this.config.display = true;
              this.resolveCodeLens.clear();
              await this._resolveCodeLenses();
            }
          }
          get bufnr() {
            return this.document.bufnr;
          }
          onChange(e2) {
            if (e2.contentChanges.length === 0 && this.codeLenses != null) {
              this.resolveCodeLens.clear();
              this._resolveCodeLenses().catch(onUnexpectedError);
            } else {
              this.cancel();
              this.debounceFetch();
            }
          }
          get currentCodeLens() {
            return this.codeLenses?.codeLenses;
          }
          get hasProvider() {
            return languages_default.hasProvider("codeLens" /* CodeLens */, this.document);
          }
          async forceFetch() {
            if (!this.config.enabled || !this.hasProvider) return;
            await this.document.synchronize();
            this.cancel();
            await this.fetchCodeLenses();
          }
          async fetchCodeLenses() {
            if (!this.hasProvider || !this.config.enabled) return;
            let noFetch = this.codeLenses?.version == this.document.version;
            if (!noFetch) {
              let empty = this.codeLenses == null;
              let { textDocument } = this.document;
              let version2 = textDocument.version;
              this.cancelFetch();
              let tokenSource = this.tokenSource = new import_node4.CancellationTokenSource();
              let token = tokenSource.token;
              if (!srcId) srcId = await this.nvim.createNamespace("coc-codelens");
              let codeLenses = await languages_default.getCodeLens(textDocument, token);
              if (token.isCancellationRequested) return;
              codeLenses = defaultValue(codeLenses, []);
              codeLenses = codeLenses.filter((o2) => o2 != null);
              if (isFalsyOrEmpty(codeLenses)) {
                this.clear();
                return;
              }
              this.codeLenses = { version: version2, codeLenses };
              if (empty) this.setVirtualText(codeLenses);
            }
            this.resolveCodeLens.clear();
            await this._resolveCodeLenses();
          }
          /**
           * Resolve visible codeLens
           */
          async _resolveCodeLenses() {
            if (!this.codeLenses || this.isChanged) return;
            let { codeLenses } = this.codeLenses;
            let [bufnr, start, end, total] = await this.nvim.eval(`[bufnr('%'),line('w0'),line('w$'),line('$')]`);
            if (this.isChanged || bufnr != this.bufnr) return;
            this.cancel();
            codeLenses = codeLenses.filter((o2) => {
              let lnum = o2.range.start.line + 1;
              return lnum >= start && lnum <= end;
            });
            if (codeLenses.length) {
              let tokenSource = this.resolveTokenSource = new import_node4.CancellationTokenSource();
              let token = tokenSource.token;
              await Promise.all(codeLenses.map((codeLens) => {
                if (isCommand(codeLens.command)) return Promise.resolve();
                codeLens.command = void 0;
                return languages_default.resolveCodeLens(codeLens, token);
              }));
              this.resolveTokenSource = void 0;
              if (token.isCancellationRequested || this.isChanged) return;
            }
            if (end == total) end = -1;
            this.nvim.pauseNotification();
            this.clear();
            this.setVirtualText(codeLenses);
            this.nvim.resumeNotification(true, true);
          }
          get isChanged() {
            if (!this.codeLenses || this.document.dirty) return true;
            let { version: version2 } = this.codeLenses;
            return this.document.textDocument.version !== version2;
          }
          /**
           * Attach resolved codeLens
           */
          setVirtualText(codeLenses) {
            let { document: document2 } = this;
            if (!srcId || !document2 || !codeLenses.length || !this.config.display) return;
            let top = this.config.position === "top";
            let list2 = /* @__PURE__ */ new Map();
            for (let codeLens of codeLenses) {
              let { line } = codeLens.range.start;
              let curr = list2.get(line) ?? [];
              curr.push(codeLens);
              list2.set(line, curr);
            }
            for (let lnum of list2.keys()) {
              let codeLenses2 = list2.get(lnum);
              let commands = codeLenses2.reduce((p2, c2) => {
                if (c2 && c2.command && c2.command.title) p2.push(c2.command.title.replace(/\s+/g, " "));
                return p2;
              }, []);
              let chunks = [];
              let len = commands.length;
              for (let i2 = 0; i2 < len; i2++) {
                let title = commands[i2];
                chunks.push([title, CODELENS_HL]);
                if (i2 != len - 1) {
                  chunks.push([this.config.subseparator, CODELENS_HL]);
                }
              }
              if (chunks.length > 0 && this.config.separator) {
                chunks.unshift([`${this.config.separator} `, CODELENS_HL]);
              }
              if (top && chunks.length == 0) {
                chunks.push([" ", NORMAL_HL]);
              }
              if (chunks.length > 0) {
                document2.buffer.setVirtualText(srcId, lnum, chunks, {
                  text_align: getTextAlign(this.config.position),
                  indent: true
                });
              }
            }
          }
          clear(start = 0, end = -1) {
            if (!srcId) return;
            let buf = this.nvim.createBuffer(this.bufnr);
            buf.clearNamespace(srcId, start, end);
          }
          async doAction(line) {
            let commands = getCommands(line, this.codeLenses?.codeLenses);
            if (commands.length == 1) {
              await commands_default.execute(commands[0]);
            } else if (commands.length > 1) {
              let res = await window_default.showMenuPicker(commands.map(getCommandText));
              if (res != -1) await commands_default.execute(commands[res]);
            }
          }
          cancelFetch() {
            this.debounceFetch.clear();
            if (this.tokenSource) {
              this.tokenSource.cancel();
              this.tokenSource = null;
            }
          }
          cancelResolve() {
            if (this.resolveTokenSource) {
              this.resolveTokenSource.cancel();
              this.resolveTokenSource = null;
            }
          }
          cancel() {
            this.resolveCodeLens.clear();
            this.cancelResolve();
            this.cancelFetch();
          }
          abandonResult() {
            this.codeLenses = void 0;
          }
          dispose() {
            this.cancel();
            this.codeLenses = void 0;
          }
        };
      }
    });
    
    // src/handler/codelens/index.ts
    var debounceTime8, CodeLensManager2;
    var init_codelens = __esm({
      "src/handler/codelens/index.ts"() {
        "use strict";
        init_node();
        init_commands();
        init_events();
        init_languages();
        init_util();
        init_protocol();
        init_window();
        init_workspace();
        init_buffer3();
        debounceTime8 = getConditionValue(200, 0);
        CodeLensManager2 = class {
          constructor(nvim) {
            this.nvim = nvim;
            workspace_default.onDidChangeConfiguration((e2) => {
              if (e2.affectsConfiguration("codeLens")) {
                for (let item of this.buffers.items) {
                  item.loadConfiguration();
                }
              }
            }, this, this.disposables);
            this.buffers = workspace_default.registerBufferSync((doc) => {
              if (doc.buftype != "") return void 0;
              return new CodeLensBuffer(nvim, doc);
            });
            this.disposables.push(this.buffers);
            events_default.on("CursorHold", async (bufnr) => {
              let item = this.buffers.getItem(bufnr);
              if (item && item.config.enabled && !item.currentCodeLens) await item.forceFetch();
            }, null, this.disposables);
            events_default.on("CursorMoved", (bufnr) => {
              let buf = this.buffers.getItem(bufnr);
              if (buf) buf.resolveCodeLens();
            }, null, this.disposables);
            let debounced = debounce2(async (selector) => {
              for (let item of this.buffers.items) {
                if (!workspace_default.match(selector, item.document)) continue;
                item.abandonResult();
                await item.forceFetch();
              }
            }, debounceTime8);
            this.disposables.push(import_node4.Disposable.create(() => {
              debounced.clear();
            }));
            languages_default.onDidCodeLensRefresh(debounced, null, this.disposables);
            commands_default.register({
              id: "document.toggleCodeLens",
              execute: () => {
                return this.toggle(workspace_default.bufnr);
              }
            }, false, "toggle codeLens display of current buffer");
          }
          nvim;
          disposables = [];
          buffers;
          async toggle(bufnr) {
            let item = this.buffers.getItem(bufnr);
            try {
              workspace_default.getAttachedDocument(bufnr);
              await item.toggleDisplay();
            } catch (e2) {
              void window_default.showErrorMessage(e2.message);
            }
          }
          /**
           * Check provider for buf that not fetched
           */
          async checkProvider() {
            for (let buf of this.buffers.items) {
              await buf.forceFetch();
            }
          }
          async doAction() {
            let [bufnr, line] = await this.nvim.eval(`[bufnr("%"),line(".")-1]`);
            let buf = this.buffers.getItem(bufnr);
            if (buf) await buf.doAction(line);
          }
          dispose() {
            disposeAll(this.disposables);
          }
        };
      }
    });
    
    // src/util/color.ts
    function pad(str) {
      return str.length == 1 ? `0${str}` : str;
    }
    function toHexString(color) {
      let c2 = toHexColor(color);
      return `${pad(c2.red.toString(16))}${pad(c2.green.toString(16))}${pad(c2.blue.toString(16))}`;
    }
    function toHexColor(color) {
      let { red, green, blue: blue2 } = color;
      return {
        red: Math.round(red * 255),
        green: Math.round(green * 255),
        blue: Math.round(blue2 * 255)
      };
    }
    function isDark(color) {
      let rgb = [color.red, color.green, color.blue];
      let lum = [];
      for (let i2 = 0; i2 < rgb.length; i2++) {
        let chan = rgb[i2];
        lum[i2] = chan <= 0.03928 ? chan / 12.92 : Math.pow((chan + 0.055) / 1.055, 2.4);
      }
      let luma = 0.2126 * lum[0] + 0.7152 * lum[1] + 0.0722 * lum[2];
      return luma <= 0.5;
    }
    var init_color = __esm({
      "src/util/color.ts"() {
        "use strict";
      }
    });
    
    // src/handler/colors/colorBuffer.ts
    function getHighlightGroup2(color) {
      return `BG${toHexString(color)}`;
    }
    var NAMESPACE2, debounceTime9, ColorBuffer;
    var init_colorBuffer = __esm({
      "src/handler/colors/colorBuffer.ts"() {
        "use strict";
        init_languages();
        init_util();
        init_color();
        init_is();
        init_node();
        init_position();
        init_protocol();
        init_window();
        init_workspace();
        NAMESPACE2 = "color";
        debounceTime9 = getConditionValue(200, 10);
        ColorBuffer = class {
          // last highlight version
          constructor(nvim, doc, config, usedColors) {
            this.nvim = nvim;
            this.doc = doc;
            this.config = config;
            this.usedColors = usedColors;
            this.highlight = debounce2(() => {
              void this.doHighlight();
            }, debounceTime9);
            if (this.hasProvider) this.highlight();
          }
          nvim;
          doc;
          config;
          usedColors;
          _colors = [];
          tokenSource;
          highlight;
          _enable;
          get enable() {
            if (boolean(this._enable)) return this._enable;
            this._enable = workspace_default.getConfiguration("colors", this.doc).get("enable", false);
            return this._enable;
          }
          updateDocumentConfig() {
            let enable = this.enabled;
            this._enable = workspace_default.getConfiguration("colors", this.doc).get("enable", false);
            if (enable != this.enabled) {
              if (enable) {
                this.clearHighlight();
              } else {
                void this.doHighlight();
              }
            }
          }
          toggle() {
            if (this._enable) {
              this._enable = false;
              this.clearHighlight();
            } else {
              this._enable = true;
              void this.doHighlight();
            }
          }
          get hasProvider() {
            return languages_default.hasProvider("documentColor" /* DocumentColor */, this.doc);
          }
          get enabled() {
            let { filetypes } = this.config;
            let { filetype } = this.doc;
            if (!this.hasProvider) return false;
            if (Array.isArray(filetypes) && (filetypes.includes("*") || filetypes.includes(filetype))) return true;
            return this.enable;
          }
          onChange() {
            this.cancel();
            this.highlight();
          }
          get buffer() {
            return this.doc.buffer;
          }
          get colors() {
            return this._colors;
          }
          hasColor() {
            return this._colors.length > 0;
          }
          async doHighlight() {
            if (!this.enabled) return;
            let { nvim, doc } = this;
            this.tokenSource = new import_node4.CancellationTokenSource();
            let { token } = this.tokenSource;
            let colors;
            colors = await languages_default.provideDocumentColors(doc.textDocument, token);
            if (token.isCancellationRequested) return;
            colors = colors || [];
            colors.sort((a2, b2) => comparePosition(a2.range.start, b2.range.start));
            this._colors = colors;
            let items = [];
            colors.forEach((o2) => {
              let hlGroup = getHighlightGroup2(o2.color);
              doc.addHighlights(items, hlGroup, o2.range, { combine: false });
            });
            let diff = await window_default.diffHighlights(doc.bufnr, NAMESPACE2, items);
            if (token.isCancellationRequested || !diff) return;
            nvim.pauseNotification();
            this.defineColors(colors);
            nvim.resumeNotification(false, true);
            await window_default.applyDiffHighlights(doc.bufnr, NAMESPACE2, this.config.highlightPriority, diff, true);
          }
          defineColors(colors) {
            for (let color of colors) {
              let hex = toHexString(color.color);
              if (!this.usedColors.has(hex)) {
                this.nvim.command(`hi BG${hex} guibg=#${hex} guifg=#${isDark(color.color) ? "ffffff" : "000000"}`, true);
                this.usedColors.add(hex);
              }
            }
          }
          hasColorAtPosition(position) {
            return this.colors.some((o2) => positionInRange(position, o2.range) == 0);
          }
          clearHighlight() {
            this.highlight.clear();
            this._colors = [];
            this.buffer.clearNamespace("color");
          }
          cancel() {
            if (this.tokenSource) {
              this.tokenSource.cancel();
              this.tokenSource = null;
            }
          }
          dispose() {
            this._colors = [];
            this.highlight.clear();
            this.cancel();
          }
        };
      }
    });
    
    // src/handler/colors/index.ts
    var Colors;
    var init_colors = __esm({
      "src/handler/colors/index.ts"() {
        "use strict";
        init_commands();
        init_events();
        init_languages();
        init_util();
        init_color();
        init_protocol();
        init_window();
        init_workspace();
        init_colorBuffer();
        Colors = class {
          constructor(nvim, handler) {
            this.nvim = nvim;
            this.handler = handler;
            this.loadConfiguration();
            workspace_default.onDidChangeConfiguration(this.loadConfiguration, this, this.disposables);
            let usedColors = /* @__PURE__ */ new Set();
            this.highlighters = workspace_default.registerBufferSync((doc) => {
              return new ColorBuffer(this.nvim, doc, this.config, usedColors);
            });
            events_default.on("ColorScheme", () => {
              usedColors.clear();
              for (let item of this.highlighters.items) {
                item.cancel();
                void item.doHighlight();
              }
            }, null, this.disposables);
            languages_default.onDidColorsRefresh((selector) => {
              for (let item of this.highlighters.items) {
                if (workspace_default.match(selector, item.doc)) {
                  item.highlight();
                }
              }
            });
            commands_default.register({
              id: "editor.action.pickColor",
              execute: async () => {
                await this.pickColor();
              }
            }, false, "pick color from system color picker when possible.");
            commands_default.register({
              id: "editor.action.colorPresentation",
              execute: async () => {
                await this.pickPresentation();
              }
            }, false, "change color presentation.");
            commands_default.register({
              id: "document.toggleColors",
              execute: async () => {
                let bufnr = await nvim.call("bufnr", ["%"]);
                let item = this.highlighters.getItem(bufnr);
                workspace_default.getAttachedDocument(bufnr);
                item.toggle();
              }
            }, false, "toggle colors for current buffer");
          }
          nvim;
          handler;
          config;
          disposables = [];
          highlighters;
          loadConfiguration(e2) {
            if (!e2 || e2.affectsConfiguration("colors")) {
              let c2 = workspace_default.initialConfiguration.get("colors");
              this.config = Object.assign(this.config ?? {}, {
                filetypes: c2.filetypes,
                highlightPriority: defaultValue(c2.highlightPriority, 1e3)
              });
              if (e2) {
                for (let item of this.highlighters.items) {
                  item.updateDocumentConfig();
                }
              }
            }
          }
          async pickPresentation() {
            let { doc } = await this.handler.getCurrentState();
            this.handler.checkProvider("documentColor" /* DocumentColor */, doc.textDocument);
            let info = await this.getColorInformation(doc.bufnr);
            if (!info) return void window_default.showWarningMessage("Color not found at current position");
            let tokenSource = new import_node4.CancellationTokenSource();
            let presentations = await languages_default.provideColorPresentations(info, doc.textDocument, tokenSource.token);
            if (!presentations?.length) return void window_default.showWarningMessage("No color presentations found");
            let res = await window_default.showMenuPicker(presentations.map((o2) => o2.label), "Choose color:");
            if (res == -1) return;
            let presentation = presentations[res];
            let { textEdit, additionalTextEdits, label } = presentation;
            if (!textEdit) textEdit = { range: info.range, newText: label };
            await doc.applyEdits([textEdit]);
            if (additionalTextEdits) await doc.applyEdits(additionalTextEdits);
          }
          async pickColor() {
            let { doc } = await this.handler.getCurrentState();
            this.handler.checkProvider("documentColor" /* DocumentColor */, doc.textDocument);
            let info = await this.getColorInformation(doc.bufnr);
            if (!info) return void window_default.showWarningMessage("Color not found at current position");
            let { color } = info;
            let colorArr = [(color.red * 255).toFixed(0), (color.green * 255).toFixed(0), (color.blue * 255).toFixed(0)];
            let res = await this.nvim.call("coc#color#pick_color", [colorArr]);
            if (!res) return;
            let hex = toHexString({
              red: res[0] / 65535,
              green: res[1] / 65535,
              blue: res[2] / 65535,
              alpha: 1
            });
            await doc.applyEdits([{
              range: info.range,
              newText: `#${hex}`
            }]);
          }
          isEnabled(bufnr) {
            let highlighter = this.highlighters.getItem(bufnr);
            return highlighter != null && highlighter.enabled === true;
          }
          clearHighlight(bufnr) {
            let highlighter = this.highlighters.getItem(bufnr);
            if (highlighter) highlighter.clearHighlight();
          }
          hasColor(bufnr) {
            let highlighter = this.highlighters.getItem(bufnr);
            if (!highlighter) return false;
            return highlighter.hasColor();
          }
          hasColorAtPosition(bufnr, position) {
            let highlighter = this.highlighters.getItem(bufnr);
            if (!highlighter) return false;
            return highlighter.hasColorAtPosition(position);
          }
          highlightAll() {
            for (let buf of this.highlighters.items) {
              buf.highlight();
            }
          }
          async doHighlight(bufnr) {
            let highlighter = this.highlighters.getItem(bufnr);
            if (highlighter) await highlighter.doHighlight();
          }
          async getColorInformation(bufnr) {
            let highlighter = this.highlighters.getItem(bufnr);
            if (!highlighter) return null;
            let position = await window_default.getCursorPosition();
            for (let info of highlighter.colors) {
              let { range: range2 } = info;
              let { start, end } = range2;
              if (position.line == start.line && position.character >= start.character && position.character <= end.character) {
                return info;
              }
            }
            return null;
          }
          dispose() {
            this.highlighters.dispose();
            disposeAll(this.disposables);
          }
        };
      }
    });
    
    // src/handler/commands.ts
    function validCommand(command) {
      return command && string(command.id) && string(command.cmd) && command.id.length > 0 && command.cmd.length > 0;
    }
    var Commands;
    var init_commands3 = __esm({
      "src/handler/commands.ts"() {
        "use strict";
        init_commands();
        init_manager4();
        init_workspace();
        init_is();
        Commands = class {
          constructor(nvim) {
            this.nvim = nvim;
            for (let item of workspace_default.env.vimCommands) {
              this.addVimCommand(item);
            }
          }
          nvim;
          addVimCommand(cmd) {
            if (!validCommand(cmd)) return;
            let id2 = `vim.${cmd.id}`;
            commands_default.registerCommand(id2, () => {
              this.nvim.command(cmd.cmd, true);
              this.nvim.redrawVim();
            });
            if (cmd.title) commands_default.titles.set(id2, cmd.title);
          }
          getCommandList() {
            return commands_default.commandList.map((o2) => o2.id);
          }
          async repeat() {
            await commands_default.repeatCommand();
          }
          async runCommand(id2, ...args) {
            if (id2) return await commands_default.fireCommand(id2, ...args);
            await manager_default3.start(["commands"]);
          }
        };
      }
    });
    
    // src/handler/fold.ts
    var FoldHandler;
    var init_fold = __esm({
      "src/handler/fold.ts"() {
        "use strict";
        init_languages();
        FoldHandler = class {
          constructor(nvim, handler) {
            this.nvim = nvim;
            this.handler = handler;
          }
          nvim;
          handler;
          async fold(kind) {
            let { doc, winid } = await this.handler.getCurrentState();
            this.handler.checkProvider("foldingRange" /* FoldingRange */, doc.textDocument);
            await doc.synchronize();
            let win = this.nvim.createWindow(winid);
            let foldlevel = await this.nvim.eval("&foldlevel");
            let ranges = await this.handler.withRequestToken("foldingrange", (token) => {
              return languages_default.provideFoldingRanges(doc.textDocument, {}, token);
            }, true);
            if (!ranges || !ranges.length) return false;
            if (kind) ranges = ranges.filter((o2) => o2.kind == kind);
            ranges.sort((a2, b2) => b2.startLine - a2.startLine);
            this.nvim.pauseNotification();
            win.setOption("foldmethod", "manual", true);
            this.nvim.command("normal! zE", true);
            for (let range2 of ranges) {
              let { startLine, endLine } = range2;
              let cmd = `${startLine + 1}, ${endLine + 1}fold`;
              this.nvim.command(cmd, true);
            }
            win.setOption("foldenable", true, true);
            win.setOption("foldlevel", foldlevel, true);
            await this.nvim.resumeNotification(true);
            return true;
          }
        };
      }
    });
    
    // src/handler/format.ts
    var logger62, FormatHandler;
    var init_format2 = __esm({
      "src/handler/format.ts"() {
        "use strict";
        init_main();
        init_commands();
        init_events();
        init_languages();
        init_logger();
        init_array();
        init_util();
        init_string();
        init_window();
        init_workspace();
        logger62 = createLogger("handler-format");
        FormatHandler = class {
          constructor(nvim, handler) {
            this.nvim = nvim;
            this.handler = handler;
            this.setConfiguration();
            handler.addDisposable(workspace_default.onDidChangeConfiguration(this.setConfiguration, this));
            handler.addDisposable(window_default.onDidChangeActiveTextEditor(() => {
              this.setConfiguration();
            }));
            handler.addDisposable(events_default.on("Enter", async (bufnr) => {
              let res = await events_default.race(["CursorMovedI"], 100);
              if (res.args && res.args[0] === bufnr) {
                await this.handleEnter(bufnr);
              }
            }));
            handler.addDisposable(events_default.on("TextInsert", async (bufnr, _info, character) => {
              let doc = workspace_default.getDocument(bufnr);
              if (!events_default.completing && doc && doc.attached) await this.tryFormatOnType(character, doc);
            }));
            handler.addDisposable(commands_default.registerCommand("editor.action.formatDocument", async (uri) => {
              let doc;
              if (uri) {
                doc = workspace_default.getAttachedDocument(uri);
              } else {
                let buf = await nvim.buffer;
                doc = workspace_default.getAttachedDocument(buf.id);
              }
              await this.documentFormat(doc);
            }));
            commands_default.titles.set("editor.action.formatDocument", "Format Document");
          }
          nvim;
          handler;
          preferences;
          setConfiguration(e2) {
            if (!e2 || e2.affectsConfiguration("coc.preferences")) {
              let doc = window_default.activeTextEditor?.document;
              let config = workspace_default.getConfiguration("coc.preferences", doc);
              this.preferences = {
                formatOnType: config.get("formatOnType", false),
                formatOnTypeFiletypes: config.get("formatOnTypeFiletypes", null),
                bracketEnterImprove: config.get("bracketEnterImprove", true)
              };
            }
          }
          shouldFormatOnType(filetype) {
            const filetypes = this.preferences.formatOnTypeFiletypes;
            return isFalsyOrEmpty(filetypes) || filetypes.includes(filetype) || filetypes.includes("*");
          }
          async tryFormatOnType(ch, doc) {
            if (doc.getVar("disable_autoformat", 0)) return false;
            if (!this.preferences.formatOnType) return false;
            if (!ch || isAlphabet(ch.charCodeAt(0))) return false;
            if (!this.shouldFormatOnType(doc.filetype)) return false;
            if (!languages_default.hasProvider("formatOnType" /* FormatOnType */, doc.textDocument)) {
              logger62.warn(`Format on type provider not found for buffer: ${doc.uri}`);
              return false;
            }
            if (!languages_default.canFormatOnType(ch, doc.textDocument)) return false;
            let position;
            let edits = await this.handler.withRequestToken("Format on type", async (token) => {
              position = await window_default.getCursorPosition();
              await doc.synchronize();
              return await languages_default.provideDocumentOnTypeEdits(ch, doc.textDocument, position, token);
            });
            if (edits == null || events_default.completing) return false;
            if (edits.length === 0) return true;
            await doc.applyEdits(edits, false, true);
            this.logProvider(doc.bufnr, edits);
            return true;
          }
          async formatCurrentBuffer() {
            let { doc } = await this.handler.getCurrentState();
            return await this.documentFormat(doc);
          }
          async formatCurrentRange(mode) {
            let { doc } = await this.handler.getCurrentState();
            return await this.documentRangeFormat(doc, mode);
          }
          async documentFormat(doc) {
            await doc.synchronize();
            if (!languages_default.hasFormatProvider(doc.textDocument)) {
              throw new Error(`Format provider not found for buffer: ${doc.bufnr}`);
            }
            let options3 = await workspace_default.getFormatOptions(doc.uri);
            let textEdits = await this.handler.withRequestToken("format", (token) => {
              return languages_default.provideDocumentFormattingEdits(doc.textDocument, options3, token);
            });
            if (textEdits && textEdits.length > 0) {
              await doc.applyEdits(textEdits, false, true);
              this.logProvider(doc.bufnr, textEdits);
              return true;
            }
            return false;
          }
          async handleEnter(bufnr) {
            let { nvim } = this;
            let { bracketEnterImprove } = this.preferences;
            let doc = workspace_default.getDocument(bufnr);
            if (!doc || !doc.attached) return;
            await this.tryFormatOnType("\n", doc);
            if (bracketEnterImprove) {
              let line = await nvim.call("line", ".") - 1;
              await doc.patchChange();
              let pre = doc.getline(line - 1);
              let curr = doc.getline(line);
              let firstLine = doc.getline(0);
              let prevChar = pre[pre.length - 1];
              if (prevChar && pariedCharacters.has(prevChar)) {
                let nextChar = curr.trim()[0];
                if (nextChar && pariedCharacters.get(prevChar) == nextChar) {
                  let edits = [];
                  let pos = Position.create(line - 1, pre.length);
                  let opts = await workspace_default.getFormatOptions(doc.uri);
                  let space = opts.insertSpaces ? " ".repeat(opts.tabSize) : "	";
                  let preIndent = pre.match(/^\s*/)[0];
                  let currIndent = curr.match(/^\s*/)[0];
                  let newText = "\n" + preIndent + space;
                  if (doc.filetype == "vim" && !firstLine.startsWith("vim9script")) {
                    edits.push({ range: Range.create(line, currIndent.length, line, currIndent.length), newText: "  \\ " });
                    newText = "\n" + currIndent + space + "\\ ";
                  }
                  edits.push({ range: Range.create(pos, pos), newText });
                  await doc.applyEdits(edits, true);
                  await window_default.moveTo(Position.create(line, newText.length - 1));
                }
              }
            }
          }
          logProvider(bufnr, edits) {
            if (!Array.isArray(edits) || edits.length === 0) return;
            let extensionName = edits["__extensionName"];
            if (extensionName) logger62.info(`Format buffer ${bufnr} by ${extensionName}`);
          }
          async documentRangeFormat(doc, mode) {
            this.handler.checkProvider("formatRange" /* FormatRange */, doc.textDocument);
            await doc.synchronize();
            let range2;
            if (mode) {
              range2 = await window_default.getSelectedRange(mode);
              if (!range2) return -1;
            } else {
              let [lnum, count, mode2] = await this.nvim.eval("[v:lnum,v:count,mode()]");
              if (count == 0 || mode2 == "i" || mode2 == "R") return -1;
              range2 = Range.create(lnum - 1, 0, lnum - 1 + count, 0);
            }
            let options3 = await workspace_default.getFormatOptions(doc.uri);
            let textEdits = await this.handler.withRequestToken("Format range", (token) => {
              return languages_default.provideDocumentRangeFormattingEdits(doc.textDocument, range2, options3, token);
            });
            if (!isFalsyOrEmpty(textEdits)) {
              await doc.applyEdits(textEdits, false, true);
              this.logProvider(doc.bufnr, textEdits);
              return 0;
            }
            return -1;
          }
        };
      }
    });
    
    // src/handler/highlights.ts
    var Highlights2;
    var init_highlights2 = __esm({
      "src/handler/highlights.ts"() {
        "use strict";
        init_main();
        init_commands();
        init_events();
        init_languages();
        init_util();
        init_position();
        init_protocol();
        init_window();
        init_workspace();
        Highlights2 = class {
          constructor(nvim, handler) {
            this.nvim = nvim;
            this.handler = handler;
            events_default.on(["CursorMoved", "CursorMovedI"], () => {
              this.cancel();
              this.clearHighlights();
            }, null, this.disposables);
            this.loadConfiguration();
            workspace_default.onDidChangeConfiguration(this.loadConfiguration, this, this.disposables);
            window_default.onDidChangeActiveTextEditor(() => {
              this.loadConfiguration();
            }, null, this.disposables);
            commands_default.register({
              id: "document.jumpToNextSymbol",
              execute: async () => {
                await this.jumpSymbol("next");
              }
            }, false, "Jump to next symbol highlight position.");
            commands_default.register({
              id: "document.jumpToPrevSymbol",
              execute: async () => {
                await this.jumpSymbol("previous");
              }
            }, false, "Jump to previous symbol highlight position.");
          }
          nvim;
          handler;
          config;
          disposables = [];
          tokenSource;
          highlights = /* @__PURE__ */ new Map();
          timer;
          loadConfiguration(e2) {
            let config = workspace_default.getConfiguration("documentHighlight", this.handler.uri);
            if (!e2 || e2.affectsConfiguration("documentHighlight")) {
              this.config = Object.assign(this.config || {}, {
                limit: config.get("limit", 200),
                priority: config.get("priority", -1),
                timeout: config.get("timeout", 300)
              });
            }
          }
          isEnabled(bufnr, cursors) {
            let doc = workspace_default.getDocument(bufnr);
            if (!doc || !doc.attached || cursors) return false;
            if (!languages_default.hasProvider("documentHighlight" /* DocumentHighlight */, doc.textDocument)) return false;
            return true;
          }
          clearHighlights() {
            if (this.highlights.size == 0) return;
            for (let winid of this.highlights.keys()) {
              let win = this.nvim.createWindow(winid);
              win.clearMatchGroup("^CocHighlight");
            }
            this.highlights.clear();
          }
          async highlight() {
            let { nvim } = this;
            this.cancel();
            let [bufnr, winid, pos, cursors] = await nvim.eval(`[bufnr("%"),win_getid(),coc#cursor#position(),get(b:,'coc_cursors_activated',0)]`);
            if (!this.isEnabled(bufnr, cursors)) return;
            let doc = workspace_default.getDocument(bufnr);
            let highlights = await this.getHighlights(doc, Position.create(pos[0], pos[1]));
            if (!highlights) return;
            let groups = {};
            for (let hl of highlights) {
              if (!Range.is(hl.range)) continue;
              let hlGroup = hl.kind == DocumentHighlightKind.Text ? "CocHighlightText" : hl.kind == DocumentHighlightKind.Read ? "CocHighlightRead" : "CocHighlightWrite";
              groups[hlGroup] = groups[hlGroup] || [];
              groups[hlGroup].push(hl.range);
            }
            let win = nvim.createWindow(winid);
            nvim.pauseNotification();
            win.clearMatchGroup("^CocHighlight");
            for (let [hlGroup, ranges] of Object.entries(groups)) {
              win.highlightRanges(hlGroup, ranges, -1, true);
            }
            nvim.resumeNotification(true, true);
            this.highlights.set(winid, highlights);
          }
          async jumpSymbol(direction) {
            let ranges = await this.getSymbolsRanges();
            if (!ranges) return;
            let pos = await window_default.getCursorPosition();
            if (direction == "next") {
              for (let i2 = 0; i2 <= ranges.length - 1; i2++) {
                if (comparePosition(ranges[i2].start, pos) > 0) {
                  await window_default.moveTo(ranges[i2].start);
                  return;
                }
              }
              await window_default.moveTo(ranges[0].start);
            } else {
              for (let i2 = ranges.length - 1; i2 >= 0; i2--) {
                if (comparePosition(ranges[i2].end, pos) < 0) {
                  await window_default.moveTo(ranges[i2].start);
                  return;
                }
              }
              await window_default.moveTo(ranges[ranges.length - 1].start);
            }
          }
          async getSymbolsRanges() {
            let { doc, position } = await this.handler.getCurrentState();
            this.handler.checkProvider("documentHighlight" /* DocumentHighlight */, doc.textDocument);
            let highlights = await this.getHighlights(doc, position);
            if (!highlights) return null;
            return highlights.filter((o2) => Range.is(o2.range)).map((o2) => o2.range).sort((a2, b2) => {
              return compareRangesUsingStarts(a2, b2);
            });
          }
          hasHighlights(winid) {
            return this.highlights.get(winid) != null;
          }
          async getHighlights(doc, position) {
            let line = doc.getline(position.line);
            let ch = line[position.character];
            if (!ch || !doc.isWord(ch)) return null;
            await doc.synchronize();
            this.cancel();
            let source = this.tokenSource = new import_node4.CancellationTokenSource();
            let timer = this.timer = setTimeout(() => {
              source.cancel();
            }, this.config.timeout);
            let highlights = await languages_default.getDocumentHighLight(doc.textDocument, position, source.token);
            clearTimeout(timer);
            if (source.token.isCancellationRequested) return null;
            return highlights;
          }
          cancel() {
            if (this.tokenSource) {
              this.tokenSource.cancel();
              this.tokenSource.dispose();
              this.tokenSource = null;
            }
          }
          dispose() {
            if (this.timer) clearTimeout(this.timer);
            this.cancel();
            this.highlights.clear();
            disposeAll(this.disposables);
          }
        };
      }
    });
    
    // src/handler/hover.ts
    async function addDefinitions(hovers, definitions, filetype) {
      for (const def of definitions) {
        if (!def?.targetRange) continue;
        const { start, end } = def.targetRange;
        const endLine = end.line - start.line >= 100 ? start.line + 100 : end.character == 0 ? end.line - 1 : end.line;
        let lines = await readLines(def.targetUri, start.line, endLine);
        if (lines.length) {
          let indent = lines[0].match(/^\s*/)[0];
          if (indent) lines = lines.map((l2) => l2.startsWith(indent) ? l2.substring(indent.length) : l2);
          hovers.push({ content: lines.join("\n"), filetype });
        }
      }
    }
    function addDocument(docs, text, filetype, isPreview = false) {
      let content = text.trim();
      if (!content.length) return;
      if (isPreview && filetype !== "markdown") {
        content = "``` " + filetype + "\n" + content + "\n```";
      }
      docs.push({ content, filetype });
    }
    function isDocumentation(obj) {
      if (!obj) return false;
      return typeof obj.filetype === "string" && typeof obj.content === "string";
    }
    async function readLines(uri, start, end) {
      let doc = workspace_default.getDocument(uri);
      if (doc) return doc.getLines(start, end + 1);
      let fsPath2 = u.parse(uri).fsPath;
      if (!fs.existsSync(fsPath2)) return [];
      return await readFileLines(fsPath2, start, end);
    }
    var highlightDelay, HoverHandler;
    var init_hover2 = __esm({
      "src/handler/hover.ts"() {
        "use strict";
        init_main();
        init_esm();
        init_languages();
        init_util();
        init_array();
        init_fs();
        init_is();
        init_node();
        init_protocol();
        init_string();
        init_window();
        init_workspace();
        highlightDelay = getConditionValue(500, 10);
        HoverHandler = class {
          constructor(nvim, handler) {
            this.nvim = nvim;
            this.handler = handler;
            this.loadConfiguration();
            workspace_default.onDidChangeConfiguration(this.loadConfiguration, this, this.disposables);
            this.hoverFactory = window_default.createFloatFactory({
              modes: ["n"],
              autoHide: this.config.autoHide
            });
            this.disposables.push(this.hoverFactory);
            window_default.onDidChangeActiveTextEditor(() => {
              this.loadConfiguration();
            }, null, this.disposables);
          }
          nvim;
          handler;
          hoverFactory;
          disposables = [];
          documentLines = [];
          config;
          timer;
          hasProvider = false;
          registerProvider() {
            if (this.hasProvider) return;
            this.hasProvider = true;
            let { nvim } = this;
            let provider = {
              onDidChange: null,
              provideTextDocumentContent: async () => {
                nvim.pauseNotification();
                nvim.command("setlocal conceallevel=2 nospell nofoldenable wrap", true);
                nvim.command("setlocal bufhidden=wipe nobuflisted", true);
                nvim.command("setfiletype markdown", true);
                nvim.command(`if winnr('j') != winnr('k') | exe "normal! z${Math.min(this.documentLines.length, this.config.previewMaxHeight)}\\" | endif`, true);
                await nvim.resumeNotification();
                return this.documentLines.join("\n");
              }
            };
            this.disposables.push(workspace_default.registerTextDocumentContentProvider("coc", provider));
          }
          loadConfiguration(e2) {
            if (!e2 || e2.affectsConfiguration("hover")) {
              let config = workspace_default.getConfiguration("hover", this.handler.uri);
              this.config = {
                floatConfig: config.get("floatConfig", {}),
                autoHide: config.get("autoHide", true),
                target: config.get("target", "float"),
                previewMaxHeight: config.get("previewMaxHeight", 12)
              };
              if (this.config.target == "preview") {
                this.registerProvider();
              }
            }
          }
          async onHover(hoverTarget) {
            let { doc, position, winid } = await this.handler.getCurrentState();
            if (hoverTarget == "preview") this.registerProvider();
            this.handler.checkProvider("hover" /* Hover */, doc.textDocument);
            await doc.synchronize();
            let hovers = await this.handler.withRequestToken("hover", (token) => {
              return languages_default.getHover(doc.textDocument, position, token);
            }, true);
            if (hovers == null || !hovers.length) return false;
            let hover = hovers.find((o2) => Range.is(o2.range));
            if (hover?.range) {
              let win = this.nvim.createWindow(winid);
              win.highlightRanges("CocHoverRange", [hover.range], 1024, true);
              this.timer = setTimeout(() => {
                win.clearMatchGroup("CocHoverRange");
                this.nvim.redrawVim();
              }, 500);
            }
            await this.previewHover(hovers, hoverTarget);
            return true;
          }
          async definitionHover(hoverTarget) {
            const { doc, position, winid } = await this.handler.getCurrentState();
            if (hoverTarget == "preview") this.registerProvider();
            this.handler.checkProvider("hover" /* Hover */, doc.textDocument);
            await doc.synchronize();
            const hovers = await this.handler.withRequestToken("hover", (token) => {
              return languages_default.getHover(doc.textDocument, position, token);
            }, true);
            if (isFalsyOrEmpty(hovers)) return false;
            const defs = await this.handler.withRequestToken("definitionHover", (token) => {
              return languages_default.getDefinitionLinks(doc.textDocument, position, token);
            }, false);
            if (defs == null) return false;
            await addDefinitions(hovers, defs, doc.filetype);
            let hover = hovers.find((o2) => Hover.is(o2) && Range.is(o2.range));
            if (hover?.range) {
              let win = this.nvim.createWindow(winid);
              win.highlightRanges("CocHoverRange", [hover.range], 1024, true);
              this.timer = setTimeout(() => {
                win.clearMatchGroup("CocHoverRange");
                this.nvim.redrawVim();
              }, highlightDelay);
            }
            await this.previewHover(hovers, hoverTarget);
            return true;
          }
          async previewHover(hovers, target) {
            let docs = [];
            target = target ?? this.config.target;
            let isPreview = target === "preview";
            for (let hover of hovers) {
              if (isDocumentation(hover)) {
                docs.push(hover);
                continue;
              }
              let { contents } = hover;
              if (Array.isArray(contents)) {
                for (let item of contents) {
                  if (typeof item === "string") {
                    addDocument(docs, item, "markdown", isPreview);
                  } else {
                    addDocument(docs, item.value, item.language, isPreview);
                  }
                }
              } else if (MarkedString.is(contents)) {
                if (typeof contents == "string") {
                  addDocument(docs, contents, "markdown", isPreview);
                } else {
                  addDocument(docs, contents.value, contents.language, isPreview);
                }
              } else if (MarkupContent.is(contents)) {
                addDocument(docs, contents.value, isMarkdown(contents) ? "markdown" : "txt", isPreview);
              }
            }
            if (target == "float") {
              await this.hoverFactory.show(docs, this.config.floatConfig);
              return;
            }
            let lines = docs.reduce((p2, c2) => {
              let arr = c2.content.split(/\r?\n/);
              if (p2.length > 0) p2.push("");
              p2.push(...arr);
              return p2;
            }, []);
            if (target == "echo") {
              const msg = lines.join("\n").trim();
              await this.nvim.call("coc#ui#echo_hover", [msg]);
            } else {
              this.documentLines = lines;
              await this.nvim.command(`noswapfile pedit coc://document`);
            }
          }
          /**
           * Get hover text array
           */
          async getHover(loc) {
            let result = [];
            let doc;
            let position;
            if (!loc) {
              let state = await this.handler.getCurrentState();
              doc = state.doc;
              position = state.position;
            } else {
              doc = loc.bufnr ? workspace_default.getAttachedDocument(loc.bufnr) : await workspace_default.document;
              let line = doc.getline(loc.line - 1);
              let character = characterIndex(line, loc.col - 1);
              position = Position.create(loc.line - 1, character);
            }
            this.handler.checkProvider("hover" /* Hover */, doc.textDocument);
            await doc.synchronize();
            let tokenSource = new import_node4.CancellationTokenSource();
            let hovers = await languages_default.getHover(doc.textDocument, position, tokenSource.token);
            for (let h2 of hovers) {
              let { contents } = h2;
              if (Array.isArray(contents)) {
                contents.forEach((c2) => {
                  result.push(typeof c2 === "string" ? c2 : c2.value);
                });
              } else if (MarkupContent.is(contents)) {
                result.push(contents.value);
              } else {
                result.push(typeof contents === "string" ? contents : contents.value);
              }
            }
            result = result.filter((s2) => s2 != null && s2.length > 0);
            return result;
          }
          dispose() {
            if (this.timer) clearTimeout(this.timer);
            disposeAll(this.disposables);
          }
        };
      }
    });
    
    // src/handler/inlayHint/buffer.ts
    function getHighlightGroup3(kind) {
      switch (kind) {
        case InlayHintKind.Parameter:
          return "CocInlayHintParameter";
        case InlayHintKind.Type:
          return "CocInlayHintType";
        default:
          return "CocInlayHint";
      }
    }
    var logger63, srcId2, debounceInterval, requestDelay, InlayHintBuffer;
    var init_buffer4 = __esm({
      "src/handler/inlayHint/buffer.ts"() {
        "use strict";
        init_main();
        init_events();
        init_languages();
        init_logger();
        init_regions();
        init_inlayHintManager();
        init_util();
        init_errors();
        init_position();
        init_protocol();
        init_string();
        init_window();
        init_workspace();
        logger63 = createLogger("inlayHint-buffer");
        debounceInterval = getConditionValue(150, 10);
        requestDelay = getConditionValue(500, 10);
        InlayHintBuffer = class {
          constructor(nvim, doc) {
            this.nvim = nvim;
            this.doc = doc;
            this.render().catch(onUnexpectedError);
          }
          nvim;
          doc;
          tokenSource;
          regions = new Regions();
          _config;
          _dirty = false;
          _changedtick;
          // Saved for resolve and TextEdits in the future.
          currentHints = [];
          _onDidRefresh = new import_node4.Emitter();
          onDidRefresh = this._onDidRefresh.event;
          get config() {
            if (this._config) return this._config;
            this.loadConfiguration();
            return this._config;
          }
          loadConfiguration() {
            let config = workspace_default.getConfiguration("inlayHint", this.doc);
            let changeEnable = this._config && this._config.enable !== config.enable;
            let changeDisplay = this._config && this._config.display !== config.display;
            this._config = {
              enable: config.get("enable"),
              position: config.get("position"),
              display: config.get("display", true),
              filetypes: config.get("filetypes"),
              refreshOnInsertMode: config.get("refreshOnInsertMode"),
              enableParameter: config.get("enableParameter"),
              maximumLength: config.get("maximumLength", 0)
            };
            if (changeEnable || changeDisplay) {
              let { enable, display } = this._config;
              if (enable && display) {
                this.render(void 0, 0).catch(onUnexpectedError);
              } else {
                this.clearCache();
                this.clearVirtualText();
              }
            }
          }
          onInsertLeave() {
            if (this.config.refreshOnInsertMode || this.doc.changedtick === this._changedtick) return;
            this.render().catch(onUnexpectedError);
          }
          onInsertEnter() {
            this._changedtick = this.doc.changedtick;
            if (this.config.refreshOnInsertMode) return;
            this.cancel();
          }
          // Vim's textprop has no right_gravity like option, so inline hints drift to the wrong column
          // after completion inserts text at the same column. Force a re-render on CompleteDone to fix it.
          onCompleteDone() {
            if (!workspace_default.isVim) return;
            if (this.config.refreshOnInsertMode) return;
            if (!this.enabled) return;
            this.clearCache();
            this.render(void 0, 0, true).catch(onUnexpectedError);
          }
          get current() {
            return this.currentHints;
          }
          get enabled() {
            if (!this.config.display || !this.configEnabled) return false;
            return this.hasProvider;
          }
          get hasProvider() {
            return languages_default.hasProvider("inlayHint" /* InlayHint */, this.doc);
          }
          get configEnabled() {
            let { filetypes, enable } = this.config;
            if (Array.isArray(filetypes)) return filetypes.includes("*") || filetypes.includes(this.doc.filetype);
            return enable === true;
          }
          enable() {
            this.checkState();
            this.config.display = true;
            this.render(void 0, 0).catch(onUnexpectedError);
          }
          disable() {
            this.checkState();
            this.config.display = false;
            this.clearCache();
            this.clearVirtualText();
          }
          checkState() {
            if (!languages_default.hasProvider("inlayHint" /* InlayHint */, this.doc.textDocument)) throw new Error("Inlay hint provider not found for current document");
            if (!this.configEnabled) throw new Error(`Filetype "${this.doc.filetype}" not enabled by inlayHint configuration, see ':h coc-config-inlayHint'`);
          }
          toggle() {
            if (this.config.display) {
              this.disable();
            } else {
              this.enable();
            }
          }
          clearCache() {
            this.cancel();
            this.currentHints = [];
            this.regions.clear();
          }
          onTextChange() {
            this.clearCache();
          }
          onChange() {
            this.render().catch(onUnexpectedError);
          }
          cancel() {
            if (this.tokenSource) {
              this.tokenSource.cancel();
              this.tokenSource = null;
            }
          }
          onVisible(winid, region) {
            if (!this._dirty) return;
            this.render({
              winid,
              region: [region[0], region[1]]
            }, 0).catch(onUnexpectedError);
          }
          async render(config, delay3, force = false) {
            if (!this.enabled) return;
            if (!force && !this.config.refreshOnInsertMode && events_default.bufnr === this.doc.bufnr && events_default.insertMode) return;
            this.cancel();
            this.tokenSource = new import_node4.CancellationTokenSource();
            let token = this.tokenSource.token;
            await waitWithToken(typeof delay3 === "number" ? delay3 : debounceInterval, token);
            if (!srcId2) srcId2 = await this.nvim.createNamespace("coc-inlayHint");
            if (token.isCancellationRequested || this.doc.dirty) return;
            if (!this._dirty) {
              await this.renderAll(token);
            } else if (config) {
              let region = config.region;
              await this.renderRange([region[0] - 1, region[1] - 1], token);
            } else {
              const spans = await window_default.getVisibleRanges(this.doc.bufnr);
              for (const [topline, botline] of spans) {
                if (token.isCancellationRequested) break;
                await this.renderRange([topline - 1, botline - 1], token);
              }
            }
          }
          async renderAll(token) {
            const lineCount = this.doc.lineCount;
            const range2 = Range.create(0, 0, lineCount, 0);
            const inlayHints = await this.request(range2, token);
            if (!inlayHints) return;
            this.currentHints = inlayHints;
            this.setVirtualText(range2, inlayHints);
            this.regions.add(0, lineCount);
            this._dirty = true;
          }
          /**
           * 0 based startLine and endLine
           */
          async renderRange(lines, token) {
            let span = this.regions.toUncoveredSpan(lines, workspace_default.env.lines, this.doc.lineCount);
            if (!span) return;
            const [startLine, endLine] = span;
            const range2 = this.doc.textDocument.intersectWith(Range.create(startLine, 0, endLine + 1, 0));
            const inlayHints = await this.request(range2, token);
            if (!inlayHints) return;
            this.currentHints = this.currentHints.filter((o2) => positionInRange(o2.position, range2) !== 0);
            this.currentHints.push(...inlayHints);
            this.setVirtualText(range2, inlayHints);
            this.regions.add(startLine, endLine);
          }
          async request(range2, token) {
            let inlayHints;
            try {
              inlayHints = await languages_default.provideInlayHints(this.doc.textDocument, range2, token);
            } catch (e2) {
              if (!token.isCancellationRequested && e2 instanceof CancellationError) {
                this.render(void 0, requestDelay).catch(onUnexpectedError);
                return;
              }
            }
            if (inlayHints == null || token.isCancellationRequested) return;
            if (!this.config.enableParameter) {
              inlayHints = inlayHints.filter((o2) => o2.kind !== InlayHintKind.Parameter);
            }
            return inlayHints;
          }
          setVirtualText(range2, inlayHints) {
            let { nvim, doc } = this;
            let buffer = doc.buffer;
            const { maximumLength } = this.config;
            nvim.pauseNotification();
            const end = range2.end.line >= doc.lineCount ? -1 : range2.end.line + 1;
            buffer.clearNamespace(srcId2, range2.start.line, end);
            let lineInfo = { lineNum: 0, totalLineLen: 0 };
            const vitems = [];
            for (const item of inlayHints) {
              const blocks = [];
              let { position } = item;
              if (lineInfo.lineNum !== position.line) {
                lineInfo = { lineNum: position.line, totalLineLen: 0 };
              }
              if (maximumLength > 0 && lineInfo.totalLineLen > maximumLength) {
                logger63.warn(`Inlay hint of ${lineInfo.lineNum} too long, max length: ${maximumLength}, current line total length: ${lineInfo.totalLineLen}`);
                continue;
              }
              let line = this.doc.getline(position.line);
              let col = byteIndex(line, position.character) + 1;
              let label = getLabel(item);
              lineInfo.totalLineLen += label.length;
              const over = maximumLength > 0 ? lineInfo.totalLineLen - maximumLength : 0;
              if (over > 0) {
                label = label.slice(0, -over) + "\u2026";
              }
              if (item.paddingLeft) blocks.push([" ", "Normal"]);
              blocks.push([label, getHighlightGroup3(item.kind)]);
              if (item.paddingRight) blocks.push([" ", "Normal"]);
              if (this.config.position == "eol" /* Eol */) {
                col = 0;
              }
              let opts = { line: position.line, blocks, col, hl_mode: "replace" };
              if (item.kind == InlayHintKind.Parameter) {
                opts.right_gravity = false;
              }
              vitems.push(opts);
            }
            nvim.call("coc#vtext#set", [buffer.id, srcId2, vitems, false, 200], true);
            nvim.resumeNotification(true, true);
            this._onDidRefresh.fire();
          }
          clearVirtualText() {
            if (srcId2) this.doc.buffer.clearNamespace(srcId2);
          }
          dispose() {
            this.clearCache();
          }
        };
      }
    });
    
    // src/handler/inlayHint/index.ts
    var InlayHintHandler;
    var init_inlayHint2 = __esm({
      "src/handler/inlayHint/index.ts"() {
        "use strict";
        init_commands();
        init_events();
        init_languages();
        init_util();
        init_protocol();
        init_window();
        init_workspace();
        init_buffer4();
        InlayHintHandler = class {
          buffers;
          disposables = [];
          constructor(nvim, handler) {
            this.buffers = workspace_default.registerBufferSync((doc) => {
              return new InlayHintBuffer(nvim, doc);
            });
            this.disposables.push(this.buffers);
            workspace_default.onDidChangeConfiguration((e2) => {
              for (let item of this.buffers.items) {
                if (e2.affectsConfiguration("inlayHint", item.doc)) {
                  item.loadConfiguration();
                }
              }
            }, null, this.disposables);
            languages_default.onDidInlayHintRefresh(async (e2) => {
              for (let item of this.buffers.items) {
                if (workspace_default.match(e2, item.doc.textDocument)) {
                  item.clearCache();
                  if (languages_default.hasProvider("inlayHint" /* InlayHint */, item.doc.textDocument)) {
                    await item.render();
                  } else {
                    item.clearVirtualText();
                  }
                }
              }
            }, null, this.disposables);
            events_default.on("InsertLeave", (bufnr) => {
              let item = this.buffers.getItem(bufnr);
              if (item) item.onInsertLeave();
            }, null, this.disposables);
            events_default.on("InsertEnter", (bufnr) => {
              let item = this.buffers.getItem(bufnr);
              if (item) item.onInsertEnter();
            }, null, this.disposables);
            events_default.on("CompleteDone", (_item, _line, bufnr) => {
              let item = this.buffers.getItem(bufnr);
              if (item) item.onCompleteDone();
            }, null, this.disposables);
            commands_default.register({
              id: "document.toggleInlayHint",
              execute: (bufnr) => {
                this.setState("toggle", bufnr);
              }
            }, false, "Toggle inlayHint display of current buffer");
            commands_default.register({
              id: "document.enableInlayHint",
              execute: (bufnr) => {
                this.setState("enable", bufnr);
              }
            }, false, "Enable inlayHint display of current buffer");
            commands_default.register({
              id: "document.disableInlayHint",
              execute: (bufnr) => {
                this.setState("disable", bufnr);
              }
            }, false, "Disable inlayHint display of current buffer");
            handler.addDisposable(import_node4.Disposable.create(() => {
              disposeAll(this.disposables);
            }));
          }
          setState(method, bufnr) {
            try {
              bufnr = bufnr ?? workspace_default.bufnr;
              workspace_default.getAttachedDocument(bufnr);
              let item = this.getItem(bufnr);
              item[method]();
            } catch (e2) {
              void window_default.showErrorMessage(e2.message);
            }
          }
          getItem(bufnr) {
            return this.buffers.getItem(bufnr);
          }
        };
      }
    });
    
    // src/handler/inline.ts
    function formatInsertText(text, opts) {
      let lines = text.split(/\r?\n/);
      let tabSize = defaultValue(opts.tabSize, 2);
      let ind = opts.insertSpaces ? " ".repeat(opts.tabSize) : "	";
      lines = lines.map((line) => {
        let space = line.match(/^\s*/)[0];
        let isTab = space.startsWith("	");
        let len = space.length;
        if (isTab && opts.insertSpaces) {
          space = ind.repeat(space.length);
        } else if (!isTab && !opts.insertSpaces) {
          space = ind.repeat(space.length / tabSize);
        }
        return space + line.slice(len);
      });
      return lines.join("\n");
    }
    function getInsertText(item, formatOptions) {
      if (StringValue.isSnippet(item.insertText)) {
        const parser2 = new SnippetParser(false);
        const snippet = parser2.parse(item.insertText.value, true);
        return formatInsertText(snippet.toString(), formatOptions);
      }
      return formatInsertText(item.insertText, formatOptions);
    }
    function getInserted(curr, synced, character) {
      if (curr.length < synced.length) return void 0;
      let after = curr.slice(character);
      if (!synced.endsWith(after)) return void 0;
      let start = synced.length - after.length;
      if (!curr.startsWith(synced.slice(0, start))) return void 0;
      return { start, text: curr.slice(start, character) };
    }
    function getPumInserted(document2, cursor) {
      const { line, character } = cursor;
      let synced = toText(document2.textDocument.lines[line]);
      let curr = document2.getline(cursor.line);
      if (synced === curr) return "";
      let change = getInserted(curr, synced, character);
      return change ? change.text : void 0;
    }
    function checkInsertedAtBeginning(currentLine, triggerCharacter, inserted, item) {
      if (!item.range) {
        if (StringValue.isSnippet(item.insertText)) {
          return item.insertText.value.startsWith(inserted);
        }
        return item.insertText.startsWith(inserted);
      }
      let current = currentLine.slice(item.range.start.character, triggerCharacter + inserted.length);
      if (StringValue.isSnippet(item.insertText)) {
        return item.insertText.value.startsWith(current);
      }
      return item.insertText.startsWith(current);
    }
    function fixRange(range2, inserted) {
      if (!inserted || !range2) return range2;
      return Range.create(range2.start, Position.create(range2.end.line, range2.end.character + inserted.length));
    }
    var logger64, NAMESPACE3, InlineSession, InlineCompletion;
    var init_inline = __esm({
      "src/handler/inline.ts"() {
        "use strict";
        init_main();
        init_commands();
        init_completion2();
        init_events();
        init_languages();
        init_logger();
        init_parser3();
        init_util();
        init_errors();
        init_position();
        init_protocol();
        init_string();
        init_window();
        init_workspace();
        logger64 = createLogger("handler-inline");
        NAMESPACE3 = "inlineSuggest";
        InlineSession = class {
          constructor(bufnr, cursor, items, index = 0, vtext = void 0) {
            this.bufnr = bufnr;
            this.cursor = cursor;
            this.items = items;
            this.index = index;
            this.vtext = vtext;
          }
          bufnr;
          cursor;
          items;
          index;
          vtext;
          get length() {
            return this.items.length;
          }
          get selected() {
            return this.items[this.index];
          }
          clearNamespace() {
            if (this.vtext) {
              workspace_default.nvim.createBuffer(this.bufnr).clearNamespace(NAMESPACE3);
              this.vtext = void 0;
            }
          }
          get extra() {
            return this.length > 1 ? `(${this.index + 1}/${this.length})` : "";
          }
          get nextIndex() {
            return this.index === this.length - 1 ? 0 : this.index + 1;
          }
          get prevIndex() {
            return this.index === 0 ? this.length - 1 : this.index - 1;
          }
        };
        InlineCompletion = class {
          constructor(nvim, handler) {
            this.nvim = nvim;
            this.handler = handler;
            this.loadConfiguration();
            workspace_default.onDidChangeConfiguration(this.loadConfiguration, this, this.disposables);
            window_default.onDidChangeActiveTextEditor(() => {
              this.loadConfiguration();
            }, this, this.disposables);
            const triggerOption = { autoTrigger: true };
            workspace_default.onDidChangeTextDocument((e2) => {
              if (languages_default.inlineCompletionItemManager.isEmpty === false && this.config.autoTrigger && e2.bufnr === defaultValue(window_default.activeTextEditor, {}).bufnr && !this._applying && events_default.insertMode) {
                const wait2 = this.config.triggerCompletionWait;
                this.trigger(e2.bufnr, triggerOption, wait2).catch(onUnexpectedError);
              }
            }, null, this.disposables);
            events_default.on("TextChangedI", (bufnr) => {
              if (events_default.pumInserted && !languages_default.inlineCompletionItemManager.isEmpty) {
                const wait2 = this.config.triggerCompletionWait;
                this.trigger(bufnr, triggerOption, wait2).catch(onUnexpectedError);
              }
            }, null, this.disposables);
            events_default.on("ModeChanged", (ev) => {
              if (!ev.new_mode.startsWith("i")) {
                this.cancel();
              }
            }, null, this.disposables);
            events_default.on("InsertCharPre", () => {
              this.cancel();
            }, null, this.disposables);
            events_default.on("LinesChanged", (bufnr) => {
              if (bufnr === this.bufnr) {
                this.cancel();
              }
            }, null, this.disposables);
            workspace_default.onDidCloseTextDocument((e2) => {
              if (e2.bufnr === this.bufnr) {
                this.cancel();
              }
            }, null, this.disposables);
            commands_default.titles.set("document.checkInlineCompletion", "check inline completion state of current buffer");
            this.handler.addDisposable(commands_default.registerCommand("document.checkInlineCompletion", async () => {
              if (!this.supported) {
                void window_default.showWarningMessage(`Inline completion is not supported on current vim ${workspace_default.env.version}`);
                return;
              }
              let bufnr = await this.nvim.eval('bufnr("%")');
              let doc = workspace_default.getDocument(bufnr);
              if (!doc || !doc.attached) {
                void window_default.showWarningMessage(`Buffer ${bufnr} is not attached, see ':h coc-document-attached'.`);
                return;
              }
              let disable = await nvim.createBuffer(bufnr).getVar("coc_inline_disable");
              if (disable == 1) {
                void window_default.showWarningMessage(`Trigger inline completion is disabled by b:coc_inline_disable.`);
                return;
              }
              let providers = languages_default.inlineCompletionItemManager.getProviders(doc.textDocument);
              if (providers.length === 0) {
                void window_default.showWarningMessage(`Inline completion provider not found for buffer ${bufnr}.`);
                return;
              }
              let names = providers.map((item) => item.provider["__extensionName"] ?? "unknown");
              void window_default.showInformationMessage(`Inline completion is supported by ${names.join(", ")}.`);
            }));
          }
          nvim;
          handler;
          session;
          _onDidChangeVisibility = new import_node4.Emitter();
          onDidChangeVisibility = this._onDidChangeVisibility.event;
          bufnr;
          tokenSource;
          disposables = [];
          config;
          _applying = false;
          _inserted;
          loadConfiguration(e2) {
            if (!e2 || e2.affectsConfiguration("inlineSuggest")) {
              let doc = defaultValue(window_default.activeTextEditor, {}).document;
              let config = workspace_default.getConfiguration("inlineSuggest", doc);
              let autoTrigger = defaultValue(config.inspect("autoTrigger").globalValue, true);
              this.config = Object.assign(this.config ?? {}, {
                autoTrigger,
                triggerCompletionWait: defaultValue(config.inspect("triggerCompletionWait").globalValue, 10)
              });
            }
          }
          get supported() {
            return workspace_default.has("patch-9.0.0185") || workspace_default.has("nvim-0.7.0");
          }
          get selected() {
            return this.session?.selected;
          }
          async visible() {
            let result = await this.nvim.call("coc#inline#visible");
            return !!result;
          }
          get vtextBufnr() {
            return this.session?.vtext == null ? -1 : this.session.bufnr;
          }
          async trigger(bufnr, option, delay3) {
            if (!this.supported) return false;
            this.cancel();
            option = option ?? {};
            let document2 = workspace_default.getDocument(bufnr);
            if (!document2 || !document2.attached || !languages_default.hasProvider("inlineCompletion" /* InlineCompletion */, document2)) return false;
            let tokenSource = this.tokenSource = new import_node4.CancellationTokenSource();
            this.bufnr = bufnr;
            this._inserted = void 0;
            let token = tokenSource.token;
            if (delay3) await waitWithToken(delay3, token);
            if (option.autoTrigger !== true && document2.hasChanged) {
              this._applying = true;
              try {
                await document2.synchronize();
              } finally {
                this._applying = false;
              }
            }
            if (token.isCancellationRequested) return false;
            let [mode, nr, pos, disable] = await this.nvim.eval('[mode(),bufnr("%"),coc#cursor#position(),get(b:,"coc_inline_disable",0)]');
            if (disable || nr !== bufnr || mode !== "i" || token.isCancellationRequested) return false;
            let cursor = Position.create(pos[0], pos[1]);
            let triggerPosition = cursor;
            let curr = document2.getline(cursor.line);
            if (option.autoTrigger) {
              let inserted = this._inserted = getPumInserted(document2, cursor);
              if (inserted == null) return false;
              triggerPosition = Position.create(cursor.line, cursor.character - inserted.length);
            }
            const selectedCompletionInfo = completion_default.selectedCompletionInfo;
            if (selectedCompletionInfo && this._inserted) selectedCompletionInfo.range.end.character -= this._inserted.length;
            let items = await languages_default.provideInlineCompletionItems(document2.textDocument, triggerPosition, {
              provider: option.provider,
              selectedCompletionInfo,
              triggerKind: option.autoTrigger ? InlineCompletionTriggerKind.Automatic : InlineCompletionTriggerKind.Invoked
            }, token);
            this.tokenSource = void 0;
            if (!Array.isArray(items) || token.isCancellationRequested) return false;
            items = items.filter((item) => !item.range || positionInRange(triggerPosition, item.range) === 0);
            if (this._inserted) items = items.filter((item) => checkInsertedAtBeginning(curr, triggerPosition.character, this._inserted, item));
            if (items.length === 0) {
              if (!option.autoTrigger && !option.silent) {
                void window_default.showWarningMessage(`No inline completion items from provider.`);
              }
              return false;
            }
            this.session = new InlineSession(bufnr, cursor, items);
            this._onDidChangeVisibility.fire(true);
            await this.insertVtext(items[0]);
            return true;
          }
          async accept(bufnr, kind = "all") {
            if (bufnr !== this.vtextBufnr || !this.selected) return false;
            let item = this.selected;
            let cursor = this.session.cursor;
            let insertedText = this.session.vtext;
            this.cancel();
            let doc = workspace_default.getAttachedDocument(bufnr);
            let insertedLength = 0;
            const itemRange = fixRange(item.range, this._inserted);
            if (StringValue.isSnippet(item.insertText) && kind == "all") {
              let range2 = defaultValue(itemRange, Range.create(cursor, cursor));
              let text = item.insertText.value;
              if (!itemRange && this._inserted) text = text.slice(this._inserted.length);
              let edit2 = TextEdit.replace(range2, text);
              await commands_default.executeCommand("editor.action.insertSnippet", edit2);
            } else {
              let range2 = Range.create(cursor, cursor);
              if (kind == "word") {
                let total = 0;
                for (let i2 = 1; i2 < insertedText.length; i2++) {
                  if (doc.isWord(insertedText[i2])) {
                    total = i2;
                  } else {
                    break;
                  }
                }
                insertedText = insertedText.slice(0, total + 1);
                insertedLength = insertedText.length;
              } else if (kind == "line") {
                const insertedLines = insertedText.split("\n");
                const insertText = insertedLines[0];
                insertedLength = insertText.length;
                insertedText = insertText;
              } else if (kind == "line+indent") {
                const insertedLines = insertedText.split("\n");
                const insertText = insertedLines[0] + (insertedLines.length == 1 ? "" : "\n" + insertedLines[1].match(/^\s*/)[0]);
                insertedLength = insertText.length;
                insertedText = insertText;
              } else {
                insertedText = getInsertText(item, window_default.activeTextEditor.options);
                if (itemRange) {
                  range2 = itemRange;
                } else if (this._inserted) {
                  insertedText = insertedText.slice(this._inserted.length);
                }
              }
              await doc.applyEdits([TextEdit.replace(range2, insertedText)], false, false);
              await window_default.moveTo(getEnd(range2.start, insertedText));
            }
            if (item.command) {
              try {
                await commands_default.execute(item.command);
              } catch (err) {
                logger64.error(`Error on execute command "${item.command.command}"`, err);
              }
            }
            await events_default.fire("InlineAccept", [insertedLength, item]);
            return true;
          }
          async next(bufnr) {
            await this._navigate(true, bufnr);
          }
          async prev(bufnr) {
            await this._navigate(false, bufnr);
          }
          async _navigate(next, bufnr) {
            if (bufnr !== this.vtextBufnr || this.session.length <= 1) return;
            let idx = next ? this.session.nextIndex : this.session.prevIndex;
            this.session.index = idx;
            await this.insertVtext(this.session.selected);
          }
          async insertVtext(item) {
            if (!this.session || !item) return;
            const { bufnr, extra, cursor } = this.session;
            let doc = workspace_default.getDocument(bufnr);
            let formatOptions = window_default.activeTextEditor.options;
            let text = getInsertText(item, formatOptions);
            const line = doc.getline(cursor.line);
            const itemRange = fixRange(item.range, this._inserted);
            if (itemRange && !emptyRange(itemRange)) {
              let current = line.slice(itemRange.start.character, cursor.character);
              text = text.slice(current.length);
              if (comparePosition(cursor, itemRange.end) !== 0) {
                let after = line.slice(cursor.character, itemRange.end.character);
                if (text.endsWith(after)) {
                  text = text.slice(0, -after.length);
                }
              }
            } else if (this._inserted) {
              text = text.slice(this._inserted.length);
            }
            const col = byteIndex(line, cursor.character) + 1;
            let shown = await this.nvim.call("coc#inline#_insert", [bufnr, cursor.line, col, text.split("\n"), extra]);
            if (!this.session) return;
            if (shown) {
              this.session.vtext = text;
              this.nvim.redrawVim();
              void events_default.fire("InlineShown", [item]);
            } else {
              this.session.clearNamespace();
              this.session = void 0;
              this._onDidChangeVisibility.fire(false);
            }
          }
          cancel() {
            if (this.tokenSource) {
              this.tokenSource.cancel();
              this.tokenSource.dispose();
              this.tokenSource = void 0;
            }
            if (this.session) {
              this.session.clearNamespace();
              this.session = void 0;
              this._onDidChangeVisibility.fire(false);
            }
            this.bufnr = void 0;
          }
          dispose() {
            this._onDidChangeVisibility.dispose();
            disposeAll(this.disposables);
          }
        };
      }
    });
    
    // src/handler/nextEdit.ts
    function validPosition(doc, pos) {
      return Number.isInteger(pos.line) && Number.isInteger(pos.character) && pos.line >= 0 && pos.line < doc.textDocument.lineCount && pos.character >= 0 && pos.character <= doc.textDocument.lineAt(pos.line).text.length;
    }
    function validRange(doc, range2) {
      return !!range2 && validPosition(doc, range2.start) && validPosition(doc, range2.end) && (range2.start.line < range2.end.line || range2.start.line === range2.end.line && range2.start.character <= range2.end.character);
    }
    function validRangeShape(range2) {
      return !!range2 && Number.isInteger(range2.start?.line) && Number.isInteger(range2.start?.character) && Number.isInteger(range2.end?.line) && Number.isInteger(range2.end?.character) && range2.start.line >= 0 && range2.start.character >= 0 && range2.end.line >= 0 && range2.end.character >= 0 && (range2.start.line < range2.end.line || range2.start.line === range2.end.line && range2.start.character <= range2.end.character);
    }
    function sameTextPosition(one, two) {
      let oneEnd = getEnd(Position.create(0, 0), one);
      let twoEnd = getEnd(Position.create(0, 0), two);
      return oneEnd.line === twoEnd.line && oneEnd.character === twoEnd.character;
    }
    function keepsCursorPrefix(originalText, newText, cursorOffset) {
      let originalPrefix = "";
      let newPrefix = "";
      let used = 0;
      let replacementAtCursor = false;
      for (let [kind, text] of fastDiff(originalText, newText)) {
        if (kind === fastDiff.EQUAL) {
          let remaining = cursorOffset - used;
          if (remaining <= 0) break;
          let part = text.slice(0, remaining);
          originalPrefix += part;
          newPrefix += part;
          used += part.length;
          replacementAtCursor = false;
          if (part.length < text.length || used === cursorOffset) break;
        } else if (kind === fastDiff.DELETE) {
          let remaining = cursorOffset - used;
          if (remaining <= 0) break;
          if (text.length > remaining) return false;
          originalPrefix += text;
          used += text.length;
          replacementAtCursor = used === cursorOffset;
        } else if (used < cursorOffset || replacementAtCursor) {
          newPrefix += text;
        } else {
          break;
        }
      }
      return sameTextPosition(originalPrefix, newPrefix);
    }
    function getPreviewChanges(range2, originalText, newText) {
      let deletions = [];
      let deletedNewlines = [];
      let insertions = [];
      let position = range2.start;
      let diffs = fastDiff(originalText, newText);
      for (let i2 = 0; i2 < diffs.length; i2++) {
        let [kind, text] = diffs[i2];
        if (kind === fastDiff.INSERT) {
          let suffix = diffs.slice(i2 + 1).filter((item) => item[0] !== fastDiff.DELETE).map((item) => item[1]).join("");
          insertions.push({ position: Position.create(position.line, position.character), text, suffix });
        } else {
          let start = position;
          let end = getEnd(position, text);
          if (kind === fastDiff.DELETE) {
            deletions.push(Range.create(position, end));
            let newlinePosition = position;
            let parts = text.split("\n");
            for (let part of parts.slice(0, -1)) {
              newlinePosition = getEnd(newlinePosition, part);
              deletedNewlines.push(newlinePosition);
              newlinePosition = Position.create(newlinePosition.line + 1, 0);
            }
            let next = diffs[i2 + 1];
            if (next?.[0] === fastDiff.INSERT) {
              let suffix = diffs.slice(i2 + 2).filter((item) => item[0] !== fastDiff.DELETE).map((item) => item[1]).join("");
              insertions.push({ position: Position.create(start.line, start.character), text: next[1], suffix });
              i2++;
            }
          }
          position = end;
        }
      }
      return { deletions, deletedNewlines, insertions };
    }
    var logger65, NAMESPACE4, NextEdit;
    var init_nextEdit = __esm({
      "src/handler/nextEdit.ts"() {
        "use strict";
        init_main();
        init_esm();
        init_commands();
        init_languages();
        init_logger();
        init_protocol();
        init_util();
        init_node();
        init_string();
        init_position();
        init_textedit();
        init_window();
        init_workspace();
        logger65 = createLogger("handler-next-edit");
        NAMESPACE4 = "coc-nextEdit";
        NextEdit = class {
          constructor(nvim, handler, inline2) {
            this.nvim = nvim;
            this.handler = handler;
            this.inline = inline2;
            this.loadConfiguration();
            this.floatFactory = window_default.createFloatFactory({ modes: ["n", "i"], autoHide: false, breaks: false, maxWidth: 60 });
            this.disposables.push(this.floatFactory);
            workspace_default.onDidChangeConfiguration(this.loadConfiguration, this, this.disposables);
            window_default.onDidChangeActiveTextEditor(this.loadConfiguration, this, this.disposables);
            workspace_default.onDidChangeTextDocument((e2) => {
              if (!this.applying && this.session && e2.bufnr === this.session.source.bufnr) this.cancel();
              if (this.applying || !this.config.autoTrigger || e2.bufnr !== window_default.activeTextEditor?.bufnr) return;
              let doc = workspace_default.getDocument(e2.bufnr);
              if (doc?.attached && languages_default.hasProvider("nextEdit" /* NextEdit */, doc.textDocument)) this.trigger(e2.bufnr, { autoTrigger: true }, this.config.triggerWait).catch(logger65.error);
            }, null, this.disposables);
            workspace_default.onDidCloseTextDocument((e2) => {
              if (e2.bufnr === this.session?.source.bufnr) this.cancel();
            }, null, this.disposables);
            this.disposables.push(this.inline.onDidChangeVisibility(() => {
              this.render().catch(logger65.error);
            }));
          }
          nvim;
          handler;
          inline;
          state = "idle";
          session;
          preview;
          source;
          namespace;
          renderedBufnrs = /* @__PURE__ */ new Set();
          applying = false;
          disposables = [];
          floatFactory;
          config = { autoTrigger: true, triggerWait: 150 };
          loadConfiguration() {
            let config = workspace_default.getConfiguration("nextEdit", window_default.activeTextEditor?.document);
            this.config.autoTrigger = config.get("autoTrigger", true);
            this.config.triggerWait = config.get("triggerWait", 150);
          }
          async clearRender() {
            this.floatFactory.close();
            if (this.namespace != null) {
              for (let bufnr of this.renderedBufnrs) {
                workspace_default.nvim.createBuffer(bufnr).clearNamespace(this.namespace);
                workspace_default.nvim.createBuffer(bufnr).setVar("coc_next_edit_state", 0, true);
              }
            }
            this.renderedBufnrs.clear();
            if (this.session) workspace_default.nvim.createBuffer(this.session.source.bufnr).setVar("coc_next_edit_state", 0, true);
          }
          async render() {
            await this.clearRender();
            let session = this.session;
            if (!session || this.inline.session) return;
            let index = session.index;
            let item = session.items[index];
            let target = workspace_default.getDocument(item.textDocument.uri);
            if (!target || target.bufnr !== window_default.activeTextEditor?.bufnr || !this.preview) {
              this.state = "ready";
              this.renderedBufnrs.add(session.source.bufnr);
              workspace_default.nvim.createBuffer(session.source.bufnr).setVar("coc_next_edit_state", 1, true);
              if (item.textDocument.uri !== session.source.uri) {
                let uri = u.parse(item.textDocument.uri);
                let filepath = workspace_default.getRelativePath(uri) || uri.path || item.textDocument.uri;
                await this.floatFactory.show([{ content: `Next edit in ${filepath}:${item.range.start.line + 1}`, filetype: "txt" }]);
              }
              return;
            }
            if (this.namespace == null) {
              this.namespace = await this.nvim.createNamespace(NAMESPACE4);
              if (this.session !== session || session.index !== index) return;
            }
            let changes = getPreviewChanges(item.range, this.preview.originalText, item.newText);
            let highlights = [];
            for (let range2 of changes.deletions) {
              target.addHighlights(highlights, "CocNextEditDelete", range2, { combine: false });
            }
            this.renderedBufnrs.add(target.bufnr);
            let highlightDefs = highlights.map((item2) => [item2.hlGroup, item2.lnum, item2.colStart, item2.colEnd, item2.combine === false ? 0 : 1, 0, 0]);
            this.nvim.call("coc#highlight#buffer_update", [target.bufnr, this.namespace, highlightDefs, 4096, null], true);
            for (let position of changes.deletedNewlines) {
              let col = byteIndex(target.getline(position.line), position.character) + 1;
              await this.nvim.call("coc#vtext#add", [target.bufnr, this.namespace, position.line, [["\u21B5", "CocNextEditDelete"]], { col, hl_mode: "replace" }]);
              if (this.session !== session || session.index !== index) return;
            }
            for (let insertion of changes.insertions) {
              let lines = insertion.text.split("\n");
              let currentLine = target.getline(insertion.position.line);
              let before = currentLine.slice(0, insertion.position.character);
              let after = insertion.suffix + target.getline(item.range.end.line).slice(item.range.end.character);
              let col = byteIndex(currentLine, insertion.position.character) + 1;
              let options3 = { col, hl_mode: "replace" };
              let blocks = lines[0] ? [[lines[0], "CocNextEditInsert"]] : [];
              if (!workspace_default.isVim && !workspace_default.has("nvim-0.10.0")) {
                let previewLines = lines.map((line, i2) => {
                  let result = [];
                  if (i2 === 0 && before) result.push([before, "Normal"]);
                  if (line) result.push([line, "CocNextEditInsert"]);
                  if (i2 === lines.length - 1 && after) result.push([after, "Normal"]);
                  return result.length ? result : [[" ", "CocNextEditInsert"]];
                });
                options3.virt_lines = previewLines;
                blocks = [];
              } else if (lines.length > 1) {
                options3.virt_lines = lines.slice(1).map((line, i2) => {
                  let result = [[line || " ", "CocNextEditInsert"]];
                  if (i2 === lines.length - 2 && after) result.push([after, "Normal"]);
                  return result;
                });
              }
              await this.nvim.call("coc#vtext#add", [target.bufnr, this.namespace, insertion.position.line, blocks, options3]);
              if (this.session !== session || session.index !== index) return;
            }
            if (this.session !== session || session.index !== index) return;
            workspace_default.nvim.createBuffer(target.bufnr).setVar("coc_next_edit_state", 2, true);
            this.state = "preview";
            if (!session.shownIndexes.has(index)) {
              session.shownIndexes.add(index);
              languages_default.nextEditManager.handleDidShow(item);
            }
          }
          validate(item) {
            if (!item?.textDocument || !Number.isInteger(item.textDocument.version) || typeof item.newText !== "string") return;
            let doc = workspace_default.getDocument(item.textDocument.uri);
            if (!doc?.attached || doc.version !== item.textDocument.version || !validRange(doc, item.range)) return;
            let originalText = doc.textDocument.getText(item.range);
            let newText = item.newText.replace(/\r\n?/g, "\n");
            if (originalText === newText) return;
            item.newText = newText;
            return { doc, originalText };
          }
          keepsCursorPosition(doc, item, position, originalText) {
            if (comparePosition(item.range.start, position) >= 0) return true;
            if (comparePosition(item.range.end, position) <= 0) {
              let next = getPosition(position, TextEdit.replace(item.range, item.newText));
              return next.line === position.line && next.character === position.character;
            }
            let cursorOffset = doc.textDocument.offsetAt(position) - doc.textDocument.offsetAt(item.range.start);
            return keepsCursorPrefix(originalText, item.newText, cursorOffset);
          }
          validCandidate(item, source) {
            if (!item?.textDocument || !Number.isInteger(item.textDocument.version) || typeof item.newText !== "string" || !validRangeShape(item.range)) return false;
            let doc = workspace_default.getDocument(item.textDocument.uri);
            if (!doc || !doc.attached) {
              item.newText = item.newText.replace(/\r\n?/g, "\n");
              return true;
            }
            let checked = this.validate(item);
            if (!checked) return false;
            return !source || item.textDocument.uri !== source.uri || this.keepsCursorPosition(doc, item, source.position, checked.originalText);
          }
          async trigger(bufnr, option = {}, delay3 = 0) {
            this.cancel();
            let doc = workspace_default.getDocument(bufnr);
            if (!doc?.attached || !languages_default.hasProvider("nextEdit" /* NextEdit */, doc.textDocument)) return false;
            this.state = delay3 ? "waiting" : "requesting";
            let source = this.source = new import_node4.CancellationTokenSource();
            let requestId = source;
            let disable = await this.nvim.createBuffer(bufnr).getVar("coc_next_edit_disable");
            if (disable === 1) {
              this.cancel();
              return false;
            }
            if (delay3) await waitWithToken(delay3, source.token);
            if (source.token.isCancellationRequested || this.source !== requestId) return false;
            await doc.synchronize();
            let [nr, pos] = await this.nvim.eval('[bufnr("%"),coc#cursor#position()]');
            if (nr !== bufnr) {
              this.cancel();
              return false;
            }
            let position = Position.create(pos[0], pos[1]);
            let items = await languages_default.provideNextEdits(doc.textDocument, position, { provider: option.provider, triggerKind: option.autoTrigger ? InlineCompletionTriggerKind.Automatic : InlineCompletionTriggerKind.Invoked }, source.token);
            if (source.token.isCancellationRequested || this.source !== requestId) return false;
            this.source = void 0;
            let valid = items.filter((item) => this.validCandidate(item, { uri: doc.uri, position }));
            if (!valid.length) {
              this.cancel();
              return false;
            }
            this.session = { source: { uri: doc.uri, version: doc.version, position, bufnr }, items: valid, index: 0, shownIndexes: /* @__PURE__ */ new Set() };
            this.state = "ready";
            let selected = valid[0];
            let target = workspace_default.getDocument(selected.textDocument.uri);
            if (target?.bufnr === bufnr && validPosition(target, selected.range.start) && (positionInRange(position, selected.range) === 0 || comparePosition(position, selected.range.start) === 0)) {
              let checked = this.validate(selected);
              if (checked) this.preview = { uri: target.uri, version: target.version, range: selected.range, originalText: checked.originalText };
            }
            await this.render();
            return true;
          }
          async accept() {
            if (this.inline.session || !this.session || this.state !== "ready" && this.state !== "preview") return false;
            let session = this.session;
            let item = session.items[session.index];
            if (this.state === "ready") {
              await workspace_default.jumpTo(item.textDocument.uri, item.range.start);
              if (this.session !== session) {
                this.cancel();
                return false;
              }
              let checked2 = await this.waitForValidate(item);
              if (!checked2 || this.session !== session) {
                this.cancel();
                return false;
              }
              this.preview = { uri: checked2.doc.uri, version: checked2.doc.version, range: item.range, originalText: checked2.originalText };
              await this.render();
              return true;
            }
            this.state = "applying";
            let checked = this.validate(item);
            if (!checked || !this.preview || this.preview.uri !== checked.doc.uri || this.preview.version !== checked.doc.version || this.preview.originalText !== checked.originalText) {
              this.cancel();
              return false;
            }
            this.applying = true;
            try {
              await checked.doc.applyEdits([TextEdit.replace(item.range, item.newText)], false, false);
              await window_default.moveTo(getEnd(item.range.start, item.newText));
            } finally {
              this.applying = false;
            }
            if (item.command) {
              try {
                await commands_default.execute(item.command);
              } catch (err) {
                logger65.error(`Error on execute command "${item.command.command}"`, err);
              }
            }
            this.cancel();
            return true;
          }
          /**
           * Validate a candidate, waiting briefly for the target document to attach
           * after it was opened by workspace.jumpTo.
           */
          async waitForValidate(item) {
            let deadline = Date.now() + 300;
            let checked = this.validate(item);
            while (!checked && Date.now() < deadline) {
              await wait(20);
              checked = this.validate(item);
            }
            return checked;
          }
          cancel() {
            if (this.source) {
              this.source.cancel();
              this.source.dispose();
              this.source = void 0;
            }
            void this.clearRender();
            this.session = void 0;
            this.preview = void 0;
            this.state = "idle";
          }
          async next() {
            await this.switchCandidate(1);
          }
          async prev() {
            await this.switchCandidate(-1);
          }
          async switchCandidate(delta) {
            if (!this.session || this.session.items.length < 2) return;
            this.session.index = (this.session.index + delta + this.session.items.length) % this.session.items.length;
            this.preview = void 0;
            let item = this.session.items[this.session.index];
            let target = workspace_default.getDocument(item.textDocument.uri);
            if (target?.bufnr === this.session.source.bufnr && (positionInRange(this.session.source.position, item.range) === 0 || comparePosition(this.session.source.position, item.range.start) === 0)) {
              let checked = this.validate(item);
              if (checked) this.preview = { uri: checked.doc.uri, version: checked.doc.version, range: item.range, originalText: checked.originalText };
            }
            await this.render();
          }
          available() {
            return this.state === "ready" || this.state === "preview";
          }
          visible() {
            return this.state === "preview";
          }
          dispose() {
            this.cancel();
            for (let d2 of this.disposables) d2.dispose();
          }
        };
      }
    });
    
    // src/handler/linkedEditing.ts
    var debounceTime10, LinkedEditingHandler;
    var init_linkedEditing = __esm({
      "src/handler/linkedEditing.ts"() {
        "use strict";
        init_main();
        init_textRange();
        init_util7();
        init_events();
        init_languages();
        init_util();
        init_node();
        init_position();
        init_protocol();
        init_string();
        init_window();
        init_workspace();
        debounceTime10 = getConditionValue(200, 10);
        LinkedEditingHandler = class {
          constructor(nvim, handler) {
            this.nvim = nvim;
            this.checkPosition = debounce2(this._checkPosition, debounceTime10);
            handler.addDisposable(events_default.on("CursorMoved", (bufnr, cursor) => {
              this.cancel();
              this.checkPosition(bufnr, [cursor[0], cursor[1]]);
            }));
            handler.addDisposable(events_default.on("CursorMovedI", (bufnr, cursor) => {
              this.cancel();
              this.checkPosition(bufnr, [cursor[0], cursor[1]]);
            }));
            handler.addDisposable(window_default.onDidChangeActiveTextEditor(() => {
              this.cancel();
              this.cancelEdit();
            }));
            handler.addDisposable(events_default.on("InsertCharPre", (character, bufnr) => {
              if (bufnr !== this.bufnr) return;
              let doc = workspace_default.getDocument(bufnr);
              if (!this.wordPattern) {
                if (!doc.isWord(character) && character !== "-") this.cancelEdit();
              } else {
                let r2 = new RegExp(this.wordPattern);
                if (!r2.test(character)) this.cancelEdit();
              }
            }));
            handler.addDisposable(workspace_default.onDidChangeTextDocument(async (e2) => {
              await this.onChange(e2);
            }));
          }
          nvim;
          changing = false;
          window;
          bufnr;
          ranges;
          wordPattern;
          tokenSource;
          checkPosition;
          cancelEdit() {
            this.window?.clearMatchGroup("^CocLinkedEditing");
            this.ranges = void 0;
            this.window = void 0;
            this.bufnr = void 0;
          }
          async onChange(e2) {
            if (e2.bufnr !== this.bufnr || this.changing || !this.ranges) return;
            if (e2.contentChanges.length === 0) {
              this.doHighlights();
              return;
            }
            let change = e2.contentChanges[0];
            let { text, range: range2 } = change;
            let affected = this.ranges.filter((r2) => {
              if (!rangeIntersect(range2, r2.range)) return false;
              if (rangeAdjacent(range2, r2.range)) {
                if (text.includes("\n") || !emptyRange(range2)) return false;
              }
              return true;
            });
            if (affected.length == 1 && rangeInRange(range2, affected[0].range)) {
              if (text.includes("\n")) {
                this.cancelEdit();
                return;
              }
              await this.applySingleEdit(affected[0], { range: range2, newText: text });
            } else {
              this.cancelEdit();
            }
          }
          async applySingleEdit(textRange, edit2) {
            let { bufnr, ranges } = this;
            let doc = workspace_default.getDocument(bufnr);
            let after = ranges.filter((r2) => r2 !== textRange && r2.position.line == textRange.position.line);
            after.forEach((r2) => r2.adjustFromEdit(edit2));
            let change = getChange(textRange, edit2.range, edit2.newText);
            let delta = getDelta(change);
            ranges.forEach((r2) => r2.applyChange(change));
            let edits = ranges.filter((r2) => r2 !== textRange).map((o2) => o2.textEdit);
            this.changing = true;
            try {
              await doc.applyEdits(edits, true, true);
            } finally {
              this.changing = false;
            }
            if (delta != 0) {
              for (let r2 of ranges) {
                let n2 = getBeforeCount(r2, this.ranges, textRange);
                r2.move(n2 * delta);
              }
            }
            this.doHighlights();
          }
          doHighlights() {
            let { window: window2, ranges, nvim } = this;
            if (window2 && ranges) {
              nvim.pauseNotification();
              window2.clearMatchGroup("^CocLinkedEditing");
              window2.highlightRanges("CocLinkedEditing", ranges.map((o2) => o2.range), 99, true);
              nvim.resumeNotification(true, true);
            }
          }
          _checkPosition(bufnr, cursor) {
            if (events_default.completing || !workspace_default.isAttached(bufnr)) return;
            let doc = workspace_default.getDocument(bufnr);
            let config = workspace_default.getConfiguration("coc.preferences", doc);
            let enabled = config.get("enableLinkedEditing", false);
            if (!enabled || !languages_default.hasProvider("linkedEditing" /* LinkedEditing */, doc.textDocument)) return;
            let character = characterIndex(doc.getline(cursor[0] - 1), cursor[1] - 1);
            let position = Position.create(cursor[0] - 1, character);
            if (this.ranges) {
              if (this.ranges.some((r2) => positionInRange(position, r2.range) == 0)) {
                return;
              }
              this.cancelEdit();
            }
            void this.enable(doc, position);
          }
          async enable(doc, position) {
            let textDocument = doc.textDocument;
            let tokenSource = this.tokenSource = new import_node4.CancellationTokenSource();
            let token = tokenSource.token;
            let win = await this.nvim.window;
            let linkedRanges = await languages_default.provideLinkedEdits(textDocument, position, token);
            if (token.isCancellationRequested || !linkedRanges || linkedRanges.ranges.length == 0) return;
            let ranges = linkedRanges.ranges.map((o2) => new TextRange(o2.start.line, o2.start.character, textDocument.getText(o2)));
            this.wordPattern = linkedRanges.wordPattern;
            this.bufnr = doc.bufnr;
            this.window = win;
            this.ranges = ranges;
            this.doHighlights();
          }
          cancel() {
            if (this.tokenSource) {
              this.tokenSource.cancel();
              this.tokenSource = null;
            }
          }
        };
      }
    });
    
    // src/handler/links.ts
    function sameLinks(links2, other) {
      if (links2.length != other.length) return false;
      for (let i2 = 0; i2 < links2.length; i2++) {
        if (!equals(links2[i2].range, other[i2].range)) {
          return false;
        }
      }
      return true;
    }
    var floatFactory2, debounceTime11, NAMESPACE5, highlightGroup, Links, LinkBuffer;
    var init_links2 = __esm({
      "src/handler/links.ts"() {
        "use strict";
        init_main();
        init_events();
        init_languages();
        init_util();
        init_node();
        init_array();
        init_object();
        init_position();
        init_protocol();
        init_window();
        init_workspace();
        debounceTime11 = getConditionValue(200, 10);
        NAMESPACE5 = "links";
        highlightGroup = "CocLink";
        Links = class {
          constructor(nvim, handler) {
            this.nvim = nvim;
            this.handler = handler;
            this.setConfiguration();
            workspace_default.onDidChangeConfiguration(this.setConfiguration, this, this.disposables);
            events_default.on("CursorHold", async () => {
              await this.showTooltip();
            }, null, this.disposables);
            events_default.on(["CursorMoved", "InsertEnter"], () => {
              this.cancel();
            }, null, this.disposables);
            this.buffers = workspace_default.registerBufferSync((doc) => {
              return new LinkBuffer(doc);
            });
            this.disposables.push(this.buffers);
            languages_default.onDidLinksRefresh((selector) => {
              for (let item of this.buffers.items) {
                if (workspace_default.match(selector, item.doc)) {
                  item.fetchLinks();
                }
              }
            }, null, this.disposables);
          }
          nvim;
          handler;
          disposables = [];
          tooltip;
          tokenSource;
          buffers;
          setConfiguration(e2) {
            if (!e2 || e2.affectsConfiguration("links")) {
              this.tooltip = workspace_default.initialConfiguration.get("links.tooltip", false);
              if (e2) {
                for (let item of this.buffers.items) {
                  item.updateDocumentConfig();
                }
              }
            }
          }
          async showTooltip() {
            if (!this.tooltip) return;
            let link = await this.getCurrentLink();
            if (!link || !link.target) return;
            let text = link.target;
            if (link.tooltip) text += " " + link.tooltip;
            let doc = { content: text, filetype: "txt" };
            if (!floatFactory2) floatFactory2 = window_default.createFloatFactory({});
            await floatFactory2.show([doc]);
          }
          async getLinks() {
            let { doc } = await this.handler.getCurrentState();
            let buf = this.buffers.getItem(doc.bufnr);
            await buf.getLinks();
            return toArray(buf.links);
          }
          async getCurrentLink() {
            let links2 = await this.getLinks();
            let pos = await window_default.getCursorPosition();
            if (links2 && links2.length) {
              for (let link2 of links2) {
                if (positionInRange(pos, link2.range) == 0) {
                  if (!link2.target) {
                    let tokenSource = this.tokenSource = this.tokenSource || new import_node4.CancellationTokenSource();
                    link2 = await languages_default.resolveDocumentLink(link2, this.tokenSource.token);
                    this.tokenSource = void 0;
                    if (!link2.target || tokenSource.token.isCancellationRequested) continue;
                  }
                  return link2;
                }
              }
            }
            let line = await this.nvim.call("getline", ["."]);
            let regex2 = /\w+?:\/\/[-a-zA-Z0-9@:%._\\+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b[-a-zA-Z0-9@:%_\\+.~#?&//=]*/gi;
            let arr;
            let link;
            while ((arr = regex2.exec(line)) !== null) {
              let start = arr.index;
              if (start <= pos.character && start + arr[0].length >= pos.character) {
                link = DocumentLink.create(Range.create(pos.line, start, pos.line, start + arr[0].length), arr[0]);
                break;
              }
            }
            return link;
          }
          async openCurrentLink() {
            let link = await this.getCurrentLink();
            if (link) {
              await this.openLink(link);
              return true;
            }
            return false;
          }
          async openLink(link) {
            if (!link.target) throw new Error(`Failed to resolve link target`);
            await workspace_default.openResource(link.target);
          }
          getBuffer(bufnr) {
            return this.buffers.getItem(bufnr);
          }
          cancel() {
            if (this.tokenSource) {
              this.tokenSource.cancel();
              this.tokenSource = null;
            }
          }
          dispose() {
            disposeAll(this.disposables);
          }
        };
        LinkBuffer = class {
          // last highlight version
          constructor(doc) {
            this.doc = doc;
            this.fetchLinks = debounce2(() => {
              void this.getLinks();
            }, debounceTime11);
            if (this.hasProvider) this.fetchLinks();
          }
          doc;
          currentVersion = -1;
          tokenSource;
          _config;
          links = [];
          fetchLinks;
          get config() {
            if (this._config) return this._config;
            this.updateDocumentConfig();
            return this._config;
          }
          get hasProvider() {
            return languages_default.hasProvider("documentLink" /* DocumentLink */, this.doc);
          }
          updateDocumentConfig() {
            let configuration2 = workspace_default.getConfiguration("links", this.doc);
            this._config = {
              enable: configuration2.get("enable", true),
              highlight: configuration2.get("highlight", false)
            };
          }
          onChange(e2) {
            if (e2.contentChanges.length == 0) {
              this.highlight();
            } else {
              this.cancel();
              this.fetchLinks();
            }
          }
          highlight() {
            if (!this.config.highlight || !this.links) return;
            let { links: links2, doc } = this;
            if (isFalsyOrEmpty(links2)) {
              this.clearHighlight();
            } else {
              let highlights = [];
              links2.forEach((link) => {
                doc.addHighlights(highlights, highlightGroup, link.range);
              });
              this.doc.buffer.updateHighlights(NAMESPACE5, highlights, { priority: 2048 });
            }
          }
          clearHighlight() {
            this.buffer.clearNamespace(NAMESPACE5);
          }
          get buffer() {
            return this.doc.buffer;
          }
          cancel() {
            this.fetchLinks.clear();
            if (this.tokenSource) {
              this.tokenSource.cancel();
              this.tokenSource = null;
            }
          }
          async getLinks() {
            if (!this.hasProvider) {
              if (this.links.length > 0) {
                this.links = [];
                this.clearHighlight();
              }
              return;
            }
            if (!this.config.enable || this.currentVersion === this.doc.version) return;
            this.currentVersion = this.doc.version;
            this.cancel();
            let tokenSource = this.tokenSource = new import_node4.CancellationTokenSource();
            let token = tokenSource.token;
            let links2 = await languages_default.getDocumentLinks(this.doc.textDocument, token);
            this.tokenSource = void 0;
            if (token.isCancellationRequested || sameLinks(toArray(this.links), toArray(links2))) return;
            this.links = toArray(links2);
            this.highlight();
          }
          dispose() {
            this.cancel();
          }
        };
      }
    });
    
    // src/handler/locations.ts
    var LocationsHandler;
    var init_locations = __esm({
      "src/handler/locations.ts"() {
        "use strict";
        init_main();
        init_esm();
        init_languages();
        init_services();
        init_array();
        init_object();
        init_protocol();
        init_window();
        init_workspace();
        LocationsHandler = class {
          constructor(nvim, handler) {
            this.nvim = nvim;
            this.handler = handler;
          }
          nvim;
          handler;
          async request(method, fn) {
            let { doc, position } = await this.handler.getCurrentState();
            this.handler.checkProvider(method, doc.textDocument);
            await doc.synchronize();
            return await this.handler.withRequestToken(method, (token) => {
              return fn(doc.textDocument, position, token);
            }, true);
          }
          async definitions() {
            const { doc, position } = await this.handler.getCurrentState();
            this.handler.checkProvider("definition" /* Definition */, doc.textDocument);
            await doc.synchronize();
            const tokenSource = new import_node4.CancellationTokenSource();
            return languages_default.getDefinition(doc.textDocument, position, tokenSource.token);
          }
          async declarations() {
            const { doc, position } = await this.handler.getCurrentState();
            this.handler.checkProvider("declaration" /* Declaration */, doc.textDocument);
            await doc.synchronize();
            const tokenSource = new import_node4.CancellationTokenSource();
            return languages_default.getDeclaration(doc.textDocument, position, tokenSource.token);
          }
          async typeDefinitions() {
            const { doc, position } = await this.handler.getCurrentState();
            this.handler.checkProvider("typeDefinition" /* TypeDefinition */, doc.textDocument);
            await doc.synchronize();
            const tokenSource = new import_node4.CancellationTokenSource();
            return languages_default.getTypeDefinition(doc.textDocument, position, tokenSource.token);
          }
          async implementations() {
            const { doc, position } = await this.handler.getCurrentState();
            this.handler.checkProvider("implementation" /* Implementation */, doc.textDocument);
            await doc.synchronize();
            const tokenSource = new import_node4.CancellationTokenSource();
            return languages_default.getImplementation(doc.textDocument, position, tokenSource.token);
          }
          async references(excludeDeclaration) {
            const { doc, position } = await this.handler.getCurrentState();
            this.handler.checkProvider("reference" /* Reference */, doc.textDocument);
            await doc.synchronize();
            const tokenSource = new import_node4.CancellationTokenSource();
            return languages_default.getReferences(doc.textDocument, { includeDeclaration: !excludeDeclaration }, position, tokenSource.token);
          }
          async gotoDefinition(openCommand) {
            let definition = await this.request("definition" /* Definition */, (doc, position, token) => {
              return languages_default.getDefinition(doc, position, token);
            });
            await this.handleLocations(definition, openCommand);
            return !isFalsyOrEmpty(definition);
          }
          async gotoDeclaration(openCommand) {
            let definition = await this.request("declaration" /* Declaration */, (doc, position, token) => {
              return languages_default.getDeclaration(doc, position, token);
            });
            await this.handleLocations(definition, openCommand);
            return !isFalsyOrEmpty(definition);
          }
          async gotoTypeDefinition(openCommand) {
            let definition = await this.request("typeDefinition" /* TypeDefinition */, (doc, position, token) => {
              return languages_default.getTypeDefinition(doc, position, token);
            });
            await this.handleLocations(definition, openCommand);
            return !isFalsyOrEmpty(definition);
          }
          async gotoImplementation(openCommand) {
            let definition = await this.request("implementation" /* Implementation */, (doc, position, token) => {
              return languages_default.getImplementation(doc, position, token);
            });
            await this.handleLocations(definition, openCommand);
            return !isFalsyOrEmpty(definition);
          }
          async gotoReferences(openCommand, includeDeclaration = true) {
            let definition = await this.request("reference" /* Reference */, (doc, position, token) => {
              return languages_default.getReferences(doc, { includeDeclaration }, position, token);
            });
            await this.handleLocations(definition, openCommand);
            return !isFalsyOrEmpty(definition);
          }
          async getTagList() {
            let bufnr = await this.nvim.call("bufnr", "%");
            let doc = workspace_default.getDocument(bufnr);
            if (!doc || !doc.attached) return null;
            let position = await window_default.getCursorPosition();
            let word = await this.nvim.call("expand", "");
            if (!word) return null;
            if (!languages_default.hasProvider("definition" /* Definition */, doc.textDocument)) return null;
            let tokenSource = new import_node4.CancellationTokenSource();
            let definitions = [];
            try {
              let timeout2 = workspace_default.initialConfiguration.get("coc.preferences.tagDefinitionTimeout", 0);
              if (timeout2 > 0) {
                const abort = new Promise((_2, rej) => setTimeout(() => rej(new Error("timeout")), timeout2));
                definitions = await Promise.race([languages_default.getDefinition(doc.textDocument, position, tokenSource.token), abort]);
              } else {
                definitions = await languages_default.getDefinition(doc.textDocument, position, tokenSource.token);
              }
            } catch (e2) {
              return null;
            }
            if (!definitions || !definitions.length) return null;
            return definitions.map((location) => {
              let parsedURI = u.parse(location.uri);
              const filename = parsedURI.scheme == "file" ? parsedURI.fsPath : parsedURI.toString();
              return {
                name: word,
                cmd: `silent keepjumps call coc#cursor#move_to(${location.range.start.line}, ${location.range.start.character})`,
                filename
              };
            });
          }
          /**
           * Send custom request for locations to services.
           */
          async findLocations(id2, method, params, openCommand = false) {
            let { doc, position } = await this.handler.getCurrentState();
            params = params || {};
            Object.assign(params, {
              textDocument: { uri: doc.uri },
              position
            });
            let res = await services_default.sendRequest(id2, method, params);
            let locations = this.toLocations(res);
            await this.handleLocations(locations, openCommand);
            return locations.length > 0;
          }
          toLocations(location) {
            let res = [];
            if (location && hasOwnProperty2(location, "location") && hasOwnProperty2(location, "children")) {
              let getLocation2 = (item) => {
                if (!item) return;
                if (Location.is(item.location)) {
                  res.push(item.location);
                } else if (LocationLink.is(item.location)) {
                  let loc = item.location;
                  res.push({
                    uri: loc.targetUri,
                    range: loc.targetSelectionRange,
                    targetRange: loc.targetRange
                  });
                }
                if (item.children && item.children.length) {
                  for (let loc of item.children) {
                    getLocation2(loc);
                  }
                }
              };
              getLocation2(location);
              return res;
            }
            if (Location.is(location)) {
              res.push(location);
            } else if (LocationLink.is(location)) {
              res.push({
                uri: location.targetUri,
                range: location.targetSelectionRange,
                targetRange: location.targetRange
              });
            } else if (Array.isArray(location)) {
              for (let loc of location) {
                if (Location.is(loc)) {
                  res.push(loc);
                } else if (loc && typeof loc.targetUri === "string") {
                  res.push({
                    uri: loc.targetUri,
                    range: loc.targetSelectionRange,
                    targetRange: loc.targetRange
                  });
                }
              }
            }
            return res;
          }
          async handleLocations(locations, openCommand) {
            if (!locations) return;
            let len = locations.length;
            if (len == 0) return;
            if (len == 1 && openCommand !== false) {
              let { uri, range: range2 } = locations[0];
              await workspace_default.jumpTo(uri, range2.start, openCommand);
            } else {
              await workspace_default.showLocations(locations);
            }
          }
        };
      }
    });
    
    // src/handler/refactor/changes.ts
    var Changes;
    var init_changes = __esm({
      "src/handler/refactor/changes.ts"() {
        "use strict";
        init_object();
        Changes = class {
          stack = [];
          add(infos) {
            let map = /* @__PURE__ */ new Map();
            for (let info of infos) {
              map.set(info.lnum, info);
            }
            this.stack.push(map);
          }
          checkInsert(lnums) {
            if (!this.stack.length) return void 0;
            let last = this.stack[this.stack.length - 1];
            let arr = Array.from(last.keys()).sort((a2, b2) => a2 - b2);
            if (!equals(arr, lnums)) return void 0;
            this.stack.pop();
            return Array.from(last.values());
          }
        };
      }
    });
    
    // src/handler/refactor/buffer.ts
    function adjustRange(range2, offset) {
      let { start, end } = range2;
      return Range.create(start.line - offset, start.character, end.line - offset, end.character);
    }
    function fixChangeParams(e2) {
      let { contentChanges, bufnr, textDocument, original, originalLines, document: document2 } = e2;
      let { range: range2, text } = contentChanges[0];
      let changes = [{ range: range2, text }];
      if (!original) {
        if (emptyRange(range2) && range2.start.character != 0) {
          let lines = text.split(/\r?\n/);
          let last = lines[lines.length - 1];
          let before = originalLines[range2.start.line].slice(0, range2.start.character);
          if (last.startsWith(SEPARATOR) && before == last) {
            changes[0].text = before + lines.slice(0, -1).join("\n") + "\n";
            let { start, end } = range2;
            changes[0].range = Range.create(start.line, 0, end.line, 0);
          }
        }
        if (emptyRange(range2) && range2.start.character == 0) {
          let lines = text.split(/\r?\n/);
          let last = lines[lines.length - 1];
          let nest = lines.length > 1 ? lines[lines.length - 2] : "";
          let prev = originalLines[range2.start.line - 1];
          if (last == "" && nest.startsWith(SEPARATOR) && prev == nest) {
            changes[0].text = [prev, ...lines.slice(0, -2)].join("\n") + "\n";
            let { start, end } = range2;
            changes[0].range = Range.create(start.line - 1, 0, end.line - 1, 0);
          }
        }
      } else {
        let lines = original.split(/\r?\n/);
        let last = lines[lines.length - 1];
        if (last.startsWith(SEPARATOR)) {
          let before = originalLines[range2.start.line].slice(0, range2.start.character);
          if (before == last) {
            original = before + lines.slice(0, -1).join("\n") + "\n";
            let { start, end } = range2;
            changes[0].range = Range.create(start.line, 0, end.line, 0);
          }
        }
        let prev = originalLines[range2.start.line - 1];
        let nest = lines.length > 1 ? lines[lines.length - 2] : "";
        if (last == "" && nest.startsWith(SEPARATOR) && prev == nest && range2.start.character == 0 && range2.end.character == 0) {
          original = prev + "\n" + lines.slice(0, -2).join("\n") + "\n";
          let { start, end } = range2;
          changes[0].range = Range.create(start.line - 1, 0, end.line - 1, 0);
        }
      }
      return { contentChanges: changes, bufnr, textDocument, document: document2, original, originalLines };
    }
    var logger66, SEPARATOR, RefactorBuffer;
    var init_buffer5 = __esm({
      "src/handler/refactor/buffer.ts"() {
        "use strict";
        init_main3();
        init_main();
        init_esm();
        init_logger();
        init_highlighter();
        init_util();
        init_fs();
        init_lodash();
        init_mutex();
        init_node();
        init_object();
        init_position();
        init_string();
        init_textedit();
        init_window();
        init_workspace();
        init_changes();
        logger66 = createLogger("handler-refactorBuffer");
        SEPARATOR = "\u3000";
        RefactorBuffer = class {
          constructor(bufnr, srcId4, nvim, config, opts) {
            this.bufnr = bufnr;
            this.srcId = srcId4;
            this.nvim = nvim;
            this.config = config;
            this.opts = opts;
            this.changes = new Changes();
            this.disposables.push(workspace_default.registerLocalKeymap(bufnr, "n", "", this.splitOpen.bind(this), true));
            if (config.showMenu) {
              this.disposables.push(workspace_default.registerLocalKeymap(bufnr, "n", config.showMenu, this.showMenu.bind(this), true));
            }
            workspace_default.onDidChangeTextDocument(this.onDocumentChange, this, this.disposables);
          }
          bufnr;
          srcId;
          nvim;
          config;
          opts;
          _disposed = false;
          _fileItems = [];
          mutex = new Mutex();
          disposables = [];
          matchIds = /* @__PURE__ */ new Set();
          changes;
          changing = false;
          async showMenu() {
            let res = await window_default.showMenuPicker(["Tab open", "Remove block"]);
            if (res == -1) return;
            let fileRange = await this.searchCurrentRange();
            if (!fileRange) return;
            if (res == 0) {
              let before = await this.nvim.eval(`strpart(getline('.'), 0 ,col('.') - 1)`);
              let character = before.length;
              let bufname = this.getAbsolutePath(fileRange.filepath);
              this.nvim.call("coc#util#jump", ["tabe", bufname, [fileRange.line, character]], true);
            }
            if (res == 1) {
              let range2 = this.getDeleteRange(fileRange);
              await this.document.applyEdits([TextEdit.del(range2)]);
            }
          }
          get fileItems() {
            return this._fileItems;
          }
          getFileItem(uri) {
            let filepath = u.parse(uri).fsPath;
            return this._fileItems.find((o2) => sameFile(o2.filepath, filepath));
          }
          getFileRange(lnum) {
            for (let item of this._fileItems) {
              for (let r2 of item.ranges) {
                if (r2.lnum == lnum) {
                  return Object.assign(omit(r2, ["highlights"]), { filepath: item.filepath });
                }
              }
            }
            throw new Error(`File range not found at lnum: ${lnum}`);
          }
          onChange(e2) {
            if (this.changing) return;
            if (e2.contentChanges.length === 0) {
              this.highlightLineNr();
              this.nvim.redrawVim();
              return;
            }
            let { nvim } = this;
            e2 = fixChangeParams(e2);
            let change = e2.contentChanges[0];
            let { original } = e2;
            if (change.range.end.line > 2) {
              nvim.call("setbufvar", [e2.bufnr, "&modified", 1], true);
            }
            let { range: range2, text } = change;
            let lineChange = lineCountChange(TextEdit.replace(range2, text));
            if (lineChange == 0) return;
            let edits = [TextEdit.replace(range2, text)];
            let addRanges = [];
            if (!emptyRange(range2) && !text.includes("\u3000")) {
              let sl = range2.start.line;
              let lnums = [];
              let lines = original.split(/\r?\n/);
              for (let i2 = 0; i2 < lines.length; i2++) {
                let line = lines[i2];
                if (line.length > 1 && line.includes("\u3000")) {
                  lnums.push(sl + i2 + 1);
                }
              }
              if (lnums.length) {
                let infos = lnums.map((lnum) => {
                  return this.getFileRange(lnum);
                });
                for (let item of this._fileItems) {
                  item.ranges = item.ranges.filter((o2) => !lnums.includes(o2.lnum));
                }
                this.changes.add(infos);
              }
            } else if (emptyRange(range2) && text.includes("\u3000")) {
              let lines = text.split(/\r?\n/);
              let lnums = [];
              let sl = range2.start.line;
              for (let i2 = 0; i2 < lines.length; i2++) {
                let line = lines[i2];
                if (line.length > 1 && line.includes("\u3000")) {
                  lnums.push(sl + i2 + 1);
                }
              }
              if (lnums.length) {
                let res = this.changes.checkInsert(lnums);
                if (res) addRanges = res;
              }
            } else if (text.includes("\u3000")) {
              edits = this.diffChanges(original, text);
              edits.forEach((e3) => {
                e3.range = adjustRangePosition(e3.range, range2.start);
              });
            }
            this.adjustLnums(edits);
            nvim.pauseNotification();
            this.highlightLineNr();
            nvim.resumeNotification(true, true);
            if (addRanges.length) {
              addRanges.forEach((info) => {
                let item = this._fileItems.find((o2) => o2.filepath == info.filepath);
                item.ranges.push(info);
              });
            }
          }
          diffChanges(original, text) {
            let edits = [];
            let diffs = fastDiff(original, text);
            let offset = 0;
            let orig = TextDocument2.create("file:///1", "", 0, original);
            for (let i2 = 0; i2 < diffs.length; i2++) {
              let diff = diffs[i2];
              let pos = orig.positionAt(offset);
              if (diff[0] == fastDiff.EQUAL) {
                offset = offset + diff[1].length;
              } else if (diff[0] == fastDiff.DELETE) {
                let end = orig.positionAt(offset + diff[1].length);
                if (diffs[i2 + 1] && diffs[i2 + 1][0] == fastDiff.INSERT) {
                  let text2 = diffs[i2 + 1][1];
                  edits.push(TextEdit.replace(Range.create(pos, end), text2));
                  i2 = i2 + 1;
                } else {
                  edits.push(TextEdit.replace(Range.create(pos, end), ""));
                }
                offset = offset + diff[1].length;
              } else if (diff[0] == fastDiff.INSERT) {
                edits.push(TextEdit.insert(pos, diff[1]));
              }
            }
            return edits;
          }
          /**
           * Handle changes of other buffers.
           */
          async onDocumentChange(e2) {
            if (this.changing || e2.contentChanges.length === 0) return;
            let { uri } = e2.textDocument;
            let fileItem = this.getFileItem(uri);
            if (!fileItem) return;
            let { range: range2, text } = e2.contentChanges[0];
            let lineChange = lineCountChange(TextEdit.replace(range2, text));
            let edits = [];
            let deleteIndexes = [];
            for (let i2 = 0; i2 < fileItem.ranges.length; i2++) {
              let r2 = fileItem.ranges[i2];
              if (range2.start.line >= r2.start + r2.lines.length) continue;
              if (range2.end.line < r2.start) {
                r2.start = r2.start + lineChange;
                continue;
              }
              let textDocument = workspace_default.getDocument(uri).textDocument;
              let end = r2.start + r2.lines.length + lineChange;
              let newLines = textDocument.lines.slice(r2.start, end);
              if (!newLines.length) {
                deleteIndexes.push(i2);
                let replaceRange = this.getDeleteRange(r2);
                edits.push(TextEdit.replace(replaceRange, ""));
              } else {
                r2.lines = newLines;
                let replaceRange = this.getReplaceRange(r2);
                edits.push(TextEdit.replace(replaceRange, newLines.join("\n")));
              }
            }
            if (deleteIndexes.length) {
              fileItem.ranges = fileItem.ranges.filter((_2, i2) => !deleteIndexes.includes(i2));
            }
            this._fileItems = this._fileItems.filter((o2) => o2.ranges && o2.ranges.length > 0);
            if (edits.length) {
              this.adjustLnums(edits);
              this.changing = true;
              try {
                await this.document.applyEdits(edits);
              } finally {
                this.changing = false;
              }
            }
            this.nvim.pauseNotification();
            this.highlightLineNr();
            this.buffer.setOption("modified", false, true);
            await this.nvim.resumeNotification(true);
          }
          adjustLnums(edits) {
            for (let item of this._fileItems) {
              for (let fileRange of item.ranges) {
                let line = fileRange.lnum - 1;
                fileRange.lnum += getChangedLineCount(Position.create(line, 0), edits);
              }
            }
          }
          /**
           * Current changed file ranges
           */
          async getFileChanges() {
            let changes = [];
            let lines = await this.buffer.lines;
            lines.push(SEPARATOR);
            let arr = [];
            let fsPath2;
            let lnum;
            for (let i2 = 0; i2 < lines.length; i2++) {
              let line = lines[i2];
              if (line.startsWith(SEPARATOR)) {
                if (fsPath2) {
                  changes.push({
                    filepath: fsPath2,
                    lines: arr.slice(),
                    lnum
                  });
                  fsPath2 = void 0;
                  arr = [];
                }
                if (line.length > 1) {
                  let ms = line.match(/^\u3000(.*)/);
                  if (ms) {
                    fsPath2 = this.getAbsolutePath(ms[1].replace(/\s+$/, ""));
                    lnum = i2 + 1;
                    arr = [];
                  }
                }
              } else {
                arr.push(line);
              }
            }
            return changes;
          }
          /**
           * Open line under cursor in split window
           */
          async splitOpen() {
            let { nvim } = this;
            let win = nvim.createWindow(this.opts.fromWinid);
            let valid = await win.valid;
            let before = await nvim.eval(`strpart(getline('.'), 0 ,col('.') - 1)`);
            let character = before.length;
            let fileRange = await this.searchCurrentRange();
            if (fileRange) {
              let bufname = this.getAbsolutePath(fileRange.filepath);
              nvim.pauseNotification();
              if (valid) {
                nvim.call("win_gotoid", [this.opts.fromWinid], true);
                this.nvim.call("coc#util#jump", ["edit", bufname, [fileRange.line, character]], true);
              } else {
                this.nvim.call("coc#util#jump", ["belowright vs", bufname, [fileRange.line, character]], true);
              }
              nvim.command("normal! zz", true);
              await nvim.resumeNotification(true);
              if (!valid) {
                this.opts.fromWinid = await nvim.call("win_getid");
              }
            }
          }
          async searchCurrentRange() {
            let { nvim } = this;
            let lines = await nvim.eval('getline(1,line("."))');
            let len = lines.length;
            for (let i2 = 0; i2 < len; i2++) {
              let line = lines[len - i2 - 1];
              let ms = line.match(/^\u3000(.+)/);
              if (ms) {
                let r2 = this.getFileRange(len - i2);
                return Object.assign({ line: r2.start + (i2 == 0 ? 1 : i2) - 1 }, r2);
              }
            }
            return void 0;
          }
          /**
           * Add FileItem to refactor buffer.
           */
          async addFileItems(items) {
            if (this._disposed) return;
            let { cwd: cwd2 } = this.opts;
            let { document: document2 } = this;
            const release = await this.mutex.acquire();
            try {
              await document2.synchronize();
              let count = document2.lineCount;
              let highlighter = new Highlighter();
              let hlRanges = [];
              for (let item of items) {
                let ranges = [];
                for (let range2 of item.ranges) {
                  highlighter.addLine(SEPARATOR);
                  highlighter.addLine(SEPARATOR);
                  let lnum = count + highlighter.length;
                  highlighter.addText(`${isParentFolder(cwd2, item.filepath) ? path.relative(cwd2, item.filepath) : item.filepath}`);
                  let n2 = String(range2.start + 1).length + String(range2.end).length + 4;
                  if (!this.srcId) highlighter.addText(" ".repeat(n2));
                  let base = 0 - highlighter.length - count;
                  if (range2.highlights) {
                    hlRanges.push(...range2.highlights.map((r2) => adjustRange(r2, base)));
                  }
                  let { lines, start, end, highlights } = range2;
                  if (!lines) {
                    lines = await this.getLines(item.filepath, start, end);
                  }
                  ranges.push({ lines, lnum, start, highlights });
                  highlighter.addLines(lines);
                }
                if (ranges.length) {
                  let newItem = { filepath: item.filepath, ranges };
                  let fileItem = this._fileItems.find((o2) => o2.filepath == item.filepath);
                  if (fileItem) {
                    fileItem.ranges.push(...newItem.ranges);
                  } else {
                    this._fileItems.push(newItem);
                  }
                }
              }
              let { nvim, buffer } = this;
              this.changing = true;
              nvim.pauseNotification();
              highlighter.render(buffer, count);
              this.highlightLineNr();
              buffer.setOption("modified", false, true);
              buffer.setOption("undolevels", 1e3, true);
              if (count == 2 && hlRanges.length) {
                let pos = hlRanges[0].start;
                nvim.call("coc#cursor#move_to", [pos.line, pos.character], true);
              }
              await nvim.resumeNotification(true);
              await document2.patchChange();
              this.changing = false;
              await window_default.cursors.addRanges(hlRanges);
            } catch (e2) {
              this.changing = false;
              logger66.error(`Error on add file item:`, e2);
            }
            release();
          }
          findRange(filepath, lnum) {
            let item = this.fileItems.find((o2) => sameFile(this.getAbsolutePath(o2.filepath), filepath));
            let range2 = item.ranges.find((o2) => o2.lnum == lnum);
            if (!range2) throw new Error(`File range not found at lnum: ${lnum}`);
            return range2;
          }
          /**
           * Save changes to buffers/files, return false when no change made.
           */
          async save() {
            let { nvim } = this;
            let doc = this.document;
            let { buffer } = doc;
            await doc.patchChange();
            let changes = await this.getFileChanges();
            if (!changes) return;
            changes.sort((a2, b2) => a2.lnum - b2.lnum);
            let fileChanges = [];
            for (let i2 = 0; i2 < changes.length; i2++) {
              let change = changes[i2];
              let range2 = this.findRange(change.filepath, change.lnum);
              if (equals(range2.lines, change.lines)) continue;
              fileChanges.push(Object.assign({ start: range2.start, end: range2.start + range2.lines.length }, change));
              range2.lines = change.lines;
            }
            if (fileChanges.length == 0) {
              await window_default.showInformationMessage("No change.");
              await buffer.setOption("modified", false);
              return false;
            }
            let changeMap = {};
            for (let change of fileChanges) {
              let uri = u.file(change.filepath).toString();
              let edits = changeMap[uri] || [];
              edits.push({
                range: Range.create(change.start, 0, change.end, 0),
                newText: change.lines.join("\n") + "\n"
              });
              changeMap[uri] = edits;
            }
            this.changing = true;
            try {
              await workspace_default.applyEdit({ changes: changeMap });
            } finally {
              this.changing = false;
            }
            for (let item of this.fileItems) {
              let uri = u.file(this.getAbsolutePath(item.filepath)).toString();
              let edits = changeMap[uri];
              if (edits && edits.length > 0) {
                item.ranges.forEach((r2) => {
                  r2.start += getChangedLineCount(Position.create(r2.start, 0), edits);
                });
              }
            }
            nvim.pauseNotification();
            buffer.setOption("modified", false, true);
            if (this.config.saveToFile) {
              nvim.command("silent noa wa", true);
            }
            this.highlightLineNr();
            await nvim.resumeNotification();
            return true;
          }
          async getLines(fsPath2, start, end) {
            let uri = u.file(fsPath2).toString();
            let doc = workspace_default.getDocument(uri);
            if (doc) return doc.getLines(start, end);
            return await readFileLines(fsPath2, start, end - 1);
          }
          getAbsolutePath(filepath) {
            if (path.isAbsolute(filepath)) return filepath;
            return path.join(this.opts.cwd, filepath);
          }
          /**
           * Use conceal/virtual text to add lineNr
           */
          highlightLineNr() {
            let { fileItems, nvim, srcId: srcId4, bufnr } = this;
            let { winid, cwd: cwd2 } = this.opts;
            let info = {};
            if (srcId4) {
              nvim.call("nvim_buf_clear_namespace", [bufnr, srcId4, 0, -1], true);
              for (let item of fileItems) {
                for (let range2 of item.ranges) {
                  let end = range2.start + range2.lines.length;
                  let text = `${range2.start + 1}:${end}`;
                  info[range2.lnum] = [range2.start + 1, end];
                  nvim.call("nvim_buf_set_virtual_text", [bufnr, srcId4, range2.lnum - 1, [[text, "LineNr"]], {}], true);
                }
              }
            } else {
              if (this.matchIds.size) {
                nvim.call("coc#highlight#clear_matches", [winid, Array.from(this.matchIds)], true);
                this.matchIds.clear();
              }
              let id2 = 2e3;
              for (let item of fileItems) {
                let filename = `${cwd2 ? path.relative(cwd2, item.filepath) : item.filepath}`;
                let col = byteLength(filename) + 1;
                for (let range2 of item.ranges) {
                  let end = range2.start + range2.lines.length;
                  let text = `:${range2.start + 1}:${end}`;
                  for (let i2 = 0; i2 < text.length; i2++) {
                    let ch = text[i2];
                    this.matchIds.add(id2);
                    info[range2.lnum] = [range2.start + 1, end];
                    nvim.call("matchaddpos", ["Conceal", [[range2.lnum, col + i2]], 99, id2, { conceal: ch, window: winid }], true);
                    id2++;
                  }
                }
              }
            }
            this.buffer.setVar("line_infos", info, true);
          }
          getDeleteRange(r2) {
            let { document: document2 } = this;
            let start = r2.lnum - 1;
            let end;
            let total = document2.lineCount;
            for (let i2 = start; i2 < total; i2++) {
              if (i2 + 1 == total) {
                end = Position.create(total, 0);
                break;
              }
              let line = document2.getline(i2);
              if (line === SEPARATOR) {
                end = Position.create(i2 + 1, 0);
                break;
              }
              if (i2 != start && line.startsWith(SEPARATOR)) {
                end = Position.create(i2, 0);
                break;
              }
            }
            return Range.create(Position.create(start, 0), end);
          }
          getReplaceRange(r2) {
            let { document: document2 } = this;
            let start = r2.lnum;
            let end;
            let total = document2.lineCount;
            for (let i2 = start; i2 < total; i2++) {
              let line = document2.getline(i2);
              if (i2 + 1 == total) {
                end = Position.create(i2, line.length);
                break;
              }
              let next = document2.getline(i2 + 1);
              if (next.startsWith("\u3000")) {
                end = Position.create(i2, line.length);
                break;
              }
            }
            return Range.create(Position.create(start, 0), end);
          }
          get valid() {
            return this.buffer.valid;
          }
          get buffer() {
            return this.nvim.createBuffer(this.bufnr);
          }
          get document() {
            return workspace_default.getDocument(this.bufnr);
          }
          dispose() {
            this._disposed = true;
            disposeAll(this.disposables);
          }
        };
      }
    });
    
    // src/handler/refactor/search.ts
    function getPathFromArgs(args) {
      if (args.length < 2) return void 0;
      let len = args.length;
      if (args[len - 1].startsWith("-")) return void 0;
      if (args[len - 2].startsWith("-")) return void 0;
      return args[len - 1];
    }
    var import_events58, spawn2, logger67, defaultArgs, controlCode2, Task2, Search;
    var init_search = __esm({
      "src/handler/refactor/search.ts"() {
        "use strict";
        import_events58 = require("events");
        init_main();
        init_logger();
        init_highlighter();
        init_ansiparse();
        init_mutex();
        init_node();
        init_window();
        ({ spawn: spawn2 } = child_process);
        logger67 = createLogger("handler-search");
        defaultArgs = ["--color", "ansi", "--colors", "path:fg:black", "--colors", "line:fg:green", "--colors", "match:fg:red", "--no-messages", "--heading", "-n"];
        controlCode2 = "\x1B";
        Task2 = class extends import_events58.EventEmitter {
          process;
          start(cmd, args, cwd2) {
            if (process.platform === "win32") cmd = which.sync(cmd, { nothrow: true }) ?? cmd;
            this.process = spawn2(cmd, args, { cwd: cwd2, shell: process.platform === "win32" && /\.(cmd|bat)$/i.test(cmd) });
            this.process.on("error", (e2) => {
              this.emit("error", e2.message);
            });
            const rl = readline.createInterface(this.process.stdout);
            let start;
            let fileItem;
            let lines = [];
            let highlights = [];
            let create2 = true;
            rl.on("line", (content) => {
              if (content.includes(controlCode2)) {
                let items = ansiparse(content);
                if (items.length == 0) return;
                if (items[0].foreground == "black") {
                  fileItem = { filepath: path.join(cwd2, items[0].text), ranges: [] };
                  return;
                }
                let normalLine = items[0].foreground == "green";
                if (normalLine) {
                  let lnum = parseInt(items[0].text, 10) - 1;
                  let padlen2 = items[0].text.length + 1;
                  if (create2) {
                    start = lnum;
                    create2 = false;
                  }
                  let line = "";
                  for (let item of items) {
                    if (item.foreground == "red") {
                      let l2 = lnum - start;
                      let c2 = line.length - padlen2;
                      highlights.push(Range.create(l2, c2, l2, c2 + item.text.length));
                    }
                    line += item.text;
                  }
                  let currline = line.slice(padlen2);
                  lines.push(currline);
                }
              } else {
                let fileEnd = content.trim().length == 0;
                if (fileItem && (fileEnd || content.trim() == "--")) {
                  fileItem.ranges.push({ lines, highlights, start });
                }
                if (fileEnd) {
                  this.emit("item", fileItem);
                  fileItem = null;
                }
                lines = [];
                highlights = [];
                create2 = true;
              }
            });
            rl.on("close", () => {
              if (fileItem) {
                if (lines.length) {
                  fileItem.ranges.push({ lines, highlights, start });
                }
                this.emit("item", fileItem);
              }
              lines = highlights = fileItem = null;
              this.emit("end");
            });
          }
          dispose() {
            if (this.process) {
              this.process.kill();
            }
          }
        };
        Search = class {
          constructor(nvim, cmd = "rg") {
            this.nvim = nvim;
            this.cmd = cmd;
          }
          nvim;
          cmd;
          task;
          run(args, cwd2, refactorBuf) {
            let { nvim, cmd } = this;
            let { afterContext, beforeContext } = refactorBuf.config;
            let argList = ["-A", afterContext.toString(), "-B", beforeContext.toString()].concat(defaultArgs, args);
            let p2 = getPathFromArgs(args);
            if (p2) argList.pop();
            argList.push("--", p2 ? path.isAbsolute(p2) ? p2 : `./${p2.replace(/^\.\//, "")}` : "./");
            this.task = new Task2();
            this.task.start(cmd, argList, cwd2);
            let mutex2 = new Mutex();
            let files = 0;
            let matches = 0;
            let start = Date.now();
            let fileItems = [];
            const addFileItems = async () => {
              if (fileItems.length == 0) return;
              let items = fileItems.slice();
              fileItems = [];
              const release = await mutex2.acquire();
              try {
                await refactorBuf.addFileItems(items);
              } catch (e2) {
                logger67.error(e2);
              }
              release();
            };
            return new Promise((resolve, reject) => {
              let interval2 = setInterval(addFileItems, 300);
              this.task.on("item", async (fileItem) => {
                files++;
                matches = matches + fileItem.ranges.reduce((p3, r2) => p3 + r2.highlights.length, 0);
                fileItems.push(fileItem);
              });
              this.task.on("error", (message) => {
                clearInterval(interval2);
                void window_default.showErrorMessage(`Error on command "${cmd}": ${message}`);
                this.task = null;
                reject(new Error(message));
              });
              this.task.on("end", async () => {
                clearInterval(interval2);
                try {
                  await addFileItems();
                  const release = await mutex2.acquire();
                  release();
                  this.task.removeAllListeners();
                  this.task = null;
                  let buf = refactorBuf.buffer;
                  if (buf) {
                    nvim.pauseNotification();
                    if (files == 0) {
                      buf.setLines(["No match found"], { start: 1, end: 2, strictIndexing: false }, true);
                      void buf.addHighlight({ line: 1, srcId: -1, colEnd: -1, colStart: 0, hlGroup: "Error" });
                      buf.setOption("modified", false, true);
                    } else {
                      let highlighter = new Highlighter();
                      highlighter.addText("Files", "MoreMsg");
                      highlighter.addText(": ");
                      highlighter.addText(`${files} `, "Number");
                      highlighter.addText("Matches", "MoreMsg");
                      highlighter.addText(": ");
                      highlighter.addText(`${matches} `, "Number");
                      highlighter.addText("Duration", "MoreMsg");
                      highlighter.addText(": ");
                      highlighter.addText(`${Date.now() - start}ms`, "Number");
                      highlighter.render(buf, 1, 2);
                    }
                    buf.setOption("modified", false, true);
                    nvim.resumeNotification(false, true);
                  }
                } catch (e2) {
                  reject(e2);
                  return;
                }
                resolve();
              });
            });
          }
          abort() {
            this.task?.dispose();
          }
        };
      }
    });
    
    // src/handler/refactor/index.ts
    function adjustRange2(range2, offset) {
      let { start, end } = range2;
      return Range.create(start.line - offset, start.character, end.line - offset, end.character);
    }
    var name, refactorId, srcId3, Refactor;
    var init_refactor = __esm({
      "src/handler/refactor/index.ts"() {
        "use strict";
        init_main();
        init_esm();
        init_events();
        init_languages();
        init_util();
        init_fs();
        init_position();
        init_protocol();
        init_textedit();
        init_workspace();
        init_buffer5();
        init_search();
        name = "__coc_refactor__";
        refactorId = 0;
        Refactor = class {
          constructor(nvim, handler) {
            this.nvim = nvim;
            this.handler = handler;
            this.setConfiguration();
            workspace_default.onDidChangeConfiguration(this.setConfiguration, this, this.disposables);
            events_default.on("BufUnload", (bufnr) => {
              let buf = this.buffers.get(bufnr);
              if (buf) {
                buf.dispose();
                this.buffers.delete(bufnr);
              }
            }, null, this.disposables);
            workspace_default.onDidChangeTextDocument((e2) => {
              let buf = this.buffers.get(e2.bufnr);
              if (buf) buf.onChange(e2);
            }, null, this.disposables);
          }
          nvim;
          handler;
          buffers = /* @__PURE__ */ new Map();
          config;
          disposables = [];
          _onCreate = new import_node4.Emitter();
          onCreate = this._onCreate.event;
          has(bufnr) {
            return this.buffers.has(bufnr);
          }
          setConfiguration(e2) {
            if (e2 && !e2.affectsConfiguration("refactor")) return;
            let config = workspace_default.getConfiguration("refactor", null);
            this.config = Object.assign(this.config || {}, {
              afterContext: config.get("afterContext", 3),
              beforeContext: config.get("beforeContext", 3),
              openCommand: config.get("openCommand", "vsplit"),
              saveToFile: config.get("saveToFile", true),
              showMenu: config.get("showMenu", "")
            });
          }
          /**
           * Refactor of current symbol
           */
          async doRefactor() {
            let { doc, position } = await this.handler.getCurrentState();
            if (!languages_default.hasProvider("rename" /* Rename */, doc.textDocument)) {
              throw new Error(`Rename provider not found for current buffer`);
            }
            await doc.synchronize();
            let edit2 = await this.handler.withRequestToken("refactor", async (token) => {
              let res = await languages_default.prepareRename(doc.textDocument, position, token);
              if (token.isCancellationRequested) return null;
              if (res === false) throw new Error(`Provider returns null on prepare, unable to rename at current position`);
              let edit3 = await languages_default.provideRenameEdits(doc.textDocument, position, "NewName", token);
              if (token.isCancellationRequested) return null;
              if (!edit3) throw new Error("Provider returns null for rename edits.");
              return edit3;
            });
            if (edit2) {
              await this.fromWorkspaceEdit(edit2, doc.filetype);
            }
          }
          /**
           * Search by rg
           */
          async search(args) {
            let buf = await this.createRefactorBuffer();
            let cwd2 = await this.nvim.call("getcwd", []);
            let search = new Search(this.nvim);
            await search.run(args, cwd2, buf);
          }
          async save(bufnr) {
            let buf = this.buffers.get(bufnr);
            if (buf) return await buf.save();
          }
          getBuffer(bufnr) {
            return this.buffers.get(bufnr);
          }
          /**
           * Create initialized refactor buffer
           */
          async createRefactorBuffer(filetype, conceal = false) {
            let { nvim } = this;
            let [fromWinid, cwd2] = await nvim.eval("[win_getid(),getcwd()]");
            let { openCommand } = this.config;
            if (!nvim.isVim && !srcId3) srcId3 = await this.nvim.createNamespace("coc-refactor");
            nvim.pauseNotification();
            nvim.command(`${openCommand} ${name}${refactorId++}`, true);
            nvim.command(`setl buftype=acwrite nobuflisted bufhidden=wipe nofen wrap conceallevel=2 concealcursor=n`, true);
            nvim.command(`setl undolevels=-1 nolist nospell noswapfile foldmethod=expr foldexpr=coc#util#refactor_foldlevel(v:lnum)`, true);
            nvim.command(`setl foldtext=coc#util#refactor_fold_text(v:foldstart)`, true);
            nvim.call("setline", [1, ["Save current buffer to make changes", SEPARATOR]], true);
            nvim.call("matchadd", ["Comment", "\\%1l"], true);
            nvim.call("matchadd", ["Conceal", "^\\%u3000"], true);
            nvim.call("matchadd", ["Label", "^\\%u3000\\zs\\S\\+"], true);
            nvim.command("setl nomod", true);
            if (filetype) nvim.command(`runtime! syntax/${filetype}.vim`, true);
            nvim.call("coc#util#do_autocmd", ["CocRefactorOpen"], true);
            await nvim.resumeNotification();
            let [bufnr, win] = await nvim.eval('[bufnr("%"),win_getid()]');
            let opts = { fromWinid, winid: win, cwd: cwd2 };
            await workspace_default.document;
            let buf = new RefactorBuffer(bufnr, conceal ? void 0 : srcId3, this.nvim, this.config, opts);
            this.buffers.set(bufnr, buf);
            return buf;
          }
          /**
           * Create refactor buffer from lines
           */
          async fromLines(lines) {
            let buf = await this.createRefactorBuffer();
            await buf.buffer.setLines(lines, { start: 0, end: -1, strictIndexing: false });
            return buf;
          }
          /**
           * Create refactor buffer from locations
           */
          async fromLocations(locations, filetype) {
            if (!locations || locations.length == 0) return void 0;
            let changes = {};
            let edit2 = { changes };
            for (let location of locations) {
              let edits = changes[location.uri] || [];
              edits.push({ range: location.range, newText: "" });
              changes[location.uri] = edits;
            }
            return await this.fromWorkspaceEdit(edit2, filetype);
          }
          /**
           * Start refactor from workspaceEdit
           */
          async fromWorkspaceEdit(edit2, filetype) {
            if (!edit2 || emptyWorkspaceEdit(edit2)) return void 0;
            let items = [];
            let { beforeContext, afterContext } = this.config;
            let { changes, documentChanges } = edit2;
            const rangesMap = /* @__PURE__ */ new Map();
            if (documentChanges) {
              for (let change of documentChanges || []) {
                if (TextDocumentEdit.is(change)) {
                  let { textDocument, edits } = change;
                  rangesMap.set(textDocument.uri, edits.map((o2) => o2.range));
                }
              }
            } else if (changes) {
              for (let [uri, edits] of Object.entries(changes)) {
                rangesMap.set(uri, edits.map((o2) => o2.range));
              }
            }
            for (let [key, editRanges] of rangesMap.entries()) {
              let max = await this.getLineCount(key);
              let ranges = [];
              let start = null;
              let end = null;
              let highlights = [];
              editRanges.sort(compareRangesUsingStarts);
              for (let range2 of editRanges) {
                let { line } = range2.start;
                let s2 = Math.max(0, line - beforeContext);
                if (start != null && s2 < end) {
                  end = Math.min(max, line + afterContext + 1);
                  highlights.push(adjustRange2(range2, start));
                } else {
                  if (start != null) ranges.push({ start, end, highlights });
                  start = s2;
                  end = Math.min(max, line + afterContext + 1);
                  highlights = [adjustRange2(range2, start)];
                }
              }
              if (start != null) ranges.push({ start, end, highlights });
              items.push({ ranges, filepath: u.parse(key).fsPath });
            }
            let buf = await this.createRefactorBuffer(filetype);
            await buf.addFileItems(items);
            return buf;
          }
          async getLineCount(uri) {
            let doc = workspace_default.getDocument(uri);
            if (doc) return doc.lineCount;
            return await getFileLineCount(u.parse(uri).fsPath);
          }
          reset() {
            for (let buf of this.buffers.values()) {
              buf.dispose();
            }
            this.buffers.clear();
          }
          dispose() {
            this._onCreate.dispose();
            this.buffers.clear();
            disposeAll(this.disposables);
          }
        };
      }
    });
    
    // src/handler/rename.ts
    var Rename;
    var init_rename2 = __esm({
      "src/handler/rename.ts"() {
        "use strict";
        init_main();
        init_languages();
        init_position();
        init_protocol();
        init_window();
        init_workspace();
        Rename = class {
          constructor(nvim, handler) {
            this.nvim = nvim;
            this.handler = handler;
          }
          nvim;
          handler;
          async getWordEdit() {
            let { doc, position } = await this.handler.getCurrentState();
            let range2 = doc.getWordRangeAtPosition(position);
            if (!range2 || emptyRange(range2)) return null;
            let curname = doc.textDocument.getText(range2);
            if (languages_default.hasProvider("rename" /* Rename */, doc.textDocument)) {
              await doc.synchronize();
              let requestTokenSource = new import_node4.CancellationTokenSource();
              let res = await languages_default.prepareRename(doc.textDocument, position, requestTokenSource.token);
              if (res !== false) {
                let newName = curname.startsWith("a") ? "b" : "a";
                let edit2 = await languages_default.provideRenameEdits(doc.textDocument, position, newName, requestTokenSource.token);
                if (edit2) return edit2;
              }
            }
            void window_default.showInformationMessage("Rename provider not found, extract word ranges from current buffer");
            let ranges = doc.getSymbolRanges(curname);
            return {
              changes: {
                [doc.uri]: ranges.map((r2) => ({ range: r2, newText: curname }))
              }
            };
          }
          async rename(newName) {
            let { doc, position } = await this.handler.getCurrentState();
            this.handler.checkProvider("rename" /* Rename */, doc.textDocument);
            await doc.synchronize();
            let token = new import_node4.CancellationTokenSource().token;
            let res = await languages_default.prepareRename(doc.textDocument, position, token);
            if (res === false) {
              void window_default.showWarningMessage("Invalid position for rename");
              return false;
            }
            let curname;
            if (!newName) {
              if (Range.is(res)) {
                curname = doc.textDocument.getText(res);
                await window_default.moveTo(res.start);
              } else if (res && typeof res.placeholder === "string") {
                curname = res.placeholder;
              } else {
                curname = await this.nvim.eval('expand("")');
              }
              const config = workspace_default.getConfiguration("coc.preferences", null);
              newName = await window_default.requestInput("New name", config.get("renameFillCurrent", true) ? curname : "");
            }
            if (newName === "") void window_default.showWarningMessage("Empty word, rename canceled");
            if (!newName) return false;
            let edit2 = await languages_default.provideRenameEdits(doc.textDocument, position, newName, token);
            if (token.isCancellationRequested || !edit2) return false;
            await workspace_default.applyEdit(edit2);
            return true;
          }
        };
      }
    });
    
    // src/handler/selectionRange.ts
    var SelectionRangeHandler;
    var init_selectionRange2 = __esm({
      "src/handler/selectionRange.ts"() {
        "use strict";
        init_main();
        init_languages();
        init_array();
        init_object();
        init_position();
        init_window();
        SelectionRangeHandler = class {
          constructor(nvim, handler) {
            this.nvim = nvim;
            this.handler = handler;
          }
          nvim;
          handler;
          selectionRange = null;
          async getSelectionRanges() {
            let { doc, position } = await this.handler.getCurrentState();
            this.handler.checkProvider("selectionRange" /* SelectionRange */, doc.textDocument);
            await doc.synchronize();
            return await this.handler.withRequestToken("selection ranges", (token) => {
              return languages_default.getSelectionRanges(doc.textDocument, [position], token);
            });
          }
          async selectRange(visualmode, forward) {
            let { doc } = await this.handler.getCurrentState();
            this.handler.checkProvider("selectionRange" /* SelectionRange */, doc.textDocument);
            let positions = [];
            if (!forward && (!this.selectionRange || !visualmode)) return;
            if (visualmode) {
              let range2 = await window_default.getSelectedRange(visualmode);
              positions.push(range2.start, range2.end);
            } else {
              let position = await window_default.getCursorPosition();
              positions.push(position);
            }
            if (!forward) {
              let curr = Range.create(positions[0], positions[1]);
              let { selectionRange: selectionRange2 } = this;
              while (selectionRange2 && selectionRange2.parent) {
                if (equals(selectionRange2.parent.range, curr)) {
                  break;
                }
                selectionRange2 = selectionRange2.parent;
              }
              if (selectionRange2 && selectionRange2.parent) {
                await window_default.selectRange(selectionRange2.range);
              }
              return;
            }
            await doc.synchronize();
            let selectionRanges = await this.handler.withRequestToken("selection ranges", (token) => {
              return languages_default.getSelectionRanges(doc.textDocument, positions, token);
            });
            if (isFalsyOrEmpty(selectionRanges)) return false;
            let selectionRange;
            if (selectionRanges.length == 1) {
              selectionRange = selectionRanges[0];
            } else {
              let end = positions[1] ?? positions[0];
              let r2 = Range.create(positions[0], end);
              selectionRange = selectionRanges[0];
              while (selectionRange) {
                if (equals(r2, selectionRange.range)) {
                  selectionRange = selectionRange.parent;
                  continue;
                }
                if (positionInRange(positions[0], selectionRange.range) == 0 && positionInRange(end, selectionRange.range) == 0) {
                  break;
                }
                selectionRange = selectionRange.parent;
              }
            }
            if (!selectionRange) return false;
            this.selectionRange = selectionRanges[0];
            await window_default.selectRange(selectionRange.range);
            return true;
          }
        };
      }
    });
    
    // src/handler/semanticTokens/buffer.ts
    function toHighlightPart(token) {
      if (!token) return "";
      if (highlightGroupMap.has(token)) return highlightGroupMap.get(token);
      let chars = [];
      for (let i2 = 0; i2 < token.length; i2++) {
        let ch = token[i2];
        ch = isHighlightGroupCharCode(ch.charCodeAt(0)) ? ch : "_";
        chars.push(i2 == 0 ? ch.toUpperCase() : ch);
      }
      let part = chars.join("");
      highlightGroupMap.set(token, part);
      return part;
    }
    var logger68, yieldEveryMilliseconds, HLGROUP_PREFIX, NAMESPACE6, debounceInterval2, requestDelay2, highlightGroupMap, SemanticTokensBuffer;
    var init_buffer6 = __esm({
      "src/handler/semanticTokens/buffer.ts"() {
        "use strict";
        init_main();
        init_languages();
        init_logger();
        init_regions();
        init_util();
        init_array();
        init_errors();
        init_util();
        init_numbers();
        init_protocol();
        init_string();
        init_window();
        init_events();
        init_workspace();
        logger68 = createLogger("semanticTokens-buffer");
        yieldEveryMilliseconds = getConditionValue(15, 5);
        HLGROUP_PREFIX = "CocSem";
        NAMESPACE6 = "semanticTokens";
        debounceInterval2 = getConditionValue(100, 20);
        requestDelay2 = getConditionValue(500, 20);
        highlightGroupMap = /* @__PURE__ */ new Map();
        SemanticTokensBuffer = class {
          constructor(nvim, doc, staticConfig) {
            this.nvim = nvim;
            this.doc = doc;
            this.staticConfig = staticConfig;
            if (this.hasProvider) this.doHighlight().catch(onUnexpectedError);
          }
          nvim;
          doc;
          staticConfig;
          _config;
          _dirty = false;
          _version;
          regions = new Regions();
          tokenSource;
          rangeTokenSource;
          previousResults;
          _highlights;
          _onDidRefresh = new import_node4.Emitter();
          onDidRefresh = this._onDidRefresh.event;
          get config() {
            if (this._config) return this._config;
            this.loadConfiguration();
            return this._config;
          }
          loadConfiguration() {
            let config = workspace_default.getConfiguration("semanticTokens", this.doc);
            let changed = this._config != null && this._config.enable != config.enable;
            this._config = {
              enable: config.get("enable"),
              highlightPriority: config.get("highlightPriority"),
              incrementTypes: config.get("incrementTypes"),
              combinedModifiers: config.get("combinedModifiers")
            };
            if (changed) {
              if (this._config.enable) {
                this.forceHighlight().catch(onUnexpectedError);
              } else {
                this.clearHighlight();
              }
            }
          }
          get configEnabled() {
            let { enable } = this.config;
            let { filetypes } = this.staticConfig;
            if (Array.isArray(filetypes)) return filetypes.includes("*") || filetypes.includes(this.doc.filetype);
            return enable;
          }
          get bufnr() {
            return this.doc.bufnr;
          }
          onChange() {
            if (events_default.completing) return;
            this.doHighlight().catch(onUnexpectedError);
          }
          onTextChange() {
            this._version = void 0;
            this.cancel();
          }
          async forceHighlight() {
            this.clearHighlight();
            await this.doHighlight(true, 0);
          }
          async onShown(winid) {
            if (!this.enabled) return;
            await this.doHighlight(false, debounceInterval2, winid);
          }
          async onWinScroll(winid) {
            if (!this.shouldHighlight) return;
            this.cancel(true);
            let rangeTokenSource = this.rangeTokenSource = new import_node4.CancellationTokenSource();
            let token = rangeTokenSource.token;
            await waitWithToken(debounceInterval2, token);
            if (token.isCancellationRequested) return;
            if (this.shouldRangeHighlight) {
              await this.doRangeHighlight(winid, void 0, token);
            } else {
              await this.highlightRegions(winid, token);
            }
          }
          /**
           * Highlight the span without check regions
           */
          async onCursorHold(winid, lnum) {
            if (!this.enabled) return;
            this.cancel(true);
            let rangeTokenSource = this.rangeTokenSource = new import_node4.CancellationTokenSource();
            let token = rangeTokenSource.token;
            let height = workspace_default.env.lines;
            let span = [Math.max(0, lnum - height), Math.min(this.doc.lineCount, lnum + height)];
            if (this.shouldRangeHighlight) {
              await this.doRangeHighlight(winid, span, token);
            } else if (this.highlights) {
              await this.addHighlights(this.highlights, span, token);
            }
          }
          get hasProvider() {
            return languages_default.hasProvider("semanticTokens" /* SemanticTokens */, this.doc) || languages_default.hasProvider("semanticTokensRange" /* SemanticTokensRange */, this.doc);
          }
          get hasLegend() {
            let { textDocument } = this.doc;
            return languages_default.getLegend(textDocument) != null || languages_default.getLegend(textDocument, true) != null;
          }
          get rangeProviderOnly() {
            return !languages_default.hasProvider("semanticTokens" /* SemanticTokens */, this.doc) && languages_default.hasProvider("semanticTokensRange" /* SemanticTokensRange */, this.doc);
          }
          get shouldRangeHighlight() {
            let { textDocument } = this.doc;
            return languages_default.hasProvider("semanticTokensRange" /* SemanticTokensRange */, textDocument) && this.previousResults == null;
          }
          /**
           * Get current highlight items
           */
          get highlights() {
            if (!this._highlights) return void 0;
            return this._highlights[1];
          }
          get buffer() {
            return this.nvim.createBuffer(this.bufnr);
          }
          get enabled() {
            if (!this.configEnabled || !this.hasLegend) return false;
            return this.hasProvider;
          }
          get shouldHighlight() {
            if (!this.enabled) return false;
            const { doc } = this;
            if (doc.dirty || doc.version === this._version) return false;
            return true;
          }
          checkState() {
            if (!this.configEnabled) throw new Error(`Semantic tokens highlight not enabled for current filetype: ${this.doc.filetype}`);
            if (!this.hasProvider || !this.hasLegend) throw new Error(`SemanticTokens provider not found for ${this.doc.uri}`);
          }
          async getTokenRanges(tokens, legend, token) {
            let currentLine = 0;
            let currentCharacter = 0;
            let highlights = [];
            let toBytes;
            let textDocument = this.doc.textDocument;
            let tickStart = Date.now();
            for (let i2 = 0; i2 < tokens.length; i2 += 5) {
              if (i2 == 0 || Date.now() - tickStart > yieldEveryMilliseconds) {
                await waitImmediate();
                if (token.isCancellationRequested) break;
                tickStart = Date.now();
              }
              const deltaLine = tokens[i2];
              const deltaCharacter = tokens[i2 + 1];
              const length = tokens[i2 + 2];
              const tokenType = legend.tokenTypes[tokens[i2 + 3]];
              const tokenModifiers = legend.tokenModifiers.filter((_2, m2) => tokens[i2 + 4] & 1 << m2);
              const lnum = currentLine + deltaLine;
              if (deltaLine != 0 || !toBytes) {
                toBytes = bytes(toText(textDocument.lines[lnum]));
              }
              const sc = deltaLine === 0 ? currentCharacter + deltaCharacter : deltaCharacter;
              const ec = sc + length;
              currentLine = lnum;
              currentCharacter = sc;
              this.addHighlightItems(highlights, [lnum, toBytes(sc), toBytes(ec)], tokenType, tokenModifiers);
            }
            if (token.isCancellationRequested) return null;
            return highlights;
          }
          /**
           * Single line only.
           */
          addHighlightItems(highlights, range2, tokenType, tokenModifiers) {
            let { combinedModifiers } = this.config;
            let combine2 = false;
            highlights.push({
              range: range2,
              tokenType,
              combine: combine2,
              hlGroup: HLGROUP_PREFIX + "Type" + toHighlightPart(tokenType),
              tokenModifiers
            });
            if (tokenModifiers.length) {
              combine2 = tokenModifiers.some((mod) => combinedModifiers.includes(mod));
              let modsName = tokenModifiers.map(toHighlightPart).join("");
              highlights.push({
                range: range2,
                tokenType,
                combine: combine2,
                hlGroup: HLGROUP_PREFIX + "TypeMod" + toHighlightPart(tokenType) + modsName,
                tokenModifiers
              });
            }
          }
          toHighlightItems(highlights, span) {
            let { incrementTypes } = this.config;
            let filter3 = Array.isArray(span);
            let res = [];
            for (let hi of highlights) {
              if (!hi.hlGroup) continue;
              let lnum = hi.range[0];
              if (filter3 && (lnum < span[0] || lnum > span[1])) continue;
              let item = {
                lnum,
                hlGroup: hi.hlGroup,
                colStart: hi.range[1],
                colEnd: hi.range[2],
                combine: hi.combine
              };
              if (incrementTypes.includes(hi.tokenType)) {
                item.end_incl = true;
                item.start_incl = true;
              }
              res.push(item);
            }
            return res;
          }
          async doHighlight(forceFull = false, wait2 = debounceInterval2, winid) {
            this.cancel();
            let tokenSource = this.tokenSource = new import_node4.CancellationTokenSource();
            let token = tokenSource.token;
            await waitWithToken(wait2, token);
            if (token.isCancellationRequested) return;
            const winids = winid == null ? workspace_default.editors.getBufWinids(this.bufnr) : [winid];
            if (!this.enabled || winids.length === 0) return;
            if (this.shouldRangeHighlight) {
              this.cancel(true);
              let rangeTokenSource = this.rangeTokenSource = new import_node4.CancellationTokenSource();
              let rangeToken = rangeTokenSource.token;
              for (const win of winids) {
                await this.doRangeHighlight(win, void 0, rangeToken);
                if (rangeToken.isCancellationRequested) break;
              }
            }
            if (token.isCancellationRequested || this.rangeProviderOnly) return;
            this.cancel(true);
            const { doc } = this;
            const version2 = doc.version;
            let tokenRanges;
            if (version2 === this.previousResults?.version) {
              if (this._highlights && this._highlights[0] == version2) {
                tokenRanges = this._highlights[1];
              } else {
                const tokens = this.previousResults.tokens;
                const legend = languages_default.getLegend(doc.textDocument);
                tokenRanges = await this.getTokenRanges(tokens, legend, token);
              }
            } else {
              tokenRanges = await this.sendRequest(() => {
                return this.requestAllHighlights(token, forceFull);
              }, token);
            }
            if (token.isCancellationRequested || !tokenRanges) return;
            this._highlights = [version2, tokenRanges];
            if (!this._dirty || tokenRanges.length < 500) {
              let succeed = await this.addHighlights(tokenRanges, void 0, token);
              if (succeed) this._version = version2;
            } else {
              this.regions.clear();
              await this.highlightRegions(winid, token);
            }
            this._onDidRefresh.fire();
          }
          async addHighlights(highlights, span, token) {
            const { bufnr, regions, doc, config } = this;
            let items = this.toHighlightItems(highlights, span);
            let diff = await window_default.diffHighlights(bufnr, NAMESPACE6, items, span, token);
            if (!diff || token.isCancellationRequested) return false;
            const priority = config.highlightPriority;
            await window_default.applyDiffHighlights(bufnr, NAMESPACE6, priority, diff, true);
            this._dirty = true;
            if (span) {
              regions.add(span[0], span[1]);
            } else {
              regions.add(0, doc.lineCount);
            }
            return true;
          }
          async sendRequest(fn, token) {
            try {
              return await fn();
            } catch (e2) {
              if (!token.isCancellationRequested) {
                if (e2 instanceof CancellationError) {
                  this.doHighlight(true, requestDelay2).catch(onUnexpectedError);
                } else {
                  logger68.error("Error on request semanticTokens: ", e2);
                }
              }
              return void 0;
            }
          }
          /**
           * Perform range highlight request and update.
           */
          async doRangeHighlight(winid, span, token) {
            const { version: version2 } = this.doc;
            let res = await this.sendRequest(() => {
              return this.requestRangeHighlights(winid, span, token);
            }, token);
            if (res == null || token.isCancellationRequested) return;
            const { highlights, start, end } = res;
            if (this.rangeProviderOnly || !this.previousResults) {
              if (!this._highlights || version2 !== this._highlights[0]) {
                this._highlights = [version2, []];
              }
              let tokenRanges = this._highlights[1];
              let usedLines = tokenRanges.reduce((p2, c2) => p2.add(c2.range[0]), /* @__PURE__ */ new Set());
              highlights.forEach((hi) => {
                if (!usedLines.has(hi.range[0])) {
                  tokenRanges.push(hi);
                }
              });
            }
            await this.addHighlights(highlights, [start, end], token);
          }
          /**
           * highlight current visible regions, highlight all associated winids when winid is undefined
           */
          async highlightRegions(winid, token) {
            let { regions, highlights, doc, bufnr } = this;
            if (!highlights) return;
            let spans = await window_default.getVisibleRanges(bufnr, winid);
            if (token.isCancellationRequested) return;
            for (let lines of spans) {
              let span = regions.toUncoveredSpan([lines[0] - 1, lines[1] - 1], workspace_default.env.lines, doc.lineCount);
              if (span) await this.addHighlights(highlights, span, token);
            }
          }
          /**
           * Request highlights for visible range of winid.
           */
          async requestRangeHighlights(winid, span, token) {
            let { nvim, doc } = this;
            if (!span) {
              let region = await nvim.call("coc#window#visible_range", [winid]);
              if (!region || token.isCancellationRequested) return null;
              span = this.regions.toUncoveredSpan([region[0] - 1, region[1] - 1], workspace_default.env.lines, doc.lineCount);
            }
            if (!span) return null;
            const startLine = span[0];
            const endLine = span[1];
            let range2 = doc.textDocument.intersectWith(Range.create(startLine, 0, endLine + 1, 0));
            let res = await languages_default.provideDocumentRangeSemanticTokens(doc.textDocument, range2, token);
            if (!res || !SemanticTokens.is(res) || token.isCancellationRequested) return null;
            let legend = languages_default.getLegend(doc.textDocument, true);
            let highlights = await this.getTokenRanges(res.data, legend, token);
            if (!highlights) return null;
            return { highlights, start: startLine, end: endLine };
          }
          /**
           * Request highlights from provider, return undefined when can't request or request cancelled
           * Use range provider only when not semanticTokens provider exists.
           */
          async requestAllHighlights(token, forceFull) {
            const textDocument = this.doc.textDocument;
            const legend = languages_default.getLegend(textDocument);
            const hasEditProvider = languages_default.hasSemanticTokensEdits(textDocument);
            const previousResult = forceFull ? null : this.previousResults;
            const version2 = textDocument.version;
            let result;
            if (hasEditProvider && previousResult?.resultId) {
              result = await languages_default.provideDocumentSemanticTokensEdits(textDocument, previousResult.resultId, token);
            } else {
              result = await languages_default.provideDocumentSemanticTokens(textDocument, token);
            }
            if (token.isCancellationRequested || result == null) return;
            let tokens = [];
            if (SemanticTokens.is(result)) {
              tokens = result.data;
            } else if (previousResult && Array.isArray(result.edits)) {
              tokens = previousResult.tokens;
              result.edits.forEach((e2) => {
                tokens.splice(e2.start, toNumber(e2.deleteCount), ...toArray(e2.data));
              });
            }
            this.previousResults = { resultId: result.resultId, tokens, version: version2 };
            return await this.getTokenRanges(tokens, legend, token);
          }
          clearHighlight() {
            this.reset();
            this.buffer.clearNamespace(NAMESPACE6);
          }
          onProviderChange() {
            if (!this.hasProvider) {
              this.cancel();
              this.clearHighlight();
            } else {
              this.reset();
              this.doHighlight(true, 0).catch(onUnexpectedError);
            }
          }
          cancel(rangeOnly = false) {
            if (this.rangeTokenSource) {
              this.rangeTokenSource.cancel();
              this.rangeTokenSource = null;
            }
            if (rangeOnly) return;
            this.regions.clear();
            if (this.tokenSource) {
              this.tokenSource.cancel();
              this.tokenSource = null;
            }
          }
          reset() {
            this.previousResults = void 0;
            this._highlights = void 0;
            this._version = void 0;
            this.regions.clear();
          }
          dispose() {
            this.cancel();
            this.reset();
            this._onDidRefresh.dispose();
          }
        };
      }
    });
    
    // src/handler/semanticTokens/index.ts
    var headGroup, floatFactory3, SemanticTokens5;
    var init_semanticTokens2 = __esm({
      "src/handler/semanticTokens/index.ts"() {
        "use strict";
        init_commands();
        init_events();
        init_languages();
        init_highlighter();
        init_util();
        init_array();
        init_string();
        init_window();
        init_workspace();
        init_buffer6();
        headGroup = "Statement";
        SemanticTokens5 = class {
          constructor(nvim) {
            this.nvim = nvim;
            this.setStaticConfiguration();
            workspace_default.onDidChangeConfiguration((e2) => {
              if (e2.affectsConfiguration("semanticTokens")) {
                this.setStaticConfiguration();
                for (let item of this.highlighters.items) {
                  item.loadConfiguration();
                }
              }
            }, this, this.disposables);
            commands_default.register({
              id: "semanticTokens.checkCurrent",
              execute: async () => {
                await this.showHighlightInfo();
              }
            }, false, "show semantic tokens highlight information of current buffer");
            commands_default.register({
              id: "semanticTokens.refreshCurrent",
              execute: () => {
                return this.highlightCurrent();
              }
            }, false, "refresh semantic tokens highlight of current buffer.");
            commands_default.register({
              id: "semanticTokens.inspect",
              execute: () => {
                return this.inspectSemanticToken();
              }
            }, false, "Inspect semantic token information at cursor position.");
            commands_default.register({
              id: "semanticTokens.clearCurrent",
              execute: async () => {
                let buf = await nvim.buffer;
                buf.clearNamespace(NAMESPACE6, 0, -1);
              }
            }, false, "clear semantic tokens highlight of current buffer");
            commands_default.register({
              id: "semanticTokens.clearAll",
              execute: async () => {
                let bufs = await nvim.buffers;
                for (let buf of bufs) {
                  buf.clearNamespace(NAMESPACE6, 0, -1);
                }
              }
            }, false, "clear semantic tokens highlight of all buffers");
            this.highlighters = workspace_default.registerBufferSync((doc) => {
              return new SemanticTokensBuffer(this.nvim, doc, this.staticConfig);
            });
            languages_default.onDidSemanticTokensRefresh(async (selector) => {
              let visibleBufs = window_default.visibleTextEditors.map((o2) => o2.document.bufnr);
              for (let item of this.highlighters.items) {
                if (workspace_default.match(selector, item.doc) && visibleBufs.includes(item.bufnr)) {
                  item.onProviderChange();
                }
              }
            }, null, this.disposables);
            events_default.on("CompleteDone", async (_item, _line, bufnr) => {
              let item = this.highlighters.getItem(bufnr);
              if (item) await item.doHighlight();
            }, null, this.disposables);
            events_default.on("BufWinEnter", async (bufnr, winid) => {
              let item = this.highlighters.getItem(bufnr);
              if (item) await item.onShown(winid);
            }, null, this.disposables);
            events_default.on("WinScrolled", async (winid, bufnr) => {
              let item = this.highlighters.getItem(bufnr);
              if (item) await item.onWinScroll(winid);
            }, null, this.disposables);
            events_default.on("CursorHold", async (bufnr, cursor, winid) => {
              let item = this.highlighters.getItem(bufnr);
              if (item && winid) await item.onCursorHold(winid, cursor[0]);
            }, null, this.disposables);
          }
          nvim;
          disposables = [];
          highlighters;
          staticConfig;
          setStaticConfiguration() {
            const filetypes = workspace_default.initialConfiguration.get("semanticTokens.filetypes", null);
            this.staticConfig = Object.assign(this.staticConfig ?? {}, { filetypes });
          }
          async inspectSemanticToken() {
            let item = await this.getCurrentItem();
            if (!item || !item.enabled) {
              if (!item) {
                let doc = await workspace_default.document;
                void window_default.showErrorMessage(`Document not attached, ${doc.notAttachReason}`);
              } else {
                try {
                  item.checkState();
                } catch (e2) {
                  void window_default.showErrorMessage(e2.message);
                }
              }
              this.closeFloat();
              return;
            }
            let [_2, line, col] = await this.nvim.call("getcurpos", []);
            let highlights = toArray(item.highlights);
            let highlight = highlights.find((o2) => {
              let column = col - 1;
              return o2.range[0] === line - 1 && column >= o2.range[1] && column < o2.range[2];
            });
            if (highlight) {
              let modifiers = toArray(highlight.tokenModifiers);
              let highlights2 = [];
              if (highlight.hlGroup) {
                let s2 = "Highlight group: ".length;
                highlights2.push({
                  lnum: 2,
                  colStart: s2,
                  colEnd: s2 + highlight.hlGroup.length,
                  hlGroup: highlight.hlGroup
                });
              }
              let docs = [{
                filetype: "txt",
                content: `Type: ${highlight.tokenType}
    Modifiers: ${modifiers.join(", ")}
    Highlight group: ${toText(highlight.hlGroup)}`,
                highlights: highlights2
              }];
              if (!floatFactory3) {
                floatFactory3 = window_default.createFloatFactory({
                  title: "Semantic token info",
                  highlight: "Normal",
                  borderhighlight: "MoreMsg",
                  border: [1, 1, 1, 1]
                });
              }
              await floatFactory3.show(docs, { winblend: 0 });
            } else {
              this.closeFloat();
            }
          }
          closeFloat() {
            floatFactory3?.close();
          }
          async getCurrentItem() {
            let buf = await this.nvim.buffer;
            return this.getItem(buf.id);
          }
          getItem(bufnr) {
            return this.highlighters.getItem(bufnr);
          }
          /**
           * Force highlight of current buffer
           */
          async highlightCurrent() {
            let item = await this.getCurrentItem();
            if (!item || !item.enabled) throw new Error(`Unable to perform semantic highlights for current buffer.`);
            await item.forceHighlight();
          }
          /**
           * Show semantic highlight info in temporarily buffer
           */
          async showHighlightInfo() {
            let bufnr = await this.nvim.call("bufnr", ["%"]);
            workspace_default.getAttachedDocument(bufnr);
            let { nvim } = this;
            let item = this.highlighters.getItem(bufnr);
            let hl = new Highlighter();
            nvim.pauseNotification();
            nvim.command(`vs +setl\\ buftype=nofile __coc_semantic_highlights_${bufnr}__`, true);
            nvim.command(`setl bufhidden=wipe noswapfile nobuflisted wrap undolevels=-1`, true);
            nvim.call("bufnr", ["%"], true);
            let res = await nvim.resumeNotification();
            hl.addLine("Semantic highlights info", headGroup);
            hl.addLine("");
            try {
              item.checkState();
              let highlights = item.highlights ?? [];
              hl.addLine("The number of semantic tokens: ");
              hl.addText(String(highlights.length), "Number");
              hl.addLine("");
              hl.addLine("Semantic highlight groups used by current buffer", headGroup);
              hl.addLine("");
              const groups = distinct(highlights.filter((o2) => o2.hlGroup != null).map(({ hlGroup }) => hlGroup));
              for (const hlGroup of groups) {
                hl.addTexts([{ text: "-", hlGroup: "Comment" }, { text: " " }, { text: hlGroup, hlGroup }]);
              }
              hl.addLine("");
              hl.addLine("Tokens types that current Language Server supported:", headGroup);
              hl.addLine("");
              let doc = workspace_default.getDocument(item.bufnr);
              let legend = languages_default.getLegend(doc.textDocument) ?? languages_default.getLegend(doc.textDocument, true);
              if (legend.tokenTypes.length) {
                for (const t2 of [...new Set(legend.tokenTypes)]) {
                  let text = HLGROUP_PREFIX + "Type" + toHighlightPart(t2);
                  hl.addTexts([{ text: "-", hlGroup: "Comment" }, { text: " " }, { text, hlGroup: text }]);
                }
                hl.addLine("");
              } else {
                hl.addLine("No token types supported", "Comment");
                hl.addLine("");
              }
            } catch (e2) {
              hl.addLine(toErrorText(e2));
            }
            nvim.pauseNotification();
            hl.render(nvim.createBuffer(res[0][2]));
            nvim.resumeNotification(true, true);
          }
          dispose() {
            this.highlighters.dispose();
            disposeAll(this.disposables);
          }
        };
      }
    });
    
    // src/handler/util.ts
    function toDocumentation(doc) {
      return {
        content: typeof doc === "string" ? doc : doc.value,
        filetype: isMarkdown(doc) ? "markdown" : "txt"
      };
    }
    var init_util8 = __esm({
      "src/handler/util.ts"() {
        "use strict";
        init_is();
      }
    });
    
    // src/handler/signature.ts
    var logger69, debounceTime12, Signature;
    var init_signature = __esm({
      "src/handler/signature.ts"() {
        "use strict";
        init_events();
        init_languages();
        init_logger();
        init_util();
        init_array();
        init_node();
        init_protocol();
        init_string();
        init_window();
        init_workspace();
        init_util8();
        logger69 = createLogger("handler-signature");
        debounceTime12 = getConditionValue(100, 10);
        Signature = class {
          constructor(nvim, handler) {
            this.nvim = nvim;
            this.handler = handler;
            this.loadConfiguration();
            this.signatureFactory = window_default.createFloatFactory(Object.assign({
              preferTop: this.config.preferAbove,
              autoHide: false,
              modes: ["i", "ic", "s"]
            }, this.config.floatConfig));
            this.disposables.push(this.signatureFactory);
            workspace_default.onDidChangeConfiguration(this.loadConfiguration, this, this.disposables);
            events_default.on("CursorMovedI", debounce2(this.checkCursor.bind(this), debounceTime12), null, this.disposables);
            events_default.on("BufEnter", () => {
              this.tokenSource?.cancel();
            }, null, this.disposables);
            events_default.on("TextChangedI", () => {
              if (this.config.hideOnChange) {
                this.signatureFactory.close();
              }
            }, null, this.disposables);
            events_default.on("MenuPopupChanged", () => {
              if (this.config.hideOnChange) return;
              process.nextTick(async () => {
                try {
                  if (this.signatureFactory.window != null) return;
                  let bufnr = this.lastPosition?.bufnr;
                  if (!bufnr) return;
                  let { doc, position } = await this.handler.getCurrentState();
                  if (!doc || !doc.attached || doc.bufnr !== bufnr) return;
                  await this._triggerSignatureHelp(doc, position, false);
                } catch (e2) {
                  logger69.error(`Error on trigger signature help:`, e2);
                }
              });
            }, null, this.disposables);
            events_default.on("TextInsert", async (bufnr, info, character) => {
              if (!this.shouldAutoTrigger(bufnr, character)) return;
              let doc = workspace_default.getDocument(bufnr);
              await this._triggerSignatureHelp(doc, { line: info.lnum - 1, character: info.pre.length }, false);
            }, null, this.disposables);
            events_default.on("PlaceholderJump", async (bufnr, info) => {
              if (workspace_default.env.jumpAutocmd || info.charbefore === "") return;
              await wait(50);
              if (!this.shouldAutoTrigger(bufnr, info.charbefore)) return;
              let doc = workspace_default.getDocument(bufnr);
              if (!doc || !doc.attached) return;
              await this._triggerSignatureHelp(doc, info.range.start, false);
            }, null, this.disposables);
            window_default.onDidChangeActiveTextEditor(() => {
              this.loadConfiguration();
            }, null, this.disposables);
          }
          nvim;
          handler;
          timer;
          config;
          signatureFactory;
          lastPosition;
          disposables = [];
          tokenSource;
          shouldAutoTrigger(bufnr, character) {
            if (!this.config.enableTrigger) return false;
            let doc = workspace_default.getDocument(bufnr);
            if (!doc || !doc.attached || !languages_default.shouldTriggerSignatureHelp(doc.textDocument, character)) return false;
            return true;
          }
          checkCursor(bufnr, cursor) {
            let pos = this.lastPosition;
            let floatFactory4 = this.signatureFactory;
            if (!pos || bufnr !== pos.bufnr || floatFactory4.window == null) return;
            let doc = workspace_default.getDocument(bufnr);
            if (!doc || cursor[0] != pos.lnum || cursor[1] < pos.col) {
              floatFactory4.close();
              return;
            }
            let line = doc.getline(pos.lnum - 1);
            let text = byteSlice(line, pos.col - 1, cursor[1] - 1);
            if (text.endsWith(")")) return floatFactory4.close();
          }
          loadConfiguration(e2) {
            if (!e2 || e2.affectsConfiguration("signature")) {
              let doc = window_default.activeTextEditor?.document;
              let config = workspace_default.getConfiguration("signature", doc);
              this.config = {
                target: config.get("target", "float"),
                floatConfig: config.get("floatConfig", {}),
                enableTrigger: config.get("enable", true),
                wait: Math.max(config.get("triggerSignatureWait", 500), 200),
                preferAbove: config.get("preferShownAbove", true),
                hideOnChange: config.get("hideOnTextChange", false)
              };
            }
          }
          async triggerSignatureHelp() {
            let { doc, position } = await this.handler.getCurrentState();
            if (!languages_default.hasProvider("signature" /* Signature */, doc.textDocument)) return false;
            return await this._triggerSignatureHelp(doc, position, true, 0);
          }
          async _triggerSignatureHelp(doc, position, invoke, offset = 0) {
            this.tokenSource?.cancel();
            let tokenSource = this.tokenSource = new import_node4.CancellationTokenSource();
            let token = tokenSource.token;
            token.onCancellationRequested(() => {
              tokenSource.dispose();
              this.tokenSource = void 0;
            });
            let { target } = this.config;
            let timer = this.timer = setTimeout(() => {
              tokenSource.cancel();
            }, this.config.wait);
            await doc.patchChange();
            let signatureHelp = await languages_default.getSignatureHelp(doc.textDocument, position, token, {
              isRetrigger: this.signatureFactory.checkRetrigger(doc.bufnr),
              triggerKind: invoke ? import_node4.SignatureHelpTriggerKind.Invoked : import_node4.SignatureHelpTriggerKind.TriggerCharacter
            });
            clearTimeout(timer);
            if (token.isCancellationRequested) return false;
            if (!signatureHelp || signatureHelp.signatures.length == 0) {
              this.signatureFactory.close();
              return false;
            }
            let { activeSignature, signatures } = signatureHelp;
            if (activeSignature) {
              let [active] = signatures.splice(activeSignature, 1);
              if (active) signatures.unshift(active);
            }
            if (target == "echo") {
              this.echoSignature(signatureHelp);
            } else {
              await this.showSignatureHelp(doc, position, signatureHelp, offset);
            }
            return true;
          }
          async showSignatureHelp(doc, position, signatureHelp, offset) {
            let { signatures, activeParameter } = signatureHelp;
            let paramDoc = null;
            let startOffset = offset;
            let docs = signatures.reduce((p2, c2, idx) => {
              let activeIndexes = null;
              let activeIndex = c2.activeParameter === null ? null : c2.activeParameter ?? activeParameter;
              if (activeIndex === void 0 && !isFalsyOrEmpty(c2.parameters)) {
                activeIndex = 0;
              }
              let nameIndex = c2.label.indexOf("(");
              if (idx == 0 && typeof activeIndex === "number") {
                let active = c2.parameters?.[activeIndex];
                if (active) {
                  let after = c2.label.slice(nameIndex == -1 ? 0 : nameIndex);
                  paramDoc = active.documentation;
                  if (typeof active.label === "string") {
                    let str = after.slice(0);
                    let ms = str.match(new RegExp("\\b" + active.label.replace(/[.*+?^${}()|[\]\\]/g, "\\$&") + "\\b"));
                    let index = ms ? ms.index : str.indexOf(active.label);
                    if (index != -1) {
                      activeIndexes = [
                        index + nameIndex,
                        index + active.label.length + nameIndex
                      ];
                    }
                  } else {
                    activeIndexes = active.label;
                  }
                }
              }
              if (activeIndexes == null && activeIndex !== null) {
                activeIndexes = [nameIndex + 1, nameIndex + 1];
              }
              if (offset == startOffset && activeIndexes != null) {
                offset = offset + activeIndexes[0] + 1;
              }
              p2.push({
                content: c2.label,
                filetype: doc.filetype,
                active: activeIndexes
              });
              if (paramDoc) {
                p2.push(toDocumentation(paramDoc));
              }
              if (idx == 0 && c2.documentation) {
                p2.push(toDocumentation(c2.documentation));
              }
              return p2;
            }, []);
            let content = doc.getline(position.line, false).slice(0, position.character);
            this.lastPosition = { bufnr: doc.bufnr, lnum: position.line + 1, col: byteLength(content) + 1 };
            await this.signatureFactory.show(docs, { offsetX: offset });
          }
          echoSignature(signatureHelp) {
            let { signatures, activeParameter } = signatureHelp;
            let columns = workspace_default.env.columns;
            signatures = signatures.slice(0, workspace_default.env.cmdheight);
            let signatureList = [];
            for (let signature of signatures) {
              let parts = [];
              let { label } = signature;
              label = label.replace(/\n/g, " ");
              if (label.length >= columns - 16) {
                label = label.slice(0, columns - 16) + "...";
              }
              let nameIndex = label.indexOf("(");
              if (nameIndex == -1) {
                parts = [{ text: label, type: "Normal" }];
              } else {
                parts.push({
                  text: label.slice(0, nameIndex),
                  type: "Label"
                });
                let after = label.slice(nameIndex);
                if (signatureList.length == 0 && activeParameter != null) {
                  let active = signature.parameters?.[activeParameter];
                  if (active) {
                    let start;
                    let end;
                    if (typeof active.label === "string") {
                      let str = after.slice(0);
                      let ms = str.match(new RegExp("\\b" + active.label.replace(/[.*+?^${}()|[\]\\]/g, "\\$&") + "\\b"));
                      let idx = ms ? ms.index : str.indexOf(active.label);
                      if (idx == -1) {
                        parts.push({ text: after, type: "Normal" });
                      } else {
                        start = idx;
                        end = idx + active.label.length;
                      }
                    } else {
                      [start, end] = active.label;
                      start = start - nameIndex;
                      end = end - nameIndex;
                    }
                    if (start != null && end != null) {
                      parts.push({ text: after.slice(0, start), type: "Normal" });
                      parts.push({ text: after.slice(start, end), type: "MoreMsg" });
                      parts.push({ text: after.slice(end), type: "Normal" });
                    }
                  }
                } else {
                  parts.push({
                    text: after,
                    type: "Normal"
                  });
                }
              }
              signatureList.push(parts);
            }
            this.nvim.callTimer("coc#ui#echo_signatures", [signatureList], true);
          }
          dispose() {
            disposeAll(this.disposables);
            if (this.timer) {
              clearTimeout(this.timer);
            }
          }
        };
      }
    });
    
    // src/handler/symbols/buffer.ts
    var logger70, DEBEBOUNCE_INTERVAL, SymbolsBuffer;
    var init_buffer7 = __esm({
      "src/handler/symbols/buffer.ts"() {
        "use strict";
        init_languages();
        init_logger();
        init_util();
        init_errors();
        init_node();
        init_protocol();
        logger70 = createLogger("symbols-buffer");
        DEBEBOUNCE_INTERVAL = getConditionValue(500, 10);
        SymbolsBuffer = class {
          constructor(doc, autoUpdateBufnrs) {
            this.doc = doc;
            this.autoUpdateBufnrs = autoUpdateBufnrs;
            this.fetchSymbols = debounce2(() => {
              this._fetchSymbols().catch(onUnexpectedError);
            }, DEBEBOUNCE_INTERVAL);
          }
          doc;
          autoUpdateBufnrs;
          disposables = [];
          fetchSymbols;
          version;
          symbols;
          tokenSource;
          _onDidUpdate = new import_node4.Emitter();
          onDidUpdate = this._onDidUpdate.event;
          /**
           * Enable autoUpdate when invoked.
           */
          async getSymbols() {
            let { doc } = this;
            await doc.patchChange();
            this.autoUpdateBufnrs.add(doc.bufnr);
            if (doc.version == this.version && this.symbols?.length) return this.symbols;
            this.cancel();
            await this._fetchSymbols();
            return this.symbols;
          }
          onChange(e2) {
            if (e2.contentChanges.length === 0) return;
            this.cancel();
            if (this.autoUpdateBufnrs.has(this.doc.bufnr)) {
              this.fetchSymbols();
            }
          }
          async _fetchSymbols() {
            let { textDocument } = this.doc;
            let { version: version2 } = textDocument;
            let tokenSource = this.tokenSource = new import_node4.CancellationTokenSource();
            let { token } = tokenSource;
            let symbols = await languages_default.getDocumentSymbol(textDocument, token);
            this.tokenSource = void 0;
            if (symbols == null || token.isCancellationRequested) return;
            this.version = version2;
            this.symbols = symbols;
            this._onDidUpdate.fire(symbols);
          }
          cancel() {
            this.fetchSymbols.clear();
            if (this.tokenSource) {
              this.tokenSource.cancel();
              this.tokenSource.dispose();
              this.tokenSource = null;
            }
          }
          dispose() {
            this.cancel();
            this.symbols = void 0;
            this._onDidUpdate.dispose();
            disposeAll(this.disposables);
          }
        };
      }
    });
    
    // src/tree/BasicDataProvider.ts
    function isIcon(obj) {
      if (!obj) return false;
      return typeof obj.text === "string" && typeof obj.hlGroup === "string";
    }
    function sameTreeNode(one, two) {
      if (one.label === two.label && one.deprecated === two.deprecated && one.key === two.key) {
        return true;
      }
      return false;
    }
    function sameTreeNodes(one, two) {
      if (one.length !== two.length) return false;
      return one.every((v2, idx) => sameTreeNode(v2, two[idx]));
    }
    var BasicDataProvider;
    var init_BasicDataProvider = __esm({
      "src/tree/BasicDataProvider.ts"() {
        "use strict";
        init_protocol();
        init_commands();
        init_util();
        init_TreeItem();
        init_array();
        BasicDataProvider = class {
          // data is shared with TreeView
          constructor(opts) {
            this.opts = opts;
            this.invokeCommand = `_invoke_${crypto.randomUUID()}`;
            this.disposables.push(commands_default.registerCommand(this.invokeCommand, async (node) => {
              await opts.handleClick(node);
            }, null, true));
            if (typeof opts.resolveActions === "function") {
              this.resolveActions = opts.resolveActions.bind(this);
            }
          }
          opts;
          disposables = [];
          invokeCommand;
          data;
          // only fired for change of exists TreeNode
          _onDidChangeTreeData = new import_node4.Emitter();
          onDidChangeTreeData = this._onDidChangeTreeData.event;
          resolveActions;
          iterate(node, parentNode, level2, fn) {
            let res = fn(node, parentNode, level2);
            if (res === false) return false;
            if (Array.isArray(node.children)) {
              for (let element of node.children) {
                let res2 = this.iterate(element, node, level2 + 1, fn);
                if (res2 === false) return false;
              }
            }
            return res;
          }
          /**
           * Change old array to new nodes in place, keep old reference when possible.
           */
          updateNodes(old, data, parentNode, fireEvent = true) {
            let sameNodes = sameTreeNodes(old, data);
            const applyNode = (previous, curr, fireEvent2) => {
              let changed = false;
              for (let key of Object.keys(curr)) {
                if (["children", "key"].includes(key)) continue;
                previous[key] = curr[key];
              }
              if (previous.children?.length && !curr.children?.length) {
                delete previous.children;
                changed = true;
              }
              if (!previous.children?.length && curr.children?.length) {
                previous.children = curr.children;
                changed = true;
              }
              if (changed) {
                if (fireEvent2) this._onDidChangeTreeData.fire(previous);
                return;
              }
              if (toArray(previous.children).length > 0 && toArray(curr.children).length > 0) {
                this.updateNodes(previous.children, curr.children, previous, fireEvent2);
              }
            };
            if (sameNodes) {
              for (let i2 = 0; i2 < old.length; i2++) {
                applyNode(old[i2], data[i2], fireEvent);
              }
            } else {
              let oldNodes = old.splice(0, old.length);
              let used = /* @__PURE__ */ new Set();
              for (let i2 = 0; i2 < data.length; i2++) {
                let curr = data[i2];
                let findIndex;
                if (curr.key) {
                  findIndex = oldNodes.findIndex((o2, i3) => !used.has(i3) && o2.key == curr.key);
                } else {
                  findIndex = oldNodes.findIndex((o2, i3) => !used.has(i3) && o2.label == curr.label);
                }
                if (findIndex === -1) {
                  old[i2] = curr;
                } else {
                  used.add(findIndex);
                  let previous = oldNodes[findIndex];
                  applyNode(previous, curr, false);
                  old[i2] = previous;
                }
              }
              if (fireEvent) {
                this._onDidChangeTreeData.fire(parentNode);
              }
            }
          }
          /**
           * Update with new data, fires change event when necessary.
           */
          update(data, reset) {
            if (!this.data) return;
            if (reset) {
              this.data = toArray(data);
              this._onDidChangeTreeData.fire(void 0);
            } else {
              this.updateNodes(this.data, toArray(data), void 0);
            }
            return this.data;
          }
          getTreeItem(node) {
            let label = node.label;
            let { expandLevel } = this.opts;
            let item;
            if (!node.children?.length) {
              item = new TreeItem(label);
            } else {
              if (expandLevel && expandLevel > 0) {
                let level2 = this.getLevel(node);
                let state = level2 && level2 <= expandLevel ? 2 /* Expanded */ : 1 /* Collapsed */;
                item = new TreeItem(label, state);
              } else {
                item = new TreeItem(label, 1 /* Collapsed */);
              }
            }
            item.description = node.description;
            if (node.deprecated) item.deprecated = true;
            if (node.tooltip) item.tooltip = node.tooltip;
            if (isIcon(node.icon)) {
              item.icon = node.icon;
            } else if (typeof this.opts.resolveIcon === "function") {
              let res = this.opts.resolveIcon(node);
              if (res && isIcon(res)) item.icon = res;
            }
            return item;
          }
          async getChildren(element) {
            if (element) return element.children ?? [];
            if (this.data) return this.data;
            let data = await Promise.resolve(this.opts.provideData());
            if (!Array.isArray(data)) throw new Error(`Unable to fetch data`);
            this.data = data;
            return data;
          }
          /**
           * Use reference check
           */
          getParent(element) {
            if (!this.data) return void 0;
            let find;
            for (let item of this.data) {
              let res = this.iterate(item, null, 0, (node, parentNode) => {
                if (node === element) {
                  find = parentNode;
                  return false;
                }
              });
              if (res === false) break;
            }
            return find;
          }
          getLevel(element) {
            if (!this.data) return 0;
            let level2 = 0;
            for (let item of toArray(this.data)) {
              let res = this.iterate(item, null, 1, (node, _parentNode, l2) => {
                if (node === element) {
                  level2 = l2;
                  return false;
                }
              });
              if (res === false) break;
            }
            return level2;
          }
          /**
           * Resolve command and tooltip
           */
          async resolveTreeItem(item, element, token) {
            if (typeof this.opts.resolveItem === "function") {
              let res = await Promise.resolve(this.opts.resolveItem(item, element, token));
              if (res) Object.assign(item, res);
            }
            if (!item.command) {
              item.command = {
                title: `invoke ${element.label}`,
                command: this.invokeCommand,
                arguments: [element]
              };
            }
            return item;
          }
          dispose() {
            this.data = [];
            this._onDidChangeTreeData.dispose();
            if (typeof this.opts.onDispose === "function") {
              this.opts.onDispose();
            }
            disposeAll(this.disposables);
          }
        };
      }
    });
    
    // src/handler/symbols/outline.ts
    function getNodeByPosition(position, nodes) {
      let curr;
      let checkNodes = (nodes2) => {
        for (let node of nodes2) {
          if (positionInRange(position, node.range) == 0) {
            curr = node;
            if (Array.isArray(node.children)) {
              checkNodes(node.children);
            }
            break;
          }
        }
      };
      checkNodes(nodes);
      return curr;
    }
    var hoverTimeout, SymbolsOutline;
    var init_outline2 = __esm({
      "src/handler/symbols/outline.ts"() {
        "use strict";
        init_main();
        init_events();
        init_languages();
        init_BasicDataProvider();
        init_TreeView();
        init_util();
        init_position();
        init_window();
        init_workspace();
        hoverTimeout = getConditionValue(300, 10);
        SymbolsOutline = class {
          constructor(nvim, buffers, handler) {
            this.nvim = nvim;
            this.buffers = buffers;
            this.handler = handler;
            this.loadConfiguration();
            workspace_default.onDidChangeConfiguration(this.loadConfiguration, this, this.disposables);
            workspace_default.onDidCloseTextDocument(async (e2) => {
              let { bufnr } = e2;
              let provider = this.providersMap.get(bufnr);
              if (!provider) return;
              let loaded = await nvim.call("bufloaded", [bufnr]);
              if (loaded) return;
              this.providersMap.delete(bufnr);
              provider.dispose();
            }, null, this.disposables);
            window_default.onDidChangeActiveTextEditor(async (editor) => {
              if (!this.config.checkBufferSwitch) return;
              let view = this.treeViewList.find((v2) => v2.visible && v2.targetTabId == editor.tabpageid);
              if (view) {
                await this.showOutline(editor.document.bufnr, editor.tabpageid);
                await nvim.command(`noa call win_gotoid(${editor.winid})`);
              }
            }, null, this.disposables);
            events_default.on("CursorHold", async (bufnr, cursor) => {
              if (!this.config.followCursor) return;
              let provider = this.providersMap.get(bufnr);
              if (!provider) return;
              let tabpage = await nvim.tabpage;
              let view = this.treeViewList.find((o2) => o2.visible && o2.targetBufnr == bufnr && o2.targetTabId == tabpage.id);
              if (!view) return;
              await this.revealPosition(bufnr, view, Position.create(cursor[0] - 1, cursor[1] - 1));
            }, null, this.disposables);
          }
          nvim;
          buffers;
          handler;
          treeViewList = [];
          providersMap = /* @__PURE__ */ new Map();
          sortByMap = /* @__PURE__ */ new Map();
          config;
          disposables = [];
          async revealPosition(bufnr, treeView, position) {
            let provider = this.providersMap.get(bufnr);
            let nodes = await Promise.resolve(provider.getChildren());
            let curr = getNodeByPosition(position, nodes);
            if (curr) await treeView.reveal(curr);
          }
          loadConfiguration(e2) {
            if (!e2 || e2.affectsConfiguration("outline")) {
              let c2 = workspace_default.getConfiguration("outline", null);
              this.config = {
                splitCommand: c2.get("splitCommand"),
                switchSortKey: c2.get("switchSortKey"),
                togglePreviewKey: c2.get("togglePreviewKey"),
                followCursor: c2.get("followCursor"),
                keepWindow: c2.get("keepWindow"),
                expandLevel: c2.get("expandLevel"),
                autoWidth: c2.get("autoWidth"),
                checkBufferSwitch: c2.get("checkBufferSwitch"),
                detailAsDescription: c2.get("detailAsDescription"),
                sortBy: c2.get("sortBy"),
                showLineNumber: c2.get("showLineNumber"),
                codeActionKinds: c2.get("codeActionKinds"),
                autoHide: c2.get("autoHide"),
                autoPreview: c2.get("autoPreview"),
                previewMaxWidth: c2.get("previewMaxWidth"),
                previewBorder: c2.get("previewBorder"),
                previewBorderRounded: c2.get("previewBorderRounded"),
                previewHighlightGroup: c2.get("previewHighlightGroup"),
                previewBorderHighlightGroup: c2.get("previewBorderHighlightGroup"),
                previewWinblend: c2.get("previewWinblend")
              };
            }
          }
          convertSymbolToNode(documentSymbol, sortFn) {
            let descs = [];
            let { detailAsDescription, showLineNumber } = this.config;
            if (detailAsDescription && documentSymbol.detail) descs.push(documentSymbol.detail);
            if (showLineNumber) descs.push(`${documentSymbol.selectionRange.start.line + 1}`);
            return {
              label: documentSymbol.name,
              tooltip: detailAsDescription ? void 0 : documentSymbol.detail,
              description: descs.join(" "),
              icon: this.handler.getIcon(documentSymbol.kind),
              deprecated: documentSymbol.tags?.includes(SymbolTag.Deprecated),
              kind: documentSymbol.kind,
              range: documentSymbol.range,
              selectRange: documentSymbol.selectionRange,
              children: Array.isArray(documentSymbol.children) ? documentSymbol.children.map((o2) => {
                return this.convertSymbolToNode(o2, sortFn);
              }).sort(sortFn) : void 0
            };
          }
          setMessage(bufnr, msg) {
            this.treeViewList.forEach((v2) => {
              if (v2.valid && v2.targetBufnr == bufnr) {
                v2.message = msg;
              }
            });
          }
          convertSymbols(bufnr, symbols) {
            let sortBy = this.getSortBy(bufnr);
            let sortFn = (a2, b2) => {
              if (sortBy === "name") {
                return a2.label < b2.label ? -1 : 1;
              }
              if (sortBy === "category") {
                if (a2.kind == b2.kind) return a2.label < b2.label ? -1 : 1;
                return a2.kind - b2.kind;
              }
              return comparePosition(a2.selectRange.start, b2.selectRange.start);
            };
            return symbols.map((s2) => this.convertSymbolToNode(s2, sortFn)).sort(sortFn);
          }
          onSymbolsUpdate(bufnr, symbols) {
            let provider = this.providersMap.get(bufnr);
            if (provider) provider.update(this.convertSymbols(bufnr, symbols));
          }
          createProvider(bufnr) {
            let { nvim } = this;
            let provider = new BasicDataProvider({
              expandLevel: this.config.expandLevel,
              provideData: async () => {
                let buf = this.buffers.getItem(bufnr);
                if (!buf) throw new Error("Document not attached");
                let doc = workspace_default.getDocument(bufnr);
                if (!languages_default.hasProvider("documentSymbol" /* DocumentSymbol */, doc.textDocument)) {
                  throw new Error("Document symbol provider not found");
                }
                let meta = languages_default.getDocumentSymbolMetadata(doc.textDocument);
                if (meta && meta.label) {
                  let views = this.treeViewList.filter((v2) => v2.valid && v2.targetBufnr == bufnr);
                  views.forEach((view) => view.description = meta.label);
                }
                this.setMessage(bufnr, "Loading document symbols");
                let arr = await buf.getSymbols();
                if (!arr || arr.length == 0) {
                  throw new Error("Empty symbols returned from language server. ");
                }
                this.setMessage(bufnr, void 0);
                return this.convertSymbols(bufnr, arr);
              },
              handleClick: async (item) => {
                let winnr = await nvim.call("bufwinnr", [bufnr]);
                if (winnr == -1) return;
                nvim.pauseNotification();
                nvim.command(`${winnr}wincmd w`, true);
                let pos = item.selectRange.start;
                nvim.call("coc#cursor#move_to", [pos.line, pos.character], true);
                nvim.command(`normal! zz`, true);
                let buf = nvim.createBuffer(bufnr);
                buf.highlightRanges("outline-hover", "CocHoverRange", [item.selectRange]);
                nvim.command("redraw", true);
                await nvim.resumeNotification();
                setTimeout(() => {
                  buf.clearNamespace("outline-hover");
                  nvim.command("redraw", true);
                }, hoverTimeout);
                if (this.config.autoHide) {
                  await this.hide();
                }
              },
              resolveActions: async (_2, element) => {
                let winnr = await nvim.call("bufwinnr", [bufnr]);
                if (winnr == -1) return;
                let doc = workspace_default.getDocument(bufnr);
                let actions = await this.handler.getCodeActions(doc, element.range, this.config.codeActionKinds);
                let arr = actions.map((o2) => {
                  return {
                    title: o2.title,
                    handler: async () => {
                      let position = element.range.start;
                      await nvim.command(`${winnr}wincmd w`);
                      await this.nvim.call("coc#cursor#move_to", [position.line, position.character]);
                      await this.handler.applyCodeAction(o2);
                    }
                  };
                });
                return [...arr, {
                  title: "Visual Select",
                  handler: async (item) => {
                    await nvim.command(`${winnr}wincmd w`);
                    await window_default.selectRange(item.range);
                  }
                }];
              },
              onDispose: () => {
                for (let view of this.treeViewList.slice()) {
                  if (view.provider === provider) {
                    view.dispose();
                  }
                }
              }
            });
            return provider;
          }
          getSortBy(bufnr) {
            return this.sortByMap.get(bufnr) ?? this.config.sortBy;
          }
          async showOutline(bufnr, tabId) {
            if (!this.providersMap.has(bufnr)) {
              this.providersMap.set(bufnr, this.createProvider(bufnr));
            }
            let treeView = this.treeViewList.find((v2) => v2.valid && v2.targetBufnr == bufnr && v2.targetTabId == tabId);
            if (!treeView) {
              let { switchSortKey, togglePreviewKey } = this.config;
              let autoPreview = this.config.autoPreview;
              let previewBufnr;
              treeView = new BasicTreeView("OUTLINE", {
                autoWidth: this.config.autoWidth,
                bufhidden: "hide",
                enableFilter: true,
                treeDataProvider: this.providersMap.get(bufnr)
              });
              let sortBy = this.getSortBy(bufnr);
              let prev;
              treeView.description = `${sortBy[0].toUpperCase()}${sortBy.slice(1)}`;
              this.treeViewList.push(treeView);
              let disposable = events_default.on("BufEnter", (bufnr2) => {
                if (previewBufnr && bufnr2 !== previewBufnr) {
                  prev = void 0;
                  this.closePreview();
                }
              });
              treeView.onDispose(() => {
                let idx = this.treeViewList.findIndex((v2) => v2 === treeView);
                if (idx !== -1) this.treeViewList.splice(idx, 1);
                disposable.dispose();
                this.closePreview();
              });
              treeView.onDidChangeVisibility((visible) => {
                if (this.nvim.isVim && visible && previewBufnr) {
                  prev = void 0;
                  this.closePreview();
                }
              });
              treeView.onDidCursorMoved(async (node) => {
                if (autoPreview && prev !== node) {
                  prev = node;
                  previewBufnr = await this.doPreview(bufnr, node);
                }
              });
              treeView.registerLocalKeymap("n", switchSortKey, async () => {
                let arr = ["category", "name", "position"];
                let curr = this.getSortBy(bufnr);
                let items = arr.map((s2) => {
                  return { text: s2, disabled: s2 === curr };
                });
                let res = await window_default.showMenuPicker(items, { title: "Choose sort method" });
                if (res < 0) return;
                let sortBy2 = arr[res];
                this.sortByMap.set(bufnr, sortBy2);
                let views = this.treeViewList.filter((o2) => o2.targetBufnr == bufnr);
                views.forEach((view) => {
                  view.description = `${sortBy2[0].toUpperCase()}${sortBy2.slice(1)}`;
                });
                let item = this.buffers.getItem(bufnr);
                this.onSymbolsUpdate(bufnr, item.symbols);
              }, true);
              treeView.registerLocalKeymap("n", togglePreviewKey, async (node) => {
                autoPreview = !autoPreview;
                if (!autoPreview) {
                  prev = void 0;
                  this.closePreview();
                } else {
                  previewBufnr = await this.doPreview(bufnr, node);
                }
              }, true);
            }
            await treeView.show(this.config.splitCommand, false);
            return treeView;
          }
          async doPreview(bufnr, node) {
            if (!node) {
              this.closePreview();
              return;
            }
            let config = {
              bufnr,
              range: node.range,
              border: this.config.previewBorder,
              rounded: this.config.previewBorderRounded,
              maxWidth: this.config.previewMaxWidth,
              highlight: this.config.previewHighlightGroup,
              borderhighlight: this.config.previewBorderHighlightGroup,
              winblend: this.config.previewWinblend
            };
            return await this.nvim.call("coc#ui#outline_preview", [config]);
          }
          closePreview() {
            this.nvim.call("coc#ui#outline_close_preview", [], true);
          }
          /**
           * Create outline view.
           */
          async show(keep) {
            let [bufnr, winid] = await this.nvim.eval('[bufnr("%"),win_getid()]');
            let tabpage = await this.nvim.tabpage;
            let doc = workspace_default.getDocument(bufnr);
            if (doc && !doc.attached) {
              void window_default.showErrorMessage(`Unable to show outline, ${doc.notAttachReason}`);
              return;
            }
            let position = await window_default.getCursorPosition();
            let treeView = await this.showOutline(bufnr, tabpage.id);
            if (keep == 1 || keep === void 0 && this.config.keepWindow) {
              await this.nvim.command(`noa call win_gotoid(${winid})`);
            } else if (this.config.followCursor) {
              let disposable = treeView.onDidRefrash(async () => {
                disposable.dispose();
                let curr = await this.nvim.eval('bufnr("%")');
                if (curr == bufnr && treeView.visible) {
                  await this.revealPosition(bufnr, treeView, position);
                }
              });
            }
          }
          has(bufnr) {
            return this.providersMap.has(bufnr);
          }
          /**
           * Hide outline of current tab.
           */
          async hide() {
            let winid = await this.nvim.call("coc#window#find", ["cocViewId", "OUTLINE"]);
            if (winid == -1) return;
            await this.nvim.call("coc#window#close", [winid]);
          }
          dispose() {
            for (let view of this.treeViewList) {
              view.dispose();
            }
            this.treeViewList = [];
            for (let provider of this.providersMap.values()) {
              provider.dispose();
            }
            this.providersMap.clear();
            disposeAll(this.disposables);
          }
        };
      }
    });
    
    // src/handler/symbols/util.ts
    function convertSymbols(symbols) {
      let res = [];
      let arr = symbols.slice();
      arr.sort(sortDocumentSymbols);
      arr.forEach((s2) => addDocumentSymbol(res, s2, 0));
      return res;
    }
    function sortDocumentSymbols(a2, b2) {
      let ra = a2.selectionRange;
      let rb = b2.selectionRange;
      return comparePosition(ra.start, rb.start);
    }
    function addDocumentSymbol(res, sym, level2) {
      let { name: name2, selectionRange, detail, kind, children, range: range2, tags } = sym;
      let { start } = defaultValue(selectionRange, range2);
      let obj = {
        col: start.character + 1,
        lnum: start.line + 1,
        text: name2,
        level: level2,
        kind: getSymbolKind(kind),
        range: range2,
        selectionRange
      };
      if (detail) obj.detail = detail;
      if (tags && tags.includes(SymbolTag.Deprecated)) obj.deprecated = true;
      res.push(obj);
      if (children && children.length) {
        children.sort(sortDocumentSymbols);
        for (let sym2 of children) {
          addDocumentSymbol(res, sym2, level2 + 1);
        }
      }
    }
    var init_util9 = __esm({
      "src/handler/symbols/util.ts"() {
        "use strict";
        init_main();
        init_util();
        init_convert();
        init_position();
      }
    });
    
    // src/handler/symbols/index.ts
    var Symbols2;
    var init_symbols2 = __esm({
      "src/handler/symbols/index.ts"() {
        "use strict";
        init_main();
        init_events();
        init_languages();
        init_util();
        init_node();
        init_object();
        init_position();
        init_protocol();
        init_string();
        init_window();
        init_workspace();
        init_buffer7();
        init_outline2();
        init_util9();
        Symbols2 = class {
          constructor(nvim, handler) {
            this.nvim = nvim;
            this.handler = handler;
            this.buffers = workspace_default.registerBufferSync((doc) => {
              let { bufnr } = doc;
              let buf = new SymbolsBuffer(doc, this.autoUpdateBufnrs);
              buf.onDidUpdate((symbols) => {
                if (!this.outline) return;
                this.outline.onSymbolsUpdate(bufnr, symbols);
              });
              return buf;
            });
            this.outline = new SymbolsOutline(nvim, this.buffers, handler);
            const debounceTime13 = workspace_default.initialConfiguration.get("coc.preferences.currentFunctionSymbolDebounceTime", 300);
            let prev = "";
            let debounced = debounce2(async (bufnr, cursor) => {
              let item = this.buffers.getItem(bufnr);
              if (!item || !this.autoUpdate(bufnr)) return;
              let doc = item.doc;
              let character = characterIndex(doc.getline(cursor[0] - 1), cursor[1] - 1);
              let pos = Position.create(cursor[0] - 1, character);
              let func2 = await this.getFunctionSymbol(bufnr, pos);
              if (func2 != prev) {
                prev = func2;
                doc.buffer.setVar("coc_current_function", func2, true);
                this.nvim.callTimer("coc#util#do_autocmd", ["CocStatusChange"], true);
              }
            }, getConditionValue(debounceTime13, 0));
            events_default.on("CursorMoved", debounced, this, this.disposables);
            this.disposables.push(import_node4.Disposable.create(() => {
              debounced.clear();
            }));
            events_default.on("InsertEnter", (bufnr) => {
              debounced.clear();
              let buf = this.buffers.getItem(bufnr);
              if (buf) buf.cancel();
            }, null, this.disposables);
          }
          nvim;
          handler;
          buffers;
          disposables = [];
          outline;
          autoUpdateBufnrs = /* @__PURE__ */ new Set();
          autoUpdate(bufnr) {
            let doc = workspace_default.getDocument(bufnr);
            let config = workspace_default.getConfiguration("coc.preferences", doc);
            return config.get("currentFunctionSymbolAutoUpdate", false);
          }
          get labels() {
            return workspace_default.getConfiguration("suggest").get("completionItemKindLabels", {});
          }
          async getWorkspaceSymbols(input) {
            this.handler.checkProvider("workspaceSymbols" /* WorkspaceSymbols */, null);
            let tokenSource = new import_node4.CancellationTokenSource();
            return await languages_default.getWorkspaceSymbols(input, tokenSource.token);
          }
          async resolveWorkspaceSymbol(symbolInfo) {
            if (symbolInfo.location?.uri) return symbolInfo;
            let tokenSource = new import_node4.CancellationTokenSource();
            return await languages_default.resolveWorkspaceSymbol(symbolInfo, tokenSource.token);
          }
          async getDocumentSymbols(bufnr) {
            if (!bufnr) {
              bufnr = await this.nvim.call("bufnr", ["%"]);
              let doc = workspace_default.getDocument(bufnr);
              if (!doc || !doc.attached) return void 0;
            }
            let buf = this.buffers.getItem(bufnr);
            if (!buf) return;
            let res = await buf.getSymbols();
            return res ? convertSymbols(res) : void 0;
          }
          async getFunctionSymbol(bufnr, position) {
            let symbols = await this.getDocumentSymbols(bufnr);
            if (!symbols || symbols.length === 0) return "";
            symbols = symbols.filter((s2) => [
              "Class",
              "Method",
              "Function",
              "Struct"
            ].includes(s2.kind));
            let functionName = "";
            let labels = this.labels;
            for (let sym of symbols.reverse()) {
              if (sym.range && positionInRange(position, sym.range) == 0 && !sym.text.endsWith(") callback")) {
                functionName = sym.text;
                let label = labels[sym.kind.toLowerCase()];
                if (label) functionName = `${label} ${functionName}`;
                break;
              }
            }
            return functionName;
          }
          async getCurrentFunctionSymbol() {
            let bufnr = await this.nvim.call("bufnr", ["%"]);
            let doc = workspace_default.getDocument(bufnr);
            if (!doc || !doc.attached || !languages_default.hasProvider("documentSymbol" /* DocumentSymbol */, doc.textDocument)) return;
            let position = await window_default.getCursorPosition();
            return await this.getFunctionSymbol(bufnr, position);
          }
          /*
           * supportedSymbols must be string values of symbolKind
           */
          async selectSymbolRange(inner, visualmode, supportedSymbols) {
            let { doc } = await this.handler.getCurrentState();
            this.handler.checkProvider("documentSymbol" /* DocumentSymbol */, doc.textDocument);
            let range2;
            if (visualmode) {
              range2 = await window_default.getSelectedRange(visualmode);
            } else {
              let pos = await window_default.getCursorPosition();
              range2 = Range.create(pos, pos);
            }
            let symbols = await this.getDocumentSymbols(doc.bufnr);
            if (!symbols || symbols.length === 0) {
              void window_default.showWarningMessage("No symbols found");
              return;
            }
            symbols = symbols.filter((s2) => supportedSymbols.includes(s2.kind));
            let selectRange2;
            for (let sym of symbols.reverse()) {
              if (sym.range && !equals(sym.range, range2) && rangeInRange(range2, sym.range)) {
                selectRange2 = sym.range;
                break;
              }
            }
            if (inner && selectRange2) {
              let { start, end } = selectRange2;
              let line = doc.getline(start.line + 1);
              let endDelta = doc.filetype === "python" ? 0 : 1;
              let endLine = doc.getline(end.line - endDelta);
              selectRange2 = Range.create(start.line + 1, line.match(/^\s*/)[0].length, end.line - endDelta, endLine.length);
            }
            if (selectRange2) {
              await window_default.selectRange(selectRange2);
            } else if (["v", "V", ""].includes(visualmode)) {
              await this.nvim.command("normal! gv");
            }
          }
          async showOutline(keep) {
            await this.outline.show(keep);
          }
          async hideOutline() {
            await this.outline.hide();
          }
          hasOutline(bufnr) {
            return this.outline.has(bufnr);
          }
          dispose() {
            this.outline.dispose();
            this.buffers.dispose();
            disposeAll(this.disposables);
          }
        };
      }
    });
    
    // src/handler/typeHierarchy.ts
    function toTypeHierarchyItem(item) {
      return omit(item, ["children", "parent"]);
    }
    function getTitle2(kind) {
      return kind === "supertypes" ? "Super types" : "Sub types";
    }
    var TypeHierarchyHandler;
    var init_typeHierarchy2 = __esm({
      "src/handler/typeHierarchy.ts"() {
        "use strict";
        init_commands();
        init_events();
        init_languages();
        init_LocationsDataProvider();
        init_TreeView();
        init_util();
        init_array();
        init_lodash();
        init_window();
        init_workspace();
        TypeHierarchyHandler = class _TypeHierarchyHandler {
          constructor(nvim, handler) {
            this.nvim = nvim;
            this.handler = handler;
            this.loadConfiguration();
            workspace_default.onDidChangeConfiguration(this.loadConfiguration, this, this.disposables);
            events_default.on("BufWinEnter", (_2, winid) => {
              if (this.highlightWinids.has(winid)) {
                this.highlightWinids.delete(winid);
                let win = nvim.createWindow(winid);
                win.clearMatchGroup(_TypeHierarchyHandler.rangesHighlight);
              }
            }, null, this.disposables);
            this.disposables.push(commands_default.registerCommand(_TypeHierarchyHandler.commandId, async (winid, item, openCommand) => {
              let { nvim: nvim2 } = this;
              await nvim2.call("win_gotoid", [winid]);
              await workspace_default.jumpTo(item.uri, item.range.start, openCommand);
              let win = await nvim2.window;
              win.clearMatchGroup(_TypeHierarchyHandler.rangesHighlight);
              win.highlightRanges(_TypeHierarchyHandler.rangesHighlight, [item.selectionRange], 10, true);
              this.highlightWinids.add(win.id);
            }, null, true));
          }
          nvim;
          handler;
          config;
          disposables = [];
          static rangesHighlight = "CocSelectedRange";
          highlightWinids = /* @__PURE__ */ new Set();
          static commandId = "typeHierarchy.reveal";
          loadConfiguration(e2) {
            if (!e2 || e2.affectsConfiguration("typeHierarchy")) {
              let c2 = workspace_default.getConfiguration("typeHierarchy", null);
              this.config = {
                splitCommand: c2.get("splitCommand"),
                openCommand: c2.get("openCommand"),
                enableTooltip: c2.get("enableTooltip")
              };
            }
          }
          createProvider(rootItems, winid, kind) {
            let provider = new LocationsDataProvider(
              kind,
              winid,
              this.config,
              _TypeHierarchyHandler.commandId,
              rootItems,
              (kind2) => this.handler.getIcon(kind2),
              (el, meta, token) => this.getChildren(el, meta, token)
            );
            provider.addAction(`Show Super Types`, (el) => {
              provider.meta = "supertypes";
              let rootItems2 = [omit(el, ["children", "parent"])];
              provider.reset(rootItems2);
            });
            provider.addAction(`Show Sub Types`, (el) => {
              provider.meta = "subtypes";
              let rootItems2 = [omit(el, ["children", "parent"])];
              provider.reset(rootItems2);
            });
            return provider;
          }
          async getChildren(item, kind, token) {
            let res = [];
            let typeHierarchyItem = toTypeHierarchyItem(item);
            if (kind == "supertypes") {
              res = await languages_default.provideTypeHierarchySupertypes(typeHierarchyItem, token);
            } else {
              res = await languages_default.provideTypeHierarchySubtypes(typeHierarchyItem, token);
            }
            return res;
          }
          async prepare(doc, position) {
            this.handler.checkProvider("typeHierarchy" /* TypeHierarchy */, doc);
            return await this.handler.withRequestToken("typeHierarchy", async (token) => {
              return await languages_default.prepareTypeHierarchy(doc, position, token);
            }, false);
          }
          async showTypeHierarchyTree(kind) {
            const { doc, position, winid } = await this.handler.getCurrentState();
            await doc.synchronize();
            const rootItems = await this.prepare(doc.textDocument, position);
            if (isFalsyOrEmpty(rootItems)) {
              void window_default.showWarningMessage("Unable to get TypeHierarchyItems at cursor position.");
              return;
            }
            let provider = this.createProvider(rootItems, winid, kind);
            let treeView = new BasicTreeView("TYPES", { treeDataProvider: provider });
            treeView.title = getTitle2(kind);
            provider.onDidChangeTreeData((e2) => {
              if (!e2) treeView.title = getTitle2(provider.meta);
            });
            treeView.onDidChangeVisibility((e2) => {
              if (!e2.visible) provider.dispose();
            });
            this.disposables.push(treeView);
            await treeView.show(this.config.splitCommand);
          }
          dispose() {
            this.highlightWinids.clear();
            disposeAll(this.disposables);
          }
        };
      }
    });
    
    // src/handler/workspace.ts
    var import_v8, WorkspaceHandler;
    var init_workspace3 = __esm({
      "src/handler/workspace.ts"() {
        "use strict";
        import_v8 = require("v8");
        init_esm();
        init_commands();
        init_funcs();
        init_workspaceFolder();
        init_extension();
        init_languages();
        init_logger();
        init_mcp();
        init_highlighter();
        init_manager3();
        init_util();
        init_constants();
        init_errors();
        init_fs();
        init_is();
        init_node();
        init_string();
        init_window();
        init_workspace();
        WorkspaceHandler = class {
          constructor(nvim) {
            this.nvim = nvim;
            Object.defineProperty(window_default, "openLocalConfig", {
              get: () => this.openLocalConfig.bind(this)
            });
            extension_default.onDidUnloadExtension((name2) => {
              workspace_default.autocmds.removeExtensionAutocmds(name2);
            });
            commands_default.register({
              id: "workspace.openLocation",
              execute: async (winid, loc, openCommand) => {
                await nvim.call("win_gotoid", [winid]);
                await workspace_default.jumpTo(loc.uri, loc.range.start, openCommand);
              }
            }, true);
            commands_default.register({
              id: "workspace.openLocalConfig",
              execute: async () => {
                await this.openLocalConfig();
              }
            }, false, "Open config file of current workspace folder");
            commands_default.register({
              id: "workspace.undo",
              execute: async () => {
                await workspace_default.files.undoWorkspaceEdit();
              }
            }, false, "Undo previous this.workspace edit");
            commands_default.register({
              id: "workspace.redo",
              execute: async () => {
                await workspace_default.files.redoWorkspaceEdit();
              }
            }, false, "Redo previous this.workspace edit");
            commands_default.register({
              id: "workspace.inspectEdit",
              execute: async () => {
                await workspace_default.files.inspectEdit();
              }
            }, false, "Inspect previous this.workspace edit in new tab");
            commands_default.register({
              id: "workspace.renameCurrentFile",
              execute: async () => {
                await this.renameCurrent();
              }
            }, false, "change current filename to a new name and reload it.");
            commands_default.register({
              id: "document.checkBuffer",
              execute: async () => {
                await this.bufferCheck();
              }
            }, false, "Check providers for current buffer.");
            commands_default.register({
              id: "document.echoFiletype",
              execute: async () => {
                let bufnr = await nvim.call("bufnr", "%");
                let doc = workspace_default.getAttachedDocument(bufnr);
                await window_default.echoLines([doc.filetype]);
              }
            }, false, "echo the mapped filetype of the current buffer");
            commands_default.register({
              id: "workspace.workspaceFolders",
              execute: async () => {
                let folders = workspace_default.workspaceFolders;
                let lines = folders.map((folder) => u.parse(folder.uri).fsPath);
                await window_default.echoLines(lines);
              }
            }, false, "show opened workspaceFolders.");
            commands_default.register({
              id: "workspace.writeHeapSnapshot",
              execute: async () => {
                let filepath = path.join(os.homedir(), `${crypto2.randomUUID()}-${process.pid}.heapsnapshot`);
                (0, import_v8.writeHeapSnapshot)(filepath);
                void window_default.showInformationMessage(`Create heapdump at: ${filepath}`);
                return filepath;
              }
            }, false, "Generates a snapshot of the current V8 heap and writes it to a JSON file.");
            commands_default.register({
              id: "workspace.showOutput",
              execute: async (name2, cmd) => {
                if (!name2) name2 = await window_default.showQuickPick(workspace_default.channelNames, { title: "Choose output name" });
                window_default.showOutputChannel(toText(name2), cmd);
              }
            }, false, "open output buffer to show output from languageservers or extensions.");
            commands_default.register({
              id: "workspace.clearWatchman",
              execute: async () => {
                let res = await window_default.runTerminalCommand("watchman watch-del-all");
                if (res.success) void window_default.showInformationMessage("Cleared watchman watching directories.");
                return res.success;
              }
            }, false, "run watch-del-all for watchman to free up memory.");
          }
          nvim;
          async openLog() {
            let file = getLoggerFile();
            await workspace_default.jumpTo(u.file(file).toString());
          }
          /**
           * Open local config file
           */
          async openLocalConfig() {
            let fsPath2 = await this.nvim.call("coc#util#get_fullpath", []);
            let filetype = await this.nvim.eval("&filetype");
            if (!fsPath2 || !path.isAbsolute(fsPath2)) {
              void window_default.showWarningMessage(`Current buffer doesn't have valid file path.`);
              return;
            }
            let folder = workspace_default.getWorkspaceFolder(u.file(fsPath2).toString());
            if (!folder) {
              let c2 = workspace_default.initialConfiguration.get("workspace");
              let patterns = defaultValue(c2.rootPatterns, []);
              let ignored = defaultValue(c2.ignoredFiletypes, []);
              let msg;
              if (ignored.includes(filetype)) msg = `Filetype '${filetype}' is ignored for workspace folder resolve.`;
              if (!msg) msg = `Can't resolve workspace folder for file '${fsPath2}, consider create one of ${patterns.join(", ")} in your project root.'.`;
              void window_default.showWarningMessage(msg);
              return;
            }
            let root = u.parse(folder.uri).fsPath;
            let dir = path.join(root, ".vim");
            if (!fs.existsSync(dir)) {
              let res = await window_default.showPrompt(`Would you like to create folder'${root}/.vim'?`);
              if (!res) return;
              fs.mkdirSync(dir);
            }
            await workspace_default.jumpTo(u.file(path.join(dir, CONFIG_FILE_NAME)));
          }
          async renameCurrent() {
            let { nvim } = this;
            let oldPath = await nvim.call("coc#util#get_fullpath", []);
            let newPath = await callAsync(nvim, "input", ["New path: ", oldPath, "file"]);
            newPath = newPath.trim();
            if (newPath === oldPath || !newPath) return;
            if (oldPath.toLowerCase() != newPath.toLowerCase() && fs.existsSync(newPath)) {
              let overwrite = await window_default.showPrompt(`${newPath} exists, overwrite?`);
              if (!overwrite) return;
            }
            await workspace_default.renameFile(oldPath, newPath, { overwrite: true });
          }
          addWorkspaceFolder(folder) {
            if (!string(folder)) throw TypeError(`folder should be string`);
            folder = workspace_default.expand(folder);
            if (!isDirectory(folder)) throw directoryNotExists(folder);
            workspace_default.workspaceFolderControl.addWorkspaceFolder(folder, true);
          }
          removeWorkspaceFolder(folder) {
            if (!string(folder)) throw TypeError(`folder should be string`);
            folder = workspace_default.expand(folder);
            if (!isDirectory(folder)) throw directoryNotExists(folder);
            workspace_default.workspaceFolderControl.removeWorkspaceFolder(folder);
          }
          async bufferCheck() {
            let doc = await workspace_default.document;
            if (!doc.attached) {
              await window_default.showDialog({
                title: "Buffer check result",
                content: `Document not attached, ${doc.notAttachReason}`,
                highlight: "WarningMsg"
              });
              return;
            }
            let hi = new Highlighter();
            hi.addLine("Provider state", "Title");
            hi.addLine("");
            for (let name2 of Object.values(ProviderName)) {
              if (name2 === "onTypeEdit" /* OnTypeEdit */) continue;
              let exists = languages_default.hasProvider(name2, doc.textDocument);
              hi.addTexts([
                { text: "-", hlGroup: "Comment" },
                { text: " " },
                exists ? { text: "\u2713", hlGroup: "CocListFgGreen" } : { text: "\u2717", hlGroup: "CocListFgRed" },
                { text: " " },
                { text: name2, hlGroup: exists ? "Normal" : "CocFadeOut" }
              ]);
            }
            await window_default.showDialog({
              title: "Buffer check result",
              content: hi.content,
              highlights: hi.highlights
            });
          }
          async doAutocmd(id2, args) {
            let timeout2 = workspace_default.getConfiguration("editor", null).get("autocmdTimeout", 1e3);
            await workspace_default.autocmds.doAutocmd(id2, args, timeout2);
          }
          async getConfiguration(key) {
            let document2 = await workspace_default.document;
            return workspace_default.getConfiguration(key, document2);
          }
          getRootPatterns(bufnr) {
            let doc = workspace_default.getDocument(bufnr);
            if (!doc) return null;
            return {
              buffer: workspace_default.workspaceFolderControl.getRootPatterns(doc, 0 /* Buffer */),
              server: workspace_default.workspaceFolderControl.getRootPatterns(doc, 1 /* LanguageServer */),
              global: workspace_default.workspaceFolderControl.getRootPatterns(doc, 2 /* Global */)
            };
          }
          async ensureDocument(bufnr) {
            let doc = bufnr ? workspace_default.getDocument(bufnr) : await workspace_default.document;
            return doc && doc.attached;
          }
          async doKeymap(key, defaultReturn = "") {
            return await workspace_default.keymaps.doKeymap(key, defaultReturn);
          }
          async doInsertKeymap(key, ...args) {
            return await workspace_default.keymaps.doInsertKeymap(key, ...args);
          }
          async snippetCheck(checkExpand, checkJump) {
            if (checkJump) {
              let jumpable = manager_default2.jumpable();
              if (jumpable) return true;
            }
            if (checkExpand) {
              let expandable = await Promise.resolve(extension_default.manager.call("coc-snippets", "expandable", []));
              if (expandable) return true;
            }
            return false;
          }
          async showInfo() {
            let lines = [];
            let version2 = workspace_default.version + (true ? "-2f73f50 2026-12-02 19:00:50 +0800" : "");
            lines.push("## versions");
            lines.push("");
            let out = await this.nvim.call("execute", ["version"]);
            let first = out.trim().split(/\r?\n/, 2)[0].replace(/\(.*\)/, "").trim();
            lines.push("vim version: " + first + `${isVim ? " " + workspace_default.env.version : ""}`);
            lines.push("node version: " + process.version);
            lines.push("coc.nvim version: " + version2);
            lines.push("coc.nvim directory: " + path.dirname(__dirname));
            lines.push("term: " + defaultValue(process.env.TERM_PROGRAM, process.env.TERM));
            lines.push("platform: " + process.platform);
            lines.push("");
            lines.push("## MCP server");
            lines.push("");
            lines.push(...mcp_default.getStatusLines());
            lines.push("");
            lines.push("## Log of coc.nvim");
            lines.push("");
            let file = getLoggerFile();
            if (fs.existsSync(file)) {
              let content = fs.readFileSync(file, { encoding: "utf8" });
              lines.push(...content.split(/\r?\n/).map((line) => stripAnsi(line)));
            }
            let bufnr = await this.nvim.call("bufadd", ["[Coc Info]"]);
            await this.nvim.command(`vertical sbuffer ${bufnr} | setl buftype=nofile bufhidden=wipe nobuflisted`);
            let buf = await this.nvim.buffer;
            await buf.setLines(lines, { start: 0, end: -1, strictIndexing: false });
          }
        };
      }
    });
    
    // src/handler/index.ts
    var logger71, requestTimeout, Handler;
    var init_handler = __esm({
      "src/handler/index.ts"() {
        "use strict";
        init_main();
        init_commands();
        init_events();
        init_languages();
        init_logger();
        init_util();
        init_convert();
        init_is();
        init_object();
        init_protocol();
        init_textedit();
        init_window();
        init_workspace();
        init_callHierarchy2();
        init_codeActions();
        init_codelens();
        init_colors();
        init_commands3();
        init_fold();
        init_format2();
        init_highlights2();
        init_hover2();
        init_inlayHint2();
        init_inline();
        init_nextEdit();
        init_linkedEditing();
        init_links2();
        init_locations();
        init_refactor();
        init_rename2();
        init_selectionRange2();
        init_semanticTokens2();
        init_signature();
        init_symbols2();
        init_typeHierarchy2();
        init_workspace3();
        logger71 = createLogger("Handler");
        requestTimeout = getConditionValue(500, 10);
        Handler = class {
          constructor(nvim) {
            this.nvim = nvim;
            events_default.on(["CursorMoved", "CursorMovedI", "InsertEnter", "InsertSnippet", "InsertLeave"], () => {
              if (this.requestTokenSource) {
                this.requestTokenSource.cancel();
                this.requestTokenSource = null;
              }
            }, null, this.disposables);
            this.fold = new FoldHandler(nvim, this);
            this.links = new Links(nvim, this);
            this.codeLens = new CodeLensManager2(nvim);
            this.colors = new Colors(nvim, this);
            this.format = new FormatHandler(nvim, this);
            this.symbols = new Symbols2(nvim, this);
            this.refactor = new Refactor(nvim, this);
            this.hover = new HoverHandler(nvim, this);
            this.locations = new LocationsHandler(nvim, this);
            this.signature = new Signature(nvim, this);
            this.rename = new Rename(nvim, this);
            this.workspace = new WorkspaceHandler(nvim);
            this.codeActions = new CodeActions(nvim, this);
            this.commands = new Commands(nvim);
            this.callHierarchy = new CallHierarchyHandler(nvim, this);
            this.typeHierarchy = new TypeHierarchyHandler(nvim, this);
            this.documentHighlighter = new Highlights2(nvim, this);
            this.semanticHighlighter = new SemanticTokens5(nvim);
            this.selectionRange = new SelectionRangeHandler(nvim, this);
            this.linkedEditingHandler = new LinkedEditingHandler(nvim, this);
            this.inlayHintHandler = new InlayHintHandler(nvim, this);
            this.inlineCompletion = new InlineCompletion(nvim, this);
            this.nextEdit = new NextEdit(nvim, this, this.inlineCompletion);
            this.disposables.push({
              dispose: () => {
                this.callHierarchy.dispose();
                this.typeHierarchy.dispose();
                this.codeLens.dispose();
                this.links.dispose();
                this.refactor.dispose();
                this.signature.dispose();
                this.symbols.dispose();
                this.hover.dispose();
                this.colors.dispose();
                this.documentHighlighter.dispose();
                this.semanticHighlighter.dispose();
                this.inlineCompletion.dispose();
                this.nextEdit.dispose();
              }
            });
            this.registerCommands();
          }
          nvim;
          documentHighlighter;
          colors;
          signature;
          locations;
          symbols;
          refactor;
          codeActions;
          format;
          hover;
          codeLens;
          commands;
          links;
          rename;
          fold;
          selectionRange;
          callHierarchy;
          typeHierarchy;
          inlineCompletion;
          nextEdit;
          semanticHighlighter;
          workspace;
          linkedEditingHandler;
          inlayHintHandler;
          _requestStatusItem;
          requestTokenSource;
          requestTimer;
          disposables = [];
          registerCommands() {
            commands_default.register({
              id: "document.renameCurrentWord",
              execute: async () => {
                let doc = await workspace_default.document;
                let edit2 = await this.rename.getWordEdit();
                let ranges = getRangesFromEdit(doc.uri, toObject(edit2));
                if (!ranges) return window_default.showWarningMessage("Invalid position");
                await commands_default.executeCommand("editor.action.addRanges", ranges);
              }
            }, false, "rename word under cursor in current buffer by multiple cursors.");
            commands_default.register({
              id: ["workbench.action.reloadWindow", "editor.action.restart"],
              execute: () => {
                this.nvim.command("CocRestart", true);
              }
            }, true);
            commands_default.register({
              id: "workbench.action.openSettingsJson",
              execute: () => {
                this.nvim.command("CocConfig", true);
              }
            }, true);
            this.register("vscode.open", async (url) => {
              await workspace_default.openResource(url.toString());
            });
            this.register("editor.action.doCodeAction", async (action) => {
              await this.codeActions.applyCodeAction(action);
            });
            this.register("editor.action.triggerParameterHints", async () => {
              await this.signature.triggerSignatureHelp();
            });
            this.register("editor.action.showReferences", async (uri, position, references) => {
              await workspace_default.jumpTo(uri, position);
              await workspace_default.showLocations(references);
            });
            this.register("editor.action.rename", async (uri, position, newName) => {
              if (Array.isArray(uri)) {
                position = uri[1];
                uri = uri[0];
              }
              await workspace_default.jumpTo(uri, position);
              return await this.rename.rename(newName);
            });
            this.register("editor.action.format", async () => {
              await this.format.formatCurrentBuffer();
            });
            this.register("editor.action.showRefactor", async (locations) => {
              let locs = locations.filter((o2) => Location.is(o2));
              return await this.refactor.fromLocations(locs);
            });
            this.register("editor.action.triggerInlineCompletion", async (option) => {
              let bufnr = await this.nvim.eval('bufnr("%")');
              return await this.inlineCompletion.trigger(bufnr, option);
            });
            this.register("editor.action.triggerNextEdit", async (option) => {
              let bufnr = await this.nvim.eval('bufnr("%")');
              return this.nextEdit.trigger(bufnr, { ...option, autoTrigger: false });
            });
          }
          register(key, handler) {
            this.disposables.push(commands_default.registerCommand(key, handler, null, true));
          }
          get requestStatusItem() {
            if (this._requestStatusItem) return this._requestStatusItem;
            this._requestStatusItem = window_default.createStatusBarItem(0, { progress: true });
            return this._requestStatusItem;
          }
          get labels() {
            let configuration2 = workspace_default.initialConfiguration;
            return configuration2.get("suggest.completionItemKindLabels", {});
          }
          get uri() {
            return window_default.activeTextEditor?.uri;
          }
          async getCurrentState() {
            let { nvim } = this;
            let [bufnr, [line, character], winid, mode] = await nvim.eval("[bufnr('%'),coc#cursor#position(),win_getid(),mode()]");
            await workspace_default.document;
            let doc = workspace_default.getAttachedDocument(bufnr);
            return {
              doc,
              mode,
              position: Position.create(line, character),
              winid
            };
          }
          addDisposable(disposable) {
            this.disposables.push(disposable);
          }
          /**
           * Throw error when provider doesn't exist.
           */
          checkProvider(id2, document2) {
            if (!languages_default.hasProvider(id2, document2)) {
              throw new Error(`${id2} provider not found for current buffer, your language server doesn't support it.`);
            }
          }
          async withRequestToken(name2, fn, checkEmpty) {
            if (this.requestTokenSource) {
              this.requestTokenSource.cancel();
              this.requestTokenSource.dispose();
            }
            clearTimeout(this.requestTimer);
            let statusItem = this.requestStatusItem;
            let tokenSource = new import_node4.CancellationTokenSource();
            this.requestTokenSource = tokenSource;
            let { token } = tokenSource;
            token.onCancellationRequested(() => {
              statusItem.text = `${name2} request canceled`;
              statusItem.isProgress = false;
              this.requestTimer = setTimeout(() => {
                statusItem.hide();
              }, requestTimeout);
            });
            statusItem.isProgress = true;
            statusItem.text = `requesting ${name2}`;
            statusItem.show();
            let res;
            try {
              res = await Promise.resolve(fn(token));
            } catch (e2) {
              logger71.error(`Error on request ${name2}`, e2);
              this.nvim.errWriteLine(`Error on ${name2}: ${e2}`);
            }
            if (this.requestTokenSource === tokenSource) {
              tokenSource.dispose();
              this.requestTokenSource = void 0;
            }
            if (token.isCancellationRequested) return null;
            statusItem.hide();
            if (checkEmpty && (!res || Array.isArray(res) && res.length == 0)) {
              void window_default.showWarningMessage(`${name2} not found`);
              return null;
            }
            return res;
          }
          getIcon(kind) {
            let { labels } = this;
            let kindText = getSymbolKind(kind);
            const key = kindText[0].toLowerCase() + kindText.slice(1);
            let text = hasOwnProperty2(labels, key) ? labels[key] : void 0;
            if (!string(text) || !text.length) text = string(labels["default"]) ? labels["default"] : kindText[0].toLowerCase();
            return {
              text,
              hlGroup: kindText == "Unknown" ? "CocSymbolDefault" : `CocSymbol${kindText}`
            };
          }
          async getCodeActions(doc, range2, only) {
            let codeActions = await this.codeActions.getCodeActions(doc, range2, only);
            return codeActions.filter((o2) => !o2.disabled);
          }
          async applyCodeAction(action) {
            await this.codeActions.applyCodeAction(action);
          }
          async hasProvider(id2, bufnr) {
            if (!bufnr) bufnr = await this.nvim.call("bufnr", "%");
            let doc = workspace_default.getDocument(bufnr);
            if (!doc || !doc.attached) return false;
            return languages_default.hasProvider(id2, doc.textDocument);
          }
          dispose() {
            if (this.requestTimer) {
              clearTimeout(this.requestTimer);
            }
            disposeAll(this.disposables);
          }
        };
      }
    });
    
    // src/plugin.ts
    var logger72, Plugin;
    var init_plugin = __esm({
      "src/plugin.ts"() {
        "use strict";
        init_main();
        init_commands();
        init_completion2();
        init_sources2();
        init_cursors();
        init_manager();
        init_events();
        init_extension();
        init_handler();
        init_languages();
        init_manager4();
        init_logger();
        init_mcp();
        init_services();
        init_manager3();
        init_util();
        init_window();
        init_workspace();
        logger72 = createLogger("plugin");
        Plugin = class {
          constructor(nvim) {
            this.nvim = nvim;
            Object.defineProperty(window_default, "workspace", {
              get: () => workspace_default
            });
            Object.defineProperty(workspace_default, "nvim", {
              get: () => this.nvim
            });
            Object.defineProperty(window_default, "nvim", {
              get: () => this.nvim
            });
            Object.defineProperty(window_default, "cursors", {
              get: () => this.cursors
            });
            Object.defineProperty(commands_default, "nvim", {
              get: () => this.nvim
            });
            this.cursors = new Cursors(nvim);
            manager_default3.init(nvim);
            this.addAction("checkJsonExtension", () => {
              if (extension_default.has("coc-json")) return;
              void window_default.showInformationMessage(`Run :CocInstall coc-json for json intellisense`);
            });
            this.addAction("rootPatterns", (bufnr) => this.handler.workspace.getRootPatterns(bufnr));
            this.addAction("ensureDocument", (bufnr) => this.handler.workspace.ensureDocument(bufnr));
            this.addAction("addWorkspaceFolder", (folder) => this.handler.workspace.addWorkspaceFolder(folder));
            this.addAction("removeWorkspaceFolder", (folder) => this.handler.workspace.removeWorkspaceFolder(folder));
            this.addAction("getConfig", (key) => this.handler.workspace.getConfiguration(key));
            this.addAction("doAutocmd", (id2, ...args) => this.handler.workspace.doAutocmd(id2, args));
            this.addAction("openLog", () => this.handler.workspace.openLog());
            this.addAction("attach", () => workspace_default.attach());
            this.addAction("detach", () => workspace_default.detach());
            this.addAction("doKeymap", (key, defaultReturn) => this.handler.workspace.doKeymap(key, defaultReturn));
            this.addAction("doInsertKeymap", (key, ...args) => this.handler.workspace.doInsertKeymap(key, ...args));
            this.addAction("registerExtensions", (...folders) => extension_default.manager.loadExtension(folders), "registExtensions");
            this.addAction("snippetCheck", (checkExpand, checkJump) => this.handler.workspace.snippetCheck(checkExpand, checkJump));
            this.addAction("snippetInsert", (range2, newText, mode, ultisnip) => manager_default2.insertSnippet(newText, true, range2, mode, ultisnip));
            this.addAction("snippetNext", () => manager_default2.nextPlaceholder());
            this.addAction("snippetPrev", () => manager_default2.previousPlaceholder());
            this.addAction("snippetCancel", () => manager_default2.cancel());
            this.addAction("openLocalConfig", () => this.handler.workspace.openLocalConfig());
            this.addAction("bufferCheck", () => this.handler.workspace.bufferCheck());
            this.addAction("showInfo", () => this.handler.workspace.showInfo());
            this.addAction("hasProvider", (id2, bufnr) => this.handler.hasProvider(id2, bufnr));
            this.addAction("cursorsSelect", (bufnr, kind, mode) => this.cursors.select(bufnr, kind, mode));
            this.addAction("commandList", () => this.handler.commands.getCommandList());
            this.addAction("selectSymbolRange", (inner, visualmode, supportedSymbols) => this.handler.symbols.selectSymbolRange(inner, visualmode, supportedSymbols));
            this.addAction("openList", (...args) => manager_default3.start(args));
            this.addAction("listNames", () => manager_default3.names);
            this.addAction("listDescriptions", () => manager_default3.descriptions);
            this.addAction("listLoadItems", (name2) => manager_default3.loadItems(name2));
            this.addAction("listResume", (name2) => manager_default3.resume(name2));
            this.addAction("listCancel", () => manager_default3.cancel(true));
            this.addAction("listPrev", (name2) => manager_default3.previous(name2));
            this.addAction("listNext", (name2) => manager_default3.next(name2));
            this.addAction("listFirst", (name2) => manager_default3.first(name2));
            this.addAction("listLast", (name2) => manager_default3.last(name2));
            this.addAction("sendRequest", (id2, method, params) => services_default.sendRequest(id2, method, params));
            this.addAction("sendNotification", (id2, method, params) => services_default.sendNotification(id2, method, params));
            this.addAction("registerNotification", (id2, method) => services_default.registerNotification(id2, method), "registNotification");
            this.addAction("updateConfig", (section2, val) => workspace_default.configurations.updateMemoryConfig({ [section2]: val }));
            this.addAction("links", () => this.handler.links.getLinks());
            this.addAction("openLink", () => this.handler.links.openCurrentLink());
            this.addAction("pickColor", () => this.handler.colors.pickColor());
            this.addAction("colorPresentation", () => this.handler.colors.pickPresentation());
            this.addAction("highlight", () => this.handler.documentHighlighter.highlight());
            this.addAction("fold", (kind) => this.handler.fold.fold(kind));
            this.addAction("startCompletion", (option) => completion_default.startCompletion(option));
            this.addAction("stopCompletion", (kind) => completion_default.stop(kind));
            this.addAction("sourceStat", () => sources_default.sourceStats());
            this.addAction("refreshSource", (name2) => sources_default.refresh(name2));
            this.addAction("toggleSource", (name2) => sources_default.toggleSource(name2));
            this.addAction("fillDiagnostics", (bufnr) => manager_default.setLocationlist(bufnr));
            this.addAction("diagnosticRefresh", (bufnr) => manager_default.refresh(bufnr));
            this.addAction("diagnosticInfo", (target) => manager_default.echoCurrentMessage(target));
            this.addAction("diagnosticToggle", (enable) => manager_default.toggleDiagnostic(enable));
            this.addAction("diagnosticToggleBuffer", (bufnr, enable) => manager_default.toggleDiagnosticBuffer(bufnr, enable));
            this.addAction("diagnosticNext", (severity) => manager_default.jumpNext(severity));
            this.addAction("diagnosticPrevious", (severity) => manager_default.jumpPrevious(severity));
            this.addAction("diagnosticPreview", () => manager_default.preview());
            this.addAction("diagnosticList", () => manager_default.getDiagnosticList());
            this.addAction("diagnosticRelatedInformation", () => manager_default.relatedInformation());
            this.addAction("findLocations", (id2, method, params, openCommand) => this.handler.locations.findLocations(id2, method, params, openCommand));
            this.addAction("getTagList", () => this.handler.locations.getTagList());
            this.addAction("definitions", () => this.handler.locations.definitions());
            this.addAction("declarations", () => this.handler.locations.declarations());
            this.addAction("implementations", () => this.handler.locations.implementations());
            this.addAction("typeDefinitions", () => this.handler.locations.typeDefinitions());
            this.addAction("references", (excludeDeclaration) => this.handler.locations.references(excludeDeclaration));
            this.addAction("jumpUsed", (openCommand) => this.handler.locations.gotoReferences(openCommand, false));
            this.addAction("jumpDefinition", (openCommand) => this.handler.locations.gotoDefinition(openCommand));
            this.addAction("jumpReferences", (openCommand) => this.handler.locations.gotoReferences(openCommand));
            this.addAction("jumpTypeDefinition", (openCommand) => this.handler.locations.gotoTypeDefinition(openCommand));
            this.addAction("jumpDeclaration", (openCommand) => this.handler.locations.gotoDeclaration(openCommand));
            this.addAction("jumpImplementation", (openCommand) => this.handler.locations.gotoImplementation(openCommand));
            this.addAction("doHover", (hoverTarget) => this.handler.hover.onHover(hoverTarget));
            this.addAction("definitionHover", (hoverTarget) => this.handler.hover.definitionHover(hoverTarget));
            this.addAction("getHover", (loc) => this.handler.hover.getHover(loc));
            this.addAction("showSignatureHelp", () => this.handler.signature.triggerSignatureHelp());
            this.addAction("documentSymbols", (bufnr) => this.handler.symbols.getDocumentSymbols(bufnr));
            this.addAction("symbolRanges", () => this.handler.documentHighlighter.getSymbolsRanges());
            this.addAction("selectionRanges", () => this.handler.selectionRange.getSelectionRanges());
            this.addAction("rangeSelect", (visualmode, forward) => this.handler.selectionRange.selectRange(visualmode, forward));
            this.addAction("rename", (newName) => this.handler.rename.rename(newName));
            this.addAction("getWorkspaceSymbols", (input) => this.handler.symbols.getWorkspaceSymbols(input));
            this.addAction("resolveWorkspaceSymbol", (symbolInfo) => this.handler.symbols.resolveWorkspaceSymbol(symbolInfo));
            this.addAction("formatSelected", (mode) => this.handler.format.formatCurrentRange(mode));
            this.addAction("format", () => this.handler.format.formatCurrentBuffer());
            this.addAction("commands", () => commands_default.commandList);
            this.addAction("services", () => services_default.getServiceStats());
            this.addAction("toggleService", (name2) => services_default.toggle(name2));
            this.addAction("codeAction", (mode, only, noExclude) => this.handler.codeActions.doCodeAction(mode, only, noExclude));
            this.addAction("organizeImport", () => this.handler.codeActions.organizeImport());
            this.addAction("fixAll", () => this.handler.codeActions.doCodeAction(null, [CodeActionKind.SourceFixAll]));
            this.addAction("doCodeAction", (codeAction) => this.handler.codeActions.applyCodeAction(codeAction));
            this.addAction("codeActions", (mode, only) => this.handler.codeActions.getCurrentCodeActions(mode, only));
            this.addAction("quickfixes", (mode) => this.handler.codeActions.getCurrentCodeActions(mode, [CodeActionKind.QuickFix]));
            this.addAction("codeLensAction", () => this.handler.codeLens.doAction());
            this.addAction("doQuickfix", () => this.handler.codeActions.doQuickfix());
            this.addAction("search", (...args) => this.handler.refactor.search(args));
            this.addAction("saveRefactor", (bufnr) => this.handler.refactor.save(bufnr));
            this.addAction("refactor", () => this.handler.refactor.doRefactor());
            this.addAction("runCommand", (...args) => this.handler.commands.runCommand(...args));
            this.addAction("repeatCommand", () => this.handler.commands.repeat());
            this.addAction("installExtensions", (...list2) => extension_default.installExtensions(list2));
            this.addAction("updateExtensions", (silent) => extension_default.updateExtensions(silent, extension_default.getUpdateSettings().updateUIInTab));
            this.addAction("extensionStats", () => extension_default.getExtensionStates());
            this.addAction("loadedExtensions", () => extension_default.manager.loadedExtensions);
            this.addAction("watchExtension", (id2) => extension_default.manager.watchExtension(id2));
            this.addAction("activeExtension", (name2) => extension_default.manager.activate(name2));
            this.addAction("deactivateExtension", (name2) => extension_default.manager.deactivate(name2));
            this.addAction("reloadExtension", (name2) => extension_default.manager.reloadExtension(name2));
            this.addAction("toggleExtension", (name2) => extension_default.manager.toggleExtension(name2));
            this.addAction("uninstallExtension", (...args) => extension_default.manager.uninstallExtensions(args));
            this.addAction("getCurrentFunctionSymbol", () => this.handler.symbols.getCurrentFunctionSymbol());
            this.addAction("showOutline", (keep) => this.handler.symbols.showOutline(keep));
            this.addAction("hideOutline", () => this.handler.symbols.hideOutline());
            this.addAction("getWordEdit", () => this.handler.rename.getWordEdit());
            this.addAction("addCommand", (cmd) => this.handler.commands.addVimCommand(cmd));
            this.addAction("addRanges", (ranges) => this.cursors.addRanges(ranges));
            this.addAction("currentWorkspacePath", () => workspace_default.rootPath);
            this.addAction("selectCurrentPlaceholder", (triggerAutocmd) => manager_default2.selectCurrentPlaceholder(!!triggerAutocmd));
            this.addAction("codeActionRange", (start, end, only) => this.handler.codeActions.codeActionRange(start, end, only));
            this.addAction("incomingCalls", (item) => this.handler.callHierarchy.getIncoming(item));
            this.addAction("outgoingCalls", (item) => this.handler.callHierarchy.getOutgoing(item));
            this.addAction("showIncomingCalls", () => this.handler.callHierarchy.showCallHierarchyTree("incoming"));
            this.addAction("showOutgoingCalls", () => this.handler.callHierarchy.showCallHierarchyTree("outgoing"));
            this.addAction("showSuperTypes", () => this.handler.typeHierarchy.showTypeHierarchyTree("supertypes"));
            this.addAction("showSubTypes", () => this.handler.typeHierarchy.showTypeHierarchyTree("subtypes"));
            this.addAction("inspectSemanticToken", () => this.handler.semanticHighlighter.inspectSemanticToken());
            this.addAction("semanticHighlight", () => this.handler.semanticHighlighter.highlightCurrent());
            this.addAction("showSemanticHighlightInfo", () => this.handler.semanticHighlighter.showHighlightInfo());
            this.addAction("inlineTrigger", (bufnr, option) => this.handler.inlineCompletion.trigger(bufnr, option));
            this.addAction("inlineCancel", () => this.handler.inlineCompletion.cancel());
            this.addAction("inlineAccept", (bufnr, kind) => this.handler.inlineCompletion.accept(bufnr, kind));
            this.addAction("inlineNext", (bufnr) => this.handler.inlineCompletion.next(bufnr));
            this.addAction("inlinePrev", (bufnr) => this.handler.inlineCompletion.prev(bufnr));
            this.addAction("nextEditTrigger", async (option) => {
              let bufnr = await this.nvim.eval('bufnr("%")');
              return this.handler.nextEdit.trigger(bufnr, { ...option, autoTrigger: false });
            });
            this.addAction("nextEditAccept", () => this.handler.nextEdit.accept());
            this.addAction("nextEditCancel", () => this.handler.nextEdit.cancel());
            this.addAction("nextEditNext", () => this.handler.nextEdit.next());
            this.addAction("nextEditPrev", () => this.handler.nextEdit.prev());
            this.addAction("nextEditAvailable", () => this.handler.nextEdit.available());
            this.addAction("notificationHistory", () => window_default.notifications.history);
          }
          nvim;
          ready = false;
          initialized = false;
          handler;
          cursors;
          actions = /* @__PURE__ */ new Map();
          disposables = [];
          get workspace() {
            return workspace_default;
          }
          get window() {
            return window_default;
          }
          get completion() {
            return completion_default;
          }
          addAction(key, fn, alias) {
            if (this.actions.has(key)) {
              throw new Error(`Action ${key} already exists`);
            }
            this.actions.set(key, fn);
            if (alias) this.actions.set(alias, fn);
          }
          async init(rtp, mcpStarted = false) {
            if (this.initialized) return;
            this.initialized = true;
            let { nvim } = this;
            await extension_default.init(rtp);
            await workspace_default.init(window_default);
            nvim.setVar("coc_workspace_initialized", true, true);
            manager_default2.init();
            services_default.init();
            sources_default.init();
            languages_default.sources = sources_default;
            completion_default.init();
            manager_default.init();
            this.handler = new Handler(nvim);
            this.disposables.push(this.handler);
            commands_default.register({
              id: "mcp.start",
              execute: async () => {
                await mcp_default.start(true);
                if (mcp_default.running) {
                  await window_default.echoLines(["MCP server started"]);
                } else {
                  await window_default.echoLines(["MCP server failed to start"]);
                }
              }
            }, false, "Start the MCP socket server (ignores mcp.autoStart)");
            commands_default.register({
              id: "mcp.stop",
              execute: async () => {
                mcp_default.stop();
                await window_default.echoLines(["MCP server stopped"]);
              }
            }, false, "Stop the MCP socket server");
            commands_default.register({
              id: "mcp.status",
              execute: async () => {
                await window_default.echoLines(mcp_default.getStatusLines());
              }
            }, false, "Show MCP server status");
            manager_default3.registerLists();
            await extension_default.activateExtensions();
            workspace_default.configurations.flushConfigurations();
            nvim.pauseNotification();
            nvim.setVar("coc_service_initialized", 1, true);
            nvim.call("coc#util#do_autocmd", ["CocNvimInit"], true);
            nvim.resumeNotification(false, true);
            void mcp_default.init(mcpStarted);
            const duration = typeof global.__starttime === "number" ? Date.now() - global.__starttime : 0;
            logger72.info(`coc.nvim initialized with node: ${process.version} after`, duration);
            this.ready = true;
            await events_default.fire("ready", []);
          }
          get isReady() {
            return this.ready;
          }
          hasAction(method) {
            return this.actions.has(method);
          }
          async cocAction(method, ...args) {
            let fn = this.actions.get(method);
            if (!fn) throw new Error(`Action "${method}" does not exist`);
            return await Promise.resolve(fn.apply(null, args));
          }
          getHandler() {
            return this.handler;
          }
          dispose() {
            disposeAll(this.disposables);
            extension_default.dispose();
            manager_default3.dispose();
            workspace_default.dispose();
            window_default.dispose();
            sources_default.dispose();
            services_default.dispose();
            manager_default2.dispose();
            commands_default.dispose();
            completion_default.dispose();
            manager_default.dispose();
            mcp_default.dispose();
          }
        };
      }
    });
    
    // src/exit.ts
    function gracefulExit(signal) {
      logger73.info(`Received ${signal}, stopping language servers`);
      mcp_default.stop();
      let timer = setTimeout(() => exitFn(0), EXIT_TIMEOUT);
      void services_default.stopAll(EXIT_TIMEOUT).finally(() => {
        clearTimeout(timer);
        exitFn(0);
      });
    }
    function registerExitHandlers() {
      let exiting = false;
      const handler = (signal) => {
        if (exiting) return;
        exiting = true;
        gracefulExit(signal);
      };
      process.on("SIGTERM", () => handler("SIGTERM"));
      process.on("SIGINT", () => handler("SIGINT"));
    }
    var logger73, EXIT_TIMEOUT, exitFn;
    var init_exit = __esm({
      "src/exit.ts"() {
        "use strict";
        init_logger();
        init_mcp();
        init_services();
        logger73 = createLogger("exit");
        EXIT_TIMEOUT = 1e3;
        exitFn = (code) => process.exit(code);
      }
    });
    
    // src/attach.ts
    var attach_exports = {};
    __export(attach_exports, {
      default: () => attach_default,
      getCurrentPlugin: () => getCurrentPlugin
    });
    function getCurrentPlugin() {
      return currentPlugin;
    }
    var import_neovim, logger74, ACTIONS_NO_WAIT, semVer, pendingNotifications, NO_ERROR_REQUEST, currentPlugin, attach_default;
    var init_attach = __esm({
      "src/attach.ts"() {
        "use strict";
        import_neovim = __toESM(require_lib2());
        init_events();
        init_logger();
        init_plugin();
        init_exit();
        init_constants();
        init_node();
        init_string();
        init_timing();
        logger74 = createLogger("attach");
        if (global.__isMain) {
          registerExitHandlers();
        }
        ACTIONS_NO_WAIT = ["installExtensions", "updateExtensions"];
        semVer = semver.parse(VERSION);
        pendingNotifications = [];
        NO_ERROR_REQUEST = ["doAutocmd", "CocAutocmd"];
        attach_default = (opts, requestApi = false) => {
          const nvim = (0, import_neovim.attach)(opts, createLogger("node-client"), requestApi);
          nvim.setVar("coc_process_pid", process.pid, true);
          nvim.setClientInfo("coc", { major: semVer.major, minor: semVer.minor, patch: semVer.patch }, "remote", {}, {});
          const plugin = currentPlugin = new Plugin(nvim);
          let disposable = events_default.on("ready", () => {
            disposable.dispose();
            for (let [method, args] of pendingNotifications) {
              plugin.cocAction(method, ...args).catch((e2) => {
                console.error(`Error on notification "${method}": ${e2}`);
                logger74.error(`Error on notification ${method}`, e2);
              });
            }
            pendingNotifications = [];
          });
          nvim.on("notification", async (method, args) => {
            switch (method) {
              case "VimEnter": {
                await plugin.init(args[0], args[1] === 1);
                break;
              }
              case "Log": {
                logger74.debug("Vim log", ...args);
                break;
              }
              case "TaskExit":
              case "TaskStderr":
              case "TaskStdout":
              case "GlobalChange":
              case "PromptInsert":
              case "PromptExit":
              case "InputChar":
              case "MenuInput":
              case "OptionSet":
              case "PromptKeyPress":
              case "FloatBtnClick":
              case "InputListSelect":
              case "PumNavigate":
                logger74.trace("Event: ", method, ...args);
                await events_default.fire(method, args);
                break;
              case "CocAutocmd":
                logger74.trace("Notification autocmd:", ...args);
                await events_default.fire(args[0], args.slice(1));
                break;
              case "redraw":
                break;
              default: {
                try {
                  logger74.info("receive notification:", method, args);
                  if (!plugin.isReady) {
                    pendingNotifications.push([method, args]);
                    return;
                  }
                  await plugin.cocAction(method, ...args);
                } catch (e2) {
                  console.error(`Error on notification "${method}": ${toErrorText(e2)}`);
                  logger74.error(`Error on notification ${method}`, e2);
                }
              }
            }
          });
          let timing = createTiming("Request", 3e3);
          nvim.on("request", async (method, args, resp) => {
            timing.start(method);
            try {
              events_default.requesting = true;
              if (method == "CocAutocmd") {
                logger74.trace("Request autocmd:", ...args);
                await events_default.fire(args[0], args.slice(1));
                resp.send(void 0);
              } else {
                if (!plugin.isReady && !ACTIONS_NO_WAIT.includes(method)) {
                  logger74.warn(`Plugin not ready on request "${method}"`, args);
                  resp.send("Plugin not ready", true);
                } else {
                  logger74.info("Request action:", method, args);
                  let res = await plugin.cocAction(method, ...args);
                  resp.send(res);
                }
              }
              events_default.requesting = false;
            } catch (e2) {
              events_default.requesting = false;
              if (NO_ERROR_REQUEST.includes(method)) {
                nvim.echoError(new Error(`Request "${method}" failed`));
                resp.send("");
              } else {
                resp.send(toErrorText(e2), true);
              }
              logger74.error(`Request error:`, method, args, e2);
            }
            timing.stop();
          });
          return plugin;
        };
      }
    });
    
    // entry-ns:index.js
    if (global.__isMain) {
      const { createLogger: createLogger2 } = (init_logger(), __toCommonJS(logger_exports));
      const { extensionContext: extensionContext2 } = (init_extensionId(), __toCommonJS(extensionId_exports));
      const logger75 = createLogger2("server");
      Object.defineProperty(console, "log", {
        value() {
          if (logger75) logger75.info(...arguments);
        }
      });
      process.on("uncaughtException", function(err) {
        const id2 = extensionContext2.getStore();
        const owner = id2 ? "[extension: " + id2 + "] " : "";
        let msg = owner + "Uncaught exception: " + err.message;
        console.error(msg);
        logger75.error(owner + "uncaughtException", err);
      });
      process.on("unhandledRejection", function(reason, p2) {
        if (reason instanceof Error) {
          if (typeof reason.code === "number") {
            let msg = "Unhandled response error " + reason.code + " from language server: " + reason.message;
            if (reason.data != null) {
              console.error(msg, reason.data);
            } else {
              console.error(msg);
            }
          } else {
            console.error("UnhandledRejection: " + reason.message + "\n" + reason.stack);
          }
        } else {
          console.error("UnhandledRejection: " + reason);
        }
        const id2 = extensionContext2.getStore();
        logger75.error((id2 ? "[extension: " + id2 + "] " : "") + "unhandledRejection ", p2, reason);
      });
      const attach2 = (init_attach(), __toCommonJS(attach_exports)).default;
      attach2({ reader: process.stdin, writer: process.stdout });
    } else {
      const exports2 = require_src2();
      const logger75 = (init_logger(), __toCommonJS(logger_exports)).logger;
      const attach2 = (init_attach(), __toCommonJS(attach_exports)).default;
      module.exports = { attach: attach2, exports: exports2, logger: logger75, loadExtension: (filepath, active, options3) => {
        return exports2.extensions.manager.load(filepath, active, options3);
      } };
    }
    /*! Bundled license information:
    
    bytes/index.js:
      (*!
       * bytes
       * Copyright(c) 2012-2014 TJ Holowaychuk
       * Copyright(c) 2015 Jed Watson
       * MIT Licensed
       *)
    
    content-disposition/dist/index.js:
      (*!
       * content-disposition
       * Copyright(c) 2014-2017 Douglas Christopher Wilson
       * MIT Licensed
       *)
    */