This commit is contained in:
2025-09-19 14:25:20 +08:00
parent 269893a435
commit fbf3f77229
24949 changed files with 2839404 additions and 0 deletions

15
node_modules/html-entities/dist/esm/surrogate-pairs.js generated vendored Normal file
View File

@@ -0,0 +1,15 @@
export var fromCodePoint = String.fromCodePoint ||
function (astralCodePoint) {
return String.fromCharCode(Math.floor((astralCodePoint - 0x10000) / 0x400) + 0xd800, ((astralCodePoint - 0x10000) % 0x400) + 0xdc00);
};
// @ts-expect-error - String.prototype.codePointAt might not exist in older node versions
export var getCodePoint = String.prototype.codePointAt
? function (input, position) {
return input.codePointAt(position);
}
: function (input, position) {
return (input.charCodeAt(position) - 0xd800) * 0x400 + input.charCodeAt(position + 1) - 0xdc00 + 0x10000;
};
export var highSurrogateFrom = 0xd800;
export var highSurrogateTo = 0xdbff;
//# sourceMappingURL=surrogate-pairs.js.map