@evomap/evolver 1.89.3 → 1.89.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.cursor/BUGBOT.md +182 -0
- package/.env.example +68 -0
- package/.git-commit-guard-token +1 -0
- package/.github/CODEOWNERS +63 -0
- package/.github/ISSUE_TEMPLATE/good_first_issue.md +23 -0
- package/.github/pull_request_template.md +45 -0
- package/.github/workflows/test.yml +75 -0
- package/CHANGELOG.md +1237 -0
- package/README.md +86 -528
- package/README.public.md +569 -0
- package/SECURITY.md +108 -0
- package/assets/gep/events.jsonl +3 -0
- package/examples/atp-consumer-quickstart.md +100 -0
- package/examples/hello-world.md +38 -0
- package/index.js +30 -1
- package/package.json +6 -17
- package/proxy-package.json +39 -0
- package/public.manifest.json +143 -0
- package/src/config.js +23 -0
- package/src/evolve/guards.js +721 -1
- package/src/evolve/pipeline/collect.js +1283 -1
- package/src/evolve/pipeline/dispatch.js +421 -1
- package/src/evolve/pipeline/enrich.js +440 -1
- package/src/evolve/pipeline/hub.js +319 -1
- package/src/evolve/pipeline/select.js +274 -1
- package/src/evolve/pipeline/signals.js +206 -1
- package/src/evolve/utils.js +264 -1
- package/src/evolve.js +350 -1
- package/src/experiment/agentRunner.js +229 -0
- package/src/experiment/cli.js +159 -0
- package/src/experiment/comparison.js +233 -0
- package/src/experiment/metrics.js +75 -0
- package/src/forceUpdate.js +147 -59
- package/src/gep/a2aProtocol.js +4455 -1
- package/src/gep/antiAbuseTelemetry.js +233 -0
- package/src/gep/autoDistillConv.js +205 -1
- package/src/gep/autoDistillLlm.js +315 -1
- package/src/gep/candidateEval.js +92 -1
- package/src/gep/candidates.js +198 -1
- package/src/gep/contentHash.js +30 -1
- package/src/gep/conversationSniffer.js +266 -1
- package/src/gep/crypto.js +89 -1
- package/src/gep/curriculum.js +163 -1
- package/src/gep/deviceId.js +218 -1
- package/src/gep/envFingerprint.js +118 -1
- package/src/gep/epigenetics.js +31 -1
- package/src/gep/execBridge.js +711 -1
- package/src/gep/explore.js +289 -1
- package/src/gep/hash.js +15 -1
- package/src/gep/hubFetch.js +359 -1
- package/src/gep/hubReview.js +207 -1
- package/src/gep/hubSearch.js +526 -1
- package/src/gep/hubVerify.js +306 -1
- package/src/gep/learningSignals.js +89 -1
- package/src/gep/memoryGraph.js +1374 -1
- package/src/gep/memoryGraphAdapter.js +203 -1
- package/src/gep/mutation.js +203 -1
- package/src/gep/narrativeMemory.js +108 -1
- package/src/gep/openPRRegistry.js +205 -1
- package/src/gep/personality.js +423 -1
- package/src/gep/policyCheck.js +599 -1
- package/src/gep/prompt.js +836 -1
- package/src/gep/recallInject.js +409 -1
- package/src/gep/recallVerifier.js +318 -1
- package/src/gep/reflection.js +177 -1
- package/src/gep/sanitize.js +9 -0
- package/src/gep/selector.js +602 -1
- package/src/gep/skillDistiller.js +1294 -1
- package/src/gep/solidify.js +1699 -1
- package/src/gep/strategy.js +136 -1
- package/src/gep/tokenSavings.js +88 -1
- package/src/gep/validator/sandboxExecutor.js +29 -1
- package/src/gep/workspaceKeychain.js +174 -1
- package/src/proxy/extensions/traceControl.js +99 -1
- package/src/proxy/index.js +10 -1
- package/src/proxy/inject.js +52 -1
- package/src/proxy/lifecycle/manager.js +19 -0
- package/src/proxy/mailbox/store.js +2 -1
- package/src/proxy/router/messages_route.js +5 -2
- package/src/proxy/trace/extractor.js +646 -1
- package/src/proxy/trace/usage.js +105 -1
- package/CONTRIBUTING.md +0 -19
- package/assets/cover.png +0 -0
- package/scripts/a2a_export.js +0 -63
- package/scripts/a2a_ingest.js +0 -79
- package/scripts/a2a_promote.js +0 -118
- package/scripts/analyze_by_skill.js +0 -121
- package/scripts/build_binaries.js +0 -479
- package/scripts/check-changelog.js +0 -166
- package/scripts/extract_log.js +0 -85
- package/scripts/generate_history.js +0 -75
- package/scripts/gep_append_event.js +0 -96
- package/scripts/gep_personality_report.js +0 -234
- package/scripts/human_report.js +0 -147
- package/scripts/recall-verify-report.js +0 -234
- package/scripts/recover_loop.js +0 -61
- package/scripts/refresh_stars_badge.js +0 -168
- package/scripts/seed-merchants.js +0 -91
- package/scripts/suggest_version.js +0 -89
- package/scripts/validate-modules.js +0 -38
- package/scripts/validate-suite.js +0 -78
- package/skills/index.json +0 -14
- /package/assets/gep/{genes.seed.json → genes.json} +0 -0
- /package/{skills → bundled-skills}/_meta/SKILL.md +0 -0
package/src/gep/hubFetch.js
CHANGED
|
@@ -1 +1,359 @@
|
|
|
1
|
-
const _0x10e82c=_0x2026;(function(_0x34aad1,_0x21f19b){const _0x448232=_0x2026,_0x104e8d=_0x34aad1();while(!![]){try{const _0x100bd6=-parseInt(_0x448232(0x215,'\x6b\x4d\x54\x6c'))/(-0x1874+0x1849+0x2c)+parseInt(_0x448232(0x20d,'\x69\x55\x5e\x6f'))/(-0x1620+0x3f*0x3f+0x6a1)+-parseInt(_0x448232(0x23b,'\x34\x40\x49\x40'))/(-0x252b+-0xaa+0x25d8)+parseInt(_0x448232(0x218,'\x45\x6e\x64\x64'))/(0x190*-0x1+-0x1*-0xc0b+-0xa77*0x1)*(parseInt(_0x448232(0x20f,'\x49\x4c\x63\x72'))/(-0x1fb0+0x7*-0x4e5+-0x41f8*-0x1))+-parseInt(_0x448232(0x27c,'\x44\x42\x23\x4f'))/(-0x43a*0x3+0x3b*-0x11+0x109f)+parseInt(_0x448232(0x2a8,'\x7a\x4c\x64\x58'))/(-0xd*0x1ba+0x1962+0x1*-0x2e9)*(-parseInt(_0x448232(0x253,'\x46\x40\x76\x44'))/(-0x86*0x14+-0x1113+0x1b93))+-parseInt(_0x448232(0x242,'\x6f\x52\x5a\x4e'))/(-0xf6c+-0x47c+-0x5*-0x3fd)*(-parseInt(_0x448232(0x2de,'\x50\x25\x4b\x5d'))/(-0x13*0x74+-0x5*0x458+-0x256*-0xd));if(_0x100bd6===_0x21f19b)break;else _0x104e8d['push'](_0x104e8d['shift']());}catch(_0x4d70c3){_0x104e8d['push'](_0x104e8d['shift']());}}}(_0x2e64,-0xb400*0x6+0x5*0x15ddb+0x249b8));const _0x27810c=require(_0x10e82c(0x277,'\x63\x24\x36\x61')),{Agent:_0x2e2a4d,fetch:_0x363c58,buildConnector:_0x27b0fd}=require(_0x10e82c(0x1f2,'\x4d\x39\x62\x7a')),_0x3170e1={};_0x3170e1[_0x10e82c(0x217,'\x76\x66\x75\x33')+_0x10e82c(0x233,'\x72\x46\x61\x6f')+'\x65\x64']=!![],_0x3170e1[_0x10e82c(0x214,'\x69\x55\x5e\x6f')]=0x2710,_0x3170e1['\x61\x75\x74\x6f\x53\x65\x6c\x65'+'\x63\x74\x46\x61\x6d\x69\x6c\x79']=!![],_0x3170e1['\x61\x75\x74\x6f\x53\x65\x6c\x65'+_0x10e82c(0x2a7,'\x5b\x4c\x30\x56')+'\x41\x74\x74\x65\x6d\x70\x74\x54'+_0x10e82c(0x2d1,'\x5b\x4c\x30\x56')]=0xfa;const _0x5b448a=_0x3170e1,_0x44d8a2=_0x27b0fd(_0x5b448a);function _0x33b0f5(_0x1e9c51,_0x2480f4){const _0x1760a8=_0x10e82c,_0x31dd60={'\x43\x43\x61\x51\x6b':function(_0x24bedd,_0x2ffe25,_0x28693a){return _0x24bedd(_0x2ffe25,_0x28693a);},'\x71\x69\x5a\x4e\x56':function(_0xbe6660,_0x1e810e){return _0xbe6660===_0x1e810e;}};return _0x31dd60[_0x1760a8(0x251,'\x50\x25\x4b\x5d')](_0x44d8a2,_0x1e9c51,function(_0x3e60eb,_0x1b9c46){const _0x1abb27=_0x1760a8;if(_0x3e60eb)return _0x31dd60[_0x1abb27(0x249,'\x66\x64\x51\x68')](_0x2480f4,_0x3e60eb,_0x1b9c46);try{_0x1b9c46&&_0x31dd60['\x71\x69\x5a\x4e\x56'](typeof _0x1b9c46[_0x1abb27(0x223,'\x79\x57\x6e\x54')+'\x6c\x69\x76\x65'],_0x1abb27(0x2c6,'\x50\x25\x4b\x5d'))&&_0x1b9c46['\x73\x65\x74\x4b\x65\x65\x70\x41'+_0x1abb27(0x271,'\x7a\x7a\x49\x31')](!![],0x1c9*0x17+0x5547+0x2e*-0x179);}catch(_0x583786){}_0x31dd60[_0x1abb27(0x2a5,'\x6f\x48\x73\x4d')](_0x2480f4,null,_0x1b9c46);});}_0x33b0f5[_0x10e82c(0x24c,'\x45\x6e\x64\x64')+'\x61\x75\x74\x68\x6f\x72\x69\x7a'+'\x65\x64']=!![];function _0x48abe0(){const _0x334a8f=_0x10e82c,_0x240e02={};return _0x240e02[_0x334a8f(0x289,'\x30\x65\x6f\x70')]=_0x33b0f5,_0x240e02['\x6b\x65\x65\x70\x41\x6c\x69\x76'+_0x334a8f(0x20a,'\x51\x36\x26\x6b')]=0x2710,_0x240e02[_0x334a8f(0x292,'\x50\x25\x4b\x5d')+_0x334a8f(0x21d,'\x46\x40\x76\x44')+_0x334a8f(0x2cd,'\x6f\x52\x5a\x4e')]=0xea60,_0x240e02[_0x334a8f(0x202,'\x49\x4c\x63\x72')+_0x334a8f(0x1f5,'\x52\x54\x68\x35')]=0x7530,_0x240e02[_0x334a8f(0x286,'\x46\x40\x76\x44')+_0x334a8f(0x21c,'\x66\x64\x51\x68')]=0x7530,_0x240e02['\x70\x69\x70\x65\x6c\x69\x6e\x69'+'\x6e\x67']=0x1,new _0x2e2a4d(_0x240e02);}function _0x410607(){const _0x28a3fa=_0x10e82c,_0x12e93={'\x70\x64\x48\x65\x58':function(_0x17289e,_0x136217){return _0x17289e===_0x136217;},'\x42\x74\x74\x74\x4d':_0x28a3fa(0x2d5,'\x39\x38\x49\x35'),'\x4f\x4a\x61\x77\x68':_0x28a3fa(0x2f2,'\x6b\x4d\x54\x6c'),'\x54\x70\x65\x51\x49':_0x28a3fa(0x295,'\x52\x43\x32\x23'),'\x63\x42\x49\x50\x47':function(_0x74fdbc){return _0x74fdbc();},'\x74\x4f\x4d\x48\x41':_0x28a3fa(0x2e5,'\x76\x66\x75\x33'),'\x6e\x4c\x4e\x68\x44':_0x28a3fa(0x276,'\x76\x49\x63\x36')+_0x28a3fa(0x229,'\x64\x4c\x34\x51'),'\x42\x6b\x66\x47\x62':function(_0x2b1f2d,_0x3ea77c,_0xa409ff){return _0x2b1f2d(_0x3ea77c,_0xa409ff);}},_0x41a840=(function(){const _0x19ce54=_0x28a3fa,_0x4d7acc={'\x43\x75\x46\x58\x72':function(_0x46e334,_0x4e9f41){const _0x38a8d7=_0x2026;return _0x12e93[_0x38a8d7(0x2e6,'\x30\x40\x6c\x5a')](_0x46e334,_0x4e9f41);},'\x55\x61\x66\x59\x6e':_0x12e93[_0x19ce54(0x244,'\x41\x61\x42\x75')],'\x4f\x68\x70\x6d\x74':_0x12e93['\x4f\x4a\x61\x77\x68'],'\x6f\x62\x77\x57\x41':_0x12e93[_0x19ce54(0x220,'\x76\x66\x75\x33')]};let _0x563358=!![];return function(_0x510298,_0x843f97){const _0x3a595c=_0x19ce54,_0x4d1141={'\x6f\x79\x56\x61\x63':'\x28\x28\x28\x2e\x2b\x29\x2b\x29'+_0x3a595c(0x266,'\x28\x55\x29\x26'),'\x41\x63\x66\x51\x77':function(_0x24231e,_0x2df2c6){const _0x1ad3a3=_0x3a595c;return _0x4d7acc[_0x1ad3a3(0x2bb,'\x21\x24\x4f\x56')](_0x24231e,_0x2df2c6);},'\x4e\x6d\x6e\x59\x6e':_0x4d7acc[_0x3a595c(0x203,'\x45\x6e\x64\x64')],'\x44\x6b\x6b\x70\x49':_0x4d7acc[_0x3a595c(0x290,'\x6b\x4d\x54\x6c')]};if(_0x4d7acc[_0x3a595c(0x28d,'\x36\x56\x64\x38')]!==_0x4d7acc['\x6f\x62\x77\x57\x41'])return _0x48c26d['\x74\x6f\x53\x74\x72\x69\x6e\x67']()[_0x3a595c(0x27a,'\x48\x65\x2a\x21')](_0x3a595c(0x2a4,'\x4d\x39\x62\x7a')+'\x2b\x29\x2b\x24')[_0x3a595c(0x2df,'\x49\x25\x2a\x23')]()[_0x3a595c(0x237,'\x64\x4b\x2a\x24')+_0x3a595c(0x297,'\x28\x55\x29\x26')](_0x31256a)[_0x3a595c(0x29f,'\x76\x49\x63\x36')](Sibdwg[_0x3a595c(0x2b0,'\x48\x65\x2a\x21')]);else{const _0x3941c9=_0x563358?function(){const _0x4806a8=_0x3a595c;if(_0x843f97){if(_0x4d1141[_0x4806a8(0x2b1,'\x5d\x37\x43\x4c')](_0x4d1141[_0x4806a8(0x26c,'\x6e\x47\x51\x2a')],_0x4d1141[_0x4806a8(0x228,'\x72\x46\x61\x6f')]))return _0x25d68c;else{const _0xc7649d=_0x843f97[_0x4806a8(0x258,'\x21\x24\x4f\x56')](_0x510298,arguments);return _0x843f97=null,_0xc7649d;}}}:function(){};return _0x563358=![],_0x3941c9;}};}()),_0x33e45f=_0x12e93[_0x28a3fa(0x299,'\x49\x25\x2a\x23')](_0x41a840,this,function(){const _0x2abd30=_0x28a3fa,_0x472c0f={'\x71\x41\x78\x70\x76':function(_0x57f601){const _0x17d61c=_0x2026;return _0x12e93[_0x17d61c(0x2c1,'\x4d\x6d\x63\x38')](_0x57f601);}};if(_0x12e93[_0x2abd30(0x278,'\x7a\x7a\x49\x31')]!==_0x12e93[_0x2abd30(0x250,'\x64\x4b\x2a\x24')])try{_0x472c0f[_0x2abd30(0x1f3,'\x61\x71\x2a\x71')](_0x3ddf5a);}catch(_0x1a39cd){}else return _0x33e45f[_0x2abd30(0x2c2,'\x64\x4c\x34\x51')]()['\x73\x65\x61\x72\x63\x68'](_0x12e93[_0x2abd30(0x2db,'\x66\x64\x51\x68')])[_0x2abd30(0x22c,'\x46\x71\x24\x45')]()[_0x2abd30(0x237,'\x64\x4b\x2a\x24')+_0x2abd30(0x21a,'\x52\x43\x32\x23')](_0x33e45f)['\x73\x65\x61\x72\x63\x68'](_0x12e93[_0x2abd30(0x28c,'\x41\x61\x42\x75')]);});_0x12e93[_0x28a3fa(0x235,'\x52\x54\x68\x35')](_0x33e45f);const _0x4eded2={};return _0x4eded2[_0x28a3fa(0x2a9,'\x4d\x39\x62\x7a')]=_0x33b0f5,_0x4eded2[_0x28a3fa(0x2e3,'\x66\x64\x51\x68')+_0x28a3fa(0x2d2,'\x72\x46\x61\x6f')]=0x2710,_0x4eded2['\x6b\x65\x65\x70\x41\x6c\x69\x76'+_0x28a3fa(0x2ba,'\x48\x65\x2a\x21')+'\x6f\x75\x74']=0xea60,_0x4eded2[_0x28a3fa(0x2ae,'\x72\x46\x61\x6f')+_0x28a3fa(0x22b,'\x69\x55\x5e\x6f')]=0xfde8,_0x4eded2[_0x28a3fa(0x22d,'\x49\x4c\x63\x72')+_0x28a3fa(0x2b4,'\x4d\x6d\x63\x38')]=0xfde8,_0x4eded2[_0x28a3fa(0x263,'\x56\x29\x75\x50')+'\x6e\x67']=0x1,new _0x2e2a4d(_0x4eded2);}function _0x551e92(){const _0x251316=_0x10e82c,_0x3b7743={};return _0x3b7743[_0x251316(0x1ff,'\x52\x43\x32\x23')]=_0x33b0f5,_0x3b7743[_0x251316(0x213,'\x7a\x7a\x49\x31')+_0x251316(0x231,'\x52\x54\x68\x35')]=0x2710,_0x3b7743[_0x251316(0x1f7,'\x30\x40\x6c\x5a')+_0x251316(0x2d9,'\x73\x76\x5a\x56')+_0x251316(0x1f6,'\x6f\x48\x73\x4d')]=0xea60,_0x3b7743['\x68\x65\x61\x64\x65\x72\x73\x54'+_0x251316(0x22a,'\x34\x40\x49\x40')]=0xafc8,_0x3b7743[_0x251316(0x24a,'\x6b\x4d\x54\x6c')+_0x251316(0x26d,'\x52\x43\x32\x23')]=0xafc8,_0x3b7743['\x70\x69\x70\x65\x6c\x69\x6e\x69'+'\x6e\x67']=0x1,new _0x2e2a4d(_0x3b7743);}function _0x2e64(){const _0x3c23b1=['\x77\x6d\x6f\x56\x57\x50\x2f\x63\x51\x53\x6f\x6c\x57\x34\x68\x63\x56\x38\x6b\x72','\x41\x77\x5a\x64\x4e\x62\x46\x63\x4e\x31\x58\x70\x43\x57','\x6b\x64\x6e\x48\x57\x50\x69\x44\x71\x4a\x70\x64\x4b\x4b\x52\x64\x56\x4a\x34','\x57\x51\x46\x64\x55\x38\x6f\x43\x57\x50\x52\x64\x53\x33\x68\x64\x48\x76\x53','\x57\x52\x79\x41\x57\x36\x69','\x66\x38\x6f\x2f\x57\x35\x4f','\x68\x49\x68\x63\x48\x71','\x57\x34\x30\x32\x57\x4f\x4c\x66\x71\x53\x6f\x74\x69\x76\x38','\x69\x78\x68\x64\x56\x6d\x6f\x2b\x57\x35\x4f','\x45\x67\x4a\x64\x47\x57\x68\x63\x4d\x71','\x74\x33\x4e\x64\x4b\x59\x70\x63\x54\x71','\x57\x4f\x72\x4e\x57\x35\x6a\x4e\x57\x37\x56\x63\x48\x53\x6f\x6d\x68\x75\x66\x63\x44\x30\x46\x64\x4c\x47','\x57\x35\x79\x6c\x57\x52\x5a\x63\x55\x67\x6d','\x6c\x4c\x4f\x72\x7a\x43\x6f\x7a\x57\x4f\x42\x63\x4b\x5a\x4f','\x71\x71\x48\x38\x57\x35\x57\x50','\x57\x37\x4a\x64\x56\x43\x6b\x77\x57\x51\x2f\x64\x4f\x71','\x57\x50\x72\x71\x57\x36\x78\x63\x56\x43\x6b\x35\x6f\x4a\x6c\x64\x51\x47','\x41\x47\x48\x4d\x57\x36\x4f\x52','\x6b\x53\x6f\x36\x57\x51\x37\x63\x55\x53\x6f\x47','\x57\x37\x46\x63\x48\x76\x4e\x64\x4a\x57','\x6a\x32\x33\x64\x4c\x43\x6b\x79\x57\x51\x37\x63\x4d\x61','\x46\x38\x6f\x75\x57\x35\x35\x6b\x57\x35\x52\x63\x4d\x47','\x57\x4f\x6a\x65\x6b\x63\x46\x64\x49\x38\x6f\x65\x41\x78\x57','\x63\x63\x37\x64\x48\x43\x6b\x33\x46\x38\x6f\x36\x7a\x6d\x6f\x6a','\x41\x71\x7a\x66\x57\x37\x57\x2f\x77\x4e\x4b','\x57\x50\x74\x64\x52\x43\x6b\x62\x76\x6d\x6f\x55\x57\x35\x69\x6f\x6d\x61','\x7a\x71\x74\x63\x4f\x43\x6f\x63\x57\x52\x34','\x57\x36\x78\x64\x47\x38\x6b\x33\x57\x50\x68\x63\x54\x57\x62\x62\x44\x61','\x57\x35\x58\x50\x57\x51\x54\x67\x57\x52\x4b\x39\x57\x50\x43\x38','\x64\x38\x6f\x4b\x57\x52\x68\x63\x4f\x53\x6f\x67\x57\x35\x75\x30\x6c\x47','\x70\x62\x6c\x64\x4e\x43\x6f\x51','\x57\x36\x70\x64\x4c\x43\x6b\x78\x57\x51\x5a\x63\x4c\x71','\x57\x36\x4e\x64\x55\x4d\x31\x72\x74\x65\x42\x63\x52\x6d\x6b\x4b','\x57\x52\x78\x63\x50\x66\x69\x46\x57\x37\x53\x52\x76\x38\x6b\x66','\x78\x4e\x78\x63\x4b\x38\x6f\x2f\x67\x6d\x6b\x4d\x77\x38\x6f\x6b\x57\x37\x70\x64\x50\x6d\x6b\x47\x6f\x57','\x6d\x43\x6f\x34\x57\x52\x42\x63\x48\x6d\x6f\x6d\x57\x35\x6d\x51\x6f\x57','\x57\x51\x2f\x64\x4d\x61\x64\x63\x47\x53\x6b\x78\x64\x5a\x4c\x61','\x46\x5a\x46\x63\x48\x6d\x6f\x65\x57\x36\x4a\x64\x4c\x62\x4e\x63\x55\x58\x56\x63\x51\x6d\x6f\x7a\x57\x52\x43\x4f','\x71\x32\x6d\x57\x57\x35\x6a\x30','\x57\x51\x6a\x44\x64\x47\x42\x64\x51\x57','\x62\x4c\x43\x71\x74\x6d\x6f\x36\x57\x4f\x42\x63\x4c\x58\x47','\x66\x78\x74\x63\x50\x6d\x6b\x43\x57\x51\x52\x63\x53\x43\x6f\x51','\x43\x72\x4a\x63\x4d\x53\x6b\x77\x57\x37\x34','\x67\x33\x78\x63\x55\x38\x6b\x66\x57\x4f\x79','\x43\x63\x4e\x63\x51\x6d\x6f\x4f\x57\x37\x50\x34\x57\x4f\x56\x63\x4c\x71\x79','\x71\x6d\x6b\x2b\x57\x52\x33\x63\x4d\x53\x6b\x55\x57\x50\x37\x64\x51\x38\x6b\x52','\x57\x34\x75\x30\x57\x37\x33\x64\x52\x38\x6f\x6e','\x7a\x76\x52\x64\x52\x48\x33\x64\x47\x4b\x62\x51\x79\x71','\x6f\x75\x46\x63\x4f\x53\x6b\x45\x57\x4f\x57','\x7a\x74\x64\x64\x47\x4d\x79\x35\x57\x51\x71','\x57\x37\x53\x5a\x57\x51\x7a\x70\x78\x61','\x6d\x48\x46\x63\x4b\x6d\x6b\x46\x57\x4f\x30','\x6b\x53\x6f\x48\x57\x36\x47\x31\x57\x36\x70\x63\x54\x38\x6b\x77\x43\x71','\x57\x52\x4c\x30\x57\x34\x46\x63\x4b\x71','\x79\x4d\x43\x2b\x57\x34\x39\x67\x79\x49\x37\x64\x4e\x47','\x63\x5a\x6d\x48\x76\x43\x6f\x51','\x57\x4f\x47\x59\x57\x35\x78\x63\x52\x38\x6b\x6e','\x73\x72\x68\x63\x4d\x53\x6b\x68\x57\x35\x33\x64\x51\x57\x50\x64','\x57\x51\x6c\x63\x48\x68\x65\x4b\x57\x34\x34','\x72\x47\x30\x6b\x57\x52\x74\x64\x48\x47','\x57\x34\x4f\x4e\x57\x51\x33\x63\x54\x4b\x2f\x64\x49\x6d\x6b\x4c\x79\x71','\x57\x50\x50\x6b\x57\x35\x61\x70\x6c\x38\x6b\x63\x45\x65\x2f\x63\x4e\x4b\x79\x35\x46\x66\x38','\x57\x36\x48\x71\x57\x36\x76\x69\x57\x52\x47\x4e\x57\x4f\x58\x59','\x57\x35\x53\x70\x57\x50\x50\x75\x44\x43\x6f\x6f\x62\x65\x34','\x75\x73\x53\x79\x57\x50\x65','\x57\x35\x66\x67\x57\x36\x5a\x64\x4a\x32\x4b\x35\x57\x35\x56\x63\x53\x57','\x57\x36\x6a\x36\x57\x52\x5a\x64\x4a\x4d\x75','\x57\x4f\x43\x32\x57\x35\x2f\x63\x4c\x38\x6b\x56\x57\x37\x44\x37\x57\x34\x38','\x57\x51\x4a\x63\x4a\x62\x70\x64\x49\x38\x6b\x70\x63\x74\x58\x70','\x57\x36\x79\x31\x57\x50\x6a\x30\x57\x4f\x33\x64\x51\x6d\x6b\x30\x6e\x57','\x7a\x48\x64\x63\x47\x6d\x6b\x6c\x57\x35\x37\x64\x56\x61\x58\x70','\x76\x43\x6f\x71\x57\x37\x35\x53\x57\x36\x75','\x57\x51\x52\x63\x50\x72\x4a\x64\x52\x63\x4f','\x57\x52\x79\x41\x57\x52\x64\x63\x55\x38\x6b\x79\x57\x35\x76\x46\x57\x36\x38','\x57\x51\x78\x64\x48\x61\x56\x63\x4a\x53\x6b\x44','\x68\x76\x6c\x63\x50\x38\x6b\x66\x57\x51\x47','\x57\x34\x4e\x64\x4b\x38\x6b\x2f\x57\x36\x6c\x63\x52\x77\x33\x64\x53\x43\x6b\x35','\x57\x50\x56\x63\x55\x47\x70\x64\x4b\x73\x2f\x64\x4e\x76\x4c\x35','\x57\x51\x6a\x76\x57\x37\x4b\x38\x61\x57','\x6b\x38\x6f\x55\x57\x4f\x37\x64\x56\x6d\x6b\x55\x57\x52\x4a\x64\x4b\x6d\x6b\x58','\x57\x52\x46\x63\x4f\x63\x6e\x76','\x57\x4f\x78\x64\x52\x43\x6b\x7a\x73\x53\x6f\x74','\x57\x36\x52\x64\x56\x6d\x6b\x42\x57\x50\x78\x63\x4d\x4c\x68\x64\x4e\x43\x6f\x6b','\x6e\x4d\x64\x64\x52\x38\x6f\x67\x57\x37\x75','\x57\x52\x74\x64\x4d\x61\x42\x63\x4d\x38\x6b\x6b\x75\x47','\x67\x43\x6f\x49\x57\x35\x79\x38\x57\x37\x4f','\x57\x37\x53\x39\x57\x4f\x47\x6e\x57\x51\x79','\x57\x51\x30\x61\x57\x36\x71','\x57\x51\x37\x63\x4b\x63\x42\x64\x50\x47\x42\x63\x49\x71\x79\x57','\x57\x52\x53\x2f\x57\x37\x4a\x63\x54\x31\x57\x71\x57\x50\x78\x64\x4d\x71','\x57\x35\x79\x4b\x57\x52\x42\x63\x50\x47\x37\x64\x47\x6d\x6b\x4d\x7a\x47','\x57\x34\x72\x50\x57\x51\x35\x7a','\x57\x52\x56\x63\x4b\x74\x37\x64\x56\x62\x75','\x57\x35\x47\x41\x57\x50\x58\x76\x45\x6d\x6f\x42\x69\x76\x38','\x57\x50\x4c\x34\x57\x36\x78\x63\x4f\x43\x6b\x69\x69\x73\x5a\x64\x4d\x57','\x57\x35\x34\x30\x57\x52\x4a\x63\x54\x30\x2f\x64\x55\x43\x6b\x4e\x41\x57','\x57\x4f\x43\x43\x62\x43\x6f\x75\x57\x36\x62\x70\x57\x36\x4a\x64\x48\x71','\x45\x47\x33\x63\x4d\x38\x6b\x76\x57\x36\x47','\x57\x35\x58\x70\x57\x50\x76\x30\x57\x50\x71','\x6e\x58\x4a\x64\x4d\x6d\x6f\x52\x7a\x53\x6f\x46\x6b\x78\x61','\x57\x35\x66\x52\x57\x34\x79\x74\x6c\x33\x53','\x68\x4a\x46\x63\x4d\x53\x6f\x55\x57\x4f\x37\x64\x56\x53\x6b\x4f\x57\x52\x30','\x57\x50\x38\x53\x64\x53\x6f\x70\x77\x61\x61\x6d\x57\x52\x4b\x4b\x57\x37\x42\x64\x4f\x38\x6b\x59\x7a\x71','\x57\x37\x61\x45\x57\x51\x6d\x61\x57\x4f\x5a\x64\x53\x43\x6b\x53\x6e\x61','\x42\x73\x30\x67\x57\x4f\x42\x64\x4f\x47','\x63\x43\x6f\x6e\x57\x34\x71','\x57\x4f\x35\x2b\x70\x48\x4a\x64\x52\x47','\x45\x67\x42\x64\x4b\x48\x43','\x57\x36\x72\x63\x57\x50\x74\x64\x4f\x76\x38','\x57\x4f\x2f\x64\x52\x43\x6b\x68\x74\x43\x6f\x5a\x57\x4f\x38','\x57\x35\x42\x64\x4b\x6d\x6b\x5a\x57\x37\x37\x63\x54\x33\x61','\x73\x43\x6f\x69\x57\x52\x78\x63\x51\x6d\x6b\x54\x46\x53\x6b\x4f\x6c\x71','\x57\x34\x4f\x75\x57\x4f\x58\x65\x71\x53\x6f\x74\x69\x76\x38','\x57\x4f\x5a\x63\x4e\x31\x30\x43\x57\x35\x47','\x44\x68\x5a\x64\x47\x47','\x57\x35\x4b\x50\x57\x52\x46\x63\x53\x65\x74\x64\x49\x53\x6b\x38','\x41\x57\x4e\x63\x55\x38\x6f\x75\x57\x37\x75\x38\x7a\x6d\x6b\x4d','\x57\x35\x79\x58\x57\x50\x69\x33\x57\x51\x61','\x57\x36\x4b\x6d\x57\x34\x46\x64\x53\x38\x6f\x65','\x6d\x65\x64\x63\x4f\x43\x6b\x51\x57\x51\x75','\x57\x51\x68\x64\x4d\x38\x6b\x38\x76\x6d\x6f\x70','\x7a\x38\x6f\x56\x57\x52\x34\x54\x57\x50\x4a\x63\x53\x38\x6b\x41\x46\x71','\x62\x38\x6f\x4d\x57\x37\x57\x48\x57\x34\x6d','\x6b\x4b\x64\x63\x47\x38\x6b\x6a\x57\x4f\x6d','\x42\x49\x53\x6f\x57\x50\x78\x64\x52\x6d\x6b\x54\x57\x51\x2f\x63\x4a\x71','\x57\x51\x6e\x67\x57\x36\x68\x63\x52\x43\x6b\x41\x6c\x74\x78\x64\x4e\x71','\x57\x4f\x38\x70\x57\x51\x56\x64\x54\x53\x6f\x38\x34\x4f\x67\x43\x79\x43\x6f\x7a','\x57\x51\x34\x54\x57\x37\x74\x63\x4d\x6d\x6b\x32','\x57\x51\x7a\x2b\x57\x34\x30\x32\x6d\x6d\x6b\x6d\x66\x61','\x57\x36\x4a\x64\x50\x4e\x4f','\x57\x34\x39\x57\x57\x4f\x48\x4b\x57\x34\x34\x67\x57\x35\x68\x64\x50\x47','\x72\x49\x4a\x64\x4c\x30\x47\x38','\x73\x4e\x70\x63\x51\x73\x5a\x64\x4e\x61','\x57\x35\x2f\x64\x50\x53\x6b\x51\x57\x4f\x2f\x64\x49\x6d\x6f\x39\x44\x38\x6f\x56','\x65\x63\x68\x63\x48\x43\x6b\x4d\x57\x4f\x4e\x64\x55\x43\x6b\x4a\x57\x36\x43','\x75\x61\x4e\x63\x4e\x53\x6b\x44\x57\x35\x43','\x57\x34\x61\x4d\x57\x34\x48\x31\x79\x38\x6f\x79\x42\x67\x38','\x57\x35\x58\x72\x74\x6d\x6b\x69\x57\x51\x47\x6f','\x45\x48\x4a\x63\x4e\x61','\x57\x4f\x7a\x6b\x63\x58\x78\x64\x4f\x61','\x57\x34\x52\x63\x4d\x74\x34\x78\x79\x47','\x57\x35\x43\x45\x57\x50\x42\x63\x50\x68\x47','\x57\x34\x2f\x63\x53\x43\x6f\x42\x65\x38\x6b\x52\x57\x50\x58\x6d\x46\x57','\x79\x32\x56\x63\x53\x4c\x69\x68','\x57\x37\x53\x77\x57\x4f\x42\x63\x4c\x4e\x74\x64\x51\x38\x6b\x78\x72\x71','\x57\x36\x42\x64\x51\x38\x6b\x32\x57\x35\x74\x63\x4e\x30\x33\x64\x4b\x38\x6b\x74','\x57\x36\x42\x63\x50\x53\x6f\x2b\x57\x50\x74\x64\x50\x4b\x52\x64\x56\x4b\x65','\x57\x4f\x74\x64\x54\x53\x6b\x44\x75\x38\x6f\x4c\x57\x35\x79\x74','\x43\x30\x64\x64\x4d\x57\x6c\x63\x4b\x67\x35\x31\x42\x57','\x45\x58\x42\x63\x50\x43\x6b\x65\x57\x36\x47','\x57\x35\x34\x76\x57\x35\x4a\x63\x4c\x73\x4c\x58\x57\x36\x46\x64\x53\x71','\x6b\x65\x64\x64\x4c\x6d\x6f\x67\x57\x35\x71','\x62\x53\x6f\x30\x57\x51\x74\x63\x52\x53\x6f\x6d\x57\x35\x75\x55\x61\x61','\x6a\x5a\x6c\x64\x47\x6d\x6b\x43\x45\x61','\x57\x34\x31\x33\x57\x37\x65\x61\x6c\x57','\x57\x36\x54\x39\x57\x4f\x48\x41\x57\x34\x53','\x77\x68\x43\x4c\x57\x36\x4c\x2f','\x57\x34\x72\x38\x74\x71','\x57\x50\x6e\x61\x57\x37\x61','\x6b\x73\x4b\x74\x43\x6d\x6f\x63','\x7a\x61\x52\x63\x4f\x6d\x6f\x70\x57\x52\x69','\x61\x6d\x6f\x37\x57\x37\x30\x70\x57\x36\x30','\x57\x36\x37\x64\x52\x67\x69\x75\x72\x30\x42\x63\x4a\x43\x6b\x36','\x57\x35\x30\x5a\x57\x4f\x53\x33\x57\x4f\x43','\x57\x34\x44\x64\x57\x34\x79\x7a\x67\x68\x52\x63\x4c\x31\x75','\x57\x34\x62\x2f\x57\x4f\x52\x64\x55\x4d\x34','\x45\x68\x43\x32\x57\x36\x58\x61\x79\x48\x4a\x64\x4d\x61','\x6b\x53\x6f\x68\x57\x35\x52\x63\x54\x43\x6b\x79\x57\x34\x37\x64\x53\x43\x6b\x74','\x46\x4c\x33\x64\x4e\x58\x2f\x63\x4d\x75\x44\x56\x41\x71','\x71\x38\x6f\x4a\x57\x34\x6e\x2f\x57\x37\x4b','\x79\x57\x54\x62','\x57\x50\x39\x33\x57\x34\x33\x63\x49\x43\x6b\x42','\x57\x51\x4a\x64\x47\x59\x68\x63\x4e\x38\x6b\x6c\x61\x74\x35\x62','\x57\x34\x50\x56\x57\x35\x71','\x61\x73\x74\x64\x48\x6d\x6b\x2b\x41\x53\x6f\x2f\x79\x6d\x6f\x41','\x45\x61\x35\x67\x57\x35\x69\x51\x73\x32\x74\x63\x50\x47','\x79\x5a\x53\x66\x57\x4f\x42\x64\x4d\x43\x6b\x4f\x57\x51\x4e\x63\x4c\x71','\x57\x34\x79\x55\x57\x37\x69\x5a\x61\x63\x4e\x64\x4d\x47','\x7a\x71\x74\x63\x53\x6d\x6f\x76\x57\x4f\x34\x36\x46\x6d\x6b\x33','\x6a\x43\x6f\x77\x57\x34\x6d\x32\x57\x36\x34','\x57\x52\x37\x63\x4c\x48\x57\x4b\x57\x37\x4f\x37\x61\x53\x6b\x5a','\x57\x36\x62\x4c\x57\x51\x6c\x64\x4a\x68\x4b\x50\x57\x35\x53','\x6c\x38\x6f\x50\x57\x50\x2f\x63\x4f\x6d\x6f\x46','\x6b\x4d\x33\x64\x52\x57','\x69\x5a\x6e\x4b\x57\x50\x57\x77\x6a\x75\x4e\x64\x51\x68\x33\x64\x56\x4a\x78\x63\x48\x6d\x6b\x43','\x45\x43\x6f\x6d\x57\x35\x76\x62','\x57\x50\x66\x4a\x69\x58\x64\x64\x55\x47','\x57\x36\x5a\x64\x53\x53\x6b\x76\x57\x35\x52\x63\x48\x31\x61','\x63\x38\x6f\x66\x57\x51\x5a\x63\x50\x38\x6f\x6d\x57\x34\x47\x4f\x69\x61','\x57\x51\x47\x48\x57\x52\x56\x64\x55\x53\x6b\x56\x57\x52\x76\x62\x6a\x61','\x63\x76\x64\x63\x50\x38\x6b\x4c\x57\x4f\x43','\x57\x34\x7a\x51\x76\x53\x6b\x41\x57\x52\x4b','\x57\x36\x6c\x64\x55\x6d\x6b\x36\x57\x4f\x78\x63\x48\x47\x7a\x7a\x7a\x71','\x6f\x47\x70\x64\x52\x6d\x6b\x67\x46\x71','\x7a\x5a\x39\x6e\x57\x35\x38\x39','\x6f\x49\x47\x58\x79\x43\x6f\x57\x42\x43\x6b\x2f\x63\x71','\x57\x34\x5a\x64\x54\x43\x6b\x57\x57\x4f\x4a\x64\x47\x47','\x68\x58\x4a\x63\x56\x38\x6b\x4d\x57\x51\x69','\x57\x52\x6e\x78\x57\x34\x57\x38\x63\x38\x6b\x46\x66\x43\x6b\x57','\x57\x35\x75\x32\x57\x35\x52\x64\x54\x53\x6f\x62','\x6e\x4e\x54\x44\x57\x35\x74\x63\x4c\x6d\x6f\x58\x57\x4f\x4a\x63\x55\x6d\x6b\x67\x43\x4d\x53\x78','\x43\x63\x5a\x64\x4f\x4e\x53\x53\x57\x51\x6d\x49\x57\x4f\x38','\x79\x4b\x43\x64\x57\x34\x54\x4f','\x57\x34\x46\x64\x52\x38\x6b\x62\x57\x34\x33\x63\x56\x47','\x67\x62\x65\x33\x79\x6d\x6f\x70','\x67\x4a\x68\x63\x4c\x6d\x6b\x2b\x57\x51\x46\x64\x50\x38\x6b\x4a\x57\x36\x53','\x76\x75\x52\x63\x47\x67\x61\x65\x42\x32\x65\x4f','\x42\x67\x33\x64\x52\x4a\x4a\x63\x54\x47','\x57\x35\x2f\x64\x53\x6d\x6b\x6e\x57\x50\x37\x64\x56\x57','\x57\x51\x33\x63\x56\x76\x4f\x41\x78\x77\x64\x63\x4a\x43\x6b\x4e','\x75\x57\x4a\x64\x55\x32\x38\x64\x41\x77\x30\x48','\x57\x50\x5a\x63\x4d\x59\x4e\x64\x55\x47\x30','\x57\x36\x33\x64\x56\x53\x6b\x64','\x57\x52\x61\x77\x57\x50\x61\x34\x63\x53\x6b\x44\x67\x43\x6b\x35','\x6f\x4a\x70\x64\x4e\x43\x6f\x77\x71\x47','\x57\x52\x4e\x64\x4d\x63\x52\x63\x49\x6d\x6b\x59','\x57\x35\x64\x64\x4b\x43\x6b\x30\x57\x36\x52\x63\x54\x33\x42\x64\x52\x43\x6b\x31','\x57\x36\x54\x35\x57\x4f\x54\x4c\x57\x34\x47','\x46\x71\x5a\x63\x4d\x57','\x57\x37\x62\x2b\x57\x52\x37\x64\x49\x33\x69\x54\x57\x34\x42\x64\x54\x71','\x64\x38\x6f\x70\x57\x37\x34\x62\x57\x37\x57','\x57\x37\x4a\x64\x53\x38\x6b\x45\x57\x50\x37\x63\x53\x68\x33\x64\x4e\x76\x43','\x41\x62\x2f\x64\x54\x61','\x57\x34\x78\x64\x4e\x38\x6b\x72\x57\x51\x2f\x63\x48\x4a\x50\x36\x75\x47','\x57\x4f\x2f\x64\x56\x38\x6f\x73\x57\x34\x33\x64\x55\x47','\x57\x50\x6c\x64\x54\x38\x6b\x78\x76\x6d\x6f\x4a\x57\x35\x57','\x75\x38\x6f\x53\x57\x51\x4a\x63\x51\x6d\x6b\x41','\x57\x51\x57\x39\x57\x50\x33\x63\x49\x4e\x50\x2b\x57\x51\x4e\x64\x53\x57','\x57\x36\x4e\x64\x55\x53\x6b\x37\x57\x50\x70\x63\x50\x58\x53','\x74\x31\x33\x63\x50\x57','\x57\x34\x74\x64\x53\x43\x6b\x47\x57\x4f\x56\x64\x50\x53\x6f\x59\x43\x43\x6f\x31','\x67\x68\x57\x57\x46\x6d\x6f\x35\x57\x35\x37\x64\x4b\x4c\x53','\x77\x62\x33\x63\x54\x43\x6f\x61\x57\x52\x6d\x33\x43\x6d\x6b\x4d','\x43\x30\x56\x63\x54\x43\x6b\x6d\x57\x51\x57\x59\x46\x43\x6b\x37','\x65\x4a\x78\x63\x48\x6d\x6b\x39\x57\x4f\x6d','\x75\x6d\x6f\x4f\x57\x4f\x46\x63\x55\x43\x6b\x48','\x57\x34\x6a\x48\x57\x52\x2f\x64\x49\x65\x4f','\x57\x34\x31\x65\x57\x4f\x56\x64\x4b\x4a\x62\x55\x57\x4f\x4e\x64\x4e\x38\x6f\x74\x46\x58\x4c\x61','\x57\x51\x65\x41\x57\x37\x37\x63\x54\x38\x6b\x65\x57\x34\x7a\x6b','\x73\x75\x78\x63\x54\x4d\x57\x7a\x46\x47','\x79\x47\x56\x63\x47\x6d\x6b\x72\x57\x37\x74\x64\x52\x72\x66\x6d','\x61\x49\x74\x64\x47\x6d\x6b\x51\x74\x53\x6f\x48\x45\x53\x6f\x34','\x72\x77\x6d\x59\x57\x37\x6e\x6c','\x62\x73\x2f\x64\x4a\x43\x6b\x33\x61\x53\x6b\x39','\x42\x72\x70\x64\x52\x53\x6f\x70\x57\x35\x33\x64\x48\x58\x78\x64\x55\x43\x6f\x36\x74\x43\x6f\x51\x57\x51\x75\x6e','\x57\x50\x65\x65\x57\x34\x4b','\x6b\x63\x30\x6b\x76\x38\x6f\x51','\x57\x36\x58\x36\x57\x34\x61\x6e\x70\x57','\x57\x35\x76\x31\x72\x38\x6b\x43\x64\x57','\x68\x43\x6f\x46\x57\x50\x70\x63\x53\x43\x6b\x6f\x57\x4f\x68\x64\x51\x53\x6b\x69','\x74\x73\x35\x51\x57\x35\x53\x79\x42\x66\x78\x63\x4b\x57','\x45\x68\x74\x63\x51\x33\x78\x64\x4e\x31\x79\x2b\x72\x61','\x69\x6d\x6b\x69\x57\x4f\x69\x71\x57\x50\x46\x63\x4c\x6d\x6b\x2b\x72\x6d\x6f\x72\x57\x50\x33\x64\x4c\x47','\x78\x65\x34\x42\x57\x37\x31\x36\x78\x5a\x78\x64\x4f\x57','\x75\x4e\x74\x64\x50\x53\x6b\x69\x42\x53\x6f\x4a\x46\x43\x6f\x37','\x57\x50\x33\x63\x4e\x5a\x64\x64\x4e\x73\x75','\x57\x50\x30\x45\x57\x35\x4e\x63\x48\x47','\x44\x33\x4e\x63\x4e\x49\x62\x2b\x34\x4f\x6f\x45\x42\x6d\x6b\x70','\x57\x34\x6e\x4c\x57\x52\x31\x6d\x57\x50\x74\x63\x4c\x77\x6d\x44','\x79\x53\x6f\x71\x57\x35\x7a\x61\x57\x34\x64\x63\x4d\x38\x6b\x6c','\x46\x6d\x6b\x36\x57\x52\x35\x39\x57\x4f\x74\x64\x51\x38\x6b\x50\x43\x4b\x42\x64\x47\x61\x4a\x63\x49\x61'];_0x2e64=function(){return _0x3c23b1;};return _0x2e64();}const _0x314416={};_0x314416[_0x10e82c(0x2b8,'\x28\x55\x29\x26')+_0x10e82c(0x29c,'\x66\x64\x51\x68')+'\x65\x64']=!![];const _0x23d18f=new _0x27810c[(_0x10e82c(0x2ef,'\x5d\x37\x43\x4c'))](_0x314416);let _0x42f280=_0x48abe0(),_0x11ace4=_0x410607(),_0x284ca6=_0x551e92();function _0x2026(_0x4d62f7,_0x574fac){_0x4d62f7=_0x4d62f7-(0x1*-0x23d+-0x5+0x433);const _0x205336=_0x2e64();let _0x1e1e51=_0x205336[_0x4d62f7];if(_0x2026['\x58\x4b\x53\x70\x73\x68']===undefined){var _0x5a53c4=function(_0x4ea474){const _0x499a14='\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 _0x1c10ce='',_0x142b5f='',_0x4df250=_0x1c10ce+_0x5a53c4,_0x3caf48=(''+function(){return 0xcbb*-0x1+0x2024+0x1369*-0x1;})['\x69\x6e\x64\x65\x78\x4f\x66']('\x0a')!==-(-0x19da+-0xf92*0x2+0x38ff);for(let _0x3e41b2=0x1843+0x2119+0x395c*-0x1,_0x3a7948,_0x351d71,_0x1d7676=-0x19d1+-0x6f1+0x1061*0x2;_0x351d71=_0x4ea474['\x63\x68\x61\x72\x41\x74'](_0x1d7676++);~_0x351d71&&(_0x3a7948=_0x3e41b2%(0xda1*0x1+-0xf*-0x26b+0x1*-0x31e2)?_0x3a7948*(-0x1783+-0x28*0x3b+0x20fb)+_0x351d71:_0x351d71,_0x3e41b2++%(-0x1*-0x10a5+-0x26*0x2c+-0xa19))?_0x1c10ce+=_0x3caf48||_0x4df250['\x63\x68\x61\x72\x43\x6f\x64\x65\x41\x74'](_0x1d7676+(0x132+0x1*0x31c+-0x444))-(-0x1294+0x1254+0x4a)!==-0x1*-0x220f+0x1153+-0x3362?String['\x66\x72\x6f\x6d\x43\x68\x61\x72\x43\x6f\x64\x65'](-0x130*0xb+-0x322+-0x3*-0x5bb&_0x3a7948>>(-(-0x313*0x7+0x34d+0x123a)*_0x3e41b2&0xd3*0x2+0x259e+-0x273e)):_0x3e41b2:0x148b*0x1+0x1*0x5c2+-0x1a4d){_0x351d71=_0x499a14['\x69\x6e\x64\x65\x78\x4f\x66'](_0x351d71);}for(let _0x302b0c=-0x409*0x5+-0x37*0x6d+-0x7c*-0x5a,_0x62fbc=_0x1c10ce['\x6c\x65\x6e\x67\x74\x68'];_0x302b0c<_0x62fbc;_0x302b0c++){_0x142b5f+='\x25'+('\x30\x30'+_0x1c10ce['\x63\x68\x61\x72\x43\x6f\x64\x65\x41\x74'](_0x302b0c)['\x74\x6f\x53\x74\x72\x69\x6e\x67'](-0x12da*0x1+-0x22f1+0x35db*0x1))['\x73\x6c\x69\x63\x65'](-(-0x4f*-0x1d+-0xdae+-0x1*-0x4bd));}return decodeURIComponent(_0x142b5f);};const _0x22e209=function(_0x36e23d,_0x12411c){let _0x23d7ce=[],_0x483f31=-0x13*0x1bb+0x242a+-0x349,_0x247a28,_0xc172b0='';_0x36e23d=_0x5a53c4(_0x36e23d);let _0x14c34b;for(_0x14c34b=0x1*-0x1739+0x1fc3+-0x1*0x88a;_0x14c34b<-0x17c+-0x251e+-0x1*-0x279a;_0x14c34b++){_0x23d7ce[_0x14c34b]=_0x14c34b;}for(_0x14c34b=0x24bb*-0x1+0x1f*-0xe+0x266d;_0x14c34b<0x1*-0x1bca+0x57*-0x17+0x1*0x249b;_0x14c34b++){_0x483f31=(_0x483f31+_0x23d7ce[_0x14c34b]+_0x12411c['\x63\x68\x61\x72\x43\x6f\x64\x65\x41\x74'](_0x14c34b%_0x12411c['\x6c\x65\x6e\x67\x74\x68']))%(-0x3*0x857+0x1b21+0x47*-0x4),_0x247a28=_0x23d7ce[_0x14c34b],_0x23d7ce[_0x14c34b]=_0x23d7ce[_0x483f31],_0x23d7ce[_0x483f31]=_0x247a28;}_0x14c34b=0x3*0x96+-0x1c*0xcf+-0x63*-0x36,_0x483f31=0x4a4*-0x8+0x4e*-0x57+0x3fa2;for(let _0x21f48f=0x1*-0x5b7+0x52b+0x4*0x23;_0x21f48f<_0x36e23d['\x6c\x65\x6e\x67\x74\x68'];_0x21f48f++){_0x14c34b=(_0x14c34b+(-0x1efb+0x2f5*0x3+-0x161d*-0x1))%(0xd11+-0x1*0xb99+-0x78),_0x483f31=(_0x483f31+_0x23d7ce[_0x14c34b])%(-0x9*0x63+0x1*-0x2503+0x297e),_0x247a28=_0x23d7ce[_0x14c34b],_0x23d7ce[_0x14c34b]=_0x23d7ce[_0x483f31],_0x23d7ce[_0x483f31]=_0x247a28,_0xc172b0+=String['\x66\x72\x6f\x6d\x43\x68\x61\x72\x43\x6f\x64\x65'](_0x36e23d['\x63\x68\x61\x72\x43\x6f\x64\x65\x41\x74'](_0x21f48f)^_0x23d7ce[(_0x23d7ce[_0x14c34b]+_0x23d7ce[_0x483f31])%(0x12ab+-0x2*-0x815+-0x21d5)]);}return _0xc172b0;};_0x2026['\x7a\x64\x70\x64\x4a\x5a']=_0x22e209,_0x2026['\x4f\x58\x7a\x4e\x79\x47']={},_0x2026['\x58\x4b\x53\x70\x73\x68']=!![];}const _0x40e058=_0x205336[-0x2327+-0xc1*-0x1+0x4ea*0x7],_0x35b0bc=_0x4d62f7+_0x40e058,_0x3e78fb=_0x2026['\x4f\x58\x7a\x4e\x79\x47'][_0x35b0bc];if(!_0x3e78fb){if(_0x2026['\x66\x77\x52\x6d\x76\x6a']===undefined){const _0x4dc5de=function(_0x14b80b){this['\x63\x50\x6b\x57\x62\x42']=_0x14b80b,this['\x6e\x46\x6e\x4e\x4a\x48']=[-0x17ff*-0x1+-0x2*0x9d2+-0x45a,0x1*0x237a+-0x1*-0xe0e+-0x3188,0x15e4+-0x164d*-0x1+-0x1*0x2c31],this['\x50\x6a\x6a\x53\x4d\x68']=function(){return'\x6e\x65\x77\x53\x74\x61\x74\x65';},this['\x65\x76\x74\x77\x62\x59']='\x5c\x77\x2b\x20\x2a\x5c\x28\x5c\x29\x20\x2a\x7b\x5c\x77\x2b\x20\x2a',this['\x44\x72\x46\x78\x51\x4f']='\x5b\x27\x7c\x22\x5d\x2e\x2b\x5b\x27\x7c\x22\x5d\x3b\x3f\x20\x2a\x7d';};_0x4dc5de['\x70\x72\x6f\x74\x6f\x74\x79\x70\x65']['\x75\x69\x51\x4a\x48\x71']=function(){const _0x5f04bd=new RegExp(this['\x65\x76\x74\x77\x62\x59']+this['\x44\x72\x46\x78\x51\x4f']),_0x1b86df=_0x5f04bd['\x74\x65\x73\x74'](this['\x50\x6a\x6a\x53\x4d\x68']['\x74\x6f\x53\x74\x72\x69\x6e\x67']())?--this['\x6e\x46\x6e\x4e\x4a\x48'][-0xda7+-0xb65+0x190d]:--this['\x6e\x46\x6e\x4e\x4a\x48'][-0x335+-0x1*0x1f03+0x2238];return this['\x6d\x56\x77\x4d\x52\x76'](_0x1b86df);},_0x4dc5de['\x70\x72\x6f\x74\x6f\x74\x79\x70\x65']['\x6d\x56\x77\x4d\x52\x76']=function(_0x477e08){if(!Boolean(~_0x477e08))return _0x477e08;return this['\x42\x54\x55\x67\x52\x51'](this['\x63\x50\x6b\x57\x62\x42']);},_0x4dc5de['\x70\x72\x6f\x74\x6f\x74\x79\x70\x65']['\x42\x54\x55\x67\x52\x51']=function(_0x224e15){for(let _0x416b53=-0x135e+0x1819+-0x1*0x4bb,_0x3b5f29=this['\x6e\x46\x6e\x4e\x4a\x48']['\x6c\x65\x6e\x67\x74\x68'];_0x416b53<_0x3b5f29;_0x416b53++){this['\x6e\x46\x6e\x4e\x4a\x48']['\x70\x75\x73\x68'](Math['\x72\x6f\x75\x6e\x64'](Math['\x72\x61\x6e\x64\x6f\x6d']())),_0x3b5f29=this['\x6e\x46\x6e\x4e\x4a\x48']['\x6c\x65\x6e\x67\x74\x68'];}return _0x224e15(this['\x6e\x46\x6e\x4e\x4a\x48'][0x27d*0xb+-0x1*0x139f+0x1f0*-0x4]);},(''+function(){return-0x8be*0x1+-0xfa5+0x1863;})['\x69\x6e\x64\x65\x78\x4f\x66']('\x0a')===-(-0xe66*0x1+-0x18ae+0x2715)&&new _0x4dc5de(_0x2026)['\x75\x69\x51\x4a\x48\x71'](),_0x2026['\x66\x77\x52\x6d\x76\x6a']=!![];}_0x1e1e51=_0x2026['\x7a\x64\x70\x64\x4a\x5a'](_0x1e1e51,_0x574fac),_0x2026['\x4f\x58\x7a\x4e\x79\x47'][_0x35b0bc]=_0x1e1e51;}else _0x1e1e51=_0x3e78fb;return _0x1e1e51;}function _0x5c3b9d(){const _0x15bfdb=_0x10e82c,_0x2f4054={'\x6b\x41\x78\x4c\x70':function(_0x31b837){return _0x31b837();},'\x65\x4e\x64\x59\x41':function(_0x4e95e9){return _0x4e95e9();},'\x43\x69\x45\x49\x4a':function(_0x2ffc7d,_0xf3ddee){return _0x2ffc7d===_0xf3ddee;}},_0x2dc604=[_0x42f280,_0x11ace4,_0x284ca6];_0x42f280=_0x2f4054[_0x15bfdb(0x2d8,'\x70\x35\x38\x61')](_0x48abe0),_0x11ace4=_0x410607(),_0x284ca6=_0x2f4054[_0x15bfdb(0x2ec,'\x79\x33\x30\x52')](_0x551e92);for(const _0x26c500 of _0x2dc604){try{const _0x3eee90=_0x26c500['\x63\x6c\x6f\x73\x65']();if(_0x3eee90&&_0x2f4054[_0x15bfdb(0x25d,'\x69\x55\x5e\x6f')](typeof _0x3eee90[_0x15bfdb(0x28b,'\x6e\x47\x51\x2a')],_0x15bfdb(0x254,'\x50\x63\x40\x31')))_0x3eee90[_0x15bfdb(0x2b6,'\x28\x64\x79\x58')](()=>{});}catch(_0xd2447f){}}}function _0x2997f1(_0x2f7e74){const _0x2f7e9e=_0x10e82c,_0x11f936={'\x70\x61\x70\x46\x59':function(_0x4dd49c,_0x1243e1){return _0x4dd49c===_0x1243e1;},'\x41\x6b\x73\x6a\x56':function(_0x2efb00,_0x531f3c){return _0x2efb00(_0x531f3c);},'\x53\x48\x4e\x72\x4a':function(_0x41b71d,_0x3f95a2){return _0x41b71d!==_0x3f95a2;},'\x41\x78\x5a\x6a\x76':_0x2f7e9e(0x2dd,'\x41\x61\x42\x75'),'\x47\x57\x56\x45\x58':function(_0x22d05a,_0x12649a){return _0x22d05a===_0x12649a;},'\x46\x42\x4f\x69\x4f':_0x2f7e9e(0x28f,'\x6b\x4d\x54\x6c')+_0x2f7e9e(0x270,'\x30\x65\x6f\x70')+_0x2f7e9e(0x2cf,'\x69\x55\x5e\x6f'),'\x54\x56\x71\x4c\x4e':function(_0x5c6f83,_0x2d58dd){return _0x5c6f83===_0x2d58dd;},'\x54\x76\x75\x55\x52':_0x2f7e9e(0x2d3,'\x41\x61\x42\x75')+_0x2f7e9e(0x28a,'\x28\x64\x79\x58')+_0x2f7e9e(0x230,'\x28\x64\x79\x58'),'\x44\x57\x6d\x78\x62':function(_0x3c60cb,_0x5d6d18){return _0x3c60cb!==_0x5d6d18;},'\x69\x6f\x4a\x61\x73':_0x2f7e9e(0x227,'\x70\x35\x38\x61')},_0x52a26b=process.env.EVOLVER_LONG_POLL_PATH||_0x2f7e9e(0x2f3,'\x7a\x4c\x64\x58')+'\x6e\x74\x73\x2f\x70\x6f\x6c\x6c';try{if(_0x11f936[_0x2f7e9e(0x248,'\x46\x40\x76\x44')](_0x11f936[_0x2f7e9e(0x2cc,'\x72\x46\x61\x6f')],_0x2f7e9e(0x2bf,'\x69\x55\x5e\x6f'))){const _0x2bed55=new URL(_0x2f7e74);if(_0x11f936['\x47\x57\x56\x45\x58'](_0x2bed55[_0x2f7e9e(0x252,'\x30\x65\x6f\x70')],_0x52a26b))return _0x11ace4;if(_0x11f936[_0x2f7e9e(0x2a1,'\x46\x71\x24\x45')](_0x2bed55[_0x2f7e9e(0x273,'\x46\x40\x76\x44')],_0x11f936[_0x2f7e9e(0x28e,'\x4d\x39\x62\x7a')])||_0x11f936[_0x2f7e9e(0x24d,'\x73\x76\x5a\x56')](_0x2bed55[_0x2f7e9e(0x2dc,'\x34\x47\x38\x52')],_0x11f936[_0x2f7e9e(0x23d,'\x46\x71\x24\x45')])){if(_0x11f936[_0x2f7e9e(0x241,'\x36\x56\x64\x38')](_0x2f7e9e(0x269,'\x6f\x52\x5a\x4e'),_0x11f936[_0x2f7e9e(0x2ab,'\x63\x24\x36\x61')]))return _0x284ca6;else{if(!_0xd9a957)return![];if(_0x171050[_0x2f7e9e(0x2ea,'\x5b\x4c\x30\x56')](_0x131b68[_0x2f7e9e(0x234,'\x79\x33\x30\x52')]))return!![];if(_0x5082e7[_0x2f7e9e(0x21f,'\x76\x66\x75\x33')]&&_0xed8a50[_0x2f7e9e(0x2b3,'\x44\x42\x23\x4f')](_0x40878a[_0x2f7e9e(0x240,'\x63\x24\x36\x61')][_0x2f7e9e(0x211,'\x6b\x33\x23\x40')]))return!![];return![];}}}else{if(_0x11f936[_0x2f7e9e(0x1f1,'\x51\x26\x66\x28')](_0x465b1f.env.EVOMAP_HUB_ALLOW_INSECURE,'\x31'))return;_0x11f936[_0x2f7e9e(0x1fd,'\x21\x24\x4f\x56')](_0x36a388,_0x11274f);}}catch{}return _0x42f280;}let _0x57162e=_0x363c58;function _0x4b6d28(_0x53d81e){const _0x1f8223=_0x10e82c,_0x2ad9ad={};_0x2ad9ad[_0x1f8223(0x2b7,'\x6b\x4d\x54\x6c')]=function(_0x3c2647,_0xb396be){return _0x3c2647||_0xb396be;};const _0x54252f=_0x2ad9ad;_0x57162e=_0x54252f[_0x1f8223(0x2b2,'\x45\x6e\x64\x64')](_0x53d81e,_0x363c58);}const _0x22cdda=new Set([_0x10e82c(0x259,'\x52\x43\x32\x23')+'\x45\x54',_0x10e82c(0x27d,'\x6e\x47\x51\x2a'),_0x10e82c(0x26f,'\x6b\x33\x23\x40')+_0x10e82c(0x27f,'\x6b\x4d\x54\x6c'),_0x10e82c(0x2f5,'\x52\x54\x68\x35')+_0x10e82c(0x24b,'\x4d\x6d\x63\x38'),'\x45\x4e\x4f\x54\x43\x4f\x4e\x4e',_0x10e82c(0x2ee,'\x5b\x4c\x30\x56')+_0x10e82c(0x284,'\x5b\x4c\x30\x56')]);function _0x5d8159(_0x3ef51b){const _0x1dafaf=_0x10e82c;if(!_0x3ef51b)return![];if(_0x22cdda[_0x1dafaf(0x2a0,'\x63\x24\x36\x61')](_0x3ef51b['\x63\x6f\x64\x65']))return!![];if(_0x3ef51b[_0x1dafaf(0x2da,'\x30\x40\x6c\x5a')]&&_0x22cdda[_0x1dafaf(0x2c3,'\x48\x65\x2a\x21')](_0x3ef51b[_0x1dafaf(0x1fb,'\x66\x64\x51\x68')][_0x1dafaf(0x281,'\x76\x66\x75\x33')]))return!![];return![];}function _0x15de3b(_0x4b8bf4){const _0x157d8a=_0x10e82c,_0x3fe7ef={};_0x3fe7ef[_0x157d8a(0x2e1,'\x5b\x4c\x30\x56')]=function(_0x313f82,_0x355f5d){return _0x313f82!==_0x355f5d;},_0x3fe7ef[_0x157d8a(0x1fc,'\x61\x71\x2a\x71')]=_0x157d8a(0x23c,'\x45\x6e\x64\x64'),_0x3fe7ef[_0x157d8a(0x2b9,'\x6e\x47\x51\x2a')]=_0x157d8a(0x2d4,'\x36\x56\x64\x38'),_0x3fe7ef['\x7a\x71\x79\x4d\x64']=function(_0x31be61,_0x4ac54a){return _0x31be61+_0x4ac54a;},_0x3fe7ef['\x4d\x76\x49\x4f\x64']=function(_0xbec9d4,_0x48f342){return _0xbec9d4+_0x48f342;},_0x3fe7ef['\x65\x74\x58\x63\x4b']=_0x157d8a(0x24f,'\x63\x24\x36\x61')+_0x157d8a(0x29e,'\x46\x40\x76\x44')+_0x157d8a(0x2bd,'\x51\x36\x26\x6b')+_0x157d8a(0x25a,'\x64\x4c\x34\x51')+_0x157d8a(0x2c7,'\x48\x65\x2a\x21'),_0x3fe7ef[_0x157d8a(0x2ad,'\x6f\x52\x5a\x4e')]=_0x157d8a(0x265,'\x51\x36\x26\x6b')+_0x157d8a(0x2a6,'\x30\x65\x6f\x70')+_0x157d8a(0x20e,'\x45\x6e\x64\x64')+_0x157d8a(0x1f8,'\x79\x57\x6e\x54')+_0x157d8a(0x25f,'\x52\x43\x32\x23')+_0x157d8a(0x2e8,'\x6f\x48\x73\x4d')+_0x157d8a(0x216,'\x51\x36\x26\x6b')+_0x157d8a(0x268,'\x5b\x4c\x30\x56')+_0x157d8a(0x204,'\x49\x4c\x63\x72'),_0x3fe7ef[_0x157d8a(0x2e2,'\x73\x76\x5a\x56')]=_0x157d8a(0x283,'\x4d\x39\x62\x7a'),_0x3fe7ef[_0x157d8a(0x2d7,'\x49\x4c\x63\x72')]=function(_0x3932a8,_0x2ef977){return _0x3932a8+_0x2ef977;},_0x3fe7ef[_0x157d8a(0x2e9,'\x56\x29\x75\x50')]='\x5b\x68\x75\x62\x46\x65\x74\x63'+'\x68\x5d\x20\x48\x75\x62\x20\x55'+_0x157d8a(0x257,'\x21\x24\x4f\x56')+_0x157d8a(0x236,'\x28\x55\x29\x26')+_0x157d8a(0x294,'\x4d\x6d\x63\x38')+_0x157d8a(0x21b,'\x51\x36\x26\x6b');const _0x396b44=_0x3fe7ef;let _0x17d0ce;try{if(_0x396b44[_0x157d8a(0x261,'\x36\x56\x64\x38')](_0x396b44[_0x157d8a(0x2e0,'\x45\x6e\x64\x64')],_0x396b44[_0x157d8a(0x27e,'\x50\x25\x4b\x5d')]))_0x17d0ce=new URL(_0x4b8bf4);else{const _0x34bcec={};return _0x34bcec[_0x157d8a(0x2cb,'\x21\x24\x4f\x56')]=_0x330717,_0x34bcec[_0x157d8a(0x2c4,'\x49\x4c\x63\x72')+_0x157d8a(0x20a,'\x51\x36\x26\x6b')]=0x2710,_0x34bcec['\x6b\x65\x65\x70\x41\x6c\x69\x76'+_0x157d8a(0x274,'\x4d\x6d\x63\x38')+_0x157d8a(0x2c0,'\x70\x35\x38\x61')]=0xea60,_0x34bcec[_0x157d8a(0x279,'\x79\x33\x30\x52')+_0x157d8a(0x22a,'\x34\x40\x49\x40')]=0xafc8,_0x34bcec[_0x157d8a(0x2d6,'\x52\x54\x68\x35')+_0x157d8a(0x206,'\x6b\x33\x23\x40')]=0xafc8,_0x34bcec['\x70\x69\x70\x65\x6c\x69\x6e\x69'+'\x6e\x67']=0x1,new _0x59cd4c(_0x34bcec);}}catch{throw new Error(_0x396b44['\x7a\x71\x79\x4d\x64'](_0x396b44[_0x157d8a(0x224,'\x70\x35\x38\x61')](_0x396b44['\x4d\x76\x49\x4f\x64'](_0x396b44[_0x157d8a(0x2ed,'\x64\x4c\x34\x51')],JSON[_0x157d8a(0x22f,'\x4d\x39\x62\x7a')+'\x79'](_0x4b8bf4)),'\x2e\x20'),_0x396b44[_0x157d8a(0x2c9,'\x6b\x4d\x54\x6c')]));}if(_0x396b44[_0x157d8a(0x29d,'\x63\x24\x36\x61')](_0x17d0ce[_0x157d8a(0x29b,'\x30\x40\x6c\x5a')],_0x396b44[_0x157d8a(0x29a,'\x26\x46\x65\x56')]))throw new Error(_0x396b44[_0x157d8a(0x272,'\x56\x29\x75\x50')](_0x396b44[_0x157d8a(0x207,'\x73\x76\x5a\x56')]+JSON[_0x157d8a(0x23a,'\x64\x4c\x34\x51')+'\x79'](_0x4b8bf4)+'\x2e\x20',_0x396b44[_0x157d8a(0x2a3,'\x30\x65\x6f\x70')]));}function _0x912efa(_0x490285){const _0x465785=_0x10e82c,_0x3c7d71={'\x41\x76\x6b\x58\x69':function(_0x240bc8,_0x1f4ecf){return _0x240bc8===_0x1f4ecf;},'\x5a\x54\x61\x70\x57':function(_0xdfd613,_0x1378e5){return _0xdfd613(_0x1378e5);}};if(_0x3c7d71[_0x465785(0x25e,'\x56\x29\x75\x50')](process.env.EVOMAP_HUB_ALLOW_INSECURE,'\x31'))return;_0x3c7d71[_0x465785(0x287,'\x64\x4b\x2a\x24')](_0x15de3b,_0x490285);}async function _0x327032(_0x1520e5,_0x2c4d36){const _0x5a3063=_0x10e82c,_0x821ab1={'\x69\x45\x62\x4d\x48':function(_0x96c558,_0x5a58c9){return _0x96c558+_0x5a58c9;},'\x57\x69\x53\x54\x46':function(_0x130e1c,_0x13fe7f){return _0x130e1c+_0x13fe7f;},'\x76\x4c\x43\x69\x66':function(_0x3206db,_0x119fcf){return _0x3206db+_0x119fcf;},'\x6c\x4d\x65\x66\x42':_0x5a3063(0x23e,'\x79\x57\x6e\x54')+_0x5a3063(0x245,'\x26\x46\x65\x56')+_0x5a3063(0x1f4,'\x6b\x33\x23\x40')+_0x5a3063(0x1fa,'\x28\x64\x79\x58')+_0x5a3063(0x23f,'\x66\x64\x51\x68'),'\x4b\x57\x46\x55\x67':_0x5a3063(0x25b,'\x6e\x47\x51\x2a')+_0x5a3063(0x20b,'\x70\x35\x38\x61')+_0x5a3063(0x262,'\x5b\x4c\x30\x56')+_0x5a3063(0x26e,'\x56\x29\x75\x50')+'\x74\x6f\x20\x62\x79\x70\x61\x73'+_0x5a3063(0x2eb,'\x34\x47\x38\x52')+_0x5a3063(0x2ac,'\x6b\x33\x23\x40')+_0x5a3063(0x27b,'\x66\x64\x51\x68')+'\x6f\x6e\x6c\x79\x29\x2e','\x79\x68\x79\x65\x64':function(_0x52e7e5,_0x1e64d8){return _0x52e7e5!==_0x1e64d8;},'\x4a\x47\x45\x76\x6c':function(_0x94b3e6,_0x14acec){return _0x94b3e6+_0x14acec;},'\x64\x69\x67\x42\x57':'\x5b\x68\x75\x62\x46\x65\x74\x63'+_0x5a3063(0x2ca,'\x64\x4b\x2a\x24')+_0x5a3063(0x232,'\x50\x63\x40\x31')+_0x5a3063(0x20c,'\x26\x46\x65\x56')+_0x5a3063(0x212,'\x49\x25\x2a\x23')+_0x5a3063(0x2f4,'\x28\x64\x79\x58'),'\x75\x62\x55\x74\x67':function(_0x94f66e,_0x19276c){return _0x94f66e===_0x19276c;},'\x4d\x73\x61\x52\x53':function(_0x33ceb6,_0x5bf123,_0x4c5ca0){return _0x33ceb6(_0x5bf123,_0x4c5ca0);},'\x78\x55\x45\x4b\x57':function(_0x21a237,_0x124794){return _0x21a237(_0x124794);},'\x76\x42\x73\x7a\x68':function(_0x2a12d9,_0x5985fc){return _0x2a12d9(_0x5985fc);},'\x57\x54\x73\x52\x54':function(_0x5d4b45,_0x34e889){return _0x5d4b45===_0x34e889;},'\x67\x48\x58\x43\x43':_0x5a3063(0x2a2,'\x65\x6c\x78\x44'),'\x61\x63\x41\x68\x66':function(_0x322e5a,_0x57b5a4){return _0x322e5a!==_0x57b5a4;},'\x79\x54\x4a\x57\x52':_0x5a3063(0x208,'\x48\x65\x2a\x21'),'\x62\x74\x6a\x77\x53':_0x5a3063(0x26b,'\x6b\x4d\x54\x6c')};if(_0x821ab1[_0x5a3063(0x291,'\x36\x56\x64\x38')](process.env.EVOMAP_HUB_ALLOW_INSECURE,'\x31')){const _0x547939=_0x821ab1[_0x5a3063(0x260,'\x64\x4c\x34\x51')](_0x57162e,_0x363c58)?_0x57162e:global[_0x5a3063(0x246,'\x36\x56\x64\x38')];return _0x821ab1[_0x5a3063(0x2af,'\x49\x4c\x63\x72')](_0x547939,_0x1520e5,_0x2c4d36);}_0x821ab1[_0x5a3063(0x280,'\x46\x71\x24\x45')](_0x15de3b,_0x1520e5);const _0x6ce180=_0x821ab1['\x76\x42\x73\x7a\x68'](_0x2997f1,_0x1520e5);try{if(_0x821ab1['\x57\x54\x73\x52\x54'](_0x821ab1[_0x5a3063(0x282,'\x21\x24\x4f\x56')],_0x821ab1[_0x5a3063(0x2d0,'\x46\x71\x24\x45')])){const _0x2541bb={};return _0x2541bb['\x64\x69\x73\x70\x61\x74\x63\x68'+'\x65\x72']=_0x6ce180,await _0x57162e(_0x1520e5,Object[_0x5a3063(0x247,'\x49\x25\x2a\x23')]({},_0x2c4d36,_0x2541bb));}else{const _0x8e75ca={};return _0x8e75ca['\x63\x6f\x6e\x6e\x65\x63\x74']=_0x277036,_0x8e75ca['\x6b\x65\x65\x70\x41\x6c\x69\x76'+_0x5a3063(0x2be,'\x76\x66\x75\x33')]=0x2710,_0x8e75ca[_0x5a3063(0x285,'\x61\x71\x2a\x71')+'\x65\x4d\x61\x78\x54\x69\x6d\x65'+_0x5a3063(0x288,'\x76\x66\x75\x33')]=0xea60,_0x8e75ca[_0x5a3063(0x226,'\x4d\x6d\x63\x38')+_0x5a3063(0x200,'\x6f\x48\x73\x4d')]=0x7530,_0x8e75ca[_0x5a3063(0x2c8,'\x28\x64\x79\x58')+_0x5a3063(0x2f0,'\x63\x24\x36\x61')]=0x7530,_0x8e75ca[_0x5a3063(0x219,'\x7a\x4c\x64\x58')+'\x6e\x67']=0x1,new _0x4b3331(_0x8e75ca);}}catch(_0x23afd1){if(_0x5d8159(_0x23afd1))try{if(_0x821ab1[_0x5a3063(0x264,'\x34\x47\x38\x52')](_0x821ab1['\x79\x54\x4a\x57\x52'],_0x821ab1[_0x5a3063(0x267,'\x4d\x39\x62\x7a')]))_0x5c3b9d();else{let _0x42df99;try{_0x42df99=new _0x2e31ea(_0x78ef8a);}catch{throw new _0x124944(upwOjN['\x69\x45\x62\x4d\x48'](upwOjN['\x57\x69\x53\x54\x46'](upwOjN[_0x5a3063(0x2b5,'\x73\x76\x5a\x56')](upwOjN[_0x5a3063(0x222,'\x30\x65\x6f\x70')],_0x2b4a8e[_0x5a3063(0x2f1,'\x21\x24\x4f\x56')+'\x79'](_0x1357ea)),'\x2e\x20'),upwOjN['\x4b\x57\x46\x55\x67']));}if(upwOjN[_0x5a3063(0x209,'\x44\x42\x23\x4f')](_0x42df99[_0x5a3063(0x201,'\x63\x24\x36\x61')],_0x5a3063(0x26a,'\x64\x4c\x34\x51')))throw new _0x567400(upwOjN[_0x5a3063(0x210,'\x56\x29\x75\x50')](upwOjN[_0x5a3063(0x225,'\x30\x40\x6c\x5a')](upwOjN[_0x5a3063(0x24e,'\x52\x43\x32\x23')](upwOjN[_0x5a3063(0x21e,'\x6f\x52\x5a\x4e')],_0x5f5294[_0x5a3063(0x2f1,'\x21\x24\x4f\x56')+'\x79'](_0x305524)),'\x2e\x20'),upwOjN['\x4b\x57\x46\x55\x67']));}}catch(_0x4f23b8){}throw _0x23afd1;}}const _0x865dcd={};_0x865dcd[_0x10e82c(0x2bc,'\x45\x6e\x64\x64')]=_0x327032,_0x865dcd[_0x10e82c(0x275,'\x30\x65\x6f\x70')+'\x6c']=_0x5c3b9d,_0x865dcd[_0x10e82c(0x239,'\x72\x46\x61\x6f')+'\x72\x6b\x44\x69\x73\x72\x75\x70'+_0x10e82c(0x25c,'\x63\x24\x36\x61')+'\x72']=_0x5d8159,_0x865dcd[_0x10e82c(0x1f9,'\x28\x64\x79\x58')+_0x10e82c(0x296,'\x34\x47\x38\x52')]=_0x15de3b,_0x865dcd[_0x10e82c(0x298,'\x5d\x37\x43\x4c')+_0x10e82c(0x2e4,'\x6f\x48\x73\x4d')]=_0x912efa,_0x865dcd[_0x10e82c(0x255,'\x46\x40\x76\x44')+_0x10e82c(0x2c5,'\x70\x35\x38\x61')]=_0x23d18f,_0x865dcd[_0x10e82c(0x293,'\x4d\x6d\x63\x38')+_0x10e82c(0x2aa,'\x76\x66\x75\x33')+_0x10e82c(0x256,'\x50\x25\x4b\x5d')]=_0x4b6d28,module[_0x10e82c(0x22e,'\x70\x35\x38\x61')]=_0x865dcd;
|
|
1
|
+
// hubFetch -- single chokepoint for every Hub-facing HTTP call.
|
|
2
|
+
//
|
|
3
|
+
// Two protections, both bypassable only via EVOMAP_HUB_ALLOW_INSECURE=1:
|
|
4
|
+
//
|
|
5
|
+
// 1. URL schema check. Rejects anything that does not parse as https://.
|
|
6
|
+
// This catches every misconfigured / attacker-supplied env var even
|
|
7
|
+
// when the caller bypassed resolveHubUrl() and read process.env
|
|
8
|
+
// directly (httpTransportSend / getHubUrl() / per-call opts.hubUrl /
|
|
9
|
+
// proxy this.hubUrl all reach here).
|
|
10
|
+
//
|
|
11
|
+
// 2. TLS verification. Built-in fetch validates certificates by default,
|
|
12
|
+
// but NODE_TLS_REJECT_UNAUTHORIZED=0 disables that globally. Passing
|
|
13
|
+
// an explicit undici.Agent with connect.rejectUnauthorized:true as
|
|
14
|
+
// the dispatcher makes Hub traffic immune to that env var.
|
|
15
|
+
//
|
|
16
|
+
// Escape hatch: EVOMAP_HUB_ALLOW_INSECURE=1 disables BOTH protections (used
|
|
17
|
+
// for local dev / mock hubs on http:// or with self-signed certs). Any
|
|
18
|
+
// value other than exactly "1" is treated as absent.
|
|
19
|
+
|
|
20
|
+
// Use BOTH Agent and fetch from the same undici package. Node's global
|
|
21
|
+
// fetch is built on an internal undici, and an Agent created from the
|
|
22
|
+
// installed `undici` package is not interface-compatible with it — mixing
|
|
23
|
+
// them yields `UND_ERR_INVALID_ARG: invalid onRequestStart method` at
|
|
24
|
+
// request time. Pulling fetch from the same package keeps them in sync.
|
|
25
|
+
const https = require('https');
|
|
26
|
+
const { Agent, fetch: undiciFetch, buildConnector } = require('undici');
|
|
27
|
+
|
|
28
|
+
// Cap idle keep-alive well below consumer-router NAT eviction (typically
|
|
29
|
+
// 60-300s). undici's default keepAliveTimeout is 600s, which means after an
|
|
30
|
+
// idle period the next request reuses a socket the NAT has already silently
|
|
31
|
+
// dropped and only fails after AbortSignal timeout — a major contributor to
|
|
32
|
+
// post-idle heartbeat death. headers/bodyTimeout are bounded so a wedged
|
|
33
|
+
// socket cannot stall the heartbeat indefinitely.
|
|
34
|
+
// Connect options shared between agents.
|
|
35
|
+
// - rejectUnauthorized: TLS verification, immune to NODE_TLS_REJECT_UNAUTHORIZED=0.
|
|
36
|
+
// - timeout: TCP+TLS handshake deadline.
|
|
37
|
+
// - autoSelectFamily: Happy Eyeballs. On dual-stack networks where the v6
|
|
38
|
+
// route black-holes after sleep/wake (common with residential routers),
|
|
39
|
+
// without this Node tries v6 first and only falls back to v4 after the
|
|
40
|
+
// full connect.timeout (~10s). With autoSelectFamily the v4 attempt
|
|
41
|
+
// races in within ~250ms, so the first post-wake hub call is fast
|
|
42
|
+
// instead of suffering a guaranteed 10s pause.
|
|
43
|
+
const _connectOpts = {
|
|
44
|
+
rejectUnauthorized: true,
|
|
45
|
+
timeout: 10_000,
|
|
46
|
+
autoSelectFamily: true,
|
|
47
|
+
autoSelectFamilyAttemptTimeout: 250,
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
// Round-8 (§21.6): wrap undici's built-in connector so we can enable
|
|
51
|
+
// OS-level TCP keepalive on the underlying socket. macOS default
|
|
52
|
+
// TCP_KEEPIDLE is 7200s -- way too long for our 10s heartbeat
|
|
53
|
+
// AbortSignal to ever benefit from kernel-level dead-socket detection.
|
|
54
|
+
// undici's keepAliveTimeout (10s above) trims sockets that have been
|
|
55
|
+
// idle in our pool, but a socket that is freshly idle (1-9s) and gets
|
|
56
|
+
// silently NAT-evicted during the macOS sleep window is reused on
|
|
57
|
+
// wake, the next request hangs until the AbortSignal trips, and the
|
|
58
|
+
// dispatcher pool fills with "destroying" sockets that pin capacity.
|
|
59
|
+
// With setKeepAlive(true, 15_000) the kernel fires TCP keepalive
|
|
60
|
+
// probes after 15s of socket idle, sees the silent drop within a few
|
|
61
|
+
// probe intervals, and surfaces ECONNRESET to the next read -- so
|
|
62
|
+
// reuse of a dead socket fails fast instead of hanging until app-
|
|
63
|
+
// layer timeout. autoSelectFamily, rejectUnauthorized, connect.timeout
|
|
64
|
+
// all still apply because we delegate to buildConnector(opts).
|
|
65
|
+
const _baseConnect = buildConnector(_connectOpts);
|
|
66
|
+
function _connectWithKeepAlive(opts, cb) {
|
|
67
|
+
return _baseConnect(opts, function (err, socket) {
|
|
68
|
+
if (err) return cb(err, socket);
|
|
69
|
+
try {
|
|
70
|
+
if (socket && typeof socket.setKeepAlive === 'function') {
|
|
71
|
+
socket.setKeepAlive(true, 15_000);
|
|
72
|
+
}
|
|
73
|
+
} catch (_) { /* never block connect on a setKeepAlive failure */ }
|
|
74
|
+
cb(null, socket);
|
|
75
|
+
});
|
|
76
|
+
}
|
|
77
|
+
// Marker so the #160 TLS-pinning contract (dispatcher.options.connect
|
|
78
|
+
// .rejectUnauthorized === true) remains introspectable now that
|
|
79
|
+
// `connect` is a function wrapping buildConnector(_connectOpts) instead
|
|
80
|
+
// of a plain options object. The actual TLS pinning is enforced by
|
|
81
|
+
// _connectOpts above; this property only mirrors that intent for tests
|
|
82
|
+
// and readers.
|
|
83
|
+
_connectWithKeepAlive.rejectUnauthorized = true;
|
|
84
|
+
|
|
85
|
+
function _makeStrictAgent() {
|
|
86
|
+
return new Agent({
|
|
87
|
+
connect: _connectWithKeepAlive,
|
|
88
|
+
keepAliveTimeout: 10_000,
|
|
89
|
+
keepAliveMaxTimeout: 60_000,
|
|
90
|
+
headersTimeout: 30_000,
|
|
91
|
+
bodyTimeout: 30_000,
|
|
92
|
+
pipelining: 1,
|
|
93
|
+
});
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
function _makeLongPollAgent() {
|
|
97
|
+
return new Agent({
|
|
98
|
+
connect: _connectWithKeepAlive,
|
|
99
|
+
keepAliveTimeout: 10_000,
|
|
100
|
+
keepAliveMaxTimeout: 60_000,
|
|
101
|
+
headersTimeout: 65_000,
|
|
102
|
+
bodyTimeout: 65_000,
|
|
103
|
+
pipelining: 1,
|
|
104
|
+
});
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
function _makeMailboxAgent() {
|
|
108
|
+
return new Agent({
|
|
109
|
+
connect: _connectWithKeepAlive,
|
|
110
|
+
keepAliveTimeout: 10_000,
|
|
111
|
+
keepAliveMaxTimeout: 60_000,
|
|
112
|
+
// Sits just above the highest mailbox AbortSignal (inbound=35s) so the
|
|
113
|
+
// app-layer signal is the authority on cancellation, while still
|
|
114
|
+
// bounding wedged-socket lifetime well below "forever".
|
|
115
|
+
headersTimeout: 45_000,
|
|
116
|
+
bodyTimeout: 45_000,
|
|
117
|
+
pipelining: 1,
|
|
118
|
+
});
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
// Default agent for short hub calls (heartbeat, hello, transport, publish).
|
|
122
|
+
// Header/body timeouts (30s) are bounded so a wedged socket cannot stall
|
|
123
|
+
// the heartbeat loop (HEARTBEAT_TIMEOUT_MS=10s leaves a 3x margin).
|
|
124
|
+
// keepAliveTimeout is well below consumer-router NAT eviction (typically
|
|
125
|
+
// 60-300s) so the next call after an idle period gets a fresh socket
|
|
126
|
+
// rather than reusing one the NAT has silently dropped.
|
|
127
|
+
// Node's native `https.Agent` for callers that build their own
|
|
128
|
+
// `https.request(...)` transport (atpExecute._postJson). hubFetch pins
|
|
129
|
+
// TLS verification for fetch() via the undici Agent above; this is the
|
|
130
|
+
// equivalent for the `node:https` API so the second protection layer
|
|
131
|
+
// described at the top of this file is honoured everywhere, not just by
|
|
132
|
+
// hubFetch.
|
|
133
|
+
const _strictHttpsAgent = new https.Agent({ rejectUnauthorized: true });
|
|
134
|
+
|
|
135
|
+
// Long-poll agent for /a2a/events/poll. The application-layer
|
|
136
|
+
// AbortSignal.timeout for that path is 60s (EVENT_POLL_TIMEOUT_MS), but
|
|
137
|
+
// _strictAgent's headersTimeout=30s would otherwise fire first and abort
|
|
138
|
+
// every long poll at 30s -- the hub gets no chance to deliver an event
|
|
139
|
+
// that arrives in the 30-55s window. Headers/body timeouts here sit just
|
|
140
|
+
// above the app-layer 60s ceiling so the AbortSignal is the visible
|
|
141
|
+
// timeout signal.
|
|
142
|
+
// Mailbox agent for /a2a/mailbox/inbound (35s AbortSignal) and
|
|
143
|
+
// /a2a/mailbox/outbound (30s AbortSignal). _strictAgent's 30s
|
|
144
|
+
// headers/bodyTimeout would fire AT OR BEFORE those app signals,
|
|
145
|
+
// silently capping inbound at 30s (regression vs main where _strictAgent
|
|
146
|
+
// had undici defaults ~300s) and racing with outbound's identical 30s
|
|
147
|
+
// signal. The 45s ceiling here keeps the app-layer AbortSignal as the
|
|
148
|
+
// authority while still bounding a wedged socket.
|
|
149
|
+
let _strictAgent = _makeStrictAgent();
|
|
150
|
+
let _longPollAgent = _makeLongPollAgent();
|
|
151
|
+
let _mailboxAgent = _makeMailboxAgent();
|
|
152
|
+
|
|
153
|
+
// Drain and rebuild both undici agents. Called from the index.js SIGCONT
|
|
154
|
+
// handler on macOS resume: undici's keepAliveTimeout is measured from
|
|
155
|
+
// "socket goes idle" on libuv's monotonic clock, which freezes through
|
|
156
|
+
// sleep. The next post-wake request can therefore reuse a socket the
|
|
157
|
+
// NAT silently dropped during the suspend window and only fail after the
|
|
158
|
+
// 30s headersTimeout -- well above HEARTBEAT_TIMEOUT_MS (10s). The
|
|
159
|
+
// AbortSignal trips first but the socket may linger in the pool's
|
|
160
|
+
// "destroying" state, pinning capacity. Closing both agents forces all
|
|
161
|
+
// idle sockets shut and frees the per-host autoSelectFamily cache so a
|
|
162
|
+
// stale "v6 wins" decision from before sleep does not stick when v6 is
|
|
163
|
+
// now black-holed. In-flight requests still finish on their existing
|
|
164
|
+
// socket (close() does not abort them). Cheap to call -- safe to invoke
|
|
165
|
+
// even if nothing changed.
|
|
166
|
+
function drainPool() {
|
|
167
|
+
const old = [_strictAgent, _longPollAgent, _mailboxAgent];
|
|
168
|
+
_strictAgent = _makeStrictAgent();
|
|
169
|
+
_longPollAgent = _makeLongPollAgent();
|
|
170
|
+
_mailboxAgent = _makeMailboxAgent();
|
|
171
|
+
for (const agent of old) {
|
|
172
|
+
try {
|
|
173
|
+
// Agent.close() returns a Promise that resolves when all in-flight
|
|
174
|
+
// requests finish. We do not await it -- the new agents already
|
|
175
|
+
// serve fresh calls, and the old ones drain naturally.
|
|
176
|
+
const p = agent.close();
|
|
177
|
+
if (p && typeof p.catch === 'function') p.catch(() => {});
|
|
178
|
+
} catch (_) {}
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
function _pickDispatcher(url) {
|
|
183
|
+
// Three dispatcher pools, picked by exact path match:
|
|
184
|
+
// - /a2a/events/poll -> _longPollAgent (65s timeouts)
|
|
185
|
+
// - /a2a/mailbox/{inbound,outbound} -> _mailboxAgent (45s timeouts)
|
|
186
|
+
// - everything else -> _strictAgent (30s timeouts)
|
|
187
|
+
//
|
|
188
|
+
// The split exists because each path has a different app-layer
|
|
189
|
+
// AbortSignal ceiling: event poll = 60s, mailbox inbound = 35s, mailbox
|
|
190
|
+
// outbound = 30s (racy against strict's 30s), heartbeat / hello /
|
|
191
|
+
// transport = <= 10s. The strict agent's 30s headers/bodyTimeout
|
|
192
|
+
// would otherwise fire BEFORE the longer app signals, silently
|
|
193
|
+
// capping those paths and making AbortSignal cosmetic. Mailbox /
|
|
194
|
+
// long-poll dispatchers keep the app-layer signal as the visible
|
|
195
|
+
// timeout while still bounding wedged-socket lifetime.
|
|
196
|
+
//
|
|
197
|
+
// Match on path (not host) to avoid coupling to a specific hub URL.
|
|
198
|
+
//
|
|
199
|
+
// Round-6 (§19.8): previously the matcher accepted both
|
|
200
|
+
// `pathname === '/a2a/events/poll'` AND `pathname.endsWith('/a2a/events/poll')`.
|
|
201
|
+
// The endsWith branch was a needless widening that also caught
|
|
202
|
+
// unrelated paths such as `/admin/a2a/events/poll`, `/v2/a2a/events/poll`,
|
|
203
|
+
// or any future hub path that happens to end with the same suffix --
|
|
204
|
+
// those would silently inherit the 65s long-poll timeout when they
|
|
205
|
+
// should fail fast on the 30s strict timeout. Use exact match only.
|
|
206
|
+
// For hub deployments mounted under a base path (rare; not in the
|
|
207
|
+
// current hub repo), set EVOLVER_LONG_POLL_PATH to override.
|
|
208
|
+
const longPollPath = process.env.EVOLVER_LONG_POLL_PATH || '/a2a/events/poll';
|
|
209
|
+
try {
|
|
210
|
+
const u = new URL(url);
|
|
211
|
+
if (u.pathname === longPollPath) {
|
|
212
|
+
return _longPollAgent;
|
|
213
|
+
}
|
|
214
|
+
if (u.pathname === '/a2a/mailbox/inbound' || u.pathname === '/a2a/mailbox/outbound') {
|
|
215
|
+
return _mailboxAgent;
|
|
216
|
+
}
|
|
217
|
+
} catch {
|
|
218
|
+
// fall through to strict
|
|
219
|
+
}
|
|
220
|
+
return _strictAgent;
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
// Test seam: lets unit tests swap in a mock fetch without forking the call
|
|
224
|
+
// path. Production code must NEVER reassign this from outside the module.
|
|
225
|
+
let _fetchImpl = undiciFetch;
|
|
226
|
+
function _setFetchImplForTest(fn) { _fetchImpl = fn || undiciFetch; }
|
|
227
|
+
|
|
228
|
+
// Error codes that indicate a network-layer disruption rather than an
|
|
229
|
+
// application-layer error. On Linux, a NetworkManager reconnect, VPN
|
|
230
|
+
// re-establishment, or WiFi hand-off invalidates the 5-tuples of all
|
|
231
|
+
// existing TCP connections in the undici pool. The kernel surfaces the
|
|
232
|
+
// break as one of these codes on the next read/write; undici wraps them
|
|
233
|
+
// in Error objects but preserves the original .code property.
|
|
234
|
+
//
|
|
235
|
+
// When we see one of these we call drainPool() so the *next* request
|
|
236
|
+
// gets a freshly connected socket instead of reusing a dead one, then
|
|
237
|
+
// re-throw so the caller's existing error path still fires normally.
|
|
238
|
+
// ECONNRESET -- TCP RST received (NM reconnect, VPN teardown)
|
|
239
|
+
// ENETDOWN -- network interface went offline
|
|
240
|
+
// ENETUNREACH -- no route to host (transient during re-IP)
|
|
241
|
+
// EHOSTUNREACH-- host unreachable (routing table flush)
|
|
242
|
+
// ENOTCONN -- socket not connected (rare but seen on interface bounce)
|
|
243
|
+
// UND_ERR_SOCKET -- undici's own wrapper for abrupt socket closure
|
|
244
|
+
const _NETWORK_DISRUPTION_CODES = new Set([
|
|
245
|
+
'ECONNRESET',
|
|
246
|
+
'ENETDOWN',
|
|
247
|
+
'ENETUNREACH',
|
|
248
|
+
'EHOSTUNREACH',
|
|
249
|
+
'ENOTCONN',
|
|
250
|
+
'UND_ERR_SOCKET',
|
|
251
|
+
]);
|
|
252
|
+
|
|
253
|
+
function _isNetworkDisruptionError(err) {
|
|
254
|
+
if (!err) return false;
|
|
255
|
+
// undici may carry the original code either on err.code or on err.cause.code
|
|
256
|
+
if (_NETWORK_DISRUPTION_CODES.has(err.code)) return true;
|
|
257
|
+
if (err.cause && _NETWORK_DISRUPTION_CODES.has(err.cause.code)) return true;
|
|
258
|
+
return false;
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
function _validateHubUrl(url) {
|
|
262
|
+
let parsed;
|
|
263
|
+
try {
|
|
264
|
+
parsed = new URL(url);
|
|
265
|
+
} catch {
|
|
266
|
+
throw new Error(
|
|
267
|
+
'[hubFetch] Hub URL is not a valid URL: ' + JSON.stringify(url) + '. ' +
|
|
268
|
+
'Set EVOMAP_HUB_ALLOW_INSECURE=1 to bypass (local dev / mock hub only).'
|
|
269
|
+
);
|
|
270
|
+
}
|
|
271
|
+
if (parsed.protocol !== 'https:') {
|
|
272
|
+
throw new Error(
|
|
273
|
+
'[hubFetch] Hub URL must use https:// — got ' + JSON.stringify(url) + '. ' +
|
|
274
|
+
'Set EVOMAP_HUB_ALLOW_INSECURE=1 to bypass (local dev / mock hub only).'
|
|
275
|
+
);
|
|
276
|
+
}
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
// Public scheme-only guard for callers that already manage their own HTTP
|
|
280
|
+
// transport (Node's `http`/`https` modules, the platform `fetch`, etc.) and
|
|
281
|
+
// just want to honour the same "https-only unless EVOMAP_HUB_ALLOW_INSECURE=1"
|
|
282
|
+
// posture hubFetch enforces. Throws synchronously on bad input — match
|
|
283
|
+
// _validateHubUrl's throw semantics so call sites can wrap in try/catch.
|
|
284
|
+
//
|
|
285
|
+
// Use this instead of bare URL/fetch when you cannot route through hubFetch
|
|
286
|
+
// (e.g. the existing src/atp/atpExecute.js and src/atp/hubClient.js paths
|
|
287
|
+
// that use http.request / native fetch directly).
|
|
288
|
+
function enforceHubScheme(url) {
|
|
289
|
+
if (process.env.EVOMAP_HUB_ALLOW_INSECURE === '1') return;
|
|
290
|
+
_validateHubUrl(url);
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
// async so synchronous validation throws become Promise rejections — every
|
|
294
|
+
// caller already awaits / .then()s the result, and this makes the function
|
|
295
|
+
// behave uniformly for `assert.rejects(...)` in tests.
|
|
296
|
+
async function hubFetch(url, options) {
|
|
297
|
+
if (process.env.EVOMAP_HUB_ALLOW_INSECURE === '1') {
|
|
298
|
+
// Insecure mode is documented as "local dev / mock hub on http:// or
|
|
299
|
+
// self-signed cert". In that mode use the platform fetch — Node's
|
|
300
|
+
// built-in global.fetch is identical engine to undici, but keeping it
|
|
301
|
+
// as the platform lookup lets tests that stub `global.fetch = mockImpl`
|
|
302
|
+
// intercept the call without forking through _setFetchImplForTest. If
|
|
303
|
+
// a test has explicitly installed the seam, honor that — the explicit
|
|
304
|
+
// override wins over the implicit global lookup.
|
|
305
|
+
const insecureFetch = (_fetchImpl !== undiciFetch) ? _fetchImpl : global.fetch;
|
|
306
|
+
return insecureFetch(url, options);
|
|
307
|
+
}
|
|
308
|
+
_validateHubUrl(url);
|
|
309
|
+
// Object.assign last-wins is intentional: a caller-supplied dispatcher
|
|
310
|
+
// would defeat the TLS guard, so we always force ours. No current caller
|
|
311
|
+
// passes one; revisit if that changes.
|
|
312
|
+
const dispatcher = _pickDispatcher(url);
|
|
313
|
+
try {
|
|
314
|
+
return await _fetchImpl(url, Object.assign({}, options, { dispatcher }));
|
|
315
|
+
} catch (err) {
|
|
316
|
+
// On Linux a NetworkManager reconnect, VPN re-establishment, or WiFi
|
|
317
|
+
// hand-off silently invalidates all existing TCP sockets in the undici
|
|
318
|
+
// pool. The kernel surfaces the break as a network-disruption error
|
|
319
|
+
// code on the next read/write. Without drainPool() the next request
|
|
320
|
+
// reuses another dead socket from the same pool and suffers the same
|
|
321
|
+
// error again. Draining here lets the *next* call open a fresh
|
|
322
|
+
// connection immediately without waiting for the heartbeat's normal
|
|
323
|
+
// interval or the drift-detector's 2*interval poke window.
|
|
324
|
+
//
|
|
325
|
+
// We call drainPool() synchronously before re-throwing so the caller's
|
|
326
|
+
// existing error path (heartbeat .catch, poll .catch, etc.) fires as
|
|
327
|
+
// normal -- this is purely a pool-hygiene side-effect, not a retry.
|
|
328
|
+
if (_isNetworkDisruptionError(err)) {
|
|
329
|
+
try {
|
|
330
|
+
drainPool();
|
|
331
|
+
} catch (_) { /* never block the throw on a pool-drain failure */ }
|
|
332
|
+
}
|
|
333
|
+
throw err;
|
|
334
|
+
}
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
module.exports = {
|
|
338
|
+
hubFetch,
|
|
339
|
+
drainPool,
|
|
340
|
+
_isNetworkDisruptionError,
|
|
341
|
+
_validateHubUrl,
|
|
342
|
+
enforceHubScheme,
|
|
343
|
+
// For callers that must build their own HTTP transport. The Node
|
|
344
|
+
// native case (`https.request(...)`) needs an Agent pinned to
|
|
345
|
+
// rejectUnauthorized:true so a global `NODE_TLS_REJECT_UNAUTHORIZED=0`
|
|
346
|
+
// cannot weaken the Hub channel; pass `strictHttpsAgent` as
|
|
347
|
+
// `options.agent`. Skip when `EVOMAP_HUB_ALLOW_INSECURE=1`, matching
|
|
348
|
+
// hubFetch's own escape-hatch behaviour.
|
|
349
|
+
//
|
|
350
|
+
// For fetch-based callers do NOT pair a hand-rolled Agent with
|
|
351
|
+
// `global.fetch`: `global.fetch` is backed by Node's *internal*
|
|
352
|
+
// undici, and an Agent from the installed `undici` package crashes
|
|
353
|
+
// it with `UND_ERR_INVALID_ARG: invalid onRequestStart method`
|
|
354
|
+
// (see the warning at the top of this file). Route through
|
|
355
|
+
// `hubFetch()` itself instead — it already applies the dispatcher
|
|
356
|
+
// from the right undici copy.
|
|
357
|
+
strictHttpsAgent: _strictHttpsAgent,
|
|
358
|
+
_setFetchImplForTest,
|
|
359
|
+
};
|