1
0
forked from dyf/APP

增加晶全app静态页面

This commit is contained in:
微微一笑
2025-07-05 14:49:26 +08:00
parent 194035cf79
commit aede64dacd
2323 changed files with 524101 additions and 0 deletions

20
node_modules/es5-ext/function/#/compose.js generated vendored Normal file
View File

@ -0,0 +1,20 @@
"use strict";
var isValue = require("../../object/is-value")
, callable = require("../../object/valid-callable")
, aFrom = require("../../array/from");
var apply = Function.prototype.apply
, call = Function.prototype.call
, callFn = function (arg, fn) { return call.call(fn, this, arg); };
module.exports = function (fnIgnored /*, …fnn*/) {
var fns, first;
var args = aFrom(arguments);
fns = isValue(this) ? [this].concat(args) : args;
fns.forEach(callable);
fns = fns.reverse();
first = fns[0];
fns = fns.slice(1);
return function (argIgnored) { return fns.reduce(callFn, apply.call(first, this, arguments)); };
};

23
node_modules/es5-ext/function/#/copy.js generated vendored Normal file
View File

@ -0,0 +1,23 @@
"use strict";
var mixin = require("../../object/mixin")
, validFunction = require("../valid-function");
module.exports = function () {
validFunction(this);
var args = [];
for (var i = 0; i < this.length; ++i) args.push("arg" + (i + 1));
// eslint-disable-next-line no-new-func
var fn = new Function(
"fn",
"return function " +
(this.name || "") +
"(" +
args.join(", ") +
") { return fn.apply(this, arguments); };"
)(this);
try { mixin(fn, this); }
catch (ignore) {}
return fn;
};

25
node_modules/es5-ext/function/#/curry.js generated vendored Normal file
View File

@ -0,0 +1,25 @@
"use strict";
var toPosInt = require("../../number/to-pos-integer")
, callable = require("../../object/valid-callable")
, defineLength = require("../_define-length")
, slice = Array.prototype.slice
, apply = Function.prototype.apply
, curry;
curry = function self(fn, length, preArgs) {
return defineLength(
function () {
var args = preArgs
? preArgs.concat(slice.call(arguments, 0, length - preArgs.length))
: slice.call(arguments, 0, length);
return args.length === length ? apply.call(fn, this, args) : self(fn, length, args);
},
preArgs ? length - preArgs.length : length
);
};
module.exports = function (/* Length*/) {
var length = arguments[0];
return curry(callable(this), isNaN(length) ? toPosInt(this.length) : toPosInt(length));
};

13
node_modules/es5-ext/function/#/index.js generated vendored Normal file
View File

@ -0,0 +1,13 @@
"use strict";
module.exports = {
compose: require("./compose"),
copy: require("./copy"),
curry: require("./curry"),
lock: require("./lock"),
microtaskDelay: require("./microtask-delay"),
not: require("./not"),
partial: require("./partial"),
spread: require("./spread"),
toStringTokens: require("./to-string-tokens")
};

10
node_modules/es5-ext/function/#/lock.js generated vendored Normal file
View File

@ -0,0 +1,10 @@
"use strict";
var callable = require("../../object/valid-callable")
, apply = Function.prototype.apply;
module.exports = function (/* …args*/) {
var fn = callable(this), args = arguments;
return function () { return apply.call(fn, this, args); };
};

12
node_modules/es5-ext/function/#/microtask-delay.js generated vendored Normal file
View File

@ -0,0 +1,12 @@
"use strict";
var ensurePlainFunction = require("../../object/ensure-plain-function")
, defineLength = require("../_define-length")
, nextTick = require("next-tick");
var apply = Function.prototype.apply;
module.exports = function () {
var src = ensurePlainFunction(this);
return defineLength(function () { nextTick(apply.bind(src, this, arguments)); }, this.length);
};

11
node_modules/es5-ext/function/#/not.js generated vendored Normal file
View File

@ -0,0 +1,11 @@
"use strict";
var callable = require("../../object/valid-callable")
, defineLength = require("../_define-length")
, apply = Function.prototype.apply;
module.exports = function () {
var fn = callable(this);
return defineLength(function () { return !apply.call(fn, this, arguments); }, fn.length);
};

14
node_modules/es5-ext/function/#/partial.js generated vendored Normal file
View File

@ -0,0 +1,14 @@
"use strict";
var callable = require("../../object/valid-callable")
, aFrom = require("../../array/from")
, defineLength = require("../_define-length")
, apply = Function.prototype.apply;
module.exports = function (/* …args*/) {
var fn = callable(this), args = aFrom(arguments);
return defineLength(function () {
return apply.call(fn, this, args.concat(aFrom(arguments)));
}, fn.length - args.length);
};

9
node_modules/es5-ext/function/#/spread.js generated vendored Normal file
View File

@ -0,0 +1,9 @@
"use strict";
var callable = require("../../object/valid-callable")
, apply = Function.prototype.apply;
module.exports = function () {
var fn = callable(this);
return function (args) { return apply.call(fn, this, args); };
};

52
node_modules/es5-ext/function/#/to-string-tokens.js generated vendored Normal file
View File

@ -0,0 +1,52 @@
"use strict";
var isValue = require("../../object/is-value")
, esniff = require("esniff")
, validFunction = require("../valid-function");
var classRe = /^\s*class[\s{/}]/;
module.exports = function () {
var str = String(validFunction(this));
if (classRe.test(str)) throw new Error("Class methods are not supported");
var argsStartIndex
, argsEndIndex
, bodyStartIndex
, bodyEndReverseIndex = -1
, shouldTrimArgs = false;
esniff(str, function (emitter, accessor) {
emitter.once("trigger:(", function () { argsStartIndex = accessor.index + 1; });
emitter.once("trigger:=", function () {
if (isValue(argsStartIndex)) return;
argsStartIndex = 0;
argsEndIndex = accessor.index;
shouldTrimArgs = true;
if (!accessor.skipCodePart("=>")) {
throw new Error("Unexpected function string: " + str);
}
accessor.skipWhitespace();
if (!accessor.skipCodePart("{")) bodyEndReverseIndex = Infinity;
bodyStartIndex = accessor.index;
});
emitter.on("trigger:)", function () {
if (accessor.scopeDepth) return;
argsEndIndex = accessor.index;
accessor.skipCodePart(")");
accessor.skipWhitespace();
if (accessor.skipCodePart("=>")) {
accessor.skipWhitespace();
if (!accessor.skipCodePart("{")) bodyEndReverseIndex = Infinity;
} else if (!accessor.skipCodePart("{")) {
throw new Error("Unexpected function string: " + str);
}
bodyStartIndex = accessor.index;
accessor.stop();
});
});
var argsString = str.slice(argsStartIndex, argsEndIndex);
if (shouldTrimArgs) argsString = argsString.trim();
return { args: argsString, body: str.slice(bodyStartIndex, bodyEndReverseIndex) };
};