@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,14 +1 @@
1
- /** 来源边界 (批注#37): Material 只来自 session/tool log, 杜绝 root_events/asset/MV 回灌. */
2
- const FORBIDDEN = [
3
- /root_events\.jsonl/, /genes\.jsonl/, /capsules\.jsonl/, /\bevents\.jsonl/,
4
- /[/\\]mv[/\\]/, /[/\\]assets[/\\]/,
5
- ];
6
- export class MaterialBoundaryError extends Error {
7
- constructor(msg) { super(`来源边界违规: ${msg}`); this.name = 'MaterialBoundaryError'; }
8
- }
9
- export function assertMaterialSource(m) {
10
- if (m.kind !== 'session_log' && m.kind !== 'tool_event' && m.kind !== 'llm_trace')
11
- throw new MaterialBoundaryError(`非法 kind: ${m.kind} (只允许 session_log/tool_event/llm_trace)`);
12
- if (FORBIDDEN.some((re) => re.test(m.sourcePath)))
13
- throw new MaterialBoundaryError(`禁止把资产/事件层回灌为 Material: ${m.sourcePath}`);
14
- }
1
+ (function(_0x38910c,_0x25b10a){const _0x2f3ae1=_0x12f9,_0x8a97d=_0x38910c();while(!![]){try{const _0x533deb=parseInt(_0x2f3ae1(0x12d,'\x55\x57\x79\x6d'))/(0xb47+-0x12*-0x1b0+-0x6f1*0x6)*(-parseInt(_0x2f3ae1(0x138,'\x47\x4f\x50\x7a'))/(-0xd*-0x145+0xf47+-0x1fc6))+parseInt(_0x2f3ae1(0x13b,'\x68\x24\x32\x42'))/(0xd*0x2d1+0x28d*0xc+-0x4336)*(-parseInt(_0x2f3ae1(0x12a,'\x33\x51\x50\x49'))/(0x2533+0xb*0xeb+-0x2f48))+parseInt(_0x2f3ae1(0x136,'\x35\x4a\x79\x26'))/(0xcae*0x2+-0x6d5*-0x5+-0x3b80)+-parseInt(_0x2f3ae1(0x122,'\x6b\x65\x57\x42'))/(0x4a*-0x3d+0x1c2a+-0xa82)*(parseInt(_0x2f3ae1(0x137,'\x29\x21\x45\x46'))/(0x36*-0x65+-0x252*-0xe+-0xb27))+-parseInt(_0x2f3ae1(0x13d,'\x4b\x35\x6f\x63'))/(-0x4f*-0x16+0x1895+-0x1f57)*(parseInt(_0x2f3ae1(0x128,'\x6b\x65\x57\x42'))/(-0x1fd9+0x1*-0x281+0x1*0x2263))+parseInt(_0x2f3ae1(0x11e,'\x68\x24\x32\x42'))/(-0x20ce+-0x1a97+0x55*0xb3)+parseInt(_0x2f3ae1(0x135,'\x40\x4d\x4d\x5e'))/(-0x169f+0x2047+-0x99d);if(_0x533deb===_0x25b10a)break;else _0x8a97d['push'](_0x8a97d['shift']());}catch(_0xf4ec1a){_0x8a97d['push'](_0x8a97d['shift']());}}}(_0x22ee,-0x164b56+-0x61*-0x4c1+0x20add9));function _0x22ee(){const _0x4d4dcb=['\x57\x35\x4a\x63\x4f\x53\x6b\x64\x6b\x38\x6f\x34\x71\x4c\x35\x43','\x57\x52\x4f\x6f\x57\x36\x33\x63\x4d\x61','\x57\x36\x78\x64\x4b\x43\x6f\x75\x70\x4e\x2f\x63\x52\x58\x4e\x63\x4c\x6d\x6b\x69\x57\x52\x38\x46','\x36\x7a\x2b\x77\x35\x52\x6f\x2b\x57\x52\x74\x64\x4a\x48\x58\x36\x57\x52\x47\x36','\x57\x35\x48\x75\x67\x6d\x6f\x71\x57\x52\x46\x64\x4f\x6d\x6f\x45\x57\x36\x4f','\x57\x52\x4a\x63\x4b\x2b\x77\x6e\x4d\x6f\x77\x66\x55\x6f\x49\x56\x56\x6d\x6f\x53\x57\x50\x4a\x64\x4c\x47','\x7a\x43\x6b\x34\x57\x34\x71\x71\x57\x52\x6e\x4e\x57\x37\x68\x64\x4a\x4e\x68\x64\x4d\x53\x6b\x6a\x57\x50\x65\x6e','\x57\x52\x39\x41\x57\x50\x39\x55\x57\x51\x64\x64\x48\x43\x6f\x7a\x78\x53\x6f\x4d','\x72\x62\x35\x6f\x57\x37\x79\x6e\x6f\x77\x54\x6a','\x57\x37\x33\x64\x49\x43\x6f\x42\x77\x63\x4a\x64\x54\x53\x6f\x6c','\x57\x36\x74\x63\x4e\x43\x6f\x77\x67\x53\x6b\x2f\x57\x4f\x42\x63\x53\x6d\x6f\x47\x79\x38\x6b\x79','\x74\x68\x4f\x74','\x44\x64\x44\x51\x57\x36\x69','\x57\x51\x66\x34\x57\x34\x6c\x64\x49\x4a\x46\x63\x47\x6d\x6f\x41\x6a\x31\x42\x64\x52\x38\x6f\x74\x57\x35\x71','\x35\x50\x59\x4b\x35\x52\x49\x67\x36\x6c\x36\x56\x35\x35\x41\x37\x36\x6c\x32\x67\x36\x6b\x41\x5a\x6b\x43\x6b\x63','\x68\x77\x70\x63\x4f\x38\x6f\x76\x74\x38\x6b\x6f\x57\x51\x46\x64\x47\x57','\x57\x36\x6c\x63\x4d\x38\x6f\x44\x75\x53\x6b\x42\x57\x51\x70\x63\x4d\x6d\x6f\x6e\x41\x71','\x57\x4f\x6d\x34\x57\x37\x6a\x50\x7a\x53\x6f\x33\x44\x38\x6f\x74','\x7a\x43\x6b\x68\x57\x50\x4a\x64\x4d\x73\x43\x72\x57\x51\x4a\x64\x55\x57\x64\x64\x4f\x4a\x39\x6a','\x65\x6d\x6b\x6c\x76\x53\x6b\x55\x71\x4d\x62\x4d\x68\x57','\x42\x38\x6b\x2f\x57\x34\x34\x78\x57\x52\x72\x48\x57\x50\x64\x64\x4b\x68\x64\x64\x4c\x53\x6b\x62\x57\x51\x30','\x57\x36\x46\x63\x51\x38\x6b\x39\x78\x61\x70\x63\x53\x62\x4b','\x6b\x53\x6f\x2f\x45\x6d\x6b\x74','\x57\x50\x4e\x64\x56\x38\x6f\x76\x46\x38\x6f\x67\x44\x65\x58\x6e\x61\x6d\x6b\x48','\x57\x52\x54\x48\x57\x34\x33\x64\x54\x5a\x50\x6f\x57\x4f\x75','\x35\x36\x41\x53\x35\x51\x2b\x53\x35\x4f\x49\x4c\x36\x6c\x73\x68\x35\x6c\x51\x69\x57\x36\x68\x4b\x55\x6b\x74\x4b\x55\x7a\x4f','\x57\x34\x50\x65\x57\x36\x68\x64\x49\x58\x66\x31\x57\x51\x35\x35','\x57\x51\x4c\x77\x57\x4f\x57\x53\x6f\x53\x6f\x36\x57\x35\x62\x48','\x63\x33\x48\x56\x79\x38\x6f\x61\x57\x36\x5a\x64\x4f\x43\x6b\x55','\x57\x50\x30\x69\x71\x6d\x6b\x71\x57\x51\x37\x63\x56\x43\x6b\x6b\x57\x52\x34\x66\x57\x36\x79\x6f\x57\x50\x5a\x63\x55\x6d\x6b\x54','\x57\x36\x70\x63\x50\x4a\x30\x4a\x57\x37\x4f\x46\x57\x34\x4e\x63\x53\x6d\x6f\x41\x57\x37\x71\x31\x57\x50\x47','\x57\x52\x31\x45\x57\x50\x30\x55\x57\x35\x42\x64\x54\x53\x6f\x6d\x44\x53\x6f\x74\x75\x4e\x53','\x42\x73\x56\x64\x56\x4a\x42\x64\x48\x53\x6b\x70\x57\x50\x5a\x64\x48\x47\x54\x4f\x7a\x75\x75','\x74\x53\x6f\x4a\x69\x58\x4c\x2f\x45\x57\x6e\x4e','\x69\x53\x6f\x5a\x62\x72\x43','\x42\x43\x6b\x58\x57\x4f\x76\x69\x57\x34\x79\x6a\x57\x4f\x78\x64\x51\x61','\x72\x53\x6f\x4e\x57\x34\x65\x4e','\x57\x51\x46\x64\x52\x38\x6f\x72\x57\x4f\x2f\x63\x52\x43\x6b\x4c\x57\x51\x4e\x64\x4c\x53\x6f\x59\x77\x4b\x74\x63\x48\x57','\x6d\x53\x6b\x68\x57\x35\x2f\x63\x54\x57','\x57\x52\x7a\x69\x57\x37\x46\x63\x4b\x38\x6f\x36\x57\x34\x56\x63\x4c\x76\x75','\x44\x58\x4b\x44\x57\x34\x30'];_0x22ee=function(){return _0x4d4dcb;};return _0x22ee();}const FORBIDDEN=[/root_events\.jsonl/,/genes\.jsonl/,/capsules\.jsonl/,/\bevents\.jsonl/,/[/\\]mv[/\\]/,/[/\\]assets[/\\]/];function _0x12f9(_0x1413f5,_0x57151f){_0x1413f5=_0x1413f5-(0x1152+-0x25db+-0x2*-0xad3);const _0x2e688c=_0x22ee();let _0x131a52=_0x2e688c[_0x1413f5];if(_0x12f9['\x77\x54\x4f\x55\x4a\x53']===undefined){var _0x281601=function(_0x1daebc){const _0x1f8d2f='\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 _0x38910c='',_0x25b10a='';for(let _0x8a97d=0x15*-0x107+0x1*-0x553+-0xd73*-0x2,_0x533deb,_0xf4ec1a,_0x3b7f87=0x20b+0x2063+0x153*-0x1a;_0xf4ec1a=_0x1daebc['\x63\x68\x61\x72\x41\x74'](_0x3b7f87++);~_0xf4ec1a&&(_0x533deb=_0x8a97d%(-0x15*-0x11b+0xc80+-0x25*0xf7)?_0x533deb*(-0x15a*0x19+-0x224d+0xdab*0x5)+_0xf4ec1a:_0xf4ec1a,_0x8a97d++%(-0x154*0xc+-0xd56+0xea5*0x2))?_0x38910c+=String['\x66\x72\x6f\x6d\x43\x68\x61\x72\x43\x6f\x64\x65'](-0x31*-0xd+-0x3*-0x8aa+-0xdbe*0x2&_0x533deb>>(-(0x13cf*-0x1+0x89f*-0x3+0x2dae*0x1)*_0x8a97d&0x1*-0xcab+0x1*0x1583+-0x8d2)):0x3*-0x87c+0x3a5+0x15cf*0x1){_0xf4ec1a=_0x1f8d2f['\x69\x6e\x64\x65\x78\x4f\x66'](_0xf4ec1a);}for(let _0x9a8af6=-0x1*0x76e+-0x79b+0x503*0x3,_0x222b5e=_0x38910c['\x6c\x65\x6e\x67\x74\x68'];_0x9a8af6<_0x222b5e;_0x9a8af6++){_0x25b10a+='\x25'+('\x30\x30'+_0x38910c['\x63\x68\x61\x72\x43\x6f\x64\x65\x41\x74'](_0x9a8af6)['\x74\x6f\x53\x74\x72\x69\x6e\x67'](-0x17ab+0x1fa2+-0x7e7*0x1))['\x73\x6c\x69\x63\x65'](-(-0x9c3+0xf23*-0x1+0x18e8));}return decodeURIComponent(_0x25b10a);};const _0x38f50c=function(_0x175ff4,_0x2949ff){let _0x8defb5=[],_0x5c07cc=0x1677+0x6*0x2bf+-0x26f1,_0xcbb64,_0x368cd9='';_0x175ff4=_0x281601(_0x175ff4);let _0x32e4bb;for(_0x32e4bb=-0x25*0x5b+-0x1*-0x74f+0x5d8*0x1;_0x32e4bb<-0x3a+0xf37+0x1*-0xdfd;_0x32e4bb++){_0x8defb5[_0x32e4bb]=_0x32e4bb;}for(_0x32e4bb=0x1085*0x1+-0x2ab+-0xdda;_0x32e4bb<-0x23a3*0x1+-0x1*-0xb47+-0x21d*-0xc;_0x32e4bb++){_0x5c07cc=(_0x5c07cc+_0x8defb5[_0x32e4bb]+_0x2949ff['\x63\x68\x61\x72\x43\x6f\x64\x65\x41\x74'](_0x32e4bb%_0x2949ff['\x6c\x65\x6e\x67\x74\x68']))%(-0xd*-0x145+0xf47+-0x1ec8),_0xcbb64=_0x8defb5[_0x32e4bb],_0x8defb5[_0x32e4bb]=_0x8defb5[_0x5c07cc],_0x8defb5[_0x5c07cc]=_0xcbb64;}_0x32e4bb=0xd*0x2d1+0x28d*0xc+-0x4339,_0x5c07cc=0x2533+0xb*0xeb+-0x2f4c;for(let _0x7dad3b=0xcae*0x2+-0x6d5*-0x5+-0x3b85;_0x7dad3b<_0x175ff4['\x6c\x65\x6e\x67\x74\x68'];_0x7dad3b++){_0x32e4bb=(_0x32e4bb+(0x4a*-0x3d+0x1c2a+-0xa87))%(0x36*-0x65+-0x252*-0xe+-0xa2e),_0x5c07cc=(_0x5c07cc+_0x8defb5[_0x32e4bb])%(-0x4f*-0x16+0x1895+-0x1e5f),_0xcbb64=_0x8defb5[_0x32e4bb],_0x8defb5[_0x32e4bb]=_0x8defb5[_0x5c07cc],_0x8defb5[_0x5c07cc]=_0xcbb64,_0x368cd9+=String['\x66\x72\x6f\x6d\x43\x68\x61\x72\x43\x6f\x64\x65'](_0x175ff4['\x63\x68\x61\x72\x43\x6f\x64\x65\x41\x74'](_0x7dad3b)^_0x8defb5[(_0x8defb5[_0x32e4bb]+_0x8defb5[_0x5c07cc])%(-0x1fd9+0x1*-0x281+0x2*0x11ad)]);}return _0x368cd9;};_0x12f9['\x57\x51\x67\x50\x6d\x6a']=_0x38f50c,_0x12f9['\x65\x44\x76\x4b\x43\x69']={},_0x12f9['\x77\x54\x4f\x55\x4a\x53']=!![];}const _0x413150=_0x2e688c[-0x20ce+-0x1a97+0x5*0xbe1],_0x33365a=_0x1413f5+_0x413150,_0x21e139=_0x12f9['\x65\x44\x76\x4b\x43\x69'][_0x33365a];return!_0x21e139?(_0x12f9['\x57\x67\x77\x50\x75\x50']===undefined&&(_0x12f9['\x57\x67\x77\x50\x75\x50']=!![]),_0x131a52=_0x12f9['\x57\x51\x67\x50\x6d\x6a'](_0x131a52,_0x57151f),_0x12f9['\x65\x44\x76\x4b\x43\x69'][_0x33365a]=_0x131a52):_0x131a52=_0x21e139,_0x131a52;}export class MaterialBoundaryError extends Error{constructor(_0xffca6d){const _0x217a40=_0x12f9;super(_0x217a40(0x126,'\x52\x50\x6d\x41')+_0xffca6d),this[_0x217a40(0x13a,'\x57\x4d\x58\x67')]=_0x217a40(0x12b,'\x5d\x78\x28\x6e')+_0x217a40(0x132,'\x58\x47\x51\x26')+'\x45\x72\x72\x6f\x72';}}export function assertMaterialSource(_0x281bae){const _0x2ce7d8=_0x12f9;if(_0x281bae[_0x2ce7d8(0x12e,'\x52\x50\x6d\x41')]!==_0x2ce7d8(0x120,'\x6f\x47\x62\x6a')+_0x2ce7d8(0x123,'\x36\x2a\x59\x2a')&&_0x281bae[_0x2ce7d8(0x13c,'\x49\x70\x59\x56')]!==_0x2ce7d8(0x141,'\x54\x21\x31\x25')+'\x6e\x74'&&_0x281bae[_0x2ce7d8(0x142,'\x5d\x51\x63\x67')]!==_0x2ce7d8(0x129,'\x48\x74\x69\x46')+'\x65')throw new MaterialBoundaryError(_0x2ce7d8(0x144,'\x58\x47\x51\x26')+'\x20'+_0x281bae[_0x2ce7d8(0x140,'\x44\x6e\x7a\x34')]+(_0x2ce7d8(0x11d,'\x56\x45\x5a\x4d')+_0x2ce7d8(0x127,'\x4a\x32\x63\x46')+_0x2ce7d8(0x13f,'\x5d\x51\x63\x67')+_0x2ce7d8(0x145,'\x40\x4d\x4d\x5e')+'\x5f\x74\x72\x61\x63\x65\x29'));if(FORBIDDEN[_0x2ce7d8(0x13e,'\x6e\x64\x61\x21')](_0x3fc7f4=>_0x3fc7f4[_0x2ce7d8(0x124,'\x41\x56\x35\x7a')](_0x281bae[_0x2ce7d8(0x139,'\x71\x50\x31\x32')+'\x74\x68'])))throw new MaterialBoundaryError(_0x2ce7d8(0x131,'\x49\x70\x59\x56')+'\u5c42\u56de\u704c\u4e3a\x20\x4d\x61\x74'+_0x2ce7d8(0x121,'\x56\x45\x5a\x4d')+_0x281bae[_0x2ce7d8(0x133,'\x44\x24\x57\x4b')+'\x74\x68']);}
@@ -1,55 +1 @@
1
- import { existsSync, readFileSync, writeFileSync, renameSync, mkdirSync } from 'node:fs';
2
- import { dirname } from 'node:path';
3
- /** consumer group + 进度游标 (at-least-once): committed 仅 ack 后推进, 防重复消费. */
4
- export class ConsumerGroups {
5
- opts;
6
- committed = new Map();
7
- constructor(opts) {
8
- this.opts = opts;
9
- // A corrupt cursor (a crash mid-persist) must NOT crash the resident daemon at startup: degrade to empty
10
- // (re-claim from 0). At-least-once + idempotent downstream make re-processing safe, far better than a crash loop.
11
- if (opts.path && existsSync(opts.path)) {
12
- try {
13
- const o = JSON.parse(readFileSync(opts.path, 'utf8'));
14
- for (const [k, v] of Object.entries(o)) {
15
- if (typeof v === 'number' && Number.isSafeInteger(v) && v >= 0)
16
- this.committed.set(k, v);
17
- }
18
- }
19
- catch { /* corrupt cursor → start from 0 (idempotent re-claim) */ }
20
- }
21
- }
22
- cur(group) { return this.committed.get(group) ?? 0; }
23
- /** 取下一批未 ack 的 (不推进 committed → 崩溃重启再 claim 拿到同批). */
24
- claim(group, batchSize) {
25
- return this.opts.store.readRange(this.cur(group), batchSize);
26
- }
27
- /** ack: 把 committed 推过 acked 的连续前缀. */
28
- ack(group, materialIds) {
29
- const ackSet = new Set(materialIds);
30
- let c = this.cur(group);
31
- const claimed = this.opts.store.readRange(c, ackSet.size);
32
- for (const record of claimed) {
33
- if (!ackSet.has(record.materialId))
34
- break;
35
- c += 1;
36
- }
37
- this.committed.set(group, c);
38
- this.persist();
39
- }
40
- /** reset: 'earliest' 重放全部历史 / 指定 index. */
41
- reset(group, to) {
42
- this.committed.set(group, to === 'earliest' ? 0 : to);
43
- this.persist();
44
- }
45
- position(group) { return this.cur(group); }
46
- persist() {
47
- if (!this.opts.path)
48
- return;
49
- mkdirSync(dirname(this.opts.path), { recursive: true });
50
- // Atomic write: a crash mid-write must leave the OLD cursor intact, not a truncated/corrupt file.
51
- const tmp = `${this.opts.path}.tmp`;
52
- writeFileSync(tmp, JSON.stringify(Object.fromEntries(this.committed)));
53
- renameSync(tmp, this.opts.path);
54
- }
55
- }
1
+ const _0x48e2e1=_0x4f29;(function(_0x1e6e9c,_0x4aaaba){const _0x2cada2=_0x4f29,_0x1d1d60=_0x1e6e9c();while(!![]){try{const _0x7aa6c6=parseInt(_0x2cada2(0x11a,'\x66\x33\x57\x36'))/(-0x42f+-0x3*0x2a4+0x60e*0x2)*(-parseInt(_0x2cada2(0x12e,'\x53\x30\x4a\x6c'))/(0xd*0x32+0x2691+-0x15*0x1f5))+parseInt(_0x2cada2(0x144,'\x65\x34\x21\x63'))/(0x3*0x3c2+-0x1db8+0x1275*0x1)*(-parseInt(_0x2cada2(0x147,'\x24\x41\x39\x21'))/(0x674+0xbf*0x2b+0x1*-0x2685))+parseInt(_0x2cada2(0x123,'\x69\x58\x4b\x7a'))/(0x1ca1+-0x2*0x8c7+-0x2*0x587)+parseInt(_0x2cada2(0x120,'\x69\x58\x4b\x7a'))/(0x37*-0x88+0x7*0x2bf+-0x201*-0x5)+-parseInt(_0x2cada2(0x136,'\x48\x65\x24\x6c'))/(-0x1e01+-0x1ba3+-0x3*-0x1339)*(-parseInt(_0x2cada2(0x14c,'\x65\x34\x21\x63'))/(0x1ca5+-0x11e0+-0xabd*0x1))+-parseInt(_0x2cada2(0x14a,'\x31\x79\x36\x42'))/(-0x269a+0x7*0x1c9+-0x7*-0x3bc)*(parseInt(_0x2cada2(0x137,'\x75\x44\x57\x51'))/(0x1dfd*0x1+-0x231f+0x2*0x296))+parseInt(_0x2cada2(0x146,'\x70\x6c\x59\x53'))/(-0xcba+0x21dd+-0x1518);if(_0x7aa6c6===_0x4aaaba)break;else _0x1d1d60['push'](_0x1d1d60['shift']());}catch(_0x3e7b01){_0x1d1d60['push'](_0x1d1d60['shift']());}}}(_0x56cd,-0xb8485*0x1+-0x24f5*0x84+-0x6d598*-0x6));function _0x4f29(_0x208163,_0x2b0a52){_0x208163=_0x208163-(0x75*0x11+-0x67*-0xd+-0x263*0x5);const _0x162fb2=_0x56cd();let _0x30d368=_0x162fb2[_0x208163];if(_0x4f29['\x61\x79\x66\x68\x6e\x56']===undefined){var _0x3746c8=function(_0xc4b7aa){const _0x40ee49='\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 _0x32acf5='',_0x25a6a9='';for(let _0x539b9c=0x41e+-0x10e0+0xcc2,_0x2316b7,_0x331b69,_0x200b2a=0xe58+0xd2*0x9+-0x15ba;_0x331b69=_0xc4b7aa['\x63\x68\x61\x72\x41\x74'](_0x200b2a++);~_0x331b69&&(_0x2316b7=_0x539b9c%(-0x207d+0x213d+-0x2*0x5e)?_0x2316b7*(0x19*-0xe+-0x304*0xb+0x22ca)+_0x331b69:_0x331b69,_0x539b9c++%(0x20e6*0x1+0xd*-0x3c+-0x1dd6))?_0x32acf5+=String['\x66\x72\x6f\x6d\x43\x68\x61\x72\x43\x6f\x64\x65'](0x1b9f+0x1b6e+-0x360e&_0x2316b7>>(-(0x771+-0x2371+0x1c02)*_0x539b9c&-0xd*-0x301+-0x3*0x1e7+-0x2152*0x1)):0x1577+0x1958+0x209*-0x17){_0x331b69=_0x40ee49['\x69\x6e\x64\x65\x78\x4f\x66'](_0x331b69);}for(let _0x1a2736=0x11a9*-0x1+0x8d0+0x1*0x8d9,_0x45103f=_0x32acf5['\x6c\x65\x6e\x67\x74\x68'];_0x1a2736<_0x45103f;_0x1a2736++){_0x25a6a9+='\x25'+('\x30\x30'+_0x32acf5['\x63\x68\x61\x72\x43\x6f\x64\x65\x41\x74'](_0x1a2736)['\x74\x6f\x53\x74\x72\x69\x6e\x67'](-0xe09+-0x1cd*-0x13+-0x5*0x406))['\x73\x6c\x69\x63\x65'](-(-0x1*0xf73+0x985*-0x1+0x18fa));}return decodeURIComponent(_0x25a6a9);};const _0x1e60a0=function(_0x1bffee,_0x59f15a){let _0x224dbb=[],_0x1b0abe=0xa02*0x3+-0x3*0x995+-0x3*0x6d,_0x25b667,_0x5261ad='';_0x1bffee=_0x3746c8(_0x1bffee);let _0x2e0dd2;for(_0x2e0dd2=-0x1853+0x22eb+-0xa98;_0x2e0dd2<0x4*0x1f4+-0x10ff+0xa2f;_0x2e0dd2++){_0x224dbb[_0x2e0dd2]=_0x2e0dd2;}for(_0x2e0dd2=0x5c2+-0x2*-0xd63+-0x2088;_0x2e0dd2<0x12a9+-0x1ff6+0xe4d;_0x2e0dd2++){_0x1b0abe=(_0x1b0abe+_0x224dbb[_0x2e0dd2]+_0x59f15a['\x63\x68\x61\x72\x43\x6f\x64\x65\x41\x74'](_0x2e0dd2%_0x59f15a['\x6c\x65\x6e\x67\x74\x68']))%(-0x971+-0x34f*-0x1+0x722),_0x25b667=_0x224dbb[_0x2e0dd2],_0x224dbb[_0x2e0dd2]=_0x224dbb[_0x1b0abe],_0x224dbb[_0x1b0abe]=_0x25b667;}_0x2e0dd2=-0x1*-0x114c+-0x1901+-0x7b5*-0x1,_0x1b0abe=-0x154*0x1a+-0x1e9c+-0x2f6*-0x16;for(let _0x543986=-0x1e79+0x1*-0xeb7+0x2d30;_0x543986<_0x1bffee['\x6c\x65\x6e\x67\x74\x68'];_0x543986++){_0x2e0dd2=(_0x2e0dd2+(0x22de+0xb9b+0x8*-0x5cf))%(0x1aa*0x12+0x1e*-0xe9+-0x1a6),_0x1b0abe=(_0x1b0abe+_0x224dbb[_0x2e0dd2])%(-0x1ff+-0x5*-0x689+-0x1dae),_0x25b667=_0x224dbb[_0x2e0dd2],_0x224dbb[_0x2e0dd2]=_0x224dbb[_0x1b0abe],_0x224dbb[_0x1b0abe]=_0x25b667,_0x5261ad+=String['\x66\x72\x6f\x6d\x43\x68\x61\x72\x43\x6f\x64\x65'](_0x1bffee['\x63\x68\x61\x72\x43\x6f\x64\x65\x41\x74'](_0x543986)^_0x224dbb[(_0x224dbb[_0x2e0dd2]+_0x224dbb[_0x1b0abe])%(-0xc10*-0x1+0x1ed7+-0x29e7*0x1)]);}return _0x5261ad;};_0x4f29['\x44\x4c\x58\x73\x78\x62']=_0x1e60a0,_0x4f29['\x4b\x49\x54\x75\x45\x6f']={},_0x4f29['\x61\x79\x66\x68\x6e\x56']=!![];}const _0x1b8d5a=_0x162fb2[0x2479+-0x2*0x1279+0x79],_0x3a1fa5=_0x208163+_0x1b8d5a,_0x165271=_0x4f29['\x4b\x49\x54\x75\x45\x6f'][_0x3a1fa5];return!_0x165271?(_0x4f29['\x71\x56\x46\x4c\x66\x63']===undefined&&(_0x4f29['\x71\x56\x46\x4c\x66\x63']=!![]),_0x30d368=_0x4f29['\x44\x4c\x58\x73\x78\x62'](_0x30d368,_0x2b0a52),_0x4f29['\x4b\x49\x54\x75\x45\x6f'][_0x3a1fa5]=_0x30d368):_0x30d368=_0x165271,_0x30d368;}import{existsSync,readFileSync,writeFileSync,renameSync,mkdirSync}from'\x6e\x6f\x64\x65\x3a\x66\x73';import{dirname}from'\x6e\x6f\x64\x65\x3a\x70\x61\x74\x68';export class ConsumerGroups{[_0x48e2e1(0x141,'\x50\x53\x38\x52')];[_0x48e2e1(0x116,'\x42\x45\x37\x42')+'\x64']=new Map();constructor(_0x251e20){const _0x55d2e0=_0x48e2e1;this['\x6f\x70\x74\x73']=_0x251e20;if(_0x251e20['\x70\x61\x74\x68']&&existsSync(_0x251e20[_0x55d2e0(0x13a,'\x50\x53\x38\x52')]))try{const _0x34b235=JSON[_0x55d2e0(0x132,'\x54\x7a\x79\x56')](readFileSync(_0x251e20[_0x55d2e0(0x11b,'\x69\x58\x4b\x7a')],_0x55d2e0(0x111,'\x67\x49\x4f\x26')));for(const [_0x10da6b,_0x58af3c]of Object['\x65\x6e\x74\x72\x69\x65\x73'](_0x34b235)){if(typeof _0x58af3c==='\x6e\x75\x6d\x62\x65\x72'&&Number[_0x55d2e0(0x12c,'\x44\x46\x78\x21')+_0x55d2e0(0x12f,'\x2a\x42\x5e\x4f')](_0x58af3c)&&_0x58af3c>=-0x1*0x10ff+0x3d7+0x34a*0x4)this[_0x55d2e0(0x135,'\x76\x32\x25\x76')+'\x64'][_0x55d2e0(0x138,'\x24\x41\x39\x21')](_0x10da6b,_0x58af3c);}}catch{}}[_0x48e2e1(0x128,'\x61\x72\x71\x47')](_0xa53f62){const _0x5067b1=_0x48e2e1;return this[_0x5067b1(0x133,'\x33\x62\x26\x38')+'\x64'][_0x5067b1(0x119,'\x48\x65\x24\x6c')](_0xa53f62)??-0x26c9+0x1c07+-0x1cb*-0x6;}[_0x48e2e1(0x127,'\x54\x7a\x79\x56')](_0x51d711,_0xe49af0){const _0x4fef32=_0x48e2e1;return this[_0x4fef32(0x131,'\x7a\x38\x57\x32')][_0x4fef32(0x140,'\x47\x74\x4f\x67')][_0x4fef32(0x113,'\x28\x6c\x5a\x6c')+'\x65'](this[_0x4fef32(0x149,'\x48\x65\x24\x6c')](_0x51d711),_0xe49af0);}[_0x48e2e1(0x13b,'\x44\x41\x6e\x52')](_0xe3b4ca,_0x42c6d0){const _0x2e2aa4=_0x48e2e1,_0x101d0a=new Set(_0x42c6d0);let _0xa7e6c2=this[_0x2e2aa4(0x128,'\x61\x72\x71\x47')](_0xe3b4ca);const _0x1dba33=this[_0x2e2aa4(0x142,'\x6e\x6b\x35\x38')][_0x2e2aa4(0x117,'\x6e\x6b\x35\x38')][_0x2e2aa4(0x14d,'\x44\x41\x6e\x52')+'\x65'](_0xa7e6c2,_0x101d0a[_0x2e2aa4(0x139,'\x6e\x55\x62\x5d')]);for(const _0x7853cf of _0x1dba33){if(!_0x101d0a[_0x2e2aa4(0x118,'\x76\x32\x25\x76')](_0x7853cf[_0x2e2aa4(0x13c,'\x40\x61\x68\x72')+'\x49\x64']))break;_0xa7e6c2+=-0xaac+-0x259c+-0x1*-0x3049;}this[_0x2e2aa4(0x133,'\x33\x62\x26\x38')+'\x64']['\x73\x65\x74'](_0xe3b4ca,_0xa7e6c2),this[_0x2e2aa4(0x114,'\x76\x32\x25\x76')]();}[_0x48e2e1(0x125,'\x4c\x6e\x25\x57')](_0x5a782b,_0x445130){const _0x147661=_0x48e2e1;this[_0x147661(0x135,'\x76\x32\x25\x76')+'\x64'][_0x147661(0x112,'\x75\x44\x57\x51')](_0x5a782b,_0x445130===_0x147661(0x11e,'\x70\x6c\x59\x53')?0xef8+-0x2329*0x1+-0x1*-0x1431:_0x445130),this[_0x147661(0x12a,'\x42\x4d\x59\x42')]();}[_0x48e2e1(0x129,'\x4d\x58\x63\x57')](_0x5df498){const _0x600d62=_0x48e2e1;return this[_0x600d62(0x128,'\x61\x72\x71\x47')](_0x5df498);}[_0x48e2e1(0x122,'\x33\x79\x58\x40')](){const _0x4764bd=_0x48e2e1;if(!this[_0x4764bd(0x126,'\x7a\x46\x50\x55')][_0x4764bd(0x12b,'\x42\x4d\x59\x42')])return;mkdirSync(dirname(this[_0x4764bd(0x13d,'\x33\x79\x58\x40')][_0x4764bd(0x13a,'\x50\x53\x38\x52')]),{'\x72\x65\x63\x75\x72\x73\x69\x76\x65':!![]});const _0x5a3ebc=this[_0x4764bd(0x12d,'\x71\x33\x4d\x32')][_0x4764bd(0x145,'\x47\x74\x4f\x67')]+_0x4764bd(0x134,'\x33\x79\x58\x40');writeFileSync(_0x5a3ebc,JSON[_0x4764bd(0x11c,'\x69\x58\x4b\x7a')+'\x79'](Object[_0x4764bd(0x13f,'\x7a\x38\x57\x32')+_0x4764bd(0x11d,'\x50\x4f\x40\x62')](this[_0x4764bd(0x115,'\x31\x79\x36\x42')+'\x64']))),renameSync(_0x5a3ebc,this['\x6f\x70\x74\x73'][_0x4764bd(0x11b,'\x69\x58\x4b\x7a')]);}}function _0x56cd(){const _0x2f91ae=['\x79\x53\x6b\x37\x57\x34\x57\x6f\x57\x37\x6e\x6a\x57\x37\x37\x64\x52\x71','\x57\x36\x48\x55\x57\x37\x78\x63\x51\x71','\x57\x4f\x58\x4d\x57\x37\x57','\x76\x53\x6b\x56\x44\x53\x6f\x36\x57\x50\x43\x70\x61\x73\x53','\x57\x35\x68\x64\x52\x38\x6f\x41\x57\x35\x4e\x63\x54\x71\x48\x48','\x57\x34\x6c\x63\x4f\x6d\x6f\x45\x57\x36\x74\x63\x4a\x4e\x72\x34\x57\x35\x43','\x57\x50\x4f\x41\x61\x43\x6b\x43\x57\x35\x47\x33\x73\x6d\x6f\x31','\x67\x31\x62\x59\x57\x52\x48\x64','\x57\x34\x4e\x64\x51\x38\x6f\x42','\x79\x38\x6b\x66\x43\x61','\x63\x43\x6f\x34\x57\x36\x38\x5a\x57\x36\x44\x50\x57\x4f\x42\x63\x4f\x6d\x6b\x30\x68\x71','\x57\x50\x68\x63\x4f\x53\x6f\x58\x57\x37\x4f','\x57\x50\x6c\x63\x54\x38\x6f\x33\x57\x37\x56\x64\x54\x43\x6b\x4b\x6b\x6d\x6b\x79','\x65\x6d\x6f\x43\x46\x57','\x69\x49\x64\x63\x50\x57\x2f\x63\x4f\x78\x57\x61\x64\x71','\x57\x35\x43\x43\x73\x4b\x78\x63\x4d\x38\x6b\x4d\x57\x4f\x79\x38\x78\x4d\x6e\x34\x57\x34\x54\x6e','\x57\x35\x6c\x64\x54\x6d\x6b\x33\x57\x51\x42\x63\x51\x53\x6f\x59\x43\x43\x6b\x72\x57\x34\x4a\x64\x4d\x61\x58\x62\x75\x61','\x77\x6d\x6b\x33\x67\x6d\x6f\x30\x79\x43\x6b\x52\x69\x53\x6b\x31\x57\x35\x5a\x64\x50\x4a\x46\x63\x48\x4e\x64\x63\x56\x71','\x66\x63\x38\x72\x57\x37\x68\x63\x4b\x53\x6b\x39\x57\x37\x43','\x57\x35\x70\x64\x53\x53\x6b\x59\x57\x51\x70\x63\x52\x38\x6f\x58\x43\x43\x6b\x38\x57\x37\x68\x64\x56\x63\x62\x57\x74\x71','\x57\x4f\x34\x49\x79\x74\x39\x61\x57\x35\x42\x63\x50\x74\x2f\x63\x52\x53\x6f\x45','\x42\x38\x6f\x49\x57\x37\x6e\x31\x70\x71','\x73\x76\x71\x58\x57\x4f\x71','\x6c\x43\x6b\x69\x66\x47\x31\x49','\x45\x66\x62\x39','\x6e\x65\x69\x32\x69\x75\x52\x64\x51\x6d\x6f\x65\x42\x61','\x45\x38\x6f\x78\x57\x4f\x53\x47\x57\x51\x6e\x7a\x61\x57','\x45\x38\x6f\x74\x57\x4f\x30\x37','\x77\x53\x6f\x74\x57\x50\x48\x53\x77\x43\x6f\x44\x57\x52\x54\x71','\x71\x43\x6f\x35\x75\x63\x61','\x57\x34\x42\x63\x52\x43\x6b\x4b\x67\x65\x44\x2f\x43\x58\x56\x63\x52\x71','\x57\x34\x35\x32\x6e\x77\x4c\x37','\x41\x31\x64\x64\x51\x53\x6b\x6d\x6e\x53\x6f\x4d\x57\x52\x71\x54\x7a\x57','\x6d\x48\x6c\x63\x52\x6d\x6b\x44','\x70\x53\x6b\x66\x62\x72\x44\x51','\x57\x4f\x35\x2b\x6e\x68\x4b\x65\x57\x35\x70\x64\x51\x53\x6b\x6c','\x73\x4a\x34\x6f\x57\x37\x69','\x57\x34\x6c\x64\x50\x43\x6f\x66\x57\x34\x46\x63\x54\x71\x39\x48\x42\x57','\x6e\x43\x6f\x76\x6d\x32\x70\x63\x49\x59\x2f\x64\x48\x32\x44\x35\x57\x52\x69\x68','\x57\x34\x34\x59\x57\x52\x68\x64\x53\x68\x6d\x75\x57\x36\x62\x62\x6d\x6d\x6f\x32\x57\x50\x47\x62\x57\x37\x75','\x73\x74\x42\x63\x53\x57','\x57\x34\x4c\x53\x45\x38\x6b\x4f','\x65\x6d\x6f\x72\x57\x37\x78\x63\x4f\x57','\x43\x43\x6b\x39\x57\x34\x79','\x72\x58\x6e\x50\x57\x34\x7a\x64\x65\x33\x46\x63\x4c\x61','\x63\x5a\x4f\x78\x57\x37\x65','\x57\x4f\x53\x57\x6e\x53\x6f\x38\x6c\x75\x54\x62\x57\x4f\x64\x64\x4a\x74\x58\x4d','\x6f\x58\x64\x63\x54\x38\x6b\x64\x6b\x53\x6f\x51\x57\x52\x69\x72','\x65\x4e\x50\x6b\x6d\x65\x43','\x64\x38\x6f\x61\x57\x37\x78\x63\x55\x61','\x62\x31\x72\x50\x57\x52\x4b','\x57\x4f\x53\x30\x6f\x6d\x6f\x35\x6c\x47\x47\x49\x57\x51\x5a\x64\x4b\x59\x39\x4d\x6a\x32\x79','\x57\x52\x37\x63\x53\x75\x46\x64\x4e\x74\x56\x63\x4b\x67\x74\x63\x47\x75\x37\x63\x4a\x61','\x65\x77\x39\x72\x6b\x47','\x44\x78\x64\x64\x50\x66\x6c\x64\x56\x63\x48\x6b\x73\x38\x6b\x48\x57\x4f\x68\x64\x50\x5a\x4e\x64\x4d\x30\x75','\x64\x77\x78\x64\x53\x53\x6b\x38\x43\x38\x6f\x47\x6a\x59\x43\x33\x41\x57','\x70\x74\x61\x66\x57\x35\x2f\x63\x4c\x65\x4c\x64\x75\x64\x54\x44\x69\x38\x6b\x42\x57\x50\x4f','\x7a\x38\x6b\x76\x44\x47','\x57\x50\x42\x64\x56\x43\x6f\x34\x57\x34\x68\x63\x49\x76\x72\x4c\x57\x34\x75','\x70\x4a\x79\x61\x57\x35\x5a\x64\x4a\x47\x4b\x6c\x43\x57\x39\x6d','\x57\x52\x5a\x63\x53\x75\x42\x64\x4d\x72\x52\x63\x4b\x75\x4a\x63\x55\x75\x42\x63\x48\x57'];_0x56cd=function(){return _0x2f91ae;};return _0x56cd();}
@@ -1,52 +1 @@
1
- import { appendFileSync, existsSync, readFileSync, mkdirSync } from 'node:fs';
2
- import { dirname } from 'node:path';
3
- import { ulid as makeUlid } from 'ulid';
4
- export function toMaterialEventPayload(m) {
5
- return {
6
- material_id: m.materialId, ...(m.sourceAgent ? { source_agent: m.sourceAgent } : {}), source_kind: m.sourceKind,
7
- source_path: m.sourcePath,
8
- kind: m.kind, size: m.watermark.size, hash: m.watermark.contentHash ?? '', discovered_at: m.capturedAt,
9
- };
10
- }
11
- /** jsonl 兜底 MailboxSink (M2 落地后替换为真引擎). */
12
- export class JsonlMailboxSink {
13
- path;
14
- constructor(path) {
15
- this.path = path;
16
- mkdirSync(dirname(path), { recursive: true });
17
- }
18
- async enqueue(e) {
19
- const receiptId = makeUlid();
20
- appendFileSync(this.path, `${JSON.stringify({ receiptId, ...e })}\n`);
21
- return { receiptId };
22
- }
23
- readAll() {
24
- if (!existsSync(this.path))
25
- return [];
26
- return readFileSync(this.path, 'utf8').split('\n').filter(Boolean).map((l) => JSON.parse(l));
27
- }
28
- }
29
- /** 攒批 + 投递 pending_materials (批注#40, mailbox 草案 §4). */
30
- export class MaterialEmitter {
31
- sink;
32
- batchSize;
33
- buffer = [];
34
- constructor(sink, batchSize = 20) {
35
- this.sink = sink;
36
- this.batchSize = batchSize;
37
- }
38
- add(m) { this.buffer.push(toMaterialEventPayload(m)); }
39
- size() { return this.buffer.length; }
40
- async flush() {
41
- if (this.buffer.length === 0)
42
- return null;
43
- const batchId = makeUlid();
44
- const materials = this.buffer.splice(0);
45
- const { receiptId } = await this.sink.enqueue({ type: 'pending_materials', payload: { batchId, materials } });
46
- return { receiptId, batchId, count: materials.length };
47
- }
48
- async addAndMaybeFlush(m) {
49
- this.add(m);
50
- return this.buffer.length >= this.batchSize ? this.flush() : null;
51
- }
52
- }
1
+ const _0x4e2e42=_0x2366;function _0x2476(){const _0x49d96f=['\x57\x35\x6e\x41\x6d\x43\x6f\x59\x57\x50\x72\x6e\x57\x35\x65\x57\x57\x50\x69\x51\x57\x34\x37\x64\x4e\x73\x47','\x57\x34\x64\x63\x47\x4b\x46\x63\x4e\x6d\x6f\x73\x66\x6d\x6f\x48\x71\x61','\x78\x47\x37\x63\x4e\x6d\x6b\x65\x57\x51\x4e\x63\x4f\x38\x6f\x58','\x62\x76\x42\x63\x51\x72\x2f\x63\x51\x53\x6f\x61\x57\x50\x37\x63\x49\x38\x6b\x7a\x79\x57\x2f\x63\x4e\x4b\x79','\x57\x50\x64\x63\x4b\x68\x35\x63','\x79\x38\x6b\x33\x68\x43\x6b\x69','\x57\x37\x33\x64\x53\x53\x6b\x42\x45\x32\x50\x73','\x57\x34\x78\x63\x48\x65\x78\x63\x4e\x6d\x6f\x73\x63\x61','\x67\x38\x6b\x7a\x44\x53\x6f\x4d\x57\x37\x5a\x64\x54\x57','\x72\x49\x6c\x64\x48\x59\x6d\x44\x57\x37\x61','\x61\x64\x6c\x63\x48\x78\x4f\x53\x57\x4f\x39\x47\x57\x4f\x71','\x57\x34\x78\x63\x4a\x43\x6f\x67\x57\x37\x6a\x35\x57\x37\x46\x64\x54\x38\x6f\x31\x7a\x43\x6b\x4f\x57\x36\x64\x63\x4e\x47\x4b','\x57\x50\x78\x64\x49\x53\x6b\x77\x57\x51\x65\x51\x57\x52\x30','\x57\x35\x64\x63\x48\x65\x46\x63\x47\x57','\x77\x6d\x6f\x59\x70\x75\x4b\x63\x6e\x71','\x57\x37\x44\x54\x57\x4f\x71\x45\x79\x6d\x6f\x6d\x57\x36\x38\x43','\x57\x36\x68\x63\x4c\x43\x6f\x44\x65\x33\x78\x64\x4d\x67\x68\x64\x4f\x57','\x57\x4f\x6c\x64\x49\x77\x54\x76\x65\x78\x42\x64\x54\x53\x6f\x62','\x57\x34\x6d\x75\x44\x43\x6b\x36\x57\x52\x56\x63\x48\x53\x6b\x56\x62\x4e\x53','\x57\x51\x72\x38\x57\x51\x4a\x63\x4c\x30\x7a\x4d\x68\x53\x6b\x33\x66\x71','\x73\x64\x6c\x64\x4a\x59\x69\x6d\x57\x36\x4f','\x72\x67\x5a\x64\x48\x5a\x54\x36\x57\x35\x53\x78\x57\x52\x46\x63\x56\x6d\x6f\x6c\x6e\x5a\x4a\x63\x4b\x71','\x57\x52\x79\x72\x76\x57\x31\x4c\x61\x4e\x6d','\x57\x50\x30\x46\x57\x51\x64\x63\x56\x6d\x6f\x65\x57\x51\x79','\x57\x36\x70\x64\x48\x61\x62\x4b\x73\x43\x6b\x6d','\x57\x36\x69\x41\x41\x47','\x57\x51\x74\x64\x54\x59\x7a\x63\x41\x78\x58\x54\x69\x53\x6f\x52\x57\x35\x56\x64\x4a\x61','\x67\x61\x46\x63\x48\x53\x6b\x56','\x68\x43\x6b\x36\x6f\x38\x6b\x71\x57\x34\x56\x64\x4a\x77\x42\x63\x48\x4c\x39\x7a\x68\x75\x52\x63\x4a\x61','\x45\x68\x6a\x65\x57\x51\x5a\x64\x4c\x77\x65','\x71\x77\x2f\x64\x49\x64\x35\x32\x57\x35\x38\x72\x57\x52\x52\x63\x47\x43\x6f\x5a\x63\x49\x37\x63\x51\x47','\x68\x6d\x6b\x63\x7a\x61','\x78\x4b\x43\x67\x57\x50\x48\x64','\x61\x5a\x5a\x63\x47\x4e\x53\x51','\x69\x43\x6f\x4e\x78\x38\x6f\x73\x69\x4d\x42\x63\x47\x53\x6f\x62\x76\x33\x4e\x63\x50\x71','\x57\x50\x33\x63\x4d\x30\x6e\x6e\x57\x36\x4a\x63\x52\x48\x4c\x4a\x65\x33\x43\x6c\x79\x53\x6b\x4d','\x69\x53\x6f\x55\x6a\x6d\x6b\x49\x74\x4c\x42\x63\x56\x6d\x6f\x53','\x57\x50\x70\x63\x4a\x67\x6e\x62','\x57\x35\x62\x68\x57\x52\x39\x74\x57\x50\x53\x78\x68\x38\x6b\x44','\x57\x35\x4c\x39\x61\x32\x6c\x63\x49\x43\x6b\x33','\x57\x36\x74\x64\x52\x71\x72\x2b\x57\x52\x35\x63\x71\x77\x4e\x63\x4b\x57\x52\x64\x51\x47','\x57\x37\x47\x42\x57\x51\x71\x61','\x77\x38\x6b\x68\x57\x50\x6e\x50\x57\x36\x71\x41\x63\x43\x6b\x48\x65\x38\x6f\x62\x57\x4f\x50\x76\x75\x71','\x73\x43\x6f\x50\x57\x50\x76\x61\x68\x59\x48\x72\x46\x53\x6f\x72\x57\x34\x48\x79\x57\x36\x43\x41','\x67\x38\x6b\x6e\x7a\x6d\x6f\x4a\x57\x37\x68\x64\x4c\x53\x6f\x70\x57\x52\x79','\x67\x68\x78\x63\x4d\x68\x76\x45\x57\x51\x4b\x42\x57\x37\x38\x31\x78\x53\x6b\x38\x57\x37\x38\x4f','\x57\x34\x39\x4a\x68\x4e\x37\x63\x4a\x38\x6b\x4e\x6a\x61','\x57\x50\x56\x64\x49\x43\x6f\x77\x57\x4f\x6c\x63\x48\x6d\x6f\x46\x57\x36\x6c\x64\x4f\x47','\x65\x6d\x6f\x68\x61\x43\x6f\x6b\x63\x38\x6b\x50','\x57\x4f\x43\x65\x43\x53\x6b\x30\x57\x34\x4f','\x72\x59\x42\x64\x4e\x73\x65\x42\x57\x37\x66\x6b\x57\x37\x75','\x57\x50\x62\x70\x6e\x57','\x57\x50\x74\x63\x4c\x38\x6b\x4e\x57\x37\x68\x64\x50\x43\x6b\x68\x64\x38\x6f\x55\x57\x37\x30\x61\x57\x37\x71','\x57\x36\x42\x63\x51\x78\x65\x45','\x77\x76\x37\x63\x56\x38\x6b\x66\x57\x4f\x56\x63\x4a\x6d\x6f\x54\x57\x34\x75','\x57\x34\x61\x72\x45\x53\x6f\x6d\x57\x37\x6c\x63\x53\x53\x6b\x65\x6a\x4e\x70\x64\x56\x53\x6f\x63','\x57\x52\x4c\x6e\x42\x71\x35\x45','\x57\x4f\x65\x55\x57\x36\x52\x64\x4e\x71','\x57\x50\x69\x6c\x57\x52\x79','\x57\x51\x52\x64\x51\x6d\x6b\x4b\x75\x4b\x50\x77\x74\x71','\x57\x36\x44\x4a\x57\x4f\x65\x79\x44\x53\x6f\x42\x57\x34\x65\x72','\x57\x37\x38\x4f\x57\x36\x52\x63\x56\x65\x58\x77\x6a\x53\x6b\x75','\x73\x38\x6f\x34\x7a\x61','\x67\x57\x2f\x63\x49\x6d\x6b\x49','\x57\x36\x2f\x64\x50\x53\x6b\x6a\x44\x71','\x57\x4f\x74\x64\x4b\x6d\x6b\x66\x57\x52\x75\x53\x57\x51\x52\x63\x4a\x53\x6f\x4c','\x74\x6d\x6f\x38\x57\x34\x47\x49\x57\x50\x31\x43\x57\x51\x75','\x68\x59\x31\x76\x68\x38\x6b\x2b\x57\x37\x38\x46\x57\x51\x30'];_0x2476=function(){return _0x49d96f;};return _0x2476();}(function(_0x51b147,_0x2f7784){const _0x1a2e27=_0x2366,_0x3ffb15=_0x51b147();while(!![]){try{const _0x190d28=parseInt(_0x1a2e27(0x13c,'\x71\x5a\x26\x34'))/(-0x16aa+-0xfef*-0x2+0x9d*-0xf)+parseInt(_0x1a2e27(0x130,'\x4e\x70\x67\x78'))/(-0x42a+0x10*0x148+-0x1054)+parseInt(_0x1a2e27(0x114,'\x76\x46\x6d\x50'))/(-0x1*-0x25bb+-0x11c5*-0x1+-0x3b3*0xf)*(parseInt(_0x1a2e27(0x11d,'\x41\x46\x4a\x24'))/(-0xd22*0x1+-0x21ae+0x3*0xf9c))+-parseInt(_0x1a2e27(0x14d,'\x34\x75\x64\x56'))/(0x1*-0x139d+0x1e3b*0x1+-0xa99)*(-parseInt(_0x1a2e27(0x127,'\x4e\x70\x67\x78'))/(-0x11d1+-0xcee+0x1ec5))+parseInt(_0x1a2e27(0x149,'\x76\x2a\x42\x41'))/(-0x2*-0x8d1+0x1*-0x6ef+0x4*-0x2ab)*(-parseInt(_0x1a2e27(0x124,'\x76\x2a\x42\x41'))/(-0xf7*-0x7+-0x18be+-0x7*-0x293))+-parseInt(_0x1a2e27(0x148,'\x76\x46\x6d\x50'))/(-0x1*-0x1947+0x9d0+-0x230e)*(parseInt(_0x1a2e27(0x135,'\x42\x44\x79\x6c'))/(-0x19b9+0x1b3c+-0x179))+parseInt(_0x1a2e27(0x13a,'\x67\x63\x67\x66'))/(0xc45*-0x3+-0x1f2f+0x4409*0x1)*(-parseInt(_0x1a2e27(0x12c,'\x77\x5a\x5b\x69'))/(-0xf6*0x28+0x8d*-0x22+-0x2*-0x1c9b));if(_0x190d28===_0x2f7784)break;else _0x3ffb15['push'](_0x3ffb15['shift']());}catch(_0x2b35fa){_0x3ffb15['push'](_0x3ffb15['shift']());}}}(_0x2476,0x95984+0x1*-0x2763d+-0x3c4*-0xd9));import{appendFileSync,existsSync,readFileSync,mkdirSync}from'\x6e\x6f\x64\x65\x3a\x66\x73';function _0x2366(_0x4c13b9,_0x5eb373){_0x4c13b9=_0x4c13b9-(-0x78c+0xd0b+0x3*-0x17b);const _0x534725=_0x2476();let _0x454e0f=_0x534725[_0x4c13b9];if(_0x2366['\x63\x78\x4c\x56\x6c\x64']===undefined){var _0x145e19=function(_0x130b74){const _0x50647e='\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 _0x1b65dd='',_0x58e614='';for(let _0x1304f0=0x21f*0x3+-0x18ed+0x1290,_0x129c91,_0x12f9b4,_0x382b95=-0x1*-0x1b8e+0x1791*-0x1+-0x3fd;_0x12f9b4=_0x130b74['\x63\x68\x61\x72\x41\x74'](_0x382b95++);~_0x12f9b4&&(_0x129c91=_0x1304f0%(-0x56*0x13+0x1f2e+-0x18c8)?_0x129c91*(-0x81*-0x12+-0x162a*0x1+-0x8*-0x1ab)+_0x12f9b4:_0x12f9b4,_0x1304f0++%(-0x4dd+0x2521+-0x40*0x81))?_0x1b65dd+=String['\x66\x72\x6f\x6d\x43\x68\x61\x72\x43\x6f\x64\x65'](-0x9c6+0x44*0x49+0x1*-0x89f&_0x129c91>>(-(0x1b*0x5d+0x4dc+-0x3*0x4e3)*_0x1304f0&-0x22f4+-0x2ea*0x4+0x7f*0x5e)):-0x149b+0x47b*0x5+-0x4*0x73){_0x12f9b4=_0x50647e['\x69\x6e\x64\x65\x78\x4f\x66'](_0x12f9b4);}for(let _0x14066f=0x1826+0x1e7d+-0x36a3,_0x5695cd=_0x1b65dd['\x6c\x65\x6e\x67\x74\x68'];_0x14066f<_0x5695cd;_0x14066f++){_0x58e614+='\x25'+('\x30\x30'+_0x1b65dd['\x63\x68\x61\x72\x43\x6f\x64\x65\x41\x74'](_0x14066f)['\x74\x6f\x53\x74\x72\x69\x6e\x67'](0x86*0xb+0xacb+-0x25b*0x7))['\x73\x6c\x69\x63\x65'](-(-0x4ea+0x1*-0x16d+0x659));}return decodeURIComponent(_0x58e614);};const _0x10a58d=function(_0x898689,_0x374a06){let _0x1400f1=[],_0x4df005=0xf1*-0x20+0xf91+-0x1*-0xe8f,_0x48f77f,_0x2a9ba2='';_0x898689=_0x145e19(_0x898689);let _0x48b554;for(_0x48b554=0x94*0x1c+-0x212a+0x10fa*0x1;_0x48b554<-0x3*-0x55+-0xa3*-0x6+-0x3d1;_0x48b554++){_0x1400f1[_0x48b554]=_0x48b554;}for(_0x48b554=0x144b*0x1+0x99a*0x1+-0x1de5;_0x48b554<-0xd14+0x1*-0x1e7+-0x1*-0xffb;_0x48b554++){_0x4df005=(_0x4df005+_0x1400f1[_0x48b554]+_0x374a06['\x63\x68\x61\x72\x43\x6f\x64\x65\x41\x74'](_0x48b554%_0x374a06['\x6c\x65\x6e\x67\x74\x68']))%(-0x9*-0x3d1+0x58*0x3d+-0x3651*0x1),_0x48f77f=_0x1400f1[_0x48b554],_0x1400f1[_0x48b554]=_0x1400f1[_0x4df005],_0x1400f1[_0x4df005]=_0x48f77f;}_0x48b554=-0xab*-0x9+-0xa21*0x3+0x1860,_0x4df005=-0x47d*-0x4+-0x2b8+-0x4*0x3cf;for(let _0x270d21=-0x15cb+-0x15d5+0x2*0x15d0;_0x270d21<_0x898689['\x6c\x65\x6e\x67\x74\x68'];_0x270d21++){_0x48b554=(_0x48b554+(-0x25df+0x115*0x3+-0x3*-0xb8b))%(0x2*0x5de+0x1dab+-0x2867),_0x4df005=(_0x4df005+_0x1400f1[_0x48b554])%(-0x208+-0x14ad+0x17b5),_0x48f77f=_0x1400f1[_0x48b554],_0x1400f1[_0x48b554]=_0x1400f1[_0x4df005],_0x1400f1[_0x4df005]=_0x48f77f,_0x2a9ba2+=String['\x66\x72\x6f\x6d\x43\x68\x61\x72\x43\x6f\x64\x65'](_0x898689['\x63\x68\x61\x72\x43\x6f\x64\x65\x41\x74'](_0x270d21)^_0x1400f1[(_0x1400f1[_0x48b554]+_0x1400f1[_0x4df005])%(-0x1*-0x18a7+0x1ee2*-0x1+-0x269*-0x3)]);}return _0x2a9ba2;};_0x2366['\x77\x4f\x5a\x56\x78\x66']=_0x10a58d,_0x2366['\x46\x4b\x41\x64\x44\x55']={},_0x2366['\x63\x78\x4c\x56\x6c\x64']=!![];}const _0x220d13=_0x534725[0x1*0x1241+0x2c8+-0x703*0x3],_0x47d6f3=_0x4c13b9+_0x220d13,_0x15ca7f=_0x2366['\x46\x4b\x41\x64\x44\x55'][_0x47d6f3];return!_0x15ca7f?(_0x2366['\x5a\x63\x6b\x46\x4d\x76']===undefined&&(_0x2366['\x5a\x63\x6b\x46\x4d\x76']=!![]),_0x454e0f=_0x2366['\x77\x4f\x5a\x56\x78\x66'](_0x454e0f,_0x5eb373),_0x2366['\x46\x4b\x41\x64\x44\x55'][_0x47d6f3]=_0x454e0f):_0x454e0f=_0x15ca7f,_0x454e0f;}import{dirname}from'\x6e\x6f\x64\x65\x3a\x70\x61\x74\x68';import{ulid as _0x37008c}from'\x75\x6c\x69\x64';export function toMaterialEventPayload(_0x4c77d5){const _0x14fedd=_0x2366;return{'\x6d\x61\x74\x65\x72\x69\x61\x6c\x5f\x69\x64':_0x4c77d5[_0x14fedd(0x14f,'\x46\x69\x5e\x61')+'\x49\x64'],..._0x4c77d5[_0x14fedd(0x11c,'\x4e\x70\x67\x78')+_0x14fedd(0x145,'\x76\x2a\x42\x41')]?{'\x73\x6f\x75\x72\x63\x65\x5f\x61\x67\x65\x6e\x74':_0x4c77d5[_0x14fedd(0x10f,'\x41\x46\x4a\x24')+_0x14fedd(0x131,'\x54\x6c\x31\x64')]}:{},'\x73\x6f\x75\x72\x63\x65\x5f\x6b\x69\x6e\x64':_0x4c77d5[_0x14fedd(0x14e,'\x25\x6b\x5b\x42')+'\x6e\x64'],'\x73\x6f\x75\x72\x63\x65\x5f\x70\x61\x74\x68':_0x4c77d5['\x73\x6f\x75\x72\x63\x65\x50\x61'+'\x74\x68'],'\x6b\x69\x6e\x64':_0x4c77d5['\x6b\x69\x6e\x64'],'\x73\x69\x7a\x65':_0x4c77d5[_0x14fedd(0x122,'\x41\x25\x64\x4f')+'\x6b'][_0x14fedd(0x13b,'\x38\x40\x6d\x6a')],'\x68\x61\x73\x68':_0x4c77d5['\x77\x61\x74\x65\x72\x6d\x61\x72'+'\x6b'][_0x14fedd(0x113,'\x53\x76\x6b\x57')+_0x14fedd(0x150,'\x6c\x44\x5b\x26')]??'','\x64\x69\x73\x63\x6f\x76\x65\x72\x65\x64\x5f\x61\x74':_0x4c77d5[_0x14fedd(0x121,'\x25\x6b\x5b\x42')+'\x41\x74']};}export class JsonlMailboxSink{[_0x4e2e42(0x14b,'\x4a\x38\x61\x48')];constructor(_0x22b1b6){const _0x54057f=_0x4e2e42;this[_0x54057f(0x12d,'\x76\x46\x6d\x50')]=_0x22b1b6,mkdirSync(dirname(_0x22b1b6),{'\x72\x65\x63\x75\x72\x73\x69\x76\x65':!![]});}async[_0x4e2e42(0x110,'\x6e\x6e\x38\x4e')](_0x52e66c){const _0x20bdb6=_0x4e2e42,_0x5c3f4f=_0x37008c();return appendFileSync(this[_0x20bdb6(0x117,'\x77\x69\x23\x58')],JSON['\x73\x74\x72\x69\x6e\x67\x69\x66'+'\x79']({'\x72\x65\x63\x65\x69\x70\x74\x49\x64':_0x5c3f4f,..._0x52e66c})+'\x0a'),{'\x72\x65\x63\x65\x69\x70\x74\x49\x64':_0x5c3f4f};}['\x72\x65\x61\x64\x41\x6c\x6c'](){const _0x5b8ace=_0x4e2e42;if(!existsSync(this[_0x5b8ace(0x14b,'\x4a\x38\x61\x48')]))return[];return readFileSync(this[_0x5b8ace(0x10e,'\x34\x75\x64\x56')],'\x75\x74\x66\x38')[_0x5b8ace(0x14a,'\x69\x77\x71\x5e')]('\x0a')[_0x5b8ace(0x119,'\x53\x76\x6b\x57')](Boolean)[_0x5b8ace(0x14c,'\x41\x77\x66\x41')](_0x30e7f1=>JSON[_0x5b8ace(0x133,'\x4e\x70\x67\x78')](_0x30e7f1));}}export class MaterialEmitter{[_0x4e2e42(0x11f,'\x53\x76\x6b\x57')];[_0x4e2e42(0x111,'\x71\x59\x4d\x5a')+'\x65'];[_0x4e2e42(0x11e,'\x41\x46\x4a\x24')]=[];constructor(_0x345a57,_0x370c09=0x1e43+-0x1bc9*-0x1+-0x39f8){const _0x215f61=_0x4e2e42;this[_0x215f61(0x137,'\x43\x4d\x41\x4b')]=_0x345a57,this[_0x215f61(0x13e,'\x54\x6c\x31\x64')+'\x65']=_0x370c09;}['\x61\x64\x64'](_0x26dd2a){const _0x5d66db=_0x4e2e42;this[_0x5d66db(0x129,'\x41\x77\x66\x41')][_0x5d66db(0x116,'\x43\x4d\x41\x4b')](toMaterialEventPayload(_0x26dd2a));}[_0x4e2e42(0x151,'\x76\x46\x6d\x50')](){const _0x5d7797=_0x4e2e42;return this[_0x5d7797(0x118,'\x34\x75\x64\x56')][_0x5d7797(0x12f,'\x76\x31\x63\x79')];}async[_0x4e2e42(0x132,'\x23\x4c\x56\x6e')](){const _0x12c68e=_0x4e2e42;if(this[_0x12c68e(0x11a,'\x54\x6c\x31\x64')][_0x12c68e(0x12a,'\x58\x6d\x6b\x35')]===0x1*-0x16d+-0x1380+0x14ed)return null;const _0x40559a=_0x37008c(),_0x17a051=this[_0x12c68e(0x126,'\x5b\x6f\x5d\x6c')][_0x12c68e(0x139,'\x57\x4a\x23\x5b')](-0x5*-0x31d+-0x25*-0xdd+-0x17c1*0x2),{receiptId:_0xb4e251}=await this[_0x12c68e(0x147,'\x77\x5a\x5b\x69')][_0x12c68e(0x140,'\x57\x4a\x23\x5b')]({'\x74\x79\x70\x65':_0x12c68e(0x141,'\x58\x7a\x5a\x21')+_0x12c68e(0x144,'\x5b\x6f\x5d\x6c')+'\x73','\x70\x61\x79\x6c\x6f\x61\x64':{'\x62\x61\x74\x63\x68\x49\x64':_0x40559a,'\x6d\x61\x74\x65\x72\x69\x61\x6c\x73':_0x17a051}});return{'\x72\x65\x63\x65\x69\x70\x74\x49\x64':_0xb4e251,'\x62\x61\x74\x63\x68\x49\x64':_0x40559a,'\x63\x6f\x75\x6e\x74':_0x17a051[_0x12c68e(0x120,'\x5d\x4b\x26\x56')]};}async[_0x4e2e42(0x123,'\x2a\x28\x40\x61')+_0x4e2e42(0x138,'\x47\x28\x30\x71')](_0x48750d){const _0x210cc5=_0x4e2e42;return this[_0x210cc5(0x12b,'\x74\x52\x42\x6f')](_0x48750d),this[_0x210cc5(0x142,'\x79\x5e\x29\x66')][_0x210cc5(0x11b,'\x5b\x6f\x5d\x6c')]>=this[_0x210cc5(0x111,'\x71\x59\x4d\x5a')+'\x65']?this[_0x210cc5(0x143,'\x46\x64\x4c\x34')]():null;}}
@@ -1,25 +1 @@
1
- import { ulid as makeUlid } from 'ulid';
2
- import { material } from '../schema/material.js';
3
- /** Fresh ULID for a Material record. Kept in core so the ULID constraint lives next to the schema. */
4
- export function newMaterialId() {
5
- return makeUlid();
6
- }
7
- /**
8
- * Build a schema-valid Material from a recording event. The composition layer (CLI) owns the source content;
9
- * core owns the record shape + id/clock generation. Re-record idempotency is the caller's concern (see the
10
- * file watermark cursor): identical content yields a fresh materialId here, so dedup must gate the call, not
11
- * the build (a Material's identity is its ULID, not its content — that is the M1 substrate's design).
12
- */
13
- export function buildMaterial(input) {
14
- return material.parse({
15
- materialId: input.materialId ?? newMaterialId(),
16
- ...(input.sourceAgent ? { sourceAgent: input.sourceAgent } : {}),
17
- sourceKind: input.sourceKind ?? 'runtime_session',
18
- sourcePath: input.sourcePath,
19
- kind: input.kind,
20
- watermark: input.watermark,
21
- capturedAt: input.capturedAt ?? new Date().toISOString(),
22
- consumerGroup: input.consumerGroup,
23
- ...(input.payload !== undefined ? { payload: input.payload } : {}),
24
- });
25
- }
1
+ function _0x4d54(_0x322a5a,_0x2e9816){_0x322a5a=_0x322a5a-(0x277*0x9+-0x25*0x43+-0xb11*0x1);var _0x4aaf04=_0x4cbf();var _0x3c4f20=_0x4aaf04[_0x322a5a];if(_0x4d54['\x55\x44\x4b\x66\x64\x74']===undefined){var _0x5745c6=function(_0x469f37){var _0x5e09fe='\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';var _0x35d46d='',_0x4ca2e1='';for(var _0xfdb24b=0x97e+0x55c+0x76d*-0x2,_0x5d27b3,_0xa08ea,_0x42c22e=-0x1*-0x22b+-0x1*0xa13+-0x2c*-0x2e;_0xa08ea=_0x469f37['\x63\x68\x61\x72\x41\x74'](_0x42c22e++);~_0xa08ea&&(_0x5d27b3=_0xfdb24b%(0x4d7+-0x2c*-0x53+-0x1317*0x1)?_0x5d27b3*(-0x1*-0x94+-0x262f+0x25db)+_0xa08ea:_0xa08ea,_0xfdb24b++%(0x6a9+-0x25*0x7a+0x1d*0x61))?_0x35d46d+=String['\x66\x72\x6f\x6d\x43\x68\x61\x72\x43\x6f\x64\x65'](0xd47*0x1+-0x1*-0x12d3+-0x1f1b&_0x5d27b3>>(-(0x1*-0x1490+-0x19e*0x2+0x17ce)*_0xfdb24b&0x21cf+0x520+-0x26e9)):-0xa5+0x25*0x4a+-0xa0d){_0xa08ea=_0x5e09fe['\x69\x6e\x64\x65\x78\x4f\x66'](_0xa08ea);}for(var _0x4a667f=0x3*0x6b9+0x7a*0x27+-0x26c1,_0x1e97e3=_0x35d46d['\x6c\x65\x6e\x67\x74\x68'];_0x4a667f<_0x1e97e3;_0x4a667f++){_0x4ca2e1+='\x25'+('\x30\x30'+_0x35d46d['\x63\x68\x61\x72\x43\x6f\x64\x65\x41\x74'](_0x4a667f)['\x74\x6f\x53\x74\x72\x69\x6e\x67'](-0xd9*0x5+-0x4a1*-0x5+0x10c*-0x12))['\x73\x6c\x69\x63\x65'](-(-0x1b84+-0x2*-0x1369+-0xb4c));}return decodeURIComponent(_0x4ca2e1);};var _0x45424d=function(_0x3262f4,_0x5e3a58){var _0x18c004=[],_0x2e6352=0x219a+-0x1895+-0x905*0x1,_0x54433b,_0xc2f010='';_0x3262f4=_0x5745c6(_0x3262f4);var _0x191d2e;for(_0x191d2e=-0x1ed4+0x7*0x137+-0x2d*-0x7f;_0x191d2e<0x955*-0x1+-0x21dd+0x2c32;_0x191d2e++){_0x18c004[_0x191d2e]=_0x191d2e;}for(_0x191d2e=-0x1b3c+-0x229+0x433*0x7;_0x191d2e<0x1918+0x1*0x6a7+-0x1ebf;_0x191d2e++){_0x2e6352=(_0x2e6352+_0x18c004[_0x191d2e]+_0x5e3a58['\x63\x68\x61\x72\x43\x6f\x64\x65\x41\x74'](_0x191d2e%_0x5e3a58['\x6c\x65\x6e\x67\x74\x68']))%(0x203b+0x2*0x946+-0x31c7),_0x54433b=_0x18c004[_0x191d2e],_0x18c004[_0x191d2e]=_0x18c004[_0x2e6352],_0x18c004[_0x2e6352]=_0x54433b;}_0x191d2e=0x2427+0x192b+0x5e*-0xa7,_0x2e6352=-0xb5f+0x2484+-0x9d*0x29;for(var _0x2d008b=-0x1626+0x959*-0x2+0x28d8;_0x2d008b<_0x3262f4['\x6c\x65\x6e\x67\x74\x68'];_0x2d008b++){_0x191d2e=(_0x191d2e+(-0x3*0xb2a+0x1a4a+0x735))%(0x3*-0x30a+0x822+0x7f*0x4),_0x2e6352=(_0x2e6352+_0x18c004[_0x191d2e])%(-0x1bb2+-0x216+-0xc5*-0x28),_0x54433b=_0x18c004[_0x191d2e],_0x18c004[_0x191d2e]=_0x18c004[_0x2e6352],_0x18c004[_0x2e6352]=_0x54433b,_0xc2f010+=String['\x66\x72\x6f\x6d\x43\x68\x61\x72\x43\x6f\x64\x65'](_0x3262f4['\x63\x68\x61\x72\x43\x6f\x64\x65\x41\x74'](_0x2d008b)^_0x18c004[(_0x18c004[_0x191d2e]+_0x18c004[_0x2e6352])%(0x1*0x1eb2+0x1bf2+-0x1*0x39a4)]);}return _0xc2f010;};_0x4d54['\x54\x7a\x51\x47\x70\x6d']=_0x45424d,_0x4d54['\x61\x65\x48\x4a\x63\x4e']={},_0x4d54['\x55\x44\x4b\x66\x64\x74']=!![];}var _0x21e50f=_0x4aaf04[-0x230a+0x1*-0x13+0x231d*0x1],_0x48918a=_0x322a5a+_0x21e50f,_0x14d31e=_0x4d54['\x61\x65\x48\x4a\x63\x4e'][_0x48918a];return!_0x14d31e?(_0x4d54['\x63\x58\x4c\x77\x47\x69']===undefined&&(_0x4d54['\x63\x58\x4c\x77\x47\x69']=!![]),_0x3c4f20=_0x4d54['\x54\x7a\x51\x47\x70\x6d'](_0x3c4f20,_0x2e9816),_0x4d54['\x61\x65\x48\x4a\x63\x4e'][_0x48918a]=_0x3c4f20):_0x3c4f20=_0x14d31e,_0x3c4f20;}(function(_0x42c22e,_0x4a667f){var _0x4cf7b3=_0x4d54,_0x1e97e3=_0x42c22e();while(!![]){try{var _0x3262f4=parseInt(_0x4cf7b3(0x190,'\x75\x36\x4a\x70'))/(-0x12e*0x8+0x236*0x3+0x2cf)*(parseInt(_0x4cf7b3(0x187,'\x79\x6b\x70\x6a'))/(-0x3*0xbcf+-0x1123*-0x2+0x129))+-parseInt(_0x4cf7b3(0x185,'\x28\x4c\x49\x67'))/(0x23fd+-0x1718+-0xce2)*(-parseInt(_0x4cf7b3(0x18e,'\x48\x65\x70\x4a'))/(0x601+0x186a+0xb5*-0x2b))+-parseInt(_0x4cf7b3(0x17a,'\x41\x53\x54\x45'))/(-0xa4c+-0x1fd1+0x1511*0x2)+parseInt(_0x4cf7b3(0x184,'\x48\x65\x70\x4a'))/(0xd03*0x1+-0x1818+0xb1b)*(-parseInt(_0x4cf7b3(0x170,'\x67\x69\x5e\x49'))/(-0x89*0x16+0x34*-0x9+0x1*0xda1))+-parseInt(_0x4cf7b3(0x172,'\x5a\x2a\x5b\x5a'))/(-0x41e+0x16c9+-0x12a3)+-parseInt(_0x4cf7b3(0x173,'\x43\x39\x42\x77'))/(0x62*-0x3+0x1*0x1272+-0x1143)+parseInt(_0x4cf7b3(0x186,'\x4d\x4b\x33\x35'))/(0x161e+0xa57+-0xc1*0x2b);if(_0x3262f4===_0x4a667f)break;else _0x1e97e3['push'](_0x1e97e3['shift']());}catch(_0x5e3a58){_0x1e97e3['push'](_0x1e97e3['shift']());}}}(_0x4cbf,0x17*0x939d+-0x1a59*-0x89+-0xcb481*0x1));import{ulid as _0x3fe445}from'\x75\x6c\x69\x64';import{material}from'\x2e\x2e\x2f\x73\x63\x68\x65\x6d\x61\x2f\x6d\x61\x74\x65\x72\x69\x61\x6c\x2e\x6a\x73';function _0x4cbf(){var _0x10c500=['\x68\x58\x4b\x4e\x6a\x4a\x71\x67\x57\x4f\x47','\x45\x32\x31\x79\x44\x4e\x4c\x45\x57\x50\x69','\x45\x53\x6f\x6c\x73\x4a\x52\x64\x54\x53\x6f\x2b\x78\x38\x6f\x63','\x73\x67\x34\x77\x57\x52\x75\x57\x57\x4f\x34\x67\x41\x5a\x6d\x54\x57\x52\x52\x63\x4f\x76\x4f','\x57\x37\x70\x64\x4f\x38\x6b\x69\x57\x52\x34\x6a\x57\x34\x56\x63\x4c\x47','\x57\x51\x50\x46\x66\x53\x6f\x4b\x57\x50\x30\x57\x72\x6d\x6f\x32\x57\x50\x2f\x64\x4b\x71\x6a\x6f','\x57\x37\x75\x57\x57\x34\x37\x63\x4e\x68\x53\x63\x7a\x57','\x6d\x5a\x61\x73\x57\x36\x4b\x34\x63\x66\x72\x6b','\x69\x6d\x6b\x5a\x57\x34\x46\x64\x4b\x38\x6b\x78\x57\x50\x4e\x63\x4a\x53\x6f\x32\x41\x61\x33\x63\x4b\x6d\x6f\x61','\x57\x37\x34\x59\x61\x6d\x6f\x6d\x57\x51\x71','\x57\x50\x54\x48\x57\x35\x46\x64\x4f\x71\x31\x46\x77\x66\x68\x63\x4e\x43\x6f\x78\x76\x43\x6b\x5a\x57\x51\x61','\x41\x53\x6b\x31\x78\x74\x33\x64\x56\x6d\x6b\x78\x45\x53\x6f\x63\x69\x43\x6f\x4c\x65\x53\x6f\x48\x57\x52\x34','\x57\x36\x43\x38\x6e\x4e\x75\x61\x57\x36\x62\x63','\x57\x35\x61\x2b\x57\x50\x56\x63\x4f\x31\x38\x6d\x6d\x68\x79','\x73\x43\x6b\x4d\x68\x4b\x50\x44\x57\x36\x33\x63\x4f\x4e\x70\x63\x50\x53\x6f\x73\x75\x4e\x61','\x44\x6d\x6f\x45\x75\x63\x78\x64\x51\x66\x52\x63\x56\x78\x37\x63\x4c\x64\x42\x63\x50\x73\x4b\x50','\x57\x50\x5a\x63\x4c\x38\x6b\x36\x73\x71\x48\x37\x42\x4a\x6d\x47','\x76\x4e\x46\x64\x4c\x4e\x6d\x73\x6d\x30\x4f\x39','\x77\x4d\x52\x63\x4d\x47\x52\x63\x47\x66\x74\x63\x4f\x43\x6b\x51\x68\x67\x54\x46\x6e\x57','\x73\x53\x6b\x65\x62\x4d\x54\x73\x57\x4f\x33\x63\x52\x57','\x78\x4b\x2f\x64\x4f\x31\x71\x72\x6a\x4d\x4f\x5a','\x66\x43\x6f\x66\x57\x34\x58\x64\x57\x34\x4a\x63\x4b\x53\x6f\x36\x57\x4f\x35\x34\x64\x4a\x4a\x64\x47\x38\x6b\x51\x64\x57','\x57\x52\x4f\x31\x67\x71','\x57\x35\x37\x64\x49\x38\x6f\x33\x77\x4a\x58\x59\x71\x58\x57','\x63\x74\x52\x64\x4a\x66\x53','\x57\x34\x31\x58\x6b\x38\x6b\x76\x57\x35\x64\x63\x55\x38\x6f\x48\x77\x57','\x57\x37\x6c\x63\x4d\x38\x6b\x72\x57\x4f\x37\x64\x49\x4a\x37\x63\x4a\x47','\x79\x48\x6c\x64\x49\x53\x6b\x36\x66\x78\x78\x63\x4a\x47\x52\x64\x50\x32\x30\x64\x57\x50\x4a\x63\x4b\x61','\x57\x37\x42\x63\x54\x38\x6f\x34\x57\x4f\x30\x32\x57\x37\x33\x63\x4d\x53\x6f\x54\x67\x61','\x57\x4f\x46\x64\x53\x58\x78\x63\x50\x43\x6f\x45\x57\x35\x78\x63\x49\x5a\x79\x62\x64\x6d\x6b\x75\x57\x36\x2f\x63\x50\x57','\x62\x53\x6f\x65\x44\x31\x6a\x50\x57\x34\x66\x71\x57\x51\x6c\x63\x4c\x43\x6b\x37\x57\x34\x4f\x75\x72\x57\x43','\x43\x62\x35\x50\x57\x37\x71\x78\x57\x36\x75\x75\x46\x61\x30\x50\x6a\x59\x78\x64\x47\x61','\x42\x4d\x6a\x76','\x45\x32\x31\x74\x41\x78\x6d'];_0x4cbf=function(){return _0x10c500;};return _0x4cbf();}export function newMaterialId(){return _0x3fe445();}export function buildMaterial(_0x46aa0a){var _0xd3c706=_0x4d54;return material[_0xd3c706(0x189,'\x34\x66\x67\x23')]({'\x6d\x61\x74\x65\x72\x69\x61\x6c\x49\x64':_0x46aa0a[_0xd3c706(0x18c,'\x37\x78\x76\x5e')+'\x49\x64']??newMaterialId(),..._0x46aa0a[_0xd3c706(0x179,'\x28\x4b\x59\x65')+_0xd3c706(0x188,'\x34\x66\x67\x23')]?{'\x73\x6f\x75\x72\x63\x65\x41\x67\x65\x6e\x74':_0x46aa0a['\x73\x6f\x75\x72\x63\x65\x41\x67'+'\x65\x6e\x74']}:{},'\x73\x6f\x75\x72\x63\x65\x4b\x69\x6e\x64':_0x46aa0a[_0xd3c706(0x17f,'\x70\x74\x28\x76')+'\x6e\x64']??'\x72\x75\x6e\x74\x69\x6d\x65\x5f'+_0xd3c706(0x17b,'\x64\x42\x75\x35'),'\x73\x6f\x75\x72\x63\x65\x50\x61\x74\x68':_0x46aa0a[_0xd3c706(0x175,'\x5a\x2a\x5b\x5a')+'\x74\x68'],'\x6b\x69\x6e\x64':_0x46aa0a[_0xd3c706(0x180,'\x41\x53\x54\x45')],'\x77\x61\x74\x65\x72\x6d\x61\x72\x6b':_0x46aa0a['\x77\x61\x74\x65\x72\x6d\x61\x72'+'\x6b'],'\x63\x61\x70\x74\x75\x72\x65\x64\x41\x74':_0x46aa0a[_0xd3c706(0x17c,'\x29\x34\x72\x7a')+'\x41\x74']??new Date()[_0xd3c706(0x16f,'\x73\x72\x7a\x68')+_0xd3c706(0x17e,'\x78\x2a\x77\x43')](),'\x63\x6f\x6e\x73\x75\x6d\x65\x72\x47\x72\x6f\x75\x70':_0x46aa0a[_0xd3c706(0x181,'\x55\x46\x69\x6c')+_0xd3c706(0x171,'\x43\x30\x34\x72')],..._0x46aa0a[_0xd3c706(0x182,'\x65\x35\x6b\x62')]!==undefined?{'\x70\x61\x79\x6c\x6f\x61\x64':_0x46aa0a[_0xd3c706(0x18b,'\x34\x66\x67\x23')]}:{}});}
@@ -1,9 +1 @@
1
- export * from './materialStore.js';
2
- export * from './materialArchive.js';
3
- export * from './watermark.js';
4
- export * from './sources.js';
5
- export * from './consumer.js';
6
- export * from './sampling.js';
7
- export * from './boundary.js';
8
- export * from './emit.js';
9
- export * from './factory.js';
1
+ (function(_0x4b08c3,_0x462cb7){var _0x46a4a7=_0x34a9,_0x72dfe4=_0x4b08c3();while(!![]){try{var _0x15ba12=-parseInt(_0x46a4a7(0x194,'\x61\x36\x66\x23'))/(0x21ca+-0x52+-0x293*0xd)*(-parseInt(_0x46a4a7(0x1a1,'\x74\x75\x61\x6a'))/(-0x52f*0x1+0x133d+-0xe0c))+parseInt(_0x46a4a7(0x19b,'\x43\x73\x71\x42'))/(-0x151*0x1+0x6da+0x65*-0xe)+-parseInt(_0x46a4a7(0x199,'\x56\x45\x49\x24'))/(-0x1b*0x16e+0x245*-0xb+0x3f95)+parseInt(_0x46a4a7(0x195,'\x74\x75\x61\x6a'))/(0xe8+0xeed+-0xfd0)+-parseInt(_0x46a4a7(0x1a0,'\x61\x36\x66\x23'))/(0x1*0x1207+0x368+-0x261*0x9)+parseInt(_0x46a4a7(0x1a2,'\x74\x75\x61\x6a'))/(0x1048*0x1+-0x1383+0x342)*(-parseInt(_0x46a4a7(0x1a5,'\x4a\x62\x72\x58'))/(0x484*0x5+0x1904+-0x2f90))+parseInt(_0x46a4a7(0x197,'\x44\x25\x6a\x40'))/(0x2025+0x112b+-0x3*0x106d)*(parseInt(_0x46a4a7(0x192,'\x40\x62\x75\x5d'))/(0x7*-0x48f+-0x1*0x1e9b+0x6*0xa6d));if(_0x15ba12===_0x462cb7)break;else _0x72dfe4['push'](_0x72dfe4['shift']());}catch(_0x5945ef){_0x72dfe4['push'](_0x72dfe4['shift']());}}}(_0x1633,-0x5*-0xffdf+-0x7a86*-0xc+-0x77ea7));export*from'\x2e\x2f\x6d\x61\x74\x65\x72\x69\x61\x6c\x53\x74\x6f\x72\x65\x2e\x6a\x73';export*from'\x2e\x2f\x6d\x61\x74\x65\x72\x69\x61\x6c\x41\x72\x63\x68\x69\x76\x65\x2e\x6a\x73';function _0x34a9(_0x410e71,_0x2d9b37){_0x410e71=_0x410e71-(0x1d7f+0x2*-0x779+-0xcfb);var _0x47163e=_0x1633();var _0x25a413=_0x47163e[_0x410e71];if(_0x34a9['\x62\x54\x44\x48\x66\x6a']===undefined){var _0x37a597=function(_0x3bea36){var _0x394bfd='\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';var _0x2fbc34='',_0x463223='';for(var _0x46cf31=-0xc*-0x239+-0x1e80+0x1*0x3d4,_0x47b7f2,_0x26b901,_0x26daec=-0x26f3+0x2007+-0x4*-0x1bb;_0x26b901=_0x3bea36['\x63\x68\x61\x72\x41\x74'](_0x26daec++);~_0x26b901&&(_0x47b7f2=_0x46cf31%(-0x2147+-0x3a0+0x1*0x24eb)?_0x47b7f2*(-0x1*-0x1d2d+0xc6*0x2c+0x1*-0x3ef5)+_0x26b901:_0x26b901,_0x46cf31++%(0x25a5*0x1+0x7d*-0xe+-0x1ecb))?_0x2fbc34+=String['\x66\x72\x6f\x6d\x43\x68\x61\x72\x43\x6f\x64\x65'](-0x2667+0x122c+0x153a&_0x47b7f2>>(-(-0x1063+0x189a*0x1+-0x835)*_0x46cf31&0xadd+0x1ec9+-0x29a0)):-0x42b*-0x3+0x501+-0x1182){_0x26b901=_0x394bfd['\x69\x6e\x64\x65\x78\x4f\x66'](_0x26b901);}for(var _0x50d714=-0x7b7*0x1+-0x899+0x1050,_0x5ecc3a=_0x2fbc34['\x6c\x65\x6e\x67\x74\x68'];_0x50d714<_0x5ecc3a;_0x50d714++){_0x463223+='\x25'+('\x30\x30'+_0x2fbc34['\x63\x68\x61\x72\x43\x6f\x64\x65\x41\x74'](_0x50d714)['\x74\x6f\x53\x74\x72\x69\x6e\x67'](0x1c*0xd6+-0x24f3+0xd9b))['\x73\x6c\x69\x63\x65'](-(-0x4df+0xfbc*-0x2+-0x1*-0x2459));}return decodeURIComponent(_0x463223);};var _0x7a61da=function(_0x44d0d8,_0x9971b5){var _0x115ea1=[],_0x471cc4=0x183d+0x21c2+-0x39ff,_0x325d31,_0x221f42='';_0x44d0d8=_0x37a597(_0x44d0d8);var _0x17d2b9;for(_0x17d2b9=-0xb35+0x21ca+-0x1695;_0x17d2b9<0xa21+0x45*-0x6b+0x13b6;_0x17d2b9++){_0x115ea1[_0x17d2b9]=_0x17d2b9;}for(_0x17d2b9=-0x14f1+0x2125*-0x1+0x3616;_0x17d2b9<-0xa99*0x1+0x11c6+-0x11*0x5d;_0x17d2b9++){_0x471cc4=(_0x471cc4+_0x115ea1[_0x17d2b9]+_0x9971b5['\x63\x68\x61\x72\x43\x6f\x64\x65\x41\x74'](_0x17d2b9%_0x9971b5['\x6c\x65\x6e\x67\x74\x68']))%(0x6e8+0x4*0x74b+-0x2314),_0x325d31=_0x115ea1[_0x17d2b9],_0x115ea1[_0x17d2b9]=_0x115ea1[_0x471cc4],_0x115ea1[_0x471cc4]=_0x325d31;}_0x17d2b9=0x3*-0x74e+0x1*-0x91a+0x1f04,_0x471cc4=-0xa*-0xe5+0x1ebe*-0x1+0x15cc;for(var _0x152989=0xd85*-0x2+-0x14*-0x121+0x476;_0x152989<_0x44d0d8['\x6c\x65\x6e\x67\x74\x68'];_0x152989++){_0x17d2b9=(_0x17d2b9+(0x2025+0x112b+-0x1*0x314f))%(0x7*-0x48f+-0x1*0x1e9b+0x6*0xa96),_0x471cc4=(_0x471cc4+_0x115ea1[_0x17d2b9])%(-0x2*-0xf09+-0x3d7*-0x9+-0x3fa1),_0x325d31=_0x115ea1[_0x17d2b9],_0x115ea1[_0x17d2b9]=_0x115ea1[_0x471cc4],_0x115ea1[_0x471cc4]=_0x325d31,_0x221f42+=String['\x66\x72\x6f\x6d\x43\x68\x61\x72\x43\x6f\x64\x65'](_0x44d0d8['\x63\x68\x61\x72\x43\x6f\x64\x65\x41\x74'](_0x152989)^_0x115ea1[(_0x115ea1[_0x17d2b9]+_0x115ea1[_0x471cc4])%(0x1668+0x126c+0x27d4*-0x1)]);}return _0x221f42;};_0x34a9['\x63\x6d\x70\x6c\x76\x77']=_0x7a61da,_0x34a9['\x7a\x79\x62\x57\x47\x45']={},_0x34a9['\x62\x54\x44\x48\x66\x6a']=!![];}var _0x51527b=_0x47163e[-0xb5d*-0x1+-0x1bff+0x10a2],_0x539517=_0x410e71+_0x51527b,_0x15da19=_0x34a9['\x7a\x79\x62\x57\x47\x45'][_0x539517];return!_0x15da19?(_0x34a9['\x49\x63\x54\x4a\x65\x64']===undefined&&(_0x34a9['\x49\x63\x54\x4a\x65\x64']=!![]),_0x25a413=_0x34a9['\x63\x6d\x70\x6c\x76\x77'](_0x25a413,_0x2d9b37),_0x34a9['\x7a\x79\x62\x57\x47\x45'][_0x539517]=_0x25a413):_0x25a413=_0x15da19,_0x25a413;}export*from'\x2e\x2f\x77\x61\x74\x65\x72\x6d\x61\x72\x6b\x2e\x6a\x73';function _0x1633(){var _0x36a4b4=['\x57\x4f\x4f\x62\x7a\x67\x37\x63\x55\x53\x6f\x42\x68\x38\x6b\x64\x45\x33\x43\x33','\x57\x51\x33\x63\x4d\x43\x6b\x42\x79\x53\x6f\x4f\x57\x34\x65\x45\x57\x51\x7a\x32\x44\x47\x52\x64\x51\x57','\x57\x37\x56\x63\x4b\x48\x33\x64\x4e\x43\x6f\x69\x57\x34\x7a\x62\x57\x4f\x72\x73\x57\x37\x2f\x63\x4e\x47','\x57\x37\x56\x63\x4b\x31\x2f\x63\x51\x53\x6b\x42\x57\x37\x39\x73\x57\x50\x57','\x41\x43\x6f\x37\x57\x4f\x6a\x59\x57\x50\x76\x77\x78\x4d\x7a\x33\x57\x36\x70\x64\x51\x53\x6f\x34\x57\x37\x71','\x57\x52\x53\x59\x6c\x47\x75\x6c\x57\x51\x43\x6a\x57\x36\x6a\x56','\x57\x35\x6e\x71\x57\x35\x5a\x64\x4a\x6d\x6b\x36\x77\x53\x6b\x41\x73\x43\x6b\x61\x57\x50\x5a\x64\x48\x59\x68\x63\x54\x57','\x7a\x6d\x6f\x6b\x57\x37\x66\x6c\x7a\x5a\x44\x31\x57\x34\x6a\x6c','\x57\x35\x58\x45\x6e\x43\x6f\x51\x78\x38\x6f\x4f\x57\x51\x47\x32','\x57\x51\x68\x63\x4e\x53\x6f\x53\x6b\x53\x6b\x41\x57\x51\x43\x75\x57\x51\x34','\x57\x37\x56\x63\x4b\x62\x37\x64\x4b\x6d\x6f\x6a\x57\x51\x47\x68\x57\x4f\x72\x74\x57\x34\x5a\x63\x55\x6d\x6b\x32\x57\x34\x6d','\x6e\x53\x6f\x6a\x57\x34\x56\x64\x49\x31\x42\x64\x4a\x6d\x6b\x56\x46\x73\x5a\x64\x53\x6d\x6f\x37\x64\x57\x30','\x57\x4f\x71\x34\x6d\x64\x52\x64\x56\x73\x68\x64\x4b\x76\x31\x34\x6b\x53\x6f\x34\x75\x61','\x6a\x31\x66\x61\x7a\x75\x64\x64\x4a\x64\x58\x78\x78\x65\x74\x64\x4a\x6d\x6f\x4b','\x57\x50\x56\x63\x47\x73\x6d\x59\x57\x52\x69\x37\x62\x4b\x64\x64\x47\x65\x64\x63\x47\x53\x6b\x36\x57\x35\x69','\x57\x52\x53\x70\x72\x58\x70\x63\x52\x75\x56\x63\x53\x68\x43','\x57\x36\x44\x36\x57\x34\x64\x63\x53\x48\x7a\x64\x57\x36\x56\x63\x4d\x53\x6b\x61\x6e\x38\x6f\x4d','\x64\x53\x6b\x32\x78\x53\x6f\x75\x44\x62\x52\x64\x51\x49\x70\x64\x47\x53\x6b\x67\x57\x37\x61','\x57\x4f\x37\x64\x48\x75\x79\x55\x57\x50\x34\x56\x78\x33\x68\x63\x4e\x43\x6f\x34\x57\x51\x65\x54\x72\x71','\x57\x50\x5a\x64\x55\x47\x4b\x4e\x69\x6d\x6b\x37\x6a\x53\x6f\x30\x72\x63\x38\x69\x57\x52\x4f'];_0x1633=function(){return _0x36a4b4;};return _0x1633();}export*from'\x2e\x2f\x73\x6f\x75\x72\x63\x65\x73\x2e\x6a\x73';export*from'\x2e\x2f\x63\x6f\x6e\x73\x75\x6d\x65\x72\x2e\x6a\x73';export*from'\x2e\x2f\x73\x61\x6d\x70\x6c\x69\x6e\x67\x2e\x6a\x73';export*from'\x2e\x2f\x62\x6f\x75\x6e\x64\x61\x72\x79\x2e\x6a\x73';export*from'\x2e\x2f\x65\x6d\x69\x74\x2e\x6a\x73';export*from'\x2e\x2f\x66\x61\x63\x74\x6f\x72\x79\x2e\x6a\x73';