nodestatus-server 1.2.1-beta → 1.2.3-beta
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/app.js +82 -46
- package/build/dist/classic-theme/assets/index.05ea2450.js +4 -0
- package/build/dist/classic-theme/assets/index.60fde134.css +1 -0
- package/build/dist/classic-theme/assets/light.b83ee430.png +0 -0
- package/build/dist/classic-theme/assets/vendor.705205b2.js +1 -0
- package/build/dist/classic-theme/favicon.ico +0 -0
- package/build/dist/classic-theme/index.html +18 -0
- package/build/dist/classic-theme/robots.txt +42 -0
- package/build/dist/hotaru-admin/assets/LayoutHandler.da29a732.js +61 -0
- package/build/dist/hotaru-admin/assets/{Login.808202d8.js → Login.6ef8fc2b.js} +1 -1
- package/build/dist/hotaru-admin/assets/{UserOutlined.7b9f806f.js → UserOutlined.cd1982fa.js} +1 -1
- package/build/dist/hotaru-admin/assets/{index.303b8b31.js → index.34efde28.js} +1 -1
- package/build/dist/hotaru-admin/assets/{vendor.6aba3586.js → vendor.7188e8d8.js} +1 -1
- package/build/dist/hotaru-admin/index.html +2 -2
- package/build/dist/hotaru-theme/assets/{index.f03b9a48.css → index.002793ef.css} +1 -1
- package/build/dist/hotaru-theme/assets/index.458c1b8a.js +4 -0
- package/build/dist/hotaru-theme/assets/{vendor.5caed3d3.js → vendor.2aaa8d44.js} +1 -1
- package/build/dist/hotaru-theme/index.html +3 -4
- package/package.json +4 -2
- package/prisma/schema.prisma +10 -0
- package/scripts/init.js +1 -1
- package/build/dist/hotaru-admin/assets/LayoutHandler.bbc4b9fc.js +0 -61
- package/build/dist/hotaru-theme/assets/index.eff7cc41.js +0 -4
- package/build/dist/hotaru-theme/config.js +0 -5
package/build/app.js
CHANGED
|
@@ -54758,7 +54758,7 @@ const prisma = new client.PrismaClient({
|
|
|
54758
54758
|
}
|
|
54759
54759
|
}
|
|
54760
54760
|
});
|
|
54761
|
-
const actions = new Set(["create", "createMany", "update", "updateMany", "upsert"]);
|
|
54761
|
+
const actions = /* @__PURE__ */ new Set(["create", "createMany", "update", "updateMany", "upsert"]);
|
|
54762
54762
|
const parseFields = async (server) => {
|
|
54763
54763
|
for (const key in server) {
|
|
54764
54764
|
if (server[key] === "") {
|
|
@@ -54782,7 +54782,7 @@ prisma.$use(async (params, next) => {
|
|
|
54782
54782
|
});
|
|
54783
54783
|
|
|
54784
54784
|
let isInitial = true;
|
|
54785
|
-
const orderMap = new Map();
|
|
54785
|
+
const orderMap = /* @__PURE__ */ new Map();
|
|
54786
54786
|
const resolveResult = (item) => {
|
|
54787
54787
|
if (!item)
|
|
54788
54788
|
return item;
|
|
@@ -54790,7 +54790,7 @@ const resolveResult = (item) => {
|
|
|
54790
54790
|
delete item[key];
|
|
54791
54791
|
return Object.assign(item, { order: orderMap.get(item.id) || item.id || 0 });
|
|
54792
54792
|
};
|
|
54793
|
-
const
|
|
54793
|
+
const updateCacheOrder = (order, shouldEmit = true) => {
|
|
54794
54794
|
orderMap.clear();
|
|
54795
54795
|
const orderList = order === "" ? [] : order.split(",");
|
|
54796
54796
|
for (let i = 0; i < orderList.length; ++i) {
|
|
@@ -54805,18 +54805,18 @@ const queryOrder = async () => {
|
|
|
54805
54805
|
}
|
|
54806
54806
|
});
|
|
54807
54807
|
isInitial = false;
|
|
54808
|
-
return
|
|
54808
|
+
return updateCacheOrder(order?.value || "");
|
|
54809
54809
|
};
|
|
54810
|
-
async function
|
|
54810
|
+
async function updateOrder(order, Prisma = prisma) {
|
|
54811
54811
|
const shouldEmit = Prisma === prisma;
|
|
54812
54812
|
await Prisma.option.upsert({
|
|
54813
54813
|
where: { name: "order" },
|
|
54814
54814
|
update: { value: order },
|
|
54815
54815
|
create: { name: "order", value: order }
|
|
54816
54816
|
});
|
|
54817
|
-
|
|
54817
|
+
updateCacheOrder(order, shouldEmit);
|
|
54818
54818
|
}
|
|
54819
|
-
async function
|
|
54819
|
+
async function readServer(username) {
|
|
54820
54820
|
const item = await prisma.server.findUnique({
|
|
54821
54821
|
where: {
|
|
54822
54822
|
username
|
|
@@ -54824,7 +54824,7 @@ async function getServer$1(username) {
|
|
|
54824
54824
|
});
|
|
54825
54825
|
return resolveResult(item);
|
|
54826
54826
|
}
|
|
54827
|
-
async function
|
|
54827
|
+
async function readServerPassword(username) {
|
|
54828
54828
|
const item = await prisma.server.findUnique({
|
|
54829
54829
|
where: {
|
|
54830
54830
|
username
|
|
@@ -54832,7 +54832,7 @@ async function getServerPassword(username) {
|
|
|
54832
54832
|
});
|
|
54833
54833
|
return item?.password || null;
|
|
54834
54834
|
}
|
|
54835
|
-
async function
|
|
54835
|
+
async function readServersList() {
|
|
54836
54836
|
const queries = [prisma.server.findMany()];
|
|
54837
54837
|
isInitial && queries.push(queryOrder());
|
|
54838
54838
|
const [items] = await Promise.all(queries);
|
|
@@ -54843,7 +54843,7 @@ async function createServer(item) {
|
|
|
54843
54843
|
const server = await prisma2.server.create({ data: item });
|
|
54844
54844
|
const order = Array.from(orderMap.keys());
|
|
54845
54845
|
order.push(server.id);
|
|
54846
|
-
await
|
|
54846
|
+
await updateOrder(order.join(","), prisma2);
|
|
54847
54847
|
});
|
|
54848
54848
|
emitter.emit("update", item.username);
|
|
54849
54849
|
}
|
|
@@ -54852,11 +54852,11 @@ async function bulkCreateServer(items) {
|
|
|
54852
54852
|
const order = [];
|
|
54853
54853
|
await Promise.all(items.map((item) => prisma2.server.create({ data: item }).then((server) => order.push(server.id))));
|
|
54854
54854
|
const newOrder = Array.from(orderMap.keys()).concat(order);
|
|
54855
|
-
await
|
|
54855
|
+
await updateOrder(newOrder.join(","), prisma2);
|
|
54856
54856
|
});
|
|
54857
54857
|
emitter.emit("update");
|
|
54858
54858
|
}
|
|
54859
|
-
async function
|
|
54859
|
+
async function deleteServer(username) {
|
|
54860
54860
|
await prisma.$transaction(async (prisma2) => {
|
|
54861
54861
|
const server = await prisma2.server.delete({
|
|
54862
54862
|
where: {
|
|
@@ -54864,11 +54864,11 @@ async function delServer$2(username) {
|
|
|
54864
54864
|
}
|
|
54865
54865
|
});
|
|
54866
54866
|
orderMap.delete(server.id);
|
|
54867
|
-
await
|
|
54867
|
+
await updateOrder(Array.from(orderMap.keys()).join(","), prisma2);
|
|
54868
54868
|
});
|
|
54869
54869
|
emitter.emit("update", username, true);
|
|
54870
54870
|
}
|
|
54871
|
-
async function
|
|
54871
|
+
async function updateServer(username, obj) {
|
|
54872
54872
|
await prisma.server.update({
|
|
54873
54873
|
where: {
|
|
54874
54874
|
username
|
|
@@ -54880,6 +54880,24 @@ async function setServer$2(username, obj) {
|
|
|
54880
54880
|
obj.username && emitter.emit("update", obj.username, true);
|
|
54881
54881
|
}
|
|
54882
54882
|
|
|
54883
|
+
const createEvent = (username) => prisma.event.create({
|
|
54884
|
+
data: {
|
|
54885
|
+
username
|
|
54886
|
+
}
|
|
54887
|
+
});
|
|
54888
|
+
const updateEvent = (username, resolved = true) => prisma.event.updateMany({
|
|
54889
|
+
where: {
|
|
54890
|
+
AND: [
|
|
54891
|
+
{ username },
|
|
54892
|
+
{ resolved: false }
|
|
54893
|
+
]
|
|
54894
|
+
},
|
|
54895
|
+
data: {
|
|
54896
|
+
resolved
|
|
54897
|
+
}
|
|
54898
|
+
});
|
|
54899
|
+
const readEvents = () => prisma.event.findMany({});
|
|
54900
|
+
|
|
54883
54901
|
async function handleRequest$1(ctx, handler) {
|
|
54884
54902
|
try {
|
|
54885
54903
|
ctx.body = createRes({ data: await handler });
|
|
@@ -54888,8 +54906,8 @@ async function handleRequest$1(ctx, handler) {
|
|
|
54888
54906
|
ctx.body = createRes(1, err.message);
|
|
54889
54907
|
}
|
|
54890
54908
|
}
|
|
54891
|
-
const
|
|
54892
|
-
await handleRequest$1(ctx,
|
|
54909
|
+
const getListServers$1 = async (ctx) => {
|
|
54910
|
+
await handleRequest$1(ctx, readServersList().then((data) => data.sort((x, y) => y.order - x.order)));
|
|
54893
54911
|
};
|
|
54894
54912
|
const setServer$1 = async (ctx) => {
|
|
54895
54913
|
const { username } = ctx.request.body;
|
|
@@ -54901,7 +54919,7 @@ const setServer$1 = async (ctx) => {
|
|
|
54901
54919
|
}
|
|
54902
54920
|
if (username === data.username)
|
|
54903
54921
|
delete data.username;
|
|
54904
|
-
await handleRequest$1(ctx,
|
|
54922
|
+
await handleRequest$1(ctx, updateServer(username, data));
|
|
54905
54923
|
};
|
|
54906
54924
|
const addServer$1 = async (ctx) => {
|
|
54907
54925
|
const data = ctx.request.body;
|
|
@@ -54922,33 +54940,37 @@ const addServer$1 = async (ctx) => {
|
|
|
54922
54940
|
await handleRequest$1(ctx, createServer(data));
|
|
54923
54941
|
}
|
|
54924
54942
|
};
|
|
54925
|
-
const
|
|
54943
|
+
const removeServer$1 = async (ctx) => {
|
|
54926
54944
|
const { username = "" } = ctx.params;
|
|
54927
54945
|
if (!username) {
|
|
54928
54946
|
ctx.status = 400;
|
|
54929
54947
|
ctx.body = createRes(1, "Wrong request");
|
|
54930
54948
|
return;
|
|
54931
54949
|
}
|
|
54932
|
-
await handleRequest$1(ctx,
|
|
54950
|
+
await handleRequest$1(ctx, deleteServer(username));
|
|
54933
54951
|
};
|
|
54934
54952
|
const modifyOrder = async (ctx) => {
|
|
54935
|
-
const { order =
|
|
54936
|
-
if (!order) {
|
|
54953
|
+
const { order = [] } = ctx.request.body;
|
|
54954
|
+
if (!order.length) {
|
|
54937
54955
|
ctx.status = 400;
|
|
54938
54956
|
ctx.body = createRes(1, "Wrong request");
|
|
54939
54957
|
return;
|
|
54940
54958
|
}
|
|
54941
|
-
await handleRequest$1(ctx,
|
|
54959
|
+
await handleRequest$1(ctx, updateOrder(order.join(",")));
|
|
54960
|
+
};
|
|
54961
|
+
const queryEvents = async (ctx) => {
|
|
54962
|
+
await handleRequest$1(ctx, readEvents());
|
|
54942
54963
|
};
|
|
54943
54964
|
|
|
54944
54965
|
const router = new router$1({ prefix: "/api" });
|
|
54945
54966
|
router.get("/session", verifySession);
|
|
54946
54967
|
router.post("/session", createSession);
|
|
54947
|
-
router.get("/server",
|
|
54968
|
+
router.get("/server", getListServers$1);
|
|
54948
54969
|
router.post("/server", addServer$1);
|
|
54949
54970
|
router.put("/server", setServer$1);
|
|
54950
54971
|
router.put("/server/order", modifyOrder);
|
|
54951
|
-
router.delete("/server/:username",
|
|
54972
|
+
router.delete("/server/:username", removeServer$1);
|
|
54973
|
+
router.get("/event", queryEvents);
|
|
54952
54974
|
|
|
54953
54975
|
var bufferUtil$1 = {exports: {}};
|
|
54954
54976
|
|
|
@@ -61291,7 +61313,7 @@ async function handleRequest(handler) {
|
|
|
61291
61313
|
return createRes({ data });
|
|
61292
61314
|
}
|
|
61293
61315
|
async function authServer(username, password) {
|
|
61294
|
-
const res = await handleRequest(
|
|
61316
|
+
const res = await handleRequest(readServerPassword(username));
|
|
61295
61317
|
if (res.code || !res.data)
|
|
61296
61318
|
return false;
|
|
61297
61319
|
return bcryptjs.compare(password, res.data);
|
|
@@ -61300,13 +61322,13 @@ function addServer(obj) {
|
|
|
61300
61322
|
return handleRequest(createServer(obj));
|
|
61301
61323
|
}
|
|
61302
61324
|
function setServer(username, obj) {
|
|
61303
|
-
return handleRequest(
|
|
61325
|
+
return handleRequest(updateServer(username, obj));
|
|
61304
61326
|
}
|
|
61305
|
-
function
|
|
61306
|
-
return handleRequest(
|
|
61327
|
+
function removeServer(username) {
|
|
61328
|
+
return handleRequest(deleteServer(username));
|
|
61307
61329
|
}
|
|
61308
61330
|
async function getListServers() {
|
|
61309
|
-
const result = await handleRequest(
|
|
61331
|
+
const result = await handleRequest(readServersList());
|
|
61310
61332
|
if (result.code)
|
|
61311
61333
|
return result;
|
|
61312
61334
|
const obj = {};
|
|
@@ -61319,7 +61341,7 @@ async function getListServers() {
|
|
|
61319
61341
|
return createRes({ data: obj });
|
|
61320
61342
|
}
|
|
61321
61343
|
async function getServer(username) {
|
|
61322
|
-
const result = await handleRequest(
|
|
61344
|
+
const result = await handleRequest(readServer(username));
|
|
61323
61345
|
if (result.code || !result.data)
|
|
61324
61346
|
return result;
|
|
61325
61347
|
const { data } = result;
|
|
@@ -61329,7 +61351,13 @@ async function getServer(username) {
|
|
|
61329
61351
|
return createRes({ data: item });
|
|
61330
61352
|
}
|
|
61331
61353
|
function getRawListServers() {
|
|
61332
|
-
return handleRequest(
|
|
61354
|
+
return handleRequest(readServersList());
|
|
61355
|
+
}
|
|
61356
|
+
function createNewEvent(username) {
|
|
61357
|
+
return handleRequest(createEvent(username));
|
|
61358
|
+
}
|
|
61359
|
+
function resolveEvent(username) {
|
|
61360
|
+
return handleRequest(updateEvent(username, true));
|
|
61333
61361
|
}
|
|
61334
61362
|
|
|
61335
61363
|
function callHook(instance, hook, ...args) {
|
|
@@ -61342,14 +61370,20 @@ function callHook(instance, hook, ...args) {
|
|
|
61342
61370
|
}
|
|
61343
61371
|
}
|
|
61344
61372
|
class NodeStatus {
|
|
61373
|
+
options;
|
|
61374
|
+
server;
|
|
61375
|
+
ioPub = new ws.Server({ noServer: true });
|
|
61376
|
+
ioConn = new ws.Server({ noServer: true });
|
|
61377
|
+
ipMap = new WeakMap();
|
|
61378
|
+
userMap = /* @__PURE__ */ new Map();
|
|
61379
|
+
isBanned = /* @__PURE__ */ new Map();
|
|
61380
|
+
servers = {};
|
|
61381
|
+
serversPub = [];
|
|
61382
|
+
onServerConnect;
|
|
61383
|
+
onServerBanned;
|
|
61384
|
+
onServerConnected;
|
|
61385
|
+
onServerDisconnected;
|
|
61345
61386
|
constructor(server, options) {
|
|
61346
|
-
this.ioPub = new ws.Server({ noServer: true });
|
|
61347
|
-
this.ioConn = new ws.Server({ noServer: true });
|
|
61348
|
-
this.ipMap = new WeakMap();
|
|
61349
|
-
this.userMap = new Map();
|
|
61350
|
-
this.isBanned = new Map();
|
|
61351
|
-
this.servers = {};
|
|
61352
|
-
this.serversPub = [];
|
|
61353
61387
|
this.server = server;
|
|
61354
61388
|
this.options = options;
|
|
61355
61389
|
emitter.on("update", this.updateStatus.bind(this));
|
|
@@ -61421,12 +61455,14 @@ class NodeStatus {
|
|
|
61421
61455
|
}
|
|
61422
61456
|
socket.send(`You are connecting via: ${ipType}`);
|
|
61423
61457
|
logger.info(`${address} has connected to server`);
|
|
61458
|
+
resolveEvent(username).then();
|
|
61424
61459
|
socket.on("message", (buf2) => this.servers[username].status = decode(buf2));
|
|
61425
61460
|
this.userMap.set(username, socket);
|
|
61426
61461
|
callHook(this, "onServerConnected", socket, username);
|
|
61427
61462
|
socket.once("close", () => {
|
|
61428
61463
|
this.userMap.delete(username);
|
|
61429
61464
|
this.servers[username] && (this.servers[username].status = {});
|
|
61465
|
+
createNewEvent(username).then();
|
|
61430
61466
|
logger.warn(`${address} disconnected`);
|
|
61431
61467
|
callHook(this, "onServerDisconnected", socket, username);
|
|
61432
61468
|
});
|
|
@@ -61505,7 +61541,7 @@ function createIpc() {
|
|
|
61505
61541
|
break;
|
|
61506
61542
|
}
|
|
61507
61543
|
case "del": {
|
|
61508
|
-
const status = await
|
|
61544
|
+
const status = await removeServer(payload);
|
|
61509
61545
|
client.write(JSON.stringify(status));
|
|
61510
61546
|
break;
|
|
61511
61547
|
}
|
|
@@ -62004,8 +62040,8 @@ var dist = createHttpsProxyAgent;
|
|
|
62004
62040
|
|
|
62005
62041
|
function createPush(options) {
|
|
62006
62042
|
const pushList = [];
|
|
62007
|
-
const timerMap = new Map();
|
|
62008
|
-
const entities = new Set(["_", "*", "[", "]", "(", ")", "~", "`", ">", "#", "+", "-", "=", "|", "{", "}", ".", "!", "\\"]);
|
|
62043
|
+
const timerMap = /* @__PURE__ */ new Map();
|
|
62044
|
+
const entities = /* @__PURE__ */ new Set(["_", "*", "[", "]", "(", ")", "~", "`", ">", "#", "+", "-", "=", "|", "{", "}", ".", "!", "\\"]);
|
|
62009
62045
|
const parseEntities = (msg) => {
|
|
62010
62046
|
let str;
|
|
62011
62047
|
if (typeof msg !== "string")
|
|
@@ -62041,15 +62077,15 @@ function createPush(options) {
|
|
|
62041
62077
|
str += "\n\n";
|
|
62042
62078
|
return;
|
|
62043
62079
|
}
|
|
62044
|
-
str += `\
|
|
62080
|
+
str += `\u8D1F\u8F7D: ${parseEntities(item.status.load.toFixed(2))}
|
|
62045
62081
|
`;
|
|
62046
|
-
str +=
|
|
62082
|
+
str += `CPU: ${Math.round(item.status.cpu)}%
|
|
62047
62083
|
`;
|
|
62048
|
-
str += `\
|
|
62084
|
+
str += `\u5185\u5B58: ${Math.round(item.status.memory_used / item.status.memory_total * 100)}%
|
|
62049
62085
|
`;
|
|
62050
|
-
str += `\
|
|
62086
|
+
str += `\u786C\u76D8: ${Math.round(item.status.hdd_used / item.status.hdd_total * 100)}%
|
|
62051
62087
|
`;
|
|
62052
|
-
str += "\n
|
|
62088
|
+
str += "\n";
|
|
62053
62089
|
});
|
|
62054
62090
|
return `\u{1F34A}*NodeStatus*
|
|
62055
62091
|
\u{1F916} \u5F53\u524D\u6709 ${this.serversPub.length} \u53F0\u670D\u52A1\u5668, \u5176\u4E2D\u5728\u7EBF ${online} \u53F0
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import{o as h,c as p,d as x,a as c,t as i,u as t,b as e,e as M,f as C,r as E,n as g,g as w,F as B,h as A,i as N,j as T,k as F,w as P,v as L,l as O}from"./vendor.705205b2.js";const U=function(){const r=document.createElement("link").relList;if(r&&r.supports&&r.supports("modulepreload"))return;for(const n of document.querySelectorAll('link[rel="modulepreload"]'))l(n);new MutationObserver(n=>{for(const s of n)if(s.type==="childList")for(const _ of s.addedNodes)_.tagName==="LINK"&&_.rel==="modulepreload"&&l(_)}).observe(document,{childList:!0,subtree:!0});function a(n){const s={};return n.integrity&&(s.integrity=n.integrity),n.referrerpolicy&&(s.referrerPolicy=n.referrerpolicy),n.crossorigin==="use-credentials"?s.credentials="include":n.crossorigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function l(n){if(n.ep)return;n.ep=!0;const s=a(n);fetch(n.href,s)}};U();var k=(u,r)=>{for(const[a,l]of r)u[a]=l;return u};const R={},H={class:"error"};function I(u,r){return h(),p("p",H," \u82E5\u9577\u6642\u9593\u51FA\u73FE\u6B64\u6D88\u606F\uFF0C\u8ACB\u78BA\u4FDD\u60A8\u7684\u96F2\u76E3\u63A7\u4E3B\u670D\u52D9\uFF08\u670D\u52D9\u7AEF\uFF09\u5DF2\u555F\u52D5\u3002 ")}var j=k(R,[["render",I]]);const G={class:"updated"},K=x({props:{updated:Number},setup(u){const r=u,a=c(()=>{const l=Date.now()/1e3;if(!r.updated)return"\u4ECE\u672A.";const n=Math.floor(l-r.updated);let s=Math.floor(n/31536e3);return s>1?`${s} \u5E74\u524D.`:(s=Math.floor(n/2592e3),s>1?`${s} \u6708\u524D.`:(s=Math.floor(n/86400),s>1?`${s} \u65E5\u524D.`:(s=Math.floor(n/3600),s>1?`${s} \u5C0F\u65F6\u524D.`:(s=Math.floor(n/60),s>1?`${s} \u5206\u949F\u524D.`:"\u51E0\u79D2\u524D."))))});return(l,n)=>(h(),p("div",G,"\u6700\u540E\u66F4\u65B0: "+i(t(a)),1))}});const V={},q={role:"navigation",class:"navbar navbar-inverse navbar-fixed-top"},z=e("div",{class:"navbar-inner"},[e("div",{class:"container"},[e("div",{class:"navbar-header"},[e("a",{href:"#",class:"navbar-brand"},"NodeStatus")])])],-1),W=[z];function J(u,r){return h(),p("div",q,W)}var Q=k(V,[["render",J]]);const X={},Y={class:"container"},Z=e("p",{class:"footer"},[M(" Powered by "),e("a",{href:"https://github.com/cokemine/nodestatus"},"NodeStatus")],-1),ee=[Z];function te(u,r){return h(),p("div",Y,ee)}var se=k(X,[["render",te]]),re=u=>{const{server:r}=C(u),a=c(()=>r.value.status.online4||r.value.status.online6),l=c(()=>{const o=Number(r.value.status.load.toFixed(2));return o%1?o:Math.round(o)}),n=c(()=>r.value.status.cpu===void 0?100:Math.round(r.value.status.cpu)),s=c(()=>r.value.status.online4&&r.value.status.online6?"\u53CC\u6808":r.value.status.online4?"IPv4":r.value.status.online6?"IPv6":"\u7EF4\u62A4\u4E2D"),_=c(()=>r.value.status.memory_total===void 0?100:Math.round(r.value.status.memory_used/r.value.status.memory_total*100)),y=c(()=>r.value.status.hdd_total===void 0?100:Math.round(r.value.status.hdd_used/r.value.status.hdd_total*100)),S=c(()=>o=>o>90?"error":o>70?"warning":"success"),D=c(()=>{let o="-";if(a.value){const{uptime:v}=r.value.status;if(v>=86400)o=`${Math.floor(v/86400)} \u5929`;else{let m=Math.floor(v/3600),d=Math.floor(v/60%60),b=Math.floor(v%60);m<10&&(m=`0${m}`),d<10&&(d=`0${d}`),b<10&&(b=`0${b}`),o=`${m}:${d}:${b}`}}return o}),$=c(()=>o=>o<1024?`${o.toFixed(0)}B`:o<1024*1024?`${(o/1024).toFixed(0)}K`:o<1024*1024*1024?`${(o/1024/1024).toFixed(1)}M`:o<1024*1024*1024*1024?`${(o/1024/1024/1024).toFixed(2)}G`:`${(o/1024/1024/1024/1024).toFixed(2)}T`),f=c(()=>o=>o<1024?`${o.toFixed(0)} B`:o<1024*1024?`${(o/1024).toFixed(2)} KiB`:o<1024*1024*1024?`${(o/1024/1024).toFixed(2)} MiB`:o<1024*1024*1024*1024?`${(o/1024/1024/1024).toFixed(2)} GiB`:`${(o/1024/1024/1024/1024).toFixed(2)} TiB`);return{getStatus:a,getNetworkProtocol:s,getLoad:l,getCpuStatus:n,getRAMStatus:_,getHDDStatus:y,getProcessBarStatus:S,getUpTime:D,formatNetwork:$,formatByte:f}};const oe={class:"online_status"},ne={class:"progress"},ue={class:"name"},ae={class:"type"},le={class:"location"},ie={class:"uptime"},ce={class:"load"},de={class:"network"},_e={class:"traffic"},ve={class:"cpu"},he={class:"progress"},fe={class:"memory"},pe={class:"progress"},me={class:"hdd"},$e={class:"progress"},ge={class:"expandRow"},ye={colspan:"12"},be=x({props:{server:{type:Object,default:()=>({status:{}})},order:{type:Number,required:!0}},setup(u){const r=u,{getStatus:a,getLoad:l,getNetworkProtocol:n,getCpuStatus:s,getRAMStatus:_,getHDDStatus:y,getProcessBarStatus:S,getUpTime:D,formatNetwork:$,formatByte:f}=re(r),o=c(()=>m=>{const d=S.value(m);return d==="error"?"danger":d}),v=E(!0);return(m,d)=>(h(),p(B,null,[e("tr",{class:g(`tableRow ${(u.order+1)%2?"odd":"even"}`),onClick:d[0]||(d[0]=b=>v.value=!v.value)},[e("td",oe,[e("div",ne,[e("div",{style:{width:"100%"},class:g(`progress-bar progress-bar-${t(a)?"success":"danger"}`)},[e("small",null,i(t(a)?t(n):"\u7EF4\u62A4\u4E2D"),1)],2)])]),e("td",ue,i(u.server.name),1),e("td",ae,i(u.server.type),1),e("td",le,i(u.server.location),1),e("td",ie,i(t(D)),1),e("td",ce,i(t(a)?t(l):"-"),1),e("td",de,i(t(a)?`${t($)(u.server.status.network_rx)} | ${t($)(u.server.status.network_tx)}`:"\u2013"),1),e("td",_e,i(t(a)?`${t($)(u.server.status.network_in)} | ${t($)(u.server.status.network_out)}`:"\u2013"),1),e("td",ve,[e("div",he,[e("div",{class:g(`progress-bar progress-bar-${t(o)(t(s))}`),style:w({width:`${t(s).toString()}%`})},[e("small",null,i(t(a)?`${t(s).toString()}%`:"\u7EF4\u62A4\u4E2D"),1)],6)])]),e("td",fe,[e("div",pe,[e("div",{class:g(`progress-bar progress-bar-${t(o)(t(_))}`),style:w({width:`${t(_).toString()}%`})},[e("small",null,i(t(a)?`${t(_).toString()}%`:"\u7EF4\u62A4\u4E2D"),1)],6)])]),e("td",me,[e("div",$e,[e("div",{class:g(`progress-bar progress-bar-${t(o)(t(y))}`),style:w({width:`${t(y).toString()}%`})},[e("small",null,i(t(a)?`${t(y).toString()}%`:"\u7EF4\u62A4\u4E2D"),1)],6)])])],2),e("tr",ge,[e("td",ye,[e("div",{class:g({collapsed:v.value}),style:w({"max-height":t(a)?"":"0"})},[e("div",null,"\u5185\u5B58\u4FE1\u606F: "+i(t(a)?`${t(f)(u.server.status.memory_used*1024)}
|
|
2
|
+
/ ${t(f)(u.server.status.memory_total*1024)}`:"\u2013"),1),e("div",null,"\u4EA4\u6362\u5206\u533A: "+i(t(a)?`${t(f)(u.server.status.swap_used*1024)}
|
|
3
|
+
/ ${t(f)(u.server.status.swap_total*1024)}`:"\u2013"),1),e("div",null,"\u786C\u76D8\u4FE1\u606F: "+i(t(a)?`${t(f)(u.server.status.hdd_used*1024*1024)}
|
|
4
|
+
/ ${t(f)(u.server.status.hdd_total*1024*1024)}`:"\u2013"),1)],6)])])],64))}});const Fe={class:"table table-striped table-condensed table-hover"},xe=e("thead",null,[e("tr",null,[e("th",{id:"online_status",style:{"text-align":"center"}},"\u534F\u8BAE"),e("th",{id:"name"},"\u8282\u70B9\u540D"),e("th",{id:"type"},"\u865A\u62DF\u5316"),e("th",{id:"location"},"\u4F4D\u7F6E"),e("th",{id:"uptime"},"\u5728\u7EBF\u65F6\u95F4"),e("th",{id:"load"},"\u8D1F\u8F7D"),e("th",{id:"network"},"\u7F51\u7EDC \u2193|\u2191"),e("th",{id:"traffic"},"\u6D41\u91CF \u2193|\u2191"),e("th",{id:"cpu"},"CPU"),e("th",{id:"ram"},"\u5185\u5B58"),e("th",{id:"hdd"},"\u786C\u76D8"),e("th",{id:"ping",style:{display:"none"}},"\u4E22\u5305\u7387(CU|CT|CM)")])],-1),we={id:"servers"},Se=x({props:{servers:{type:Array,default:()=>[]}},setup(u){return(r,a)=>(h(),p("table",Fe,[xe,e("tbody",we,[(h(!0),p(B,null,A(u.servers,(l,n)=>(h(),N(be,{key:l.id,server:l,order:n},null,8,["server","order"]))),128))])]))}});const De={class:"main container content"},Ee=x({setup(u){const r=E(),a=E(),l=new WebSocket(`${document.location.protocol.replace("http","ws")}${window.location.host}/public`);return l.onopen=()=>console.info("Connect to backend successfully!"),l.onclose=()=>console.warn("WebSocket disconnected!"),l.onerror=()=>console.error("An error occurred while connecting to the backend"),l.onmessage=n=>{const s=JSON.parse(n.data);r.value=s.servers,a.value=s.updated},T(l.close),(n,s)=>(h(),p(B,null,[F(Q),e("div",De,[P(F(j,null,null,512),[[L,!r.value]]),F(Se,{servers:r.value},null,8,["servers"]),F(K,{updated:a.value,style:{padding:"10px"}},null,8,["updated"])]),F(se)],64))}});O(Ee).mount("#app");
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.error{margin-bottom:0;text-align:center;color:#616366}.updated{margin-bottom:-15px;margin-left:5px}.navbar{min-height:40px}.navbar-inverse .navbar-brand{color:#fff;font-size:20px}.footer{text-align:center;font-size:1.2rem;letter-spacing:.08rem}.progress{margin-bottom:0}.progress-bar{color:#000}.tableRow td{vertical-align:middle!important}tr.even+.expandRow{background-color:#fff!important}tr.odd+.expandRow{background:#F9F9F9!important}.expandRow>td{padding:0!important;border-top:0!important}.expandRow td>div{overflow:hidden;transition:max-height .5s ease;max-height:6rem}.expandRow td>div.collapsed{max-height:0!important}.cpu,.memory,.hdd{min-width:45px;max-width:90px}.table{background:#ffffff;margin-bottom:0;border-collapse:collapse;border-radius:3px}.table th,.table td{text-align:center}.table-striped tbody>tr.even{background-color:#fff}.table-striped tbody>tr.odd{background-color:#f9f9f9}body{padding-top:70px;background:#ebebeb url(/assets/light.b83ee430.png)}.main.content{background:#ffffff;padding:20px;border-radius:5px;border:1px #cecece solid;box-shadow:0 1px 10px #0000001a;margin-bottom:20px}@media only screen and (max-width: 1080px){.type,#type,.uptime,#uptime{display:none}}@media only screen and (max-width: 768px){.main.container{margin:0 5px 20px}}@media only screen and (max-width: 720px){body{font-size:12px}.main .expandRow td>div{max-height:5rem}}@media only screen and (max-width: 620px){.location,#location{display:none}}@media only screen and (max-width: 533px){.traffic,#traffic{display:none}}@media only screen and (max-width: 450px){.name,#name{min-width:20px;max-width:50px;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;text-align:left}.cpu,.ram,.hdd{min-width:25px;max-width:50px}}@media only screen and (max-width: 400px){body{font-size:10px}}
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function kt(e,t){const n=Object.create(null),s=e.split(",");for(let r=0;r<s.length;r++)n[s[r]]=!0;return t?r=>!!n[r.toLowerCase()]:r=>!!n[r]}const Cr="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",wr=kt(Cr);function qn(e){return!!e||e===""}function Jt(e){if(F(e)){const t={};for(let n=0;n<e.length;n++){const s=e[n],r=V(s)?Ar(s):Jt(s);if(r)for(const i in r)t[i]=r[i]}return t}else{if(V(e))return e;if(k(e))return e}}const Er=/;(?![^(]*\))/g,Tr=/:(.+)/;function Ar(e){const t={};return e.split(Er).forEach(n=>{if(n){const s=n.split(Tr);s.length>1&&(t[s[0].trim()]=s[1].trim())}}),t}function Yt(e){let t="";if(V(e))t=e;else if(F(e))for(let n=0;n<e.length;n++){const s=Yt(e[n]);s&&(t+=s+" ")}else if(k(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const Vo=e=>e==null?"":F(e)||k(e)&&(e.toString===Xn||!I(e.toString))?JSON.stringify(e,kn,2):String(e),kn=(e,t)=>t&&t.__v_isRef?kn(e,t.value):Ye(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[s,r])=>(n[`${s} =>`]=r,n),{})}:Yn(t)?{[`Set(${t.size})`]:[...t.values()]}:k(t)&&!F(t)&&!Zn(t)?String(t):t,j={},Je=[],he=()=>{},vr=()=>!1,Or=/^on[^a-z]/,bt=e=>Or.test(e),Vt=e=>e.startsWith("onUpdate:"),Z=Object.assign,Jn=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Fr=Object.prototype.hasOwnProperty,R=(e,t)=>Fr.call(e,t),F=Array.isArray,Ye=e=>xt(e)==="[object Map]",Yn=e=>xt(e)==="[object Set]",I=e=>typeof e=="function",V=e=>typeof e=="string",Xt=e=>typeof e=="symbol",k=e=>e!==null&&typeof e=="object",Vn=e=>k(e)&&I(e.then)&&I(e.catch),Xn=Object.prototype.toString,xt=e=>Xn.call(e),Ir=e=>xt(e).slice(8,-1),Zn=e=>xt(e)==="[object Object]",Zt=e=>V(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,yt=kt(",key,ref,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Ct=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Mr=/-(\w)/g,Ve=Ct(e=>e.replace(Mr,(t,n)=>n?n.toUpperCase():"")),Pr=/\B([A-Z])/g,Xe=Ct(e=>e.replace(Pr,"-$1").toLowerCase()),Qn=Ct(e=>e.charAt(0).toUpperCase()+e.slice(1)),Qt=Ct(e=>e?`on${Qn(e)}`:""),lt=(e,t)=>!Object.is(e,t),Gt=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},wt=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},Rr=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let Gn;const Nr=()=>Gn||(Gn=typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:typeof global!="undefined"?global:{});let Ne;const Et=[];class Lr{constructor(t=!1){this.active=!0,this.effects=[],this.cleanups=[],!t&&Ne&&(this.parent=Ne,this.index=(Ne.scopes||(Ne.scopes=[])).push(this)-1)}run(t){if(this.active)try{return this.on(),t()}finally{this.off()}}on(){this.active&&(Et.push(this),Ne=this)}off(){this.active&&(Et.pop(),Ne=Et[Et.length-1])}stop(t){if(this.active){if(this.effects.forEach(n=>n.stop()),this.cleanups.forEach(n=>n()),this.scopes&&this.scopes.forEach(n=>n.stop(!0)),this.parent&&!t){const n=this.parent.scopes.pop();n&&n!==this&&(this.parent.scopes[this.index]=n,n.index=this.index)}this.active=!1}}}function Br(e,t){t=t||Ne,t&&t.active&&t.effects.push(e)}const en=e=>{const t=new Set(e);return t.w=0,t.n=0,t},es=e=>(e.w&Ae)>0,ts=e=>(e.n&Ae)>0,Hr=({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=Ae},jr=e=>{const{deps:t}=e;if(t.length){let n=0;for(let s=0;s<t.length;s++){const r=t[s];es(r)&&!ts(r)?r.delete(e):t[n++]=r,r.w&=~Ae,r.n&=~Ae}t.length=n}},tn=new WeakMap;let ft=0,Ae=1;const nn=30,ct=[];let Le;const Be=Symbol(""),sn=Symbol("");class rn{constructor(t,n=null,s){this.fn=t,this.scheduler=n,this.active=!0,this.deps=[],Br(this,s)}run(){if(!this.active)return this.fn();if(!ct.includes(this))try{return ct.push(Le=this),Ur(),Ae=1<<++ft,ft<=nn?Hr(this):ns(this),this.fn()}finally{ft<=nn&&jr(this),Ae=1<<--ft,He(),ct.pop();const t=ct.length;Le=t>0?ct[t-1]:void 0}}stop(){this.active&&(ns(this),this.onStop&&this.onStop(),this.active=!1)}}function ns(e){const{deps:t}=e;if(t.length){for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}}let Ze=!0;const on=[];function Qe(){on.push(Ze),Ze=!1}function Ur(){on.push(Ze),Ze=!0}function He(){const e=on.pop();Ze=e===void 0?!0:e}function ie(e,t,n){if(!ss())return;let s=tn.get(e);s||tn.set(e,s=new Map);let r=s.get(n);r||s.set(n,r=en()),rs(r)}function ss(){return Ze&&Le!==void 0}function rs(e,t){let n=!1;ft<=nn?ts(e)||(e.n|=Ae,n=!es(e)):n=!e.has(Le),n&&(e.add(Le),Le.deps.push(e))}function Ce(e,t,n,s,r,i){const o=tn.get(e);if(!o)return;let f=[];if(t==="clear")f=[...o.values()];else if(n==="length"&&F(e))o.forEach((u,a)=>{(a==="length"||a>=s)&&f.push(u)});else switch(n!==void 0&&f.push(o.get(n)),t){case"add":F(e)?Zt(n)&&f.push(o.get("length")):(f.push(o.get(Be)),Ye(e)&&f.push(o.get(sn)));break;case"delete":F(e)||(f.push(o.get(Be)),Ye(e)&&f.push(o.get(sn)));break;case"set":Ye(e)&&f.push(o.get(Be));break}if(f.length===1)f[0]&&ln(f[0]);else{const u=[];for(const a of f)a&&u.push(...a);ln(en(u))}}function ln(e,t){for(const n of F(e)?e:[...e])(n!==Le||n.allowRecurse)&&(n.scheduler?n.scheduler():n.run())}const Sr=kt("__proto__,__v_isRef,__isVue"),is=new Set(Object.getOwnPropertyNames(Symbol).map(e=>Symbol[e]).filter(Xt)),Kr=fn(),Dr=fn(!1,!0),$r=fn(!0),os=Wr();function Wr(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const s=N(this);for(let i=0,o=this.length;i<o;i++)ie(s,"get",i+"");const r=s[t](...n);return r===-1||r===!1?s[t](...n.map(N)):r}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...n){Qe();const s=N(this)[t].apply(this,n);return He(),s}}),e}function fn(e=!1,t=!1){return function(s,r,i){if(r==="__v_isReactive")return!e;if(r==="__v_isReadonly")return e;if(r==="__v_raw"&&i===(e?t?ii:gs:t?ps:hs).get(s))return s;const o=F(s);if(!e&&o&&R(os,r))return Reflect.get(os,r,i);const f=Reflect.get(s,r,i);return(Xt(r)?is.has(r):Sr(r))||(e||ie(s,"get",r),t)?f:Q(f)?!o||!Zt(r)?f.value:f:k(f)?e?ms(f):an(f):f}}const zr=ls(),qr=ls(!0);function ls(e=!1){return function(n,s,r,i){let o=n[s];if(!e&&(r=N(r),o=N(o),!F(n)&&Q(o)&&!Q(r)))return o.value=r,!0;const f=F(n)&&Zt(s)?Number(s)<n.length:R(n,s),u=Reflect.set(n,s,r,i);return n===N(i)&&(f?lt(r,o)&&Ce(n,"set",s,r):Ce(n,"add",s,r)),u}}function kr(e,t){const n=R(e,t);e[t];const s=Reflect.deleteProperty(e,t);return s&&n&&Ce(e,"delete",t,void 0),s}function Jr(e,t){const n=Reflect.has(e,t);return(!Xt(t)||!is.has(t))&&ie(e,"has",t),n}function Yr(e){return ie(e,"iterate",F(e)?"length":Be),Reflect.ownKeys(e)}const fs={get:Kr,set:zr,deleteProperty:kr,has:Jr,ownKeys:Yr},Vr={get:$r,set(e,t){return!0},deleteProperty(e,t){return!0}},Xr=Z({},fs,{get:Dr,set:qr}),cn=e=>e,Tt=e=>Reflect.getPrototypeOf(e);function At(e,t,n=!1,s=!1){e=e.__v_raw;const r=N(e),i=N(t);t!==i&&!n&&ie(r,"get",t),!n&&ie(r,"get",i);const{has:o}=Tt(r),f=s?cn:n?hn:ut;if(o.call(r,t))return f(e.get(t));if(o.call(r,i))return f(e.get(i));e!==r&&e.get(t)}function vt(e,t=!1){const n=this.__v_raw,s=N(n),r=N(e);return e!==r&&!t&&ie(s,"has",e),!t&&ie(s,"has",r),e===r?n.has(e):n.has(e)||n.has(r)}function Ot(e,t=!1){return e=e.__v_raw,!t&&ie(N(e),"iterate",Be),Reflect.get(e,"size",e)}function cs(e){e=N(e);const t=N(this);return Tt(t).has.call(t,e)||(t.add(e),Ce(t,"add",e,e)),this}function us(e,t){t=N(t);const n=N(this),{has:s,get:r}=Tt(n);let i=s.call(n,e);i||(e=N(e),i=s.call(n,e));const o=r.call(n,e);return n.set(e,t),i?lt(t,o)&&Ce(n,"set",e,t):Ce(n,"add",e,t),this}function as(e){const t=N(this),{has:n,get:s}=Tt(t);let r=n.call(t,e);r||(e=N(e),r=n.call(t,e)),s&&s.call(t,e);const i=t.delete(e);return r&&Ce(t,"delete",e,void 0),i}function ds(){const e=N(this),t=e.size!==0,n=e.clear();return t&&Ce(e,"clear",void 0,void 0),n}function Ft(e,t){return function(s,r){const i=this,o=i.__v_raw,f=N(o),u=t?cn:e?hn:ut;return!e&&ie(f,"iterate",Be),o.forEach((a,m)=>s.call(r,u(a),u(m),i))}}function It(e,t,n){return function(...s){const r=this.__v_raw,i=N(r),o=Ye(i),f=e==="entries"||e===Symbol.iterator&&o,u=e==="keys"&&o,a=r[e](...s),m=n?cn:t?hn:ut;return!t&&ie(i,"iterate",u?sn:Be),{next(){const{value:w,done:y}=a.next();return y?{value:w,done:y}:{value:f?[m(w[0]),m(w[1])]:m(w),done:y}},[Symbol.iterator](){return this}}}}function ve(e){return function(...t){return e==="delete"?!1:this}}function Zr(){const e={get(i){return At(this,i)},get size(){return Ot(this)},has:vt,add:cs,set:us,delete:as,clear:ds,forEach:Ft(!1,!1)},t={get(i){return At(this,i,!1,!0)},get size(){return Ot(this)},has:vt,add:cs,set:us,delete:as,clear:ds,forEach:Ft(!1,!0)},n={get(i){return At(this,i,!0)},get size(){return Ot(this,!0)},has(i){return vt.call(this,i,!0)},add:ve("add"),set:ve("set"),delete:ve("delete"),clear:ve("clear"),forEach:Ft(!0,!1)},s={get(i){return At(this,i,!0,!0)},get size(){return Ot(this,!0)},has(i){return vt.call(this,i,!0)},add:ve("add"),set:ve("set"),delete:ve("delete"),clear:ve("clear"),forEach:Ft(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(i=>{e[i]=It(i,!1,!1),n[i]=It(i,!0,!1),t[i]=It(i,!1,!0),s[i]=It(i,!0,!0)}),[e,n,t,s]}const[Qr,Gr,ei,ti]=Zr();function un(e,t){const n=t?e?ti:ei:e?Gr:Qr;return(s,r,i)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?s:Reflect.get(R(n,r)&&r in s?n:s,r,i)}const ni={get:un(!1,!1)},si={get:un(!1,!0)},ri={get:un(!0,!1)},hs=new WeakMap,ps=new WeakMap,gs=new WeakMap,ii=new WeakMap;function oi(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function li(e){return e.__v_skip||!Object.isExtensible(e)?0:oi(Ir(e))}function an(e){return e&&e.__v_isReadonly?e:dn(e,!1,fs,ni,hs)}function fi(e){return dn(e,!1,Xr,si,ps)}function ms(e){return dn(e,!0,Vr,ri,gs)}function dn(e,t,n,s,r){if(!k(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=r.get(e);if(i)return i;const o=li(e);if(o===0)return e;const f=new Proxy(e,o===2?s:n);return r.set(e,f),f}function Ge(e){return _s(e)?Ge(e.__v_raw):!!(e&&e.__v_isReactive)}function _s(e){return!!(e&&e.__v_isReadonly)}function bs(e){return Ge(e)||_s(e)}function N(e){const t=e&&e.__v_raw;return t?N(t):e}function xs(e){return wt(e,"__v_skip",!0),e}const ut=e=>k(e)?an(e):e,hn=e=>k(e)?ms(e):e;function ys(e){ss()&&(e=N(e),e.dep||(e.dep=en()),rs(e.dep))}function Cs(e,t){e=N(e),e.dep&&ln(e.dep)}function Q(e){return Boolean(e&&e.__v_isRef===!0)}function Xo(e){return ci(e,!1)}function ci(e,t){return Q(e)?e:new ui(e,t)}class ui{constructor(t,n){this._shallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:N(t),this._value=n?t:ut(t)}get value(){return ys(this),this._value}set value(t){t=this._shallow?t:N(t),lt(t,this._rawValue)&&(this._rawValue=t,this._value=this._shallow?t:ut(t),Cs(this))}}function ai(e){return Q(e)?e.value:e}const di={get:(e,t,n)=>ai(Reflect.get(e,t,n)),set:(e,t,n,s)=>{const r=e[t];return Q(r)&&!Q(n)?(r.value=n,!0):Reflect.set(e,t,n,s)}};function ws(e){return Ge(e)?e:new Proxy(e,di)}function Zo(e){const t=F(e)?new Array(e.length):{};for(const n in e)t[n]=pi(e,n);return t}class hi{constructor(t,n){this._object=t,this._key=n,this.__v_isRef=!0}get value(){return this._object[this._key]}set value(t){this._object[this._key]=t}}function pi(e,t){const n=e[t];return Q(n)?n:new hi(e,t)}class gi{constructor(t,n,s){this._setter=n,this.dep=void 0,this._dirty=!0,this.__v_isRef=!0,this.effect=new rn(t,()=>{this._dirty||(this._dirty=!0,Cs(this))}),this.__v_isReadonly=s}get value(){const t=N(this);return ys(t),t._dirty&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}function mi(e,t){let n,s;const r=I(e);return r?(n=e,s=he):(n=e.get,s=e.set),new gi(n,s,r||!s)}Promise.resolve();function _i(e,t,...n){const s=e.vnode.props||j;let r=n;const i=t.startsWith("update:"),o=i&&t.slice(7);if(o&&o in s){const m=`${o==="modelValue"?"model":o}Modifiers`,{number:w,trim:y}=s[m]||j;y?r=n.map(O=>O.trim()):w&&(r=n.map(Rr))}let f,u=s[f=Qt(t)]||s[f=Qt(Ve(t))];!u&&i&&(u=s[f=Qt(Xe(t))]),u&&ce(u,e,6,r);const a=s[f+"Once"];if(a){if(!e.emitted)e.emitted={};else if(e.emitted[f])return;e.emitted[f]=!0,ce(a,e,6,r)}}function Es(e,t,n=!1){const s=t.emitsCache,r=s.get(e);if(r!==void 0)return r;const i=e.emits;let o={},f=!1;if(!I(e)){const u=a=>{const m=Es(a,t,!0);m&&(f=!0,Z(o,m))};!n&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}return!i&&!f?(s.set(e,null),null):(F(i)?i.forEach(u=>o[u]=null):Z(o,i),s.set(e,o),o)}function pn(e,t){return!e||!bt(t)?!1:(t=t.slice(2).replace(/Once$/,""),R(e,t[0].toLowerCase()+t.slice(1))||R(e,Xe(t))||R(e,t))}let pe=null,Ts=null;function Mt(e){const t=pe;return pe=e,Ts=e&&e.type.__scopeId||null,t}function bi(e,t=pe,n){if(!t||e._n)return e;const s=(...r)=>{s._d&&Ys(-1);const i=Mt(t),o=e(...r);return Mt(i),s._d&&Ys(1),o};return s._n=!0,s._c=!0,s._d=!0,s}function gn(e){const{type:t,vnode:n,proxy:s,withProxy:r,props:i,propsOptions:[o],slots:f,attrs:u,emit:a,render:m,renderCache:w,data:y,setupState:O,ctx:U,inheritAttrs:$}=e;let M,L;const le=Mt(e);try{if(n.shapeFlag&4){const z=r||s;M=be(m.call(z,z,w,i,O,y,U)),L=u}else{const z=t;M=be(z.length>1?z(i,{attrs:u,slots:f,emit:a}):z(i,null)),L=t.props?u:xi(u)}}catch(z){at.length=0,St(z,e,1),M=Fe(Oe)}let J=M;if(L&&$!==!1){const z=Object.keys(L),{shapeFlag:ne}=J;z.length&&ne&(1|6)&&(o&&z.some(Vt)&&(L=yi(L,o)),J=et(J,L))}return n.dirs&&(J.dirs=J.dirs?J.dirs.concat(n.dirs):n.dirs),n.transition&&(J.transition=n.transition),M=J,Mt(le),M}const xi=e=>{let t;for(const n in e)(n==="class"||n==="style"||bt(n))&&((t||(t={}))[n]=e[n]);return t},yi=(e,t)=>{const n={};for(const s in e)(!Vt(s)||!(s.slice(9)in t))&&(n[s]=e[s]);return n};function Ci(e,t,n){const{props:s,children:r,component:i}=e,{props:o,children:f,patchFlag:u}=t,a=i.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&u>=0){if(u&1024)return!0;if(u&16)return s?As(s,o,a):!!o;if(u&8){const m=t.dynamicProps;for(let w=0;w<m.length;w++){const y=m[w];if(o[y]!==s[y]&&!pn(a,y))return!0}}}else return(r||f)&&(!f||!f.$stable)?!0:s===o?!1:s?o?As(s,o,a):!0:!!o;return!1}function As(e,t,n){const s=Object.keys(t);if(s.length!==Object.keys(e).length)return!0;for(let r=0;r<s.length;r++){const i=s[r];if(t[i]!==e[i]&&!pn(n,i))return!0}return!1}function wi({vnode:e,parent:t},n){for(;t&&t.subTree===e;)(e=t.vnode).el=n,t=t.parent}const Ei=e=>e.__isSuspense;function Ti(e,t){t&&t.pendingBranch?F(e)?t.effects.push(...e):t.effects.push(e):To(e)}function Ai(e,t){if(X){let n=X.provides;const s=X.parent&&X.parent.provides;s===n&&(n=X.provides=Object.create(s)),n[e]=t}}function mn(e,t,n=!1){const s=X||pe;if(s){const r=s.parent==null?s.vnode.appContext&&s.vnode.appContext.provides:s.parent.provides;if(r&&e in r)return r[e];if(arguments.length>1)return n&&I(t)?t.call(s.proxy):t}}function vi(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Ms(()=>{e.isMounted=!0}),Ps(()=>{e.isUnmounting=!0}),e}const fe=[Function,Array],Oi={name:"BaseTransition",props:{mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:fe,onEnter:fe,onAfterEnter:fe,onEnterCancelled:fe,onBeforeLeave:fe,onLeave:fe,onAfterLeave:fe,onLeaveCancelled:fe,onBeforeAppear:fe,onAppear:fe,onAfterAppear:fe,onAppearCancelled:fe},setup(e,{slots:t}){const n=ho(),s=vi();let r;return()=>{const i=t.default&&Fs(t.default(),!0);if(!i||!i.length)return;const o=N(e),{mode:f}=o,u=i[0];if(s.isLeaving)return bn(u);const a=Os(u);if(!a)return bn(u);const m=_n(a,o,s,n);xn(a,m);const w=n.subTree,y=w&&Os(w);let O=!1;const{getTransitionKey:U}=a.type;if(U){const $=U();r===void 0?r=$:$!==r&&(r=$,O=!0)}if(y&&y.type!==Oe&&(!Ke(a,y)||O)){const $=_n(y,o,s,n);if(xn(y,$),f==="out-in")return s.isLeaving=!0,$.afterLeave=()=>{s.isLeaving=!1,n.update()},bn(u);f==="in-out"&&a.type!==Oe&&($.delayLeave=(M,L,le)=>{const J=vs(s,y);J[String(y.key)]=y,M._leaveCb=()=>{L(),M._leaveCb=void 0,delete m.delayedLeave},m.delayedLeave=le})}return u}}},Fi=Oi;function vs(e,t){const{leavingVNodes:n}=e;let s=n.get(t.type);return s||(s=Object.create(null),n.set(t.type,s)),s}function _n(e,t,n,s){const{appear:r,mode:i,persisted:o=!1,onBeforeEnter:f,onEnter:u,onAfterEnter:a,onEnterCancelled:m,onBeforeLeave:w,onLeave:y,onAfterLeave:O,onLeaveCancelled:U,onBeforeAppear:$,onAppear:M,onAfterAppear:L,onAppearCancelled:le}=t,J=String(e.key),z=vs(n,e),ne=(B,Y)=>{B&&ce(B,s,9,Y)},Re={mode:i,persisted:o,beforeEnter(B){let Y=f;if(!n.isMounted)if(r)Y=$||f;else return;B._leaveCb&&B._leaveCb(!0);const q=z[J];q&&Ke(e,q)&&q.el._leaveCb&&q.el._leaveCb(),ne(Y,[B])},enter(B){let Y=u,q=a,ue=m;if(!n.isMounted)if(r)Y=M||u,q=L||a,ue=le||m;else return;let se=!1;const ae=B._enterCb=We=>{se||(se=!0,We?ne(ue,[B]):ne(q,[B]),Re.delayedLeave&&Re.delayedLeave(),B._enterCb=void 0)};Y?(Y(B,ae),Y.length<=1&&ae()):ae()},leave(B,Y){const q=String(e.key);if(B._enterCb&&B._enterCb(!0),n.isUnmounting)return Y();ne(w,[B]);let ue=!1;const se=B._leaveCb=ae=>{ue||(ue=!0,Y(),ae?ne(U,[B]):ne(O,[B]),B._leaveCb=void 0,z[q]===e&&delete z[q])};z[q]=e,y?(y(B,se),y.length<=1&&se()):se()},clone(B){return _n(B,t,n,s)}};return Re}function bn(e){if(Pt(e))return e=et(e),e.children=null,e}function Os(e){return Pt(e)?e.children?e.children[0]:void 0:e}function xn(e,t){e.shapeFlag&6&&e.component?xn(e.component.subTree,t):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function Fs(e,t=!1){let n=[],s=0;for(let r=0;r<e.length;r++){const i=e[r];i.type===_e?(i.patchFlag&128&&s++,n=n.concat(Fs(i.children,t))):(t||i.type!==Oe)&&n.push(i)}if(s>1)for(let r=0;r<n.length;r++)n[r].patchFlag=-2;return n}function Qo(e){return I(e)?{setup:e,name:e.name}:e}const yn=e=>!!e.type.__asyncLoader,Pt=e=>e.type.__isKeepAlive;function Ii(e,t){Is(e,"a",t)}function Mi(e,t){Is(e,"da",t)}function Is(e,t,n=X){const s=e.__wdc||(e.__wdc=()=>{let r=n;for(;r;){if(r.isDeactivated)return;r=r.parent}e()});if(Rt(t,s,n),n){let r=n.parent;for(;r&&r.parent;)Pt(r.parent.vnode)&&Pi(s,t,n,r),r=r.parent}}function Pi(e,t,n,s){const r=Rt(t,e,s,!0);Rs(()=>{Jn(s[t],r)},n)}function Rt(e,t,n=X,s=!1){if(n){const r=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...o)=>{if(n.isUnmounted)return;Qe(),tt(n);const f=ce(t,n,e,o);return De(),He(),f});return s?r.unshift(i):r.push(i),i}}const we=e=>(t,n=X)=>(!Ut||e==="sp")&&Rt(e,t,n),Ri=we("bm"),Ms=we("m"),Ni=we("bu"),Li=we("u"),Ps=we("bum"),Rs=we("um"),Bi=we("sp"),Hi=we("rtg"),ji=we("rtc");function Ui(e,t=X){Rt("ec",e,t)}let Cn=!0;function Si(e){const t=Bs(e),n=e.proxy,s=e.ctx;Cn=!1,t.beforeCreate&&Ns(t.beforeCreate,e,"bc");const{data:r,computed:i,methods:o,watch:f,provide:u,inject:a,created:m,beforeMount:w,mounted:y,beforeUpdate:O,updated:U,activated:$,deactivated:M,beforeDestroy:L,beforeUnmount:le,destroyed:J,unmounted:z,render:ne,renderTracked:Re,renderTriggered:B,errorCaptured:Y,serverPrefetch:q,expose:ue,inheritAttrs:se,components:ae,directives:We,filters:Sn}=t;if(a&&Ki(a,s,null,e.appContext.config.unwrapInjectedRef),o)for(const W in o){const S=o[W];I(S)&&(s[W]=S.bind(n))}if(r){const W=r.call(n,n);k(W)&&(e.data=an(W))}if(Cn=!0,i)for(const W in i){const S=i[W],xe=I(S)?S.bind(n,n):I(S.get)?S.get.bind(n,n):he,Wt=!I(S)&&I(S.set)?S.set.bind(n):he,it=mi({get:xe,set:Wt});Object.defineProperty(s,W,{enumerable:!0,configurable:!0,get:()=>it.value,set:ze=>it.value=ze})}if(f)for(const W in f)Ls(f[W],s,n,W);if(u){const W=I(u)?u.call(n):u;Reflect.ownKeys(W).forEach(S=>{Ai(S,W[S])})}m&&Ns(m,e,"c");function te(W,S){F(S)?S.forEach(xe=>W(xe.bind(n))):S&&W(S.bind(n))}if(te(Ri,w),te(Ms,y),te(Ni,O),te(Li,U),te(Ii,$),te(Mi,M),te(Ui,Y),te(ji,Re),te(Hi,B),te(Ps,le),te(Rs,z),te(Bi,q),F(ue))if(ue.length){const W=e.exposed||(e.exposed={});ue.forEach(S=>{Object.defineProperty(W,S,{get:()=>n[S],set:xe=>n[S]=xe})})}else e.exposed||(e.exposed={});ne&&e.render===he&&(e.render=ne),se!=null&&(e.inheritAttrs=se),ae&&(e.components=ae),We&&(e.directives=We)}function Ki(e,t,n=he,s=!1){F(e)&&(e=wn(e));for(const r in e){const i=e[r];let o;k(i)?"default"in i?o=mn(i.from||r,i.default,!0):o=mn(i.from||r):o=mn(i),Q(o)&&s?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>o.value,set:f=>o.value=f}):t[r]=o}}function Ns(e,t,n){ce(F(e)?e.map(s=>s.bind(t.proxy)):e.bind(t.proxy),t,n)}function Ls(e,t,n,s){const r=s.includes(".")?ur(n,s):()=>n[s];if(V(e)){const i=t[e];I(i)&&Bn(r,i)}else if(I(e))Bn(r,e.bind(n));else if(k(e))if(F(e))e.forEach(i=>Ls(i,t,n,s));else{const i=I(e.handler)?e.handler.bind(n):t[e.handler];I(i)&&Bn(r,i,e)}}function Bs(e){const t=e.type,{mixins:n,extends:s}=t,{mixins:r,optionsCache:i,config:{optionMergeStrategies:o}}=e.appContext,f=i.get(t);let u;return f?u=f:!r.length&&!n&&!s?u=t:(u={},r.length&&r.forEach(a=>Nt(u,a,o,!0)),Nt(u,t,o)),i.set(t,u),u}function Nt(e,t,n,s=!1){const{mixins:r,extends:i}=t;i&&Nt(e,i,n,!0),r&&r.forEach(o=>Nt(e,o,n,!0));for(const o in t)if(!(s&&o==="expose")){const f=Di[o]||n&&n[o];e[o]=f?f(e[o],t[o]):t[o]}return e}const Di={data:Hs,props:je,emits:je,methods:je,computed:je,beforeCreate:G,created:G,beforeMount:G,mounted:G,beforeUpdate:G,updated:G,beforeDestroy:G,beforeUnmount:G,destroyed:G,unmounted:G,activated:G,deactivated:G,errorCaptured:G,serverPrefetch:G,components:je,directives:je,watch:Wi,provide:Hs,inject:$i};function Hs(e,t){return t?e?function(){return Z(I(e)?e.call(this,this):e,I(t)?t.call(this,this):t)}:t:e}function $i(e,t){return je(wn(e),wn(t))}function wn(e){if(F(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function G(e,t){return e?[...new Set([].concat(e,t))]:t}function je(e,t){return e?Z(Z(Object.create(null),e),t):t}function Wi(e,t){if(!e)return t;if(!t)return e;const n=Z(Object.create(null),e);for(const s in t)n[s]=G(e[s],t[s]);return n}function zi(e,t,n,s=!1){const r={},i={};wt(i,Bt,1),e.propsDefaults=Object.create(null),js(e,t,r,i);for(const o in e.propsOptions[0])o in r||(r[o]=void 0);n?e.props=s?r:fi(r):e.type.props?e.props=r:e.props=i,e.attrs=i}function qi(e,t,n,s){const{props:r,attrs:i,vnode:{patchFlag:o}}=e,f=N(r),[u]=e.propsOptions;let a=!1;if((s||o>0)&&!(o&16)){if(o&8){const m=e.vnode.dynamicProps;for(let w=0;w<m.length;w++){let y=m[w];const O=t[y];if(u)if(R(i,y))O!==i[y]&&(i[y]=O,a=!0);else{const U=Ve(y);r[U]=En(u,f,U,O,e,!1)}else O!==i[y]&&(i[y]=O,a=!0)}}}else{js(e,t,r,i)&&(a=!0);let m;for(const w in f)(!t||!R(t,w)&&((m=Xe(w))===w||!R(t,m)))&&(u?n&&(n[w]!==void 0||n[m]!==void 0)&&(r[w]=En(u,f,w,void 0,e,!0)):delete r[w]);if(i!==f)for(const w in i)(!t||!R(t,w))&&(delete i[w],a=!0)}a&&Ce(e,"set","$attrs")}function js(e,t,n,s){const[r,i]=e.propsOptions;let o=!1,f;if(t)for(let u in t){if(yt(u))continue;const a=t[u];let m;r&&R(r,m=Ve(u))?!i||!i.includes(m)?n[m]=a:(f||(f={}))[m]=a:pn(e.emitsOptions,u)||a!==s[u]&&(s[u]=a,o=!0)}if(i){const u=N(n),a=f||j;for(let m=0;m<i.length;m++){const w=i[m];n[w]=En(r,u,w,a[w],e,!R(a,w))}}return o}function En(e,t,n,s,r,i){const o=e[n];if(o!=null){const f=R(o,"default");if(f&&s===void 0){const u=o.default;if(o.type!==Function&&I(u)){const{propsDefaults:a}=r;n in a?s=a[n]:(tt(r),s=a[n]=u.call(null,t),De())}else s=u}o[0]&&(i&&!f?s=!1:o[1]&&(s===""||s===Xe(n))&&(s=!0))}return s}function Us(e,t,n=!1){const s=t.propsCache,r=s.get(e);if(r)return r;const i=e.props,o={},f=[];let u=!1;if(!I(e)){const m=w=>{u=!0;const[y,O]=Us(w,t,!0);Z(o,y),O&&f.push(...O)};!n&&t.mixins.length&&t.mixins.forEach(m),e.extends&&m(e.extends),e.mixins&&e.mixins.forEach(m)}if(!i&&!u)return s.set(e,Je),Je;if(F(i))for(let m=0;m<i.length;m++){const w=Ve(i[m]);Ss(w)&&(o[w]=j)}else if(i)for(const m in i){const w=Ve(m);if(Ss(w)){const y=i[m],O=o[w]=F(y)||I(y)?{type:y}:y;if(O){const U=$s(Boolean,O.type),$=$s(String,O.type);O[0]=U>-1,O[1]=$<0||U<$,(U>-1||R(O,"default"))&&f.push(w)}}}const a=[o,f];return s.set(e,a),a}function Ss(e){return e[0]!=="$"}function Ks(e){const t=e&&e.toString().match(/^\s*function (\w+)/);return t?t[1]:e===null?"null":""}function Ds(e,t){return Ks(e)===Ks(t)}function $s(e,t){return F(t)?t.findIndex(n=>Ds(n,e)):I(t)&&Ds(t,e)?0:-1}const Ws=e=>e[0]==="_"||e==="$stable",Tn=e=>F(e)?e.map(be):[be(e)],ki=(e,t,n)=>{const s=bi((...r)=>Tn(t(...r)),n);return s._c=!1,s},zs=(e,t,n)=>{const s=e._ctx;for(const r in e){if(Ws(r))continue;const i=e[r];if(I(i))t[r]=ki(r,i,s);else if(i!=null){const o=Tn(i);t[r]=()=>o}}},qs=(e,t)=>{const n=Tn(t);e.slots.default=()=>n},Ji=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=N(t),wt(t,"_",n)):zs(t,e.slots={})}else e.slots={},t&&qs(e,t);wt(e.slots,Bt,1)},Yi=(e,t,n)=>{const{vnode:s,slots:r}=e;let i=!0,o=j;if(s.shapeFlag&32){const f=t._;f?n&&f===1?i=!1:(Z(r,t),!n&&f===1&&delete r._):(i=!t.$stable,zs(t,r)),o=t}else t&&(qs(e,t),o={default:1});if(i)for(const f in r)!Ws(f)&&!(f in o)&&delete r[f]};function Go(e,t){const n=pe;if(n===null)return e;const s=n.proxy,r=e.dirs||(e.dirs=[]);for(let i=0;i<t.length;i++){let[o,f,u,a=j]=t[i];I(o)&&(o={mounted:o,updated:o}),o.deep&&$e(f),r.push({dir:o,instance:s,value:f,oldValue:void 0,arg:u,modifiers:a})}return e}function Ue(e,t,n,s){const r=e.dirs,i=t&&t.dirs;for(let o=0;o<r.length;o++){const f=r[o];i&&(f.oldValue=i[o].value);let u=f.dir[s];u&&(Qe(),ce(u,n,8,[e.el,f,e,t]),He())}}function ks(){return{app:null,config:{isNativeTag:vr,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let Vi=0;function Xi(e,t){return function(s,r=null){r!=null&&!k(r)&&(r=null);const i=ks(),o=new Set;let f=!1;const u=i.app={_uid:Vi++,_component:s,_props:r,_container:null,_context:i,_instance:null,version:vo,get config(){return i.config},set config(a){},use(a,...m){return o.has(a)||(a&&I(a.install)?(o.add(a),a.install(u,...m)):I(a)&&(o.add(a),a(u,...m))),u},mixin(a){return i.mixins.includes(a)||i.mixins.push(a),u},component(a,m){return m?(i.components[a]=m,u):i.components[a]},directive(a,m){return m?(i.directives[a]=m,u):i.directives[a]},mount(a,m,w){if(!f){const y=Fe(s,r);return y.appContext=i,m&&t?t(y,a):e(y,a,w),f=!0,u._container=a,a.__vue_app__=u,Mn(y.component)||y.component.proxy}},unmount(){f&&(e(null,u._container),delete u._container.__vue_app__)},provide(a,m){return i.provides[a]=m,u}};return u}}const ee=Ti;function Zi(e){return Qi(e)}function Qi(e,t){const n=Nr();n.__VUE__=!0;const{insert:s,remove:r,patchProp:i,createElement:o,createText:f,createComment:u,setText:a,setElementText:m,parentNode:w,nextSibling:y,setScopeId:O=he,cloneNode:U,insertStaticContent:$}=e,M=(l,c,d,p=null,h=null,x=null,C=!1,_=null,b=!!c.dynamicChildren)=>{if(l===c)return;l&&!Ke(l,c)&&(p=_t(l),Te(l,h,x,!0),l=null),c.patchFlag===-2&&(b=!1,c.dynamicChildren=null);const{type:g,ref:T,shapeFlag:E}=c;switch(g){case vn:L(l,c,d,p);break;case Oe:le(l,c,d,p);break;case On:l==null&&J(c,d,p,C);break;case _e:We(l,c,d,p,h,x,C,_,b);break;default:E&1?Re(l,c,d,p,h,x,C,_,b):E&6?Sn(l,c,d,p,h,x,C,_,b):(E&64||E&128)&&g.process(l,c,d,p,h,x,C,_,b,qe)}T!=null&&h&&An(T,l&&l.ref,x,c||l,!c)},L=(l,c,d,p)=>{if(l==null)s(c.el=f(c.children),d,p);else{const h=c.el=l.el;c.children!==l.children&&a(h,c.children)}},le=(l,c,d,p)=>{l==null?s(c.el=u(c.children||""),d,p):c.el=l.el},J=(l,c,d,p)=>{[l.el,l.anchor]=$(l.children,c,d,p)},z=({el:l,anchor:c},d,p)=>{let h;for(;l&&l!==c;)h=y(l),s(l,d,p),l=h;s(c,d,p)},ne=({el:l,anchor:c})=>{let d;for(;l&&l!==c;)d=y(l),r(l),l=d;r(c)},Re=(l,c,d,p,h,x,C,_,b)=>{C=C||c.type==="svg",l==null?B(c,d,p,h,x,C,_,b):ue(l,c,h,x,C,_,b)},B=(l,c,d,p,h,x,C,_)=>{let b,g;const{type:T,props:E,shapeFlag:A,transition:v,patchFlag:P,dirs:D}=l;if(l.el&&U!==void 0&&P===-1)b=l.el=U(l.el);else{if(b=l.el=o(l.type,x,E&&E.is,E),A&8?m(b,l.children):A&16&&q(l.children,b,null,p,h,x&&T!=="foreignObject",C,_),D&&Ue(l,null,p,"created"),E){for(const K in E)K!=="value"&&!yt(K)&&i(b,K,null,E[K],x,l.children,p,h,ye);"value"in E&&i(b,"value",null,E.value),(g=E.onVnodeBeforeMount)&&me(g,p,l)}Y(b,l,l.scopeId,C,p)}D&&Ue(l,null,p,"beforeMount");const H=(!h||h&&!h.pendingBranch)&&v&&!v.persisted;H&&v.beforeEnter(b),s(b,c,d),((g=E&&E.onVnodeMounted)||H||D)&&ee(()=>{g&&me(g,p,l),H&&v.enter(b),D&&Ue(l,null,p,"mounted")},h)},Y=(l,c,d,p,h)=>{if(d&&O(l,d),p)for(let x=0;x<p.length;x++)O(l,p[x]);if(h){let x=h.subTree;if(c===x){const C=h.vnode;Y(l,C,C.scopeId,C.slotScopeIds,h.parent)}}},q=(l,c,d,p,h,x,C,_,b=0)=>{for(let g=b;g<l.length;g++){const T=l[g]=_?Ie(l[g]):be(l[g]);M(null,T,c,d,p,h,x,C,_)}},ue=(l,c,d,p,h,x,C)=>{const _=c.el=l.el;let{patchFlag:b,dynamicChildren:g,dirs:T}=c;b|=l.patchFlag&16;const E=l.props||j,A=c.props||j;let v;(v=A.onVnodeBeforeUpdate)&&me(v,d,c,l),T&&Ue(c,l,d,"beforeUpdate");const P=h&&c.type!=="foreignObject";if(g?se(l.dynamicChildren,g,_,d,p,P,x):C||xe(l,c,_,null,d,p,P,x,!1),b>0){if(b&16)ae(_,c,E,A,d,p,h);else if(b&2&&E.class!==A.class&&i(_,"class",null,A.class,h),b&4&&i(_,"style",E.style,A.style,h),b&8){const D=c.dynamicProps;for(let H=0;H<D.length;H++){const K=D[H],de=E[K],ke=A[K];(ke!==de||K==="value")&&i(_,K,de,ke,h,l.children,d,p,ye)}}b&1&&l.children!==c.children&&m(_,c.children)}else!C&&g==null&&ae(_,c,E,A,d,p,h);((v=A.onVnodeUpdated)||T)&&ee(()=>{v&&me(v,d,c,l),T&&Ue(c,l,d,"updated")},p)},se=(l,c,d,p,h,x,C)=>{for(let _=0;_<c.length;_++){const b=l[_],g=c[_],T=b.el&&(b.type===_e||!Ke(b,g)||b.shapeFlag&(6|64))?w(b.el):d;M(b,g,T,null,p,h,x,C,!0)}},ae=(l,c,d,p,h,x,C)=>{if(d!==p){for(const _ in p){if(yt(_))continue;const b=p[_],g=d[_];b!==g&&_!=="value"&&i(l,_,g,b,C,c.children,h,x,ye)}if(d!==j)for(const _ in d)!yt(_)&&!(_ in p)&&i(l,_,d[_],null,C,c.children,h,x,ye);"value"in p&&i(l,"value",d.value,p.value)}},We=(l,c,d,p,h,x,C,_,b)=>{const g=c.el=l?l.el:f(""),T=c.anchor=l?l.anchor:f("");let{patchFlag:E,dynamicChildren:A,slotScopeIds:v}=c;v&&(_=_?_.concat(v):v),l==null?(s(g,d,p),s(T,d,p),q(c.children,d,T,h,x,C,_,b)):E>0&&E&64&&A&&l.dynamicChildren?(se(l.dynamicChildren,A,d,h,x,C,_),(c.key!=null||h&&c===h.subTree)&&Js(l,c,!0)):xe(l,c,d,T,h,x,C,_,b)},Sn=(l,c,d,p,h,x,C,_,b)=>{c.slotScopeIds=_,l==null?c.shapeFlag&512?h.ctx.activate(c,d,p,C,b):$t(c,d,p,h,x,C,b):te(l,c,b)},$t=(l,c,d,p,h,x,C)=>{const _=l.component=ao(l,p,h);if(Pt(l)&&(_.ctx.renderer=qe),po(_),_.asyncDep){if(h&&h.registerDep(_,W),!l.el){const b=_.subTree=Fe(Oe);le(null,b,c,d)}return}W(_,l,c,d,h,x,C)},te=(l,c,d)=>{const p=c.component=l.component;if(Ci(l,c,d))if(p.asyncDep&&!p.asyncResolved){S(p,c,d);return}else p.next=c,wo(p.update),p.update();else c.component=l.component,c.el=l.el,p.vnode=c},W=(l,c,d,p,h,x,C)=>{const _=()=>{if(l.isMounted){let{next:T,bu:E,u:A,parent:v,vnode:P}=l,D=T,H;b.allowRecurse=!1,T?(T.el=P.el,S(l,T,C)):T=P,E&&Gt(E),(H=T.props&&T.props.onVnodeBeforeUpdate)&&me(H,v,T,P),b.allowRecurse=!0;const K=gn(l),de=l.subTree;l.subTree=K,M(de,K,w(de.el),_t(de),l,h,x),T.el=K.el,D===null&&wi(l,K.el),A&&ee(A,h),(H=T.props&&T.props.onVnodeUpdated)&&ee(()=>me(H,v,T,P),h)}else{let T;const{el:E,props:A}=c,{bm:v,m:P,parent:D}=l,H=yn(c);if(b.allowRecurse=!1,v&&Gt(v),!H&&(T=A&&A.onVnodeBeforeMount)&&me(T,D,c),b.allowRecurse=!0,E&&qt){const K=()=>{l.subTree=gn(l),qt(E,l.subTree,l,h,null)};H?c.type.__asyncLoader().then(()=>!l.isUnmounted&&K()):K()}else{const K=l.subTree=gn(l);M(null,K,d,p,l,h,x),c.el=K.el}if(P&&ee(P,h),!H&&(T=A&&A.onVnodeMounted)){const K=c;ee(()=>me(T,D,K),h)}c.shapeFlag&256&&l.a&&ee(l.a,h),l.isMounted=!0,c=d=p=null}},b=new rn(_,()=>sr(l.update),l.scope),g=l.update=b.run.bind(b);g.id=l.uid,b.allowRecurse=g.allowRecurse=!0,g()},S=(l,c,d)=>{c.component=l;const p=l.vnode.props;l.vnode=c,l.next=null,qi(l,c.props,p,d),Yi(l,c.children,d),Qe(),Ln(void 0,l.update),He()},xe=(l,c,d,p,h,x,C,_,b=!1)=>{const g=l&&l.children,T=l?l.shapeFlag:0,E=c.children,{patchFlag:A,shapeFlag:v}=c;if(A>0){if(A&128){it(g,E,d,p,h,x,C,_,b);return}else if(A&256){Wt(g,E,d,p,h,x,C,_,b);return}}v&8?(T&16&&ye(g,h,x),E!==g&&m(d,E)):T&16?v&16?it(g,E,d,p,h,x,C,_,b):ye(g,h,x,!0):(T&8&&m(d,""),v&16&&q(E,d,p,h,x,C,_,b))},Wt=(l,c,d,p,h,x,C,_,b)=>{l=l||Je,c=c||Je;const g=l.length,T=c.length,E=Math.min(g,T);let A;for(A=0;A<E;A++){const v=c[A]=b?Ie(c[A]):be(c[A]);M(l[A],v,d,null,h,x,C,_,b)}g>T?ye(l,h,x,!0,!1,E):q(c,d,p,h,x,C,_,b,E)},it=(l,c,d,p,h,x,C,_,b)=>{let g=0;const T=c.length;let E=l.length-1,A=T-1;for(;g<=E&&g<=A;){const v=l[g],P=c[g]=b?Ie(c[g]):be(c[g]);if(Ke(v,P))M(v,P,d,null,h,x,C,_,b);else break;g++}for(;g<=E&&g<=A;){const v=l[E],P=c[A]=b?Ie(c[A]):be(c[A]);if(Ke(v,P))M(v,P,d,null,h,x,C,_,b);else break;E--,A--}if(g>E){if(g<=A){const v=A+1,P=v<T?c[v].el:p;for(;g<=A;)M(null,c[g]=b?Ie(c[g]):be(c[g]),d,P,h,x,C,_,b),g++}}else if(g>A)for(;g<=E;)Te(l[g],h,x,!0),g++;else{const v=g,P=g,D=new Map;for(g=P;g<=A;g++){const re=c[g]=b?Ie(c[g]):be(c[g]);re.key!=null&&D.set(re.key,g)}let H,K=0;const de=A-P+1;let ke=!1,$n=0;const ot=new Array(de);for(g=0;g<de;g++)ot[g]=0;for(g=v;g<=E;g++){const re=l[g];if(K>=de){Te(re,h,x,!0);continue}let ge;if(re.key!=null)ge=D.get(re.key);else for(H=P;H<=A;H++)if(ot[H-P]===0&&Ke(re,c[H])){ge=H;break}ge===void 0?Te(re,h,x,!0):(ot[ge-P]=g+1,ge>=$n?$n=ge:ke=!0,M(re,c[ge],d,null,h,x,C,_,b),K++)}const Wn=ke?Gi(ot):Je;for(H=Wn.length-1,g=de-1;g>=0;g--){const re=P+g,ge=c[re],zn=re+1<T?c[re+1].el:p;ot[g]===0?M(null,ge,d,zn,h,x,C,_,b):ke&&(H<0||g!==Wn[H]?ze(ge,d,zn,2):H--)}}},ze=(l,c,d,p,h=null)=>{const{el:x,type:C,transition:_,children:b,shapeFlag:g}=l;if(g&6){ze(l.component.subTree,c,d,p);return}if(g&128){l.suspense.move(c,d,p);return}if(g&64){C.move(l,c,d,qe);return}if(C===_e){s(x,c,d);for(let E=0;E<b.length;E++)ze(b[E],c,d,p);s(l.anchor,c,d);return}if(C===On){z(l,c,d);return}if(p!==2&&g&1&&_)if(p===0)_.beforeEnter(x),s(x,c,d),ee(()=>_.enter(x),h);else{const{leave:E,delayLeave:A,afterLeave:v}=_,P=()=>s(x,c,d),D=()=>{E(x,()=>{P(),v&&v()})};A?A(x,P,D):D()}else s(x,c,d)},Te=(l,c,d,p=!1,h=!1)=>{const{type:x,props:C,ref:_,children:b,dynamicChildren:g,shapeFlag:T,patchFlag:E,dirs:A}=l;if(_!=null&&An(_,null,d,l,!0),T&256){c.ctx.deactivate(l);return}const v=T&1&&A,P=!yn(l);let D;if(P&&(D=C&&C.onVnodeBeforeUnmount)&&me(D,c,l),T&6)yr(l.component,d,p);else{if(T&128){l.suspense.unmount(d,p);return}v&&Ue(l,null,c,"beforeUnmount"),T&64?l.type.remove(l,c,d,h,qe,p):g&&(x!==_e||E>0&&E&64)?ye(g,c,d,!1,!0):(x===_e&&E&(128|256)||!h&&T&16)&&ye(b,c,d),p&&Kn(l)}(P&&(D=C&&C.onVnodeUnmounted)||v)&&ee(()=>{D&&me(D,c,l),v&&Ue(l,null,c,"unmounted")},d)},Kn=l=>{const{type:c,el:d,anchor:p,transition:h}=l;if(c===_e){xr(d,p);return}if(c===On){ne(l);return}const x=()=>{r(d),h&&!h.persisted&&h.afterLeave&&h.afterLeave()};if(l.shapeFlag&1&&h&&!h.persisted){const{leave:C,delayLeave:_}=h,b=()=>C(d,x);_?_(l.el,x,b):b()}else x()},xr=(l,c)=>{let d;for(;l!==c;)d=y(l),r(l),l=d;r(c)},yr=(l,c,d)=>{const{bum:p,scope:h,update:x,subTree:C,um:_}=l;p&&Gt(p),h.stop(),x&&(x.active=!1,Te(C,l,c,d)),_&&ee(_,c),ee(()=>{l.isUnmounted=!0},c),c&&c.pendingBranch&&!c.isUnmounted&&l.asyncDep&&!l.asyncResolved&&l.suspenseId===c.pendingId&&(c.deps--,c.deps===0&&c.resolve())},ye=(l,c,d,p=!1,h=!1,x=0)=>{for(let C=x;C<l.length;C++)Te(l[C],c,d,p,h)},_t=l=>l.shapeFlag&6?_t(l.component.subTree):l.shapeFlag&128?l.suspense.next():y(l.anchor||l.el),Dn=(l,c,d)=>{l==null?c._vnode&&Te(c._vnode,null,null,!0):M(c._vnode||null,l,c,null,null,null,d),or(),c._vnode=l},qe={p:M,um:Te,m:ze,r:Kn,mt:$t,mc:q,pc:xe,pbc:se,n:_t,o:e};let zt,qt;return t&&([zt,qt]=t(qe)),{render:Dn,hydrate:zt,createApp:Xi(Dn,zt)}}function An(e,t,n,s,r=!1){if(F(e)){e.forEach((y,O)=>An(y,t&&(F(t)?t[O]:t),n,s,r));return}if(yn(s)&&!r)return;const i=s.shapeFlag&4?Mn(s.component)||s.component.proxy:s.el,o=r?null:i,{i:f,r:u}=e,a=t&&t.r,m=f.refs===j?f.refs={}:f.refs,w=f.setupState;if(a!=null&&a!==u&&(V(a)?(m[a]=null,R(w,a)&&(w[a]=null)):Q(a)&&(a.value=null)),V(u)){const y=()=>{m[u]=o,R(w,u)&&(w[u]=o)};o?(y.id=-1,ee(y,n)):y()}else if(Q(u)){const y=()=>{u.value=o};o?(y.id=-1,ee(y,n)):y()}else I(u)&&Me(u,f,12,[o,m])}function me(e,t,n,s=null){ce(e,t,7,[n,s])}function Js(e,t,n=!1){const s=e.children,r=t.children;if(F(s)&&F(r))for(let i=0;i<s.length;i++){const o=s[i];let f=r[i];f.shapeFlag&1&&!f.dynamicChildren&&((f.patchFlag<=0||f.patchFlag===32)&&(f=r[i]=Ie(r[i]),f.el=o.el),n||Js(o,f))}}function Gi(e){const t=e.slice(),n=[0];let s,r,i,o,f;const u=e.length;for(s=0;s<u;s++){const a=e[s];if(a!==0){if(r=n[n.length-1],e[r]<a){t[s]=r,n.push(s);continue}for(i=0,o=n.length-1;i<o;)f=i+o>>1,e[n[f]]<a?i=f+1:o=f;a<e[n[i]]&&(i>0&&(t[s]=n[i-1]),n[i]=s)}}for(i=n.length,o=n[i-1];i-- >0;)n[i]=o,o=t[o];return n}const eo=e=>e.__isTeleport,to=Symbol(),_e=Symbol(void 0),vn=Symbol(void 0),Oe=Symbol(void 0),On=Symbol(void 0),at=[];let Se=null;function el(e=!1){at.push(Se=e?null:[])}function no(){at.pop(),Se=at[at.length-1]||null}let Lt=1;function Ys(e){Lt+=e}function Vs(e){return e.dynamicChildren=Lt>0?Se||Je:null,no(),Lt>0&&Se&&Se.push(e),e}function tl(e,t,n,s,r,i){return Vs(Zs(e,t,n,s,r,i,!0))}function nl(e,t,n,s,r){return Vs(Fe(e,t,n,s,r,!0))}function so(e){return e?e.__v_isVNode===!0:!1}function Ke(e,t){return e.type===t.type&&e.key===t.key}const Bt="__vInternal",Xs=({key:e})=>e!=null?e:null,Ht=({ref:e})=>e!=null?V(e)||Q(e)||I(e)?{i:pe,r:e}:e:null;function Zs(e,t=null,n=null,s=0,r=null,i=e===_e?0:1,o=!1,f=!1){const u={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Xs(t),ref:t&&Ht(t),scopeId:Ts,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:s,dynamicProps:r,dynamicChildren:null,appContext:null};return f?(Fn(u,n),i&128&&e.normalize(u)):n&&(u.shapeFlag|=V(n)?8:16),Lt>0&&!o&&Se&&(u.patchFlag>0||i&6)&&u.patchFlag!==32&&Se.push(u),u}const Fe=ro;function ro(e,t=null,n=null,s=0,r=null,i=!1){if((!e||e===to)&&(e=Oe),so(e)){const f=et(e,t,!0);return n&&Fn(f,n),f}if(bo(e)&&(e=e.__vccOpts),t){t=io(t);let{class:f,style:u}=t;f&&!V(f)&&(t.class=Yt(f)),k(u)&&(bs(u)&&!F(u)&&(u=Z({},u)),t.style=Jt(u))}const o=V(e)?1:Ei(e)?128:eo(e)?64:k(e)?4:I(e)?2:0;return Zs(e,t,n,s,r,o,i,!0)}function io(e){return e?bs(e)||Bt in e?Z({},e):e:null}function et(e,t,n=!1){const{props:s,ref:r,patchFlag:i,children:o}=e,f=t?lo(s||{},t):s;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:f,key:f&&Xs(f),ref:t&&t.ref?n&&r?F(r)?r.concat(Ht(t)):[r,Ht(t)]:Ht(t):r,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:o,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==_e?i===-1?16:i|16:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&et(e.ssContent),ssFallback:e.ssFallback&&et(e.ssFallback),el:e.el,anchor:e.anchor}}function oo(e=" ",t=0){return Fe(vn,null,e,t)}function be(e){return e==null||typeof e=="boolean"?Fe(Oe):F(e)?Fe(_e,null,e.slice()):typeof e=="object"?Ie(e):Fe(vn,null,String(e))}function Ie(e){return e.el===null||e.memo?e:et(e)}function Fn(e,t){let n=0;const{shapeFlag:s}=e;if(t==null)t=null;else if(F(t))n=16;else if(typeof t=="object")if(s&(1|64)){const r=t.default;r&&(r._c&&(r._d=!1),Fn(e,r()),r._c&&(r._d=!0));return}else{n=32;const r=t._;!r&&!(Bt in t)?t._ctx=pe:r===3&&pe&&(pe.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else I(t)?(t={default:t,_ctx:pe},n=32):(t=String(t),s&64?(n=16,t=[oo(t)]):n=8);e.children=t,e.shapeFlag|=n}function lo(...e){const t={};for(let n=0;n<e.length;n++){const s=e[n];for(const r in s)if(r==="class")t.class!==s.class&&(t.class=Yt([t.class,s.class]));else if(r==="style")t.style=Jt([t.style,s.style]);else if(bt(r)){const i=t[r],o=s[r];i!==o&&(t[r]=i?[].concat(i,o):o)}else r!==""&&(t[r]=s[r])}return t}function sl(e,t,n,s){let r;const i=n&&n[s];if(F(e)||V(e)){r=new Array(e.length);for(let o=0,f=e.length;o<f;o++)r[o]=t(e[o],o,void 0,i&&i[o])}else if(typeof e=="number"){r=new Array(e);for(let o=0;o<e;o++)r[o]=t(o+1,o,void 0,i&&i[o])}else if(k(e))if(e[Symbol.iterator])r=Array.from(e,(o,f)=>t(o,f,void 0,i&&i[f]));else{const o=Object.keys(e);r=new Array(o.length);for(let f=0,u=o.length;f<u;f++){const a=o[f];r[f]=t(e[a],a,f,i&&i[f])}}else r=[];return n&&(n[s]=r),r}const In=e=>e?Qs(e)?Mn(e)||e.proxy:In(e.parent):null,jt=Z(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>In(e.parent),$root:e=>In(e.root),$emit:e=>e.emit,$options:e=>Bs(e),$forceUpdate:e=>()=>sr(e.update),$nextTick:e=>yo.bind(e.proxy),$watch:e=>Ao.bind(e)}),fo={get({_:e},t){const{ctx:n,setupState:s,data:r,props:i,accessCache:o,type:f,appContext:u}=e;let a;if(t[0]!=="$"){const O=o[t];if(O!==void 0)switch(O){case 0:return s[t];case 1:return r[t];case 3:return n[t];case 2:return i[t]}else{if(s!==j&&R(s,t))return o[t]=0,s[t];if(r!==j&&R(r,t))return o[t]=1,r[t];if((a=e.propsOptions[0])&&R(a,t))return o[t]=2,i[t];if(n!==j&&R(n,t))return o[t]=3,n[t];Cn&&(o[t]=4)}}const m=jt[t];let w,y;if(m)return t==="$attrs"&&ie(e,"get",t),m(e);if((w=f.__cssModules)&&(w=w[t]))return w;if(n!==j&&R(n,t))return o[t]=3,n[t];if(y=u.config.globalProperties,R(y,t))return y[t]},set({_:e},t,n){const{data:s,setupState:r,ctx:i}=e;if(r!==j&&R(r,t))r[t]=n;else if(s!==j&&R(s,t))s[t]=n;else if(R(e.props,t))return!1;return t[0]==="$"&&t.slice(1)in e?!1:(i[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:s,appContext:r,propsOptions:i}},o){let f;return n[o]!==void 0||e!==j&&R(e,o)||t!==j&&R(t,o)||(f=i[0])&&R(f,o)||R(s,o)||R(jt,o)||R(r.config.globalProperties,o)}},co=ks();let uo=0;function ao(e,t,n){const s=e.type,r=(t?t.appContext:e.appContext)||co,i={uid:uo++,vnode:e,type:s,parent:t,appContext:r,root:null,next:null,subTree:null,update:null,scope:new Lr(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(r.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Us(s,r),emitsOptions:Es(s,r),emit:null,emitted:null,propsDefaults:j,inheritAttrs:s.inheritAttrs,ctx:j,data:j,props:j,attrs:j,slots:j,refs:j,setupState:j,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return i.ctx={_:i},i.root=t?t.root:i,i.emit=_i.bind(null,i),e.ce&&e.ce(i),i}let X=null;const ho=()=>X||pe,tt=e=>{X=e,e.scope.on()},De=()=>{X&&X.scope.off(),X=null};function Qs(e){return e.vnode.shapeFlag&4}let Ut=!1;function po(e,t=!1){Ut=t;const{props:n,children:s}=e.vnode,r=Qs(e);zi(e,n,r,t),Ji(e,s);const i=r?go(e,t):void 0;return Ut=!1,i}function go(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=xs(new Proxy(e.ctx,fo));const{setup:s}=n;if(s){const r=e.setupContext=s.length>1?_o(e):null;tt(e),Qe();const i=Me(s,e,0,[e.props,r]);if(He(),De(),Vn(i)){if(i.then(De,De),t)return i.then(o=>{Gs(e,o,t)}).catch(o=>{St(o,e,0)});e.asyncDep=i}else Gs(e,i,t)}else tr(e,t)}function Gs(e,t,n){I(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:k(t)&&(e.setupState=ws(t)),tr(e,n)}let er;function tr(e,t,n){const s=e.type;if(!e.render){if(!t&&er&&!s.render){const r=s.template;if(r){const{isCustomElement:i,compilerOptions:o}=e.appContext.config,{delimiters:f,compilerOptions:u}=s,a=Z(Z({isCustomElement:i,delimiters:f},o),u);s.render=er(r,a)}}e.render=s.render||he}tt(e),Qe(),Si(e),He(),De()}function mo(e){return new Proxy(e.attrs,{get(t,n){return ie(e,"get","$attrs"),t[n]}})}function _o(e){const t=s=>{e.exposed=s||{}};let n;return{get attrs(){return n||(n=mo(e))},slots:e.slots,emit:e.emit,expose:t}}function Mn(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(ws(xs(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in jt)return jt[n](e)}}))}function bo(e){return I(e)&&"__vccOpts"in e}function Me(e,t,n,s){let r;try{r=s?e(...s):e()}catch(i){St(i,t,n)}return r}function ce(e,t,n,s){if(I(e)){const i=Me(e,t,n,s);return i&&Vn(i)&&i.catch(o=>{St(o,t,n)}),i}const r=[];for(let i=0;i<e.length;i++)r.push(ce(e[i],t,n,s));return r}function St(e,t,n,s=!0){const r=t?t.vnode:null;if(t){let i=t.parent;const o=t.proxy,f=n;for(;i;){const a=i.ec;if(a){for(let m=0;m<a.length;m++)if(a[m](e,o,f)===!1)return}i=i.parent}const u=t.appContext.config.errorHandler;if(u){Me(u,null,10,[e,o,f]);return}}xo(e,n,r,s)}function xo(e,t,n,s=!0){console.error(e)}let Kt=!1,Pn=!1;const oe=[];let Ee=0;const dt=[];let ht=null,nt=0;const pt=[];let Pe=null,st=0;const nr=Promise.resolve();let Rn=null,Nn=null;function yo(e){const t=Rn||nr;return e?t.then(this?e.bind(this):e):t}function Co(e){let t=Ee+1,n=oe.length;for(;t<n;){const s=t+n>>>1;gt(oe[s])<e?t=s+1:n=s}return t}function sr(e){(!oe.length||!oe.includes(e,Kt&&e.allowRecurse?Ee+1:Ee))&&e!==Nn&&(e.id==null?oe.push(e):oe.splice(Co(e.id),0,e),rr())}function rr(){!Kt&&!Pn&&(Pn=!0,Rn=nr.then(lr))}function wo(e){const t=oe.indexOf(e);t>Ee&&oe.splice(t,1)}function ir(e,t,n,s){F(e)?n.push(...e):(!t||!t.includes(e,e.allowRecurse?s+1:s))&&n.push(e),rr()}function Eo(e){ir(e,ht,dt,nt)}function To(e){ir(e,Pe,pt,st)}function Ln(e,t=null){if(dt.length){for(Nn=t,ht=[...new Set(dt)],dt.length=0,nt=0;nt<ht.length;nt++)ht[nt]();ht=null,nt=0,Nn=null,Ln(e,t)}}function or(e){if(pt.length){const t=[...new Set(pt)];if(pt.length=0,Pe){Pe.push(...t);return}for(Pe=t,Pe.sort((n,s)=>gt(n)-gt(s)),st=0;st<Pe.length;st++)Pe[st]();Pe=null,st=0}}const gt=e=>e.id==null?1/0:e.id;function lr(e){Pn=!1,Kt=!0,Ln(e),oe.sort((n,s)=>gt(n)-gt(s));const t=he;try{for(Ee=0;Ee<oe.length;Ee++){const n=oe[Ee];n&&n.active!==!1&&Me(n,null,14)}}finally{Ee=0,oe.length=0,or(),Kt=!1,Rn=null,(oe.length||dt.length||pt.length)&&lr(e)}}const fr={};function Bn(e,t,n){return cr(e,t,n)}function cr(e,t,{immediate:n,deep:s,flush:r,onTrack:i,onTrigger:o}=j){const f=X;let u,a=!1,m=!1;if(Q(e)?(u=()=>e.value,a=!!e._shallow):Ge(e)?(u=()=>e,s=!0):F(e)?(m=!0,a=e.some(Ge),u=()=>e.map(L=>{if(Q(L))return L.value;if(Ge(L))return $e(L);if(I(L))return Me(L,f,2)})):I(e)?t?u=()=>Me(e,f,2):u=()=>{if(!(f&&f.isUnmounted))return w&&w(),ce(e,f,3,[y])}:u=he,t&&s){const L=u;u=()=>$e(L())}let w,y=L=>{w=M.onStop=()=>{Me(L,f,4)}};if(Ut)return y=he,t?n&&ce(t,f,3,[u(),m?[]:void 0,y]):u(),he;let O=m?[]:fr;const U=()=>{if(!!M.active)if(t){const L=M.run();(s||a||(m?L.some((le,J)=>lt(le,O[J])):lt(L,O)))&&(w&&w(),ce(t,f,3,[L,O===fr?void 0:O,y]),O=L)}else M.run()};U.allowRecurse=!!t;let $;r==="sync"?$=U:r==="post"?$=()=>ee(U,f&&f.suspense):$=()=>{!f||f.isMounted?Eo(U):U()};const M=new rn(u,$);return t?n?U():O=M.run():r==="post"?ee(M.run.bind(M),f&&f.suspense):M.run(),()=>{M.stop(),f&&f.scope&&Jn(f.scope.effects,M)}}function Ao(e,t,n){const s=this.proxy,r=V(e)?e.includes(".")?ur(s,e):()=>s[e]:e.bind(s,s);let i;I(t)?i=t:(i=t.handler,n=t);const o=X;tt(this);const f=cr(r,i.bind(s),n);return o?tt(o):De(),f}function ur(e,t){const n=t.split(".");return()=>{let s=e;for(let r=0;r<n.length&&s;r++)s=s[n[r]];return s}}function $e(e,t){if(!k(e)||e.__v_skip||(t=t||new Set,t.has(e)))return e;if(t.add(e),Q(e))$e(e.value,t);else if(F(e))for(let n=0;n<e.length;n++)$e(e[n],t);else if(Yn(e)||Ye(e))e.forEach(n=>{$e(n,t)});else if(Zn(e))for(const n in e)$e(e[n],t);return e}const vo="3.2.20",Oo="http://www.w3.org/2000/svg",rt=typeof document!="undefined"?document:null,ar=new Map,Fo={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,s)=>{const r=t?rt.createElementNS(Oo,e):rt.createElement(e,n?{is:n}:void 0);return e==="select"&&s&&s.multiple!=null&&r.setAttribute("multiple",s.multiple),r},createText:e=>rt.createTextNode(e),createComment:e=>rt.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>rt.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},cloneNode(e){const t=e.cloneNode(!0);return"_value"in e&&(t._value=e._value),t},insertStaticContent(e,t,n,s){const r=n?n.previousSibling:t.lastChild;let i=ar.get(e);if(!i){const o=rt.createElement("template");if(o.innerHTML=s?`<svg>${e}</svg>`:e,i=o.content,s){const f=i.firstChild;for(;f.firstChild;)i.appendChild(f.firstChild);i.removeChild(f)}ar.set(e,i)}return t.insertBefore(i.cloneNode(!0),n),[r?r.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}};function Io(e,t,n){const s=e._vtc;s&&(t=(t?[t,...s]:[...s]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}function Mo(e,t,n){const s=e.style,r=s.display;if(!n)e.removeAttribute("style");else if(V(n))t!==n&&(s.cssText=n);else{for(const i in n)Hn(s,i,n[i]);if(t&&!V(t))for(const i in t)n[i]==null&&Hn(s,i,"")}"_vod"in e&&(s.display=r)}const dr=/\s*!important$/;function Hn(e,t,n){if(F(n))n.forEach(s=>Hn(e,t,s));else if(t.startsWith("--"))e.setProperty(t,n);else{const s=Po(e,t);dr.test(n)?e.setProperty(Xe(s),n.replace(dr,""),"important"):e[s]=n}}const hr=["Webkit","Moz","ms"],jn={};function Po(e,t){const n=jn[t];if(n)return n;let s=Ve(t);if(s!=="filter"&&s in e)return jn[t]=s;s=Qn(s);for(let r=0;r<hr.length;r++){const i=hr[r]+s;if(i in e)return jn[t]=i}return t}const pr="http://www.w3.org/1999/xlink";function Ro(e,t,n,s,r){if(s&&t.startsWith("xlink:"))n==null?e.removeAttributeNS(pr,t.slice(6,t.length)):e.setAttributeNS(pr,t,n);else{const i=wr(t);n==null||i&&!qn(n)?e.removeAttribute(t):e.setAttribute(t,i?"":n)}}function No(e,t,n,s,r,i,o){if(t==="innerHTML"||t==="textContent"){s&&o(s,r,i),e[t]=n==null?"":n;return}if(t==="value"&&e.tagName!=="PROGRESS"){e._value=n;const f=n==null?"":n;e.value!==f&&(e.value=f),n==null&&e.removeAttribute(t);return}if(n===""||n==null){const f=typeof e[t];if(f==="boolean"){e[t]=qn(n);return}else if(n==null&&f==="string"){e[t]="",e.removeAttribute(t);return}else if(f==="number"){try{e[t]=0}catch{}e.removeAttribute(t);return}}try{e[t]=n}catch{}}let Dt=Date.now,gr=!1;if(typeof window!="undefined"){Dt()>document.createEvent("Event").timeStamp&&(Dt=()=>performance.now());const e=navigator.userAgent.match(/firefox\/(\d+)/i);gr=!!(e&&Number(e[1])<=53)}let Un=0;const Lo=Promise.resolve(),Bo=()=>{Un=0},Ho=()=>Un||(Lo.then(Bo),Un=Dt());function jo(e,t,n,s){e.addEventListener(t,n,s)}function Uo(e,t,n,s){e.removeEventListener(t,n,s)}function So(e,t,n,s,r=null){const i=e._vei||(e._vei={}),o=i[t];if(s&&o)o.value=s;else{const[f,u]=Ko(t);if(s){const a=i[t]=Do(s,r);jo(e,f,a,u)}else o&&(Uo(e,f,o,u),i[t]=void 0)}}const mr=/(?:Once|Passive|Capture)$/;function Ko(e){let t;if(mr.test(e)){t={};let n;for(;n=e.match(mr);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}return[Xe(e.slice(2)),t]}function Do(e,t){const n=s=>{const r=s.timeStamp||Dt();(gr||r>=n.attached-1)&&ce($o(s,n.value),t,5,[s])};return n.value=e,n.attached=Ho(),n}function $o(e,t){if(F(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(s=>r=>!r._stopped&&s(r))}else return t}const _r=/^on[a-z]/,Wo=(e,t,n,s,r=!1,i,o,f,u)=>{t==="class"?Io(e,s,r):t==="style"?Mo(e,n,s):bt(t)?Vt(t)||So(e,t,n,s,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):zo(e,t,s,r))?No(e,t,s,i,o,f,u):(t==="true-value"?e._trueValue=s:t==="false-value"&&(e._falseValue=s),Ro(e,t,s,r))};function zo(e,t,n,s){return s?!!(t==="innerHTML"||t==="textContent"||t in e&&_r.test(t)&&I(n)):t==="spellcheck"||t==="draggable"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||_r.test(t)&&V(n)?!1:t in e}const qo={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String};Fi.props;const rl={beforeMount(e,{value:t},{transition:n}){e._vod=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):mt(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:s}){!t!=!n&&(s?t?(s.beforeEnter(e),mt(e,!0),s.enter(e)):s.leave(e,()=>{mt(e,!1)}):mt(e,t))},beforeUnmount(e,{value:t}){mt(e,t)}};function mt(e,t){e.style.display=t?e._vod:"none"}const ko=Z({patchProp:Wo},Fo);let br;function Jo(){return br||(br=Zi(ko))}const il=(...e)=>{const t=Jo().createApp(...e),{mount:n}=t;return t.mount=s=>{const r=Yo(s);if(!r)return;const i=t._component;!I(i)&&!i.render&&!i.template&&(i.template=r.innerHTML),r.innerHTML="";const o=n(r,!1,r instanceof SVGElement);return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),o},t};function Yo(e){return V(e)?document.querySelector(e):e}export{_e as F,mi as a,Zs as b,tl as c,Qo as d,oo as e,Zo as f,Jt as g,sl as h,nl as i,Ps as j,Fe as k,il as l,Yt as n,el as o,Xo as r,Vo as t,ai as u,rl as v,Go as w};
|
|
Binary file
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8" />
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
6
|
+
<link rel="icon" href="/favicon.ico" />
|
|
7
|
+
<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/bootstrap@3.4.1/dist/css/bootstrap.min.css">
|
|
8
|
+
<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/bootstrap@3.4.1/dist/css/bootstrap-theme.min.css">
|
|
9
|
+
<title>NodeStatus</title>
|
|
10
|
+
<script type="module" crossorigin src="/assets/index.05ea2450.js"></script>
|
|
11
|
+
<link rel="modulepreload" href="/assets/vendor.705205b2.js">
|
|
12
|
+
<link rel="stylesheet" href="/assets/index.60fde134.css">
|
|
13
|
+
</head>
|
|
14
|
+
<body>
|
|
15
|
+
<div id="app"></div>
|
|
16
|
+
|
|
17
|
+
</body>
|
|
18
|
+
</html>
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
# robots.txt generated at http://tool.chinaz.com/robots/
|
|
2
|
+
User-agent: Baiduspider
|
|
3
|
+
Disallow: /
|
|
4
|
+
User-agent: Sosospider
|
|
5
|
+
Disallow: /
|
|
6
|
+
User-agent: sogou spider
|
|
7
|
+
Disallow: /
|
|
8
|
+
User-agent: YodaoBot
|
|
9
|
+
Disallow: /
|
|
10
|
+
User-agent: Googlebot
|
|
11
|
+
Disallow: /
|
|
12
|
+
User-agent: Bingbot
|
|
13
|
+
Disallow: /
|
|
14
|
+
User-agent: Slurp
|
|
15
|
+
Disallow: /
|
|
16
|
+
User-agent: Teoma
|
|
17
|
+
Disallow: /
|
|
18
|
+
User-agent: ia_archiver
|
|
19
|
+
Disallow: /
|
|
20
|
+
User-agent: twiceler
|
|
21
|
+
Disallow: /
|
|
22
|
+
User-agent: MSNBot
|
|
23
|
+
Disallow: /
|
|
24
|
+
User-agent: Scrubby
|
|
25
|
+
Disallow: /
|
|
26
|
+
User-agent: Robozilla
|
|
27
|
+
Disallow: /
|
|
28
|
+
User-agent: Gigabot
|
|
29
|
+
Disallow: /
|
|
30
|
+
User-agent: googlebot-image
|
|
31
|
+
Disallow: /
|
|
32
|
+
User-agent: googlebot-mobile
|
|
33
|
+
Disallow: /
|
|
34
|
+
User-agent: yahoo-mmcrawler
|
|
35
|
+
Disallow: /
|
|
36
|
+
User-agent: yahoo-blogs/v3.9
|
|
37
|
+
Disallow: /
|
|
38
|
+
User-agent: psbot
|
|
39
|
+
Disallow: /
|
|
40
|
+
Disallow: /ip/
|
|
41
|
+
Disallow: /qr/
|
|
42
|
+
Disallow: /
|