@skill-map/cli 0.45.1 → 0.47.0
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/cli/tutorial/sm-master/SKILL.md +29 -29
- package/dist/cli/tutorial/sm-master/references/fixture-templates.md +18 -13
- package/dist/cli/tutorial/sm-master/references/tour-authoring.md +35 -40
- package/dist/cli/tutorial/sm-master/references/tour-plugins.md +32 -32
- package/dist/cli/tutorial/sm-master/references/tour-settings.md +156 -75
- package/dist/cli/tutorial/sm-tutorial/SKILL.md +3 -3
- package/dist/cli.js +998 -458
- package/dist/conformance/index.js +4 -1
- package/dist/index.js +67 -22
- package/dist/kernel/index.d.ts +93 -13
- package/dist/kernel/index.js +67 -22
- package/dist/migrations/001_initial.sql +23 -0
- package/dist/ui/chunk-22CKFAEU.js +1 -0
- package/dist/ui/chunk-3AKR33GE.js +1 -0
- package/dist/ui/{chunk-QNTAOR2L.js → chunk-3HLMBEDX.js} +1 -1
- package/dist/ui/{chunk-T3IVIRRJ.js → chunk-7K36273M.js} +1 -1
- package/dist/ui/{chunk-MFLFIA7C.js → chunk-CO2ZOUSD.js} +1 -1
- package/dist/ui/{chunk-2RAE3FAN.js → chunk-CRWK2NFZ.js} +1 -1
- package/dist/ui/{chunk-VGPYYAVI.js → chunk-EPBUSS3I.js} +1 -1
- package/dist/ui/chunk-HAWX5WNM.js +4 -0
- package/dist/ui/{chunk-QDUSFOBE.js → chunk-K365TVPA.js} +1 -1
- package/dist/ui/chunk-PO2VZMOB.js +123 -0
- package/dist/ui/{chunk-X227ITGS.js → chunk-RT7E4S5B.js} +1 -1
- package/dist/ui/{chunk-5AD5ZV4I.js → chunk-UIUGLD7F.js} +1 -1
- package/dist/ui/{chunk-IYM26L3O.js → chunk-UV3QRBRR.js} +1 -1
- package/dist/ui/chunk-VNA3TMIO.js +1 -0
- package/dist/ui/{chunk-F7I6KMHX.js → chunk-VW2A6WZ3.js} +1 -1
- package/dist/ui/{chunk-A7PRWMQD.js → chunk-WPUUCIS3.js} +11 -11
- package/dist/ui/{chunk-MS6B7344.js → chunk-XWU3YFSM.js} +7 -7
- package/dist/ui/{chunk-I5AX4U2N.js → chunk-YOF6HQCQ.js} +1 -1
- package/dist/ui/chunk-ZZJ7XWDX.js +1 -0
- package/dist/ui/index.html +1 -1
- package/dist/ui/main-55GYZX6C.js +4 -0
- package/migrations/001_initial.sql +23 -0
- package/package.json +2 -2
- package/dist/cli.js.map +0 -1
- package/dist/conformance/index.js.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/kernel/index.js.map +0 -1
- package/dist/ui/chunk-27WQPOXP.js +0 -1
- package/dist/ui/chunk-555ST76V.js +0 -1
- package/dist/ui/chunk-PZQHB7GS.js +0 -4
- package/dist/ui/chunk-ZIGUUDUX.js +0 -123
- package/dist/ui/main-KMSUFJ6Y.js +0 -3
package/dist/kernel/index.js
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
// kernel/i18n/registry.texts.ts
|
|
2
|
+
|
|
3
|
+
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="f36340d8-37ef-5237-ab4d-8159bc7a4015")}catch(e){}}();
|
|
2
4
|
var REGISTRY_TEXTS = {
|
|
3
5
|
duplicateExtension: "Extension already registered: {{kind}}:{{qualifiedId}}",
|
|
4
6
|
unknownKind: "Unknown extension kind: {{kind}}",
|
|
@@ -96,12 +98,11 @@ var Registry = class {
|
|
|
96
98
|
import { existsSync as existsSync11, statSync as statSync4 } from "fs";
|
|
97
99
|
import { isAbsolute as isAbsolute4, resolve as resolve11 } from "path";
|
|
98
100
|
import { Tiktoken as Tiktoken2 } from "js-tiktoken/lite";
|
|
99
|
-
import cl100k_base from "js-tiktoken/ranks/cl100k_base";
|
|
100
101
|
|
|
101
102
|
// package.json
|
|
102
103
|
var package_default = {
|
|
103
104
|
name: "@skill-map/cli",
|
|
104
|
-
version: "0.
|
|
105
|
+
version: "0.47.0",
|
|
105
106
|
description: "skill-map reference implementation \u2014 kernel + CLI + adapters.",
|
|
106
107
|
license: "MIT",
|
|
107
108
|
type: "module",
|
|
@@ -765,16 +766,13 @@ function strip(value) {
|
|
|
765
766
|
// config/defaults.json
|
|
766
767
|
var defaults_default = {
|
|
767
768
|
schemaVersion: 1,
|
|
768
|
-
autoMigrate: true,
|
|
769
769
|
allowEditSmFiles: false,
|
|
770
770
|
tokenizer: "cl100k_base",
|
|
771
|
-
providers: [],
|
|
772
771
|
roots: [],
|
|
773
772
|
ignore: [],
|
|
774
773
|
scan: {
|
|
775
774
|
tokenize: true,
|
|
776
775
|
strict: false,
|
|
777
|
-
followSymlinks: false,
|
|
778
776
|
maxFileSizeBytes: 1048576,
|
|
779
777
|
maxNodes: 256,
|
|
780
778
|
watch: {
|
|
@@ -783,9 +781,6 @@ var defaults_default = {
|
|
|
783
781
|
referencePaths: []
|
|
784
782
|
},
|
|
785
783
|
plugins: {},
|
|
786
|
-
history: {
|
|
787
|
-
share: false
|
|
788
|
-
},
|
|
789
784
|
jobs: {
|
|
790
785
|
ttlSeconds: 3600,
|
|
791
786
|
graceMultiplier: 3,
|
|
@@ -796,9 +791,6 @@ var defaults_default = {
|
|
|
796
791
|
completed: 2592e3,
|
|
797
792
|
failed: null
|
|
798
793
|
}
|
|
799
|
-
},
|
|
800
|
-
i18n: {
|
|
801
|
-
locale: "en"
|
|
802
794
|
}
|
|
803
795
|
};
|
|
804
796
|
|
|
@@ -2363,8 +2355,9 @@ async function* walkContent(roots, options) {
|
|
|
2363
2355
|
if (!parser) throw new UnknownParserError(options.parser);
|
|
2364
2356
|
const filter = options.ignoreFilter ?? buildIgnoreFilter();
|
|
2365
2357
|
const extensions = options.extensions;
|
|
2358
|
+
const sizeLimit = buildSizeLimit(options);
|
|
2366
2359
|
for (const root of roots) {
|
|
2367
|
-
for await (const file of walkRoot(root, root, filter, extensions)) {
|
|
2360
|
+
for await (const file of walkRoot(root, root, filter, extensions, sizeLimit)) {
|
|
2368
2361
|
const relPath = relative2(root, file).split(sep2).join("/");
|
|
2369
2362
|
let raw;
|
|
2370
2363
|
try {
|
|
@@ -2387,7 +2380,15 @@ async function* walkContent(roots, options) {
|
|
|
2387
2380
|
}
|
|
2388
2381
|
}
|
|
2389
2382
|
}
|
|
2390
|
-
|
|
2383
|
+
function buildSizeLimit(options) {
|
|
2384
|
+
const sizeLimit = {};
|
|
2385
|
+
if (options.maxFileSizeBytes !== void 0) {
|
|
2386
|
+
sizeLimit.maxFileSizeBytes = options.maxFileSizeBytes;
|
|
2387
|
+
}
|
|
2388
|
+
if (options.onOversizedFile) sizeLimit.onOversizedFile = options.onOversizedFile;
|
|
2389
|
+
return sizeLimit;
|
|
2390
|
+
}
|
|
2391
|
+
async function* walkRoot(root, current, filter, extensions, sizeLimit) {
|
|
2391
2392
|
let entries;
|
|
2392
2393
|
try {
|
|
2393
2394
|
entries = await readdir(current, { withFileTypes: true, encoding: "utf8" });
|
|
@@ -2401,11 +2402,16 @@ async function* walkRoot(root, current, filter, extensions) {
|
|
|
2401
2402
|
if (filter.ignores(rel)) continue;
|
|
2402
2403
|
if (entry.isSymbolicLink()) continue;
|
|
2403
2404
|
if (entry.isDirectory()) {
|
|
2404
|
-
yield* walkRoot(root, full, filter, extensions);
|
|
2405
|
+
yield* walkRoot(root, full, filter, extensions, sizeLimit);
|
|
2405
2406
|
} else if (entry.isFile() && hasMatchingExtension(name, extensions)) {
|
|
2406
2407
|
try {
|
|
2407
2408
|
const s = await lstat(full);
|
|
2408
|
-
if (s.isFile())
|
|
2409
|
+
if (!s.isFile()) continue;
|
|
2410
|
+
if (sizeLimit.maxFileSizeBytes !== void 0 && s.size > sizeLimit.maxFileSizeBytes) {
|
|
2411
|
+
sizeLimit.onOversizedFile?.({ path: rel, bytes: s.size });
|
|
2412
|
+
continue;
|
|
2413
|
+
}
|
|
2414
|
+
yield full;
|
|
2409
2415
|
} catch {
|
|
2410
2416
|
}
|
|
2411
2417
|
}
|
|
@@ -2435,6 +2441,10 @@ function resolveProviderWalk(provider) {
|
|
|
2435
2441
|
parser: read.parser
|
|
2436
2442
|
};
|
|
2437
2443
|
if (options?.ignoreFilter) walkOptions.ignoreFilter = options.ignoreFilter;
|
|
2444
|
+
if (options?.maxFileSizeBytes !== void 0) {
|
|
2445
|
+
walkOptions.maxFileSizeBytes = options.maxFileSizeBytes;
|
|
2446
|
+
}
|
|
2447
|
+
if (options?.onOversizedFile) walkOptions.onOversizedFile = options.onOversizedFile;
|
|
2438
2448
|
return walkContent(roots, walkOptions);
|
|
2439
2449
|
};
|
|
2440
2450
|
}
|
|
@@ -2843,7 +2853,18 @@ async function walkAndExtract(opts) {
|
|
|
2843
2853
|
const accum = createWalkAccumulators();
|
|
2844
2854
|
const wctx = buildWalkContext(opts);
|
|
2845
2855
|
const claimedPaths = /* @__PURE__ */ new Set();
|
|
2846
|
-
const
|
|
2856
|
+
const oversizedFiles = [];
|
|
2857
|
+
const oversizedSeen = /* @__PURE__ */ new Set();
|
|
2858
|
+
const onOversizedFile = (info) => {
|
|
2859
|
+
if (oversizedSeen.has(info.path)) return;
|
|
2860
|
+
oversizedSeen.add(info.path);
|
|
2861
|
+
oversizedFiles.push(info);
|
|
2862
|
+
};
|
|
2863
|
+
const walkOptions = {
|
|
2864
|
+
...opts.ignoreFilter ? { ignoreFilter: opts.ignoreFilter } : {},
|
|
2865
|
+
onOversizedFile,
|
|
2866
|
+
...opts.maxFileSizeBytes !== void 0 ? { maxFileSizeBytes: opts.maxFileSizeBytes } : {}
|
|
2867
|
+
};
|
|
2847
2868
|
let filesWalked = 0;
|
|
2848
2869
|
let index = 0;
|
|
2849
2870
|
const effectiveMaxNodes = opts.overrideMaxNodes ?? opts.recommendedNodeLimit;
|
|
@@ -2876,6 +2897,7 @@ async function walkAndExtract(opts) {
|
|
|
2876
2897
|
cachedPaths: accum.cachedPaths,
|
|
2877
2898
|
frontmatterIssues: accum.frontmatterIssues,
|
|
2878
2899
|
filesWalked,
|
|
2900
|
+
oversizedFiles,
|
|
2879
2901
|
recommendedNodeLimit: opts.recommendedNodeLimit,
|
|
2880
2902
|
overrideMaxNodes: opts.overrideMaxNodes,
|
|
2881
2903
|
capReached,
|
|
@@ -2926,7 +2948,11 @@ async function processRawNode(raw, provider, wctx, accum, claimedPaths, nextInde
|
|
|
2926
2948
|
}
|
|
2927
2949
|
claimedPaths.add(raw.path);
|
|
2928
2950
|
const priorNode = wctx.priorNodesByPath.get(raw.path);
|
|
2929
|
-
const nodeHashCacheEligible = wctx.opts.enableCache &&
|
|
2951
|
+
const nodeHashCacheEligible = wctx.opts.enableCache && // Tokenizer-change invalidation: when the resolved encoder differs
|
|
2952
|
+
// from the one that produced the prior snapshot's counts, no node is
|
|
2953
|
+
// cache-eligible, every node rebuilds so `buildNode` re-tokenizes
|
|
2954
|
+
// with the current encoder. See `tokenizerChanged` on the options.
|
|
2955
|
+
!wctx.opts.tokenizerChanged && wctx.opts.prior !== null && priorNode !== void 0 && priorNode.bodyHash === bodyHash && priorNode.frontmatterHash === frontmatterHash;
|
|
2930
2956
|
const sidecarResolution = resolveSidecarOverlay(
|
|
2931
2957
|
raw.path,
|
|
2932
2958
|
raw.path,
|
|
@@ -3128,6 +3154,16 @@ function resolveSpecVersionSafe() {
|
|
|
3128
3154
|
return "unknown";
|
|
3129
3155
|
}
|
|
3130
3156
|
}
|
|
3157
|
+
var DEFAULT_TOKENIZER = "cl100k_base";
|
|
3158
|
+
function resolveTokenizerName(name) {
|
|
3159
|
+
return name === "o200k_base" ? "o200k_base" : DEFAULT_TOKENIZER;
|
|
3160
|
+
}
|
|
3161
|
+
async function loadTokenizerRanks(name) {
|
|
3162
|
+
if (name === "o200k_base") {
|
|
3163
|
+
return (await import("js-tiktoken/ranks/o200k_base")).default;
|
|
3164
|
+
}
|
|
3165
|
+
return (await import("js-tiktoken/ranks/cl100k_base")).default;
|
|
3166
|
+
}
|
|
3131
3167
|
async function runScanWithRenames(_kernel, options) {
|
|
3132
3168
|
return runScanInternal(_kernel, options);
|
|
3133
3169
|
}
|
|
@@ -3137,7 +3173,7 @@ async function runScan(_kernel, options) {
|
|
|
3137
3173
|
}
|
|
3138
3174
|
async function runScanInternal(_kernel, options) {
|
|
3139
3175
|
validateRoots(options.roots);
|
|
3140
|
-
const setup = buildScanSetup(options);
|
|
3176
|
+
const setup = await buildScanSetup(options);
|
|
3141
3177
|
const { emitter, exts, hookDispatcher, encoder, prior, start } = setup;
|
|
3142
3178
|
const scanStartedEvent = makeEvent("scan.started", { roots: options.roots });
|
|
3143
3179
|
emitter.emit(scanStartedEvent);
|
|
@@ -3147,6 +3183,7 @@ async function runScanInternal(_kernel, options) {
|
|
|
3147
3183
|
options.roots,
|
|
3148
3184
|
exts.providers
|
|
3149
3185
|
);
|
|
3186
|
+
const tokenizerChanged = encoder !== null && prior !== null && prior.tokenizer !== setup.tokenizer;
|
|
3150
3187
|
const walked = await walkAndExtract({
|
|
3151
3188
|
providers: exts.providers,
|
|
3152
3189
|
extractors: exts.extractors,
|
|
@@ -3156,6 +3193,7 @@ async function runScanInternal(_kernel, options) {
|
|
|
3156
3193
|
encoder,
|
|
3157
3194
|
strict: setup.strict,
|
|
3158
3195
|
enableCache: setup.enableCache,
|
|
3196
|
+
tokenizerChanged,
|
|
3159
3197
|
prior,
|
|
3160
3198
|
priorIndex: setup.priorIndex,
|
|
3161
3199
|
priorExtractorRuns: setup.priorExtractorRuns,
|
|
@@ -3163,7 +3201,8 @@ async function runScanInternal(_kernel, options) {
|
|
|
3163
3201
|
pluginStores: options.pluginStores,
|
|
3164
3202
|
activeProvider: activeProviderId,
|
|
3165
3203
|
recommendedNodeLimit: options.recommendedNodeLimit ?? 256,
|
|
3166
|
-
overrideMaxNodes: options.overrideMaxNodes ?? null
|
|
3204
|
+
overrideMaxNodes: options.overrideMaxNodes ?? null,
|
|
3205
|
+
...options.maxFileSizeBytes !== void 0 ? { maxFileSizeBytes: options.maxFileSizeBytes } : {}
|
|
3167
3206
|
});
|
|
3168
3207
|
const activeProvider = activeProviderId ? exts.providers.find((p) => p.id === activeProviderId) ?? null : null;
|
|
3169
3208
|
const resolved = resolveSignals({
|
|
@@ -3270,13 +3309,14 @@ function buildReservedNodePaths(nodes, kindRegistry, reservedNamesByProviderKind
|
|
|
3270
3309
|
function hasEntries(set) {
|
|
3271
3310
|
return set !== void 0 && set.size > 0;
|
|
3272
3311
|
}
|
|
3273
|
-
function buildScanSetup(options) {
|
|
3312
|
+
async function buildScanSetup(options) {
|
|
3274
3313
|
const start = Date.now();
|
|
3275
3314
|
const emitter = options.emitter ?? new InMemoryProgressEmitter();
|
|
3276
3315
|
const exts = options.extensions ?? { providers: [], extractors: [], analyzers: [] };
|
|
3277
3316
|
const hookDispatcher = makeHookDispatcher(exts.hooks ?? [], emitter);
|
|
3278
3317
|
const tokenize = options.tokenize !== false;
|
|
3279
|
-
const
|
|
3318
|
+
const tokenizer = resolveTokenizerName(options.tokenizer);
|
|
3319
|
+
const encoder = tokenize ? new Tiktoken2(await loadTokenizerRanks(tokenizer)) : null;
|
|
3280
3320
|
const prior = options.priorSnapshot ?? null;
|
|
3281
3321
|
const priorIndex = indexPriorSnapshot(prior);
|
|
3282
3322
|
const providerFrontmatter = buildProviderFrontmatterValidator(exts.providers);
|
|
@@ -3287,6 +3327,7 @@ function buildScanSetup(options) {
|
|
|
3287
3327
|
exts,
|
|
3288
3328
|
hookDispatcher,
|
|
3289
3329
|
encoder,
|
|
3330
|
+
tokenizer,
|
|
3290
3331
|
prior,
|
|
3291
3332
|
priorIndex,
|
|
3292
3333
|
priorExtractorRuns: options.priorExtractorRuns,
|
|
@@ -3322,6 +3363,7 @@ function buildScanStats(walked, issues, start) {
|
|
|
3322
3363
|
// Providers compete.
|
|
3323
3364
|
filesWalked: walked.filesWalked,
|
|
3324
3365
|
filesSkipped: 0,
|
|
3366
|
+
filesOversized: walked.oversizedFiles.length,
|
|
3325
3367
|
nodesCount: walked.nodes.length,
|
|
3326
3368
|
linksCount: walked.internalLinks.length,
|
|
3327
3369
|
issuesCount: issues.length,
|
|
@@ -3336,8 +3378,10 @@ function buildScanReturn(walked, issues, renameOps, stats, options, setup) {
|
|
|
3336
3378
|
roots: options.roots,
|
|
3337
3379
|
providers: setup.exts.providers.map((a) => a.id),
|
|
3338
3380
|
scannedBy: SCANNED_BY,
|
|
3381
|
+
tokenizer: setup.tokenizer,
|
|
3339
3382
|
recommendedNodeLimit: walked.recommendedNodeLimit,
|
|
3340
3383
|
overrideMaxNodes: walked.overrideMaxNodes,
|
|
3384
|
+
oversizedFiles: walked.oversizedFiles,
|
|
3341
3385
|
nodes: walked.nodes,
|
|
3342
3386
|
links: walked.internalLinks,
|
|
3343
3387
|
issues,
|
|
@@ -3775,4 +3819,5 @@ export {
|
|
|
3775
3819
|
runScan,
|
|
3776
3820
|
runScanWithRenames
|
|
3777
3821
|
};
|
|
3778
|
-
//# sourceMappingURL=index.js.map
|
|
3822
|
+
//# sourceMappingURL=index.js.map
|
|
3823
|
+
//# debugId=f36340d8-37ef-5237-ab4d-8159bc7a4015
|
|
@@ -292,6 +292,29 @@ CREATE TABLE scan_meta (
|
|
|
292
292
|
-- was passed) or NULL when the value above came from the setting.
|
|
293
293
|
recommended_node_limit INTEGER NOT NULL,
|
|
294
294
|
override_max_nodes INTEGER,
|
|
295
|
+
-- File-size skip envelope (see spec/cli-contract.md §Scan, `scan.maxFileSizeBytes`
|
|
296
|
+
-- setting, default 1 MiB). `files_oversized` is the count of files the walker
|
|
297
|
+
-- skipped before reading because they exceeded the limit (= `stats.filesOversized`);
|
|
298
|
+
-- `oversized_files_json` is the JSON array of `{ path, bytes }` entries the CLI /
|
|
299
|
+
-- serve terminal warns on and the UI banner lists. NULL when no file was skipped.
|
|
300
|
+
files_oversized INTEGER NOT NULL DEFAULT 0,
|
|
301
|
+
oversized_files_json TEXT,
|
|
302
|
+
-- Resolved offline tokenizer (encoder) that produced this scan's per-node
|
|
303
|
+
-- token counts (see project-config.schema.json §tokenizer, closed enum
|
|
304
|
+
-- `cl100k_base` / `o200k_base`). Recorded so the next incremental scan can
|
|
305
|
+
-- compare the persisted encoder against the resolved one and force a token
|
|
306
|
+
-- recompute when they differ (changing the tokenizer invalidates prior
|
|
307
|
+
-- counts). NULL on a pre-feature DB / never-tokenized scan; a NULL prior is
|
|
308
|
+
-- treated as "different encoder" so the next scan recomputes.
|
|
309
|
+
tokenizer TEXT,
|
|
310
|
+
-- Schema-drift fingerprint (see spec/db-schema.md §Schema drift (pre-1.0)).
|
|
311
|
+
-- sha256 (hex) of the concatenated migration DDL the schema was built from,
|
|
312
|
+
-- written at persist time. NULL on a DB created by a pre-fingerprint CLI; a
|
|
313
|
+
-- NULL or mismatching value is read as schema drift on the next write-side
|
|
314
|
+
-- open so an inline `001_initial.sql` column add (no version bump,
|
|
315
|
+
-- greenfield posture) forces a one-time cache rebuild instead of surfacing
|
|
316
|
+
-- later as a "no such column" query error.
|
|
317
|
+
schema_fingerprint TEXT,
|
|
295
318
|
CONSTRAINT ck_scan_meta_singleton CHECK (id = 1)
|
|
296
319
|
);
|
|
297
320
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Ka as i,Za as r,Zb as s,_b as l,yb as o,zb as a}from"./chunk-HAWX5WNM.js";import"./chunk-WCABR6TI.js";var n={triggering:"Triggering an intentional uncaught error to exercise UI Sentry error reporting...",errorMessage:"skill-map UI intentional failure (Sentry self-test)"};var d=(()=>{class e{texts=n;ngOnInit(){console.warn(n.triggering),setTimeout(()=>{throw new Error(n.errorMessage)},0)}static \u0275fac=function(t){return new(t||e)};static \u0275cmp=r({type:e,selectors:[["sm-intentional-fail"]],decls:2,vars:1,consts:[["data-testid","intentional-fail",1,"sm-intentional-fail"]],template:function(t,c){t&1&&(o(0,"p",0),s(1),a()),t&2&&(i(),l(c.texts.triggering))},encapsulation:2,changeDetection:0})}return e})();export{d as IntentionalFail};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{d as Pe,e as pt,g as ut}from"./chunk-VW2A6WZ3.js";import{o as Oe,q as Se}from"./chunk-K365TVPA.js";import{I as Y,J as K,K as dt}from"./chunk-WPUUCIS3.js";import{b as lt,i as Ce}from"./chunk-ZZJ7XWDX.js";import{h as ct}from"./chunk-VNA3TMIO.js";import{$b as be,Ab as ce,Db as nt,Gb as ot,Jb as it,Ka as u,Kb as y,L as re,O as We,Q,Vb as rt,W as Qe,Wb as J,X as Je,Yb as De,Za as F,Zb as C,_b as N,aa as Ze,cb as et,ha as ye,ja as xe,jc as at,kc as st,lb as D,ob as k,pb as E,qb as tt,sb as G,tb as q,ub as $,uc as g,vb as S,wb as P,xb as ae,yb as w,yc as O,zb as M}from"./chunk-HAWX5WNM.js";import{d as Xe}from"./chunk-WCABR6TI.js";var we="sm-debug-slots",cn="debug-slots",ln="is-debug-slots",mt=(()=>{class e{visible=ye(!1);constructor(){this.visible.set(this.resolveInitial()),xe(()=>{let t=this.visible();document.documentElement.classList.toggle(ln,t)})}toggle(){let t=!this.visible();this.visible.set(t);try{localStorage.setItem(we,t?"1":"0")}catch{}}resolveInitial(){let o=new URLSearchParams(window.location.search).get(cn);if(o==="1"||o==="true"){try{localStorage.setItem(we,"1")}catch{}return!0}if(o==="0"||o==="false"){try{localStorage.setItem(we,"0")}catch{}return!1}try{return localStorage.getItem(we)==="1"}catch{return!1}}static \u0275fac=function(o){return new(o||e)};static \u0275prov=re({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var ft=(()=>{class e{registry=ye({});setRegistry(t){t&&this.registry.set(t)}get(t){return this.registry()[t]}all(){return this.registry()}static \u0275fac=function(o){return new(o||e)};static \u0275prov=re({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function X(e){return typeof e=="object"&&e!==null}function ne(e,n){return X(e)&&Array.isArray(e[n])}function Te(e,n){return X(e)&&typeof e[n]=="string"}var V={panelHeader:"Plugin contributions",panelCount:e=>`${e} contribution${e===1?"":"s"}`,emptyDefault:"No contributions for this node.",rendererInvalid:"Contribution data failed schema validation.",rendererUnknownSlot:e=>`Unknown slot: ${e}. Update the UI to a newer catalog version.`,overflowBadge:e=>`+${e}`,overflowTooltip:e=>`Hidden: ${e}`,recordsCell:{boolTrue:"yes",boolFalse:"no"}};var dn=(e,n)=>n.label;function pn(e,n){if(e&1&&(w(0,"h5",1),C(1),M()),e&2){let t=y();u(),N(t.label())}}function un(e,n){if(e&1&&(w(0,"p",2),C(1),M()),e&2){let t=y();u(),N(t.emptyText())}}function mn(e,n){if(e&1&&(w(0,"li",4)(1,"span",5),C(2),M(),w(3,"span",6),ce(4,"span",7),M(),w(5,"span",8),C(6),M()()),e&2){let t=n.$implicit,o=y(2);D("title",t.tooltip??""),u(2),N(t.label),u(2),rt("width",o.percent(t.value),"%"),u(2),N(t.value)}}function fn(e,n){if(e&1&&(w(0,"ul",3),G(1,mn,7,5,"li",4,dn),M()),e&2){let t=y();u(),q(t.entries())}}var gt=(()=>{class e{inputs=O.required();typed=g(()=>{let t=this.inputs().payload;return X(t)?ne(t,"entries")?t:{entries:[]}:{entries:[]}});entries=g(()=>this.typed().entries??[]);label=g(()=>this.inputs().label);emptyText=g(()=>this.inputs().emptyText??V.emptyDefault);maxValue=g(()=>this.entries().reduce((o,i)=>i.value>o?i.value:o,0));percent(t){let o=this.maxValue();return o===0?0:Math.round(t/o*100)}static \u0275fac=function(o){return new(o||e)};static \u0275cmp=F({type:e,selectors:[["sm-node-breakdown"]],inputs:{inputs:[1,"inputs"]},decls:4,vars:3,consts:[[1,"vc-breakdown"],[1,"vc-breakdown__header"],[1,"vc-breakdown__empty"],[1,"vc-breakdown__rows"],[1,"vc-breakdown__row"],[1,"vc-breakdown__label"],[1,"vc-breakdown__bar-track"],["aria-hidden","true",1,"vc-breakdown__bar"],[1,"vc-breakdown__value"]],template:function(o,i){o&1&&(w(0,"section",0),k(1,pn,2,1,"h5",1),k(2,un,2,1,"p",2)(3,fn,3,0,"ul",3),M()),o&2&&(D("data-testid","renderer-node-breakdown"),u(),E(i.label()?1:-1),u(),E(i.entries().length===0?2:3))},styles:[".vc-breakdown__header[_ngcontent-%COMP%]{font-size:.85rem;color:var(--p-surface-700);margin:0 0 .5rem}.vc-breakdown__rows[_ngcontent-%COMP%]{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:.25rem}.vc-breakdown__row[_ngcontent-%COMP%]{display:grid;grid-template-columns:minmax(4rem,.4fr) 1fr 3rem;align-items:center;gap:.5rem;font-size:.85rem}.vc-breakdown__label[_ngcontent-%COMP%]{color:var(--p-surface-700);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.vc-breakdown__bar-track[_ngcontent-%COMP%]{background:var(--p-surface-100);border-radius:var(--sm-radius-md);height:.625rem;overflow:hidden}.vc-breakdown__bar[_ngcontent-%COMP%]{display:block;height:100%;background:var(--p-primary-500)}.vc-breakdown__value[_ngcontent-%COMP%]{text-align:right;color:var(--p-surface-600)}.vc-breakdown__empty[_ngcontent-%COMP%]{color:var(--p-surface-500);font-size:.85rem;margin:0}"],changeDetection:0})}return e})();function gn(e,n){if(e&1&&(w(0,"span",1),C(1),M()),e&2){let t=y(),o=y();De(o.hostClass()),u(),N(t.text)}}function vn(e,n){if(e&1&&ce(0,"i",1),e&2){let t=y(),o=y();De(o.hostClass()+" "+t.cls)}}function _n(e,n){e&1&&k(0,gn,2,3,"span",0)(1,vn,1,2,"i",0),e&2&&E(n.kind==="emoji"?0:1)}function hn(e){if(!e)return null;let n=e.trim();if(n.length===0)return null;let t=n.codePointAt(0)??0;if(!(t>=65&&t<=90||t>=97&&t<=122))return{kind:"emoji",text:n};if(/^pi pi-[a-z0-9-]+$/.test(n))return{kind:"pi",cls:n};if(/^pi-[a-z0-9-]+$/.test(n))return{kind:"pi",cls:`pi ${n}`};if(/^fa-(?:solid|regular|brands) fa-[a-z0-9-]+$/.test(n))return{kind:"fa",cls:n};if(/^fa-[a-z0-9-]+$/.test(n)){let i=n.slice(3);return i==="solid"||i==="regular"||i==="brands"||i.includes("fa-")?null:{kind:"fa",cls:`fa-solid ${n}`}}return null}var se=(()=>{class e{icon=O(void 0);hostClass=O("");resolved=g(()=>{let t=this.icon(),o=hn(t);return t&&!o&&console.warn(`[sm-icon] Invalid icon string "${t}". Expected emoji, pi-foo, pi pi-foo, fa-{solid|regular|brands} fa-foo, or fa-foo.`),o});static \u0275fac=function(o){return new(o||e)};static \u0275cmp=F({type:e,selectors:[["sm-icon"]],inputs:{icon:[1,"icon"],hostClass:[1,"hostClass"]},decls:1,vars:1,consts:[["aria-hidden","true",3,"class"],["aria-hidden","true"]],template:function(o,i){if(o&1&&k(0,_n,2,1),o&2){let r;E((r=i.resolved())?0:-1,r)}},styles:["[_nghost-%COMP%] i[_ngcontent-%COMP%], [_nghost-%COMP%] span[_ngcontent-%COMP%]{font-size:inherit;line-height:inherit}[_nghost-%COMP%] i[_ngcontent-%COMP%]{transform:translateY(1px)}"],changeDetection:0})}return e})();function yn(e,n){if(e&1&&(S(0,"span",3),C(1),P()),e&2){let t=y();D("aria-label",t.ariaLabel()),u(),N(t.value())}}var fe=(()=>{class e{inputs=O.required();typed=g(()=>{let t=this.inputs().payload;return typeof t!="object"||t===null?{value:0}:t});value=g(()=>this.typed().value);icon=g(()=>this.inputs().icon);severity=g(()=>this.typed().severity);resolvedTooltip=g(()=>this.typed().tooltip??this.inputs().tooltip??"");ariaLabel=g(()=>this.inputs().label??"");static \u0275fac=function(o){return new(o||e)};static \u0275cmp=F({type:e,selectors:[["sm-node-counter"]],inputs:{inputs:[1,"inputs"]},decls:4,vars:12,consts:[[1,"vc-counter",3,"pTooltip"],[1,"vc-counter__icon"],[3,"icon"],[1,"vc-counter__value"]],template:function(o,i){o&1&&(S(0,"span",0)(1,"span",1),ae(2,"sm-icon",2),P(),k(3,yn,2,2,"span",3),P()),o&2&&(J("vc-counter--info",i.severity()==="info")("vc-counter--warn",i.severity()==="warn")("vc-counter--success",i.severity()==="success")("vc-counter--danger",i.severity()==="danger"),$("pTooltip",i.resolvedTooltip()),D("data-testid","renderer-node-counter"),u(2),$("icon",i.icon()),u(),E(i.value()>0?3:-1))},dependencies:[K,Y,se],styles:[".vc-counter[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:.3rem;line-height:1}.vc-counter__icon[_ngcontent-%COMP%]{font-size:.6rem;line-height:1;display:block}.vc-counter__value[_ngcontent-%COMP%]{font-weight:600;color:var(--p-text-color);line-height:1;display:block}.vc-counter--info[_ngcontent-%COMP%], .vc-counter--info[_ngcontent-%COMP%] .vc-counter__value[_ngcontent-%COMP%]{color:var(--sm-severity-info)}.vc-counter--warn[_ngcontent-%COMP%]{color:var(--sm-severity-warn);opacity:.85}.vc-counter--warn[_ngcontent-%COMP%] .vc-counter__value[_ngcontent-%COMP%]{color:var(--sm-severity-warn)}.vc-counter--success[_ngcontent-%COMP%], .vc-counter--success[_ngcontent-%COMP%] .vc-counter__value[_ngcontent-%COMP%]{color:var(--sm-severity-success)}.vc-counter--danger[_ngcontent-%COMP%]{color:var(--sm-severity-error);opacity:.85}.vc-counter--danger[_ngcontent-%COMP%] .vc-counter__value[_ngcontent-%COMP%]{color:var(--sm-severity-error)}"],changeDetection:0})}return e})();var xn=(e,n)=>n.key;function bn(e,n){if(e&1&&(S(0,"h5",1),C(1),P()),e&2){let t=y();u(),N(t.label())}}function Cn(e,n){if(e&1&&(S(0,"p",2),C(1),P()),e&2){let t=y();u(),N(t.emptyText())}}function wn(e,n){if(e&1&&(S(0,"dt",4),C(1),P(),S(2,"dd"),C(3),P()),e&2){let t=n.$implicit,o=y(2);$("pTooltip",t.tooltip??""),u(),N(t.key),u(2),N(o.formatValue(t.value))}}function Tn(e,n){if(e&1&&(S(0,"dl",3),G(1,wn,4,3,null,null,xn),P()),e&2){let t=y();u(),q(t.entries())}}var vt=(()=>{class e{inputs=O.required();typed=g(()=>{let t=this.inputs().payload;return X(t)?ne(t,"entries")?t:{entries:[]}:{entries:[]}});entries=g(()=>this.typed().entries??[]);label=g(()=>this.inputs().label);emptyText=g(()=>this.inputs().emptyText??V.emptyDefault);formatValue(t){return t==null?"\xB7":typeof t=="boolean"?t?"true":"false":String(t)}static \u0275fac=function(o){return new(o||e)};static \u0275cmp=F({type:e,selectors:[["sm-node-key-values"]],inputs:{inputs:[1,"inputs"]},decls:4,vars:3,consts:[[1,"vc-kv"],[1,"vc-kv__header"],[1,"vc-kv__empty"],[1,"vc-kv__list"],[3,"pTooltip"]],template:function(o,i){o&1&&(S(0,"section",0),k(1,bn,2,1,"h5",1),k(2,Cn,2,1,"p",2)(3,Tn,3,0,"dl",3),P()),o&2&&(D("data-testid","renderer-node-key-values"),u(),E(i.label()?1:-1),u(),E(i.entries().length===0?2:3))},dependencies:[K,Y],styles:[".vc-kv__header[_ngcontent-%COMP%]{font-size:.85rem;color:var(--p-surface-700);margin:0 0 .5rem}.vc-kv__list[_ngcontent-%COMP%]{display:grid;grid-template-columns:minmax(6rem,max-content) 1fr;gap:.25rem .75rem;margin:0;font-size:.85rem}.vc-kv__list[_ngcontent-%COMP%] dt[_ngcontent-%COMP%]{color:var(--p-surface-600);font-weight:500}.vc-kv__list[_ngcontent-%COMP%] dd[_ngcontent-%COMP%]{color:var(--p-surface-800);margin:0;word-break:break-word}.vc-kv__empty[_ngcontent-%COMP%]{color:var(--p-surface-500);font-size:.85rem;margin:0}"],changeDetection:0})}return e})();var Mn=(()=>{class e{router=Q(Ce);open(t){this.router.navigate(["/map"],{queryParams:{path:t}})}static \u0275fac=function(o){return new(o||e)};static \u0275prov=re({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),_t=new We("NODE_OPEN_INTENT",{providedIn:"root",factory:()=>Q(Mn)});var Nn=(e,n)=>n.path;function kn(e,n){if(e&1&&(w(0,"h5",1),C(1),M()),e&2){let t=y();u(),N(t.label())}}function En(e,n){if(e&1&&(w(0,"p",2),C(1),M()),e&2){let t=y();u(),N(t.emptyText())}}function In(e,n){if(e&1&&(w(0,"span",5),C(1),M()),e&2){let t=y().$implicit;u(),N(t.kind)}}function Dn(e,n){if(e&1){let t=ot();w(0,"li")(1,"button",4),it("click",function(){let i=Qe(t).$implicit,r=y(2);return Je(r.onOpenPath(i.path))}),k(2,In,2,1,"span",5),w(3,"span",6),C(4),M()()()}if(e&2){let t=n.$implicit;u(2),E(t.kind?2:-1),u(2),N(t.label??t.path)}}function On(e,n){if(e&1&&(w(0,"ul",3),G(1,Dn,5,2,"li",null,Nn),M()),e&2){let t=y();u(),q(t.entries())}}var ht=(()=>{class e{openIntent=Q(_t);inputs=O.required();typed=g(()=>{let t=this.inputs().payload;return X(t)?ne(t,"entries")?t:{entries:[]}:{entries:[]}});entries=g(()=>this.typed().entries??[]);label=g(()=>this.inputs().label);emptyText=g(()=>this.inputs().emptyText??V.emptyDefault);onOpenPath(t){this.openIntent.open(t)}static \u0275fac=function(o){return new(o||e)};static \u0275cmp=F({type:e,selectors:[["sm-node-link-list"]],inputs:{inputs:[1,"inputs"]},decls:4,vars:3,consts:[[1,"vc-links"],[1,"vc-links__header"],[1,"vc-links__empty"],[1,"vc-links__list"],["type","button",1,"vc-links__btn",3,"click"],[1,"vc-links__kind"],[1,"vc-links__label"]],template:function(o,i){o&1&&(w(0,"section",0),k(1,kn,2,1,"h5",1),k(2,En,2,1,"p",2)(3,On,3,0,"ul",3),M()),o&2&&(D("data-testid","renderer-node-link-list"),u(),E(i.label()?1:-1),u(),E(i.entries().length===0?2:3))},styles:[".vc-links__header[_ngcontent-%COMP%]{font-size:.85rem;color:var(--p-surface-700);margin:0 0 .5rem}.vc-links__list[_ngcontent-%COMP%]{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:.125rem;font-size:.85rem}.vc-links__btn[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:.5rem;background:transparent;border:0;padding:.25rem .5rem;border-radius:var(--sm-radius-md);color:var(--p-primary-600);cursor:pointer;text-align:left;width:100%}.vc-links__btn[_ngcontent-%COMP%]:hover{background:var(--p-surface-100)}.vc-links__kind[_ngcontent-%COMP%]{color:var(--p-surface-500);font-family:var(--p-font-family-mono);font-size:.75rem}.vc-links__label[_ngcontent-%COMP%]{word-break:break-all}.vc-links__empty[_ngcontent-%COMP%]{color:var(--p-surface-500);font-size:.85rem;margin:0}"],changeDetection:0})}return e})();var yt=(e,n)=>n.key;function Sn(e,n){if(e&1&&(w(0,"h5",1),C(1),M()),e&2){let t=y();u(),N(t.label())}}function Pn(e,n){if(e&1&&(w(0,"p",2),C(1),M()),e&2){let t=y();u(),N(t.emptyText())}}function Fn(e,n){if(e&1&&(w(0,"th"),C(1),M()),e&2){let t=n.$implicit;u(),N(t.label)}}function An(e,n){if(e&1&&ce(0,"i",4),e&2){let t=y(4);D("aria-label",t.texts.boolTrue)}}function Ln(e,n){if(e&1&&ce(0,"i",5),e&2){let t=y(4);D("aria-label",t.texts.boolFalse)}}function $n(e,n){}function Rn(e,n){if(e&1&&C(0),e&2){let t=y().$implicit,o=y().$implicit,i=y(2);be(" ",i.cellText(o[t.key])," ")}}function zn(e,n){if(e&1&&(w(0,"td"),k(1,An,1,1,"i",4)(2,Ln,1,1,"i",5)(3,$n,0,0)(4,Rn,1,1),M()),e&2){let t,o=n.$implicit,i=y().$implicit,r=y(2);u(),E((t=r.cellKind(i[o.key]))==="bool-true"?1:t==="bool-false"?2:t==="empty"?3:4)}}function jn(e,n){if(e&1&&(w(0,"tr"),G(1,zn,5,1,"td",null,yt),M()),e&2){let t=y(2);u(),q(t.columns())}}function Bn(e,n){if(e&1&&(w(0,"table",3)(1,"thead")(2,"tr"),G(3,Fn,2,1,"th",null,yt),M()(),w(5,"tbody"),G(6,jn,3,0,"tr",null,tt),M()()),e&2){let t=y();u(3),q(t.columns()),u(3),q(t.rows())}}var xt=(()=>{class e{inputs=O.required();typed=g(()=>{let t=this.inputs().payload;return X(t)?!ne(t,"columns")||!ne(t,"rows")?{columns:[],rows:[]}:t:{columns:[],rows:[]}});columns=g(()=>this.typed().columns??[]);rows=g(()=>this.typed().rows??[]);label=g(()=>this.inputs().label);emptyText=g(()=>this.inputs().emptyText??V.emptyDefault);texts=V.recordsCell;cellKind(t){return t==null?"empty":typeof t=="boolean"?t?"bool-true":"bool-false":"text"}cellText(t){return t==null?"":String(t)}static \u0275fac=function(o){return new(o||e)};static \u0275cmp=F({type:e,selectors:[["sm-node-records"]],inputs:{inputs:[1,"inputs"]},decls:4,vars:3,consts:[[1,"vc-records"],[1,"vc-records__header"],[1,"vc-records__empty"],[1,"vc-records__table"],["role","img",1,"pi","pi-check","vc-records__bool","vc-records__bool--true"],["role","img",1,"pi","pi-minus","vc-records__bool","vc-records__bool--false"]],template:function(o,i){o&1&&(w(0,"section",0),k(1,Sn,2,1,"h5",1),k(2,Pn,2,1,"p",2)(3,Bn,8,0,"table",3),M()),o&2&&(D("data-testid","renderer-node-records"),u(),E(i.label()?1:-1),u(),E(i.rows().length===0?2:3))},styles:[".vc-records__header[_ngcontent-%COMP%]{font-size:.85rem;color:var(--p-surface-700);margin:0 0 .5rem}.vc-records__table[_ngcontent-%COMP%]{width:100%;border-collapse:collapse;font-size:.85rem}.vc-records__table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{text-align:left;padding:.25rem .5rem;border-bottom:1px solid var(--p-surface-200);color:var(--p-surface-700);font-weight:600}.vc-records__table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding:.25rem .5rem;border-bottom:1px solid var(--p-surface-100);color:var(--p-surface-800);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:16rem}.vc-records__empty[_ngcontent-%COMP%]{color:var(--p-surface-500);font-size:.85rem;margin:0}.vc-records__bool[_ngcontent-%COMP%]{font-size:.9rem;line-height:1}.vc-records__bool--true[_ngcontent-%COMP%]{color:var(--p-primary-color)}.vc-records__bool--false[_ngcontent-%COMP%]{color:var(--p-text-muted-color)}"],changeDetection:0})}return e})();function Vn(e,n){if(e&1&&(w(0,"h5",1),C(1),M()),e&2){let t=y();u(),N(t.label())}}function Un(e,n){if(e&1&&(w(0,"p",2),C(1),M()),e&2){let t=y();u(),N(t.emptyText())}}function Gn(e,n){if(e&1&&(w(0,"pre",3),C(1),M()),e&2){let t=y();u(),N(t.markdown())}}var bt=(()=>{class e{inputs=O.required();typed=g(()=>{let t=this.inputs().payload;return X(t)?Te(t,"markdown")?t:{markdown:""}:{markdown:""}});markdown=g(()=>this.typed().markdown??"");label=g(()=>this.inputs().label);emptyText=g(()=>this.inputs().emptyText??V.emptyDefault);static \u0275fac=function(o){return new(o||e)};static \u0275cmp=F({type:e,selectors:[["sm-node-markdown"]],inputs:{inputs:[1,"inputs"]},decls:4,vars:3,consts:[[1,"vc-markdown"],[1,"vc-markdown__header"],[1,"vc-markdown__empty"],[1,"vc-markdown__body"]],template:function(o,i){o&1&&(w(0,"section",0),k(1,Vn,2,1,"h5",1),k(2,Un,2,1,"p",2)(3,Gn,2,1,"pre",3),M()),o&2&&(D("data-testid","renderer-node-markdown"),u(),E(i.label()?1:-1),u(),E(i.markdown()?3:2))},styles:[".vc-markdown__header[_ngcontent-%COMP%]{font-size:.85rem;color:var(--p-surface-700);margin:0 0 .5rem}.vc-markdown__body[_ngcontent-%COMP%]{font-size:.85rem;color:var(--p-surface-800);background:var(--p-surface-50);padding:.5rem;border-radius:var(--sm-radius-md);white-space:pre-wrap;word-break:break-word;margin:0;max-height:12rem;overflow:auto}.vc-markdown__empty[_ngcontent-%COMP%]{color:var(--p-surface-500);font-size:.85rem;margin:0}"],changeDetection:0})}return e})();function qn(e,n){if(e&1&&(S(0,"span",1),C(1),P()),e&2){let t=y();u(),N(t.icon())}}var Ct=(()=>{class e{inputs=O.required();typed=g(()=>{let t=this.inputs().payload;return typeof t!="object"||t===null?{label:""}:t});label=g(()=>this.typed().label||"");icon=g(()=>this.inputs().icon);severity=g(()=>this.typed().severity);resolvedTooltip=g(()=>this.typed().tooltip??this.inputs().tooltip??"");static \u0275fac=function(o){return new(o||e)};static \u0275cmp=F({type:e,selectors:[["sm-node-tag"]],inputs:{inputs:[1,"inputs"]},decls:4,vars:12,consts:[[1,"vc-tag",3,"pTooltip"],["aria-hidden","true",1,"vc-tag__icon"],[1,"vc-tag__label"]],template:function(o,i){o&1&&(S(0,"span",0),k(1,qn,2,1,"span",1),S(2,"span",2),C(3),P()()),o&2&&(J("vc-tag--info",i.severity()==="info")("vc-tag--warn",i.severity()==="warn")("vc-tag--success",i.severity()==="success")("vc-tag--danger",i.severity()==="danger"),$("pTooltip",i.resolvedTooltip()),D("data-testid","renderer-node-tag"),u(),E(i.icon()?1:-1),u(2),N(i.label()))},dependencies:[K,Y],styles:[".vc-tag[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:.3rem;line-height:1}.vc-tag__icon[_ngcontent-%COMP%]{font-size:.85em;line-height:1;display:block}.vc-tag__label[_ngcontent-%COMP%]{font-weight:500;line-height:1;display:block}.vc-tag--info[_ngcontent-%COMP%]{background:var(--sm-severity-info-bg);color:var(--sm-severity-info);padding:.1rem .4rem;border-radius:var(--sm-radius-sm)}.vc-tag--warn[_ngcontent-%COMP%]{background:var(--sm-severity-warn-bg);color:var(--sm-severity-warn);padding:.1rem .4rem;border-radius:var(--sm-radius-sm)}.vc-tag--success[_ngcontent-%COMP%]{background:var(--sm-severity-success-bg);color:var(--sm-severity-success);padding:.1rem .4rem;border-radius:var(--sm-radius-sm)}.vc-tag--danger[_ngcontent-%COMP%]{background:var(--sm-severity-error-bg);color:var(--sm-severity-error);padding:.1rem .4rem;border-radius:var(--sm-radius-sm)}"],changeDetection:0})}return e})();var Hn=()=>[],wt=(e,n)=>n.label;function Yn(e,n){if(e&1&&(w(0,"h5",1),C(1),M()),e&2){let t=y();u(),N(t.label())}}function Kn(e,n){if(e&1&&(w(0,"p",2),C(1),M()),e&2){let t=y();u(),N(t.emptyText())}}function Xn(e,n){if(e&1&&(w(0,"span",5),C(1),M()),e&2){let t=y().$implicit;u(),N(t.marker)}}function Wn(e,n){if(e&1&&(w(0,"span",5),C(1),M()),e&2){let t=y().$implicit;u(),N(t.marker)}}function Qn(e,n){if(e&1&&(w(0,"li",4),k(1,Wn,2,1,"span",5),w(2,"span",6),C(3),M()()),e&2){let t=n.$implicit;D("title",t.tooltip??""),u(),E(t.marker?1:-1),u(2),N(t.label)}}function Jn(e,n){if(e&1&&(w(0,"ul",7),G(1,Qn,4,3,"li",4,wt),M()),e&2){let t=y().$implicit;u(),q(t.children)}}function Zn(e,n){if(e&1&&(w(0,"li",4),k(1,Xn,2,1,"span",5),w(2,"span",6),C(3),M(),k(4,Jn,3,0,"ul",7),M()),e&2){let t=n.$implicit;D("title",t.tooltip??""),u(),E(t.marker?1:-1),u(2),N(t.label),u(),E(t.children&&t.children.length>0?4:-1)}}function eo(e,n){if(e&1&&(w(0,"ul",3),G(1,Zn,5,4,"li",4,wt),M()),e&2){let t=y();u(),q(t.root().children??at(0,Hn))}}var Tt=(()=>{class e{inputs=O.required();root=g(()=>{let t=this.inputs().payload;return X(t)?Te(t,"label")?t.children!==void 0&&!Array.isArray(t.children)?{label:""}:t:{label:""}:{label:""}});rootIsEmpty=g(()=>{let t=this.root();return!t.children||t.children.length===0});label=g(()=>this.inputs().label);emptyText=g(()=>this.inputs().emptyText??V.emptyDefault);static \u0275fac=function(o){return new(o||e)};static \u0275cmp=F({type:e,selectors:[["sm-node-tree"]],inputs:{inputs:[1,"inputs"]},decls:4,vars:3,consts:[[1,"vc-tree"],[1,"vc-tree__header"],[1,"vc-tree__empty"],["role","tree",1,"vc-tree__list"],["role","treeitem"],["aria-hidden","true",1,"vc-tree__marker"],[1,"vc-tree__label"],["role","group",1,"vc-tree__list"]],template:function(o,i){o&1&&(w(0,"section",0),k(1,Yn,2,1,"h5",1),k(2,Kn,2,1,"p",2)(3,eo,3,1,"ul",3),M()),o&2&&(D("data-testid","renderer-node-tree"),u(),E(i.label()?1:-1),u(),E(i.rootIsEmpty()?2:3))},styles:[".vc-tree__header[_ngcontent-%COMP%]{font-size:.85rem;color:var(--p-surface-700);margin:0 0 .5rem}.vc-tree__list[_ngcontent-%COMP%]{list-style:none;padding-left:1rem;margin:0;font-size:.85rem}.vc-tree__list[_ngcontent-%COMP%] > li[_ngcontent-%COMP%]{padding:.125rem 0}.vc-tree__marker[_ngcontent-%COMP%]{margin-right:.25rem;opacity:.7}.vc-tree__label[_ngcontent-%COMP%]{color:var(--p-surface-800)}.vc-tree__empty[_ngcontent-%COMP%]{color:var(--p-surface-500);font-size:.85rem;margin:0}"],changeDetection:0})}return e})();function to(e,n){if(e&1&&(S(0,"span",2),C(1),P()),e&2){let t=y();u(),N(t.formattedCount())}}var Mt=(()=>{class e{inputs=O.required();typed=g(()=>{let t=this.inputs().payload;return typeof t!="object"||t===null?{}:t});icon=g(()=>this.typed().icon??this.inputs().icon);severity=g(()=>this.typed().severity);count=g(()=>this.typed().count??null);resolvedTooltip=g(()=>this.typed().tooltip??this.inputs().tooltip??"");formattedCount=g(()=>{let t=this.count();return t===null?"":t>=99?"99+":String(t)});static \u0275fac=function(o){return new(o||e)};static \u0275cmp=F({type:e,selectors:[["sm-node-alert"]],inputs:{inputs:[1,"inputs"]},decls:3,vars:12,consts:[[1,"vc-alert",3,"pTooltip"],["hostClass","vc-alert__icon",3,"icon"],[1,"vc-alert__count"]],template:function(o,i){o&1&&(S(0,"span",0),ae(1,"sm-icon",1),k(2,to,2,1,"span",2),P()),o&2&&(J("vc-alert--info",i.severity()==="info")("vc-alert--warn",i.severity()==="warn")("vc-alert--success",i.severity()==="success")("vc-alert--danger",i.severity()==="danger"),$("pTooltip",i.resolvedTooltip()),D("data-testid","renderer-node-alert"),u(),$("icon",i.icon()),u(),E(i.count()!==null?2:-1))},dependencies:[K,Y,se],styles:[".vc-alert[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;gap:.125rem;min-width:1.1rem;min-height:1.1rem;font-size:.85rem;color:var(--p-surface-700)}.vc-alert--info[_ngcontent-%COMP%]{color:var(--sm-severity-info)}.vc-alert--warn[_ngcontent-%COMP%]{color:var(--sm-severity-warn)}.vc-alert--success[_ngcontent-%COMP%]{color:var(--sm-severity-success)}.vc-alert--danger[_ngcontent-%COMP%]{color:var(--sm-severity-error)}"],changeDetection:0})}return e})();var Nt=(()=>{class e{inputs=O.required();typed=g(()=>{let t=this.inputs().payload;return typeof t!="object"||t===null?{}:t});icon=g(()=>this.typed().icon??this.inputs().icon);severity=g(()=>this.typed().severity);resolvedTooltip=g(()=>this.typed().tooltip??this.inputs().tooltip??"");ariaLabel=g(()=>this.inputs().label??"");static \u0275fac=function(o){return new(o||e)};static \u0275cmp=F({type:e,selectors:[["sm-node-icon"]],inputs:{inputs:[1,"inputs"]},decls:2,vars:12,consts:[[1,"vc-icon",3,"pTooltip"],["hostClass","vc-icon__glyph",3,"icon"]],template:function(o,i){o&1&&(S(0,"span",0),ae(1,"sm-icon",1),P()),o&2&&(J("vc-icon--info",i.severity()==="info")("vc-icon--warn",i.severity()==="warn")("vc-icon--success",i.severity()==="success")("vc-icon--danger",i.severity()==="danger"),$("pTooltip",i.resolvedTooltip()),D("aria-label",i.ariaLabel())("data-testid","renderer-node-icon"),u(),$("icon",i.icon()))},dependencies:[K,Y,se],styles:[".vc-icon[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;line-height:1;width:22px;height:22px}.vc-icon__glyph[_ngcontent-%COMP%]{font-size:.7rem;line-height:1;display:block}.vc-icon--info[_ngcontent-%COMP%]{color:var(--sm-severity-info)}.vc-icon--warn[_ngcontent-%COMP%]{color:var(--sm-severity-warn)}.vc-icon--success[_ngcontent-%COMP%]{color:var(--sm-severity-success)}.vc-icon--danger[_ngcontent-%COMP%]{color:var(--sm-severity-error)}"],changeDetection:0})}return e})();function no(e,n){if(e&1&&(S(0,"span",3),C(1),P()),e&2){let t=y();u(),N(t.label())}}var kt=(()=>{class e{inputs=O.required();typed=g(()=>{let t=this.inputs().payload;return typeof t!="object"||t===null?{value:""}:t});value=g(()=>String(this.typed().value??""));label=g(()=>this.typed().label??this.inputs().label);icon=g(()=>this.inputs().icon);severity=g(()=>this.typed().severity);resolvedTooltip=g(()=>this.typed().tooltip??this.inputs().tooltip??"");static \u0275fac=function(o){return new(o||e)};static \u0275cmp=F({type:e,selectors:[["sm-scope-stat"]],inputs:{inputs:[1,"inputs"]},decls:5,vars:13,consts:[[1,"vc-stat",3,"pTooltip"],["hostClass","vc-stat__icon",3,"icon"],[1,"vc-stat__value"],[1,"vc-stat__label"]],template:function(o,i){o&1&&(S(0,"span",0),ae(1,"sm-icon",1),S(2,"span",2),C(3),P(),k(4,no,2,1,"span",3),P()),o&2&&(J("vc-stat--info",i.severity()==="info")("vc-stat--warn",i.severity()==="warn")("vc-stat--success",i.severity()==="success")("vc-stat--danger",i.severity()==="danger"),$("pTooltip",i.resolvedTooltip()),D("data-testid","renderer-scope-stat"),u(),$("icon",i.icon()),u(2),N(i.value()),u(),E(i.label()?4:-1))},dependencies:[K,Y,se],styles:[".vc-stat[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:.25rem;padding:.125rem .5rem;border-radius:.75rem;font-size:.85rem;background:var(--p-surface-100);color:var(--p-surface-800)}.vc-stat__label[_ngcontent-%COMP%]{color:var(--p-surface-500);font-size:.8rem}.vc-stat--info[_ngcontent-%COMP%]{background:var(--p-blue-100);color:var(--p-blue-700)}.vc-stat--warn[_ngcontent-%COMP%]{background:var(--p-yellow-100);color:var(--p-yellow-800)}.vc-stat--success[_ngcontent-%COMP%]{background:var(--p-green-100);color:var(--p-green-700)}.vc-stat--danger[_ngcontent-%COMP%]{background:var(--p-red-100);color:var(--p-red-700)}"],changeDetection:0})}return e})();var Fe={"card.title.right":Nt,"card.subtitle.left":fe,"card.footer.left":fe,"card.footer.right":fe,"graph.node.alert":Mt,"inspector.header.badge.counter":fe,"inspector.header.badge.tag":Ct,"inspector.body.panel.breakdown":gt,"inspector.body.panel.records":xt,"inspector.body.panel.tree":Tt,"inspector.body.panel.key-values":vt,"inspector.body.panel.link-list":ht,"inspector.body.panel.markdown":bt,"topbar.nav.start":kt};function Et(e){return e in Fe}var le={"topbar.nav.start":{id:"topbar.nav.start",cardinality:"multi",maxItems:3,order:"alphabetical",strategy:"append"},"inspector.header.badge.counter":{id:"inspector.header.badge.counter",cardinality:"multi",maxItems:4,order:"alphabetical",strategy:"append"},"inspector.header.badge.tag":{id:"inspector.header.badge.tag",cardinality:"multi",maxItems:4,order:"alphabetical",strategy:"append"},"inspector.body.panel.breakdown":{id:"inspector.body.panel.breakdown",cardinality:"multi",maxItems:50,order:"alphabetical",strategy:"append"},"inspector.body.panel.records":{id:"inspector.body.panel.records",cardinality:"multi",maxItems:50,order:"alphabetical",strategy:"append"},"inspector.body.panel.tree":{id:"inspector.body.panel.tree",cardinality:"multi",maxItems:50,order:"alphabetical",strategy:"append"},"inspector.body.panel.key-values":{id:"inspector.body.panel.key-values",cardinality:"multi",maxItems:50,order:"alphabetical",strategy:"append"},"inspector.body.panel.link-list":{id:"inspector.body.panel.link-list",cardinality:"multi",maxItems:50,order:"alphabetical",strategy:"append"},"inspector.body.panel.markdown":{id:"inspector.body.panel.markdown",cardinality:"multi",maxItems:50,order:"alphabetical",strategy:"append"},"card.footer.left":{id:"card.footer.left",cardinality:"multi",maxItems:5,order:"priority",strategy:"append",respectSeverity:!0},"card.footer.right":{id:"card.footer.right",cardinality:"multi",maxItems:5,order:"priority",strategy:"append",respectSeverity:!0},"card.subtitle.left":{id:"card.subtitle.left",cardinality:"multi",maxItems:3,order:"priority",strategy:"append",respectSeverity:!0},"card.title.right":{id:"card.title.right",cardinality:"multi",maxItems:2,order:"priority",strategy:"append",respectSeverity:!0},"graph.node.alert":{id:"graph.node.alert",cardinality:"multi",maxItems:1,order:"severity",strategy:"append",showOverflowBadge:!1}};var oo=e=>({inputs:e}),io=(e,n)=>n.qualifiedId;function ro(e,n){e&1&&nt(0)}function ao(e,n){if(e&1&&(S(0,"span",1),et(1,ro,1,0,"ng-container",3),P()),e&2){let t=n.$implicit,o=y(2);D("data-testid","contribution-"+t.qualifiedId.replaceAll("/","-")),u(),$("ngComponentOutlet",o.rendererFor(t.slot))("ngComponentOutletInputs",st(3,oo,t.rendererInputs))}}function so(e,n){if(e&1&&(S(0,"span",2),C(1),P()),e&2){let t=y(2);$("pTooltip",t.overflowTooltip()),u(),be(" ",t.overflowBadge()," ")}}function co(e,n){if(e&1&&(S(0,"span",0),G(1,ao,2,5,"span",1,io),k(3,so,2,2,"span",2),P()),e&2){let t=y();D("data-testid","view-contributions-host-"+t.testidSuffix()),u(),q(t.visible()),u(2),E(t.overflowCount()>0&&t.showOverflowBadge()?3:-1)}}var Tr=(()=>{class e{slot=O.required();node=O(null);debugSlots=Q(mt);debugVisible=this.debugSlots.visible;testidSuffix=g(()=>this.slot().replaceAll(".","-"));registry=Q(ft);dispatched=g(()=>{let t=this.node();if(!t)return[];let o=t.contributions??[];if(o.length===0)return[];let i=this.slot(),r=o.filter(c=>c.slot===i).filter(c=>Et(c.slot));return this.sortBySlotOrder(r,i).map(c=>({qualifiedId:`${c.pluginId}/${c.extensionId}/${c.contributionId}`,slot:c.slot,rendererInputs:this.buildInputs(c,i)}))});visible=g(()=>{let t=this.dispatched(),o=le[this.slot()].maxItems;return t.slice(0,o)});overflowCount=g(()=>{let t=this.dispatched(),o=le[this.slot()].maxItems;return Math.max(0,t.length-o)});showOverflowBadge=g(()=>le[this.slot()].showOverflowBadge!==!1);overflowBadge=g(()=>V.overflowBadge(this.overflowCount()));overflowTooltip=g(()=>{let t=this.dispatched(),o=le[this.slot()].maxItems,i=t.slice(o).map(r=>r.qualifiedId).join(", ");return V.overflowTooltip(i)});rendererFor(t){return Fe[t]}buildInputs(t,o){let i=`${t.pluginId}/${t.extensionId}/${t.contributionId}`,r=this.registry.get(i),c=le[o].respectSeverity!==!1,a=t.payload;if(!c&&typeof a=="object"&&a!==null&&"severity"in a){let s=a,{severity:m}=s;a=Xe(s,["severity"])}let l={pluginId:t.pluginId,extensionId:t.extensionId,contributionId:t.contributionId,payload:a};return r?.label&&(l.label=r.label),r?.tooltip&&(l.tooltip=r.tooltip),r?.icon&&(l.icon=r.icon),r?.emptyText&&(l.emptyText=r.emptyText),l}sortBySlotOrder(t,o){let i=le[o].order;return i==="fifo"?t.slice():i==="priority"?t.slice().sort((r,c)=>{let a=this.priorityFor(r),l=this.priorityFor(c);return a!==l?a-l:Ae(r,c)}):i==="severity"?t.slice().sort((r,c)=>{let a=It(r),l=It(c);return a!==l?l-a:Ae(r,c)}):t.slice().sort(Ae)}priorityFor(t){let o=`${t.pluginId}/${t.extensionId}/${t.contributionId}`;return this.registry.get(o)?.priority??100}static \u0275fac=function(o){return new(o||e)};static \u0275cmp=F({type:e,selectors:[["sm-view-contributions-host"]],hostVars:3,hostBindings:function(o,i){o&2&&(D("data-debug-slot",i.debugVisible()?i.slot():null),J("sm-debug-slot",i.debugVisible()))},inputs:{slot:[1,"slot"],node:[1,"node"]},decls:1,vars:1,consts:[[1,"vch"],[1,"vch__slot"],["data-testid","view-contributions-host-overflow",1,"vch__overflow",3,"pTooltip"],[4,"ngComponentOutlet","ngComponentOutletInputs"]],template:function(o,i){o&1&&k(0,co,4,2,"span",0),o&2&&E(i.visible().length>0||i.overflowCount()>0?0:-1)},dependencies:[ct,K,Y],styles:[".vch[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:.7rem;flex-wrap:wrap}.vch__slot[_ngcontent-%COMP%]{display:inline-flex}.vch__overflow[_ngcontent-%COMP%]{display:inline-flex;align-items:center;padding:.125rem .5rem;border-radius:.75rem;background:var(--p-surface-100);color:var(--p-surface-600);font-size:.8rem;cursor:default}"],changeDetection:0})}return e})();function Ae(e,n){let t=`${e.pluginId}/${e.extensionId}/${e.contributionId}`,o=`${n.pluginId}/${n.extensionId}/${n.contributionId}`;return t<o?-1:t>o?1:0}function It(e){let n=e.payload;if(typeof n!="object"||n===null)return 0;switch(n.severity){case"danger":return 4;case"warn":return 3;case"info":return 2;case"success":return 1;default:return 0}}var Pr=(()=>{class e{router=Q(Ce);theme=Q(ut);destroyRef=Q(Ze);constructor(){this.router.events.pipe(dt(this.destroyRef)).subscribe(t=>{if(t instanceof lt){let o=lo(t.urlAfterRedirects);o!==null&&Pe(`ui.view.${o}`)}}),xe(()=>this.syncTheme())}trackFeature(t){Pe(`ui.feature.${t}`)}syncTheme(){pt({theme_base:this.theme.resolved(),theme_extra:this.theme.extraTheme()??"none"})}static \u0275fac=function(o){return new(o||e)};static \u0275prov=re({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function lo(e){let n=e.split("?")[0]??"";return n==="/"||n.startsWith("/map")?"map":n.startsWith("/files")?"files":null}function Le(e,n){var t,o=1;e==null&&(e=0),n==null&&(n=0);function i(){var r,c=t.length,a,l=0,s=0;for(r=0;r<c;++r)a=t[r],l+=a.x,s+=a.y;for(l=(l/c-e)*o,s=(s/c-n)*o,r=0;r<c;++r)a=t[r],a.x-=l,a.y-=s}return i.initialize=function(r){t=r},i.x=function(r){return arguments.length?(e=+r,i):e},i.y=function(r){return arguments.length?(n=+r,i):n},i.strength=function(r){return arguments.length?(o=+r,i):o},i}function Dt(e){let n=+this._x.call(null,e),t=+this._y.call(null,e);return Ot(this.cover(n,t),n,t,e)}function Ot(e,n,t,o){if(isNaN(n)||isNaN(t))return e;var i,r=e._root,c={data:o},a=e._x0,l=e._y0,s=e._x1,m=e._y1,h,_,p,T,f,d,v,x;if(!r)return e._root=c,e;for(;r.length;)if((f=n>=(h=(a+s)/2))?a=h:s=h,(d=t>=(_=(l+m)/2))?l=_:m=_,i=r,!(r=r[v=d<<1|f]))return i[v]=c,e;if(p=+e._x.call(null,r.data),T=+e._y.call(null,r.data),n===p&&t===T)return c.next=r,i?i[v]=c:e._root=c,e;do i=i?i[v]=new Array(4):e._root=new Array(4),(f=n>=(h=(a+s)/2))?a=h:s=h,(d=t>=(_=(l+m)/2))?l=_:m=_;while((v=d<<1|f)===(x=(T>=_)<<1|p>=h));return i[x]=r,i[v]=c,e}function St(e){var n,t,o=e.length,i,r,c=new Array(o),a=new Array(o),l=1/0,s=1/0,m=-1/0,h=-1/0;for(t=0;t<o;++t)isNaN(i=+this._x.call(null,n=e[t]))||isNaN(r=+this._y.call(null,n))||(c[t]=i,a[t]=r,i<l&&(l=i),i>m&&(m=i),r<s&&(s=r),r>h&&(h=r));if(l>m||s>h)return this;for(this.cover(l,s).cover(m,h),t=0;t<o;++t)Ot(this,c[t],a[t],e[t]);return this}function Pt(e,n){if(isNaN(e=+e)||isNaN(n=+n))return this;var t=this._x0,o=this._y0,i=this._x1,r=this._y1;if(isNaN(t))i=(t=Math.floor(e))+1,r=(o=Math.floor(n))+1;else{for(var c=i-t||1,a=this._root,l,s;t>e||e>=i||o>n||n>=r;)switch(s=(n<o)<<1|e<t,l=new Array(4),l[s]=a,a=l,c*=2,s){case 0:i=t+c,r=o+c;break;case 1:t=i-c,r=o+c;break;case 2:i=t+c,o=r-c;break;case 3:t=i-c,o=r-c;break}this._root&&this._root.length&&(this._root=a)}return this._x0=t,this._y0=o,this._x1=i,this._y1=r,this}function Ft(){var e=[];return this.visit(function(n){if(!n.length)do e.push(n.data);while(n=n.next)}),e}function At(e){return arguments.length?this.cover(+e[0][0],+e[0][1]).cover(+e[1][0],+e[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]}function j(e,n,t,o,i){this.node=e,this.x0=n,this.y0=t,this.x1=o,this.y1=i}function Lt(e,n,t){var o,i=this._x0,r=this._y0,c,a,l,s,m=this._x1,h=this._y1,_=[],p=this._root,T,f;for(p&&_.push(new j(p,i,r,m,h)),t==null?t=1/0:(i=e-t,r=n-t,m=e+t,h=n+t,t*=t);T=_.pop();)if(!(!(p=T.node)||(c=T.x0)>m||(a=T.y0)>h||(l=T.x1)<i||(s=T.y1)<r))if(p.length){var d=(c+l)/2,v=(a+s)/2;_.push(new j(p[3],d,v,l,s),new j(p[2],c,v,d,s),new j(p[1],d,a,l,v),new j(p[0],c,a,d,v)),(f=(n>=v)<<1|e>=d)&&(T=_[_.length-1],_[_.length-1]=_[_.length-1-f],_[_.length-1-f]=T)}else{var x=e-+this._x.call(null,p.data),I=n-+this._y.call(null,p.data),b=x*x+I*I;if(b<t){var A=Math.sqrt(t=b);i=e-A,r=n-A,m=e+A,h=n+A,o=p.data}}return o}function $t(e){if(isNaN(m=+this._x.call(null,e))||isNaN(h=+this._y.call(null,e)))return this;var n,t=this._root,o,i,r,c=this._x0,a=this._y0,l=this._x1,s=this._y1,m,h,_,p,T,f,d,v;if(!t)return this;if(t.length)for(;;){if((T=m>=(_=(c+l)/2))?c=_:l=_,(f=h>=(p=(a+s)/2))?a=p:s=p,n=t,!(t=t[d=f<<1|T]))return this;if(!t.length)break;(n[d+1&3]||n[d+2&3]||n[d+3&3])&&(o=n,v=d)}for(;t.data!==e;)if(i=t,!(t=t.next))return this;return(r=t.next)&&delete t.next,i?(r?i.next=r:delete i.next,this):n?(r?n[d]=r:delete n[d],(t=n[0]||n[1]||n[2]||n[3])&&t===(n[3]||n[2]||n[1]||n[0])&&!t.length&&(o?o[v]=t:this._root=t),this):(this._root=r,this)}function Rt(e){for(var n=0,t=e.length;n<t;++n)this.remove(e[n]);return this}function zt(){return this._root}function jt(){var e=0;return this.visit(function(n){if(!n.length)do++e;while(n=n.next)}),e}function Bt(e){var n=[],t,o=this._root,i,r,c,a,l;for(o&&n.push(new j(o,this._x0,this._y0,this._x1,this._y1));t=n.pop();)if(!e(o=t.node,r=t.x0,c=t.y0,a=t.x1,l=t.y1)&&o.length){var s=(r+a)/2,m=(c+l)/2;(i=o[3])&&n.push(new j(i,s,m,a,l)),(i=o[2])&&n.push(new j(i,r,m,s,l)),(i=o[1])&&n.push(new j(i,s,c,a,m)),(i=o[0])&&n.push(new j(i,r,c,s,m))}return this}function Vt(e){var n=[],t=[],o;for(this._root&&n.push(new j(this._root,this._x0,this._y0,this._x1,this._y1));o=n.pop();){var i=o.node;if(i.length){var r,c=o.x0,a=o.y0,l=o.x1,s=o.y1,m=(c+l)/2,h=(a+s)/2;(r=i[0])&&n.push(new j(r,c,a,m,h)),(r=i[1])&&n.push(new j(r,m,a,l,h)),(r=i[2])&&n.push(new j(r,c,h,m,s)),(r=i[3])&&n.push(new j(r,m,h,l,s))}t.push(o)}for(;o=t.pop();)e(o.node,o.x0,o.y0,o.x1,o.y1);return this}function Ut(e){return e[0]}function Gt(e){return arguments.length?(this._x=e,this):this._x}function qt(e){return e[1]}function Ht(e){return arguments.length?(this._y=e,this):this._y}function de(e,n,t){var o=new $e(n??Ut,t??qt,NaN,NaN,NaN,NaN);return e==null?o:o.addAll(e)}function $e(e,n,t,o,i,r){this._x=e,this._y=n,this._x0=t,this._y0=o,this._x1=i,this._y1=r,this._root=void 0}function Yt(e){for(var n={data:e.data},t=n;e=e.next;)t=t.next={data:e.data};return n}var H=de.prototype=$e.prototype;H.copy=function(){var e=new $e(this._x,this._y,this._x0,this._y0,this._x1,this._y1),n=this._root,t,o;if(!n)return e;if(!n.length)return e._root=Yt(n),e;for(t=[{source:n,target:e._root=new Array(4)}];n=t.pop();)for(var i=0;i<4;++i)(o=n.source[i])&&(o.length?t.push({source:o,target:n.target[i]=new Array(4)}):n.target[i]=Yt(o));return e};H.add=Dt;H.addAll=St;H.cover=Pt;H.data=Ft;H.extent=At;H.find=Lt;H.remove=$t;H.removeAll=Rt;H.root=zt;H.size=jt;H.visit=Bt;H.visitAfter=Vt;H.x=Gt;H.y=Ht;function L(e){return function(){return e}}function ee(e){return(e()-.5)*1e-6}function po(e){return e.x+e.vx}function uo(e){return e.y+e.vy}function Re(e){var n,t,o,i=1,r=1;typeof e!="function"&&(e=L(e==null?1:+e));function c(){for(var s,m=n.length,h,_,p,T,f,d,v=0;v<r;++v)for(h=de(n,po,uo).visitAfter(a),s=0;s<m;++s)_=n[s],f=t[_.index],d=f*f,p=_.x+_.vx,T=_.y+_.vy,h.visit(x);function x(I,b,A,U,W){var R=I.data,Z=I.r,z=f+Z;if(R){if(R.index>_.index){var oe=p-R.x-R.vx,ie=T-R.y-R.vy,te=oe*oe+ie*ie;te<z*z&&(oe===0&&(oe=ee(o),te+=oe*oe),ie===0&&(ie=ee(o),te+=ie*ie),te=(z-(te=Math.sqrt(te)))/te*i,_.vx+=(oe*=te)*(z=(Z*=Z)/(d+Z)),_.vy+=(ie*=te)*z,R.vx-=oe*(z=1-z),R.vy-=ie*z)}return}return b>p+z||U<p-z||A>T+z||W<T-z}}function a(s){if(s.data)return s.r=t[s.data.index];for(var m=s.r=0;m<4;++m)s[m]&&s[m].r>s.r&&(s.r=s[m].r)}function l(){if(n){var s,m=n.length,h;for(t=new Array(m),s=0;s<m;++s)h=n[s],t[h.index]=+e(h,s,n)}}return c.initialize=function(s,m){n=s,o=m,l()},c.iterations=function(s){return arguments.length?(r=+s,c):r},c.strength=function(s){return arguments.length?(i=+s,c):i},c.radius=function(s){return arguments.length?(e=typeof s=="function"?s:L(+s),l(),c):e},c}function mo(e){return e.index}function Kt(e,n){var t=e.get(n);if(!t)throw new Error("node not found: "+n);return t}function ze(e){var n=mo,t=h,o,i=L(30),r,c,a,l,s,m=1;e==null&&(e=[]);function h(d){return 1/Math.min(a[d.source.index],a[d.target.index])}function _(d){for(var v=0,x=e.length;v<m;++v)for(var I=0,b,A,U,W,R,Z,z;I<x;++I)b=e[I],A=b.source,U=b.target,W=U.x+U.vx-A.x-A.vx||ee(s),R=U.y+U.vy-A.y-A.vy||ee(s),Z=Math.sqrt(W*W+R*R),Z=(Z-r[I])/Z*d*o[I],W*=Z,R*=Z,U.vx-=W*(z=l[I]),U.vy-=R*z,A.vx+=W*(z=1-z),A.vy+=R*z}function p(){if(c){var d,v=c.length,x=e.length,I=new Map(c.map((A,U)=>[n(A,U,c),A])),b;for(d=0,a=new Array(v);d<x;++d)b=e[d],b.index=d,typeof b.source!="object"&&(b.source=Kt(I,b.source)),typeof b.target!="object"&&(b.target=Kt(I,b.target)),a[b.source.index]=(a[b.source.index]||0)+1,a[b.target.index]=(a[b.target.index]||0)+1;for(d=0,l=new Array(x);d<x;++d)b=e[d],l[d]=a[b.source.index]/(a[b.source.index]+a[b.target.index]);o=new Array(x),T(),r=new Array(x),f()}}function T(){if(c)for(var d=0,v=e.length;d<v;++d)o[d]=+t(e[d],d,e)}function f(){if(c)for(var d=0,v=e.length;d<v;++d)r[d]=+i(e[d],d,e)}return _.initialize=function(d,v){c=d,s=v,p()},_.links=function(d){return arguments.length?(e=d,p(),_):e},_.id=function(d){return arguments.length?(n=d,_):n},_.iterations=function(d){return arguments.length?(m=+d,_):m},_.strength=function(d){return arguments.length?(t=typeof d=="function"?d:L(+d),T(),_):t},_.distance=function(d){return arguments.length?(i=typeof d=="function"?d:L(+d),f(),_):i},_}var fo={value:()=>{}};function Wt(){for(var e=0,n=arguments.length,t={},o;e<n;++e){if(!(o=arguments[e]+"")||o in t||/[\s.]/.test(o))throw new Error("illegal type: "+o);t[o]=[]}return new Me(t)}function Me(e){this._=e}function go(e,n){return e.trim().split(/^|\s+/).map(function(t){var o="",i=t.indexOf(".");if(i>=0&&(o=t.slice(i+1),t=t.slice(0,i)),t&&!n.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:o}})}Me.prototype=Wt.prototype={constructor:Me,on:function(e,n){var t=this._,o=go(e+"",t),i,r=-1,c=o.length;if(arguments.length<2){for(;++r<c;)if((i=(e=o[r]).type)&&(i=vo(t[i],e.name)))return i;return}if(n!=null&&typeof n!="function")throw new Error("invalid callback: "+n);for(;++r<c;)if(i=(e=o[r]).type)t[i]=Xt(t[i],e.name,n);else if(n==null)for(i in t)t[i]=Xt(t[i],e.name,null);return this},copy:function(){var e={},n=this._;for(var t in n)e[t]=n[t].slice();return new Me(e)},call:function(e,n){if((i=arguments.length-2)>0)for(var t=new Array(i),o=0,i,r;o<i;++o)t[o]=arguments[o+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(r=this._[e],o=0,i=r.length;o<i;++o)r[o].value.apply(n,t)},apply:function(e,n,t){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var o=this._[e],i=0,r=o.length;i<r;++i)o[i].value.apply(n,t)}};function vo(e,n){for(var t=0,o=e.length,i;t<o;++t)if((i=e[t]).name===n)return i.value}function Xt(e,n,t){for(var o=0,i=e.length;o<i;++o)if(e[o].name===n){e[o]=fo,e=e.slice(0,o).concat(e.slice(o+1));break}return t!=null&&e.push({name:n,value:t}),e}var je=Wt;var me=0,ve=0,ge=0,Jt=1e3,Ne,_e,ke=0,pe=0,Ee=0,he=typeof performance=="object"&&performance.now?performance:Date,Zt=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function Ue(){return pe||(Zt(_o),pe=he.now()+Ee)}function _o(){pe=0}function Be(){this._call=this._time=this._next=null}Be.prototype=Ie.prototype={constructor:Be,restart:function(e,n,t){if(typeof e!="function")throw new TypeError("callback is not a function");t=(t==null?Ue():+t)+(n==null?0:+n),!this._next&&_e!==this&&(_e?_e._next=this:Ne=this,_e=this),this._call=e,this._time=t,Ve()},stop:function(){this._call&&(this._call=null,this._time=1/0,Ve())}};function Ie(e,n,t){var o=new Be;return o.restart(e,n,t),o}function en(){Ue(),++me;for(var e=Ne,n;e;)(n=pe-e._time)>=0&&e._call.call(void 0,n),e=e._next;--me}function Qt(){pe=(ke=he.now())+Ee,me=ve=0;try{en()}finally{me=0,yo(),pe=0}}function ho(){var e=he.now(),n=e-ke;n>Jt&&(Ee-=n,ke=e)}function yo(){for(var e,n=Ne,t,o=1/0;n;)n._call?(o>n._time&&(o=n._time),e=n,n=n._next):(t=n._next,n._next=null,n=e?e._next=t:Ne=t);_e=e,Ve(o)}function Ve(e){if(!me){ve&&(ve=clearTimeout(ve));var n=e-pe;n>24?(e<1/0&&(ve=setTimeout(Qt,e-he.now()-Ee)),ge&&(ge=clearInterval(ge))):(ge||(ke=he.now(),ge=setInterval(ho,Jt)),me=1,Zt(Qt))}}function tn(){let e=1;return()=>(e=(1664525*e+1013904223)%4294967296)/4294967296}function nn(e){return e.x}function on(e){return e.y}var xo=10,bo=Math.PI*(3-Math.sqrt(5));function Ge(e){var n,t=1,o=.001,i=1-Math.pow(o,1/300),r=0,c=.6,a=new Map,l=Ie(h),s=je("tick","end"),m=tn();e==null&&(e=[]);function h(){_(),s.call("tick",n),t<o&&(l.stop(),s.call("end",n))}function _(f){var d,v=e.length,x;f===void 0&&(f=1);for(var I=0;I<f;++I)for(t+=(r-t)*i,a.forEach(function(b){b(t)}),d=0;d<v;++d)x=e[d],x.fx==null?x.x+=x.vx*=c:(x.x=x.fx,x.vx=0),x.fy==null?x.y+=x.vy*=c:(x.y=x.fy,x.vy=0);return n}function p(){for(var f=0,d=e.length,v;f<d;++f){if(v=e[f],v.index=f,v.fx!=null&&(v.x=v.fx),v.fy!=null&&(v.y=v.fy),isNaN(v.x)||isNaN(v.y)){var x=xo*Math.sqrt(.5+f),I=f*bo;v.x=x*Math.cos(I),v.y=x*Math.sin(I)}(isNaN(v.vx)||isNaN(v.vy))&&(v.vx=v.vy=0)}}function T(f){return f.initialize&&f.initialize(e,m),f}return p(),n={tick:_,restart:function(){return l.restart(h),n},stop:function(){return l.stop(),n},nodes:function(f){return arguments.length?(e=f,p(),a.forEach(T),n):e},alpha:function(f){return arguments.length?(t=+f,n):t},alphaMin:function(f){return arguments.length?(o=+f,n):o},alphaDecay:function(f){return arguments.length?(i=+f,n):+i},alphaTarget:function(f){return arguments.length?(r=+f,n):r},velocityDecay:function(f){return arguments.length?(c=1-f,n):1-c},randomSource:function(f){return arguments.length?(m=f,a.forEach(T),n):m},force:function(f,d){return arguments.length>1?(d==null?a.delete(f):a.set(f,T(d)),n):a.get(f)},find:function(f,d,v){var x=0,I=e.length,b,A,U,W,R;for(v==null?v=1/0:v*=v,x=0;x<I;++x)W=e[x],b=f-W.x,A=d-W.y,U=b*b+A*A,U<v&&(R=W,v=U);return R},on:function(f,d){return arguments.length>1?(s.on(f,d),n):s.on(f)}}}function qe(){var e,n,t,o,i=L(-30),r,c=1,a=1/0,l=.81;function s(p){var T,f=e.length,d=de(e,nn,on).visitAfter(h);for(o=p,T=0;T<f;++T)n=e[T],d.visit(_)}function m(){if(e){var p,T=e.length,f;for(r=new Array(T),p=0;p<T;++p)f=e[p],r[f.index]=+i(f,p,e)}}function h(p){var T=0,f,d,v=0,x,I,b;if(p.length){for(x=I=b=0;b<4;++b)(f=p[b])&&(d=Math.abs(f.value))&&(T+=f.value,v+=d,x+=d*f.x,I+=d*f.y);p.x=x/v,p.y=I/v}else{f=p,f.x=f.data.x,f.y=f.data.y;do T+=r[f.data.index];while(f=f.next)}p.value=T}function _(p,T,f,d){if(!p.value)return!0;var v=p.x-n.x,x=p.y-n.y,I=d-T,b=v*v+x*x;if(I*I/l<b)return b<a&&(v===0&&(v=ee(t),b+=v*v),x===0&&(x=ee(t),b+=x*x),b<c&&(b=Math.sqrt(c*b)),n.vx+=v*p.value*o/b,n.vy+=x*p.value*o/b),!0;if(p.length||b>=a)return;(p.data!==n||p.next)&&(v===0&&(v=ee(t),b+=v*v),x===0&&(x=ee(t),b+=x*x),b<c&&(b=Math.sqrt(c*b)));do p.data!==n&&(I=r[p.data.index]*o/b,n.vx+=v*I,n.vy+=x*I);while(p=p.next)}return s.initialize=function(p,T){e=p,t=T,m()},s.strength=function(p){return arguments.length?(i=typeof p=="function"?p:L(+p),m(),s):i},s.distanceMin=function(p){return arguments.length?(c=p*p,s):Math.sqrt(c)},s.distanceMax=function(p){return arguments.length?(a=p*p,s):Math.sqrt(a)},s.theta=function(p){return arguments.length?(l=p*p,s):Math.sqrt(l)},s}function He(e){var n=L(.1),t,o,i;typeof e!="function"&&(e=L(e==null?0:+e));function r(a){for(var l=0,s=t.length,m;l<s;++l)m=t[l],m.vx+=(i[l]-m.x)*o[l]*a}function c(){if(t){var a,l=t.length;for(o=new Array(l),i=new Array(l),a=0;a<l;++a)o[a]=isNaN(i[a]=+e(t[a],a,t))?0:+n(t[a],a,t)}}return r.initialize=function(a){t=a,c()},r.strength=function(a){return arguments.length?(n=typeof a=="function"?a:L(+a),c(),r):n},r.x=function(a){return arguments.length?(e=typeof a=="function"?a:L(+a),c(),r):e},r}function Ye(e){var n=L(.1),t,o,i;typeof e!="function"&&(e=L(e==null?0:+e));function r(a){for(var l=0,s=t.length,m;l<s;++l)m=t[l],m.vy+=(i[l]-m.y)*o[l]*a}function c(){if(t){var a,l=t.length;for(o=new Array(l),i=new Array(l),a=0;a<l;++a)o[a]=isNaN(i[a]=+e(t[a],a,t))?0:+n(t[a],a,t)}}return r.initialize=function(a){t=a,c()},r.strength=function(a){return arguments.length?(n=typeof a=="function"?a:L(+a),c(),r):n},r.y=function(a){return arguments.length?(e=typeof a=="function"?a:L(+a),c(),r):e},r}var Co=["network-simplex","longest-path","force"];function Wa(e){return e!=="force"}function Qa(e){return e!=="force"}var wo=["TOP_BOTTOM","BOTTOM_TOP","LEFT_RIGHT","RIGHT_LEFT"],To=["compact","normal","spacious"],rn={compact:{nodeGap:40,layerGap:56},normal:{nodeGap:64,layerGap:96},spacious:{nodeGap:96,layerGap:144}},Ja="network-simplex",Za="TOP_BOTTOM",es="normal";function ts(e){return typeof e=="string"&&Co.includes(e)}function ns(e){return typeof e=="string"&&wo.includes(e)}function os(e){return typeof e=="string"&&To.includes(e)}var Ke=260,an=120;function ds(e,n){let t=n?.links??[],o=new Set(e.map(h=>h.path)),i=Oe(e),r=new Set,c=0,a=0,l=0,s=0,m=0;for(let h of t){if(!o.has(h.source)){c++;continue}let _=Se(h.target,h.trigger?.normalizedTrigger??null,i);if(!o.has(_)){a++;continue}if(h.source===_){l++;continue}let p=sn(h.kind,h.source,_);if(r.has(p)){s++;continue}r.add(p),m++}return{raw:t.length,drawn:m,brokenSource:c,brokenTarget:a,selfLoops:l,duplicates:s}}function ps(e,n){let t=e.map(i=>i.path).sort(),o=n.map(i=>i.id).sort();return`${t.length}|${t.join(",")}|${o.length}|${o.join(",")}`}function us(e,n){let t=new Set(e.map(s=>s.path)),o=Oe(e),i=new Map,r=n?.links??[];for(let s of r){if(!t.has(s.source))continue;let m=Se(s.target,s.trigger?.normalizedTrigger??null,o);if(!t.has(m)||s.source===m)continue;let h=sn(s.kind,s.source,m),_=typeof s.confidence=="number"?s.confidence:.6,p=i.get(h);p?_>p.confidence&&(p.confidence=_):i.set(h,{id:h,from:s.source,to:m,kind:s.kind,confidence:_})}let c=[...i.values()],a=new Map;for(let s of e)a.set(s.path,s);let l=new Map;for(let s of n?.nodes??[])l.set(s.path,s);return{nodesByPath:a,apiNodesByPath:l,edges:c}}async function ms(e,n,t,o){let i={width:Ke,height:an},r=n.map(m=>({id:m.path,size:i})),c=t.map(m=>({source:m.from,target:m.to})),a=rn[o.spacing],l=await e.calculate(r,c,{algorithm:o.algorithm,direction:o.direction,nodeGap:a.nodeGap,layerGap:a.layerGap}),s=new Map;for(let{id:m,position:h}of l.nodes)s.set(m,{x:h.x,y:h.y});return s}function fs(e,n){let t=e.map(a=>({id:a.path})),o=n.map(a=>({source:a.from,target:a.to})),i=Ge(t).force("link",ze(o).id(a=>a.id).distance(90).strength(1)).force("charge",qe().strength(-200)).force("center",Le(0,0)).force("x",He(0).strength(.06)).force("y",Ye(0).strength(.06)).force("collide",Re(Ke/2+12)).stop(),r=400;for(let a=0;a<r;a++)i.tick();let c=new Map;for(let a of t)c.set(a.id,{x:(a.x??0)-Ke/2,y:(a.y??0)-an/2});return c}function gs(e,n,t,o=null){let i=e.edges.filter(l=>n.has(l.from)&&n.has(l.to)&&(o===null||o.has(l.kind))),r=new Map,c=new Map;for(let l of i)r.set(l.from,(r.get(l.from)??0)+1),c.set(l.to,(c.get(l.to)??0)+1);let a=[];for(let l of n){let s=e.nodesByPath.get(l);if(!s)continue;let m=e.apiNodesByPath.get(l),h=t.get(l),_=e.positions.get(l)??{x:0,y:0},p=h?{x:h.x,y:h.y}:_;a.push({id:l,path:l,view:s,kind:s.kind,position:p,stats:{linksIn:c.get(l)??0,linksOut:r.get(l)??0,bytesTotal:m?.bytes.total,tokensTotal:m?.tokens?.total,externalRefsCount:m?.externalRefsCount},summary:Mo(s)})}return{nodes:a,edges:i}}function Mo(e){let n={injectionDetected:!1,contentQuality:"clean"},t=(e.frontmatter.description??e.frontmatter.name??"").trim();return{kind:"markdown",confidence:.6,safety:n,whatItCovers:t||`${e.kind} entry`,topics:[],keyFacts:[]}}function sn(e,n,t){return`${e}:${n}::${t}`}export{Co as a,Wa as b,Qa as c,wo as d,To as e,Ja as f,Za as g,es as h,ts as i,ns as j,os as k,mt as l,ft as m,Tr as n,Pr as o,ds as p,ps as q,us as r,ms as s,fs as t,gs as u};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as st,c as lt,d as rt}from"./chunk-
|
|
1
|
+
import{a as st,c as lt,d as rt}from"./chunk-UV3QRBRR.js";import{A as Me,D as we,H as te,a as w,b as U,c as it,g as nt,i as ot,j as Ie,k as V,l as K,m as De,p as ze,q as ee,r as at,s as Oe,t as Ve,w as k}from"./chunk-WPUUCIS3.js";import{A as tt,C as Ee,O as J,a as Je,d as Le,h as Se,l as Be,m as Ae,p as Ue,r as Ke,u as re,v as Fe,x as et}from"./chunk-4SG4352Z.js";import{g as We}from"./chunk-EPBUSS3I.js";import{g as ye,j as xe,k as Ge,l as Te,m as ve,q as le}from"./chunk-VNA3TMIO.js";import{$ as je,$a as Ne,Ab as Q,Bb as X,Cb as Y,Db as S,Ga as Pe,Gb as M,Hb as fe,Ib as I,Ic as d,Jc as W,Ka as p,Kb as l,L as N,Lb as ge,M as ne,Mb as ae,Nb as he,O as de,Ob as Ze,Pb as m,Q as f,Qb as _,Ta as ke,Ub as $e,Vb as Qe,W as g,X as h,Xb as se,Y as F,Yb as b,Za as O,Zb as Xe,_a as oe,_b as Ye,ab as ue,bb as z,ca as y,cb as c,da as me,ha as _e,ic as Ce,kc as be,la as v,lb as L,mc as qe,ob as x,pb as T,ra as Re,rc as D,ub as s,uc as q,vb as u,wb as C,xb as E,yb as Z,yc as G,zb as $}from"./chunk-HAWX5WNM.js";import{a as P}from"./chunk-WCABR6TI.js";var yt=["data-p-icon","window-maximize"],ct=(()=>{class t extends Me{pathId;onInit(){this.pathId="url(#"+w()+")"}static \u0275fac=(()=>{let e;return function(i){return(e||(e=v(t)))(i||t)}})();static \u0275cmp=O({type:t,selectors:[["","data-p-icon","window-maximize"]],features:[z],attrs:yt,decls:5,vars:2,consts:[["fill-rule","evenodd","clip-rule","evenodd","d","M7 14H11.8C12.3835 14 12.9431 13.7682 13.3556 13.3556C13.7682 12.9431 14 12.3835 14 11.8V2.2C14 1.61652 13.7682 1.05694 13.3556 0.644365C12.9431 0.231785 12.3835 0 11.8 0H2.2C1.61652 0 1.05694 0.231785 0.644365 0.644365C0.231785 1.05694 0 1.61652 0 2.2V7C0 7.15913 0.063214 7.31174 0.175736 7.42426C0.288258 7.53679 0.44087 7.6 0.6 7.6C0.75913 7.6 0.911742 7.53679 1.02426 7.42426C1.13679 7.31174 1.2 7.15913 1.2 7V2.2C1.2 1.93478 1.30536 1.68043 1.49289 1.49289C1.68043 1.30536 1.93478 1.2 2.2 1.2H11.8C12.0652 1.2 12.3196 1.30536 12.5071 1.49289C12.6946 1.68043 12.8 1.93478 12.8 2.2V11.8C12.8 12.0652 12.6946 12.3196 12.5071 12.5071C12.3196 12.6946 12.0652 12.8 11.8 12.8H7C6.84087 12.8 6.68826 12.8632 6.57574 12.9757C6.46321 13.0883 6.4 13.2409 6.4 13.4C6.4 13.5591 6.46321 13.7117 6.57574 13.8243C6.68826 13.9368 6.84087 14 7 14ZM9.77805 7.42192C9.89013 7.534 10.0415 7.59788 10.2 7.59995C10.3585 7.59788 10.5099 7.534 10.622 7.42192C10.7341 7.30985 10.798 7.15844 10.8 6.99995V3.94242C10.8066 3.90505 10.8096 3.86689 10.8089 3.82843C10.8079 3.77159 10.7988 3.7157 10.7824 3.6623C10.756 3.55552 10.701 3.45698 10.622 3.37798C10.5099 3.2659 10.3585 3.20202 10.2 3.19995H7.00002C6.84089 3.19995 6.68828 3.26317 6.57576 3.37569C6.46324 3.48821 6.40002 3.64082 6.40002 3.79995C6.40002 3.95908 6.46324 4.11169 6.57576 4.22422C6.68828 4.33674 6.84089 4.39995 7.00002 4.39995H8.80006L6.19997 7.00005C6.10158 7.11005 6.04718 7.25246 6.04718 7.40005C6.04718 7.54763 6.10158 7.69004 6.19997 7.80005C6.30202 7.91645 6.44561 7.98824 6.59997 8.00005C6.75432 7.98824 6.89791 7.91645 6.99997 7.80005L9.60002 5.26841V6.99995C9.6021 7.15844 9.66598 7.30985 9.77805 7.42192ZM1.4 14H3.8C4.17066 13.9979 4.52553 13.8498 4.78763 13.5877C5.04973 13.3256 5.1979 12.9707 5.2 12.6V10.2C5.1979 9.82939 5.04973 9.47452 4.78763 9.21242C4.52553 8.95032 4.17066 8.80215 3.8 8.80005H1.4C1.02934 8.80215 0.674468 8.95032 0.412371 9.21242C0.150274 9.47452 0.00210008 9.82939 0 10.2V12.6C0.00210008 12.9707 0.150274 13.3256 0.412371 13.5877C0.674468 13.8498 1.02934 13.9979 1.4 14ZM1.25858 10.0586C1.29609 10.0211 1.34696 10 1.4 10H3.8C3.85304 10 3.90391 10.0211 3.94142 10.0586C3.97893 10.0961 4 10.147 4 10.2V12.6C4 12.6531 3.97893 12.704 3.94142 12.7415C3.90391 12.779 3.85304 12.8 3.8 12.8H1.4C1.34696 12.8 1.29609 12.779 1.25858 12.7415C1.22107 12.704 1.2 12.6531 1.2 12.6V10.2C1.2 10.147 1.22107 10.0961 1.25858 10.0586Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(n,i){n&1&&(F(),Z(0,"g"),Q(1,"path",0),$(),Z(2,"defs")(3,"clipPath",1),Q(4,"rect",2),$()()),n&2&&(L("clip-path",i.pathId),p(3),fe("id",i.pathId))},encapsulation:2})}return t})();var xt=["data-p-icon","window-minimize"],pt=(()=>{class t extends Me{pathId;onInit(){this.pathId="url(#"+w()+")"}static \u0275fac=(()=>{let e;return function(i){return(e||(e=v(t)))(i||t)}})();static \u0275cmp=O({type:t,selectors:[["","data-p-icon","window-minimize"]],features:[z],attrs:xt,decls:5,vars:2,consts:[["fill-rule","evenodd","clip-rule","evenodd","d","M11.8 0H2.2C1.61652 0 1.05694 0.231785 0.644365 0.644365C0.231785 1.05694 0 1.61652 0 2.2V7C0 7.15913 0.063214 7.31174 0.175736 7.42426C0.288258 7.53679 0.44087 7.6 0.6 7.6C0.75913 7.6 0.911742 7.53679 1.02426 7.42426C1.13679 7.31174 1.2 7.15913 1.2 7V2.2C1.2 1.93478 1.30536 1.68043 1.49289 1.49289C1.68043 1.30536 1.93478 1.2 2.2 1.2H11.8C12.0652 1.2 12.3196 1.30536 12.5071 1.49289C12.6946 1.68043 12.8 1.93478 12.8 2.2V11.8C12.8 12.0652 12.6946 12.3196 12.5071 12.5071C12.3196 12.6946 12.0652 12.8 11.8 12.8H7C6.84087 12.8 6.68826 12.8632 6.57574 12.9757C6.46321 13.0883 6.4 13.2409 6.4 13.4C6.4 13.5591 6.46321 13.7117 6.57574 13.8243C6.68826 13.9368 6.84087 14 7 14H11.8C12.3835 14 12.9431 13.7682 13.3556 13.3556C13.7682 12.9431 14 12.3835 14 11.8V2.2C14 1.61652 13.7682 1.05694 13.3556 0.644365C12.9431 0.231785 12.3835 0 11.8 0ZM6.368 7.952C6.44137 7.98326 6.52025 7.99958 6.6 8H9.8C9.95913 8 10.1117 7.93678 10.2243 7.82426C10.3368 7.71174 10.4 7.55913 10.4 7.4C10.4 7.24087 10.3368 7.08826 10.2243 6.97574C10.1117 6.86321 9.95913 6.8 9.8 6.8H8.048L10.624 4.224C10.73 4.11026 10.7877 3.95982 10.7849 3.80438C10.7822 3.64894 10.7192 3.50063 10.6093 3.3907C10.4994 3.28077 10.3511 3.2178 10.1956 3.21506C10.0402 3.21232 9.88974 3.27002 9.776 3.376L7.2 5.952V4.2C7.2 4.04087 7.13679 3.88826 7.02426 3.77574C6.91174 3.66321 6.75913 3.6 6.6 3.6C6.44087 3.6 6.28826 3.66321 6.17574 3.77574C6.06321 3.88826 6 4.04087 6 4.2V7.4C6.00042 7.47975 6.01674 7.55862 6.048 7.632C6.07656 7.70442 6.11971 7.7702 6.17475 7.82524C6.2298 7.88029 6.29558 7.92344 6.368 7.952ZM1.4 8.80005H3.8C4.17066 8.80215 4.52553 8.95032 4.78763 9.21242C5.04973 9.47452 5.1979 9.82939 5.2 10.2V12.6C5.1979 12.9707 5.04973 13.3256 4.78763 13.5877C4.52553 13.8498 4.17066 13.9979 3.8 14H1.4C1.02934 13.9979 0.674468 13.8498 0.412371 13.5877C0.150274 13.3256 0.00210008 12.9707 0 12.6V10.2C0.00210008 9.82939 0.150274 9.47452 0.412371 9.21242C0.674468 8.95032 1.02934 8.80215 1.4 8.80005ZM3.94142 12.7415C3.97893 12.704 4 12.6531 4 12.6V10.2C4 10.147 3.97893 10.0961 3.94142 10.0586C3.90391 10.0211 3.85304 10 3.8 10H1.4C1.34696 10 1.29609 10.0211 1.25858 10.0586C1.22107 10.0961 1.2 10.147 1.2 10.2V12.6C1.2 12.6531 1.22107 12.704 1.25858 12.7415C1.29609 12.779 1.34696 12.8 1.4 12.8H3.8C3.85304 12.8 3.90391 12.779 3.94142 12.7415Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(n,i){n&1&&(F(),Z(0,"g"),Q(1,"path",0),$(),Z(2,"defs")(3,"clipPath",1),Q(4,"rect",2),$()()),n&2&&(L("clip-path",i.pathId),p(3),fe("id",i.pathId))},encapsulation:2})}return t})();var dt=(()=>{class t extends ee{pFocusTrapDisabled=!1;platformId=f(Re);document=f(je);firstHiddenFocusableElement;lastHiddenFocusableElement;onInit(){le(this.platformId)&&!this.pFocusTrapDisabled&&!this.firstHiddenFocusableElement&&!this.lastHiddenFocusableElement&&this.createHiddenFocusableElements()}onChanges(e){e.pFocusTrapDisabled&&le(this.platformId)&&(e.pFocusTrapDisabled.currentValue?this.removeHiddenFocusableElements():this.createHiddenFocusableElements())}removeHiddenFocusableElements(){this.firstHiddenFocusableElement&&this.firstHiddenFocusableElement.parentNode&&this.firstHiddenFocusableElement.parentNode.removeChild(this.firstHiddenFocusableElement),this.lastHiddenFocusableElement&&this.lastHiddenFocusableElement.parentNode&&this.lastHiddenFocusableElement.parentNode.removeChild(this.lastHiddenFocusableElement)}getComputedSelector(e){return`:not(.p-hidden-focusable):not([data-p-hidden-focusable="true"])${e??""}`}createHiddenFocusableElements(){let n=i=>Ke("span",{class:"p-hidden-accessible p-hidden-focusable",tabindex:"0",role:"presentation","aria-hidden":!0,"data-p-hidden-accessible":!0,"data-p-hidden-focusable":!0,onFocus:i?.bind(this)});this.firstHiddenFocusableElement=n(this.onFirstHiddenElementFocus),this.lastHiddenFocusableElement=n(this.onLastHiddenElementFocus),this.firstHiddenFocusableElement.setAttribute("data-pc-section","firstfocusableelement"),this.lastHiddenFocusableElement.setAttribute("data-pc-section","lastfocusableelement"),this.el.nativeElement.prepend(this.firstHiddenFocusableElement),this.el.nativeElement.append(this.lastHiddenFocusableElement)}onFirstHiddenElementFocus(e){let{currentTarget:n,relatedTarget:i}=e,a=i===this.lastHiddenFocusableElement||!this.el.nativeElement?.contains(i)?et(n.parentElement,":not(.p-hidden-focusable)"):this.lastHiddenFocusableElement;Fe(a)}onLastHiddenElementFocus(e){let{currentTarget:n,relatedTarget:i}=e,a=i===this.firstHiddenFocusableElement||!this.el.nativeElement?.contains(i)?tt(n.parentElement,":not(.p-hidden-focusable)"):this.firstHiddenFocusableElement;Fe(a)}static \u0275fac=(()=>{let e;return function(i){return(e||(e=v(t)))(i||t)}})();static \u0275dir=Ne({type:t,selectors:[["","pFocusTrap",""]],inputs:{pFocusTrapDisabled:[2,"pFocusTrapDisabled","pFocusTrapDisabled",d]},features:[z]})}return t})();var mt=`
|
|
2
2
|
.p-dialog {
|
|
3
3
|
max-height: 90%;
|
|
4
4
|
transform: scale(1);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as ni}from"./chunk-
|
|
1
|
+
import{a as ni}from"./chunk-CO2ZOUSD.js";import{a as Xe,b as Yt,d as tt,e as ot,f as ii}from"./chunk-UV3QRBRR.js";import{A as Oe,B as Zt,C as et,F as Ke,H as it,I as Jt,S as nt,V as Xt,W as ei,X as ti,a as Ye,f as Kt,g as Qt,j as ve,k as D,l as Je,m as te,p as Y,q as le,t as qt,u as Gt,v as Wt,w as b,x as we,z as Ut}from"./chunk-WPUUCIS3.js";import{A as Rt,E as Le,G as pt,J as ze,N as Ht,Q as ut,R as $t,T as Ze,U as ye,V as Be,X as mt,b as Mt,ca as jt,d as Lt,k as zt,m as Bt,n as Dt,o as At,p as dt,u as Se,v as pe,w as Nt,x as Pt,y as Me}from"./chunk-4SG4352Z.js";import{g as Ft,i as Ue,j as Ie,k as $e,l as de,m as Z,q as je}from"./chunk-VNA3TMIO.js";import{$a as Ct,$b as ct,Ab as Ce,Bb as N,Cb as P,Db as O,Ga as bt,Gb as H,Hb as St,Ib as M,Ic as x,Jc as Pe,K as Ge,Ka as c,Kb as r,L as X,Lb as fe,M as ie,Mb as re,Nb as ge,O as q,Ob as Ae,Pb as u,Q as C,Qb as m,Ta as Te,Ub as oe,Vb as We,W as y,Wb as Ot,X as v,Xb as ke,Y as R,Yb as h,Za as z,Zb as xe,_a as ne,_b as Fe,ab as ee,bb as F,ca as _,cb as p,cc as Et,da as De,dc as Vt,ec as kt,ha as he,ic as U,ja as vt,jc as Ne,kc as B,la as T,lb as I,lc as _e,mb as xt,nb as It,ob as G,pb as W,rc as $,sb as wt,tb as Tt,ub as l,uc as ce,vb as f,wb as g,xb as Q,yb as at,yc as L,zb as rt}from"./chunk-HAWX5WNM.js";import{a as K,b as He}from"./chunk-WCABR6TI.js";var Ni=["data-p-icon","blank"],oi=(()=>{class t extends Oe{static \u0275fac=(()=>{let e;return function(n){return(e||(e=T(t)))(n||t)}})();static \u0275cmp=z({type:t,selectors:[["","data-p-icon","blank"]],features:[F],attrs:Ni,decls:1,vars:0,consts:[["width","1","height","1","fill","currentColor","fill-opacity","0"]],template:function(i,n){i&1&&(R(),Ce(0,"rect",0))},encapsulation:2})}return t})();var Pi=["data-p-icon","check"],si=(()=>{class t extends Oe{static \u0275fac=(()=>{let e;return function(n){return(e||(e=T(t)))(n||t)}})();static \u0275cmp=z({type:t,selectors:[["","data-p-icon","check"]],features:[F],attrs:Pi,decls:1,vars:0,consts:[["d","M4.86199 11.5948C4.78717 11.5923 4.71366 11.5745 4.64596 11.5426C4.57826 11.5107 4.51779 11.4652 4.46827 11.4091L0.753985 7.69483C0.683167 7.64891 0.623706 7.58751 0.580092 7.51525C0.536478 7.44299 0.509851 7.36177 0.502221 7.27771C0.49459 7.19366 0.506156 7.10897 0.536046 7.03004C0.565935 6.95111 0.613367 6.88 0.674759 6.82208C0.736151 6.76416 0.8099 6.72095 0.890436 6.69571C0.970973 6.67046 1.05619 6.66385 1.13966 6.67635C1.22313 6.68886 1.30266 6.72017 1.37226 6.76792C1.44186 6.81567 1.4997 6.8786 1.54141 6.95197L4.86199 10.2503L12.6397 2.49483C12.7444 2.42694 12.8689 2.39617 12.9932 2.40745C13.1174 2.41873 13.2343 2.47141 13.3251 2.55705C13.4159 2.64268 13.4753 2.75632 13.4938 2.87973C13.5123 3.00315 13.4888 3.1292 13.4271 3.23768L5.2557 11.4091C5.20618 11.4652 5.14571 11.5107 5.07801 11.5426C5.01031 11.5745 4.9368 11.5923 4.86199 11.5948Z","fill","currentColor"]],template:function(i,n){i&1&&(R(),Ce(0,"path",0))},encapsulation:2})}return t})();var Ri=["data-p-icon","chevron-down"],li=(()=>{class t extends Oe{static \u0275fac=(()=>{let e;return function(n){return(e||(e=T(t)))(n||t)}})();static \u0275cmp=z({type:t,selectors:[["","data-p-icon","chevron-down"]],features:[F],attrs:Ri,decls:1,vars:0,consts:[["d","M7.01744 10.398C6.91269 10.3985 6.8089 10.378 6.71215 10.3379C6.61541 10.2977 6.52766 10.2386 6.45405 10.1641L1.13907 4.84913C1.03306 4.69404 0.985221 4.5065 1.00399 4.31958C1.02276 4.13266 1.10693 3.95838 1.24166 3.82747C1.37639 3.69655 1.55301 3.61742 1.74039 3.60402C1.92777 3.59062 2.11386 3.64382 2.26584 3.75424L7.01744 8.47394L11.769 3.75424C11.9189 3.65709 12.097 3.61306 12.2748 3.62921C12.4527 3.64535 12.6199 3.72073 12.7498 3.84328C12.8797 3.96582 12.9647 4.12842 12.9912 4.30502C13.0177 4.48162 12.9841 4.662 12.8958 4.81724L7.58083 10.1322C7.50996 10.2125 7.42344 10.2775 7.32656 10.3232C7.22968 10.3689 7.12449 10.3944 7.01744 10.398Z","fill","currentColor"]],template:function(i,n){i&1&&(R(),Ce(0,"path",0))},encapsulation:2})}return t})();var Hi=["data-p-icon","search"],ai=(()=>{class t extends Oe{pathId;onInit(){this.pathId="url(#"+Ye()+")"}static \u0275fac=(()=>{let e;return function(n){return(e||(e=T(t)))(n||t)}})();static \u0275cmp=z({type:t,selectors:[["","data-p-icon","search"]],features:[F],attrs:Hi,decls:5,vars:2,consts:[["fill-rule","evenodd","clip-rule","evenodd","d","M2.67602 11.0265C3.6661 11.688 4.83011 12.0411 6.02086 12.0411C6.81149 12.0411 7.59438 11.8854 8.32483 11.5828C8.87005 11.357 9.37808 11.0526 9.83317 10.6803L12.9769 13.8241C13.0323 13.8801 13.0983 13.9245 13.171 13.9548C13.2438 13.985 13.3219 14.0003 13.4007 14C13.4795 14.0003 13.5575 13.985 13.6303 13.9548C13.7031 13.9245 13.7691 13.8801 13.8244 13.8241C13.9367 13.7116 13.9998 13.5592 13.9998 13.4003C13.9998 13.2414 13.9367 13.089 13.8244 12.9765L10.6807 9.8328C11.053 9.37773 11.3573 8.86972 11.5831 8.32452C11.8857 7.59408 12.0414 6.81119 12.0414 6.02056C12.0414 4.8298 11.6883 3.66579 11.0268 2.67572C10.3652 1.68564 9.42494 0.913972 8.32483 0.45829C7.22472 0.00260857 6.01418 -0.116618 4.84631 0.115686C3.67844 0.34799 2.60568 0.921393 1.76369 1.76338C0.921698 2.60537 0.348296 3.67813 0.115991 4.84601C-0.116313 6.01388 0.00291375 7.22441 0.458595 8.32452C0.914277 9.42464 1.68595 10.3649 2.67602 11.0265ZM3.35565 2.0158C4.14456 1.48867 5.07206 1.20731 6.02086 1.20731C7.29317 1.20731 8.51338 1.71274 9.41304 2.6124C10.3127 3.51206 10.8181 4.73226 10.8181 6.00457C10.8181 6.95337 10.5368 7.88088 10.0096 8.66978C9.48251 9.45868 8.73328 10.0736 7.85669 10.4367C6.98011 10.7997 6.01554 10.8947 5.08496 10.7096C4.15439 10.5245 3.2996 10.0676 2.62869 9.39674C1.95778 8.72583 1.50089 7.87104 1.31579 6.94046C1.13068 6.00989 1.22568 5.04532 1.58878 4.16874C1.95187 3.29215 2.56675 2.54292 3.35565 2.0158Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(i,n){i&1&&(R(),at(0,"g"),Ce(1,"path",0),rt(),at(2,"defs")(3,"clipPath",1),Ce(4,"rect",2),rt()()),i&2&&(I("clip-path",n.pathId),c(3),St("id",n.pathId))},encapsulation:2})}return t})();var ri=`
|
|
2
2
|
.p-message {
|
|
3
3
|
display: grid;
|
|
4
4
|
grid-template-rows: 1fr;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{U as k,Y as D,m as y,p as N,w as r,z as M}from"./chunk-
|
|
1
|
+
import{U as k,Y as D,m as y,p as N,w as r,z as M}from"./chunk-WPUUCIS3.js";import{$a as x,Ib as m,Ic as u,L as a,M as l,O as s,Q as o,Yb as b,_a as f,ab as g,bb as v,ic as I,ja as p,la as c,lb as h,uc as T,yc as i}from"./chunk-HAWX5WNM.js";var w=`
|
|
2
2
|
.p-inputtext {
|
|
3
3
|
font-family: inherit;
|
|
4
4
|
font-feature-settings: inherit;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{M as l,N as d,R as p}from"./chunk-
|
|
1
|
+
import{M as l,N as d,R as p}from"./chunk-WPUUCIS3.js";import{L as a,Q as s,ha as o,uc as r}from"./chunk-HAWX5WNM.js";import{a as c}from"./chunk-WCABR6TI.js";var S={triggerLabel:"Settings",triggerTooltip:"Settings",modalTitle:"Settings",closeLabel:"Close",sections:{plugins:"Plugins",general:"General",project:"Project",changelog:"Changelog",about:"About"},general:{heading:"General",intro:"Per-machine preferences.",loadErrorPrefix:"Could not load preferences:",saveErrorPrefix:"Could not save preferences:",toggles:{"updateCheck.enabled":{label:"Check for updates",description:"Check npm for newer @skill-map/cli releases."},telemetry:{label:"Send anonymous error & usage reports",description:"Report crashes and which features you use. No file contents or paths.",hint:"Restart sm for this to take effect."}},extraTheme:{label:"Theme",description:"Pick a specialty theme.",options:{none:{label:"None",description:"Use the topbar dark/light toggle."}}},storageHintLabel:"Settings are stored in:",storageHintPath:"~/.skill-map/settings.json"},project:{heading:"Project",introPrefix:"These settings apply only to this project and are saved in",introPath:".skill-map/settings.local.json",introSuffix:".",loadErrorPrefix:"Could not load project settings:",saveErrorPrefix:"Could not save project settings:",referencePathsLabel:"Folders for link validation",referencePathsDescription:"If your notes link to files outside this project, list those folders here. Skill-map checks them only to confirm the links work, nothing from these folders shows up in the map.",referencePathsPlaceholder:"~/Documents/research",commaForbidden:"Add one path at a time, without commas.",addPathLabel:"Add path",removePathLabel:"Remove",confirmDialogHeader:"Allow access to folders outside this project?",confirmDialogIntro:"This change lets the scan read files in:",confirmDialogAccept:"Allow access",confirmDialogReject:"Cancel",ignorePatternsLabel:"Ignored patterns",ignorePatternsDescriptionPrefix:"Patterns that exclude files and folders from the scan, stored in",ignorePatternsDescriptionFile:".skillmapignore",ignorePatternsDescriptionMiddle:"at the project root. Same syntax as",ignorePatternsDescriptionGitignore:".gitignore",ignorePatternsDescriptionSuffix:"(one pattern per line).",ignorePatternsPlaceholder:"secrets.md",ignorePatternEmpty:"Pattern cannot be empty or whitespace-only.",ignorePatternHasControlChar:"Pattern must be a single line without control characters.",ignorePatternDuplicate:"This pattern is already in the list.",addIgnorePatternLabel:"Add pattern",removeIgnorePatternLabel:"Remove",activeProviderLabel:"Active provider",activeProviderDescription:"Selects which provider sees this project. The map reflects how the chosen provider interprets your files.",activeProviderSourceAutodetect:"Auto-detected from your files (no value saved yet).",activeProviderSourceNone:"No provider detected. Install or enable a provider to start.",activeProviderDetectedPrefix:"Detected:",activeProviderEmptyOption:"(none)",activeProviderConfirmHeader:"Switch the active provider?",activeProviderConfirmIntro:"Switching will clear the persisted scan (nodes, links, issues). Jobs and history are kept. You will need to run `sm scan` after the switch.",activeProviderConfirmAccept:"Switch and clear scan",activeProviderConfirmReject:"Cancel",activeProviderSwitchedPrefix:"Lens switched. Cleared",activeProviderSwitchedSuffix:"scan table(s). Run `sm scan` to repopulate.",activeProviderSwitchedNoDb:"Lens switched. Run `sm scan` to populate the map under the new lens."},changelogHeading:"Changelog",changelogIntro:"What's new in skill-map. Each entry covers a release of @skill-map/cli (the CLI + bundled UI) and lists the user-facing changes plus the workspace(s) each one affects.",changelogEmpty:"No release notes yet. Future releases will populate this list automatically from the changesets shipped in each PR.",changelogInternalRelease:"Internal release. Focus on stability, infra, and refactors. No user-facing changes this time.",changelogAffectedPackages:"Affected packages",changelogFooterText:"Want the full changelog?",changelogFooterLinkLabel:"See it on GitHub \u2192",changelogFooterUrl:"https://github.com/crystian/skill-map/blob/main/src/CHANGELOG.md",aboutHeading:"About",aboutIntro:"Version information for the running CLI / server.",aboutCliLabel:"skill-map CLI",aboutSpecLabel:"Spec version",aboutSchemaLabel:"Schema version",aboutFolderLabel:"Project folder",aboutDbLabel:"Project DB",aboutDbValue:(e,i)=>e==="present"?i:`${e} \xB7 ${i}`,aboutLoading:"Loading\u2026",aboutUnknown:"-",aboutErrorPrefix:"Could not read health endpoint:",aboutLinksHeading:"Links",aboutWebsiteLabel:"Website",aboutGithubLabel:"GitHub",aboutWebsiteUrl:"https://skill-map.ai/",aboutGithubUrl:"https://github.com/crystian/skill-map",aboutStarHeading:"Enjoying skill-map?",aboutStarBody:"If it's useful to you, drop us a star on GitHub, it helps a lot and keeps the project alive.",aboutStarCta:"Star on GitHub",aboutStarA11y:"Open the skill-map repository on GitHub to give it a star",pluginsHeading:"Plugins",pluginsIntro:"Enable or disable installed plugins.",pluginsSearchPlaceholder:"Filter by name\u2026",pluginsSearchA11y:"Filter plugins by name",pluginsSearchEmpty:e=>`No plugins match "${e}".`,pluginsKindFilterAll:"All",pluginsKindFilterOptionA11y:(e,i)=>i?`Show only ${e} extensions`:"Show all kinds",pluginsSourceFilterOptionA11y:(e,i)=>i?`Show only ${e} plugins`:"Show all sources",pluginsFilterA11y:"Filter plugins by source and kind",pluginsFilterAllA11y:"Show every plugin (clear the source and kind filters)",pluginsProjectEmpty:"No project plugins yet. Drop one under .skill-map/plugins/ or create it with sm plugins create <id>.",unsavedChangesMessage:e=>e===1?'1 unsaved change. Click "Apply" to persist it.':`${e} unsaved changes. Click "Apply" to persist them.`,startsAsDisabledRowHint:"This plugin started disabled and is not loaded in memory. Restart `sm serve` for the change to take effect.",startsAsDisabledFooterHint:"Some plugins were disabled when the server started. Consider restarting `sm serve` so they take effect.",discardChanges:"Discard",applyAndClose:"Apply",discardA11y:"Discard pending plugin changes",applyA11y:"Apply pending plugin changes and refresh the map",confirmCloseTitle:"Apply pending changes?",confirmCloseBody:e=>e===1?"You have 1 unsaved change.":`You have ${e} unsaved changes.`,keepEditing:"Keep editing",sourceBuiltIn:"Built-in",sourceProject:"Project",enabledLabel:"Enabled",disabledLabel:"Disabled",lockedLabel:"Locked",lockedTooltip:"Locked by the host (cannot be toggled).",expandLabel:"Show extensions",collapseLabel:"Hide extensions",statusFailure:{"incompatible-spec":"Incompatible spec version","invalid-manifest":"Invalid manifest","load-error":"Failed to load","id-collision":"Plugin id collision"},loading:"Loading plugins\u2026",empty:"No plugins installed.",errorPrefix:"Could not load plugins:",toggleErrorPrefix:"Toggle failed:",a11y:{triggerLabel:"Open settings",pluginToggle:(e,i)=>i?`Enable plugin ${e}`:`Disable plugin ${e}`,extensionToggle:(e,i)=>i?`Enable ${e}`:`Disable ${e}`,pluginRow:e=>`Plugin ${e} row`,extensionRow:e=>`Extension ${e} row`}};var y="#9ca3af",k="#6b7280",A=(()=>{class e{_entries=o([]);providers=this._entries.asReadonly();index=r(()=>{let t=new Map;for(let n of this._entries())t.set(n.id,n);return t});ingest(t){if(!t)return;let n=[];for(let[b,v]of Object.entries(t))n.push(c({id:b},v));P(this._entries(),n)||this._entries.set(n)}lookup(t){return this.index().get(t)}cardChip(t){if(!t)return null;let n=this.lookup(t);return n?n.hideChip?null:u(n):g(t)}lensChip(t){if(!t)return null;let n=this.lookup(t);return n?u(n):g(t)}static \u0275fac=function(n){return new(n||e)};static \u0275prov=a({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function u(e){let i={label:e.label,color:e.color};return e.colorDark!==void 0&&(i.colorDark=e.colorDark),i}function g(e){return{label:e,color:y,colorDark:k}}function P(e,i){if(e.length!==i.length)return!1;for(let t=0;t<e.length;t++)if(JSON.stringify(e[t])!==JSON.stringify(i[t]))return!1;return!0}var f={available:"Update available",copiedLabel:"Copied!",tooltip:e=>`v${e} is available. Click to copy the install command.`,copyCommand:"npm i -g @skill-map/cli@latest",copiedTooltip:"Copied! Paste it in your terminal.",npmLinkUrl:"https://www.npmjs.com/package/@skill-map/cli",npmLinkTooltip:"Open on npm",npmLinkA11y:"Open the @skill-map/cli package page on npm",a11yLabel:e=>`Update available: version ${e}, click to copy the install command`,versionLabel:e=>`v${e}`,versionTooltip:e=>`skill-map CLI v${e}`,versionA11yLabel:e=>`Running version ${e}`,fetchFailed:e=>`UpdateCheckService: fetch failed (${e})`};var R=(()=>{class e{dataSource=s(l);status=o(null);isOutdated=r(()=>this.status()?.isOutdated===!0);latest=r(()=>this.status()?.latest??null);current=r(()=>this.status()?.current??null);async load(){try{let t=await this.dataSource.getUpdateStatus();this.status.set(t)}catch(t){let n=t instanceof Error?t.message:String(t);console.warn(f.fetchFailed(n))}}static \u0275fac=function(n){return new(n||e)};static \u0275prov=a({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var m={scanFailed:e=>`scan-trigger failed: ${e}`};var M=(()=>{class e{dataSource=s(l);loader=s(p);scanning=o(!1);scanError=o(null);async run(){if(!this.scanning()){this.scanning.set(!0),this.scanError.set(null);try{await this.dataSource.runScan(),await this.loader.load()}catch(t){let n=t instanceof d||t instanceof Error?t.message:String(t);this.scanError.set(n),console.warn(m.scanFailed(n))}finally{this.scanning.set(!1)}}}static \u0275fac=function(n){return new(n||e)};static \u0275prov=a({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();export{A as a,f as b,R as c,S as d,M as e};
|