Add settings page for managing forecasting API key and URL via UI
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
cae411eae7
commit
1c411e402e
19809 changed files with 1962608 additions and 97 deletions
32
frontend/node_modules/es-toolkit/dist/compat/math/add.js
generated
vendored
Normal file
32
frontend/node_modules/es-toolkit/dist/compat/math/add.js
generated
vendored
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
const require_toString = require("../util/toString.js");
|
||||
const require_toNumber = require("../util/toNumber.js");
|
||||
//#region src/compat/math/add.ts
|
||||
/**
|
||||
* Adds two numbers while safely handling `NaN` values.
|
||||
*
|
||||
* This function takes two numbers and returns their sum. If either of the numbers is `NaN`,
|
||||
* the function returns `NaN`.
|
||||
*
|
||||
* @param value - The first number to add.
|
||||
* @param other - The second number to add.
|
||||
* @returns The sum of the two numbers, or `NaN` if any input is `NaN`.
|
||||
*
|
||||
* @example
|
||||
* const result1 = add(2, 3); // result1 will be 5
|
||||
* const result2 = add(5, NaN); // result2 will be NaN
|
||||
* const result3 = add(NaN, 10); // result3 will be NaN
|
||||
*/
|
||||
function add(value, other) {
|
||||
if (value === void 0 && other === void 0) return 0;
|
||||
if (value === void 0 || other === void 0) return value ?? other;
|
||||
if (typeof value === "string" || typeof other === "string") {
|
||||
value = require_toString.toString(value);
|
||||
other = require_toString.toString(other);
|
||||
} else {
|
||||
value = require_toNumber.toNumber(value);
|
||||
other = require_toNumber.toNumber(other);
|
||||
}
|
||||
return value + other;
|
||||
}
|
||||
//#endregion
|
||||
exports.add = add;
|
||||
Loading…
Add table
Add a link
Reference in a new issue