完成世界书、骰子、apiconfig页面处理

This commit is contained in:
2026-04-30 01:35:10 +08:00
parent a3e3711b2b
commit ba9b925c32
4602 changed files with 785225 additions and 23 deletions

19
frontend/node_modules/d3-random/src/beta.js generated vendored Normal file
View File

@@ -0,0 +1,19 @@
import defaultSource from "./defaultSource.js";
import gamma from "./gamma.js";
export default (function sourceRandomBeta(source) {
var G = gamma.source(source);
function randomBeta(alpha, beta) {
var X = G(alpha),
Y = G(beta);
return function() {
var x = X();
return x === 0 ? 0 : x / (x + Y());
};
}
randomBeta.source = sourceRandomBeta;
return randomBeta;
})(defaultSource);

18
frontend/node_modules/d3-random/src/index.js generated vendored Normal file
View File

@@ -0,0 +1,18 @@
export {default as randomUniform} from "./uniform.js";
export {default as randomInt} from "./int.js";
export {default as randomNormal} from "./normal.js";
export {default as randomLogNormal} from "./logNormal.js";
export {default as randomBates} from "./bates.js";
export {default as randomIrwinHall} from "./irwinHall.js";
export {default as randomExponential} from "./exponential.js";
export {default as randomPareto} from "./pareto.js";
export {default as randomBernoulli} from "./bernoulli.js";
export {default as randomGeometric} from "./geometric.js";
export {default as randomBinomial} from "./binomial.js";
export {default as randomGamma} from "./gamma.js";
export {default as randomBeta} from "./beta.js";
export {default as randomWeibull} from "./weibull.js";
export {default as randomCauchy} from "./cauchy.js";
export {default as randomLogistic} from "./logistic.js";
export {default as randomPoisson} from "./poisson.js";
export {default as randomLcg} from "./lcg.js";

17
frontend/node_modules/d3-random/src/logNormal.js generated vendored Normal file
View File

@@ -0,0 +1,17 @@
import defaultSource from "./defaultSource.js";
import normal from "./normal.js";
export default (function sourceRandomLogNormal(source) {
var N = normal.source(source);
function randomLogNormal() {
var randomNormal = N.apply(this, arguments);
return function() {
return Math.exp(randomNormal());
};
}
randomLogNormal.source = sourceRandomLogNormal;
return randomLogNormal;
})(defaultSource);

16
frontend/node_modules/d3-random/src/logistic.js generated vendored Normal file
View File

@@ -0,0 +1,16 @@
import defaultSource from "./defaultSource.js";
export default (function sourceRandomLogistic(source) {
function randomLogistic(a, b) {
a = a == null ? 0 : +a;
b = b == null ? 1 : +b;
return function() {
var u = source();
return a + b * Math.log(u / (1 - u));
};
}
randomLogistic.source = sourceRandomLogistic;
return randomLogistic;
})(defaultSource);

28
frontend/node_modules/d3-random/src/normal.js generated vendored Normal file
View File

@@ -0,0 +1,28 @@
import defaultSource from "./defaultSource.js";
export default (function sourceRandomNormal(source) {
function randomNormal(mu, sigma) {
var x, r;
mu = mu == null ? 0 : +mu;
sigma = sigma == null ? 1 : +sigma;
return function() {
var y;
// If available, use the second previously-generated uniform random.
if (x != null) y = x, x = null;
// Otherwise, generate a new x and y.
else do {
x = source() * 2 - 1;
y = source() * 2 - 1;
r = x * x + y * y;
} while (!r || r > 1);
return mu + sigma * y * Math.sqrt(-2 * Math.log(r) / r);
};
}
randomNormal.source = sourceRandomNormal;
return randomNormal;
})(defaultSource);

27
frontend/node_modules/d3-random/src/poisson.js generated vendored Normal file
View File

@@ -0,0 +1,27 @@
import defaultSource from "./defaultSource.js";
import binomial from "./binomial.js";
import gamma from "./gamma.js";
export default (function sourceRandomPoisson(source) {
var G = gamma.source(source),
B = binomial.source(source);
function randomPoisson(lambda) {
return function() {
var acc = 0, l = lambda;
while (l > 16) {
var n = Math.floor(0.875 * l),
t = G(n)();
if (t > l) return acc + B(n - 1, l / t)();
acc += n;
l -= t;
}
for (var s = -Math.log1p(-source()), k = 0; s <= l; ++k) s -= Math.log1p(-source());
return acc + k;
};
}
randomPoisson.source = sourceRandomPoisson;
return randomPoisson;
})(defaultSource);

17
frontend/node_modules/d3-random/src/uniform.js generated vendored Normal file
View File

@@ -0,0 +1,17 @@
import defaultSource from "./defaultSource.js";
export default (function sourceRandomUniform(source) {
function randomUniform(min, max) {
min = min == null ? 0 : +min;
max = max == null ? 1 : +max;
if (arguments.length === 1) max = min, min = 0;
else max -= min;
return function() {
return source() * max + min;
};
}
randomUniform.source = sourceRandomUniform;
return randomUniform;
})(defaultSource);