@evomap/evolver-core 2.0.0 → 2.0.1

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.
Files changed (91) hide show
  1. package/dist/algo/antiDistill.js +1 -167
  2. package/dist/algo/bans.js +1 -33
  3. package/dist/algo/candidateAssembly.js +1 -273
  4. package/dist/algo/capabilityCandidates.js +1 -146
  5. package/dist/algo/confidence.js +1 -196
  6. package/dist/algo/conversationSniffer.js +1 -149
  7. package/dist/algo/cycleEngine.js +1 -625
  8. package/dist/algo/cycleFailureClassifier.js +1 -112
  9. package/dist/algo/epigenetics.js +1 -41
  10. package/dist/algo/evolutionEvent.js +1 -24
  11. package/dist/algo/exploration.js +1 -68
  12. package/dist/algo/geneHealth.js +1 -17
  13. package/dist/algo/geneIntake.js +1 -128
  14. package/dist/algo/genePromotion.js +1 -53
  15. package/dist/algo/geneSelection.js +1 -546
  16. package/dist/algo/index.js +1 -22
  17. package/dist/algo/memoryGraph.js +1 -86
  18. package/dist/algo/mutation.js +1 -22
  19. package/dist/algo/orchestrator.js +1 -87
  20. package/dist/algo/publishEligibility.js +1 -52
  21. package/dist/algo/solidify.js +1 -63
  22. package/dist/algo/strategyPresets.js +1 -61
  23. package/dist/algo/ucb1.js +1 -156
  24. package/dist/benchmark/antiGeneBenchmark.js +1 -252
  25. package/dist/benchmark/antiGeneImpact.js +1 -34
  26. package/dist/benchmark/antiGeneRollout.js +1 -269
  27. package/dist/benchmark/benchmark.js +1 -26
  28. package/dist/benchmark/evolutionThesisSolver.js +1 -41
  29. package/dist/benchmark/index.js +1 -7
  30. package/dist/benchmark/selectionFlatAbstention.js +1 -481
  31. package/dist/benchmark/thesis.js +1 -150
  32. package/dist/benchmark/triggerShift.js +1 -106
  33. package/dist/cycle/cycleTimeline.js +1 -74
  34. package/dist/cycle/index.js +1 -2
  35. package/dist/cycle/stateMachine.js +1 -25
  36. package/dist/hub/agentDirectory.js +1 -104
  37. package/dist/hub/assetCallLog.js +1 -195
  38. package/dist/hub/bindings.js +1 -121
  39. package/dist/hub/capability.js +1 -1
  40. package/dist/hub/conversationDistiller.js +1 -264
  41. package/dist/hub/fake.js +1 -70
  42. package/dist/hub/hubReview.js +1 -106
  43. package/dist/hub/index.js +1 -11
  44. package/dist/hub/ingest.js +1 -15
  45. package/dist/hub/questionGenerator.js +1 -408
  46. package/dist/hub/reuseDecision.js +1 -127
  47. package/dist/hub/sanitize.js +1 -322
  48. package/dist/material/boundary.js +1 -14
  49. package/dist/material/consumer.js +1 -55
  50. package/dist/material/emit.js +1 -52
  51. package/dist/material/factory.js +1 -25
  52. package/dist/material/index.js +1 -9
  53. package/dist/material/materialArchive.js +1 -466
  54. package/dist/material/materialStore.js +1 -69
  55. package/dist/material/sampling.js +1 -39
  56. package/dist/material/sources.js +1 -33
  57. package/dist/material/watermark.js +1 -76
  58. package/dist/personality/drift.js +1 -106
  59. package/dist/personality/events.js +1 -37
  60. package/dist/personality/evolveOps.js +1 -93
  61. package/dist/personality/index.js +1 -11
  62. package/dist/personality/mutate.js +1 -39
  63. package/dist/personality/pivot.js +1 -22
  64. package/dist/personality/prompt.js +1 -62
  65. package/dist/personality/riskGate.js +1 -80
  66. package/dist/personality/schema.js +1 -119
  67. package/dist/personality/select.js +1 -71
  68. package/dist/personality/stats.js +1 -82
  69. package/dist/personality/store.js +1 -92
  70. package/dist/schema/common.js +1 -17
  71. package/dist/schema/evolutionGraph.js +1 -187
  72. package/dist/schema/index.js +1 -6
  73. package/dist/schema/material.js +1 -50
  74. package/dist/schema/problem.js +1 -45
  75. package/dist/schema/proofOfWork.js +1 -9
  76. package/dist/schema/signal.js +1 -19
  77. package/dist/signals/curriculum.js +1 -202
  78. package/dist/signals/cycleHistoryFromEvents.js +1 -105
  79. package/dist/signals/expand.js +1 -293
  80. package/dist/signals/extractor.js +1 -82
  81. package/dist/signals/index.js +1 -8
  82. package/dist/signals/metaSignals.js +1 -200
  83. package/dist/signals/signalGate.js +1 -40
  84. package/dist/signals/taskDomain.js +1 -43
  85. package/dist/signals/traceSignals.js +1 -123
  86. package/dist/strategy/constraintAblation.js +1 -2820
  87. package/dist/strategy/constraintAblationPredicates.js +1 -339
  88. package/dist/strategy/experiment.js +1 -63
  89. package/dist/strategy/index.js +1 -3
  90. package/dist/strategy/strategyPoint.js +1 -23
  91. 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 _0x4396fb=_0x43ac;function _0x43ac(_0x37f3de,_0x58bd8b){_0x37f3de=_0x37f3de-(0x22cb+-0x1b5b*0x1+-0x63b);const _0xdd8953=_0x1144();let _0x202c20=_0xdd8953[_0x37f3de];if(_0x43ac['\x58\x63\x4b\x6c\x70\x66']===undefined){var _0x548cd6=function(_0x3c8d23){const _0x3de2df='\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 _0x4251e5='',_0x296a2e='';for(let _0x2b8389=-0x2*-0x12cf+-0x20ff+-0x49f,_0x1e790c,_0x58d190,_0x3a6ea1=0x1dfc+0xfbc+0x2db8*-0x1;_0x58d190=_0x3c8d23['\x63\x68\x61\x72\x41\x74'](_0x3a6ea1++);~_0x58d190&&(_0x1e790c=_0x2b8389%(0x202c+0xb8d*0x1+-0x2bb5)?_0x1e790c*(-0xbf*0x33+0x2*0x7c5+-0x1*-0x16c3)+_0x58d190:_0x58d190,_0x2b8389++%(0x268a+-0x5*0x34+-0x2582))?_0x4251e5+=String['\x66\x72\x6f\x6d\x43\x68\x61\x72\x43\x6f\x64\x65'](-0x173c+0x1*0x13ed+0x44e*0x1&_0x1e790c>>(-(-0x5a8*0x3+-0x18*-0xa1+0x1e2)*_0x2b8389&-0x1e*0x88+-0xb*0x1f3+0x2567)):-0x1*0x174+0x1306*0x1+0xad*-0x1a){_0x58d190=_0x3de2df['\x69\x6e\x64\x65\x78\x4f\x66'](_0x58d190);}for(let _0x204d89=0x19*0x10d+0xe72+0x7*-0x5d1,_0x4af8fe=_0x4251e5['\x6c\x65\x6e\x67\x74\x68'];_0x204d89<_0x4af8fe;_0x204d89++){_0x296a2e+='\x25'+('\x30\x30'+_0x4251e5['\x63\x68\x61\x72\x43\x6f\x64\x65\x41\x74'](_0x204d89)['\x74\x6f\x53\x74\x72\x69\x6e\x67'](0xe6*-0x13+-0x73a+0x185c))['\x73\x6c\x69\x63\x65'](-(0x778+-0x2167*-0x1+-0x28dd));}return decodeURIComponent(_0x296a2e);};const _0x2484cd=function(_0x411e9f,_0x1c8d17){let _0x74d22e=[],_0xddec68=-0x7*-0x588+0x518+-0x2bd0,_0x221e4f,_0x13d17d='';_0x411e9f=_0x548cd6(_0x411e9f);let _0x546bcb;for(_0x546bcb=-0x1e23+-0x567+0x2*0x11c5;_0x546bcb<-0x636*0x1+-0x1*0x461+-0x45*-0x2b;_0x546bcb++){_0x74d22e[_0x546bcb]=_0x546bcb;}for(_0x546bcb=-0x3d7+0x1eb*-0x3+0x2*0x4cc;_0x546bcb<-0xfb*-0x20+0x1*0x1ac9+-0x3929;_0x546bcb++){_0xddec68=(_0xddec68+_0x74d22e[_0x546bcb]+_0x1c8d17['\x63\x68\x61\x72\x43\x6f\x64\x65\x41\x74'](_0x546bcb%_0x1c8d17['\x6c\x65\x6e\x67\x74\x68']))%(-0x15b7+-0xb*-0x232+0x16f*-0x1),_0x221e4f=_0x74d22e[_0x546bcb],_0x74d22e[_0x546bcb]=_0x74d22e[_0xddec68],_0x74d22e[_0xddec68]=_0x221e4f;}_0x546bcb=-0x6f2+0x1981*-0x1+0xd*0x27f,_0xddec68=0x469+0x7a2+-0xc0b*0x1;for(let _0x4e2f81=-0x1955+0x5fe+0x1*0x1357;_0x4e2f81<_0x411e9f['\x6c\x65\x6e\x67\x74\x68'];_0x4e2f81++){_0x546bcb=(_0x546bcb+(0x71*0x2e+0x2*0x933+-0x26b3))%(-0x2cb*0x9+-0x32*0x89+0x34e5),_0xddec68=(_0xddec68+_0x74d22e[_0x546bcb])%(-0xb40+0x1c14+-0xfd4),_0x221e4f=_0x74d22e[_0x546bcb],_0x74d22e[_0x546bcb]=_0x74d22e[_0xddec68],_0x74d22e[_0xddec68]=_0x221e4f,_0x13d17d+=String['\x66\x72\x6f\x6d\x43\x68\x61\x72\x43\x6f\x64\x65'](_0x411e9f['\x63\x68\x61\x72\x43\x6f\x64\x65\x41\x74'](_0x4e2f81)^_0x74d22e[(_0x74d22e[_0x546bcb]+_0x74d22e[_0xddec68])%(-0x221a+-0xdab*-0x2+0x7c4)]);}return _0x13d17d;};_0x43ac['\x6a\x73\x6f\x53\x68\x45']=_0x2484cd,_0x43ac['\x53\x4e\x6f\x67\x71\x61']={},_0x43ac['\x58\x63\x4b\x6c\x70\x66']=!![];}const _0x573b52=_0xdd8953[-0xc84+-0xe0d*-0x2+-0xf96],_0x5568c8=_0x37f3de+_0x573b52,_0x4a62d0=_0x43ac['\x53\x4e\x6f\x67\x71\x61'][_0x5568c8];return!_0x4a62d0?(_0x43ac['\x43\x47\x45\x4f\x6f\x51']===undefined&&(_0x43ac['\x43\x47\x45\x4f\x6f\x51']=!![]),_0x202c20=_0x43ac['\x6a\x73\x6f\x53\x68\x45'](_0x202c20,_0x58bd8b),_0x43ac['\x53\x4e\x6f\x67\x71\x61'][_0x5568c8]=_0x202c20):_0x202c20=_0x4a62d0,_0x202c20;}(function(_0x2e0ccf,_0x187add){const _0x3f8618=_0x43ac,_0x1bbd10=_0x2e0ccf();while(!![]){try{const _0x37be64=-parseInt(_0x3f8618(0x158,'\x74\x32\x58\x29'))/(-0x719+-0xc*0x1f7+0x1eae)+-parseInt(_0x3f8618(0x169,'\x6d\x71\x69\x34'))/(-0x59*-0x27+0x1916+-0x26a3)*(parseInt(_0x3f8618(0x13f,'\x64\x5e\x2a\x45'))/(0x2*0xff4+-0x8e1*0x1+-0x1704))+parseInt(_0x3f8618(0x13a,'\x6b\x61\x54\x4a'))/(0xc3d*-0x3+-0xc2a+0x30e5)+parseInt(_0x3f8618(0x15d,'\x41\x4c\x28\x55'))/(0xff7*0x1+-0x13b8*-0x1+-0x23aa)+parseInt(_0x3f8618(0x175,'\x49\x6e\x25\x56'))/(0x1*-0xd9f+0x184+0xc21)+-parseInt(_0x3f8618(0x156,'\x43\x28\x6c\x39'))/(-0x1*0x20c3+-0x16f9+0x5*0xb27)+parseInt(_0x3f8618(0x184,'\x67\x71\x5b\x42'))/(0x108d+-0xa56+-0x62f)*(parseInt(_0x3f8618(0x18a,'\x7a\x6b\x36\x5d'))/(0xc5b*-0x3+0x2228+0x2f2));if(_0x37be64===_0x187add)break;else _0x1bbd10['push'](_0x1bbd10['shift']());}catch(_0x4ed141){_0x1bbd10['push'](_0x1bbd10['shift']());}}}(_0x1144,-0x2*0x44c+-0x23d5*0x5+0x74ba*0xa));export const AGENT_DIRECTORY_DEFAULT_LIMIT=0x37*0x2f+-0x1b5c+-0x1157*-0x1;export const AGENT_DIRECTORY_MAX_LIMIT=0x1eab+-0x1*0x2241+0x4*0xf2;export const AGENT_DIRECTORY_DEFAULT_TIMEOUT_MS=-0x25*0x3e+-0x1bdd+0x1d7*0x25;export const AGENT_DIRECTORY_MAX_TIMEOUT_MS=-0x1*-0x30d7+0x5756+-0x12fd*0x1;export const AGENT_DIRECTORY_MAX_QUERY_LENGTH=0x935*0x1+0xf39+0x3bf*-0x6;export const AGENT_DIRECTORY_MAX_SIGNAL_COUNT=0x314*0xb+0x755*-0x4+-0x474;export const AGENT_DIRECTORY_MAX_SIGNAL_LENGTH=-0xa6e+0xe8*0x7+0x456;export const AGENT_DIRECTORY_MAX_CURSOR_LENGTH=0x1*-0x6f1+0x8a1+0xb0*-0x1;export const AGENT_DIRECTORY_MAX_AGENT_ID_LENGTH=-0xd*0xdf+0x1*0x15a2+-0x9cf;export class AgentDirectoryInputError extends Error{[_0x4396fb(0x17f,'\x6b\x61\x54\x4a')]=_0x4396fb(0x15a,'\x64\x54\x4b\x7a')+'\x72\x65\x71\x75\x65\x73\x74';}export function normalizeAgentSearchRequest(_0x40a921){const _0x1fc985=_0x4396fb,_0x1471e4=optionalText(_0x40a921['\x71\x75\x65\x72\x79'],'\x71\x75\x65\x72\x79',AGENT_DIRECTORY_MAX_QUERY_LENGTH),_0x58a4a4=normalizeSignals(_0x40a921[_0x1fc985(0x139,'\x36\x26\x4d\x55')]),_0x3c249f=_0x40a921[_0x1fc985(0x192,'\x41\x4c\x28\x55')+_0x1fc985(0x165,'\x47\x34\x39\x6d')]?enumValue(_0x40a921[_0x1fc985(0x18d,'\x5a\x77\x4a\x29')+'\x6c\x69\x74\x79'],[_0x1fc985(0x166,'\x5a\x52\x5e\x6a'),_0x1fc985(0x142,'\x6b\x47\x4a\x55'),_0x1fc985(0x160,'\x5a\x77\x4a\x29'),_0x1fc985(0x167,'\x7a\x5b\x4c\x66')],_0x1fc985(0x141,'\x6d\x71\x69\x34')+'\x6c\x69\x74\x79'):undefined;if(!_0x1471e4&&_0x58a4a4[_0x1fc985(0x18c,'\x30\x44\x43\x79')]===0x251*0xa+0x3*0xb45+0x1*-0x38f9)throw new AgentDirectoryInputError(_0x1fc985(0x16b,'\x34\x31\x53\x34')+_0x1fc985(0x172,'\x4b\x6a\x5e\x30')+_0x1fc985(0x16e,'\x7a\x5b\x4c\x66')+'\x64');return{..._0x1471e4?{'\x71\x75\x65\x72\x79':_0x1471e4}:{},..._0x58a4a4[_0x1fc985(0x190,'\x6b\x34\x40\x31')]>-0xb56+0x6*-0x346+-0x262*-0xd?{'\x73\x69\x67\x6e\x61\x6c\x73':_0x58a4a4}:{},..._0x3c249f?{'\x61\x76\x61\x69\x6c\x61\x62\x69\x6c\x69\x74\x79':_0x3c249f}:{},..._0x40a921[_0x1fc985(0x153,'\x7a\x6b\x36\x5d')]?{'\x63\x75\x72\x73\x6f\x72':requiredText(_0x40a921[_0x1fc985(0x150,'\x64\x54\x4b\x7a')],_0x1fc985(0x183,'\x63\x40\x73\x65'),AGENT_DIRECTORY_MAX_CURSOR_LENGTH)}:{},'\x6c\x69\x6d\x69\x74':boundedInteger(_0x40a921[_0x1fc985(0x176,'\x51\x49\x5b\x5b')],AGENT_DIRECTORY_DEFAULT_LIMIT,0x19c+0xd77*0x1+-0xf12,AGENT_DIRECTORY_MAX_LIMIT,_0x1fc985(0x179,'\x53\x47\x53\x79')),'\x74\x69\x6d\x65\x6f\x75\x74\x4d\x73':boundedInteger(_0x40a921[_0x1fc985(0x177,'\x4b\x6a\x5e\x30')+'\x73'],AGENT_DIRECTORY_DEFAULT_TIMEOUT_MS,-0x428+0x1826+-0x139a,AGENT_DIRECTORY_MAX_TIMEOUT_MS,_0x1fc985(0x154,'\x55\x45\x6f\x21')+'\x6d\x73'),'\x73\x6f\x72\x74':_0x40a921[_0x1fc985(0x17a,'\x45\x6b\x32\x40')]?enumValue(_0x40a921[_0x1fc985(0x189,'\x30\x44\x43\x79')],[_0x1fc985(0x148,'\x44\x71\x54\x77')+'\x65',_0x1fc985(0x180,'\x33\x58\x28\x76')+'\x6f\x6e',_0x1fc985(0x13e,'\x72\x65\x46\x6b'),_0x1fc985(0x16d,'\x53\x47\x53\x79')+_0x1fc985(0x138,'\x67\x6a\x4c\x66')],'\x73\x6f\x72\x74'):_0x1fc985(0x148,'\x44\x71\x54\x77')+'\x65','\x6f\x72\x64\x65\x72':_0x40a921[_0x1fc985(0x171,'\x35\x6d\x23\x4c')]?enumValue(_0x40a921[_0x1fc985(0x162,'\x47\x34\x39\x6d')],[_0x1fc985(0x145,'\x68\x50\x64\x46'),_0x1fc985(0x163,'\x31\x45\x47\x52')],_0x1fc985(0x171,'\x35\x6d\x23\x4c')):'\x64\x65\x73\x63'};}export function normalizeAgentTaskDiscoveryRequest(_0x3405e2){const _0x523939=_0x4396fb,_0x2f4540=requiredText(_0x3405e2['\x74\x69\x74\x6c\x65'],_0x523939(0x164,'\x44\x71\x54\x77'),AGENT_DIRECTORY_MAX_QUERY_LENGTH),_0x22724c=optionalText(_0x3405e2['\x64\x65\x73\x63\x72\x69\x70\x74'+_0x523939(0x17e,'\x57\x43\x75\x4a')],_0x523939(0x140,'\x6d\x41\x34\x42')+_0x523939(0x137,'\x4a\x28\x5d\x43'),AGENT_DIRECTORY_MAX_QUERY_LENGTH),_0xe42308=normalizeAgentSearchRequest({'\x71\x75\x65\x72\x79':[_0x2f4540,_0x22724c][_0x523939(0x178,'\x34\x31\x53\x34')](Boolean)['\x6a\x6f\x69\x6e']('\x0a'),'\x73\x69\x67\x6e\x61\x6c\x73':_0x3405e2[_0x523939(0x16c,'\x31\x45\x47\x52')],'\x61\x76\x61\x69\x6c\x61\x62\x69\x6c\x69\x74\x79':_0x3405e2[_0x523939(0x193,'\x6b\x61\x54\x4a')+'\x6c\x69\x74\x79'],'\x73\x6f\x72\x74':_0x3405e2['\x73\x6f\x72\x74'],'\x6f\x72\x64\x65\x72':_0x3405e2['\x6f\x72\x64\x65\x72'],'\x63\x75\x72\x73\x6f\x72':_0x3405e2[_0x523939(0x174,'\x30\x44\x43\x79')],'\x6c\x69\x6d\x69\x74':_0x3405e2[_0x523939(0x18f,'\x63\x40\x73\x65')],'\x74\x69\x6d\x65\x6f\x75\x74\x4d\x73':_0x3405e2[_0x523939(0x18b,'\x4a\x28\x5d\x43')+'\x73']});return{..._0xe42308,'\x74\x69\x74\x6c\x65':_0x2f4540,..._0x22724c?{'\x64\x65\x73\x63\x72\x69\x70\x74\x69\x6f\x6e':_0x22724c}:{}};}export function normalizeAgentId(_0x3e041c){const _0x5f4881=_0x4396fb;return requiredText(_0x3e041c,_0x5f4881(0x13b,'\x75\x69\x67\x5d'),AGENT_DIRECTORY_MAX_AGENT_ID_LENGTH);}export function normalizeAgentDirectoryTimeout(_0x1e6e75){const _0x5820ed=_0x4396fb;return boundedInteger(_0x1e6e75,AGENT_DIRECTORY_DEFAULT_TIMEOUT_MS,-0x72*-0x2f+-0x94d*-0x1+-0x1dd7,AGENT_DIRECTORY_MAX_TIMEOUT_MS,_0x5820ed(0x15f,'\x43\x28\x6c\x39')+'\x6d\x73');}export function capabilityUnavailable(_0x3d5ab2=_0x4396fb(0x144,'\x6b\x34\x40\x31')+_0x4396fb(0x143,'\x6d\x71\x69\x34')+_0x4396fb(0x181,'\x34\x31\x53\x34')+_0x4396fb(0x13d,'\x23\x42\x76\x56')){const _0x314ab2=_0x4396fb;return{'\x6f\x6b':![],'\x65\x72\x72\x6f\x72':{'\x63\x6f\x64\x65':_0x314ab2(0x157,'\x39\x33\x5a\x71')+_0x314ab2(0x16f,'\x41\x4c\x28\x55')+_0x314ab2(0x188,'\x44\x71\x54\x77'),'\x72\x65\x74\x72\x79\x61\x62\x6c\x65':![],'\x6d\x65\x73\x73\x61\x67\x65':_0x3d5ab2}};}export function unsupportedAgentDirectoryCapability(_0x422209){return{'\x73\x65\x61\x72\x63\x68':async()=>capabilityUnavailable(_0x422209),'\x67\x65\x74\x50\x72\x6f\x66\x69\x6c\x65':async()=>capabilityUnavailable(_0x422209),'\x64\x69\x73\x63\x6f\x76\x65\x72\x46\x6f\x72\x54\x61\x73\x6b':async()=>capabilityUnavailable(_0x422209)};}function normalizeSignals(_0x3c8507){const _0x316515=_0x4396fb;if(_0x3c8507===undefined)return[];if(!Array[_0x316515(0x135,'\x6b\x34\x40\x31')](_0x3c8507))throw new AgentDirectoryInputError(_0x316515(0x155,'\x63\x54\x2a\x6e')+_0x316515(0x17b,'\x68\x34\x64\x4c')+_0x316515(0x16a,'\x35\x6d\x23\x4c'));if(_0x3c8507[_0x316515(0x152,'\x67\x71\x5b\x42')]>AGENT_DIRECTORY_MAX_SIGNAL_COUNT)throw new AgentDirectoryInputError(_0x316515(0x17c,'\x7a\x68\x75\x4c')+_0x316515(0x170,'\x30\x44\x43\x79'));const _0x5aff93=[];for(const _0x3284e3 of _0x3c8507){if(_0x316515(0x168,'\x57\x43\x75\x4a')!==_0x316515(0x14a,'\x33\x58\x28\x76')){if(_0x58d190===_0x3a6ea1)return _0x204d89;return _0x4af8fe(_0x411e9f,_0x1c8d17,_0x74d22e);}else{if(typeof _0x3284e3!==_0x316515(0x187,'\x24\x51\x47\x64'))throw new AgentDirectoryInputError(_0x316515(0x149,'\x47\x34\x39\x6d')+_0x316515(0x13c,'\x7a\x6b\x36\x5d')+_0x316515(0x146,'\x44\x6e\x44\x4d'));const _0x16f949=requiredText(_0x3284e3,_0x316515(0x182,'\x43\x28\x6c\x39'),AGENT_DIRECTORY_MAX_SIGNAL_LENGTH);if(!_0x5aff93[_0x316515(0x173,'\x48\x73\x69\x41')](_0x16f949))_0x5aff93[_0x316515(0x14c,'\x24\x51\x47\x64')](_0x16f949);}}return _0x5aff93;}function optionalText(_0x1e5afc,_0x31335b,_0x56c3f3){if(_0x1e5afc===undefined)return undefined;return requiredText(_0x1e5afc,_0x31335b,_0x56c3f3);}function requiredText(_0x470bfb,_0xfa686a,_0x4b041e){const _0x599919=_0x4396fb;if(typeof _0x470bfb!==_0x599919(0x15b,'\x21\x76\x6a\x70'))throw new AgentDirectoryInputError(_0xfa686a+(_0x599919(0x15e,'\x7a\x68\x75\x4c')+_0x599919(0x191,'\x7a\x68\x75\x4c')));const _0x5b8d79=_0x470bfb[_0x599919(0x14f,'\x30\x44\x43\x79')]();if(!_0x5b8d79)throw new AgentDirectoryInputError(_0xfa686a+(_0x599919(0x186,'\x6b\x47\x4a\x55')+'\x64'));if(_0x5b8d79['\x6c\x65\x6e\x67\x74\x68']>_0x4b041e)throw new AgentDirectoryInputError(_0xfa686a+('\x5f\x74\x6f\x6f\x5f\x6c\x6f\x6e'+'\x67'));return _0x5b8d79;}function boundedInteger(_0x1a8073,_0x4a4482,_0x393dde,_0x274493,_0x5139c9){const _0x537d01=_0x4396fb;if(_0x1a8073===undefined)return _0x4a4482;if(!Number[_0x537d01(0x17d,'\x23\x42\x76\x56')+'\x72'](_0x1a8073)||_0x1a8073<_0x393dde||_0x1a8073>_0x274493)throw new AgentDirectoryInputError(_0x5139c9+('\x5f\x6f\x75\x74\x5f\x6f\x66\x5f'+_0x537d01(0x161,'\x47\x34\x39\x6d')));return _0x1a8073;}function _0x1144(){const _0x5018a0=['\x57\x4f\x7a\x51\x57\x51\x56\x63\x48\x66\x79','\x71\x67\x5a\x63\x55\x31\x54\x61\x57\x52\x79\x32','\x61\x43\x6f\x70\x57\x34\x4a\x63\x47\x43\x6b\x33','\x43\x30\x42\x63\x4d\x43\x6f\x6f\x7a\x30\x76\x67\x68\x71','\x6c\x43\x6b\x4d\x57\x50\x72\x4c\x42\x43\x6f\x53\x57\x37\x53','\x57\x37\x6c\x63\x48\x64\x42\x64\x4a\x43\x6f\x50\x44\x53\x6f\x4e\x57\x4f\x75','\x44\x53\x6f\x5a\x57\x36\x34\x43\x57\x50\x70\x64\x47\x38\x6f\x70\x57\x34\x75','\x57\x37\x4c\x78\x57\x37\x4e\x64\x51\x4b\x54\x31\x57\x50\x42\x64\x47\x61','\x74\x64\x70\x64\x53\x6d\x6f\x6e\x77\x31\x52\x64\x49\x63\x34','\x64\x38\x6f\x70\x57\x35\x37\x63\x48\x43\x6b\x38','\x57\x4f\x46\x64\x52\x6d\x6f\x6b\x7a\x65\x35\x6c\x62\x73\x69','\x79\x49\x52\x64\x4e\x5a\x56\x64\x49\x57\x4a\x63\x4c\x59\x30','\x43\x64\x78\x64\x51\x38\x6f\x7a\x77\x4b\x4b','\x57\x52\x74\x63\x49\x30\x6e\x69\x57\x35\x79\x72\x57\x51\x4e\x64\x47\x76\x34\x6e\x57\x35\x54\x63\x57\x52\x79','\x77\x38\x6f\x34\x57\x36\x34\x50\x7a\x71','\x57\x51\x5a\x64\x54\x53\x6f\x6f\x7a\x4b\x39\x46\x68\x72\x57','\x7a\x66\x52\x63\x4b\x6d\x6f\x69\x45\x32\x47','\x57\x37\x2f\x63\x4d\x5a\x52\x64\x4a\x43\x6f\x58','\x57\x51\x58\x37\x66\x33\x75','\x57\x34\x44\x50\x57\x35\x62\x58\x57\x51\x5a\x64\x55\x6d\x6f\x56\x57\x35\x4b','\x57\x4f\x4a\x64\x49\x63\x48\x4b\x57\x50\x4b\x6f\x57\x35\x5a\x63\x54\x61','\x43\x6d\x6f\x6d\x57\x37\x33\x64\x54\x43\x6b\x50\x6d\x4e\x74\x64\x55\x47','\x57\x51\x58\x2f\x57\x52\x61','\x57\x36\x64\x64\x4e\x33\x31\x45','\x73\x53\x6f\x48\x57\x50\x5a\x63\x55\x33\x69\x6f\x45\x57\x4b','\x42\x66\x5a\x63\x49\x6d\x6f\x4a\x42\x77\x39\x7a\x68\x57','\x57\x51\x4a\x64\x4c\x57\x6d\x76\x57\x50\x69\x73','\x57\x34\x6e\x6c\x57\x51\x4a\x64\x56\x47\x69\x61','\x57\x4f\x64\x63\x55\x53\x6f\x47\x57\x34\x38\x66\x72\x38\x6b\x4c\x57\x34\x61','\x57\x37\x48\x36\x77\x43\x6f\x71\x57\x51\x78\x63\x4e\x6d\x6f\x43\x57\x52\x34','\x6e\x31\x6a\x69\x65\x6d\x6f\x4c\x6b\x6d\x6b\x44\x57\x35\x4f','\x75\x53\x6f\x6d\x57\x36\x4a\x63\x4a\x58\x64\x64\x50\x71','\x67\x6d\x6f\x65\x6f\x63\x65\x4a\x67\x47','\x79\x63\x2f\x64\x51\x38\x6f\x45','\x6c\x43\x6b\x4d\x61\x75\x4e\x63\x48\x53\x6f\x4c\x46\x33\x71\x50\x66\x68\x71','\x57\x36\x48\x75\x64\x53\x6b\x68\x57\x51\x68\x63\x4c\x30\x65\x73','\x46\x59\x78\x64\x54\x38\x6f\x6e\x71\x76\x6d','\x77\x47\x76\x77\x64\x73\x6a\x52\x72\x43\x6b\x6d','\x44\x53\x6f\x4f\x57\x36\x75\x42\x57\x4f\x46\x64\x48\x53\x6f\x75\x57\x34\x71','\x57\x34\x58\x78\x57\x52\x46\x64\x50\x62\x4b','\x57\x4f\x38\x69\x57\x52\x68\x64\x51\x6d\x6b\x51\x46\x71','\x57\x51\x70\x64\x4c\x64\x6e\x6a\x57\x50\x30\x62\x57\x35\x75','\x57\x36\x58\x79\x57\x34\x46\x64\x54\x4b\x4c\x31\x57\x4f\x6c\x64\x49\x61','\x57\x36\x6c\x64\x48\x4e\x48\x73\x6a\x53\x6b\x72\x6d\x62\x6d','\x57\x4f\x4f\x45\x57\x50\x37\x64\x56\x43\x6b\x53\x44\x68\x6d','\x57\x35\x66\x45\x57\x36\x4a\x63\x56\x6d\x6f\x4d\x6a\x4a\x39\x67\x78\x75\x43\x73\x70\x6d\x6b\x4c','\x57\x37\x76\x73\x64\x71','\x57\x52\x68\x64\x51\x6d\x6f\x36\x76\x61','\x65\x30\x74\x63\x47\x57\x5a\x63\x4d\x49\x69\x45','\x57\x52\x74\x63\x47\x59\x65\x6b\x46\x6d\x6f\x69\x68\x59\x52\x64\x4f\x57\x54\x4f\x6c\x47','\x6a\x6d\x6b\x32\x6b\x6d\x6b\x57\x57\x35\x58\x56\x57\x52\x6c\x63\x4a\x71','\x42\x43\x6f\x47\x72\x59\x42\x64\x4b\x53\x6f\x72\x77\x76\x71','\x44\x53\x6f\x6e\x57\x34\x64\x64\x56\x53\x6b\x35','\x57\x4f\x33\x63\x4f\x6d\x6b\x72\x6b\x73\x6a\x4b','\x6f\x4b\x6a\x49\x74\x53\x6f\x72\x57\x52\x6e\x53\x61\x6d\x6f\x6a\x57\x52\x72\x56\x45\x59\x53','\x57\x51\x47\x68\x57\x37\x64\x63\x4d\x6d\x6f\x69\x42\x43\x6b\x47\x6c\x71','\x65\x31\x68\x63\x47\x4c\x72\x6a\x57\x52\x75\x7a\x57\x36\x38','\x63\x4c\x76\x45\x67\x61','\x61\x65\x6c\x63\x47\x65\x4c\x6b\x57\x51\x79\x63\x57\x35\x4b','\x57\x4f\x69\x6b\x57\x52\x52\x64\x4f\x43\x6b\x51\x73\x4d\x35\x47','\x6e\x6d\x6b\x47\x57\x34\x53','\x63\x43\x6f\x48\x57\x37\x7a\x4f\x57\x4f\x34','\x57\x37\x34\x50\x57\x35\x56\x63\x4e\x43\x6f\x46\x7a\x53\x6b\x44','\x61\x38\x6f\x6e\x6e\x73\x79\x35\x68\x49\x6a\x65','\x57\x52\x38\x52\x74\x43\x6f\x58\x57\x4f\x33\x63\x47\x38\x6f\x32\x57\x52\x61','\x45\x38\x6f\x2b\x57\x50\x4e\x63\x52\x68\x65','\x57\x52\x38\x78\x57\x50\x37\x63\x51\x62\x62\x6e\x57\x52\x52\x64\x53\x43\x6b\x39\x57\x35\x6c\x63\x51\x61','\x75\x43\x6f\x6e\x57\x36\x4e\x63\x4a\x47','\x42\x6d\x6b\x53\x67\x53\x6b\x32\x77\x53\x6b\x4c\x57\x36\x5a\x63\x4c\x57','\x57\x52\x6c\x63\x47\x73\x61\x70\x46\x38\x6f\x6a\x79\x58\x74\x64\x55\x48\x6e\x50\x70\x64\x4f','\x7a\x5a\x6c\x64\x53\x6d\x6f\x68','\x57\x37\x71\x65\x65\x53\x6f\x71\x57\x51\x42\x63\x53\x57','\x66\x6d\x6b\x6e\x57\x51\x4a\x64\x4c\x4b\x4a\x64\x4b\x38\x6b\x64\x57\x34\x68\x64\x55\x65\x52\x63\x51\x71','\x57\x35\x4a\x64\x50\x38\x6f\x39\x57\x36\x43\x34\x78\x61','\x45\x38\x6f\x4d\x71\x71\x52\x64\x4e\x38\x6f\x67','\x57\x34\x68\x63\x50\x53\x6f\x47\x65\x58\x35\x6a\x77\x6d\x6b\x6a','\x57\x37\x68\x63\x4d\x66\x46\x63\x4e\x67\x52\x64\x52\x76\x4a\x63\x47\x71','\x57\x36\x52\x63\x48\x4c\x76\x70\x57\x34\x50\x6a\x57\x35\x52\x64\x4e\x43\x6b\x68\x57\x4f\x6c\x64\x48\x33\x30\x36','\x67\x30\x37\x64\x4d\x64\x68\x64\x54\x77\x70\x64\x54\x38\x6f\x46','\x77\x68\x75\x36\x65\x4d\x69\x31\x57\x52\x6e\x55\x57\x52\x75\x6b\x57\x37\x61','\x57\x36\x52\x63\x53\x53\x6b\x32\x68\x6d\x6f\x43\x57\x37\x61\x74\x77\x49\x6e\x6d\x6f\x47\x69','\x57\x37\x34\x46\x66\x53\x6f\x63\x57\x51\x78\x63\x51\x63\x52\x63\x51\x61','\x76\x58\x2f\x64\x47\x6d\x6b\x49\x57\x52\x4e\x64\x4b\x57','\x6e\x6d\x6f\x32\x74\x6d\x6f\x52\x66\x53\x6f\x32\x57\x52\x2f\x63\x49\x53\x6f\x33\x61\x64\x4a\x63\x4e\x74\x4b','\x57\x52\x38\x44\x57\x50\x68\x63\x52\x62\x30\x4e\x57\x35\x78\x64\x52\x53\x6b\x54\x57\x37\x4a\x63\x47\x65\x68\x64\x53\x47','\x57\x51\x70\x64\x49\x4a\x6a\x69\x57\x4f\x61\x57\x57\x35\x64\x63\x51\x61','\x57\x51\x2f\x64\x4c\x57\x4b\x45\x57\x50\x57\x6c\x57\x50\x52\x64\x48\x61','\x76\x62\x76\x72\x63\x63\x44\x4b\x71\x47','\x57\x52\x34\x4a\x72\x6d\x6f\x34\x57\x4f\x4b','\x57\x51\x6d\x57\x74\x53\x6f\x36\x57\x50\x34','\x6f\x53\x6b\x51\x57\x4f\x62\x4f','\x62\x43\x6f\x62\x6c\x73\x38\x51','\x57\x51\x61\x52\x78\x53\x6f\x4d','\x41\x53\x6b\x53\x66\x43\x6b\x5a\x71\x43\x6b\x4b','\x78\x6d\x6f\x56\x57\x36\x61\x64\x57\x4f\x4e\x64\x4e\x43\x6f\x74'];_0x1144=function(){return _0x5018a0;};return _0x1144();}function enumValue(_0x495b34,_0x1f970f,_0x1ebf48){const _0x28baa9=_0x4396fb;if(!_0x1f970f[_0x28baa9(0x14d,'\x5a\x52\x5e\x6a')](_0x495b34))throw new AgentDirectoryInputError(_0x1ebf48+_0x28baa9(0x18e,'\x7a\x5b\x4c\x66'));return _0x495b34;}
@@ -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
+ const _0x182c10=_0x2e5d;(function(_0x30b981,_0x57d2ea){const _0x19c015=_0x2e5d,_0x15e914=_0x30b981();while(!![]){try{const _0x42e6ce=-parseInt(_0x19c015(0xcb,'\x5b\x57\x34\x68'))/(-0x220+-0xa15*-0x1+-0x7f4)+parseInt(_0x19c015(0xd7,'\x4d\x69\x61\x67'))/(-0x1*0x24d1+-0x11ec+0x36bf)+parseInt(_0x19c015(0x140,'\x57\x6e\x59\x41'))/(0x7*0x53+-0x243c+0x21fa)+parseInt(_0x19c015(0x102,'\x49\x21\x51\x42'))/(-0x83c*-0x3+-0x228c+0x4*0x277)*(-parseInt(_0x19c015(0x11e,'\x57\x23\x64\x32'))/(0x11f2+-0x1*-0x2bf+-0x14ac))+parseInt(_0x19c015(0xc4,'\x5b\x42\x30\x7a'))/(0x2539+0xc85+0xac*-0x4a)*(-parseInt(_0x19c015(0xfb,'\x7a\x49\x4d\x24'))/(-0x1*-0x1a3+0x22*-0xe+0x8*0x8))+parseInt(_0x19c015(0x10f,'\x6e\x4f\x26\x6c'))/(0x224d+0x10*0x89+-0x2ad5)*(parseInt(_0x19c015(0x151,'\x5b\x42\x30\x7a'))/(-0xa9a+-0xb*-0x2bd+-0x137c))+-parseInt(_0x19c015(0xaa,'\x36\x53\x24\x63'))/(0x1b43+-0x22b4*-0x1+-0x3ded)*(-parseInt(_0x19c015(0x10e,'\x78\x30\x47\x4c'))/(0xe81+0x55f+0x13d5*-0x1));if(_0x42e6ce===_0x57d2ea)break;else _0x15e914['push'](_0x15e914['shift']());}catch(_0xb0e03b){_0x15e914['push'](_0x15e914['shift']());}}}(_0x42c6,0x1b0dcf+0x1cdee1+-0x28ffd6*0x1));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';function _0x42c6(){const _0x24e863=['\x57\x51\x46\x63\x4b\x53\x6b\x64\x62\x53\x6b\x36','\x57\x36\x66\x6e\x46\x43\x6b\x55\x57\x37\x31\x42\x57\x34\x2f\x63\x49\x47','\x57\x35\x48\x2f\x57\x4f\x50\x54\x57\x51\x30\x66\x73\x71','\x57\x52\x78\x63\x47\x43\x6b\x66\x76\x53\x6b\x48\x57\x52\x47','\x57\x37\x71\x4b\x57\x52\x66\x39\x57\x51\x64\x63\x50\x4d\x71\x69','\x57\x52\x75\x72\x57\x51\x37\x63\x52\x71','\x57\x34\x30\x4c\x57\x52\x76\x54','\x57\x35\x58\x6a\x71\x71','\x57\x37\x37\x63\x54\x77\x57\x6c\x57\x35\x43\x66\x57\x51\x42\x64\x47\x47','\x41\x48\x74\x63\x50\x57\x79\x36\x57\x51\x4b','\x57\x51\x74\x63\x47\x38\x6b\x66\x76\x57','\x57\x52\x6d\x44\x57\x51\x6c\x63\x52\x65\x75\x6d\x6f\x4b\x53','\x77\x67\x75\x69\x57\x4f\x74\x64\x48\x38\x6b\x55','\x6b\x78\x2f\x64\x4d\x43\x6f\x4e\x62\x71\x34','\x57\x37\x30\x4e\x42\x59\x4c\x37\x57\x52\x53\x69\x42\x71','\x6a\x4e\x4c\x49\x57\x4f\x69\x32\x57\x34\x4f','\x57\x35\x2f\x63\x54\x38\x6b\x46\x66\x6d\x6f\x75\x57\x52\x4b\x5a\x57\x35\x75\x48\x78\x38\x6f\x4a\x57\x4f\x78\x64\x4f\x57','\x68\x6d\x6f\x51\x44\x43\x6f\x64','\x69\x76\x66\x52\x57\x50\x31\x62','\x57\x34\x70\x63\x4b\x4d\x4f\x67\x57\x35\x79','\x45\x75\x56\x64\x52\x33\x43\x64','\x57\x36\x37\x63\x51\x4a\x30','\x57\x35\x42\x63\x48\x57\x48\x53\x72\x6d\x6f\x4d\x57\x4f\x6c\x63\x52\x47','\x57\x50\x53\x63\x75\x77\x57\x42\x71\x6d\x6f\x37\x6d\x62\x70\x64\x49\x38\x6b\x56\x76\x71','\x6d\x53\x6f\x36\x57\x4f\x6e\x67','\x45\x30\x6e\x61\x46\x30\x65\x75','\x57\x52\x57\x46\x46\x6d\x6b\x58\x57\x35\x6c\x64\x54\x4c\x61','\x57\x35\x39\x50\x57\x4f\x54\x54\x57\x52\x43\x35\x72\x74\x71','\x65\x68\x65\x48\x68\x63\x6e\x52','\x57\x37\x74\x63\x51\x43\x6b\x50\x79\x47','\x77\x38\x6b\x44\x74\x43\x6f\x4b\x57\x34\x6c\x63\x4f\x47','\x43\x43\x6b\x33\x57\x35\x56\x64\x50\x64\x69','\x57\x50\x31\x50\x68\x74\x68\x64\x48\x38\x6b\x46','\x71\x53\x6b\x4c\x57\x4f\x34\x4e\x57\x50\x4f\x6b\x57\x4f\x74\x63\x54\x61','\x6d\x68\x66\x36\x57\x50\x34','\x77\x77\x71\x30\x57\x34\x46\x63\x4e\x33\x4f\x6d\x45\x43\x6b\x48\x57\x52\x38\x38\x57\x52\x30\x4b','\x57\x35\x66\x30\x57\x51\x44\x38\x57\x51\x57\x6e\x73\x74\x34','\x57\x51\x47\x77\x57\x51\x78\x63\x52\x66\x75\x6d','\x57\x50\x70\x64\x51\x38\x6f\x30','\x57\x35\x46\x63\x4a\x71\x48\x54\x71\x47','\x73\x43\x6b\x42\x74\x71','\x57\x37\x38\x53\x45\x49\x4c\x36\x57\x4f\x4f','\x57\x36\x76\x70\x79\x47\x65\x69\x57\x36\x4b','\x57\x51\x4a\x64\x53\x6d\x6f\x68\x6c\x31\x75\x30\x57\x52\x46\x63\x56\x61','\x57\x52\x70\x63\x4c\x6d\x6b\x41\x68\x6d\x6b\x37\x45\x47','\x57\x36\x52\x63\x50\x77\x30\x6b','\x57\x51\x78\x63\x4d\x6d\x6b\x79\x68\x61','\x57\x35\x5a\x63\x51\x6d\x6f\x49\x6e\x57','\x57\x52\x52\x64\x52\x6d\x6f\x62\x6f\x65\x69\x6f\x57\x50\x52\x63\x54\x57','\x68\x6d\x6f\x6a\x57\x4f\x6d\x6a\x57\x52\x79\x55','\x6d\x4c\x62\x36','\x57\x35\x46\x63\x4a\x72\x58\x36','\x57\x35\x2f\x63\x53\x57\x34\x31\x57\x36\x44\x32\x41\x49\x61\x61\x6b\x43\x6b\x79\x76\x30\x6d','\x70\x43\x6f\x32\x57\x50\x39\x71\x6a\x68\x38','\x57\x52\x4e\x63\x4e\x6d\x6b\x66\x68\x61','\x57\x34\x35\x65\x78\x58\x65','\x72\x6d\x6b\x4c\x57\x50\x42\x63\x51\x6d\x6f\x62\x57\x37\x53\x44\x57\x34\x43','\x57\x52\x30\x74\x7a\x6d\x6b\x72\x57\x35\x37\x64\x51\x71','\x57\x4f\x72\x6c\x72\x5a\x66\x75\x57\x37\x6d\x72','\x63\x74\x7a\x35\x57\x50\x37\x64\x48\x59\x57','\x74\x64\x50\x53','\x57\x36\x79\x34\x57\x52\x44\x51\x57\x52\x46\x63\x4e\x66\x69\x63','\x67\x64\x72\x30\x57\x50\x56\x64\x48\x59\x6e\x41','\x41\x4e\x78\x64\x4f\x38\x6f\x52\x79\x47\x4a\x63\x53\x6d\x6f\x4a','\x7a\x32\x4f\x36\x77\x74\x47','\x57\x34\x58\x2f\x57\x4f\x31\x37\x57\x51\x79','\x44\x4b\x76\x41\x43\x76\x4f\x73','\x7a\x33\x52\x64\x4f\x78\x47\x49\x6f\x68\x31\x6f','\x69\x31\x76\x51\x57\x4f\x79','\x66\x38\x6f\x6d\x6d\x4b\x70\x63\x50\x53\x6b\x51\x79\x71','\x57\x35\x42\x63\x47\x72\x6e\x39\x71\x47','\x57\x34\x43\x4d\x57\x36\x68\x64\x53\x62\x4e\x64\x4e\x71\x34','\x57\x35\x31\x59\x57\x50\x4c\x48\x57\x51\x30\x35\x72\x74\x71','\x70\x66\x62\x37\x57\x52\x66\x6e\x57\x37\x30','\x57\x36\x43\x59\x57\x51\x6e\x38','\x57\x4f\x37\x64\x4f\x43\x6f\x53\x57\x52\x65\x4c\x42\x6d\x6b\x56\x57\x35\x6d','\x57\x37\x6a\x44\x46\x72\x65\x7a\x57\x34\x75\x64\x57\x36\x75','\x57\x35\x6c\x63\x56\x48\x33\x64\x48\x6d\x6f\x46\x69\x61','\x64\x53\x6b\x39\x42\x43\x6f\x6f\x57\x34\x74\x63\x49\x66\x79','\x57\x37\x78\x63\x53\x38\x6b\x31\x73\x43\x6b\x35\x45\x71','\x69\x77\x7a\x52\x57\x50\x69','\x57\x4f\x6c\x64\x4f\x4b\x58\x59','\x57\x4f\x2f\x64\x50\x6d\x6f\x41\x74\x53\x6b\x70\x57\x36\x71','\x57\x36\x70\x63\x47\x43\x6b\x61\x44\x43\x6b\x77\x57\x4f\x46\x64\x56\x71','\x57\x51\x37\x64\x50\x73\x31\x41\x57\x50\x66\x71\x57\x51\x70\x64\x4a\x5a\x68\x64\x4e\x31\x4a\x64\x47\x61','\x57\x50\x46\x63\x54\x59\x71','\x57\x35\x66\x2b\x57\x50\x31\x78\x57\x51\x4f\x63','\x71\x43\x6f\x50\x6b\x31\x2f\x63\x47\x38\x6b\x4f\x57\x37\x50\x50','\x57\x50\x56\x64\x55\x6d\x6f\x49\x57\x52\x61','\x57\x34\x58\x2f\x57\x50\x35\x54\x57\x52\x65\x64\x71\x4a\x6d','\x57\x4f\x38\x46\x46\x72\x66\x71\x57\x37\x43\x63\x75\x57','\x57\x51\x6a\x56\x57\x37\x53\x48\x57\x36\x42\x64\x49\x5a\x4b\x41\x61\x53\x6f\x4a\x57\x4f\x37\x64\x4e\x6d\x6f\x4e','\x57\x35\x42\x63\x47\x71\x44\x37','\x57\x34\x53\x34\x57\x52\x30\x32\x57\x35\x65','\x45\x43\x6f\x50\x63\x76\x4a\x63\x50\x57','\x57\x35\x64\x63\x51\x47\x52\x64\x54\x38\x6f\x7a\x6a\x43\x6f\x77','\x57\x4f\x39\x50\x57\x36\x50\x53\x57\x4f\x42\x64\x4f\x59\x4b\x69\x57\x51\x43\x6b\x57\x52\x53\x75\x6f\x57','\x43\x65\x34\x41\x73\x4a\x38','\x57\x50\x4e\x63\x48\x6d\x6b\x72\x6f\x43\x6b\x35','\x57\x4f\x31\x6f\x68\x43\x6b\x66\x42\x4a\x43','\x57\x36\x4e\x63\x53\x38\x6b\x32\x44\x6d\x6b\x31\x42\x57','\x41\x65\x76\x62\x7a\x75\x53\x37\x74\x59\x6d','\x57\x51\x42\x63\x49\x6d\x6b\x42\x62\x43\x6b\x2f\x45\x53\x6f\x5a\x57\x4f\x65','\x76\x53\x6b\x49\x57\x50\x46\x63\x50\x6d\x6f\x42\x57\x34\x6d\x44\x57\x34\x75','\x79\x77\x52\x64\x48\x6d\x6f\x58\x45\x64\x37\x63\x54\x53\x6f\x4e','\x57\x4f\x76\x45\x6c\x38\x6b\x66\x42\x5a\x61\x55\x42\x57','\x42\x43\x6b\x4e\x57\x35\x47\x65\x44\x5a\x2f\x64\x52\x74\x74\x63\x51\x53\x6f\x56\x75\x4e\x79\x73','\x6e\x6d\x6f\x36\x45\x6d\x6f\x79\x57\x36\x54\x31\x57\x50\x66\x6f','\x57\x52\x64\x63\x49\x38\x6b\x65\x74\x61','\x66\x38\x6f\x4b\x57\x52\x33\x63\x51\x6d\x6f\x4d\x57\x36\x6d\x48\x57\x35\x4f','\x57\x50\x54\x5a\x67\x61\x56\x64\x47\x6d\x6b\x69\x57\x37\x34\x64','\x45\x68\x42\x64\x4f\x4e\x34\x4a\x69\x33\x44\x65','\x57\x4f\x33\x64\x4d\x43\x6f\x31\x6f\x76\x4f','\x57\x35\x72\x75\x57\x36\x4f\x58\x6d\x47','\x6c\x68\x4c\x47\x57\x50\x6d\x47','\x57\x50\x50\x4f\x66\x76\x79','\x74\x6d\x6f\x48\x6f\x78\x74\x63\x4f\x6d\x6b\x66\x7a\x78\x47','\x57\x34\x74\x63\x50\x6d\x6f\x32\x69\x71','\x57\x35\x42\x63\x4e\x61\x39\x33\x73\x43\x6f\x4b','\x57\x52\x78\x63\x4b\x43\x6b\x63\x77\x53\x6b\x36\x57\x4f\x4e\x64\x52\x4a\x43','\x57\x37\x74\x63\x54\x53\x6b\x33\x46\x38\x6b\x4b','\x57\x36\x58\x42\x79\x6d\x6b\x53\x57\x37\x31\x53','\x6b\x77\x2f\x64\x4e\x53\x6f\x52\x68\x4a\x39\x31\x57\x34\x30','\x44\x32\x4e\x64\x4a\x53\x6f\x4e\x79\x48\x6c\x63\x4d\x38\x6f\x31','\x57\x34\x6e\x31\x57\x51\x70\x63\x4a\x4e\x42\x63\x56\x47\x64\x64\x48\x38\x6f\x74\x69\x48\x38\x54','\x7a\x68\x38\x4b\x77\x57\x65\x65\x42\x71','\x57\x36\x6e\x70\x45\x48\x57','\x57\x37\x71\x5a\x57\x51\x79','\x57\x34\x35\x61\x64\x74\x76\x50\x68\x6d\x6f\x37\x62\x71','\x45\x65\x66\x68\x46\x31\x30','\x57\x37\x46\x63\x4f\x33\x4b\x52\x57\x35\x53','\x57\x51\x46\x63\x49\x38\x6b\x6c\x77\x47','\x57\x52\x69\x75\x42\x57','\x57\x34\x6e\x6c\x57\x36\x79','\x72\x53\x6b\x52\x57\x52\x34\x79\x57\x52\x4f\x34\x57\x50\x71','\x57\x4f\x61\x4b\x57\x36\x4e\x64\x4c\x49\x37\x64\x52\x72\x61','\x57\x50\x5a\x64\x53\x53\x6f\x61\x45\x6d\x6b\x6a\x57\x36\x34','\x66\x4c\x7a\x6a\x57\x50\x69\x2f','\x6b\x38\x6f\x36\x57\x4f\x54\x71\x6e\x77\x37\x63\x53\x57\x6d','\x46\x53\x6f\x57\x57\x37\x71','\x68\x6d\x6b\x56\x78\x47\x37\x64\x4e\x43\x6f\x31\x57\x37\x39\x4f\x68\x43\x6b\x6f\x6f\x6d\x6b\x5a','\x67\x43\x6f\x34\x71\x6d\x6f\x45\x6a\x5a\x54\x6a\x46\x71','\x46\x43\x6b\x30\x57\x34\x5a\x64\x49\x63\x7a\x42','\x65\x43\x6f\x4f\x43\x53\x6f\x45\x6a\x4a\x57','\x61\x4d\x75\x69\x57\x52\x64\x64\x47\x6d\x6b\x4c\x57\x36\x78\x64\x51\x71','\x57\x34\x4c\x63\x75\x72\x76\x56\x57\x36\x38\x4a\x72\x71','\x57\x52\x74\x64\x53\x53\x6f\x4f\x6a\x43\x6f\x4a\x6c\x6d\x6f\x5a\x57\x51\x6a\x73\x57\x36\x4a\x63\x47\x77\x68\x63\x48\x61','\x76\x38\x6b\x50\x57\x52\x6d\x44\x57\x52\x4f\x33','\x57\x37\x65\x59\x57\x52\x62\x58\x57\x51\x6c\x63\x4d\x68\x4b\x66','\x57\x4f\x2f\x64\x54\x6d\x6f\x44\x71\x53\x6b\x75\x57\x34\x4c\x51\x57\x37\x43','\x57\x50\x42\x63\x50\x5a\x37\x64\x54\x73\x74\x63\x53\x71','\x7a\x75\x37\x64\x4f\x38\x6f\x54\x7a\x57','\x57\x51\x53\x72\x57\x51\x68\x63\x52\x4b\x69\x71','\x57\x4f\x64\x64\x52\x65\x47','\x57\x35\x48\x59\x76\x48\x76\x31\x57\x35\x4b\x35\x74\x71','\x70\x53\x6f\x36\x57\x50\x4c\x48\x6c\x4d\x42\x63\x55\x61','\x74\x6d\x6b\x4c\x57\x51\x74\x63\x56\x38\x6f\x68\x57\x34\x75\x6e','\x57\x35\x46\x64\x4f\x43\x6f\x6d\x79\x53\x6b\x33\x57\x34\x4c\x64','\x57\x34\x74\x63\x4d\x57\x35\x37\x75\x38\x6f\x43\x57\x52\x74\x63\x50\x61','\x72\x43\x6f\x4d\x63\x4e\x74\x63\x51\x53\x6b\x43','\x57\x50\x39\x39\x62\x57\x79','\x75\x67\x38\x39\x79\x47\x4b\x42\x43\x71','\x57\x37\x6a\x6c\x79\x6d\x6b\x75\x57\x36\x62\x47','\x57\x34\x37\x63\x4f\x53\x6f\x53\x6f\x31\x34\x50','\x57\x37\x57\x4b\x57\x4f\x72\x58\x57\x52\x52\x63\x4b\x68\x4b\x6a','\x72\x78\x69\x6d\x57\x52\x37\x64\x4a\x43\x6b\x2b','\x79\x4e\x34\x30','\x6d\x32\x72\x38\x57\x50\x38\x39\x57\x35\x38','\x57\x34\x68\x63\x47\x71\x39\x37\x72\x6d\x6f\x33','\x57\x4f\x4a\x64\x55\x38\x6f\x50\x57\x4f\x53\x49\x45\x57','\x57\x4f\x71\x53\x57\x37\x33\x64\x4e\x5a\x6c\x64\x55\x62\x78\x64\x52\x71','\x6c\x6d\x6f\x53\x57\x4f\x47','\x57\x4f\x2f\x64\x53\x43\x6f\x6c\x71\x57','\x57\x37\x53\x34\x57\x52\x75','\x57\x34\x5a\x63\x51\x43\x6f\x35\x6f\x31\x38\x79\x57\x34\x56\x64\x54\x71','\x57\x4f\x46\x63\x56\x73\x70\x64\x4e\x48\x6c\x63\x56\x64\x7a\x69','\x57\x36\x4e\x63\x53\x38\x6f\x56\x6e\x32\x53','\x57\x34\x31\x6d\x76\x57\x44\x4d','\x57\x50\x70\x64\x56\x30\x64\x63\x51\x6d\x6b\x66\x44\x43\x6b\x63\x70\x38\x6f\x46\x70\x61\x6d\x78\x61\x47','\x77\x4e\x65\x73\x57\x52\x6d','\x43\x77\x70\x64\x48\x6d\x6f\x4d','\x57\x51\x37\x64\x51\x63\x54\x74\x57\x50\x66\x71\x57\x36\x6c\x64\x56\x59\x33\x64\x48\x32\x33\x64\x4b\x33\x57','\x73\x32\x79\x64\x57\x52\x38','\x57\x35\x4b\x59\x57\x51\x43\x38\x57\x35\x56\x63\x56\x57','\x7a\x4e\x52\x64\x52\x77\x34\x5a','\x61\x67\x58\x55\x57\x51\x39\x31','\x57\x37\x31\x42\x79\x58\x79\x69\x57\x36\x47','\x57\x35\x74\x63\x53\x76\x61'];_0x42c6=function(){return _0x24e863;};return _0x42c6();}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(_0x2fe000){const _0x33a360=_0x2e5d;return _0x2fe000!==null&&typeof _0x2fe000===_0x33a360(0x159,'\x59\x6b\x6a\x4f')&&!Array[_0x33a360(0x150,'\x37\x31\x63\x75')](_0x2fe000)?_0x2fe000:undefined;}function _0x2e5d(_0x10e2f7,_0x57bbb1){_0x10e2f7=_0x10e2f7-(-0x1*0x23ad+-0x1*-0x2ab+-0x21a6*-0x1);const _0x357faa=_0x42c6();let _0x2b4235=_0x357faa[_0x10e2f7];if(_0x2e5d['\x51\x50\x45\x66\x77\x42']===undefined){var _0x178887=function(_0x2b4e90){const _0x341906='\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 _0x1117cb='',_0x4dc402='';for(let _0x2f3bc4=-0x9bc+-0x1*0x123b+0x1bf7*0x1,_0x1476f7,_0x5962a7,_0x4cd474=0x174e+-0x7be+-0x1*0xf90;_0x5962a7=_0x2b4e90['\x63\x68\x61\x72\x41\x74'](_0x4cd474++);~_0x5962a7&&(_0x1476f7=_0x2f3bc4%(-0x1*-0x419+0x20f3+-0x2508)?_0x1476f7*(-0x25bf+-0x764+0x2d63)+_0x5962a7:_0x5962a7,_0x2f3bc4++%(0x14cb+0x1*-0x1c+0x14ab*-0x1))?_0x1117cb+=String['\x66\x72\x6f\x6d\x43\x68\x61\x72\x43\x6f\x64\x65'](-0x8*0x328+-0x1d3b+0x377a&_0x1476f7>>(-(-0xbf6+-0x2553+0x1*0x314b)*_0x2f3bc4&0x1e31+-0x14a3+-0x988)):-0x14ce+0x1c72+-0x7a4){_0x5962a7=_0x341906['\x69\x6e\x64\x65\x78\x4f\x66'](_0x5962a7);}for(let _0x1fb8a2=-0x2*-0x1f+0x1*0x1bca+-0x1c08,_0x17259b=_0x1117cb['\x6c\x65\x6e\x67\x74\x68'];_0x1fb8a2<_0x17259b;_0x1fb8a2++){_0x4dc402+='\x25'+('\x30\x30'+_0x1117cb['\x63\x68\x61\x72\x43\x6f\x64\x65\x41\x74'](_0x1fb8a2)['\x74\x6f\x53\x74\x72\x69\x6e\x67'](-0x1df7+-0x5*-0x42d+0x926))['\x73\x6c\x69\x63\x65'](-(0x1e7a+0x6*-0x265+-0x101a));}return decodeURIComponent(_0x4dc402);};const _0x181e5d=function(_0x1a6ebb,_0x400249){let _0x225080=[],_0x246524=-0x5b6+-0x10*-0xd0+-0x74a,_0x2c28bf,_0x20d0e4='';_0x1a6ebb=_0x178887(_0x1a6ebb);let _0x11ff92;for(_0x11ff92=0x2443+-0x152d+-0xf16*0x1;_0x11ff92<0x26e5+0x230e+0x9*-0x81b;_0x11ff92++){_0x225080[_0x11ff92]=_0x11ff92;}for(_0x11ff92=-0x4*0x8bf+-0x2f9*0xc+0xe*0x50c;_0x11ff92<0x1eb5+0x2540+-0x42f5;_0x11ff92++){_0x246524=(_0x246524+_0x225080[_0x11ff92]+_0x400249['\x63\x68\x61\x72\x43\x6f\x64\x65\x41\x74'](_0x11ff92%_0x400249['\x6c\x65\x6e\x67\x74\x68']))%(-0x2064*0x1+0x19c8+-0x3ce*-0x2),_0x2c28bf=_0x225080[_0x11ff92],_0x225080[_0x11ff92]=_0x225080[_0x246524],_0x225080[_0x246524]=_0x2c28bf;}_0x11ff92=0xe00+-0x160c+0x80c,_0x246524=-0x1*0xb23+-0x1*-0x1184+-0x661;for(let _0x336e32=0x1*-0x23c5+0x1*-0xec3+-0x9a*-0x54;_0x336e32<_0x1a6ebb['\x6c\x65\x6e\x67\x74\x68'];_0x336e32++){_0x11ff92=(_0x11ff92+(-0x209d+0x3*-0xcab+0x469f))%(-0x5b5*0x3+-0x2*-0x134e+0x419*-0x5),_0x246524=(_0x246524+_0x225080[_0x11ff92])%(0x295*-0x4+-0x16a*-0x4+0x5ac),_0x2c28bf=_0x225080[_0x11ff92],_0x225080[_0x11ff92]=_0x225080[_0x246524],_0x225080[_0x246524]=_0x2c28bf,_0x20d0e4+=String['\x66\x72\x6f\x6d\x43\x68\x61\x72\x43\x6f\x64\x65'](_0x1a6ebb['\x63\x68\x61\x72\x43\x6f\x64\x65\x41\x74'](_0x336e32)^_0x225080[(_0x225080[_0x11ff92]+_0x225080[_0x246524])%(-0x1727*-0x1+-0x3*0x6d3+-0x1ae)]);}return _0x20d0e4;};_0x2e5d['\x73\x4e\x70\x6f\x63\x42']=_0x181e5d,_0x2e5d['\x77\x63\x51\x50\x45\x51']={},_0x2e5d['\x51\x50\x45\x66\x77\x42']=!![];}const _0x2a2274=_0x357faa[0xf8a+0x1416+-0x23a0],_0x3eb06f=_0x10e2f7+_0x2a2274,_0xcaaf9b=_0x2e5d['\x77\x63\x51\x50\x45\x51'][_0x3eb06f];return!_0xcaaf9b?(_0x2e5d['\x44\x76\x50\x4e\x79\x48']===undefined&&(_0x2e5d['\x44\x76\x50\x4e\x79\x48']=!![]),_0x2b4235=_0x2e5d['\x73\x4e\x70\x6f\x63\x42'](_0x2b4235,_0x57bbb1),_0x2e5d['\x77\x63\x51\x50\x45\x51'][_0x3eb06f]=_0x2b4235):_0x2b4235=_0xcaaf9b,_0x2b4235;}function nonEmptyString(_0x4105d8){const _0x2be948=_0x2e5d;return typeof _0x4105d8===_0x2be948(0x15b,'\x44\x4e\x2a\x72')&&_0x4105d8['\x6c\x65\x6e\x67\x74\x68']>0x1979+0x1*0x1471+-0x2dea?_0x4105d8:undefined;}function positiveNumber(_0x2f1bf7,_0x137efe=![]){const _0x65a155=_0x2e5d,_0x1d045f=typeof _0x2f1bf7===_0x65a155(0xb2,'\x79\x56\x68\x46')?_0x2f1bf7:_0x137efe?Number(_0x2f1bf7):Number[_0x65a155(0xb3,'\x46\x57\x29\x42')];return Number[_0x65a155(0x141,'\x79\x5e\x77\x67')](_0x1d045f)&&_0x1d045f>0x65*0x35+0x23a4+-0x388d?_0x1d045f:undefined;}function nestedAssetRecord(_0x2b04d4){const _0x3625d6=_0x2e5d,_0x2d8362=objectRecord(_0x2b04d4);return{..._0x2d8362?{'\x64\x69\x72\x65\x63\x74':_0x2d8362}:{},...objectRecord(_0x2d8362?.[_0x3625d6(0x13a,'\x26\x67\x79\x77')])?{'\x70\x61\x79\x6c\x6f\x61\x64':objectRecord(_0x2d8362?.[_0x3625d6(0xf2,'\x4d\x69\x61\x67')])}:{}};}export function assetDerivationTokenCost(_0x541eb6){const _0xfa5a61=_0x2e5d,_0xf2ac6=nestedAssetRecord(_0x541eb6);for(const _0xf6f3f5 of[_0xf2ac6[_0xfa5a61(0xe9,'\x57\x23\x64\x32')],_0xf2ac6[_0xfa5a61(0x113,'\x36\x53\x24\x63')]]){if(_0xfa5a61(0x14b,'\x4e\x37\x74\x43')===_0xfa5a61(0xc8,'\x50\x34\x44\x64'))_0x2af7c1[_0xfa5a61(0xc6,'\x26\x36\x77\x52')]+=0x3ce*0x1+0x2424+-0x27f1,_0x371c3a+=-0x93a+0xcb6+0x1*-0x37b;else{const _0x11288e=objectRecord(_0xf6f3f5?.[_0xfa5a61(0xbc,'\x46\x57\x29\x42')+_0xfa5a61(0xd8,'\x48\x4b\x28\x57')+'\x73']),_0x5daa53=positiveNumber(_0x11288e?.[_0xfa5a61(0x145,'\x78\x30\x47\x4c')+_0xfa5a61(0xcc,'\x57\x23\x64\x32')]);if(_0x5daa53!==undefined)return _0x5daa53;}}return undefined;}function assetBlastRadiusLines(_0x2d3288){const _0x4995e9=_0x2e5d,_0x1f00ab=nestedAssetRecord(_0x2d3288);for(const _0x525652 of[_0x1f00ab['\x64\x69\x72\x65\x63\x74'],_0x1f00ab[_0x4995e9(0x13b,'\x7a\x49\x4d\x24')]]){if(_0x4995e9(0x116,'\x44\x6f\x32\x4b')==='\x4c\x79\x67\x51\x67'){const _0x2ebce3=objectRecord(_0x525652?.[_0x4995e9(0x11c,'\x4e\x37\x74\x43')+_0x4995e9(0x120,'\x68\x5e\x74\x5d')]),_0x36dcae=positiveNumber(_0x2ebce3?.[_0x4995e9(0x126,'\x44\x4e\x2a\x72')]);if(_0x36dcae!==undefined)return _0x36dcae;}else{const _0x3bb7a7=typeof _0x5eaf93===_0x4995e9(0x118,'\x71\x39\x61\x53')?_0x10defd:_0xc0300f?_0x3d005a(_0x2357ba):_0x21c8cb[_0x4995e9(0xc9,'\x36\x53\x24\x63')];return _0xc32aaf[_0x4995e9(0x11d,'\x78\x72\x62\x59')](_0x3bb7a7)&&_0x3bb7a7>-0x181a*-0x1+0x1a6*-0x10+0x246?_0x3bb7a7:_0x21172e;}}return undefined;}export function reuseSavingsForAsset(_0x345339,_0x40929c,_0x18669b){const _0x522f5a=_0x2e5d,_0x402c9e=assetDerivationTokenCost(_0x345339),_0x535366=_0x402c9e===undefined?positiveNumber(_0x18669b):undefined,_0x594cef=_0x402c9e??_0x535366;if(_0x594cef!==undefined)return{'\x74\x6f\x6b\x65\x6e\x73\x5f\x73\x61\x76\x65\x64':Math[_0x522f5a(0xb4,'\x44\x6f\x32\x4b')](_0x40929c===_0x522f5a(0x13e,'\x57\x23\x64\x32')+'\x65'?_0x594cef*REUSE_ESTIMATOR['\x72\x65\x66\x65\x72\x65\x6e\x63'+_0x522f5a(0x14e,'\x78\x30\x47\x4c')+'\x5f\x66\x72\x61\x63\x74\x69\x6f'+'\x6e']:_0x594cef),'\x74\x6f\x6b\x65\x6e\x73\x5f\x73\x61\x76\x65\x64\x5f\x62\x61\x73\x69\x73':_0x402c9e!==undefined?_0x522f5a(0x123,'\x50\x34\x44\x64'):_0x522f5a(0xa7,'\x32\x58\x21\x39')+'\x65\x78'};const _0x38177b=reuseEstimate(assetBlastRadiusLines(_0x345339),_0x40929c);return{'\x74\x6f\x6b\x65\x6e\x73\x5f\x73\x61\x76\x65\x64':_0x38177b[_0x522f5a(0x12f,'\x4e\x37\x74\x43')+_0x522f5a(0xae,'\x59\x6b\x6a\x4f')],'\x74\x6f\x6b\x65\x6e\x73\x5f\x73\x61\x76\x65\x64\x5f\x62\x61\x73\x69\x73':_0x38177b[_0x522f5a(0x135,'\x6b\x71\x26\x5e')]};}function isAssetCallRecord(_0x3283fc){const _0x20caa8=_0x2e5d,_0xe65f04=objectRecord(_0x3283fc);return _0xe65f04!==undefined&&typeof _0xe65f04['\x74\x69\x6d\x65\x73\x74\x61\x6d'+'\x70']===_0x20caa8(0x12a,'\x57\x42\x6e\x6e')&&typeof _0xe65f04[_0x20caa8(0x157,'\x2a\x76\x46\x68')]==='\x73\x74\x72\x69\x6e\x67'&&_0xe65f04[_0x20caa8(0xcd,'\x6b\x71\x26\x5e')][_0x20caa8(0x12d,'\x70\x47\x69\x58')]>-0xcfd+0x1d66+-0x1*0x1069;}export class AssetCallLog{[_0x182c10(0xbe,'\x68\x5e\x74\x5d')];[_0x182c10(0x13f,'\x2a\x50\x46\x5a')];constructor(_0x87335,_0x2f5836=()=>new Date()){const _0x43d23a=_0x182c10;this[_0x43d23a(0xd6,'\x44\x4e\x2a\x72')]=_0x87335,this[_0x43d23a(0xa5,'\x6e\x4f\x26\x6c')]=_0x2f5836;}[_0x182c10(0x142,'\x24\x34\x43\x6f')](_0x5d87cf){const _0x157430=_0x182c10;if(!_0x5d87cf||typeof _0x5d87cf!==_0x157430(0xd9,'\x41\x77\x39\x28'))return;try{if(_0x157430(0x112,'\x44\x38\x74\x46')!=='\x59\x43\x54\x66\x72'){mkdirSync(dirname(this[_0x157430(0x132,'\x79\x56\x68\x46')]),{'\x72\x65\x63\x75\x72\x73\x69\x76\x65':!![]});const _0x30a5e0={'\x74\x69\x6d\x65\x73\x74\x61\x6d\x70':this[_0x157430(0x14d,'\x58\x5b\x65\x54')]()[_0x157430(0xd5,'\x26\x67\x79\x77')+_0x157430(0x138,'\x74\x33\x54\x75')](),..._0x5d87cf};appendFileSync(this[_0x157430(0xf8,'\x26\x36\x77\x52')],JSON[_0x157430(0x11b,'\x37\x31\x63\x75')+'\x79'](_0x30a5e0)+'\x0a',_0x157430(0x127,'\x40\x40\x44\x52'));}else _0x583c11={'\x61\x73\x73\x65\x74\x5f\x69\x64':_0x1ae8d6,'\x73\x6f\x75\x72\x63\x65\x5f\x6e\x6f\x64\x65\x5f\x69\x64':_0x398832(_0x224ca2['\x73\x6f\x75\x72\x63\x65\x5f\x6e'+'\x6f\x64\x65\x5f\x69\x64'])??null,'\x63\x68\x61\x69\x6e\x5f\x69\x64':_0x52a263(_0x5eae21[_0x157430(0xfc,'\x48\x4b\x28\x57')])??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},_0x2ca3b3['\x73\x65\x74'](_0x1f0b38,_0x57f570);}catch{}}[_0x182c10(0xac,'\x4e\x37\x74\x43')](_0x179cfc={}){const _0x1ce8c3=_0x182c10;if(!existsSync(this[_0x1ce8c3(0x154,'\x40\x40\x44\x52')]))return[];let _0x4b44a3=[];try{for(const _0x190db0 of readFileSync(this[_0x1ce8c3(0xab,'\x59\x6b\x6a\x4f')],_0x1ce8c3(0xba,'\x70\x57\x30\x35'))[_0x1ce8c3(0x12c,'\x71\x39\x61\x53')]('\x0a')){if(_0x1ce8c3(0xa8,'\x2a\x76\x46\x68')!==_0x1ce8c3(0xb1,'\x26\x36\x77\x52')){if(!_0x190db0)continue;try{const _0x459c24=JSON[_0x1ce8c3(0xa9,'\x78\x30\x47\x4c')](_0x190db0);if(isAssetCallRecord(_0x459c24))_0x4b44a3[_0x1ce8c3(0xe1,'\x46\x57\x29\x42')](_0x459c24);}catch{}}else{const _0x4f4da9=new _0x454ae0(_0x2a3dc5[_0x1ce8c3(0xfa,'\x57\x42\x6e\x6e')])[_0x1ce8c3(0x14f,'\x57\x23\x64\x32')]();if(_0xad9a55[_0x1ce8c3(0x10b,'\x57\x6e\x59\x41')](_0x4f4da9))_0x1883a8=_0x277da1[_0x1ce8c3(0xc3,'\x44\x4e\x2a\x72')](_0x295689=>new _0x23a2ff(_0x295689[_0x1ce8c3(0xbf,'\x41\x77\x39\x28')+'\x70'])['\x67\x65\x74\x54\x69\x6d\x65']()>=_0x4f4da9);}}}catch{if(_0x1ce8c3(0x13d,'\x44\x4e\x2a\x72')===_0x1ce8c3(0x124,'\x36\x6b\x24\x6d'))return[];else _0x571953['\x74\x6f\x6b\x65\x6e\x73\x5f\x73'+_0x1ce8c3(0x10c,'\x43\x54\x49\x55')]+=_0x2e143b,_0x16fb37+=_0x1e2627;}if(_0x179cfc[_0x1ce8c3(0x111,'\x70\x57\x30\x35')]){if(_0x1ce8c3(0xf4,'\x39\x45\x4b\x6b')===_0x1ce8c3(0x115,'\x39\x45\x4b\x6b')){const _0x4da86a=_0x519ab7(_0x4bb15c);for(const _0x3bd371 of[_0x4da86a[_0x1ce8c3(0x15c,'\x57\x42\x6e\x6e')],_0x4da86a[_0x1ce8c3(0x13a,'\x26\x67\x79\x77')]]){const _0x31da05=_0x5200cf(_0x3bd371?.[_0x1ce8c3(0x148,'\x6e\x4f\x26\x6c')+_0x1ce8c3(0x128,'\x44\x38\x74\x46')+'\x73']),_0x5f57f0=_0x1f6eba(_0x31da05?.['\x74\x6f\x74\x61\x6c\x5f\x74\x6f'+_0x1ce8c3(0x129,'\x2a\x76\x46\x68')]);if(_0x5f57f0!==_0x21ca20)return _0x5f57f0;}return _0x527cf6;}else{const _0x589c3a=new Date(_0x179cfc[_0x1ce8c3(0xb0,'\x50\x34\x44\x64')])[_0x1ce8c3(0x131,'\x39\x45\x4b\x6b')]();if(Number[_0x1ce8c3(0xf3,'\x4e\x37\x74\x43')](_0x589c3a))_0x4b44a3=_0x4b44a3[_0x1ce8c3(0xe5,'\x70\x5e\x7a\x39')](_0x180f44=>new Date(_0x180f44[_0x1ce8c3(0x15e,'\x7a\x49\x4d\x24')+'\x70'])[_0x1ce8c3(0xce,'\x74\x33\x54\x75')]()>=_0x589c3a);}}if(_0x179cfc[_0x1ce8c3(0xc0,'\x59\x6b\x6a\x4f')])_0x4b44a3=_0x4b44a3[_0x1ce8c3(0xed,'\x74\x33\x54\x75')](_0x48c8f0=>_0x48c8f0[_0x1ce8c3(0xd4,'\x40\x40\x44\x52')]===_0x179cfc[_0x1ce8c3(0xc0,'\x59\x6b\x6a\x4f')]);if(_0x179cfc[_0x1ce8c3(0x143,'\x79\x5e\x77\x67')])_0x4b44a3=_0x4b44a3[_0x1ce8c3(0x153,'\x44\x38\x74\x46')](_0x54690b=>_0x54690b[_0x1ce8c3(0xd0,'\x4f\x31\x35\x31')]===_0x179cfc[_0x1ce8c3(0x106,'\x5b\x42\x30\x7a')]);if(_0x179cfc[_0x1ce8c3(0xc5,'\x79\x5e\x77\x67')]&&Number[_0x1ce8c3(0x158,'\x6e\x4f\x26\x6c')](_0x179cfc['\x6c\x61\x73\x74'])&&_0x179cfc[_0x1ce8c3(0x105,'\x58\x5b\x65\x54')]>0x3*0x7c3+-0x8cb*-0x4+-0x3a75)_0x4b44a3=_0x4b44a3['\x73\x6c\x69\x63\x65'](-_0x179cfc[_0x1ce8c3(0xea,'\x44\x6f\x32\x4b')]);return _0x4b44a3;}[_0x182c10(0x11a,'\x44\x6f\x32\x4b')+'\x65'](_0x59fd70={}){const _0x349a5c=_0x182c10,_0x92ba0e=this[_0x349a5c(0xe7,'\x57\x42\x6e\x6e')](_0x59fd70),_0x5b5ed7={},_0x454f79=new Set(),_0xd623ab=new Set();for(const _0x1c00be of _0x92ba0e){if(_0x349a5c(0x136,'\x46\x57\x29\x42')!==_0x349a5c(0xd3,'\x24\x34\x43\x6f')){const _0x513dee=this[_0x349a5c(0xb9,'\x41\x77\x39\x28')](_0x55637e),_0x5791e7={},_0x42c04b=new _0x7bed9c(),_0x3f51f4=new _0x362cc9();for(const _0x56849a of _0x513dee){_0x5791e7[_0x56849a[_0x349a5c(0x117,'\x78\x72\x62\x59')]]=(_0x5791e7[_0x56849a[_0x349a5c(0xd2,'\x49\x21\x51\x42')]]??0x1*0x9b7+0x24a0+-0x2e57*0x1)+(0x4f2*-0x5+0x221c+-0x961);if(_0x56849a[_0x349a5c(0xcf,'\x48\x4b\x28\x57')])_0x42c04b[_0x349a5c(0x15a,'\x39\x45\x4b\x6b')](_0x56849a[_0x349a5c(0x12e,'\x4b\x67\x76\x53')]);if(_0x56849a[_0x349a5c(0x103,'\x71\x39\x61\x53')])_0x3f51f4[_0x349a5c(0x133,'\x6e\x4f\x26\x6c')](_0x56849a[_0x349a5c(0x101,'\x36\x53\x24\x63')]);}return{'\x74\x6f\x74\x61\x6c\x5f\x65\x6e\x74\x72\x69\x65\x73':_0x513dee[_0x349a5c(0x14c,'\x41\x77\x39\x28')],'\x75\x6e\x69\x71\x75\x65\x5f\x61\x73\x73\x65\x74\x73':_0x42c04b[_0x349a5c(0xe3,'\x2a\x76\x46\x68')],'\x75\x6e\x69\x71\x75\x65\x5f\x72\x75\x6e\x73':_0x3f51f4[_0x349a5c(0x137,'\x68\x5e\x74\x5d')],'\x62\x79\x5f\x61\x63\x74\x69\x6f\x6e':_0x5791e7,'\x65\x6e\x74\x72\x69\x65\x73':_0x513dee};}else{_0x5b5ed7[_0x1c00be[_0x349a5c(0xef,'\x4d\x69\x61\x67')]]=(_0x5b5ed7[_0x1c00be[_0x349a5c(0xdd,'\x31\x41\x55\x56')]]??-0x1c14+-0x64*-0x33+0x9*0xe8)+(0x1fde+0xdd0+-0x2dad);if(_0x1c00be[_0x349a5c(0xcf,'\x48\x4b\x28\x57')])_0x454f79[_0x349a5c(0xe6,'\x26\x36\x77\x52')](_0x1c00be[_0x349a5c(0xb5,'\x70\x47\x69\x58')]);if(_0x1c00be[_0x349a5c(0x13c,'\x5b\x42\x30\x7a')])_0xd623ab['\x61\x64\x64'](_0x1c00be[_0x349a5c(0x156,'\x70\x47\x69\x58')]);}}return{'\x74\x6f\x74\x61\x6c\x5f\x65\x6e\x74\x72\x69\x65\x73':_0x92ba0e[_0x349a5c(0xf6,'\x6b\x71\x26\x5e')],'\x75\x6e\x69\x71\x75\x65\x5f\x61\x73\x73\x65\x74\x73':_0x454f79[_0x349a5c(0x110,'\x57\x42\x6e\x6e')],'\x75\x6e\x69\x71\x75\x65\x5f\x72\x75\x6e\x73':_0xd623ab[_0x349a5c(0xeb,'\x78\x30\x47\x4c')],'\x62\x79\x5f\x61\x63\x74\x69\x6f\x6e':_0x5b5ed7,'\x65\x6e\x74\x72\x69\x65\x73':_0x92ba0e};}[_0x182c10(0x119,'\x6b\x71\x26\x5e')+_0x182c10(0xf7,'\x50\x34\x44\x64')+_0x182c10(0x155,'\x39\x45\x4b\x6b')](_0x68b7c6={}){const _0x200dc1=_0x182c10,_0x3e8259=this['\x72\x65\x61\x64'](_0x68b7c6)[_0x200dc1(0xe0,'\x44\x6f\x32\x4b')](_0x4f1add=>_0x4f1add[_0x200dc1(0xaf,'\x70\x57\x30\x35')]===_0x200dc1(0x100,'\x79\x56\x68\x46')+_0x200dc1(0x15f,'\x57\x23\x64\x32')||_0x4f1add['\x61\x63\x74\x69\x6f\x6e']===_0x200dc1(0xe4,'\x36\x6b\x24\x6d')+_0x200dc1(0xb6,'\x48\x4b\x28\x57')),_0x57f5a4=new Map();let _0x127eb5=0x1ee5+-0x2593*0x1+0x6ae,_0x32aa5c=0x1*0x925+-0x189*-0xb+-0xe*0x1dc,_0x4a41b6=0x44f*0x1+0xa1e+-0xe6d;for(const _0x4776e4 of _0x3e8259){const _0x5692d0=nonEmptyString(_0x4776e4[_0x200dc1(0xb8,'\x6e\x4f\x26\x6c')])??_0x200dc1(0x144,'\x59\x6b\x6a\x4f')+'\x29';let _0x108113=_0x57f5a4['\x67\x65\x74'](_0x5692d0);!_0x108113&&(_0x108113={'\x61\x73\x73\x65\x74\x5f\x69\x64':_0x5692d0,'\x73\x6f\x75\x72\x63\x65\x5f\x6e\x6f\x64\x65\x5f\x69\x64':nonEmptyString(_0x4776e4[_0x200dc1(0xca,'\x57\x42\x6e\x6e')+_0x200dc1(0xfd,'\x26\x36\x77\x52')])??null,'\x63\x68\x61\x69\x6e\x5f\x69\x64':nonEmptyString(_0x4776e4[_0x200dc1(0x11f,'\x7a\x31\x70\x75')])??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},_0x57f5a4[_0x200dc1(0xdc,'\x49\x21\x51\x42')](_0x5692d0,_0x108113));if(_0x4776e4[_0x200dc1(0x147,'\x26\x67\x79\x77')]==='\x61\x73\x73\x65\x74\x5f\x72\x65'+_0x200dc1(0x139,'\x47\x57\x33\x21')){if(_0x200dc1(0xc7,'\x46\x57\x29\x42')==='\x42\x68\x43\x4c\x6e'){_0x1b1e26[_0xea6d7b[_0x200dc1(0xc1,'\x4b\x67\x76\x53')]]=(_0x486a75[_0x510078[_0x200dc1(0xaf,'\x70\x57\x30\x35')]]??-0x2*-0x3c8+0x2*-0x18+-0x760)+(0x270d+-0x2156+0x1*-0x5b6);if(_0x381528[_0x200dc1(0x152,'\x57\x42\x6e\x6e')])_0x48fc58[_0x200dc1(0xf0,'\x72\x5d\x4d\x59')](_0x57c207[_0x200dc1(0x12b,'\x68\x5e\x74\x5d')]);if(_0x46a0a3[_0x200dc1(0x15d,'\x43\x54\x49\x55')])_0x440146[_0x200dc1(0xbb,'\x78\x30\x47\x4c')](_0x10847d[_0x200dc1(0x14a,'\x32\x58\x21\x39')]);}else _0x108113[_0x200dc1(0xdb,'\x57\x42\x6e\x6e')]+=-0x9c5*-0x1+0xf44+-0x1908,_0x32aa5c+=-0xd2c+0xaf0+0x23d;}else _0x108113['\x72\x65\x66\x65\x72\x65\x6e\x63'+'\x65']+=-0x20a2+0x14*-0x122+0x374b,_0x4a41b6+=0x16*0x133+0x1*0x85d+-0x22be;const _0x4f080d=positiveNumber(_0x4776e4['\x74\x6f\x6b\x65\x6e\x73\x5f\x73'+_0x200dc1(0x104,'\x44\x4e\x2a\x72')],!![]);_0x4f080d!==undefined&&(_0x108113[_0x200dc1(0x122,'\x40\x40\x44\x52')+_0x200dc1(0xa4,'\x5b\x42\x30\x7a')]+=_0x4f080d,_0x127eb5+=_0x4f080d),_0x108113[_0x200dc1(0xf1,'\x6e\x4f\x26\x6c')+_0x200dc1(0xbd,'\x39\x24\x58\x5e')]??=nonEmptyString(_0x4776e4[_0x200dc1(0xdf,'\x36\x6b\x24\x6d')+_0x200dc1(0x10a,'\x48\x4b\x28\x57')])??null,_0x108113[_0x200dc1(0xa6,'\x2a\x76\x46\x68')]??=nonEmptyString(_0x4776e4[_0x200dc1(0xc2,'\x31\x41\x55\x56')])??null;}const _0x357608=[..._0x57f5a4[_0x200dc1(0xde,'\x79\x56\x68\x46')]()][_0x200dc1(0xd1,'\x71\x39\x61\x53')]((_0x729839,_0x47f34b)=>_0x47f34b[_0x200dc1(0xf5,'\x48\x4b\x28\x57')]+_0x47f34b[_0x200dc1(0x10d,'\x48\x4b\x28\x57')+'\x65']-(_0x729839[_0x200dc1(0xf5,'\x48\x4b\x28\x57')]+_0x729839['\x72\x65\x66\x65\x72\x65\x6e\x63'+'\x65']));return{'\x74\x6f\x74\x61\x6c\x5f\x72\x65\x75\x73\x65':_0x32aa5c,'\x74\x6f\x74\x61\x6c\x5f\x72\x65\x66\x65\x72\x65\x6e\x63\x65':_0x4a41b6,'\x74\x6f\x74\x61\x6c\x5f\x74\x6f\x6b\x65\x6e\x73\x5f\x73\x61\x76\x65\x64':_0x127eb5,'\x62\x79\x5f\x61\x73\x73\x65\x74':_0x357608};}[_0x182c10(0x149,'\x5b\x42\x30\x7a')+'\x74\x49\x6e\x64\x65\x78'](_0x44a7ab={}){const _0x334b1e=_0x182c10,_0x3f1a7a=new Map();for(const _0x146332 of this[_0x334b1e(0xfe,'\x6e\x4f\x26\x6c')](_0x44a7ab)){if(_0x146332[_0x334b1e(0xb7,'\x68\x5e\x74\x5d')]!=='\x61\x73\x73\x65\x74\x5f\x70\x75'+_0x334b1e(0x125,'\x47\x57\x33\x21'))continue;const _0x28a6d8=nonEmptyString(_0x146332[_0x334b1e(0xec,'\x37\x31\x63\x75')]),_0x1ad968=positiveNumber(_0x146332[_0x334b1e(0xff,'\x43\x54\x49\x55')+_0x334b1e(0xe2,'\x44\x6f\x32\x4b')],!![]);if(_0x28a6d8&&_0x1ad968!==undefined)_0x3f1a7a[_0x334b1e(0x109,'\x32\x58\x21\x39')](_0x28a6d8,_0x1ad968);}return Object[_0x334b1e(0x134,'\x5b\x57\x34\x68')+_0x334b1e(0xda,'\x43\x54\x49\x55')](_0x3f1a7a);}}
@@ -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 _0x17228f=_0x2c7f;(function(_0x5917ae,_0x3b2124){const _0x346359=_0x2c7f,_0x27d686=_0x5917ae();while(!![]){try{const _0x1b66b9=-parseInt(_0x346359(0x171,'\x65\x47\x56\x40'))/(-0xd21+0xae4+-0xe*-0x29)+parseInt(_0x346359(0x19a,'\x50\x6b\x59\x38'))/(-0x2b5*0x7+-0x284+0x1579)*(parseInt(_0x346359(0x188,'\x4d\x40\x33\x5b'))/(-0x2*0x68e+-0x15c0+0x22df))+-parseInt(_0x346359(0x104,'\x36\x38\x24\x4e'))/(0x2a5*0x1+-0x9d*-0x19+-0x11f6)+parseInt(_0x346359(0xed,'\x41\x4b\x5d\x37'))/(0x3*0x9a7+-0x1c2d+-0xc3)*(parseInt(_0x346359(0x138,'\x30\x29\x52\x39'))/(-0x3b*0x9e+-0x425*0x1+0xd87*0x3))+parseInt(_0x346359(0x158,'\x70\x6a\x51\x21'))/(0x1*-0x1f3+-0x97*0xe+0x28f*0x4)*(-parseInt(_0x346359(0xe8,'\x4d\x40\x33\x5b'))/(-0x7df+-0x654+0xe3b))+-parseInt(_0x346359(0x18a,'\x55\x25\x61\x40'))/(0x414+-0x1bb0+0x17a5)+parseInt(_0x346359(0xf6,'\x36\x38\x24\x4e'))/(-0x1e8c+-0x17b+0x2011);if(_0x1b66b9===_0x3b2124)break;else _0x27d686['push'](_0x27d686['shift']());}catch(_0x4a2477){_0x27d686['push'](_0x27d686['shift']());}}}(_0x4c79,-0xfd*0x3+0x4d442*-0x1+0xbc*0xd4d));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';function _0x4c79(){const _0x341b4e=['\x75\x59\x62\x30\x57\x37\x68\x63\x4b\x61\x5a\x63\x4a\x32\x57','\x68\x6d\x6b\x45\x57\x37\x71\x74\x79\x6d\x6f\x70\x57\x51\x4e\x64\x4b\x4b\x52\x63\x51\x73\x6e\x69','\x72\x48\x71\x77\x79\x4c\x43','\x6e\x33\x43\x63\x6e\x6d\x6f\x79\x57\x52\x53','\x71\x43\x6f\x38\x6f\x6d\x6f\x34\x67\x6d\x6b\x2f\x70\x43\x6f\x76','\x75\x71\x37\x63\x50\x53\x6b\x55','\x6e\x77\x74\x64\x54\x67\x44\x31\x46\x71','\x57\x35\x66\x4f\x57\x37\x44\x73\x57\x50\x56\x63\x54\x47','\x57\x34\x74\x63\x48\x4d\x42\x63\x53\x47','\x57\x34\x54\x51\x57\x37\x31\x59\x57\x51\x68\x63\x52\x6d\x6b\x4d\x71\x61','\x66\x43\x6b\x31\x6d\x6d\x6f\x77\x76\x78\x42\x63\x4e\x53\x6f\x4e','\x68\x43\x6b\x4b\x6a\x53\x6f\x45\x62\x77\x33\x63\x49\x38\x6f\x58','\x57\x51\x47\x55\x6f\x31\x4a\x64\x4f\x43\x6f\x73\x78\x32\x75','\x57\x52\x56\x63\x4a\x59\x6c\x64\x52\x43\x6b\x47\x6d\x38\x6f\x35\x57\x37\x47','\x57\x50\x69\x72\x57\x50\x64\x64\x47\x47\x71','\x57\x35\x37\x63\x48\x4e\x4a\x63\x56\x68\x4b\x45','\x71\x49\x6a\x63','\x73\x74\x5a\x63\x4e\x64\x74\x63\x54\x6d\x6f\x46\x61\x66\x52\x63\x54\x5a\x72\x70\x75\x47','\x72\x73\x47\x7a\x57\x36\x44\x6d\x57\x4f\x68\x64\x56\x74\x61\x55\x68\x30\x70\x63\x51\x53\x6f\x78','\x57\x50\x4c\x54\x57\x50\x71\x78\x6a\x72\x71','\x77\x67\x74\x64\x48\x78\x78\x63\x50\x53\x6b\x42\x6a\x30\x61','\x67\x38\x6b\x6d\x57\x37\x52\x64\x56\x62\x72\x65\x57\x35\x6e\x59','\x76\x47\x70\x63\x54\x38\x6b\x2f\x78\x6d\x6b\x54','\x6f\x31\x30\x37\x57\x51\x34','\x69\x43\x6f\x34\x73\x75\x4b','\x6c\x33\x37\x64\x4f\x33\x6a\x53\x7a\x57\x52\x63\x52\x47','\x72\x53\x6f\x54\x6b\x38\x6f\x48\x62\x6d\x6b\x49','\x78\x43\x6b\x65\x57\x37\x64\x64\x54\x63\x54\x46\x57\x35\x61','\x57\x50\x4f\x6b\x57\x34\x57\x68\x57\x36\x4b\x4a\x57\x51\x71\x46','\x57\x36\x50\x34\x62\x33\x58\x61\x63\x43\x6b\x6e\x57\x52\x39\x5a\x6c\x43\x6f\x75\x57\x36\x30','\x57\x35\x6a\x55\x57\x36\x50\x57\x57\x4f\x56\x63\x4f\x47','\x61\x53\x6b\x41\x57\x37\x64\x64\x51\x72\x31\x30\x57\x35\x6e\x4c','\x57\x52\x4b\x56\x6a\x30\x78\x64\x52\x6d\x6f\x65\x74\x57','\x57\x36\x74\x63\x4f\x43\x6b\x78\x67\x6d\x6f\x73\x57\x51\x6c\x64\x4d\x38\x6f\x56','\x44\x38\x6f\x6d\x57\x37\x2f\x63\x4f\x38\x6f\x2f\x6f\x71\x4f','\x57\x4f\x4a\x63\x53\x38\x6f\x72\x57\x35\x46\x64\x4a\x38\x6f\x79\x6b\x47\x57','\x57\x52\x79\x37\x77\x59\x50\x76\x77\x38\x6b\x61\x57\x4f\x38','\x6f\x57\x68\x64\x4f\x53\x6f\x30','\x73\x31\x38\x42\x71\x6d\x6b\x55\x57\x36\x66\x53','\x57\x50\x56\x64\x4b\x4a\x2f\x64\x50\x71\x7a\x64\x69\x6d\x6f\x78\x57\x52\x56\x63\x49\x58\x47\x39\x44\x47','\x57\x50\x75\x4e\x57\x50\x42\x64\x49\x61','\x71\x58\x75\x73\x7a\x66\x74\x64\x4d\x6d\x6f\x55\x45\x71','\x46\x43\x6f\x66\x57\x36\x76\x71\x57\x51\x46\x63\x47\x53\x6f\x53\x57\x52\x4f','\x57\x50\x4c\x30\x57\x50\x75\x71\x69\x48\x72\x34','\x57\x34\x58\x41\x57\x37\x5a\x63\x4a\x6d\x6f\x57','\x67\x4b\x33\x64\x4a\x71','\x67\x73\x4e\x63\x54\x6d\x6f\x4a\x41\x63\x6a\x32\x78\x61','\x57\x50\x65\x2f\x57\x50\x2f\x64\x47\x71\x43\x66\x57\x50\x4b','\x57\x36\x4c\x54\x7a\x62\x42\x63\x52\x6d\x6b\x2b\x67\x63\x43\x46\x57\x50\x37\x64\x48\x43\x6b\x55\x57\x34\x31\x71','\x7a\x38\x6b\x48\x57\x4f\x47\x79\x46\x4c\x4b\x55\x57\x50\x57','\x57\x52\x44\x47\x57\x51\x31\x6d','\x6d\x78\x6d\x78\x6b\x53\x6f\x49\x57\x52\x50\x68\x57\x35\x57','\x74\x73\x6a\x45\x57\x51\x70\x63\x54\x53\x6b\x38','\x57\x37\x56\x64\x4c\x73\x6c\x64\x52\x43\x6b\x78\x57\x51\x79','\x69\x38\x6f\x5a\x65\x38\x6b\x32\x57\x50\x4b','\x63\x6d\x6b\x4f\x6a\x43\x6f\x45','\x57\x50\x6d\x54\x57\x4f\x4e\x64\x4d\x6d\x6b\x6e\x69\x62\x71\x63','\x57\x52\x6e\x4b\x57\x51\x44\x75\x57\x50\x6c\x64\x4f\x57\x47','\x72\x49\x66\x55\x57\x37\x4b','\x46\x43\x6f\x62\x57\x36\x76\x6b\x57\x52\x52\x63\x4e\x38\x6f\x2f\x57\x51\x4b','\x78\x48\x61\x65\x79\x47','\x66\x65\x6c\x64\x4f\x53\x6f\x35\x68\x38\x6f\x4e\x57\x51\x64\x64\x50\x43\x6b\x53\x76\x6d\x6b\x6c\x57\x52\x52\x63\x50\x57','\x57\x36\x50\x4f\x79\x48\x74\x63\x52\x53\x6b\x34\x67\x76\x4b\x41\x57\x52\x64\x64\x4a\x53\x6b\x76\x57\x36\x34','\x70\x6d\x6f\x39\x78\x30\x2f\x64\x48\x38\x6b\x71\x57\x50\x39\x6c','\x57\x4f\x34\x42\x57\x35\x6d\x6c\x57\x36\x34\x63\x57\x36\x57','\x6f\x38\x6f\x36\x71\x32\x4e\x64\x4b\x53\x6b\x67','\x6d\x6d\x6b\x53\x6b\x71','\x74\x6d\x6b\x34\x57\x51\x50\x33\x65\x47','\x68\x4c\x4b\x6d\x72\x67\x42\x63\x4d\x38\x6b\x71\x77\x71','\x57\x4f\x64\x64\x4c\x53\x6b\x48\x57\x34\x79','\x70\x6d\x6b\x41\x57\x52\x38\x39\x57\x50\x43\x77\x6d\x71','\x57\x36\x7a\x2f\x63\x68\x54\x68\x64\x38\x6b\x4e\x57\x4f\x6a\x34\x62\x53\x6f\x58\x57\x36\x71','\x7a\x43\x6b\x2b\x57\x50\x4f\x75\x7a\x33\x75','\x57\x35\x7a\x69\x57\x35\x54\x50\x57\x52\x43','\x57\x50\x75\x37\x57\x50\x74\x64\x47\x61\x65\x6b\x57\x50\x5a\x63\x49\x57','\x44\x67\x46\x64\x53\x6d\x6b\x33\x67\x73\x52\x64\x4f\x43\x6b\x6e','\x6c\x53\x6f\x53\x57\x37\x4a\x63\x54\x43\x6f\x38\x6a\x64\x4b\x35','\x57\x51\x5a\x63\x47\x63\x46\x64\x53\x61','\x57\x34\x44\x33\x57\x35\x75','\x57\x4f\x61\x52\x57\x50\x37\x64\x4a\x38\x6b\x65\x66\x72\x43\x73','\x64\x43\x6b\x42\x57\x36\x68\x64\x50\x57\x75','\x79\x53\x6b\x4f\x57\x50\x30\x73\x45\x57','\x57\x34\x39\x2b\x57\x37\x31\x58','\x57\x34\x54\x4c\x57\x35\x79\x79\x57\x51\x74\x64\x4e\x53\x6b\x33\x57\x35\x6d','\x7a\x43\x6b\x34\x57\x50\x4f\x75\x6d\x33\x69\x4d\x57\x4f\x53','\x44\x48\x33\x64\x47\x6d\x6f\x5a\x43\x53\x6f\x2b\x57\x35\x5a\x63\x50\x61','\x57\x4f\x72\x2b\x57\x4f\x6c\x64\x4a\x62\x57\x66\x57\x35\x33\x63\x47\x57','\x57\x51\x38\x4c\x77\x5a\x4f\x71','\x57\x50\x6e\x35\x57\x50\x71\x78\x6a\x72\x72\x56\x64\x61','\x57\x34\x56\x63\x48\x67\x34','\x57\x35\x6a\x76\x57\x36\x64\x63\x53\x38\x6f\x57\x71\x61','\x57\x34\x46\x63\x55\x43\x6f\x53\x57\x34\x42\x63\x53\x76\x4f','\x72\x77\x79\x7a\x78\x4e\x5a\x63\x48\x53\x6b\x4a','\x57\x35\x31\x66\x57\x36\x52\x63\x4e\x43\x6f\x48\x7a\x4b\x58\x65','\x62\x78\x54\x6e\x57\x51\x6d\x72\x57\x35\x53','\x57\x35\x52\x63\x4b\x4d\x4e\x63\x55\x31\x4b\x6a\x46\x71','\x57\x34\x33\x64\x51\x38\x6b\x52\x43\x5a\x46\x64\x50\x57','\x57\x37\x70\x63\x52\x6d\x6b\x66\x67\x53\x6f\x47\x57\x50\x37\x64\x4e\x43\x6f\x4d','\x57\x50\x30\x6e\x57\x35\x71\x43\x57\x36\x6d\x51\x57\x36\x50\x74','\x64\x4b\x65\x6d\x77\x78\x37\x63\x54\x57','\x74\x61\x72\x44\x67\x5a\x2f\x64\x54\x38\x6f\x6b\x64\x43\x6f\x72\x61\x38\x6b\x73\x77\x47\x42\x64\x47\x71','\x43\x59\x74\x63\x50\x59\x53\x31\x70\x73\x42\x63\x4f\x4d\x7a\x48\x57\x37\x70\x63\x52\x61','\x57\x35\x42\x63\x51\x38\x6b\x66\x57\x36\x79\x30\x57\x37\x44\x49','\x6a\x43\x6b\x6c\x57\x52\x47\x38\x57\x4f\x34\x6b\x6c\x76\x4f','\x57\x50\x33\x64\x4e\x43\x6b\x30\x57\x34\x44\x67\x57\x52\x44\x4d\x6c\x71','\x57\x35\x58\x4b\x57\x36\x50\x38','\x70\x6d\x6b\x64\x57\x52\x47\x4c\x57\x50\x53','\x66\x43\x6f\x33\x67\x53\x6b\x69','\x71\x48\x61\x7a\x42\x75\x4a\x64\x4b\x53\x6f\x50\x70\x61','\x68\x30\x70\x64\x54\x38\x6f\x65\x76\x59\x4e\x64\x4c\x47\x75','\x73\x49\x76\x63\x57\x4f\x78\x63\x4f\x38\x6b\x51\x57\x50\x42\x63\x51\x71','\x57\x36\x39\x66\x57\x34\x39\x78\x57\x4f\x4b','\x70\x62\x42\x64\x49\x43\x6f\x4f\x69\x6d\x6f\x50\x57\x50\x4e\x63\x4f\x61','\x57\x51\x64\x64\x55\x6d\x6b\x64\x57\x36\x57\x48','\x71\x77\x72\x6a\x57\x51\x61\x34\x57\x37\x68\x63\x55\x61','\x6b\x4e\x69\x75\x6d\x53\x6f\x48\x57\x52\x62\x78\x57\x50\x4b','\x57\x51\x58\x6f\x57\x4f\x44\x54\x57\x52\x4f','\x63\x6d\x6b\x30\x6a\x38\x6f\x77\x74\x68\x46\x63\x49\x38\x6f\x55','\x57\x50\x75\x50\x57\x4f\x37\x64\x47\x43\x6b\x52\x63\x62\x79','\x57\x4f\x64\x64\x56\x6d\x6f\x46\x57\x34\x56\x64\x47\x53\x6f\x75\x6d\x30\x4b','\x67\x5a\x37\x63\x53\x43\x6f\x2b\x43\x47\x4c\x52\x71\x71','\x57\x50\x53\x72\x57\x35\x61\x6c','\x57\x50\x52\x64\x4a\x6d\x6b\x4f\x57\x36\x47\x64\x57\x51\x57','\x69\x6d\x6f\x33\x78\x47','\x6f\x6d\x6b\x6f\x57\x51\x34\x36\x57\x51\x65\x67\x6e\x4c\x69','\x6f\x6d\x6b\x6f\x57\x51\x34\x36\x57\x51\x65\x67\x6e\x76\x34','\x68\x64\x35\x70\x57\x52\x57\x46\x57\x35\x5a\x63\x4f\x4e\x65','\x78\x6d\x6b\x47\x57\x51\x54\x47\x64\x43\x6b\x36\x57\x35\x4c\x55','\x57\x51\x56\x63\x47\x5a\x47','\x70\x38\x6b\x75\x57\x36\x70\x64\x50\x49\x47','\x70\x75\x65\x48\x57\x51\x35\x61\x77\x4a\x54\x6c','\x67\x65\x78\x64\x4a\x43\x6f\x70','\x57\x51\x46\x63\x48\x53\x6f\x6c\x57\x34\x52\x64\x4c\x71','\x61\x33\x39\x46\x57\x52\x53\x33\x57\x35\x65','\x64\x73\x78\x63\x53\x6d\x6f\x49','\x6e\x53\x6f\x32\x76\x31\x6c\x64\x4d\x38\x6b\x41\x57\x50\x39\x6c','\x6a\x38\x6f\x38\x74\x4c\x64\x64\x4a\x53\x6b\x2b\x57\x4f\x31\x41','\x57\x51\x46\x63\x50\x6d\x6b\x66\x75\x43\x6f\x6e\x57\x50\x4a\x64\x47\x38\x6f\x2b','\x65\x78\x4a\x64\x4a\x59\x68\x64\x51\x43\x6b\x7a\x69\x30\x75','\x71\x4a\x6a\x2b\x57\x37\x4a\x63\x49\x5a\x6c\x63\x47\x47','\x57\x52\x30\x53\x77\x63\x65\x68\x78\x6d\x6f\x66\x57\x50\x57','\x72\x62\x64\x63\x4f\x38\x6b\x56\x7a\x71','\x67\x43\x6f\x58\x6d\x43\x6f\x41\x75\x78\x4a\x64\x49\x53\x6f\x4d','\x61\x38\x6f\x4f\x6b\x53\x6b\x76\x57\x50\x75\x73\x6c\x32\x4f','\x42\x74\x4a\x64\x48\x43\x6f\x6c\x61\x38\x6f\x4e\x57\x37\x34','\x57\x34\x52\x64\x56\x53\x6b\x51\x43\x71\x42\x64\x51\x43\x6b\x71','\x57\x4f\x38\x63\x57\x34\x4f\x54\x75\x4a\x78\x63\x4c\x43\x6b\x34\x62\x6d\x6f\x79\x57\x50\x75\x6e\x69\x47','\x75\x59\x62\x30\x57\x37\x68\x63\x4b\x61\x5a\x63\x4c\x78\x30','\x57\x51\x57\x4c\x6a\x65\x75','\x6a\x43\x6b\x62\x57\x51\x53\x57\x57\x50\x69\x6d\x70\x77\x61','\x57\x52\x6d\x53\x78\x59\x75\x51\x77\x38\x6b\x6a\x57\x4f\x6d','\x57\x34\x39\x72\x57\x4f\x54\x4f\x67\x75\x64\x64\x47\x43\x6b\x54','\x6b\x43\x6b\x7a\x57\x52\x47\x4a\x57\x4f\x43','\x57\x35\x4e\x63\x56\x38\x6b\x63\x57\x36\x34\x36\x57\x37\x30','\x65\x43\x6b\x57\x6a\x71','\x62\x59\x4e\x63\x56\x38\x6f\x54\x76\x64\x72\x5a\x78\x61','\x57\x4f\x57\x37\x57\x4f\x6c\x64\x48\x62\x30\x6a','\x42\x38\x6f\x73\x57\x36\x34\x64\x57\x51\x68\x63\x48\x53\x6f\x4b\x57\x52\x30','\x57\x35\x37\x63\x50\x6d\x6b\x6e\x57\x36\x47\x36\x57\x37\x31\x2b','\x57\x51\x30\x53\x78\x5a\x30\x41\x76\x57','\x63\x6d\x6b\x73\x57\x37\x74\x64\x52\x71\x62\x73\x57\x34\x6d','\x46\x53\x6f\x76\x57\x36\x4c\x70\x57\x51\x46\x63\x48\x43\x6f\x54','\x57\x50\x4e\x63\x55\x43\x6f\x69\x57\x35\x78\x64\x4d\x53\x6f\x38\x6f\x62\x30','\x57\x4f\x57\x58\x57\x4f\x6c\x64\x49\x61','\x67\x38\x6b\x73\x57\x37\x64\x64\x53\x61\x47','\x79\x43\x6b\x2f\x57\x51\x71\x63','\x57\x52\x5a\x63\x49\x64\x52\x64\x54\x53\x6b\x51\x6f\x53\x6b\x33\x57\x52\x71','\x57\x35\x7a\x35\x57\x36\x54\x39\x57\x35\x37\x63\x52\x43\x6b\x53\x74\x47','\x57\x52\x4e\x63\x4e\x4a\x30\x6b\x69\x4a\x6d','\x57\x4f\x54\x54\x57\x50\x47\x46\x69\x61\x6a\x30','\x71\x61\x78\x63\x4d\x38\x6b\x34','\x68\x30\x62\x6f\x6f\x58\x68\x63\x48\x38\x6f\x59\x74\x38\x6b\x53\x57\x36\x33\x64\x50\x53\x6b\x30','\x57\x4f\x48\x53\x57\x4f\x47\x41\x6a\x58\x79','\x75\x73\x72\x75\x57\x50\x33\x63\x56\x38\x6b\x58','\x57\x36\x65\x42\x57\x52\x6c\x63\x51\x38\x6b\x69\x57\x36\x5a\x63\x4a\x74\x4b','\x64\x4a\x37\x63\x4b\x38\x6f\x31','\x57\x50\x69\x51\x57\x4f\x46\x64\x4d\x72\x30\x78','\x57\x4f\x52\x63\x52\x53\x6f\x7a\x57\x4f\x46\x64\x4a\x6d\x6f\x6e\x70\x58\x47','\x57\x34\x79\x63\x6b\x4d\x31\x46\x74\x53\x6b\x72\x57\x34\x61','\x62\x43\x6b\x44\x57\x36\x5a\x64\x4a\x57\x48\x49','\x66\x6d\x6b\x57\x6f\x38\x6f\x46\x73\x78\x5a\x63\x4d\x43\x6b\x49','\x72\x38\x6b\x54\x57\x52\x7a\x6f\x64\x53\x6b\x51','\x57\x35\x65\x74\x6b\x78\x54\x79\x74\x53\x6b\x72\x57\x34\x61','\x6c\x33\x6d\x71\x6e\x6d\x6f\x49','\x61\x68\x2f\x64\x49\x67\x33\x64\x52\x38\x6b\x41\x6b\x48\x71','\x57\x36\x6d\x46\x57\x51\x68\x63\x4f\x53\x6b\x65\x57\x37\x4e\x63\x47\x61','\x63\x63\x70\x63\x55\x53\x6f\x4a','\x64\x53\x6f\x32\x6e\x6d\x6b\x69\x57\x50\x69\x68\x6e\x61','\x57\x51\x6a\x4d\x57\x52\x31\x44\x57\x4f\x33\x64\x54\x47\x4e\x63\x52\x71','\x57\x35\x39\x62\x57\x50\x66\x2b\x64\x67\x71','\x57\x36\x4a\x64\x4c\x59\x74\x64\x56\x6d\x6b\x33','\x64\x53\x6b\x75\x57\x37\x64\x64\x50\x58\x4c\x2b\x57\x34\x6e\x66','\x57\x35\x39\x65\x57\x37\x5a\x63\x4d\x43\x6f\x48\x78\x65\x66\x48','\x57\x35\x35\x56\x57\x35\x75\x79','\x46\x6d\x6f\x75\x57\x36\x68\x63\x4e\x6d\x6f\x7a\x65\x62\x43'];_0x4c79=function(){return _0x341b4e;};return _0x4c79();}import{sanitizeBundle,summarizeLeaks}from'\x2e\x2f\x73\x61\x6e\x69\x74\x69\x7a\x65\x2e\x6a\x73';export class PublishRejectedError extends Error{[_0x17228f(0x1a3,'\x44\x36\x37\x50')];[_0x17228f(0x13b,'\x52\x56\x53\x40')];[_0x17228f(0x14e,'\x32\x4f\x25\x61')+_0x17228f(0x16b,'\x40\x5b\x5e\x6b')];[_0x17228f(0x128,'\x55\x28\x58\x5d')+'\x65'];constructor(_0x3c5ae5,_0x2ac317,_0x130757,_0x5396d0,_0x28b42f){const _0x2dd6af=_0x17228f;super(_0x2dd6af(0x17e,'\x50\x6b\x59\x38')+_0x3c5ae5+(_0x130757?'\x3a\x20'+_0x130757:'')),this[_0x2dd6af(0x19f,'\x28\x34\x72\x49')]=_0x3c5ae5,this[_0x2dd6af(0x110,'\x32\x47\x35\x36')]=_0x2ac317,this[_0x2dd6af(0x15d,'\x70\x6a\x51\x21')+_0x2dd6af(0x175,'\x59\x59\x4c\x56')]=_0x5396d0,this[_0x2dd6af(0x16c,'\x6a\x5d\x37\x5e')+'\x65']=_0x28b42f,this[_0x2dd6af(0x191,'\x41\x4b\x5d\x37')]='\x50\x75\x62\x6c\x69\x73\x68\x52'+_0x2dd6af(0x185,'\x6f\x6f\x50\x55')+_0x2dd6af(0x131,'\x75\x5e\x32\x4b');}}function envelopeToAgentEvent(_0x3bb4a7){const _0xa0af9f=_0x17228f,_0x2c2f31=_0x3bb4a7['\x74\x79\x70\x65']===_0xa0af9f(0x13e,'\x59\x59\x4c\x56')+_0xa0af9f(0x199,'\x25\x77\x2a\x73')&&_0x3bb4a7[_0xa0af9f(0xe5,'\x6f\x6f\x50\x55')+_0xa0af9f(0xfa,'\x25\x77\x2a\x73')]?_0x3bb4a7[_0xa0af9f(0x134,'\x25\x77\x2a\x73')+'\x6e\x63\x79\x4b\x65\x79']:_0x3bb4a7['\x69\x64'];return{'\x69\x64':_0x2c2f31,'\x74\x79\x70\x65':_0x3bb4a7[_0xa0af9f(0x13f,'\x55\x28\x58\x5d')]===_0xa0af9f(0x155,'\x75\x5e\x32\x4b')+_0xa0af9f(0x108,'\x42\x66\x6a\x4e')?'\x64\x6d':_0x3bb4a7[_0xa0af9f(0xee,'\x32\x47\x35\x36')],'\x70\x61\x79\x6c\x6f\x61\x64':_0x3bb4a7[_0xa0af9f(0x151,'\x67\x61\x37\x6c')],'\x70\x72\x69\x6f\x72\x69\x74\x79':_0xa0af9f(0x162,'\x32\x47\x35\x36'),'\x63\x72\x65\x61\x74\x65\x64\x41\x74':_0x3bb4a7['\x63\x72\x65\x61\x74\x65\x64\x41'+'\x74'],..._0x3bb4a7[_0xa0af9f(0x1a0,'\x26\x23\x52\x36')]==='\x70\x72\x6f\x78\x79\x5f\x74\x72'+'\x61\x63\x65'&&_0x3bb4a7['\x69\x64\x65\x6d\x70\x6f\x74\x65'+_0xa0af9f(0x190,'\x33\x4f\x4c\x35')]?{'\x72\x65\x66\x49\x64':_0x3bb4a7[_0xa0af9f(0x139,'\x68\x71\x68\x61')+_0xa0af9f(0x120,'\x4b\x6b\x49\x54')]}:{}};}function _0x2c7f(_0x40f5b5,_0x106454){_0x40f5b5=_0x40f5b5-(-0x1*0x1a2+0x4*0x7b2+-0x1c41);const _0x3ca713=_0x4c79();let _0x38ea33=_0x3ca713[_0x40f5b5];if(_0x2c7f['\x62\x42\x63\x49\x61\x61']===undefined){var _0x376479=function(_0x57804b){const _0x47f88f='\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 _0x564ba7='',_0x28cd5a='';for(let _0x507d9f=-0x13d*0x17+0x1fa4+0x1*-0x329,_0x5704e6,_0x544ba8,_0x17c3ac=-0x5*-0x628+0x3e0+-0x1154*0x2;_0x544ba8=_0x57804b['\x63\x68\x61\x72\x41\x74'](_0x17c3ac++);~_0x544ba8&&(_0x5704e6=_0x507d9f%(0x200c+0x8d*0xf+-0x5*0x80f)?_0x5704e6*(-0x1*0x1459+0x2640+-0x11a7)+_0x544ba8:_0x544ba8,_0x507d9f++%(-0x5*0x353+-0x6*0x62b+-0x1f*-0x1bb))?_0x564ba7+=String['\x66\x72\x6f\x6d\x43\x68\x61\x72\x43\x6f\x64\x65'](-0x1*0x8bf+-0x2b*-0x1+-0x81*-0x13&_0x5704e6>>(-(-0xc37+0x16e8+-0xaaf)*_0x507d9f&-0x115a+-0x2*-0x1298+-0x13d0)):-0x4*0x237+-0x19*0x18b+0x2f6f){_0x544ba8=_0x47f88f['\x69\x6e\x64\x65\x78\x4f\x66'](_0x544ba8);}for(let _0x301aff=-0x1*-0x1a6b+0x1fa2+-0x7*0x84b,_0x1352c2=_0x564ba7['\x6c\x65\x6e\x67\x74\x68'];_0x301aff<_0x1352c2;_0x301aff++){_0x28cd5a+='\x25'+('\x30\x30'+_0x564ba7['\x63\x68\x61\x72\x43\x6f\x64\x65\x41\x74'](_0x301aff)['\x74\x6f\x53\x74\x72\x69\x6e\x67'](0x2*-0x9ad+-0xb17*0x1+0x1e81*0x1))['\x73\x6c\x69\x63\x65'](-(-0x1868+0x1*0x21da+-0x970));}return decodeURIComponent(_0x28cd5a);};const _0x1e21e0=function(_0x394854,_0x4e89e7){let _0x3858de=[],_0xc077ce=-0x14f*0x2+0x18f8+-0x165a,_0x1e89b1,_0x2b2d08='';_0x394854=_0x376479(_0x394854);let _0x35fdf3;for(_0x35fdf3=0x1*-0x770+-0x3*-0x7f0+-0x1060;_0x35fdf3<0x33c+0x1e1f*0x1+-0xac9*0x3;_0x35fdf3++){_0x3858de[_0x35fdf3]=_0x35fdf3;}for(_0x35fdf3=-0x1d82+0x17f8*-0x1+0x357a;_0x35fdf3<-0x149d+0x3b1*-0x2+0x1*0x1cff;_0x35fdf3++){_0xc077ce=(_0xc077ce+_0x3858de[_0x35fdf3]+_0x4e89e7['\x63\x68\x61\x72\x43\x6f\x64\x65\x41\x74'](_0x35fdf3%_0x4e89e7['\x6c\x65\x6e\x67\x74\x68']))%(-0x26c5+0x6e5+0x20e0),_0x1e89b1=_0x3858de[_0x35fdf3],_0x3858de[_0x35fdf3]=_0x3858de[_0xc077ce],_0x3858de[_0xc077ce]=_0x1e89b1;}_0x35fdf3=0x1643+-0x729+-0x1*0xf1a,_0xc077ce=-0x1f23+0x11cc+-0x5*-0x2ab;for(let _0x509558=0x494+0x1d35+-0x21c9;_0x509558<_0x394854['\x6c\x65\x6e\x67\x74\x68'];_0x509558++){_0x35fdf3=(_0x35fdf3+(-0x2*-0x382+0x1489+0x1*-0x1b8c))%(0x99b*0x3+0xdf*0x26+-0x3ceb*0x1),_0xc077ce=(_0xc077ce+_0x3858de[_0x35fdf3])%(-0x183c*-0x1+-0x254e+0xe12),_0x1e89b1=_0x3858de[_0x35fdf3],_0x3858de[_0x35fdf3]=_0x3858de[_0xc077ce],_0x3858de[_0xc077ce]=_0x1e89b1,_0x2b2d08+=String['\x66\x72\x6f\x6d\x43\x68\x61\x72\x43\x6f\x64\x65'](_0x394854['\x63\x68\x61\x72\x43\x6f\x64\x65\x41\x74'](_0x509558)^_0x3858de[(_0x3858de[_0x35fdf3]+_0x3858de[_0xc077ce])%(-0x221d+-0x1*-0x1175+0x11a8)]);}return _0x2b2d08;};_0x2c7f['\x69\x75\x65\x5a\x6d\x67']=_0x1e21e0,_0x2c7f['\x78\x57\x4d\x48\x4f\x52']={},_0x2c7f['\x62\x42\x63\x49\x61\x61']=!![];}const _0x26335a=_0x3ca713[-0x2*-0xeb5+0x5b9*-0x1+-0x17b1],_0x30263b=_0x40f5b5+_0x26335a,_0x1f7620=_0x2c7f['\x78\x57\x4d\x48\x4f\x52'][_0x30263b];return!_0x1f7620?(_0x2c7f['\x4d\x62\x77\x70\x73\x47']===undefined&&(_0x2c7f['\x4d\x62\x77\x70\x73\x47']=!![]),_0x38ea33=_0x2c7f['\x69\x75\x65\x5a\x6d\x67'](_0x38ea33,_0x106454),_0x2c7f['\x78\x57\x4d\x48\x4f\x52'][_0x30263b]=_0x38ea33):_0x38ea33=_0x1f7620,_0x38ea33;}export function makeHubBindings(_0x53935d,_0x55992a={}){const _0x23c89a=_0x17228f,_0x2bc4b2=_0x55992a[_0x23c89a(0x101,'\x53\x61\x68\x74')]??{},_0x40f5b5=_0x2bc4b2[_0x23c89a(0x164,'\x37\x41\x78\x53')]??!![],_0x106454=_0x2bc4b2[_0x23c89a(0x146,'\x6a\x5d\x37\x5e')]??(typeof process!==_0x23c89a(0x145,'\x76\x24\x31\x38')+'\x64'?process.env:{}),_0x3ca713=async(_0x38ea33,_0x376479)=>{const _0x211ba1=_0x23c89a;if(!_0x40f5b5)return _0x376479?_0x53935d[_0x211ba1(0x125,'\x41\x4b\x5d\x37')](_0x38ea33,_0x376479):_0x53935d[_0x211ba1(0x16f,'\x5e\x71\x77\x5e')](_0x38ea33);const _0x26335a=sanitizeBundle(_0x38ea33,{'\x65\x6e\x76':_0x106454,..._0x2bc4b2[_0x211ba1(0x169,'\x32\x47\x35\x36')]?{'\x6d\x6f\x64\x65':_0x2bc4b2['\x6d\x6f\x64\x65']}:{}});if(_0x26335a[_0x211ba1(0xf1,'\x5e\x71\x77\x5e')])throw new PublishRejectedError(_0x211ba1(0x15c,'\x47\x34\x63\x5b')+'\x63\x6b\x65\x64',!![],_0x211ba1(0xf0,'\x53\x61\x68\x74')+_0x211ba1(0x11c,'\x32\x47\x35\x36')+'\x65\x74\x65\x63\x74\x65\x64\x20'+_0x211ba1(0x152,'\x47\x34\x63\x5b')+_0x211ba1(0x1a5,'\x55\x28\x58\x5d')+_0x211ba1(0x178,'\x21\x69\x59\x4c')+_0x211ba1(0x19d,'\x50\x6b\x59\x38')+'\x72\x79\x61\x62\x6c\x65\x29\x3a'+'\x20'+summarizeLeaks(_0x26335a[_0x211ba1(0x17d,'\x68\x71\x68\x61')]));const _0x30263b=_0x376479?await _0x53935d[_0x211ba1(0x10c,'\x74\x39\x25\x75')](_0x26335a[_0x211ba1(0x15f,'\x37\x41\x78\x53')],_0x376479):await _0x53935d[_0x211ba1(0x167,'\x53\x61\x68\x74')](_0x26335a[_0x211ba1(0x183,'\x70\x6a\x51\x21')]),_0x1f7620=contentAssetIds(_0x26335a[_0x211ba1(0x19c,'\x5e\x71\x77\x5e')]);return _0x1f7620?{..._0x30263b,'\x73\x75\x62\x6d\x69\x74\x74\x65\x64\x41\x73\x73\x65\x74\x49\x64\x73':_0x1f7620}:_0x30263b;};return{'\x61\x73\x50\x72\x6f\x78\x79\x48\x61\x6e\x64\x6c\x65\x72'(){const _0x5668fe=_0x23c89a;if(_0x5668fe(0x147,'\x6f\x6f\x50\x55')!=='\x54\x6a\x76\x62\x45'){const _0x57804b=_0x5b6008[_0x5668fe(0x160,'\x52\x56\x53\x40')](_0x47f88f=>_0x47f88f['\x61\x73\x73\x65\x74\x5f\x69\x64']);return _0x57804b[_0x5668fe(0x109,'\x76\x24\x31\x38')](_0x564ba7=>typeof _0x564ba7==='\x73\x74\x72\x69\x6e\x67'&&/^sha256:[a-f0-9]{64}$/i[_0x5668fe(0xf8,'\x58\x36\x63\x40')](_0x564ba7))?_0x57804b:_0x11e682;}else return async _0x28cd5a=>{const _0x220f65=_0x5668fe;if(_0x220f65(0x197,'\x32\x47\x35\x36')!==_0x220f65(0xfc,'\x75\x5e\x32\x4b'))switch(_0x28cd5a[_0x220f65(0x18e,'\x28\x34\x72\x49')]){case _0x220f65(0x159,'\x67\x61\x37\x6c')+_0x220f65(0x113,'\x6a\x5d\x37\x5e'):{if(_0x220f65(0x135,'\x33\x4f\x4c\x35')!==_0x220f65(0x10f,'\x33\x4f\x4c\x35')){const _0x507d9f=_0x28cd5a[_0x220f65(0xec,'\x46\x34\x76\x24')],_0x5704e6=Array[_0x220f65(0x181,'\x75\x5e\x32\x4b')](_0x507d9f['\x61\x73\x73\x65\x74\x73'])?_0x507d9f[_0x220f65(0x10e,'\x40\x5b\x5e\x6b')]:[_0x507d9f],_0x544ba8=await _0x3ca713(_0x5704e6,{'\x69\x64\x65\x6d\x70\x6f\x74\x65\x6e\x63\x79\x4b\x65\x79':_0x28cd5a[_0x220f65(0x193,'\x52\x56\x53\x40')+_0x220f65(0x179,'\x6f\x6f\x50\x55')]});if(_0x544ba8[_0x220f65(0x129,'\x54\x4e\x63\x74')]!==_0x220f65(0x115,'\x48\x79\x7a\x69'))throw new PublishRejectedError(_0x544ba8[_0x220f65(0x174,'\x38\x47\x21\x36')+'\x6e']?.[_0x220f65(0x12f,'\x33\x4f\x4c\x35')]??_0x544ba8[_0x220f65(0x176,'\x32\x47\x35\x36')],_0x544ba8['\x74\x65\x72\x6d\x69\x6e\x61\x6c']??!![],_0x544ba8[_0x220f65(0x165,'\x47\x34\x63\x5b')],_0x544ba8[_0x220f65(0xf4,'\x59\x59\x4c\x56')+'\x6e']?.[_0x220f65(0x168,'\x4f\x39\x6d\x37')+_0x220f65(0x170,'\x28\x34\x72\x49')]);return _0x544ba8;}else throw new _0x267ff4(_0x4fac15[_0x220f65(0x111,'\x5a\x21\x4e\x5e')+'\x6e']?.[_0x220f65(0x180,'\x59\x59\x4c\x56')]??_0x16e2b3[_0x220f65(0x18f,'\x5e\x53\x67\x4b')],_0x45a5fe[_0x220f65(0x18d,'\x44\x36\x37\x50')]??!![],_0x119cb2[_0x220f65(0x124,'\x30\x29\x52\x39')],_0x20c7cd[_0x220f65(0x148,'\x26\x23\x52\x36')+'\x6e']?.[_0x220f65(0xfe,'\x48\x79\x7a\x69')+_0x220f65(0xeb,'\x64\x37\x41\x26')]);}case _0x220f65(0x143,'\x74\x39\x25\x75')+'\x69\x6d':{const _0x301aff=_0x28cd5a[_0x220f65(0xf5,'\x32\x47\x35\x36')];return _0x53935d['\x74\x61\x73\x6b']['\x63\x6c\x61\x69\x6d'](firstString(_0x301aff[_0x220f65(0x18c,'\x68\x71\x68\x61')],_0x301aff[_0x220f65(0x157,'\x65\x23\x6a\x33')])??'');}case _0x220f65(0x142,'\x74\x39\x25\x75')+_0x220f65(0xf2,'\x4b\x6b\x49\x54'):{if(_0x220f65(0x14a,'\x4f\x39\x6d\x37')!==_0x220f65(0x13a,'\x58\x36\x63\x40')){const _0x1352c2=_0x28cd5a['\x70\x61\x79\x6c\x6f\x61\x64'],_0x394854=firstString(_0x1352c2[_0x220f65(0x14b,'\x30\x29\x52\x39')],_0x1352c2[_0x220f65(0x13c,'\x48\x79\x7a\x69')]),_0x4e89e7=firstString(_0x1352c2[_0x220f65(0x106,'\x55\x28\x58\x5d')],_0x1352c2[_0x220f65(0x123,'\x4b\x6b\x49\x54')]),_0x3858de=firstString(_0x1352c2[_0x220f65(0x166,'\x6f\x6f\x50\x55')],_0x1352c2[_0x220f65(0x10a,'\x54\x4e\x63\x74')]);if(!_0x3858de)throw new PublishRejectedError(_0x220f65(0x1a2,'\x5e\x53\x67\x4b')+_0x220f65(0x127,'\x33\x70\x40\x4d')+_0x220f65(0x16a,'\x6f\x6f\x50\x55'),!![],'\x63\x6c\x61\x69\x6d\x5f\x69\x64'+_0x220f65(0x14f,'\x33\x70\x40\x4d')+_0x220f65(0x16d,'\x33\x4f\x4c\x35')+_0x220f65(0x11a,'\x40\x5b\x5e\x6b')+_0x220f65(0x13d,'\x4f\x39\x6d\x37')+_0x220f65(0x11e,'\x5e\x71\x77\x5e')+_0x220f65(0x177,'\x4f\x39\x6d\x37')+'\x75\x65');const _0xc077ce=_0x394854&&_0x4e89e7?{'\x74\x61\x73\x6b\x49\x64':_0x394854,'\x61\x73\x73\x65\x74\x49\x64':_0x4e89e7}:undefined;return _0x53935d[_0x220f65(0x1a1,'\x32\x4f\x25\x61')][_0x220f65(0x14d,'\x32\x4f\x25\x61')](_0x3858de,_0x1352c2[_0x220f65(0xfb,'\x5e\x54\x55\x6c')],_0xc077ce);}else{const _0x2b2d08=_0x56ccd5[_0x220f65(0x15a,'\x36\x38\x24\x4e')]===_0x220f65(0x19e,'\x6f\x6f\x50\x55')+_0x220f65(0xf3,'\x70\x34\x53\x53')&&_0x39c50d[_0x220f65(0x105,'\x32\x4f\x25\x61')+_0x220f65(0x16e,'\x74\x5b\x6b\x38')]?_0x14665e[_0x220f65(0x139,'\x68\x71\x68\x61')+_0x220f65(0x107,'\x32\x4f\x25\x61')]:_0x52e894['\x69\x64'];return{'\x69\x64':_0x2b2d08,'\x74\x79\x70\x65':_0x4c7791[_0x220f65(0x10b,'\x25\x2a\x63\x53')]===_0x220f65(0x133,'\x70\x34\x53\x53')+_0x220f65(0x141,'\x32\x4f\x25\x61')?'\x64\x6d':_0x594140[_0x220f65(0x187,'\x64\x33\x59\x78')],'\x70\x61\x79\x6c\x6f\x61\x64':_0x1b6e0f[_0x220f65(0xff,'\x58\x36\x63\x40')],'\x70\x72\x69\x6f\x72\x69\x74\x79':_0x220f65(0x1a7,'\x33\x4f\x4c\x35'),'\x63\x72\x65\x61\x74\x65\x64\x41\x74':_0x16daff[_0x220f65(0x186,'\x4b\x6b\x49\x54')+'\x74'],..._0x5e5f9c[_0x220f65(0xfd,'\x52\x56\x53\x40')]===_0x220f65(0x195,'\x36\x38\x24\x4e')+_0x220f65(0x11f,'\x41\x4b\x5d\x37')&&_0x3c374f[_0x220f65(0x12d,'\x74\x39\x25\x75')+_0x220f65(0x140,'\x25\x2a\x63\x53')]?{'\x72\x65\x66\x49\x64':_0x18d2a6[_0x220f65(0xef,'\x65\x47\x56\x40')+_0x220f65(0x17b,'\x76\x24\x31\x38')]}:{}};}}default:await _0x53935d[_0x220f65(0x12c,'\x37\x41\x78\x53')][_0x220f65(0x118,'\x33\x4f\x4c\x35')](envelopeToAgentEvent(_0x28cd5a));return{'\x70\x75\x73\x68\x65\x64':!![]};}else{const _0x509558=_0x52a555[_0x220f65(0x17f,'\x38\x47\x21\x36')],_0x338fb4=_0x1e8823(_0x509558[_0x220f65(0x198,'\x41\x4b\x5d\x37')],_0x509558[_0x220f65(0x157,'\x65\x23\x6a\x33')]),_0x399490=_0x2def65(_0x509558[_0x220f65(0xe6,'\x36\x38\x24\x4e')],_0x509558[_0x220f65(0x119,'\x64\x33\x59\x78')]),_0x4e252b=_0x4fee7a(_0x509558['\x63\x6c\x61\x69\x6d\x49\x64'],_0x509558[_0x220f65(0xe7,'\x33\x70\x40\x4d')]);if(!_0x4e252b)throw new _0x4358b5(_0x220f65(0x15b,'\x74\x39\x25\x75')+'\x74\x61\x73\x6b\x5f\x63\x6f\x6d'+_0x220f65(0x11d,'\x47\x34\x63\x5b'),!![],'\x63\x6c\x61\x69\x6d\x5f\x69\x64'+'\x20\x69\x73\x20\x72\x65\x71\x75'+_0x220f65(0xea,'\x47\x34\x63\x5b')+'\x61\x75\x73\x65\x20\x74\x61\x73'+'\x6b\x20\x63\x6c\x61\x69\x6d\x20'+_0x220f65(0x132,'\x65\x47\x56\x40')+_0x220f65(0x150,'\x50\x6b\x59\x38')+'\x75\x65');const _0x1814b6=_0x338fb4&&_0x399490?{'\x74\x61\x73\x6b\x49\x64':_0x338fb4,'\x61\x73\x73\x65\x74\x49\x64':_0x399490}:_0x3a521d;return _0x1d6e5c[_0x220f65(0x102,'\x65\x47\x56\x40')][_0x220f65(0xe9,'\x4f\x39\x6d\x37')](_0x4e252b,_0x509558[_0x220f65(0x173,'\x25\x77\x2a\x73')],_0x1814b6);}};},'\x61\x73\x41\x73\x73\x65\x74\x54\x72\x61\x6e\x73\x70\x6f\x72\x74'(){const _0xbdfc76=_0x23c89a;if('\x54\x57\x52\x4f\x47'===_0xbdfc76(0x137,'\x25\x2a\x63\x53'))return{'\x70\x75\x74\x52\x65\x6d\x6f\x74\x65':async _0x10c361=>{const _0x5bcb4d=_0xbdfc76,{record:_0x57ca4a}=normalizeForPut(_0x10c361),_0x39f065=await _0x3ca713([_0x57ca4a]);return{'\x73\x74\x6f\x72\x65\x64':_0x39f065[_0x5bcb4d(0x121,'\x63\x52\x75\x55')]===_0x5bcb4d(0x182,'\x58\x36\x63\x40')};},'\x67\x65\x74\x52\x65\x6d\x6f\x74\x65':async _0x21ecf4=>{const _0xafce27=_0xbdfc76,_0x29ddf6=await _0x53935d[_0xafce27(0x116,'\x6f\x6f\x50\x55')]({'\x6c\x69\x6d\x69\x74':0x2710});return _0x29ddf6[_0xafce27(0x14c,'\x59\x59\x4c\x56')](_0x324307=>_0x324307[_0xafce27(0x112,'\x4d\x40\x33\x5b')]===_0x21ecf4)??null;},'\x73\x65\x61\x72\x63\x68\x52\x65\x6d\x6f\x74\x65':_0x519d5f=>_0x53935d['\x73\x65\x61\x72\x63\x68'](_0x519d5f),'\x6c\x69\x73\x74\x52\x65\x6d\x6f\x74\x65':(_0x2f05d0,_0x14f08a)=>_0x53935d[_0xbdfc76(0x117,'\x40\x5b\x5e\x6b')]({..._0x2f05d0?{'\x6b\x69\x6e\x64':_0x2f05d0}:{},'\x6c\x69\x6d\x69\x74':_0x14f08a})};else throw new _0x4ef7cb(_0xbdfc76(0x161,'\x59\x59\x4c\x56')+_0xbdfc76(0x149,'\x70\x34\x53\x53'),!![],'\x73\x65\x6e\x73\x69\x74\x69\x76'+_0xbdfc76(0x154,'\x52\x56\x53\x40')+_0xbdfc76(0x17c,'\x21\x69\x59\x4c')+_0xbdfc76(0x136,'\x64\x37\x41\x26')+_0xbdfc76(0x196,'\x6a\x5d\x37\x5e')+_0xbdfc76(0xf9,'\x68\x71\x68\x61')+_0xbdfc76(0x11b,'\x64\x37\x41\x26')+'\x72\x79\x61\x62\x6c\x65\x29\x3a'+'\x20'+_0x270aa7(_0x455c8b[_0xbdfc76(0x18b,'\x65\x47\x56\x40')]));}};}function contentAssetIds(_0x4ccaa8){const _0x6aad1f=_0x17228f,_0x6646f0=_0x4ccaa8[_0x6aad1f(0x114,'\x64\x33\x59\x78')](_0x4d2c1b=>_0x4d2c1b[_0x6aad1f(0x189,'\x67\x61\x37\x6c')]);return _0x6646f0[_0x6aad1f(0x15e,'\x74\x39\x25\x75')](_0x1c0481=>typeof _0x1c0481===_0x6aad1f(0x172,'\x5e\x71\x77\x5e')&&/^sha256:[a-f0-9]{64}$/i['\x74\x65\x73\x74'](_0x1c0481))?_0x6646f0:undefined;}function firstString(..._0x121f74){const _0x42a476=_0x17228f;for(const _0x56695f of _0x121f74){if(_0x42a476(0x153,'\x28\x34\x72\x49')!==_0x42a476(0x184,'\x5e\x54\x55\x6c'))throw new _0x55912d('\x69\x6e\x76\x61\x6c\x69\x64\x5f'+_0x42a476(0x192,'\x33\x4f\x4c\x35')+_0x42a476(0x130,'\x74\x39\x25\x75'),!![],_0x42a476(0xf7,'\x40\x5b\x5e\x6b')+'\x20\x69\x73\x20\x72\x65\x71\x75'+_0x42a476(0x12e,'\x25\x2a\x63\x53')+_0x42a476(0x194,'\x52\x56\x53\x40')+_0x42a476(0x144,'\x30\x29\x52\x39')+_0x42a476(0x17a,'\x52\x56\x53\x40')+_0x42a476(0x163,'\x53\x61\x68\x74')+'\x75\x65');else{if(typeof _0x56695f!==_0x42a476(0x126,'\x65\x23\x6a\x33'))continue;const _0x1c59ea=_0x56695f[_0x42a476(0x100,'\x67\x61\x37\x6c')]();if(_0x1c59ea)return _0x1c59ea;}}return undefined;}
@@ -1 +1 @@
1
- export {};
1
+ export{};