完成世界书、骰子、apiconfig页面处理
This commit is contained in:
1912
frontend/node_modules/rollup/dist/bin/rollup
generated
vendored
Normal file
1912
frontend/node_modules/rollup/dist/bin/rollup
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
1
frontend/node_modules/rollup/dist/es/package.json
generated
vendored
Normal file
1
frontend/node_modules/rollup/dist/es/package.json
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"type":"module"}
|
||||
29
frontend/node_modules/rollup/dist/loadConfigFile.js
generated
vendored
Normal file
29
frontend/node_modules/rollup/dist/loadConfigFile.js
generated
vendored
Normal file
@@ -0,0 +1,29 @@
|
||||
/*
|
||||
@license
|
||||
Rollup.js v4.59.0
|
||||
Sun, 22 Feb 2026 07:31:53 GMT - commit ae846957f109690a866cc3e4c073613c338d3476
|
||||
|
||||
https://github.com/rollup/rollup
|
||||
|
||||
Released under the MIT License.
|
||||
*/
|
||||
'use strict';
|
||||
|
||||
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
||||
|
||||
require('node:fs/promises');
|
||||
require('node:path');
|
||||
require('node:process');
|
||||
require('node:url');
|
||||
require('./shared/rollup.js');
|
||||
require('./shared/parseAst.js');
|
||||
const loadConfigFile_js = require('./shared/loadConfigFile.js');
|
||||
require('path');
|
||||
require('./native.js');
|
||||
require('node:perf_hooks');
|
||||
require('./getLogFilter.js');
|
||||
|
||||
|
||||
|
||||
exports.loadConfigFile = loadConfigFile_js.loadConfigFile;
|
||||
//# sourceMappingURL=loadConfigFile.js.map
|
||||
161
frontend/node_modules/rollup/dist/native.js
generated
vendored
Normal file
161
frontend/node_modules/rollup/dist/native.js
generated
vendored
Normal file
@@ -0,0 +1,161 @@
|
||||
const { existsSync } = require('node:fs');
|
||||
const path = require('node:path');
|
||||
const { platform, arch, report } = require('node:process');
|
||||
const { spawnSync } = require('node:child_process');
|
||||
|
||||
const getReportHeader = () => {
|
||||
try {
|
||||
if (platform !== 'win32') {
|
||||
return report.getReport().header;
|
||||
}
|
||||
|
||||
// This is needed because report.getReport() crashes the process on Windows sometimes.
|
||||
const script =
|
||||
"console.log(JSON.stringify(require('node:process').report.getReport().header));";
|
||||
const child = spawnSync(process.execPath, ['-p', script], {
|
||||
encoding: 'utf8',
|
||||
timeout: 3000,
|
||||
windowsHide: true
|
||||
});
|
||||
|
||||
if (child.status !== 0) {
|
||||
return null;
|
||||
}
|
||||
|
||||
// The output from node -p might include a trailing 'undefined' and newline
|
||||
const stdout = child.stdout?.replace(/undefined\r?\n?$/, '').trim();
|
||||
if (!stdout) {
|
||||
return null;
|
||||
}
|
||||
|
||||
return JSON.parse(stdout);
|
||||
} catch {
|
||||
return null;
|
||||
}
|
||||
};
|
||||
|
||||
let reportHeader;
|
||||
const isMingw32 = () => {
|
||||
reportHeader ??= getReportHeader();
|
||||
|
||||
return reportHeader?.osName?.startsWith('MINGW32_NT') ?? false;
|
||||
};
|
||||
|
||||
const isMusl = () => {
|
||||
reportHeader ??= getReportHeader();
|
||||
|
||||
return reportHeader ? !reportHeader.glibcVersionRuntime : false;
|
||||
};
|
||||
|
||||
const bindingsByPlatformAndArch = {
|
||||
android: {
|
||||
arm: { base: 'android-arm-eabi' },
|
||||
arm64: { base: 'android-arm64' }
|
||||
},
|
||||
darwin: {
|
||||
arm64: { base: 'darwin-arm64' },
|
||||
x64: { base: 'darwin-x64' }
|
||||
},
|
||||
freebsd: {
|
||||
arm64: { base: 'freebsd-arm64' },
|
||||
x64: { base: 'freebsd-x64' }
|
||||
},
|
||||
linux: {
|
||||
arm: { base: 'linux-arm-gnueabihf', musl: 'linux-arm-musleabihf' },
|
||||
arm64: { base: 'linux-arm64-gnu', musl: 'linux-arm64-musl' },
|
||||
loong64: { base: 'linux-loong64-gnu', musl: 'linux-loong64-musl' },
|
||||
ppc64: { base: 'linux-ppc64-gnu', musl: 'linux-ppc64-musl' },
|
||||
riscv64: { base: 'linux-riscv64-gnu', musl: 'linux-riscv64-musl' },
|
||||
s390x: { base: 'linux-s390x-gnu', musl: null },
|
||||
x64: { base: 'linux-x64-gnu', musl: 'linux-x64-musl' }
|
||||
},
|
||||
openbsd: {
|
||||
x64: { base: 'openbsd-x64' }
|
||||
},
|
||||
openharmony: {
|
||||
arm64: { base: 'openharmony-arm64' }
|
||||
},
|
||||
win32: {
|
||||
arm64: { base: 'win32-arm64-msvc' },
|
||||
ia32: { base: 'win32-ia32-msvc' },
|
||||
x64: {
|
||||
base: isMingw32() ? 'win32-x64-gnu' : 'win32-x64-msvc'
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
const msvcLinkFilenameByArch = {
|
||||
arm64: 'vc_redist.arm64.exe',
|
||||
ia32: 'vc_redist.x86.exe',
|
||||
x64: 'vc_redist.x64.exe'
|
||||
};
|
||||
|
||||
const packageBase = getPackageBase();
|
||||
const localName = `./rollup.${packageBase}.node`;
|
||||
const requireWithFriendlyError = id => {
|
||||
try {
|
||||
return require(id);
|
||||
} catch (error) {
|
||||
if (
|
||||
platform === 'win32' &&
|
||||
error instanceof Error &&
|
||||
error.code === 'ERR_DLOPEN_FAILED' &&
|
||||
error.message.includes('The specified module could not be found')
|
||||
) {
|
||||
const msvcDownloadLink = `https://aka.ms/vs/17/release/${msvcLinkFilenameByArch[arch]}`;
|
||||
throw new Error(
|
||||
`Failed to load module ${id}. ` +
|
||||
'Required DLL was not found. ' +
|
||||
'This error usually happens when Microsoft Visual C++ Redistributable is not installed. ' +
|
||||
`You can download it from ${msvcDownloadLink}`,
|
||||
{ cause: error }
|
||||
);
|
||||
}
|
||||
|
||||
throw new Error(
|
||||
`Cannot find module ${id}. ` +
|
||||
`npm has a bug related to optional dependencies (https://github.com/npm/cli/issues/4828). ` +
|
||||
'Please try `npm i` again after removing both package-lock.json and node_modules directory.',
|
||||
{ cause: error }
|
||||
);
|
||||
}
|
||||
};
|
||||
|
||||
const { parse, parseAsync, xxhashBase64Url, xxhashBase36, xxhashBase16 } = requireWithFriendlyError(
|
||||
existsSync(path.join(__dirname, localName)) ? localName : `@rollup/rollup-${packageBase}`
|
||||
);
|
||||
|
||||
function getPackageBase() {
|
||||
const imported = bindingsByPlatformAndArch[platform]?.[arch];
|
||||
if (!imported) {
|
||||
throwUnsupportedError(false);
|
||||
}
|
||||
if ('musl' in imported && isMusl()) {
|
||||
return imported.musl || throwUnsupportedError(true);
|
||||
}
|
||||
return imported.base;
|
||||
}
|
||||
|
||||
function throwUnsupportedError(isMusl) {
|
||||
throw new Error(
|
||||
`Your current platform "${platform}${isMusl ? ' (musl)' : ''}" and architecture "${arch}" combination is not yet supported by the native Rollup build. Please use the WASM build "@rollup/wasm-node" instead.
|
||||
|
||||
The following platform-architecture combinations are supported:
|
||||
${Object.entries(bindingsByPlatformAndArch)
|
||||
.flatMap(([platformName, architectures]) =>
|
||||
Object.entries(architectures).flatMap(([architectureName, { musl }]) => {
|
||||
const name = `${platformName}-${architectureName}`;
|
||||
return musl ? [name, `${name} (musl)`] : [name];
|
||||
})
|
||||
)
|
||||
.join('\n')}
|
||||
|
||||
If this is important to you, please consider supporting Rollup to make a native build for your platform and architecture available.`
|
||||
);
|
||||
}
|
||||
|
||||
module.exports.parse = parse;
|
||||
module.exports.parseAsync = parseAsync;
|
||||
module.exports.xxhashBase64Url = xxhashBase64Url;
|
||||
module.exports.xxhashBase36 = xxhashBase36;
|
||||
module.exports.xxhashBase16 = xxhashBase16;
|
||||
127
frontend/node_modules/rollup/dist/rollup.js
generated
vendored
Normal file
127
frontend/node_modules/rollup/dist/rollup.js
generated
vendored
Normal file
@@ -0,0 +1,127 @@
|
||||
/*
|
||||
@license
|
||||
Rollup.js v4.59.0
|
||||
Sun, 22 Feb 2026 07:31:53 GMT - commit ae846957f109690a866cc3e4c073613c338d3476
|
||||
|
||||
https://github.com/rollup/rollup
|
||||
|
||||
Released under the MIT License.
|
||||
*/
|
||||
'use strict';
|
||||
|
||||
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
||||
|
||||
const rollup = require('./shared/rollup.js');
|
||||
const parseAst_js = require('./shared/parseAst.js');
|
||||
const fseventsImporter = require('./shared/fsevents-importer.js');
|
||||
require('node:process');
|
||||
require('node:path');
|
||||
require('path');
|
||||
require('./native.js');
|
||||
require('node:perf_hooks');
|
||||
require('node:fs/promises');
|
||||
|
||||
class WatchEmitter {
|
||||
constructor() {
|
||||
this.currentHandlers = Object.create(null);
|
||||
this.persistentHandlers = Object.create(null);
|
||||
}
|
||||
// Will be overwritten by Rollup
|
||||
async close() { }
|
||||
emit(event, ...parameters) {
|
||||
return Promise.all([...this.getCurrentHandlers(event), ...this.getPersistentHandlers(event)].map(handler => handler(...parameters)));
|
||||
}
|
||||
off(event, listener) {
|
||||
const listeners = this.persistentHandlers[event];
|
||||
if (listeners) {
|
||||
// A hack stolen from "mitt": ">>> 0" does not change numbers >= 0, but -1
|
||||
// (which would remove the last array element if used unchanged) is turned
|
||||
// into max_int, which is outside the array and does not change anything.
|
||||
listeners.splice(listeners.indexOf(listener) >>> 0, 1);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
on(event, listener) {
|
||||
this.getPersistentHandlers(event).push(listener);
|
||||
return this;
|
||||
}
|
||||
onCurrentRun(event, listener) {
|
||||
this.getCurrentHandlers(event).push(listener);
|
||||
return this;
|
||||
}
|
||||
once(event, listener) {
|
||||
const selfRemovingListener = (...parameters) => {
|
||||
this.off(event, selfRemovingListener);
|
||||
return listener(...parameters);
|
||||
};
|
||||
this.on(event, selfRemovingListener);
|
||||
return this;
|
||||
}
|
||||
removeAllListeners() {
|
||||
this.removeListenersForCurrentRun();
|
||||
this.persistentHandlers = Object.create(null);
|
||||
return this;
|
||||
}
|
||||
removeListenersForCurrentRun() {
|
||||
this.currentHandlers = Object.create(null);
|
||||
return this;
|
||||
}
|
||||
getCurrentHandlers(event) {
|
||||
return this.currentHandlers[event] || (this.currentHandlers[event] = []);
|
||||
}
|
||||
getPersistentHandlers(event) {
|
||||
return this.persistentHandlers[event] || (this.persistentHandlers[event] = []);
|
||||
}
|
||||
}
|
||||
|
||||
function watch(configs) {
|
||||
const emitter = new WatchEmitter();
|
||||
watchInternal(configs, emitter).catch(error => {
|
||||
rollup.handleError(error);
|
||||
});
|
||||
return emitter;
|
||||
}
|
||||
function ensureTrailingSlash(path) {
|
||||
if (path[path.length - 1] !== '/') {
|
||||
return `${path}/`;
|
||||
}
|
||||
return path;
|
||||
}
|
||||
function checkWatchConfig(config) {
|
||||
for (const item of config) {
|
||||
if (typeof item.watch !== 'boolean' && item.watch?.allowInputInsideOutputPath) {
|
||||
break;
|
||||
}
|
||||
if (item.input && item.output) {
|
||||
const input = typeof item.input === 'string' ? rollup.ensureArray(item.input) : item.input;
|
||||
const outputs = rollup.ensureArray(item.output);
|
||||
for (const index in input) {
|
||||
const inputPath = input[index];
|
||||
if (typeof inputPath !== 'string') {
|
||||
continue;
|
||||
}
|
||||
const outputWithInputAsSubPath = outputs.find(({ dir }) => dir && ensureTrailingSlash(inputPath).startsWith(ensureTrailingSlash(dir)));
|
||||
if (outputWithInputAsSubPath) {
|
||||
parseAst_js.error(parseAst_js.logInvalidOption('watch', parseAst_js.URL_WATCH, `the input "${inputPath}" is a subpath of the output "${outputWithInputAsSubPath.dir}"`));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
async function watchInternal(configs, emitter) {
|
||||
const optionsList = await Promise.all(rollup.ensureArray(configs).map(config => rollup.mergeOptions(config, true)));
|
||||
const watchOptionsList = optionsList.filter(config => config.watch !== false);
|
||||
if (watchOptionsList.length === 0) {
|
||||
return parseAst_js.error(parseAst_js.logInvalidOption('watch', parseAst_js.URL_WATCH, 'there must be at least one config where "watch" is not set to "false"'));
|
||||
}
|
||||
checkWatchConfig(watchOptionsList);
|
||||
await fseventsImporter.loadFsEvents();
|
||||
const { Watcher } = await Promise.resolve().then(() => require('./shared/watch.js'));
|
||||
new Watcher(watchOptionsList, emitter);
|
||||
}
|
||||
|
||||
exports.VERSION = rollup.version;
|
||||
exports.defineConfig = rollup.defineConfig;
|
||||
exports.rollup = rollup.rollup;
|
||||
exports.watch = watch;
|
||||
//# sourceMappingURL=rollup.js.map
|
||||
37
frontend/node_modules/rollup/dist/shared/fsevents-importer.js
generated
vendored
Normal file
37
frontend/node_modules/rollup/dist/shared/fsevents-importer.js
generated
vendored
Normal file
@@ -0,0 +1,37 @@
|
||||
/*
|
||||
@license
|
||||
Rollup.js v4.59.0
|
||||
Sun, 22 Feb 2026 07:31:53 GMT - commit ae846957f109690a866cc3e4c073613c338d3476
|
||||
|
||||
https://github.com/rollup/rollup
|
||||
|
||||
Released under the MIT License.
|
||||
*/
|
||||
'use strict';
|
||||
|
||||
let fsEvents;
|
||||
let fsEventsImportError;
|
||||
async function loadFsEvents() {
|
||||
try {
|
||||
({ default: fsEvents } = await import('fsevents'));
|
||||
}
|
||||
catch (error) {
|
||||
fsEventsImportError = error;
|
||||
}
|
||||
}
|
||||
// A call to this function will be injected into the chokidar code
|
||||
function getFsEvents() {
|
||||
if (fsEventsImportError)
|
||||
throw fsEventsImportError;
|
||||
return fsEvents;
|
||||
}
|
||||
|
||||
const fseventsImporter = /*#__PURE__*/Object.defineProperty({
|
||||
__proto__: null,
|
||||
getFsEvents,
|
||||
loadFsEvents
|
||||
}, Symbol.toStringTag, { value: 'Module' });
|
||||
|
||||
exports.fseventsImporter = fseventsImporter;
|
||||
exports.loadFsEvents = loadFsEvents;
|
||||
//# sourceMappingURL=fsevents-importer.js.map
|
||||
9003
frontend/node_modules/rollup/dist/shared/index.js
generated
vendored
Normal file
9003
frontend/node_modules/rollup/dist/shared/index.js
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
2337
frontend/node_modules/rollup/dist/shared/parseAst.js
generated
vendored
Normal file
2337
frontend/node_modules/rollup/dist/shared/parseAst.js
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user