hunter-mate 0.1.26 → 0.1.28
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/dist/assets/extension/background/{service-worker.20261019161523.js → service-worker.20261023013927.js} +4 -0
- package/dist/assets/extension/background/service-worker.js +4 -0
- package/dist/assets/extension/build-info.json +1 -1
- package/dist/assets/extension/content/index.js +284 -64
- package/dist/assets/extension/manifest.json +3 -3
- package/dist/assets/extension/sidepanel/index.html +1 -1
- package/dist/assets/extension/sidepanel/index.js +14 -14
- package/dist/assets/server/main.mjs +1464 -1207
- package/dist/index.js +62 -67
- package/dist/watchdog.js +49 -4
- package/dist/web/dist/404.html +1 -1
- package/dist/web/dist/_next/static/chunks/187-48dc1acca97c62ba.js +1 -0
- package/dist/web/dist/_next/static/chunks/{253-9278ce6c4d446329.js → 327-6b8f348b06e7977f.js} +1 -1
- package/dist/web/dist/_next/static/chunks/353-845111f2789c5a03.js +12 -0
- package/dist/web/dist/_next/static/chunks/587-e449469e56a2bfff.js +1 -0
- package/dist/web/dist/_next/static/chunks/{589-cc56950ae4117cdd.js → 589-5bb84ab8060e960b.js} +1 -1
- package/dist/web/dist/_next/static/chunks/603-765c4fa1ed757ca5.js +32 -0
- package/dist/web/dist/_next/static/chunks/659-3db6e9c90ee9d238.js +1 -0
- package/dist/web/dist/_next/static/chunks/{686-05b99d3674f45bf7.js → 686-5f4ee3649cce07f1.js} +1 -1
- package/dist/web/dist/_next/static/chunks/882-1bcdfd2499403efd.js +1 -0
- package/dist/web/dist/_next/static/chunks/896-9dce6a3bc525edba.js +1 -0
- package/dist/web/dist/_next/static/chunks/{935-efb30b9f6f558e3f.js → 935-12f1084f0e18c962.js} +1 -1
- package/dist/web/dist/_next/static/chunks/app/_not-found/{page-d939b40bb8878d26.js → page-46929212b0496a89.js} +1 -1
- package/dist/web/dist/_next/static/chunks/app/admin/data/{page-df1d84c14e85f294.js → page-666f99fbfee46cc9.js} +1 -1
- package/dist/web/dist/_next/static/chunks/app/auth/verify/{page-cfeb844e1b72ccaa.js → page-2da5807d6cdfdb4e.js} +1 -1
- package/dist/web/dist/_next/static/chunks/app/companies/{page-57b1ef0b12134ce0.js → page-e1e730e2dc5ad84c.js} +1 -1
- package/dist/web/dist/_next/static/chunks/app/company/admin/{page-010928306f8df0ed.js → page-02244f3f1a212c76.js} +1 -1
- package/dist/web/dist/_next/static/chunks/app/entity/{page-fa96319650d38e78.js → page-d59a8103f8107d3b.js} +1 -1
- package/dist/web/dist/_next/static/chunks/app/jobs/page-a32a17c5a6384358.js +1 -0
- package/dist/web/dist/_next/static/chunks/app/layout-1e492ed8c639edf5.js +1 -0
- package/dist/web/dist/_next/static/chunks/app/logs/{page-bcdbb3885abda5a2.js → page-badf48f4e7e32e17.js} +1 -1
- package/dist/web/dist/_next/static/chunks/app/matching/jobs/[id]/talents/{page-8aca89db1e666a49.js → page-73bca3864b8b9e44.js} +1 -1
- package/dist/web/dist/_next/static/chunks/app/matching/portraits/[id]/jobs/{page-7086f1b773e57511.js → page-477c66bee61225fa.js} +1 -1
- package/dist/web/dist/_next/static/chunks/app/{page-49fe1e8630d2237e.js → page-8ea324b366e3d374.js} +1 -1
- package/dist/web/dist/_next/static/chunks/app/parselog/{page-fcdfdd41cf1f86f7.js → page-4f5c186442feb386.js} +1 -1
- package/dist/web/dist/_next/static/chunks/app/recordings/page-0fb8cafdd2f6762c.js +1 -0
- package/dist/web/dist/_next/static/chunks/app/resource-usage/{page-7b939cf673d764e6.js → page-76be36ca978391a3.js} +1 -1
- package/dist/web/dist/_next/static/chunks/app/shared/[token]/page-6741cd1b0a4aca2e.js +1 -0
- package/dist/web/dist/_next/static/chunks/app/snapshots/[id]/agent-prompt/{page-7d4d25de2c6704e9.js → page-60ea46364a74b294.js} +1 -1
- package/dist/web/dist/_next/static/chunks/app/talents/{page-5a2caa7a503ee041.js → page-4b00d69580f49f97.js} +1 -1
- package/dist/web/dist/_next/static/chunks/app/team/insights/{page-f097b4b8578a6e5d.js → page-5385dcd363f6e0cd.js} +1 -1
- package/dist/web/dist/_next/static/chunks/webpack-9cebd25e322e2cd7.js +1 -0
- package/dist/web/dist/_next/static/css/8f3c454cab3414d0.css +3 -0
- package/dist/web/dist/admin/data.html +1 -1
- package/dist/web/dist/admin/data.txt +5 -5
- package/dist/web/dist/auth/verify.html +1 -1
- package/dist/web/dist/auth/verify.txt +5 -5
- package/dist/web/dist/companies.html +1 -1
- package/dist/web/dist/companies.txt +5 -5
- package/dist/web/dist/company/admin.html +1 -1
- package/dist/web/dist/company/admin.txt +5 -5
- package/dist/web/dist/entity.html +1 -1
- package/dist/web/dist/entity.txt +5 -5
- package/dist/web/dist/index.html +1 -1
- package/dist/web/dist/index.txt +5 -5
- package/dist/web/dist/jobs.html +1 -1
- package/dist/web/dist/jobs.txt +5 -5
- package/dist/web/dist/logs.html +1 -1
- package/dist/web/dist/logs.txt +5 -5
- package/dist/web/dist/matching/jobs/placeholder/talents.html +1 -1
- package/dist/web/dist/matching/jobs/placeholder/talents.txt +5 -5
- package/dist/web/dist/matching/portraits/placeholder/jobs.html +1 -1
- package/dist/web/dist/matching/portraits/placeholder/jobs.txt +5 -5
- package/dist/web/dist/parselog.html +1 -1
- package/dist/web/dist/parselog.txt +5 -5
- package/dist/web/dist/recordings.html +1 -1
- package/dist/web/dist/recordings.txt +5 -5
- package/dist/web/dist/resource-usage.html +1 -1
- package/dist/web/dist/resource-usage.txt +5 -5
- package/dist/web/dist/shared/placeholder.html +1 -1
- package/dist/web/dist/shared/placeholder.txt +5 -5
- package/dist/web/dist/snapshots/placeholder/agent-prompt.html +1 -1
- package/dist/web/dist/snapshots/placeholder/agent-prompt.txt +5 -5
- package/dist/web/dist/talents.html +1 -1
- package/dist/web/dist/talents.txt +5 -5
- package/dist/web/dist/team/insights.html +1 -1
- package/dist/web/dist/team/insights.txt +5 -5
- package/package.json +1 -4
- package/dist/web/dist/_next/static/chunks/166.b263e636ff66212f.js +0 -1
- package/dist/web/dist/_next/static/chunks/187-f067914dcd1330c2.js +0 -32
- package/dist/web/dist/_next/static/chunks/659-122057f46f941df7.js +0 -1
- package/dist/web/dist/_next/static/chunks/728-cffab7e836020551.js +0 -12
- package/dist/web/dist/_next/static/chunks/app/jobs/page-5ba0bdc881b98d42.js +0 -1
- package/dist/web/dist/_next/static/chunks/app/layout-bd9a7e5e4474b692.js +0 -1
- package/dist/web/dist/_next/static/chunks/app/recordings/page-7ba5d89391c9dace.js +0 -1
- package/dist/web/dist/_next/static/chunks/app/shared/[token]/page-df87328c52f862f1.js +0 -1
- package/dist/web/dist/_next/static/chunks/webpack-54e74ccc9e9451ee.js +0 -1
- package/dist/web/dist/_next/static/css/a8f0a381a2372781.css +0 -3
- package/dist/web/dist/_next/static/css/f60d210841fab76b.css +0 -1
- /package/dist/web/dist/_next/static/{m0UGHVTGvtvb9mn4-uzJJ → cC7rsTCys5_15wJ8BiPDm}/_buildManifest.js +0 -0
- /package/dist/web/dist/_next/static/{m0UGHVTGvtvb9mn4-uzJJ → cC7rsTCys5_15wJ8BiPDm}/_ssgManifest.js +0 -0
package/dist/index.js
CHANGED
|
@@ -4974,7 +4974,7 @@ var require_source = __commonJS({
|
|
|
4974
4974
|
}
|
|
4975
4975
|
});
|
|
4976
4976
|
|
|
4977
|
-
// ../../node_modules/.pnpm/@chromepilot+kit@0.1.
|
|
4977
|
+
// ../../node_modules/.pnpm/@chromepilot+kit@0.1.13_@sentry+node@10.70.0_@opentelemetry+core@2.10.0_@opentelemetry+api@1.9.1__/node_modules/@chromepilot/kit/dist/updater.js
|
|
4978
4978
|
import fs from "node:fs";
|
|
4979
4979
|
import path from "node:path";
|
|
4980
4980
|
import { spawnSync } from "node:child_process";
|
|
@@ -5100,13 +5100,13 @@ function createCliUpdater(opts) {
|
|
|
5100
5100
|
}
|
|
5101
5101
|
var LAST_CHECK_BASENAME, DEFAULT_INTERVAL_MS;
|
|
5102
5102
|
var init_updater = __esm({
|
|
5103
|
-
"../../node_modules/.pnpm/@chromepilot+kit@0.1.
|
|
5103
|
+
"../../node_modules/.pnpm/@chromepilot+kit@0.1.13_@sentry+node@10.70.0_@opentelemetry+core@2.10.0_@opentelemetry+api@1.9.1__/node_modules/@chromepilot/kit/dist/updater.js"() {
|
|
5104
5104
|
LAST_CHECK_BASENAME = ".last-cli-update-check";
|
|
5105
5105
|
DEFAULT_INTERVAL_MS = 60 * 60 * 1e3;
|
|
5106
5106
|
}
|
|
5107
5107
|
});
|
|
5108
5108
|
|
|
5109
|
-
// ../../node_modules/.pnpm/@chromepilot+kit@0.1.
|
|
5109
|
+
// ../../node_modules/.pnpm/@chromepilot+kit@0.1.13_@sentry+node@10.70.0_@opentelemetry+core@2.10.0_@opentelemetry+api@1.9.1__/node_modules/@chromepilot/kit/dist/native-check.js
|
|
5110
5110
|
import { createRequire } from "node:module";
|
|
5111
5111
|
import path2 from "node:path";
|
|
5112
5112
|
function abiToNodeLabel(abi) {
|
|
@@ -5180,7 +5180,7 @@ function createNativeChecker(opts) {
|
|
|
5180
5180
|
}
|
|
5181
5181
|
var ABI_NODE_MAP;
|
|
5182
5182
|
var init_native_check = __esm({
|
|
5183
|
-
"../../node_modules/.pnpm/@chromepilot+kit@0.1.
|
|
5183
|
+
"../../node_modules/.pnpm/@chromepilot+kit@0.1.13_@sentry+node@10.70.0_@opentelemetry+core@2.10.0_@opentelemetry+api@1.9.1__/node_modules/@chromepilot/kit/dist/native-check.js"() {
|
|
5184
5184
|
ABI_NODE_MAP = {
|
|
5185
5185
|
127: "Node 22",
|
|
5186
5186
|
131: "Node 23",
|
|
@@ -45211,7 +45211,7 @@ var init_esm8 = __esm({
|
|
|
45211
45211
|
}
|
|
45212
45212
|
});
|
|
45213
45213
|
|
|
45214
|
-
// ../../node_modules/.pnpm/@chromepilot+kit@0.1.
|
|
45214
|
+
// ../../node_modules/.pnpm/@chromepilot+kit@0.1.13_@sentry+node@10.70.0_@opentelemetry+core@2.10.0_@opentelemetry+api@1.9.1__/node_modules/@chromepilot/kit/dist/sentry.js
|
|
45215
45215
|
function isLocalDsn(dsn) {
|
|
45216
45216
|
try {
|
|
45217
45217
|
const url2 = new URL(dsn);
|
|
@@ -45263,18 +45263,18 @@ function initSentryFromEnv(envPrefix, o = {}) {
|
|
|
45263
45263
|
});
|
|
45264
45264
|
}
|
|
45265
45265
|
var init_sentry = __esm({
|
|
45266
|
-
"../../node_modules/.pnpm/@chromepilot+kit@0.1.
|
|
45266
|
+
"../../node_modules/.pnpm/@chromepilot+kit@0.1.13_@sentry+node@10.70.0_@opentelemetry+core@2.10.0_@opentelemetry+api@1.9.1__/node_modules/@chromepilot/kit/dist/sentry.js"() {
|
|
45267
45267
|
init_esm8();
|
|
45268
45268
|
}
|
|
45269
45269
|
});
|
|
45270
45270
|
|
|
45271
|
-
// ../../node_modules/.pnpm/@chromepilot+kit@0.1.
|
|
45271
|
+
// ../../node_modules/.pnpm/@chromepilot+kit@0.1.13_@sentry+node@10.70.0_@opentelemetry+core@2.10.0_@opentelemetry+api@1.9.1__/node_modules/@chromepilot/kit/dist/redactor.js
|
|
45272
45272
|
var init_redactor = __esm({
|
|
45273
|
-
"../../node_modules/.pnpm/@chromepilot+kit@0.1.
|
|
45273
|
+
"../../node_modules/.pnpm/@chromepilot+kit@0.1.13_@sentry+node@10.70.0_@opentelemetry+core@2.10.0_@opentelemetry+api@1.9.1__/node_modules/@chromepilot/kit/dist/redactor.js"() {
|
|
45274
45274
|
}
|
|
45275
45275
|
});
|
|
45276
45276
|
|
|
45277
|
-
// ../../node_modules/.pnpm/@chromepilot+kit@0.1.
|
|
45277
|
+
// ../../node_modules/.pnpm/@chromepilot+kit@0.1.13_@sentry+node@10.70.0_@opentelemetry+core@2.10.0_@opentelemetry+api@1.9.1__/node_modules/@chromepilot/kit/dist/config.js
|
|
45278
45278
|
import fs2 from "node:fs";
|
|
45279
45279
|
import path3 from "node:path";
|
|
45280
45280
|
function createJsonConfigStore(opts) {
|
|
@@ -45306,51 +45306,58 @@ function createJsonConfigStore(opts) {
|
|
|
45306
45306
|
return store2;
|
|
45307
45307
|
}
|
|
45308
45308
|
var init_config = __esm({
|
|
45309
|
-
"../../node_modules/.pnpm/@chromepilot+kit@0.1.
|
|
45309
|
+
"../../node_modules/.pnpm/@chromepilot+kit@0.1.13_@sentry+node@10.70.0_@opentelemetry+core@2.10.0_@opentelemetry+api@1.9.1__/node_modules/@chromepilot/kit/dist/config.js"() {
|
|
45310
45310
|
}
|
|
45311
45311
|
});
|
|
45312
45312
|
|
|
45313
|
-
// ../../node_modules/.pnpm/@chromepilot+kit@0.1.
|
|
45313
|
+
// ../../node_modules/.pnpm/@chromepilot+kit@0.1.13_@sentry+node@10.70.0_@opentelemetry+core@2.10.0_@opentelemetry+api@1.9.1__/node_modules/@chromepilot/kit/dist/protocol.js
|
|
45314
45314
|
var init_protocol = __esm({
|
|
45315
|
-
"../../node_modules/.pnpm/@chromepilot+kit@0.1.
|
|
45315
|
+
"../../node_modules/.pnpm/@chromepilot+kit@0.1.13_@sentry+node@10.70.0_@opentelemetry+core@2.10.0_@opentelemetry+api@1.9.1__/node_modules/@chromepilot/kit/dist/protocol.js"() {
|
|
45316
45316
|
}
|
|
45317
45317
|
});
|
|
45318
45318
|
|
|
45319
|
-
// ../../node_modules/.pnpm/@chromepilot+kit@0.1.
|
|
45319
|
+
// ../../node_modules/.pnpm/@chromepilot+kit@0.1.13_@sentry+node@10.70.0_@opentelemetry+core@2.10.0_@opentelemetry+api@1.9.1__/node_modules/@chromepilot/kit/dist/url-key.js
|
|
45320
|
+
var init_url_key = __esm({
|
|
45321
|
+
"../../node_modules/.pnpm/@chromepilot+kit@0.1.13_@sentry+node@10.70.0_@opentelemetry+core@2.10.0_@opentelemetry+api@1.9.1__/node_modules/@chromepilot/kit/dist/url-key.js"() {
|
|
45322
|
+
}
|
|
45323
|
+
});
|
|
45324
|
+
|
|
45325
|
+
// ../../node_modules/.pnpm/@chromepilot+kit@0.1.13_@sentry+node@10.70.0_@opentelemetry+core@2.10.0_@opentelemetry+api@1.9.1__/node_modules/@chromepilot/kit/dist/usagesink.js
|
|
45320
45326
|
var init_usagesink = __esm({
|
|
45321
|
-
"../../node_modules/.pnpm/@chromepilot+kit@0.1.
|
|
45327
|
+
"../../node_modules/.pnpm/@chromepilot+kit@0.1.13_@sentry+node@10.70.0_@opentelemetry+core@2.10.0_@opentelemetry+api@1.9.1__/node_modules/@chromepilot/kit/dist/usagesink.js"() {
|
|
45322
45328
|
}
|
|
45323
45329
|
});
|
|
45324
45330
|
|
|
45325
|
-
// ../../node_modules/.pnpm/@chromepilot+kit@0.1.
|
|
45331
|
+
// ../../node_modules/.pnpm/@chromepilot+kit@0.1.13_@sentry+node@10.70.0_@opentelemetry+core@2.10.0_@opentelemetry+api@1.9.1__/node_modules/@chromepilot/kit/dist/logsink.js
|
|
45326
45332
|
var init_logsink = __esm({
|
|
45327
|
-
"../../node_modules/.pnpm/@chromepilot+kit@0.1.
|
|
45333
|
+
"../../node_modules/.pnpm/@chromepilot+kit@0.1.13_@sentry+node@10.70.0_@opentelemetry+core@2.10.0_@opentelemetry+api@1.9.1__/node_modules/@chromepilot/kit/dist/logsink.js"() {
|
|
45328
45334
|
}
|
|
45329
45335
|
});
|
|
45330
45336
|
|
|
45331
|
-
// ../../node_modules/.pnpm/@chromepilot+kit@0.1.
|
|
45337
|
+
// ../../node_modules/.pnpm/@chromepilot+kit@0.1.13_@sentry+node@10.70.0_@opentelemetry+core@2.10.0_@opentelemetry+api@1.9.1__/node_modules/@chromepilot/kit/dist/deferred-reload.js
|
|
45332
45338
|
var DEFAULT_PENDING_RELOAD_TTL_MS;
|
|
45333
45339
|
var init_deferred_reload = __esm({
|
|
45334
|
-
"../../node_modules/.pnpm/@chromepilot+kit@0.1.
|
|
45340
|
+
"../../node_modules/.pnpm/@chromepilot+kit@0.1.13_@sentry+node@10.70.0_@opentelemetry+core@2.10.0_@opentelemetry+api@1.9.1__/node_modules/@chromepilot/kit/dist/deferred-reload.js"() {
|
|
45335
45341
|
DEFAULT_PENDING_RELOAD_TTL_MS = 30 * 6e4;
|
|
45336
45342
|
}
|
|
45337
45343
|
});
|
|
45338
45344
|
|
|
45339
|
-
// ../../node_modules/.pnpm/@chromepilot+kit@0.1.
|
|
45345
|
+
// ../../node_modules/.pnpm/@chromepilot+kit@0.1.13_@sentry+node@10.70.0_@opentelemetry+core@2.10.0_@opentelemetry+api@1.9.1__/node_modules/@chromepilot/kit/dist/connection.js
|
|
45340
45346
|
var init_connection = __esm({
|
|
45341
|
-
"../../node_modules/.pnpm/@chromepilot+kit@0.1.
|
|
45347
|
+
"../../node_modules/.pnpm/@chromepilot+kit@0.1.13_@sentry+node@10.70.0_@opentelemetry+core@2.10.0_@opentelemetry+api@1.9.1__/node_modules/@chromepilot/kit/dist/connection.js"() {
|
|
45342
45348
|
}
|
|
45343
45349
|
});
|
|
45344
45350
|
|
|
45345
|
-
// ../../node_modules/.pnpm/@chromepilot+kit@0.1.
|
|
45351
|
+
// ../../node_modules/.pnpm/@chromepilot+kit@0.1.13_@sentry+node@10.70.0_@opentelemetry+core@2.10.0_@opentelemetry+api@1.9.1__/node_modules/@chromepilot/kit/dist/index.js
|
|
45346
45352
|
var init_dist = __esm({
|
|
45347
|
-
"../../node_modules/.pnpm/@chromepilot+kit@0.1.
|
|
45353
|
+
"../../node_modules/.pnpm/@chromepilot+kit@0.1.13_@sentry+node@10.70.0_@opentelemetry+core@2.10.0_@opentelemetry+api@1.9.1__/node_modules/@chromepilot/kit/dist/index.js"() {
|
|
45348
45354
|
init_updater();
|
|
45349
45355
|
init_native_check();
|
|
45350
45356
|
init_sentry();
|
|
45351
45357
|
init_redactor();
|
|
45352
45358
|
init_config();
|
|
45353
45359
|
init_protocol();
|
|
45360
|
+
init_url_key();
|
|
45354
45361
|
init_usagesink();
|
|
45355
45362
|
init_logsink();
|
|
45356
45363
|
init_deferred_reload();
|
|
@@ -62809,26 +62816,8 @@ function fallbackDelete() {
|
|
|
62809
62816
|
fs4.unlinkSync(tokenFile());
|
|
62810
62817
|
}
|
|
62811
62818
|
}
|
|
62812
|
-
async function getKeytar() {
|
|
62813
|
-
if (process.platform === "linux") return null;
|
|
62814
|
-
try {
|
|
62815
|
-
const mod = await import("keytar");
|
|
62816
|
-
return mod.setPassword ? mod : mod.default || null;
|
|
62817
|
-
} catch {
|
|
62818
|
-
return null;
|
|
62819
|
-
}
|
|
62820
|
-
}
|
|
62821
62819
|
async function saveToken(token, issuer = "local") {
|
|
62822
62820
|
invalidateSessionCache();
|
|
62823
|
-
const payload = JSON.stringify({ token, issuer });
|
|
62824
|
-
const keytar = await getKeytar();
|
|
62825
|
-
if (keytar) {
|
|
62826
|
-
try {
|
|
62827
|
-
await keytar.setPassword(SERVICE, ACCOUNT, payload);
|
|
62828
|
-
return;
|
|
62829
|
-
} catch {
|
|
62830
|
-
}
|
|
62831
|
-
}
|
|
62832
62821
|
fallbackSave({ token, issuer });
|
|
62833
62822
|
}
|
|
62834
62823
|
async function getToken() {
|
|
@@ -62893,35 +62882,18 @@ async function getTokenInfo() {
|
|
|
62893
62882
|
return (await getSessionStatus()).info;
|
|
62894
62883
|
}
|
|
62895
62884
|
async function getTokenInfoLocal() {
|
|
62896
|
-
const keytar = await getKeytar();
|
|
62897
|
-
if (keytar) {
|
|
62898
|
-
try {
|
|
62899
|
-
const raw = await keytar.getPassword(SERVICE, ACCOUNT);
|
|
62900
|
-
if (raw) return parseStored(raw);
|
|
62901
|
-
} catch {
|
|
62902
|
-
}
|
|
62903
|
-
}
|
|
62904
62885
|
return fallbackGet();
|
|
62905
62886
|
}
|
|
62906
62887
|
async function deleteToken() {
|
|
62907
62888
|
invalidateSessionCache();
|
|
62908
|
-
const keytar = await getKeytar();
|
|
62909
|
-
if (keytar) {
|
|
62910
|
-
try {
|
|
62911
|
-
await keytar.deletePassword(SERVICE, ACCOUNT);
|
|
62912
|
-
} catch {
|
|
62913
|
-
}
|
|
62914
|
-
}
|
|
62915
62889
|
fallbackDelete();
|
|
62916
62890
|
}
|
|
62917
|
-
var
|
|
62891
|
+
var sessionCache, SESSION_CACHE_TTL_MS;
|
|
62918
62892
|
var init_keychain = __esm({
|
|
62919
62893
|
"src/keychain.ts"() {
|
|
62920
62894
|
"use strict";
|
|
62921
62895
|
init_axios2();
|
|
62922
62896
|
init_config2();
|
|
62923
|
-
SERVICE = "hunter-mate";
|
|
62924
|
-
ACCOUNT = "user";
|
|
62925
62897
|
sessionCache = null;
|
|
62926
62898
|
SESSION_CACHE_TTL_MS = 6e4;
|
|
62927
62899
|
}
|
|
@@ -63690,7 +63662,19 @@ function processCmdline(pid) {
|
|
|
63690
63662
|
["process", "where", `processId=${pid}`, "get", "CommandLine"],
|
|
63691
63663
|
{ encoding: "utf-8" }
|
|
63692
63664
|
);
|
|
63693
|
-
|
|
63665
|
+
const parsed = (r2.stdout ?? "").replace(/^\s*CommandLine\s*/i, "").trim();
|
|
63666
|
+
if (r2.status === 0 && parsed) return parsed;
|
|
63667
|
+
const ps = spawnSync2(
|
|
63668
|
+
"powershell",
|
|
63669
|
+
[
|
|
63670
|
+
"-NoProfile",
|
|
63671
|
+
"-NonInteractive",
|
|
63672
|
+
"-Command",
|
|
63673
|
+
`(Get-CimInstance Win32_Process -Filter "ProcessId=${pid}").CommandLine`
|
|
63674
|
+
],
|
|
63675
|
+
{ encoding: "utf-8" }
|
|
63676
|
+
);
|
|
63677
|
+
return ps.status === 0 ? (ps.stdout ?? "").trim() : "";
|
|
63694
63678
|
}
|
|
63695
63679
|
const r = spawnSync2("ps", ["-p", String(pid), "-o", "command="], { encoding: "utf-8" });
|
|
63696
63680
|
return (r.stdout ?? "").trim();
|
|
@@ -63706,8 +63690,22 @@ function parentPid(pid) {
|
|
|
63706
63690
|
["process", "where", `processId=${pid}`, "get", "ParentProcessId"],
|
|
63707
63691
|
{ encoding: "utf-8" }
|
|
63708
63692
|
);
|
|
63709
|
-
if (r2.status
|
|
63710
|
-
|
|
63693
|
+
if (r2.status === 0) {
|
|
63694
|
+
const ppid3 = Number((r2.stdout ?? "").trim().split(/\s+/).pop());
|
|
63695
|
+
if (Number.isInteger(ppid3) && ppid3 > 0) return ppid3;
|
|
63696
|
+
}
|
|
63697
|
+
const ps = spawnSync2(
|
|
63698
|
+
"powershell",
|
|
63699
|
+
[
|
|
63700
|
+
"-NoProfile",
|
|
63701
|
+
"-NonInteractive",
|
|
63702
|
+
"-Command",
|
|
63703
|
+
`(Get-CimInstance Win32_Process -Filter "ProcessId=${pid}").ParentProcessId`
|
|
63704
|
+
],
|
|
63705
|
+
{ encoding: "utf-8" }
|
|
63706
|
+
);
|
|
63707
|
+
if (ps.status !== 0) return null;
|
|
63708
|
+
const ppid2 = Number((ps.stdout ?? "").trim());
|
|
63711
63709
|
return Number.isInteger(ppid2) && ppid2 > 0 ? ppid2 : null;
|
|
63712
63710
|
}
|
|
63713
63711
|
const r = spawnSync2("ps", ["-p", String(pid), "-o", "ppid="], { encoding: "utf-8" });
|
|
@@ -71736,7 +71734,7 @@ init_axios2();
|
|
|
71736
71734
|
import * as fs23 from "fs";
|
|
71737
71735
|
import * as path25 from "path";
|
|
71738
71736
|
|
|
71739
|
-
// ../../node_modules/.pnpm/@chromepilot+kit@0.1.
|
|
71737
|
+
// ../../node_modules/.pnpm/@chromepilot+kit@0.1.13_@sentry+node@10.70.0_@opentelemetry+core@2.10.0_@opentelemetry+api@1.9.1__/node_modules/@chromepilot/kit/dist/diagnose.js
|
|
71740
71738
|
import { execFile as execFile2 } from "node:child_process";
|
|
71741
71739
|
function isChromeRunning(platform3 = process.platform) {
|
|
71742
71740
|
if (platform3 !== "darwin")
|
|
@@ -72139,7 +72137,7 @@ ${B3.bold}${B3.cyan}\u256D\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500
|
|
|
72139
72137
|
}
|
|
72140
72138
|
}
|
|
72141
72139
|
} catch (e) {
|
|
72142
|
-
checks.push({ key: "auth", status: "skip", detail: `\u8DF3\u8FC7(
|
|
72140
|
+
checks.push({ key: "auth", status: "skip", detail: `\u8DF3\u8FC7(\u672C\u5730\u7F13\u5B58\u8BFB\u53D6\u5931\u8D25): ${e.message}` });
|
|
72143
72141
|
}
|
|
72144
72142
|
let data = null;
|
|
72145
72143
|
if (serverUp) {
|
|
@@ -73776,7 +73774,7 @@ function installLocalProxyBypass() {
|
|
|
73776
73774
|
// package.json
|
|
73777
73775
|
var package_default = {
|
|
73778
73776
|
name: "hunter-mate",
|
|
73779
|
-
version: "0.1.
|
|
73777
|
+
version: "0.1.28",
|
|
73780
73778
|
type: "module",
|
|
73781
73779
|
description: "HiredChina \u730E\u5934 Agent \u6570\u636E\u52A9\u624B CLI:\u4EBA\u624D\u5E93/\u5BA2\u6237/\u804C\u4F4D\u6570\u636E\u8BBF\u95EE,\u6D4F\u89C8\u5668\u5F55\u5236\u89E3\u6790\u7B80\u5386,server/\u6269\u5C55\u4E00\u81F4\u6027\u81EA\u6108",
|
|
73782
73780
|
license: "MIT",
|
|
@@ -73847,9 +73845,6 @@ var package_default = {
|
|
|
73847
73845
|
uuid: "^9.0.0",
|
|
73848
73846
|
vitest: "^1.3.0",
|
|
73849
73847
|
ws: "^8.21.3"
|
|
73850
|
-
},
|
|
73851
|
-
optionalDependencies: {
|
|
73852
|
-
keytar: "^7.9.0"
|
|
73853
73848
|
}
|
|
73854
73849
|
};
|
|
73855
73850
|
|
package/dist/watchdog.js
CHANGED
|
@@ -35,10 +35,10 @@ function isMainModule(metaUrl) {
|
|
|
35
35
|
// src/config.ts
|
|
36
36
|
import * as path3 from "path";
|
|
37
37
|
|
|
38
|
-
// ../../node_modules/.pnpm/@chromepilot+kit@0.1.
|
|
38
|
+
// ../../node_modules/.pnpm/@chromepilot+kit@0.1.13_@sentry+node@10.70.0_@opentelemetry+core@2.10.0_@opentelemetry+api@1.9.1__/node_modules/@chromepilot/kit/dist/updater.js
|
|
39
39
|
var DEFAULT_INTERVAL_MS = 60 * 60 * 1e3;
|
|
40
40
|
|
|
41
|
-
// ../../node_modules/.pnpm/@chromepilot+kit@0.1.
|
|
41
|
+
// ../../node_modules/.pnpm/@chromepilot+kit@0.1.13_@sentry+node@10.70.0_@opentelemetry+core@2.10.0_@opentelemetry+api@1.9.1__/node_modules/@chromepilot/kit/dist/config.js
|
|
42
42
|
import fs2 from "node:fs";
|
|
43
43
|
import path2 from "node:path";
|
|
44
44
|
function createJsonConfigStore(opts) {
|
|
@@ -70,7 +70,7 @@ function createJsonConfigStore(opts) {
|
|
|
70
70
|
return store2;
|
|
71
71
|
}
|
|
72
72
|
|
|
73
|
-
// ../../node_modules/.pnpm/@chromepilot+kit@0.1.
|
|
73
|
+
// ../../node_modules/.pnpm/@chromepilot+kit@0.1.13_@sentry+node@10.70.0_@opentelemetry+core@2.10.0_@opentelemetry+api@1.9.1__/node_modules/@chromepilot/kit/dist/deferred-reload.js
|
|
74
74
|
var DEFAULT_PENDING_RELOAD_TTL_MS = 30 * 6e4;
|
|
75
75
|
|
|
76
76
|
// src/config.ts
|
|
@@ -113,9 +113,12 @@ var LivenessProbe = class {
|
|
|
113
113
|
timer = null;
|
|
114
114
|
/** 启动宽限截止:spawn 后这段时间内探测一律跳过(高负载机器 boot 可达 2min+,2026-10-19 实证) */
|
|
115
115
|
graceUntilMs = 0;
|
|
116
|
+
/** spawn 时刻:maxBootMs 总窗口从这里起算 */
|
|
117
|
+
spawnMs = 0;
|
|
116
118
|
/** 每次拉起子进程时调用:重设启动宽限并清零失败计数 */
|
|
117
119
|
markBootStart(graceMs) {
|
|
118
120
|
this.graceUntilMs = Date.now() + graceMs;
|
|
121
|
+
this.spawnMs = Date.now();
|
|
119
122
|
this.failCount = 0;
|
|
120
123
|
}
|
|
121
124
|
async doCheck() {
|
|
@@ -136,13 +139,21 @@ var LivenessProbe = class {
|
|
|
136
139
|
await check(this.opts.healthUrl);
|
|
137
140
|
}
|
|
138
141
|
/** 立即探测一次并更新失败计数;达到阈值时回调 onFailure 并清零。
|
|
139
|
-
* 启动宽限期内直接跳过(子进程尚在 boot,探测无意义且会误判假活)。
|
|
142
|
+
* 启动宽限期内直接跳过(子进程尚在 boot,探测无意义且会误判假活)。
|
|
143
|
+
* boot 窗口内日志仍在推进(isBootProgressing)时不计失败;
|
|
144
|
+
* 超过 maxBootMs 后恢复计数,防"永远 boot 中"的僵尸态漏检。 */
|
|
140
145
|
async checkNow() {
|
|
141
146
|
if (Date.now() < this.graceUntilMs) return;
|
|
142
147
|
try {
|
|
143
148
|
await this.doCheck();
|
|
144
149
|
this.failCount = 0;
|
|
150
|
+
this.opts.onSuccess?.();
|
|
145
151
|
} catch (err) {
|
|
152
|
+
const maxBootMs = this.opts.maxBootMs ?? Number.POSITIVE_INFINITY;
|
|
153
|
+
if (this.spawnMs > 0 && Date.now() - this.spawnMs < maxBootMs && this.opts.isBootProgressing?.()) {
|
|
154
|
+
this.failCount = 0;
|
|
155
|
+
return;
|
|
156
|
+
}
|
|
146
157
|
this.failCount++;
|
|
147
158
|
if (this.failCount >= this.opts.threshold) {
|
|
148
159
|
const lastError = err.message;
|
|
@@ -247,6 +258,8 @@ async function runWatchdog() {
|
|
|
247
258
|
const nodeArgs = parseNodeArgs(process.env.HM_SERVER_NODE_ARGS);
|
|
248
259
|
const maxRestartDelayMs = Number(process.env.HM_WATCHDOG_MAX_DELAY_MS || "30000");
|
|
249
260
|
const bootGraceMs = Number(process.env.HM_WATCHDOG_BOOT_GRACE_MS || "150000");
|
|
261
|
+
const maxBootMs = Number(process.env.HM_WATCHDOG_MAX_BOOT_MS || "600000");
|
|
262
|
+
const maxConsecutiveBoots = Number(process.env.HM_WATCHDOG_MAX_CONSECUTIVE_BOOTS || "8");
|
|
250
263
|
if (!entry || !logFile) {
|
|
251
264
|
console.error("[HunterMate watchdog] HM_SERVER_ENTRY and HM_SERVER_LOG are required");
|
|
252
265
|
process.exit(1);
|
|
@@ -267,13 +280,31 @@ async function runWatchdog() {
|
|
|
267
280
|
}
|
|
268
281
|
let child = null;
|
|
269
282
|
let restartCount = 0;
|
|
283
|
+
let consecutiveBoots = 0;
|
|
270
284
|
let restartTimer = null;
|
|
271
285
|
let stopping = false;
|
|
272
286
|
let crashReason;
|
|
287
|
+
let lastLogMtimeMs = 0;
|
|
273
288
|
const probe = new LivenessProbe({
|
|
274
289
|
healthUrl,
|
|
275
290
|
intervalMs: Number(process.env.HM_WATCHDOG_PROBE_INTERVAL_MS || 3e4),
|
|
276
291
|
threshold: Number(process.env.HM_WATCHDOG_PROBE_THRESHOLD || 3),
|
|
292
|
+
onSuccess: () => {
|
|
293
|
+
restartCount = 0;
|
|
294
|
+
consecutiveBoots = 0;
|
|
295
|
+
},
|
|
296
|
+
isBootProgressing: () => {
|
|
297
|
+
try {
|
|
298
|
+
const m = fs3.statSync(logFile).mtimeMs;
|
|
299
|
+
if (m > lastLogMtimeMs) {
|
|
300
|
+
lastLogMtimeMs = m;
|
|
301
|
+
return true;
|
|
302
|
+
}
|
|
303
|
+
} catch {
|
|
304
|
+
}
|
|
305
|
+
return false;
|
|
306
|
+
},
|
|
307
|
+
maxBootMs,
|
|
277
308
|
onFailure: (lastError) => {
|
|
278
309
|
if (stopping || !child || child.killed || child.exitCode !== null) return;
|
|
279
310
|
console.error(`[HunterMate watchdog] server unresponsive (last error: ${lastError}), killing for restart`);
|
|
@@ -300,6 +331,12 @@ async function runWatchdog() {
|
|
|
300
331
|
windowsHide: true
|
|
301
332
|
});
|
|
302
333
|
if (child.pid) writePid(SERVER_PID_FILE(), child.pid);
|
|
334
|
+
try {
|
|
335
|
+
lastLogMtimeMs = fs3.statSync(logFile).mtimeMs;
|
|
336
|
+
} catch {
|
|
337
|
+
lastLogMtimeMs = 0;
|
|
338
|
+
}
|
|
339
|
+
consecutiveBoots++;
|
|
303
340
|
probe.markBootStart(bootGraceMs);
|
|
304
341
|
probe.start();
|
|
305
342
|
child.on("exit", (code, signal) => {
|
|
@@ -317,6 +354,14 @@ async function runWatchdog() {
|
|
|
317
354
|
console.log(`[HunterMate watchdog] child exited (code=${code}) but ${healthUrl} healthy (port adopted by another server), stopping restart loop`);
|
|
318
355
|
process.exit(0);
|
|
319
356
|
}
|
|
357
|
+
if (consecutiveBoots >= maxConsecutiveBoots) {
|
|
358
|
+
logCrash(code ?? null, signal, restartCount, `circuit breaker: ${consecutiveBoots} consecutive boots without healthy /health, giving up`);
|
|
359
|
+
console.error(
|
|
360
|
+
`[HunterMate watchdog] circuit breaker open: ${consecutiveBoots} consecutive boots without healthy /health. Giving up; restart manually after the machine recovers (hm start / hm doctor).`
|
|
361
|
+
);
|
|
362
|
+
stop();
|
|
363
|
+
process.exit(1);
|
|
364
|
+
}
|
|
320
365
|
scheduleRestart();
|
|
321
366
|
});
|
|
322
367
|
});
|
package/dist/web/dist/404.html
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
<!DOCTYPE html><html lang="zh-CN"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="/_next/static/css/
|
|
1
|
+
<!DOCTYPE html><html lang="zh-CN"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="/_next/static/css/8f3c454cab3414d0.css" data-precedence="next"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/webpack-9cebd25e322e2cd7.js"/><script src="/_next/static/chunks/a7067448-3f2b194cfadb91fb.js" async=""></script><script src="/_next/static/chunks/935-12f1084f0e18c962.js" async=""></script><script src="/_next/static/chunks/main-app-f496bd51a73ef9f3.js" async=""></script><script src="/_next/static/chunks/603-765c4fa1ed757ca5.js" async=""></script><script src="/_next/static/chunks/589-5bb84ab8060e960b.js" async=""></script><script src="/_next/static/chunks/187-48dc1acca97c62ba.js" async=""></script><script src="/_next/static/chunks/app/layout-1e492ed8c639edf5.js" async=""></script><meta name="robots" content="noindex"/><title>HunterMate 采集仪表盘</title><meta name="description" content="HunterMate 采集/解析/入库仪表盘"/><script src="/_next/static/chunks/polyfills-42372ed130431b0a.js" noModule=""></script></head><body class="flex h-screen overflow-hidden bg-gray-50 text-gray-900"><div class="flex h-screen w-screen flex-col items-center justify-center bg-gray-50"><span class="hm-spinner" aria-label="加载中"></span><div class="mt-4 text-sm text-gray-400">正在加载,请稍候…</div></div><script src="/_next/static/chunks/webpack-9cebd25e322e2cd7.js" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0]);self.__next_f.push([2,null])</script><script>self.__next_f.push([1,"1:HL[\"/_next/static/css/8f3c454cab3414d0.css\",\"style\"]\n"])</script><script>self.__next_f.push([1,"2:I[76939,[],\"\"]\n4:I[74268,[],\"\"]\n5:I[81050,[],\"\"]\n6:I[15214,[\"603\",\"static/chunks/603-765c4fa1ed757ca5.js\",\"589\",\"static/chunks/589-5bb84ab8060e960b.js\",\"187\",\"static/chunks/187-48dc1acca97c62ba.js\",\"185\",\"static/chunks/app/layout-1e492ed8c639edf5.js\"],\"AuthGate\"]\n7:I[67188,[\"603\",\"static/chunks/603-765c4fa1ed757ca5.js\",\"589\",\"static/chunks/589-5bb84ab8060e960b.js\",\"187\",\"static/chunks/187-48dc1acca97c62ba.js\",\"185\",\"static/chunks/app/layout-1e492ed8c639edf5.js\"],\"AntdProvider\"]\n8:I[9424,[\"603\",\"static/chunks/603-765c4fa1ed757ca5.js\",\"589\",\"static/chunks/589-5bb84ab8060e960b.js\",\"187\",\"static/chunks/187-48dc1acca97c62ba.js\",\"185\",\"static/chunks/app/layout-1e492ed8c639edf5.js\"],\"SystemSidebar\"]\ne:I[62319,[],\"\"]\n9:{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"textAlign\":\"center\",\"display\":\"flex\",\"flexDirection\":\"column\",\"alignItems\":\"center\",\"justifyContent\":\"center\"}\na:{\"display\":\"inline-block\",\"margin\":\"0 20px 0 0\",\"padding\":\"0 23px 0 0\",\"fontSize\":24,\"fontWeight\":500,\"verticalAlign\":\"top\",\"lineHeight\":\"49px\"}\nb:{\"display\":\"inline-block\"}\nc:{\"fontSize\":14,\"fontWeight\":400,\"lineHeight\":\"49px\",\"margin\":0}\nf:[]\n"])</script><script>self.__next_f.push([1,"0:[\"$\",\"$L2\",null,{\"buildId\":\"cC7rsTCys5_15wJ8BiPDm\",\"assetPrefix\":\"\",\"urlParts\":[\"\",\"_not-found\"],\"initialTree\":[\"\",{\"children\":[\"/_not-found\",{\"children\":[\"__PAGE__\",{}]}]},\"$undefined\",\"$undefined\",true],\"initialSeedData\":[\"\",{\"children\":[\"/_not-found\",{\"children\":[\"__PAGE__\",{},[[\"$L3\",[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"textAlign\":\"center\",\"display\":\"flex\",\"flexDirection\":\"column\",\"alignItems\":\"center\",\"justifyContent\":\"center\"},\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":{\"display\":\"inline-block\",\"margin\":\"0 20px 0 0\",\"padding\":\"0 23px 0 0\",\"fontSize\":24,\"fontWeight\":500,\"verticalAlign\":\"top\",\"lineHeight\":\"49px\"},\"children\":\"404\"}],[\"$\",\"div\",null,{\"style\":{\"display\":\"inline-block\"},\"children\":[\"$\",\"h2\",null,{\"style\":{\"fontSize\":14,\"fontWeight\":400,\"lineHeight\":\"49px\",\"margin\":0},\"children\":\"This page could not be found.\"}]}]]}]}]],null],null],null]},[null,[\"$\",\"$L4\",null,{\"parallelRouterKey\":\"children\",\"segmentPath\":[\"children\",\"/_not-found\",\"children\"],\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L5\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"notFoundStyles\":\"$undefined\"}]],null]},[[[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/css/8f3c454cab3414d0.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\"}]],[\"$\",\"html\",null,{\"lang\":\"zh-CN\",\"children\":[\"$\",\"body\",null,{\"className\":\"flex h-screen overflow-hidden bg-gray-50 text-gray-900\",\"children\":[\"$\",\"$L6\",null,{\"children\":[\"$\",\"$L7\",null,{\"children\":[[\"$\",\"$L8\",null,{}],[\"$\",\"main\",null,{\"className\":\"flex-1 overflow-hidden\",\"children\":[\"$\",\"$L4\",null,{\"parallelRouterKey\":\"children\",\"segmentPath\":[\"children\"],\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L5\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":\"$9\",\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":\"$a\",\"children\":\"404\"}],[\"$\",\"div\",null,{\"style\":\"$b\",\"children\":[\"$\",\"h2\",null,{\"style\":\"$c\",\"children\":\"This page could not be found.\"}]}]]}]}]],\"notFoundStyles\":[]}]}]]}]}]}]}]],null],null],\"couldBeIntercepted\":false,\"initialHead\":[[\"$\",\"meta\",null,{\"name\":\"robots\",\"content\":\"noindex\"}],\"$Ld\"],\"globalErrorComponent\":\"$e\",\"missingSlots\":\"$Wf\"}]\n"])</script><script>self.__next_f.push([1,"d:[[\"$\",\"meta\",\"0\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}],[\"$\",\"meta\",\"1\",{\"charSet\":\"utf-8\"}],[\"$\",\"title\",\"2\",{\"children\":\"HunterMate 采集仪表盘\"}],[\"$\",\"meta\",\"3\",{\"name\":\"description\",\"content\":\"HunterMate 采集/解析/入库仪表盘\"}]]\n3:null\n"])</script></body></html>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="09b42870-4b0d-4877-b6fc-5de08f16d5b6",e._sentryDebugIdIdentifier="sentry-dbid-09b42870-4b0d-4877-b6fc-5de08f16d5b6")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[187],{58280:function(e,t,n){let r;n.d(t,{ZP:function(){return g},yU:function(){return m}});var o=n(60635),l=n(49297);n(3082);var u=n(90638),i=n(29119);let a=o.createContext(null),s=new Map;function c(e){e.forEach(e=>{let{target:t}=e;s.get(t)?.forEach(e=>e(t))})}function f(){return r||(r=new ResizeObserver(c)),r}var d=n(13063);function m(e,t,n,r){let l=o.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),u=(0,d.zX)(e=>{let{width:t,height:o}=e.getBoundingClientRect(),{offsetWidth:u,offsetHeight:i}=e,a=Math.floor(t),s=Math.floor(o);if(l.current.width!==a||l.current.height!==s||l.current.offsetWidth!==u||l.current.offsetHeight!==i){let c={width:a,height:s,offsetWidth:u,offsetHeight:i};l.current=c;let f={...c,offsetWidth:u===Math.round(t)?t:u,offsetHeight:i===Math.round(o)?o:i};r?.(f,e),Promise.resolve().then(()=>{n?.(f,e)})}}),i="function"==typeof t,a=o.useRef(0);o.useEffect(()=>{let n=i?t():t;return n&&e?(s.has(n)||(s.set(n,new Set),f().observe(n)),s.get(n).add(u)):e&&i&&(a.current+=1),()=>{n&&s.has(n)&&(s.get(n).delete(u),s.get(n).size||(f().unobserve(n),s.delete(n)))}},[e,i?a.current:t])}let h=o.forwardRef(function(e,t){let{children:n,disabled:r,onResize:l,data:s}=e,c=o.useRef(null),f=o.useContext(a),d="function"==typeof n,h=d?n(c):n,p=!d&&o.isValidElement(h)&&(0,i.Yr)(h),v=p?(0,i.C4)(h):null,g=(0,i.x1)(v,c),y=()=>(0,u.bn)(c.current);return o.useImperativeHandle(t,()=>y()),m(!r,y,l,(e,t)=>{f?.(e,t,s)}),p?o.cloneElement(h,{ref:g}):h});function p(){return(p=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}let v=o.forwardRef(function(e,t){let{children:n}=e;return("function"==typeof n?[n]:(0,l.Z)(n)).map((n,r)=>{let l=n?.key||`rc-observer-key-${r}`;return o.createElement(h,p({},e,{key:l,ref:0===r?t:void 0}),n)})});v.Collection=function({children:e,onBatchResize:t}){let n=o.useRef(0),r=o.useRef([]),l=o.useContext(a),u=o.useCallback((e,o,u)=>{n.current+=1;let i=n.current;r.current.push({size:e,element:o,data:u}),Promise.resolve().then(()=>{i===n.current&&(t?.(r.current),r.current=[])}),l?.(e,o,u)},[t,l]);return o.createElement(a.Provider,{value:u},e)};var g=v},13299:function(e,t,n){n.d(t,{_v:function(){return j},ZP:function(){return N}});var r=n(38655),o=n(86937),l=n(58280),u=n(13063),i=n(60635),a=n(21636);function s(e){let{prefixCls:t,align:n,arrow:r,arrowPos:l}=e,{className:u,content:a,style:s}=r||{},{x:c=0,y:f=0}=l,d=i.useRef(null);if(!n||!n.points)return null;let m={position:"absolute"};if(!1!==n.autoArrow){let e=n.points[0],t=n.points[1],r=e[0],o=e[1],l=t[0],u=t[1];r!==l&&["t","b"].includes(r)?"t"===r?m.top=0:m.bottom=0:m.top=f,o!==u&&["l","r"].includes(o)?"l"===o?m.left=0:m.right=0:m.left=c}return i.createElement("div",{ref:d,className:(0,o.W)(`${t}-arrow`,u),style:{...m,...s}},a)}function c(){return(c=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function f(e){let{prefixCls:t,open:n,zIndex:r,mask:l,motion:u,mobile:s}=e;return l?i.createElement(a.ZP,c({},u,{motionAppear:!0,visible:n,removeOnLeave:!0}),({className:e})=>i.createElement("div",{style:{zIndex:r},className:(0,o.W)(`${t}-mask`,s&&`${t}-mobile-mask`,e)})):null}let d=i.memo(({children:e})=>e,(e,t)=>t.cache);function m(e,t,n,r,o,l,u,i){let a="auto",s=e?{}:{left:"-1000vw",top:"-1000vh",right:a,bottom:a};if(!e&&(t||!n)){let{points:e}=r,t=r.dynamicInset||r._experimental?.dynamicInset,n=t&&"r"===e[0][1],c=t&&"b"===e[0][0];n?(s.right=o,s.left=a):(s.left=u,s.right=a),c?(s.bottom=l,s.top=a):(s.top=i,s.bottom=a)}return s}function h(){return(h=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}let p=i.forwardRef((e,t)=>{let{onEsc:n,popup:r,className:c,prefixCls:p,style:v,target:g,onVisibleChanged:y,open:b,keepDom:x,fresh:E,onClick:C,mask:w,arrow:M,arrowPos:P,align:R,motion:S,maskMotion:k,mobile:z,forceRender:O,getPopupContainer:L,autoDestroy:X,portal:Z,children:j,zIndex:A,onMouseEnter:N,onMouseLeave:W,onPointerEnter:$,onPointerDownCapture:I,ready:_,offsetX:H,offsetY:T,offsetR:Y,offsetB:D,onAlign:V,onPrepare:B,onResize:F,stretch:q,targetWidth:G,targetHeight:U}=e,J="function"==typeof r?r():r,K=b||x,Q=!!z,[ee,et,en]=i.useMemo(()=>z?[z.mask,z.maskMotion,z.motion]:[w,k,S],[z,w,k,S]),er=L?.length>0,[eo,el]=i.useState(!L||!er);(0,u.bt)(()=>{!eo&&er&&g&&el(!0)},[eo,er,g]);let eu=(0,u.zX)((e,t)=>{F?.(e,t),V()}),ei=m(Q,_,b,R,Y,D,H,T);if(!eo)return null;let ea={};return q&&(q.includes("height")&&U?ea.height=U:q.includes("minHeight")&&U&&(ea.minHeight=U),q.includes("width")&&G?ea.width=G:q.includes("minWidth")&&G&&(ea.minWidth=G)),b||(ea.pointerEvents="none"),i.createElement(Z,{open:O||K,getContainer:L&&(()=>L(g)),autoDestroy:X,onEsc:n},i.createElement(f,{prefixCls:p,open:b,zIndex:A,mask:ee,motion:et,mobile:Q}),i.createElement(l.ZP,{onResize:eu,disabled:!b},e=>i.createElement(a.ZP,h({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:O,leavedClassName:`${p}-hidden`},en,{onAppearPrepare:B,onEnterPrepare:B,visible:b,onVisibleChanged:e=>{S?.onVisibleChanged?.(e),y(e)}}),({className:n,style:r},l)=>{let a=(0,o.W)(p,n,c,{[`${p}-mobile`]:Q});return i.createElement("div",{ref:(0,u.sQ)(e,t,l),className:a,style:{"--arrow-x":`${P.x||0}px`,"--arrow-y":`${P.y||0}px`,...ei,...ea,...r,boxSizing:"border-box",zIndex:A,...v},onMouseEnter:N,onMouseLeave:W,onPointerEnter:$,onClick:C,onPointerDownCapture:I},M&&i.createElement(s,{prefixCls:p,arrow:M,arrowPos:P,align:R}),i.createElement(d,{cache:!b&&!E},J))})),j)}),v=i.createContext(null),g=i.createContext(null);function y(e){return e?Array.isArray(e)?e:[e]:[]}function b(e,t,n,r){let{points:o}=n,l=Object.keys(e);for(let n=0;n<l.length;n+=1){let u=l[n];if(function(e=[],t=[],n){let r=(e,t)=>e[t]||"";return n?r(e,0)===r(t,0):r(e,0)===r(t,0)&&r(e,1)===r(t,1)}(e[u]?.points,o,r))return`${t}-placement-${u}`}return""}function x(e){return e.ownerDocument.defaultView}function E(e){let t=[],n=e?.parentElement,r=["hidden","scroll","clip","auto"];for(;n;){let{overflowX:e,overflowY:o,overflow:l}=x(n).getComputedStyle(n);[e,o,l].some(e=>r.includes(e))&&t.push(n),n=n.parentElement}return t}function C(e,t=1){return Number.isNaN(e)?t:e}function w(e){return C(parseFloat(e),0)}function M(e,t){let n={...e};return(t||[]).forEach(e=>{if(e instanceof HTMLBodyElement||e instanceof HTMLHtmlElement)return;let{overflow:t,overflowClipMargin:r,borderTopWidth:o,borderBottomWidth:l,borderLeftWidth:u,borderRightWidth:i}=x(e).getComputedStyle(e),a=e.getBoundingClientRect(),{offsetHeight:s,clientHeight:c,offsetWidth:f,clientWidth:d}=e,m=w(o),h=w(l),p=w(u),v=w(i),g=C(Math.round(a.width/f*1e3)/1e3),y=C(Math.round(a.height/s*1e3)/1e3),b=m*y,E=p*g,M=0,P=0;if("clip"===t){let e=w(r);M=e*g,P=e*y}let R=a.x+E-M,S=a.y+b-P,k=R+a.width+2*M-E-v*g-(f-d-p-v)*g,z=S+a.height+2*P-b-h*y-(s-c-m-h)*y;n.left=Math.max(n.left,R),n.top=Math.max(n.top,S),n.right=Math.min(n.right,k),n.bottom=Math.min(n.bottom,z)}),n}function P(e,t=0){let n=`${t}`,r=n.match(/^(.*)\%$/);return r?parseFloat(r[1])/100*e:parseFloat(n)}function R(e,t){let[n,r]=t||[];return[P(e.width,n),P(e.height,r)]}function S(e=""){return[e[0],e[1]]}function k(e,t){let n;let r=t[0],o=t[1];return n="t"===r?e.y:"b"===r?e.y+e.height:e.y+e.height/2,{x:"l"===o?e.x:"r"===o?e.x+e.width:e.x+e.width/2,y:n}}function z(e,t){let n=[...e];return n[t]=({t:"b",b:"t",l:"r",r:"l"})[e[t]]||"c",n}function O(e,t,n,r,o,l,a,s){let[c,f]=i.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:o[r]||{}}),d=i.useRef(0),m=i.useMemo(()=>!t||s?[]:E(t),[t]),h=i.useRef({});e||(h.current={});let p=(0,u.zX)(()=>{if(t&&n&&e&&!s){let e,s,d,p,v;let g=t.ownerDocument,y=x(t),{position:b}=y.getComputedStyle(t),E=t.style.left,w=t.style.top,P=t.style.right,O=t.style.bottom,L=t.style.overflow,X=t.style.overflowX,Z=t.style.overflowY,j={...o[r],...l},A=g.createElement("div");if(t.parentElement?.appendChild(A),A.style.left=`${t.offsetLeft}px`,A.style.top=`${t.offsetTop}px`,A.style.position=b,A.style.height=`${t.offsetHeight}px`,A.style.width=`${t.offsetWidth}px`,t.style.left="0",t.style.top="0",t.style.right="auto",t.style.bottom="auto",t.style.overflow="hidden",Array.isArray(n))e={x:n[0],y:n[1],width:0,height:0};else{let t=n.getBoundingClientRect();t.x=t.x??t.left,t.y=t.y??t.top,e={x:t.x,y:t.y,width:t.width,height:t.height}}let N=t.getBoundingClientRect(),{height:W,width:$}=y.getComputedStyle(t);N.x=N.x??N.left,N.y=N.y??N.top;let{clientWidth:I,clientHeight:_,scrollWidth:H,scrollHeight:T,scrollTop:Y,scrollLeft:D}=g.documentElement,V=N.height,B=N.width,F=e.height,q=e.width,{htmlRegion:G}=j,U="visible",J="visibleFirst";"scroll"!==G&&G!==J&&(G=U);let K=G===J,Q=M({left:-D,top:-Y,right:H-D,bottom:T-Y},m),ee=M({left:0,top:0,right:I,bottom:_},m),et=G===U?ee:Q,en=K?ee:et;t.style.left="auto",t.style.top="auto",t.style.right="0",t.style.bottom="0";let er=t.getBoundingClientRect();t.style.left=E,t.style.top=w,t.style.right=P,t.style.bottom=O,t.style.overflow=L,t.style.overflowX=X,t.style.overflowY=Z,t.parentElement?.removeChild(A);let eo=C(Math.round(B/parseFloat($)*1e3)/1e3),el=C(Math.round(V/parseFloat(W)*1e3)/1e3);if(0===eo||0===el||(0,u.Sh)(n)&&!(0,u.pn)(n))return;let{offset:eu,targetOffset:ei}=j,[ea,es]=R(N,eu),[ec,ef]=R(e,ei);e.x-=ec,e.y-=ef;let[ed,em]=j.points||[],eh=S(em),ep=S(ed),ev=k(e,eh),eg=k(N,ep),ey={...j},eb=[ep,eh],ex=ev.x-eg.x+ea,eE=ev.y-eg.y+es;function i(e,t,n=et){let r=N.x+e,o=N.y+t,l=Math.max(r,n.left),u=Math.max(o,n.top);return Math.max(0,(Math.min(r+B,n.right)-l)*(Math.min(o+V,n.bottom)-u))}let eC=i(ex,eE),ew=i(ex,eE,ee),eM=k(e,["t","l"]),eP=k(N,["t","l"]),eR=k(e,["b","r"]),eS=k(N,["b","r"]),{adjustX:ek,adjustY:ez,shiftX:eO,shiftY:eL}=j.overflow||{},eX=e=>"boolean"==typeof e?e:e>=0;function c(){d=(s=N.y+eE)+V,v=(p=N.x+ex)+B}c();let eZ=eX(ez),ej=ep[0]===eh[0];if(eZ&&"t"===ep[0]&&(d>en.bottom||h.current.bt)){let e=eE;ej?e-=V-F:e=eM.y-eS.y-es;let t=i(ex,e),n=i(ex,e,ee);t>eC||t===eC&&(!K||n>=ew)?(h.current.bt=!0,eE=e,es=-es,eb=[z(eb[0],0),z(eb[1],0)]):h.current.bt=!1}if(eZ&&"b"===ep[0]&&(s<en.top||h.current.tb)){let e=eE;ej?e+=V-F:e=eR.y-eP.y-es;let t=i(ex,e),n=i(ex,e,ee);t>eC||t===eC&&(!K||n>=ew)?(h.current.tb=!0,eE=e,es=-es,eb=[z(eb[0],0),z(eb[1],0)]):h.current.tb=!1}let eA=eX(ek),eN=ep[1]===eh[1];if(eA&&"l"===ep[1]&&(v>en.right||h.current.rl)){let e=ex;eN?e-=B-q:e=eM.x-eS.x-ea;let t=i(e,eE),n=i(e,eE,ee);t>eC||t===eC&&(!K||n>=ew)?(h.current.rl=!0,ex=e,ea=-ea,eb=[z(eb[0],1),z(eb[1],1)]):h.current.rl=!1}if(eA&&"r"===ep[1]&&(p<en.left||h.current.lr)){let e=ex;eN?e+=B-q:e=eR.x-eP.x-ea;let t=i(e,eE),n=i(e,eE,ee);t>eC||t===eC&&(!K||n>=ew)?(h.current.lr=!0,ex=e,ea=-ea,eb=[z(eb[0],1),z(eb[1],1)]):h.current.lr=!1}ey.points=[eb[0].join(""),eb[1].join("")],c();let eW=!0===eO?0:eO;"number"==typeof eW&&(p<ee.left&&(ex-=p-ee.left-ea,e.x+q<ee.left+eW&&(ex+=e.x-ee.left+q-eW)),v>ee.right&&(ex-=v-ee.right-ea,e.x>ee.right-eW&&(ex+=e.x-ee.right+eW)));let e$=!0===eL?0:eL;"number"==typeof e$&&(s<ee.top&&(eE-=s-ee.top-es,e.y+F<ee.top+e$&&(eE+=e.y-ee.top+F-e$)),d>ee.bottom&&(eE-=d-ee.bottom-es,e.y>ee.bottom-e$&&(eE+=e.y-ee.bottom+e$)));let eI=N.x+ex,e_=N.y+eE,eH=e.x,eT=e.y;a?.(t,ey);let eY=er.right-N.x-(ex+N.width),eD=er.bottom-N.y-(eE+N.height);1===eo&&(ex=Math.floor(ex),eY=Math.floor(eY)),1===el&&(eE=Math.floor(eE),eD=Math.floor(eD)),f({ready:!0,offsetX:ex/eo,offsetY:eE/el,offsetR:eY/eo,offsetB:eD/el,arrowX:((Math.max(eI,eH)+Math.min(eI+B,eH+q))/2-eI)/eo,arrowY:((Math.max(e_,eT)+Math.min(e_+V,eT+F))/2-e_)/el,scaleX:eo,scaleY:el,align:ey})}}),v=()=>{f(e=>({...e,ready:!1}))};return(0,u.bt)(v,[r]),(0,u.bt)(()=>{e||v()},[e]),[c.ready,c.offsetX,c.offsetY,c.offsetR,c.offsetB,c.arrowX,c.arrowY,c.scaleX,c.scaleY,c.align,()=>{d.current+=1;let e=d.current;Promise.resolve().then(()=>{d.current===e&&p()})}]}function L(){let e=i.useRef(null),t=()=>{e.current&&(clearTimeout(e.current),e.current=null)};return i.useEffect(()=>()=>{t()},[]),(n,r)=>{t(),0===r?n():e.current=setTimeout(()=>{n()},1e3*r)}}function X(){return(X=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var Z=e=>{let{prefixCls:t,isMobile:n,ready:r,open:l,align:u,offsetR:s,offsetB:c,offsetX:f,offsetY:d,arrowPos:h,popupSize:p,motion:v,uniqueContainerClassName:g,uniqueContainerStyle:y}=e,b=`${t}-unique-container`,[x,E]=i.useState(!1),C=m(n,r,l,u,s,c,f,d),w=i.useRef(C);r&&(w.current=C);let M={};return p&&(M.width=p.width,M.height=p.height),i.createElement(a.ZP,X({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,leavedClassName:`${b}-hidden`},v,{visible:l,onVisibleChanged:e=>{E(e)}}),({className:e,style:t})=>{let n=(0,o.W)(b,e,g,{[`${b}-visible`]:x});return i.createElement("div",{className:n,style:{"--arrow-x":`${h?.x||0}px`,"--arrow-y":`${h?.y||0}px`,...w.current,...M,...t,...y}})})},j=({children:e,postTriggerProps:t})=>{let[n,l,a,s]=function(){let[e,t]=i.useState(null),[n,r]=i.useState(!1),[o,l]=i.useState(!1),a=i.useRef(null);return[(0,u.zX)(e=>{!1===e?(a.current=null,r(!1)):o&&n?a.current=e:(r(!0),t(e),a.current=null,n||l(!0))}),n,e,(0,u.zX)(e=>{e?(l(!1),a.current&&(t(a.current),a.current=null)):(l(!1),a.current=null)})]}(),c=i.useMemo(()=>a&&t?t(a):a,[a,t]),[f,d]=i.useState(null),[m,h]=i.useState(null),y=i.useRef(null),x=(0,u.zX)(e=>{y.current=e,(0,u.Sh)(e)&&f!==e&&d(e)}),E=i.useRef(null),C=L(),w=(0,u.zX)((e,t)=>{E.current=t,C(()=>{n(e)},e.delay)}),M=e=>{C(()=>{E.current?.()||n(!1)},e)},P=(0,u.zX)(e=>{s(e)}),[R,S,k,z,X,j,A,,,N,W]=O(l,f,c?.target,c?.popupPlacement,c?.builtinPlacements||{},c?.popupAlign,void 0,!1),$=i.useMemo(()=>{if(!c)return"";let e=b(c.builtinPlacements||{},c.prefixCls||"",N,!1);return(0,o.W)(e,c.getPopupClassNameFromAlign?.(N))},[N,c?.getPopupClassNameFromAlign,c?.builtinPlacements,c?.prefixCls]),I=i.useMemo(()=>({show:w,hide:M}),[]);i.useEffect(()=>{W()},[c?.target]);let _=(0,u.zX)(()=>(W(),Promise.resolve())),H=i.useRef({}),T=i.useContext(v),Y=i.useMemo(()=>({registerSubPopup:(e,t)=>{H.current[e]=t,T?.registerSubPopup(e,t)}}),[T]),D=c?.prefixCls;return i.createElement(g.Provider,{value:I},e,c&&i.createElement(v.Provider,{value:Y},i.createElement(p,{ref:x,portal:r.Z,onEsc:c.onEsc,prefixCls:D,popup:c.popup,className:(0,o.W)(c.popupClassName,$,`${D}-unique-controlled`),style:c.popupStyle,target:c.target,open:l,keepDom:!0,fresh:!0,autoDestroy:!1,onVisibleChanged:P,ready:R,offsetX:S,offsetY:k,offsetR:z,offsetB:X,onAlign:W,onPrepare:_,onResize:e=>h({width:e.offsetWidth,height:e.offsetHeight}),arrowPos:{x:j,y:A},align:N,zIndex:c.zIndex,mask:c.mask,arrow:c.arrow,motion:c.popupMotion,maskMotion:c.maskMotion,getPopupContainer:c.getPopupContainer},i.createElement(Z,{prefixCls:D,isMobile:!1,ready:R,open:l,align:N,offsetR:z,offsetB:X,offsetX:S,offsetY:k,arrowPos:{x:j,y:A},popupSize:m,motion:c.popupMotion,uniqueContainerClassName:(0,o.W)(c.uniqueContainerClassName,$),uniqueContainerStyle:c.uniqueContainerStyle}))))},A=n(77667),N=function(e=r.Z){return i.forwardRef((t,n)=>{var r;let a,s;let{prefixCls:c="rc-trigger-popup",children:f,action:d="hover",showAction:m,hideAction:h,disabled:C=!1,popupVisible:w,defaultPopupVisible:M,onOpenChange:P,afterOpenChange:R,onPopupVisibleChange:S,afterPopupVisibleChange:k,mouseEnterDelay:z,mouseLeaveDelay:X=.1,focusDelay:Z,blurDelay:j,mask:N,maskClosable:W=!0,getPopupContainer:$,forceRender:I,autoDestroy:_,popup:H,popupClassName:T,uniqueContainerClassName:Y,uniqueContainerStyle:D,popupStyle:V,popupPlacement:B,builtinPlacements:F={},popupAlign:q,zIndex:G,stretch:U,getPopupClassNameFromAlign:J,fresh:K,unique:Q,alignPoint:ee,onPopupClick:et,onPopupAlign:en,arrow:er,popupMotion:eo,maskMotion:el,mobile:eu,...ei}=t,ea=void 0===w,es=!!eu,ec=i.useRef({}),ef=i.useContext(v),ed=i.useMemo(()=>({registerSubPopup:(e,t)=>{ec.current[e]=t,ef?.registerSubPopup(e,t)}}),[ef]),em=i.useContext(g),eh=(0,u.Me)(),[ep,ev]=i.useState(null),eg=i.useRef(null),ey=(0,u.zX)(e=>{eg.current=e,(0,u.Sh)(e)&&ep!==e&&ev(e),ef?.registerSubPopup(eh,e)}),[eb,ex]=i.useState(null),eE=i.useRef(null),eC=(0,u.zX)(e=>{let t=(0,u.bn)(e);(0,u.Sh)(t)&&eb!==t&&(ex(t),eE.current=t)}),ew={},eM=(0,u.zX)(e=>eb?.contains(e)||u.Ay(eb)?.host===e||e===eb||ep?.contains(e)||u.Ay(ep)?.host===e||e===ep||Object.values(ec.current).some(t=>t?.contains(e)||e===t)),eP=er?{...!0!==er?er:{}}:null,[eR,eS]=(0,u.zk)(M||!1,w),ek=eR||!1,ez=ek&&!C,eO=i.useMemo(()=>{let e="function"==typeof f?f({open:ez}):f;return i.Children.only(e)},[f,ez]),eL=eO?.props||{},eX=(0,u.zX)(()=>ez),eZ=(0,u.zX)((e=0)=>({popup:H,target:eb,delay:e,prefixCls:c,popupClassName:T,uniqueContainerClassName:Y,uniqueContainerStyle:D,popupStyle:V,popupPlacement:B,builtinPlacements:F,popupAlign:q,zIndex:G,mask:N,maskClosable:W,popupMotion:eo,maskMotion:el,arrow:eP,getPopupContainer:$,getPopupClassNameFromAlign:J,id:eh,onEsc:e$}));(0,u.bt)(()=>{em&&Q&&eb&&!ea&&!ef&&(ez?em.show(eZ(z),eX):em.hide(X))},[ez,eb]);let ej=i.useRef(ez);ej.current=ez;let eA=(0,u.zX)(e=>{(0,A.flushSync)(()=>{ek!==e&&(eS(e),P?.(e),S?.(e))})}),eN=L(),eW=(e,t=0)=>{if(void 0!==w){eN(()=>{eA(e)},t);return}if(em&&Q&&ea&&!ef){e?em.show(eZ(t),eX):em.hide(t);return}eN(()=>{eA(e)},t)};function e$({top:e}){e&&eW(!1)}let[eI,e_]=i.useState(!1);(0,u.bt)(e=>{(!e||ez)&&e_(!0)},[ez]);let[eH,eT]=i.useState(null),[eY,eD]=i.useState(null),eV=e=>{eD([e.clientX,e.clientY])},[eB,eF,eq,eG,eU,eJ,eK,eQ,e0,e1,e6]=O(ez,ep,ee&&null!==eY?eY:eb,B,F,q,en,es),[e3,e2]=i.useMemo(()=>{let e=y(m??d),t=y(h??d),n=new Set(e),r=new Set(t);return n.has("hover")&&!n.has("click")&&n.add("touch"),r.has("hover")&&!r.has("click")&&r.add("touch"),[n,r]},[d,m,h]),e7=e3.has("click"),e8=e2.has("click")||e2.has("contextMenu"),e5=(0,u.zX)(()=>{eI||e6()});r=()=>{ej.current&&ee&&e8&&eW(!1)},(0,u.bt)(()=>{if(ez&&eb&&ep){let t=E(eb),n=E(ep),o=x(ep),l=new Set([o,...t,...n]);function e(){e5(),r()}return l.forEach(t=>{t.addEventListener("scroll",e,{passive:!0})}),o.addEventListener("resize",e,{passive:!0}),e5(),()=>{l.forEach(t=>{t.removeEventListener("scroll",e),o.removeEventListener("resize",e)})}}},[ez,eb,ep]),(0,u.bt)(()=>{e5()},[eY,B]),(0,u.bt)(()=>{ez&&!F?.[B]&&e5()},[JSON.stringify(q)]);let e9=i.useMemo(()=>{let e=b(F,c,e1,ee);return(0,o.W)(e,J?.(e1))},[e1,J,F,c,ee]);i.useImperativeHandle(n,()=>({nativeElement:eE.current,popupElement:eg.current,forceAlign:e5}));let[e4,te]=i.useState(0),[tt,tn]=i.useState(0),tr=()=>{if(U&&eb){let e=eb.getBoundingClientRect();te(e.width),tn(e.height)}};function to(e,t,n,r,o){ew[e]=(l,...u)=>{o&&o()||(r?.(l),eW(t,n)),eL[e]?.(l,...u)}}(0,u.bt)(()=>{eH&&(e6(),eH(),eT(null))},[eH]);let tl=e3.has("touch"),tu=e2.has("touch"),ti=i.useRef(!1);(tl||tu)&&(ew.onTouchStart=(...e)=>{ti.current=!0,ej.current&&tu?eW(!1):!ej.current&&tl&&eW(!0),eL.onTouchStart?.(...e)}),(e7||e8)&&(ew.onClick=(e,...t)=>{ej.current&&e8?eW(!1):!ej.current&&e7&&(eV(e),eW(!0)),eL.onClick?.(e,...t),ti.current=!1});let ta=function(e,t,n,r,o,l,a,s){let c=i.useRef(e);c.current=e;let f=i.useRef(!1);return i.useEffect(()=>{if(t&&r&&(!o||l)){let e=()=>{f.current=!1},t=e=>{!c.current||a(e.composedPath?.()?.[0]||e.target)||f.current||s(!1)},o=x(r);o.addEventListener("pointerdown",e,!0),o.addEventListener("mousedown",t,!0),o.addEventListener("contextmenu",t,!0);let l=(0,u.Ay)(n);return l&&(l.addEventListener("mousedown",t,!0),l.addEventListener("contextmenu",t,!0)),()=>{o.removeEventListener("pointerdown",e,!0),o.removeEventListener("mousedown",t,!0),o.removeEventListener("contextmenu",t,!0),l&&(l.removeEventListener("mousedown",t,!0),l.removeEventListener("contextmenu",t,!0))}}},[t,n,r,o,l]),function(){f.current=!0}}(ez,e8||tu,eb,ep,N,W,eM,eW),ts=e3.has("hover"),tc=e2.has("hover"),tf=()=>ti.current;if(ts){let e=e=>{eV(e)};to("onMouseEnter",!0,z,e,tf),to("onPointerEnter",!0,z,e,tf),a=e=>{(ez||eI)&&ep?.contains(e.target)&&eW(!0,z)},ee&&(ew.onMouseMove=e=>{eL.onMouseMove?.(e)})}tc&&(to("onMouseLeave",!1,X,void 0,tf),to("onPointerLeave",!1,X,void 0,tf),s=()=>{eW(!1,X)}),e3.has("focus")&&to("onFocus",!0,Z),e2.has("focus")&&to("onBlur",!1,j),e3.has("contextMenu")&&(ew.onContextMenu=(e,...t)=>{ej.current&&e2.has("contextMenu")?eW(!1):(eV(e),eW(!0)),e.preventDefault(),eL.onContextMenu?.(e,...t)});let td=i.useRef(!1);td.current||=I||ez||eI;let tm={...eL,...ew},th={};["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"].forEach(e=>{ei[e]&&(th[e]=(...t)=>{tm[e]?.(...t),ei[e](...t)})}),(0,l.yU)(ez,eb,()=>{tr(),e5()});let tp=(0,u.x1)(eC,(0,u.C4)(eO)),tv=i.cloneElement(eO,{...tm,...th,ref:tp});return i.createElement(i.Fragment,null,tv,td.current&&(!em||!Q)&&i.createElement(v.Provider,{value:ed},i.createElement(p,{portal:e,ref:ey,prefixCls:c,popup:H,className:(0,o.W)(T,!es&&e9),style:V,target:eb,onMouseEnter:a,onMouseLeave:s,onPointerEnter:a,zIndex:G,open:ez,keepDom:eI,fresh:K,onClick:et,onPointerDownCapture:ta,mask:N,motion:eo,maskMotion:el,onVisibleChanged:e=>{e_(!1),e6(),R?.(e),k?.(e)},onPrepare:()=>new Promise(e=>{tr(),eT(()=>e)}),forceRender:I,autoDestroy:_||!1,getPopupContainer:$,onEsc:e$,align:e1,arrow:eP,arrowPos:{x:eJ,y:eK},ready:eB,offsetX:eF,offsetY:eq,offsetR:eG,offsetB:eU,onAlign:e5,stretch:U,targetWidth:e4/eQ,targetHeight:tt/e0,mobile:eu})))})}(r.Z)},70674:function(e,t,n){n.d(t,{G8:function(){return u},Uu:function(){return i},ln:function(){return a}});var r=n(60635);function o(){}let{resetWarned:l}=n(13063).warning,u=r.createContext({}),i=()=>{let e=()=>{};return e.deprecated=o,e},a=i},12502:function(e,t,n){let r,o,l,u;n.d(t,{ZP:function(){return I},w6:function(){return N}});var i=n(60635),a=n(60662),s=n(46139),c=n(13063),f=n(91560),d=n(70674),m=n(99020),h=n(26755),p=n(46938),v=e=>{let{locale:t={},children:n,_ANT_MARK__:r}=e;i.useEffect(()=>(0,h.f)(null==t?void 0:t.Modal),[t]);let o=i.useMemo(()=>({...t,exist:!0}),[t]);return i.createElement(p.Z.Provider,{value:o},n)},g=n(75388),y=n(56465),b=n(44436),x=n(93323),E=n(15017),C=n(73703),w=n(48896),M=n(26273),P=n(21636),R=n(80971);let S=i.createContext(!0);function k(e){let t=i.useContext(S),{children:n}=e,[,r]=(0,R.ZP)(),{motion:o}=r,l=i.useRef(!1);return(l.current||(l.current=t!==o),l.current)?i.createElement(S.Provider,{value:o},i.createElement(P.zt,{motion:o},n)):n}var z=()=>null,O=n(28811),L=(e,t)=>{let[n,r]=(0,R.ZP)();return(0,a.xy)({theme:n,token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>null==t?void 0:t.nonce,layer:{name:"antd"}},()=>(0,O.JT)(e))};let X=e=>{let{iconPrefixCls:t,csp:n}=e;return L(t,n),null},Z=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"];function j(){return r||C.Rf}function A(){return o||C.oR}let N=()=>({getPrefixCls:(e,t)=>t||(e?"".concat(j(),"-").concat(e):j()),getIconPrefixCls:A,getRootPrefixCls:()=>r||j(),getTheme:()=>l,holderRender:u}),W=e=>{let{children:t,csp:n,autoInsertSpaceInButton:r,alert:o,affix:l,anchor:u,app:h,form:p,locale:P,componentSize:R,direction:S,space:O,splitter:L,virtual:j,dropdownMatchSelectWidth:A,popupMatchSelectWidth:N,popupOverflow:W,legacyLocale:$,parentContext:I,iconPrefixCls:_,theme:H,componentDisabled:T,segmented:Y,statistic:D,spin:V,calendar:B,carousel:F,cascader:q,collapse:G,typography:U,checkbox:J,descriptions:K,divider:Q,drawer:ee,skeleton:et,steps:en,image:er,layout:eo,list:el,listy:eu,mentions:ei,modal:ea,progress:es,result:ec,slider:ef,breadcrumb:ed,masonry:em,menu:eh,pagination:ep,input:ev,inputPassword:eg,inputSearch:ey,textArea:eb,otp:ex,empty:eE,badge:eC,borderBeam:ew,radio:eM,rate:eP,ribbon:eR,switch:eS,transfer:ek,avatar:ez,message:eO,tag:eL,table:eX,card:eZ,cardMeta:ej,tabs:eA,timeline:eN,timePicker:eW,upload:e$,notification:eI,tree:e_,colorPicker:eH,datePicker:eT,rangePicker:eY,flex:eD,wave:eV,dropdown:eB,warning:eF,tour:eq,tooltip:eG,popover:eU,popconfirm:eJ,qrcode:eK,floatButton:eQ,floatButtonGroup:e0,variant:e1,inputNumber:e6,treeSelect:e3,watermark:e2}=e,e7=i.useMemo(()=>{var e;return(0,f.PO)(P)&&Object.prototype.hasOwnProperty.call(P,"default")&&(null===(e=P.default)||void 0===e?void 0:e.locale)?P.default:P},[P]),e8=i.useCallback((t,n)=>{let{prefixCls:r}=e;if(n)return n;let o=r||I.getPrefixCls("");return t?"".concat(o,"-").concat(t):o},[I.getPrefixCls,e.prefixCls]),e5=_||I.iconPrefixCls||C.oR,e9=n||I.csp,e4=function(e,t,n){var r;(0,d.ln)("ConfigProvider");let o=e||{},l=!1!==o.inherit&&t?t:{...b.u_,hashed:null!==(r=null==t?void 0:t.hashed)&&void 0!==r?r:b.u_.hashed,cssVar:null==t?void 0:t.cssVar,zeroRuntime:null==t?void 0:t.zeroRuntime},u=(0,i.useId)();return(0,c.Ye)(()=>{var r;if(!e)return t;let i={...l.components};Object.keys(e.components||{}).forEach(t=>{i[t]={...i[t],...e.components[t]}});let a="css-var-".concat(u.replace(/:/g,"")),s={prefix:null==n?void 0:n.prefixCls,...l.cssVar,...o.cssVar,key:(null===(r=o.cssVar)||void 0===r?void 0:r.key)||a};return{...l,...o,token:{...l.token,...o.token},components:i,cssVar:s}},[o,l,null==n?void 0:n.prefixCls,u],(e,t)=>e.some((e,n)=>{let r=t[n];return!(0,c.Xy)(e,r,!0)}))}(H,I.theme,{prefixCls:e8("")}),te={csp:e9,autoInsertSpaceInButton:r,alert:o,affix:l,anchor:u,app:h,locale:e7||$,direction:S,space:O,splitter:L,virtual:j,popupMatchSelectWidth:null!=N?N:A,popupOverflow:W,getPrefixCls:e8,iconPrefixCls:e5,theme:e4,segmented:Y,statistic:D,spin:V,calendar:B,carousel:F,cascader:q,collapse:G,typography:U,checkbox:J,descriptions:K,divider:Q,drawer:ee,skeleton:et,steps:en,image:er,input:ev,inputPassword:eg,inputSearch:ey,textArea:eb,otp:ex,layout:eo,list:el,listy:eu,mentions:ei,modal:ea,progress:es,result:ec,slider:ef,breadcrumb:ed,masonry:em,menu:eh,pagination:ep,empty:eE,badge:eC,borderBeam:ew,radio:eM,rate:eP,ribbon:eR,switch:eS,transfer:ek,avatar:ez,message:eO,tag:eL,table:eX,card:eZ,cardMeta:ej,tabs:eA,timeline:eN,timePicker:eW,upload:e$,notification:eI,tree:e_,colorPicker:eH,datePicker:eT,rangePicker:eY,flex:eD,wave:eV,dropdown:eB,warning:eF,tour:eq,tooltip:eG,popover:eU,popconfirm:eJ,qrcode:eK,floatButton:eQ,floatButtonGroup:e0,variant:e1,inputNumber:e6,treeSelect:e3,watermark:e2},tt={...I};Object.keys(te).forEach(e=>{void 0!==te[e]&&(tt[e]=te[e])}),Z.forEach(t=>{let n=e[t];n&&(tt[t]=n)}),void 0!==r&&(tt.button={autoInsertSpace:r,...tt.button});let tn=(0,c.Ye)(()=>tt,tt,(e,t)=>{let n=Object.keys(e),r=Object.keys(t);return n.length!==r.length||n.some(n=>e[n]!==t[n])}),{layer:tr}=i.useContext(a.uP),to=i.useMemo(()=>({prefixCls:e5,csp:e9,layer:tr?"antd":void 0,zeroRuntime:!!tr||(null==e4?void 0:e4.zeroRuntime)}),[e5,e9,tr,null==e4?void 0:e4.zeroRuntime]),tl=i.createElement(i.Fragment,null,i.createElement(X,{iconPrefixCls:e5,csp:e9}),i.createElement(z,{dropdownMatchSelectWidth:A}),t),tu=i.useMemo(()=>{var e,t,n,r;return(0,c.TS)((null===(e=g.Z.Form)||void 0===e?void 0:e.defaultValidateMessages)||{},(null===(n=tn.locale)||void 0===n?void 0:null===(t=n.Form)||void 0===t?void 0:t.defaultValidateMessages)||{},(null===(r=tn.form)||void 0===r?void 0:r.validateMessages)||{},(null==p?void 0:p.validateMessages)||{})},[tn,null==p?void 0:p.validateMessages]);Object.keys(tu).length>0&&(tl=i.createElement(m.Z.Provider,{value:tu},tl)),e7&&(tl=i.createElement(v,{locale:e7,_ANT_MARK__:"internalMark"},tl)),(e5||e9)&&(tl=i.createElement(s.Z.Provider,{value:to},tl)),R&&(tl=i.createElement(M.q,{size:R},tl)),tl=i.createElement(k,null,tl),(null==eG?void 0:eG.unique)&&(tl=i.createElement(E.Z,null,tl));let ti=i.useMemo(()=>{let{algorithm:e,token:t,components:n,cssVar:r,...o}=e4||{},l=e&&(!Array.isArray(e)||e.length>0)?(0,a.jG)(e):y.Z,u={};Object.entries(n||{}).forEach(e=>{let[t,n]=e,r={...n};"algorithm"in r&&(!0===r.algorithm?r.theme=l:(Array.isArray(r.algorithm)||(0,f.mf)(r.algorithm))&&(r.theme=(0,a.jG)(r.algorithm)),delete r.algorithm),u[t]=r});let i={...x.Z,...t};return{...o,theme:l,token:i,components:u,override:{override:i,...u},cssVar:r}},[e4]);return H&&(tl=i.createElement(b.Mj.Provider,{value:ti},tl)),tn.warning&&(tl=i.createElement(d.G8.Provider,{value:tn.warning},tl)),void 0!==T&&(tl=i.createElement(w.n,{disabled:T},tl)),i.createElement(C.E_.Provider,{value:tn},tl)},$=e=>{let t=i.useContext(C.E_),n=i.useContext(p.Z);return i.createElement(W,{parentContext:t,legacyLocale:n,...e})};$.ConfigContext=C.E_,$.SizeContext=M.Z,$.config=e=>{let{prefixCls:t,iconPrefixCls:n,theme:i,holderRender:a}=e;void 0!==t&&(r=t),void 0!==n&&(o=n),"holderRender"in e&&(u=a),i&&(l=i)},$.useConfig=function(){return{componentDisabled:(0,i.useContext)(w.Z),componentSize:(0,i.useContext)(M.Z)}},Object.defineProperty($,"SizeContext",{get:()=>M.Z});var I=$},99020:function(e,t,n){var r=n(60635);t.Z=(0,r.createContext)(void 0)},26755:function(e,t,n){n.d(t,{A:function(){return a},f:function(){return i}});var r=n(75388);let o={...r.Z.Modal},l=[],u=()=>l.reduce((e,t)=>({...e,...t}),r.Z.Modal);function i(e){if(e){let t={...e};return l.push(t),o=u(),()=>{l=l.filter(e=>e!==t),o=u()}}o={...r.Z.Modal}}function a(){return o}},15017:function(e,t,n){n.d(t,{Z:function(){return d}});var r=n(60635),o=n(13299),l=n(91560),u=n(21636),i=n(86937),a=n(87092),s=n(73703),c=e=>{let{children:t}=e,{getPrefixCls:n}=r.useContext(s.E_),o=n();return r.isValidElement(t)?r.createElement(u.ZP,{visible:!0,motionName:"".concat(o,"-fade"),motionAppear:!0,motionEnter:!0,motionLeave:!1,removeOnLeave:!1},e=>{let{style:n,className:r}=e;return(0,a.Tm)(t,e=>({className:(0,i.W)(e.className,r),style:{...e.style,...n}}))}):t};let f=[null,null];var d=e=>{let{children:t}=e;return r.createElement(o._v,{postTriggerProps:e=>{let{id:t,builtinPlacements:n,popup:o}=e,u=(0,l.mf)(o)?o():o,i=function(e){if(f[0]!==e){let t={};Object.keys(e).forEach(n=>{t[n]={...e[n],dynamicInset:!1}}),f[0]=e,f[1]=t}return f[1]}(n);return{...e,getPopupContainer:null,arrow:!1,popup:r.createElement(c,{key:t},u),builtinPlacements:i}}},t)}},27473:function(e,t,n){var r=n(38321);n.o(r,"useParams")&&n.d(t,{useParams:function(){return r.useParams}}),n.o(r,"usePathname")&&n.d(t,{usePathname:function(){return r.usePathname}}),n.o(r,"useRouter")&&n.d(t,{useRouter:function(){return r.useRouter}}),n.o(r,"useSearchParams")&&n.d(t,{useSearchParams:function(){return r.useSearchParams}}),n.o(r,"useServerInsertedHTML")&&n.d(t,{useServerInsertedHTML:function(){return r.useServerInsertedHTML}})}}]);
|