@evomap/evolver-core 2.0.0 → 2.0.2
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/algo/antiDistill.js +1 -167
- package/dist/algo/bans.js +1 -33
- package/dist/algo/candidateAssembly.js +1 -273
- package/dist/algo/capabilityCandidates.js +1 -146
- package/dist/algo/confidence.js +1 -196
- package/dist/algo/conversationSniffer.js +1 -149
- package/dist/algo/cycleEngine.js +1 -625
- package/dist/algo/cycleFailureClassifier.js +1 -112
- package/dist/algo/epigenetics.js +1 -41
- package/dist/algo/evolutionEvent.js +1 -24
- package/dist/algo/exploration.js +1 -68
- package/dist/algo/geneHealth.js +1 -17
- package/dist/algo/geneIntake.js +1 -128
- package/dist/algo/genePromotion.js +1 -53
- package/dist/algo/geneSelection.js +1 -546
- package/dist/algo/index.js +1 -22
- package/dist/algo/memoryGraph.js +1 -86
- package/dist/algo/mutation.js +1 -22
- package/dist/algo/orchestrator.js +1 -87
- package/dist/algo/publishEligibility.js +1 -52
- package/dist/algo/solidify.js +1 -63
- package/dist/algo/strategyPresets.js +1 -61
- package/dist/algo/ucb1.js +1 -156
- package/dist/benchmark/antiGeneBenchmark.js +1 -252
- package/dist/benchmark/antiGeneImpact.js +1 -34
- package/dist/benchmark/antiGeneRollout.js +1 -269
- package/dist/benchmark/benchmark.js +1 -26
- package/dist/benchmark/evolutionThesisSolver.js +1 -41
- package/dist/benchmark/index.js +1 -7
- package/dist/benchmark/selectionFlatAbstention.js +1 -481
- package/dist/benchmark/thesis.js +1 -150
- package/dist/benchmark/triggerShift.js +1 -106
- package/dist/cycle/cycleTimeline.js +1 -74
- package/dist/cycle/index.js +1 -2
- package/dist/cycle/stateMachine.js +1 -25
- package/dist/hub/agentDirectory.js +1 -104
- package/dist/hub/assetCallLog.js +1 -195
- package/dist/hub/bindings.js +1 -121
- package/dist/hub/capability.js +1 -1
- package/dist/hub/conversationDistiller.js +1 -264
- package/dist/hub/fake.js +1 -70
- package/dist/hub/hubReview.js +1 -106
- package/dist/hub/index.js +1 -11
- package/dist/hub/ingest.js +1 -15
- package/dist/hub/questionGenerator.js +1 -408
- package/dist/hub/reuseDecision.js +1 -127
- package/dist/hub/sanitize.js +1 -322
- package/dist/material/boundary.js +1 -14
- package/dist/material/consumer.js +1 -55
- package/dist/material/emit.js +1 -52
- package/dist/material/factory.js +1 -25
- package/dist/material/index.js +1 -9
- package/dist/material/materialArchive.js +1 -466
- package/dist/material/materialStore.js +1 -69
- package/dist/material/sampling.js +1 -39
- package/dist/material/sources.js +1 -33
- package/dist/material/watermark.js +1 -76
- package/dist/personality/drift.js +1 -106
- package/dist/personality/events.js +1 -37
- package/dist/personality/evolveOps.js +1 -93
- package/dist/personality/index.js +1 -11
- package/dist/personality/mutate.js +1 -39
- package/dist/personality/pivot.js +1 -22
- package/dist/personality/prompt.js +1 -62
- package/dist/personality/riskGate.js +1 -80
- package/dist/personality/schema.js +1 -119
- package/dist/personality/select.js +1 -71
- package/dist/personality/stats.js +1 -82
- package/dist/personality/store.js +1 -92
- package/dist/schema/common.js +1 -17
- package/dist/schema/evolutionGraph.js +1 -187
- package/dist/schema/index.js +1 -6
- package/dist/schema/material.js +1 -50
- package/dist/schema/problem.js +1 -45
- package/dist/schema/proofOfWork.js +1 -9
- package/dist/schema/signal.js +1 -19
- package/dist/signals/curriculum.js +1 -202
- package/dist/signals/cycleHistoryFromEvents.js +1 -105
- package/dist/signals/expand.js +1 -293
- package/dist/signals/extractor.js +1 -82
- package/dist/signals/index.js +1 -8
- package/dist/signals/metaSignals.js +1 -200
- package/dist/signals/signalGate.js +1 -40
- package/dist/signals/taskDomain.js +1 -43
- package/dist/signals/traceSignals.js +1 -123
- package/dist/strategy/constraintAblation.js +1 -2820
- package/dist/strategy/constraintAblationPredicates.js +1 -339
- package/dist/strategy/experiment.js +1 -63
- package/dist/strategy/index.js +1 -3
- package/dist/strategy/strategyPoint.js +1 -23
- package/package.json +1 -1
|
@@ -1,104 +1 @@
|
|
|
1
|
-
export const AGENT_DIRECTORY_DEFAULT_LIMIT = 20;
|
|
2
|
-
export const AGENT_DIRECTORY_MAX_LIMIT = 50;
|
|
3
|
-
export const AGENT_DIRECTORY_DEFAULT_TIMEOUT_MS = 8_000;
|
|
4
|
-
export const AGENT_DIRECTORY_MAX_TIMEOUT_MS = 30_000;
|
|
5
|
-
export const AGENT_DIRECTORY_MAX_QUERY_LENGTH = 500;
|
|
6
|
-
export const AGENT_DIRECTORY_MAX_SIGNAL_COUNT = 20;
|
|
7
|
-
export const AGENT_DIRECTORY_MAX_SIGNAL_LENGTH = 64;
|
|
8
|
-
export const AGENT_DIRECTORY_MAX_CURSOR_LENGTH = 256;
|
|
9
|
-
export const AGENT_DIRECTORY_MAX_AGENT_ID_LENGTH = 128;
|
|
10
|
-
export class AgentDirectoryInputError extends Error {
|
|
11
|
-
code = 'invalid_request';
|
|
12
|
-
}
|
|
13
|
-
export function normalizeAgentSearchRequest(input) {
|
|
14
|
-
const query = optionalText(input.query, 'query', AGENT_DIRECTORY_MAX_QUERY_LENGTH);
|
|
15
|
-
const signals = normalizeSignals(input.signals);
|
|
16
|
-
const availability = input.availability ? enumValue(input.availability, ['online', 'busy', 'offline', 'unknown'], 'availability') : undefined;
|
|
17
|
-
if (!query && signals.length === 0)
|
|
18
|
-
throw new AgentDirectoryInputError('query_or_signals_required');
|
|
19
|
-
return {
|
|
20
|
-
...(query ? { query } : {}),
|
|
21
|
-
...(signals.length > 0 ? { signals } : {}),
|
|
22
|
-
...(availability ? { availability } : {}),
|
|
23
|
-
...(input.cursor ? { cursor: requiredText(input.cursor, 'cursor', AGENT_DIRECTORY_MAX_CURSOR_LENGTH) } : {}),
|
|
24
|
-
limit: boundedInteger(input.limit, AGENT_DIRECTORY_DEFAULT_LIMIT, 1, AGENT_DIRECTORY_MAX_LIMIT, 'limit'),
|
|
25
|
-
timeoutMs: boundedInteger(input.timeoutMs, AGENT_DIRECTORY_DEFAULT_TIMEOUT_MS, 100, AGENT_DIRECTORY_MAX_TIMEOUT_MS, 'timeout_ms'),
|
|
26
|
-
sort: input.sort ? enumValue(input.sort, ['relevance', 'reputation', 'recent', 'availability'], 'sort') : 'relevance',
|
|
27
|
-
order: input.order ? enumValue(input.order, ['asc', 'desc'], 'order') : 'desc',
|
|
28
|
-
};
|
|
29
|
-
}
|
|
30
|
-
export function normalizeAgentTaskDiscoveryRequest(input) {
|
|
31
|
-
const title = requiredText(input.title, 'title', AGENT_DIRECTORY_MAX_QUERY_LENGTH);
|
|
32
|
-
const description = optionalText(input.description, 'description', AGENT_DIRECTORY_MAX_QUERY_LENGTH);
|
|
33
|
-
const search = normalizeAgentSearchRequest({
|
|
34
|
-
query: [title, description].filter(Boolean).join('\n'),
|
|
35
|
-
signals: input.signals,
|
|
36
|
-
availability: input.availability,
|
|
37
|
-
sort: input.sort,
|
|
38
|
-
order: input.order,
|
|
39
|
-
cursor: input.cursor,
|
|
40
|
-
limit: input.limit,
|
|
41
|
-
timeoutMs: input.timeoutMs,
|
|
42
|
-
});
|
|
43
|
-
return { ...search, title, ...(description ? { description } : {}) };
|
|
44
|
-
}
|
|
45
|
-
export function normalizeAgentId(value) {
|
|
46
|
-
return requiredText(value, 'agent_id', AGENT_DIRECTORY_MAX_AGENT_ID_LENGTH);
|
|
47
|
-
}
|
|
48
|
-
export function normalizeAgentDirectoryTimeout(value) {
|
|
49
|
-
return boundedInteger(value, AGENT_DIRECTORY_DEFAULT_TIMEOUT_MS, 100, AGENT_DIRECTORY_MAX_TIMEOUT_MS, 'timeout_ms');
|
|
50
|
-
}
|
|
51
|
-
export function capabilityUnavailable(message = 'agent_directory_not_supported') {
|
|
52
|
-
return { ok: false, error: { code: 'capability_unavailable', retryable: false, message } };
|
|
53
|
-
}
|
|
54
|
-
export function unsupportedAgentDirectoryCapability(message) {
|
|
55
|
-
return {
|
|
56
|
-
search: async () => capabilityUnavailable(message),
|
|
57
|
-
getProfile: async () => capabilityUnavailable(message),
|
|
58
|
-
discoverForTask: async () => capabilityUnavailable(message),
|
|
59
|
-
};
|
|
60
|
-
}
|
|
61
|
-
function normalizeSignals(input) {
|
|
62
|
-
if (input === undefined)
|
|
63
|
-
return [];
|
|
64
|
-
if (!Array.isArray(input))
|
|
65
|
-
throw new AgentDirectoryInputError('signals_must_be_array');
|
|
66
|
-
if (input.length > AGENT_DIRECTORY_MAX_SIGNAL_COUNT)
|
|
67
|
-
throw new AgentDirectoryInputError('too_many_signals');
|
|
68
|
-
const out = [];
|
|
69
|
-
for (const value of input) {
|
|
70
|
-
if (typeof value !== 'string')
|
|
71
|
-
throw new AgentDirectoryInputError('signal_must_be_string');
|
|
72
|
-
const signal = requiredText(value, 'signal', AGENT_DIRECTORY_MAX_SIGNAL_LENGTH);
|
|
73
|
-
if (!out.includes(signal))
|
|
74
|
-
out.push(signal);
|
|
75
|
-
}
|
|
76
|
-
return out;
|
|
77
|
-
}
|
|
78
|
-
function optionalText(value, field, maxLength) {
|
|
79
|
-
if (value === undefined)
|
|
80
|
-
return undefined;
|
|
81
|
-
return requiredText(value, field, maxLength);
|
|
82
|
-
}
|
|
83
|
-
function requiredText(value, field, maxLength) {
|
|
84
|
-
if (typeof value !== 'string')
|
|
85
|
-
throw new AgentDirectoryInputError(`${field}_must_be_string`);
|
|
86
|
-
const text = value.trim();
|
|
87
|
-
if (!text)
|
|
88
|
-
throw new AgentDirectoryInputError(`${field}_required`);
|
|
89
|
-
if (text.length > maxLength)
|
|
90
|
-
throw new AgentDirectoryInputError(`${field}_too_long`);
|
|
91
|
-
return text;
|
|
92
|
-
}
|
|
93
|
-
function boundedInteger(value, fallback, min, max, field) {
|
|
94
|
-
if (value === undefined)
|
|
95
|
-
return fallback;
|
|
96
|
-
if (!Number.isInteger(value) || value < min || value > max)
|
|
97
|
-
throw new AgentDirectoryInputError(`${field}_out_of_range`);
|
|
98
|
-
return value;
|
|
99
|
-
}
|
|
100
|
-
function enumValue(value, allowed, field) {
|
|
101
|
-
if (!allowed.includes(value))
|
|
102
|
-
throw new AgentDirectoryInputError(`${field}_invalid`);
|
|
103
|
-
return value;
|
|
104
|
-
}
|
|
1
|
+
const _0x8f01f=_0x22d1;(function(_0x476785,_0x32352c){const _0x25c3de=_0x22d1,_0x5b8402=_0x476785();while(!![]){try{const _0x4f6c9f=-parseInt(_0x25c3de(0x1a2,'\x55\x66\x6e\x5a'))/(-0x257e*-0x1+-0x16d1+-0x4e4*0x3)+-parseInt(_0x25c3de(0x16a,'\x76\x64\x4f\x63'))/(0x1*0x1724+-0x45b+-0x12c7)*(-parseInt(_0x25c3de(0x159,'\x71\x64\x34\x34'))/(0x26e1*0x1+-0x115*-0x11+0x3943*-0x1))+-parseInt(_0x25c3de(0x1aa,'\x4a\x41\x4f\x41'))/(0x133*-0x13+0x23cf*0x1+-0xd02)*(-parseInt(_0x25c3de(0x16f,'\x4a\x31\x53\x79'))/(0xf*0x28d+-0xd1f+-0x191f))+parseInt(_0x25c3de(0x15e,'\x6e\x30\x68\x42'))/(0x4*-0x61c+0x2*-0x11b1+0x3bd8)+-parseInt(_0x25c3de(0x18b,'\x45\x35\x7a\x5d'))/(0x551*-0x1+0x18ad*0x1+-0x1355)+parseInt(_0x25c3de(0x156,'\x69\x66\x42\x6e'))/(0x1f0e+0x1de*-0x8+-0x47*0x3a)+-parseInt(_0x25c3de(0x184,'\x46\x4e\x28\x59'))/(0x24dc+-0x112a*-0x1+-0x35fd);if(_0x4f6c9f===_0x32352c)break;else _0x5b8402['push'](_0x5b8402['shift']());}catch(_0x20173c){_0x5b8402['push'](_0x5b8402['shift']());}}}(_0x15aa,-0x2*0x16ba9+-0x4a35f+0xa85c9));export const AGENT_DIRECTORY_DEFAULT_LIMIT=-0x1a04*0x1+-0x175c+0x5*0x9e4;export const AGENT_DIRECTORY_MAX_LIMIT=-0x1cd0+0x163+-0x1b9f*-0x1;export const AGENT_DIRECTORY_DEFAULT_TIMEOUT_MS=-0x2e16+0x8*0x607+0x1d1e;export const AGENT_DIRECTORY_MAX_TIMEOUT_MS=0x4273*-0x2+-0x1529*0xa+-0x2*-0xe6d8;export const AGENT_DIRECTORY_MAX_QUERY_LENGTH=0x738+-0x2e1+-0x263*0x1;export const AGENT_DIRECTORY_MAX_SIGNAL_COUNT=-0x1bd5+0x1ca*0x11+-0x1*0x281;export const AGENT_DIRECTORY_MAX_SIGNAL_LENGTH=0x599*-0x4+-0xad2+0x2*0x10bb;export const AGENT_DIRECTORY_MAX_CURSOR_LENGTH=-0x4e0+0x24f3*0x1+-0x1f13;export const AGENT_DIRECTORY_MAX_AGENT_ID_LENGTH=-0x5e*-0x15+-0x2353*0x1+-0x95f*-0x3;export class AgentDirectoryInputError extends Error{[_0x8f01f(0x19d,'\x69\x51\x43\x66')]=_0x8f01f(0x1a5,'\x35\x40\x53\x56')+_0x8f01f(0x16d,'\x63\x33\x59\x38');}export function normalizeAgentSearchRequest(_0x390158){const _0x49c894=_0x8f01f,_0xf2e71a=optionalText(_0x390158[_0x49c894(0x187,'\x61\x30\x75\x49')],_0x49c894(0x194,'\x65\x30\x5a\x56'),AGENT_DIRECTORY_MAX_QUERY_LENGTH),_0x43abaa=normalizeSignals(_0x390158[_0x49c894(0x18d,'\x6e\x30\x68\x42')]),_0x31c5df=_0x390158['\x61\x76\x61\x69\x6c\x61\x62\x69'+'\x6c\x69\x74\x79']?enumValue(_0x390158[_0x49c894(0x168,'\x62\x57\x65\x67')+_0x49c894(0x1ab,'\x53\x77\x34\x75')],[_0x49c894(0x186,'\x4a\x41\x4f\x41'),_0x49c894(0x18c,'\x53\x77\x34\x75'),_0x49c894(0x15b,'\x6e\x30\x68\x42'),_0x49c894(0x17a,'\x69\x24\x65\x4e')],_0x49c894(0x18e,'\x55\x53\x52\x77')+'\x6c\x69\x74\x79'):undefined;if(!_0xf2e71a&&_0x43abaa['\x6c\x65\x6e\x67\x74\x68']===-0x1*-0x25d5+0x1*-0x1471+0x1164*-0x1)throw new AgentDirectoryInputError('\x71\x75\x65\x72\x79\x5f\x6f\x72'+_0x49c894(0x16e,'\x4a\x41\x4f\x41')+_0x49c894(0x1a6,'\x28\x47\x78\x57')+'\x64');return{..._0xf2e71a?{'\x71\x75\x65\x72\x79':_0xf2e71a}:{},..._0x43abaa[_0x49c894(0x1b5,'\x76\x64\x4f\x63')]>0x2377+0xbc8+-0x973*0x5?{'\x73\x69\x67\x6e\x61\x6c\x73':_0x43abaa}:{},..._0x31c5df?{'\x61\x76\x61\x69\x6c\x61\x62\x69\x6c\x69\x74\x79':_0x31c5df}:{},..._0x390158[_0x49c894(0x1b2,'\x6e\x35\x39\x75')]?{'\x63\x75\x72\x73\x6f\x72':requiredText(_0x390158['\x63\x75\x72\x73\x6f\x72'],'\x63\x75\x72\x73\x6f\x72',AGENT_DIRECTORY_MAX_CURSOR_LENGTH)}:{},'\x6c\x69\x6d\x69\x74':boundedInteger(_0x390158[_0x49c894(0x157,'\x53\x77\x34\x75')],AGENT_DIRECTORY_DEFAULT_LIMIT,0x1db4+-0x1*0x13bb+0x1*-0x9f8,AGENT_DIRECTORY_MAX_LIMIT,_0x49c894(0x16b,'\x46\x4e\x28\x59')),'\x74\x69\x6d\x65\x6f\x75\x74\x4d\x73':boundedInteger(_0x390158['\x74\x69\x6d\x65\x6f\x75\x74\x4d'+'\x73'],AGENT_DIRECTORY_DEFAULT_TIMEOUT_MS,-0x22e0+0x12c5*0x1+0x107f,AGENT_DIRECTORY_MAX_TIMEOUT_MS,_0x49c894(0x183,'\x7a\x53\x21\x4e')+'\x6d\x73'),'\x73\x6f\x72\x74':_0x390158[_0x49c894(0x169,'\x58\x49\x6a\x4c')]?enumValue(_0x390158['\x73\x6f\x72\x74'],[_0x49c894(0x1b1,'\x63\x33\x59\x38')+'\x65',_0x49c894(0x18f,'\x69\x40\x4c\x4f')+'\x6f\x6e',_0x49c894(0x18a,'\x75\x2a\x49\x30'),_0x49c894(0x1b4,'\x79\x36\x38\x63')+_0x49c894(0x190,'\x61\x30\x75\x49')],'\x73\x6f\x72\x74'):_0x49c894(0x191,'\x41\x76\x78\x40')+'\x65','\x6f\x72\x64\x65\x72':_0x390158[_0x49c894(0x1a9,'\x62\x57\x65\x67')]?enumValue(_0x390158[_0x49c894(0x1a0,'\x6d\x39\x49\x53')],[_0x49c894(0x177,'\x45\x35\x7a\x5d'),_0x49c894(0x199,'\x79\x47\x53\x40')],_0x49c894(0x165,'\x68\x26\x25\x26')):'\x64\x65\x73\x63'};}export function normalizeAgentTaskDiscoveryRequest(_0x12cc9c){const _0x9fabd=_0x8f01f,_0x179659=requiredText(_0x12cc9c[_0x9fabd(0x180,'\x65\x30\x5a\x56')],_0x9fabd(0x161,'\x35\x40\x53\x56'),AGENT_DIRECTORY_MAX_QUERY_LENGTH),_0x4b6b32=optionalText(_0x12cc9c[_0x9fabd(0x198,'\x26\x4a\x47\x44')+_0x9fabd(0x162,'\x4d\x24\x50\x30')],_0x9fabd(0x1ad,'\x6e\x35\x39\x75')+_0x9fabd(0x170,'\x25\x6e\x44\x4b'),AGENT_DIRECTORY_MAX_QUERY_LENGTH),_0x4a73a3=normalizeAgentSearchRequest({'\x71\x75\x65\x72\x79':[_0x179659,_0x4b6b32][_0x9fabd(0x1b3,'\x4d\x24\x4b\x6c')](Boolean)[_0x9fabd(0x19a,'\x75\x5b\x36\x21')]('\x0a'),'\x73\x69\x67\x6e\x61\x6c\x73':_0x12cc9c['\x73\x69\x67\x6e\x61\x6c\x73'],'\x61\x76\x61\x69\x6c\x61\x62\x69\x6c\x69\x74\x79':_0x12cc9c[_0x9fabd(0x176,'\x6d\x39\x49\x53')+_0x9fabd(0x17f,'\x69\x40\x4c\x4f')],'\x73\x6f\x72\x74':_0x12cc9c[_0x9fabd(0x196,'\x79\x36\x38\x63')],'\x6f\x72\x64\x65\x72':_0x12cc9c[_0x9fabd(0x1a4,'\x45\x35\x7a\x5d')],'\x63\x75\x72\x73\x6f\x72':_0x12cc9c[_0x9fabd(0x19c,'\x4a\x41\x4f\x41')],'\x6c\x69\x6d\x69\x74':_0x12cc9c['\x6c\x69\x6d\x69\x74'],'\x74\x69\x6d\x65\x6f\x75\x74\x4d\x73':_0x12cc9c[_0x9fabd(0x189,'\x35\x40\x53\x56')+'\x73']});return{..._0x4a73a3,'\x74\x69\x74\x6c\x65':_0x179659,..._0x4b6b32?{'\x64\x65\x73\x63\x72\x69\x70\x74\x69\x6f\x6e':_0x4b6b32}:{}};}export function normalizeAgentId(_0x539ea8){const _0x5db4fd=_0x8f01f;return requiredText(_0x539ea8,_0x5db4fd(0x188,'\x65\x30\x5a\x56'),AGENT_DIRECTORY_MAX_AGENT_ID_LENGTH);}export function normalizeAgentDirectoryTimeout(_0x3de6f9){const _0x47d372=_0x8f01f;return boundedInteger(_0x3de6f9,AGENT_DIRECTORY_DEFAULT_TIMEOUT_MS,0x1304+0xa58+0xc*-0x26a,AGENT_DIRECTORY_MAX_TIMEOUT_MS,_0x47d372(0x17d,'\x55\x66\x6e\x5a')+'\x6d\x73');}export function capabilityUnavailable(_0x28b826=_0x8f01f(0x15c,'\x76\x64\x4f\x63')+_0x8f01f(0x19f,'\x69\x40\x4c\x4f')+_0x8f01f(0x1a3,'\x69\x66\x42\x6e')+_0x8f01f(0x16c,'\x35\x40\x53\x56')){const _0x3dbe0e=_0x8f01f;return{'\x6f\x6b':![],'\x65\x72\x72\x6f\x72':{'\x63\x6f\x64\x65':_0x3dbe0e(0x175,'\x68\x6b\x50\x71')+_0x3dbe0e(0x193,'\x71\x64\x34\x34')+_0x3dbe0e(0x1a7,'\x59\x44\x38\x59'),'\x72\x65\x74\x72\x79\x61\x62\x6c\x65':![],'\x6d\x65\x73\x73\x61\x67\x65':_0x28b826}};}export function unsupportedAgentDirectoryCapability(_0x49a945){return{'\x73\x65\x61\x72\x63\x68':async()=>capabilityUnavailable(_0x49a945),'\x67\x65\x74\x50\x72\x6f\x66\x69\x6c\x65':async()=>capabilityUnavailable(_0x49a945),'\x64\x69\x73\x63\x6f\x76\x65\x72\x46\x6f\x72\x54\x61\x73\x6b':async()=>capabilityUnavailable(_0x49a945)};}function normalizeSignals(_0x16d4e5){const _0x5c388f=_0x8f01f;if(_0x16d4e5===undefined)return[];if(!Array[_0x5c388f(0x185,'\x26\x6e\x78\x74')](_0x16d4e5))throw new AgentDirectoryInputError(_0x5c388f(0x1af,'\x37\x49\x7a\x58')+_0x5c388f(0x179,'\x69\x40\x4c\x4f')+_0x5c388f(0x19b,'\x78\x39\x36\x47'));if(_0x16d4e5[_0x5c388f(0x1b0,'\x69\x24\x65\x4e')]>AGENT_DIRECTORY_MAX_SIGNAL_COUNT)throw new AgentDirectoryInputError(_0x5c388f(0x15d,'\x59\x44\x38\x59')+_0x5c388f(0x17e,'\x68\x6b\x50\x71'));const _0x2e3574=[];for(const _0x22294e of _0x16d4e5){if(typeof _0x22294e!==_0x5c388f(0x17b,'\x63\x33\x59\x38'))throw new AgentDirectoryInputError(_0x5c388f(0x1a1,'\x41\x76\x78\x40')+_0x5c388f(0x178,'\x75\x2a\x49\x30')+_0x5c388f(0x192,'\x4d\x24\x50\x30'));const _0x571d47=requiredText(_0x22294e,_0x5c388f(0x15f,'\x48\x36\x76\x32'),AGENT_DIRECTORY_MAX_SIGNAL_LENGTH);if(!_0x2e3574[_0x5c388f(0x1a8,'\x7a\x53\x21\x4e')](_0x571d47))_0x2e3574[_0x5c388f(0x195,'\x65\x30\x5a\x56')](_0x571d47);}return _0x2e3574;}function optionalText(_0x26002c,_0x45f9cf,_0x22794c){if(_0x26002c===undefined)return undefined;return requiredText(_0x26002c,_0x45f9cf,_0x22794c);}function requiredText(_0x5f4d10,_0x2d4a93,_0x9d998f){const _0x47191d=_0x8f01f;if(typeof _0x5f4d10!==_0x47191d(0x172,'\x45\x35\x7a\x5d'))throw new AgentDirectoryInputError(_0x2d4a93+(_0x47191d(0x171,'\x69\x24\x65\x4e')+_0x47191d(0x163,'\x68\x26\x25\x26')));const _0x4c89bb=_0x5f4d10['\x74\x72\x69\x6d']();if(!_0x4c89bb)throw new AgentDirectoryInputError(_0x2d4a93+(_0x47191d(0x17c,'\x69\x5d\x5a\x38')+'\x64'));if(_0x4c89bb[_0x47191d(0x197,'\x4a\x48\x5d\x67')]>_0x9d998f)throw new AgentDirectoryInputError(_0x2d4a93+(_0x47191d(0x167,'\x76\x64\x4f\x63')+'\x67'));return _0x4c89bb;}function _0x15aa(){const _0x19b94d=['\x74\x75\x37\x64\x4c\x4d\x4a\x64\x52\x5a\x4c\x69\x66\x47','\x57\x37\x4b\x70\x79\x4d\x52\x64\x49\x32\x69\x30\x62\x57','\x57\x51\x78\x64\x4a\x30\x56\x64\x4f\x58\x48\x4c','\x57\x37\x4f\x64\x57\x50\x2f\x64\x53\x68\x72\x34\x69\x4a\x57','\x57\x50\x66\x34\x57\x50\x33\x63\x4d\x38\x6f\x4b','\x76\x6d\x6f\x76\x57\x4f\x4e\x63\x49\x66\x42\x64\x4d\x4e\x48\x74\x57\x4f\x69','\x57\x34\x66\x79\x7a\x64\x43','\x6d\x67\x4e\x63\x4c\x33\x48\x56\x57\x37\x2f\x63\x4c\x38\x6b\x43','\x6d\x43\x6b\x57\x57\x51\x35\x36\x6e\x58\x4c\x56\x57\x36\x34','\x62\x4d\x37\x63\x4d\x4d\x6a\x37\x57\x37\x46\x63\x4d\x38\x6b\x6c','\x57\x35\x52\x63\x51\x43\x6b\x6e\x72\x38\x6b\x71\x70\x32\x4b\x57','\x65\x43\x6f\x47\x68\x57\x30\x4f\x57\x34\x30','\x6a\x4b\x6e\x59\x6b\x38\x6f\x31\x41\x38\x6f\x7a\x69\x57','\x6e\x53\x6b\x47\x57\x51\x39\x51\x6b\x47\x69','\x57\x34\x79\x33\x57\x34\x37\x64\x50\x32\x31\x6b','\x57\x34\x50\x4b\x42\x53\x6f\x5a\x57\x50\x4c\x6d\x57\x52\x64\x64\x4d\x61','\x61\x77\x75\x33\x57\x52\x4f\x73\x62\x47','\x57\x50\x30\x68\x57\x36\x70\x64\x56\x47\x68\x64\x4d\x68\x4c\x47\x6b\x38\x6f\x6a\x6d\x53\x6b\x4d\x6d\x47','\x57\x34\x66\x79\x46\x73\x44\x4d','\x57\x37\x33\x63\x4c\x58\x37\x63\x54\x30\x43\x35\x57\x4f\x69\x36\x57\x34\x56\x64\x4b\x61\x64\x64\x47\x6d\x6f\x72','\x42\x4a\x30\x4d\x6b\x75\x54\x67\x57\x37\x4b\x5a\x6b\x6d\x6b\x70','\x41\x57\x79\x6d\x6d\x61\x5a\x63\x4d\x53\x6f\x70\x79\x71','\x57\x50\x65\x4b\x57\x52\x4a\x64\x4e\x75\x4a\x63\x4f\x38\x6b\x4f','\x64\x67\x43\x38\x57\x52\x6d\x73\x6d\x78\x5a\x64\x4d\x57','\x57\x52\x4a\x64\x4a\x65\x78\x64\x4e\x48\x4c\x48\x57\x35\x4f\x41','\x57\x34\x39\x33\x57\x36\x37\x63\x47\x62\x64\x64\x55\x43\x6f\x39\x76\x57\x4a\x63\x55\x43\x6f\x44\x57\x52\x62\x35','\x57\x34\x38\x59\x57\x4f\x74\x64\x4c\x32\x57\x5a','\x57\x50\x66\x50\x57\x50\x46\x63\x4f\x4a\x65\x6b\x70\x66\x62\x6d\x57\x36\x6e\x61\x42\x38\x6f\x65','\x75\x65\x4e\x64\x4c\x67\x78\x64\x50\x47','\x6a\x67\x4c\x72','\x57\x37\x2f\x63\x49\x43\x6f\x62\x68\x74\x50\x55\x57\x37\x6d','\x57\x52\x4a\x64\x4f\x53\x6f\x39\x57\x37\x6c\x64\x53\x71','\x57\x34\x2f\x63\x49\x6d\x6f\x72\x63\x49\x65','\x57\x51\x48\x33\x64\x6d\x6f\x4c\x72\x76\x44\x34\x57\x50\x79','\x6d\x4e\x71\x32\x57\x52\x69\x35\x61\x4e\x46\x64\x4e\x61','\x57\x50\x39\x38\x57\x50\x4a\x63\x4c\x38\x6f\x36\x57\x50\x44\x49\x57\x50\x79','\x6b\x62\x74\x64\x51\x4b\x4b','\x77\x5a\x69\x73\x57\x4f\x38\x68\x64\x67\x4a\x64\x4c\x47','\x41\x61\x46\x64\x4b\x38\x6f\x6b\x41\x57','\x73\x31\x6c\x64\x4c\x67\x5a\x64\x50\x57','\x6a\x4b\x6e\x56\x6f\x38\x6f\x4d\x45\x43\x6f\x64','\x6f\x53\x6b\x71\x57\x35\x4a\x63\x52\x67\x52\x64\x51\x67\x62\x63','\x66\x38\x6b\x34\x45\x67\x30\x69\x57\x35\x4e\x63\x53\x71\x4e\x64\x4d\x43\x6b\x45\x57\x4f\x38','\x66\x65\x5a\x64\x52\x61','\x69\x53\x6f\x4f\x62\x62\x4b\x4f\x57\x37\x52\x63\x53\x66\x65','\x57\x36\x4e\x63\x52\x57\x42\x63\x50\x72\x7a\x43','\x46\x30\x2f\x64\x53\x53\x6f\x52\x57\x51\x4e\x64\x48\x74\x78\x63\x54\x57','\x57\x50\x4a\x64\x54\x53\x6f\x43\x68\x6d\x6f\x63\x41\x49\x47\x48\x69\x65\x71\x51\x61\x6d\x6b\x54','\x71\x30\x68\x64\x54\x38\x6f\x2b\x57\x50\x74\x64\x47\x5a\x2f\x63\x47\x71','\x72\x43\x6f\x75\x62\x64\x33\x63\x52\x43\x6f\x58\x57\x50\x44\x41','\x57\x37\x56\x63\x51\x62\x43','\x57\x4f\x35\x57\x76\x53\x6b\x34\x61\x38\x6f\x46\x57\x52\x4b\x56','\x57\x50\x52\x63\x48\x38\x6b\x2b\x64\x38\x6b\x48\x68\x4a\x6a\x71','\x63\x6d\x6f\x52\x67\x47\x71\x5a\x57\x35\x6c\x63\x56\x61','\x6a\x31\x6a\x53\x6a\x38\x6f\x54\x42\x71','\x6c\x33\x6d\x72\x57\x36\x58\x45\x7a\x6d\x6b\x79\x46\x47','\x57\x35\x30\x7a\x57\x36\x62\x2f\x57\x37\x33\x63\x49\x30\x78\x64\x49\x61','\x46\x31\x70\x64\x52\x53\x6f\x34\x57\x50\x4a\x64\x49\x5a\x2f\x63\x4d\x57','\x57\x50\x56\x63\x4d\x38\x6b\x35\x61\x47','\x57\x50\x6d\x4d\x72\x73\x70\x63\x4a\x71','\x57\x37\x33\x63\x4c\x48\x52\x63\x53\x65\x75\x30\x57\x4f\x71\x62\x57\x34\x4a\x64\x56\x73\x2f\x64\x4c\x38\x6f\x6f','\x57\x50\x44\x6e\x6d\x59\x5a\x64\x49\x30\x65\x4b\x62\x5a\x56\x63\x53\x61','\x57\x36\x43\x65\x57\x50\x68\x64\x55\x77\x35\x50\x6d\x58\x61','\x6e\x76\x4e\x63\x49\x38\x6b\x73\x6a\x4d\x68\x63\x49\x4b\x5a\x64\x55\x6d\x6b\x2b\x78\x4e\x74\x63\x49\x57','\x57\x51\x70\x64\x53\x6d\x6f\x73\x57\x36\x46\x64\x50\x4e\x68\x64\x4a\x71','\x63\x53\x6b\x6e\x57\x35\x33\x63\x4f\x4d\x52\x64\x52\x61','\x75\x58\x37\x64\x56\x38\x6f\x58\x57\x36\x43','\x57\x4f\x79\x4f\x76\x63\x68\x63\x4e\x6d\x6f\x6e\x77\x66\x6d','\x75\x65\x4e\x64\x4a\x77\x5a\x64\x52\x63\x76\x79\x62\x61','\x57\x4f\x4c\x4d\x71\x43\x6b\x63\x64\x38\x6f\x6f','\x57\x51\x56\x64\x52\x30\x64\x64\x55\x4b\x53\x63\x57\x50\x74\x64\x47\x33\x56\x63\x55\x4a\x44\x5a\x57\x35\x34','\x57\x34\x39\x65\x79\x5a\x43','\x57\x4f\x30\x52\x57\x52\x4e\x64\x4e\x30\x64\x63\x4f\x43\x6b\x2b','\x57\x51\x62\x59\x6a\x6d\x6f\x49\x78\x76\x6e\x39\x57\x50\x4f','\x57\x4f\x78\x63\x4c\x38\x6b\x39\x64\x53\x6b\x6b\x68\x73\x6e\x4d','\x74\x47\x6c\x64\x52\x53\x6f\x36','\x68\x77\x78\x63\x4c\x77\x54\x34\x57\x37\x6c\x63\x4b\x6d\x6b\x42','\x6f\x78\x72\x77\x6b\x75\x57','\x6b\x33\x72\x6e\x41\x31\x62\x54\x57\x36\x30\x33','\x57\x50\x79\x36\x76\x64\x33\x63\x4b\x71','\x57\x50\x43\x36\x71\x49\x43','\x57\x35\x48\x39\x46\x43\x6f\x55','\x64\x73\x2f\x64\x4d\x4b\x50\x31\x57\x37\x57','\x41\x6d\x6b\x58\x57\x35\x46\x63\x4e\x6d\x6f\x4e\x71\x38\x6f\x64\x57\x35\x71','\x43\x31\x75\x67\x67\x57','\x6a\x43\x6f\x70\x69\x6d\x6b\x71','\x57\x4f\x64\x63\x50\x6d\x6f\x6c\x6a\x4b\x75','\x62\x53\x6b\x77\x57\x34\x70\x63\x55\x67\x56\x64\x55\x57','\x57\x35\x4c\x73\x42\x38\x6b\x49','\x57\x4f\x50\x39\x57\x36\x33\x64\x47\x6d\x6b\x36\x45\x33\x2f\x64\x4e\x67\x43','\x57\x4f\x78\x63\x4c\x38\x6b\x55\x64\x38\x6b\x72\x64\x49\x35\x71','\x73\x38\x6f\x71\x61\x74\x68\x63\x53\x57','\x68\x67\x4e\x63\x4e\x4d\x62\x56\x57\x37\x2f\x63\x4f\x43\x6b\x76','\x57\x50\x35\x64\x57\x52\x47\x54\x57\x51\x78\x63\x4e\x68\x74\x64\x48\x38\x6f\x36\x57\x52\x64\x64\x51\x71','\x57\x34\x6a\x45\x57\x51\x68\x63\x4c\x65\x68\x63\x4c\x64\x54\x45','\x57\x37\x78\x63\x51\x72\x64\x63\x51\x71\x4f'];_0x15aa=function(){return _0x19b94d;};return _0x15aa();}function boundedInteger(_0x48870a,_0x383829,_0x47c533,_0x6dd454,_0x4b5b51){const _0x161218=_0x8f01f;if(_0x48870a===undefined)return _0x383829;if(!Number[_0x161218(0x166,'\x55\x53\x52\x77')+'\x72'](_0x48870a)||_0x48870a<_0x47c533||_0x48870a>_0x6dd454)throw new AgentDirectoryInputError(_0x4b5b51+(_0x161218(0x173,'\x68\x6b\x50\x71')+_0x161218(0x164,'\x26\x6e\x78\x74')));return _0x48870a;}function _0x22d1(_0x33d45c,_0x49d9b0){_0x33d45c=_0x33d45c-(0x8a4+-0x1963+-0x1*-0x1215);const _0x591472=_0x15aa();let _0x1ae1e9=_0x591472[_0x33d45c];if(_0x22d1['\x4b\x6c\x78\x54\x7a\x73']===undefined){var _0x35ce54=function(_0xf1a9ae){const _0x37df3a='\x61\x62\x63\x64\x65\x66\x67\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f\x70\x71\x72\x73\x74\x75\x76\x77\x78\x79\x7a\x41\x42\x43\x44\x45\x46\x47\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f\x50\x51\x52\x53\x54\x55\x56\x57\x58\x59\x5a\x30\x31\x32\x33\x34\x35\x36\x37\x38\x39\x2b\x2f\x3d';let _0x2dbfcb='',_0x30e51a='';for(let _0x4a5227=0xb95+0xdb3+-0x1948,_0x4757f8,_0x176374,_0x50022f=-0xd6*0x3+0x11*-0x9d+0x2b*0x4d;_0x176374=_0xf1a9ae['\x63\x68\x61\x72\x41\x74'](_0x50022f++);~_0x176374&&(_0x4757f8=_0x4a5227%(-0x12c0+-0x2037+-0x1*-0x32fb)?_0x4757f8*(-0x1840+-0xcce+0x776*0x5)+_0x176374:_0x176374,_0x4a5227++%(0x2283+0x1*0x25c6+-0x3*0x1817))?_0x2dbfcb+=String['\x66\x72\x6f\x6d\x43\x68\x61\x72\x43\x6f\x64\x65'](-0x1379+-0x37*-0xf+-0x1*-0x113f&_0x4757f8>>(-(-0x19ec+0x102f+-0x9bf*-0x1)*_0x4a5227&0x1*0x12b2+0x267+0x437*-0x5)):0x15f*-0x7+-0x4*-0x6ad+-0x111b){_0x176374=_0x37df3a['\x69\x6e\x64\x65\x78\x4f\x66'](_0x176374);}for(let _0x5ee58b=-0x399+-0x1e58+0x1*0x21f1,_0x6754b0=_0x2dbfcb['\x6c\x65\x6e\x67\x74\x68'];_0x5ee58b<_0x6754b0;_0x5ee58b++){_0x30e51a+='\x25'+('\x30\x30'+_0x2dbfcb['\x63\x68\x61\x72\x43\x6f\x64\x65\x41\x74'](_0x5ee58b)['\x74\x6f\x53\x74\x72\x69\x6e\x67'](0xce5*0x3+0x1c51+-0x42f0))['\x73\x6c\x69\x63\x65'](-(0x1f38+-0x664+0x18d2*-0x1));}return decodeURIComponent(_0x30e51a);};const _0x4feb9b=function(_0x5d755c,_0x20b66e){let _0x227ef4=[],_0x33d0e9=-0x12ec*0x2+0x1f*0x7f+-0x1b*-0xd5,_0x934bf0,_0x38bbda='';_0x5d755c=_0x35ce54(_0x5d755c);let _0x1b377d;for(_0x1b377d=-0x7*-0x65+-0x1d71+0x1aae;_0x1b377d<0x18b4+-0x11*-0x13d+0x43*-0xab;_0x1b377d++){_0x227ef4[_0x1b377d]=_0x1b377d;}for(_0x1b377d=-0x3aa*0x2+0x298*-0xb+0x23dc;_0x1b377d<0x1ee1+-0x2*0x1190+0x53f;_0x1b377d++){_0x33d0e9=(_0x33d0e9+_0x227ef4[_0x1b377d]+_0x20b66e['\x63\x68\x61\x72\x43\x6f\x64\x65\x41\x74'](_0x1b377d%_0x20b66e['\x6c\x65\x6e\x67\x74\x68']))%(0x84e+0x2ad*-0x9+0x10c7*0x1),_0x934bf0=_0x227ef4[_0x1b377d],_0x227ef4[_0x1b377d]=_0x227ef4[_0x33d0e9],_0x227ef4[_0x33d0e9]=_0x934bf0;}_0x1b377d=-0x86c+-0x1*0x11c2+-0x1*-0x1a2e,_0x33d0e9=0x1b88+-0x16ec+-0x49c;for(let _0x5e714c=0x1de6+-0x2316+0x53*0x10;_0x5e714c<_0x5d755c['\x6c\x65\x6e\x67\x74\x68'];_0x5e714c++){_0x1b377d=(_0x1b377d+(0xb*0x244+0x14*-0x1c1+0xa29*0x1))%(0xce*-0x10+0x24df+-0x16ff),_0x33d0e9=(_0x33d0e9+_0x227ef4[_0x1b377d])%(0x224*-0x8+-0xd0a*-0x2+-0x7f4),_0x934bf0=_0x227ef4[_0x1b377d],_0x227ef4[_0x1b377d]=_0x227ef4[_0x33d0e9],_0x227ef4[_0x33d0e9]=_0x934bf0,_0x38bbda+=String['\x66\x72\x6f\x6d\x43\x68\x61\x72\x43\x6f\x64\x65'](_0x5d755c['\x63\x68\x61\x72\x43\x6f\x64\x65\x41\x74'](_0x5e714c)^_0x227ef4[(_0x227ef4[_0x1b377d]+_0x227ef4[_0x33d0e9])%(-0x8*-0x1c8+-0x5e*-0xe+-0x1264)]);}return _0x38bbda;};_0x22d1['\x54\x79\x72\x78\x61\x4d']=_0x4feb9b,_0x22d1['\x4a\x77\x4c\x70\x63\x68']={},_0x22d1['\x4b\x6c\x78\x54\x7a\x73']=!![];}const _0x128212=_0x591472[0x11bd+0x6*-0x2fc+0x2b],_0x27e0ab=_0x33d45c+_0x128212,_0x41dce0=_0x22d1['\x4a\x77\x4c\x70\x63\x68'][_0x27e0ab];return!_0x41dce0?(_0x22d1['\x61\x52\x51\x46\x74\x6c']===undefined&&(_0x22d1['\x61\x52\x51\x46\x74\x6c']=!![]),_0x1ae1e9=_0x22d1['\x54\x79\x72\x78\x61\x4d'](_0x1ae1e9,_0x49d9b0),_0x22d1['\x4a\x77\x4c\x70\x63\x68'][_0x27e0ab]=_0x1ae1e9):_0x1ae1e9=_0x41dce0,_0x1ae1e9;}function enumValue(_0x4d78c3,_0x5afb27,_0x21929a){const _0x537d4d=_0x8f01f;if(!_0x5afb27[_0x537d4d(0x1ae,'\x41\x76\x78\x40')](_0x4d78c3))throw new AgentDirectoryInputError(_0x21929a+_0x537d4d(0x1ac,'\x41\x76\x78\x40'));return _0x4d78c3;}
|
package/dist/hub/assetCallLog.js
CHANGED
|
@@ -1,195 +1 @@
|
|
|
1
|
-
// Append-only asset-call log (ported from v1 gep/assetCallLog.js). Records every hub-asset interaction across
|
|
2
|
-
// evolution runs — search hits/misses, reuse/reference, publish, and review outcomes — as one JSONL line each.
|
|
3
|
-
// This is the audit trail behind "which fetched assets actually got reused, and did the reuse pay off"; the
|
|
4
|
-
// reuse-reward / quality-feedback loops read it. Best-effort by construction: a logging failure NEVER blocks
|
|
5
|
-
// or fails an evolution. The log path is injected so it's testable without a real home dir.
|
|
6
|
-
import { appendFileSync, existsSync, mkdirSync, readFileSync } from 'node:fs';
|
|
7
|
-
import { dirname } from 'node:path';
|
|
8
|
-
import { REUSE_ESTIMATOR, reuseEstimate } from '../ops/savingsCore.js';
|
|
9
|
-
function objectRecord(value) {
|
|
10
|
-
return value !== null && typeof value === 'object' && !Array.isArray(value)
|
|
11
|
-
? value
|
|
12
|
-
: undefined;
|
|
13
|
-
}
|
|
14
|
-
function nonEmptyString(value) {
|
|
15
|
-
return typeof value === 'string' && value.length > 0 ? value : undefined;
|
|
16
|
-
}
|
|
17
|
-
function positiveNumber(value, coerceLegacy = false) {
|
|
18
|
-
const number = typeof value === 'number' ? value : coerceLegacy ? Number(value) : Number.NaN;
|
|
19
|
-
return Number.isFinite(number) && number > 0 ? number : undefined;
|
|
20
|
-
}
|
|
21
|
-
function nestedAssetRecord(asset) {
|
|
22
|
-
const direct = objectRecord(asset);
|
|
23
|
-
return { ...(direct ? { direct } : {}), ...(objectRecord(direct?.['payload']) ? { payload: objectRecord(direct?.['payload']) } : {}) };
|
|
24
|
-
}
|
|
25
|
-
/** Measured derivation cost carried by an asset (or by a Hub wrapper's payload). */
|
|
26
|
-
export function assetDerivationTokenCost(asset) {
|
|
27
|
-
const records = nestedAssetRecord(asset);
|
|
28
|
-
for (const record of [records.direct, records.payload]) {
|
|
29
|
-
const derivation = objectRecord(record?.['derivation_tokens']);
|
|
30
|
-
const total = positiveNumber(derivation?.['total_tokens']);
|
|
31
|
-
if (total !== undefined)
|
|
32
|
-
return total;
|
|
33
|
-
}
|
|
34
|
-
return undefined;
|
|
35
|
-
}
|
|
36
|
-
function assetBlastRadiusLines(asset) {
|
|
37
|
-
const records = nestedAssetRecord(asset);
|
|
38
|
-
for (const record of [records.direct, records.payload]) {
|
|
39
|
-
const blast = objectRecord(record?.['blast_radius']);
|
|
40
|
-
const lines = positiveNumber(blast?.['lines']);
|
|
41
|
-
if (lines !== undefined)
|
|
42
|
-
return lines;
|
|
43
|
-
}
|
|
44
|
-
return undefined;
|
|
45
|
-
}
|
|
46
|
-
/**
|
|
47
|
-
* Attribute savings without inventing a measured value: asset telemetry wins, then this node's publish-cost
|
|
48
|
-
* index, then the savings-core blast/default estimator. Reference reuse applies the same fractional discount
|
|
49
|
-
* to measured and estimated costs.
|
|
50
|
-
*/
|
|
51
|
-
export function reuseSavingsForAsset(asset, mode, indexedTokenCost) {
|
|
52
|
-
const measured = assetDerivationTokenCost(asset);
|
|
53
|
-
const indexed = measured === undefined ? positiveNumber(indexedTokenCost) : undefined;
|
|
54
|
-
const cost = measured ?? indexed;
|
|
55
|
-
if (cost !== undefined) {
|
|
56
|
-
return {
|
|
57
|
-
tokens_saved: Math.round(mode === 'reference' ? cost * REUSE_ESTIMATOR.reference_saving_fraction : cost),
|
|
58
|
-
tokens_saved_basis: measured !== undefined ? 'measured' : 'cost_index',
|
|
59
|
-
};
|
|
60
|
-
}
|
|
61
|
-
const estimated = reuseEstimate(assetBlastRadiusLines(asset), mode);
|
|
62
|
-
return { tokens_saved: estimated.tokens_saved, tokens_saved_basis: estimated.basis };
|
|
63
|
-
}
|
|
64
|
-
function isAssetCallRecord(value) {
|
|
65
|
-
const record = objectRecord(value);
|
|
66
|
-
return record !== undefined
|
|
67
|
-
&& typeof record['timestamp'] === 'string'
|
|
68
|
-
&& typeof record['action'] === 'string'
|
|
69
|
-
&& record['action'].length > 0;
|
|
70
|
-
}
|
|
71
|
-
export class AssetCallLog {
|
|
72
|
-
path;
|
|
73
|
-
now;
|
|
74
|
-
constructor(path, now = () => new Date()) {
|
|
75
|
-
this.path = path;
|
|
76
|
-
this.now = now;
|
|
77
|
-
}
|
|
78
|
-
/** Append one record (timestamped). Never throws — logging must not break evolution. */
|
|
79
|
-
append(entry) {
|
|
80
|
-
if (!entry || typeof entry !== 'object')
|
|
81
|
-
return;
|
|
82
|
-
try {
|
|
83
|
-
mkdirSync(dirname(this.path), { recursive: true });
|
|
84
|
-
const record = { timestamp: this.now().toISOString(), ...entry };
|
|
85
|
-
appendFileSync(this.path, `${JSON.stringify(record)}\n`, 'utf8');
|
|
86
|
-
}
|
|
87
|
-
catch { /* non-fatal */ }
|
|
88
|
-
}
|
|
89
|
-
/** Read records with optional filters. Corrupt lines are skipped. */
|
|
90
|
-
read(opts = {}) {
|
|
91
|
-
if (!existsSync(this.path))
|
|
92
|
-
return [];
|
|
93
|
-
let entries = [];
|
|
94
|
-
try {
|
|
95
|
-
for (const line of readFileSync(this.path, 'utf8').split('\n')) {
|
|
96
|
-
if (!line)
|
|
97
|
-
continue;
|
|
98
|
-
try {
|
|
99
|
-
const parsed = JSON.parse(line);
|
|
100
|
-
if (isAssetCallRecord(parsed))
|
|
101
|
-
entries.push(parsed);
|
|
102
|
-
}
|
|
103
|
-
catch { /* skip corrupt */ }
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
catch {
|
|
107
|
-
return [];
|
|
108
|
-
}
|
|
109
|
-
if (opts.since) {
|
|
110
|
-
const sinceTs = new Date(opts.since).getTime();
|
|
111
|
-
if (Number.isFinite(sinceTs))
|
|
112
|
-
entries = entries.filter((e) => new Date(e.timestamp).getTime() >= sinceTs);
|
|
113
|
-
}
|
|
114
|
-
if (opts.run_id)
|
|
115
|
-
entries = entries.filter((e) => e.run_id === opts.run_id);
|
|
116
|
-
if (opts.action)
|
|
117
|
-
entries = entries.filter((e) => e.action === opts.action);
|
|
118
|
-
if (opts.last && Number.isFinite(opts.last) && opts.last > 0)
|
|
119
|
-
entries = entries.slice(-opts.last);
|
|
120
|
-
return entries;
|
|
121
|
-
}
|
|
122
|
-
/** Totals + per-action counts (for CLI / observability). */
|
|
123
|
-
summarize(opts = {}) {
|
|
124
|
-
const entries = this.read(opts);
|
|
125
|
-
const byAction = {};
|
|
126
|
-
const assets = new Set();
|
|
127
|
-
const runs = new Set();
|
|
128
|
-
for (const e of entries) {
|
|
129
|
-
byAction[e.action] = (byAction[e.action] ?? 0) + 1;
|
|
130
|
-
if (e.asset_id)
|
|
131
|
-
assets.add(e.asset_id);
|
|
132
|
-
if (e.run_id)
|
|
133
|
-
runs.add(e.run_id);
|
|
134
|
-
}
|
|
135
|
-
return { total_entries: entries.length, unique_assets: assets.size, unique_runs: runs.size, by_action: byAction, entries };
|
|
136
|
-
}
|
|
137
|
-
/** Local-only attribution rollup over reuse/reference audit rows. */
|
|
138
|
-
reuseAttributionSummary(opts = {}) {
|
|
139
|
-
const entries = this.read(opts).filter((entry) => entry.action === 'asset_reuse' || entry.action === 'asset_reference');
|
|
140
|
-
const byAsset = new Map();
|
|
141
|
-
let totalTokensSaved = 0;
|
|
142
|
-
let totalReuse = 0;
|
|
143
|
-
let totalReference = 0;
|
|
144
|
-
for (const entry of entries) {
|
|
145
|
-
const id = nonEmptyString(entry.asset_id) ?? '(unknown)';
|
|
146
|
-
let aggregate = byAsset.get(id);
|
|
147
|
-
if (!aggregate) {
|
|
148
|
-
aggregate = {
|
|
149
|
-
asset_id: id,
|
|
150
|
-
source_node_id: nonEmptyString(entry.source_node_id) ?? null,
|
|
151
|
-
chain_id: nonEmptyString(entry.chain_id) ?? null,
|
|
152
|
-
reuse: 0,
|
|
153
|
-
reference: 0,
|
|
154
|
-
tokens_saved: 0,
|
|
155
|
-
};
|
|
156
|
-
byAsset.set(id, aggregate);
|
|
157
|
-
}
|
|
158
|
-
if (entry.action === 'asset_reuse') {
|
|
159
|
-
aggregate.reuse += 1;
|
|
160
|
-
totalReuse += 1;
|
|
161
|
-
}
|
|
162
|
-
else {
|
|
163
|
-
aggregate.reference += 1;
|
|
164
|
-
totalReference += 1;
|
|
165
|
-
}
|
|
166
|
-
const tokensSaved = positiveNumber(entry['tokens_saved'], true);
|
|
167
|
-
if (tokensSaved !== undefined) {
|
|
168
|
-
aggregate.tokens_saved += tokensSaved;
|
|
169
|
-
totalTokensSaved += tokensSaved;
|
|
170
|
-
}
|
|
171
|
-
aggregate.source_node_id ??= nonEmptyString(entry.source_node_id) ?? null;
|
|
172
|
-
aggregate.chain_id ??= nonEmptyString(entry.chain_id) ?? null;
|
|
173
|
-
}
|
|
174
|
-
const byAssetRows = [...byAsset.values()].sort((left, right) => (right.reuse + right.reference) - (left.reuse + left.reference));
|
|
175
|
-
return {
|
|
176
|
-
total_reuse: totalReuse,
|
|
177
|
-
total_reference: totalReference,
|
|
178
|
-
total_tokens_saved: totalTokensSaved,
|
|
179
|
-
by_asset: byAssetRows,
|
|
180
|
-
};
|
|
181
|
-
}
|
|
182
|
-
/** Later valid publish rows win; malformed/non-positive costs never erase a prior measurement. */
|
|
183
|
-
assetCostIndex(opts = {}) {
|
|
184
|
-
const costs = new Map();
|
|
185
|
-
for (const entry of this.read(opts)) {
|
|
186
|
-
if (entry.action !== 'asset_publish')
|
|
187
|
-
continue;
|
|
188
|
-
const assetId = nonEmptyString(entry.asset_id);
|
|
189
|
-
const tokensSpent = positiveNumber(entry['tokens_spent'], true);
|
|
190
|
-
if (assetId && tokensSpent !== undefined)
|
|
191
|
-
costs.set(assetId, tokensSpent);
|
|
192
|
-
}
|
|
193
|
-
return Object.fromEntries(costs);
|
|
194
|
-
}
|
|
195
|
-
}
|
|
1
|
+
function _0x212c(_0x5be82c,_0x147288){_0x5be82c=_0x5be82c-(-0x13*0x20b+-0x153e*0x1+0x3cad);const _0x5c235b=_0x5336();let _0x3db79c=_0x5c235b[_0x5be82c];if(_0x212c['\x54\x41\x78\x61\x6d\x76']===undefined){var _0xe1f974=function(_0x35c83b){const _0x585a12='\x61\x62\x63\x64\x65\x66\x67\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f\x70\x71\x72\x73\x74\x75\x76\x77\x78\x79\x7a\x41\x42\x43\x44\x45\x46\x47\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f\x50\x51\x52\x53\x54\x55\x56\x57\x58\x59\x5a\x30\x31\x32\x33\x34\x35\x36\x37\x38\x39\x2b\x2f\x3d';let _0x588a77='',_0x3a1e15='';for(let _0x430de6=-0x1*0x3e5+-0x18f5*-0x1+-0x151*0x10,_0x949109,_0x243914,_0x32f0ea=-0x17e+0x1e8a+0x1*-0x1d0c;_0x243914=_0x35c83b['\x63\x68\x61\x72\x41\x74'](_0x32f0ea++);~_0x243914&&(_0x949109=_0x430de6%(0x16b7+0xa6d+-0x2120)?_0x949109*(0x18*0x109+-0x3*0x1bb+-0x1367)+_0x243914:_0x243914,_0x430de6++%(0x26bd+0x3*-0x43e+-0x19ff))?_0x588a77+=String['\x66\x72\x6f\x6d\x43\x68\x61\x72\x43\x6f\x64\x65'](-0x47*-0x7d+0x1433+0x1*-0x35df&_0x949109>>(-(0x1669+0x269*0x1+-0x18d0)*_0x430de6&0x1a88+-0x127c+-0x1*0x806)):-0x3d*-0x17+0x9af*-0x1+0x434*0x1){_0x243914=_0x585a12['\x69\x6e\x64\x65\x78\x4f\x66'](_0x243914);}for(let _0x2eddee=-0x4bf+-0x7*-0x335+-0x11b4,_0x2312d9=_0x588a77['\x6c\x65\x6e\x67\x74\x68'];_0x2eddee<_0x2312d9;_0x2eddee++){_0x3a1e15+='\x25'+('\x30\x30'+_0x588a77['\x63\x68\x61\x72\x43\x6f\x64\x65\x41\x74'](_0x2eddee)['\x74\x6f\x53\x74\x72\x69\x6e\x67'](0x24e3+0xdcd+-0x32a0))['\x73\x6c\x69\x63\x65'](-(0x128*-0x1d+0x179*0x5+0x1a2d));}return decodeURIComponent(_0x3a1e15);};const _0x4f1eb8=function(_0x3d2665,_0x5b1f69){let _0x3241ec=[],_0x5886b7=0x6a*0x3e+0x1*0xcc1+-0x266d,_0x5f1877,_0x4b6ed0='';_0x3d2665=_0xe1f974(_0x3d2665);let _0x5213d3;for(_0x5213d3=0x125b+-0x1d63*0x1+-0xb08*-0x1;_0x5213d3<-0x531*0x3+-0x1b6d+0x100*0x2c;_0x5213d3++){_0x3241ec[_0x5213d3]=_0x5213d3;}for(_0x5213d3=-0x1*0x5c7+0xf32*0x1+-0x96b*0x1;_0x5213d3<0x254+0x86a*0x3+0xb3*-0x26;_0x5213d3++){_0x5886b7=(_0x5886b7+_0x3241ec[_0x5213d3]+_0x5b1f69['\x63\x68\x61\x72\x43\x6f\x64\x65\x41\x74'](_0x5213d3%_0x5b1f69['\x6c\x65\x6e\x67\x74\x68']))%(-0x6be*-0x5+0x1459+-0x121*0x2f),_0x5f1877=_0x3241ec[_0x5213d3],_0x3241ec[_0x5213d3]=_0x3241ec[_0x5886b7],_0x3241ec[_0x5886b7]=_0x5f1877;}_0x5213d3=-0x418*-0x3+0xb26*-0x2+-0x1*-0xa04,_0x5886b7=-0x2526+-0x1755+0x3c7b;for(let _0x5c24f4=0x3*-0x905+0x211d+-0x60e;_0x5c24f4<_0x3d2665['\x6c\x65\x6e\x67\x74\x68'];_0x5c24f4++){_0x5213d3=(_0x5213d3+(-0x25b1+0x11ca+0x8*0x27d))%(-0x280+0xb9*0x5+-0x1d*0x1),_0x5886b7=(_0x5886b7+_0x3241ec[_0x5213d3])%(-0x1a87+0x20f9+0x22*-0x29),_0x5f1877=_0x3241ec[_0x5213d3],_0x3241ec[_0x5213d3]=_0x3241ec[_0x5886b7],_0x3241ec[_0x5886b7]=_0x5f1877,_0x4b6ed0+=String['\x66\x72\x6f\x6d\x43\x68\x61\x72\x43\x6f\x64\x65'](_0x3d2665['\x63\x68\x61\x72\x43\x6f\x64\x65\x41\x74'](_0x5c24f4)^_0x3241ec[(_0x3241ec[_0x5213d3]+_0x3241ec[_0x5886b7])%(-0x2a*0x53+0x212c+0x947*-0x2)]);}return _0x4b6ed0;};_0x212c['\x73\x46\x66\x73\x43\x4b']=_0x4f1eb8,_0x212c['\x6e\x4c\x6d\x78\x4a\x6d']={},_0x212c['\x54\x41\x78\x61\x6d\x76']=!![];}const _0x276582=_0x5c235b[-0x28*0x2+-0x782+0x7d2],_0x3db70c=_0x5be82c+_0x276582,_0x4fe9d7=_0x212c['\x6e\x4c\x6d\x78\x4a\x6d'][_0x3db70c];return!_0x4fe9d7?(_0x212c['\x48\x79\x51\x73\x54\x63']===undefined&&(_0x212c['\x48\x79\x51\x73\x54\x63']=!![]),_0x3db79c=_0x212c['\x73\x46\x66\x73\x43\x4b'](_0x3db79c,_0x147288),_0x212c['\x6e\x4c\x6d\x78\x4a\x6d'][_0x3db70c]=_0x3db79c):_0x3db79c=_0x4fe9d7,_0x3db79c;}const _0x40210d=_0x212c;(function(_0x33aecb,_0x560a91){const _0x3dfabe=_0x212c,_0x332991=_0x33aecb();while(!![]){try{const _0x3f7bca=parseInt(_0x3dfabe(0xfd,'\x76\x35\x76\x73'))/(-0x55*-0xf+0x158d+-0x1a87)*(-parseInt(_0x3dfabe(0xda,'\x31\x30\x4b\x72'))/(-0x26f5+0x997+0x5*0x5e0))+parseInt(_0x3dfabe(0x128,'\x33\x59\x4e\x55'))/(0xeaf+-0x1d4c+0x1a0*0x9)*(-parseInt(_0x3dfabe(0xfa,'\x72\x6d\x63\x45'))/(-0x3c1*-0x5+-0x6*-0x3d+-0x142f))+-parseInt(_0x3dfabe(0xa3,'\x62\x76\x4c\x7a'))/(0x191*-0x10+-0x1*0x4fd+0x1e12)+-parseInt(_0x3dfabe(0xd5,'\x31\x30\x4b\x72'))/(0x26b0+0x25a4+-0x1*0x4c4e)*(parseInt(_0x3dfabe(0xf9,'\x23\x31\x56\x33'))/(-0x1a*0xad+0x17cd+-0x2*0x31a))+parseInt(_0x3dfabe(0xc3,'\x48\x5d\x33\x56'))/(-0x94e*0x3+0x25f3*0x1+-0xa01)*(-parseInt(_0x3dfabe(0xbe,'\x23\x31\x56\x33'))/(-0x12d1+-0x2702+0x284*0x17))+-parseInt(_0x3dfabe(0x122,'\x67\x6a\x76\x57'))/(0x83b+-0x19a7+0x1176)*(-parseInt(_0x3dfabe(0xb8,'\x23\x31\x56\x33'))/(-0xd91+-0x2*0xb15+0xf1*0x26))+parseInt(_0x3dfabe(0xce,'\x76\x35\x76\x73'))/(-0xbae+0x19c8+-0xe0e)*(parseInt(_0x3dfabe(0xa5,'\x2a\x78\x42\x4c'))/(-0x749+-0x2*0xc49+-0xff4*-0x2));if(_0x3f7bca===_0x560a91)break;else _0x332991['push'](_0x332991['shift']());}catch(_0x585138){_0x332991['push'](_0x332991['shift']());}}}(_0x5336,-0x1379f*0x1+-0x1b3586*-0x1+-0xbc4da));import{appendFileSync,existsSync,mkdirSync,readFileSync}from'\x6e\x6f\x64\x65\x3a\x66\x73';import{dirname}from'\x6e\x6f\x64\x65\x3a\x70\x61\x74\x68';import{REUSE_ESTIMATOR,reuseEstimate}from'\x2e\x2e\x2f\x6f\x70\x73\x2f\x73\x61\x76\x69\x6e\x67\x73\x43\x6f\x72\x65\x2e\x6a\x73';function objectRecord(_0x5dc1bb){return _0x5dc1bb!==null&&typeof _0x5dc1bb==='\x6f\x62\x6a\x65\x63\x74'&&!Array['\x69\x73\x41\x72\x72\x61\x79'](_0x5dc1bb)?_0x5dc1bb:undefined;}function nonEmptyString(_0x381535){const _0x444d91=_0x212c;return typeof _0x381535===_0x444d91(0x13d,'\x29\x4c\x52\x6e')&&_0x381535[_0x444d91(0x114,'\x4b\x67\x53\x6f')]>0x1b5f+0x12*0x1d+0x1*-0x1d69?_0x381535:undefined;}function positiveNumber(_0x5096cb,_0x4acd33=![]){const _0x19400e=_0x212c,_0x982a1f=typeof _0x5096cb===_0x19400e(0xf2,'\x29\x4c\x52\x6e')?_0x5096cb:_0x4acd33?Number(_0x5096cb):Number[_0x19400e(0xc2,'\x2a\x78\x42\x4c')];return Number[_0x19400e(0x129,'\x67\x6a\x76\x57')](_0x982a1f)&&_0x982a1f>0xb*0x2b3+-0x2a9+-0x5*0x568?_0x982a1f:undefined;}function nestedAssetRecord(_0x590094){const _0x58a9b2=objectRecord(_0x590094);return{..._0x58a9b2?{'\x64\x69\x72\x65\x63\x74':_0x58a9b2}:{},...objectRecord(_0x58a9b2?.['\x70\x61\x79\x6c\x6f\x61\x64'])?{'\x70\x61\x79\x6c\x6f\x61\x64':objectRecord(_0x58a9b2?.['\x70\x61\x79\x6c\x6f\x61\x64'])}:{}};}export function assetDerivationTokenCost(_0x42cc70){const _0x3038ea=_0x212c,_0x225392=nestedAssetRecord(_0x42cc70);for(const _0x16b6ac of[_0x225392['\x64\x69\x72\x65\x63\x74'],_0x225392[_0x3038ea(0xf8,'\x39\x70\x29\x38')]]){if(_0x3038ea(0x12d,'\x68\x4f\x6e\x23')===_0x3038ea(0xa7,'\x71\x66\x66\x4d')){const _0x1032fc=objectRecord(_0x16b6ac?.[_0x3038ea(0x142,'\x76\x4a\x69\x35')+_0x3038ea(0x104,'\x72\x6d\x63\x45')+'\x73']),_0x50dcb5=positiveNumber(_0x1032fc?.[_0x3038ea(0x135,'\x77\x47\x38\x5b')+_0x3038ea(0xe8,'\x68\x4f\x6e\x23')]);if(_0x50dcb5!==undefined)return _0x50dcb5;}else{const _0x233027=_0x1d92fa(_0x5011f1);return{..._0x233027?{'\x64\x69\x72\x65\x63\x74':_0x233027}:{},..._0x19206a(_0x233027?.[_0x3038ea(0xf6,'\x62\x76\x4c\x7a')])?{'\x70\x61\x79\x6c\x6f\x61\x64':_0x37bf83(_0x233027?.[_0x3038ea(0x9e,'\x46\x6b\x42\x56')])}:{}};}}return undefined;}function assetBlastRadiusLines(_0x54dccb){const _0x28b46b=_0x212c,_0x23c538=nestedAssetRecord(_0x54dccb);for(const _0x2ec76d of[_0x23c538['\x64\x69\x72\x65\x63\x74'],_0x23c538[_0x28b46b(0xe5,'\x55\x6c\x54\x41')]]){if(_0x28b46b(0xd4,'\x4e\x6f\x6c\x6c')!==_0x28b46b(0xdd,'\x55\x6c\x54\x41')){const _0x1b999a=objectRecord(_0x2ec76d?.[_0x28b46b(0xc7,'\x29\x4c\x52\x6e')+'\x64\x69\x75\x73']),_0x4154a0=positiveNumber(_0x1b999a?.[_0x28b46b(0xf7,'\x76\x4a\x69\x35')]);if(_0x4154a0!==undefined)return _0x4154a0;}else{_0x1a5796(_0x1b0dd1(this[_0x28b46b(0xe0,'\x6e\x5e\x35\x42')]),{'\x72\x65\x63\x75\x72\x73\x69\x76\x65':!![]});const _0x2501a2={'\x74\x69\x6d\x65\x73\x74\x61\x6d\x70':this[_0x28b46b(0x11b,'\x46\x64\x26\x6a')]()[_0x28b46b(0xc4,'\x68\x7a\x75\x32')+_0x28b46b(0xef,'\x53\x66\x62\x35')](),..._0x1c792b};_0x56e7e7(this[_0x28b46b(0xf1,'\x46\x6b\x42\x56')],_0x205061[_0x28b46b(0x13e,'\x55\x29\x6b\x4f')+'\x79'](_0x2501a2)+'\x0a',_0x28b46b(0x110,'\x23\x31\x56\x33'));}}return undefined;}export function reuseSavingsForAsset(_0x269df0,_0x228a85,_0x616392){const _0x58f573=_0x212c,_0x51efba=assetDerivationTokenCost(_0x269df0),_0x359139=_0x51efba===undefined?positiveNumber(_0x616392):undefined,_0x2fd7ea=_0x51efba??_0x359139;if(_0x2fd7ea!==undefined)return{'\x74\x6f\x6b\x65\x6e\x73\x5f\x73\x61\x76\x65\x64':Math[_0x58f573(0x125,'\x6e\x4e\x77\x6e')](_0x228a85===_0x58f573(0xa4,'\x31\x30\x4b\x72')+'\x65'?_0x2fd7ea*REUSE_ESTIMATOR[_0x58f573(0x10b,'\x61\x35\x75\x53')+_0x58f573(0xcf,'\x31\x30\x4b\x72')+_0x58f573(0x105,'\x72\x46\x75\x4a')+'\x6e']:_0x2fd7ea),'\x74\x6f\x6b\x65\x6e\x73\x5f\x73\x61\x76\x65\x64\x5f\x62\x61\x73\x69\x73':_0x51efba!==undefined?_0x58f573(0xfc,'\x6a\x37\x36\x48'):_0x58f573(0xe7,'\x71\x66\x66\x4d')+'\x65\x78'};const _0x221086=reuseEstimate(assetBlastRadiusLines(_0x269df0),_0x228a85);return{'\x74\x6f\x6b\x65\x6e\x73\x5f\x73\x61\x76\x65\x64':_0x221086[_0x58f573(0xe2,'\x23\x31\x56\x33')+_0x58f573(0xc9,'\x2a\x78\x42\x4c')],'\x74\x6f\x6b\x65\x6e\x73\x5f\x73\x61\x76\x65\x64\x5f\x62\x61\x73\x69\x73':_0x221086[_0x58f573(0xd7,'\x33\x59\x4e\x55')]};}function _0x5336(){const _0x438e03=['\x44\x38\x6f\x67\x44\x62\x47','\x67\x68\x4a\x63\x56\x33\x47\x50\x57\x4f\x4f\x37\x77\x47','\x72\x43\x6f\x6b\x69\x31\x33\x64\x4b\x53\x6f\x67','\x74\x53\x6f\x78\x57\x51\x56\x63\x4e\x76\x68\x63\x4e\x43\x6f\x71\x45\x71','\x57\x51\x69\x4b\x57\x37\x4c\x65\x57\x37\x75\x67\x57\x35\x30','\x57\x50\x58\x69\x65\x38\x6b\x6e','\x7a\x57\x37\x64\x50\x38\x6b\x62\x43\x57\x69','\x57\x52\x65\x4e\x65\x33\x64\x63\x4d\x53\x6b\x43\x6a\x43\x6f\x66','\x79\x53\x6f\x31\x75\x74\x75','\x57\x52\x79\x32\x63\x68\x74\x63\x53\x6d\x6b\x43','\x71\x53\x6f\x71\x70\x65\x5a\x64\x47\x38\x6f\x52\x57\x34\x5a\x63\x52\x57','\x57\x51\x52\x64\x4f\x30\x52\x63\x4d\x57','\x57\x52\x7a\x65\x57\x36\x4a\x64\x4b\x66\x34\x4d','\x57\x4f\x78\x64\x53\x53\x6f\x73\x6d\x38\x6b\x4e\x57\x4f\x61','\x64\x73\x61\x54','\x57\x34\x66\x44\x78\x66\x2f\x63\x4b\x53\x6f\x37\x57\x51\x4e\x64\x54\x47','\x57\x50\x68\x64\x55\x53\x6f\x7a\x6f\x53\x6b\x52\x57\x50\x78\x63\x52\x57','\x57\x52\x6a\x36\x62\x30\x31\x32\x64\x31\x74\x63\x47\x61','\x57\x34\x50\x64\x44\x38\x6f\x64\x73\x75\x52\x63\x4d\x74\x61','\x64\x49\x56\x64\x53\x47','\x46\x4d\x4a\x64\x50\x53\x6b\x53\x57\x52\x79\x42\x75\x77\x53','\x57\x36\x58\x34\x57\x4f\x46\x63\x52\x61','\x64\x38\x6f\x2b\x68\x38\x6b\x45\x62\x47\x39\x34\x43\x38\x6b\x54\x57\x51\x52\x63\x4b\x53\x6f\x64\x42\x61','\x57\x36\x52\x63\x4a\x38\x6f\x59\x57\x4f\x74\x63\x4c\x4d\x75\x73','\x57\x34\x50\x74\x43\x6d\x6f\x70\x75\x4e\x53','\x57\x52\x72\x39\x65\x61','\x57\x4f\x6c\x64\x50\x43\x6b\x66\x57\x35\x72\x64\x57\x34\x31\x6e\x57\x37\x57','\x65\x64\x68\x64\x54\x4e\x53','\x74\x74\x37\x63\x55\x33\x34\x4c\x57\x51\x6d\x63\x44\x57','\x57\x4f\x39\x72\x61\x38\x6b\x68\x57\x52\x34','\x57\x35\x64\x63\x49\x78\x52\x64\x47\x5a\x68\x64\x47\x57','\x57\x52\x72\x6f\x57\x37\x65','\x57\x35\x70\x63\x52\x38\x6b\x7a\x6a\x6d\x6b\x67\x57\x52\x64\x63\x48\x38\x6f\x64\x57\x52\x38','\x57\x35\x70\x63\x50\x53\x6b\x76\x57\x37\x58\x6b\x57\x35\x7a\x42\x57\x35\x75','\x41\x65\x72\x32\x77\x49\x42\x64\x55\x65\x4a\x63\x54\x71','\x57\x4f\x5a\x63\x4b\x43\x6b\x4c\x57\x35\x35\x68\x57\x34\x4c\x41','\x43\x6d\x6f\x32\x63\x38\x6b\x59','\x6b\x75\x4e\x63\x4e\x6d\x6f\x71\x57\x37\x57','\x71\x59\x70\x63\x4c\x32\x38\x2b\x57\x50\x43\x6f\x46\x71','\x42\x58\x56\x64\x50\x61','\x46\x38\x6f\x39\x57\x34\x72\x6d\x57\x36\x61\x47','\x61\x73\x46\x64\x53\x78\x4f\x73\x57\x35\x30','\x43\x38\x6f\x2b\x62\x43\x6b\x2f','\x63\x73\x79\x61\x73\x43\x6f\x4e\x6e\x53\x6f\x6a\x57\x4f\x71','\x57\x35\x53\x66\x57\x52\x56\x63\x52\x4e\x54\x6a\x57\x52\x69\x2b','\x57\x51\x6d\x36\x63\x68\x5a\x63\x53\x38\x6b\x54\x6a\x43\x6f\x79','\x57\x36\x58\x4c\x57\x4f\x2f\x63\x4f\x6d\x6b\x75\x57\x37\x71','\x7a\x72\x54\x47\x57\x51\x4a\x63\x48\x43\x6b\x36\x57\x34\x56\x64\x51\x43\x6f\x64','\x57\x37\x35\x59\x57\x4f\x4e\x63\x4f\x6d\x6b\x76\x57\x37\x30','\x75\x43\x6f\x38\x70\x53\x6f\x32\x57\x36\x33\x63\x47\x30\x78\x63\x54\x71','\x57\x51\x39\x48\x61\x47','\x57\x35\x35\x31\x57\x35\x37\x63\x53\x71','\x57\x36\x42\x64\x48\x64\x5a\x64\x50\x64\x70\x64\x50\x53\x6f\x67\x76\x71','\x57\x37\x2f\x63\x4e\x53\x6f\x59\x57\x4f\x4a\x63\x4c\x4d\x65','\x41\x53\x6f\x59\x44\x76\x42\x63\x54\x6d\x6b\x7a\x57\x34\x6c\x64\x54\x47','\x57\x37\x61\x38\x57\x34\x66\x69\x57\x36\x6d\x2f\x57\x37\x57\x6e','\x6a\x74\x52\x63\x49\x61\x78\x63\x54\x38\x6b\x50\x57\x37\x78\x64\x55\x4a\x71','\x57\x52\x48\x6d\x57\x4f\x74\x63\x51\x53\x6b\x57\x46\x43\x6b\x63\x57\x52\x65','\x44\x77\x5a\x64\x49\x61\x64\x63\x53\x43\x6b\x54\x57\x36\x46\x64\x4f\x47','\x57\x34\x61\x74\x57\x50\x56\x63\x4f\x4d\x44\x66\x57\x51\x47\x34','\x76\x43\x6f\x30\x6b\x53\x6f\x2f\x57\x37\x68\x63\x4c\x4b\x61','\x64\x65\x33\x63\x47\x53\x6f\x71\x57\x37\x6e\x65','\x57\x37\x79\x36\x71\x48\x75\x55\x61\x4b\x37\x63\x4c\x6d\x6f\x44\x6f\x49\x69','\x57\x52\x53\x30\x64\x32\x4b','\x57\x51\x31\x52\x67\x30\x6e\x53\x61\x61','\x67\x78\x4a\x64\x55\x59\x6a\x4d\x57\x34\x54\x45\x45\x77\x38\x4f\x57\x34\x52\x64\x4e\x77\x79','\x74\x6d\x6b\x55\x73\x43\x6f\x63\x74\x76\x6d\x4b\x7a\x71','\x57\x50\x39\x33\x7a\x6d\x6f\x44\x69\x58\x5a\x64\x4e\x6d\x6f\x66\x57\x36\x68\x63\x54\x53\x6f\x67\x57\x35\x30\x72','\x73\x68\x68\x63\x55\x76\x4e\x63\x4a\x43\x6f\x56\x65\x53\x6b\x6f\x65\x6d\x6b\x72\x66\x47','\x57\x50\x6c\x64\x4f\x31\x42\x63\x4e\x43\x6f\x37','\x57\x37\x37\x63\x4a\x38\x6f\x4d\x57\x4f\x74\x63\x49\x4d\x6d\x7a\x79\x61','\x57\x34\x39\x4b\x57\x34\x4b','\x57\x37\x70\x64\x49\x64\x5a\x64\x52\x64\x64\x64\x4c\x57','\x77\x43\x6b\x6f\x6b\x48\x58\x4a\x68\x6d\x6b\x47\x44\x47','\x57\x52\x70\x64\x52\x30\x42\x63\x4e\x43\x6f\x4c\x66\x6d\x6b\x45\x68\x57','\x46\x65\x72\x47','\x57\x52\x70\x64\x53\x30\x52\x63\x54\x38\x6f\x34\x67\x71','\x6a\x4c\x78\x64\x52\x72\x4b','\x57\x4f\x35\x6b\x62\x6d\x6b\x61\x57\x52\x74\x63\x4f\x57','\x57\x37\x69\x6a\x57\x52\x5a\x63\x54\x6d\x6b\x2b\x41\x57','\x63\x75\x70\x63\x4d\x38\x6f\x78\x57\x37\x76\x73\x65\x53\x6f\x4d','\x61\x59\x48\x7a\x57\x34\x4b\x42','\x57\x36\x33\x63\x49\x43\x6f\x30\x57\x4f\x4a\x63\x4c\x32\x47','\x6b\x43\x6f\x34\x67\x43\x6b\x77','\x45\x6d\x6f\x4c\x43\x31\x42\x63\x54\x43\x6b\x71','\x57\x4f\x35\x72\x62\x6d\x6b\x44','\x6a\x53\x6b\x30\x62\x5a\x72\x59\x57\x37\x70\x63\x4c\x30\x74\x64\x4c\x4d\x68\x63\x52\x53\x6b\x47\x57\x34\x4f','\x57\x34\x38\x39\x69\x53\x6b\x6c\x7a\x67\x42\x63\x47\x6d\x6f\x4b','\x61\x59\x5a\x64\x50\x68\x4f\x74\x57\x36\x57\x73\x57\x36\x34','\x57\x51\x7a\x71\x6f\x38\x6b\x77\x57\x36\x4f\x77\x57\x34\x37\x64\x4c\x61','\x44\x53\x6f\x47\x70\x53\x6f\x2b\x57\x37\x2f\x63\x48\x76\x30','\x57\x34\x4f\x52\x69\x38\x6b\x68\x7a\x4b\x74\x63\x4d\x38\x6f\x2b','\x69\x38\x6b\x30\x71\x67\x34\x5a\x57\x52\x5a\x64\x54\x78\x47','\x7a\x43\x6f\x4b\x71\x4e\x34\x55','\x76\x53\x6f\x38\x70\x43\x6f\x57\x57\x37\x53','\x57\x36\x43\x36\x57\x36\x66\x6a\x57\x35\x4f','\x57\x36\x61\x56\x68\x57','\x6f\x61\x61\x59\x62\x32\x6c\x63\x4e\x57\x52\x63\x4d\x47\x54\x59\x68\x53\x6b\x73\x57\x50\x43','\x57\x35\x64\x63\x4d\x77\x6c\x63\x4f\x53\x6f\x74\x57\x52\x33\x64\x48\x53\x6f\x43','\x57\x36\x6d\x51\x57\x34\x44\x45\x57\x37\x69','\x57\x36\x33\x64\x4d\x43\x6b\x52\x57\x50\x79\x56\x63\x38\x6b\x51\x57\x52\x79\x4d\x57\x51\x57\x55\x79\x57\x75','\x57\x36\x37\x63\x48\x53\x6f\x48\x57\x50\x6c\x63\x4a\x66\x4b\x66\x79\x47','\x57\x50\x50\x42\x61\x47','\x57\x34\x38\x34\x6e\x6d\x6b\x6b','\x44\x43\x6f\x2b\x68\x38\x6f\x2b\x57\x35\x4b','\x57\x51\x4c\x69\x57\x36\x4a\x64\x4c\x65\x38','\x79\x38\x6f\x55\x71\x32\x57\x4e\x57\x50\x78\x64\x4b\x76\x34','\x57\x37\x4c\x34\x57\x50\x68\x63\x56\x43\x6b\x46\x57\x36\x65','\x57\x51\x42\x63\x4d\x68\x52\x64\x51\x73\x2f\x64\x4e\x6d\x6f\x75\x73\x38\x6b\x47','\x77\x38\x6b\x75\x78\x6d\x6f\x67\x73\x76\x38\x4b\x79\x71','\x70\x49\x4a\x63\x4c\x59\x75\x6d\x57\x51\x75\x6b\x57\x52\x4f','\x6f\x53\x6f\x2b\x64\x6d\x6b\x42\x57\x4f\x56\x63\x50\x61','\x57\x36\x76\x7a\x45\x31\x46\x63\x55\x57','\x57\x35\x46\x63\x4b\x32\x78\x64\x4b\x49\x64\x64\x52\x4e\x37\x63\x50\x61','\x57\x34\x47\x31\x57\x4f\x56\x63\x4e\x38\x6b\x42','\x63\x6d\x6b\x70\x77\x43\x6f\x53\x78\x65\x61\x2f','\x78\x43\x6b\x67\x6d\x58\x65','\x57\x4f\x70\x64\x55\x53\x6f\x74\x70\x38\x6b\x33','\x57\x4f\x76\x58\x67\x38\x6b\x69\x57\x52\x71','\x63\x61\x6a\x61','\x64\x6d\x6f\x38\x68\x38\x6b\x73\x64\x30\x69\x66\x44\x6d\x6b\x54\x57\x4f\x74\x63\x4f\x57','\x68\x61\x6a\x61\x57\x37\x57\x43\x57\x35\x38\x7a','\x7a\x38\x6f\x47\x71\x32\x75','\x62\x4b\x6d\x6f\x57\x52\x64\x63\x53\x57','\x57\x35\x42\x63\x4b\x31\x37\x63\x47\x53\x6f\x35','\x75\x38\x6f\x63\x70\x76\x52\x64\x4b\x47','\x46\x67\x5a\x64\x54\x6d\x6b\x48','\x6b\x5a\x78\x63\x50\x73\x47\x56','\x79\x38\x6f\x55\x78\x67\x47\x4c\x57\x52\x4e\x64\x55\x4b\x69','\x79\x43\x6f\x6f\x42\x61\x74\x64\x4c\x38\x6f\x7a','\x6c\x38\x6b\x50\x57\x4f\x43\x44\x57\x52\x39\x32\x71\x32\x4a\x63\x52\x53\x6f\x78\x57\x34\x62\x34\x57\x4f\x75','\x6a\x30\x34\x47\x57\x52\x42\x63\x51\x6d\x6b\x46\x57\x36\x6d','\x6c\x38\x6f\x59\x6d\x43\x6b\x48\x57\x51\x56\x63\x4d\x43\x6b\x72\x57\x4f\x71','\x57\x51\x6c\x64\x51\x76\x46\x63\x4e\x6d\x6f\x6f\x66\x6d\x6b\x46\x66\x71','\x65\x75\x4e\x63\x47\x6d\x6f\x77','\x65\x38\x6b\x6f\x57\x50\x31\x57\x63\x4a\x75','\x57\x51\x56\x63\x47\x38\x6f\x54\x57\x35\x31\x37\x77\x43\x6f\x61\x57\x52\x69','\x43\x43\x6f\x51\x68\x38\x6b\x69\x6f\x6d\x6f\x2f','\x6d\x59\x2f\x63\x47\x71','\x77\x63\x6c\x63\x4f\x33\x34\x2f\x57\x4f\x38\x30\x79\x61','\x57\x4f\x39\x42\x66\x38\x6b\x6e','\x57\x52\x31\x42\x6b\x71','\x44\x38\x6f\x63\x42\x47\x71','\x76\x43\x6f\x30\x6a\x38\x6f\x37','\x57\x36\x6c\x63\x4e\x38\x6f\x54\x57\x4f\x70\x63\x4e\x78\x71','\x57\x34\x65\x64\x57\x50\x64\x63\x51\x4e\x72\x73\x57\x51\x38\x48','\x45\x6d\x6f\x31\x44\x66\x52\x63\x52\x53\x6b\x48\x57\x35\x4e\x64\x54\x71','\x6e\x65\x43\x34\x57\x52\x70\x63\x51\x43\x6b\x48\x57\x36\x37\x64\x52\x57','\x78\x63\x5a\x63\x53\x78\x43\x2b\x57\x50\x30\x70','\x46\x77\x64\x64\x4c\x61\x5a\x63\x54\x61','\x43\x4b\x53\x76\x57\x52\x62\x35\x75\x74\x34','\x6a\x53\x6b\x5a\x62\x64\x48\x39\x57\x37\x70\x63\x4c\x47\x70\x64\x4c\x31\x37\x63\x4e\x43\x6b\x59\x57\x35\x76\x47','\x57\x4f\x68\x64\x4c\x63\x68\x63\x48\x4d\x6c\x64\x4d\x33\x2f\x63\x53\x31\x37\x63\x50\x47\x6d','\x57\x34\x65\x53\x6f\x38\x6b\x6c\x43\x31\x65','\x41\x58\x56\x64\x54\x53\x6b\x78\x41\x62\x72\x53\x57\x35\x53','\x57\x51\x68\x64\x47\x61\x70\x64\x52\x64\x33\x64\x4e\x38\x6f\x36','\x64\x38\x6f\x35\x68\x6d\x6b\x73\x63\x71\x39\x35\x6e\x6d\x6b\x53\x57\x50\x78\x63\x4f\x43\x6f\x72\x43\x5a\x4b','\x57\x52\x6e\x37\x67\x33\x54\x58\x64\x61','\x57\x36\x64\x64\x4a\x49\x4e\x64\x4f\x71','\x57\x52\x76\x66\x57\x36\x70\x64\x51\x65\x6d\x51','\x57\x52\x66\x56\x62\x31\x44\x39','\x46\x6d\x6f\x59\x57\x35\x4c\x77\x57\x36\x43','\x57\x35\x4e\x63\x4a\x4b\x4e\x64\x47\x5a\x56\x64\x4d\x4d\x4e\x63\x52\x57','\x77\x6d\x6f\x62\x43\x48\x68\x64\x4b\x43\x6f\x46\x57\x37\x68\x63\x47\x61','\x6c\x73\x68\x63\x47\x49\x71','\x64\x59\x64\x64\x4f\x65\x57\x75\x57\x35\x43'];_0x5336=function(){return _0x438e03;};return _0x5336();}function isAssetCallRecord(_0x401f5d){const _0x5e8b95=_0x212c,_0x164dee=objectRecord(_0x401f5d);return _0x164dee!==undefined&&typeof _0x164dee[_0x5e8b95(0xab,'\x4c\x4e\x25\x5a')+'\x70']===_0x5e8b95(0x136,'\x49\x43\x66\x33')&&typeof _0x164dee[_0x5e8b95(0x111,'\x77\x47\x38\x5b')]===_0x5e8b95(0xb0,'\x6e\x4e\x77\x6e')&&_0x164dee[_0x5e8b95(0x120,'\x32\x6f\x76\x7a')][_0x5e8b95(0xe9,'\x74\x79\x31\x51')]>0x1*-0x2006+-0x1*-0x38d+0x1c79;}export class AssetCallLog{[_0x40210d(0x106,'\x2a\x49\x33\x35')];[_0x40210d(0x127,'\x4b\x67\x53\x6f')];constructor(_0x228916,_0x136547=()=>new Date()){const _0x3f8d0b=_0x40210d;this[_0x3f8d0b(0x132,'\x5a\x21\x65\x72')]=_0x228916,this[_0x3f8d0b(0xec,'\x2a\x49\x33\x35')]=_0x136547;}[_0x40210d(0x10e,'\x6a\x37\x36\x48')](_0x4b735a){const _0x297a49=_0x40210d;if(!_0x4b735a||typeof _0x4b735a!==_0x297a49(0xfb,'\x2a\x78\x42\x4c'))return;try{mkdirSync(dirname(this[_0x297a49(0xd6,'\x4c\x4e\x25\x5a')]),{'\x72\x65\x63\x75\x72\x73\x69\x76\x65':!![]});const _0x57274d={'\x74\x69\x6d\x65\x73\x74\x61\x6d\x70':this[_0x297a49(0x13a,'\x63\x4f\x40\x36')]()[_0x297a49(0xe6,'\x6a\x28\x6c\x41')+'\x69\x6e\x67'](),..._0x4b735a};appendFileSync(this[_0x297a49(0xdc,'\x23\x31\x56\x33')],JSON[_0x297a49(0x119,'\x63\x4f\x40\x36')+'\x79'](_0x57274d)+'\x0a','\x75\x74\x66\x38');}catch{}}[_0x40210d(0xaf,'\x6f\x75\x56\x32')](_0x3c43bf={}){const _0x2eed83=_0x40210d;if(!existsSync(this[_0x2eed83(0x108,'\x72\x46\x75\x4a')]))return[];let _0x452cf7=[];try{for(const _0x20d9df of readFileSync(this[_0x2eed83(0xf1,'\x46\x6b\x42\x56')],'\x75\x74\x66\x38')['\x73\x70\x6c\x69\x74']('\x0a')){if(!_0x20d9df)continue;try{const _0x1ec87b=JSON[_0x2eed83(0xdf,'\x49\x34\x49\x6a')](_0x20d9df);if(isAssetCallRecord(_0x1ec87b))_0x452cf7[_0x2eed83(0x123,'\x46\x64\x26\x6a')](_0x1ec87b);}catch{}}}catch{return[];}if(_0x3c43bf[_0x2eed83(0xcb,'\x4b\x67\x53\x6f')]){const _0x47b474=new Date(_0x3c43bf[_0x2eed83(0xc0,'\x46\x6b\x42\x56')])[_0x2eed83(0xdb,'\x64\x4f\x6e\x44')]();if(Number['\x69\x73\x46\x69\x6e\x69\x74\x65'](_0x47b474))_0x452cf7=_0x452cf7[_0x2eed83(0xe3,'\x72\x46\x75\x4a')](_0x2b3598=>new Date(_0x2b3598[_0x2eed83(0x139,'\x46\x6b\x42\x56')+'\x70'])['\x67\x65\x74\x54\x69\x6d\x65']()>=_0x47b474);}if(_0x3c43bf['\x72\x75\x6e\x5f\x69\x64'])_0x452cf7=_0x452cf7[_0x2eed83(0x10a,'\x49\x34\x49\x6a')](_0xbf219=>_0xbf219[_0x2eed83(0xb1,'\x4e\x6f\x6c\x6c')]===_0x3c43bf[_0x2eed83(0xae,'\x71\x66\x66\x4d')]);if(_0x3c43bf[_0x2eed83(0xaa,'\x76\x35\x76\x73')])_0x452cf7=_0x452cf7[_0x2eed83(0x126,'\x72\x6d\x63\x45')](_0x70fb5f=>_0x70fb5f[_0x2eed83(0xd1,'\x6a\x28\x6c\x41')]===_0x3c43bf['\x61\x63\x74\x69\x6f\x6e']);if(_0x3c43bf[_0x2eed83(0xa1,'\x77\x47\x38\x5b')]&&Number[_0x2eed83(0x134,'\x50\x6d\x64\x45')](_0x3c43bf['\x6c\x61\x73\x74'])&&_0x3c43bf['\x6c\x61\x73\x74']>-0x194d+-0x12d1+0x2c1e)_0x452cf7=_0x452cf7['\x73\x6c\x69\x63\x65'](-_0x3c43bf['\x6c\x61\x73\x74']);return _0x452cf7;}[_0x40210d(0xf3,'\x50\x6d\x64\x45')+'\x65'](_0x2e30e2={}){const _0x3b161a=_0x40210d,_0x13806d=this[_0x3b161a(0xee,'\x6e\x4e\x77\x6e')](_0x2e30e2),_0xcab875={},_0xc3f393=new Set(),_0x59206b=new Set();for(const _0x6f2efd of _0x13806d){if(_0x3b161a(0xe1,'\x2a\x49\x33\x35')!==_0x3b161a(0xc1,'\x6f\x45\x42\x26')){const _0x17b31d=_0x1f9d9b[_0x3b161a(0x102,'\x63\x4f\x40\x36')](_0x47f2b8);if(_0x4967c9(_0x17b31d))_0x35b262[_0x3b161a(0x13b,'\x51\x57\x4a\x4d')](_0x17b31d);}else{_0xcab875[_0x6f2efd[_0x3b161a(0x131,'\x46\x64\x26\x6a')]]=(_0xcab875[_0x6f2efd[_0x3b161a(0xb6,'\x55\x29\x6b\x4f')]]??0x76d*0x4+-0xbce*-0x2+-0x3550)+(-0x2*-0x1157+0x315*-0x2+0x32b*-0x9);if(_0x6f2efd[_0x3b161a(0x112,'\x49\x34\x49\x6a')])_0xc3f393[_0x3b161a(0xa9,'\x51\x57\x4a\x4d')](_0x6f2efd[_0x3b161a(0x13f,'\x6f\x45\x42\x26')]);if(_0x6f2efd[_0x3b161a(0xff,'\x63\x4f\x40\x36')])_0x59206b['\x61\x64\x64'](_0x6f2efd[_0x3b161a(0xeb,'\x5a\x21\x65\x72')]);}}return{'\x74\x6f\x74\x61\x6c\x5f\x65\x6e\x74\x72\x69\x65\x73':_0x13806d[_0x3b161a(0xa2,'\x63\x4f\x40\x36')],'\x75\x6e\x69\x71\x75\x65\x5f\x61\x73\x73\x65\x74\x73':_0xc3f393[_0x3b161a(0x12c,'\x5a\x21\x65\x72')],'\x75\x6e\x69\x71\x75\x65\x5f\x72\x75\x6e\x73':_0x59206b[_0x3b161a(0x11d,'\x49\x43\x66\x33')],'\x62\x79\x5f\x61\x63\x74\x69\x6f\x6e':_0xcab875,'\x65\x6e\x74\x72\x69\x65\x73':_0x13806d};}[_0x40210d(0xbb,'\x53\x66\x62\x35')+_0x40210d(0xac,'\x71\x66\x66\x4d')+_0x40210d(0xbc,'\x46\x6b\x42\x56')](_0x56b8c6={}){const _0x3ef795=_0x40210d,_0x20f134=this[_0x3ef795(0x100,'\x76\x35\x76\x73')](_0x56b8c6)[_0x3ef795(0xcd,'\x49\x43\x66\x33')](_0x15fef6=>_0x15fef6[_0x3ef795(0x130,'\x47\x6e\x65\x28')]===_0x3ef795(0xf4,'\x55\x29\x6b\x4f')+_0x3ef795(0x121,'\x63\x4f\x40\x36')||_0x15fef6[_0x3ef795(0x120,'\x32\x6f\x76\x7a')]===_0x3ef795(0x12a,'\x48\x5d\x33\x56')+_0x3ef795(0x11f,'\x29\x4c\x52\x6e')),_0x1fa181=new Map();let _0x5db841=-0x148*0x8+0x10a1+0x661*-0x1,_0x27a3ea=0xea*0x17+-0x144+-0x6*0x34b,_0x206ed8=0x8e*-0x31+-0x161b*0x1+-0x1*-0x3149;for(const _0x20a345 of _0x20f134){const _0x5867c1=nonEmptyString(_0x20a345[_0x3ef795(0x124,'\x62\x76\x4c\x7a')])??_0x3ef795(0x133,'\x49\x62\x71\x71')+'\x29';let _0x1e1541=_0x1fa181[_0x3ef795(0xc8,'\x6e\x4e\x77\x6e')](_0x5867c1);if(!_0x1e1541){if(_0x3ef795(0xb3,'\x64\x4f\x6e\x44')===_0x3ef795(0xd8,'\x6e\x4e\x77\x6e'))_0x1e1541={'\x61\x73\x73\x65\x74\x5f\x69\x64':_0x5867c1,'\x73\x6f\x75\x72\x63\x65\x5f\x6e\x6f\x64\x65\x5f\x69\x64':nonEmptyString(_0x20a345['\x73\x6f\x75\x72\x63\x65\x5f\x6e'+'\x6f\x64\x65\x5f\x69\x64'])??null,'\x63\x68\x61\x69\x6e\x5f\x69\x64':nonEmptyString(_0x20a345[_0x3ef795(0xf5,'\x55\x6c\x54\x41')])??null,'\x72\x65\x75\x73\x65':0x0,'\x72\x65\x66\x65\x72\x65\x6e\x63\x65':0x0,'\x74\x6f\x6b\x65\x6e\x73\x5f\x73\x61\x76\x65\x64':0x0},_0x1fa181[_0x3ef795(0x116,'\x48\x31\x54\x53')](_0x5867c1,_0x1e1541);else{const _0x3aaf48=_0x4e315a(_0x5e511e);for(const _0x3e8440 of[_0x3aaf48[_0x3ef795(0x115,'\x33\x59\x4e\x55')],_0x3aaf48[_0x3ef795(0x118,'\x33\x59\x4e\x55')]]){const _0x3a8b35=_0x1750c8(_0x3e8440?.[_0x3ef795(0xbd,'\x2a\x78\x42\x4c')+'\x6f\x6e\x5f\x74\x6f\x6b\x65\x6e'+'\x73']),_0x2a7f50=_0x5cb5d8(_0x3a8b35?.[_0x3ef795(0x13c,'\x76\x35\x76\x73')+_0x3ef795(0x113,'\x71\x66\x66\x4d')]);if(_0x2a7f50!==_0x4088d6)return _0x2a7f50;}return _0x4b16d4;}}_0x20a345[_0x3ef795(0xb4,'\x29\x4c\x52\x6e')]===_0x3ef795(0xd3,'\x72\x6d\x63\x45')+_0x3ef795(0xad,'\x48\x5d\x33\x56')?(_0x1e1541[_0x3ef795(0xde,'\x68\x7a\x75\x32')]+=-0x18*0xf3+-0x1a1*0x3+0x1bac,_0x27a3ea+=0x7af*0x4+-0xb*0x147+-0x10ae):(_0x1e1541[_0x3ef795(0x11c,'\x6e\x5e\x35\x42')+'\x65']+=-0x681+-0x15ac+-0x2*-0xe17,_0x206ed8+=-0x16a2+0x168d*-0x1+0x2d30);const _0x143c35=positiveNumber(_0x20a345[_0x3ef795(0xed,'\x62\x76\x4c\x7a')+_0x3ef795(0x10d,'\x6e\x4e\x77\x6e')],!![]);_0x143c35!==undefined&&(_0x1e1541[_0x3ef795(0x117,'\x4d\x4e\x4b\x74')+'\x61\x76\x65\x64']+=_0x143c35,_0x5db841+=_0x143c35),_0x1e1541[_0x3ef795(0xea,'\x4e\x35\x64\x73')+_0x3ef795(0x107,'\x46\x64\x26\x6a')]??=nonEmptyString(_0x20a345[_0x3ef795(0xb2,'\x68\x4f\x6e\x23')+_0x3ef795(0x101,'\x4b\x67\x53\x6f')])??null,_0x1e1541[_0x3ef795(0xd0,'\x2a\x49\x33\x35')]??=nonEmptyString(_0x20a345[_0x3ef795(0xba,'\x46\x64\x26\x6a')])??null;}const _0x18b7ee=[..._0x1fa181[_0x3ef795(0x9f,'\x68\x4f\x6e\x23')]()][_0x3ef795(0xb7,'\x6e\x4e\x77\x6e')]((_0x2ba814,_0x29ba91)=>_0x29ba91[_0x3ef795(0xbf,'\x23\x31\x56\x33')]+_0x29ba91[_0x3ef795(0x143,'\x50\x6d\x64\x45')+'\x65']-(_0x2ba814[_0x3ef795(0xc5,'\x6f\x45\x42\x26')]+_0x2ba814[_0x3ef795(0xa8,'\x29\x4c\x52\x6e')+'\x65']));return{'\x74\x6f\x74\x61\x6c\x5f\x72\x65\x75\x73\x65':_0x27a3ea,'\x74\x6f\x74\x61\x6c\x5f\x72\x65\x66\x65\x72\x65\x6e\x63\x65':_0x206ed8,'\x74\x6f\x74\x61\x6c\x5f\x74\x6f\x6b\x65\x6e\x73\x5f\x73\x61\x76\x65\x64':_0x5db841,'\x62\x79\x5f\x61\x73\x73\x65\x74':_0x18b7ee};}[_0x40210d(0xb9,'\x2a\x78\x42\x4c')+'\x74\x49\x6e\x64\x65\x78'](_0x29c736={}){const _0x3f870d=_0x40210d,_0x183a6a=new Map();for(const _0x4fe77a of this[_0x3f870d(0xb5,'\x6a\x28\x6c\x41')](_0x29c736)){if(_0x3f870d(0xca,'\x46\x6b\x42\x56')!==_0x3f870d(0xd2,'\x4d\x4e\x4b\x74')){const _0x197d58=_0x566a90(_0x1bd5e1?.['\x64\x65\x72\x69\x76\x61\x74\x69'+_0x3f870d(0x12e,'\x62\x76\x4c\x7a')+'\x73']),_0x5ba2d5=_0x4f0559(_0x197d58?.[_0x3f870d(0xcc,'\x23\x31\x56\x33')+'\x6b\x65\x6e\x73']);if(_0x5ba2d5!==_0x3f4194)return _0x5ba2d5;}else{if(_0x4fe77a[_0x3f870d(0x138,'\x49\x43\x66\x33')]!=='\x61\x73\x73\x65\x74\x5f\x70\x75'+_0x3f870d(0x103,'\x47\x6e\x65\x28'))continue;const _0x25cb6e=nonEmptyString(_0x4fe77a[_0x3f870d(0x11a,'\x32\x6f\x76\x7a')]),_0x3f2254=positiveNumber(_0x4fe77a['\x74\x6f\x6b\x65\x6e\x73\x5f\x73'+_0x3f870d(0xf0,'\x72\x46\x75\x4a')],!![]);if(_0x25cb6e&&_0x3f2254!==undefined)_0x183a6a[_0x3f870d(0xd9,'\x64\x4f\x6e\x44')](_0x25cb6e,_0x3f2254);}}return Object[_0x3f870d(0x10f,'\x77\x47\x38\x5b')+_0x3f870d(0x12f,'\x6a\x37\x36\x48')](_0x183a6a);}}
|
package/dist/hub/bindings.js
CHANGED
|
@@ -1,121 +1 @@
|
|
|
1
|
-
import { normalizeForPut } from '../assetstore/provider.js';
|
|
2
|
-
import { sanitizeBundle, summarizeLeaks } from './sanitize.js';
|
|
3
|
-
/** publish 回执非 accepted → 抛此错; SyncEngine 据 terminal 决定是否重试. */
|
|
4
|
-
export class PublishRejectedError extends Error {
|
|
5
|
-
status;
|
|
6
|
-
terminal;
|
|
7
|
-
retryAfterMs;
|
|
8
|
-
retryable;
|
|
9
|
-
constructor(status, terminal, reason, retryAfterMs, retryable) {
|
|
10
|
-
super(`publish ${status}${reason ? `: ${reason}` : ''}`);
|
|
11
|
-
this.status = status;
|
|
12
|
-
this.terminal = terminal;
|
|
13
|
-
this.retryAfterMs = retryAfterMs;
|
|
14
|
-
this.retryable = retryable;
|
|
15
|
-
this.name = 'PublishRejectedError';
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
function envelopeToAgentEvent(e) {
|
|
19
|
-
const stableId = e.type === 'proxy_trace' && e.idempotencyKey ? e.idempotencyKey : e.id;
|
|
20
|
-
return {
|
|
21
|
-
id: stableId,
|
|
22
|
-
type: e.type === 'dm_outbound' ? 'dm' : e.type,
|
|
23
|
-
payload: e.payload,
|
|
24
|
-
priority: 'medium',
|
|
25
|
-
createdAt: e.createdAt,
|
|
26
|
-
...(e.type === 'proxy_trace' && e.idempotencyKey ? { refId: e.idempotencyKey } : {}),
|
|
27
|
-
};
|
|
28
|
-
}
|
|
29
|
-
/**
|
|
30
|
-
* 把 HubCapability 接到 core 两 seam(M6-1):
|
|
31
|
-
* - asProxyHandler: Dispatcher.handlers.proxy — 按 envelope.type 路由到 hub. 抛错→store.fail()重试;
|
|
32
|
-
* 但 publish 终态(reject/quarantine/402)抛 PublishRejectedError{terminal:true}, 调用方据此不重试(money-safety).
|
|
33
|
-
* - asAssetTransport: assetstore RemoteTransport — 落库前 core normalizeForPut, 不信任远端 asset_id.
|
|
34
|
-
*/
|
|
35
|
-
export function makeHubBindings(cap, options = {}) {
|
|
36
|
-
const sanCfg = options.sanitize ?? {};
|
|
37
|
-
const sanEnabled = sanCfg.enabled ?? true;
|
|
38
|
-
const sanEnv = sanCfg.env ?? (typeof process !== 'undefined' ? process.env : {});
|
|
39
|
-
/** Single publish chokepoint: sanitize (on by default) → strict + leak found → refuse (terminal, not retryable) → cap.publish the redacted bundle. */
|
|
40
|
-
const publishSanitized = async (bundle, publishOptions) => {
|
|
41
|
-
if (!sanEnabled)
|
|
42
|
-
return publishOptions ? cap.publish(bundle, publishOptions) : cap.publish(bundle);
|
|
43
|
-
const r = sanitizeBundle(bundle, { env: sanEnv, ...(sanCfg.mode ? { mode: sanCfg.mode } : {}) });
|
|
44
|
-
if (r.blocked) {
|
|
45
|
-
throw new PublishRejectedError('leak_blocked', true, `sensitive data detected before publish, refused (not retryable): ${summarizeLeaks(r.leaks)}`);
|
|
46
|
-
}
|
|
47
|
-
const receipt = publishOptions
|
|
48
|
-
? await cap.publish(r.bundle, publishOptions)
|
|
49
|
-
: await cap.publish(r.bundle);
|
|
50
|
-
const submittedAssetIds = contentAssetIds(r.bundle);
|
|
51
|
-
return submittedAssetIds ? { ...receipt, submittedAssetIds } : receipt;
|
|
52
|
-
};
|
|
53
|
-
return {
|
|
54
|
-
asProxyHandler() {
|
|
55
|
-
return async (e) => {
|
|
56
|
-
switch (e.type) {
|
|
57
|
-
case 'asset_submit': {
|
|
58
|
-
// payload 可为 bundle {assets:[...]} 或单资产; 统一成 bundle 数组发.
|
|
59
|
-
const p = e.payload;
|
|
60
|
-
const bundle = Array.isArray(p.assets) ? p.assets : [p];
|
|
61
|
-
const r = await publishSanitized(bundle, { idempotencyKey: e.idempotencyKey });
|
|
62
|
-
if (r.status !== 'accepted') {
|
|
63
|
-
throw new PublishRejectedError(r.rejection?.code ?? r.status, r.terminal ?? true, r.reason, r.rejection?.retryAfterMs);
|
|
64
|
-
}
|
|
65
|
-
return r;
|
|
66
|
-
}
|
|
67
|
-
case 'task_claim': {
|
|
68
|
-
const p = e.payload;
|
|
69
|
-
return cap.task.claim(firstString(p.taskId, p.task_id) ?? '');
|
|
70
|
-
}
|
|
71
|
-
case 'task_complete': {
|
|
72
|
-
const p = e.payload;
|
|
73
|
-
const taskId = firstString(p.taskId, p.task_id);
|
|
74
|
-
const assetId = firstString(p.assetId, p.asset_id);
|
|
75
|
-
const claimId = firstString(p.claimId, p.claim_id);
|
|
76
|
-
if (!claimId) {
|
|
77
|
-
throw new PublishRejectedError('invalid_task_complete', true, 'claim_id is required because task claim handles are opaque');
|
|
78
|
-
}
|
|
79
|
-
const context = taskId && assetId ? { taskId, assetId } : undefined;
|
|
80
|
-
return cap.task.complete(claimId, p.result, context);
|
|
81
|
-
}
|
|
82
|
-
default:
|
|
83
|
-
// 其余 outbound(atp_*/heartbeat/...) 走 mailbox.push
|
|
84
|
-
await cap.mailbox.push(envelopeToAgentEvent(e));
|
|
85
|
-
return { pushed: true };
|
|
86
|
-
}
|
|
87
|
-
};
|
|
88
|
-
},
|
|
89
|
-
asAssetTransport() {
|
|
90
|
-
return {
|
|
91
|
-
putRemote: async (record) => {
|
|
92
|
-
const { record: clean } = normalizeForPut(record); // 不信任远端 asset_id, core 侧重算
|
|
93
|
-
const r = await publishSanitized([clean]); // 单资产传输也走 bundle API([asset]) + 发布前脱敏
|
|
94
|
-
return { stored: r.status === 'accepted' };
|
|
95
|
-
},
|
|
96
|
-
getRemote: async (assetId) => {
|
|
97
|
-
const got = await cap.fetch({ limit: 10000 });
|
|
98
|
-
return got.find((a) => a.asset_id === assetId) ?? null;
|
|
99
|
-
},
|
|
100
|
-
searchRemote: (query) => cap.search(query),
|
|
101
|
-
listRemote: (kind, limit) => cap.fetch({ ...(kind ? { kind } : {}), limit }),
|
|
102
|
-
};
|
|
103
|
-
},
|
|
104
|
-
};
|
|
105
|
-
}
|
|
106
|
-
function contentAssetIds(bundle) {
|
|
107
|
-
const ids = bundle.map((asset) => asset.asset_id);
|
|
108
|
-
return ids.every((id) => typeof id === 'string' && /^sha256:[a-f0-9]{64}$/i.test(id))
|
|
109
|
-
? ids
|
|
110
|
-
: undefined;
|
|
111
|
-
}
|
|
112
|
-
function firstString(...values) {
|
|
113
|
-
for (const value of values) {
|
|
114
|
-
if (typeof value !== 'string')
|
|
115
|
-
continue;
|
|
116
|
-
const trimmed = value.trim();
|
|
117
|
-
if (trimmed)
|
|
118
|
-
return trimmed;
|
|
119
|
-
}
|
|
120
|
-
return undefined;
|
|
121
|
-
}
|
|
1
|
+
const _0x25d919=_0x2333;(function(_0x724bd5,_0x162e94){const _0x5036b6=_0x2333,_0x48c717=_0x724bd5();while(!![]){try{const _0x2a6891=parseInt(_0x5036b6(0x1b9,'\x64\x6f\x4b\x55'))/(-0x1116*0x1+-0x1f*-0xc2+-0x667)*(parseInt(_0x5036b6(0x1ab,'\x52\x75\x5b\x71'))/(0x222f+0x1e63+-0x1024*0x4))+-parseInt(_0x5036b6(0x1bb,'\x45\x77\x4e\x56'))/(-0x55+0xecc+0xb9*-0x14)*(-parseInt(_0x5036b6(0x16f,'\x65\x56\x48\x72'))/(0x2361+0x11ef+-0x471*0xc))+parseInt(_0x5036b6(0x18b,'\x2a\x56\x32\x73'))/(0x211*-0xa+0xdcb+0x6e4)*(parseInt(_0x5036b6(0x1bd,'\x2a\x56\x32\x73'))/(-0x126b+-0x1*-0x170f+-0x49e))+parseInt(_0x5036b6(0x19a,'\x5d\x21\x43\x24'))/(0x23fd+0x10db*-0x1+-0x131b)+parseInt(_0x5036b6(0x1ac,'\x69\x46\x4c\x37'))/(-0x2255+-0x6c7*0x1+0x2924)*(parseInt(_0x5036b6(0x138,'\x5a\x5b\x5e\x38'))/(-0xf95*0x1+0x1*0x9a5+0x5f9))+parseInt(_0x5036b6(0x1c3,'\x4d\x6b\x6d\x2a'))/(0xc78+0x7*-0x2e7+-0x7e3*-0x1)+-parseInt(_0x5036b6(0x1c8,'\x6d\x77\x6c\x56'))/(0x2286+0x1*0x84f+0x1*-0x2aca)*(parseInt(_0x5036b6(0x15c,'\x24\x4a\x44\x47'))/(-0x2*-0x1166+0x20e1+0x1d*-0x255));if(_0x2a6891===_0x162e94)break;else _0x48c717['push'](_0x48c717['shift']());}catch(_0x541095){_0x48c717['push'](_0x48c717['shift']());}}}(_0x5eda,0x63af2+-0x57bfe+0x3*0x37b35));import{normalizeForPut}from'\x2e\x2e\x2f\x61\x73\x73\x65\x74\x73\x74\x6f\x72\x65\x2f\x70\x72\x6f\x76\x69\x64\x65\x72\x2e\x6a\x73';import{sanitizeBundle,summarizeLeaks}from'\x2e\x2f\x73\x61\x6e\x69\x74\x69\x7a\x65\x2e\x6a\x73';function _0x5eda(){const _0xf406f3=['\x57\x34\x71\x34\x68\x58\x43\x7a\x57\x35\x79','\x6d\x43\x6f\x30\x57\x34\x4a\x64\x4e\x62\x33\x63\x53\x43\x6f\x45\x77\x71','\x57\x36\x78\x64\x54\x75\x46\x64\x56\x47','\x57\x51\x5a\x64\x48\x53\x6b\x44','\x57\x34\x74\x63\x49\x63\x69\x4f\x57\x34\x4f\x39\x57\x34\x78\x63\x49\x61','\x65\x38\x6b\x73\x57\x50\x50\x30\x43\x66\x2f\x63\x4e\x43\x6b\x7a','\x45\x63\x70\x64\x4a\x33\x58\x58\x74\x53\x6f\x35\x71\x61','\x63\x6d\x6f\x59\x46\x68\x34\x39\x64\x6d\x6b\x58','\x61\x49\x37\x63\x4c\x66\x7a\x56\x57\x34\x31\x43\x75\x53\x6b\x6c\x6f\x43\x6b\x38\x57\x4f\x70\x64\x4b\x47','\x61\x6d\x6f\x48\x41\x76\x58\x74\x57\x51\x64\x64\x53\x6d\x6f\x45','\x57\x34\x70\x64\x49\x53\x6f\x30\x57\x50\x39\x32\x70\x68\x70\x63\x47\x43\x6b\x69\x43\x53\x6b\x6a','\x57\x35\x4a\x63\x4c\x71\x56\x64\x56\x53\x6f\x2b\x57\x4f\x57\x56','\x64\x43\x6b\x73\x6d\x75\x2f\x64\x4e\x53\x6b\x57\x45\x48\x6c\x63\x4b\x53\x6b\x6a\x57\x37\x48\x79\x57\x4f\x47','\x70\x75\x2f\x63\x52\x57\x2f\x63\x4e\x6d\x6f\x51','\x57\x35\x56\x63\x4b\x58\x42\x64\x56\x38\x6f\x4d\x57\x51\x61','\x41\x62\x53\x6b\x57\x50\x37\x64\x53\x6d\x6b\x30','\x57\x36\x4f\x6b\x45\x38\x6f\x38\x57\x35\x30','\x57\x51\x37\x63\x48\x49\x46\x64\x50\x6d\x6b\x5a\x57\x51\x69\x54\x64\x71','\x74\x77\x74\x63\x4a\x43\x6f\x57\x46\x4d\x56\x64\x51\x72\x34\x2f','\x72\x43\x6f\x36\x7a\x4a\x69\x54\x62\x53\x6b\x34\x41\x61','\x45\x4e\x4a\x64\x50\x53\x6b\x4b\x57\x4f\x6d','\x73\x53\x6b\x77\x72\x53\x6b\x51\x73\x4b\x5a\x63\x52\x38\x6b\x45','\x57\x37\x37\x64\x52\x67\x43','\x74\x38\x6b\x54\x57\x4f\x65\x78','\x44\x49\x64\x64\x49\x4e\x61','\x74\x53\x6b\x4b\x57\x51\x64\x64\x4f\x43\x6b\x75\x66\x58\x52\x63\x53\x71','\x57\x35\x6d\x65\x57\x52\x7a\x30\x57\x4f\x4f\x76\x57\x51\x6c\x64\x53\x47','\x64\x31\x61\x6f\x42\x63\x4b','\x71\x38\x6f\x65\x57\x51\x2f\x63\x4d\x47','\x78\x38\x6f\x64\x7a\x48\x5a\x63\x4d\x53\x6f\x38\x6b\x48\x71','\x46\x6d\x6b\x2b\x57\x37\x38\x6e\x57\x35\x4f','\x66\x4a\x64\x64\x4e\x6d\x6f\x57\x72\x76\x68\x64\x51\x57\x6d','\x70\x4e\x43\x74\x74\x5a\x46\x64\x52\x53\x6b\x34\x76\x61','\x41\x64\x56\x64\x4a\x32\x66\x50\x79\x47','\x43\x68\x52\x64\x53\x43\x6b\x53\x57\x4f\x6a\x72\x42\x43\x6b\x31','\x57\x52\x4a\x64\x49\x38\x6b\x43\x65\x43\x6b\x43\x66\x76\x34\x59','\x57\x37\x79\x53\x46\x53\x6f\x39','\x66\x53\x6f\x42\x57\x50\x5a\x63\x4f\x38\x6b\x6e\x57\x36\x6c\x64\x53\x59\x34','\x57\x51\x65\x54\x71\x53\x6b\x49\x6b\x38\x6f\x64\x57\x4f\x76\x4e\x67\x4c\x62\x50\x57\x35\x46\x63\x55\x71','\x57\x37\x31\x58\x76\x4c\x68\x64\x51\x47','\x57\x34\x37\x63\x47\x63\x79\x53\x57\x35\x43','\x57\x52\x70\x63\x4a\x74\x6c\x64\x50\x71','\x6a\x43\x6f\x34\x57\x36\x37\x64\x4e\x57\x46\x63\x50\x6d\x6f\x79','\x70\x6d\x6b\x36\x57\x36\x43\x77\x57\x36\x57','\x74\x38\x6b\x31\x57\x4f\x69\x7a\x57\x35\x50\x5a\x62\x53\x6b\x68','\x71\x67\x6c\x64\x4b\x57\x71','\x46\x57\x6c\x64\x50\x38\x6b\x2f\x44\x53\x6f\x45\x57\x4f\x31\x4a','\x57\x4f\x53\x76\x70\x71\x69\x65\x57\x51\x71\x49\x57\x37\x75','\x57\x37\x72\x51\x65\x6d\x6f\x30\x42\x43\x6b\x74\x57\x35\x72\x54','\x65\x43\x6b\x59\x57\x34\x53\x68','\x57\x52\x33\x64\x4c\x38\x6b\x78\x64\x6d\x6b\x64\x69\x30\x71\x4c','\x57\x36\x46\x64\x52\x76\x68\x64\x56\x38\x6f\x5a\x57\x37\x75\x68','\x57\x36\x44\x51\x67\x53\x6f\x54\x79\x6d\x6b\x50\x57\x34\x72\x45','\x57\x37\x30\x4e\x57\x51\x56\x63\x4a\x4b\x79\x4b\x6b\x4d\x52\x63\x55\x47\x66\x36\x65\x48\x71','\x57\x35\x37\x63\x4d\x63\x79\x58\x57\x34\x38\x48','\x64\x43\x6b\x49\x57\x35\x4b\x65\x57\x51\x5a\x64\x4e\x43\x6f\x2f\x75\x61','\x57\x51\x52\x64\x56\x43\x6b\x4a\x74\x59\x4b','\x65\x38\x6b\x49\x57\x35\x4b\x43\x57\x50\x5a\x64\x4b\x71','\x57\x4f\x4a\x64\x48\x43\x6b\x44\x74\x72\x64\x64\x50\x4b\x43','\x6f\x53\x6b\x76\x70\x43\x6f\x2f\x67\x38\x6b\x34','\x45\x38\x6b\x61\x71\x71','\x57\x50\x68\x64\x4a\x4a\x78\x64\x4e\x63\x33\x64\x4e\x53\x6f\x46\x57\x52\x69','\x57\x36\x58\x2b\x71\x30\x79','\x44\x53\x6b\x56\x57\x35\x70\x64\x51\x30\x70\x64\x4c\x57\x35\x64','\x66\x43\x6b\x4d\x57\x34\x53\x65\x57\x51\x5a\x64\x4e\x6d\x6f\x2f\x78\x47','\x44\x43\x6b\x42\x75\x68\x4a\x63\x4f\x6d\x6f\x62\x57\x35\x71\x34','\x6e\x66\x33\x63\x53\x47\x37\x63\x48\x6d\x6f\x38\x76\x6d\x6f\x76','\x57\x37\x68\x64\x52\x38\x6b\x41\x57\x36\x66\x76\x57\x52\x50\x2b\x57\x36\x53','\x46\x33\x68\x64\x53\x38\x6b\x55\x57\x4f\x79','\x57\x34\x75\x50\x64\x72\x79\x61\x57\x35\x65','\x57\x4f\x56\x63\x4c\x47\x2f\x64\x54\x53\x6f\x41\x57\x52\x71\x4a','\x75\x6d\x6b\x51\x6b\x71\x38\x71\x57\x34\x33\x64\x4e\x38\x6f\x53\x57\x4f\x62\x44\x57\x4f\x78\x63\x55\x61','\x57\x37\x38\x37\x42\x75\x4e\x64\x54\x6d\x6f\x56\x57\x35\x30','\x57\x35\x4e\x63\x49\x74\x71\x58','\x42\x6d\x6b\x74\x75\x67\x68\x63\x54\x71','\x57\x52\x62\x30\x57\x36\x4e\x64\x4a\x47','\x57\x35\x50\x54\x57\x52\x52\x64\x4a\x5a\x4f\x72\x57\x36\x69','\x57\x37\x35\x52\x57\x34\x74\x64\x51\x6d\x6b\x45\x57\x35\x71','\x46\x43\x6b\x43\x76\x4e\x64\x63\x4f\x6d\x6f\x41\x57\x34\x75\x35','\x42\x77\x33\x64\x54\x38\x6b\x4f','\x57\x35\x34\x74\x57\x52\x69\x2f\x57\x50\x79','\x68\x53\x6f\x6f\x57\x34\x4b\x70\x57\x37\x37\x64\x56\x38\x6f\x66\x57\x52\x69','\x41\x53\x6b\x72\x73\x38\x6b\x2b\x77\x4d\x64\x63\x53\x38\x6b\x2b','\x57\x36\x78\x64\x53\x4b\x70\x64\x53\x38\x6f\x51\x57\x37\x75\x68','\x57\x37\x42\x64\x48\x33\x56\x63\x55\x43\x6b\x4b\x57\x37\x4c\x39\x61\x38\x6f\x79\x7a\x66\x76\x4d\x79\x61','\x57\x34\x56\x64\x48\x74\x64\x64\x4a\x77\x37\x64\x4d\x6d\x6f\x74\x57\x51\x4b','\x72\x38\x6f\x46\x57\x50\x57\x4f\x57\x34\x5a\x64\x48\x43\x6f\x36\x57\x34\x69\x37','\x77\x43\x6b\x50\x57\x52\x6c\x64\x4f\x38\x6b\x57\x6c\x61','\x57\x51\x66\x76\x62\x6d\x6f\x5a\x77\x6d\x6b\x67\x57\x35\x65','\x57\x37\x42\x64\x56\x38\x6b\x7a\x57\x37\x4f','\x69\x43\x6f\x47\x57\x36\x46\x64\x4c\x47','\x57\x50\x56\x64\x49\x6d\x6b\x66\x73\x62\x6c\x64\x4d\x65\x50\x74','\x70\x4c\x54\x77\x57\x34\x2f\x63\x51\x53\x6b\x45\x57\x35\x58\x47\x46\x65\x4a\x64\x4f\x71','\x61\x43\x6b\x78\x57\x35\x4f\x67','\x57\x51\x4f\x59\x61\x58\x68\x63\x51\x49\x69\x70\x57\x34\x4b\x33\x7a\x78\x2f\x64\x49\x53\x6b\x74','\x57\x51\x50\x59\x57\x36\x70\x64\x53\x72\x54\x56','\x78\x43\x6f\x57\x46\x43\x6b\x46','\x72\x6d\x6b\x37\x57\x35\x79\x34\x57\x36\x61','\x57\x37\x76\x4f\x76\x30\x79','\x57\x35\x66\x64\x42\x66\x4c\x61\x57\x37\x6e\x4a\x57\x37\x6c\x64\x4b\x74\x61\x44\x57\x35\x76\x78','\x57\x36\x31\x41\x57\x50\x5a\x64\x47\x57\x61','\x57\x50\x2f\x64\x4e\x33\x6d\x4a\x57\x34\x61\x62\x57\x36\x56\x63\x56\x38\x6f\x6a','\x57\x36\x6e\x35\x62\x53\x6f\x2b\x75\x6d\x6b\x73','\x77\x6d\x6f\x6c\x57\x51\x79','\x57\x35\x4a\x64\x4a\x43\x6b\x78\x61\x71\x33\x64\x4f\x4c\x6a\x63','\x57\x35\x33\x63\x4d\x73\x75\x50\x57\x35\x6d\x48\x57\x35\x4b','\x72\x6d\x6b\x37\x57\x37\x4b\x71\x57\x34\x72\x51\x57\x35\x43','\x70\x31\x70\x63\x53\x72\x52\x63\x48\x6d\x6f\x38\x75\x38\x6b\x71','\x72\x53\x6b\x52\x57\x36\x38\x6f\x57\x35\x72\x79\x57\x35\x4b\x34','\x69\x6d\x6b\x78\x6e\x38\x6f\x46\x6e\x38\x6b\x4c','\x57\x4f\x38\x71\x6b\x61','\x57\x4f\x65\x44\x6f\x71\x79\x7a\x57\x50\x71\x2f\x57\x37\x71','\x6b\x74\x2f\x64\x4d\x78\x48\x6d\x79\x6d\x6f\x34','\x65\x43\x6f\x5a\x79\x31\x76\x69\x57\x50\x37\x64\x56\x71','\x57\x51\x44\x39\x57\x37\x56\x64\x4b\x58\x6e\x6a\x45\x4b\x38','\x61\x6d\x6b\x30\x57\x34\x53\x6b\x57\x4f\x46\x64\x4f\x6d\x6f\x47\x73\x47','\x62\x6d\x6f\x6e\x57\x4f\x68\x63\x54\x43\x6b\x71\x57\x34\x4e\x64\x53\x5a\x57','\x6d\x43\x6b\x79\x6d\x47','\x73\x43\x6b\x58\x57\x4f\x75\x61\x57\x37\x58\x58\x63\x38\x6b\x67','\x57\x50\x61\x52\x64\x62\x47\x66','\x61\x38\x6b\x59\x57\x35\x79\x6c\x57\x50\x2f\x64\x4d\x47','\x57\x51\x5a\x64\x4c\x38\x6b\x44\x76\x6d\x6b\x76\x64\x66\x65\x4d','\x57\x37\x6c\x64\x55\x31\x64\x64\x54\x38\x6f\x55\x57\x35\x69\x63\x57\x34\x75','\x57\x52\x72\x4b\x57\x37\x4a\x64\x4c\x48\x44\x4c\x45\x57\x53','\x62\x6d\x6f\x6e\x57\x4f\x68\x63\x54\x43\x6b\x71\x57\x36\x75','\x74\x43\x6f\x75\x44\x58\x64\x63\x48\x6d\x6f\x56','\x57\x35\x74\x63\x47\x58\x5a\x64\x53\x53\x6f\x2f\x57\x51\x47','\x57\x4f\x78\x63\x4d\x53\x6b\x59\x57\x35\x47\x35\x65\x4d\x6c\x63\x4f\x61','\x57\x37\x46\x64\x56\x38\x6f\x57\x57\x35\x52\x64\x53\x71','\x57\x52\x46\x63\x4c\x74\x56\x64\x52\x6d\x6f\x38\x57\x51\x65\x53','\x76\x53\x6f\x62\x41\x58\x33\x63\x48\x53\x6f\x54\x70\x66\x61','\x6d\x48\x2f\x64\x48\x47\x78\x64\x49\x43\x6b\x56','\x71\x38\x6f\x67\x57\x52\x56\x63\x54\x6d\x6f\x51\x79\x47','\x57\x50\x79\x71\x6b\x57\x71\x52\x57\x51\x47\x35\x57\x37\x30','\x57\x34\x38\x73\x76\x66\x35\x74\x57\x37\x75\x33\x57\x52\x38','\x78\x6d\x6b\x69\x57\x34\x70\x64\x50\x6d\x6f\x43\x57\x51\x74\x63\x4f\x58\x4e\x63\x50\x72\x35\x50\x42\x4e\x4f','\x70\x4d\x61\x69\x74\x57','\x57\x37\x7a\x54\x62\x53\x6f\x57\x6f\x43\x6b\x63\x57\x35\x66\x46','\x7a\x61\x30\x44\x57\x52\x68\x64\x55\x43\x6b\x4f','\x57\x34\x69\x62\x44\x30\x4b','\x57\x37\x4b\x2f\x41\x4c\x64\x64\x4b\x53\x6f\x68\x57\x35\x38\x31','\x70\x4e\x6d\x73\x73\x71\x68\x64\x51\x43\x6b\x39','\x65\x38\x6b\x2b\x57\x35\x4b\x6e\x57\x50\x2f\x64\x4d\x53\x6b\x36\x62\x71','\x46\x59\x6c\x64\x53\x78\x50\x50\x7a\x43\x6f\x59\x73\x57','\x76\x38\x6b\x48\x57\x37\x79\x6d\x57\x34\x66\x38\x57\x34\x53\x50','\x57\x52\x6c\x63\x4d\x49\x79','\x57\x52\x62\x2b\x6f\x43\x6f\x57\x57\x35\x37\x63\x55\x38\x6f\x64\x57\x4f\x61\x42','\x70\x6d\x6f\x39\x57\x37\x6c\x64\x4e\x48\x4a\x63\x51\x53\x6f\x69\x75\x57','\x57\x36\x56\x64\x52\x4e\x66\x30\x57\x50\x4e\x64\x52\x5a\x79\x42','\x72\x6d\x6f\x30\x41\x53\x6b\x44\x57\x51\x74\x64\x53\x71','\x57\x36\x33\x64\x4f\x38\x6b\x61\x57\x36\x4c\x6b\x57\x52\x53\x32\x57\x50\x71','\x57\x50\x74\x63\x47\x6d\x6b\x61\x79\x71','\x6f\x4d\x43\x64\x74\x4a\x46\x64\x53\x38\x6b\x58','\x57\x36\x5a\x63\x53\x38\x6f\x32\x57\x34\x6c\x64\x54\x73\x66\x6d\x57\x35\x53','\x57\x4f\x6d\x63\x6b\x57\x4f\x61\x57\x50\x71\x2f\x57\x37\x71','\x6b\x68\x34\x6f\x71\x74\x78\x64\x50\x43\x6b\x39','\x57\x36\x42\x64\x4f\x43\x6f\x57\x57\x4f\x37\x64\x55\x5a\x48\x61\x57\x4f\x4f','\x57\x37\x64\x64\x51\x6d\x6b\x65\x57\x36\x76\x70\x57\x52\x57\x5a\x57\x51\x43','\x57\x37\x4b\x2f\x42\x76\x46\x64\x48\x38\x6f\x59','\x57\x35\x64\x64\x4b\x58\x56\x64\x4d\x4e\x2f\x64\x4a\x43\x6f\x64','\x6a\x38\x6b\x63\x6e\x53\x6f\x44\x65\x6d\x6b\x4d','\x62\x6d\x6b\x59\x46\x4c\x48\x74\x57\x50\x37\x63\x55\x43\x6f\x45','\x57\x34\x34\x62\x78\x31\x34\x46\x57\x37\x69\x48\x57\x37\x57','\x57\x34\x58\x33\x57\x52\x52\x64\x4d\x73\x6d\x68','\x66\x53\x6b\x43\x57\x34\x38\x63\x57\x36\x56\x64\x53\x38\x6f\x6d\x57\x35\x6d','\x6a\x6d\x6b\x78\x70\x43\x6f\x79\x65\x43\x6b\x47\x68\x47','\x67\x6d\x6b\x64\x61\x43\x6f\x7a\x6e\x57','\x57\x51\x31\x4a\x57\x37\x2f\x64\x4e\x4c\x35\x30\x44\x4b\x47','\x57\x36\x33\x64\x51\x43\x6b\x74\x57\x36\x76\x77\x57\x52\x30\x4d\x57\x51\x34','\x61\x38\x6b\x73\x57\x50\x50\x55\x43\x76\x2f\x64\x4d\x43\x6f\x6a','\x76\x38\x6b\x6b\x57\x34\x4b\x6a\x57\x52\x6c\x64\x4a\x38\x6f\x59','\x67\x38\x6b\x47\x6f\x6d\x6b\x2f\x57\x4f\x6c\x64\x4a\x30\x6d\x77\x57\x4f\x6d','\x57\x37\x52\x64\x56\x75\x39\x53','\x57\x36\x2f\x64\x55\x4d\x62\x5a\x57\x51\x2f\x64\x56\x5a\x65','\x57\x51\x44\x39\x57\x37\x56\x64\x4b\x58\x6e\x46\x44\x57','\x57\x36\x70\x63\x53\x6d\x6f\x61\x65\x71','\x61\x38\x6f\x78\x57\x50\x5a\x63\x54\x61','\x76\x53\x6b\x31\x57\x4f\x65','\x57\x51\x6c\x63\x4e\x49\x46\x64\x4f\x38\x6f\x4e\x57\x51\x75\x53\x6b\x57','\x57\x37\x31\x31\x46\x4c\x61','\x6f\x68\x43\x6c\x72\x5a\x33\x64\x54\x6d\x6b\x57\x76\x57','\x78\x53\x6b\x38\x57\x52\x70\x64\x4f\x43\x6b\x78\x6c\x57','\x75\x38\x6f\x33\x57\x4f\x57\x63\x57\x52\x4a\x64\x51\x53\x6f\x4c\x72\x30\x71','\x57\x50\x74\x63\x4d\x6d\x6b\x64\x42\x57','\x66\x43\x6f\x5a\x41\x76\x6a\x34\x57\x50\x5a\x64\x54\x53\x6f\x78','\x57\x37\x35\x38\x65\x6d\x6f\x34\x41\x43\x6b\x7a\x57\x34\x72\x6a','\x57\x34\x54\x49\x57\x51\x4a\x64\x48\x48\x38\x71','\x57\x35\x53\x79\x57\x51\x75\x31\x57\x4f\x4b\x6d\x57\x51\x46\x64\x4e\x61','\x77\x38\x6f\x75\x79\x62\x52\x63\x4e\x53\x6f\x54\x6b\x31\x61','\x77\x53\x6f\x57\x79\x6d\x6b\x44\x57\x51\x78\x64\x54\x77\x53\x4a','\x65\x38\x6b\x44\x57\x36\x57\x79\x57\x4f\x69'];_0x5eda=function(){return _0xf406f3;};return _0x5eda();}export class PublishRejectedError extends Error{[_0x25d919(0x149,'\x33\x24\x72\x56')];[_0x25d919(0x1df,'\x53\x66\x7a\x6a')];[_0x25d919(0x1f1,'\x43\x6c\x32\x79')+_0x25d919(0x1f0,'\x74\x55\x56\x56')];[_0x25d919(0x1e4,'\x65\x56\x48\x72')+'\x65'];constructor(_0x4915d9,_0x168f89,_0x36e436,_0x348d20,_0x45d103){const _0x288659=_0x25d919;super(_0x288659(0x1e0,'\x5d\x21\x43\x24')+_0x4915d9+(_0x36e436?'\x3a\x20'+_0x36e436:'')),this['\x73\x74\x61\x74\x75\x73']=_0x4915d9,this[_0x288659(0x143,'\x77\x4d\x61\x4c')]=_0x168f89,this[_0x288659(0x1d1,'\x76\x6b\x47\x38')+_0x288659(0x152,'\x67\x36\x54\x68')]=_0x348d20,this[_0x288659(0x1db,'\x73\x65\x6c\x66')+'\x65']=_0x45d103,this[_0x288659(0x181,'\x4f\x5a\x28\x32')]=_0x288659(0x17a,'\x76\x46\x5d\x71')+_0x288659(0x158,'\x64\x6f\x4b\x55')+_0x288659(0x1be,'\x77\x4d\x61\x4c');}}function _0x2333(_0x5d986b,_0x99cfc3){_0x5d986b=_0x5d986b-(-0x2*0x9c2+0xf00+-0x4d*-0x13);const _0xffc79d=_0x5eda();let _0x21efd2=_0xffc79d[_0x5d986b];if(_0x2333['\x73\x6a\x50\x68\x7a\x49']===undefined){var _0x4c8730=function(_0x13312b){const _0x3233a4='\x61\x62\x63\x64\x65\x66\x67\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f\x70\x71\x72\x73\x74\x75\x76\x77\x78\x79\x7a\x41\x42\x43\x44\x45\x46\x47\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f\x50\x51\x52\x53\x54\x55\x56\x57\x58\x59\x5a\x30\x31\x32\x33\x34\x35\x36\x37\x38\x39\x2b\x2f\x3d';let _0x37c904='',_0x3561eb='';for(let _0x573a81=-0xaa9+-0x23*-0xa7+-0xc2c,_0x313c2f,_0x7529e2,_0x6f4688=0x2429*-0x1+0xa0e+-0x29*-0xa3;_0x7529e2=_0x13312b['\x63\x68\x61\x72\x41\x74'](_0x6f4688++);~_0x7529e2&&(_0x313c2f=_0x573a81%(-0x2657+0x6c8+0x1*0x1f93)?_0x313c2f*(0xa02+-0x186a+0xea8)+_0x7529e2:_0x7529e2,_0x573a81++%(-0xb7*-0x2f+0x1aec*0x1+-0x3c81))?_0x37c904+=String['\x66\x72\x6f\x6d\x43\x68\x61\x72\x43\x6f\x64\x65'](0x95b+-0x17e8+0xf8c&_0x313c2f>>(-(0x7b1*0x3+0x3f5*0x1+-0x1b06*0x1)*_0x573a81&-0x2*-0x371+-0xe80+-0x146*-0x6)):0xf7e+0x1843+0x27c1*-0x1){_0x7529e2=_0x3233a4['\x69\x6e\x64\x65\x78\x4f\x66'](_0x7529e2);}for(let _0x1d6577=0x70*0x2d+0x1623*-0x1+0x273,_0x4952d4=_0x37c904['\x6c\x65\x6e\x67\x74\x68'];_0x1d6577<_0x4952d4;_0x1d6577++){_0x3561eb+='\x25'+('\x30\x30'+_0x37c904['\x63\x68\x61\x72\x43\x6f\x64\x65\x41\x74'](_0x1d6577)['\x74\x6f\x53\x74\x72\x69\x6e\x67'](-0x23c7*0x1+0xa57*-0x1+0x2e2e))['\x73\x6c\x69\x63\x65'](-(-0x227*0xc+0xb9b+0xe3b));}return decodeURIComponent(_0x3561eb);};const _0x442f14=function(_0x5ce570,_0xf6f417){let _0x21a1bc=[],_0x32c519=0xf97+0x204+-0x119b*0x1,_0x52df4a,_0x25fe85='';_0x5ce570=_0x4c8730(_0x5ce570);let _0x273ca3;for(_0x273ca3=0x188c+0xae1*-0x1+-0x1*0xdab;_0x273ca3<-0x2*0x5ad+-0x2*-0x3b0+-0x2*-0x27d;_0x273ca3++){_0x21a1bc[_0x273ca3]=_0x273ca3;}for(_0x273ca3=-0x2*-0x73c+0x1703+0x65*-0x5f;_0x273ca3<-0x2*0x1de+-0x1c63+0x211f;_0x273ca3++){_0x32c519=(_0x32c519+_0x21a1bc[_0x273ca3]+_0xf6f417['\x63\x68\x61\x72\x43\x6f\x64\x65\x41\x74'](_0x273ca3%_0xf6f417['\x6c\x65\x6e\x67\x74\x68']))%(-0x7f*-0x23+-0x82b*0x1+0x2*-0x419),_0x52df4a=_0x21a1bc[_0x273ca3],_0x21a1bc[_0x273ca3]=_0x21a1bc[_0x32c519],_0x21a1bc[_0x32c519]=_0x52df4a;}_0x273ca3=-0x11c9+0xbd7+0x5f2,_0x32c519=-0x5f4+0x1*-0xf17+0x1*0x150b;for(let _0x51c10d=-0x14af+-0x7*0x35f+0x368*0xd;_0x51c10d<_0x5ce570['\x6c\x65\x6e\x67\x74\x68'];_0x51c10d++){_0x273ca3=(_0x273ca3+(0x4*-0x16d+-0xede+0x1493))%(0x83*0x3b+0x4*-0x4cc+-0xa01),_0x32c519=(_0x32c519+_0x21a1bc[_0x273ca3])%(-0x1079*-0x2+0x1*0x129f+0xa1d*-0x5),_0x52df4a=_0x21a1bc[_0x273ca3],_0x21a1bc[_0x273ca3]=_0x21a1bc[_0x32c519],_0x21a1bc[_0x32c519]=_0x52df4a,_0x25fe85+=String['\x66\x72\x6f\x6d\x43\x68\x61\x72\x43\x6f\x64\x65'](_0x5ce570['\x63\x68\x61\x72\x43\x6f\x64\x65\x41\x74'](_0x51c10d)^_0x21a1bc[(_0x21a1bc[_0x273ca3]+_0x21a1bc[_0x32c519])%(-0x9eb*-0x3+-0x1da7*-0x1+-0x3a68)]);}return _0x25fe85;};_0x2333['\x64\x45\x48\x62\x4b\x67']=_0x442f14,_0x2333['\x68\x46\x73\x58\x65\x5a']={},_0x2333['\x73\x6a\x50\x68\x7a\x49']=!![];}const _0x36379e=_0xffc79d[-0x1696+-0xfe2+-0x4cf*-0x8],_0x1769c3=_0x5d986b+_0x36379e,_0x2bc190=_0x2333['\x68\x46\x73\x58\x65\x5a'][_0x1769c3];return!_0x2bc190?(_0x2333['\x59\x43\x4d\x4a\x67\x51']===undefined&&(_0x2333['\x59\x43\x4d\x4a\x67\x51']=!![]),_0x21efd2=_0x2333['\x64\x45\x48\x62\x4b\x67'](_0x21efd2,_0x99cfc3),_0x2333['\x68\x46\x73\x58\x65\x5a'][_0x1769c3]=_0x21efd2):_0x21efd2=_0x2bc190,_0x21efd2;}function envelopeToAgentEvent(_0x512b2e){const _0x4380dd=_0x25d919,_0x540117=_0x512b2e[_0x4380dd(0x15d,'\x58\x38\x5d\x4d')]===_0x4380dd(0x1b7,'\x76\x46\x5d\x71')+_0x4380dd(0x1a1,'\x76\x46\x5d\x71')&&_0x512b2e[_0x4380dd(0x139,'\x70\x58\x31\x77')+_0x4380dd(0x1e8,'\x4d\x29\x6a\x23')]?_0x512b2e[_0x4380dd(0x14e,'\x77\x4d\x61\x4c')+_0x4380dd(0x1b2,'\x53\x56\x68\x42')]:_0x512b2e['\x69\x64'];return{'\x69\x64':_0x540117,'\x74\x79\x70\x65':_0x512b2e[_0x4380dd(0x192,'\x6c\x23\x6b\x76')]===_0x4380dd(0x135,'\x69\x79\x21\x69')+_0x4380dd(0x137,'\x64\x6f\x4b\x55')?'\x64\x6d':_0x512b2e[_0x4380dd(0x17c,'\x73\x65\x6c\x66')],'\x70\x61\x79\x6c\x6f\x61\x64':_0x512b2e['\x70\x61\x79\x6c\x6f\x61\x64'],'\x70\x72\x69\x6f\x72\x69\x74\x79':_0x4380dd(0x13b,'\x79\x5d\x76\x51'),'\x63\x72\x65\x61\x74\x65\x64\x41\x74':_0x512b2e[_0x4380dd(0x14a,'\x45\x77\x4e\x56')+'\x74'],..._0x512b2e[_0x4380dd(0x1bf,'\x70\x58\x31\x77')]===_0x4380dd(0x197,'\x4e\x31\x70\x43')+'\x61\x63\x65'&&_0x512b2e[_0x4380dd(0x184,'\x56\x30\x6f\x4a')+_0x4380dd(0x1ef,'\x4e\x67\x26\x54')]?{'\x72\x65\x66\x49\x64':_0x512b2e[_0x4380dd(0x1a6,'\x72\x44\x29\x64')+_0x4380dd(0x1e8,'\x4d\x29\x6a\x23')]}:{}};}export function makeHubBindings(_0x53e0b8,_0x5e2a3d={}){const _0x4bdb97=_0x25d919,_0x15daa0=_0x5e2a3d[_0x4bdb97(0x163,'\x79\x5d\x76\x51')]??{},_0x4da633=_0x15daa0[_0x4bdb97(0x1b1,'\x33\x24\x72\x56')]??!![],_0x640ab=_0x15daa0[_0x4bdb97(0x1da,'\x34\x67\x59\x42')]??(typeof process!==_0x4bdb97(0x188,'\x4e\x31\x70\x43')+'\x64'?process.env:{}),_0x266f48=async(_0x141ede,_0x1c4d31)=>{const _0x565630=_0x4bdb97;if(!_0x4da633)return _0x1c4d31?_0x53e0b8[_0x565630(0x1cf,'\x76\x6b\x47\x38')](_0x141ede,_0x1c4d31):_0x53e0b8[_0x565630(0x153,'\x67\x36\x54\x68')](_0x141ede);const _0x25d983=sanitizeBundle(_0x141ede,{'\x65\x6e\x76':_0x640ab,..._0x15daa0[_0x565630(0x17d,'\x69\x79\x21\x69')]?{'\x6d\x6f\x64\x65':_0x15daa0[_0x565630(0x1c7,'\x4d\x6b\x6d\x2a')]}:{}});if(_0x25d983[_0x565630(0x141,'\x59\x6d\x26\x77')]){if(_0x565630(0x190,'\x45\x77\x4e\x56')!==_0x565630(0x180,'\x59\x6d\x26\x77'))throw new PublishRejectedError(_0x565630(0x19c,'\x24\x4a\x44\x47')+_0x565630(0x167,'\x53\x66\x7a\x6a'),!![],_0x565630(0x18a,'\x28\x52\x59\x32')+_0x565630(0x147,'\x69\x46\x4c\x37')+_0x565630(0x162,'\x4f\x6e\x29\x7a')+_0x565630(0x14f,'\x42\x63\x76\x43')+_0x565630(0x1a8,'\x77\x4d\x61\x4c')+_0x565630(0x16a,'\x42\x63\x76\x43')+_0x565630(0x1a2,'\x62\x37\x63\x35')+_0x565630(0x134,'\x24\x4a\x44\x47')+'\x20'+summarizeLeaks(_0x25d983[_0x565630(0x1b5,'\x69\x40\x7a\x6e')]));else throw new _0x3dda0a(_0x565630(0x13c,'\x77\x4d\x61\x4c')+_0x565630(0x13a,'\x67\x36\x54\x68')+_0x565630(0x1af,'\x72\x44\x29\x64'),!![],_0x565630(0x1c0,'\x45\x67\x5b\x79')+_0x565630(0x178,'\x4b\x6f\x56\x4f')+_0x565630(0x176,'\x64\x6f\x4b\x55')+_0x565630(0x1ee,'\x2a\x56\x32\x73')+_0x565630(0x1b6,'\x45\x77\x4e\x56')+_0x565630(0x1a7,'\x69\x5d\x45\x49')+_0x565630(0x142,'\x34\x33\x57\x33')+'\x75\x65');}const _0x17bf69=_0x1c4d31?await _0x53e0b8[_0x565630(0x1ce,'\x5a\x76\x44\x59')](_0x25d983[_0x565630(0x173,'\x52\x75\x5b\x71')],_0x1c4d31):await _0x53e0b8[_0x565630(0x13e,'\x59\x6d\x26\x77')](_0x25d983[_0x565630(0x1dd,'\x24\x4a\x44\x47')]),_0x3610af=contentAssetIds(_0x25d983[_0x565630(0x174,'\x4e\x67\x26\x54')]);return _0x3610af?{..._0x17bf69,'\x73\x75\x62\x6d\x69\x74\x74\x65\x64\x41\x73\x73\x65\x74\x49\x64\x73':_0x3610af}:_0x17bf69;};return{'\x61\x73\x50\x72\x6f\x78\x79\x48\x61\x6e\x64\x6c\x65\x72'(){const _0x34cef3=_0x4bdb97;if(_0x34cef3(0x183,'\x76\x6b\x47\x38')===_0x34cef3(0x1c6,'\x76\x6b\x47\x38')){const _0x99cfc3=_0x14abae[_0x34cef3(0x1e6,'\x64\x6f\x4b\x55')],_0xffc79d=_0x3177c5(_0x99cfc3[_0x34cef3(0x1d2,'\x34\x67\x59\x42')],_0x99cfc3[_0x34cef3(0x1ad,'\x43\x6c\x32\x79')]),_0x21efd2=_0x4b81ba(_0x99cfc3[_0x34cef3(0x198,'\x53\x66\x7a\x6a')],_0x99cfc3[_0x34cef3(0x193,'\x59\x35\x71\x76')]),_0x4c8730=_0x339438(_0x99cfc3[_0x34cef3(0x154,'\x5d\x21\x43\x24')],_0x99cfc3[_0x34cef3(0x1d7,'\x5d\x21\x43\x24')]);if(!_0x4c8730)throw new _0x231124(_0x34cef3(0x187,'\x33\x79\x26\x62')+_0x34cef3(0x15e,'\x69\x46\x4c\x37')+'\x70\x6c\x65\x74\x65',!![],_0x34cef3(0x1d4,'\x6d\x77\x6c\x56')+_0x34cef3(0x1cd,'\x45\x67\x5b\x79')+_0x34cef3(0x14d,'\x5d\x21\x43\x24')+'\x61\x75\x73\x65\x20\x74\x61\x73'+_0x34cef3(0x13f,'\x34\x33\x57\x33')+_0x34cef3(0x1e7,'\x4f\x6e\x29\x7a')+_0x34cef3(0x1de,'\x4e\x31\x70\x43')+'\x75\x65');const _0x36379e=_0xffc79d&&_0x21efd2?{'\x74\x61\x73\x6b\x49\x64':_0xffc79d,'\x61\x73\x73\x65\x74\x49\x64':_0x21efd2}:_0x24e5e8;return _0x40555a[_0x34cef3(0x1c5,'\x79\x5d\x76\x51')][_0x34cef3(0x1d0,'\x69\x5d\x45\x49')](_0x4c8730,_0x99cfc3[_0x34cef3(0x144,'\x43\x6c\x32\x79')],_0x36379e);}else return async _0x1769c3=>{const _0x5945b8=_0x34cef3;if(_0x5945b8(0x175,'\x5a\x5b\x5e\x38')===_0x5945b8(0x14c,'\x34\x67\x59\x42')){const _0x442f14=_0x1e9402[_0x5945b8(0x1d3,'\x6d\x77\x6c\x56')](_0x13312b=>_0x13312b[_0x5945b8(0x140,'\x6d\x77\x6c\x56')]);return _0x442f14['\x65\x76\x65\x72\x79'](_0x3233a4=>typeof _0x3233a4===_0x5945b8(0x15b,'\x29\x39\x78\x38')&&/^sha256:[a-f0-9]{64}$/i[_0x5945b8(0x1b0,'\x5d\x21\x43\x24')](_0x3233a4))?_0x442f14:_0x4324bd;}else switch(_0x1769c3[_0x5945b8(0x1a3,'\x4d\x6b\x6d\x2a')]){case _0x5945b8(0x1d8,'\x24\x4a\x44\x47')+_0x5945b8(0x155,'\x6b\x58\x67\x29'):{const _0x37c904=_0x1769c3[_0x5945b8(0x19f,'\x45\x67\x5b\x79')],_0x3561eb=Array[_0x5945b8(0x145,'\x62\x37\x63\x35')](_0x37c904[_0x5945b8(0x1e1,'\x28\x52\x59\x32')])?_0x37c904[_0x5945b8(0x172,'\x69\x5d\x45\x49')]:[_0x37c904],_0x573a81=await _0x266f48(_0x3561eb,{'\x69\x64\x65\x6d\x70\x6f\x74\x65\x6e\x63\x79\x4b\x65\x79':_0x1769c3[_0x5945b8(0x194,'\x6d\x77\x6c\x56')+_0x5945b8(0x1e9,'\x4f\x5a\x28\x32')]});if(_0x573a81[_0x5945b8(0x19b,'\x5a\x76\x44\x59')]!==_0x5945b8(0x182,'\x4f\x6e\x29\x7a'))throw new PublishRejectedError(_0x573a81[_0x5945b8(0x15a,'\x59\x6d\x26\x77')+'\x6e']?.['\x63\x6f\x64\x65']??_0x573a81[_0x5945b8(0x165,'\x51\x41\x63\x4b')],_0x573a81[_0x5945b8(0x185,'\x59\x6d\x26\x77')]??!![],_0x573a81[_0x5945b8(0x19e,'\x24\x4a\x44\x47')],_0x573a81[_0x5945b8(0x1ba,'\x62\x37\x63\x35')+'\x6e']?.['\x72\x65\x74\x72\x79\x41\x66\x74'+_0x5945b8(0x159,'\x4d\x6b\x6d\x2a')]);return _0x573a81;}case _0x5945b8(0x1a5,'\x24\x4a\x44\x47')+'\x69\x6d':{const _0x313c2f=_0x1769c3[_0x5945b8(0x1d6,'\x69\x46\x4c\x37')];return _0x53e0b8[_0x5945b8(0x189,'\x5a\x5b\x5e\x38')][_0x5945b8(0x179,'\x33\x79\x26\x62')](firstString(_0x313c2f[_0x5945b8(0x1bc,'\x29\x39\x78\x38')],_0x313c2f['\x74\x61\x73\x6b\x5f\x69\x64'])??'');}case _0x5945b8(0x1ea,'\x6d\x77\x6c\x56')+_0x5945b8(0x1e5,'\x34\x33\x57\x33'):{const _0x7529e2=_0x1769c3[_0x5945b8(0x18f,'\x70\x58\x31\x77')],_0x6f4688=firstString(_0x7529e2[_0x5945b8(0x160,'\x33\x24\x72\x56')],_0x7529e2[_0x5945b8(0x133,'\x59\x6d\x26\x77')]),_0x1d6577=firstString(_0x7529e2[_0x5945b8(0x170,'\x52\x75\x5b\x71')],_0x7529e2[_0x5945b8(0x1a4,'\x43\x36\x7a\x41')]),_0x4952d4=firstString(_0x7529e2[_0x5945b8(0x1b8,'\x53\x66\x7a\x6a')],_0x7529e2[_0x5945b8(0x16b,'\x69\x79\x21\x69')]);if(!_0x4952d4)throw new PublishRejectedError(_0x5945b8(0x161,'\x69\x40\x7a\x6e')+_0x5945b8(0x191,'\x73\x65\x6c\x66')+'\x70\x6c\x65\x74\x65',!![],_0x5945b8(0x17e,'\x29\x39\x78\x38')+_0x5945b8(0x178,'\x4b\x6f\x56\x4f')+_0x5945b8(0x148,'\x74\x55\x56\x56')+'\x61\x75\x73\x65\x20\x74\x61\x73'+'\x6b\x20\x63\x6c\x61\x69\x6d\x20'+_0x5945b8(0x1eb,'\x74\x55\x56\x56')+_0x5945b8(0x17f,'\x69\x40\x7a\x6e')+'\x75\x65');const _0x5ce570=_0x6f4688&&_0x1d6577?{'\x74\x61\x73\x6b\x49\x64':_0x6f4688,'\x61\x73\x73\x65\x74\x49\x64':_0x1d6577}:undefined;return _0x53e0b8['\x74\x61\x73\x6b'][_0x5945b8(0x136,'\x76\x6b\x47\x38')](_0x4952d4,_0x7529e2[_0x5945b8(0x1aa,'\x51\x41\x63\x4b')],_0x5ce570);}default:await _0x53e0b8[_0x5945b8(0x16c,'\x4b\x6f\x56\x4f')][_0x5945b8(0x196,'\x24\x4a\x44\x47')](envelopeToAgentEvent(_0x1769c3));return{'\x70\x75\x73\x68\x65\x64':!![]};}};},'\x61\x73\x41\x73\x73\x65\x74\x54\x72\x61\x6e\x73\x70\x6f\x72\x74'(){const _0x295fe5=_0x4bdb97;return{'\x70\x75\x74\x52\x65\x6d\x6f\x74\x65':async _0xf6f417=>{const _0x562967=_0x2333,{record:_0x21a1bc}=normalizeForPut(_0xf6f417),_0x32c519=await _0x266f48([_0x21a1bc]);return{'\x73\x74\x6f\x72\x65\x64':_0x32c519[_0x562967(0x186,'\x69\x79\x21\x69')]===_0x562967(0x1b3,'\x72\x44\x29\x64')};},'\x67\x65\x74\x52\x65\x6d\x6f\x74\x65':async _0x52df4a=>{const _0x5e9699=_0x2333;if(_0x5e9699(0x164,'\x24\x4a\x44\x47')!==_0x5e9699(0x1dc,'\x6d\x77\x6c\x56')){const _0x273ca3=_0x37f6b4[_0x5e9699(0x1c2,'\x45\x77\x4e\x56')]===_0x5e9699(0x199,'\x2a\x56\x32\x73')+_0x5e9699(0x168,'\x4e\x31\x70\x43')&&_0x138701[_0x5e9699(0x169,'\x5a\x76\x44\x59')+_0x5e9699(0x1a0,'\x34\x67\x59\x42')]?_0xec2798[_0x5e9699(0x139,'\x70\x58\x31\x77')+_0x5e9699(0x1c4,'\x5d\x21\x43\x24')]:_0x50d0fa['\x69\x64'];return{'\x69\x64':_0x273ca3,'\x74\x79\x70\x65':_0x3ae166['\x74\x79\x70\x65']===_0x5e9699(0x166,'\x70\x58\x31\x77')+_0x5e9699(0x1cc,'\x4f\x5a\x28\x32')?'\x64\x6d':_0x3be77a[_0x5e9699(0x18e,'\x64\x6f\x4b\x55')],'\x70\x61\x79\x6c\x6f\x61\x64':_0x11e43c['\x70\x61\x79\x6c\x6f\x61\x64'],'\x70\x72\x69\x6f\x72\x69\x74\x79':_0x5e9699(0x1e3,'\x52\x75\x5b\x71'),'\x63\x72\x65\x61\x74\x65\x64\x41\x74':_0x12ff41[_0x5e9699(0x195,'\x2a\x56\x32\x73')+'\x74'],..._0x13a987[_0x5e9699(0x1b4,'\x33\x79\x26\x62')]==='\x70\x72\x6f\x78\x79\x5f\x74\x72'+_0x5e9699(0x17b,'\x67\x36\x54\x68')&&_0x1945cf[_0x5e9699(0x15f,'\x2a\x56\x32\x73')+'\x6e\x63\x79\x4b\x65\x79']?{'\x72\x65\x66\x49\x64':_0x58b17c['\x69\x64\x65\x6d\x70\x6f\x74\x65'+_0x5e9699(0x1e8,'\x4d\x29\x6a\x23')]}:{}};}else{const _0x51c10d=await _0x53e0b8['\x66\x65\x74\x63\x68']({'\x6c\x69\x6d\x69\x74':0x2710});return _0x51c10d[_0x5e9699(0x156,'\x28\x52\x59\x32')](_0x4aa62c=>_0x4aa62c[_0x5e9699(0x1d9,'\x28\x52\x59\x32')]===_0x52df4a)??null;}},'\x73\x65\x61\x72\x63\x68\x52\x65\x6d\x6f\x74\x65':_0xc7b0d6=>_0x53e0b8['\x73\x65\x61\x72\x63\x68'](_0xc7b0d6),'\x6c\x69\x73\x74\x52\x65\x6d\x6f\x74\x65':(_0x114406,_0x8b51dd)=>_0x53e0b8[_0x295fe5(0x1a9,'\x33\x79\x26\x62')]({..._0x114406?{'\x6b\x69\x6e\x64':_0x114406}:{},'\x6c\x69\x6d\x69\x74':_0x8b51dd})};}};}function contentAssetIds(_0x3015ad){const _0x2ac6a7=_0x25d919,_0x312830=_0x3015ad[_0x2ac6a7(0x157,'\x73\x65\x6c\x66')](_0x464830=>_0x464830[_0x2ac6a7(0x16e,'\x69\x46\x4c\x37')]);return _0x312830[_0x2ac6a7(0x18c,'\x4d\x6b\x6d\x2a')](_0x2537f6=>typeof _0x2537f6===_0x2ac6a7(0x1e2,'\x4f\x6e\x29\x7a')&&/^sha256:[a-f0-9]{64}$/i[_0x2ac6a7(0x1ae,'\x5a\x76\x44\x59')](_0x2537f6))?_0x312830:undefined;}function firstString(..._0x26cd2d){const _0x2fdb44=_0x25d919;for(const _0x409d55 of _0x26cd2d){if(_0x2fdb44(0x19d,'\x45\x67\x5b\x79')!==_0x2fdb44(0x1c9,'\x33\x24\x72\x56')){const _0x31d7a2=_0x1d8cfe[_0x2fdb44(0x14b,'\x34\x67\x59\x42')];return _0x222e5c[_0x2fdb44(0x13d,'\x58\x38\x5d\x4d')][_0x2fdb44(0x18d,'\x5a\x76\x44\x59')](_0x57ab89(_0x31d7a2[_0x2fdb44(0x1cb,'\x2a\x56\x32\x73')],_0x31d7a2[_0x2fdb44(0x133,'\x59\x6d\x26\x77')])??'');}else{if(typeof _0x409d55!==_0x2fdb44(0x146,'\x34\x67\x59\x42'))continue;const _0x158dfd=_0x409d55[_0x2fdb44(0x1ed,'\x59\x6d\x26\x77')]();if(_0x158dfd)return _0x158dfd;}}return undefined;}
|
package/dist/hub/capability.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export{};
|