@mooncompany/uplink-chat 0.32.2 → 0.32.3

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 (136) hide show
  1. package/bin/uplink.js +1 -1
  2. package/middleware/error-handler.js +1 -1
  3. package/package.json +1 -1
  4. package/public/dist/bundle.493af136.js +1 -0
  5. package/public/icon-192.png +0 -0
  6. package/public/icon-512.png +0 -0
  7. package/public/img/logo.svg +12 -12
  8. package/public/img/wordmark.svg +34 -20
  9. package/public/index.html +16 -6
  10. package/public/js/agents-data.js +1 -1
  11. package/public/js/agents-ui.js +1 -1
  12. package/public/js/agents.js +1 -1
  13. package/public/js/app.js +1 -1
  14. package/public/js/appearance-settings.js +1 -1
  15. package/public/js/artifacts.js +1 -1
  16. package/public/js/audio-pcm-processor.js +1 -1
  17. package/public/js/audio-queue.js +1 -1
  18. package/public/js/bootstrap.js +1 -1
  19. package/public/js/chat.js +1 -1
  20. package/public/js/commands.js +1 -1
  21. package/public/js/connection-api.js +1 -1
  22. package/public/js/connection.js +1 -1
  23. package/public/js/context-tracker.js +1 -1
  24. package/public/js/core.js +1 -1
  25. package/public/js/cron-panel.js +1 -1
  26. package/public/js/dashboard.js +1 -1
  27. package/public/js/developer.js +1 -1
  28. package/public/js/encryption.js +1 -1
  29. package/public/js/errors.js +1 -1
  30. package/public/js/event-bus.js +1 -1
  31. package/public/js/fetch-utils.js +1 -1
  32. package/public/js/file-handler.js +1 -1
  33. package/public/js/files.js +1 -1
  34. package/public/js/gateway-chat.js +1 -1
  35. package/public/js/logger.js +1 -1
  36. package/public/js/markdown.js +1 -1
  37. package/public/js/message-actions.js +1 -1
  38. package/public/js/message-renderer.js +1 -1
  39. package/public/js/missed-messages.js +1 -1
  40. package/public/js/mobile-debug.js +1 -1
  41. package/public/js/notifications.js +1 -1
  42. package/public/js/offline-queue.js +1 -1
  43. package/public/js/onboarding.js +1 -1
  44. package/public/js/panels.js +1 -1
  45. package/public/js/premium.js +1 -1
  46. package/public/js/primary-header.js +1 -1
  47. package/public/js/realtime-voice.js +1 -1
  48. package/public/js/satellite-sync.js +1 -1
  49. package/public/js/satellite-ui.js +1 -1
  50. package/public/js/satellites.js +1 -1
  51. package/public/js/settings.js +1 -1
  52. package/public/js/shortcuts.js +1 -1
  53. package/public/js/split-chat.js +1 -1
  54. package/public/js/split-resize.js +1 -1
  55. package/public/js/splitview.js +1 -1
  56. package/public/js/storage.js +1 -1
  57. package/public/js/streaming-handler.js +1 -1
  58. package/public/js/stt-settings.js +1 -1
  59. package/public/js/themes.js +1 -1
  60. package/public/js/timestamps.js +1 -1
  61. package/public/js/tts-settings.js +1 -1
  62. package/public/js/ui.js +1 -1
  63. package/public/js/update-notifier.js +1 -1
  64. package/public/js/utils/constants.js +1 -1
  65. package/public/js/utils/icons.js +1 -1
  66. package/public/js/utils/sanitize.js +1 -1
  67. package/public/js/utils/sse-parser.js +1 -1
  68. package/public/js/vad.js +1 -1
  69. package/public/js/vendor/dompurify.min.js +1 -1
  70. package/public/js/voice-settings-v2.js +1 -1
  71. package/public/js/voice.js +1 -1
  72. package/public/sw.js +1 -1
  73. package/public/u-icon.png +0 -0
  74. package/server/channel.js +1 -1
  75. package/server/chat.js +1 -1
  76. package/server/config-store.js +1 -1
  77. package/server/config.js +1 -1
  78. package/server/context.js +1 -1
  79. package/server/gateway-api-proxy.js +1 -1
  80. package/server/gateway-commands.js +1 -1
  81. package/server/gateway-proxy.js +1 -1
  82. package/server/index.js +1 -1
  83. package/server/logger.js +1 -1
  84. package/server/message-store.js +1 -1
  85. package/server/middleware/auth.js +1 -1
  86. package/server/middleware.js +1 -1
  87. package/server/openclaw-discover.js +1 -1
  88. package/server/premium/index.js +1 -1
  89. package/server/premium/license.js +1 -1
  90. package/server/realtime/bridge.js +1 -1
  91. package/server/realtime/index.js +1 -1
  92. package/server/realtime/tts-stream.js +1 -1
  93. package/server/routes/agents.js +1 -1
  94. package/server/routes/artifacts.js +1 -1
  95. package/server/routes/chat.js +1 -1
  96. package/server/routes/config-settings.js +1 -1
  97. package/server/routes/config.js +1 -1
  98. package/server/routes/cron.js +1 -1
  99. package/server/routes/files.js +1 -1
  100. package/server/routes/index.js +1 -1
  101. package/server/routes/media.js +1 -1
  102. package/server/routes/missed-messages.js +1 -1
  103. package/server/routes/premium.js +1 -1
  104. package/server/routes/push.js +1 -1
  105. package/server/routes/satellite.js +1 -1
  106. package/server/routes/status.js +1 -1
  107. package/server/routes/stt.js +1 -1
  108. package/server/routes/voice.js +1 -1
  109. package/server/routes/webhooks.js +1 -1
  110. package/server/routes.js +1 -1
  111. package/server/runtime-config.js +1 -1
  112. package/server/share.js +1 -1
  113. package/server/stt/faster-whisper.js +1 -1
  114. package/server/stt/groq.js +1 -1
  115. package/server/stt/index.js +1 -1
  116. package/server/stt/openai.js +1 -1
  117. package/server/sync.js +1 -1
  118. package/server/tailscale-https.js +1 -1
  119. package/server/tts.js +1 -1
  120. package/server/update-checker.js +1 -1
  121. package/server/utils/filename.js +1 -1
  122. package/server/utils.js +1 -1
  123. package/server/watchdog.js +1 -1
  124. package/server/websocket/broadcast.js +1 -1
  125. package/server/websocket/connections.js +1 -1
  126. package/server/websocket/index.js +1 -1
  127. package/server/websocket/routing.js +1 -1
  128. package/server/websocket/sync.js +1 -1
  129. package/server.js +1 -1
  130. package/utils/detect-tool-usage.js +1 -1
  131. package/utils/errors.js +1 -1
  132. package/utils/html-escape.js +1 -1
  133. package/utils/id-sanitize.js +1 -1
  134. package/utils/response.js +1 -1
  135. package/utils/with-retry.js +1 -1
  136. package/public/dist/bundle.d3a90e4a.js +0 -1
package/public/sw.js CHANGED
@@ -1 +1 @@
1
- (function(_0x387d2d,_0x23d951){function _0x1f618d(_0x296986,_0x4e19fe){return _0x22b0(_0x4e19fe- -0x319,_0x296986);}function _0xa47c0d(_0x135a9b,_0x21eb49){return _0x22b0(_0x135a9b- -0x3e3,_0x21eb49);}const _0x23df0e=_0x387d2d();while(!![]){try{const _0x583370=-parseInt(_0x1f618d(-0x30b,-0x28f))/(0x5ba*-0x1+-0x3*0xce5+0x2c6a)*(parseInt(_0x1f618d(-0x1d6,-0x1d5))/(-0xd*-0x73+0xf*-0x5+0x2*-0x2c5))+-parseInt(_0x1f618d(-0x190,-0x1fe))/(0x42b*-0x7+0x8*-0x103+0x12a4*0x2)+parseInt(_0x1f618d(-0x165,-0x1d8))/(-0x614+-0xd36+0x134e)*(-parseInt(_0x1f618d(-0x20d,-0x20a))/(0x23*0xcd+-0x1cca+0xc8))+parseInt(_0x1f618d(-0x1f0,-0x1bd))/(-0x1008+0x1a23*-0x1+0x1*0x2a31)*(-parseInt(_0x1f618d(-0x294,-0x28b))/(0x102c+0x1*0x2c2+0x3*-0x64d))+-parseInt(_0xa47c0d(-0x2d9,-0x300))/(0xf6+-0x18b9*0x1+0x17cb*0x1)+-parseInt(_0xa47c0d(-0x327,-0x39d))/(0x115*0x18+-0x1fed+0x5fe)+-parseInt(_0x1f618d(-0x1a8,-0x197))/(-0x36*-0x39+-0x1*-0xa9b+-0x1697)*(-parseInt(_0xa47c0d(-0x2c1,-0x313))/(0x61f*-0x6+-0xdb+-0x10*-0x25a));if(_0x583370===_0x23d951)break;else _0x23df0e['push'](_0x23df0e['shift']());}catch(_0x5a9efb){_0x23df0e['push'](_0x23df0e['shift']());}}}(_0x2369,0xce166+0xfcbed+-0xeff58));const _0x24571c=(function(){let _0x4fbf6b=!![];return function(_0x3b52d2,_0x388fcf){const _0x57df5a=_0x4fbf6b?function(){if(_0x388fcf){const _0x327abd=_0x388fcf['apply'](_0x3b52d2,arguments);return _0x388fcf=null,_0x327abd;}}:function(){};return _0x4fbf6b=![],_0x57df5a;};}()),_0x4b6434=_0x24571c(this,function(){function _0x1ee706(_0x2b9979,_0x4e2724){return _0x22b0(_0x4e2724- -0x61,_0x2b9979);}const _0x300db4={};function _0x1be6d3(_0x9e05e9,_0x3b1a93){return _0x22b0(_0x9e05e9- -0x320,_0x3b1a93);}_0x300db4[_0x1ee706(-0x16,0x1e)]=_0x1be6d3(-0x2a6,-0x280)+_0x1ee706(0x7f,0xcc)+'+$';const _0x7a1e9c=_0x300db4;return _0x4b6434[_0x1ee706(0x3a,0x31)+_0x1ee706(0xce,0xc9)]()[_0x1be6d3(-0x286,-0x278)+'h'](_0x7a1e9c[_0x1ee706(0x21,0x1e)])[_0x1be6d3(-0x28e,-0x2c1)+_0x1ee706(0x48,0xc9)]()[_0x1ee706(0x84,0x95)+_0x1ee706(0x106,0x104)+'r'](_0x4b6434)[_0x1ee706(0x8c,0x39)+'h'](_0x7a1e9c['RuESO']);});_0x4b6434();const CACHE_NAME=_0x1389c9(0x14d,0xc5)+'k-v26'+'1',STATIC_ASSETS=['/',_0x1a1468(0x375,0x390)+_0x1a1468(0x2d2,0x2fa)+'l',_0x1a1468(0x364,0x30c)+_0x1389c9(0x19d,0x16a)+'bles.'+_0x1a1468(0x320,0x29b),_0x1a1468(0x2b7,0x30c)+_0x1389c9(0xec,0x81)+_0x1a1468(0x2f1,0x331)+_0x1389c9(0xd4,0x146)+'s','/css/'+_0x1a1468(0x304,0x295)+_0x1a1468(0x335,0x307),_0x1389c9(0x70,0xe3)+'theme'+_0x1a1468(0x227,0x29d),_0x1389c9(0xda,0xe3)+_0x1389c9(0x134,0xba)+_0x1389c9(0x12e,0xd2)+'s',_0x1389c9(0xb5,0xe3)+_0x1389c9(0xcd,0x14e)+_0x1a1468(0x2e0,0x31e)+'ss',_0x1a1468(0x291,0x30c)+_0x1389c9(0xc,0x92)+_0x1a1468(0x31b,0x37b)+'.css',_0x1389c9(0x118,0xe3)+'devel'+_0x1389c9(0xcf,0xaf)+_0x1389c9(0xae,0x72),_0x1389c9(0x93,0xe3)+_0x1a1468(0x200,0x28b)+_0x1389c9(0x144,0x11a)+_0x1389c9(0x45,0xa2)+_0x1a1468(0x36d,0x344),_0x1a1468(0x359,0x30c)+'dashb'+_0x1389c9(0xdd,0x143)+_0x1389c9(0x66,0x72),'/css/'+'files'+_0x1a1468(0x3a6,0x344),'/css/'+_0x1a1468(0x379,0x37e)+_0x1a1468(0x2fe,0x384)+'ss',_0x1a1468(0x2a5,0x30c)+_0x1389c9(0x1d7,0x14c)+'cuts.'+_0x1a1468(0x2d0,0x29b),_0x1389c9(0x136,0xe3)+'times'+'tamps'+_0x1a1468(0x394,0x344),_0x1389c9(0xb2,0xe3)+_0x1389c9(0xb5,0x123)+_0x1389c9(0xe0,0x122)+'.7fa7'+_0x1a1468(0x3fd,0x38d)+_0x1389c9(0x1,0x72),'/css/'+_0x1389c9(0x2c,0x8e)+'s-uni'+_0x1a1468(0x2bb,0x2fc)+'css',_0x1389c9(0xdc,0xe3)+_0x1a1468(0x3b0,0x33d)+'ngs-r'+_0x1389c9(0x122,0x140)+_0x1a1468(0x29f,0x292)+'s',_0x1389c9(0xb9,0xe3)+_0x1389c9(0x9a,0x101)+'ge-ac'+_0x1a1468(0x364,0x346)+'.css','/css/'+'artif'+_0x1a1468(0x3b6,0x332)+_0x1389c9(0xd8,0x72),_0x1a1468(0x28a,0x30c)+_0x1389c9(0xb1,0x105)+'ime.c'+'ss',_0x1a1468(0x276,0x2b6)+'e.min'+_0x1389c9(0x67,0xbc),_0x1389c9(0xc1,0xad)+_0x1389c9(0xbc,0x96)+_0x1389c9(0xa0,0xbb)+_0x1a1468(0x2d2,0x32c)+_0x1389c9(0x8c,0xa5),'/js/l'+_0x1a1468(0x27e,0x309)+_0x1389c9(0x62,0xbc),'/js/c'+_0x1389c9(0xbb,0x12f)+'s','/js/b'+_0x1a1468(0x2be,0x2cd)+_0x1a1468(0x2ad,0x2a2)+'s',_0x1a1468(0x35e,0x37d)+'torag'+_0x1389c9(0x153,0xe6),_0x1a1468(0x2ce,0x2ae)+_0x1a1468(0x3d5,0x373)+_0x1389c9(0xaf,0xf7)+'js',_0x1a1468(0x322,0x2b5)+_0x1389c9(0x5c,0x78)+_0x1389c9(0x146,0xc1)+'js',_0x1a1468(0x20a,0x290)+_0x1389c9(0x7b,0x80),_0x1a1468(0x224,0x2ae)+_0x1a1468(0x2ce,0x298)+_0x1389c9(0x4d,0xbc),_0x1389c9(0x123,0x127)+_0x1a1468(0x385,0x33b)+'s',_0x1389c9(-0x7,0x84)+'oice.'+'js',_0x1389c9(0x10a,0x154)+_0x1389c9(0x1f,0x73)+_0x1389c9(0x125,0xcd),_0x1a1468(0x307,0x350)+'omman'+_0x1389c9(0x121,0x102),_0x1389c9(0xc3,0x11c)+_0x1389c9(0x98,0xa1)+_0x1a1468(0x2b3,0x2c4)+'s',_0x1389c9(0x196,0x11c)+_0x1389c9(0x120,0xca)+_0x1a1468(0x2bb,0x2d0)+'s','/js/f'+_0x1389c9(0x168,0x110)+'js','/js/p'+_0x1389c9(0x64,0x83)+'.js','/js/t'+'hemes'+'.js',_0x1389c9(0x62,0x89)+_0x1a1468(0x3d4,0x376)+_0x1389c9(0xde,0x100),_0x1a1468(0x308,0x319)+_0x1389c9(0x19a,0x170)+_0x1389c9(0xe4,0x70)+_0x1a1468(0x320,0x38e),'/js/s'+'hortc'+'uts.j'+'s',_0x1a1468(0x2d4,0x35b)+_0x1389c9(0x1c4,0x14f)+_0x1389c9(0xa,0x7f)+_0x1a1468(0x31e,0x325)+'js',_0x1389c9(0x18b,0x10d)+_0x1389c9(0x172,0x135)+'amps.'+'js',_0x1389c9(0x19d,0x132)+'arkdo'+'wn.js',_0x1389c9(0xb1,0x127)+'onnec'+_0x1389c9(0x12c,0xf7)+'js',_0x1389c9(0x107,0xbf)+_0x1a1468(0x2eb,0x2a6)+_0x1389c9(0x92,0xac)+_0x1389c9(0xd8,0x15d),'/js/a'+_0x1389c9(0xf2,0x13c)+'.js',_0x1389c9(0x160,0x154)+'atell'+'ites.'+'js','/js/s'+'atell'+_0x1a1468(0x259,0x2c6)+_0x1a1468(0x306,0x28a)+'s',_0x1389c9(0x194,0x132)+_0x1389c9(0xca,0x95)+_0x1389c9(0xdc,0x11f)+_0x1a1468(0x34e,0x326)+'js',_0x1a1468(0x2e7,0x350)+_0x1389c9(0x11f,0x138)+'t-tra'+'cker.'+'js',_0x1389c9(0x159,0x154)+'plitv'+_0x1a1468(0x379,0x34e)+'s',_0x1389c9(0x4f,0x67)+_0x1389c9(0x38,0xbe)+'-noti'+_0x1389c9(0xc4,0x13f)+'js',_0x1389c9(0x12a,0x136)+_0x1389c9(0xd1,0x10c)+'g','/icon'+_0x1a1468(0x2ee,0x283)+'png',_0x1389c9(0x1b0,0x15f)+_0x1a1468(0x2e2,0x30a)+_0x1389c9(0xbb,0x144),_0x1389c9(0xff,0x16d)+'fest.'+_0x1a1468(0x2bd,0x318)];self[_0x1a1468(0x2e2,0x2f8)+_0x1389c9(0x174,0x139)+_0x1389c9(0x16a,0x118)+'r'](_0x1389c9(0x125,0xb6)+'ll',_0x1075eb=>{function _0x49bb42(_0x5f48b9,_0x2d1d4a){return _0x1389c9(_0x2d1d4a,_0x5f48b9-0x7f);}const _0x409999={};function _0x53c722(_0x46c334,_0x490ecd){return _0x1389c9(_0x490ecd,_0x46c334-0x1ee);}_0x409999[_0x49bb42(0x1d2,0x1f7)]=_0x53c722(0x322,0x357)+_0x49bb42(0x1e8,0x1c2)+_0x53c722(0x344,0x333),_0x409999['jhMMS']=function(_0x3875a5,_0x49ade0){return _0x3875a5!==_0x49ade0;},_0x409999['cdACC']='pgxhx';const _0x220713=_0x409999;_0x1075eb['waitU'+_0x53c722(0x252,0x1e7)](caches[_0x49bb42(0x1a0,0x15a)](CACHE_NAME)['then'](_0x46b8ed=>{const _0x26f513={};_0x26f513[_0x204b2c(0x16,0x25)]=_0x220713[_0x2aa508(0x1fb,0x1d3)];function _0x204b2c(_0xbc007d,_0xaab9e){return _0x49bb42(_0xbc007d- -0xf4,_0xaab9e);}function _0x2aa508(_0x451670,_0x504359){return _0x49bb42(_0x504359-0x1,_0x451670);}const _0x380df8=_0x26f513;if(_0x220713[_0x204b2c(0x2e,0xf)](_0x220713['cdACC'],_0x220713[_0x2aa508(0x1c3,0x147)])){const _0xb719cc={};_0xb719cc[_0x2aa508(0x247,0x1de)]=_0x380df8[_0x204b2c(0x16,-0x44)],_0xb719cc[_0x2aa508(0x180,0x1a3)+_0x204b2c(0x36,-0xa)+'d']=_0x4adb78,_0x31d58c[_0x2aa508(0x1f8,0x1e2)+_0x204b2c(0x20,0x45)+'e'](_0xb719cc);}else return _0x46b8ed[_0x204b2c(0x89,0x2)+'l'](STATIC_ASSETS);})),self[_0x49bb42(0x106,0x176)+_0x49bb42(0x10e,0x185)+'g']();});function _0x2369(){const _0x1cbafc=['messa','ds.js','a90e4','OtyTI','realt','NmYwm','3549153rGWtpr','c7e74','acts.','gdQQY','activ','on.pn','/js/t','41999441JzbTIU','iled:','iles.','error','hat.j','WslFC','setti','All','ing','able','stene',')+)+)','s.1fd','.css','/js/d','tions','catch','e-act','put','open','lites','satel','delet','iew.j','no-st','/js/c','ion','-cach','renot','NQUSo','requi','12EBvCzS','clien','ore.j','143806ONAAmk','FNjEm','/js/m','waitU','switc','imest','/u-ic','keys','ontex','entLi','tific','aNGrK','gents','body','Uplin','fier.','edesi','oVenI','cache','oard.','png','ng\x20no','84.cs','clFnJ','18gtWFuB','title','ncryp','data:','short','remiu','comma','issed','hhXKX','ructo','ction','gAnVS','/js/s','markd','llite','FqUUh','regis','sion\x20','filte','own.c','iYxBl','t.js','type','/icon','rging','ce\x20Un','postM','xANbG','2088.','ns.js','recei','/inde','inclu','hSate','varia','OAuns','Showi','/mani','20GtGFrX','claim','otifi','svHzD','-192.','\x20!==\x20','muTUv','showN','PNuYI','Faile','map','ync.j','agent','rsion','ntil','Serve','(((.+','/js/u','icati','gn.cs','NMciX','RuESO','mobil','match','then','rrors','catio','cPIIO','css','ettin','s.css','icon','20jcfxUc','respo','nboar','rap.j','3225439olROlf','Hbkvx','qqXvN','atewa','toStr','-mess','i.js','app.b','GET','anels','/js/v','/js/e','searc','skipW','aClkv','/js/p','des','zIRGX','/js/o','/thre','panel','aitin','tag','oncli','conne','r\x20ver','Offli','essag','/bund','ify','sw-ve','sText','fUuSr','per.j','\x20data','ite-s','/api/','yQdKQ','on\x20sh','evelo','7567a','jhMMS','ootst','a.js','XEgOG','ard.j','9044244dooKkI','ate','Push\x20','liteI','y-cha','/dist','reInt','oper.','data','\x20push','statu','ndWit','Servi','VlPBt','insta','locat','fetch','sIurM','premi','le.d3','.js','QQmjX','pdate','/js/g','TPCdB','ding.','origi','k-mes','url','uplin','d\x20to\x20','cdACC','avail','sWith','ashbo','own','sage','gs.js','VluVH','addEv','New\x20m','x.htm','um.cs','fied.','TxZAK','Notif','ved!','trati','hLYCj','parse','start','eract','http','tguqV','e.css','yhpOP','ogger','-512.','const','/css/','advpV','focus','e.js','HynPo','[SW]\x20','indow','notif','EKfLA','log','EWQmh','reque','json','/js/n','ation','clone','FEzaA','on\x20fa','nds.c','11263760NVwags','tion.','YTzij','ore','mode','539045Jmwtga','ages.','ions.','addAl','rsRut','m.js'];_0x2369=function(){return _0x1cbafc;};return _0x2369();}function _0x1389c9(_0x5d4e01,_0x5b5542){return _0x22b0(_0x5b5542- -0x14,_0x5d4e01);}self[_0x1a1468(0x2c5,0x2f8)+_0x1389c9(0x12c,0x139)+_0x1a1468(0x2bf,0x341)+'r'](_0x1a1468(0x343,0x334)+_0x1a1468(0x303,0x2d2),_0x153e18=>{function _0xc7681a(_0x46839d,_0xa25db7){return _0x1a1468(_0x46839d,_0xa25db7-0x17d);}_0x153e18[_0xc7681a(0x464,0x4d9)+_0x23a0e4(-0x1b9,-0x1f9)](caches['keys']()[_0xc7681a(0x40c,0x414)](_0x2a8fcd=>{function _0x59d941(_0x5268eb,_0x1fea41){return _0x23a0e4(_0x1fea41,_0x5268eb-0x523);}function _0xed918e(_0x4a027c,_0x43873d){return _0x23a0e4(_0x43873d,_0x4a027c-0x5ae);}return Promise['all'](_0x2a8fcd[_0xed918e(0x4ab,0x4f0)+'r'](_0x15bf2c=>_0x15bf2c!==CACHE_NAME)['map'](_0x4717e4=>caches[_0x59d941(0x3ea,0x3b6)+'e'](_0x4717e4)));}));function _0x23a0e4(_0xab99d9,_0x27438b){return _0x1a1468(_0xab99d9,_0x27438b- -0x486);}self[_0x23a0e4(-0x187,-0x12f)+'ts'][_0x23a0e4(-0x145,-0xee)]();});async function checkForUpdate(){const _0xd6bcbc={};function _0x249fa1(_0x23712f,_0x53a04f){return _0x1a1468(_0x23712f,_0x53a04f-0x1a2);}function _0x45b6c4(_0x234a60,_0x19f249){return _0x1a1468(_0x19f249,_0x234a60- -0x20d);}_0xd6bcbc['gdQQY']=_0x45b6c4(0x142,0x188)+_0x45b6c4(0x115,0x129);const _0xa6345d=_0xd6bcbc;try{const _0x499341={};_0x499341[_0x249fa1(0x509,0x50d)]=_0xa6345d[_0x45b6c4(0x126,0xb0)];const _0x5486c1=await fetch(_0x45b6c4(0xba,0x12a)+_0x45b6c4(0xb4,0x61)+_0x249fa1(0x3ea,0x42e),_0x499341);if(!_0x5486c1['ok'])return;const {version:_0x318760}=await _0x5486c1[_0x249fa1(0x478,0x4ba)]();if(_0x318760&&_0x318760!==CACHE_NAME){console[_0x45b6c4(0x108,0x15e)](_0x249fa1(0x439,0x4b3)+_0x45b6c4(0x81,0x74)+_0x45b6c4(0xaf,0x12a)+_0x249fa1(0x562,0x524)+_0x318760+_0x45b6c4(0x77,0xb2)+CACHE_NAME+('\x20—\x20pu'+_0x45b6c4(0x17c,0x1df)+'\x20cach'+'e'));const _0x4ecdeb=await caches[_0x249fa1(0x4a7,0x502)]();await Promise['all'](_0x4ecdeb[_0x45b6c4(0x7c,0xde)](_0x2f7507=>caches[_0x249fa1(0x507,0x4ef)+'e'](_0x2f7507))),self['regis'+_0x249fa1(0x4d1,0x4a2)+'on']['updat'+'e']();}}catch(_0x59b8ff){}}function _0x22b0(_0x22b0d9,_0x489710){_0x22b0d9=_0x22b0d9-(0x64d*0x5+-0x2704+0x7f1);const _0x5c7c61=_0x2369();let _0x58497e=_0x5c7c61[_0x22b0d9];return _0x58497e;}self['addEv'+_0x1a1468(0x3d0,0x362)+_0x1389c9(0x128,0x118)+'r'](_0x1a1468(0x38e,0x334)+'ate',()=>{const _0x2bf510={'XBCTw':function(_0x372b64){return _0x372b64();}};_0x2bf510['XBCTw'](checkForUpdate);}),setInterval(checkForUpdate,(-0x23e*-0x8+0x2*0x1147+-0x65*0x85)*(-0x1*0xd56+0x445*0x6+0x3*-0x404)*(0x1579+0x1*-0x85d+0x3e*-0x26)),self[_0x1389c9(0xf3,0xcf)+_0x1a1468(0x3ba,0x362)+_0x1a1468(0x385,0x341)+'r'](_0x1a1468(0x328,0x2e1),_0x374f0e=>{function _0x22831f(_0x1d995d,_0x31c7ae){return _0x1a1468(_0x31c7ae,_0x1d995d-0x12e);}const _0x152d84={'IJxXI':_0x22831f(0x4c2,0x53a),'FEzaA':_0x4a765a(0x378,0x2f0)+_0x4a765a(0x33a,0x375)+_0x4a765a(0x3f6,0x36f)+_0x22831f(0x42d,0x41a),'qqXvN':_0x4a765a(0x378,0x35c)+_0x22831f(0x3b6,0x37f)+_0x22831f(0x41d,0x426)+_0x22831f(0x430,0x4ae)+_0x22831f(0x408,0x453)+'\x20data'+':','NMciX':_0x22831f(0x427,0x3a3)+_0x22831f(0x3ec,0x464)+'e','tguqV':'[SW]\x20'+_0x4a765a(0x33a,0x34b)+_0x22831f(0x4a2,0x4ea),'WslFC':_0x4a765a(0x3ce,0x3b2)+'k','xANbG':_0x22831f(0x41c,0x3fa)+_0x4a765a(0x353,0x3a6)+'sage','cPIIO':'[SW]\x20'+_0x22831f(0x4c3,0x449)+_0x4a765a(0x3d5,0x361)+_0x4a765a(0x3ca,0x376)+_0x4a765a(0x381,0x368)+':','oVenI':function(_0x2fbb27,_0x4fc77d){return _0x2fbb27!==_0x4fc77d;},'Hbkvx':_0x4a765a(0x2ee,0x348),'mRMNg':_0x22831f(0x3d9,0x36a),'YTzij':'/api/','sIurM':function(_0x47a211,_0x2eacc3){return _0x47a211(_0x2eacc3);},'EWQmh':'navig'+_0x22831f(0x400,0x3f3),'hLYCj':function(_0x15bd25,_0xcc6bfb){return _0x15bd25===_0xcc6bfb;},'PrQuK':'iaaqi','NmYwm':_0x4a765a(0x377,0x3dc),'TxZAK':function(_0x149685){return _0x149685();}};if(_0x374f0e[_0x22831f(0x445,0x4ab)+'st']['metho'+'d']!==_0x152d84['mRMNg'])return;if(_0x374f0e[_0x4a765a(0x37e,0x380)+'st']['url'][_0x22831f(0x4bf,0x4ad)+_0x4a765a(0x31a,0x2f7)](_0x152d84[_0x22831f(0x44f,0x438)]))return;if(_0x374f0e[_0x4a765a(0x37e,0x302)+'st'][_0x22831f(0x41b,0x3ea)]['inclu'+'des']('clear'+_0x22831f(0x480,0x4c5)+'e'))return;if(!_0x374f0e[_0x4a765a(0x37e,0x33d)+'st'][_0x22831f(0x41b,0x432)][_0x4a765a(0x36a,0x37c)+_0x4a765a(0x359,0x394)](_0x22831f(0x433,0x419)))return;if(!_0x374f0e[_0x22831f(0x445,0x401)+'st'][_0x4a765a(0x354,0x33e)]['start'+_0x4a765a(0x359,0x362)](self['locat'+_0x22831f(0x47f,0x447)]['origi'+'n']))return;_0x374f0e[_0x22831f(0x3ce,0x439)+_0x22831f(0x40a,0x3f0)+'h'](_0x152d84[_0x4a765a(0x349,0x352)](fetch,_0x374f0e[_0x22831f(0x445,0x475)+'st'])[_0x4a765a(0x2fe,0x28e)](_0x56a95d=>{function _0x1e0241(_0x51b620,_0xbbf202){return _0x4a765a(_0xbbf202- -0x442,_0x51b620);}function _0x4afb1f(_0x212115,_0x23d077){return _0x4a765a(_0x212115-0x93,_0x23d077);}if(_0x56a95d['ok']&&_0x374f0e[_0x1e0241(-0x8b,-0xc4)+'st'][_0x1e0241(-0xe7,-0xee)][_0x1e0241(-0x77,-0xd8)+'sWith'](self[_0x4afb1f(0x3da,0x357)+_0x1e0241(-0xba,-0x8a)][_0x4afb1f(0x3e5,0x3c8)+'n'])){const _0x4ed1ff=_0x56a95d[_0x1e0241(-0x125,-0xc0)]();caches['open'](CACHE_NAME)[_0x1e0241(-0x1b9,-0x144)](_0x26b167=>{function _0x4b42de(_0x1ba420,_0x3823fd){return _0x4afb1f(_0x1ba420- -0x689,_0x3823fd);}function _0x24adc6(_0x1a6a72,_0x23e63d){return _0x4afb1f(_0x23e63d- -0x68,_0x1a6a72);}'OAuns'!==_0x152d84['IJxXI']?_0x1c707a=_0x459d26['data']?.[_0x24adc6(0x33b,0x3aa)]()||{}:_0x26b167[_0x24adc6(0x36c,0x3db)](_0x374f0e[_0x24adc6(0x3e9,0x3a9)+'st'],_0x4ed1ff);});}return _0x56a95d;})[_0x4a765a(0x3ae,0x335)](()=>{function _0x388c1d(_0x4dae7a,_0x5b7644){return _0x22831f(_0x4dae7a- -0x396,_0x5b7644);}const _0x1f79e3={'hhXKX':function(_0x5cb191,_0x3050e3){function _0x3c7b86(_0x4cfaeb,_0x2b7d62){return _0x22b0(_0x4cfaeb- -0x2cd,_0x2b7d62);}return _0x152d84[_0x3c7b86(-0x178,-0x158)](_0x5cb191,_0x3050e3);},'VlPBt':_0x388c1d(0x67,0x2d),'LPgje':_0x388c1d(0x75,0xf1)+'ce\x20Un'+_0x388c1d(0x89,0xfc)+_0x2b4eba(0x369,0x39d)};function _0x2b4eba(_0x354d7,_0x5a739d){return _0x22831f(_0x354d7- -0x105,_0x5a739d);}if(_0x152d84[_0x2b4eba(0x393,0x41d)](_0x152d84[_0x2b4eba(0x2cd,0x349)],'VFpDd'))return caches[_0x388c1d(0x2e,0x8a)](_0x374f0e[_0x388c1d(0xaf,0x3f)+'st'])[_0x388c1d(0x2f,-0x48)](_0x268d73=>{function _0x271127(_0x54f7cd,_0x5b240a){return _0x388c1d(_0x54f7cd- -0x9e,_0x5b240a);}function _0x5bb9f9(_0x102d88,_0x11b96d){return _0x388c1d(_0x102d88-0x3ad,_0x11b96d);}if(_0x1f79e3[_0x271127(0x73,0x8f)](_0x271127(-0x37,0x44),_0x1f79e3[_0x271127(-0x28,-0x99)]))return _0x1a88c4[_0x5bb9f9(0x46c,0x495)+'l'](_0x8d1a5e);else{const _0x414fdd={};return _0x414fdd[_0x5bb9f9(0x420,0x42d)+'s']=0x1f7,_0x414fdd[_0x5bb9f9(0x420,0x412)+'sText']=_0x1f79e3['LPgje'],_0x268d73||new Response(_0x271127(-0x49,0x23)+'ne',_0x414fdd);}});else{_0x5a0088[_0x2b4eba(0x33e,0x2c0)](_0x152d84[_0x2b4eba(0x345,0x38f)],_0x4182f8);let _0x411629={};try{_0x411629=_0x21f806[_0x388c1d(0x71,-0x3)]?.[_0x2b4eba(0x341,0x338)]()||{};}catch(_0x2d8a87){_0x373f32[_0x2b4eba(0x363,0x349)](_0x152d84[_0x388c1d(0x3d,0xa8)],_0x2d8a87),_0x411629={'body':_0x3ab9c3['data']?.['text']()||_0x152d84[_0x388c1d(0x2b,-0x3)]};}_0x2555a7[_0x388c1d(0xad,0xd7)](_0x152d84[_0x2b4eba(0x32f,0x2d9)],_0x411629);const _0x1d5a1c=_0x411629['title']||_0x152d84[_0x2b4eba(0x365,0x31e)],_0x28be6e={};_0x28be6e[_0x388c1d(0xfe,0xe3)]=_0x411629[_0x388c1d(0xfe,0xd5)]||_0x152d84[_0x388c1d(0x2b,-0x53)],_0x28be6e[_0x388c1d(0x36,0x59)]='/icon'+'-192.'+_0x2b4eba(0x396,0x317),_0x28be6e['badge']=_0x2b4eba(0x388,0x374)+_0x388c1d(0xcd,0x133)+'g',_0x28be6e[_0x388c1d(0x51,0xc8)]=_0x411629[_0x388c1d(0x51,-0x2a)]||_0x152d84[_0x388c1d(0x124,0x125)],_0x28be6e[_0x388c1d(0x71,-0x4)]={},_0x28be6e[_0x388c1d(0xed,0xba)+_0x388c1d(0x6f,0xb5)+_0x2b4eba(0x32d,0x398)+'ion']=![],_0x28be6e[_0x388c1d(0xeb,0x144)+_0x388c1d(0x58,0xb3)]=!![],_0x28be6e[_0x388c1d(0x71,-0x4)]['url']=_0x411629['url']||'/',_0x28be6e[_0x388c1d(0x71,-0x4)][_0x388c1d(0xe4,0xa7)+'liteI'+'d']=_0x411629['satel'+_0x388c1d(0x6c,0x7c)+'d'];const _0x1f8a52=_0x28be6e;_0x13fdf2[_0x2b4eba(0x33e,0x395)](_0x152d84[_0x2b4eba(0x2c3,0x2a8)],_0x1d5a1c,_0x1f8a52),_0x19aeba[_0x388c1d(0xf4,0xd5)+_0x2b4eba(0x2b6,0x314)](_0x34575a['regis'+_0x2b4eba(0x329,0x2f0)+'on'][_0x2b4eba(0x2af,0x23b)+'otifi'+_0x2b4eba(0x2c2,0x310)+'n'](_0x1d5a1c,_0x1f8a52)['then'](()=>_0x409c9e[_0x2b4eba(0x33e,0x2dd)](_0x2b4eba(0x33a,0x2c4)+_0x388c1d(0x96,0xc4)+_0x388c1d(0x29,0xc)+_0x2b4eba(0x2f2,0x35f)+_0x2b4eba(0x31d,0x2a2)))[_0x388c1d(0xdf,0x14e)](_0x439447=>_0x5d2626[_0x2b4eba(0x363,0x3ce)](_0x2b4eba(0x33a,0x345)+_0x388c1d(0x96,0x1a)+'icati'+_0x388c1d(0xb5,0x118)+_0x2b4eba(0x361,0x311),_0x439447)));}}));function _0x4a765a(_0x4754bd,_0x2dd934){return _0x1a1468(_0x2dd934,_0x4754bd-0x67);}_0x374f0e[_0x22831f(0x445,0x3fe)+'st'][_0x22831f(0x451,0x451)]===_0x152d84[_0x4a765a(0x37d,0x3a0)]&&(_0x152d84[_0x22831f(0x42f,0x3c9)](_0x152d84['PrQuK'],_0x152d84[_0x22831f(0x45d,0x4bf)])?(_0x2d7d62['waitU'+_0x4a765a(0x2f4,0x329)](_0x1034a0[_0x4a765a(0x3c7,0x3bd)]()['then'](_0x4c6849=>{function _0x379292(_0x91c5b3,_0x3ae82e){return _0x4a765a(_0x91c5b3- -0x307,_0x3ae82e);}function _0x1fe5e5(_0x18bc59,_0x2e14cc){return _0x4a765a(_0x2e14cc- -0xf5,_0x18bc59);}return _0x3066c8['all'](_0x4c6849[_0x379292(0xe3,0x59)+'r'](_0x135490=>_0x135490!==_0x384890)[_0x379292(-0x17,-0x17)](_0x93e3b0=>_0x5aa41a[_0x1fe5e5(0x2a0,0x2bf)+'e'](_0x93e3b0)));})),_0x39057b[_0x22831f(0x485,0x423)+'ts'][_0x4a765a(0x3ff,0x395)]()):_0x374f0e['waitU'+_0x22831f(0x3bb,0x446)](_0x152d84[_0x22831f(0x42b,0x3e1)](checkForUpdate)));});function _0x1a1468(_0x1dd88d,_0xea1098){return _0x22b0(_0xea1098-0x215,_0x1dd88d);}self[_0x1389c9(0xdf,0xcf)+'entLi'+_0x1a1468(0x333,0x341)+'r']('push',_0x41c7f6=>{const _0x146a84={};_0x146a84[_0xd5624f(0x3ea,0x370)]='[SW]\x20'+'Faile'+_0xd5624f(0x354,0x324)+_0x8e6221(0x34e,0x3d8)+_0xd5624f(0x33f,0x31a)+_0xd5624f(0x32a,0x31d)+':',_0x146a84[_0xd5624f(0x3d5,0x409)]=_0xd5624f(0x35e,0x328)+'essag'+'e',_0x146a84[_0x8e6221(0x359,0x3a8)]=_0xd5624f(0x3cc,0x431)+'k',_0x146a84[_0xd5624f(0x379,0x30d)]=_0xd5624f(0x3c4,0x39c)+_0x8e6221(0x381,0x38b)+'g',_0x146a84[_0xd5624f(0x3c9,0x395)]='uplin'+_0xd5624f(0x351,0x334)+_0xd5624f(0x35a,0x2e3),_0x146a84[_0x8e6221(0x3cc,0x421)]=_0x8e6221(0x35d,0x31a)+_0x8e6221(0x3e1,0x35b)+'ng\x20no'+'tific'+_0xd5624f(0x37f,0x3aa)+':';function _0xd5624f(_0x406f05,_0x159d37){return _0x1389c9(_0x159d37,_0x406f05-0x28e);}const _0x38aa56=_0x146a84;console['log']('[SW]\x20'+_0x8e6221(0x31f,0x2f0)+_0xd5624f(0x3f4,0x3be)+_0xd5624f(0x364,0x36b),_0x41c7f6);let _0x1888c2={};try{_0x1888c2=_0x41c7f6[_0xd5624f(0x33e,0x2f9)]?.[_0xd5624f(0x37d,0x305)]()||{};}catch(_0x51ee75){console[_0xd5624f(0x39f,0x429)](_0x38aa56['iYxBl'],_0x51ee75),_0x1888c2={'body':_0x41c7f6[_0x8e6221(0x325,0x3a1)]?.['text']()||_0x38aa56[_0x8e6221(0x3bc,0x3be)]};}console[_0x8e6221(0x361,0x317)](_0x8e6221(0x35d,0x340)+_0x8e6221(0x31f,0x308)+_0xd5624f(0x3d9,0x458),_0x1888c2);const _0x1df406=_0x1888c2[_0x8e6221(0x3be,0x37a)]||_0x38aa56[_0x8e6221(0x359,0x312)],_0x2e8335={};function _0x8e6221(_0x517426,_0xf8005f){return _0x1389c9(_0xf8005f,_0x517426-0x275);}_0x2e8335[_0x8e6221(0x3b2,0x3df)]=_0x1888c2[_0x8e6221(0x3b2,0x389)]||_0x8e6221(0x345,0x324)+_0xd5624f(0x323,0x332)+'e',_0x2e8335[_0xd5624f(0x303,0x342)]=_0x8e6221(0x3d4,0x39b)+_0x8e6221(0x2cf,0x32a)+_0xd5624f(0x3d2,0x3f1),_0x2e8335['badge']=_0x38aa56[_0xd5624f(0x379,0x386)],_0x2e8335['tag']=_0x1888c2[_0x8e6221(0x305,0x2fd)]||_0x38aa56['aNGrK'],_0x2e8335[_0x8e6221(0x325,0x35b)]={},_0x2e8335['requi'+_0x8e6221(0x323,0x2ee)+_0x8e6221(0x350,0x314)+_0x8e6221(0x39d,0x3f6)]=![],_0x2e8335[_0x8e6221(0x39f,0x3af)+_0xd5624f(0x325,0x378)]=!![],_0x2e8335[_0x8e6221(0x325,0x35b)][_0x8e6221(0x339,0x306)]=_0x1888c2[_0x8e6221(0x339,0x357)]||'/',_0x2e8335[_0x8e6221(0x325,0x35b)][_0xd5624f(0x3b1,0x3e4)+_0x8e6221(0x320,0x31a)+'d']=_0x1888c2['satel'+_0x8e6221(0x320,0x3a2)+'d'];const _0x5a8a58=_0x2e8335;console[_0x8e6221(0x361,0x3a0)](_0x38aa56['FqUUh'],_0x1df406,_0x5a8a58),_0x41c7f6['waitU'+_0xd5624f(0x2f2,0x314)](self[_0xd5624f(0x3e6,0x363)+'trati'+'on']['showN'+_0xd5624f(0x3fe,0x377)+_0xd5624f(0x2fe,0x314)+'n'](_0x1df406,_0x5a8a58)[_0x8e6221(0x2e3,0x294)](()=>console['log']('[SW]\x20'+_0xd5624f(0x363,0x374)+_0xd5624f(0x2f6,0x291)+'on\x20sh'+_0x8e6221(0x340,0x3c1)))[_0x8e6221(0x393,0x3f9)](_0x12759d=>console[_0xd5624f(0x39f,0x31f)](_0xd5624f(0x376,0x36f)+'Notif'+'icati'+_0x8e6221(0x369,0x312)+_0xd5624f(0x39d,0x3b2),_0x12759d)));}),self[_0x1389c9(0xa1,0xcf)+_0x1a1468(0x2d9,0x362)+_0x1389c9(0xb4,0x118)+'r'](_0x1389c9(0x62,0xea)+'icati'+_0x1a1468(0x33c,0x2ba)+'ck',_0x5d48b0=>{const _0x2ec200={};_0x2ec200[_0x24bab6(-0x53,-0x4f)]='Sdwvu',_0x2ec200[_0x24bab6(0x84,0x16)]=function(_0x2e08bb,_0x18ff7f){return _0x2e08bb!==_0x18ff7f;},_0x2ec200[_0x24bab6(-0x81,-0x61)]=_0x3c4d8d(0x1d7,0x23f),_0x2ec200[_0x3c4d8d(0x1f8,0x239)]=function(_0x3a4863,_0x462b3f){return _0x3a4863 in _0x462b3f;},_0x2ec200['svHzD']=function(_0x51a095,_0x1131e7){return _0x51a095!==_0x1131e7;},_0x2ec200[_0x24bab6(0x17,0x42)]=_0x24bab6(-0x13,-0x2c),_0x2ec200[_0x24bab6(-0x84,-0xa)]=function(_0x5b4945,_0x166725){return _0x5b4945===_0x166725;},_0x2ec200[_0x24bab6(0x71,0x1b)]=_0x24bab6(-0xaa,-0x8d);function _0x24bab6(_0x17e636,_0x38d7a0){return _0x1a1468(_0x17e636,_0x38d7a0- -0x312);}_0x2ec200[_0x24bab6(-0x8c,-0x1b)]='windo'+'w';const _0x4f3d98=_0x2ec200;_0x5d48b0[_0x24bab6(-0x7,0x1)+_0x3c4d8d(0x1a0,0x1bd)+'on']['close']();const _0x51eeb6=_0x5d48b0[_0x3c4d8d(0x222,0x1b2)+_0x3c4d8d(0x1a0,0x15a)+'on'][_0x3c4d8d(0x1e8,0x166)]?.[_0x3c4d8d(0x1fc,0x1a1)]||'/',_0x333e2a=_0x5d48b0[_0x3c4d8d(0x222,0x1f6)+_0x3c4d8d(0x1a0,0x1fe)+'on']['data']?.[_0x24bab6(0xb,0x3a)+_0x24bab6(0x3e,-0x3e)+'d'];function _0x3c4d8d(_0x17701a,_0x3a55c0){return _0x1a1468(_0x3a55c0,_0x17701a- -0xf1);}const _0x478120={};_0x478120[_0x24bab6(0xd2,0x75)]=_0x4f3d98[_0x3c4d8d(0x206,0x213)],_0x5d48b0[_0x3c4d8d(0x26b,0x2ef)+_0x24bab6(-0x28,-0x85)](clients['match'+_0x3c4d8d(0x24d,0x22a)](_0x478120)['then'](_0x41c7cd=>{function _0x28a439(_0x84d487,_0x296364){return _0x3c4d8d(_0x296364- -0x3d4,_0x84d487);}function _0x27414f(_0x1b1fbf,_0x174376){return _0x3c4d8d(_0x174376- -0x1b0,_0x1b1fbf);}if(_0x4f3d98[_0x27414f(0x4b,0x22)]!==_0x4f3d98[_0x27414f(-0x2b,0x22)]){const _0x55dbf6={};return _0x55dbf6[_0x28a439(-0x239,-0x1ea)+'s']=0x1f7,_0x55dbf6[_0x27414f(0xb5,0x3a)+_0x28a439(-0x1b3,-0x203)]=_0x27414f(0xe,0x3c)+_0x27414f(0xf0,0xe9)+_0x28a439(-0x1dc,-0x1d4)+_0x27414f(0x72,0x9f),_0x332c4f||new _0x33398b(_0x28a439(-0x1c3,-0x208)+'ne',_0x55dbf6);}else{for(const _0x5ca853 of _0x41c7cd){if(_0x4f3d98[_0x27414f(0x65,0x87)](_0x4f3d98[_0x28a439(-0x196,-0x214)],_0x27414f(-0x9,0x27)))_0x50cee1[_0x27414f(0x3c,0xbb)+_0x27414f(-0x1e,-0x14)](_0x467d52[_0x28a439(-0x124,-0x17b)](_0x213904)[_0x28a439(-0x22e,-0x22e)](_0x55ef74=>{function _0x44f1be(_0x3854ef,_0x1447df){return _0x28a439(_0x3854ef,_0x1447df-0x44d);}return _0x55ef74[_0x44f1be(0x254,0x2af)+'l'](_0x113bf0);})),_0x347110[_0x28a439(-0x254,-0x215)+_0x27414f(0x99,0x17)+'g']();else{if(_0x5ca853[_0x27414f(-0x2a,0x4c)]['inclu'+_0x27414f(-0x29,0x12)](self['locat'+'ion'][_0x28a439(-0x203,-0x1da)+'n'])&&_0x4f3d98[_0x28a439(-0x242,-0x1dc)](_0x27414f(0x3b,0x6d),_0x5ca853)){if(_0x4f3d98[_0x27414f(0x148,0xf9)](_0x4f3d98['NQUSo'],'QQmjX')){if(_0x5321fe['ok']&&_0x53a1d7[_0x28a439(-0x127,-0x1ae)+'st'][_0x27414f(0x26,0x4c)][_0x27414f(0x6e,0x62)+_0x28a439(-0x15f,-0x1d3)](_0x17273a[_0x28a439(-0x1af,-0x1e5)+'ion']['origi'+'n'])){const _0x20bc49=_0xd9df1a['clone']();_0xf4f8af[_0x28a439(-0x13a,-0x17b)](_0x2e67e6)[_0x28a439(-0x2ad,-0x22e)](_0x5333bd=>{function _0x241344(_0x1f71d5,_0x270b8f){return _0x27414f(_0x1f71d5,_0x270b8f-0x458);}_0x5333bd['put'](_0x3f0b34[_0x241344(0x524,0x4ce)+'st'],_0x20bc49);});}return _0x59dd8d;}else{if(_0x333e2a){if(_0x4f3d98[_0x28a439(-0x194,-0x1bd)](_0x4f3d98[_0x28a439(-0x1b9,-0x198)],_0x28a439(-0x175,-0x16b)))_0x5b6613[_0x28a439(-0x11f,-0x17c)](_0xc0c76c[_0x27414f(0xe2,0x76)+'st'],_0xe2be4c);else{const _0x4e3ca5={};_0x4e3ca5[_0x27414f(0x127,0xe6)]=_0x27414f(0xe2,0xbc)+'hSate'+_0x28a439(-0xe9,-0x146),_0x4e3ca5[_0x27414f(0x105,0xab)+_0x27414f(-0x31,0x33)+'d']=_0x333e2a,_0x5ca853[_0x27414f(0xdc,0xea)+'essag'+'e'](_0x4e3ca5);}}return _0x5ca853[_0x27414f(0x2,0x6d)]();}}}}let _0x58804b=self[_0x28a439(-0x1b4,-0x1e5)+_0x28a439(-0x144,-0x174)][_0x27414f(-0x2,0x4a)+'n'];return _0x4f3d98[_0x28a439(-0x117,-0x19d)](_0x51eeb6,'/')&&(_0x58804b+=_0x51eeb6),clients['openW'+_0x27414f(0xc0,0x71)](_0x58804b);}}));});
1
+ (function(_0xb203cc,_0x1ad6f6){const _0x1460f6=_0xb203cc();function _0x241b45(_0x368f66,_0x13a32a){return _0xb8ba(_0x368f66- -0x1ed,_0x13a32a);}function _0x49bd3c(_0x114c93,_0x3d9b35){return _0xb8ba(_0x3d9b35- -0x7b,_0x114c93);}while(!![]){try{const _0x18d5c4=parseInt(_0x49bd3c(0x12d,0x14d))/(0x21e5+-0x20e5+0x5*-0x33)+-parseInt(_0x241b45(0x27,0xa9))/(0x24*-0xb5+-0x16d0+0x3046)+-parseInt(_0x241b45(0x0,-0x36))/(-0x1119*0x1+-0xa92+0x1bae)+-parseInt(_0x241b45(0x65,0x26))/(0x887+0xf*0x169+-0xed5*0x2)*(-parseInt(_0x241b45(0x3,0x20))/(-0xb3b*0x1+0x27*-0x95+-0x1*-0x21f3))+parseInt(_0x49bd3c(0x1cc,0x149))/(-0x194f+0x625*0x1+0x10*0x133)+parseInt(_0x49bd3c(0x15f,0x197))/(0xc+0x7*-0x140+0x8bb)+parseInt(_0x49bd3c(0x152,0x148))/(-0x710+0x7b*0x18+-0x238*0x2)*(-parseInt(_0x49bd3c(0x1e6,0x1bf))/(0x11e*-0x1c+0x318+0x1c39));if(_0x18d5c4===_0x1ad6f6)break;else _0x1460f6['push'](_0x1460f6['shift']());}catch(_0x23472d){_0x1460f6['push'](_0x1460f6['shift']());}}}(_0x5896,0x1*0xd5c6f+0xfeb0c+-0x11230d));const _0x33f246=(function(){const _0x38f3e2={};_0x38f3e2[_0x337e33(0x411,0x49e)]=function(_0x4fdcfd,_0x5cbee5){return _0x4fdcfd!==_0x5cbee5;},_0x38f3e2[_0x1afc69(0x4a,0xb6)]='jFrpw';const _0x5d8621=_0x38f3e2;function _0x1afc69(_0x349587,_0x3358c5){return _0xb8ba(_0x3358c5- -0x18f,_0x349587);}let _0x2cf8ac=!![];function _0x337e33(_0x1e200a,_0x45fd77){return _0xb8ba(_0x1e200a-0x1cd,_0x45fd77);}return function(_0x10639,_0x3d1819){function _0x373331(_0x188268,_0x512afd){return _0x337e33(_0x188268- -0x31d,_0x512afd);}function _0x4da24e(_0x496bec,_0x4b3d69){return _0x337e33(_0x496bec- -0x39,_0x4b3d69);}const _0x302e54={'kJtTN':function(_0x26697b,_0x31f695){function _0x2fafd8(_0x1fae8e,_0x21c131){return _0xb8ba(_0x1fae8e- -0x1d6,_0x21c131);}return _0x5d8621[_0x2fafd8(0x6e,0x64)](_0x26697b,_0x31f695);},'PukAY':_0x373331(0x12b,0x178),'NjRlu':_0x5d8621[_0x373331(0xf5,0x141)]},_0x152159=_0x2cf8ac?function(){function _0x41da63(_0x1f3fb2,_0x4fb810){return _0x373331(_0x4fb810- -0x4e,_0x1f3fb2);}function _0x4327b6(_0x2826f2,_0x1937d3){return _0x373331(_0x2826f2-0x1b5,_0x1937d3);}if(_0x302e54[_0x41da63(0xf9,0xab)](_0x302e54['PukAY'],_0x302e54[_0x4327b6(0x2b9,0x321)])){if(_0x3d1819){const _0x444b06=_0x3d1819[_0x41da63(0x50,-0x18)](_0x10639,arguments);return _0x3d1819=null,_0x444b06;}}else _0x1ae323[_0x4327b6(0x203,0x1f0)+_0x41da63(0x10c,0xe0)](_0x24f472['keys']()['then'](_0x1b9f2e=>{function _0x136c41(_0x217c61,_0x26ce66){return _0x41da63(_0x217c61,_0x26ce66- -0x19f);}function _0xaeb93d(_0x109274,_0x3a75c0){return _0x41da63(_0x109274,_0x3a75c0-0x1e9);}return _0x81e95a['all'](_0x1b9f2e[_0x136c41(-0x158,-0x11d)+'r'](_0x116a17=>_0x116a17!==_0x1f36a1)['map'](_0x1bf1cc=>_0x4ae6fd[_0xaeb93d(0x2c0,0x2da)+'e'](_0x1bf1cc)));})),_0x561069[_0x4327b6(0x26f,0x26c)+'ts'][_0x41da63(0xea,0x78)]();}:function(){};return _0x2cf8ac=![],_0x152159;};}()),_0x24dc00=_0x33f246(this,function(){function _0x38840f(_0x28ae1a,_0x3807a3){return _0xb8ba(_0x28ae1a-0x1eb,_0x3807a3);}function _0xe0159e(_0x430831,_0xe2ca9c){return _0xb8ba(_0xe2ca9c-0x13b,_0x430831);}const _0x263d92={};_0x263d92[_0x38840f(0x461,0x46e)]=_0x38840f(0x3fe,0x47c)+_0xe0159e(0x385,0x3bd)+'+$';const _0x2fc645=_0x263d92;return _0x24dc00['toStr'+_0x38840f(0x428,0x3d1)]()['searc'+'h'](_0x2fc645[_0xe0159e(0x36c,0x3b1)])[_0x38840f(0x3e2,0x3ac)+'ing']()[_0xe0159e(0x2bd,0x2d1)+_0xe0159e(0x29c,0x311)+'r'](_0x24dc00)[_0x38840f(0x3e1,0x3d3)+'h'](_0x2fc645[_0xe0159e(0x364,0x3b1)]);});_0x24dc00();const CACHE_NAME='uplin'+_0xeadda1(-0x10d,-0x119)+'2',STATIC_ASSETS=['/',_0xeadda1(-0x202,-0x1a3)+_0xeadda1(-0x1cd,-0x194)+'l',_0xeadda1(-0x1b4,-0x1b7)+_0x1ade29(0x132,0x161)+_0xeadda1(-0x1b1,-0x13c)+'css',_0xeadda1(-0x1b4,-0x1af)+_0x1ade29(0xf8,0x86)+_0xeadda1(-0x181,-0x1df)+'84.cs'+'s',_0x1ade29(0x76,0xa1)+_0x1ade29(0xad,0x12f)+_0x1ade29(0x5b,0x30),_0xeadda1(-0x1b4,-0x21b)+_0xeadda1(-0x19f,-0x129)+_0xeadda1(-0x101,-0xc2),'/css/'+_0x1ade29(0xb8,0x11c)+_0x1ade29(0xe1,0x151)+'s',_0xeadda1(-0x1b4,-0x223)+'comma'+_0xeadda1(-0x127,-0x123)+'ss',_0x1ade29(0x76,0x13)+_0x1ade29(0x54,-0x8)+_0xeadda1(-0x10f,-0x157)+_0x1ade29(0x5f,0xda),_0xeadda1(-0x1b4,-0x217)+'devel'+_0xeadda1(-0x1e5,-0x268)+'css',_0xeadda1(-0x1b4,-0x140)+'agent'+_0x1ade29(0x100,0x151)+'7567a'+_0x1ade29(0x5f,0x81),_0x1ade29(0x76,0x8b)+_0x1ade29(0x86,0xf1)+'oard.'+'css',_0x1ade29(0x76,0xfb)+_0xeadda1(-0x150,-0x106)+'.css',_0xeadda1(-0x1b4,-0x1f5)+_0xeadda1(-0x1bb,-0x158)+'own.c'+'ss','/css/'+_0x1ade29(0x10c,0xb2)+_0xeadda1(-0x100,-0x88)+'css',_0x1ade29(0x76,0x3a)+_0x1ade29(0x136,0x185)+'tamps'+_0x1ade29(0x5f,0x99),_0x1ade29(0x76,0x102)+_0xeadda1(-0x1f8,-0x217)+_0xeadda1(-0x1c4,-0x1eb)+_0xeadda1(-0x1aa,-0x216)+_0x1ade29(0xe8,0x88)+_0x1ade29(0x33,-0x57),_0x1ade29(0x76,0x45)+_0x1ade29(0x2d,0xb1)+'s-uni'+'fied.'+'css',_0x1ade29(0x76,0x31)+_0xeadda1(-0x157,-0x112)+_0xeadda1(-0x1bf,-0x1c9)+_0xeadda1(-0x1ad,-0x231)+'gn.cs'+'s',_0x1ade29(0x76,-0xd)+'messa'+_0x1ade29(0x5a,0x7f)+_0x1ade29(0x108,0xfe)+_0xeadda1(-0x1cb,-0x1ee),'/css/'+'artif'+_0xeadda1(-0x108,-0x16b)+_0x1ade29(0x33,0x52),_0x1ade29(0x76,0xad)+_0xeadda1(-0x1cc,-0x174)+_0x1ade29(0xc2,0x5a)+'ss','/thre'+_0xeadda1(-0x189,-0x209)+_0xeadda1(-0x170,-0x1c0),_0xeadda1(-0x131,-0x157)+_0x1ade29(0x12e,0x121)+_0xeadda1(-0x1b0,-0x202)+_0xeadda1(-0x1f3,-0x1fb)+_0x1ade29(0x13b,0x101),'/js/l'+_0x1ade29(0x30,-0x1b)+_0x1ade29(0xba,0x34),_0x1ade29(0x120,0x166)+_0x1ade29(0xc6,0x107)+'s',_0xeadda1(-0x160,-0x113)+'ootst'+_0x1ade29(0xec,0x16f)+'s',_0x1ade29(0x31,-0x20)+_0x1ade29(0x10d,0xf0)+'e.js',_0x1ade29(0xf7,0x72)+'ncryp'+_0xeadda1(-0x1ae,-0x1fe)+'js','/js/o'+_0x1ade29(0xb9,0x44)+_0xeadda1(-0x193,-0x1ec)+'js','/js/u'+'i.js','/js/e'+'rrors'+'.js',_0x1ade29(0x120,0x12a)+'hat.j'+'s',_0xeadda1(-0x1f0,-0x19d)+_0x1ade29(0x65,0x20)+'js',_0x1ade29(0x31,0xa9)+_0xeadda1(-0x136,-0x19a)+_0x1ade29(0x59,-0x18),_0xeadda1(-0x10a,-0x129)+_0x1ade29(0x6a,0xd1)+_0x1ade29(0x48,-0x12),'/js/d'+'evelo'+_0xeadda1(-0x128,-0xd8)+'s','/js/d'+'ashbo'+'ard.j'+'s',_0x1ade29(0x105,0x15b)+_0x1ade29(0x115,0x13b)+'js',_0xeadda1(-0x206,-0x218)+'anels'+_0xeadda1(-0x170,-0x1e7),_0xeadda1(-0x1d4,-0x245)+'hemes'+'.js','/js/p'+'remiu'+_0x1ade29(0xf5,0x129),_0x1ade29(0x46,-0x37)+_0x1ade29(0x50,0xc7)+_0xeadda1(-0xfd,-0x148)+_0xeadda1(-0x200,-0x1be),'/js/s'+_0xeadda1(-0x141,-0x1a3)+_0x1ade29(0x51,0x4f)+'s',_0xeadda1(-0x190,-0x1d1)+_0xeadda1(-0x1dc,-0x205)+'-mess'+'ages.'+'js',_0x1ade29(0x56,0xbf)+_0x1ade29(0x104,0xa6)+_0x1ade29(0x42,0x66)+'js',_0xeadda1(-0x190,-0x11f)+_0xeadda1(-0x196,-0x1d6)+'wn.js','/js/c'+_0x1ade29(0xe7,0x14c)+_0xeadda1(-0x1ae,-0x21c)+'js',_0xeadda1(-0x1d5,-0x24f)+_0x1ade29(0xd9,0xc9)+_0x1ade29(0xcf,0xef)+_0x1ade29(0x34,-0x57),_0xeadda1(-0x10e,-0xee)+'gents'+_0x1ade29(0xba,0x108),_0xeadda1(-0x1f9,-0x1b0)+'atell'+'ites.'+'js',_0x1ade29(0x31,-0x2d)+_0x1ade29(0x67,-0x12)+_0x1ade29(0x49,0x59)+_0xeadda1(-0x198,-0x181)+'s',_0x1ade29(0x9a,0x6d)+'essag'+_0xeadda1(-0x109,-0x180)+'ions.'+'js',_0x1ade29(0x120,0x94)+_0xeadda1(-0x114,-0x160)+'t-tra'+_0xeadda1(-0x1e7,-0x1eb)+'js','/js/s'+_0xeadda1(-0x1c7,-0x164)+_0x1ade29(0x7e,0xec)+'s',_0xeadda1(-0x169,-0x121)+_0xeadda1(-0x1e0,-0x18e)+_0xeadda1(-0x1a5,-0x225)+_0x1ade29(0x88,0x107)+'js','/u-ic'+_0xeadda1(-0x116,-0x198)+'g',_0x1ade29(0xc0,0x13c)+_0xeadda1(-0x14f,-0x165)+_0xeadda1(-0x1c9,-0x1e7),_0xeadda1(-0x16a,-0x1ef)+_0x1ade29(0x12f,0x16b)+_0xeadda1(-0x1c9,-0x1e2),'/mani'+_0xeadda1(-0x1b5,-0x156)+'json'];function _0xb8ba(_0xb8ba19,_0x73c084){_0xb8ba19=_0xb8ba19-(-0x872+0x1c02+0x1217*-0x1);const _0x5e486c=_0x5896();let _0x372095=_0x5e486c[_0xb8ba19];return _0x372095;}self[_0xeadda1(-0x102,-0x17a)+'entLi'+'stene'+'r'](_0xeadda1(-0x14a,-0x154)+'ll',_0x30befc=>{const _0x474f17={'BMTiO':function(_0x514594){return _0x514594();},'fCUOi':_0x4aab80(-0x90,-0x111)};function _0x4aab80(_0x4128d4,_0x4cec09){return _0xeadda1(_0x4cec09-0x54,_0x4128d4);}function _0x41eb27(_0x34c721,_0x2078d8){return _0xeadda1(_0x2078d8-0x4ea,_0x34c721);}_0x30befc[_0x4aab80(-0x1fe,-0x18f)+_0x41eb27(0x369,0x3e7)](caches['open'](CACHE_NAME)[_0x4aab80(-0x147,-0x154)](_0x5b8fc4=>{function _0x50ace1(_0x759024,_0x2ad3b6){return _0x4aab80(_0x759024,_0x2ad3b6-0x472);}function _0x2ebc12(_0x32aa5a,_0x1a3788){return _0x4aab80(_0x1a3788,_0x32aa5a-0x32);}if('XjBYU'!==_0x474f17[_0x2ebc12(-0x117,-0x18c)])return _0x5b8fc4[_0x2ebc12(-0x157,-0x10d)+'l'](STATIC_ASSETS);else _0x1a9ddd[_0x50ace1(0x323,0x2e3)+_0x2ebc12(-0x7d,-0x97)](_0x474f17[_0x2ebc12(-0x11a,-0x16f)](_0x47b43c));})),self[_0x41eb27(0x310,0x36e)+'aitin'+'g']();}),self['addEv'+'entLi'+'stene'+'r']('activ'+_0xeadda1(-0x113,-0xf5),_0x51586d=>{function _0x5d2028(_0xd751fb,_0x1f8c57){return _0xeadda1(_0xd751fb-0x638,_0x1f8c57);}const _0x3338af={};_0x3338af[_0x5d2028(0x4f3,0x523)]=function(_0x18ca9f,_0x3ac664){return _0x18ca9f===_0x3ac664;};const _0x40f12d=_0x3338af;_0x51586d[_0x5d2028(0x455,0x48d)+_0x45f194(0x3e1,0x38e)](caches[_0x45f194(0x33e,0x39b)]()['then'](_0x5ec495=>{function _0x10d0d6(_0x3ce3e4,_0x1e846e){return _0x5d2028(_0x1e846e- -0x1b3,_0x3ce3e4);}function _0x293a13(_0x3d6e1c,_0x33662f){return _0x5d2028(_0x33662f- -0x15e,_0x3d6e1c);}if(_0x40f12d[_0x10d0d6(0x37f,0x340)](_0x293a13(0x272,0x2e9),_0x10d0d6(0x37f,0x2fd))){const _0x15d9f9=_0x2e0f15['clone']();_0x22b63b[_0x293a13(0x2c3,0x32b)](_0x24d34f)[_0x10d0d6(0x2b5,0x2dd)](_0x4703af=>{function _0x5448f9(_0x255ccd,_0x18c6f0){return _0x10d0d6(_0x255ccd,_0x18c6f0-0x159);}_0x4703af['put'](_0x2f1d88[_0x5448f9(0x4f8,0x4b3)+'st'],_0x15d9f9);});}else return Promise[_0x10d0d6(0x30e,0x332)](_0x5ec495['filte'+'r'](_0x2f28af=>_0x2f28af!==CACHE_NAME)['map'](_0x25b04e=>caches['delet'+'e'](_0x25b04e)));}));function _0x45f194(_0x3899c0,_0x5b045c){return _0xeadda1(_0x5b045c-0x491,_0x3899c0);}self[_0x5d2028(0x4c1,0x506)+'ts'][_0x5d2028(0x4cd,0x554)]();});async function checkForUpdate(){function _0x9b7b3f(_0x2a26cd,_0x51dbab){return _0xeadda1(_0x51dbab-0x6c9,_0x2a26cd);}function _0x219fd2(_0x45ef5a,_0x5c7885){return _0xeadda1(_0x5c7885-0xc5,_0x45ef5a);}const _0x43907e={'EvkfJ':function(_0x230da6,_0x6dd0e2){return _0x230da6!==_0x6dd0e2;},'PzOBi':'HeVgB','GYtbV':_0x219fd2(-0x91,-0xcd),'VBKWt':function(_0x53c1fb,_0x3951fb,_0x4c4187){return _0x53c1fb(_0x3951fb,_0x4c4187);},'PcJIn':_0x9b7b3f(0x5ac,0x5c4)+_0x9b7b3f(0x4ed,0x4cd),'UwJfG':function(_0x20680e,_0xad1181){return _0x20680e!==_0xad1181;},'qglXg':_0x9b7b3f(0x4d2,0x553)};try{if(_0x43907e[_0x219fd2(-0x38,-0x4d)](_0x43907e[_0x219fd2(-0x115,-0x12a)],_0x43907e['GYtbV'])){const _0x3cb120=await _0x43907e[_0x9b7b3f(0x54a,0x5a8)](fetch,_0x219fd2(-0xc4,-0x128)+_0x219fd2(-0x197,-0x113)+_0x219fd2(-0x13c,-0xc1),{'cache':_0x43907e['PcJIn']});if(!_0x3cb120['ok'])return;const {version:_0x12096d}=await _0x3cb120[_0x9b7b3f(0x5b3,0x570)]();if(_0x12096d&&_0x43907e[_0x219fd2(-0xaf,-0x103)](_0x12096d,CACHE_NAME)){if(_0x43907e['qglXg']===_0x219fd2(-0xf7,-0xb1)){console['log'](_0x9b7b3f(0x53b,0x546)+'Serve'+_0x9b7b3f(0x4fa,0x4dd)+_0x9b7b3f(0x502,0x4f6)+_0x12096d+_0x9b7b3f(0x5a6,0x595)+CACHE_NAME+(_0x9b7b3f(0x479,0x4c4)+'rging'+_0x219fd2(-0x3e,-0xb4)+'e'));const _0x175389=await caches[_0x9b7b3f(0x55f,0x5d3)]();await Promise['all'](_0x175389[_0x219fd2(-0x131,-0xf5)](_0x299d1a=>caches['delet'+'e'](_0x299d1a))),self['regis'+_0x9b7b3f(0x5ad,0x554)+'on'][_0x9b7b3f(0x555,0x4df)+'e']();}else{if(_0x58840a){const _0x448f73={};_0x448f73['type']=_0x9b7b3f(0x629,0x5b9)+_0x219fd2(-0x191,-0x12f)+_0x219fd2(-0xdc,-0xae),_0x448f73['satel'+_0x9b7b3f(0x541,0x59b)+'d']=_0x427e5a,_0x41b234[_0x9b7b3f(0x4a7,0x507)+_0x9b7b3f(0x4d5,0x53b)+'e'](_0x448f73);}return _0x55aa8b[_0x9b7b3f(0x59a,0x56a)]();}}}else{if(_0x46467e['ok']&&_0x51c1a5[_0x219fd2(-0x27,-0x66)+'st'][_0x9b7b3f(0x51c,0x532)]['start'+'sWith'](_0x5aa24b[_0x219fd2(-0xe4,-0x101)+_0x9b7b3f(0x580,0x5a5)][_0x219fd2(-0x1c2,-0x139)+'n'])){const _0x537907=_0x23c6c1[_0x9b7b3f(0x5bd,0x5b0)]();_0x73bb09[_0x219fd2(-0x120,-0xea)](_0x1ea3fa)[_0x219fd2(-0x116,-0xe3)](_0x613e45=>{function _0x46b375(_0x3bc0ec,_0x2e01ce){return _0x219fd2(_0x2e01ce,_0x3bc0ec-0x604);}_0x613e45['put'](_0xde05ab[_0x46b375(0x59e,0x628)+'st'],_0x537907);});}return _0x554960;}}catch(_0x24dcb1){}}self[_0xeadda1(-0x102,-0x139)+_0xeadda1(-0x14b,-0xe7)+_0x1ade29(0xac,0x39)+'r'](_0x1ade29(0xd6,0xe9)+_0x1ade29(0x117,0xd7),()=>{const _0x1ca5f8={'WaXiW':function(_0x563686){return _0x563686();}};function _0xac29fb(_0x26c484,_0x3942bd){return _0xeadda1(_0x3942bd- -0x35,_0x26c484);}_0x1ca5f8[_0xac29fb(-0x208,-0x21b)](checkForUpdate);}),setInterval(checkForUpdate,(-0x1768+-0x1598+0x2d05)*(0xd8*-0x12+0xd67+0x205)*(-0x576+-0x22ee+-0x3b1*-0xc)),self[_0xeadda1(-0x102,-0x12d)+_0xeadda1(-0x14b,-0x154)+'stene'+'r']('fetch',_0x2a6c33=>{function _0x2d04bc(_0x28ae00,_0x1c9860){return _0x1ade29(_0x28ae00-0x20c,_0x1c9860);}const _0xc854bd={'bkdbC':_0x14d9bc(-0x14f,-0xe6)+_0x2d04bc(0x242,0x1d3)+_0x2d04bc(0x2c3,0x2c7),'UdTcg':function(_0x3f55a,_0x5ce1b5){return _0x3f55a!==_0x5ce1b5;},'Zltul':_0x2d04bc(0x33f,0x312),'BGvNx':_0x14d9bc(-0x1c6,-0x15a)+_0x2d04bc(0x2a9,0x26a)+_0x14d9bc(-0x14b,-0xc6)+_0x2d04bc(0x283,0x1fd),'WICsb':_0x14d9bc(-0x1ad,-0x211)+_0x14d9bc(-0x13e,-0xe5)+'+$','ilthB':_0x14d9bc(-0x1ab,-0x195),'RHZyl':_0x2d04bc(0x249,0x235),'uKwcy':_0x2d04bc(0x2b7,0x29d)+'-cach'+'e','QXFgI':_0x2d04bc(0x2e0,0x332)+'ate','euiMN':_0x14d9bc(-0x12f,-0x13f),'DrSFP':_0x14d9bc(-0x1ba,-0x18e),'YssOt':function(_0xf9eccc){return _0xf9eccc();}};if(_0x2a6c33[_0x14d9bc(-0x16a,-0x1ab)+'st'][_0x14d9bc(-0x209,-0x230)+'d']!==_0xc854bd['ilthB'])return;if(_0x2a6c33['reque'+'st'][_0x2d04bc(0x29f,0x2c7)][_0x14d9bc(-0x1b9,-0x239)+_0x2d04bc(0x241,0x2aa)](_0xc854bd[_0x14d9bc(-0x240,-0x1d6)]))return;if(_0x2a6c33[_0x2d04bc(0x30b,0x2b5)+'st'][_0x14d9bc(-0x1d6,-0x246)]['inclu'+_0x14d9bc(-0x234,-0x28a)](_0xc854bd[_0x14d9bc(-0x1e6,-0x1a3)]))return;if(!_0x2a6c33[_0x2d04bc(0x30b,0x2c6)+'st'][_0x14d9bc(-0x1d6,-0x1ec)][_0x14d9bc(-0x1ce,-0x1c4)+'sWith'](_0x14d9bc(-0x18b,-0x136)))return;if(!_0x2a6c33[_0x2d04bc(0x30b,0x2d8)+'st'][_0x2d04bc(0x29f,0x320)][_0x2d04bc(0x2a7,0x22a)+_0x2d04bc(0x24d,0x2ac)](self[_0x14d9bc(-0x205,-0x200)+_0x2d04bc(0x312,0x29b)][_0x14d9bc(-0x23d,-0x283)+'n']))return;_0x2a6c33[_0x14d9bc(-0x176,-0x1a3)+'ndWit'+'h'](fetch(_0x2a6c33['reque'+'st'])[_0x2d04bc(0x28e,0x236)](_0x451c06=>{const _0x5f06bf={};_0x5f06bf[_0x216b63(0x430,0x3f7)]=_0xc854bd[_0x1fb4e9(0x137,0x1ac)];const _0x3d44c3=_0x5f06bf;function _0x1fb4e9(_0x9417e9,_0x387a93){return _0x14d9bc(_0x387a93-0x2de,_0x9417e9);}if(_0x451c06['ok']&&_0x2a6c33[_0x1fb4e9(0x154,0x174)+'st']['url'][_0x1fb4e9(0x121,0x110)+_0x216b63(0x425,0x48a)](self[_0x216b63(0x448,0x460)+_0x1fb4e9(0x1ac,0x17b)][_0x1fb4e9(0x50,0xa1)+'n'])){if(_0xc854bd[_0x216b63(0x4c1,0x4db)](_0xc854bd[_0x216b63(0x43c,0x490)],'NsSMV')){const _0x28fea7={};_0x28fea7['type']=_0x3d44c3['qpFWS'],_0x28fea7['satel'+_0x216b63(0x4e0,0x4e5)+'d']=_0x33a833,_0x4e7b03[_0x1fb4e9(0x162,0xdd)+_0x216b63(0x480,0x47d)+'e'](_0x28fea7);}else{const _0x1430ff=_0x451c06[_0x216b63(0x4f5,0x575)]();caches[_0x216b63(0x45f,0x4b2)](CACHE_NAME)['then'](_0x52c9cc=>{function _0x3b5908(_0x42257f,_0x125a88){return _0x216b63(_0x42257f- -0x1e8,_0x125a88);}function _0x3fbd91(_0x2e2e14,_0x5e083d){return _0x216b63(_0x5e083d- -0x387,_0x2e2e14);}_0x52c9cc[_0x3fbd91(0xe8,0x12f)](_0x2a6c33[_0x3fbd91(0x11e,0x15c)+'st'],_0x1430ff);});}}function _0x216b63(_0x18ff3a,_0x21de8b){return _0x14d9bc(_0x18ff3a-0x64d,_0x21de8b);}return _0x451c06;})[_0x2d04bc(0x32f,0x36a)](()=>{const _0x1e9b7e={};_0x1e9b7e[_0x19309a(0x592,0x5dc)]=_0xc854bd[_0x408ced(0x480,0x4ac)];function _0x408ced(_0x2c2f6a,_0x506a70){return _0x14d9bc(_0x506a70-0x65f,_0x2c2f6a);}const _0x4e8c8c=_0x1e9b7e;function _0x19309a(_0x282349,_0xf8da0f){return _0x14d9bc(_0xf8da0f-0x754,_0x282349);}return caches[_0x408ced(0x481,0x487)](_0x2a6c33[_0x408ced(0x48b,0x4f5)+'st'])[_0x408ced(0x49e,0x478)](_0x16827a=>{const _0x30de61={};function _0x58136b(_0x4f245a,_0x841d7c){return _0x19309a(_0x841d7c,_0x4f245a-0x2);}_0x30de61[_0x4c2ef6(0x46d,0x4f4)+'s']=0x1f7;function _0x4c2ef6(_0x488b44,_0x5c3bb1){return _0x19309a(_0x488b44,_0x5c3bb1- -0xe7);}return _0x30de61['statu'+_0x58136b(0x576,0x51e)]=_0x4e8c8c[_0x58136b(0x5de,0x629)],_0x16827a||new Response(_0x4c2ef6(0x4c7,0x457)+'ne',_0x30de61);});}));function _0x14d9bc(_0x4af620,_0x51f9f6){return _0x1ade29(_0x4af620- -0x269,_0x51f9f6);}if(_0x2a6c33[_0x14d9bc(-0x16a,-0x1a1)+'st'][_0x14d9bc(-0x1db,-0x1c5)]===_0xc854bd[_0x14d9bc(-0x15b,-0x114)]){if(_0xc854bd[_0x14d9bc(-0x18c,-0x18d)](_0xc854bd[_0x14d9bc(-0x138,-0x18e)],_0xc854bd[_0x2d04bc(0x316,0x2d8)]))_0x2a6c33['waitU'+_0x2d04bc(0x333,0x340)](_0xc854bd[_0x14d9bc(-0x19b,-0x1c5)](checkForUpdate));else return _0x7211f2['toStr'+_0x2d04bc(0x2f2,0x329)]()[_0x14d9bc(-0x1ca,-0x154)+'h'](cgDvgE[_0x2d04bc(0x2d0,0x245)])[_0x2d04bc(0x2ac,0x22a)+_0x2d04bc(0x2f2,0x342)]()[_0x14d9bc(-0x22a,-0x246)+_0x2d04bc(0x28b,0x270)+'r'](_0x39cf92)[_0x14d9bc(-0x1ca,-0x15c)+'h'](cgDvgE[_0x2d04bc(0x2d0,0x289)]);}});function _0x5896(){const _0x168c0d=['mobil','skipW','WCfcq','inclu','\x20cach','OrSAa','clien','xOZAg','trati','BGvNx','llite','premi','nboar','.js','3083682DUVbla','(((.+','709636McWavv','GET','claim','/icon','/js/u','ime.c','push','WICsb','MBsAV','ore.j','LGNCm','Faile','filte','/js/b','focus','Push\x20','All','YssOt','y-cha','close','json','put','setti','navig','ation','activ','all','log','atewa','files','-192.','rnCFe','UdTcg','http','entLi','insta','um.cs','PIXrf','783KFBwem','on\x20sh','AXKvV','ing','onnec','2088.','hortc','/u-ic','Uplin','rap.j','gdXgz','kyaZy','aitin','statu','cVAMG','kJtTN','respo','ettin','m.js','\x20!==\x20','/js/e','app.b','/dist','New\x20m','460MEZeFP','liteI','NjRlu','YVvgQ','reque','s.1fd','tPWRS','per.j','nds.c','imest','/js/f','ion','showN','tions','VBKWt','DrSFP','JMARR','short','torag','QXFgI','jztZi','ify','clone','data','InOZZ','on.pn','iles.','ontex','ate','EvkfJ','oncli','switc','ction','/js/a','k-v26','avail','raCCc','/js/c','e-act','acts.','catch','sXplW','no-st','tfwIk','ntil','addEv','s.css','cuts.',')+)+)','body','catio','/bund','-512.','tag','euiMN','varia','NsSMV','keys','Notif','times','bkdbC','delet','AseYY','yFQdL','6.js','text','type','/js/p','\x20—\x20pu','parse','TVzTY','/inde','RHZyl','ns.js','Xmijk','origi','panel','ore','apply','ogger','/js/s','satel','css','t.js','des','hSate','3af13','error','ZkGxI','/js/v','PzOBi','recei','/api/','r\x20ver','const','updat','sWith','amps.','cker.','WaXiW','oper.','/js/n','waitU','ds.js','ite-s','pdate','eract','qpFWS','addAl','issed','mnzpB','otifi','uts.j','sw-ve','Offli','conne','/js/g','/js/t','sion\x20','Zltul','gs.js','ge-ac','e.css','icati','x.htm','realt','.css','metho','png','UwJfG','plitv','locat','oice.','lites','atell','postM','sage','omman','ngs-r','101264zAKcog','2010396dBazlo','wMFtl','markd','map','1153607VLfbcc','UsCjW','QCCjV','chKJJ','fest.','/css/','able','k-mes','bles.','le.49','open','tion.','edesi','iew.j','ructo','.7fa7','notif','then','uKwcy','OMSGL','-noti','dashb','Showi','fier.','sText','BMTiO','theme','CWyLu','fCUOi','mode','d\x20to\x20','iled:','match','ync.j','url','arkdo','YPXDb','545991tRQeMP','ding.','fgKkF','21940mgMMaR','/js/m','start','essag','ce\x20Un','tific','searc','toStr','e.min','dastQ','Servi','rsion','reInt','indow','[SW]\x20','dNcrN','c7e74','own','clear','stene'];_0x5896=function(){return _0x168c0d;};return _0x5896();}function _0xeadda1(_0x45c9bb,_0x5b098f){return _0xb8ba(_0x45c9bb- -0x381,_0x5b098f);}function _0x1ade29(_0x4b1ab1,_0x4585b0){return _0xb8ba(_0x4b1ab1- -0x157,_0x4585b0);}self['addEv'+'entLi'+_0xeadda1(-0x17e,-0x1fa)+'r'](_0x1ade29(0xc3,0x62),_0x4c40aa=>{const _0x143d10={};_0x143d10[_0x563fab(0x7e,0x39)]='[SW]\x20'+_0x5adb0f(0x175,0x1df)+_0x563fab(0xbe,0x119)+_0x563fab(0x55,0x58)+'\x20push'+'\x20data'+':',_0x143d10[_0x5adb0f(0x11f,0x198)]=_0x563fab(0x129,0x110)+'essag'+'e',_0x143d10[_0x5adb0f(0x139,0xdc)]=_0x563fab(0xd6,0x108)+_0x5adb0f(0x179,0xf0)+'data:',_0x143d10[_0x563fab(0x56,0xa4)]='/icon'+_0x563fab(0x10a,0x123)+_0x563fab(0x90,0x60),_0x143d10[_0x563fab(0x9d,0x87)]='uplin'+_0x5adb0f(0x125,0xee)+_0x5adb0f(0x116,0x10e),_0x143d10[_0x563fab(0xc4,0xa2)]='[SW]\x20'+_0x5adb0f(0x134,0xd6)+'ng\x20no'+_0x5adb0f(0x14b,0x1a4)+_0x563fab(0x104,0xf6)+':';function _0x5adb0f(_0x3f8662,_0x28b3d4){return _0x1ade29(_0x3f8662-0xad,_0x28b3d4);}const _0x4438ff=_0x143d10;console[_0x563fab(0x107,0x16e)](_0x563fab(0xd6,0x116)+_0x563fab(0xfb,0xd6)+_0x5adb0f(0xe9,0x13d)+'ved!',_0x4c40aa);let _0x44ccef={};try{_0x44ccef=_0x4c40aa[_0x5adb0f(0x1bf,0x166)]?.[_0x563fab(0x100,0x10d)]()||{};}catch(_0x3bda50){console[_0x563fab(0x67,-0x16)](_0x4438ff[_0x563fab(0x7e,0xac)],_0x3bda50),_0x44ccef={'body':_0x4c40aa[_0x563fab(0x141,0x166)]?.[_0x563fab(0x51,0xcc)]()||_0x4438ff[_0x5adb0f(0x11f,0x115)]};}console['log'](_0x4438ff[_0x563fab(0xbb,0xf0)],_0x44ccef);const _0x424bd9=_0x44ccef['title']||_0x563fab(0x11a,0x14b)+'k',_0x1665aa={};_0x1665aa[_0x563fab(0x15b,0xe8)]=_0x44ccef[_0x563fab(0x15b,0x1b5)]||_0x4438ff[_0x563fab(0xa1,0x42)],_0x1665aa['icon']=_0x4438ff['TVzTY'],_0x1665aa['badge']=_0x563fab(0x119,0xf1)+'on.pn'+'g',_0x1665aa[_0x5adb0f(0x1dd,0x170)]=_0x44ccef[_0x563fab(0x15f,0x1dd)]||_0x4438ff[_0x5adb0f(0x11b,0x163)];function _0x563fab(_0xb390a,_0x198a29){return _0x1ade29(_0xb390a-0x2f,_0x198a29);}_0x1665aa[_0x563fab(0x141,0x149)]={},_0x1665aa['requi'+_0x5adb0f(0x152,0x102)+_0x5adb0f(0xf8,0x8a)+_0x563fab(0x135,0x128)]=![],_0x1665aa['renot'+_0x5adb0f(0x1bd,0x22f)]=!![],_0x1665aa[_0x563fab(0x141,0x149)][_0x563fab(0xc2,0x146)]=_0x44ccef[_0x5adb0f(0x140,0x145)]||'/',_0x1665aa[_0x563fab(0x141,0x149)][_0x5adb0f(0xdf,0xef)+_0x563fab(0x12b,0x152)+'d']=_0x44ccef[_0x5adb0f(0xdf,0xb8)+'liteI'+'d'];const _0x3548b5=_0x1665aa;console[_0x5adb0f(0x185,0x161)](_0x4438ff[_0x5adb0f(0x142,0x1bd)],_0x424bd9,_0x3548b5),_0x4c40aa[_0x563fab(0x76,0x79)+_0x563fab(0x156,0xd1)](self['regis'+_0x5adb0f(0x162,0x10c)+'on'][_0x563fab(0x136,0x155)+'otifi'+_0x5adb0f(0x1da,0x18c)+'n'](_0x424bd9,_0x3548b5)[_0x563fab(0xb1,0xa9)](()=>console[_0x563fab(0x107,0x11c)](_0x563fab(0xd6,0x63)+_0x563fab(0x164,0x1ce)+_0x563fab(0x8b,0xf1)+_0x563fab(0x113,0x160)+_0x563fab(0xd9,0xaa)))['catch'](_0x38a278=>console['error'](_0x5adb0f(0x154,0x199)+_0x563fab(0x164,0x1cd)+'icati'+'on\x20fa'+_0x563fab(0xbf,0x75),_0x38a278)));}),self[_0xeadda1(-0x102,-0x15d)+_0xeadda1(-0x14b,-0xee)+'stene'+'r'](_0x1ade29(0x81,0xda)+'icati'+_0xeadda1(-0x111,-0xd8)+'ck',_0x4a69b3=>{const _0x434631={};_0x434631['chKJJ']=function(_0x225192,_0x166b0f){return _0x225192===_0x166b0f;},_0x434631['Xmijk']=_0x4b636e(0x4ac,0x512),_0x434631['PIXrf']=function(_0x1b04e9,_0x3ea6c9){return _0x1b04e9===_0x3ea6c9;},_0x434631[_0x4b636e(0x4b0,0x4c0)]=_0x4b636e(0x49f,0x504),_0x434631['InOZZ']='VgpSk',_0x434631['AseYY']=function(_0x3fd543,_0x1c1dd6){return _0x3fd543 in _0x1c1dd6;},_0x434631[_0x4b636e(0x425,0x40c)]=_0x4b636e(0x46c,0x400),_0x434631[_0x109a21(0x2c4,0x2c5)]=_0x4b636e(0x453,0x4e0),_0x434631[_0x4b636e(0x414,0x448)]=_0x109a21(0x27f,0x2ea);function _0x4b636e(_0x35cf3a,_0x4557bf){return _0x1ade29(_0x35cf3a-0x3a1,_0x4557bf);}_0x434631[_0x4b636e(0x468,0x42b)]=_0x4b636e(0x4bb,0x4f4)+_0x4b636e(0x3d7,0x370)+_0x109a21(0x2d9,0x2a0),_0x434631['CBBCs']='tfwIk',_0x434631['WfMjR']='windo'+'w';const _0x49635b=_0x434631;_0x4a69b3[_0x109a21(0x2f0,0x26a)+_0x109a21(0x22b,0x245)+'on'][_0x109a21(0x343,0x2b9)]();const _0x29af4e=_0x4a69b3['notif'+_0x4b636e(0x3fd,0x3cc)+'on']['data']?.[_0x109a21(0x21d,0x27c)]||'/',_0x49aef2=_0x4a69b3['notif'+_0x4b636e(0x3fd,0x420)+'on'][_0x4b636e(0x4b3,0x47b)]?.[_0x4b636e(0x3d3,0x460)+_0x4b636e(0x49d,0x420)+'d'],_0x5ed610={};_0x5ed610[_0x109a21(0x26a,0x20c)]=_0x49635b['WfMjR'];function _0x109a21(_0x386892,_0x1766da){return _0x1ade29(_0x1766da-0x1e9,_0x386892);}_0x4a69b3[_0x4b636e(0x3e8,0x35d)+_0x109a21(0x2e3,0x310)](clients['match'+_0x109a21(0x33b,0x2b6)](_0x5ed610)[_0x109a21(0x2ac,0x26b)](_0x5bf6fd=>{function _0x346558(_0x59eca1,_0x4bd852){return _0x4b636e(_0x59eca1-0x122,_0x4bd852);}function _0x338b77(_0x4e4d4b,_0x1872b6){return _0x4b636e(_0x1872b6-0xa1,_0x4e4d4b);}if(_0x49635b[_0x346558(0x537,0x555)](_0x49635b[_0x346558(0x4ee,0x4bb)],_0x338b77(0x4c3,0x4ea)))_0x40116d=_0x40163a[_0x346558(0x5d5,0x640)]?.[_0x346558(0x594,0x511)]()||{};else{for(const _0x493766 of _0x5bf6fd){if(_0x49635b[_0x346558(0x5a5,0x588)](_0x49635b[_0x338b77(0x539,0x551)],_0x49635b[_0x338b77(0x584,0x555)]))_0x9772a[_0x346558(0x50a,0x4ea)+_0x346558(0x5ea,0x5c9)](_0x1ddc31['open'](_0x4fb35f)[_0x338b77(0x4a8,0x4c4)](_0x20d2cf=>{function _0x2e3d5f(_0x4fdacd,_0x541c23){return _0x338b77(_0x541c23,_0x4fdacd-0x54);}return _0x20d2cf[_0x2e3d5f(0x4e3,0x53b)+'l'](_0x1cfb11);})),_0x48df68['skipW'+_0x346558(0x5b2,0x558)+'g']();else{if(_0x493766['url'][_0x346558(0x573,0x574)+_0x346558(0x4f8,0x567)](self['locat'+_0x338b77(0x512,0x548)][_0x346558(0x4ef,0x4ca)+'n'])&&_0x49635b[_0x346558(0x5fc,0x656)](_0x49635b[_0x338b77(0x4e5,0x4c6)],_0x493766)){if(_0x49635b[_0x338b77(0x578,0x51e)]!==_0x49635b[_0x338b77(0x448,0x4b5)]){if(_0x49aef2){const _0x1175b5={};_0x1175b5[_0x346558(0x4e6,0x4ab)]=_0x49635b[_0x338b77(0x57b,0x509)],_0x1175b5[_0x346558(0x4f5,0x515)+'liteI'+'d']=_0x49aef2,_0x493766[_0x338b77(0x474,0x4aa)+_0x346558(0x55f,0x58a)+'e'](_0x1175b5);}return _0x493766[_0x346558(0x58e,0x573)]();}else return _0x31c8ad[_0x338b77(0x48f,0x48f)+'l'](_0x521a9c);}}}let _0x47a585=self[_0x346558(0x527,0x551)+_0x338b77(0x501,0x548)]['origi'+'n'];return _0x29af4e!=='/'&&(_0x338b77(0x594,0x568)!==_0x49635b['CBBCs']?_0x15fd8c+=_0x720101:_0x47a585+=_0x29af4e),clients['openW'+_0x338b77(0x4a2,0x4e8)](_0x47a585);}}));});
package/public/u-icon.png CHANGED
Binary file
package/server/channel.js CHANGED
@@ -1 +1 @@
1
- (function(_0x3eaf2e,_0x51a14e){function _0x145c86(_0xce9730,_0x25dea3){return _0x1579(_0x25dea3- -0x273,_0xce9730);}function _0x3dd0a8(_0x2c8279,_0x402fb3){return _0x1579(_0x2c8279- -0x17d,_0x402fb3);}const _0x204822=_0x3eaf2e();while(!![]){try{const _0x924aea=-parseInt(_0x145c86(-0x14b,-0x8a))/(-0xc5c*-0x2+-0xed1*0x1+-0x16a*0x7)*(parseInt(_0x145c86(-0x19b,-0x116))/(-0x2ff*0x9+-0x628*-0x6+-0x1*0x9f7))+parseInt(_0x3dd0a8(-0x9c,-0xa3))/(0x20c7*-0x1+-0x67c*-0x2+0x13d2*0x1)+parseInt(_0x145c86(-0xce,-0x20))/(0x5b5+0x15b4+-0x1b65)+-parseInt(_0x145c86(-0x145,-0x14c))/(-0x1a67+0x1*-0x1e4d+0x38b9)*(-parseInt(_0x3dd0a8(0xe,-0x92))/(-0x38e+0x719*-0x3+0x18df))+-parseInt(_0x145c86(-0x249,-0x196))/(0x25f4*-0x1+0x3*0x7d3+0xe82)*(-parseInt(_0x3dd0a8(0x83,0xd6))/(0x159*-0x2+-0x16af+0x1969))+-parseInt(_0x145c86(-0x90,-0xb5))/(-0x12b+-0x4*-0xb1+0x14*-0x14)+-parseInt(_0x3dd0a8(0x60,0xe1))/(0x1001+0x8*0x3d2+0x2e87*-0x1)*(-parseInt(_0x145c86(-0xab,-0xdc))/(-0x1*-0x1456+-0x23c7+-0x2*-0x7be));if(_0x924aea===_0x51a14e)break;else _0x204822['push'](_0x204822['shift']());}catch(_0x5ded1f){_0x204822['push'](_0x204822['shift']());}}}(_0x358f,-0x16fae1+0xb76*-0x1d+-0x1982f*-0x18));const _0x3c2c94=(function(){function _0x33bc46(_0x253d08,_0x5b4314){return _0x1579(_0x253d08- -0x2df,_0x5b4314);}const _0x26e8c0={};_0x26e8c0[_0x33bc46(-0x1f9,-0x1e1)]=_0x256815(-0x88,-0xf5)+_0x33bc46(-0x1fa,-0x19d)+_0x33bc46(-0xd5,-0x15d)+_0x256815(-0x8e,-0x31)+_0x33bc46(-0x113,-0x190),_0x26e8c0[_0x256815(-0x13,0x6)]=function(_0x443d15,_0x40f29e){return _0x443d15!==_0x40f29e;},_0x26e8c0[_0x33bc46(-0x1c4,-0x23d)]='bHQAr',_0x26e8c0[_0x256815(0x3a,0x23)]=_0x256815(-0x133,-0xa9),_0x26e8c0[_0x33bc46(-0x1fd,-0x2b7)]=_0x33bc46(-0xa1,-0x15c);const _0x405c0a=_0x26e8c0;let _0x5d1e8e=!![];function _0x256815(_0x2568a1,_0x2c9b78){return _0x1579(_0x2568a1- -0x207,_0x2c9b78);}return function(_0x1888b0,_0x46e5b3){const _0x1f54a3=_0x5d1e8e?function(){function _0x39ab0c(_0x4b99a8,_0x15f88b){return _0x1579(_0x4b99a8-0x1f,_0x15f88b);}const _0x44ac93={};_0x44ac93[_0x388ebe(0x1fd,0x160)]=_0x405c0a[_0x39ab0c(0x105,0x9d)];function _0x388ebe(_0x52ca53,_0x18608a){return _0x1579(_0x52ca53-0x28,_0x18608a);}const _0x4e3c79=_0x44ac93;if(_0x405c0a[_0x39ab0c(0x213,0x225)](_0x405c0a[_0x388ebe(0x143,0x16c)],_0x405c0a[_0x39ab0c(0x260,0x21d)])){if(_0x46e5b3){if(_0x405c0a['ERqwY']!==_0x39ab0c(0x274,0x1b5)){const _0x3b9d8f=_0x46e5b3['apply'](_0x1888b0,arguments);return _0x46e5b3=null,_0x3b9d8f;}else _0x2d0553[_0x4e3c79[_0x39ab0c(0x1f4,0x15b)]]=_0x530ad0;}}else _0x40d320[_0x388ebe(0x101,0x62)](_0x115c18[-0x9b*0x4+-0x315+0x582][_0x39ab0c(0x10f,0x83)]());}:function(){};return _0x5d1e8e=![],_0x1f54a3;};}()),_0x285a19=_0x3c2c94(this,function(){function _0x2e74b3(_0x2f33cd,_0x2ee456){return _0x1579(_0x2ee456- -0x132,_0x2f33cd);}const _0x165a87={};function _0x46206e(_0x3d738b,_0x31f353){return _0x1579(_0x3d738b- -0x295,_0x31f353);}_0x165a87[_0x46206e(-0x13c,-0x144)]=_0x46206e(-0x13e,-0x12a)+_0x2e74b3(0xec,0x5a)+'+$';const _0x2a864c=_0x165a87;return _0x285a19[_0x2e74b3(-0x9d,0x21)+_0x46206e(-0x79,-0xa6)]()['searc'+'h'](_0x2a864c[_0x2e74b3(-0x10,0x27)])[_0x46206e(-0x142,-0xe1)+_0x46206e(-0x79,-0x5b)]()['const'+'ructo'+'r'](_0x285a19)[_0x46206e(-0x160,-0x1d4)+'h'](_0x46206e(-0x13e,-0x1bb)+_0x2e74b3(-0x10,0x5a)+'+$');});_0x285a19();import{log,fetchWithTimeout}from'./utils.js';import{isGatewayCommand as _0x13bccf}from'./gateway-commands.js';function _0x266ed8(_0x446b78,_0x399fbd){return _0x1579(_0x399fbd- -0x3cf,_0x446b78);}import{OPENCLAW_WEBHOOK_URL,USE_CHANNEL_WEBHOOK,GATEWAY_URL as _0x39c9c9,SESSION_USER,CHANNEL_FETCH_TIMEOUT_MS,STREAM_READ_TIMEOUT_MS}from'./config.js';import{loadConfig}from'./runtime-config.js';async function getGatewayConfig(){function _0x589775(_0x4dbf4a,_0x558fca){return _0x1579(_0x4dbf4a- -0xf9,_0x558fca);}const _0x2b4d4f={'jpCge':function(_0x4a47d1,_0x85bdb3,_0x25d87a){return _0x4a47d1(_0x85bdb3,_0x25d87a);},'VjwGF':_0x2562bd(0xb9,0x170),'ujnFo':'[Chan'+_0x2562bd(-0x24,0x47)+_0x2562bd(0x46,0x50)+_0x2562bd(-0x8a,0x1b)+_0x589775(-0x8,-0xa0)+'er','sXHKF':function(_0x207769,_0x2ab0f8){return _0x207769===_0x2ab0f8;},'HmvxI':'LIWQl','iXcwY':_0x589775(0x2d,-0x45),'cJQuz':function(_0x52f543){return _0x52f543();},'PhHPK':function(_0x589c2d,_0x1d5bd4){return _0x589c2d!==_0x1d5bd4;}};function _0x2562bd(_0x580667,_0xeb4c70){return _0x1579(_0xeb4c70- -0xd0,_0x580667);}try{if(_0x2b4d4f[_0x589775(0x2b,0x5d)](_0x2b4d4f[_0x589775(0x6f,0xc)],_0x2b4d4f[_0x2562bd(0x116,0xab)])){_0x2b4d4f[_0x589775(0xbc,0x3e)](_0x7bfa1b,_0x2b4d4f[_0x589775(-0x11,-0xa5)],_0x2b4d4f[_0x589775(0xd9,0x12b)]);const _0x3ecffd={};return _0x3ecffd['done']=!![],_0x3ecffd;}else{const _0x61f9e6=await _0x2b4d4f[_0x589775(0x3e,-0x67)](loadConfig),_0x20fe02={};return _0x20fe02[_0x2562bd(0x51,0xde)]=_0x61f9e6[_0x2562bd(0x20,0x19)+_0x589775(0x11c,0x1e0)]||_0x39c9c9,_0x20fe02[_0x2562bd(0xa0,0x2b)]=_0x61f9e6['gatew'+_0x589775(-0xd,-0xb5)+'en']||'',_0x20fe02;}}catch{if(_0x2b4d4f[_0x589775(0x10a,0x188)]('rNEiB',_0x589775(0x4f,-0x32))){const _0x39d4cc={};return _0x39d4cc['url']=_0x39c9c9,_0x39d4cc[_0x2562bd(-0x5b,0x2b)]='',_0x39d4cc;}else return _0x134c06['race']([_0x334497[_0x2562bd(0x3d,0xea)](),new _0x271545((_0x2d8299,_0x201e67)=>_0x1dabed(()=>_0x201e67(new _0x25ea90(_0x2562bd(0x125,0x7d)+_0x2562bd(0xec,0x123)+_0x2562bd(-0x9,0x5b)+_0x2562bd(0x61,0x3a)+'t\x20-\x20g'+_0x589775(0x75,0x89)+'y\x20may'+'\x20be\x20s'+_0x589775(0x74,-0x8)+'d')),_0x5af101))]);}}export function isChannelEnabled(){return USE_CHANNEL_WEBHOOK&&OPENCLAW_WEBHOOK_URL&&!!process.env.OPENCLAW_CALLBACK_SECRET;}async function getCallbackSecret(){function _0x58a238(_0x1dbdae,_0x32d2b6){return _0x1579(_0x32d2b6- -0x2d,_0x1dbdae);}const _0x3d9625={'YhOkH':function(_0x6339eb){return _0x6339eb();},'wnLyX':function(_0x21c5ff,_0x5ee515){return _0x21c5ff!==_0x5ee515;},'QpcOv':_0x58a238(0x10b,0x170),'FXWWO':'BuEkK'};function _0x175098(_0x2bc655,_0x500873){return _0x1579(_0x500873-0x10a,_0x2bc655);}try{const _0x1c7166=await _0x3d9625[_0x58a238(0x1d8,0x1d9)](loadConfig);return _0x1c7166[_0x175098(0x34a,0x297)+'lawCa'+_0x175098(0x28e,0x217)+_0x175098(0x287,0x2a6)+'et']||'';}catch{if(_0x3d9625[_0x58a238(0x2b,0xe1)](_0x3d9625['QpcOv'],_0x3d9625['FXWWO']))return'';else _0x166bb4[_0x175098(0x2b7,0x2c0)+_0x58a238(0x1eb,0x1d4)+'k']();}}export async function*sendViaChannel({message:_0x2f739d,satelliteId:satelliteId=_0x266ed8(-0x378,-0x2be),mode:mode='text',requestId:_0x296ff4,userId:userId='defau'+'lt'}){const _0x332728={'ozkTV':function(_0x287350,_0x5759eb){return _0x287350>_0x5759eb;},'rzTci':_0x448a9d(0x2fc,0x2f3),'FBALh':_0x311c66(0x589,0x54e),'RGkcM':_0x311c66(0x57f,0x598),'Icntv':function(_0x48171d,_0x2ec5fc,_0x14477f){return _0x48171d(_0x2ec5fc,_0x14477f);},'APdWG':function(_0x56db3e){return _0x56db3e();},'kubIS':_0x311c66(0x4e7,0x556)+'el\x20we'+'bhook'+'\x20not\x20'+'confi'+'gured','aEaIR':function(_0x1244dd){return _0x1244dd();},'IkkxH':function(_0x278d21,_0x453c53,_0x183c1f,_0x127d3b){return _0x278d21(_0x453c53,_0x183c1f,_0x127d3b);},'qMqPg':'POST','GKIgd':function(_0x1227fa,_0x36ad45){return _0x1227fa===_0x36ad45;},'LLgAG':_0x448a9d(0x1f1,0x1f1),'jnLoY':_0x311c66(0x4db,0x4a9)+'\x20','otkqE':function(_0x5ef5e8,_0x15b0e0){return _0x5ef5e8!==_0x15b0e0;},'rfsIy':_0x311c66(0x550,0x495),'LzJAT':_0x311c66(0x4d4,0x471),'jGgVa':function(_0x56af51,_0x281a28){return _0x56af51===_0x281a28;},'lawzt':_0x311c66(0x458,0x464)+']','zLWNS':function(_0x5ca9d6,_0x560427){return _0x5ca9d6!==_0x560427;},'GupJb':'VOamC','HAQOp':_0x311c66(0x4a1,0x457),'nfwAR':function(_0x36fc23,_0x2d864c){return _0x36fc23===_0x2d864c;},'FIVqF':_0x448a9d(0x31e,0x2e8)};if(!_0x332728[_0x311c66(0x518,0x508)](isChannelEnabled))throw new Error(_0x332728[_0x448a9d(0x2ab,0x370)]);log(_0x332728[_0x311c66(0x4b0,0x538)],_0x311c66(0x51f,0x523)+_0x311c66(0x505,0x46f)+'Sendi'+_0x311c66(0x41f,0x4d6)+_0x448a9d(0x2c5,0x31e)+'ook:\x20'+'satel'+_0x448a9d(0x26a,0x1c0)+satelliteId+(',\x20mod'+'e=')+mode);const _0x4089ec=await _0x332728[_0x448a9d(0x257,0x1be)](getCallbackSecret),_0x571991={};_0x571991['Conte'+_0x311c66(0x4f4,0x450)+'pe']=_0x448a9d(0x273,0x1be)+_0x448a9d(0x1a3,0x1be)+_0x448a9d(0x2d1,0x209)+'n',_0x571991[_0x311c66(0x3fd,0x461)+'ink-S'+_0x311c66(0x518,0x468)]=_0x4089ec;const _0x3b0ac6={};_0x3b0ac6[_0x311c66(0x3e7,0x496)+'ge']=_0x2f739d,_0x3b0ac6['satel'+_0x311c66(0x47a,0x4be)+'d']=satelliteId;function _0x311c66(_0x2f2201,_0x39063e){return _0x266ed8(_0x2f2201,_0x39063e-0x727);}_0x3b0ac6[_0x448a9d(0x20e,0x159)]=mode,_0x3b0ac6[_0x448a9d(0x23f,0x2ba)+'stId']=_0x296ff4,_0x3b0ac6[_0x311c66(0x4f7,0x4ec)+'d']=userId;const _0x2b3a1c=await _0x332728[_0x311c66(0x5a6,0x5ae)](fetchWithTimeout,OPENCLAW_WEBHOOK_URL,{'method':_0x332728[_0x311c66(0x57a,0x58d)],'headers':_0x571991,'body':JSON[_0x448a9d(0x2f5,0x289)+'gify'](_0x3b0ac6)},CHANNEL_FETCH_TIMEOUT_MS);if(!_0x2b3a1c['ok']){const _0x405fdf=await _0x2b3a1c[_0x448a9d(0x29e,0x2d9)]();throw new Error('Chann'+'el\x20we'+_0x448a9d(0x290,0x280)+_0x311c66(0x552,0x4ff)+_0x311c66(0x519,0x573)+_0x2b3a1c['statu'+'s']+_0x448a9d(0x228,0x289)+_0x405fdf);}const _0x56fab7=_0x2b3a1c[_0x448a9d(0x2a1,0x309)][_0x311c66(0x3e1,0x46d)+'ader'](),_0x28d2b6=new TextDecoder();function _0x448a9d(_0x2b516f,_0x3f02a3){return _0x266ed8(_0x3f02a3,_0x2b516f-0x4a3);}let _0x1fb7a2='';const _0x5a3610=(_0xbf03d7=STREAM_READ_TIMEOUT_MS)=>{const _0x52f220={'eOTaQ':function(_0x4cb9a0,_0x158362){function _0xf0468d(_0x26aff8,_0x1e24cd){return _0x1579(_0x26aff8- -0x378,_0x1e24cd);}return _0x332728[_0xf0468d(-0x211,-0x217)](_0x4cb9a0,_0x158362);}};function _0x1f1275(_0x3521e7,_0x29de5c){return _0x448a9d(_0x29de5c-0x1eb,_0x3521e7);}function _0x4a4179(_0x38057f,_0x11533c){return _0x448a9d(_0x11533c- -0x22f,_0x38057f);}if(_0x332728[_0x4a4179(-0x28,0x37)]===_0x332728[_0x1f1275(0x394,0x3d3)]){const _0xc43989=_0x2c3878[_0x4a4179(-0x51,-0x3d)](_0xa8c5a6),_0x296c78=_0xc43989[_0x4a4179(-0x41,-0x84)+'es']?.[0x205d+0x8*0xe3+-0x103*0x27]?.[_0x4a4179(-0x9e,-0x5e)],_0x28ec73=_0x296c78?.['tool_'+_0x1f1275(0x472,0x4e2)];let _0xa99a05=null;_0x28ec73&&_0x52f220[_0x1f1275(0x4ef,0x4ce)](_0x28ec73['lengt'+'h'],-0x43*0x43+-0x229d+0x3426)&&(_0xa99a05=_0x28ec73[-0x190f+-0x880+0x218f]?.[_0x1f1275(0x4a6,0x452)+_0x1f1275(0x3e7,0x3d5)]?.['name']||null);const _0x3e2f73={};return _0x3e2f73[_0x4a4179(-0x13e,-0x8f)+'nt']=_0x296c78?.[_0x1f1275(0x3ac,0x38b)+'nt']||'',_0x3e2f73[_0x1f1275(0x456,0x4f2)]=_0xc43989[_0x4a4179(0x110,0xd8)]||null,_0x3e2f73['toolN'+_0x1f1275(0x34a,0x3c6)]=_0xa99a05,_0x3e2f73;}else return Promise['race']([_0x56fab7[_0x4a4179(0x63,0x5f)](),new Promise((_0x4632b4,_0xe821d2)=>setTimeout(()=>_0xe821d2(new Error(_0x4a4179(-0xba,-0xe)+_0x1f1275(0x4d8,0x4b2)+_0x1f1275(0x47e,0x3ea)+'ed\x20ou'+_0x4a4179(-0xf7,-0x6c)+'atewa'+'y\x20may'+_0x4a4179(-0xa9,-0xd)+_0x4a4179(0x3,0x12)+'d')),_0xbf03d7))]);};try{while(!![]){if(_0x332728['GKIgd'](_0x448a9d(0x1f1,0x1c6),_0x332728[_0x448a9d(0x2ae,0x347)])){const {done:_0x51d874,value:_0x25fdd1}=await _0x332728[_0x448a9d(0x284,0x2ab)](_0x5a3610);if(_0x51d874)break;const _0x2148f1={};_0x2148f1[_0x311c66(0x5ca,0x56f)+'m']=!![],_0x1fb7a2+=_0x28d2b6[_0x311c66(0x481,0x49a)+'e'](_0x25fdd1,_0x2148f1);const _0x563172=_0x1fb7a2[_0x448a9d(0x2cd,0x210)]('\x0a');_0x1fb7a2=_0x563172[_0x448a9d(0x226,0x18f)]()||'';for(const _0x5a0d72 of _0x563172){if(_0x5a0d72[_0x448a9d(0x2b6,0x320)+_0x448a9d(0x1f0,0x1cc)](_0x332728[_0x311c66(0x52b,0x51e)])){if(_0x332728[_0x448a9d(0x296,0x248)](_0x332728[_0x311c66(0x5d6,0x52b)],_0x332728[_0x448a9d(0x27a,0x1f0)])){const _0x14707c=_0x5a0d72[_0x448a9d(0x293,0x289)](0x1*0x213+0x22ee+-0x24fb);if(_0x332728['jGgVa'](_0x14707c,_0x332728[_0x311c66(0x417,0x4d8)])){if(_0x332728[_0x448a9d(0x244,0x283)](_0x332728[_0x311c66(0x59c,0x586)],'jCwVM'))return;else return _0x8a4601;}try{if(_0x332728[_0x448a9d(0x296,0x32d)](_0x448a9d(0x1d3,0x17e),_0x332728[_0x448a9d(0x319,0x272)])){const _0x552a48=_0x21a60d[_0x311c66(0x4e0,0x448)]();if(/^(https?:|\/api\/)/i[_0x448a9d(0x2be,0x214)](_0x552a48))return _0x42770e;const _0x3e54c7=_0x3cc28d(_0x552a48);if(_0x3e54c7)return _0x56d1ac(_0x332728[_0x448a9d(0x2b4,0x370)],_0x311c66(0x4bf,0x523)+_0x311c66(0x4f9,0x46f)+'Rewro'+_0x448a9d(0x205,0x2b5)+'rkdow'+_0x448a9d(0x25b,0x23a)+_0x311c66(0x5af,0x576)+_0x552a48+'\x20->\x20'+_0x3e54c7),'!['+_0x3710c6+']('+_0x3e54c7+')';return _0x331a4d;}else{const _0x390fae=JSON[_0x448a9d(0x1f2,0x1ee)](_0x14707c);yield _0x390fae;}}catch{}}else throw new _0x3a1b85(_0x311c66(0x4db,0x556)+_0x448a9d(0x263,0x273)+_0x311c66(0x567,0x514)+'\x20not\x20'+_0x448a9d(0x1fc,0x1f5)+_0x311c66(0x4c3,0x502));}}}else _0x531fed=_0x9aad82['usage'];}}finally{if(_0x332728[_0x311c66(0x47f,0x501)](_0x311c66(0x54a,0x55a),_0x332728['FIVqF']))return _0x332728[_0x311c66(0x60f,0x568)](_0x3b1363,_0x448a9d(0x314,0x323),_0x448a9d(0x29f,0x312)+_0x448a9d(0x1eb,0x17e)+'Rewro'+_0x448a9d(0x205,0x1f0)+'rkdow'+_0x311c66(0x43f,0x4df)+_0x311c66(0x632,0x576)+_0x4f424f+_0x311c66(0x531,0x4d9)+_0x2b9c27),'!['+_0xb7129f+']('+_0x14d277+')';else _0x56fab7[_0x448a9d(0x28a,0x29a)+_0x311c66(0x5f4,0x559)+'k']();}}function createReadWithTimeout(_0x46b8ee,_0xcf2a79=STREAM_READ_TIMEOUT_MS){function _0x22d672(_0x1b4af5,_0x143bcf){return _0x266ed8(_0x143bcf,_0x1b4af5-0x47a);}function _0x10a460(_0x22c40d,_0x56094f){return _0x266ed8(_0x22c40d,_0x56094f-0xbe);}return Promise[_0x22d672(0x1d9,0x1c1)]([_0x46b8ee[_0x22d672(0x265,0x30f)](),new Promise((_0x22dc0f,_0x2c13d0)=>setTimeout(()=>_0x2c13d0(new Error(_0x22d672(0x1f8,0x1fd)+'m\x20rea'+_0x10a460(-0x220,-0x1e6)+_0x10a460(-0x213,-0x207)+_0x22d672(0x19a,0x196)+_0x10a460(-0x1ba,-0x1a3)+_0x22d672(0x26e,0x1b2)+'\x20be\x20s'+'talle'+'d')),_0xcf2a79))]);}function estimateTokenUsage(_0x1ac8b5,_0x323383){const _0x564392={};_0x564392['BZjUk']=function(_0x50f03a,_0x13618f){return _0x50f03a/_0x13618f;};function _0x266ae7(_0x275c55,_0x21b363){return _0x266ed8(_0x275c55,_0x21b363-0xad);}_0x564392['Saiow']=function(_0x334d1d,_0x1b7cc1){return _0x334d1d+_0x1b7cc1;};const _0xbe8558=_0x564392;function _0x76cecd(_0xd20a39,_0x17145b){return _0x266ed8(_0x17145b,_0xd20a39-0x6a9);}const _0x3d2a8c=Math['ceil'](_0x1ac8b5[_0x266ae7(-0x33,-0xe9)+'h']/(0x18cd+0x5ff+-0x1ec8)),_0x32ba08=Math[_0x76cecd(0x416,0x486)](_0xbe8558[_0x76cecd(0x491,0x554)](_0x323383[_0x76cecd(0x513,0x4d7)+'h'],0x185f*0x1+0x1c9*-0x15+-0x29*-0x52));return{'prompt_tokens':_0x3d2a8c,'completion_tokens':_0x32ba08,'total_tokens':_0xbe8558[_0x76cecd(0x449,0x422)](_0x3d2a8c,_0x32ba08),'estimated':!![]};}async function processChannelStream({eventStream:_0xb63ae0,signal:_0x4f7dd4,callbacks:_0x205197}){const _0x82953={'JFTWm':_0x5a88b8(-0x117,-0x52)+_0x226431(0xb6,0xa6)+'+$','ZmbZg':_0x226431(0x5f,0x8b)+_0x5a88b8(-0x28,-0x9d)+_0x226431(0x87,0xfe)+_0x5a88b8(-0x17c,-0x235)+_0x226431(0x1a4,0x166)+_0x226431(0x6,0xc5)+_0x5a88b8(-0x199,-0x1fb)+'penCl'+_0x5a88b8(-0x96,-0xd9)+_0x226431(0x65,0x1a)+_0x226431(0x4e,0x75)+_0x226431(0xa3,0x8c),'RxKkT':function(_0x40cf43,_0x22989b){return _0x40cf43&&_0x22989b;},'kXPrg':function(_0x172f4b,_0x5ab8ba){return _0x172f4b!==_0x5ab8ba;},'YCCNR':_0x226431(0x1d,0x7),'gvywl':_0x226431(0x1b5,0x15a),'qRYZg':_0x226431(0xa5,0xe5)+_0x226431(0xea,0x31)+'Reque'+_0x5a88b8(-0x178,-0x1a9)+'orted'+_0x5a88b8(-0x81,-0x13f)+_0x5a88b8(-0x3d,-0xee)+_0x5a88b8(-0x8f,-0x84)+'\x20stre'+_0x5a88b8(-0x15f,-0x1bd),'OqfpL':_0x5a88b8(-0x49,-0x100)+_0x226431(0xe3,0x136),'ZaYgs':function(_0x541766){return _0x541766?.();},'GDsEC':_0x5a88b8(-0x4e,-0xfb),'sZlSb':function(_0x42c77c,_0x46b636){return _0x42c77c!==_0x46b636;},'WLmTc':_0x5a88b8(-0xa9,-0x163),'pJCHU':function(_0x293f48,_0x3bb45e){return _0x293f48?.(_0x3bb45e);},'qfSnE':_0x5a88b8(-0x136,-0xd1),'SGYTH':'tjzFi','zKOlQ':_0x226431(0xa1,0x78),'lVwjH':function(_0x47cd9a,_0x12d1ae){return _0x47cd9a!==_0x12d1ae;},'fmOen':_0x226431(0xa1,0x100),'lyqLx':'error','iKggX':_0x5a88b8(-0x4a,-0xcc)+_0x5a88b8(-0xf4,-0x193)+'annel'+_0x226431(0xf8,0xc1)+'r'};function _0x5a88b8(_0x27912c,_0x393b38){return _0x266ed8(_0x393b38,_0x27912c-0x161);}const {onChunk:_0x378d35,onTool:_0x6752e3,onThinking:_0x49a7d9}=_0x205197;let _0x4149c1='';function _0x226431(_0x5d201e,_0x185a68){return _0x266ed8(_0x5d201e,_0x185a68-0x2e9);}let _0x49bb89=null;const _0x1f99fe=[];for await(const _0x5d1c53 of _0xb63ae0){if(_0x4f7dd4?.[_0x5a88b8(-0x34,-0xdc)+'ed']){if(_0x82953[_0x5a88b8(-0x3e,-0xc4)](_0x82953['YCCNR'],_0x82953[_0x226431(0x62,0x128)]))_0x59ff72=_0x3bd3ae[_0x226431(0x155,0x14e)+_0x5a88b8(-0xce,-0x14c)];else{log(_0x82953['gvywl'],_0x82953[_0x5a88b8(-0x16d,-0x227)]);break;}}switch(_0x5d1c53[_0x226431(0x175,0xf3)]){case _0x82953[_0x5a88b8(-0xbd,-0x71)]:_0x82953[_0x5a88b8(-0x33,0x6f)](_0x49a7d9);break;case _0x82953[_0x5a88b8(-0x14c,-0xae)]:if(_0x5d1c53[_0x5a88b8(-0x1a2,-0x174)+'nt']){if(_0x82953[_0x5a88b8(-0x3c,-0x6)](_0x82953[_0x226431(0x32,0x70)],_0x226431(0x19b,0xdf)))return _0x588b52['toStr'+_0x5a88b8(-0x52,-0x88)]()[_0x226431(-0x49,0x4f)+'h'](_0x226431(-0x1,0x71)+_0x226431(0x14c,0xa6)+'+$')['toStr'+'ing']()[_0x226431(0x1e0,0x145)+'ructo'+'r'](_0x3273e9)['searc'+'h'](amfGEv['JFTWm']);else _0x4149c1+=_0x5d1c53[_0x5a88b8(-0x1a2,-0x254)+'nt'],_0x82953[_0x5a88b8(-0x38,-0x6e)](_0x378d35,_0x5d1c53[_0x226431(-0xab,-0x1a)+'nt']);}break;case _0x82953[_0x226431(0xe0,0x12d)]:if(_0x5d1c53[_0x5a88b8(-0x136,-0xa5)]&&!_0x1f99fe[_0x5a88b8(-0x16a,-0x18b)+_0x226431(0x44,0x109)](_0x5d1c53[_0x5a88b8(-0x136,-0x97)])){if(_0x82953[_0x5a88b8(-0x3e,0x62)](_0x226431(-0x89,-0x13),_0x226431(-0x4e,-0x13)))throw new _0x179abf(_0x82953[_0x5a88b8(-0x170,-0x104)]);else _0x1f99fe[_0x5a88b8(-0x195,-0x1ea)](_0x5d1c53[_0x226431(0xa,0x52)]),_0x82953[_0x5a88b8(-0x38,-0x27)](_0x6752e3,_0x5d1c53[_0x226431(0xe0,0x52)]);}break;case _0x5a88b8(-0xca,-0x52)+'ete':if(_0x5d1c53['respo'+_0x5a88b8(-0xce,-0xc1)]){if(_0x82953[_0x226431(0x6e,-0xb)]===_0x82953['zKOlQ'])return amfGEv[_0x226431(0x48,0x1)](_0x3973a0,_0x3590ec)&&!!_0xf2a9b6.env.OPENCLAW_CALLBACK_SECRET;else _0x4149c1=_0x5d1c53['respo'+_0x5a88b8(-0xce,-0x5e)];}_0x5d1c53[_0x5a88b8(-0x3b,-0x5b)]&&(_0x82953[_0x226431(-0x37,0x5f)](_0x82953[_0x226431(0xa7,-0x14)],_0x5a88b8(-0xd0,-0x191))?_0x49bb89=_0x5d1c53[_0x226431(0x132,0x14d)]:(_0x3f9522[_0x226431(-0x84,-0xd)](_0x36a26d[_0x5a88b8(-0x136,-0x8c)]),_0x35f0f6?.(_0x32a06b['tool'])));break;case _0x82953['lyqLx']:throw new Error(_0x5d1c53[_0x5a88b8(-0x12e,-0x1a2)]||_0x82953[_0x5a88b8(-0xf1,-0x186)]);}}const _0x2fe23e={};return _0x2fe23e[_0x5a88b8(-0xd6,-0x4f)+'espon'+'se']=_0x4149c1,_0x2fe23e[_0x226431(-0xa2,0x15)+_0x226431(0x198,0x16e)]=_0x49bb89,_0x2fe23e[_0x226431(0x163,0x12c)+_0x226431(-0xf,0x7b)+_0x226431(0xaa,0xf6)]=_0x1f99fe,_0x2fe23e;}const isGatewayCommand=_0x13bccf;async function buildGatewayRequest({message:_0x479287,satelliteId:_0x3fef55,satelliteName:_0x3d5192,agentId:_0x5b5c39,mode:_0x18fdfd,signal:_0x124fe4}){const _0x4eb0a9={'DhlsE':function(_0x3f065a,_0x1ac400){return _0x3f065a?.(_0x1ac400);},'eiDVx':function(_0x4d4e00){return _0x4d4e00();},'KsWCD':function(_0x531887,_0x5549e9){return _0x531887(_0x5549e9);},'wZAqe':function(_0x1370e3,_0xdeaa93){return _0x1370e3===_0xdeaa93;},'ZVGjz':'[Voic'+_0x9a6e36(0x464,0x3da)+_0x9a6e36(0x44c,0x3bf)+_0x4911ed(0x58d,0x54f)+_0x4911ed(0x4c1,0x528)+_0x9a6e36(0x41c,0x429)+_0x4911ed(0x5f1,0x539)+_0x9a6e36(0x49a,0x480)+'nvers'+_0x9a6e36(0x4b6,0x405)+_0x9a6e36(0x439,0x3f4)+_0x9a6e36(0x4cb,0x43a)+'ntenc'+_0x9a6e36(0x42c,0x377)+_0x9a6e36(0x3ea,0x42e),'NgKIK':'[Text'+_0x4911ed(0x6ab,0x5fc)+'\x20via\x20'+_0x4911ed(0x4f3,0x594)+_0x9a6e36(0x3eb,0x39a),'lMLcN':function(_0x346223,_0x4004d3){return _0x346223||_0x4004d3;},'cYPjx':_0x9a6e36(0x3c8,0x3b9),'gwtoX':'fjvVF','CGnXP':_0x4911ed(0x582,0x536)+_0x4911ed(0x5fe,0x60b)+'L\x20not'+'\x20conf'+_0x4911ed(0x69a,0x611)+'d.\x20Ch'+_0x4911ed(0x4c3,0x49a)+_0x4911ed(0x538,0x4cd)+'aw\x20ga'+_0x4911ed(0x47f,0x4c5)+_0x9a6e36(0x412,0x3b1)+'ings.','vaZiP':function(_0x3f8908,_0x3ca681,_0x484629){return _0x3f8908(_0x3ca681,_0x484629);},'zEWod':_0x4911ed(0x66f,0x605),'Wxrka':_0x4911ed(0x4ff,0x564)+'catio'+_0x9a6e36(0x4b4,0x57b)+'n','bVNZI':_0x9a6e36(0x436,0x40b)+'nclaw'+_0x4911ed(0x696,0x5cf)+'ion-l'+_0x9a6e36(0x483,0x538),'qngSm':_0x9a6e36(0x3fa,0x429),'aBpIr':'openc'+_0x4911ed(0x407,0x4a4),'BLTCf':_0x4911ed(0x56e,0x521)};function _0x4911ed(_0x34481c,_0x16c406){return _0x266ed8(_0x34481c,_0x16c406-0x794);}const _0x52f32a=await _0x4eb0a9['eiDVx'](getGatewayConfig),_0x173574=_0x4eb0a9[_0x9a6e36(0x447,0x44e)](isGatewayCommand,_0x479287),_0x4dc0ed=_0x173574?'':_0x4eb0a9[_0x4911ed(0x426,0x4bf)](_0x18fdfd,_0x9a6e36(0x48d,0x4ca))?_0x4eb0a9[_0x9a6e36(0x3bc,0x41e)]:_0x4eb0a9[_0x9a6e36(0x4a5,0x520)];function _0x9a6e36(_0x2693dc,_0x1610e7){return _0x266ed8(_0x1610e7,_0x2693dc-0x686);}const _0x18f39e=_0x4eb0a9[_0x4911ed(0x65f,0x5bd)](_0x5b5c39,_0x4eb0a9[_0x9a6e36(0x3ab,0x2f1)]),_0x64837e=_0x4eb0a9[_0x4911ed(0x479,0x4bf)](_0x3fef55,_0x4eb0a9['cYPjx'])?_0x4911ed(0x4f3,0x48d)+':'+_0x18f39e+_0x9a6e36(0x395,0x316):_0x4911ed(0x4af,0x48d)+':'+_0x18f39e+(_0x9a6e36(0x474,0x472)+_0x4911ed(0x63a,0x5d1)+_0x9a6e36(0x42e,0x4b9)+_0x4911ed(0x5cc,0x5db))+_0x3fef55;if(!_0x52f32a[_0x4911ed(0x5a1,0x573)]){if(_0x4eb0a9[_0x9a6e36(0x4c8,0x53b)]===_0x4eb0a9['gwtoX'])throw new Error(_0x4eb0a9[_0x4911ed(0x53c,0x4d8)]);else{_0x302e7c+=_0x228fe0[_0x4911ed(0x3ee,0x491)+'nt'],_0x17057e?.(_0x2f0582['conte'+'nt']);const _0x4d46da=_0x57c994['conte'+'nt'][_0x4911ed(0x514,0x54d)](/<(?:antml:)?invoke name="(\w+)"/);_0x4d46da&&!_0x4659a4['inclu'+_0x4911ed(0x618,0x5b4)](_0x4d46da[-0x17*0xc8+-0x1e3b+0x14*0x269])&&(_0x304094[_0x9a6e36(0x390,0x2f8)](_0x4d46da[0x5fc+0x190e+-0x1f09]),_0x4eb0a9['DhlsE'](_0x355dc7,_0x4d46da[-0x1*-0x53+-0x1c48+0x952*0x3]));}}_0x4eb0a9[_0x9a6e36(0x387,0x2ea)](log,_0x4eb0a9[_0x4911ed(0x512,0x511)],_0x9a6e36(0x482,0x45e)+'nel]\x20'+_0x4911ed(0x49b,0x55e)+_0x9a6e36(0x402,0x487)+_0x4911ed(0x53a,0x574)+_0x9a6e36(0x46f,0x47d)+'\x20sess'+_0x4911ed(0x41c,0x4ba)+'y='+_0x64837e+(_0x4911ed(0x4ef,0x568)+'e=')+_0x18fdfd+(_0x9a6e36(0x47b,0x507)+_0x9a6e36(0x440,0x3f3))+_0x3d5192),_0x4eb0a9['vaZiP'](log,_0x4eb0a9['zEWod'],_0x9a6e36(0x482,0x441)+_0x4911ed(0x451,0x4dc)+_0x9a6e36(0x385,0x3cd)+_0x9a6e36(0x3e7,0x45e)+_0x9a6e36(0x498,0x548)+_0x52f32a[_0x4911ed(0x4f5,0x573)]+(_0x9a6e36(0x406,0x482)+_0x9a6e36(0x445,0x4dc)+':\x20')+!!_0x52f32a[_0x9a6e36(0x3b2,0x378)]);const _0x3def80=_0x52f32a[_0x4911ed(0x529,0x573)]+(_0x9a6e36(0x485,0x420)+_0x4911ed(0x434,0x4df)+_0x4911ed(0x65e,0x5a3)+_0x4911ed(0x56c,0x50e)),_0x2ff375={};_0x2ff375['Conte'+_0x4911ed(0x461,0x4bd)+'pe']=_0x4eb0a9['Wxrka'],_0x2ff375[_0x9a6e36(0x4f9,0x4f5)+_0x9a6e36(0x3da,0x35c)+_0x4911ed(0x56d,0x4db)]=_0x4911ed(0x518,0x54b)+'r\x20'+_0x52f32a[_0x4911ed(0x45a,0x4c0)],_0x2ff375[_0x9a6e36(0x436,0x4ca)+'nclaw'+'-sess'+'ion-k'+'ey']=_0x64837e;const _0x560438=_0x2ff375;_0x3d5192&&(_0x560438[_0x4eb0a9[_0x4911ed(0x4c6,0x58c)]]=_0x3d5192);const _0x36ac14={};_0x36ac14[_0x4911ed(0x4a8,0x4c9)+'de_us'+_0x4911ed(0x594,0x4f2)]=!![];const _0x165679={'method':_0x4eb0a9[_0x4911ed(0x43f,0x492)],'headers':_0x560438,'body':JSON['strin'+_0x4911ed(0x510,0x549)]({'model':_0x4eb0a9[_0x9a6e36(0x40f,0x40f)],'user':_0x4911ed(0x5f0,0x585)+_0x9a6e36(0x505,0x4c6)+'ault','stream':!![],'stream_options':_0x36ac14,'messages':[{'role':_0x4eb0a9[_0x4911ed(0x65f,0x5a0)],'content':''+_0x4dc0ed+_0x479287}]}),'signal':_0x124fe4},_0x1deb5e={};return _0x1deb5e['url']=_0x3def80,_0x1deb5e[_0x9a6e36(0x45c,0x3ea)+'ns']=_0x165679,_0x1deb5e['sessi'+_0x4911ed(0x5ad,0x5f1)]=_0x64837e,_0x1deb5e;}function _0x358f(){const _0x201bc9=['agent','\x20char','KUsEN','plete','conte','qngSm','Using','catio','vaZiP','as\x20no','fmOen','DNwhy','PdmEn','eck\x20O','enamg','choic','dJDQN','push','wpQCn','SGYTH','TeSer','3451735YiyPgc',':main','law','ructo','577482xaAsra','ERqwY','\x20stre',',\x20bod','nclaw','NStUe','RxKkT','VjwGF','gatew','eived','DONE]','ayTok','GYiAO','ueLen','t\x20-\x20g','trim','\x20mark','\x20conf','onToo','cYPjx','ionKe','st\x20ab','MyzFD','nt-Ty','OSKIq','wZAqe','token','CYXoX','delta','ZmbZg','WoFDO','teway','qRYZg','pVEIs','ring','inclu','ZVGjz','Respo','ame','penCl','X-Upl','ed\x20ou','JxDJc','[DONE','llbac','wnLyX','aming','ecret','main','ks,\x20r','CGnXP','FBALh','getRe','ion','nel]\x20','Chunk','cifjs','hat/c','kQKGz','sWith','XffRH','parse','blzmg','Got\x20[','NZjne','GDsEC','rizat','sXHKF','Rewro','wRBdc','353875VoespK','confi','YYUWA','YAmVN','d\x20tim','event','age','race','subst','\x20gate','te\x20ma','AceNV','x]\x20','k]\x20','searc','jhlYu','cJQuz','tool','DgORg','mode','AYCSk','ceil','vURoS','messa','onChu','error','vDsvj','decod','POST','wpykq','lVwjH',':\x20sta','ktPeF','iwGIb','tions','exec','t\x20gat','zEWod','Strea','\x20be\x20s',',\x20has','eHclo','data:','pop','toStr','\x20-\x20','satel','WLmTc','(((.+','aBpIr','GxdcT','OtHkn','\x20sett','user','8NGWmxo','LkSHi','pkcqi','callb','tedTo','\x20chun','espon','Deagn','se\x20br','liteI','ozkTV','HmvxI','LGuLb','entMe','reque','UrWAy','talle','atewa','Saiow','zLWNS','Gatew','ings.','signa','ief\x20a','es\x20ma','EoMnv','telli','pping','ion-l','wn\x20ch','iXcwY','ader','iKggX','ng\x20to','x-ope','lawzt','\x20->\x20','al,\x201','aEaIR','gify','hunk\x20','Beare','n\x20ima','match','el=','eep\x20r','12lRGUAG',')+)+)','openc','Token','el\x20we','KsWCD','OhGvV','rzTci','funct','userI','t\x20-\x20k','lite=','27963925hTzUnm','fullR','Direc','VLHdt','repla','kSecr','glAwx','suDkz','appli','nse','ojVjV','am\x20re',',\x20mod','compl','optio','LzJAT','\x20erro','qMidh','nfwAR','gured','d.\x20Ch','UMDnc','e\x20cha','url','eway\x20','APdWG','OqfpL','nlUTN','spons','nLrJS','jpCge','relea','BZjUk','call:','ned:\x20','read','POabO','bhook',':upli','15843582iHWZUx','slice','uplin','ror:\x20','otkqE','y\x20may',',\x20lab','SRanZ','jnLoY','bVNZI','ay\x20re','Reque','text','[Chan','abel','body','/v1/c','Uplin','ay\x20er','\x20body','ujnFo','rfsIy','AMZCu','maqoZ','voice','kubIS','aw\x20ga','type','LLgAG','BLTCf','ols','10kUviHi','omple','annel','RGkcM','way:\x20','start','nd\x20co','L\x20not','lhheN','ENCYS','toolN','Body=','399416ISaQtx','test','eZmOD','FWCFy','\x20duri','NgKIK','des','regis','\x20webh','ted\x20f','m\x20rea','OTiTw','dia','fUXZQ','ead\x20c','lMLcN','split','hyqrP','PlqpY','yType','n/jso','Chann','ation','16gTnNYm','seLoc','TAsqX','PhHPK','...',',\x20sto','YhOkH','sxlCw','nking','e\x20rec','-sess','OxKfn','nk:sa','orted','YCCNR','eOTaQ','Icntv','gwtoX','detec','qfSnE','-2\x20se','ayUrl','te:','strea','statu','jxvkH','name','r:\x20','ing','reade','ge:\x20','TKNDd','chunk','strin','lHHXw','calls','Unkno','think','tream','Read\x20','LnCHj','se:\x20','kcYlu','const','onKey','stId','GupJb','EQqni','kXPrg','ng\x20ch','sZlSb','usage','respo','qMqPg','pJCHU','\x20chat','About','lengt','abort','ZaYgs','done','reNFi','IAwEP','CaMFL','debug','fJOgy','Autho','\x20afte','done=','HAQOp','ay\x20UR','FlaTJ','Gbcfg','BnkCq','YjRlS','lTTJQ','igure','WTtSQ','k-def','KnKsq','nse\x20h','rkdow','acks','1649640mVKssK','Usage','SptTl','IkkxH'];_0x358f=function(){return _0x201bc9;};return _0x358f();}async function validateGatewayResponse(_0x5b4e45){const _0x5a7edf={'HCsUF':function(_0x297d27,_0x2c14ee){return _0x297d27?.(_0x2c14ee);},'UrWAy':function(_0x33af07,_0x2bcb90){return _0x33af07!==_0x2bcb90;},'eHclo':_0x48210e(0x46f,0x44a),'KUsEN':function(_0x349819,_0x137361,_0x451a4c){return _0x349819(_0x137361,_0x451a4c);},'ZdGGq':_0x48210e(0x35b,0x36b)+_0x48210e(0x559,0x4b5)+_0x4373fa(-0x315,-0x2d7)+'\x20body'};function _0x4373fa(_0x2e441c,_0x45605f){return _0x266ed8(_0x45605f,_0x2e441c- -0x17);}if(!_0x5b4e45['ok']){if(_0x5a7edf[_0x48210e(0x39e,0x3d1)](_0x5a7edf[_0x4373fa(-0x296,-0x2e1)],_0x5a7edf['eHclo']))_0x1379d2[_0x48210e(0x2be,0x33e)](_0x2eb95[_0x4373fa(-0x1ff,-0x148)+_0x48210e(0x35e,0x36c)]),_0x5a7edf['HCsUF'](_0x2785c8,_0x201ebd[_0x4373fa(-0x1ff,-0x19b)+_0x48210e(0x2b9,0x36c)]);else{const _0x53c30c=await _0x5b4e45[_0x4373fa(-0x21c,-0x2ce)]();throw new Error(_0x4373fa(-0x275,-0x1e8)+_0x4373fa(-0x216,-0x253)+_0x4373fa(-0x225,-0x2bf)+_0x5b4e45[_0x48210e(0x4f8,0x47d)+'s']+'\x20-\x20'+_0x53c30c);}}_0x5a7edf[_0x4373fa(-0x31c,-0x3db)](log,_0x48210e(0x557,0x4a5),'[Chan'+_0x4373fa(-0x2cf,-0x23d)+'Gatew'+_0x48210e(0x412,0x42d)+_0x4373fa(-0x233,-0x2ea)+_0x48210e(0x407,0x46e)+_0x4373fa(-0x2fc,-0x2cf)+_0x4373fa(-0x2a0,-0x31c)+'tus='+_0x5b4e45[_0x48210e(0x463,0x47d)+'s']+(_0x4373fa(-0x297,-0x358)+_0x4373fa(-0x1fe,-0x160))+!!_0x5b4e45['body']+(_0x48210e(0x33b,0x349)+_0x4373fa(-0x1ea,-0x1eb)+'=')+_0x5b4e45[_0x4373fa(-0x219,-0x1a6)]?.[_0x4373fa(-0x1bb,-0x12a)+_0x4373fa(-0x306,-0x33e)+'r']?.[_0x48210e(0x4d8,0x47f)]);function _0x48210e(_0x5213fa,_0x1ba8d3){return _0x266ed8(_0x5213fa,_0x1ba8d3-0x634);}if(!_0x5b4e45[_0x48210e(0x4b6,0x432)])throw new Error(_0x5a7edf['ZdGGq']);return _0x5b4e45[_0x4373fa(-0x219,-0x1e4)][_0x4373fa(-0x2d1,-0x221)+_0x48210e(0x32f,0x3e1)]();}function _0x1579(_0x3322aa,_0x431ad5){_0x3322aa=_0x3322aa-(-0x2*0x12ad+0x1*-0x1258+0x387a);const _0x567d27=_0x358f();let _0x232ddd=_0x567d27[_0x3322aa];return _0x232ddd;}function parseSSELine(_0x5f540d){const _0x5853cc={'XRfvY':function(_0x366c18,_0x2940ff){return _0x366c18(_0x2940ff);},'TeSer':function(_0x49bbc7,_0x46e5dc,_0x15ce15){return _0x49bbc7(_0x46e5dc,_0x15ce15);},'NimHa':_0x3d82b8(0x256,0x314)+'\x20','scphp':_0xd8b459(0xb7,0x8e),'eZmOD':_0xd8b459(-0x28,-0xaf),'PlqpY':function(_0x3274e0,_0xa26599){return _0x3274e0===_0xa26599;},'AMZCu':function(_0x4eb7e4,_0x1c7724){return _0x4eb7e4>_0x1c7724;},'Olkvi':function(_0x1a37f6,_0x4258fa){return _0x1a37f6!==_0x4258fa;},'OSKIq':'POabO'};if(!_0x5f540d[_0xd8b459(0x51,-0x2d)+_0x3d82b8(0x2ef,0x2df)](_0x5853cc['NimHa'])){if(_0x5853cc['scphp']===_0x5853cc[_0x3d82b8(0x3ac,0x3ae)]){const _0x2afc1c={};return _0x2afc1c[_0x3d82b8(0x3e7,0x371)]=_0x77c7c7,_0x2afc1c['token']='',_0x2afc1c;}else return null;}function _0xd8b459(_0x4b60d7,_0x1f96d1){return _0x266ed8(_0x1f96d1,_0x4b60d7-0x23e);}const _0xff0309=_0x5f540d[_0xd8b459(0x2e,0x6e)](-0x1*0x1cd6+0x1049+0xc93);if(_0xff0309===_0x3d82b8(0x261,0x2cf)+']'){log(_0xd8b459(0xaf,0x4b),'[Chan'+_0xd8b459(-0x7a,0x3d)+'Got\x20['+'DONE]'+_0xd8b459(-0xa0,-0x7e)+'er');const _0x162a81={};return _0x162a81[_0xd8b459(0xab,0x6b)]=!![],_0x162a81;}function _0x3d82b8(_0x34c991,_0x49a212){return _0x266ed8(_0x34c991,_0x49a212-0x592);}try{if(_0x5853cc[_0xd8b459(0x6a,0xc2)]('ZChIM','FMOLE'))return _0x34ad70[_0x3d82b8(0x3a3,0x2f1)]([_0x4fc5bf['read'](),new _0x423d60((_0x407bef,_0x32487f)=>_0x51a2d9(()=>_0x32487f(new _0xc37bfa(_0x3d82b8(0x29d,0x310)+_0xd8b459(0x62,0x70)+_0x3d82b8(0x293,0x2ee)+_0xd8b459(-0x87,-0x7b)+_0x3d82b8(0x279,0x2b2)+_0xd8b459(-0x23,-0x53)+_0xd8b459(0x32,-0x64)+_0x3d82b8(0x394,0x311)+'talle'+'d')),_0x4fe5b2))]);else{const _0x4fcb87=JSON['parse'](_0xff0309),_0x50a4e4=_0x4fcb87[_0xd8b459(-0xba,-0xac)+'es']?.[-0x19*-0xb+-0x3c*0x15+0x3d9]?.[_0xd8b459(-0x94,-0xb8)],_0x592e10=_0x50a4e4?.['tool_'+_0x3d82b8(0x384,0x3e6)];let _0x5c1864=null;_0x592e10&&_0x5853cc[_0x3d82b8(0x2d5,0x397)](_0x592e10[_0xd8b459(0xa8,0x155)+'h'],-0x539*0x2+0xf*-0xb9+0x1549)&&(_0x5c1864=_0x592e10[0x281*0x6+-0x593+-0x973]?.['funct'+_0xd8b459(-0x7b,-0xce)]?.[_0xd8b459(0x89,0x65)]||null);const _0x2926dc={};return _0x2926dc[_0xd8b459(-0xc5,-0x124)+'nt']=_0x50a4e4?.[_0xd8b459(-0xc5,-0x51)+'nt']||'',_0x2926dc[_0x3d82b8(0x34a,0x3f6)]=_0x4fcb87[_0xd8b459(0xa2,0x45)]||null,_0x2926dc[_0x3d82b8(0x446,0x3aa)+_0x3d82b8(0x383,0x2ca)]=_0x5c1864,_0x2926dc;}}catch{if(_0x5853cc['Olkvi'](_0xd8b459(0x2a,0xc7),_0x5853cc[_0x3d82b8(0x2e9,0x2bc)]))_0x10e9db=_0x3897bd['repla'+'ce'](/!\[([^\]]*)\]\(([^)]+)\)/g,(_0x368b99,_0x543be9,_0x3cb8db)=>{function _0x2d70f7(_0x3cdd28,_0x326946){return _0xd8b459(_0x3cdd28- -0x23a,_0x326946);}const _0x9e3b57=_0x3cb8db['trim']();function _0x521281(_0x312527,_0x21dfec){return _0xd8b459(_0x21dfec-0x29c,_0x312527);}if(/^(https?:|\/api\/)/i[_0x521281(0x2be,0x2f5)](_0x9e3b57))return _0x368b99;const _0x378086=_0x5853cc['XRfvY'](_0x5a68ee,_0x9e3b57);if(_0x378086)return _0x5853cc[_0x2d70f7(-0x2ef,-0x23e)](_0x408a47,_0x2d70f7(-0x18b,-0x12f),_0x521281(0x217,0x2d6)+_0x521281(0x20a,0x222)+_0x521281(0x1fa,0x230)+_0x521281(0x2cd,0x23c)+_0x2d70f7(-0x17a,-0x129)+_0x521281(0x2ad,0x292)+_0x2d70f7(-0x1ad,-0x135)+_0x9e3b57+_0x2d70f7(-0x24a,-0x2bd)+_0x378086),'!['+_0x543be9+']('+_0x378086+')';return _0x368b99;});else return null;}}function _0x30cc3c(_0x3185d1,_0x49ef76){return _0x1579(_0x49ef76- -0x21e,_0x3185d1);}async function processGatewayStream({reader:_0x4666b3,signal:_0x39f701,callbacks:_0x5e19cc}){const _0x5bb407={'nLrJS':function(_0x1fb9f0,_0x5ef99d,_0x347e53){return _0x1fb9f0(_0x5ef99d,_0x347e53);},'NZjne':function(_0x3703f1,_0x622ff8){return _0x3703f1/_0x622ff8;},'enamg':function(_0x3a77b0,_0x465029){return _0x3a77b0+_0x465029;},'qMidh':function(_0x41c3da){return _0x41c3da?.();},'nlUTN':function(_0x4b8db8,_0x54e7a7){return _0x4b8db8===_0x54e7a7;},'mxOWo':_0x19b8a3(0x2d5,0x2ab),'ktPeF':_0x19b8a3(0x2fd,0x3a2),'jxvkH':_0x11c9ff(-0xe4,-0x10e),'WTtSQ':_0x19b8a3(0x3c6,0x48d)+_0x11c9ff(-0x20d,-0x279)+_0x11c9ff(-0x15b,-0x1a6)+_0x19b8a3(0x2f1,0x360)+_0x11c9ff(-0x117,-0xf8)+_0x19b8a3(0x400,0x4af)+_0x19b8a3(0x373,0x2c9)+_0x19b8a3(0x2de,0x39a)+_0x11c9ff(-0x182,-0x1f4)+'ad','XsbwU':'MhUlz','CYXoX':function(_0x26ed68,_0x231514,_0x4c1a1f){return _0x26ed68(_0x231514,_0x4c1a1f);},'EoMnv':function(_0x5918bb,_0x3af7e5){return _0x5918bb<=_0x3af7e5;},'UMDnc':function(_0x221d46,_0x429bdc,_0x1c7b8f){return _0x221d46(_0x429bdc,_0x1c7b8f);},'blzmg':function(_0xdbd2b3,_0x512c1e){return _0xdbd2b3!==_0x512c1e;},'DgORg':_0x19b8a3(0x324,0x328),'OhGvV':_0x19b8a3(0x35a,0x3d2),'eVeNH':function(_0x4c745e,_0xbeb7e2,_0x5630e5){return _0x4c745e(_0xbeb7e2,_0x5630e5);},'WSIdT':_0x11c9ff(-0x1f2,-0x199),'mTgnQ':_0x19b8a3(0x43a,0x444),'hyqrP':function(_0x14838b,_0x2a64ec){return _0x14838b?.(_0x2a64ec);},'vZxJV':function(_0x5d6fa9,_0x5be37b){return _0x5d6fa9===_0x5be37b;},'Deagn':'KGGEv','NpVvT':_0x11c9ff(-0x105,-0x15c)},{onChunk:_0x3ffee1,onTool:_0x50da06,onThinking:_0x213c97}=_0x5e19cc,_0x35b76e=new TextDecoder();let _0x1c5f72='',_0x2c35a9='',_0x400977=null;const _0x3d99d6=[];let _0x4c91c6=0x4*0x416+0x2605+0x121f*-0x3;_0x5bb407[_0x11c9ff(-0x17c,-0x1ba)](_0x213c97);function _0x11c9ff(_0x3ad2fe,_0x54b238){return _0x266ed8(_0x54b238,_0x3ad2fe-0xab);}try{while(!![]){if(_0x5bb407['nlUTN'](_0x11c9ff(-0x24a,-0x204),_0x5bb407['mxOWo'])){if(_0x39f701?.[_0x19b8a3(0x435,0x379)+'ed']){if(_0x5bb407[_0x19b8a3(0x342,0x284)]!==_0x5bb407[_0x11c9ff(-0x1dd,-0x1dc)])_0x5bb407[_0x19b8a3(0x3af,0x332)](_0x5919eb,'debug','[Chan'+_0x19b8a3(0x312,0x38e)+_0x11c9ff(-0x20c,-0x19f)+'\x20'+_0x157824+':\x20'+_0x4dc29a['subst'+_0x11c9ff(-0x221,-0x2c1)](0xde0+-0x554+-0x88c,0x50b*-0x1+0x487+0x1*0x14c));else{_0x5bb407['nLrJS'](log,_0x5bb407[_0x19b8a3(0x414,0x414)],_0x5bb407[_0x11c9ff(-0xd7,-0xf2)]);break;}}_0x5bb407[_0x11c9ff(-0x170,-0x20e)](log,_0x5bb407[_0x19b8a3(0x414,0x4ae)],_0x11c9ff(-0x159,-0x140)+_0x19b8a3(0x312,0x375)+_0x11c9ff(-0xec,-0x49)+'\x20to\x20r'+_0x19b8a3(0x3f2,0x421)+_0x11c9ff(-0x19f,-0x13c)+_0x5bb407[_0x11c9ff(-0x24e,-0x216)](_0x4c91c6,0x1961*0x1+-0xb55+-0xe0b)+_0x11c9ff(-0x120,-0x114));const {done:_0x275ae9,value:_0x5daaee}=await createReadWithTimeout(_0x4666b3);_0x5bb407[_0x19b8a3(0x3af,0x3ae)](log,_0x5bb407[_0x11c9ff(-0x10b,-0xf4)],_0x19b8a3(0x3c6,0x34d)+_0x11c9ff(-0x20d,-0x2c0)+_0x19b8a3(0x422,0x3ef)+'retur'+_0x11c9ff(-0x16b,-0x171)+_0x11c9ff(-0xe0,-0xd4)+_0x275ae9+(',\x20val'+_0x11c9ff(-0x236,-0x2d7)+'=')+(_0x5daaee?.['lengt'+'h']||0x97a+-0x7*0xfb+0x3*-0xdf));if(_0x275ae9){if(_0x5bb407[_0x19b8a3(0x3ad,0x311)](_0x5bb407['XsbwU'],'MhUlz')){_0x5bb407[_0x11c9ff(-0x228,-0x2e7)](log,_0x5bb407['jxvkH'],_0x11c9ff(-0x159,-0x11e)+_0x19b8a3(0x312,0x2a7)+_0x11c9ff(-0x1d7,-0x1c6)+'m\x20com'+_0x11c9ff(-0x259,-0x2bd)+_0x11c9ff(-0xe1,-0x1a8)+'r\x20'+_0x4c91c6+(_0x19b8a3(0x35d,0x3bb)+_0x11c9ff(-0x212,-0x1de)+_0x19b8a3(0x35e,0x33b)+_0x11c9ff(-0xfb,-0x12c))+_0x2c35a9[_0x19b8a3(0x434,0x44b)+'h']+(_0x11c9ff(-0x25b,-0x194)+'s'));break;}else _0x439cde[_0x11c9ff(-0x16e,-0x1a2)+_0x11c9ff(-0x123,-0x192)+'k']();}_0x4c91c6++;const _0x196840={};_0x196840['strea'+'m']=!![];const _0x1389af=_0x35b76e[_0x19b8a3(0x33d,0x36f)+'e'](_0x5daaee,_0x196840);_0x1c5f72+=_0x1389af;_0x5bb407[_0x19b8a3(0x371,0x3d6)](_0x4c91c6,-0x930*-0x3+0x1bb4+-0xb0d*0x5)&&_0x5bb407[_0x19b8a3(0x3a7,0x3f4)](log,_0x5bb407['jxvkH'],_0x11c9ff(-0x159,-0x1b2)+'nel]\x20'+_0x11c9ff(-0x20c,-0x1e6)+'\x20'+_0x4c91c6+':\x20'+_0x1389af[_0x19b8a3(0x32a,0x330)+_0x19b8a3(0x2fe,0x2b1)](-0x1*0x12a+-0x1*0x14db+0x1605,0x13*0x16e+0x19b2+-0x3414));const _0x39e2fc=_0x1c5f72[_0x19b8a3(0x3f4,0x458)]('\x0a');_0x1c5f72=_0x39e2fc[_0x19b8a3(0x34d,0x2ba)]()||'';for(const _0x50fa09 of _0x39e2fc){const _0x296300=parseSSELine(_0x50fa09);if(!_0x296300||_0x296300[_0x19b8a3(0x437,0x473)])continue;_0x296300[_0x19b8a3(0x42e,0x3e3)]&&(_0x400977=_0x296300[_0x11c9ff(-0xf1,-0xfc)]);_0x296300[_0x19b8a3(0x3e2,0x456)+_0x19b8a3(0x302,0x357)]&&(_0x5bb407[_0x19b8a3(0x31a,0x289)](_0x5bb407[_0x19b8a3(0x334,0x359)],_0x5bb407[_0x11c9ff(-0x193,-0x196)])?_0x5bb407['eVeNH'](log,_0x5bb407['jxvkH'],_0x19b8a3(0x3c6,0x316)+_0x11c9ff(-0x20d,-0x199)+'Tool\x20'+_0x19b8a3(0x40d,0x3b2)+_0x11c9ff(-0x132,-0x12d)+'rom\x20s'+_0x11c9ff(-0xfe,-0x5b)+':\x20'+_0x296300[_0x19b8a3(0x3e2,0x482)+_0x19b8a3(0x302,0x2f1)]):(_0x5074ba[_0x11c9ff(-0x24b,-0x296)](_0x39f66a[-0x5cd+-0x1*-0x565+0x69]),_0x1aeab7?.(_0x49109b[-0x18fe+0x1eb*-0x9+0x2a42])));if(_0x296300[_0x19b8a3(0x3e2,0x344)+_0x19b8a3(0x302,0x29a)]&&!_0x3d99d6[_0x19b8a3(0x2ff,0x24c)+_0x19b8a3(0x3ea,0x3c2)](_0x296300['toolN'+_0x19b8a3(0x302,0x291)])){if(_0x5bb407[_0x19b8a3(0x3ad,0x44e)](_0x5bb407['WSIdT'],_0x5bb407['mTgnQ']))return;else _0x3d99d6[_0x11c9ff(-0x24b,-0x1f9)](_0x296300['toolN'+_0x19b8a3(0x302,0x347)]),_0x50da06?.(_0x296300[_0x19b8a3(0x3e2,0x367)+_0x19b8a3(0x302,0x3b7)]);}if(_0x296300['conte'+'nt']){_0x2c35a9+=_0x296300[_0x11c9ff(-0x258,-0x2a4)+'nt'],_0x5bb407[_0x19b8a3(0x3f5,0x3d0)](_0x3ffee1,_0x296300[_0x19b8a3(0x2c7,0x2c9)+'nt']);const _0x4c4df8=_0x296300[_0x11c9ff(-0x258,-0x2a8)+'nt']['match'](/<(?:antml:)?invoke name="(\w+)"/);_0x4c4df8&&!_0x3d99d6[_0x11c9ff(-0x220,-0x170)+_0x19b8a3(0x3ea,0x4a7)](_0x4c4df8[0x1367+-0x4b1*-0x7+-0x343d])&&(_0x5bb407['vZxJV'](_0x5bb407[_0x19b8a3(0x35f,0x3a4)],_0x5bb407['NpVvT'])?_0x450b82=_0x21a0d0[_0x19b8a3(0x42e,0x375)]:(_0x3d99d6[_0x19b8a3(0x2d4,0x2fd)](_0x4c4df8[-0x3f8+0x1edd+-0x4*0x6b9]),_0x50da06?.(_0x4c4df8[-0x1095+0x1ee8+0xd*-0x11a])));}}}else{const _0x5e504f=_0x5abc0e['ceil'](jnsZSl[_0x11c9ff(-0x203,-0x2aa)](_0x2a55e9['lengt'+'h'],0x195b*-0x1+0xe50+0x1*0xb0f)),_0x2fd441=_0x2a8663['ceil'](jnsZSl['NZjne'](_0x3bfbab[_0x19b8a3(0x434,0x4a6)+'h'],-0x1aa2+-0x283*0x3+0x222f));return{'prompt_tokens':_0x5e504f,'completion_tokens':_0x2fd441,'total_tokens':jnsZSl[_0x11c9ff(-0x24e,-0x28d)](_0x5e504f,_0x2fd441),'estimated':!![]};}}}finally{_0x4666b3[_0x19b8a3(0x3b1,0x34f)+'seLoc'+'k']();}const _0x30484c={};function _0x19b8a3(_0x2343db,_0x3a4c61){return _0x266ed8(_0x3a4c61,_0x2343db-0x5ca);}return _0x30484c['fullR'+_0x11c9ff(-0x1c1,-0x256)+'se']=_0x2c35a9,_0x30484c[_0x19b8a3(0x2f6,0x3a3)+_0x11c9ff(-0xd0,-0xa2)]=_0x400977,_0x30484c['detec'+_0x11c9ff(-0x1c3,-0x1ae)+_0x19b8a3(0x3d7,0x472)]=_0x3d99d6,_0x30484c;}export async function sendMessage({message:_0x3302b8,satelliteId:satelliteId='main',satelliteName:_0x2d274b,agentId:_0x4d0714,mode:mode=_0x30cc3c(-0x55,-0x54),requestId:_0x35f44b,signal:_0x5d4153,onChunk:_0x381b90,onTool:_0x5b4dbd,onThinking:_0x4206a2}){const _0x28ace7={'EQqni':function(_0x14a1fa,_0x4ec58e){return _0x14a1fa?.(_0x4ec58e);},'OtHkn':function(_0x1cdcad,_0x29aaad,_0x4766c1){return _0x1cdcad(_0x29aaad,_0x4766c1);},'BnkCq':_0x377931(-0x75,-0xd8),'FWCFy':function(_0x2ea493,_0x32193e){return _0x2ea493!==_0x32193e;},'YAmVN':'zaXrl','FlaTJ':_0x377931(-0x6a,-0xc7),'KnKsq':function(_0x8e3082,_0x1e50b4){return _0x8e3082(_0x1e50b4);},'KQJIT':_0x377931(-0x93,-0xd9),'dJDQN':'Respo'+_0x377931(-0x65,-0x6c)+_0x377931(-0x1e4,-0x141)+_0x377931(-0xe4,-0x130),'kTOOH':function(_0x534f00){return _0x534f00();},'kcYlu':'SkygA','bHAqn':_0x41ed90(0x38d,0x3d8),'VLHdt':function(_0x57b9ea,_0x26f155){return _0x57b9ea!==_0x26f155;},'sxlCw':function(_0x36cac8,_0x5d1001){return _0x36cac8>_0x5d1001;},'MyzFD':function(_0x5f229a,_0x46df89){return _0x5f229a===_0x46df89;},'ojVjV':_0x41ed90(0x4a6,0x460)+_0x377931(-0x19f,-0x21b),'Wtcez':function(_0x5d20a4,_0x40406f){return _0x5d20a4!==_0x40406f;},'reNFi':_0x41ed90(0x3d2,0x411),'jhlYu':_0x377931(-0xaa,-0x81),'AYCSk':function(_0xa827a3,_0x4e771c){return _0xa827a3>_0x4e771c;}},_0x563643={};_0x563643[_0x377931(-0x176,-0x15d)+'nk']=_0x381b90,_0x563643[_0x377931(-0x1c2,-0xfa)+'l']=_0x5b4dbd,_0x563643['onThi'+_0x377931(-0xad,-0xd9)]=_0x4206a2;function _0x41ed90(_0x3ce58f,_0x80203c){return _0x266ed8(_0x3ce58f,_0x80203c-0x69c);}const _0x2c296b=_0x563643;let _0x4638bb;if(_0x28ace7['kTOOH'](isChannelEnabled)){const _0x4a8d74={};_0x4a8d74['messa'+'ge']=_0x3302b8,_0x4a8d74[_0x41ed90(0x3bd,0x422)+_0x41ed90(0x4de,0x433)+'d']=satelliteId,_0x4a8d74[_0x377931(-0x17b,-0xfa)]=mode,_0x4a8d74[_0x377931(-0x14a,-0x1fa)+_0x377931(-0x88,-0x11f)]=_0x35f44b;const _0x22021e=_0x28ace7['KnKsq'](sendViaChannel,_0x4a8d74),_0x4d079a={};_0x4d079a[_0x41ed90(0x3ea,0x3f9)+_0x377931(-0x168,-0x137)+'m']=_0x22021e,_0x4d079a[_0x377931(-0x142,-0x1d3)+'l']=_0x5d4153,_0x4d079a[_0x377931(-0x155,-0xbd)+_0x41ed90(0x4e5,0x51f)]=_0x2c296b,_0x4638bb=await processChannelStream(_0x4d079a);}else{if(_0x28ace7[_0x377931(-0xc9,-0x75)](_0x28ace7[_0x41ed90(0x51c,0x4f7)],_0x28ace7['bHAqn'])){const _0x1c8cc1={};_0x1c8cc1['messa'+'ge']=_0x3302b8,_0x1c8cc1[_0x377931(-0x160,-0x16c)+_0x41ed90(0x40a,0x433)+'d']=satelliteId,_0x1c8cc1[_0x377931(-0x160,-0x201)+'liteN'+'ame']=_0x2d274b,_0x1c8cc1[_0x377931(-0x1ed,-0x1e6)+'Id']=_0x4d0714,_0x1c8cc1[_0x41ed90(0x34a,0x407)]=mode,_0x1c8cc1[_0x41ed90(0x410,0x440)+'l']=_0x5d4153;const {url:_0x4b5537,options:_0x150118}=await _0x28ace7[_0x377931(-0x86,-0x48)](buildGatewayRequest,_0x1c8cc1),_0x5cd75c=await _0x28ace7[_0x377931(-0x15b,-0x14e)](fetch,_0x4b5537,_0x150118),_0x16872f=await _0x28ace7[_0x41ed90(0x51d,0x4fc)](validateGatewayResponse,_0x5cd75c),_0x24e427={};_0x24e427[_0x41ed90(0x522,0x4ea)+'r']=_0x16872f,_0x24e427['signa'+'l']=_0x5d4153,_0x24e427[_0x41ed90(0x477,0x42d)+_0x377931(-0x63,-0x14)]=_0x2c296b,_0x4638bb=await processGatewayStream(_0x24e427);}else _0x53a2b6=_0x509a75[0x1917+-0xd7*-0x1b+0xbf1*-0x4]?.[_0x377931(-0x122,-0xe3)+_0x41ed90(0x44a,0x3e3)]?.[_0x377931(-0x9b,-0xd1)]||null;}const {fullResponse:_0x2329ee,tokenUsage:_0x1d5987,detectedTools:_0x5e0f9b}=_0x4638bb,_0x368d6c=/MEDIA:(.+?)(?:\n|$)/g;function _0x377931(_0x59fc3f,_0x282369){return _0x266ed8(_0x282369,_0x59fc3f-0x11a);}const _0x2c107a=[];let _0x2ab6b1;while(_0x28ace7[_0x377931(-0x11b,-0x1ac)](_0x2ab6b1=_0x368d6c[_0x41ed90(0x403,0x417)](_0x2329ee),null)){_0x2c107a[_0x377931(-0x1dc,-0x1f9)](_0x2ab6b1[0x2571+0x127*0x17+-0x3ff1][_0x41ed90(0x44a,0x3bd)]());}let _0x3e37fc=_0x28ace7[_0x41ed90(0x46c,0x4d4)](_0x2c107a['lengt'+'h'],0x235b+-0x2701+0x3a6)?_0x2329ee['repla'+'ce'](/MEDIA:.+?(?:\n|$)/g,'')[_0x41ed90(0x3f8,0x3bd)]():_0x2329ee;const _0x41cdf8=global[_0x41ed90(0x42b,0x4bd)+'terAg'+_0x377931(-0x14b,-0xdb)+_0x41ed90(0x432,0x4c2)]||globalThis[_0x377931(-0xc5,-0xd4)+'terAg'+'entMe'+'dia'];if(_0x41cdf8&&_0x28ace7[_0x377931(-0x1be,-0x232)](typeof _0x41cdf8,_0x28ace7[_0x377931(-0x114,-0x51)])){if(_0x28ace7['Wtcez'](_0x28ace7[_0x41ed90(0x49b,0x50a)],_0x28ace7[_0x41ed90(0x3e7,0x403)]))_0x3e37fc=_0x3e37fc[_0x41ed90(0x3b7,0x468)+'ce'](/!\[([^\]]*)\]\(([^)]+)\)/g,(_0x4b7f19,_0x405c48,_0x597790)=>{const _0x124071={'vDsvj':function(_0x3bd1f5,_0xfc306c,_0x45bc45){return _0x28ace7['OtHkn'](_0x3bd1f5,_0xfc306c,_0x45bc45);},'IFKSd':_0x28ace7[_0x408da8(0x399,0x455)]};function _0x316c30(_0x2210ce,_0x591370){return _0x41ed90(_0x2210ce,_0x591370- -0x16b);}function _0x408da8(_0x94ab5,_0x488073){return _0x41ed90(_0x94ab5,_0x488073- -0xc1);}if(_0x28ace7[_0x316c30(0x3b9,0x34e)](_0x28ace7[_0x408da8(0x387,0x336)],'HubtT')){const _0x5b67a1=_0x597790[_0x408da8(0x24f,0x2fc)]();if(/^(https?:|\/api\/)/i[_0x408da8(0x3c7,0x3f6)](_0x5b67a1)){if(_0x28ace7[_0x316c30(0x31c,0x34e)](_0x28ace7[_0x316c30(0x45d,0x3a9)],'lTTJQ'))xAoIZp[_0x316c30(0x31f,0x2a3)](_0x191464,xAoIZp['IFKSd'],_0x408da8(0x46f,0x3d7)+_0x408da8(0x2cb,0x323)+'Tool\x20'+_0x408da8(0x436,0x41e)+_0x316c30(0x349,0x354)+'rom\x20s'+'tream'+':\x20'+_0x440224[_0x408da8(0x35c,0x3f3)+_0x316c30(0x280,0x269)]);else return _0x4b7f19;}const _0x20c5c3=_0x28ace7[_0x316c30(0x308,0x3b1)](_0x41cdf8,_0x5b67a1);if(_0x20c5c3){if(_0x28ace7['FWCFy'](_0x28ace7['KQJIT'],'lHHXw'))_0x25e9b9+=_0x44c161[_0x316c30(0x288,0x22e)+'nt'],kipNng[_0x316c30(0x44c,0x391)](_0x1b0057,_0x368185['conte'+'nt']);else return _0x28ace7[_0x408da8(0x34a,0x366)](log,_0x28ace7[_0x408da8(0x40c,0x455)],_0x316c30(0x374,0x32d)+'nel]\x20'+_0x408da8(0x276,0x331)+_0x408da8(0x306,0x33d)+_0x408da8(0x4c8,0x45d)+_0x316c30(0x308,0x2e9)+_0x316c30(0x37b,0x380)+_0x5b67a1+_0x316c30(0x294,0x2e3)+_0x20c5c3),'!['+_0x405c48+']('+_0x20c5c3+')';}return _0x4b7f19;}else return null;});else throw new _0x208fff(kipNng[_0x377931(-0x1dd,-0x233)]);}const _0xf6ca5c=_0x1d5987||_0x28ace7[_0x41ed90(0x4e4,0x427)](estimateTokenUsage,_0x3302b8,_0x3e37fc);return{'response':_0x3e37fc,'usage':_0xf6ca5c,'tools':_0x28ace7[_0x41ed90(0x48c,0x4d4)](_0x5e0f9b[_0x41ed90(0x527,0x506)+'h'],0x1354+-0x1a7+0x19*-0xb5)?_0x5e0f9b:undefined,'media':_0x28ace7[_0x377931(-0x17a,-0x18a)](_0x2c107a[_0x41ed90(0x574,0x506)+'h'],0x18f8+-0x2007+-0x70f*-0x1)?_0x2c107a:undefined};}
1
+ (function(_0x6f5e90,_0x477684){function _0x4ec070(_0x3d8ab7,_0x27a961){return _0x2b7a(_0x3d8ab7- -0x20e,_0x27a961);}function _0x40c8b1(_0x4bb421,_0x3dad81){return _0x2b7a(_0x3dad81-0x148,_0x4bb421);}const _0x192f5f=_0x6f5e90();while(!![]){try{const _0x2768e0=parseInt(_0x40c8b1(0x382,0x382))/(-0x9af*0x4+0x2a1+0x4*0x907)+-parseInt(_0x40c8b1(0x305,0x349))/(-0x23e6+0x23f6+0x1*-0xe)*(parseInt(_0x40c8b1(0x361,0x3ae))/(-0x22e3+-0x1*0x16d3+0x39b9))+-parseInt(_0x4ec070(0xe8,0xca))/(0x5ca+-0x14e4*-0x1+-0x1aaa)*(-parseInt(_0x40c8b1(0x3b3,0x392))/(0x2*-0x9e8+0x1dc5+-0x2*0x4f8))+parseInt(_0x40c8b1(0x3db,0x498))/(-0xd38*-0x2+-0x25bd+0xb53*0x1)*(-parseInt(_0x4ec070(0x121,0xe8))/(0x26a1+-0x1f*0xd9+0xc53*-0x1))+parseInt(_0x40c8b1(0x4f6,0x459))/(0x4*-0x829+-0x1*-0xb6c+0x1540)+-parseInt(_0x40c8b1(0x388,0x44c))/(0x77c+-0x1305+0xb92)*(-parseInt(_0x4ec070(0xd,0x71))/(-0x43b+-0x7*-0x281+-0xd42))+parseInt(_0x4ec070(0x18,0x8e))/(0x703+0x1bd*-0x9+0x8ad);if(_0x2768e0===_0x477684)break;else _0x192f5f['push'](_0x192f5f['shift']());}catch(_0xa691d6){_0x192f5f['push'](_0x192f5f['shift']());}}}(_0xa59a,-0x11e3c5+-0x7057a+0x27e410));const _0x440709=(function(){function _0x1f5825(_0x512234,_0x56cd9a){return _0x2b7a(_0x512234- -0x26,_0x56cd9a);}function _0x26fcc7(_0x58f4a4,_0x377fe3){return _0x2b7a(_0x377fe3- -0x19f,_0x58f4a4);}const _0x3e5254={'OjBkU':function(_0x22f8dd,_0x515830){return _0x22f8dd===_0x515830;},'tDZjM':_0x26fcc7(0x239,0x187),'jMyjS':function(_0x705b20,_0x3d1e5f){return _0x705b20===_0x3d1e5f;},'OKDrR':'NcKeR','xSFwA':function(_0x40a8d6,_0x301fc6){return _0x40a8d6(_0x301fc6);},'udRVe':function(_0x4ae5ac,_0x4d5f1b,_0x3d4222){return _0x4ae5ac(_0x4d5f1b,_0x3d4222);},'szTdm':'debug','GAlfN':_0x26fcc7(0xa3,0xb7)};let _0xab7669=!![];return function(_0x59fe4e,_0x35d5cf){const _0xb9b39a={'JAkVQ':function(_0x31e1c3,_0x54f508,_0x2fbe79){function _0x37cafd(_0xdd9cee,_0x5ecf5b){return _0x2b7a(_0x5ecf5b- -0x30c,_0xdd9cee);}return _0x3e5254[_0x37cafd(0x80,-0x2e)](_0x31e1c3,_0x54f508,_0x2fbe79);},'bUMYe':_0x3e5254['szTdm']};function _0x5e2dcf(_0x2cb487,_0x1aa0ac){return _0x1f5825(_0x1aa0ac-0x62,_0x2cb487);}function _0x1bc3be(_0x41b6e5,_0x527d3c){return _0x1f5825(_0x527d3c-0x1b,_0x41b6e5);}if(_0x3e5254[_0x5e2dcf(0x23a,0x28c)]===_0x3e5254[_0x1bc3be(0x1b8,0x245)]){const _0x13e534=_0xab7669?function(){function _0x550817(_0x4b58f5,_0x200abf){return _0x5e2dcf(_0x200abf,_0x4b58f5-0x8f);}function _0xbecd70(_0x32303d,_0x40cd01){return _0x5e2dcf(_0x32303d,_0x40cd01-0x28b);}if(_0x3e5254['OjBkU'](_0x3e5254[_0x550817(0x3e9,0x342)],_0x550817(0x3f3,0x4b2)))_0xb9b39a[_0x550817(0x354,0x3b3)](_0x5205e3,_0xb9b39a['bUMYe'],'[Chan'+_0x550817(0x355,0x301)+'Chunk'+'\x20'+_0x81fa7f+':\x20'+_0x488ece[_0x550817(0x3bc,0x385)+_0xbecd70(0x609,0x5e9)](-0x223e+-0xb57+0x2d95,-0x9a5+0x1*-0x337+-0x24*-0x61));else{if(_0x35d5cf){if(_0x3e5254[_0xbecd70(0x58a,0x579)](_0x3e5254[_0x550817(0x376,0x329)],_0x3e5254[_0xbecd70(0x608,0x572)])){const _0x56cc20=_0x35d5cf[_0xbecd70(0x626,0x624)](_0x59fe4e,arguments);return _0x35d5cf=null,_0x56cc20;}else return null;}}}:function(){};return _0xab7669=![],_0x13e534;}else{const _0x55d8d5=_0x3f3817['trim']();if(/^(https?:|\/api\/)/i[_0x5e2dcf(0x33b,0x386)](_0x55d8d5))return _0x4ec05a;const _0x41ec82=_0x3e5254[_0x5e2dcf(0x3b1,0x342)](_0x1440c7,_0x55d8d5);if(_0x41ec82)return _0x581866('debug','[Chan'+_0x5e2dcf(0x26b,0x2c6)+_0x5e2dcf(0x378,0x3b0)+_0x5e2dcf(0x2ab,0x247)+'rkdow'+_0x1bc3be(0x206,0x256)+_0x5e2dcf(0x324,0x281)+_0x55d8d5+_0x1bc3be(0x188,0x1fa)+_0x41ec82),'!['+_0x746a79+']('+_0x41ec82+')';return _0x20f7b3;}};}()),_0x1538f5=_0x440709(this,function(){function _0x1d529d(_0xb95ce6,_0x31757c){return _0x2b7a(_0x31757c- -0x272,_0xb95ce6);}function _0x406f35(_0x1f0ee5,_0x1602f1){return _0x2b7a(_0x1f0ee5-0x73,_0x1602f1);}return _0x1538f5['toStr'+_0x406f35(0x33e,0x354)]()[_0x1d529d(0x60,-0x25)+'h'](_0x406f35(0x3b4,0x346)+_0x406f35(0x3ea,0x473)+'+$')[_0x1d529d(0x9c,-0x1a)+_0x1d529d(0x83,0x59)]()[_0x406f35(0x368,0x343)+'ructo'+'r'](_0x1538f5)['searc'+'h']('(((.+'+_0x406f35(0x3ea,0x449)+'+$');});function _0xb459e7(_0x19c15b,_0x13c445){return _0x2b7a(_0x19c15b-0x2e2,_0x13c445);}_0x1538f5();import{log,fetchWithTimeout}from'./utils.js';import{isGatewayCommand as _0x520d95}from'./gateway-commands.js';import{OPENCLAW_WEBHOOK_URL,USE_CHANNEL_WEBHOOK,GATEWAY_URL as _0x182f7a,SESSION_USER,CHANNEL_FETCH_TIMEOUT_MS,STREAM_READ_TIMEOUT_MS}from'./config.js';import{loadConfig}from'./runtime-config.js';async function getGatewayConfig(){const _0x18655b={};_0x18655b['ObbmI']=_0x18a4e6(0x45f,0x4db)+_0x18a4e6(0x47f,0x534)+'-sess'+_0x18a4e6(0x49b,0x434)+_0x18a4e6(0x4ea,0x448),_0x18655b[_0x44de4e(0x143,0xbe)]=function(_0x36a199,_0x586a5f){return _0x36a199===_0x586a5f;},_0x18655b[_0x44de4e(0xc1,0x14a)]='xwPgl';function _0x44de4e(_0x513552,_0x4ecde5){return _0x2b7a(_0x513552- -0x1f0,_0x4ecde5);}function _0x18a4e6(_0xa48986,_0x32be08){return _0x2b7a(_0xa48986-0x1cb,_0x32be08);}const _0x58e886=_0x18655b;try{if(_0x58e886['RjDqA'](_0x58e886[_0x18a4e6(0x47c,0x524)],_0x44de4e(0x4f,-0x51))){const _0x6a2f05=await loadConfig(),_0x1a141c={};return _0x1a141c['url']=_0x6a2f05[_0x18a4e6(0x504,0x440)+_0x44de4e(0xb4,0x69)]||_0x182f7a,_0x1a141c['token']=_0x6a2f05[_0x44de4e(0x149,0x11f)+'ayTok'+'en']||'',_0x1a141c;}else _0x395177[_0x58e886[_0x18a4e6(0x44a,0x504)]]=_0x314545;}catch{const _0x3dfd6b={};return _0x3dfd6b['url']=_0x182f7a,_0x3dfd6b[_0x44de4e(0xd3,0x5b)]='',_0x3dfd6b;}}function _0xd24aeb(_0xf435e9,_0x12eae5){return _0x2b7a(_0xf435e9- -0x324,_0x12eae5);}export function isChannelEnabled(){const _0x365dcd={};_0x365dcd[_0x4b431f(0x1d7,0x17e)]=function(_0x5306b6,_0x143ba8){return _0x5306b6&&_0x143ba8;};const _0x5944d4=_0x365dcd;function _0x4b431f(_0x3ab17f,_0x4b5097){return _0x2b7a(_0x4b5097- -0x110,_0x3ab17f);}return _0x5944d4['CWrqW'](USE_CHANNEL_WEBHOOK,OPENCLAW_WEBHOOK_URL)&&!!process.env.OPENCLAW_CALLBACK_SECRET;}async function getCallbackSecret(){function _0x39b90c(_0x40fa54,_0x538c8d){return _0x2b7a(_0x40fa54-0x22d,_0x538c8d);}function _0x3e20c0(_0x49d41e,_0xdd1e7d){return _0x2b7a(_0x49d41e-0x1fd,_0xdd1e7d);}const _0x4f2c59={'CWleq':function(_0xd31750,_0x3da728){return _0xd31750?.(_0x3da728);},'KmZCO':function(_0x49dc55){return _0x49dc55();},'BEwtn':function(_0x204e83,_0xb486d4){return _0x204e83===_0xb486d4;},'olKuT':_0x3e20c0(0x478,0x504)};try{const _0x2c3fe7=await _0x4f2c59[_0x3e20c0(0x564,0x4bd)](loadConfig);return _0x2c3fe7['openc'+_0x3e20c0(0x4ce,0x4f2)+_0x39b90c(0x449,0x40f)+_0x3e20c0(0x47b,0x536)+'et']||'';}catch{if(_0x4f2c59['BEwtn'](_0x4f2c59[_0x39b90c(0x43d,0x37a)],_0x39b90c(0x50f,0x53f)))_0x3c96e3[_0x3e20c0(0x528,0x50a)](_0x2bec0e['tool']),_0x4f2c59[_0x39b90c(0x565,0x501)](_0x4653bf,_0x5903e4[_0x39b90c(0x59a,0x503)]);else return'';}}export async function*sendViaChannel({message:_0x456c95,satelliteId:satelliteId=_0xd24aeb(-0x84,-0x12e),mode:mode=_0xb459e7(0x4de,0x48e),requestId:_0x42a3ea,userId:userId=_0xd24aeb(-0x88,-0xed)+'lt'}){function _0x4daddc(_0x5b3740,_0x2c645f){return _0xb459e7(_0x5b3740- -0x223,_0x2c645f);}const _0x5bdc6f={'yKPsP':function(_0x2eb9d3,_0x5eb109){return _0x2eb9d3?.(_0x5eb109);},'byyKZ':function(_0x7c8f8f,_0x56673d,_0x5259a9){return _0x7c8f8f(_0x56673d,_0x5259a9);},'mskFL':_0x4daddc(0x3ae,0x345),'pUosF':function(_0x5e715f,_0x14b25f){return _0x5e715f===_0x14b25f;},'JbqKF':_0x2e04e8(0x20b,0x180),'SVcjF':function(_0x3c54d0){return _0x3c54d0();},'ChCoZ':_0x2e04e8(0x125,0x13a),'nxAwx':_0x4daddc(0x407,0x426)+_0x2e04e8(0x1d5,0x171)+_0x2e04e8(0x204,0x16f)+_0x4daddc(0x31c,0x3d7)+_0x2e04e8(0x7c,0xe8)+_0x4daddc(0x396,0x33a),'YHoUM':function(_0xe3c070,_0x7c6deb,_0x43790c){return _0xe3c070(_0x7c6deb,_0x43790c);},'ZSpJe':function(_0x54078c){return _0x54078c();},'yujmn':_0x4daddc(0x394,0x3f1),'XFrYc':'appli'+_0x4daddc(0x31a,0x2b6)+'n/jso'+'n','TxnRA':'Jfxmy','OnmJo':_0x2e04e8(0xf5,0xa9),'ovize':function(_0x207951,_0x47f9c0){return _0x207951!==_0x47f9c0;},'aikch':'GZUTK','iBFSd':function(_0x49d640){return _0x49d640();},'fBsMN':'data:'+'\x20','HvmET':function(_0x42214c,_0x1941d2){return _0x42214c===_0x1941d2;},'imJYB':_0x4daddc(0x2b6,0x2fb),'GenkK':_0x4daddc(0x3f5,0x355)};function _0x2e04e8(_0x48c134,_0x1dc3fa){return _0xb459e7(_0x1dc3fa- -0x4a8,_0x48c134);}if(!_0x5bdc6f[_0x4daddc(0x38b,0x3f6)](isChannelEnabled)){if(_0x5bdc6f['pUosF'](_0x5bdc6f['ChCoZ'],_0x5bdc6f[_0x4daddc(0x36b,0x2c8)]))throw new Error(_0x5bdc6f['nxAwx']);else{_0x215dac+=_0x9fb4b7[_0x2e04e8(0x1b4,0x150)+'nt'],_0x22cd8a?.(_0x2b1dac[_0x2e04e8(0x1d1,0x150)+'nt']);const _0x5a94da=_0x5b2275['conte'+'nt'][_0x4daddc(0x2c3,0x219)](/<(?:antml:)?invoke name="(\w+)"/);_0x5a94da&&!_0xe8c1b3[_0x4daddc(0x33b,0x304)+'des'](_0x5a94da[0x11b8+-0x451+0x6b3*-0x2])&&(_0x304a97['push'](_0x5a94da[0x19*0x16a+0x2410+-0x4769*0x1]),_0x5bdc6f[_0x4daddc(0x30b,0x2e0)](_0x543a34,_0x5a94da[-0x53*0x3d+0x67*-0x35+0x291b]));}}_0x5bdc6f[_0x2e04e8(0x147,0x1a5)](log,_0x5bdc6f[_0x4daddc(0x322,0x3d4)],_0x4daddc(0x3a7,0x43f)+_0x2e04e8(0x64,0xc4)+'Sendi'+_0x2e04e8(0x16b,0x194)+_0x4daddc(0x35d,0x324)+_0x2e04e8(0x149,0x119)+'satel'+_0x4daddc(0x2bf,0x358)+satelliteId+(_0x2e04e8(0x6d,0x64)+'e=')+mode);const _0x36dc7b=await _0x5bdc6f[_0x4daddc(0x40a,0x43d)](getCallbackSecret),_0x160d13={};_0x160d13[_0x4daddc(0x379,0x2b7)+'ge']=_0x456c95,_0x160d13[_0x4daddc(0x42f,0x421)+_0x4daddc(0x3b7,0x384)+'d']=satelliteId,_0x160d13[_0x2e04e8(0xd2,0x9f)]=mode,_0x160d13['reque'+'stId']=_0x42a3ea,_0x160d13['userI'+'d']=userId;const _0x4949f7=await fetchWithTimeout(OPENCLAW_WEBHOOK_URL,{'method':_0x5bdc6f[_0x4daddc(0x2fb,0x240)],'headers':{'Content-Type':_0x5bdc6f[_0x4daddc(0x423,0x468)],'X-Uplink-Secret':_0x36dc7b},'body':JSON[_0x4daddc(0x3a6,0x46a)+_0x2e04e8(0x84,0x80)](_0x160d13)},CHANNEL_FETCH_TIMEOUT_MS);if(!_0x4949f7['ok']){const _0x32c46b=await _0x4949f7[_0x4daddc(0x2bb,0x208)]();throw new Error(_0x4daddc(0x407,0x352)+_0x4daddc(0x3f6,0x4ae)+_0x4daddc(0x3f4,0x343)+_0x2e04e8(0x10a,0x12a)+_0x2e04e8(0x1ca,0x11a)+_0x4949f7[_0x4daddc(0x383,0x3c7)+'s']+_0x4daddc(0x356,0x3d4)+_0x32c46b);}const _0x4b4691=_0x4949f7['body'][_0x4daddc(0x364,0x38f)+_0x2e04e8(0x1b8,0x124)](),_0x45a47c=new TextDecoder();let _0x1d7d11='';const _0x3fdee0=(_0x4bdbb8=STREAM_READ_TIMEOUT_MS)=>{function _0x1b343d(_0x3ff3ca,_0x12d813){return _0x4daddc(_0x3ff3ca- -0x158,_0x12d813);}function _0x4eef37(_0x3a917e,_0x56170b){return _0x4daddc(_0x56170b- -0x385,_0x3a917e);}const _0x4a5a09={'ozCDX':function(_0x56775c,_0x344c0c,_0x1e8bb6){return _0x5bdc6f['byyKZ'](_0x56775c,_0x344c0c,_0x1e8bb6);},'jlfce':_0x5bdc6f[_0x1b343d(0x1ca,0x1e0)]};if(_0x5bdc6f['pUosF'](_0x5bdc6f[_0x1b343d(0x2d6,0x243)],_0x5bdc6f['JbqKF']))return Promise['race']([_0x4b4691[_0x4eef37(0x2d,-0x2e)](),new Promise((_0x357ea3,_0x3c00b9)=>setTimeout(()=>_0x3c00b9(new Error(_0x4eef37(-0x95,-0x54)+_0x4eef37(0x34,0x2)+'d\x20tim'+'ed\x20ou'+_0x4eef37(-0x30,0x93)+_0x4eef37(-0xa1,-0xa6)+'y\x20may'+'\x20be\x20s'+'talle'+'d')),_0x4bdbb8))]);else _0x4a5a09[_0x4eef37(0xa1,-0x7)](_0x4ba7e8,_0x4a5a09[_0x1b343d(0x244,0x22f)],_0x1b343d(0x24f,0x2e5)+_0x4eef37(0x3d,-0x3c)+_0x4eef37(0xf7,0x95)+'detec'+_0x4eef37(0x62,0x53)+_0x4eef37(0x11d,0x89)+_0x1b343d(0x2bc,0x251)+':\x20'+_0x2df97b[_0x1b343d(0x225,0x25b)+'ame']);};try{if(_0x5bdc6f['pUosF'](_0x5bdc6f[_0x4daddc(0x397,0x397)],_0x5bdc6f[_0x4daddc(0x410,0x457)]))return;else while(!![]){if(_0x5bdc6f[_0x4daddc(0x41f,0x39c)](_0x5bdc6f[_0x4daddc(0x352,0x2b2)],_0x5bdc6f[_0x4daddc(0x352,0x322)]))_0x211ea1=_0x30ab9d[0xf85+-0xc7*0x1+-0xebe]?.[_0x2e04e8(-0x3b,0x67)+_0x4daddc(0x2be,0x319)]?.[_0x2e04e8(0xa1,0xa7)]||null;else{const {done:_0x9d1140,value:_0x2f02af}=await _0x5bdc6f[_0x4daddc(0x38e,0x360)](_0x3fdee0);if(_0x9d1140)break;const _0x6e3f4={};_0x6e3f4['strea'+'m']=!![],_0x1d7d11+=_0x45a47c['decod'+'e'](_0x2f02af,_0x6e3f4);const _0x2951c5=_0x1d7d11[_0x4daddc(0x300,0x36e)]('\x0a');_0x1d7d11=_0x2951c5[_0x2e04e8(0x14c,0x179)]()||'';for(const _0x520189 of _0x2951c5){if(_0x520189[_0x4daddc(0x2f3,0x2a5)+'sWith'](_0x5bdc6f['fBsMN'])){if(_0x5bdc6f['ovize'](_0x2e04e8(0xdc,0x8b),_0x4daddc(0x3d7,0x31d))){const _0x4159b1=_0x520189[_0x2e04e8(0x1b1,0x14e)](-0x173d+0x1ffd+-0x45d*0x2);if(_0x5bdc6f[_0x2e04e8(0xc3,0x148)](_0x4159b1,_0x4daddc(0x3ac,0x414)+']')){if(_0x5bdc6f[_0x4daddc(0x3cd,0x35c)](_0x5bdc6f[_0x4daddc(0x303,0x353)],_0x5bdc6f[_0x2e04e8(-0x28,0x7e)]))return;else return _0x82e5aa;}try{const _0x1bdedb=JSON[_0x4daddc(0x435,0x4b2)](_0x4159b1);yield _0x1bdedb;}catch{}}else _0x310b52['relea'+'seLoc'+'k']();}}}}}finally{if(_0x5bdc6f[_0x4daddc(0x2d0,0x269)]!==_0x4daddc(0x3f5,0x46d))return _0x480f3d[_0x4daddc(0x2e7,0x265)]([_0x2fff13[_0x4daddc(0x357,0x3f0)](),new _0x1acf51((_0x235db8,_0x186d9f)=>_0x12abc2(()=>_0x186d9f(new _0x19f075(_0x2e04e8(0x13,0xac)+'m\x20rea'+_0x4daddc(0x3ef,0x3db)+_0x2e04e8(0x13a,0xa2)+_0x2e04e8(0x1bd,0x193)+_0x2e04e8(-0xa,0x5a)+_0x4daddc(0x3ff,0x406)+_0x4daddc(0x358,0x2df)+_0x2e04e8(0x30,0x93)+'d')),_0x13da88))]);else _0x4b4691[_0x4daddc(0x429,0x493)+_0x2e04e8(0x44,0x72)+'k']();}}function createReadWithTimeout(_0x7bdff,_0x305e12=STREAM_READ_TIMEOUT_MS){function _0x47a92a(_0x1ecce1,_0x1c5fd8){return _0xd24aeb(_0x1c5fd8-0xd2,_0x1ecce1);}function _0x2809c0(_0x179f3d,_0x31f935){return _0xd24aeb(_0x179f3d-0x2f7,_0x31f935);}return Promise['race']([_0x7bdff['read'](),new Promise((_0xe990c1,_0x1d0dc6)=>setTimeout(()=>_0x1d0dc6(new Error('Strea'+_0x2809c0(0x29b,0x35a)+_0x2809c0(0x303,0x278)+'ed\x20ou'+'t\x20-\x20g'+_0x47a92a(-0x60,-0x32)+'y\x20may'+'\x20be\x20s'+_0x2809c0(0x22c,0x279)+'d')),_0x305e12))]);}function estimateTokenUsage(_0x398503,_0x54a4d2){const _0x14aa92={};function _0x41204d(_0x10f6f7,_0x52f96b){return _0xd24aeb(_0x52f96b-0x4bb,_0x10f6f7);}_0x14aa92[_0x41204d(0x492,0x46d)]=function(_0x3c7abb,_0x3a569a){return _0x3c7abb/_0x3a569a;},_0x14aa92[_0x4aaecf(0x4db,0x582)]=function(_0x1f03ae,_0x1c43bf){return _0x1f03ae+_0x1c43bf;};const _0x217d73=_0x14aa92,_0x507b0d=Math[_0x41204d(0x4bf,0x4f5)](_0x217d73[_0x4aaecf(0x48a,0x513)](_0x398503[_0x4aaecf(0x502,0x4eb)+'h'],-0x2*-0x10ba+-0x1*0x9f9+-0x1777)),_0x5b3cf1=Math[_0x41204d(0x519,0x4f5)](_0x54a4d2[_0x41204d(0x49e,0x4e5)+'h']/(0x1f54+-0x6ec*0x1+-0x1c*0xdf));function _0x4aaecf(_0xdac51e,_0x4d590f){return _0xd24aeb(_0xdac51e-0x4d8,_0x4d590f);}return{'prompt_tokens':_0x507b0d,'completion_tokens':_0x5b3cf1,'total_tokens':_0x217d73['RBpOI'](_0x507b0d,_0x5b3cf1),'estimated':!![]};}async function processChannelStream({eventStream:_0x39d4fd,signal:_0x27b7ed,callbacks:_0x22dcab}){const _0x375f17={'Kmvuz':_0x37584b(0x3ad,0x462)+'nse\x20h'+_0x22a9f3(0x4b7,0x4ac)+_0x37584b(0x2fc,0x2da),'uJaGH':function(_0x5da8b5,_0x2b86e7){return _0x5da8b5!==_0x2b86e7;},'iIehi':_0x22a9f3(0x51f,0x5cb),'ZtNZH':function(_0x1aebe3,_0x2f0905){return _0x1aebe3===_0x2f0905;},'ZSsWE':_0x22a9f3(0x57f,0x617),'XMvCf':'debug','LJErI':_0x22a9f3(0x5ab,0x66e)+_0x22a9f3(0x54d,0x48b)+_0x22a9f3(0x566,0x611)+'st\x20ab'+_0x37584b(0x27b,0x1c5)+_0x22a9f3(0x5bf,0x4fb)+_0x22a9f3(0x5b5,0x57b)+_0x22a9f3(0x521,0x549)+'\x20stre'+_0x37584b(0x2f7,0x2ee),'lUFJF':_0x37584b(0x2d1,0x332)+_0x37584b(0x34e,0x2f0),'VcVSP':_0x22a9f3(0x4ef,0x56e),'yBKsM':'PcEHa','MdASg':_0x22a9f3(0x589,0x55d),'GKsaZ':function(_0x418e24,_0x45a8ec){return _0x418e24?.(_0x45a8ec);},'EargG':_0x22a9f3(0x630,0x6e5),'fMsXP':'Ebnyk','HrKCQ':'compl'+_0x37584b(0x3eb,0x3fb),'cxUjz':function(_0x1abaff,_0x3f1a49){return _0x1abaff===_0x3f1a49;},'HeSLD':'lsFAG','tneGr':'error'},{onChunk:_0x5baf5e,onTool:_0x253ca7,onThinking:_0x3bb51f}=_0x22dcab;let _0x12c00e='',_0x4b3051=null;const _0x1b211a=[];function _0x37584b(_0x5e6e83,_0x32268f){return _0xd24aeb(_0x5e6e83-0x3a7,_0x32268f);}for await(const _0x5deb08 of _0x39d4fd){if(_0x375f17[_0x37584b(0x36f,0x2de)](_0x375f17[_0x37584b(0x313,0x33a)],_0x37584b(0x2df,0x365)))_0x55ca91[_0x22a9f3(0x5ee,0x5c9)](_0x33bbdf[-0x1*-0x18af+0x19ce+0xc9f*-0x4]),_0x452314?.(_0x17e5ce[0x1d3*-0x10+0x93*0x1+-0x16*-0x14d]);else{if(_0x27b7ed?.[_0x37584b(0x2a6,0x289)+'ed']){if(_0x375f17[_0x37584b(0x2a2,0x250)]('GXQsG',_0x375f17[_0x37584b(0x2aa,0x262)]))_0x42f337+=_0x3fda3c['conte'+'nt'],_0x47cf9f?.(_0x4c79ef[_0x22a9f3(0x5d9,0x582)+'nt']);else{log(_0x375f17[_0x37584b(0x2b8,0x20b)],_0x375f17[_0x22a9f3(0x635,0x6a5)]);break;}}switch(_0x5deb08['type']){case _0x375f17[_0x22a9f3(0x51a,0x4ae)]:_0x3bb51f?.();break;case _0x375f17[_0x22a9f3(0x503,0x469)]:_0x5deb08[_0x37584b(0x399,0x3a0)+'nt']&&(_0x375f17['uJaGH'](_0x375f17[_0x22a9f3(0x5b7,0x5ac)],_0x375f17[_0x22a9f3(0x4d9,0x557)])?(_0x12c00e+=_0x5deb08[_0x37584b(0x399,0x3ab)+'nt'],_0x375f17['GKsaZ'](_0x5baf5e,_0x5deb08['conte'+'nt'])):_0x832e30[_0x37584b(0x3ae,0x43b)](_0x34a223[0x249*0x3+0xf9e*-0x1+0x3*0x2ec]['trim']()));break;case _0x375f17[_0x37584b(0x2be,0x25e)]:_0x5deb08['tool']&&!_0x1b211a[_0x37584b(0x2ff,0x246)+_0x37584b(0x2cb,0x23c)](_0x5deb08[_0x37584b(0x3f0,0x47f)])&&(_0x375f17['ZtNZH']('hLptg',_0x375f17[_0x22a9f3(0x573,0x51c)])?_0x4e3333=_0x507dd6[_0x22a9f3(0x534,0x4dc)+_0x22a9f3(0x4d6,0x457)]:(_0x1b211a['push'](_0x5deb08[_0x37584b(0x3f0,0x498)]),_0x253ca7?.(_0x5deb08[_0x37584b(0x3f0,0x344)])));break;case _0x375f17[_0x22a9f3(0x548,0x5f2)]:if(_0x5deb08[_0x37584b(0x2f4,0x31d)+_0x37584b(0x296,0x243)]){if(_0x375f17['cxUjz'](_0x22a9f3(0x4dd,0x468),_0x375f17[_0x37584b(0x27d,0x323)]))_0x12c00e=_0x5deb08[_0x22a9f3(0x534,0x596)+_0x37584b(0x296,0x355)];else throw new _0x3a6420(_0x375f17['Kmvuz']);}_0x5deb08[_0x22a9f3(0x56a,0x5de)]&&(_0x4b3051=_0x5deb08[_0x37584b(0x32a,0x3d8)]);break;case _0x375f17['tneGr']:throw new Error(_0x5deb08['error']||_0x37584b(0x34c,0x3d8)+_0x22a9f3(0x52e,0x5b9)+_0x22a9f3(0x521,0x5ba)+_0x37584b(0x373,0x347)+'r');}}}const _0x296728={};function _0x22a9f3(_0x3f676b,_0x23f669){return _0xd24aeb(_0x3f676b-0x5e7,_0x23f669);}return _0x296728[_0x37584b(0x2d6,0x30c)+_0x37584b(0x2d8,0x32c)+'se']=_0x12c00e,_0x296728[_0x37584b(0x346,0x369)+_0x37584b(0x3f8,0x4b4)]=_0x4b3051,_0x296728[_0x37584b(0x37e,0x2fd)+'tedTo'+_0x22a9f3(0x63b,0x60e)]=_0x1b211a,_0x296728;}const isGatewayCommand=_0x520d95;async function buildGatewayRequest({message:_0xd26ecf,satelliteId:_0x3589aa,satelliteName:_0x491da4,agentId:_0x3657d5,mode:_0x22eb53,signal:_0x49f67c}){const _0x3896b7={'JOtHn':function(_0x50d8a2){return _0x50d8a2();},'EfVUS':function(_0x342381,_0x19893b){return _0x342381===_0x19893b;},'dRauw':_0x3af030(0x163,0x103),'MvAkb':_0x3af030(0x1dd,0x25f)+'e\x20cha'+'t\x20-\x20k'+_0x225f3d(-0x83,-0x7b)+'espon'+_0x225f3d(-0x93,-0x101)+_0x3af030(0x2ac,0x27e)+'nd\x20co'+'nvers'+_0x225f3d(0x1a,-0x87)+'al,\x201'+'-2\x20se'+_0x3af030(0x1c5,0x20e)+_0x225f3d(-0xe2,-0x18c)+_0x3af030(0x1dc,0x15a),'aZpvu':_0x225f3d(-0x1c,-0x79)+_0x3af030(0x234,0x261)+_0x225f3d(-0xa1,-0x12d)+_0x3af030(0x1b7,0x255)+_0x225f3d(-0x25d,-0x1c9),'qEThJ':function(_0x49de10,_0x3ded19){return _0x49de10||_0x3ded19;},'slusU':'main','JMYdv':'Gatew'+'ay\x20UR'+_0x3af030(0x250,0x310)+_0x225f3d(-0x198,-0x1b5)+_0x225f3d(-0xef,-0xe9)+'d.\x20Ch'+_0x225f3d(-0x2f,-0xef)+'penCl'+'aw\x20ga'+_0x3af030(0x160,0x1cf)+_0x225f3d(-0xa4,-0x14f)+'ings.','bWiSn':_0x225f3d(-0xfb,-0xd3),'OOIxH':function(_0x3545ae,_0xdab7e7,_0x4f580e){return _0x3545ae(_0xdab7e7,_0x4f580e);},'JTbFc':function(_0x2a3ceb,_0x5d3758){return _0x2a3ceb!==_0x5d3758;},'vVHep':_0x225f3d(-0x77,-0x12e)+_0x3af030(0x1ff,0x1c1)+_0x225f3d(0x1c,-0x99)+_0x225f3d(-0x93,-0xf2)+_0x3af030(0x26a,0x252),'TBPuE':_0x3af030(0x220,0x1ef),'RnDBl':_0x3af030(0x17c,0x14e)},_0x1b081b=await _0x3896b7[_0x225f3d(-0x1b8,-0x17f)](getGatewayConfig),_0x4161e9=isGatewayCommand(_0xd26ecf),_0x5517cf=_0x4161e9?'':_0x3896b7['EfVUS'](_0x22eb53,_0x3896b7[_0x3af030(0x219,0x24d)])?_0x3896b7[_0x225f3d(-0xb1,-0xba)]:_0x3896b7[_0x225f3d(-0x53,-0xc5)],_0x2851e9=_0x3896b7[_0x225f3d(-0x86,-0xab)](_0x3657d5,_0x3896b7[_0x3af030(0x15f,0x1c2)]),_0xd91629=_0x3589aa===_0x3af030(0x1eb,0x1b4)?_0x225f3d(-0x1eb,-0x1bf)+':'+_0x2851e9+':main':_0x225f3d(-0x198,-0x1bf)+':'+_0x2851e9+(_0x3af030(0x1d8,0x216)+'nk:sa'+'telli'+_0x3af030(0x2b9,0x254))+_0x3589aa;if(!_0x1b081b[_0x3af030(0x182,0x10c)])throw new Error(_0x3896b7['JMYdv']);log(_0x3896b7[_0x225f3d(-0x76,-0xb3)],_0x225f3d(-0x16f,-0xda)+_0x3af030(0x1d5,0x268)+_0x3af030(0x203,0x177)+_0x225f3d(-0x1da,-0x11a)+_0x225f3d(-0x1b4,-0x140)+'call:'+'\x20sess'+_0x225f3d(-0x194,-0x14d)+'y='+_0xd91629+(',\x20mod'+'e=')+_0x22eb53+(_0x225f3d(-0x53,-0x7e)+_0x225f3d(-0xc8,-0x90))+_0x491da4),_0x3896b7['OOIxH'](log,_0x3896b7[_0x225f3d(-0xcf,-0xb3)],_0x3af030(0x233,0x1b5)+_0x225f3d(-0x1e7,-0x138)+_0x225f3d(-0x122,-0x7f)+_0x225f3d(-0xa,-0x9e)+_0x225f3d(-0xae,-0xb7)+_0x1b081b['url']+(_0x3af030(0x24c,0x266)+_0x3af030(0x260,0x2da)+':\x20')+!!_0x1b081b[_0x225f3d(-0xdd,-0xff)]);const _0xc15c8=_0x1b081b['url']+(_0x225f3d(-0x142,-0xb8)+'hat/c'+_0x225f3d(-0x125,-0xcb)+_0x3af030(0x257,0x1af)),_0x27452e={};_0x27452e['Conte'+_0x225f3d(-0x157,-0x12c)+'pe']='appli'+'catio'+_0x3af030(0x218,0x202)+'n',_0x27452e[_0x3af030(0x25e,0x2f9)+'rizat'+'ion']=_0x225f3d(-0x86,-0x127)+'r\x20'+_0x1b081b[_0x225f3d(-0x7a,-0xff)],_0x27452e['x-ope'+_0x3af030(0x1ff,0x1c7)+'-sess'+_0x225f3d(0x5e,-0x66)+'ey']=_0xd91629;const _0x890562=_0x27452e;if(_0x491da4){if(_0x3896b7[_0x3af030(0x174,0x1ef)](_0x3af030(0x25d,0x19a),'gmVPL'))return _0x42b326[_0x225f3d(-0x1b6,-0x19a)]([_0x1b84d8['read'](),new _0x4d45e7((_0x18a1de,_0x1e5e78)=>_0x58b999(()=>_0x1e5e78(new _0x147d31('Strea'+_0x3af030(0x213,0x2ac)+_0x225f3d(-0xfb,-0x92)+'ed\x20ou'+_0x3af030(0x2a4,0x23c)+_0x3af030(0x16b,0x191)+_0x3af030(0x28b,0x2cb)+_0x3af030(0x1e4,0x20b)+'talle'+'d')),_0x36c927))]);else _0x890562[_0x3896b7[_0x225f3d(-0x191,-0x10c)]]=_0x491da4;}const _0x38fdc9={};function _0x225f3d(_0x190fa2,_0x47e4ac){return _0xb459e7(_0x47e4ac- -0x6a4,_0x190fa2);}_0x38fdc9[_0x3af030(0x1c7,0x27f)+_0x225f3d(-0x45,-0xa8)+'age']=!![];function _0x3af030(_0x56e043,_0x1397f6){return _0xb459e7(_0x56e043- -0x397,_0x1397f6);}const _0x4869ba={'method':_0x3896b7[_0x3af030(0x184,0x17c)],'headers':_0x890562,'body':JSON[_0x3af030(0x232,0x1b4)+_0x3af030(0x191,0x166)]({'model':_0x225f3d(-0x165,-0x145)+_0x225f3d(-0x1e5,-0x170),'user':'uplin'+'k-def'+_0x225f3d(-0x173,-0x19e),'stream':!![],'stream_options':_0x38fdc9,'messages':[{'role':_0x3896b7[_0x225f3d(-0x283,-0x1c5)],'content':''+_0x5517cf+_0xd26ecf}]}),'signal':_0x49f67c},_0x1f6591={};return _0x1f6591['url']=_0xc15c8,_0x1f6591[_0x3af030(0x1f1,0x261)+'ns']=_0x4869ba,_0x1f6591[_0x3af030(0x1cb,0x15b)+_0x225f3d(-0x7a,-0x5d)]=_0xd91629,_0x1f6591;}async function validateGatewayResponse(_0x3de17e){function _0x1c1421(_0x16fbc0,_0x343ebf){return _0xd24aeb(_0x16fbc0-0x162,_0x343ebf);}function _0x570d62(_0x301269,_0x45fec0){return _0xd24aeb(_0x45fec0- -0x84,_0x301269);}const _0x442cfb={'lTysJ':function(_0x53c127,_0x58f8d6,_0xbaa4a2){return _0x53c127(_0x58f8d6,_0xbaa4a2);},'uWnzY':_0x570d62(-0x83,-0xb9),'fGtXh':'Respo'+_0x570d62(-0x201,-0x19c)+_0x570d62(-0x20b,-0x1b4)+'\x20body'};if(!_0x3de17e['ok']){const _0x2fe300=await _0x3de17e[_0x1c1421(0x3a,-0x74)]();throw new Error(_0x570d62(-0xd2,-0xba)+_0x1c1421(0x108,0x109)+'ror:\x20'+_0x3de17e['statu'+'s']+_0x1c1421(0xd5,0x70)+_0x2fe300);}_0x442cfb[_0x1c1421(0x13c,0x176)](log,_0x442cfb[_0x1c1421(0x1af,0x115)],_0x570d62(-0x171,-0xc0)+'nel]\x20'+_0x570d62(-0xbf,-0xba)+'ay\x20re'+_0x570d62(-0x111,-0x159)+_0x1c1421(0x31,-0x90)+_0x1c1421(0xae,0x46)+_0x570d62(-0xc5,-0x5c)+_0x1c1421(0x15b,0x17e)+_0x3de17e[_0x1c1421(0x102,0x1c3)+'s']+(',\x20has'+_0x1c1421(0x195,0x201))+!!_0x3de17e[_0x570d62(0x28,-0x7a)]+(_0x570d62(-0x136,-0x7c)+_0x1c1421(0x5c,-0xf)+'=')+_0x3de17e[_0x1c1421(0x16c,0xbb)]?.[_0x570d62(-0xef,-0xb3)+'ructo'+'r']?.[_0x1c1421(0xab,0x9e)]);if(!_0x3de17e[_0x570d62(-0x44,-0x7a)])throw new Error(_0x442cfb['fGtXh']);return _0x3de17e['body'][_0x1c1421(0xe3,0x61)+_0x1c1421(0x128,0x1e7)]();}function parseSSELine(_0x274b03){const _0x38512c={'luRfA':function(_0x4f3abb,_0x617872){return _0x4f3abb&&_0x617872;},'UfWcw':_0x35144c(-0x1a0,-0x1b5)+'\x20','bWTBb':'TMxZD','GNjAt':_0x370521(0x4fd,0x459),'VuUbk':_0x35144c(-0x6d,-0xea)+']','ompYV':function(_0x240c06,_0x3b038d){return _0x240c06===_0x3b038d;},'YUopY':_0x35144c(-0x7d,-0xa6),'FfDut':function(_0xa9fb04,_0x54e764,_0x45c75e){return _0xa9fb04(_0x54e764,_0x45c75e);},'esiXS':_0x35144c(-0x1b2,-0xef)+_0x35144c(-0x1c1,-0x14d)+'Got\x20['+_0x35144c(-0x1d1,-0x14b)+_0x370521(0x470,0x47b)+'er','jpLxU':function(_0x40f45b,_0x40dbdd){return _0x40f45b>_0x40dbdd;},'wtfwS':'otfYt'};if(!_0x274b03['start'+_0x370521(0x59f,0x520)](_0x38512c[_0x35144c(-0x1ab,-0x103)])){if(_0x38512c[_0x35144c(-0x1d5,-0x1a4)]!==_0x38512c[_0x35144c(-0xaf,-0x9a)])return null;else throw new _0x33adab(_0x370521(0x560,0x4e2)+_0x35144c(-0x190,-0x1e1)+'L\x20not'+_0x370521(0x47f,0x4a4)+'igure'+_0x370521(0x527,0x4a6)+_0x35144c(-0x48,-0x104)+'penCl'+_0x370521(0x4a0,0x48a)+'teway'+_0x370521(0x4e5,0x59c)+_0x35144c(-0x14d,-0x13a));}function _0x370521(_0x15535b,_0x32b34f){return _0xb459e7(_0x15535b- -0x70,_0x32b34f);}const _0x34ba12=_0x274b03[_0x35144c(-0x12a,-0xc3)](-0x76*0x4f+0x1baf+0x8c1);function _0x35144c(_0x4e5f93,_0x1fdaad){return _0xb459e7(_0x1fdaad- -0x6b9,_0x4e5f93);}if(_0x34ba12===_0x38512c[_0x35144c(-0x68,-0xf4)]){if(_0x38512c[_0x35144c(-0xa6,-0x8a)](_0x38512c['YUopY'],_0x38512c[_0x35144c(-0x1e0,-0x175)])){_0x38512c[_0x370521(0x481,0x52f)](log,'debug',_0x38512c[_0x370521(0x4d2,0x51f)]);const _0x180c4d={};return _0x180c4d[_0x370521(0x5ca,0x52d)]=!![],_0x180c4d;}else return PWBIlv['luRfA'](_0x716eb2,_0x32890f)&&!!_0x22fde3.env.OPENCLAW_CALLBACK_SECRET;}try{const _0x3a2756=JSON[_0x370521(0x5e8,0x596)](_0x34ba12),_0x3f0884=_0x3a2756['choic'+'es']?.[-0x6c4+0x19a9+-0x2b3*0x7]?.[_0x35144c(-0x6a,-0x83)],_0x3a287a=_0x3f0884?.[_0x35144c(-0xe,-0xce)+_0x370521(0x592,0x62d)];let _0x28e4b2=null;_0x3a287a&&_0x38512c[_0x370521(0x479,0x4ea)](_0x3a287a[_0x35144c(-0xc3,-0x89)+'h'],-0x1*0x1fc3+-0x24d8+0x449b)&&(_0x28e4b2=_0x3a287a[0x249a+0x1f1f+-0x1693*0x3]?.[_0x35144c(-0x21f,-0x1aa)+'ion']?.[_0x35144c(-0x20b,-0x16a)]||null);const _0x2ff4a0={};return _0x2ff4a0['conte'+'nt']=_0x3f0884?.[_0x370521(0x588,0x60c)+'nt']||'',_0x2ff4a0[_0x35144c(-0xb3,-0x130)]=_0x3a2756['usage']||null,_0x2ff4a0[_0x35144c(-0x1c0,-0x119)+_0x370521(0x4a4,0x4d8)]=_0x28e4b2,_0x2ff4a0;}catch{if('HmKrH'!==_0x38512c[_0x370521(0x48f,0x4f4)])return null;else _0x2504f8=_0x5e2ed0[_0x370521(0x519,0x4c2)];}}function _0x2b7a(_0x2b7a59,_0x25264c){_0x2b7a59=_0x2b7a59-(0xbd1+0x62c+-0x559*0x3);const _0x5c35ea=_0xa59a();let _0x36c75d=_0x5c35ea[_0x2b7a59];return _0x36c75d;}async function processGatewayStream({reader:_0x3f7008,signal:_0x4749c3,callbacks:_0x49e5b5}){const _0x446db3={'qAETS':function(_0x16a1c4,_0x2b09ef,_0xd3c918){return _0x16a1c4(_0x2b09ef,_0xd3c918);},'NQyHB':_0x5a0e98(0x28a,0x247)+_0xb86021(0x5fd,0x5d5)+'+$','LXSUz':_0x5a0e98(0x298,0x24e)+_0x5a0e98(0x2cb,0x23d)+_0x5a0e98(0x20c,0x23b)+'\x20not\x20'+'confi'+_0xb86021(0x5e0,0x535),'uTMQw':function(_0x29d7d7,_0x578d3b){return _0x29d7d7>_0x578d3b;},'mdeqz':function(_0x9b18e7,_0x3d8ec0){return _0x9b18e7/_0x3d8ec0;},'TdOrS':function(_0x1a71ff){return _0x1a71ff?.();},'mmCwt':function(_0xac7f5e,_0x116794){return _0xac7f5e===_0x116794;},'knhFI':_0xb86021(0x427,0x4b2),'rjMHd':function(_0x17e40a,_0x3ff100,_0x23d6d0){return _0x17e40a(_0x3ff100,_0x23d6d0);},'SasUs':'debug','plULb':_0x5a0e98(0x1fe,0x1ee)+_0xb86021(0x496,0x4e8)+_0x5a0e98(0x1fc,0x1a9)+_0xb86021(0x64c,0x5c0)+'orted'+_0xb86021(0x5f5,0x560)+'pping'+_0xb86021(0x50c,0x57a)+_0xb86021(0x5e1,0x598)+'ad','EfcXz':function(_0x4b8b83,_0x3a1aac){return _0x4b8b83+_0x3a1aac;},'sBxfg':function(_0x46db27,_0x3ce8aa){return _0x46db27(_0x3ce8aa);},'ECoxg':function(_0x265c29,_0x384eee){return _0x265c29!==_0x384eee;},'jRlXM':_0xb86021(0x3cd,0x477),'YzlHd':function(_0x1846d3,_0x47d27e,_0x67c196){return _0x1846d3(_0x47d27e,_0x67c196);},'XItDb':function(_0x18cdf9,_0x29fcea){return _0x18cdf9<=_0x29fcea;},'NlPaN':_0xb86021(0x5f2,0x543),'xUQtP':_0x5a0e98(0x218,0x187),'CSVmk':function(_0x1fc09a,_0x7875f4){return _0x1fc09a===_0x7875f4;},'WVBeV':_0x5a0e98(0x202,0x14f),'RjDWk':_0x5a0e98(0xd5,0x16a),'pLqFr':function(_0x3d4cf0,_0x1f374b){return _0x3d4cf0(_0x1f374b);},'dWtwf':function(_0x782153,_0x283876){return _0x782153===_0x283876;},'vkaeZ':_0xb86021(0x3dd,0x483),'TUsuj':_0xb86021(0x501,0x4e5),'TQzIH':'xDWkw'},{onChunk:_0x2d7f25,onTool:_0x36e8a2,onThinking:_0x425155}=_0x49e5b5,_0x5648c3=new TextDecoder();let _0x30bbd7='',_0x247c5a='',_0x3d7efc=null;const _0x55bafc=[];let _0x58cbb1=-0x2f*-0x68+0x1dfa+-0x1*0x3112;_0x446db3['TdOrS'](_0x425155);try{if(_0x446db3[_0xb86021(0x4a3,0x551)](_0xb86021(0x42a,0x4b2),_0x446db3[_0xb86021(0x56f,0x5a0)]))while(!![]){if(_0x4749c3?.[_0x5a0e98(0xe0,0x129)+'ed']){_0x446db3['rjMHd'](log,_0x446db3[_0xb86021(0x52a,0x4e6)],_0x446db3[_0x5a0e98(0x12c,0x1b3)]);break;}log(_0xb86021(0x5bf,0x54d),'[Chan'+_0x5a0e98(0x220,0x190)+_0xb86021(0x3df,0x48d)+'\x20to\x20r'+_0xb86021(0x5a7,0x4ff)+_0x5a0e98(0x8f,0x143)+_0x446db3[_0xb86021(0x41f,0x4c7)](_0x58cbb1,0xa64+0x10ba+-0x1b1d)+_0x5a0e98(0x7f,0x10c));const {done:_0x782c61,value:_0x17059a}=await _0x446db3[_0x5a0e98(0x126,0xf8)](createReadWithTimeout,_0x3f7008);_0x446db3[_0xb86021(0x54e,0x511)](log,_0x446db3[_0x5a0e98(0x186,0x18e)],'[Chan'+_0xb86021(0x510,0x4e8)+'Read\x20'+_0xb86021(0x683,0x5ca)+_0xb86021(0x559,0x5b4)+'done='+_0x782c61+(_0xb86021(0x5a6,0x542)+_0x5a0e98(0x218,0x1ec)+'=')+(_0x17059a?.['lengt'+'h']||-0x5c0+-0x1a4e+0x200e));if(_0x782c61){if(_0x446db3[_0xb86021(0x574,0x581)](_0xb86021(0x498,0x4a9),_0x446db3['jRlXM'])){_0x446db3['YzlHd'](log,_0x5a0e98(0x26f,0x1f5),_0x5a0e98(0x245,0x1ee)+_0x5a0e98(0x142,0x190)+_0xb86021(0x477,0x4d0)+_0x5a0e98(0x17e,0x17c)+_0xb86021(0x455,0x48e)+_0xb86021(0x608,0x57f)+'r\x20'+_0x58cbb1+(_0x5a0e98(0x14c,0x1f1)+_0x5a0e98(0x12b,0x1cd)+_0xb86021(0x4a9,0x4b3)+'se:\x20')+_0x247c5a[_0x5a0e98(0x24f,0x254)+'h']+(_0x5a0e98(0x95,0x127)+'s'));break;}else{ssAeuA[_0x5a0e98(0x163,0x1b9)](_0x3373df,_0xb86021(0x567,0x54d),_0x5a0e98(0x212,0x1ee)+_0xb86021(0x4ad,0x4e8)+_0x5a0e98(0x220,0x259)+'DONE]'+_0xb86021(0x44a,0x45c)+'er');const _0x3f2072={};return _0x3f2072[_0x5a0e98(0x319,0x25e)]=!![],_0x3f2072;}}_0x58cbb1++;const _0x222ac7={};_0x222ac7[_0x5a0e98(0x29e,0x1ff)+'m']=!![];const _0x13f728=_0x5648c3['decod'+'e'](_0x17059a,_0x222ac7);_0x30bbd7+=_0x13f728;_0x446db3[_0xb86021(0x49d,0x468)](_0x58cbb1,-0x25dc+-0x1f5+-0x13ea*-0x2)&&(_0x446db3[_0x5a0e98(0x28f,0x1d8)]===_0x446db3[_0xb86021(0x424,0x467)]?_0x52956e=_0x3da0cf[_0xb86021(0x443,0x505)]:_0x446db3['YzlHd'](log,_0x446db3[_0xb86021(0x5a5,0x4e6)],'[Chan'+'nel]\x20'+_0xb86021(0x56d,0x565)+'\x20'+_0x58cbb1+':\x20'+_0x13f728[_0x5a0e98(0x280,0x1f7)+_0x5a0e98(0x223,0x228)](0x309*0x9+-0x32*-0xa4+-0x3b59*0x1,-0x1d74+-0xe7b+0x2cb7)));const _0x440261=_0x30bbd7['split']('\x0a');_0x30bbd7=_0x440261['pop']()||'';for(const _0x4de868 of _0x440261){if(_0x446db3[_0x5a0e98(0x154,0x14d)](_0x446db3[_0xb86021(0x503,0x4d6)],_0x446db3[_0x5a0e98(0x278,0x216)]))return _0x3cd218[_0x5a0e98(0xec,0x15e)+_0xb86021(0x542,0x529)]()[_0xb86021(0x425,0x4ab)+'h'](ssAeuA['NQyHB'])[_0x5a0e98(0x216,0x15e)+_0x5a0e98(0x126,0x1d1)]()[_0xb86021(0x511,0x553)+_0x5a0e98(0x14a,0x1bf)+'r'](_0x432aba)[_0xb86021(0x526,0x4ab)+'h'](ssAeuA[_0x5a0e98(0x160,0x1b5)]);else{const _0xfd640=_0x446db3[_0xb86021(0x4e7,0x4d5)](parseSSELine,_0x4de868);if(!_0xfd640||_0xfd640[_0xb86021(0x4fb,0x5b6)])continue;if(_0xfd640[_0x5a0e98(0x11c,0x1ad)]){if(_0x446db3[_0xb86021(0x4f9,0x592)](_0x446db3[_0x5a0e98(0x257,0x1e7)],_0xb86021(0x59d,0x59c)))throw new _0x36f26c(ssAeuA[_0x5a0e98(0x19b,0x144)]);else _0x3d7efc=_0xfd640['usage'];}_0xfd640[_0x5a0e98(0x148,0x1c4)+_0x5a0e98(0xe6,0x138)]&&log(_0x446db3[_0x5a0e98(0x211,0x18e)],_0x5a0e98(0x18c,0x1ee)+_0xb86021(0x45d,0x4e8)+_0x5a0e98(0x240,0x261)+_0xb86021(0x4f7,0x559)+_0x5a0e98(0x2a7,0x21f)+'rom\x20s'+'tream'+':\x20'+_0xfd640['toolN'+'ame']);if(_0xfd640[_0x5a0e98(0x137,0x1c4)+_0xb86021(0x404,0x490)]&&!_0x55bafc[_0xb86021(0x4d2,0x4da)+_0x5a0e98(0x11a,0x14e)](_0xfd640['toolN'+_0x5a0e98(0x11b,0x138)])){if(_0x5a0e98(0xe9,0x18d)===_0x446db3[_0xb86021(0x454,0x500)])_0x55bafc[_0xb86021(0x5dd,0x589)](_0xfd640[_0xb86021(0x560,0x51c)+_0x5a0e98(0xf0,0x138)]),_0x36e8a2?.(_0xfd640[_0x5a0e98(0x1e7,0x1c4)+_0x5a0e98(0xc0,0x138)]);else{const _0x130085=_0x12c9e0['parse'](_0x54ebc1),_0x508869=_0x130085['choic'+'es']?.[-0x1b9b+-0x1*0x1a93+0x362e]?.[_0x5a0e98(0x224,0x25a)],_0x57994d=_0x508869?.[_0xb86021(0x5a2,0x567)+_0x5a0e98(0x1bf,0x226)];let _0x53a52d=null;_0x57994d&&ssAeuA[_0x5a0e98(0x152,0x131)](_0x57994d[_0x5a0e98(0x1af,0x254)+'h'],0x1c*0xe5+0x1bb4+0x2*-0x1a60)&&(_0x53a52d=_0x57994d[-0x5*0x4c7+0x143a+0x3a9]?.[_0x5a0e98(0x77,0x133)+_0xb86021(0x4d6,0x45d)]?.[_0x5a0e98(0x136,0x173)]||null);const _0x433cdf={};return _0x433cdf[_0xb86021(0x4c7,0x574)+'nt']=_0x508869?.[_0x5a0e98(0x2a3,0x21c)+'nt']||'',_0x433cdf[_0xb86021(0x498,0x505)]=_0x130085[_0x5a0e98(0x144,0x1ad)]||null,_0x433cdf[_0x5a0e98(0x1ad,0x1c4)+'ame']=_0x53a52d,_0x433cdf;}}if(_0xfd640[_0x5a0e98(0x1fe,0x21c)+'nt']){if(_0x446db3[_0xb86021(0x59c,0x551)](_0x446db3[_0x5a0e98(0x1bb,0x160)],'pDunW'))_0x1c6078['push'](_0x3390a8[_0x5a0e98(0x208,0x1c4)+_0xb86021(0x4ef,0x490)]),_0x363524?.(_0x54cf97[_0xb86021(0x497,0x51c)+_0xb86021(0x441,0x490)]);else{_0x247c5a+=_0xfd640[_0xb86021(0x5b5,0x574)+'nt'],_0x446db3[_0xb86021(0x4b2,0x4d5)](_0x2d7f25,_0xfd640[_0x5a0e98(0x15b,0x21c)+'nt']);const _0x49a9d1=_0xfd640[_0xb86021(0x58c,0x574)+'nt'][_0x5a0e98(0xab,0x10a)](/<(?:antml:)?invoke name="(\w+)"/);_0x49a9d1&&!_0x55bafc['inclu'+_0x5a0e98(0xec,0x14e)](_0x49a9d1[-0x2319*0x1+0x180b+-0x95*-0x13])&&(_0x55bafc[_0xb86021(0x646,0x589)](_0x49a9d1[0x1868+-0x1aad+-0x3*-0xc2]),_0x36e8a2?.(_0x49a9d1[-0x127e+-0x1dd4*0x1+-0x3053*-0x1]));}}}}}else{const _0x30d6c9=_0x3b26f8[_0xb86021(0x581,0x5bc)](ssAeuA['mdeqz'](_0x472354['lengt'+'h'],-0x12*-0x14b+-0x1*0x22ca+0xb88)),_0x20473b=_0x59d0dd['ceil'](ssAeuA['mdeqz'](_0x97c584[_0x5a0e98(0x193,0x254)+'h'],-0x186b*-0x1+0x1f94+-0x37fb)),_0x3d0160={};return _0x3d0160[_0x5a0e98(0x29b,0x24b)+_0xb86021(0x4e7,0x4e1)+'ens']=_0x30d6c9,_0x3d0160[_0xb86021(0x56d,0x5bd)+_0xb86021(0x523,0x59a)+'_toke'+'ns']=_0x20473b,_0x3d0160[_0xb86021(0x4e9,0x470)+'_toke'+'ns']=_0x30d6c9+_0x20473b,_0x3d0160[_0xb86021(0x577,0x51b)+_0x5a0e98(0x181,0x18c)]=!![],_0x3d0160;}}finally{_0x3f7008[_0xb86021(0x618,0x5c8)+_0x5a0e98(0x1b8,0x13e)+'k']();}const _0x14d862={};_0x14d862['fullR'+_0x5a0e98(0x19d,0x15b)+'se']=_0x247c5a,_0x14d862[_0x5a0e98(0x216,0x1c9)+_0xb86021(0x57f,0x5d3)]=_0x3d7efc;function _0xb86021(_0x37c4b6,_0xbebedf){return _0xd24aeb(_0xbebedf-0x582,_0x37c4b6);}function _0x5a0e98(_0x36e488,_0x57c6c2){return _0xd24aeb(_0x57c6c2-0x22a,_0x36e488);}return _0x14d862[_0x5a0e98(0x1a4,0x201)+_0xb86021(0x620,0x5c1)+_0xb86021(0x574,0x5d6)]=_0x55bafc,_0x14d862;}export async function sendMessage({message:_0x1f7884,satelliteId:satelliteId=_0xd24aeb(-0x84,-0x26),satelliteName:_0x844b90,agentId:_0x352ab5,mode:mode=_0xd24aeb(-0x128,-0x77),requestId:_0x48681d,signal:_0x2851ac,onChunk:_0xad7c7f,onTool:_0x3ea0ec,onThinking:_0x175495}){const _0x29541e={'xxtew':function(_0x484959,_0x54f30e,_0x286800){return _0x484959(_0x54f30e,_0x286800);},'HQxVg':'debug','szddR':function(_0xb4442c,_0x4b5967){return _0xb4442c!==_0x4b5967;},'yomHX':'oemrb','xzCya':function(_0x12bc04,_0x1a2bca){return _0x12bc04(_0x1a2bca);},'lMoXZ':function(_0x3d9b7e,_0x294e26){return _0x3d9b7e===_0x294e26;},'rnmWE':'mZEfZ','fQVzZ':function(_0x1bbe1a){return _0x1bbe1a();},'OOMzU':function(_0x285aa5,_0x4bcdb2){return _0x285aa5(_0x4bcdb2);},'wRtzz':function(_0x1e1c46,_0x139637){return _0x1e1c46(_0x139637);},'vNStF':function(_0x366352,_0x218208){return _0x366352(_0x218208);},'npXxT':_0x1c92d8(0x3cf,0x443),'yzvFY':_0x1c92d8(0x4c8,0x438),'rWNOc':function(_0x3f57cd,_0x3e6a32,_0x5d90c8){return _0x3f57cd(_0x3e6a32,_0x5d90c8);},'eePEK':function(_0x546efb,_0x3dff2d){return _0x546efb>_0x3dff2d;}};function _0x1c92d8(_0x3f6149,_0x5286df){return _0xd24aeb(_0x5286df-0x4bd,_0x3f6149);}const _0x40b8e7={};_0x40b8e7[_0x33caed(0x487,0x49b)+'nk']=_0xad7c7f,_0x40b8e7[_0x33caed(0x413,0x439)+'l']=_0x3ea0ec,_0x40b8e7[_0x1c92d8(0x394,0x3b0)+_0x1c92d8(0x30e,0x394)]=_0x175495;const _0x33487e=_0x40b8e7;let _0x18024e;if(_0x29541e[_0x33caed(0x47a,0x3bd)](isChannelEnabled)){const _0x82be95={};_0x82be95['messa'+'ge']=_0x1f7884,_0x82be95[_0x1c92d8(0x4cd,0x509)+_0x33caed(0x40c,0x39c)+'d']=satelliteId,_0x82be95['mode']=mode,_0x82be95[_0x1c92d8(0x446,0x433)+_0x1c92d8(0x4f9,0x450)]=_0x48681d;const _0x5a6487=_0x29541e[_0x33caed(0x3bd,0x359)](sendViaChannel,_0x82be95),_0x175f5e={};_0x175f5e[_0x33caed(0x356,0x40c)+_0x1c92d8(0x477,0x40b)+'m']=_0x5a6487,_0x175f5e[_0x33caed(0x3d9,0x327)+'l']=_0x2851ac,_0x175f5e[_0x33caed(0x3f0,0x33d)+_0x1c92d8(0x5c3,0x502)]=_0x33487e,_0x18024e=await _0x29541e[_0x1c92d8(0x515,0x4b4)](processChannelStream,_0x175f5e);}else{const _0x586bcf={};_0x586bcf[_0x33caed(0x3ce,0x44a)+'ge']=_0x1f7884,_0x586bcf[_0x1c92d8(0x4ad,0x509)+_0x33caed(0x40c,0x3eb)+'d']=satelliteId,_0x586bcf[_0x1c92d8(0x499,0x509)+_0x1c92d8(0x4b8,0x403)+'ame']=_0x844b90,_0x586bcf['agent'+'Id']=_0x352ab5,_0x586bcf[_0x1c92d8(0x3e0,0x3fe)]=mode,_0x586bcf['signa'+'l']=_0x2851ac;const {url:_0x4bf8af,options:_0x272f8a}=await _0x29541e['wRtzz'](buildGatewayRequest,_0x586bcf),_0x94a679=await fetch(_0x4bf8af,_0x272f8a),_0x36a362=await _0x29541e['OOMzU'](validateGatewayResponse,_0x94a679),_0x373434={};_0x373434[_0x33caed(0x398,0x3cf)+'r']=_0x36a362,_0x373434[_0x1c92d8(0x4f7,0x45e)+'l']=_0x2851ac,_0x373434[_0x33caed(0x3f0,0x3b6)+'acks']=_0x33487e,_0x18024e=await _0x29541e['vNStF'](processGatewayStream,_0x373434);}const {fullResponse:_0x45f9a1,tokenUsage:_0x4232ab,detectedTools:_0x5e143c}=_0x18024e,_0xb7afb4=/MEDIA:(.+?)(?:\n|$)/g,_0x103b56=[];function _0x33caed(_0x53cb46,_0x4a8990){return _0xd24aeb(_0x53cb46-0x438,_0x4a8990);}let _0x6a119a;while((_0x6a119a=_0xb7afb4['exec'](_0x45f9a1))!==null){if(_0x29541e[_0x1c92d8(0x52d,0x473)](_0x29541e[_0x33caed(0x322,0x27e)],_0x29541e['npXxT']))_0x103b56[_0x1c92d8(0x510,0x4c4)](_0x6a119a[0x1a4b+0x1*-0x1b71+0x127]['trim']());else return _0x29541e['xxtew'](_0x5a23b4,_0x29541e['HQxVg'],'[Chan'+_0x1c92d8(0x3ed,0x423)+'Rewro'+_0x33caed(0x31f,0x28d)+_0x33caed(0x48e,0x3dd)+_0x1c92d8(0x486,0x3fa)+_0x33caed(0x359,0x336)+_0x54b9b1+'\x20->\x20'+_0x451acf),'!['+_0x3393e2+']('+_0xc31ba1+')';}let _0x4a23ae=_0x103b56[_0x1c92d8(0x4cb,0x4e7)+'h']>-0x1265+0x49b*0x2+0x92f?_0x45f9a1[_0x1c92d8(0x3d5,0x459)+'ce'](/MEDIA:.+?(?:\n|$)/g,'')[_0x1c92d8(0x3fd,0x493)]():_0x45f9a1;const _0x25a7bb=global[_0x1c92d8(0x4ef,0x474)+_0x33caed(0x31c,0x2d9)+_0x1c92d8(0x436,0x45b)+'dia']||globalThis['regis'+_0x33caed(0x31c,0x331)+'entMe'+_0x1c92d8(0x346,0x3f8)];if(_0x25a7bb&&_0x29541e[_0x1c92d8(0x51e,0x473)](typeof _0x25a7bb,_0x1c92d8(0x3ba,0x3c6)+_0x33caed(0x313,0x26b))){if(_0x29541e[_0x33caed(0x3ee,0x338)](_0x29541e[_0x1c92d8(0x423,0x454)],_0x29541e['yzvFY']))_0x4a23ae=_0x4a23ae[_0x1c92d8(0x45c,0x459)+'ce'](/!\[([^\]]*)\]\(([^)]+)\)/g,(_0xbc5fb5,_0x3f1899,_0x1bd797)=>{function _0x49b215(_0x2371c1,_0x2f1d03){return _0x1c92d8(_0x2371c1,_0x2f1d03-0x9a);}function _0x2e4998(_0x374c77,_0x25ff3c){return _0x1c92d8(_0x25ff3c,_0x374c77- -0x261);}const _0x24f7e5=_0x1bd797[_0x2e4998(0x232,0x296)]();if(/^(https?:|\/api\/)/i['test'](_0x24f7e5)){if(_0x29541e[_0x49b215(0x443,0x49a)](_0x29541e[_0x2e4998(0x23b,0x195)],_0x2e4998(0x13a,0x12b)))_0x3088a0[_0x2e4998(0x2a2,0x28b)+_0x49b215(0x516,0x46b)+'k']();else return _0xbc5fb5;}const _0x693576=_0x29541e['xzCya'](_0x25a7bb,_0x24f7e5);if(_0x693576){if(_0x29541e['lMoXZ'](_0x2e4998(0x25d,0x209),_0x29541e[_0x2e4998(0x1a6,0x1f4)]))return _0x29541e[_0x2e4998(0x245,0x2ff)](log,_0x49b215(0x519,0x522),_0x2e4998(0x220,0x18c)+_0x49b215(0x4a6,0x4bd)+'Rewro'+_0x2e4998(0x143,0xd8)+_0x2e4998(0x2b2,0x2b7)+_0x2e4998(0x199,0x1bd)+_0x49b215(0x4c2,0x478)+_0x24f7e5+_0x2e4998(0x13d,0x17c)+_0x693576),'!['+_0x3f1899+']('+_0x693576+')';else{const _0x57e949={};return _0x57e949[_0x49b215(0x3cd,0x46a)]=_0x261bd2,_0x57e949[_0x49b215(0x4fe,0x4f6)]='',_0x57e949;}}return _0xbc5fb5;});else{const _0x2e1b46={'fVPqL':function(_0xfbaa18,_0x2a0e7e){function _0x4731dc(_0x5ad691,_0x3fe588){return _0x33caed(_0x3fe588- -0x16e,_0x5ad691);}return _0x29541e[_0x4731dc(0x297,0x2c1)](_0xfbaa18,_0x2a0e7e);},'rKeqV':function(_0x48b25a,_0x248129,_0x51d7c9){return _0x48b25a(_0x248129,_0x51d7c9);},'bbpHm':_0x1c92d8(0x486,0x488)};_0x5a6e83=_0x5326f9[_0x1c92d8(0x510,0x459)+'ce'](/!\[([^\]]*)\]\(([^)]+)\)/g,(_0x18923d,_0x26ee79,_0xb89612)=>{const _0x580f1d=_0xb89612[_0x383939(0x16f,0x139)]();function _0xeb9041(_0x13439b,_0x47e8d7){return _0x33caed(_0x47e8d7-0x47,_0x13439b);}if(/^(https?:|\/api\/)/i[_0xeb9041(0x566,0x4a5)](_0x580f1d))return _0x18923d;const _0x1cca00=_0x2e1b46[_0x383939(0xcd,0x191)](_0x3b5c94,_0x580f1d);function _0x383939(_0x8c870a,_0x43f0c0){return _0x33caed(_0x43f0c0- -0x2d5,_0x8c870a);}if(_0x1cca00)return _0x2e1b46[_0xeb9041(0x349,0x350)](_0x2380bc,_0x2e1b46['bbpHm'],_0xeb9041(0x408,0x443)+'nel]\x20'+'Rewro'+_0x383939(-0x72,0x4a)+_0x383939(0x254,0x1b9)+_0x383939(0x8e,0xa0)+_0x383939(0xe2,0x84)+_0x580f1d+_0x383939(0x2a,0x44)+_0x1cca00),'!['+_0x26ee79+']('+_0x1cca00+')';return _0x18923d;});}}const _0x526ba8=_0x4232ab||_0x29541e[_0x33caed(0x48d,0x490)](estimateTokenUsage,_0x1f7884,_0x4a23ae);return{'response':_0x4a23ae,'usage':_0x526ba8,'tools':_0x29541e[_0x33caed(0x3a3,0x431)](_0x5e143c[_0x33caed(0x462,0x502)+'h'],-0x3a*-0x93+0x168d+-0x37db)?_0x5e143c:undefined,'media':_0x29541e[_0x1c92d8(0x37a,0x428)](_0x103b56['lengt'+'h'],0x7*0xb+-0x13d*0xd+0xfcc)?_0x103b56:undefined};}function _0xa59a(){const _0xa2f1d0=['ned:\x20','Body=','done','t\x20-\x20g','ng\x20to','Tool\x20','ion-k','apply','ceil','compl','ovize','ief\x20a','st\x20ab','tedTo','XFrYc','onKey','fQVzZ','KmZCO','ete','acks','relea','YHoUM','retur','tool','te:','JbqKF','satel','uWnzY','LJErI','onChu','Rewro','Usage','parse',')+)+)','ols','rWNOc','rkdow','sBxfg','e\x20rec','as\x20no','rKeqV','ay\x20UR','xqPCV','orted','k]\x20','HeSLD','nking','text','RnDBl','\x20mark','ion','lite=','2156482QuFFBG','oemrb','agent','match','\x20->\x20','...','jpLxU','terAg','xUQtP','XItDb','te\x20ma','nse\x20h','\x20conf','npXxT','FfDut','olKuT','GenkK','total','nse','slusU','teway','MdASg','onThi','voice','qFJOO','lsFAG','1930JOoHtN','llbac','wtfwS','yType','ZtNZH','atewa','\x20char','data:','abort','ault','zVwUe','9686776AznoEB','ZSsWE','race','JTbFc',',\x20mod','uTMQw','chunk','funct','aw\x20ga','About','plete','user','ame','bWTBb','start','XMvCf','es\x20ma','url','seLoc','TBPuE','51817UJwujO','EargG','yujmn','hunk\x20','LXSUz','xwPgl','VcVSP','split','event','JOtHn','imJYB','ge:\x20','gify','CSVmk','des','CQvKU','25sWYbvV','iymUE','yKPsP','searc','think','spons','GAlfN','RfATq','law','fullR','skLiq','espon','opJbg','lUFJF','toStr','talle','TQzIH','catio','qCDbN','\x20not\x20','annel','dia','esiXS','n\x20ima','YUopY','mskFL','AuyrH','mode','3trWLOk','szddR','ed\x20ou','EfcXz','liteN','wn\x20ch','Uplin','name','rnmWE','xOICQ','eived','respo','Strea','\x20sett','aming','ionKe','m\x20com','pLqFr','WVBeV','\x20body','ntenc','oDLDC','inclu','openc','kSecr','ObbmI','sessi','EkVWj','eway\x20','t_tok','reade','HrKCQ','ated','uQTXk','SasUs','JAkVQ','nel]\x20','rGwia','DONE]',':upli','CWrqW','eePEK','iIehi','x]\x20','[Voic','aikch','x-ope','\x20via\x20','nt-Ty','\x20-\x20','read','\x20be\x20s','reque','Beare','defau','ings.','\x20webh','PgTzt','main','ead\x20c','TUsuj','Reque','ayUrl','getRe','optio','usage','t\x20gat','OOMzU','iZgtJ','OKDrR','ChCoZ','plULb','confi','NQyHB','fMsXP','RsrAP','jMyjS','qAETS','nclaw','d.\x20Ch','vVHep','stId','Direc','ructo','messa','yzvFY','rKTNY','estim','toolN','ozCDX','repla','se\x20br','entMe','token','statu','signa','ssvBu','ks,\x20r','m\x20rea','Unkno','ay\x20er','ing','SVcjF','n/jso','dRauw','iBFSd','ion-l','lawCa','NlPaN','eck\x20O','UfWcw','POST','jUIeL','gured','TxnRA','igure','lMoXZ','regis','callb','jlfce','udRVe','ook:\x20','r:\x20','vkaeZ','VfcrY','VuUbk',',\x20val','pCKsj','ueLen','strin','[Chan','\x20chat','ader','\x20chun','uJaGH','[DONE','Gatew','debug','\x20erro','subst','ng\x20ch','mmCwt','yBKsM','const','211380QjWgmZ','omple','liteI','strea','trim','detec','\x20duri','aZpvu','lTysJ','onToo','kHUsP',',\x20has',',\x20sto','yomHX','69057KJLsbG','L\x20not','xSFwA','Chunk','MvAkb','tool_','/v1/c','way:\x20','tions','xxtew','HvmET','bWiSn','RjDWk','4871568adeTMa','gmVPL','Autho','slice','Token','conte','qEThJ','oKPJt','ted\x20f','de_us','xzCya','\x20stre','tus=','tDZjM','abel','calls','\x20afte','ring','ECoxg','\x20gate','mZEfZ','JKrrj','RBpOI','XWrqP','-sess','Respo','push',',\x20bod','sWith','body','7URYCwe','d\x20tim','ieGyc','el=','RjDqA','dWtwf','bhook','HNsVm','el\x20we','CWleq','gatew','am\x20re','ation','etion','GNjAt','QWKCS','pop','y\x20may','(((.+','knhFI','Using',',\x20lab','promp','aiPCN','eep\x20r','Chann','[Text','test','ZSpJe',':\x20sta','ompYV','lengt','rom\x20s','7359234CljkEA','OnmJo','fVPqL','Got\x20[','delta','tream'];_0xa59a=function(){return _0xa2f1d0;};return _0xa59a();}
package/server/chat.js CHANGED
@@ -1 +1 @@
1
- (function(_0x294dd6,_0xba7376){const _0x478b4a=_0x294dd6();function _0x513c9a(_0x2cdbcb,_0x1afecb){return _0x1d9d(_0x2cdbcb-0x2,_0x1afecb);}function _0xd0a764(_0x201ca6,_0xb4b3a3){return _0x1d9d(_0xb4b3a3-0x36c,_0x201ca6);}while(!![]){try{const _0x2df272=parseInt(_0x513c9a(0xe9,0x125))/(-0xa7a+-0x21f+-0xc9a*-0x1)*(-parseInt(_0x513c9a(0xf8,0xd4))/(0x17*-0xbf+0x24a4+-0x1379))+-parseInt(_0xd0a764(0x45a,0x472))/(-0x1*0x623+-0x1e*0x44+0x70f*0x2)*(parseInt(_0x513c9a(0x90,0xb1))/(-0x1373*0x1+0xdd+0x94d*0x2))+-parseInt(_0xd0a764(0x3e7,0x44a))/(0x2576+0x7*0x2c3+-0x2*0x1c63)*(-parseInt(_0xd0a764(0x3ed,0x43d))/(0x1*0x1daa+0xcb*-0x12+-0xf5e))+-parseInt(_0xd0a764(0x4b1,0x497))/(0x57d*-0x3+0x1*0x21e5+-0xb*0x195)+parseInt(_0x513c9a(0x87,0xa3))/(-0x7f*-0x27+0x12f*0xf+-0x2*0x1289)+parseInt(_0xd0a764(0x495,0x441))/(0xaff+0x183a+-0x8*0x466)+parseInt(_0xd0a764(0x50a,0x4b2))/(-0x29*0xa3+-0x174f+0x3174);if(_0x2df272===_0xba7376)break;else _0x478b4a['push'](_0x478b4a['shift']());}catch(_0xdcd76b){_0x478b4a['push'](_0x478b4a['shift']());}}}(_0x29a6,-0x1*0x5314d+0x1f597+0x6*0x135e3));function _0x435df1(_0x266f95,_0x4ba690){return _0x1d9d(_0x266f95- -0x135,_0x4ba690);}const _0x31da83=(function(){const _0x1e81e6={'BRcdE':function(_0x1c1953,_0x3f28a2,_0x691ea6,_0x5f0ad7){return _0x1c1953(_0x3f28a2,_0x691ea6,_0x5f0ad7);},'ZTxJm':_0x39ba2c(-0xc3,-0x12e),'xdDpX':function(_0x368ced,_0xff3296){return _0x368ced===_0xff3296;},'UAFcX':'jDGGo'};let _0x2841e9=!![];function _0x39ba2c(_0x2796eb,_0x55ea71){return _0x1d9d(_0x55ea71- -0x238,_0x2796eb);}return function(_0x28a509,_0x1d53b5){function _0x477931(_0x277255,_0x27019e){return _0x39ba2c(_0x277255,_0x27019e-0x1c7);}function _0x5eb06f(_0x41c163,_0x11b1b3){return _0x39ba2c(_0x41c163,_0x11b1b3-0x42e);}if(_0x1e81e6[_0x5eb06f(0x2a6,0x2dc)](_0x1e81e6[_0x477931(0x7d,0xb6)],_0x5eb06f(0x257,0x28b)))_0x1e81e6[_0x5eb06f(0x399,0x350)](_0x456214,_0x1e81e6['ZTxJm'],_0x5eb06f(0x24c,0x2b4)+_0x477931(-0xc,0x4f)+_0x477931(0x6d,0xda)+_0x5eb06f(0x27f,0x283)+'espon'+_0x477931(0x9f,0x45)+_0x5eb06f(0x30b,0x2ee)+_0x477931(-0x3,0x3d),_0x5900de[_0x477931(0x7c,0x7c)+'ge']);else{const _0x343063=_0x2841e9?function(){function _0x1e3ed5(_0x9a802b,_0x2ad96c){return _0x477931(_0x9a802b,_0x2ad96c-0x207);}if(_0x1d53b5){const _0x2d4a0c=_0x1d53b5[_0x1e3ed5(0x264,0x2bb)](_0x28a509,arguments);return _0x1d53b5=null,_0x2d4a0c;}}:function(){};return _0x2841e9=![],_0x343063;}};}()),_0x94ec61=_0x31da83(this,function(){const _0x2a9139={};function _0x3645f7(_0x291fcd,_0x15d71f){return _0x1d9d(_0x15d71f- -0x210,_0x291fcd);}function _0x3464e1(_0x16df4a,_0x1aa11b){return _0x1d9d(_0x16df4a- -0x202,_0x1aa11b);}_0x2a9139[_0x3464e1(-0xae,-0x10d)]='(((.+'+_0x3464e1(-0x121,-0x11c)+'+$';const _0x51fa07=_0x2a9139;return _0x94ec61[_0x3464e1(-0xcf,-0x6f)+_0x3464e1(-0x148,-0x18a)]()[_0x3464e1(-0x123,-0x108)+'h'](_0x51fa07['FDLli'])[_0x3645f7(-0x149,-0xdd)+_0x3464e1(-0x148,-0x150)]()['const'+_0x3645f7(-0x1da,-0x17f)+'r'](_0x94ec61)['searc'+'h'](_0x3464e1(-0x122,-0x130)+')+)+)'+'+$');});_0x94ec61();import _0x17310d from'fs/promises';import _0x1ce164 from'path';import{log,fetchWithTimeout,withRetry}from'./utils.js';import{textToSpeech,textToSpeechLocal,textToSpeechEdge,textToSpeechOpenAI,textToSpeechPiper,extractFirstSentence}from'./tts.js';import{GATEWAY_URL as _0x46175f,ROOT_DIR,SESSION_USER,REQUEST_TIMEOUT}from'./config.js';function _0x4aa89a(_0x489987,_0x562a56){return _0x1d9d(_0x489987-0x298,_0x562a56);}import{loadConfig}from'./runtime-config.js';function _0x1d9d(_0x1d9d57,_0x3138a8){_0x1d9d57=_0x1d9d57-(-0x1fc9+-0x2669+-0x1*-0x46b5);const _0x5a2581=_0x29a6();let _0x2feef5=_0x5a2581[_0x1d9d57];return _0x2feef5;}async function getGatewayConfig(){const _0x369201={};_0x369201[_0x183ca4(0x250,0x287)]=function(_0x391c86,_0x29dd61){return _0x391c86!==_0x29dd61;};function _0x183ca4(_0x3b9ff0,_0x1fb7b2){return _0x1d9d(_0x1fb7b2-0x13f,_0x3b9ff0);}_0x369201['oLnIj']=_0x2aee80(0x3a4,0x390);const _0xcee617=_0x369201;function _0x2aee80(_0x5da21c,_0x40c617){return _0x1d9d(_0x40c617-0x2ed,_0x5da21c);}try{const _0x1cbd43=await loadConfig(),_0x2b38d2={};return _0x2b38d2[_0x2aee80(0x3da,0x446)+'AY_UR'+'L']=_0x1cbd43[_0x2aee80(0x47b,0x43b)+_0x2aee80(0x422,0x402)]||_0x46175f,_0x2b38d2['GATEW'+_0x183ca4(0x279,0x26e)+_0x2aee80(0x3fe,0x3de)]=_0x1cbd43[_0x183ca4(0x2cb,0x28d)+'ayTok'+'en']||'',_0x2b38d2;}catch{if(_0xcee617[_0x2aee80(0x427,0x435)](_0xcee617[_0x2aee80(0x382,0x377)],_0xcee617[_0x183ca4(0x1a3,0x1c9)]))_0x2a6023();else{const _0xcb4da7={};return _0xcb4da7['GATEW'+_0x183ca4(0x215,0x1ca)+'L']=_0x46175f,_0xcb4da7[_0x183ca4(0x271,0x298)+_0x2aee80(0x3ee,0x41c)+'KEN']='',_0xcb4da7;}}}import{transcribe}from'./stt/index.js';import{broadcastToAll}from'./websocket/index.js';const AUDIO_OUTPUT_DIR=_0x1ce164[_0x4aa89a(0x357,0x3ad)](ROOT_DIR,_0x435df1(-0x88,-0xda)+'c',_0x4aa89a(0x359,0x3a4));function _0x29a6(){const _0x482f54=['gYFcO','eVjYG','ly]\x20','cHOOD',':\x20\x22','se\x20br','sLKWF','maxRe','[Text','LTHMW','statu','HYsjX',':main','[DONE','speak','decod','relea','cbIBd','choic','publi','led:','WFTQN','nMcnp','CCYAW','ttsPr','agent','POST','bluWH','se\x20TT','or\x20re','GomlJ','pop','ing','seLoc','text','AlCWo','[Chun','join','ked\x20T','audio','local','docCo','sente','user','split','uPpRY','fXofT','filte','read','lmPer','bojyp','delta','Statu','iCbkH','label','2090430YMyiQN','wqDCC','zSQLC','\x20audi','402651LKJjFi','tions','Beare','Uplin','e\x20cha','\x20-\x20','...\x22','info','atGJi','5AfUMsx','searc','(((.+',')+)+)','UooFc','bhkRP','nce','Ifcge','xdDpX','492368dudzxP','hoIIx','trim','spons','push','json','messa','EoxTP','\x20via\x20','dHocA','KEN','urall','n/jso','/v1/c','ences','2YucmtC','LKdBG','S\x20fai','stage','mlUnG','BQsIy','\x20sent','strin','type','strea','t\x20-\x20k','\x20chat','body','inal\x20','CLxCw','al,\x201','549363oEVQFI','KeICP','\x20conv','ybAjt','error','nSnPa','s):\x20\x22','tZZBy','sWith','WMUiB','TS]\x20C','mhXMK','HQxxr','AoMfU','fNTFJ','ayUrl','conte','DcwlF','wRDIE','nvers','cjYxb','ersat','nTDMF','SBgDO','ted\x20','Qktgw','es\x20ma','opena','tiQvY','QCNBG','appli','apply','PWcQR','UAFcX','slice','voice','test','2762858XYfqVx','ATINP','API\x20e','eep\x20r','AY_TO','ggnHN','vopFD','resol','toStr','Chat\x20','hunk\x20','\x20spee','y\x20and','\x20fail','catio','openc','RZTix','espon','uSnDW','jYBlU','t\x20-\x20r','NZZPg','wYLwF','eleve','omple','lengt','[Voic','8914070twDelD','respo','wlKnE','aSgrv','GBPdG','TS]\x20F','const','ed:','gatew','qsgDb','catch','CVkhq','SVHME','PeExZ','FDLli','THDPB','x]\x20','hat/c','Urls','GATEW','BRcdE','ation','EszjG','xGZJO','data:','397792hnNmxV','index','\x20char','chunk','DQhDw','oLnIj','AY_UR','law','ull\x20r','4TZnpLL','SfVsm','cIFAT','ructo','parse','rror:','debug','LDRpE','all','JUfYX','ch...','WjQxY'];_0x29a6=function(){return _0x482f54;};return _0x29a6();}async function getTTSFunction(){const _0x12339f={'PeExZ':function(_0x154217){return _0x154217();},'SBFKy':_0xad0694(0xbd,0x70),'DFmIK':'edge','ggnHN':_0x1667c3(0x256,0x21b)+'i','BQsIy':_0x1667c3(0x277,0x217)+'nlabs'};function _0xad0694(_0x1a4de9,_0x28e219){return _0x435df1(_0x28e219-0xe3,_0x1a4de9);}const _0x3964c2=await _0x12339f[_0xad0694(0x14b,0x101)](loadConfig);function _0x1667c3(_0x1649a9,_0x53fa4b){return _0x435df1(_0x1649a9-0x26a,_0x53fa4b);}switch(_0x3964c2[_0x1667c3(0x1e7,0x185)+'ovide'+'r']){case _0x12339f['SBFKy']:return textToSpeechLocal;case _0x12339f['DFmIK']:return textToSpeechEdge;case _0x12339f[_0xad0694(0x89,0xde)]:return textToSpeechOpenAI;case'piper':return textToSpeechPiper;case _0x12339f[_0x1667c3(0x230,0x1f6)]:default:return textToSpeech;}}export{transcribe};export async function chat(_0x3e94ce,_0x20fee2=SESSION_USER,_0x4acb49=_0x435df1(-0xc,-0x33)){function _0x47167d(_0x5285a5,_0x19f06e){return _0x4aa89a(_0x5285a5- -0x5c0,_0x19f06e);}function _0x29229d(_0x3c8e27,_0x559188){return _0x4aa89a(_0x559188- -0x148,_0x3c8e27);}const _0x4b13fb={'SVHME':function(_0x22b643,_0x5a63be){return _0x22b643===_0x5a63be;},'SBgDO':_0x29229d(0x2b1,0x279),'Qktgw':_0x47167d(-0x1e3,-0x1b8)+_0x29229d(0x20a,0x229)+_0x47167d(-0x228,-0x20c)+_0x47167d(-0x1fa,-0x257)+_0x47167d(-0x1ec,-0x182)+_0x47167d(-0x289,-0x272)+'ief\x20a'+'nd\x20co'+_0x29229d(0x295,0x269)+_0x29229d(0x2dd,0x2ab)+_0x47167d(-0x223,-0x233)+'-2\x20se'+'ntenc'+_0x29229d(0x21a,0x270)+_0x29229d(0x27e,0x2a6),'ROwjy':_0x47167d(-0x286,-0x27e)+_0x29229d(0x1f7,0x251)+_0x29229d(0x2a2,0x23f)+_0x29229d(0x1c9,0x228)+'k]\x20','atGJi':_0x47167d(-0x275,-0x27a)+_0x47167d(-0x282,-0x2da)+_0x29229d(0x199,0x1f6),'bluWH':function(_0x120b42,_0x5d2590,_0x1ee0a3,_0x4de02a){return _0x120b42(_0x5d2590,_0x1ee0a3,_0x4de02a);},'WjQxY':_0x29229d(0x1f8,0x204),'GBPdG':_0x29229d(0x262,0x274)+_0x29229d(0x2e4,0x289)+_0x29229d(0x1fe,0x243)+'n','yZZaD':'openc'+_0x29229d(0x1f9,0x1dc),'EszjG':_0x29229d(0x232,0x215),'nSnPa':'No\x20re'+_0x29229d(0x20a,0x23a)+'e','BPSeH':function(_0x177408,_0x5447cf,_0x311d99){return _0x177408(_0x5447cf,_0x311d99);}},_0x185c84={};return _0x185c84[_0x47167d(-0x287,-0x27b)+'tries']=0x3,_0x4b13fb['BPSeH'](withRetry,async()=>{const _0xda0468=await getGatewayConfig(),_0x3286ba=_0x4b13fb[_0x5e2a76(0x4cb,0x4fa)](_0x4acb49,_0x4b13fb[_0x28ab68(-0xbc,-0x113)])?_0x4b13fb[_0x5e2a76(0x4fa,0x4c7)]:_0x4b13fb['ROwjy'],_0x19ec2d=_0x4b13fb[_0x5e2a76(0x459,0x485)],_0x2eacf0=await _0x4b13fb[_0x5e2a76(0x4c2,0x45d)](fetchWithTimeout,_0xda0468[_0x28ab68(-0x126,-0xd7)+_0x28ab68(-0x141,-0x1a5)+'L']+('/v1/c'+_0x28ab68(-0x6c,-0xd9)+'omple'+_0x5e2a76(0x43e,0x47e)),{'method':_0x4b13fb[_0x5e2a76(0x3eb,0x441)],'headers':{'Content-Type':_0x4b13fb[_0x28ab68(-0xa0,-0xe6)],'Authorization':'Beare'+'r\x20'+_0xda0468[_0x5e2a76(0x4b0,0x501)+'AY_TO'+_0x5e2a76(0x4c6,0x499)],'x-openclaw-session-key':_0x19ec2d},'body':JSON['strin'+'gify']({'model':_0x4b13fb['yZZaD'],'user':_0x20fee2,'messages':[{'role':_0x4b13fb[_0x5e2a76(0x4b8,0x504)],'content':''+_0x3286ba+_0x3e94ce}]})},REQUEST_TIMEOUT);function _0x28ab68(_0x371734,_0xb7704a){return _0x47167d(_0xb7704a-0xf8,_0x371734);}if(!_0x2eacf0['ok']){const _0x55b4bf=await _0x2eacf0[_0x28ab68(-0x13a,-0x174)]();throw new Error('Chat\x20'+_0x5e2a76(0x52d,0x4d5)+_0x5e2a76(0x40f,0x43b)+'\x20'+_0x2eacf0[_0x28ab68(-0x1ee,-0x18c)+'s']+_0x28ab68(-0x172,-0x156)+_0x55b4bf);}const _0x57b551=await _0x2eacf0[_0x28ab68(-0x1ab,-0x144)]();function _0x5e2a76(_0x46c351,_0x469beb){return _0x47167d(_0x469beb-0x6d0,_0x46c351);}return _0x57b551[_0x5e2a76(0x450,0x454)+'es']?.[-0x2*-0x6ca+0x22c9+-0x305d]?.[_0x5e2a76(0x4b3,0x495)+'ge']?.['conte'+'nt']||_0x4b13fb[_0x5e2a76(0x47e,0x4b3)];},_0x185c84);}export async function chatWithParallelTTS(_0x5d1bd0,_0x5ceaec=SESSION_USER){const _0x5234dd={'UooFc':_0xa0679e(-0x26d,-0x218),'AoMfU':function(_0x389821,_0x2ae0a4,_0x40f82e,_0x1411b2){return _0x389821(_0x2ae0a4,_0x40f82e,_0x1411b2);},'ATINP':function(_0x58fc1d,_0x4711d1){return _0x58fc1d+_0x4711d1;},'WMUiB':function(_0x464074,_0x309780){return _0x464074(_0x309780);},'iCbkH':function(_0x4dfcb1){return _0x4dfcb1();},'LKdBG':function(_0x253469,_0x55bc4a){return _0x253469+_0x55bc4a;},'SfVsm':function(_0x10b9fb,_0x2382bf){return _0x10b9fb!==_0x2382bf;},'FmGNh':_0xa0679e(-0x2a1,-0x2e5),'CLxCw':function(_0x2f4648,_0x3f4d96,_0x523178){return _0x2f4648(_0x3f4d96,_0x523178);},'EoxTP':function(_0x26c6fc,_0x5460d7){return _0x26c6fc===_0x5460d7;},'AlCWo':function(_0x17ae3e,_0x550b36,_0x1dabdc){return _0x17ae3e(_0x550b36,_0x1dabdc);},'DcwlF':_0x5647fb(-0x264,-0x1fe),'cjYxb':function(_0xf30d57,_0x50536b){return _0xf30d57+_0x50536b;},'eVjYG':function(_0x43b0d6,_0x237393){return _0x43b0d6!==_0x237393;},'AUKxI':_0xa0679e(-0x2b5,-0x2e0),'RKRyF':_0xa0679e(-0x2af,-0x2aa),'uSnDW':function(_0x4daf6c,_0x372807){return _0x4daf6c(_0x372807);},'QCNBG':_0xa0679e(-0x20f,-0x1ad)+_0x5647fb(-0x22a,-0x292)+'s','cIFAT':_0x5647fb(-0x250,-0x29f)+_0xa0679e(-0x27e,-0x245),'sLKWF':'Gener'+'ating'+_0x5647fb(-0x1c2,-0x1c7)+_0xa0679e(-0x2a0,-0x2f6),'fXofT':_0xa0679e(-0x22e,-0x256),'wiIZV':function(_0x4f12a6,_0x3fb762){return _0x4f12a6+_0x3fb762;},'UgASI':function(_0xc66037,_0x1813ae){return _0xc66037<_0x1813ae;},'THDPB':function(_0x224f3a,_0x2a3447){return _0x224f3a>=_0x2a3447;},'jYBlU':_0x5647fb(-0x218,-0x1d2)+_0xa0679e(-0x257,-0x227)+'+$','fNTFJ':function(_0x5173f1){return _0x5173f1();},'nTDMF':'[Voic'+'e\x20cha'+_0xa0679e(-0x1f9,-0x1d1)+_0xa0679e(-0x1fc,-0x1ae)+'d\x20nat'+_0xa0679e(-0x246,-0x21d)+_0xa0679e(-0x201,-0x261)+_0xa0679e(-0x230,-0x251)+_0xa0679e(-0x21d,-0x1c7)+'ional'+_0x5647fb(-0x25c,-0x2c8),'bhkRP':function(_0x537e59,_0x40d1ea,_0xde19bc,_0x3a3e7c){return _0x537e59(_0x40d1ea,_0xde19bc,_0x3a3e7c);},'DwIhc':function(_0x146aa6,_0x2273c0){return _0x146aa6!==_0x2273c0;},'UvOnQ':_0xa0679e(-0x1e9,-0x1a6),'HYsjX':_0xa0679e(-0x22b,-0x1eb),'nMcnp':'wqDCC','dHocA':_0xa0679e(-0x291,-0x25d)+']','tiQvY':_0x5647fb(-0x1b8,-0x174),'KeICP':_0x5647fb(-0x210,-0x271),'gYFcO':_0x5647fb(-0x1c7,-0x16f),'wYLwF':function(_0x2974c3,_0x52f137){return _0x2974c3>=_0x52f137;},'RKdDi':function(_0x334b71,_0xfa63eb){return _0x334b71!==_0xfa63eb;},'GomlJ':_0x5647fb(-0x235,-0x223),'CVkhq':function(_0x1f6138){return _0x1f6138();},'bojyp':function(_0x1e4db7){return _0x1e4db7();},'HQxxr':function(_0x5c4517,_0x1f9952,_0x54a09e,_0x1a4c42){return _0x5c4517(_0x1f9952,_0x54a09e,_0x1a4c42);},'uPpRY':'[Chun'+_0x5647fb(-0x238,-0x259)+_0x5647fb(-0x1ad,-0x1b2)+_0x5647fb(-0x26b,-0x203)+'espon'+_0xa0679e(-0x282,-0x25e)+_0xa0679e(-0x240,-0x281)+_0xa0679e(-0x28a,-0x293),'zSQLC':_0x5647fb(-0x21c,-0x1e4),'ISRFy':'No\x20re'+_0x5647fb(-0x20e,-0x1f1)+'e'},_0x3378cf=await _0x5234dd[_0x5647fb(-0x1e4,-0x1a8)](getGatewayConfig),_0x57a5a0=_0x5234dd[_0xa0679e(-0x21c,-0x225)],_0x1e94e7='agent'+_0xa0679e(-0x292,-0x240)+_0xa0679e(-0x292,-0x27e),_0x5e8811={};_0x5e8811['role']=_0xa0679e(-0x273,-0x220),_0x5e8811['conte'+'nt']=''+_0x57a5a0+_0x5d1bd0;function _0xa0679e(_0x494dc0,_0x3fd711){return _0x4aa89a(_0x494dc0- -0x5d0,_0x3fd711);}const _0xe15ef3={};_0xe15ef3['model']=_0x5647fb(-0x1be,-0x1de)+'law',_0xe15ef3['user']=_0x5ceaec,_0xe15ef3['strea'+'m']=!![],_0xe15ef3[_0xa0679e(-0x24b,-0x262)+'ges']=[_0x5e8811];const _0xf2982a=await _0x5234dd[_0xa0679e(-0x255,-0x213)](fetchWithTimeout,_0x3378cf[_0xa0679e(-0x1df,-0x179)+_0x5647fb(-0x26d,-0x239)+'L']+(_0xa0679e(-0x244,-0x2a0)+_0xa0679e(-0x1e1,-0x17d)+_0x5647fb(-0x1b5,-0x19b)+_0x5647fb(-0x222,-0x23d)),{'method':_0xa0679e(-0x284,-0x271),'headers':{'Content-Type':_0x5647fb(-0x1d4,-0x1f5)+_0xa0679e(-0x1ff,-0x254)+_0xa0679e(-0x245,-0x20a)+'n','Authorization':_0xa0679e(-0x261,-0x2af)+'r\x20'+_0x3378cf['GATEW'+'AY_TO'+_0x5647fb(-0x207,-0x20d)],'x-openclaw-session-key':_0x1e94e7},'body':JSON[_0x5647fb(-0x1fb,-0x241)+'gify'](_0xe15ef3)},REQUEST_TIMEOUT);if(!_0xf2982a['ok']){const _0x1b9925=await _0xf2982a[_0xa0679e(-0x27c,-0x20f)]();throw new Error(_0xa0679e(-0x204,-0x1e1)+_0x5647fb(-0x1cb,-0x203)+_0x5647fb(-0x265,-0x269)+'\x20'+_0xf2982a[_0x5647fb(-0x254,-0x255)+'s']+_0xa0679e(-0x25e,-0x2cb)+_0x1b9925);}let _0x43f7a9='',_0x26f45f=0x1008+-0x26ec+0x16e4;const _0x5c5ce9=[];let _0x52bc33=[],_0x4c13c1=-0x1c5c+0x24e7+-0x88b,_0x3ee9ab=!![];const _0x28a689=-0x3*-0xa33+-0x1*0x1b71+0x260*-0x1,_0x14b1fa=0x14d5+0x21cf+0x36a1*-0x1;function _0x5f543c(){const _0x8bb616={'WFTQN':function(_0x3aa44f,_0x1f6fa9){function _0x42eea7(_0x24cce2,_0x1b7fed){return _0x1d9d(_0x1b7fed- -0x129,_0x24cce2);}return _0x5234dd[_0x42eea7(-0x3e,-0x1a)](_0x3aa44f,_0x1f6fa9);},'cHOOD':function(_0x38c561,_0x1c1872){function _0x1d6906(_0x184ee7,_0xa1bec5){return _0x1d9d(_0xa1bec5- -0x177,_0x184ee7);}return _0x5234dd[_0x1d6906(-0x64,-0x4b)](_0x38c561,_0x1c1872);},'ybAjt':function(_0x55d128){function _0x2462c7(_0xea9d8b,_0xadb014){return _0x1d9d(_0xadb014-0x29d,_0xea9d8b);}return _0x5234dd[_0x2462c7(0x3ad,0x36c)](_0x55d128);},'mlUnG':function(_0x5870af,_0x4d1adb,_0xfa4588,_0x450b67){function _0x53f085(_0xbbb93a,_0x37bbcd){return _0x1d9d(_0xbbb93a- -0x14d,_0x37bbcd);}return _0x5234dd[_0x53f085(-0x3a,-0x5b)](_0x5870af,_0x4d1adb,_0xfa4588,_0x450b67);},'wRDIE':function(_0x49692f,_0x135315){return _0x5234dd['LKdBG'](_0x49692f,_0x135315);},'Ifcge':function(_0x23ff54,_0x2d158b){function _0x4bbb4f(_0x301450,_0x43bd0c){return _0x1d9d(_0x301450- -0x8,_0x43bd0c);}return _0x5234dd[_0x4bbb4f(0x87,0xb8)](_0x23ff54,_0x2d158b);},'PWcQR':_0x5234dd['FmGNh'],'aSgrv':function(_0x3e2450,_0x51b8eb,_0x1f9618){return _0x5234dd['CLxCw'](_0x3e2450,_0x51b8eb,_0x1f9618);}};function _0x20ed15(_0x99d5d7,_0x2ee66a){return _0x5647fb(_0x99d5d7-0x5ea,_0x2ee66a);}if(_0x5234dd[_0x20ed15(0x3e0,0x445)](_0x52bc33['lengt'+'h'],-0x10f*0x1c+-0x1b3+0x1f57))return;function _0x100968(_0x3dde48,_0x9b61ca){return _0x5647fb(_0x9b61ca- -0xd0,_0x3dde48);}const _0x151eac=_0x52bc33['join']('\x20'),_0x32f670=_0x5c5ce9[_0x20ed15(0x436,0x46e)+'h'];_0x5234dd[_0x100968(-0x2f9,-0x30b)](log,_0x5234dd[_0x20ed15(0x409,0x44a)],_0x100968(-0x2dd,-0x30a)+_0x20ed15(0x3b2,0x3a3)+_0x100968(-0x277,-0x2b8)+'hunk\x20'+_0x5234dd[_0x20ed15(0x40c,0x434)](_0x32f670,0x1*-0x465+-0x1*-0xa1+0x3c5*0x1)+'\x20('+_0x52bc33[_0x100968(-0x2b7,-0x284)+'h']+(_0x100968(-0x316,-0x2cc)+_0x100968(-0x305,-0x2d3)+',\x20')+_0x151eac[_0x20ed15(0x436,0x449)+'h']+(_0x20ed15(0x379,0x3bc)+_0x20ed15(0x3fe,0x3dd))+_0x151eac['subst'+'ring'](-0xb04+-0xc9a*-0x1+-0x196,0x87+-0x15ae+-0x1*-0x1577)+_0x20ed15(0x3cd,0x394));if(_0x5234dd[_0x20ed15(0x3e0,0x3c0)](_0x32f670,-0xcce+0x260*-0xd+-0x1*-0x2bae)){if(_0x5234dd[_0x20ed15(0x38d,0x35b)](_0x5234dd['AUKxI'],_0x100968(-0x34e,-0x345))){const _0x5d1c6b=_0x5d41fb[_0x100968(-0x28c,-0x2a0)](_0x1d9d07),_0x21fc4c=_0x8bb616[_0x20ed15(0x3a1,0x3d5)](_0x5b7565,_0x5d1c6b);if(_0x21fc4c){const _0x581f2c=_0x21fc4c[_0x100968(-0x2c4,-0x304)+'nce'],_0x4e457e=_0x8bb616[_0x20ed15(0x38f,0x367)](_0x5d1c6b[_0x20ed15(0x378,0x386)+'Of'](_0x581f2c),_0x581f2c[_0x100968(-0x283,-0x284)+'h']);_0x4788dd+=_0x4e457e;while(_0x29d97c<_0x1bdbb1[_0x100968(-0x247,-0x284)+'h']&&/\s/[_0x20ed15(0x41c,0x468)](_0x340d58[_0x3de36a]))_0x2d529d++;_0x4c6f62[_0x20ed15(0x3dd,0x408)](_0x581f2c),_0x1d024e+=_0x581f2c[_0x100968(-0x280,-0x284)+'h'],(_0x2e003f||_0x3d023f>=_0x1c10f3||_0xa38d18[_0x20ed15(0x436,0x43f)+'h']>=_0x46ecac)&&_0x8bb616[_0x100968(-0x2ef,-0x2bf)](_0x47d2f8);}else _0xb76860=![];}else try{if(_0x5234dd[_0x100968(-0x345,-0x339)](_0x5234dd['RKRyF'],_0x20ed15(0x37b,0x3b2)))return _0x8bb616[_0x20ed15(0x3ec,0x407)](_0x2b3dc7,_0x20ed15(0x3fc,0x3b9),_0x100968(-0x32b,-0x30a)+'ked\x20T'+_0x100968(-0x2ef,-0x2b8)+_0x20ed15(0x427,0x400)+_0x8bb616[_0x100968(-0x27d,-0x2b0)](_0xda3460,-0x846+0x1*-0x1b49+0x2390)+('\x20fail'+_0x20ed15(0x43f,0x3df)),_0x34974c[_0x100968(-0x2d4,-0x2db)+'ge']),null;else _0x5234dd[_0x100968(-0x29c,-0x28b)](broadcastToAll,{'type':_0x5234dd[_0x100968(-0x298,-0x2a5)],'stage':_0x5234dd[_0x100968(-0x2e9,-0x338)],'label':_0x5234dd[_0x100968(-0x38f,-0x328)]});}catch(_0x4589da){}}const _0xd7b1a3=(async()=>{function _0x6ecce5(_0x9fb176,_0x5d55b6){return _0x100968(_0x9fb176,_0x5d55b6-0xbd);}function _0x5d8437(_0x326abf,_0x42661b){return _0x100968(_0x42661b,_0x326abf-0x752);}if(_0x8bb616[_0x5d8437(0x46f,0x4b3)](_0x5d8437(0x421,0x473),_0x8bb616[_0x5d8437(0x4b0,0x46a)])){const _0x38a0e2={};return _0x38a0e2[_0x6ecce5(-0x181,-0x1b2)+_0x5d8437(0x415,0x439)+'L']=_0x35951b,_0x38a0e2[_0x6ecce5(-0x1d7,-0x1b2)+_0x6ecce5(-0x1a1,-0x1dc)+_0x6ecce5(-0x261,-0x21a)]='',_0x38a0e2;}else{const _0x3a8c62=await _0x8bb616['ybAjt'](getTTSFunction);return _0x8bb616[_0x6ecce5(-0x1b6,-0x1c2)](_0x3a8c62,_0x151eac,AUDIO_OUTPUT_DIR);}})()[_0x100968(-0x23b,-0x278)](_0x28a172=>{function _0xe2dcfa(_0x2f9674,_0x14d5b1){return _0x100968(_0x14d5b1,_0x2f9674-0x5fe);}function _0x7d89c1(_0x693235,_0x22de24){return _0x100968(_0x22de24,_0x693235-0x6b1);}if(_0x5234dd[_0xe2dcfa(0x318,0x307)]===_0x7d89c1(0x39a,0x351))_0x5d3227[_0x7d89c1(0x393,0x332)+'seLoc'+'k']();else return _0x5234dd[_0xe2dcfa(0x349,0x39e)](log,_0xe2dcfa(0x340,0x316),'[Chun'+_0xe2dcfa(0x2f6,0x296)+_0x7d89c1(0x3f9,0x3ef)+'hunk\x20'+_0x5234dd[_0xe2dcfa(0x362,0x3ae)](_0x32f670,0x4*0x849+-0xb*0x136+-0x13d1)+(_0xe2dcfa(0x36e,0x34e)+_0x7d89c1(0x436,0x443)),_0x28a172[_0x7d89c1(0x3d6,0x440)+'ge']),null;});_0x5c5ce9['push'](_0xd7b1a3),_0x52bc33=[],_0x4c13c1=-0xf62+0x10c*-0x10+0x2022,_0x3ee9ab=![];}const _0x12d402=_0xf2982a[_0x5647fb(-0x1f6,-0x192)]['getRe'+'ader'](),_0x2e51b1=new TextDecoder();let _0x17a74b='';try{if(_0x5234dd['DwIhc'](_0x5234dd['UvOnQ'],_0xa0679e(-0x227,-0x1c7)))while(!![]){if(_0x5234dd[_0xa0679e(-0x24a,-0x2b2)](_0x5647fb(-0x1eb,-0x20b),_0x5234dd[_0x5647fb(-0x253,-0x227)])){const {done:_0x360a66,value:_0x2aceb2}=await _0x12d402[_0x5647fb(-0x22e,-0x25e)]();if(_0x360a66)break;const _0xbccba8={};_0xbccba8[_0xa0679e(-0x239,-0x28e)+'m']=!![],_0x17a74b+=_0x2e51b1[_0x5647fb(-0x24f,-0x21e)+'e'](_0x2aceb2,_0xbccba8);const _0x2e61c9=_0x17a74b[_0xa0679e(-0x272,-0x292)]('\x0a');_0x17a74b=_0x2e61c9[_0x5647fb(-0x23f,-0x251)]()||'';for(const _0x465642 of _0x2e61c9){if(_0x465642['start'+_0xa0679e(-0x22a,-0x220)](_0xa0679e(-0x2b4,-0x27f)+'\x20')){if(_0x5234dd[_0xa0679e(-0x288,-0x2dc)]===_0xa0679e(-0x266,-0x20c)){const _0x12a1df=_0x465642[_0xa0679e(-0x210,-0x1e0)](-0xa3f+-0x1af5+0x253a);if(_0x5234dd['EoxTP'](_0x12a1df,_0x5234dd[_0x5647fb(-0x208,-0x1b1)]))continue;try{const _0x397d58=JSON[_0xa0679e(-0x2a6,-0x28f)](_0x12a1df),_0x5469ce=_0x397d58[_0xa0679e(-0x28c,-0x2e3)+'es']?.[-0x246*0xb+-0x1*0x125+-0x53b*-0x5]?.[_0xa0679e(-0x26b,-0x292)]?.[_0x5647fb(-0x1e2,-0x218)+'nt']||'';if(_0x5469ce){_0x43f7a9+=_0x5469ce;let _0x3109ff=!![];while(_0x3109ff){if(_0x5234dd[_0xa0679e(-0x24a,-0x1f0)](_0xa0679e(-0x28d,-0x2d9),_0x5234dd[_0xa0679e(-0x216,-0x1d8)]))return _0x2352af(_0x5234dd[_0xa0679e(-0x270,-0x2be)],_0x5647fb(-0x23a,-0x279)+'ked\x20T'+_0x5647fb(-0x1ad,-0x168)+'inal\x20'+_0xa0679e(-0x2b0,-0x293)+_0xa0679e(-0x200,-0x241)+'ed:',_0x3db667['messa'+'ge']),null;else{const _0x4a5a36=_0x43f7a9['slice'](_0x26f45f),_0x29f50b=extractFirstSentence(_0x4a5a36);if(_0x29f50b){if(_0x5234dd[_0xa0679e(-0x231,-0x250)]!==_0x5234dd[_0x5647fb(-0x25e,-0x1f1)]){const _0x2f638b=_0x29f50b['sente'+_0x5647fb(-0x214,-0x24d)],_0x448d2f=_0x5234dd[_0x5647fb(-0x201,-0x24d)](_0x4a5a36[_0xa0679e(-0x2b2,-0x2f0)+'Of'](_0x2f638b),_0x2f638b['lengt'+'h']);_0x26f45f+=_0x448d2f;while(_0x5234dd['UgASI'](_0x26f45f,_0x43f7a9[_0xa0679e(-0x1f4,-0x227)+'h'])&&/\s/[_0x5647fb(-0x1ce,-0x18e)](_0x43f7a9[_0x26f45f]))_0x26f45f++;_0x52bc33[_0x5647fb(-0x20d,-0x1a0)](_0x2f638b),_0x4c13c1+=_0x2f638b['lengt'+'h'],(_0x3ee9ab||_0x5234dd[_0xa0679e(-0x1e3,-0x1e1)](_0x4c13c1,_0x28a689)||_0x5234dd[_0xa0679e(-0x1f7,-0x252)](_0x52bc33[_0x5647fb(-0x1b4,-0x1b1)+'h'],_0x14b1fa))&&_0x5f543c();}else _0x2aa541=![];}else _0x3109ff=![];}}}}catch(_0x12a033){}}else{const _0x30ce7e=_0x31b546[_0x5647fb(-0x234,-0x22f)+'nce'],_0x2120a0=_0x5234dd['wiIZV'](_0x3ae6ef['index'+'Of'](_0x30ce7e),_0x30ce7e[_0x5647fb(-0x1b4,-0x1cf)+'h']);_0x2f3ead+=_0x2120a0;while(_0x5234dd['UgASI'](_0x40b712,_0x5b4bad[_0x5647fb(-0x1b4,-0x1db)+'h'])&&/\s/[_0x5647fb(-0x1ce,-0x1d2)](_0x1047de[_0x58d685]))_0x2393d8++;_0x1486f8[_0x5647fb(-0x20d,-0x1a9)](_0x30ce7e),_0x2861c1+=_0x30ce7e['lengt'+'h'],(_0x4ab46a||_0x5234dd[_0xa0679e(-0x1e3,-0x233)](_0x25210e,_0x3847e2)||_0x5234dd[_0xa0679e(-0x1e3,-0x196)](_0x567b1f[_0xa0679e(-0x1f4,-0x240)+'h'],_0x55c623))&&_0x5234dd[_0x5647fb(-0x229,-0x287)](_0x264242);}}}}else return _0x4dc654[_0x5647fb(-0x1c5,-0x1f9)+_0x5647fb(-0x23e,-0x27e)]()[_0xa0679e(-0x259,-0x227)+'h'](_0x5647fb(-0x218,-0x24f)+_0x5647fb(-0x217,-0x259)+'+$')[_0xa0679e(-0x205,-0x1bd)+_0x5647fb(-0x23e,-0x1d8)]()[_0xa0679e(-0x1ec,-0x1ed)+'ructo'+'r'](_0x49a7b9)['searc'+'h'](jeaoUm[_0xa0679e(-0x1fa,-0x1e6)]);}else{const _0x1eb382={};_0x1eb382['type']=_0x5234dd['QCNBG'],_0x1eb382[_0xa0679e(-0x23f,-0x228)]=_0x5234dd[_0x5647fb(-0x268,-0x24d)],_0x1eb382['label']=_0x5234dd['sLKWF'],_0x110714(_0x1eb382);}}finally{if(_0x5234dd['RKdDi'](_0x5234dd[_0x5647fb(-0x240,-0x206)],_0x5234dd['GomlJ']))try{const _0x32a34e={};_0x32a34e[_0x5647fb(-0x1fa,-0x218)]=_0x5234dd[_0xa0679e(-0x215,-0x1dc)],_0x32a34e[_0x5647fb(-0x1ff,-0x228)]=_0x5234dd[_0x5647fb(-0x268,-0x274)],_0x32a34e[_0xa0679e(-0x268,-0x262)]=_0x5234dd[_0xa0679e(-0x298,-0x287)],_0x3038ca(_0x32a34e);}catch(_0x196e1a){}else _0x12d402[_0x5647fb(-0x24e,-0x290)+_0xa0679e(-0x27d,-0x21a)+'k']();}_0x5234dd[_0xa0679e(-0x1e7,-0x254)](_0x5f543c);const _0x4e8b82=_0x43f7a9[_0xa0679e(-0x210,-0x1ee)](_0x26f45f)[_0x5647fb(-0x20f,-0x1d5)]();if(_0x4e8b82){const _0x2ab0c8=_0x5c5ce9[_0x5647fb(-0x1b4,-0x187)+'h'];_0x5234dd[_0xa0679e(-0x27b,-0x294)](log,_0x5234dd[_0x5647fb(-0x1e1,-0x238)],'[Chun'+_0x5647fb(-0x238,-0x1f1)+'TS]\x20F'+_0x5647fb(-0x1f5,-0x1c6)+_0x5647fb(-0x270,-0x293)+'\x20'+_0x5234dd['ATINP'](_0x2ab0c8,-0x3eb*0x6+-0x1188+0x229*0x13)+_0x5647fb(-0x25a,-0x273)+_0x4e8b82+'\x22');const _0xacc986=(async()=>{function _0x36689e(_0x323f44,_0x396b3f){return _0x5647fb(_0x323f44- -0x1e,_0x396b3f);}function _0x2db68e(_0x510004,_0x1820fa){return _0x5647fb(_0x1820fa-0x153,_0x510004);}const _0x3030ac=await _0x5234dd[_0x2db68e(-0xf8,-0xd6)](getTTSFunction);return _0x5234dd[_0x36689e(-0x212,-0x1d5)](_0x3030ac,_0x4e8b82,AUDIO_OUTPUT_DIR);})()[_0x5647fb(-0x1a8,-0x16a)](_0x1b163f=>{function _0x5d8614(_0x31958f,_0x1178a1){return _0x5647fb(_0x31958f-0x6c0,_0x1178a1);}function _0x3e6eff(_0x3991ac,_0xbfc515){return _0x5647fb(_0x3991ac-0xbc,_0xbfc515);}return _0x5234dd[_0x5d8614(0x4db,0x4a6)](log,_0x5234dd[_0x5d8614(0x490,0x48e)],_0x5d8614(0x486,0x474)+_0x5d8614(0x488,0x4d0)+_0x5d8614(0x513,0x56c)+_0x3e6eff(-0x139,-0x16f)+_0x5d8614(0x450,0x482)+'\x20fail'+_0x5d8614(0x515,0x51a),_0x1b163f[_0x3e6eff(-0x14f,-0x189)+'ge']),null;});_0x5c5ce9[_0x5647fb(-0x20d,-0x1f4)](_0xacc986);}if(_0x5234dd['EoxTP'](_0x5c5ce9[_0x5647fb(-0x1b4,-0x155)+'h'],0x8*-0x11b+0xac8+-0x1f0)&&_0x43f7a9)try{const _0x1b48a8=await _0x5234dd[_0xa0679e(-0x26c,-0x2c8)](getTTSFunction),_0x4b37e4=await _0x1b48a8(_0x43f7a9,AUDIO_OUTPUT_DIR);_0x5c5ce9[_0x5647fb(-0x20d,-0x211)](Promise[_0x5647fb(-0x1c6,-0x18d)+'ve'](_0x4b37e4));}catch(_0x6f6fba){_0x5234dd[_0x5647fb(-0x1e6,-0x22e)](log,_0x5234dd['fXofT'],_0x5234dd[_0xa0679e(-0x271,-0x249)],_0x6f6fba['messa'+'ge']);}const _0xe7e7a5=(await Promise[_0x5647fb(-0x262,-0x288)](_0x5c5ce9))[_0xa0679e(-0x26f,-0x2c8)+'r'](Boolean);_0x5234dd[_0xa0679e(-0x234,-0x222)](log,_0x5234dd[_0x5647fb(-0x225,-0x1f2)],_0xa0679e(-0x27a,-0x239)+_0xa0679e(-0x278,-0x2d1)+'TS]\x20G'+'enera'+_0x5647fb(-0x1da,-0x1fd)+_0xe7e7a5['lengt'+'h']+(_0xa0679e(-0x264,-0x240)+'o\x20chu'+'nks\x20f'+_0xa0679e(-0x281,-0x2bd)+'spons'+'e'));function _0x5647fb(_0x326db4,_0x199a08){return _0x4aa89a(_0x326db4- -0x590,_0x199a08);}const _0xea8699={};return _0xea8699[_0x5647fb(-0x1b1,-0x1cc)+'nse']=_0x43f7a9||_0x5234dd['ISRFy'],_0xea8699[_0x5647fb(-0x237,-0x22b)+'Url']=_0xe7e7a5[0x801+0x1103+-0x1904*0x1]||null,_0xea8699[_0x5647fb(-0x237,-0x1ea)+_0x5647fb(-0x1a0,-0x174)]=_0xe7e7a5,_0xea8699;}export async function generateTTS(_0x8b5e7){const _0x225d60={'RZTix':function(_0x8d0134){return _0x8d0134();},'zEJum':function(_0x549d34,_0x117a14,_0xcaa17d){return _0x549d34(_0x117a14,_0xcaa17d);}},_0x175cc9=await _0x225d60[_0x25a102(0x216,0x1bf)](getTTSFunction);function _0x25a102(_0x43d07d,_0x3c04dd){return _0x4aa89a(_0x43d07d- -0x1bd,_0x3c04dd);}return _0x225d60['zEJum'](_0x175cc9,_0x8b5e7,AUDIO_OUTPUT_DIR);}
1
+ (function(_0x5006fb,_0x39dadd){const _0x95b2b2=_0x5006fb();function _0x26bea8(_0x1ba8f7,_0x1f61c6){return _0x4004(_0x1ba8f7- -0x17d,_0x1f61c6);}function _0x399d0e(_0x221c95,_0x4d3c05){return _0x4004(_0x221c95-0x273,_0x4d3c05);}while(!![]){try{const _0x2c908b=-parseInt(_0x26bea8(0x5a,0x77))/(-0x1918+-0x1*-0x3+0x1916)+parseInt(_0x399d0e(0x407,0x3f1))/(-0xc6e+-0x71*0x16+0x1626)*(-parseInt(_0x399d0e(0x40f,0x42d))/(-0x1*0x199e+-0x1c66+0x3607))+parseInt(_0x26bea8(0x1a,0x36))/(0x1c1b+-0xdb6+-0xe61)*(parseInt(_0x399d0e(0x3f5,0x41e))/(-0x23c8+-0x116+0x7*0x545))+-parseInt(_0x26bea8(0xba,0x74))/(-0x167*-0x4+-0x1*-0x1b1d+-0x20b3)*(parseInt(_0x399d0e(0x4ac,0x4a5))/(-0x1e6+0x3*0xfa+-0x1*0x101))+parseInt(_0x399d0e(0x48f,0x442))/(0x1b72+0xb28+0x1*-0x2692)+-parseInt(_0x26bea8(0x6d,0xa7))/(-0x2431+-0x2022+0x14*0x36b)*(-parseInt(_0x26bea8(0x53,0x8f))/(0xd*-0x2e+-0x2621+-0x1*-0x2881))+parseInt(_0x26bea8(-0x11,-0x2a))/(-0x99*0x3b+-0xe*0x11b+0x32c8);if(_0x2c908b===_0x39dadd)break;else _0x95b2b2['push'](_0x95b2b2['shift']());}catch(_0x2c8995){_0x95b2b2['push'](_0x95b2b2['shift']());}}}(_0x3b82,-0x1a*0xa70+-0x34978+-0x10*-0x13283));const _0x4234e3=(function(){function _0x326e8a(_0x179fd1,_0x5aba1a){return _0x4004(_0x5aba1a- -0x39d,_0x179fd1);}const _0x10c614={'hWpnO':function(_0x49bc21,_0x519e7e){return _0x49bc21===_0x519e7e;},'mgczh':'lXGXy','heIZn':_0x326e8a(-0x178,-0x19c),'rgyPa':function(_0x577e8e,_0x53a7e3,_0x3aed8c,_0xfff292){return _0x577e8e(_0x53a7e3,_0x3aed8c,_0xfff292);},'Nxhnw':function(_0x4b704b,_0x484bd9){return _0x4b704b+_0x484bd9;}};let _0x2b94b5=!![];return function(_0x475016,_0x47cff5){function _0x436094(_0x1a351b,_0xaf2d26){return _0x326e8a(_0xaf2d26,_0x1a351b-0x5cd);}const _0x3dad44={'UbGkW':function(_0x1a3479,_0x847bad,_0x426a91,_0x5c0428){function _0x50c1f0(_0x171fa3,_0x552829){return _0x4004(_0x552829- -0x17f,_0x171fa3);}return _0x10c614[_0x50c1f0(0xbd,0x8f)](_0x1a3479,_0x847bad,_0x426a91,_0x5c0428);},'DfYTe':_0x436094(0x450,0x487),'HIPGB':function(_0x1a0f97,_0xa2b5b){return _0x10c614['Nxhnw'](_0x1a0f97,_0xa2b5b);}},_0x37282a=_0x2b94b5?function(){function _0x1a8b55(_0x9aa0a5,_0x4ebc6e){return _0x436094(_0x4ebc6e- -0x55f,_0x9aa0a5);}function _0x651213(_0x454fce,_0x154970){return _0x436094(_0x154970- -0x41e,_0x454fce);}if(_0x10c614[_0x1a8b55(-0x1b7,-0x173)](_0x10c614[_0x1a8b55(-0x16b,-0x10d)],_0x10c614['heIZn']))return _0x3dad44[_0x1a8b55(-0x206,-0x1ac)](_0x5354e8,_0x3dad44[_0x1a8b55(-0x158,-0xfc)],_0x1a8b55(-0xdf,-0x110)+_0x651213(-0x48,-0x69)+'TS]\x20C'+_0x651213(0x17,0x4f)+_0x3dad44[_0x1a8b55(-0x1f7,-0x197)](_0x5ec799,-0x17ea+0x1472*0x1+0x379)+('\x20fail'+_0x1a8b55(-0x188,-0x138)),_0x4420d1[_0x651213(0x2a,-0x37)+'ge']),null;else{if(_0x47cff5){if(_0x651213(-0x94,-0x4a)===_0x651213(-0xc6,-0x7a)){const _0x4a0fe3={};return _0x4a0fe3[_0x651213(0x3c,0x4e)+_0x651213(0x1c,0x18)+'L']=_0x1ecd2f,_0x4a0fe3[_0x651213(0x69,0x4e)+_0x1a8b55(-0x110,-0x127)+_0x1a8b55(-0x1d9,-0x1af)]='',_0x4a0fe3;}else{const _0x3da262=_0x47cff5[_0x1a8b55(-0x223,-0x1cb)](_0x475016,arguments);return _0x47cff5=null,_0x3da262;}}}}:function(){};return _0x2b94b5=![],_0x37282a;};}()),_0x1c2bb6=_0x4234e3(this,function(){const _0x359c8f={};_0x359c8f[_0x41da71(0x57b,0x54f)]=_0x27f390(-0x1d8,-0x1a1)+_0x41da71(0x605,0x5e6)+'+$';const _0x57976b=_0x359c8f;function _0x27f390(_0x2363af,_0xc038b1){return _0x4004(_0xc038b1- -0x3a6,_0x2363af);}function _0x41da71(_0x264a3b,_0xd1e211){return _0x4004(_0x264a3b-0x3db,_0xd1e211);}return _0x1c2bb6[_0x41da71(0x60f,0x66d)+_0x41da71(0x606,0x604)]()[_0x27f390(-0x19b,-0x1df)+'h'](_0x57976b[_0x41da71(0x57b,0x55e)])[_0x41da71(0x60f,0x5b9)+_0x27f390(-0x18c,-0x17b)]()[_0x41da71(0x54e,0x551)+_0x27f390(-0x199,-0x1fa)+'r'](_0x1c2bb6)[_0x41da71(0x5a2,0x53e)+'h'](_0x41da71(0x5e0,0x601)+')+)+)'+'+$');});_0x1c2bb6();import _0x30e2fa from'fs/promises';import _0x242f38 from'path';import{log,fetchWithTimeout,withRetry}from'./utils.js';function _0x3b82(){const _0x5be20e=['erBMZ','...\x22','conte','bVzXa','t\x20-\x20r','bgiDK','appli','HBeod','30700JREzOW','IFCTG','jBVYG','tions','Urls','sWith','ufXcp','1535474aQmaei','openc','piper','gkAWv','\x20via\x20','aSLsH','led:','seLoc','nce','pop','k]\x20','TS]\x20C','ttsPr','AyjId','RBfrW','data:','bwOLq','respo','CfHgK','5211lFnXtD','o\x20chu','json','Gener','role','publi','inal\x20','rkubT','espon','XFmSC','se\x20TT','tries','zQFcA','ed:','ating','S\x20fai','UqxzJ','oWSqQ','omple','EdSvY','vlYcV','\x20audi','trim','UVysh','bngiC','delta','push','(((.+','AY_UR','se\x20br','AY_TO','relea','BBEKJ','WHbCF','y\x20and','dozXy','rgyPa','lGfql','yeYyI','nKllM','gify','xXDPV','API\x20e','Chat\x20','aPBXd','/v1/c','subst','Url','agent','QqXAi','3499096kJgJAn','pOWcj','KHCgO','[Chun','error','ly]\x20','mgczh','Uplin','user','McYCv','maxRe','filte','djKWu','audio',')+)+)','ing','TS]\x20F','VxJCk','ayUrl','gXoTS','wMcGu','sJQdY','HJXkD','DfYTe','toStr','nse','\x20char','33660TVYJqv','enera','2121kTQllC','tkRsD','all','GATEW','hunk\x20','lengt','sente','apply','IGJvM','index','slice','local','resol','zTtFW','n/jso','32691846gZzsMg','statu','jMxie','NtcAI','eFaOu','speak','eep\x20r','const','NjMgK','POST','voice','Beare','PIZsr','rror:','\x20conv','opena','choic','start','wYZMO','read','KEN','ges','85NpKQYw','UbGkW','eleve','ked\x20T','wWsat','Jtoqo','ted\x20','e\x20cha','IAGoP','[Text','-2\x20se','test','ader','nTCQh','\x20-\x20','or\x20re','t\x20-\x20k','\x20chat','114PfIFDV','aYouJ','OhIjU','36912AhYkVo','HIPGB','nvers','xYSTR','ayTok','59889Mfjbrv','QBQAo','x]\x20','uKkNO','bUJjp','PpZki','[Voic','model','Cfntz','YontK','tFdmV','[DONE','nks\x20f','No\x20re','info','strin','ructo','ch...','uMPkY','catch','\x20fail','rmHeP',':\x20\x22','mOcOM','strea','s):\x20\x22','\x20spee','messa','getRe','spons','\x20sent','ences','hWpnO','gXZsg','text','ring','gatew','MjMle','chunk','ull\x20r','nd\x20co',':main','oaFum','searc'];_0x3b82=function(){return _0x5be20e;};return _0x3b82();}function _0x4a5b85(_0x454b63,_0x5e7480){return _0x4004(_0x454b63- -0x29b,_0x5e7480);}import{textToSpeech,textToSpeechLocal,textToSpeechEdge,textToSpeechOpenAI,textToSpeechPiper,extractFirstSentence}from'./tts.js';import{GATEWAY_URL as _0x1aa16c,ROOT_DIR,SESSION_USER,REQUEST_TIMEOUT}from'./config.js';import{loadConfig}from'./runtime-config.js';async function getGatewayConfig(){function _0x1ba7e6(_0x471bb5,_0x173746){return _0x4004(_0x173746- -0xc7,_0x471bb5);}function _0x3d3868(_0x1a1882,_0x28172f){return _0x4004(_0x28172f- -0x117,_0x1a1882);}try{const _0xd189bd=await loadConfig(),_0x11fa2d={};return _0x11fa2d[_0x3d3868(0x18d,0x125)+_0x3d3868(0x12b,0xef)+'L']=_0xd189bd[_0x1ba7e6(0x15a,0xf9)+_0x3d3868(0xb3,0x117)]||_0x1aa16c,_0x11fa2d[_0x1ba7e6(0x114,0x175)+_0x3d3868(0xe4,0xf1)+_0x1ba7e6(0x97,0xb9)]=_0xd189bd[_0x3d3868(0xa1,0xa9)+_0x3d3868(0x5d,0x84)+'en']||'',_0x11fa2d;}catch{const _0xf354d2={};return _0xf354d2[_0x1ba7e6(0x1a6,0x175)+_0x3d3868(0xe8,0xef)+'L']=_0x1aa16c,_0xf354d2[_0x3d3868(0xd7,0x125)+_0x3d3868(0x136,0xf1)+_0x3d3868(0x84,0x69)]='',_0xf354d2;}}import{transcribe}from'./stt/index.js';import{broadcastToAll}from'./websocket/index.js';const AUDIO_OUTPUT_DIR=_0x242f38['join'](ROOT_DIR,_0x1fc6b5(0x462,0x40d)+'c',_0x1fc6b5(0x49c,0x505));async function getTTSFunction(){const _0x1ecc0a={};_0x1ecc0a[_0x3fb4ad(-0x1bf,-0x20c)]='edge';function _0x3fb4ad(_0x2917ce,_0x18ec7c){return _0x1fc6b5(_0x2917ce- -0x59c,_0x18ec7c);}function _0x1bb192(_0x18e324,_0x329548){return _0x1fc6b5(_0x329548- -0x188,_0x18e324);}_0x1ecc0a[_0x1bb192(0x364,0x31a)]=_0x3fb4ad(-0x1ae,-0x141)+'i',_0x1ecc0a[_0x1bb192(0x23a,0x291)]=_0x1bb192(0x26a,0x2c4),_0x1ecc0a[_0x1bb192(0x2de,0x2e9)]=_0x1bb192(0x269,0x26f)+'nlabs';const _0x32dcb0=_0x1ecc0a,_0x221d5=await loadConfig();switch(_0x221d5[_0x3fb4ad(-0x146,-0x1a8)+'ovide'+'r']){case _0x1bb192(0x225,0x253):return textToSpeechLocal;case _0x32dcb0['zTtFW']:return textToSpeechEdge;case _0x32dcb0[_0x1bb192(0x2fd,0x31a)]:return textToSpeechOpenAI;case _0x32dcb0[_0x3fb4ad(-0x183,-0x16a)]:return textToSpeechPiper;case _0x32dcb0[_0x3fb4ad(-0x12b,-0x145)]:default:return textToSpeech;}}export{transcribe};function _0x4004(_0x1773f4,_0x3f73bb){_0x1773f4=_0x1773f4-(-0x36*0x9c+0x1*-0x1d2+-0x2e*-0xc9);const _0x3afe43=_0x3b82();let _0x49d780=_0x3afe43[_0x1773f4];return _0x49d780;}function _0x1fc6b5(_0x443c93,_0x1b63c5){return _0x4004(_0x443c93-0x273,_0x1b63c5);}export async function chat(_0x17817f,_0x29c1cd=SESSION_USER,_0x170d4e=_0x4a5b85(-0x125,-0x139)){function _0x4f6b9d(_0x38376e,_0x37d50c){return _0x4a5b85(_0x37d50c-0x662,_0x38376e);}const _0x3488a6={'wWsat':function(_0x251f72,_0x38d622){return _0x251f72(_0x38d622);},'RBfrW':'voice'+'Statu'+'s','IGJvM':_0x4f6b9d(0x4ec,0x538)+_0x4f6b9d(0x5bb,0x5f2),'hVYGS':_0x4f6b9d(0x617,0x5b4)+_0x553b9b(0x535,0x527)+_0x553b9b(0x4f3,0x509)+_0x553b9b(0x4ea,0x4ee),'bngiC':function(_0x533ed0,_0x49a52a){return _0x533ed0!==_0x49a52a;},'aPBXd':_0x4f6b9d(0x5d9,0x594),'HJXkD':function(_0x3713f0,_0x4b5ba4){return _0x3713f0===_0x4b5ba4;},'LdEGZ':_0x4f6b9d(0x5fb,0x59f)+'law','dozXy':'aSLsH','aYouJ':function(_0x2f2d1b,_0x5ab9bf,_0x16d1d0){return _0x2f2d1b(_0x5ab9bf,_0x16d1d0);}},_0xb23d6d={};_0xb23d6d[_0x553b9b(0x563,0x59c)+_0x4f6b9d(0x5a1,0x5bc)]=0x3;function _0x553b9b(_0x150c6f,_0x513cce){return _0x4a5b85(_0x150c6f-0x5d8,_0x513cce);}return _0x3488a6[_0x553b9b(0x4d2,0x4dd)](withRetry,async()=>{function _0x81021b(_0x11cb7c,_0x28948d){return _0x553b9b(_0x11cb7c- -0x1d8,_0x28948d);}function _0x592410(_0x16a50c,_0x559da5){return _0x553b9b(_0x559da5- -0x20e,_0x16a50c);}if(_0x3488a6[_0x81021b(0x367,0x39e)](_0x3488a6[_0x81021b(0x37b,0x34c)],'bgiDK'))try{_0x3488a6[_0x592410(0x296,0x2b5)](_0x52bae,{'type':_0x3488a6[_0x81021b(0x34a,0x2f4)],'stage':_0x3488a6[_0x592410(0x2f9,0x294)],'label':_0x3488a6['hVYGS']});}catch(_0x110822){}else{const _0x5ccf9e=await getGatewayConfig(),_0x5913e7=_0x3488a6[_0x81021b(0x397,0x3b6)](_0x170d4e,_0x81021b(0x2db,0x2ac))?'[Voic'+_0x592410(0x31b,0x2b8)+_0x592410(0x28e,0x2c1)+_0x592410(0x239,0x2a1)+_0x592410(0x2f3,0x321)+_0x81021b(0x36c,0x3a9)+'ief\x20a'+_0x81021b(0x329,0x2d2)+_0x592410(0x2ef,0x2c8)+'ation'+'al,\x201'+_0x592410(0x324,0x2bb)+'ntenc'+'es\x20ma'+_0x592410(0x2ba,0x2cd):_0x592410(0x2a8,0x2ba)+_0x592410(0x2f5,0x2c2)+_0x81021b(0x340,0x38c)+_0x81021b(0x388,0x39e)+_0x592410(0x2d0,0x310),_0x1f833e=_0x81021b(0x37f,0x341)+_0x81021b(0x32a,0x2c4)+':main',_0x4e5289={};_0x4e5289[_0x81021b(0x353,0x30f)]='user',_0x4e5289[_0x81021b(0x32f,0x360)+'nt']=''+_0x5913e7+_0x17817f;const _0xc8016a={};_0xc8016a[_0x81021b(0x308,0x302)]=_0x3488a6['LdEGZ'],_0xc8016a[_0x592410(0x384,0x353)]=_0x29c1cd,_0xc8016a[_0x81021b(0x31c,0x2b9)+_0x81021b(0x2e6,0x316)]=[_0x4e5289];const _0x5395c6=await fetchWithTimeout(_0x5ccf9e[_0x81021b(0x3a1,0x409)+_0x81021b(0x36b,0x33d)+'L']+('/v1/c'+'hat/c'+'omple'+_0x81021b(0x338,0x2f0)),{'method':'POST','headers':{'Content-Type':_0x81021b(0x333,0x2ec)+'catio'+'n/jso'+'n','Authorization':_0x592410(0x2b7,0x2a6)+'r\x20'+_0x5ccf9e[_0x592410(0x3bf,0x36b)+_0x592410(0x3a0,0x337)+_0x81021b(0x2e5,0x2a1)],'x-openclaw-session-key':_0x1f833e},'body':JSON[_0x81021b(0x310,0x2e8)+_0x592410(0x322,0x341)](_0xc8016a)},REQUEST_TIMEOUT);if(!_0x5395c6['ok']){if(_0x3488a6['bngiC'](_0x592410(0x335,0x30b),_0x3488a6[_0x592410(0x36e,0x33c)]))_0x15b7be(_0x81021b(0x385,0x3a9),'[Chun'+'ked\x20T'+_0x592410(0x3b9,0x35b)+'ull\x20r'+_0x592410(0x33f,0x321)+_0x81021b(0x359,0x39e)+'S\x20fai'+_0x81021b(0x342,0x2d8),_0x113d14[_0x81021b(0x31c,0x33c)+'ge']);else{const _0x2d97e0=await _0x5395c6[_0x81021b(0x323,0x36e)]();throw new Error('Chat\x20'+'API\x20e'+_0x592410(0x25d,0x2a8)+'\x20'+_0x5395c6[_0x81021b(0x2d2,0x2fa)+'s']+'\x20-\x20'+_0x2d97e0);}}const _0x36edb8=await _0x5395c6[_0x81021b(0x351,0x359)]();return _0x36edb8[_0x81021b(0x2e1,0x27c)+'es']?.[0x4e7*0x1+0x20*-0x7f+0xaf9]?.[_0x81021b(0x31c,0x303)+'ge']?.[_0x81021b(0x32f,0x384)+'nt']||'No\x20re'+_0x81021b(0x31e,0x2d7)+'e';}},_0xb23d6d);}export async function chatWithParallelTTS(_0x4e18b2,_0x167d6a=SESSION_USER){const _0x50523c={'pOWcj':function(_0x39a98b){return _0x39a98b();},'uMPkY':function(_0x33dda0,_0x354855){return _0x33dda0(_0x354855);},'gkAWv':_0x12dd45(-0x15e,-0x1a7)+_0x108ea6(0x3be,0x38a),'IAGoP':_0x108ea6(0x378,0x34c)+_0x12dd45(-0xd7,-0x7f)+_0x108ea6(0x37a,0x315)+_0x108ea6(0x358,0x30c),'XFmSC':function(_0x55f5d6,_0x782e7a){return _0x55f5d6+_0x782e7a;},'OhIjU':function(_0x21f967,_0xa26f8d){return _0x21f967>=_0xa26f8d;},'mOcOM':_0x108ea6(0x3ed,0x399),'djKWu':function(_0x4112ad){return _0x4112ad();},'NtcAI':function(_0x149630,_0x112e94,_0x297585){return _0x149630(_0x112e94,_0x297585);},'wMcGu':function(_0x193710,_0x5201f5,_0x2ea685,_0x2f7b13){return _0x193710(_0x5201f5,_0x2ea685,_0x2f7b13);},'yeYyI':'error','WHbCF':function(_0x53b0a8,_0x1af718){return _0x53b0a8+_0x1af718;},'QBQAo':function(_0x40f69f,_0x212220){return _0x40f69f===_0x212220;},'oWSqQ':'AAKBD','bVzXa':function(_0x47b8ee,_0x390d58,_0x495306){return _0x47b8ee(_0x390d58,_0x495306);},'jMxie':'debug','EdSvY':'eJtxQ','rmHeP':function(_0x234aa6,_0x41f4fd){return _0x234aa6===_0x41f4fd;},'iPKSt':_0x12dd45(-0xd9,-0x7e),'QqXAi':function(_0x4d1fe5,_0x142905){return _0x4d1fe5(_0x142905);},'EqFfo':_0x12dd45(-0x159,-0x159)+'Statu'+'s','xXDPV':function(_0x57308a,_0x3ee790){return _0x57308a(_0x3ee790);},'YvRLx':function(_0x205c6f,_0x22ff19){return _0x205c6f<_0x22ff19;},'AyjId':function(_0x3bf51a){return _0x3bf51a();},'jBVYG':function(_0x586c57){return _0x586c57();},'BBEKJ':function(_0x2eabaa,_0x46b4ee,_0x12ceba){return _0x2eabaa(_0x46b4ee,_0x12ceba);},'pFkyI':_0x12dd45(-0x12d,-0xdf)+_0x108ea6(0x317,0x2e8)+_0x108ea6(0x391,0x32b)+_0x108ea6(0x2e6,0x351)+'d\x20nat'+'urall'+_0x108ea6(0x39e,0x36b)+_0x108ea6(0x304,0x2d9)+'ersat'+'ional'+_0x12dd45(-0xae,-0xfb),'ufXcp':_0x12dd45(-0xb5,-0xb3)+_0x108ea6(0x390,0x324)+_0x108ea6(0x370,0x324),'vDYSP':_0x108ea6(0x2fd,0x2d4),'bwOLq':'appli'+'catio'+_0x12dd45(-0x164,-0x10f)+'n','gXZsg':'openc'+'law','KHCgO':function(_0x29c32c,_0x99d7ea){return _0x29c32c===_0x99d7ea;},'wYZMO':_0x108ea6(0x3a6,0x370),'YoWZk':'Bbinb','rkubT':'TrTTw','IFCTG':_0x12dd45(-0xe9,-0x8d)+'\x20','erBMZ':_0x108ea6(0x30b,0x306)+']','YontK':'yXriW','CfHgK':_0x12dd45(-0xa2,-0xfc),'fchBI':function(_0x1935f6,_0x22b4a4){return _0x1935f6<_0x22b4a4;},'McYCv':function(_0x1ed1aa,_0x35f8d5){return _0x1ed1aa>=_0x35f8d5;},'FJxxL':function(_0x5d853d,_0x2850e7){return _0x5d853d===_0x2850e7;},'lGfql':_0x108ea6(0x356,0x2fe),'xYSTR':function(_0x13535b){return _0x13535b();},'MjMle':function(_0x43161b){return _0x43161b();},'nTCQh':function(_0x1b9586,_0x2e802f,_0x20c7cc,_0x393c32){return _0x1b9586(_0x2e802f,_0x20c7cc,_0x393c32);},'UqxzJ':_0x12dd45(-0x125,-0x150)},_0x1768a8=await _0x50523c[_0x12dd45(-0xfd,-0xd6)](getGatewayConfig),_0x339dda=_0x50523c['pFkyI'],_0x2c4a67=_0x50523c[_0x12dd45(-0xf9,-0xb9)],_0x2d8cbe={};_0x2d8cbe[_0x12dd45(-0xe1,-0x113)]=_0x108ea6(0x32c,0x383),_0x2d8cbe[_0x12dd45(-0x105,-0x137)+'nt']=''+_0x339dda+_0x4e18b2;const _0xc24dd2=await _0x50523c[_0x12dd45(-0x9f,-0xeb)](fetchWithTimeout,_0x1768a8[_0x12dd45(-0x93,-0xdd)+'AY_UR'+'L']+(_0x12dd45(-0xb8,-0xc4)+'hat/c'+_0x108ea6(0x3b5,0x35b)+'tions'),{'method':_0x50523c['vDYSP'],'headers':{'Content-Type':_0x50523c[_0x12dd45(-0xe8,-0x147)],'Authorization':_0x12dd45(-0x158,-0x1ab)+'r\x20'+_0x1768a8[_0x108ea6(0x3e6,0x39b)+'AY_TO'+_0x12dd45(-0x14f,-0x14b)],'x-openclaw-session-key':_0x2c4a67},'body':JSON[_0x12dd45(-0x124,-0x105)+'gify']({'model':_0x50523c[_0x108ea6(0x2be,0x31c)],'user':_0x167d6a,'stream':!![],'messages':[_0x2d8cbe]})},REQUEST_TIMEOUT);if(!_0xc24dd2['ok']){if(_0x50523c[_0x12dd45(-0xb1,-0xb5)](_0x50523c[_0x108ea6(0x304,0x2dd)],_0x50523c['wYZMO'])){const _0x5668e5=await _0xc24dd2['text']();throw new Error(_0x108ea6(0x309,0x374)+_0x108ea6(0x353,0x373)+_0x108ea6(0x2f7,0x2d8)+'\x20'+_0xc24dd2[_0x108ea6(0x297,0x2cc)+'s']+_0x108ea6(0x33c,0x2ef)+_0x5668e5);}else _0x50523c['pOWcj'](_0x5a5367);}let _0x16dd2f='',_0x1e3c8e=-0x20c4+-0x6cd+-0x2791*-0x1;const _0x3fa101=[];let _0x94405b=[],_0x5c55e5=-0x215*-0xa+-0x10bf+-0x95*0x7,_0x39c06f=!![];const _0x5bfb4d=0x1*0x683+-0x1fac+-0x1d*-0xe5,_0x4a2539=-0x7*0x539+0x2650+-0x1be*0x1;function _0xd00bf2(){function _0x4e44b4(_0x129411,_0x37bfe3){return _0x12dd45(_0x129411-0xed,_0x37bfe3);}const _0x3d3295={'oaFum':function(_0xb6e3aa,_0x3084ae,_0x5a6ae5,_0x333810){return _0x50523c['wMcGu'](_0xb6e3aa,_0x3084ae,_0x5a6ae5,_0x333810);},'eFaOu':_0x50523c[_0x295dc4(-0x5c,-0xbb)],'sJQdY':function(_0x88ac61,_0x2e7f63){function _0x162e2c(_0xcb1a25,_0x2ffe3a){return _0x295dc4(_0xcb1a25,_0x2ffe3a-0x276);}return _0x50523c[_0x162e2c(0x1cc,0x1b6)](_0x88ac61,_0x2e7f63);}};function _0x295dc4(_0x1762ed,_0x102db6){return _0x12dd45(_0x102db6-0x4,_0x1762ed);}if(_0x50523c[_0x295dc4(-0xde,-0x12e)](_0x4e44b4(-0x41,-0x9),_0x50523c[_0x295dc4(-0x114,-0xd0)]))_0x50523c[_0x295dc4(-0xec,-0x11d)](_0x44caab,{'type':_0x295dc4(-0x153,-0x155)+'Statu'+'s','stage':_0x50523c[_0x295dc4(-0xf5,-0xf1)],'label':_0x50523c[_0x4e44b4(-0x58,-0x9c)]});else{if(_0x50523c[_0x295dc4(-0x193,-0x12e)](_0x94405b['lengt'+'h'],0x3c9*0x4+0x1e55*-0x1+0xf31*0x1))return;const _0x40bd96=_0x94405b['join']('\x20'),_0x683057=_0x3fa101[_0x4e44b4(0x5c,0x68)+'h'];_0x50523c[_0x4e44b4(-0x17,0x6)](log,_0x50523c['jMxie'],_0x295dc4(-0x82,-0xac)+'ked\x20T'+_0x4e44b4(0x0,0x54)+_0x295dc4(-0xa7,-0x8e)+(_0x683057+(-0x21f6+-0x895*0x3+0x3bb6))+'\x20('+_0x94405b[_0x4e44b4(0x5c,-0x10)+'h']+(_0x295dc4(-0x177,-0x111)+_0x4e44b4(-0x27,-0x41)+',\x20')+_0x40bd96['lengt'+'h']+(_0x4e44b4(0x54,0x43)+_0x295dc4(-0x160,-0x116))+_0x40bd96[_0x4e44b4(0x36,0x53)+_0x4e44b4(-0x23,-0x5)](-0x1*0x1935+-0x1*0x865+0x2*0x10cd,0xb06+0x1*0x2415+-0x9*0x533)+_0x4e44b4(-0x19,-0x45));if(_0x50523c['QBQAo'](_0x683057,-0x295+0x1dc2+-0x1b2d)){if(_0x50523c[_0x4e44b4(-0x45,-0xb0)](_0x50523c[_0x295dc4(-0x75,-0xce)],'eJtxQ'))try{_0x50523c[_0x4e44b4(-0x31,-0x39)](_0x50523c['iPKSt'],_0x4e44b4(0x14,0x74))?_0x50523c[_0x295dc4(-0xcb,-0xb0)](broadcastToAll,{'type':_0x50523c['EqFfo'],'stage':_0x50523c[_0x4e44b4(-0x8,0x2)],'label':_0x4e44b4(0xb,0x78)+_0x4e44b4(0x16,-0x3a)+_0x4e44b4(-0x2c,0x8)+_0x295dc4(-0x15a,-0x11e)}):_0x22986c=![];}catch(_0x46528a){}else _0x5603e2[_0x295dc4(-0xb4,-0xc2)+_0x295dc4(-0x104,-0xed)+'k']();}const _0xa84e85=(async()=>{function _0x4c33b4(_0x590726,_0x531172){return _0x4e44b4(_0x590726-0xbe,_0x531172);}function _0x13bc4a(_0x51ba59,_0x129511){return _0x4e44b4(_0x129511-0xcf,_0x51ba59);}const _0x12a5dd={'IHtuK':function(_0x57983f,_0x5674a4){function _0x2cef49(_0x3a135e,_0x4de527){return _0x4004(_0x4de527- -0x64,_0x3a135e);}return _0x50523c[_0x2cef49(0x1a6,0x18f)](_0x57983f,_0x5674a4);},'PIZsr':function(_0x3f72db,_0x58a00b){function _0x34daba(_0x5dc4e,_0x1d663b){return _0x4004(_0x1d663b-0x271,_0x5dc4e);}return _0x50523c[_0x34daba(0x40b,0x407)](_0x3f72db,_0x58a00b);},'HBeod':function(_0x48f9d1){function _0x11fe94(_0x59c04d,_0x2c96cc){return _0x4004(_0x59c04d- -0x371,_0x2c96cc);}return _0x50523c[_0x11fe94(-0x154,-0xe8)](_0x48f9d1);}};if('KfOIX'===_0x50523c[_0x4c33b4(0x8f,0x55)]){const _0x5af1fe=_0x35b1a5['sente'+_0x4c33b4(0xbb,0xb1)],_0x2fa1e2=_0x12a5dd['IHtuK'](_0x2b8eb2[_0x13bc4a(0x82,0x53)+'Of'](_0x5af1fe),_0x5af1fe[_0x4c33b4(0x11a,0x111)+'h']);_0x3eb5a1+=_0x2fa1e2;while(_0x54394a<_0x4d65f3['lengt'+'h']&&/\s/[_0x4c33b4(0x69,0x38)](_0x276e94[_0x141e1f]))_0x316e2f++;_0x4d2398[_0x4c33b4(0xe0,0x84)](_0x5af1fe),_0x3064b3+=_0x5af1fe['lengt'+'h'],(_0x1c2c2f||_0x12a5dd[_0x4c33b4(0x54,0x87)](_0x5b2014,_0x4b07c0)||_0x12a5dd['PIZsr'](_0x3b63e0[_0x13bc4a(0x150,0x12b)+'h'],_0x56bdb3))&&_0x12a5dd[_0x4c33b4(0xab,0x82)](_0x235ebc);}else{const _0x8576a1=await _0x50523c[_0x4c33b4(0x104,0xff)](getTTSFunction);return _0x50523c[_0x13bc4a(0x12,0x5c)](_0x8576a1,_0x40bd96,AUDIO_OUTPUT_DIR);}})()[_0x4e44b4(-0x33,-0x96)](_0x3059d6=>{_0x3d3295[_0x399493(0x475,0x4d8)](log,_0x3d3295[_0x399493(0x41f,0x44b)],_0x339eae(0xf4,0xfc)+_0x399493(0x434,0x46a)+'TS]\x20C'+_0x399493(0x4ec,0x525)+_0x3d3295[_0x399493(0x4e0,0x4e1)](_0x683057,-0x182a*0x1+-0x807+0x2032*0x1)+('\x20fail'+_0x399493(0x4a6,0x4c2)),_0x3059d6[_0x339eae(0x8b,0x94)+'ge']);function _0x339eae(_0x1802fc,_0x28ba23){return _0x295dc4(_0x1802fc,_0x28ba23-0x1a8);}function _0x399493(_0x478f02,_0x22a7ee){return _0x295dc4(_0x22a7ee,_0x478f02-0x57a);}return null;});_0x3fa101['push'](_0xa84e85),_0x94405b=[],_0x5c55e5=-0x8*-0x20b+-0x2016+-0xfbe*-0x1,_0x39c06f=![];}}const _0x26f289=_0xc24dd2['body'][_0x108ea6(0x32a,0x317)+_0x12dd45(-0x141,-0xf2)](),_0x34cf18=new TextDecoder();let _0x2fab47='';function _0x12dd45(_0x4ffb96,_0x434e08){return _0x4a5b85(_0x4ffb96- -0x34,_0x434e08);}try{while(!![]){const {done:_0x46c7dd,value:_0x40b48a}=await _0x26f289[_0x12dd45(-0x150,-0x141)]();if(_0x46c7dd)break;const _0x64940f={};_0x64940f[_0x12dd45(-0x11b,-0xb9)+'m']=!![],_0x2fab47+=_0x34cf18['decod'+'e'](_0x40b48a,_0x64940f);const _0x5a2eaa=_0x2fab47['split']('\x0a');_0x2fab47=_0x5a2eaa[_0x108ea6(0x345,0x33f)]()||'';for(const _0x423025 of _0x5a2eaa){if(_0x50523c['YoWZk']===_0x50523c[_0x108ea6(0x2ea,0x350)]){const _0x4ef694=_0x1b00e5[_0x12dd45(-0x168,-0x191)](_0x31089b),_0x349af1=_0x50523c[_0x108ea6(0x320,0x372)](_0x17b826,_0x4ef694);if(_0x349af1){const _0x2d91dc=_0x349af1[_0x108ea6(0x3ba,0x39e)+_0x108ea6(0x370,0x33e)],_0x297ccb=_0x4ef694[_0x12dd45(-0x169,-0x1d7)+'Of'](_0x2d91dc)+_0x2d91dc[_0x12dd45(-0x91,-0x30)+'h'];_0x47a707+=_0x297ccb;while(_0x50523c['YvRLx'](_0x407dc7,_0x590ca4[_0x108ea6(0x405,0x39d)+'h'])&&/\s/[_0x108ea6(0x2f7,0x2ec)](_0x38f85b[_0x37a362]))_0xc6f690++;_0x118701[_0x108ea6(0x3c2,0x363)](_0x2d91dc),_0x470edd+=_0x2d91dc[_0x12dd45(-0x91,-0x6b)+'h'],(_0x5ad90f||_0x50523c[_0x108ea6(0x345,0x2f5)](_0x2d01bb,_0x3befeb)||_0x38281c[_0x108ea6(0x37c,0x39d)+'h']>=_0x344cb6)&&_0x50523c[_0x108ea6(0x39e,0x343)](_0x4b4549);}else _0x5e60da=![];}else{if(_0x423025[_0x108ea6(0x2dd,0x2dc)+_0x108ea6(0x344,0x334)](_0x50523c[_0x12dd45(-0xfe,-0x102)])){const _0x463870=_0x423025[_0x108ea6(0x2c9,0x2c6)](-0x3e*0x65+-0xa31+0x3*0xb8f);if(_0x463870===_0x50523c[_0x108ea6(0x33c,0x327)])continue;try{const _0x31baad=JSON['parse'](_0x463870),_0x24b5df=_0x31baad[_0x12dd45(-0x153,-0x11a)+'es']?.[0x6+-0x1*-0x11d1+0x1*-0x11d7]?.[_0x12dd45(-0xcc,-0x8a)]?.[_0x108ea6(0x325,0x329)+'nt']||'';if(_0x24b5df){if(_0x50523c[_0x12dd45(-0x11e,-0xd8)](_0x50523c[_0x12dd45(-0x12a,-0xda)],_0x50523c[_0x12dd45(-0xe6,-0x129)]))return _0x3ca0e1[_0x108ea6(0x3bb,0x393)+'ing']()[_0x108ea6(0x2c2,0x326)+'h'](_0x108ea6(0x351,0x364)+_0x108ea6(0x3a6,0x389)+'+$')['toStr'+_0x12dd45(-0xa4,-0x111)]()['const'+_0x12dd45(-0x123,-0xeb)+'r'](_0x1fd708)['searc'+'h'](_0x12dd45(-0xca,-0x128)+')+)+)'+'+$');else{_0x16dd2f+=_0x24b5df;let _0x2ece50=!![];while(_0x2ece50){const _0x3379ee=_0x16dd2f['slice'](_0x1e3c8e),_0x4ab3b1=_0x50523c[_0x12dd45(-0xb4,-0x90)](extractFirstSentence,_0x3379ee);if(_0x4ab3b1){const _0x2638d7=_0x4ab3b1[_0x12dd45(-0x90,-0x91)+'nce'],_0x55ef1e=_0x50523c[_0x108ea6(0x368,0x352)](_0x3379ee[_0x12dd45(-0x169,-0x132)+'Of'](_0x2638d7),_0x2638d7[_0x108ea6(0x380,0x39d)+'h']);_0x1e3c8e+=_0x55ef1e;while(_0x50523c['fchBI'](_0x1e3c8e,_0x16dd2f['lengt'+'h'])&&/\s/[_0x12dd45(-0x142,-0x197)](_0x16dd2f[_0x1e3c8e]))_0x1e3c8e++;_0x94405b[_0x108ea6(0x396,0x363)](_0x2638d7),_0x5c55e5+=_0x2638d7[_0x108ea6(0x404,0x39d)+'h'],(_0x39c06f||_0x50523c[_0x12dd45(-0x139,-0x16a)](_0x5c55e5,_0x5bfb4d)||_0x50523c[_0x12dd45(-0xaa,-0xd8)](_0x94405b[_0x108ea6(0x399,0x39d)+'h'],_0x4a2539))&&_0xd00bf2();}else{if(_0x50523c['FJxxL'](_0x50523c[_0x108ea6(0x353,0x36e)],_0x12dd45(-0x148,-0x16b)))return _0x1a43f7(_0x50523c[_0x12dd45(-0xbf,-0x9a)],_0x108ea6(0x388,0x37e)+_0x12dd45(-0x14a,-0x189)+_0x108ea6(0x3bf,0x38b)+'inal\x20'+_0x12dd45(-0x10d,-0x10e)+_0x12dd45(-0x11f,-0xd3)+_0x108ea6(0x361,0x356),_0x406181[_0x108ea6(0x335,0x316)+'ge']),null;else _0x2ece50=![];}}}}}catch(_0x510f1f){}}}}}}finally{_0x26f289[_0x108ea6(0x32b,0x368)+_0x108ea6(0x39d,0x33d)+'k']();}_0x50523c[_0x12dd45(-0x135,-0x15a)](_0xd00bf2);const _0x4b1018=_0x16dd2f[_0x108ea6(0x303,0x2c6)](_0x1e3c8e)[_0x108ea6(0x344,0x35f)]();if(_0x4b1018){const _0x2ab8ec=_0x3fa101[_0x12dd45(-0x91,-0x78)+'h'];_0x50523c[_0x108ea6(0x36c,0x369)](log,_0x50523c[_0x108ea6(0x2af,0x2cd)],'[Chun'+'ked\x20T'+_0x108ea6(0x368,0x38b)+_0x108ea6(0x343,0x34f)+_0x12dd45(-0x10d,-0xd0)+'\x20'+(_0x2ab8ec+(0xec*0xd+-0x287*-0xb+-0x27c8))+_0x12dd45(-0x11d,-0x147)+_0x4b1018+'\x22');const _0x59ccaf=(async()=>{function _0x38ce12(_0x21660e,_0x14debc){return _0x12dd45(_0x21660e-0x3f0,_0x14debc);}const _0xe93572=await _0x50523c[_0x38ce12(0x2f3,0x2d8)](getTTSFunction);function _0x1957ec(_0x1a40d6,_0x153796){return _0x12dd45(_0x153796-0x5a2,_0x1a40d6);}return _0x50523c[_0x38ce12(0x32b,0x2c2)](_0xe93572,_0x4b1018,AUDIO_OUTPUT_DIR);})()[_0x108ea6(0x347,0x30e)](_0x2685da=>{function _0x15e407(_0x351dc0,_0x257aea){return _0x12dd45(_0x257aea- -0xd1,_0x351dc0);}function _0x28bda1(_0x334b39,_0x120d88){return _0x12dd45(_0x120d88-0x393,_0x334b39);}return _0x50523c[_0x15e407(-0x132,-0x170)](log,_0x50523c['yeYyI'],'[Chun'+_0x28bda1(0x26b,0x249)+_0x28bda1(0x2d1,0x2f0)+'inal\x20'+_0x28bda1(0x25b,0x286)+_0x15e407(-0x24c,-0x1f0)+_0x28bda1(0x28a,0x2bb),_0x2685da[_0x28bda1(0x2b4,0x27b)+'ge']),null;});_0x3fa101[_0x12dd45(-0xcb,-0xe4)](_0x59ccaf);}if(_0x50523c[_0x12dd45(-0xb1,-0x9f)](_0x3fa101[_0x108ea6(0x3f1,0x39d)+'h'],-0x66a*-0x6+0x11b*-0x13+0x117b*-0x1)&&_0x16dd2f)try{const _0x367f0e=await _0x50523c[_0x108ea6(0x2fc,0x320)](getTTSFunction),_0x52103e=await _0x367f0e(_0x16dd2f,AUDIO_OUTPUT_DIR);_0x3fa101[_0x12dd45(-0xcb,-0xcd)](Promise[_0x12dd45(-0x166,-0x185)+'ve'](_0x52103e));}catch(_0x1f2430){_0x50523c[_0x12dd45(-0x140,-0x150)](log,_0x108ea6(0x3c1,0x37f),_0x108ea6(0x343,0x37e)+_0x108ea6(0x2e6,0x2e4)+_0x12dd45(-0xa3,-0xac)+_0x12dd45(-0x10c,-0x16d)+_0x108ea6(0x2f0,0x351)+'se\x20TT'+_0x108ea6(0x35d,0x358)+'led:',_0x1f2430['messa'+'ge']);}const _0x1a0e02=(await Promise[_0x108ea6(0x3ea,0x39a)](_0x3fa101))[_0x12dd45(-0xa8,-0xab)+'r'](Boolean);_0x50523c['BBEKJ'](log,_0x50523c[_0x12dd45(-0xd5,-0xcc)],_0x108ea6(0x32c,0x37e)+_0x12dd45(-0x14a,-0x134)+'TS]\x20G'+_0x108ea6(0x34d,0x397)+_0x12dd45(-0x147,-0x130)+_0x1a0e02[_0x108ea6(0x394,0x39d)+'h']+(_0x12dd45(-0xd0,-0x9a)+_0x12dd45(-0xe4,-0x11f)+_0x12dd45(-0x127,-0x101)+_0x108ea6(0x294,0x2f0)+_0x12dd45(-0x116,-0x111)+'e'));const _0x1ccd57={};_0x1ccd57[_0x12dd45(-0xe7,-0x8c)+_0x108ea6(0x372,0x394)]=_0x16dd2f||_0x108ea6(0x32c,0x308)+_0x108ea6(0x317,0x318)+'e',_0x1ccd57['audio'+_0x12dd45(-0xb6,-0x60)]=_0x1a0e02[0x839+-0x1*-0x161b+-0xa1c*0x3]||null;function _0x108ea6(_0x1e7784,_0x14e2ea){return _0x4a5b85(_0x14e2ea-0x3fa,_0x1e7784);}return _0x1ccd57[_0x12dd45(-0xa6,-0x80)+_0x12dd45(-0xfb,-0x168)]=_0x1a0e02,_0x1ccd57;}export async function generateTTS(_0xc43c4e){const _0x114093={'yYpXq':function(_0x537829,_0x264d21,_0x22aaeb){return _0x537829(_0x264d21,_0x22aaeb);}},_0x25f47e=await getTTSFunction();return _0x114093['yYpXq'](_0x25f47e,_0xc43c4e,AUDIO_OUTPUT_DIR);}