flow like the river

This commit is contained in:
root 2025-11-07 00:06:12 +01:00
commit 013fe673f3
42435 changed files with 5764238 additions and 0 deletions

23
BACK_BACK/node_modules/data-urls/lib/utils.js generated vendored Executable file
View file

@ -0,0 +1,23 @@
"use strict";
const { percentDecode } = require("whatwg-url");
const { atob } = require("abab");
exports.stripLeadingAndTrailingASCIIWhitespace = string => {
return string.replace(/^[ \t\n\f\r]+/, "").replace(/[ \t\n\f\r]+$/, "");
};
exports.stringPercentDecode = input => {
return percentDecode(Buffer.from(input, "utf-8"));
};
exports.isomorphicDecode = input => {
return input.toString("binary");
};
exports.forgivingBase64Decode = data => {
const asString = atob(data);
if (asString === null) {
return null;
}
return Buffer.from(asString, "binary");
};