function fixedEncodeURIComponent(str) {
return encodeURIComponent(str).replace(/[!'()*]/g, function (c) {
return "%" + c.charCodeAt(0).toString(16);
});
}
data = {
let result = {}
const r = await fetch(`https://newton.now.sh/api/v2/${operation}/${fixedEncodeURIComponent(func)}`).then((response) => response)
result["code"] = r.status
result["contentType"] = r.headers.get("Content-Type")
result["json"] = await r.json()
return result
}












