vue-files-preview-inno
Version:
A tool for previewing files such as doc, excel, pdf, image, markdown, txt, audio, and video and so on.
48 lines (47 loc) • 1.11 kB
JavaScript
var x;
const a = /* @__PURE__ */ new Map([
[],
// C1 Unicode control character reference replacements
[],
[],
[],
[],
[],
[],
[],
[],
[],
[],
[],
[],
[],
[],
[],
[],
[],
[],
[],
[],
[],
[],
[],
[],
[],
[],
[]
]), n = (
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition, node/no-unsupported-features/es-builtins
(x = String.fromCodePoint) !== null && x !== void 0 ? x : function(f) {
let r = "";
return f > 65535 && (f -= 65536, r += String.fromCharCode(f >>> 10 & 1023 | 55296), f = 56320 | f & 1023), r += String.fromCharCode(f), r;
}
);
function t(f) {
var r;
return f >= 55296 && f <= 57343 || f > 1114111 ? 65533 : (r = a.get(f)) !== null && r !== void 0 ? r : f;
}
export {
n as fromCodePoint,
t as replaceCodePoint
};
//# sourceMappingURL=decode_codepoint.mjs.map