a2a-memory 0.12.65 → 0.12.67

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 (113) hide show
  1. package/README.md +8 -7
  2. package/dist/adapters/anthropic.js +1 -1
  3. package/dist/chunking/chunker.js +1 -1
  4. package/dist/claude/sync.js +1 -1
  5. package/dist/cli/commands/add.js +1 -1
  6. package/dist/cli/commands/claude-sync.js +1 -1
  7. package/dist/cli/commands/cleanup.js +1 -1
  8. package/dist/cli/commands/config.js +1 -1
  9. package/dist/cli/commands/contextrank.js +1 -1
  10. package/dist/cli/commands/edit.js +1 -1
  11. package/dist/cli/commands/embed.js +1 -1
  12. package/dist/cli/commands/export.js +1 -1
  13. package/dist/cli/commands/extract.js +1 -1
  14. package/dist/cli/commands/health.js +1 -1
  15. package/dist/cli/commands/list.js +1 -1
  16. package/dist/cli/commands/measure.d.ts +10 -0
  17. package/dist/cli/commands/measure.js +1 -0
  18. package/dist/cli/commands/migrate-chunks.js +1 -1
  19. package/dist/cli/commands/migrate-file-refs.js +1 -1
  20. package/dist/cli/commands/proficiency.js +1 -1
  21. package/dist/cli/commands/review.js +1 -1
  22. package/dist/cli/commands/rm.js +1 -1
  23. package/dist/cli/commands/search.js +1 -1
  24. package/dist/cli/commands/session-extract.js +1 -1
  25. package/dist/cli/commands/setup-wizard.d.ts +4 -1
  26. package/dist/cli/commands/setup-wizard.js +1 -1
  27. package/dist/cli/commands/setup.d.ts +1 -0
  28. package/dist/cli/commands/setup.js +1 -1
  29. package/dist/cli/commands/skill.js +1 -1
  30. package/dist/cli/commands/status.js +1 -1
  31. package/dist/cli/commands/sync.js +1 -1
  32. package/dist/cli/commands/team.js +1 -1
  33. package/dist/cli/commands/usage.js +1 -1
  34. package/dist/cli/index.js +1 -1
  35. package/dist/config/manager.d.ts +49 -0
  36. package/dist/config/manager.js +1 -1
  37. package/dist/config/prompt-hook.d.ts +52 -0
  38. package/dist/config/prompt-hook.js +1 -0
  39. package/dist/contextrank/ac-matcher.js +1 -1
  40. package/dist/contextrank/edge-builder.js +1 -1
  41. package/dist/contextrank/rank-builder.js +1 -1
  42. package/dist/contextrank/signal-builder.js +1 -1
  43. package/dist/contextrank/since-store.js +1 -1
  44. package/dist/db/database.d.ts +51 -0
  45. package/dist/db/database.js +1 -1
  46. package/dist/db/integrity-marker.js +1 -1
  47. package/dist/db/usage-spool.js +1 -1
  48. package/dist/embedding/e5-provider.js +1 -1
  49. package/dist/embedding/index.js +1 -1
  50. package/dist/embedding/local-provider.js +1 -1
  51. package/dist/embedding/openai-provider.js +1 -1
  52. package/dist/embedding/quantization.js +1 -1
  53. package/dist/extraction/dedup-manager.js +1 -1
  54. package/dist/extraction/emotion-filter.js +1 -1
  55. package/dist/extraction/extractor.js +1 -1
  56. package/dist/extraction/file-reference.js +1 -1
  57. package/dist/extraction/filter.js +1 -1
  58. package/dist/extraction/scorer.js +1 -1
  59. package/dist/extraction/similarity.js +1 -1
  60. package/dist/hooks/client-factory.js +1 -1
  61. package/dist/hooks/post-tool-use.js +1 -1
  62. package/dist/hooks/pre-compact.js +1 -1
  63. package/dist/hooks/session-end.js +1 -1
  64. package/dist/hooks/session-start.js +1 -1
  65. package/dist/hooks/shared.js +1 -1
  66. package/dist/hooks/stop.js +1 -1
  67. package/dist/hooks/user-prompt-submit.js +1 -1
  68. package/dist/i18n/index.js +1 -1
  69. package/dist/i18n/messages.js +1 -1
  70. package/dist/index.js +1 -1
  71. package/dist/lifecycle/channel-metrics.d.ts +146 -0
  72. package/dist/lifecycle/channel-metrics.js +1 -0
  73. package/dist/lifecycle/cleanup-scheduler.js +1 -1
  74. package/dist/lifecycle/cleanup.js +1 -1
  75. package/dist/lifecycle/consolidation.js +1 -1
  76. package/dist/lifecycle/contradiction.js +1 -1
  77. package/dist/lifecycle/embedding-backfill.js +1 -1
  78. package/dist/lifecycle/index.js +1 -1
  79. package/dist/lifecycle/injection-flush.js +1 -1
  80. package/dist/lifecycle/quality-scorer.js +1 -1
  81. package/dist/lifecycle/session-extract.js +1 -1
  82. package/dist/lifecycle/shadow-rebuild.js +1 -1
  83. package/dist/lifecycle/tiering.js +1 -1
  84. package/dist/llm/client.js +1 -1
  85. package/dist/llm/index.js +1 -1
  86. package/dist/proficiency/actr-engine.js +1 -1
  87. package/dist/proficiency/detection.js +1 -1
  88. package/dist/proficiency/index.js +1 -1
  89. package/dist/proficiency/tracker.js +1 -1
  90. package/dist/search/adaptive-router.js +1 -1
  91. package/dist/search/index.js +1 -1
  92. package/dist/search/injection-filter.js +1 -1
  93. package/dist/search/memoryrank-rerank.js +1 -1
  94. package/dist/search/ranker.js +1 -1
  95. package/dist/search/reranker.js +1 -1
  96. package/dist/session/parser.js +1 -1
  97. package/dist/skill/evaluator.js +1 -1
  98. package/dist/skill/index.js +1 -1
  99. package/dist/sync/client.js +1 -1
  100. package/dist/sync/encryption.js +1 -1
  101. package/dist/sync/index.js +1 -1
  102. package/dist/sync/queue.js +1 -1
  103. package/dist/sync/scheduler.js +1 -1
  104. package/dist/sync/synchronizer.js +1 -1
  105. package/dist/sync/team-synchronizer.js +1 -1
  106. package/dist/sync/vector-clock.js +1 -1
  107. package/dist/types/index.d.ts +9 -0
  108. package/dist/types/index.js +1 -1
  109. package/dist/utils/file-mode.js +1 -1
  110. package/dist/utils/keychain.js +1 -1
  111. package/dist/utils/logger.js +1 -1
  112. package/dist/utils/test-isolation.js +1 -1
  113. package/package.json +1 -1
@@ -1 +1 @@
1
- (function(_0x56ed49,_0x138837){const _0xf92824=_0x56ed49();function _0x1c5794(_0x1a471b,_0x2f0da6){return _0x14bd(_0x1a471b-0x273,_0x2f0da6);}function _0x29ba7b(_0x1016d4,_0x25a24f){return _0x14bd(_0x25a24f- -0x4a,_0x1016d4);}while(!![]){try{const _0x3d11fd=-parseInt(_0x29ba7b(0x1a3,0x1a8))/0x1+-parseInt(_0x1c5794(0x461,0x455))/0x2+-parseInt(_0x29ba7b(0x194,0x1a1))/0x3+parseInt(_0x1c5794(0x45a,0x469))/0x4+parseInt(_0x1c5794(0x44a,0x437))/0x5*(parseInt(_0x29ba7b(0x19a,0x19f))/0x6)+-parseInt(_0x29ba7b(0x197,0x1a9))/0x7*(-parseInt(_0x29ba7b(0x1a2,0x1a6))/0x8)+parseInt(_0x1c5794(0x444,0x445))/0x9*(parseInt(_0x29ba7b(0x1a4,0x198))/0xa);if(_0x3d11fd===_0x138837)break;else _0xf92824['push'](_0xf92824['shift']());}catch(_0x31c1ce){_0xf92824['push'](_0xf92824['shift']());}}}(_0x5cf2,0x8aae1));function _0x1b61b7(_0x1757fb,_0xc2b31f){return _0x14bd(_0x1757fb-0x139,_0xc2b31f);}function _0x5cf2(){const _0x106baf=['y29TChv0zvbHCG','zuXLDMvS','C291CMnL','B25ZDgfUDa','mtCZn3PksNPIqG','zMfUrwzMzwn0rG','AxzHDgLVBG','zgvJyxLsyxrL','z2v0','Cg93','otGYnvnJtLvXra','DKXyB1q','y29TChv0zujHCW','ywn0B3i','BwLU','y2vPBa','DgLHBe1HDgnO','AgfZ','C2v0','y29UzMLN','y29TChv0zvnWCG','ndaXotb6wKHKAKO','y29TChv0zuXLDG','Bg9N','yMfZzuXLDMvSqW','y29TChv0zufJDa','mJm5nJaYogXtshfzsW','Bwf4','mtK5oeXdA3PgCW','zwfKAw5N','mta1nJKWm0jQuvHAqW','CMv0CMLLDMfSva','AhjLC2HVBgq','mJiWnZuXnhbwyuvhEa','BMfSDhK','ndG3nJiXnNzbrMX1sG','C3rYzw5NDgG','nJe0ndu1vwrmAKvT','n0vjEe5LCW'];_0x5cf2=function(){return _0x106baf;};return _0x5cf2();}const CLAMP_MIN=1e-10;function _0x13df22(_0x2fdda6,_0x4adc27){return _0x14bd(_0x2fdda6- -0x364,_0x4adc27);}function _0x14bd(_0x2a3c1c,_0x1729f9){_0x2a3c1c=_0x2a3c1c-0x1cf;const _0x5cf22f=_0x5cf2();let _0x14bd5f=_0x5cf22f[_0x2a3c1c];if(_0x14bd['fmZxwG']===undefined){var _0x52496c=function(_0x2f2cc1){const _0x4f38aa='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x43f7ce='',_0x177bea='';for(let _0x5405e9=0x0,_0x814e50,_0xe2e561,_0x492a5b=0x0;_0xe2e561=_0x2f2cc1['charAt'](_0x492a5b++);~_0xe2e561&&(_0x814e50=_0x5405e9%0x4?_0x814e50*0x40+_0xe2e561:_0xe2e561,_0x5405e9++%0x4)?_0x43f7ce+=String['fromCharCode'](0xff&_0x814e50>>(-0x2*_0x5405e9&0x6)):0x0){_0xe2e561=_0x4f38aa['indexOf'](_0xe2e561);}for(let _0x3ec9d0=0x0,_0x233cf0=_0x43f7ce['length'];_0x3ec9d0<_0x233cf0;_0x3ec9d0++){_0x177bea+='%'+('00'+_0x43f7ce['charCodeAt'](_0x3ec9d0)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x177bea);};_0x14bd['HtxfoJ']=_0x52496c,_0x14bd['VNRzzu']={},_0x14bd['fmZxwG']=!![];}const _0x3a72e8=_0x5cf22f[0x0],_0x4b8a02=_0x2a3c1c+_0x3a72e8,_0x172ec7=_0x14bd['VNRzzu'][_0x4b8a02];return!_0x172ec7?(_0x14bd5f=_0x14bd['HtxfoJ'](_0x14bd5f),_0x14bd['VNRzzu'][_0x4b8a02]=_0x14bd5f):_0x14bd5f=_0x172ec7,_0x14bd5f;}const CLAMP_MAX=0x2540be400;export class ACTREngine{[_0x13df22(-0x184,-0x191)];constructor(_0x2001b6){this['config']=_0x2001b6;}[_0x13df22(-0x17e,-0x17d)+_0x13df22(-0x191,-0x18e)](_0x26648a,_0x4800c2,_0x134b93,_0x3dc739,_0x264e53=''){const _0xa50a72=this[_0x1c88fc(0x1dd,0x1dc)+_0x21a9c0(0x165,0x166)](_0x26648a);function _0x21a9c0(_0x365186,_0x4bfa63){return _0x1b61b7(_0x365186- -0x1c9,_0x4bfa63);}const _0x45ff29=this[_0x1c88fc(0x1f0,0x1e4)+_0x21a9c0(0x15a,0x164)](_0x4800c2,_0x134b93);function _0x1c88fc(_0x2d074d,_0x270a31){return _0x1b61b7(_0x270a31- -0x136,_0x2d074d);}const _0x38f3e8=this[_0x1c88fc(0x1ff,0x1f7)+_0x21a9c0(0x14d,0x152)](_0x3dc739),_0x4741ae=_0xa50a72+_0x45ff29+_0x38f3e8;return{'memoryId':_0x264e53,'baseLevel':_0xa50a72,'spreading':_0x45ff29,'partialMatch':_0x38f3e8,'total':_0x4741ae,'shouldRetrieve':_0x4741ae>=this[_0x1c88fc(0x1dc,0x1e3)][_0x21a9c0(0x15c,0x15c)+_0x1c88fc(0x1ea,0x1f0)]};}[_0x13df22(-0x18b,-0x199)+_0x13df22(-0x16f,-0x163)](_0x3faa02){if(_0x3faa02['length']===0x0)return this[_0xec467b(0xff,0xf8)][_0xec467b(0xf4,0xfd)+_0x427f24(0x4ec,0x4e7)];const _0x34dd24=this['config'][_0xec467b(0xdc,0xec)];let _0x5b650f=0x0;for(const _0x86d31f of _0x3faa02){const _0x2589ea=Math[_0xec467b(0xed,0x100)](_0x86d31f,CLAMP_MIN);_0x5b650f+=Math[_0xec467b(0xe6,0xee)](_0x2589ea,-_0x34dd24);}_0x5b650f=Math[_0x427f24(0x504,0x501)](_0x5b650f,CLAMP_MIN);function _0x427f24(_0x46b9fa,_0x528a87){return _0x13df22(_0x46b9fa-0x680,_0x528a87);}function _0xec467b(_0x4526d0,_0x444dad){return _0x13df22(_0x444dad-0x27c,_0x4526d0);}return _0x5b650f=Math[_0x427f24(0x4f7,0x4ec)](_0x5b650f,CLAMP_MAX),Math[_0xec467b(0x102,0xfc)](_0x5b650f)+this[_0xec467b(0xfa,0xf8)][_0xec467b(0x106,0xfd)+'onstant'];}['computeSpr'+_0x1b61b7(0x323,0x314)](_0x2bd4ce,_0x5416da){if(_0x2bd4ce['length']===0x0||_0x5416da['size']===0x0){if(_0x1ceb83(0x483,0x495)!=='vhPGV')return 0x0;else{const _0x551bbd=_0x5bcc19[_0x49a2f6(-0xfb,-0xee)](_0x376ca6,_0x4aff13);_0x52bbe5+=_0x3a468e['pow'](_0x551bbd,-_0x521f82);}}function _0x1ceb83(_0x40abc3,_0x55c9b6){return _0x13df22(_0x40abc3-0x60f,_0x55c9b6);}const _0x14d135=new Map();for(const _0x3c11e8 of _0x2bd4ce){_0x14d135[_0x1ceb83(0x48a,0x485)](_0x3c11e8[_0x1ceb83(0x47a,0x485)],(_0x14d135[_0x1ceb83(0x480,0x473)](_0x3c11e8[_0x49a2f6(-0x114,-0x113)])??0x0)+0x1);}let _0x33cfaa=0x0;function _0x49a2f6(_0x34c11c,_0x1111d3){return _0x13df22(_0x34c11c-0x81,_0x1111d3);}for(const _0x347b62 of _0x2bd4ce){if(!_0x5416da[_0x49a2f6(-0x105,-0x108)](_0x347b62[_0x1ceb83(0x47a,0x46b)]))continue;const _0x3f5861=_0x14d135[_0x1ceb83(0x480,0x485)](_0x347b62[_0x49a2f6(-0x114,-0x110)])??0x1,_0x40dd6c=this[_0x49a2f6(-0x103,-0xff)]['maxAssocia'+'tiveStreng'+'th']/(_0x3f5861*this[_0x49a2f6(-0x103,-0xf9)][_0x1ceb83(0x47d,0x484)+_0x49a2f6(-0x109,-0x109)]);_0x33cfaa+=_0x40dd6c*_0x347b62[_0x1ceb83(0x49c,0x4ab)];}return _0x33cfaa;}[_0x1b61b7(0x32d,0x329)+_0x13df22(-0x187,-0x18d)](_0x4dde56){function _0x2f04cf(_0x20b84e,_0x311856){return _0x13df22(_0x311856-0x5b5,_0x20b84e);}const _0x13b629=Math['max'](0x0,Math[_0x2f04cf(0x43a,0x42c)](0x1,_0x4dde56));function _0xac9c5(_0x9385f,_0x399111){return _0x13df22(_0x9385f-0x21a,_0x399111);}return-this[_0xac9c5(0x96,0x9c)]['mismatchPe'+_0xac9c5(0xa5,0x93)]*(0x1-_0x13b629);}[_0x13df22(-0x181,-0x17f)+'el'](_0x4aeff2,_0xdc93c5){function _0x5e4b69(_0x536e67,_0x15628a){return _0x13df22(_0x536e67-0x730,_0x15628a);}const _0xcd601f=Math['max'](0x0,Math[_0x166a4d(0x17e,0x186)](0x1,(_0x4aeff2+0x2)/0x7)),_0x13dbc9=Math[_0x166a4d(0x178,0x187)](_0xcd601f*_0xdc93c5);function _0x166a4d(_0x39a913,_0x52e900){return _0x13df22(_0x52e900-0x30f,_0x39a913);}return Math[_0x166a4d(0x180,0x186)](_0xdc93c5,Math[_0x5e4b69(0x5b4,0x5c6)](0x1,_0x13dbc9));}}
1
+ function _0x31d868(_0xd991c3,_0x2e699b){return _0x3ac3(_0xd991c3-0x80,_0x2e699b);}function _0x31e6(){const _0x5536f7=['AhjLC2HVBgq','Bwf4','BgvUz3rO','z2v0','zuXLDMvS','y29TChv0zuXLDG','nK5NA3P1tq','DgL2zvn0CMvUzW','yMfZzuXLDMvSqW','C2v0','y29TChv0zvbHCG','mtmWmda3mMTKq0Pnwa','C291CMnL','mJa2nJrPs0HXsLO','mtm5oduWAw1MzxPI','y29TChv0zujHCW','CMv0CMLLDMfSva','zwfKAw5N','nZm1mLH4zuDpBa','oty2ntG1zK1krurM','mZq5m0rkwMzRvG','y29TChv0zvnWCG','ovPHvxzxCW','mtm3ndG0ChPhzxrX','ntm5EeXSB3n3','AgfZ','y29TChv0zufJDa','BwLU','DgLHBe1HDgnO','mtKWnJryDfPAvMO','BMfSDhK','y29UzMLN','zMfUrwzMzwn0rG','B25ZDgfUDa','mJm3AfPZEMjN','ywn0B3i','zgvJyxLsyxrL'];_0x31e6=function(){return _0x5536f7;};return _0x31e6();}function _0x2cd40a(_0x4e61e2,_0x5d872b){return _0x3ac3(_0x4e61e2- -0x44,_0x5d872b);}function _0x3ac3(_0x504581,_0x10acd3){_0x504581=_0x504581-0xc6;const _0x31e6d4=_0x31e6();let _0x3ac346=_0x31e6d4[_0x504581];if(_0x3ac3['jjEFrJ']===undefined){var _0x4f1209=function(_0x86d545){const _0x422763='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x6d57bb='',_0x150ddd='';for(let _0x1b34c3=0x0,_0x583060,_0xb14db3,_0x446438=0x0;_0xb14db3=_0x86d545['charAt'](_0x446438++);~_0xb14db3&&(_0x583060=_0x1b34c3%0x4?_0x583060*0x40+_0xb14db3:_0xb14db3,_0x1b34c3++%0x4)?_0x6d57bb+=String['fromCharCode'](0xff&_0x583060>>(-0x2*_0x1b34c3&0x6)):0x0){_0xb14db3=_0x422763['indexOf'](_0xb14db3);}for(let _0x3e1ef1=0x0,_0xa8ffde=_0x6d57bb['length'];_0x3e1ef1<_0xa8ffde;_0x3e1ef1++){_0x150ddd+='%'+('00'+_0x6d57bb['charCodeAt'](_0x3e1ef1)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x150ddd);};_0x3ac3['dPLzlf']=_0x4f1209,_0x3ac3['qjPXTG']={},_0x3ac3['jjEFrJ']=!![];}const _0x41f59a=_0x31e6d4[0x0],_0x46f284=_0x504581+_0x41f59a,_0x3f5f7b=_0x3ac3['qjPXTG'][_0x46f284];return!_0x3f5f7b?(_0x3ac346=_0x3ac3['dPLzlf'](_0x3ac346),_0x3ac3['qjPXTG'][_0x46f284]=_0x3ac346):_0x3ac346=_0x3f5f7b,_0x3ac346;}(function(_0x1b0c1e,_0x6837d4){const _0x5bcf01=_0x1b0c1e();function _0x1c3e8f(_0x55194d,_0x1b37c6){return _0x3ac3(_0x55194d- -0x332,_0x1b37c6);}function _0x5369fb(_0x38d898,_0xc0117f){return _0x3ac3(_0xc0117f-0x3d1,_0x38d898);}while(!![]){try{const _0x27f8e9=-parseInt(_0x5369fb(0x491,0x49b))/0x1+parseInt(_0x5369fb(0x4ba,0x4b4))/0x2+-parseInt(_0x1c3e8f(-0x25d,-0x26c))/0x3*(-parseInt(_0x5369fb(0x4ab,0x4a1))/0x4)+-parseInt(_0x5369fb(0x48a,0x497))/0x5*(parseInt(_0x5369fb(0x4be,0x4af))/0x6)+parseInt(_0x1c3e8f(-0x26b,-0x271))/0x7*(-parseInt(_0x1c3e8f(-0x248,-0x25a))/0x8)+parseInt(_0x5369fb(0x498,0x49a))/0x9*(parseInt(_0x1c3e8f(-0x24c,-0x23a))/0xa)+-parseInt(_0x1c3e8f(-0x267,-0x279))/0xb*(-parseInt(_0x1c3e8f(-0x24d,-0x242))/0xc);if(_0x27f8e9===_0x6837d4)break;else _0x5bcf01['push'](_0x5bcf01['shift']());}catch(_0x2a3c6c){_0x5bcf01['push'](_0x5bcf01['shift']());}}}(_0x31e6,0x51eab));const CLAMP_MIN=1e-10,CLAMP_MAX=0x2540be400;export class ACTREngine{[_0x31d868(0x152,0x151)];constructor(_0x2e5a48){function _0xc61b75(_0x5e2057,_0x2eb7b8){return _0x31d868(_0x5e2057- -0x347,_0x2eb7b8);}this[_0xc61b75(-0x1f5,-0x1f9)]=_0x2e5a48;}[_0x31d868(0x14d,0x158)+'ivation'](_0x273a1d,_0x4248fd,_0x4ba790,_0x2fd094,_0x5d0714=''){function _0x3b6785(_0x3f17ca,_0x594195){return _0x2cd40a(_0x594195-0x329,_0x3f17ca);}const _0x2b6561=this[_0x3b6785(0x3bf,0x3cc)+_0x3b6785(0x3d0,0x3c1)](_0x273a1d),_0x57765b=this[_0x3b6785(0x3aa,0x3ad)+_0x1a2b47(0x472,0x47d)](_0x4248fd,_0x4ba790);function _0x1a2b47(_0x37e3c7,_0x4c25c7){return _0x2cd40a(_0x37e3c7-0x3cd,_0x4c25c7);}const _0xa36127=this[_0x3b6785(0x3c8,0x3c7)+_0x1a2b47(0x458,0x44a)](_0x2fd094),_0x257b9b=_0x2b6561+_0x57765b+_0xa36127;return{'memoryId':_0x5d0714,'baseLevel':_0x2b6561,'spreading':_0x57765b,'partialMatch':_0xa36127,'total':_0x257b9b,'shouldRetrieve':_0x257b9b>=this[_0x1a2b47(0x45b,0x456)][_0x3b6785(0x3e0,0x3cd)+_0x3b6785(0x3bf,0x3bd)]};}[_0x2cd40a(0xa3,0xb2)+_0x31d868(0x15c,0x159)](_0x1e8c34){function _0x98ad03(_0xc93721,_0x462ab8){return _0x2cd40a(_0x462ab8- -0x20d,_0xc93721);}if(_0x1e8c34[_0x228de5(0x328,0x32b)]===0x0)return this[_0x228de5(0x320,0x321)]['baseLevelC'+_0x228de5(0x322,0x31d)];const _0x133ad6=this['config'][_0x228de5(0x325,0x32b)];let _0x35deb9=0x0;for(const _0x41da4d of _0x1e8c34){const _0x170e31=Math['max'](_0x41da4d,CLAMP_MIN);_0x35deb9+=Math['pow'](_0x170e31,-_0x133ad6);}function _0x228de5(_0xcc93a3,_0x129062){return _0x2cd40a(_0xcc93a3-0x292,_0x129062);}return _0x35deb9=Math[_0x228de5(0x327,0x33a)](_0x35deb9,CLAMP_MIN),_0x35deb9=Math[_0x228de5(0x31c,0x31e)](_0x35deb9,CLAMP_MAX),Math['log'](_0x35deb9)+this[_0x98ad03(-0x173,-0x17f)][_0x228de5(0x32e,0x325)+'onstant'];}[_0x2cd40a(0x84,0x8b)+_0x31d868(0x169,0x16c)](_0x513d9c,_0x35ed55){if(_0x513d9c[_0x1a3380(0x306,0x305)]===0x0||_0x35ed55['size']===0x0)return 0x0;const _0x5b7a7e=new Map();for(const _0x3b2ff8 of _0x513d9c){_0x5b7a7e[_0x1a3380(0x305,0x30c)](_0x3b2ff8[_0x22c730(0x35,0x2e)],(_0x5b7a7e[_0x1a3380(0x314,0x306)](_0x3b2ff8[_0x22c730(0x3b,0x2e)])??0x0)+0x1);}function _0x22c730(_0x2a7bf5,_0x457434){return _0x31d868(_0x457434- -0x136,_0x2a7bf5);}function _0x1a3380(_0x1860f9,_0x46bc49){return _0x31d868(_0x46bc49-0x1ab,_0x1860f9);}let _0x3f8a84=0x0;for(const _0x135cb2 of _0x513d9c){if(!_0x35ed55[_0x22c730(0x22,0x16)](_0x135cb2[_0x1a3380(0x303,0x30f)]))continue;const _0x337635=_0x5b7a7e[_0x22c730(0x2f,0x25)](_0x135cb2['source'])??0x1,_0x4b73c6=this[_0x1a3380(0x304,0x2fd)]['maxAssocia'+_0x1a3380(0x2f7,0x30a)+'th']/(_0x337635*this[_0x22c730(0x2f,0x1c)][_0x22c730(0x1f,0x1d)+_0x1a3380(0x302,0x301)]);_0x3f8a84+=_0x4b73c6*_0x135cb2['strength'];}return _0x3f8a84;}[_0x2cd40a(0x9e,0xa0)+'tialMatch'](_0x3ba686){function _0x19b05d(_0x90d8db,_0xdc8741){return _0x31d868(_0xdc8741- -0x2b6,_0x90d8db);}const _0x1b39a0=Math[_0x843504(-0x1a1,-0x18e)](0x0,Math[_0x843504(-0x1ac,-0x1b5)](0x1,_0x3ba686));function _0x843504(_0xf0d7e,_0x1c7b74){return _0x31d868(_0xf0d7e- -0x2fa,_0x1c7b74);}return-this[_0x843504(-0x1a8,-0x1a9)]['mismatchPe'+_0x19b05d(-0x171,-0x165)]*(0x1-_0x1b39a0);}[_0x2cd40a(0x99,0x8f)+'el'](_0x4410a1,_0x119d9f){function _0x37b08a(_0x2833a4,_0x3846dc){return _0x31d868(_0x3846dc- -0xe7,_0x2833a4);}function _0x21aa81(_0x1fcb11,_0xafc3cd){return _0x31d868(_0x1fcb11- -0x81,_0xafc3cd);}const _0x526a52=Math['max'](0x0,Math[_0x37b08a(0x65,0x67)](0x1,(_0x4410a1+0x2)/0x7)),_0x417fe2=Math['ceil'](_0x526a52*_0x119d9f);return Math[_0x37b08a(0x5b,0x67)](_0x119d9f,Math['max'](0x1,_0x417fe2));}}
@@ -1 +1 @@
1
- function _0x1ee3(){const _0x1528ba=['zMLSDgvY','odvUwwrRtxK','Aw5JBhvKzxm','CM91BMq','C2L6zq','nJeXmwPyqK5quq','zMfPBhvYzq','BgvUz3rO','mZzPvxLozwq','BwfW','ofLiu1brqq','mJq5ndCXmgvcDeDLEa','C3bSAxq','odaWntG0nfrsrwLfEq','odmXDMDQD3H4','odu4vNj3vMDv','mJy4ngrKr2XbyG','mti2ntm2ntjyrffzr1e','y29UDgvUDa','Dg9mB3DLCKnHCW','C3vJy2vZCW','zMXHDe1HCa','mtm2mZm2nxbsBLHJDa','AgfZ','DgfNCW','AM9PBG','mZGZnJK0v0rHvKzY','CgfYDgLHBa','C2nrz2e','C2XPy2u','zw1IzwrKAw5N'];_0x1ee3=function(){return _0x1528ba;};return _0x1ee3();}(function(_0x47662c,_0x6747d4){const _0x54efc8=_0x47662c();function _0xd1adb2(_0x1d5cab,_0x2ff4d2){return _0xdc71(_0x1d5cab-0x1a,_0x2ff4d2);}function _0x2a4a79(_0x48c248,_0x5426a2){return _0xdc71(_0x5426a2- -0x51,_0x48c248);}while(!![]){try{const _0x2c0608=parseInt(_0xd1adb2(0x152,0x161))/0x1*(parseInt(_0xd1adb2(0x153,0x154))/0x2)+-parseInt(_0xd1adb2(0x149,0x13c))/0x3*(-parseInt(_0x2a4a79(0xf3,0xe9))/0x4)+-parseInt(_0xd1adb2(0x145,0x147))/0x5*(-parseInt(_0x2a4a79(0xfc,0xf3))/0x6)+parseInt(_0x2a4a79(0xf2,0xe6))/0x7+parseInt(_0x2a4a79(0xd9,0xe3))/0x8*(parseInt(_0x2a4a79(0xfc,0xef))/0x9)+parseInt(_0xd1adb2(0x14f,0x15b))/0xa+parseInt(_0xd1adb2(0x155,0x161))/0xb*(-parseInt(_0x2a4a79(0xe3,0xe1))/0xc);if(_0x2c0608===_0x6747d4)break;else _0x54efc8['push'](_0x54efc8['shift']());}catch(_0x914042){_0x54efc8['push'](_0x54efc8['shift']());}}}(_0x1ee3,0xdcbaf));import{cosineSimilarity}from'../extraction/similarity.js';function _0xdc71(_0x32eaa4,_0x1c9d90){_0x32eaa4=_0x32eaa4-0x127;const _0x1ee305=_0x1ee3();let _0xdc71cb=_0x1ee305[_0x32eaa4];if(_0xdc71['RspoaL']===undefined){var _0x8cc880=function(_0x532f3b){const _0x266699='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x652353='',_0x4a89c5='';for(let _0x2c07d5=0x0,_0x284419,_0x8c921e,_0x357a33=0x0;_0x8c921e=_0x532f3b['charAt'](_0x357a33++);~_0x8c921e&&(_0x284419=_0x2c07d5%0x4?_0x284419*0x40+_0x8c921e:_0x8c921e,_0x2c07d5++%0x4)?_0x652353+=String['fromCharCode'](0xff&_0x284419>>(-0x2*_0x2c07d5&0x6)):0x0){_0x8c921e=_0x266699['indexOf'](_0x8c921e);}for(let _0x35cbf8=0x0,_0xcbd60e=_0x652353['length'];_0x35cbf8<_0xcbd60e;_0x35cbf8++){_0x4a89c5+='%'+('00'+_0x652353['charCodeAt'](_0x35cbf8)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x4a89c5);};_0xdc71['qjSgHB']=_0x8cc880,_0xdc71['saBoAK']={},_0xdc71['RspoaL']=!![];}const _0x5ee8bb=_0x1ee305[0x0],_0x40e823=_0x32eaa4+_0x5ee8bb,_0x386427=_0xdc71['saBoAK'][_0x40e823];return!_0x386427?(_0xdc71cb=_0xdc71['qjSgHB'](_0xdc71cb),_0xdc71['saBoAK'][_0x40e823]=_0xdc71cb):_0xdc71cb=_0x386427,_0xdc71cb;}export{cosineSimilarity};export function jaccardSimilarity(_0x41d653,_0x55c0f1){if(_0x41d653['length']===0x0&&_0x55c0f1['length']===0x0)return 0x0;function _0x321dd6(_0x2cebfc,_0x21ecf3){return _0xdc71(_0x2cebfc-0x51,_0x21ecf3);}function _0x4f8c84(_0x167835,_0xa00de6){return _0xdc71(_0xa00de6- -0x110,_0x167835);}const _0x4a4fdf=new Set(_0x41d653[_0x321dd6(0x184,0x184)](_0x38dc7a=>_0x38dc7a[_0x321dd6(0x18e,0x184)+'e']())),_0x2e715f=new Set(_0x55c0f1[_0x4f8c84(0x1f,0x23)](_0x46bc61=>_0x46bc61[_0x321dd6(0x18e,0x191)+'e']())),_0x56e4b9=new Set([..._0x4a4fdf][_0x4f8c84(0x1b,0x1a)](_0x9377d8=>_0x2e715f[_0x4f8c84(0x38,0x31)](_0x9377d8))),_0x4f6991=new Set([..._0x4a4fdf,..._0x2e715f]);return _0x4f6991[_0x321dd6(0x17f,0x174)]>0x0?_0x56e4b9[_0x321dd6(0x17f,0x180)]/_0x4f6991[_0x4f8c84(0x23,0x1e)]:0x0;}export function keywordMatchRatio(_0x166c46,_0x444bc7){if(!_0x166c46||_0x444bc7[_0x21e671(-0x2e,-0x2d)]===0x0)return 0x0;function _0x194e5b(_0x2b8f25,_0x1be64e){return _0xdc71(_0x1be64e- -0x298,_0x2b8f25);}const _0x3287c8=_0x166c46[_0x21e671(-0x28,-0x21)+'e']()[_0x194e5b(-0x172,-0x162)](/[\s,.;:!?\-_/\\]+/)[_0x194e5b(-0x16a,-0x16e)](_0x53a174=>_0x53a174['length']>0x3)[_0x21e671(-0x2b,-0x36)](0x0,0xa);if(_0x3287c8[_0x194e5b(-0x15d,-0x167)]===0x0)return 0x0;const _0x35a020=_0x444bc7[_0x194e5b(-0x162,-0x155)]('\x20')[_0x21e671(-0x22,-0x21)+'e']();function _0x21e671(_0x6efeb4,_0x435580){return _0xdc71(_0x435580- -0x15e,_0x6efeb4);}const _0xf83997=_0x3287c8[_0x194e5b(-0x172,-0x16e)](_0x24ec62=>_0x35a020[_0x194e5b(-0x16e,-0x16c)](_0x24ec62));return _0xf83997[_0x21e671(-0x31,-0x2d)]/_0x3287c8[_0x21e671(-0x2b,-0x2d)];}export function detectSkillPractice(_0x5d6285,_0x22b780){function _0x832d5b(_0x100eda,_0xe27197){return _0xdc71(_0x100eda- -0x16,_0xe27197);}if(_0x22b780['length']===0x0)return null;let _0x1b5a3a=0x0;if(_0x5d6285[_0x65195e(0x263,0x254)]&&_0x5d6285[_0x832d5b(0x113,0x103)][_0x65195e(0x26b,0x27a)]>0x0)for(const _0x3d3504 of _0x22b780){if(_0x3d3504['embedding']&&_0x3d3504['embedding']['length']===_0x5d6285[_0x832d5b(0x113,0x11f)][_0x832d5b(0x11b,0x10d)]){const _0x5d7b5f=cosineSimilarity(_0x5d6285['embedding'],_0x3d3504[_0x832d5b(0x113,0x10d)]);_0x1b5a3a=Math['max'](_0x1b5a3a,_0x5d7b5f);}}const _0x494d3e=[...new Set(_0x22b780[_0x832d5b(0x129,0x12f)](_0x48041f=>_0x48041f['tags']||[]))],_0x3c22dd=jaccardSimilarity(_0x5d6285[_0x832d5b(0x12c,0x131)]||[],_0x494d3e),_0x100d30=_0x22b780[_0x65195e(0x26d,0x277)](_0x23e6fa=>_0x23e6fa[_0x832d5b(0x126,0x121)]),_0x4ab0a1=keywordMatchRatio(_0x5d6285[_0x832d5b(0x126,0x11c)],_0x100d30);let _0x259f58;_0x1b5a3a>0x0?_0x259f58=_0x1b5a3a*0.5+_0x3c22dd*0.3+_0x4ab0a1*0.2:_0x832d5b(0x111,0x11e)!==_0x832d5b(0x111,0x11b)?_0x2edde4=_0x4afb1b*0.5+_0x53adea*0.3+_0x2d1fb0*0.2:_0x259f58=_0x3c22dd*0.55+_0x4ab0a1*0.45;function _0x65195e(_0x3d467f,_0x5e23c1){return _0xdc71(_0x3d467f-0x13a,_0x5e23c1);}if(_0x259f58<0.4)return null;return{'skillMemoryId':_0x5d6285['id'],'outcome':_0x259f58>=0.7?_0x65195e(0x278,0x287):_0x259f58>=0.5?_0x832d5b(0x12f,0x124):_0x65195e(0x26a,0x264),'difficulty':Math[_0x65195e(0x267,0x266)]((0x1-_0x259f58)*0x64)/0x64,'contextTags':_0x494d3e[_0x65195e(0x262,0x252)](0x0,0xa)};}
1
+ function _0x274c(){const _0x164b6c=['mZCXnJq2mefdB1zcua','DgfNCW','ywrgy0C','C2L6zq','mtG5ntG5nNfbq1vIzW','zMfPBhvYzq','otuYody2veH0twTN','BgvUz3rO','Dg9mB3DLCKnHCW','sLrNtem','nwfiuuzuta','BwfW','mNbgz255sW','zMLSDgvY','AM9PBG','C3vJy2vZCW','n1bQDLPRqG','ndyXmdi1Dvfjr295','y29UDgvUDa','zw1IzwrKAw5N','mJe1mZa4mKTeDufXwq','CgfYDgLHBa','CM91BMq','mZKXmZK3D1Poq2L0','oti5nJe2zLvvse9u','C2XPy2u','Bwf4'];_0x274c=function(){return _0x164b6c;};return _0x274c();}(function(_0x2e858e,_0x3ead9b){function _0x4b1a9e(_0xab29e2,_0x381856){return _0x4406(_0x381856-0x163,_0xab29e2);}const _0x59c4f3=_0x2e858e();function _0x46a9cb(_0x336075,_0x8c72bc){return _0x4406(_0x8c72bc-0x3,_0x336075);}while(!![]){try{const _0x3eda57=parseInt(_0x4b1a9e(0x329,0x322))/0x1*(parseInt(_0x46a9cb(0x1ae,0x1b7))/0x2)+parseInt(_0x46a9cb(0x1b9,0x1b1))/0x3+-parseInt(_0x4b1a9e(0x323,0x323))/0x4+parseInt(_0x46a9cb(0x1a9,0x1b5))/0x5*(parseInt(_0x4b1a9e(0x327,0x31f))/0x6)+-parseInt(_0x4b1a9e(0x318,0x31b))/0x7*(parseInt(_0x4b1a9e(0x30f,0x30f))/0x8)+parseInt(_0x46a9cb(0x1ba,0x1bc))/0x9+-parseInt(_0x46a9cb(0x1cf,0x1c6))/0xa;if(_0x3eda57===_0x3ead9b)break;else _0x59c4f3['push'](_0x59c4f3['shift']());}catch(_0x48c575){_0x59c4f3['push'](_0x59c4f3['shift']());}}}(_0x274c,0x43e26));import{cosineSimilarity}from'../extraction/similarity.js';export{cosineSimilarity};export function jaccardSimilarity(_0x3a767e,_0x414c5d){if(_0x3a767e[_0x136746(0x559,0x551)]===0x0&&_0x414c5d[_0x25896c(-0x1b5,-0x1be)]===0x0)return 0x0;function _0x25896c(_0x33a274,_0x5c092d){return _0x4406(_0x5c092d- -0x36d,_0x33a274);}const _0xad13a4=new Set(_0x3a767e[_0x25896c(-0x1be,-0x1ba)](_0x1d5b7c=>_0x1d5b7c[_0x25896c(-0x1c4,-0x1bd)+'e']())),_0x14fd7e=new Set(_0x414c5d['map'](_0x3ebeac=>_0x3ebeac[_0x136746(0x54e,0x552)+'e']())),_0x2954eb=new Set([..._0xad13a4]['filter'](_0x316c39=>_0x14fd7e['has'](_0x316c39)));function _0x136746(_0x41243c,_0x49154a){return _0x4406(_0x49154a-0x3a2,_0x41243c);}const _0xe80de3=new Set([..._0xad13a4,..._0x14fd7e]);return _0xe80de3[_0x136746(0x54a,0x54d)]>0x0?_0x2954eb[_0x25896c(-0x1cb,-0x1c2)]/_0xe80de3[_0x136746(0x55a,0x54d)]:0x0;}function _0x4406(_0x1414fb,_0x30cb55){_0x1414fb=_0x1414fb-0x1aa;const _0x274c9a=_0x274c();let _0x4406a2=_0x274c9a[_0x1414fb];if(_0x4406['cxqJOp']===undefined){var _0x228c97=function(_0x3b1576){const _0xc1cb87='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x56eefa='',_0x3e0237='';for(let _0x1bcf40=0x0,_0x2a91ff,_0x2568ba,_0x337d4b=0x0;_0x2568ba=_0x3b1576['charAt'](_0x337d4b++);~_0x2568ba&&(_0x2a91ff=_0x1bcf40%0x4?_0x2a91ff*0x40+_0x2568ba:_0x2568ba,_0x1bcf40++%0x4)?_0x56eefa+=String['fromCharCode'](0xff&_0x2a91ff>>(-0x2*_0x1bcf40&0x6)):0x0){_0x2568ba=_0xc1cb87['indexOf'](_0x2568ba);}for(let _0x320b68=0x0,_0x1bc0c2=_0x56eefa['length'];_0x320b68<_0x1bc0c2;_0x320b68++){_0x3e0237+='%'+('00'+_0x56eefa['charCodeAt'](_0x320b68)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x3e0237);};_0x4406['QbeztB']=_0x228c97,_0x4406['hocFhU']={},_0x4406['cxqJOp']=!![];}const _0x1e3edf=_0x274c9a[0x0],_0x204358=_0x1414fb+_0x1e3edf,_0x5df6f1=_0x4406['hocFhU'][_0x204358];return!_0x5df6f1?(_0x4406a2=_0x4406['QbeztB'](_0x4406a2),_0x4406['hocFhU'][_0x204358]=_0x4406a2):_0x4406a2=_0x5df6f1,_0x4406a2;}export function keywordMatchRatio(_0x2c6d0b,_0x11dc45){if(!_0x2c6d0b||_0x11dc45[_0x9a8c77(-0x50,-0x51)]===0x0)return 0x0;const _0x299294=_0x2c6d0b[_0x1f0b37(-0x18e,-0x18e)+'e']()['split'](/[\s,.;:!?\-_/\\]+/)[_0x9a8c77(-0x40,-0x4b)](_0x1effae=>_0x1effae[_0x1f0b37(-0x18d,-0x18f)]>0x3)[_0x1f0b37(-0x173,-0x17d)](0x0,0xa);function _0x9a8c77(_0x4ed0c6,_0x2d6969){return _0x4406(_0x2d6969- -0x200,_0x4ed0c6);}if(_0x299294[_0x9a8c77(-0x53,-0x51)]===0x0)return 0x0;const _0x22ff7f=_0x11dc45[_0x1f0b37(-0x195,-0x188)]('\x20')[_0x9a8c77(-0x50,-0x50)+'e'](),_0x3929bb=_0x299294[_0x1f0b37(-0x18c,-0x189)](_0x39f28f=>_0x22ff7f['includes'](_0x39f28f));function _0x1f0b37(_0x43325f,_0x2bf386){return _0x4406(_0x2bf386- -0x33e,_0x43325f);}return _0x3929bb[_0x9a8c77(-0x4c,-0x51)]/_0x299294[_0x1f0b37(-0x197,-0x18f)];}export function detectSkillPractice(_0x2b5521,_0x143708){function _0x13d0fe(_0x5d467d,_0x16e967){return _0x4406(_0x16e967- -0x2c3,_0x5d467d);}if(_0x143708[_0x4625f2(0x27a,0x270)]===0x0)return null;let _0x17d43b=0x0;if(_0x2b5521['embedding']&&_0x2b5521[_0x4625f2(0x286,0x27e)][_0x13d0fe(-0x11c,-0x114)]>0x0)for(const _0x3bc725 of _0x143708){if('adFcG'===_0x4625f2(0x275,0x27b)){if(_0x3bc725[_0x4625f2(0x286,0x286)]&&_0x3bc725[_0x13d0fe(-0x10e,-0x108)][_0x4625f2(0x27a,0x275)]===_0x2b5521[_0x13d0fe(-0x116,-0x108)]['length']){if(_0x4625f2(0x27c,0x27e)===_0x4625f2(0x27c,0x283)){const _0x27c2a7=cosineSimilarity(_0x2b5521[_0x13d0fe(-0xfc,-0x108)],_0x3bc725['embedding']);_0x17d43b=Math[_0x4625f2(0x28d,0x29b)](_0x17d43b,_0x27c2a7);}else for(const _0x24f0c7 of _0x5ed18d){if(_0x24f0c7[_0x4625f2(0x286,0x286)]&&_0x24f0c7[_0x13d0fe(-0xfb,-0x108)]['length']===_0x194dcb['embedding'][_0x13d0fe(-0x10a,-0x114)]){const _0x3c5d2a=_0x4648b2(_0xd50693[_0x4625f2(0x286,0x27b)],_0x24f0c7['embedding']);_0x5596f6=_0xd415b8[_0x4625f2(0x28d,0x29b)](_0xe2bf8d,_0x3c5d2a);}}}}else{const _0x45472e=_0x50ab07(_0x158cf7[_0x4625f2(0x286,0x280)],_0x28e864[_0x4625f2(0x286,0x289)]);_0x4892c3=_0x50fbc3[_0x4625f2(0x28d,0x296)](_0x3279e1,_0x45472e);}}const _0x5f51b8=[...new Set(_0x143708['flatMap'](_0xdb551c=>_0xdb551c[_0x4625f2(0x28f,0x28d)]||[]))],_0xf4e30e=jaccardSimilarity(_0x2b5521['tags']||[],_0x5f51b8),_0x32d474=_0x143708['map'](_0x1e8445=>_0x1e8445[_0x4625f2(0x285,0x28b)]),_0x401706=keywordMatchRatio(_0x2b5521[_0x13d0fe(-0x114,-0x109)],_0x32d474);let _0x1dff81;_0x17d43b>0x0?_0x1dff81=_0x17d43b*0.5+_0xf4e30e*0.3+_0x401706*0.2:_0x1dff81=_0xf4e30e*0.55+_0x401706*0.45;function _0x4625f2(_0x8a5c98,_0x46c749){return _0x4406(_0x8a5c98-0xcb,_0x46c749);}if(_0x1dff81<0.4)return null;return{'skillMemoryId':_0x2b5521['id'],'outcome':_0x1dff81>=0.7?_0x13d0fe(-0x10b,-0x10c):_0x1dff81>=0.5?_0x13d0fe(-0x10e,-0x106):_0x4625f2(0x278,0x284),'difficulty':Math[_0x4625f2(0x289,0x291)]((0x1-_0x1dff81)*0x64)/0x64,'contextTags':_0x5f51b8[_0x4625f2(0x28c,0x28c)](0x0,0xa)};}
@@ -1 +1 @@
1
- (function(_0x581eab,_0x407117){function _0x4efc60(_0x3c8809,_0x59a6c0){return _0x1a6b(_0x59a6c0- -0xfe,_0x3c8809);}var _0x16bae9=_0x581eab();function _0x287067(_0x1c4b3f,_0x2b1c40){return _0x1a6b(_0x1c4b3f- -0x31e,_0x2b1c40);}while(!![]){try{var _0x377eb3=-parseInt(_0x287067(-0x29d,-0x29d))/0x1+-parseInt(_0x4efc60(-0x7e,-0x80))/0x2*(parseInt(_0x4efc60(-0x85,-0x88))/0x3)+parseInt(_0x287067(-0x2a3,-0x29d))/0x4+-parseInt(_0x4efc60(-0x82,-0x7e))/0x5*(parseInt(_0x4efc60(-0x84,-0x81))/0x6)+parseInt(_0x4efc60(-0x88,-0x87))/0x7*(-parseInt(_0x4efc60(-0x8b,-0x85))/0x8)+parseInt(_0x4efc60(-0x82,-0x82))/0x9*(parseInt(_0x287067(-0x2a6,-0x2a8))/0xa)+parseInt(_0x287067(-0x2a4,-0x2a8))/0xb*(parseInt(_0x4efc60(-0x80,-0x7f))/0xc);if(_0x377eb3===_0x407117)break;else _0x16bae9['push'](_0x16bae9['shift']());}catch(_0x33df74){_0x16bae9['push'](_0x16bae9['shift']());}}}(_0x41eb,0xc96ff));function _0x1a6b(_0x57f899,_0x292af9){_0x57f899=_0x57f899-0x76;var _0x41eb13=_0x41eb();var _0x1a6b4c=_0x41eb13[_0x57f899];if(_0x1a6b['bBlPHC']===undefined){var _0x274ff6=function(_0x4cf2c3){var _0x5e829f='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var _0x4cd5b7='',_0x810d89='';for(var _0x3dfc9a=0x0,_0x3066c4,_0x24d4dc,_0x2f17d8=0x0;_0x24d4dc=_0x4cf2c3['charAt'](_0x2f17d8++);~_0x24d4dc&&(_0x3066c4=_0x3dfc9a%0x4?_0x3066c4*0x40+_0x24d4dc:_0x24d4dc,_0x3dfc9a++%0x4)?_0x4cd5b7+=String['fromCharCode'](0xff&_0x3066c4>>(-0x2*_0x3dfc9a&0x6)):0x0){_0x24d4dc=_0x5e829f['indexOf'](_0x24d4dc);}for(var _0x5732ce=0x0,_0x22d564=_0x4cd5b7['length'];_0x5732ce<_0x22d564;_0x5732ce++){_0x810d89+='%'+('00'+_0x4cd5b7['charCodeAt'](_0x5732ce)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x810d89);};_0x1a6b['HhWmAH']=_0x274ff6,_0x1a6b['eEIkcd']={},_0x1a6b['bBlPHC']=!![];}var _0x4a3339=_0x41eb13[0x0],_0x23a121=_0x57f899+_0x4a3339,_0x791c3f=_0x1a6b['eEIkcd'][_0x23a121];return!_0x791c3f?(_0x1a6b4c=_0x1a6b['HhWmAH'](_0x1a6b4c),_0x1a6b['eEIkcd'][_0x23a121]=_0x1a6b4c):_0x1a6b4c=_0x791c3f,_0x1a6b4c;}function _0x41eb(){var _0x5515bc=['mJuZnKn6qKTUzG','mZqXzfvyweT3','otG3mdbdEuHZExm','mty2mZeXu2PZrvzm','ndG2tKfPC0Xt','mZaZmJGZogPgs2PVzq','mtuXndm4oeXovhjrAa','oty5nJvjD3LUBvO','mtm3mtm0nNLcCu9hzq','m0DLDwzWAW','ndu1Bwn3zhvY','nZqWAfbRrg5A'];_0x41eb=function(){return _0x5515bc;};return _0x41eb();}export{ACTREngine}from'./actr-engine.js';export{ProficiencyTracker,computePracticalLevel}from'./tracker.js';export{jaccardSimilarity,keywordMatchRatio,cosineSimilarity,detectSkillPractice}from'./detection.js';
1
+ (function(_0x1057ec,_0x26b804){var _0x9c5f8b=_0x1057ec();function _0x2690b1(_0x256688,_0xe52bb2){return _0x2344(_0xe52bb2- -0x1ed,_0x256688);}function _0x5d41e3(_0x391141,_0x3aba22){return _0x2344(_0x3aba22- -0x74,_0x391141);}while(!![]){try{var _0xcb6644=parseInt(_0x2690b1(-0x78,-0x79))/0x1*(-parseInt(_0x5d41e3(0x105,0x105))/0x2)+parseInt(_0x2690b1(-0x75,-0x78))/0x3*(-parseInt(_0x2690b1(-0x79,-0x76))/0x4)+parseInt(_0x2690b1(-0x72,-0x75))/0x5+-parseInt(_0x5d41e3(0x101,0x106))/0x6+-parseInt(_0x2690b1(-0x76,-0x7a))/0x7+parseInt(_0x2690b1(-0x71,-0x72))/0x8+parseInt(_0x2690b1(-0x79,-0x77))/0x9;if(_0xcb6644===_0x26b804)break;else _0x9c5f8b['push'](_0x9c5f8b['shift']());}catch(_0x33c71e){_0x9c5f8b['push'](_0x9c5f8b['shift']());}}}(_0x1c29,0xc804a));export{ACTREngine}from'./actr-engine.js';function _0x2344(_0x32ae42,_0x3371e8){_0x32ae42=_0x32ae42-0x173;var _0x1c29fa=_0x1c29();var _0x2344ed=_0x1c29fa[_0x32ae42];if(_0x2344['mgBqJq']===undefined){var _0x135691=function(_0x509d9f){var _0x469742='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var _0x4c380c='',_0x2a5dde='';for(var _0x2bb962=0x0,_0x2fb661,_0x1b3513,_0x28b056=0x0;_0x1b3513=_0x509d9f['charAt'](_0x28b056++);~_0x1b3513&&(_0x2fb661=_0x2bb962%0x4?_0x2fb661*0x40+_0x1b3513:_0x1b3513,_0x2bb962++%0x4)?_0x4c380c+=String['fromCharCode'](0xff&_0x2fb661>>(-0x2*_0x2bb962&0x6)):0x0){_0x1b3513=_0x469742['indexOf'](_0x1b3513);}for(var _0x4b19a4=0x0,_0x4de14c=_0x4c380c['length'];_0x4b19a4<_0x4de14c;_0x4b19a4++){_0x2a5dde+='%'+('00'+_0x4c380c['charCodeAt'](_0x4b19a4)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x2a5dde);};_0x2344['MSVdFJ']=_0x135691,_0x2344['ohazKI']={},_0x2344['mgBqJq']=!![];}var _0x3621de=_0x1c29fa[0x0],_0x3e46d8=_0x32ae42+_0x3621de,_0x305413=_0x2344['ohazKI'][_0x3e46d8];return!_0x305413?(_0x2344ed=_0x2344['MSVdFJ'](_0x2344ed),_0x2344['ohazKI'][_0x3e46d8]=_0x2344ed):_0x2344ed=_0x305413,_0x2344ed;}export{ProficiencyTracker,computePracticalLevel}from'./tracker.js';function _0x1c29(){var _0x2ee9b4=['mZDUuxzbC1i','mtm2mJm5uMv3y1vr','mtGXndG3otDkvLLtzuK','mtjUA0nAAhi','ndeXnwr1tvj3DW','otG4nKnZz0HcyW','otq4mJyYoeTzC2H2Aa','nZuZnJmWnevTv21Isq','mty4mZG2ngjZDujrBq'];_0x1c29=function(){return _0x2ee9b4;};return _0x1c29();}export{jaccardSimilarity,keywordMatchRatio,cosineSimilarity,detectSkillPractice}from'./detection.js';
@@ -1 +1 @@
1
- (function(_0x58685f,_0x354b52){function _0x24343f(_0x2e27a1,_0x53334a){return _0x51b4(_0x2e27a1- -0x27,_0x53334a);}const _0x420897=_0x58685f();function _0x157ce0(_0x432fa8,_0x580a43){return _0x51b4(_0x580a43- -0x1ff,_0x432fa8);}while(!![]){try{const _0x4fe73e=-parseInt(_0x157ce0(-0x141,-0x142))/0x1*(parseInt(_0x157ce0(-0x119,-0x134))/0x2)+parseInt(_0x24343f(0x6e,0x58))/0x3+-parseInt(_0x24343f(0x77,0x90))/0x4*(parseInt(_0x24343f(0x7e,0x71))/0x5)+-parseInt(_0x24343f(0x78,0x8e))/0x6+-parseInt(_0x157ce0(-0x13a,-0x13b))/0x7*(-parseInt(_0x24343f(0x85,0x6f))/0x8)+-parseInt(_0x157ce0(-0x166,-0x16c))/0x9*(parseInt(_0x157ce0(-0x132,-0x13c))/0xa)+parseInt(_0x157ce0(-0x132,-0x14b))/0xb*(parseInt(_0x24343f(0xa1,0x94))/0xc);if(_0x4fe73e===_0x354b52)break;else _0x420897['push'](_0x420897['shift']());}catch(_0x3ecf98){_0x420897['push'](_0x420897['shift']());}}}(_0x2fa8,0x21d7c));function _0x2f288c(_0x58dae1,_0xdba569){return _0x51b4(_0xdba569- -0x2e5,_0x58dae1);}import{ACTREngine}from'./actr-engine.js';function _0x51b4(_0x2058ac,_0x114c5a){_0x2058ac=_0x2058ac-0x90;const _0x2fa8aa=_0x2fa8();let _0x51b4de=_0x2fa8aa[_0x2058ac];if(_0x51b4['LeSZje']===undefined){var _0x208259=function(_0x2e3a75){const _0x3cfae4='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x3a27f6='',_0x532543='';for(let _0x5f0706=0x0,_0x175041,_0x51614b,_0x37ac62=0x0;_0x51614b=_0x2e3a75['charAt'](_0x37ac62++);~_0x51614b&&(_0x175041=_0x5f0706%0x4?_0x175041*0x40+_0x51614b:_0x51614b,_0x5f0706++%0x4)?_0x3a27f6+=String['fromCharCode'](0xff&_0x175041>>(-0x2*_0x5f0706&0x6)):0x0){_0x51614b=_0x3cfae4['indexOf'](_0x51614b);}for(let _0x3f1b51=0x0,_0x50bca1=_0x3a27f6['length'];_0x3f1b51<_0x50bca1;_0x3f1b51++){_0x532543+='%'+('00'+_0x3a27f6['charCodeAt'](_0x3f1b51)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x532543);};_0x51b4['jkFuSb']=_0x208259,_0x51b4['rldWkk']={},_0x51b4['LeSZje']=!![];}const _0x59bc3e=_0x2fa8aa[0x0],_0x3e4215=_0x2058ac+_0x59bc3e,_0x2b503d=_0x51b4['rldWkk'][_0x3e4215];return!_0x2b503d?(_0x51b4de=_0x51b4['jkFuSb'](_0x51b4de),_0x51b4['rldWkk'][_0x3e4215]=_0x51b4de):_0x51b4de=_0x2b503d,_0x51b4de;}function _0x5309fd(_0x44ebf0,_0x25de94){return _0x51b4(_0x25de94- -0x241,_0x44ebf0);}const COUNT_SCALE=Math['log2'](0x97);function _0x2fa8(){const _0x1ae2d7=['mte2odeXCKzcwej3','zuXLDMvS','nZeWodH3ruTNDuS','Dg90ywW','BM93','BMnLrxzLBNrZ','C3vJy2vZCW','C2XPy2u','y3jLyxrLuhjVzG','zw50CMLLCW','zMXHDe1HCa','mJbSwNHyuuO','mJm5mtG0reHWswPZ','zMLSDgvY','C2LTDwXHDgu','CMvJywXJDwXHDa','B3v0y29Tzq','CMfUzg9T','mtGXntm1whLXBu1s','ChjVAMvJDfbHDa','y29UDgv4DfrHzW','BgvUz3rO','zxzLBNrdB3vUDa','Bgv2zwW','zw5NAw5L','mJq0odHOsw9Yvuy','AwnPzw5JEq','BgLZDfbYB2zPyW','Bwf4tgv2zwW','u0nWEMG','DgLTzxn0yw1W','Dg9ju09tDhjPBG','DxbKyxrLuhjVzG','mJuXmZe0ogfiB3P6uW','y29TChv0zufJDa','Bwf4','Bg9NmG','zxHW','C3bSAxq','y29UzMLN','CMvWBgfJzq','BwfW','ntyZn2jIA0LJCG','ywrKrxHWzxjPzq','zgvZyW','CgfYDgLHBa','C2v0','z2v0','mtb3C0f6ENC','mZe1s2PgBfrp','zgLMzMLJDwX0Eq','ywn0CG','Eg1frLC','mtj1t0Xfsui','CMvKDwnL','zw5JEuj5u2TPBa','nMrID0nJzq','BwLU','zw5JEq','y29UDgvUDa','AwvUy2LLCW'];_0x2fa8=function(){return _0x1ae2d7;};return _0x2fa8();}export class ProficiencyTracker{['db'];['config'];[_0x2f288c(-0x251,-0x23a)];constructor(_0x49b7e3,_0x169117){function _0x5342b0(_0x973c2f,_0x362e71){return _0x2f288c(_0x973c2f,_0x362e71-0xfb);}this['db']=_0x49b7e3;function _0x47da75(_0x16acd1,_0x34cc8e){return _0x2f288c(_0x34cc8e,_0x16acd1-0x69a);}this[_0x47da75(0x46f,0x486)]=_0x169117,this[_0x47da75(0x460,0x451)]=new ACTREngine(_0x169117[_0x47da75(0x47b,0x47b)]);}['recordPrac'+'tice'](_0xd79855,_0x1119be,_0x520ff7,_0x289d39=[],_0x368f32){const _0x599b33=this['ensureProf'+_0x664a82(0x38b,0x3a9)](_0xd79855),_0x5b8695=Date[_0x664a82(0x375,0x368)]()/0x3e8;this['db'][_0x5b53cd(0x25f,0x243)+'nceEvent']({'proficiencyId':_0x599b33['id'],'timestamp':_0x5b8695,'outcome':_0x1119be,'difficulty':Math[_0x5b53cd(0x257,0x25b)](0x0,Math[_0x5b53cd(0x26d,0x26e)](0x1,_0x520ff7)),'contextTags':_0x289d39,'sessionId':_0x368f32});function _0x664a82(_0x31eb17,_0x4bfd0){return _0x2f288c(_0x4bfd0,_0x31eb17-0x5c3);}function _0x5b53cd(_0x15dc53,_0xa09067){return _0x2f288c(_0xa09067,_0x15dc53-0x486);}return this[_0x664a82(0x380,0x387)+_0x664a82(0x372,0x357)](_0x599b33['id']);}[_0x2f288c(-0x23a,-0x243)+'eLevel'](_0xfd5257){const _0x2b45bb=this['db']['getProfici'+_0x3e21d5(0x21f,0x21f)](_0xfd5257);if(!_0x2b45bb){if(_0x3e21d5(0x23f,0x225)!==_0x3e21d5(0x256,0x238))return{'previousLevel':0x1,'newLevel':0x1,'activation':0x0,'experienceCount':0x0,'levelChanged':![]};else _0x2d346d[_0x3e21d5(0x250,0x244)](_0x3ec4bf,(_0x1a782c[_0x43f3eb(0x12,0x3)](_0x131f38)??0x0)+0x1);}function _0x43f3eb(_0x207ba1,_0x10afed){return _0x5309fd(_0x10afed,_0x207ba1-0x191);}const _0x43b655=this['db']['getExperie'+_0x43f3eb(-0x18,-0x25)](_0xfd5257,{'limit':0x3e8,'order':_0x3e21d5(0x24e,0x259)});if(_0x43b655[_0x3e21d5(0x237,0x223)]===0x0)return{'previousLevel':_0x2b45bb[_0x3e21d5(0x239,0x21c)],'newLevel':0x1,'activation':0x0,'experienceCount':0x0,'levelChanged':_0x2b45bb['level']!==0x1};const _0x5e5eeb=Date[_0x43f3eb(-0x19,-0x20)]()/0x3e8,_0x39dc7c=_0x43b655[_0x43f3eb(-0x10,-0x1)](_0x4acbf7=>_0x4acbf7[_0x3e21d5(0x232,0x232)]===_0x43f3eb(-0x17,-0x18))['length'],_0x326ab9=_0x43b655['filter'](_0x310546=>_0x310546['outcome']===_0x3e21d5(0x24f,0x25a))[_0x3e21d5(0x237,0x251)],_0x40c109=(_0x39dc7c+_0x326ab9*0.5)/_0x43b655['length'],_0x54f24a=_0x43b655[_0x3e21d5(0x258,0x264)]((_0x1e53cd,_0x1c876e)=>_0x1e53cd+_0x1c876e[_0x43f3eb(0x15,0x2)],0x0)/_0x43b655[_0x43f3eb(-0x8,-0x27)],_0x260072=(_0x5e5eeb-_0x43b655[0x0][_0x3e21d5(0x240,0x23c)])/0x15180,_0x29b637=_0x43b655[_0x43f3eb(0xc,0x28)](_0x457578=>Math[_0x43f3eb(0x6,0x8)](_0x5e5eeb-_0x457578[_0x3e21d5(0x240,0x23d)],0x1)),_0x36a59f=new Map();for(const _0x175a56 of _0x43b655){for(const _0x24a00e of _0x175a56[_0x3e21d5(0x236,0x237)+'s']){_0x36a59f[_0x3e21d5(0x250,0x266)](_0x24a00e,(_0x36a59f['get'](_0x24a00e)??0x0)+0x1);}}function _0x3e21d5(_0x6c4433,_0x4e2683){return _0x5309fd(_0x4e2683,_0x6c4433-0x3d0);}const _0x5ac005=Array['from'](_0x36a59f[_0x43f3eb(-0x14,0x0)]())['map'](([_0x4e62de,_0x18c8bc])=>({'source':_0x4e62de,'strength':Math['min'](_0x18c8bc/_0x43b655[_0x3e21d5(0x237,0x222)],0x1)})),_0x552a01=_0x43b655[_0x3e21d5(0x229,0x21d)](0x0,0x5)[_0x43f3eb(-0x13,-0x16)](_0x1bfbce=>_0x1bfbce[_0x3e21d5(0x236,0x245)+'s']),_0x4c77fc=this['engine'][_0x3e21d5(0x244,0x245)+'ivation'](_0x29b637,_0x5ac005,new Set(_0x552a01),_0x40c109,_0xfd5257),_0x4d71dd=_0x4c77fc[_0x3e21d5(0x225,0x207)]+_0x54f24a*0.2,_0x254f87=computePracticalLevel(_0x43b655['length'],_0x40c109,_0x260072,_0x54f24a,this[_0x3e21d5(0x249,0x268)][_0x3e21d5(0x23e,0x229)],_0x4d71dd),_0x5d1dd7=_0x2b45bb['level'];return this['db'][_0x3e21d5(0x242,0x250)+_0x3e21d5(0x23c,0x22a)](_0xfd5257,{'level':_0x254f87,'experienceCount':_0x43b655['length'],'successRate':_0x40c109,'actrActivation':_0x4d71dd,'lastPracticedAt':new Date()[_0x43f3eb(0x2,0x19)+'g']()}),{'previousLevel':_0x5d1dd7,'newLevel':_0x254f87,'activation':_0x4d71dd,'experienceCount':_0x43b655['length'],'levelChanged':_0x5d1dd7!==_0x254f87};}['ensureProf'+_0x5309fd(-0x177,-0x194)](_0x2136ea){const _0x58537e=this['db']['getProfici'+_0x2f21fa(0x3be,0x3bb)+'l'](_0x2136ea);if(_0x58537e)return _0x58537e;const _0x2757f=this['db']['getMemory'](_0x2136ea),_0x3fb77e=_0x2757f?_0x2757f[_0x2f21fa(0x385,0x3a3)][_0x1ff888(-0x183,-0x16f)]('\x0a')[0x0][_0x1ff888(-0x156,-0x16d)]('[Skill]\x20','')[_0x1ff888(-0x17e,-0x18e)](0x0,0x64):'skill-'+_0x2136ea[_0x1ff888(-0x19f,-0x18e)](0x0,0x8);function _0x1ff888(_0x9dbbd6,_0x288604){return _0x2f288c(_0x9dbbd6,_0x288604-0xbd);}function _0x2f21fa(_0x54e0d3,_0xf3f464){return _0x2f288c(_0xf3f464,_0x54e0d3-0x5d9);}const _0x3e1a6c=_0x2757f?.[_0x1ff888(-0x18f,-0x182)+'h'];return this['db'][_0x2f21fa(0x38f,0x387)+_0x1ff888(-0x169,-0x17b)]({'skillMemoryId':_0x2136ea,'skillName':_0x3fb77e,'projectPath':_0x3e1a6c});}[_0x2f288c(-0x244,-0x237)+'iencies'](_0x32ad9b){function _0x528543(_0x1af075,_0x4ca2f8){return _0x2f288c(_0x1af075,_0x4ca2f8-0x58e);}return this['db']['listProfic'+_0x528543(0x328,0x33b)]({'projectPath':_0x32ad9b});}[_0x5309fd(-0x1b5,-0x1a0)](_0xc10de){function _0x4f3712(_0x2d75f5,_0x313498){return _0x2f288c(_0x313498,_0x2d75f5-0x51f);}const _0x4be414=[];let _0x49d8b2=0x0,_0xa4b9f7=0x0;function _0x2b889b(_0x1877db,_0x524921){return _0x2f288c(_0x524921,_0x1877db-0x1f7);}for(let _0x17768f=0x0;_0x17768f<_0xc10de['eventCount'];_0x17768f++){const _0x516458=Math[_0x4f3712(0x2de,0x2e9)]()<_0xc10de['successRat'+'e'];if(_0x516458)_0x49d8b2++;const _0x163d1e=_0x17768f+0x1,_0xfe7810=_0x49d8b2/_0x163d1e,[_0x24da42,_0x4f0249]=_0xc10de[_0x4f3712(0x2ff,0x2f2)+'Range'],_0x4cb2c9=_0x24da42+(_0x4f0249-_0x24da42)*(_0x17768f/Math[_0x4f3712(0x2f0,0x2e3)](_0xc10de[_0x4f3712(0x2e3,0x2ff)]-0x1,0x1));_0xa4b9f7+=_0x4cb2c9;const _0xefc3b2=_0xa4b9f7/_0x163d1e,_0x2b4137=0x0,_0x5d354c=computePracticalLevel(_0x163d1e,_0xfe7810,_0x2b4137,_0xefc3b2,this['config']['maxLevel']);_0x4be414['push'](_0x5d354c);}return _0x4be414;}}export function computePracticalLevel(_0x1c907c,_0x39090b,_0x5d1d03,_0x51d1ca,_0x53a0e7,_0x5a0821){const _0x323051=Math['min'](0x1,Math[_0x3311b7(0x406,0x417)](0x1+_0x1c907c)/COUNT_SCALE),_0x14a6c2=0.3+_0x39090b*0.7,_0x57de31=Math[_0x3311b7(0x407,0x425)](-Math[_0x16f101(0x47e,0x48f)](0x0,_0x5d1d03)*0.007);function _0x16f101(_0x3a6ffd,_0x191829){return _0x5309fd(_0x3a6ffd,_0x191829-0x61a);}const _0x3b1f05=_0x51d1ca*0.1;function _0x3311b7(_0x5156d8,_0x540899){return _0x5309fd(_0x540899,_0x5156d8-0x590);}const _0x3321b9=_0x5a0821!==undefined?Math[_0x3311b7(0x405,0x3f5)](0x0,Math['min'](0.1,_0x5a0821*0.05)):0x0,_0x56ad97=Math['max'](0x0,Math[_0x16f101(0x4c0,0x4a5)](0x1,_0x323051*_0x14a6c2*_0x57de31+_0x3b1f05+_0x3321b9));return Math[_0x16f101(0x4b0,0x4a5)](_0x53a0e7,Math['max'](0x1,Math['ceil'](_0x56ad97*_0x53a0e7)));}
1
+ function _0x5f22a2(_0x532742,_0x24841e){return _0x22b3(_0x24841e- -0x272,_0x532742);}(function(_0x4c6912,_0x35f02b){function _0x38f7b0(_0x140171,_0x567b2c){return _0x22b3(_0x140171- -0x2fc,_0x567b2c);}function _0xe4d99e(_0x164a18,_0x220c2d){return _0x22b3(_0x164a18- -0x363,_0x220c2d);}const _0x55518b=_0x4c6912();while(!![]){try{const _0x3a264a=parseInt(_0xe4d99e(-0x272,-0x254))/0x1*(parseInt(_0x38f7b0(-0x1cc,-0x1be))/0x2)+parseInt(_0x38f7b0(-0x1f0,-0x1f3))/0x3+-parseInt(_0x38f7b0(-0x1f8,-0x1f7))/0x4*(-parseInt(_0x38f7b0(-0x1e8,-0x20a))/0x5)+-parseInt(_0xe4d99e(-0x253,-0x230))/0x6*(-parseInt(_0x38f7b0(-0x1d7,-0x1f3))/0x7)+parseInt(_0x38f7b0(-0x1e2,-0x1d3))/0x8*(-parseInt(_0xe4d99e(-0x255,-0x262))/0x9)+-parseInt(_0xe4d99e(-0x236,-0x22d))/0xa*(parseInt(_0xe4d99e(-0x238,-0x251))/0xb)+parseInt(_0x38f7b0(-0x204,-0x20c))/0xc*(-parseInt(_0xe4d99e(-0x261,-0x256))/0xd);if(_0x3a264a===_0x35f02b)break;else _0x55518b['push'](_0x55518b['shift']());}catch(_0x38174e){_0x55518b['push'](_0x55518b['shift']());}}}(_0x4021,0x928fc));import{ACTREngine}from'./actr-engine.js';const COUNT_SCALE=Math[_0x5f22a2(-0x188,-0x172)](0x97);function _0x22b3(_0x47b484,_0x46c0a7){_0x47b484=_0x47b484-0xec;const _0x4021a1=_0x4021();let _0x22b38e=_0x4021a1[_0x47b484];if(_0x22b3['wHGEtT']===undefined){var _0x5de4bc=function(_0x2458af){const _0xa065e0='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x1ea64d='',_0x17b940='';for(let _0x4f14a2=0x0,_0x41eecb,_0x4e2a22,_0x31eb63=0x0;_0x4e2a22=_0x2458af['charAt'](_0x31eb63++);~_0x4e2a22&&(_0x41eecb=_0x4f14a2%0x4?_0x41eecb*0x40+_0x4e2a22:_0x4e2a22,_0x4f14a2++%0x4)?_0x1ea64d+=String['fromCharCode'](0xff&_0x41eecb>>(-0x2*_0x4f14a2&0x6)):0x0){_0x4e2a22=_0xa065e0['indexOf'](_0x4e2a22);}for(let _0xd6637e=0x0,_0x183f1d=_0x1ea64d['length'];_0xd6637e<_0x183f1d;_0xd6637e++){_0x17b940+='%'+('00'+_0x1ea64d['charCodeAt'](_0xd6637e)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x17b940);};_0x22b3['STPUJP']=_0x5de4bc,_0x22b3['XtswDL']={},_0x22b3['wHGEtT']=!![];}const _0xf7b4ed=_0x4021a1[0x0],_0x1fa66d=_0x47b484+_0xf7b4ed,_0xd89451=_0x22b3['XtswDL'][_0x1fa66d];return!_0xd89451?(_0x22b38e=_0x22b3['STPUJP'](_0x22b38e),_0x22b3['XtswDL'][_0x1fa66d]=_0x22b38e):_0x22b38e=_0xd89451,_0x22b38e;}function _0x16ed38(_0x4aa586,_0x54f306){return _0x22b3(_0x4aa586- -0x28e,_0x54f306);}function _0x4021(){const _0x592d86=['mtKXndi0shnOq2nj','B3v0y29Tzq','DgLJzq','zw50CMLLCW','CMfUzg9T','y3jLyxrLuhjVzG','zgvZyW','zxzLBNrdB3vUDa','Bg9NmG','y29UzMLN','ntjKqwfLELC','zNjVBq','mJC0mti4BgHzCwHS','zw5ZDxjLuhjVzG','Bgv2zwW','zw5NAw5L','CgfYDgLHBa','BMnLrxzLBNrZ','BM93','C3vJy2vZC1jHDa','mZGYmtrSz0L1DKG','zuXLDMvS','mJDnCLfLAeG','BwLU','mte2mJm4mhzOqw5qva','AwvUy2LLCW','uMfUz2u','DxbKyxrLuhjVzG','mJb0wuPfCw8','ChvZAa','Bwf4tgv2zwW','zw5JEuj5u2TPBa','z2v0rxHWzxjPzq','Bwf4','mJuXnZzQs1HMC1C','BgLZDfbYB2zPyW','CMvJywXJDwXHDa','z2v0twvTB3j5','CMvJB3jKuhjHyW','CMvWBgfJzq','BgvUz3rO','C2v0','C2XPy2u','zMLSDgvY','DgLTzxn0yw1W','ndjSsNzKDuS','y29UDgv4DfrHzW','ywrKrxHWzxjPzq','y2vPBa','BMnLrxzLBNq','zw5JEq','mta5ote0otDmqKfiBNu','zxHW','mtb6B1DotK8','y29TChv0zufJDa','BwfW','ndq3mdKYtvfUAgnS','ywn0CG','z2v0','y29UDgvUDa','C2LTDwXHDgu','C3vJy2vZCW','CMvKDwnL','AwnPzw5JEq','mu5dAKDyzq','AxzHDgLVBG','zMXHDe1HCa','zgLMzMLJDwX0Eq','w1nRAwXSxsa','z2v0uhjVzMLJAq','Dg9ju09tDhjPBG'];_0x4021=function(){return _0x592d86;};return _0x4021();}export class ProficiencyTracker{['db'];[_0x16ed38(-0x18d,-0x197)];['engine'];constructor(_0x3f8415,_0x1bf330){this['db']=_0x3f8415;function _0x12c79e(_0x2c96de,_0xe704cd){return _0x5f22a2(_0x2c96de,_0xe704cd- -0xbb);}this[_0x12c79e(-0x22e,-0x22c)]=_0x1bf330;function _0x1a554e(_0x465207,_0x138f75){return _0x5f22a2(_0x465207,_0x138f75-0x545);}this[_0x1a554e(0x3d8,0x3da)]=new ACTREngine(_0x1bf330[_0x1a554e(0x418,0x404)]);}[_0x5f22a2(-0x137,-0x154)+_0x16ed38(-0x194,-0x17b)](_0x9f9503,_0x32a71b,_0x3d78c8,_0x4b7531=[],_0x42b844){const _0x37f52a=this[_0x5cecb3(0x2c,0x2a)+_0x5cecb3(0x17,-0x3)](_0x9f9503),_0x116f38=Date[_0x5cecb3(0x31,0xd)]()/0x3e8;this['db'][_0x5cecb3(0x4e,0x32)+_0x5cecb3(0x50,0x3b)]({'proficiencyId':_0x37f52a['id'],'timestamp':_0x116f38,'outcome':_0x32a71b,'difficulty':Math[_0x12c117(0x3a6,0x3a6)](0x0,Math['min'](0x1,_0x3d78c8)),'contextTags':_0x4b7531,'sessionId':_0x42b844});function _0x5cecb3(_0x2606b8,_0x26e1bc){return _0x16ed38(_0x2606b8-0x1b5,_0x26e1bc);}function _0x12c117(_0x57a9c5,_0x1b7a73){return _0x16ed38(_0x1b7a73-0x51b,_0x57a9c5);}return this['recalculat'+_0x12c117(0x3b4,0x39a)](_0x37f52a['id']);}[_0x16ed38(-0x172,-0x171)+'eLevel'](_0x58fd74){const _0x19e3d2=this['db']['getProfici'+_0xd79f18(-0x132,-0x11c)](_0x58fd74);if(!_0x19e3d2)return{'previousLevel':0x1,'newLevel':0x1,'activation':0x0,'experienceCount':0x0,'levelChanged':![]};const _0x2eae54=this['db'][_0x2cfd7c(-0x1d,-0x14)+_0xd79f18(-0x153,-0x177)](_0x58fd74,{'limit':0x3e8,'order':_0x2cfd7c(-0x37,-0x29)});if(_0x2eae54[_0x2cfd7c(-0x15,-0x2b)]===0x0)return{'previousLevel':_0x19e3d2[_0xd79f18(-0x156,-0x16d)],'newLevel':0x1,'activation':0x0,'experienceCount':0x0,'levelChanged':_0x19e3d2[_0x2cfd7c(-0x2f,-0x3a)]!==0x1};const _0x506bb6=Date['now']()/0x3e8,_0x4aec87=_0x2eae54[_0xd79f18(-0x139,-0x14d)](_0x5cd276=>_0x5cd276[_0xd79f18(-0x163,-0x14d)]===_0xd79f18(-0x16e,-0x155))['length'],_0x275066=_0x2eae54[_0xd79f18(-0x139,-0x149)](_0x331bd3=>_0x331bd3[_0x2cfd7c(-0x3c,-0x50)]===_0x2cfd7c(-0x2d,-0x9))[_0x2cfd7c(-0x15,-0x1d)],_0x4d6438=(_0x4aec87+_0x275066*0.5)/_0x2eae54[_0x2cfd7c(-0x15,-0x31)];function _0xd79f18(_0x13ccd2,_0xdb78f){return _0x16ed38(_0x13ccd2-0x32,_0xdb78f);}const _0x137020=_0x2eae54[_0xd79f18(-0x16d,-0x175)]((_0x4c3e77,_0x3a1916)=>_0x4c3e77+_0x3a1916[_0x2cfd7c(-0x41,-0x27)],0x0)/_0x2eae54['length'],_0x290790=(_0x506bb6-_0x2eae54[0x0][_0x2cfd7c(-0x11,-0x21)])/0x15180,_0x52cb11=_0x2eae54[_0x2cfd7c(-0x6,0x13)](_0x2b7414=>Math[_0xd79f18(-0x143,-0x149)](_0x506bb6-_0x2b7414[_0xd79f18(-0x138,-0x143)],0x1)),_0x4aeac2=new Map();for(const _0x56e069 of _0x2eae54){for(const _0x2376fd of _0x56e069[_0x2cfd7c(-0xf,-0x1f)+'s']){_0x4aeac2[_0xd79f18(-0x13b,-0x15d)](_0x2376fd,(_0x4aeac2[_0x2cfd7c(-0x3,0x11)](_0x2376fd)??0x0)+0x1);}}const _0x780ae8=Array[_0xd79f18(-0x159,-0x15f)](_0x4aeac2[_0x2cfd7c(-0x3a,-0x55)]())['map'](([_0x419e96,_0xa96692])=>({'source':_0x419e96,'strength':Math[_0xd79f18(-0x14d,-0x170)](_0xa96692/_0x2eae54['length'],0x1)})),_0x5b700e=_0x2eae54[_0x2cfd7c(-0x13,-0x23)](0x0,0x5)[_0x2cfd7c(-0x42,-0x42)](_0x487e59=>_0x487e59['contextTag'+'s']),_0x63e9c=this['engine'][_0xd79f18(-0x12e,-0x151)+_0x2cfd7c(-0x43,-0x66)](_0x52cb11,_0x780ae8,new Set(_0x5b700e),_0x4d6438,_0x58fd74),_0x2354e2=_0x63e9c['total']+_0x137020*0.2,_0x792979=computePracticalLevel(_0x2eae54['length'],_0x4d6438,_0x290790,_0x137020,this[_0x2cfd7c(-0x34,-0x33)][_0xd79f18(-0x146,-0x164)],_0x2354e2),_0xf6c84=_0x19e3d2[_0xd79f18(-0x156,-0x14e)];function _0x2cfd7c(_0x56abd5,_0x2538c9){return _0x16ed38(_0x56abd5-0x159,_0x2538c9);}return this['db'][_0xd79f18(-0x149,-0x15a)+_0xd79f18(-0x16c,-0x160)](_0x58fd74,{'level':_0x792979,'experienceCount':_0x2eae54['length'],'successRate':_0x4d6438,'actrActivation':_0x2354e2,'lastPracticedAt':new Date()[_0xd79f18(-0x165,-0x175)+'g']()}),{'previousLevel':_0xf6c84,'newLevel':_0x792979,'activation':_0x2354e2,'experienceCount':_0x2eae54[_0xd79f18(-0x13c,-0x156)],'levelChanged':_0xf6c84!==_0x792979};}[_0x16ed38(-0x189,-0x194)+_0x16ed38(-0x19e,-0x1b5)](_0x20e8aa){const _0x35c834=this['db'][_0xa91f96(0x47b,0x480)+_0x2b177d(-0xe0,-0xd0)+'l'](_0x20e8aa);function _0x2b177d(_0x3fc19f,_0xc3d984){return _0x16ed38(_0x3fc19f-0x97,_0xc3d984);}if(_0x35c834)return _0x35c834;function _0xa91f96(_0xe9df53,_0x29bad5){return _0x16ed38(_0xe9df53-0x613,_0x29bad5);}const _0x1423c1=this['db'][_0xa91f96(0x4a2,0x4bb)](_0x20e8aa),_0x1f58e7=_0x1423c1?_0x1423c1[_0x2b177d(-0x10b,-0x116)]['split']('\x0a')[0x0][_0x2b177d(-0xd8,-0xda)](_0x2b177d(-0x102,-0x103),'')['slice'](0x0,0x64):'skill-'+_0x20e8aa['slice'](0x0,0x8),_0x244e0e=_0x1423c1?.['projectPat'+'h'];return this['db'][_0xa91f96(0x482,0x497)+_0xa91f96(0x475,0x486)]({'skillMemoryId':_0x20e8aa,'skillName':_0x1f58e7,'projectPath':_0x244e0e});}[_0x5f22a2(-0x13d,-0x157)+_0x5f22a2(-0x159,-0x161)](_0x4b539d){function _0x1f8ab4(_0x1cee70,_0x520e19){return _0x16ed38(_0x1cee70- -0xbf,_0x520e19);}return this['db']['listProfic'+_0x1f8ab4(-0x23c,-0x21a)]({'projectPath':_0x4b539d});}[_0x16ed38(-0x1a1,-0x196)](_0x26c0ff){const _0x37fbe2=[];let _0x4820e9=0x0,_0x20c5a7=0x0;function _0x4f4412(_0x1ca508,_0x571140){return _0x16ed38(_0x571140- -0x51,_0x1ca508);}for(let _0x397730=0x0;_0x397730<_0x26c0ff[_0x5e117f(0x1f2,0x1df)];_0x397730++){const _0x34ef21=Math[_0x5e117f(0x1ef,0x20d)]()<_0x26c0ff[_0x5e117f(0x1fe,0x221)+'e'];if(_0x34ef21)_0x4820e9++;const _0x1e6206=_0x397730+0x1,_0x10640c=_0x4820e9/_0x1e6206,[_0x109624,_0x346127]=_0x26c0ff[_0x5e117f(0x1e7,0x1e9)+_0x4f4412(-0x1bc,-0x1cd)],_0x5cc274=_0x109624+(_0x346127-_0x109624)*(_0x397730/Math[_0x4f4412(-0x1ad,-0x1c6)](_0x26c0ff['eventCount']-0x1,0x1));_0x20c5a7+=_0x5cc274;const _0xa10f54=_0x20c5a7/_0x1e6206,_0x58ec44=0x0,_0x25794e=computePracticalLevel(_0x1e6206,_0x10640c,_0x58ec44,_0xa10f54,this[_0x4f4412(-0x1f3,-0x1de)]['maxLevel']);_0x37fbe2[_0x4f4412(-0x1e4,-0x1ca)](_0x25794e);}function _0x5e117f(_0x30cbc2,_0x168778){return _0x16ed38(_0x30cbc2-0x381,_0x168778);}return _0x37fbe2;}}export function computePracticalLevel(_0x37ff58,_0x4f50b5,_0x102758,_0x4cb5a9,_0x21b69f,_0x474708){const _0x36f257=Math[_0x56a855(-0x138,-0x12b)](0x1,Math[_0x56a855(-0x12e,-0x13a)](0x1+_0x37ff58)/COUNT_SCALE),_0x5f2c2f=0.3+_0x4f50b5*0.7,_0x15f205=Math[_0x16af93(0x2ee,0x2e8)](-Math[_0x16af93(0x2dd,0x2d5)](0x0,_0x102758)*0.007),_0x596981=_0x4cb5a9*0.1;function _0x16af93(_0x18d094,_0x4a64a7){return _0x5f22a2(_0x18d094,_0x4a64a7-0x42e);}const _0x154ef7=_0x474708!==undefined?Math[_0x16af93(0x2bf,0x2d5)](0x0,Math[_0x16af93(0x2a8,0x2cb)](0.1,_0x474708*0.05)):0x0,_0x266839=Math['max'](0x0,Math[_0x16af93(0x2a8,0x2cb)](0x1,_0x36f257*_0x5f2c2f*_0x15f205+_0x596981+_0x154ef7));function _0x56a855(_0x2dc4c7,_0xeebc2c){return _0x5f22a2(_0x2dc4c7,_0xeebc2c-0x38);}return Math[_0x16af93(0x2b9,0x2cb)](_0x21b69f,Math[_0x56a855(-0x109,-0x121)](0x1,Math[_0x16af93(0x2d3,0x2e4)](_0x266839*_0x21b69f)));}
@@ -1 +1 @@
1
- (function(_0x4ede0a,_0xdf5a4f){function _0x9e8806(_0x57ea7d,_0x563f27){return _0x45fd(_0x563f27-0x6c,_0x57ea7d);}function _0x8183b6(_0x2893e9,_0x5374ac){return _0x45fd(_0x5374ac-0x81,_0x2893e9);}const _0x168789=_0x4ede0a();while(!![]){try{const _0x3359b9=-parseInt(_0x9e8806(0x14b,0x14b))/0x1*(parseInt(_0x8183b6(0x16a,0x15d))/0x2)+parseInt(_0x8183b6(0x157,0x154))/0x3*(-parseInt(_0x8183b6(0x15c,0x15e))/0x4)+parseInt(_0x9e8806(0x131,0x13d))/0x5*(-parseInt(_0x8183b6(0x152,0x153))/0x6)+-parseInt(_0x8183b6(0x158,0x14b))/0x7+parseInt(_0x8183b6(0x156,0x14e))/0x8+parseInt(_0x9e8806(0x13c,0x13c))/0x9+-parseInt(_0x8183b6(0x155,0x15f))/0xa*(-parseInt(_0x9e8806(0x136,0x135))/0xb);if(_0x3359b9===_0xdf5a4f)break;else _0x168789['push'](_0x168789['shift']());}catch(_0x58c2f5){_0x168789['push'](_0x168789['shift']());}}}(_0x1065,0xa97ac));function _0x45fd(_0x375bf9,_0x377e71){_0x375bf9=_0x375bf9-0xc9;const _0x1065b9=_0x1065();let _0x45fdde=_0x1065b9[_0x375bf9];if(_0x45fd['FvmPqV']===undefined){var _0x51efc6=function(_0x48e2bf){const _0x49b6d9='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x2c35bb='',_0x213d25='';for(let _0x3ba243=0x0,_0x1ebdd1,_0x567534,_0x40b338=0x0;_0x567534=_0x48e2bf['charAt'](_0x40b338++);~_0x567534&&(_0x1ebdd1=_0x3ba243%0x4?_0x1ebdd1*0x40+_0x567534:_0x567534,_0x3ba243++%0x4)?_0x2c35bb+=String['fromCharCode'](0xff&_0x1ebdd1>>(-0x2*_0x3ba243&0x6)):0x0){_0x567534=_0x49b6d9['indexOf'](_0x567534);}for(let _0x2e9ec1=0x0,_0x1d7760=_0x2c35bb['length'];_0x2e9ec1<_0x1d7760;_0x2e9ec1++){_0x213d25+='%'+('00'+_0x2c35bb['charCodeAt'](_0x2e9ec1)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x213d25);};_0x45fd['nXGRgE']=_0x51efc6,_0x45fd['fFpOWP']={},_0x45fd['FvmPqV']=!![];}const _0x3c11ad=_0x1065b9[0x0],_0x25ed14=_0x375bf9+_0x3c11ad,_0x1684fd=_0x45fd['fFpOWP'][_0x25ed14];return!_0x1684fd?(_0x45fdde=_0x45fd['nXGRgE'](_0x45fdde),_0x45fd['fFpOWP'][_0x25ed14]=_0x45fdde):_0x45fdde=_0x1684fd,_0x45fdde;}const CODE_PATTERNS=[/\b(error|exception|traceback|stack\s*trace|stderr)\b/i,/\b(import|require|from|export|module)\s+['"`]/,/\b(function|class|interface|type|const|let|var|def|async)\b/,/[{}()[\]<>].*[{}()[\]<>]/,/\b\w+\.\w+\.\w+/,/\b\d+\.\d+\.\d+/,/(?:https?:\/\/|\/[\w/]+\.\w+)/],SEMANTIC_PATTERNS=[/\b(how|why|what|when|where|which|explain|describe)\b/i,/(어떻게|왜|무엇|언제|어디|설명|방법)/,/\?$/,/\b(similar|like|related|compare|difference|versus|vs)\b/i,/(비슷한|관련|비교|차이|대안)/,/\b(best practice|pattern|approach|architecture|design)\b/i,/(패턴|접근법|아키텍처|설계|구조)/];function _0x1065(){const _0x27bf93=['DhjPBq','ihDVCMrZkq','DgvK','C2vTyw50Awm','C2LTCgXL','q29KzsbWyxr0zq','y29TCgXLEa','ng1fr1HjAW','nevMtNDYEq','mZq1otbIwgzowNy','nJy1otnNu0v6vLm','DgvZDa','BgvUz3rO','DwvYEsbKzxrLyW','u2vTyw50AwmGCq','EsaO','u2HVCNqGCxvLCG','nZyZnffMANfjrW','nti4nJCXnvjIwNbyyW','rgvMyxvSDcbJBa','tg9UzYbXDwvYEq','ntC1mde2ofP5rxrPrW','C3bSAxq','C29Tzq','nZy4mdG3sMr2wLLO','nJG4mJmWs0fLEu5J','nJbUq2DHAMW','nZm2nZqZufffrMDA','yxnZAwzPy2f0Aq'];_0x1065=function(){return _0x27bf93;};return _0x1065();}export class AdaptiveRouter{['classify'](_0x567534){const _0x40b338=_0x567534[_0x385480(-0x5c,-0x56)](),_0x2e9ec1=_0x40b338[_0x385480(-0x63,-0x61)](/\s+/)[_0x385480(-0x50,-0x58)];if(_0x2e9ec1<=0x2)return{'complexity':_0x385480(-0x58,-0x50),'useFTS':!![],'useVector':![],'useReranker':![],'reason':_0xe4cfc3(-0x1e7,-0x1f0)+_0x385480(-0x4d,-0x50)+_0x2e9ec1+_0xe4cfc3(-0x1f4,-0x1ff)};function _0x385480(_0x5ad3ba,_0x414524){return _0x45fd(_0x5ad3ba- -0x131,_0x414524);}const _0x1d7760=CODE_PATTERNS['some'](_0x3c797c=>_0x3c797c[_0x385480(-0x51,-0x5e)](_0x40b338));if(_0x1d7760)return{'complexity':_0x385480(-0x56,-0x62),'useFTS':!![],'useVector':!![],'useReranker':!![],'reason':_0xe4cfc3(-0x201,-0x1fb)+'rn\x20or\x20erro'+'r\x20message\x20'+'detected'};const _0x58adc6=SEMANTIC_PATTERNS[_0xe4cfc3(-0x1fd,-0x206)](_0x16726e=>_0x16726e[_0xe4cfc3(-0x1ee,-0x1f5)](_0x40b338));if(_0x58adc6)return{'complexity':_0x385480(-0x59,-0x64),'useFTS':!![],'useVector':!![],'useReranker':![],'reason':_0x385480(-0x4e,-0x59)+_0xe4cfc3(-0x1f3,-0x1f3)+_0x385480(-0x5a,-0x51)};if(_0x2e9ec1>=0x5)return{'complexity':_0xe4cfc3(-0x200,-0x1fd),'useFTS':!![],'useVector':!![],'useReranker':![],'reason':_0x385480(-0x65,-0x5b)+'\x20('+_0x2e9ec1+_0xe4cfc3(-0x209,-0x1ff)};function _0xe4cfc3(_0x325bb4,_0x414c75){return _0x45fd(_0x414c75- -0x2d5,_0x325bb4);}return{'complexity':_0x385480(-0x58,-0x61),'useFTS':!![],'useVector':![],'useReranker':![],'reason':_0x385480(-0x66,-0x6c)+_0x385480(-0x5d,-0x59)+'on'};}}
1
+ function _0x1de0(_0x70e3b1,_0x1a9ce3){_0x70e3b1=_0x70e3b1-0x6e;const _0x441457=_0x4414();let _0x1de09c=_0x441457[_0x70e3b1];if(_0x1de0['SoeFTR']===undefined){var _0x541827=function(_0x101092){const _0x246b36='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x32cf80='',_0x1f79b8='';for(let _0x493a32=0x0,_0x1c876b,_0x6f52b0,_0x39bc3a=0x0;_0x6f52b0=_0x101092['charAt'](_0x39bc3a++);~_0x6f52b0&&(_0x1c876b=_0x493a32%0x4?_0x1c876b*0x40+_0x6f52b0:_0x6f52b0,_0x493a32++%0x4)?_0x32cf80+=String['fromCharCode'](0xff&_0x1c876b>>(-0x2*_0x493a32&0x6)):0x0){_0x6f52b0=_0x246b36['indexOf'](_0x6f52b0);}for(let _0x39f2df=0x0,_0x5e5b6f=_0x32cf80['length'];_0x39f2df<_0x5e5b6f;_0x39f2df++){_0x1f79b8+='%'+('00'+_0x32cf80['charCodeAt'](_0x39f2df)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x1f79b8);};_0x1de0['lyesKO']=_0x541827,_0x1de0['erhsXU']={},_0x1de0['SoeFTR']=!![];}const _0x444199=_0x441457[0x0],_0x214e5=_0x70e3b1+_0x444199,_0x5a98d8=_0x1de0['erhsXU'][_0x214e5];return!_0x5a98d8?(_0x1de09c=_0x1de0['lyesKO'](_0x1de09c),_0x1de0['erhsXU'][_0x214e5]=_0x1de09c):_0x1de09c=_0x5a98d8,_0x1de09c;}(function(_0x3e30f0,_0x2e2cc0){function _0x10598(_0x939948,_0x5d94d2){return _0x1de0(_0x939948- -0x1e,_0x5d94d2);}function _0x56a02b(_0x582586,_0x506104){return _0x1de0(_0x506104-0x8,_0x582586);}const _0x489413=_0x3e30f0();while(!![]){try{const _0x2e8a27=parseInt(_0x10598(0x51,0x5d))/0x1*(parseInt(_0x10598(0x67,0x6f))/0x2)+parseInt(_0x10598(0x5a,0x5f))/0x3+parseInt(_0x56a02b(0x82,0x7c))/0x4+parseInt(_0x10598(0x63,0x5c))/0x5+parseInt(_0x10598(0x66,0x62))/0x6+parseInt(_0x10598(0x5c,0x55))/0x7+parseInt(_0x10598(0x5e,0x57))/0x8*(-parseInt(_0x10598(0x5f,0x5a))/0x9);if(_0x2e8a27===_0x2e2cc0)break;else _0x489413['push'](_0x489413['shift']());}catch(_0x34e93d){_0x489413['push'](_0x489413['shift']());}}}(_0x4414,0x7288b));function _0x4414(){const _0x3ff270=['mvD0r25vCG','DhjPBq','zgv0zwn0zwq','tg9UzYbXDwvYEq','C3bSAxq','otCYodG4vMLxufLw','ihDVCMrZkq','u2HVCNqGCxvLCG','CIbTzxnZywDLia','mJm2ndu2n2TRvg5Vva','u2vTyw50AwmGCq','ndu2nJy4oeLeugXyyG','y29TCgXLEa','mteXotjMCLHJvKK','mtC0nZH3DLbHEfi','DgvZDa','y2XHC3nPzNK','C2vTyw50Awm','mtyZntGZmgTWyuLJra','C2LTCgXL','C29Tzq','nda1otiXmgTdDwrnCG','otK2otG2AfHVBNLx','EsaO','CM4GB3iGzxjYBW','DwvYEsbKzxrLyW'];_0x4414=function(){return _0x3ff270;};return _0x4414();}const CODE_PATTERNS=[/\b(error|exception|traceback|stack\s*trace|stderr)\b/i,/\b(import|require|from|export|module)\s+['"`]/,/\b(function|class|interface|type|const|let|var|def|async)\b/,/[{}()[\]<>].*[{}()[\]<>]/,/\b\w+\.\w+\.\w+/,/\b\d+\.\d+\.\d+/,/(?:https?:\/\/|\/[\w/]+\.\w+)/],SEMANTIC_PATTERNS=[/\b(how|why|what|when|where|which|explain|describe)\b/i,/(어떻게|왜|무엇|언제|어디|설명|방법)/,/\?$/,/\b(similar|like|related|compare|difference|versus|vs)\b/i,/(비슷한|관련|비교|차이|대안)/,/\b(best practice|pattern|approach|architecture|design)\b/i,/(패턴|접근법|아키텍처|설계|구조)/];function _0x52c778(_0x1f18ea,_0x124d61){return _0x1de0(_0x1f18ea- -0x380,_0x124d61);}export class AdaptiveRouter{[_0x52c778(-0x301,-0x30a)](_0x6f52b0){const _0x39bc3a=_0x6f52b0[_0x110fd5(0x108,0x113)](),_0x39f2df=_0x39bc3a[_0x57ffd6(-0x357,-0x362)](/\s+/)['length'];if(_0x39f2df<=0x2)return{'complexity':_0x110fd5(0x11a,0x11c),'useFTS':!![],'useVector':![],'useReranker':![],'reason':_0x110fd5(0x10e,0x10c)+_0x110fd5(0x11e,0x122)+_0x39f2df+_0x110fd5(0x10d,0x10c)};const _0x5e5b6f=CODE_PATTERNS['some'](_0x40378f=>_0x40378f[_0x57ffd6(-0x34c,-0x354)](_0x39bc3a));if(_0x5e5b6f)return{'complexity':_0x57ffd6(-0x34f,-0x356),'useFTS':!![],'useVector':!![],'useReranker':!![],'reason':'Code\x20patte'+_0x57ffd6(-0x343,-0x341)+_0x110fd5(0x10f,0x104)+_0x110fd5(0x109,0xfc)};const _0x2fc2b7=SEMANTIC_PATTERNS[_0x110fd5(0x11b,0x10f)](_0xe6f1f8=>_0xe6f1f8['test'](_0x39bc3a));if(_0x2fc2b7)return{'complexity':'semantic','useFTS':!![],'useVector':!![],'useReranker':![],'reason':_0x110fd5(0x111,0x117)+_0x57ffd6(-0x35c,-0x352)+'ted'};if(_0x39f2df>=0x5)return{'complexity':_0x57ffd6(-0x34a,-0x350),'useFTS':!![],'useVector':!![],'useReranker':![],'reason':_0x57ffd6(-0x358,-0x365)+'\x20('+_0x39f2df+_0x57ffd6(-0x355,-0x352)};function _0x110fd5(_0x340cc6,_0x3c5a10){return _0x52c778(_0x340cc6-0x418,_0x3c5a10);}function _0x57ffd6(_0x2f06dc,_0x14256c){return _0x52c778(_0x2f06dc- -0x4a,_0x14256c);}return{'complexity':_0x57ffd6(-0x348,-0x342),'useFTS':!![],'useVector':![],'useReranker':![],'reason':'Default\x20cl'+'assificati'+'on'};}}
@@ -1 +1 @@
1
- function _0x4565(){var _0x3b106e=['odi2mdCYDxLHsuDj','nda3nteWmhvIyMXqwa','nuHMv050Cq','mtrkteXOEKG','mJu4mtrIsxbrBg4','mtyXnJG0ngLVuvvosa','mJuYndGYnhnYALPowG','mZaXmte0AePiyMrK','mtG3ndmWoevZEvvJCW','ndjODfP4qNa'];_0x4565=function(){return _0x3b106e;};return _0x4565();}(function(_0x4fcea8,_0x2ae1f8){function _0x5b766f(_0x50b35c,_0x394ea4){return _0xe269(_0x50b35c- -0x56,_0x394ea4);}var _0x58d94a=_0x4fcea8();function _0x148c25(_0x390c82,_0x1156b0){return _0xe269(_0x1156b0-0x3dd,_0x390c82);}while(!![]){try{var _0x5c71bc=parseInt(_0x148c25(0x530,0x52f))/0x1+parseInt(_0x5b766f(0xf9,0xf8))/0x2*(-parseInt(_0x5b766f(0xf4,0xf9))/0x3)+parseInt(_0x148c25(0x525,0x526))/0x4*(-parseInt(_0x5b766f(0xf7,0xf8))/0x5)+parseInt(_0x148c25(0x52a,0x52d))/0x6+parseInt(_0x148c25(0x528,0x52b))/0x7*(parseInt(_0x5b766f(0xf5,0xf4))/0x8)+-parseInt(_0x148c25(0x52f,0x52e))/0x9+parseInt(_0x148c25(0x525,0x529))/0xa;if(_0x5c71bc===_0x2ae1f8)break;else _0x58d94a['push'](_0x58d94a['shift']());}catch(_0xf0aa81){_0x58d94a['push'](_0x58d94a['shift']());}}}(_0x4565,0x3e355));export{HybridRanker}from'./ranker.js';function _0xe269(_0x22b44d,_0x30f34e){_0x22b44d=_0x22b44d-0x149;var _0x45652d=_0x4565();var _0xe2692f=_0x45652d[_0x22b44d];if(_0xe269['PQtCKE']===undefined){var _0x3ee436=function(_0x43a527){var _0x31d6b1='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var _0x106964='',_0x4bdc4d='';for(var _0x1ec851=0x0,_0x3d93e8,_0x48e67d,_0x43029d=0x0;_0x48e67d=_0x43a527['charAt'](_0x43029d++);~_0x48e67d&&(_0x3d93e8=_0x1ec851%0x4?_0x3d93e8*0x40+_0x48e67d:_0x48e67d,_0x1ec851++%0x4)?_0x106964+=String['fromCharCode'](0xff&_0x3d93e8>>(-0x2*_0x1ec851&0x6)):0x0){_0x48e67d=_0x31d6b1['indexOf'](_0x48e67d);}for(var _0x15710f=0x0,_0x266eda=_0x106964['length'];_0x15710f<_0x266eda;_0x15710f++){_0x4bdc4d+='%'+('00'+_0x106964['charCodeAt'](_0x15710f)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x4bdc4d);};_0xe269['JAbXOg']=_0x3ee436,_0xe269['xBLjrU']={},_0xe269['PQtCKE']=!![];}var _0xb30bf0=_0x45652d[0x0],_0x53ace4=_0x22b44d+_0xb30bf0,_0x435a27=_0xe269['xBLjrU'][_0x53ace4];return!_0x435a27?(_0xe2692f=_0xe269['JAbXOg'](_0xe2692f),_0xe269['xBLjrU'][_0x53ace4]=_0xe2692f):_0xe2692f=_0x435a27,_0xe2692f;}export{AdaptiveRouter}from'./adaptive-router.js';export{CrossEncoderReranker}from'./reranker.js';
1
+ function _0x462b(){var _0x16fd42=['nZyYnZCZmenAs3blza','otiYotiWzgToB2DJ','mZaYotmZngrbqNLWrG','mJrvs1HKtge','mZeWwvzSAMDW','otq0mdvZz01NuwW','nZq2mde5uhPhAMPL','mtG4u2HAvvbu','mZqYnZC2n21WAwLhwa','ntKWCuDkEvbI'];_0x462b=function(){return _0x16fd42;};return _0x462b();}function _0x1632(_0x3ffdfb,_0x1785da){_0x3ffdfb=_0x3ffdfb-0xea;var _0x462b0f=_0x462b();var _0x163257=_0x462b0f[_0x3ffdfb];if(_0x1632['VfzDZY']===undefined){var _0x293a51=function(_0x583dc7){var _0x45165f='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var _0x357c12='',_0x2c154d='';for(var _0x3bd111=0x0,_0x52ac49,_0x4397c6,_0x1c6236=0x0;_0x4397c6=_0x583dc7['charAt'](_0x1c6236++);~_0x4397c6&&(_0x52ac49=_0x3bd111%0x4?_0x52ac49*0x40+_0x4397c6:_0x4397c6,_0x3bd111++%0x4)?_0x357c12+=String['fromCharCode'](0xff&_0x52ac49>>(-0x2*_0x3bd111&0x6)):0x0){_0x4397c6=_0x45165f['indexOf'](_0x4397c6);}for(var _0x397df4=0x0,_0x476072=_0x357c12['length'];_0x397df4<_0x476072;_0x397df4++){_0x2c154d+='%'+('00'+_0x357c12['charCodeAt'](_0x397df4)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x2c154d);};_0x1632['Tqbtth']=_0x293a51,_0x1632['mwtOQt']={},_0x1632['VfzDZY']=!![];}var _0x338b55=_0x462b0f[0x0],_0x3b7fc5=_0x3ffdfb+_0x338b55,_0x13bb5e=_0x1632['mwtOQt'][_0x3b7fc5];return!_0x13bb5e?(_0x163257=_0x1632['Tqbtth'](_0x163257),_0x1632['mwtOQt'][_0x3b7fc5]=_0x163257):_0x163257=_0x13bb5e,_0x163257;}(function(_0x5f1466,_0x29be96){var _0x483bd3=_0x5f1466();function _0x3b288d(_0x2c4104,_0x1e88fe){return _0x1632(_0x2c4104-0x237,_0x1e88fe);}function _0x4ecbb3(_0x166671,_0x159769){return _0x1632(_0x166671- -0x377,_0x159769);}while(!![]){try{var _0x19a17a=parseInt(_0x3b288d(0x323,0x31e))/0x1*(-parseInt(_0x4ecbb3(-0x286,-0x28b))/0x2)+parseInt(_0x4ecbb3(-0x284,-0x285))/0x3+-parseInt(_0x3b288d(0x326,0x32b))/0x4*(-parseInt(_0x4ecbb3(-0x28a,-0x28e))/0x5)+parseInt(_0x4ecbb3(-0x28d,-0x291))/0x6+-parseInt(_0x3b288d(0x327,0x327))/0x7+parseInt(_0x4ecbb3(-0x28c,-0x28d))/0x8*(parseInt(_0x4ecbb3(-0x289,-0x286))/0x9)+-parseInt(_0x3b288d(0x329,0x327))/0xa;if(_0x19a17a===_0x29be96)break;else _0x483bd3['push'](_0x483bd3['shift']());}catch(_0x15f64b){_0x483bd3['push'](_0x483bd3['shift']());}}}(_0x462b,0x93a21));export{HybridRanker}from'./ranker.js';export{AdaptiveRouter}from'./adaptive-router.js';export{CrossEncoderReranker}from'./reranker.js';
@@ -1 +1 @@
1
- (function(_0x219fc1,_0x1a5978){const _0x4e36ed=_0x219fc1();function _0x52ee80(_0x44fd25,_0x4a3de9){return _0x51d3(_0x44fd25-0x32b,_0x4a3de9);}function _0x34df42(_0xe582d4,_0x2f8c6b){return _0x51d3(_0xe582d4-0x2fa,_0x2f8c6b);}while(!![]){try{const _0x12fcd3=-parseInt(_0x52ee80(0x519,0x513))/0x1*(-parseInt(_0x52ee80(0x512,0x511))/0x2)+-parseInt(_0x52ee80(0x511,0x509))/0x3+parseInt(_0x52ee80(0x517,0x51c))/0x4+-parseInt(_0x52ee80(0x51b,0x513))/0x5+-parseInt(_0x52ee80(0x51a,0x516))/0x6+parseInt(_0x52ee80(0x51d,0x516))/0x7+parseInt(_0x34df42(0x4e5,0x4e4))/0x8;if(_0x12fcd3===_0x1a5978)break;else _0x4e36ed['push'](_0x4e36ed['shift']());}catch(_0x2643bd){_0x4e36ed['push'](_0x4e36ed['shift']());}}}(_0x565d,0xd22f8));function _0x565d(){const _0x1e7c4a=['BgvUz3rO','ywrK','CxvHBgL0EvnJBW','nJKZmJa3mKjkwK1KCq','mJe2mZy4ogjosfjUuG','DhjPBq','mtCZAfjYyuj3','mJe5mJiWmKL2DeL1zq','odi0odC0mfDLwfj4CW','BwvTB3j5','mtiWmta4odDHuwLOwNq','zMLSDgvY','y29UDgvUDa','A1DuDu0','mJy2mdK3m1HhAuHsDa','nZm5nM1bs2jSCq'];_0x565d=function(){return _0x1e7c4a;};return _0x565d();}function _0x51d3(_0x29b271,_0x2d6b1c){_0x29b271=_0x29b271-0x1e5;const _0x565dfc=_0x565d();let _0x51d347=_0x565dfc[_0x29b271];if(_0x51d3['WvzkAG']===undefined){var _0x2c5ac9=function(_0x5a5d23){const _0x349e4e='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x2c6c9e='',_0x5f2863='';for(let _0x281f13=0x0,_0x24d7cf,_0x28912e,_0x3a6685=0x0;_0x28912e=_0x5a5d23['charAt'](_0x3a6685++);~_0x28912e&&(_0x24d7cf=_0x281f13%0x4?_0x24d7cf*0x40+_0x28912e:_0x28912e,_0x281f13++%0x4)?_0x2c6c9e+=String['fromCharCode'](0xff&_0x24d7cf>>(-0x2*_0x281f13&0x6)):0x0){_0x28912e=_0x349e4e['indexOf'](_0x28912e);}for(let _0xe297b0=0x0,_0x1a57a5=_0x2c6c9e['length'];_0xe297b0<_0x1a57a5;_0xe297b0++){_0x5f2863+='%'+('00'+_0x2c6c9e['charCodeAt'](_0xe297b0)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x5f2863);};_0x51d3['uDqCwB']=_0x2c5ac9,_0x51d3['wGXzhy']={},_0x51d3['WvzkAG']=!![];}const _0x5d4e39=_0x565dfc[0x0],_0x384fe4=_0x29b271+_0x5d4e39,_0xd27935=_0x51d3['wGXzhy'][_0x384fe4];return!_0xd27935?(_0x51d347=_0x51d3['uDqCwB'](_0x51d347),_0x51d3['wGXzhy'][_0x384fe4]=_0x51d347):_0x51d347=_0xd27935,_0x51d347;}export function filterInjectionCandidates(_0x2e06a3,_0x2f4b9e){const _0x4f6279=new Set();let _0x1bb51b=0x0;function _0x35c620(_0x50f2d2,_0x212ab8){return _0x51d3(_0x50f2d2-0x331,_0x212ab8);}const _0x182f57=_0x2e06a3[_0x152ee7(-0x17,-0x15)](_0x57ab76=>{function _0x267096(_0x2bda7e,_0x538a03){return _0x152ee7(_0x538a03,_0x2bda7e-0xc8);}const _0x5a5127=_0x57ab76[_0x267096(0xb1,0xb3)][_0x20f967(0x46,0x4a)][_0x267096(0xad,0xab)]();if(_0x4f6279['has'](_0x5a5127))return'brQkn'!==_0x20f967(0x37,0x35)?(_0x1bb51b++,![]):(_0x4ac77d++,![]);function _0x20f967(_0x3a4bc9,_0xba4f60){return _0x152ee7(_0xba4f60,_0x3a4bc9-0x5a);}return _0x4f6279[_0x267096(0xa9,0xab)](_0x5a5127),!![];});let _0xf716c5=0x0;function _0x152ee7(_0x21e8e8,_0x3f99bb){return _0x51d3(_0x3f99bb- -0x208,_0x21e8e8);}const _0x39d02b=_0x182f57[_0x152ee7(-0xe,-0x15)](_0x1bc806=>{const _0x44a318=_0x1bc806[_0x33bd7c(0x416,0x412)][_0x5a86ba(0x41a,0x412)+'re'];if(_0x44a318!==undefined&&_0x44a318!==null&&_0x44a318<_0x2f4b9e)return _0xf716c5++,![];function _0x33bd7c(_0x11a6cb,_0x55eda1){return _0x35c620(_0x55eda1- -0x110,_0x11a6cb);}function _0x5a86ba(_0x58bf30,_0x18f8cd){return _0x35c620(_0x18f8cd- -0x109,_0x58bf30);}return!![];});if(_0x39d02b['length']===0x0&&_0x182f57[_0x35c620(0x519,0x518)]>0x0)return{'results':_0x182f57,'stats':{'contentDuplicates':_0x1bb51b,'lowQuality':_0xf716c5,'qualityGateBypassed':!![]}};return{'results':_0x39d02b,'stats':{'contentDuplicates':_0x1bb51b,'lowQuality':_0xf716c5,'qualityGateBypassed':![]}};}
1
+ function _0x5a22(_0x219a3c,_0x256b52){_0x219a3c=_0x219a3c-0x12b;const _0x5adf64=_0x5adf();let _0x5a22ad=_0x5adf64[_0x219a3c];if(_0x5a22['IZgNiX']===undefined){var _0x4dbd93=function(_0x350682){const _0x590633='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x28e554='',_0x182099='';for(let _0x2ffe58=0x0,_0x4bc96f,_0x3b29a1,_0x541938=0x0;_0x3b29a1=_0x350682['charAt'](_0x541938++);~_0x3b29a1&&(_0x4bc96f=_0x2ffe58%0x4?_0x4bc96f*0x40+_0x3b29a1:_0x3b29a1,_0x2ffe58++%0x4)?_0x28e554+=String['fromCharCode'](0xff&_0x4bc96f>>(-0x2*_0x2ffe58&0x6)):0x0){_0x3b29a1=_0x590633['indexOf'](_0x3b29a1);}for(let _0x57840b=0x0,_0x18a61e=_0x28e554['length'];_0x57840b<_0x18a61e;_0x57840b++){_0x182099+='%'+('00'+_0x28e554['charCodeAt'](_0x57840b)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x182099);};_0x5a22['AIWanu']=_0x4dbd93,_0x5a22['Wrjbnc']={},_0x5a22['IZgNiX']=!![];}const _0x4c0732=_0x5adf64[0x0],_0x17604e=_0x219a3c+_0x4c0732,_0x2419d3=_0x5a22['Wrjbnc'][_0x17604e];return!_0x2419d3?(_0x5a22ad=_0x5a22['AIWanu'](_0x5a22ad),_0x5a22['Wrjbnc'][_0x17604e]=_0x5a22ad):_0x5a22ad=_0x2419d3,_0x5a22ad;}(function(_0x5c8bdf,_0x2715e2){function _0x51905c(_0x3a7970,_0x2d421e){return _0x5a22(_0x2d421e-0x178,_0x3a7970);}function _0x29e20f(_0x25a70e,_0x4e6961){return _0x5a22(_0x4e6961-0x1b4,_0x25a70e);}const _0x205e6f=_0x5c8bdf();while(!![]){try{const _0x54659a=parseInt(_0x29e20f(0x2eb,0x2ee))/0x1*(-parseInt(_0x29e20f(0x2db,0x2e0))/0x2)+parseInt(_0x51905c(0x2a9,0x2b1))/0x3+-parseInt(_0x29e20f(0x2d9,0x2e1))/0x4+parseInt(_0x51905c(0x2b1,0x2ad))/0x5+-parseInt(_0x51905c(0x2ac,0x2a8))/0x6+-parseInt(_0x29e20f(0x2e1,0x2e6))/0x7*(parseInt(_0x29e20f(0x2f1,0x2ec))/0x8)+parseInt(_0x51905c(0x2a2,0x2a7))/0x9;if(_0x54659a===_0x2715e2)break;else _0x205e6f['push'](_0x205e6f['shift']());}catch(_0x2d7f4a){_0x205e6f['push'](_0x205e6f['shift']());}}}(_0x5adf,0xd6cd7));function _0x5adf(){const _0x279865=['mLP1sNfirq','zMLSDgvY','mta2mZm1nhbWswPstq','mJC5ndG0u2Tisvzb','BwvTB3j5','mJa0mJK3nJzmChHjtue','mtK1ntm4mNDqqvDcAW','CxvHBgL0EvnJBW','ntC2ndi5n0vxq3vIuW','BgvUz3rO','AgfZ','nte0mZC1DKvbs0XI','ywrK','y29UDgvUDa','ofvMrvrdAq','mJm2odCYnuXcveXqBG'];_0x5adf=function(){return _0x279865;};return _0x5adf();}export function filterInjectionCandidates(_0xe48c3b,_0x28e1a0){function _0x4b9556(_0x55f367,_0xccd010){return _0x5a22(_0xccd010- -0xc9,_0x55f367);}const _0x1ec737=new Set();let _0xb0472d=0x0;const _0x354f23=_0xe48c3b[_0x4b9556(0x5b,0x62)](_0x3673f4=>{const _0x5cf39a=_0x3673f4[_0xd28044(0x135,0x13d)][_0xd28044(0x146,0x146)]['trim']();if(_0x1ec737[_0xd28044(0x140,0x143)](_0x5cf39a))return _0xb0472d++,![];function _0x544f25(_0x56a42a,_0x218b29){return _0x4b9556(_0x56a42a,_0x218b29- -0xa6);}_0x1ec737[_0x544f25(-0x35,-0x39)](_0x5cf39a);function _0xd28044(_0x185bbe,_0x1a5c38){return _0x4b9556(_0x185bbe,_0x1a5c38-0xd8);}return!![];});let _0x1bfc8d=0x0;const _0x3322b9=_0x354f23[_0x4b9556(0x60,0x62)](_0x4aef31=>{function _0x64b66f(_0x52f088,_0x1abb3c){return _0x3f94b4(_0x52f088-0x14a,_0x1abb3c);}const _0x6faee=_0x4aef31[_0x29e926(-0xea,-0xed)][_0x64b66f(0x510,0x516)+'re'];if(_0x6faee!==undefined&&_0x6faee!==null&&_0x6faee<_0x28e1a0)return _0x1bfc8d++,![];function _0x29e926(_0xe638ae,_0x5bdb1a){return _0x3f94b4(_0x5bdb1a- -0x4b0,_0xe638ae);}return!![];});if(_0x3322b9[_0x3f94b4(0x3c8,0x3cc)]===0x0&&_0x354f23[_0x3f94b4(0x3c8,0x3d0)]>0x0)return{'results':_0x354f23,'stats':{'contentDuplicates':_0xb0472d,'lowQuality':_0x1bfc8d,'qualityGateBypassed':!![]}};function _0x3f94b4(_0x13f382,_0xb41a2d){return _0x5a22(_0x13f382-0x295,_0xb41a2d);}return{'results':_0x3322b9,'stats':{'contentDuplicates':_0xb0472d,'lowQuality':_0x1bfc8d,'qualityGateBypassed':![]}};}
@@ -1 +1 @@
1
- (function(_0x5b3f74,_0x11c1ed){function _0x3adda9(_0x28508e,_0x13fb6c){return _0x230f(_0x13fb6c- -0x126,_0x28508e);}const _0x145a8d=_0x5b3f74();function _0x3cbd5c(_0x21e849,_0x26cebe){return _0x230f(_0x21e849- -0x248,_0x26cebe);}while(!![]){try{const _0x4d9400=parseInt(_0x3cbd5c(-0x4f,-0x67))/0x1*(-parseInt(_0x3adda9(0xe7,0xf7))/0x2)+-parseInt(_0x3cbd5c(-0x28,-0x34))/0x3+parseInt(_0x3cbd5c(-0x3f,-0x41))/0x4+parseInt(_0x3cbd5c(-0x47,-0x5d))/0x5*(parseInt(_0x3cbd5c(-0x3a,-0x4e))/0x6)+parseInt(_0x3adda9(0xd6,0xe6))/0x7*(-parseInt(_0x3cbd5c(-0x35,-0x2d))/0x8)+parseInt(_0x3cbd5c(-0x34,-0x23))/0x9*(-parseInt(_0x3adda9(0xfb,0xf5))/0xa)+-parseInt(_0x3adda9(0xf7,0xe0))/0xb*(-parseInt(_0x3cbd5c(-0x33,-0x25))/0xc);if(_0x4d9400===_0x11c1ed)break;else _0x145a8d['push'](_0x145a8d['shift']());}catch(_0x3465a1){_0x145a8d['push'](_0x145a8d['shift']());}}}(_0x1ee9,0xf1fc3));import{cosineSimilarity}from'../extraction/similarity.js';export const DEFAULT_RERANK_CONFIG={'enabled':!![],'nu':0.3,'floor':0.5,'expand':!![],'expandLimit':0xa,'mmrLambda':0.7};export function applyMemoryRankPrior(_0x259b3d,_0x44a9c3){if(_0x259b3d[_0xc10862(0x35e,0x36f)]===0x0)return _0x259b3d;const _0x5077f4=_0x44a9c3?.['nu']??DEFAULT_RERANK_CONFIG['nu'];function _0xc10862(_0x4178f6,_0x17754d){return _0x230f(_0x4178f6-0x142,_0x17754d);}const _0x408c96=_0x44a9c3?.[_0xc10862(0x34a,0x35d)]??DEFAULT_RERANK_CONFIG[_0x5797ff(0x283,0x282)];if(_0x5077f4<=0x0)return _0x259b3d;function _0x5797ff(_0x10598f,_0x3afb04){return _0x230f(_0x10598f-0x7b,_0x3afb04);}const _0x5edc5d=_0x259b3d[_0x5797ff(0x276,0x26b)](_0x4ca297=>_0x4ca297[_0xc10862(0x365,0x361)][_0x5797ff(0x286,0x28c)])['filter'](_0x2ff607=>_0x2ff607!==undefined&&_0x2ff607!==null&&Number['isFinite'](_0x2ff607));if(_0x5edc5d[_0xc10862(0x35e,0x34b)]===0x0)return _0x259b3d;const _0x278fa3=Math['min'](..._0x5edc5d),_0x4fc22f=Math[_0x5797ff(0x272,0x274)](..._0x5edc5d)-_0x278fa3;return _0x259b3d[_0xc10862(0x33d,0x347)](_0x29f25e=>{const _0x5651fa=_0x29f25e[_0x4570f5(0x13d,0x140)][_0xb38f01(0x362,0x34d)];function _0x4570f5(_0x42b42f,_0x37be5f){return _0xc10862(_0x42b42f- -0x228,_0x37be5f);}const _0x1822e7=_0x5651fa===undefined||_0x5651fa===null||!Number[_0x4570f5(0x13b,0x125)](_0x5651fa)?0.5:_0x4fc22f<=0x0?0.5:(_0x5651fa-_0x278fa3)/_0x4fc22f,_0x4993c2=_0x408c96+(0x1-_0x408c96)*_0x1822e7;function _0xb38f01(_0x3796e9,_0x1d302d){return _0xc10862(_0x3796e9-0x15,_0x1d302d);}return{..._0x29f25e,'score':_0x29f25e[_0xb38f01(0x36d,0x377)]*Math[_0xb38f01(0x35c,0x35d)](_0x4993c2,_0x5077f4)};})[_0xc10862(0x345,0x350)]((_0x42551c,_0x575df6)=>_0x575df6[_0xc10862(0x358,0x361)]-_0x42551c[_0x5797ff(0x291,0x2a6)]);}export function expandCandidates(_0x2a9013,_0x58681c,_0x1cc1db){const _0x4f1817=_0x1cc1db?.[_0x1d6dba(0x52f,0x52a)]??0x5,_0x517879=_0x1cc1db?.[_0x5bf909(0xfa,0xfc)+'t']??DEFAULT_RERANK_CONFIG[_0x5bf909(0xf9,0xfc)+'t'],_0x549bca=_0x1cc1db?.[_0x5bf909(0x108,0xf3)+'ht']??0.5;if(_0x58681c['length']===0x0||_0x517879<=0x0)return _0x58681c;const _0x16331b=_0x58681c[_0x1d6dba(0x542,0x532)](0x0,_0x4f1817),_0x590c5e=new Set(_0x58681c['map'](_0xff3230=>_0xff3230['memory']['id']));let _0x23a017;function _0x1d6dba(_0x4bce6b,_0x2895f1){return _0x230f(_0x4bce6b-0x335,_0x2895f1);}try{if(_0x5bf909(0xef,0xe0)!==_0x1d6dba(0x532,0x524))return _0xc1dbf2;else _0x23a017=_0x2a9013[_0x1d6dba(0x529,0x514)+_0x5bf909(0xed,0xfd)](_0x16331b[_0x1d6dba(0x530,0x537)](_0x46946d=>_0x46946d[_0x1d6dba(0x558,0x56b)]['id']),_0x517879+_0x590c5e[_0x5bf909(0xfe,0xfa)]);}catch{return _0x58681c;}function _0x5bf909(_0x1afec2,_0x2d4157){return _0x230f(_0x2d4157- -0x11d,_0x1afec2);}const _0x2c310e=_0x23a017[_0x5bf909(0xeb,0xed)](_0x59525c=>!_0x590c5e[_0x5bf909(0xe8,0xe1)](_0x59525c['dstId']))['slice'](0x0,_0x517879);if(_0x2c310e['length']===0x0)return _0x58681c;let _0x1b43d4;try{_0x1b43d4=_0x2a9013[_0x5bf909(0xde,0xdb)+'sByIds'](_0x2c310e[_0x1d6dba(0x530,0x528)](_0x30c74a=>_0x30c74a[_0x5bf909(0xda,0xd8)]));}catch{return _0x58681c;}const _0x41b70b=new Map(_0x1b43d4[_0x5bf909(0xe2,0xde)](_0x2db061=>[_0x2db061['id'],_0x2db061])),_0x335437=_0x16331b[_0x16331b[_0x5bf909(0xf5,0xff)]-0x1][_0x5bf909(0x10e,0xf9)],_0x598d36=[];for(const _0x4e69ae of _0x2c310e){const _0x233940=_0x41b70b[_0x5bf909(0xf7,0x105)](_0x4e69ae[_0x1d6dba(0x52a,0x51f)]);if(!_0x233940)continue;_0x598d36[_0x1d6dba(0x547,0x552)]({'memory':_0x233940,'score':_0x335437*_0x549bca*Math[_0x1d6dba(0x539,0x54c)](0x1,Math[_0x1d6dba(0x52c,0x51c)](0x0,_0x4e69ae[_0x1d6dba(0x535,0x528)])),'sources':[{'type':_0x5bf909(0xe4,0xd6),'rank':_0x598d36['length']+0x1}]});}if(_0x598d36[_0x5bf909(0x110,0xff)]===0x0)return _0x58681c;return[..._0x58681c,..._0x598d36]['sort']((_0x2eaa1c,_0x4da7a6)=>_0x4da7a6['score']-_0x2eaa1c[_0x1d6dba(0x54b,0x548)]);}export function diversify(_0x32bd47,_0x1ae98f){const _0x10c5dc=_0x1ae98f[_0x2ce004(0x52,0x5b)];if(_0x32bd47[_0x296273(0x596,0x584)]===0x0||_0x10c5dc<=0x0)return[];const _0x14e372=_0x1ae98f['mmrLambda']??DEFAULT_RERANK_CONFIG['mmrLambda'],_0x2aa768=[..._0x32bd47]['sort']((_0x37ceee,_0x5b1823)=>_0x5b1823[_0x296273(0x590,0x598)]-_0x37ceee[_0x2ce004(0x78,0x62)]);function _0x296273(_0x2f0e80,_0x40e2f0){return _0x230f(_0x2f0e80-0x37a,_0x40e2f0);}const _0x96d28d=_0x2aa768[0x0][_0x296273(0x590,0x581)]>0x0?_0x2aa768[0x0][_0x2ce004(0x51,0x62)]:0x1;function _0x2ce004(_0x4ca5fe,_0x90e9d7){return _0x230f(_0x90e9d7- -0x1b4,_0x4ca5fe);}const _0x34e7d9=[],_0xb673ff=new Set();while(_0x34e7d9['length']<_0x10c5dc&&_0x2aa768[_0x2ce004(0x60,0x68)]>0x0){let _0x248efd=-0x1,_0x2841b9=-Infinity;for(let _0x15dbfa=0x0;_0x15dbfa<_0x2aa768[_0x2ce004(0x66,0x68)];_0x15dbfa++){const _0x30de62=_0x2aa768[_0x15dbfa],_0x393b73=_0x30de62[_0x2ce004(0x7f,0x6f)]['clusterId'];if(_0x393b73&&_0xb673ff[_0x2ce004(0x63,0x4a)](_0x393b73))continue;const _0x21273a=_0x30de62['score']/_0x96d28d;let _0x5d7b52=0x0;const _0xa2e072=_0x30de62[_0x296273(0x59d,0x59b)][_0x296273(0x592,0x585)];if(_0xa2e072&&_0xa2e072[_0x2ce004(0x59,0x68)]>0x0)for(const _0x192304 of _0x34e7d9){const _0x1ec958=_0x192304[_0x2ce004(0x80,0x6f)][_0x2ce004(0x60,0x64)];if(_0x1ec958&&_0x1ec958[_0x296273(0x596,0x58f)]===_0xa2e072[_0x296273(0x596,0x594)]){const _0x2b0ae7=cosineSimilarity(_0xa2e072,_0x1ec958);if(_0x2b0ae7>_0x5d7b52)_0x5d7b52=_0x2b0ae7;}}const _0x55cf7a=_0x14e372*_0x21273a-(0x1-_0x14e372)*_0x5d7b52;_0x55cf7a>_0x2841b9&&(_0x2841b9=_0x55cf7a,_0x248efd=_0x15dbfa);}if(_0x248efd<0x0)break;const _0x5e0e34=_0x2aa768['splice'](_0x248efd,0x1)[0x0];_0x34e7d9[_0x2ce004(0x63,0x5e)](_0x5e0e34);if(_0x5e0e34[_0x296273(0x59d,0x59f)][_0x296273(0x598,0x59c)])_0xb673ff[_0x296273(0x57c,0x57d)](_0x5e0e34['memory'][_0x2ce004(0x7f,0x6a)]);}return _0x34e7d9;}function _0x230f(_0x41f2ac,_0x4ffb69){_0x41f2ac=_0x41f2ac-0x1f3;const _0x1ee9f5=_0x1ee9();let _0x230fd2=_0x1ee9f5[_0x41f2ac];if(_0x230f['LlhrTr']===undefined){var _0x524126=function(_0x77aa26){const _0x21e4b8='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x3023a9='',_0x5d2077='';for(let _0x3ce1ec=0x0,_0xa15671,_0x3edd1f,_0xc06c4d=0x0;_0x3edd1f=_0x77aa26['charAt'](_0xc06c4d++);~_0x3edd1f&&(_0xa15671=_0x3ce1ec%0x4?_0xa15671*0x40+_0x3edd1f:_0x3edd1f,_0x3ce1ec++%0x4)?_0x3023a9+=String['fromCharCode'](0xff&_0xa15671>>(-0x2*_0x3ce1ec&0x6)):0x0){_0x3edd1f=_0x21e4b8['indexOf'](_0x3edd1f);}for(let _0x534e86=0x0,_0x2ce920=_0x3023a9['length'];_0x534e86<_0x2ce920;_0x534e86++){_0x5d2077+='%'+('00'+_0x3023a9['charCodeAt'](_0x534e86)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x5d2077);};_0x230f['KVEbYq']=_0x524126,_0x230f['pwUfqT']={},_0x230f['LlhrTr']=!![];}const _0x82ded=_0x1ee9f5[0x0],_0x322f8d=_0x41f2ac+_0x82ded,_0x4dbf75=_0x230f['pwUfqT'][_0x322f8d];return!_0x4dbf75?(_0x230fd2=_0x230f['KVEbYq'](_0x230fd2),_0x230f['pwUfqT'][_0x322f8d]=_0x230fd2):_0x230fd2=_0x4dbf75,_0x230fd2;}export function assembleWithinBudget(_0x355a66,_0x20e80a,_0x928659){if(_0x355a66[_0x232f2d(0x3a1,0x39e)]===0x0||_0x20e80a<=0x0)return _0x355a66;function _0x232f2d(_0x4c5d52,_0x310895){return _0x230f(_0x310895-0x182,_0x4c5d52);}const _0x2975a2=_0x928659??(_0x1331f0=>Math['max'](0x1,Math[_0x232f2d(0x38e,0x37e)](Math[_0x232f2d(0x39e,0x386)](_0x1331f0[_0x543a4f(-0x4d,-0x40)]['length'],0x258)/0x4))),_0x54c11b=_0x355a66['map'](_0x49bdc5=>({'r':_0x49bdc5,'tokens':Math[_0x543a4f(-0x39,-0x48)](0x1,_0x2975a2(_0x49bdc5[_0x232f2d(0x390,0x3a5)]))})),_0x134fb9=_0x54c11b['reduce']((_0x594e65,_0x5be9f6)=>_0x594e65+_0x5be9f6[_0x543a4f(-0x34,-0x2e)],0x0);if(_0x134fb9<=_0x20e80a)return _0x355a66;function _0x543a4f(_0x738cb4,_0x464816){return _0x230f(_0x464816- -0x23f,_0x738cb4);}_0x54c11b[_0x232f2d(0x38a,0x385)]((_0x1fdddf,_0x3a102b)=>_0x3a102b['r'][_0x543a4f(-0x16,-0x29)]/_0x3a102b[_0x543a4f(-0x3a,-0x2e)]-_0x1fdddf['r'][_0x543a4f(-0x24,-0x29)]/_0x1fdddf[_0x543a4f(-0x15,-0x2e)]);const _0x315973=[];let _0x5964f7=0x0;for(const _0x4c25e8 of _0x54c11b){if(_0x5964f7+_0x4c25e8['tokens']>_0x20e80a)continue;_0x315973['push'](_0x4c25e8['r']),_0x5964f7+=_0x4c25e8[_0x232f2d(0x38c,0x393)];}return _0x315973[_0x543a4f(-0x30,-0x3c)]((_0x2b3325,_0xe787ff)=>_0xe787ff[_0x232f2d(0x3ac,0x398)]-_0x2b3325[_0x543a4f(-0x19,-0x29)]);}export function applyContextRankRerank(_0x2f0845){const _0x54177d={...DEFAULT_RERANK_CONFIG,..._0x2f0845['config']};if(!_0x54177d[_0x40fd8c(0x11,-0x5)])return _0x2f0845[_0x40fd8c(0x7,0xc)]['slice'](0x0,_0x2f0845['limit']);let _0x4318e8=_0x2f0845['ranked'];_0x54177d[_0x40fd8c(-0xf,-0x8)]&&_0x2f0845['db']&&(_0x4318e8=expandCandidates(_0x2f0845['db'],_0x4318e8,{'expandLimit':_0x54177d[_0x40fd8c(0x10,0x1e)+'t']}));function _0x40fd8c(_0x5afd81,_0x41b33e){return _0x230f(_0x41b33e- -0x1fb,_0x5afd81);}_0x4318e8=applyMemoryRankPrior(_0x4318e8,{'nu':_0x54177d['nu'],'floor':_0x54177d[_0x48ae25(0x407,0x3f6)]});function _0x48ae25(_0x475265,_0x44843d){return _0x230f(_0x475265-0x1ff,_0x44843d);}return diversify(_0x4318e8,{'limit':_0x2f0845[_0x48ae25(0x40e,0x3f6)],'mmrLambda':_0x54177d[_0x40fd8c(0x26,0x24)]});}function _0x1ee9(){const _0x2ffc64=['oteXndq1y2vcsMjY','AxngAw5PDgu','z2v0','BwvTB3j5','zxHWyw5K','z2v0tMvPz2HIBW','zhn0swq','zw5HyMXLza','Bwf4','z2v0twvTB3jPzq','mZe3nJmZu3fozMPU','C2vLzenVDw50','BwfW','y2vPBa','yLLtCfa','AgfZ','y29UDgvUDa','D2vPz2H0','mJy4nw9VCvLLrW','ywrK','C29YDa','BwLU','Cg93','ntu0mtu2ovDbvhDyyq','CMfUA2vK','zMXVB3i','ntu0nZeWmfDsuMDMua','zMLSDgvY','BwvTB3j5CMfUAW','mtqWnZKXBfb5vKLW','C2XPy2u','ndK1merhBxHitq','BgLTAxq','zxHWyw5Kv2vPzW','Dg9Rzw5Z','ChvZAa','nJrrr0H6vfe','mJq2nZK4ufrUDuvH','mZzosNjlsu0','C2nVCMu','C2L6zq','zw1IzwrKAw5N','zxHWyw5KtgLTAq','CKvKz2vZ','mZqWzgrmDxD0','BgvUz3rO','nLbmAgftEq','y2X1C3rLCKLK','Bw1YtgfTyMrH'];_0x1ee9=function(){return _0x2ffc64;};return _0x1ee9();}
1
+ (function(_0x207e32,_0x4215f6){function _0xd5f84f(_0x3723ad,_0x4d4c97){return _0x4036(_0x4d4c97- -0x1b8,_0x3723ad);}const _0x5a716f=_0x207e32();function _0x23aede(_0x294994,_0x272c21){return _0x4036(_0x272c21- -0x9f,_0x294994);}while(!![]){try{const _0x4b5992=parseInt(_0xd5f84f(-0x28,-0x39))/0x1*(-parseInt(_0x23aede(0x114,0x100))/0x2)+-parseInt(_0xd5f84f(-0x3f,-0x30))/0x3*(-parseInt(_0x23aede(0xfe,0xf4))/0x4)+-parseInt(_0xd5f84f(-0x21,-0x1d))/0x5+parseInt(_0x23aede(0xfb,0x102))/0x6+-parseInt(_0xd5f84f(-0xf,-0x1c))/0x7+-parseInt(_0xd5f84f(-0x31,-0x3c))/0x8*(-parseInt(_0xd5f84f(-0x33,-0x1b))/0x9)+parseInt(_0xd5f84f(-0x22,-0x27))/0xa*(parseInt(_0x23aede(0xd7,0xdb))/0xb);if(_0x4b5992===_0x4215f6)break;else _0x5a716f['push'](_0x5a716f['shift']());}catch(_0x1ea65c){_0x5a716f['push'](_0x5a716f['shift']());}}}(_0x3403,0x701fa));function _0x3403(){const _0x6a0951=['Dg9Rzw5Z','zxHWyw5Kv2vPzW','Bwf4','zw5HyMXLza','C2vLzenVDw50','ChvZAa','zw1IzwrKAw5N','zhn0swq','mJb0yxnfCwe','Cg93','ndiWnZa4swH3A2HJ','C0j5swrZ','CMvKDwnL','C2XPy2u','CMfUA2vK','AxngAw5PDgu','C2L6zq','y2vPBa','mtqXmZCYnuDrtufeCW','ntaZmduWmuDKvNncAG','mtm1DNfpsMTj','zxHWyw5K','mLvwqxvZCG','y29UzMLN','ndCWnJuYqu1HwfrQ','C3bSAwnL','Bw1YtgfTyMrH','D2vPz2H0','z2v0twvTB3jPzq','zMXVB3i','y29UDgvUDa','BwLU','AffPEfe','BwvTB3j5','CKvKz2vZ','yvbgBMG','y2X1C3rLCKLK','AgfZ','rNHeA2m','nteYota4mevUAvjLwq','uLPQrhu','mtCYnJi0AKH5senq','BgLTAxq','zxHWyw5KtgLTAq','mZK5oteXsuH4whb6','BgvUz3rO','C29YDa','BwfW','z2v0tMvPz2HIBW','C2nVCMu','BwvTB3j5CMfUAW','zMLSDgvY','ywrK','mtvtreXrAMu'];_0x3403=function(){return _0x6a0951;};return _0x3403();}import{cosineSimilarity}from'../extraction/similarity.js';function _0x4036(_0x140f52,_0x50e133){_0x140f52=_0x140f52-0x173;const _0x3403e1=_0x3403();let _0x403647=_0x3403e1[_0x140f52];if(_0x4036['kIhIed']===undefined){var _0x1847c9=function(_0x473874){const _0x33acfe='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x36bd0c='',_0x46fbf2='';for(let _0x241a36=0x0,_0x4c86ae,_0x15fcc9,_0x5939e5=0x0;_0x15fcc9=_0x473874['charAt'](_0x5939e5++);~_0x15fcc9&&(_0x4c86ae=_0x241a36%0x4?_0x4c86ae*0x40+_0x15fcc9:_0x15fcc9,_0x241a36++%0x4)?_0x36bd0c+=String['fromCharCode'](0xff&_0x4c86ae>>(-0x2*_0x241a36&0x6)):0x0){_0x15fcc9=_0x33acfe['indexOf'](_0x15fcc9);}for(let _0x3be989=0x0,_0x36aa1d=_0x36bd0c['length'];_0x3be989<_0x36aa1d;_0x3be989++){_0x46fbf2+='%'+('00'+_0x36bd0c['charCodeAt'](_0x3be989)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x46fbf2);};_0x4036['RtRAQL']=_0x1847c9,_0x4036['abAaHy']={},_0x4036['kIhIed']=!![];}const _0x2202f8=_0x3403e1[0x0],_0x461b15=_0x140f52+_0x2202f8,_0x43bf5b=_0x4036['abAaHy'][_0x461b15];return!_0x43bf5b?(_0x403647=_0x4036['RtRAQL'](_0x403647),_0x4036['abAaHy'][_0x461b15]=_0x403647):_0x403647=_0x43bf5b,_0x403647;}export const DEFAULT_RERANK_CONFIG={'enabled':!![],'nu':0.3,'floor':0.5,'expand':!![],'expandLimit':0xa,'mmrLambda':0.7};export function applyMemoryRankPrior(_0x54605e,_0x25aab2){if(_0x54605e[_0xaf6007(0x161,0x15e)]===0x0)return _0x54605e;const _0x52274d=_0x25aab2?.['nu']??DEFAULT_RERANK_CONFIG['nu'],_0xed481f=_0x25aab2?.[_0xaf6007(0x187,0x181)]??DEFAULT_RERANK_CONFIG['floor'];if(_0x52274d<=0x0)return _0x54605e;function _0xaf6007(_0x379c52,_0x588d6b){return _0x4036(_0x379c52- -0x1f,_0x588d6b);}const _0x33baec=_0x54605e[_0xaf6007(0x163,0x154)](_0x4ba5ed=>_0x4ba5ed[_0x178751(0xdd,0xf5)]['memoryrank'])[_0x178751(0xef,0xee)](_0x35d258=>_0x35d258!==undefined&&_0x35d258!==null&&Number['isFinite'](_0x35d258));if(_0x33baec[_0xaf6007(0x161,0x162)]===0x0)return _0x54605e;const _0x10c6a4=Math[_0xaf6007(0x189,0x184)](..._0x33baec);function _0x178751(_0x2cf47d,_0x578d37){return _0x4036(_0x2cf47d- -0x97,_0x578d37);}const _0x357315=Math['max'](..._0x33baec)-_0x10c6a4;return _0x54605e[_0x178751(0xeb,0xd6)](_0x15b922=>{function _0x515fb1(_0x50555a,_0x2aab20){return _0x178751(_0x2aab20- -0x1fd,_0x50555a);}function _0x213b2d(_0x34de25,_0x2c7b2d){return _0x178751(_0x2c7b2d-0x1be,_0x34de25);}if(_0x213b2d(0x2a1,0x29a)!=='hQixQ')return _0x4b526e;else{const _0x15f533=_0x15b922[_0x213b2d(0x2ae,0x29b)][_0x213b2d(0x296,0x2ac)],_0x1cb93b=_0x15f533===undefined||_0x15f533===null||!Number['isFinite'](_0x15f533)?0.5:_0x357315<=0x0?0.5:(_0x15f533-_0x10c6a4)/_0x357315,_0x273a6b=_0xed481f+(0x1-_0xed481f)*_0x1cb93b;return{..._0x15b922,'score':_0x15b922[_0x515fb1(-0x102,-0x110)]*Math['pow'](_0x273a6b,_0x52274d)};}})[_0x178751(0xea,0xf6)]((_0x2415dc,_0x12f2a3)=>_0x12f2a3[_0xaf6007(0x165,0x180)]-_0x2415dc[_0x178751(0xed,0xe6)]);}export function expandCandidates(_0x51cafe,_0x71b873,_0x2ede1f){function _0x272f0b(_0x41eead,_0x1cca58){return _0x4036(_0x41eead-0xb2,_0x1cca58);}const _0x5888e9=_0x2ede1f?.[_0xe12c91(0x266,0x27b)]??0x5,_0x112a03=_0x2ede1f?.[_0xe12c91(0x257,0x245)+'t']??DEFAULT_RERANK_CONFIG[_0xe12c91(0x257,0x25c)+'t'];function _0xe12c91(_0x4ec1a9,_0x35e714){return _0x4036(_0x4ec1a9-0xd9,_0x35e714);}const _0xd7b86b=_0x2ede1f?.[_0xe12c91(0x263,0x251)+'ht']??0.5;if(_0x71b873[_0x272f0b(0x232,0x242)]===0x0||_0x112a03<=0x0)return _0x71b873;const _0x1256b0=_0x71b873[_0xe12c91(0x26f,0x284)](0x0,_0x5888e9),_0x31e51a=new Set(_0x71b873[_0xe12c91(0x25b,0x274)](_0x216c76=>_0x216c76[_0x272f0b(0x226,0x23e)]['id']));let _0x5a7cc1;try{_0x5a7cc1=_0x51cafe[_0xe12c91(0x25c,0x263)+_0x272f0b(0x227,0x241)](_0x1256b0[_0xe12c91(0x25b,0x247)](_0x3e2e3b=>_0x3e2e3b[_0x272f0b(0x226,0x210)]['id']),_0x112a03+_0x31e51a[_0x272f0b(0x24b,0x236)]);}catch{return _0x71b873;}const _0x3367da=_0x5a7cc1[_0xe12c91(0x25f,0x265)](_0x230430=>!_0x31e51a['has'](_0x230430[_0xe12c91(0x269,0x25e)]))[_0x272f0b(0x248,0x25b)](0x0,_0x112a03);if(_0x3367da[_0xe12c91(0x259,0x248)]===0x0)return _0x71b873;let _0x1340d6;try{_0x272f0b(0x22d,0x233)!==_0xe12c91(0x254,0x26f)?_0x51fe9d=_0x1f9c2f[_0x272f0b(0x235,0x223)+_0xe12c91(0x24e,0x238)](_0x405615[_0xe12c91(0x25b,0x24f)](_0x14f28b=>_0x14f28b[_0xe12c91(0x24d,0x25c)]['id']),_0x4ac910+_0x188d8e[_0xe12c91(0x272,0x26b)]):_0x1340d6=_0x51cafe[_0x272f0b(0x257,0x23c)+_0x272f0b(0x246,0x25e)](_0x3367da['map'](_0x5a7658=>_0x5a7658[_0x272f0b(0x242,0x25d)]));}catch{return _0x71b873;}const _0x4c2beb=new Map(_0x1340d6['map'](_0xdc8c47=>[_0xdc8c47['id'],_0xdc8c47])),_0x71669f=_0x1256b0[_0x1256b0[_0x272f0b(0x232,0x228)]-0x1][_0xe12c91(0x25d,0x25d)],_0x3ca067=[];for(const _0x25443c of _0x3367da){const _0x451451=_0x4c2beb['get'](_0x25443c['dstId']);if(!_0x451451)continue;_0x3ca067[_0x272f0b(0x240,0x238)]({'memory':_0x451451,'score':_0x71669f*_0xd7b86b*Math['min'](0x1,Math[_0xe12c91(0x264,0x262)](0x0,_0x25443c[_0x272f0b(0x256,0x25c)])),'sources':[{'type':_0xe12c91(0x277,0x271),'rank':_0x3ca067[_0xe12c91(0x259,0x25f)]+0x1}]});}if(_0x3ca067[_0xe12c91(0x259,0x250)]===0x0)return _0x71b873;return[..._0x71b873,..._0x3ca067][_0x272f0b(0x233,0x233)]((_0x19e1a0,_0x5c96e2)=>_0x5c96e2['score']-_0x19e1a0['score']);}export function diversify(_0x3d3825,_0x2fbee9){function _0x5ef2b5(_0x3c7e25,_0x22f7b1){return _0x4036(_0x22f7b1- -0x215,_0x3c7e25);}const _0x374d2b=_0x2fbee9[_0x5ef2b5(-0xac,-0x98)];if(_0x3d3825[_0x5ef2b5(-0x81,-0x95)]===0x0||_0x374d2b<=0x0)return[];const _0x24b071=_0x2fbee9['mmrLambda']??DEFAULT_RERANK_CONFIG[_0x5ef2b5(-0x5c,-0x72)],_0x18500f=[..._0x3d3825]['sort']((_0x5375d0,_0xe28c64)=>_0xe28c64['score']-_0x5375d0[_0x5ef2b5(-0x95,-0x91)]),_0x29819f=_0x18500f[0x0][_0x5ef2b5(-0x8c,-0x91)]>0x0?_0x18500f[0x0][_0x3a3f50(0xcb,0xd3)]:0x1,_0xf09e03=[],_0x31f35f=new Set();function _0x3a3f50(_0x1ba2a3,_0x287dfa){return _0x4036(_0x287dfa- -0xb1,_0x1ba2a3);}while(_0xf09e03[_0x5ef2b5(-0x82,-0x95)]<_0x374d2b&&_0x18500f[_0x5ef2b5(-0xa7,-0x95)]>0x0){let _0x18a305=-0x1,_0x10b3da=-Infinity;for(let _0x2191ff=0x0;_0x2191ff<_0x18500f['length'];_0x2191ff++){if(_0x3a3f50(0xc2,0xc5)===_0x5ef2b5(-0x9e,-0x9f)){const _0x55028b=_0x18500f[_0x2191ff],_0x57bf11=_0x55028b[_0x5ef2b5(-0xb8,-0xa1)][_0x3a3f50(0xb6,0xc6)];if(_0x57bf11&&_0x31f35f[_0x5ef2b5(-0xa2,-0x9d)](_0x57bf11))continue;const _0xfabe0a=_0x55028b[_0x5ef2b5(-0x8f,-0x91)]/_0x29819f;let _0x638338=0x0;const _0x2f3370=_0x55028b['memory'][_0x5ef2b5(-0x8f,-0x86)];if(_0x2f3370&&_0x2f3370[_0x3a3f50(0xbc,0xcf)]>0x0){if(_0x5ef2b5(-0xa0,-0x9c)!=='xbFXP')for(const _0x3fc563 of _0xf09e03){const _0x4a2e5d=_0x3fc563[_0x5ef2b5(-0x99,-0xa1)][_0x5ef2b5(-0x7b,-0x86)];if(_0x4a2e5d&&_0x4a2e5d[_0x5ef2b5(-0x93,-0x95)]===_0x2f3370[_0x3a3f50(0xb9,0xcf)]){const _0x464cc4=cosineSimilarity(_0x2f3370,_0x4a2e5d);if(_0x464cc4>_0x638338)_0x638338=_0x464cc4;}}else{if(_0x2df766['length']===0x0)return _0x542c72;const _0x5c1cd4=_0xbdb259?.['nu']??_0x14cb9a['nu'],_0x30ec77=_0x40e9b9?.[_0x5ef2b5(-0x5d,-0x6f)]??_0x2b70b2[_0x3a3f50(0xe7,0xf5)];if(_0x5c1cd4<=0x0)return _0xf08911;const _0x735522=_0x3067d2['map'](_0x5f1af1=>_0x5f1af1['memory'][_0x3a3f50(0xd8,0xd4)])[_0x3a3f50(0xf0,0xd5)](_0x287c77=>_0x287c77!==_0x177571&&_0x287c77!==null&&_0x3d7041[_0x3a3f50(0xdf,0xe7)](_0x287c77));if(_0x735522[_0x5ef2b5(-0x85,-0x95)]===0x0)return _0x728a37;const _0x5b37a5=_0x810adb[_0x5ef2b5(-0x5a,-0x6d)](..._0x735522),_0xac16ac=_0x25512d[_0x3a3f50(0xd4,0xda)](..._0x735522)-_0x5b37a5;return _0x10199d['map'](_0x52587b=>{function _0x116045(_0x3d6c17,_0x23f9cb){return _0x5ef2b5(_0x23f9cb,_0x3d6c17-0x2ab);}const _0x52c62c=_0x52587b[_0x198bc9(0x8e,0x8a)][_0x116045(0x21b,0x236)],_0x3c40e2=_0x52c62c===_0x5c6270||_0x52c62c===null||!_0x287b04[_0x116045(0x22e,0x224)](_0x52c62c)?0.5:_0xac16ac<=0x0?0.5:(_0x52c62c-_0x5b37a5)/_0xac16ac;function _0x198bc9(_0xb392ac,_0xfdd586){return _0x5ef2b5(_0xfdd586,_0xb392ac-0x12f);}const _0x3479ff=_0x30ec77+(0x1-_0x30ec77)*_0x3c40e2;return{..._0x52587b,'score':_0x52587b[_0x198bc9(0x9e,0xaa)]*_0x14b95a[_0x116045(0x228,0x210)](_0x3479ff,_0x5c1cd4)};})[_0x3a3f50(0xdb,0xd0)]((_0x3b7a,_0x1b75ae)=>_0x1b75ae[_0x5ef2b5(-0x7a,-0x91)]-_0x3b7a[_0x5ef2b5(-0x87,-0x91)]);}}const _0x388bd0=_0x24b071*_0xfabe0a-(0x1-_0x24b071)*_0x638338;_0x388bd0>_0x10b3da&&(_0x10b3da=_0x388bd0,_0x18a305=_0x2191ff);}else{const _0x1b9c45={..._0x339d68,..._0x2f68a9[_0x3a3f50(0xfa,0xef)]};if(!_0x1b9c45['enabled'])return _0x2b7fea[_0x5ef2b5(-0x84,-0x7e)][_0x5ef2b5(-0x71,-0x7f)](0x0,_0x1d226b[_0x5ef2b5(-0x89,-0x98)]);let _0x4f2e53=_0x2e8fe8[_0x5ef2b5(-0x81,-0x7e)];return _0x1b9c45[_0x3a3f50(0xdc,0xed)]&&_0x503a03['db']&&(_0x4f2e53=_0x283e01(_0x398574['db'],_0x4f2e53,{'expandLimit':_0x1b9c45['expandLimi'+'t']})),_0x4f2e53=_0x24531e(_0x4f2e53,{'nu':_0x1b9c45['nu'],'floor':_0x1b9c45['floor']}),_0xa6146a(_0x4f2e53,{'limit':_0x4581d3[_0x3a3f50(0xc4,0xcc)],'mmrLambda':_0x1b9c45[_0x5ef2b5(-0x80,-0x72)]});}}if(_0x18a305<0x0)break;const _0x475af2=_0x18500f[_0x5ef2b5(-0x87,-0x73)](_0x18a305,0x1)[0x0];_0xf09e03[_0x3a3f50(0xf3,0xdd)](_0x475af2);if(_0x475af2[_0x5ef2b5(-0xb2,-0xa1)]['clusterId'])_0x31f35f[_0x5ef2b5(-0x85,-0x8e)](_0x475af2[_0x3a3f50(0xd2,0xc3)][_0x3a3f50(0xc0,0xc6)]);}return _0xf09e03;}export function assembleWithinBudget(_0x36c024,_0x3836d5,_0x489df1){if(_0x36c024[_0x59020a(-0x21f,-0x229)]===0x0||_0x3836d5<=0x0)return _0x36c024;const _0x49a3fd=_0x489df1??(_0x2bf714=>Math['max'](0x1,Math[_0x59020a(-0x205,-0x1fa)](Math[_0x4e3cd0(0x23d,0x235)](_0x2bf714[_0x4e3cd0(0x23b,0x234)][_0x4e3cd0(0x219,0x20d)],0x258)/0x4))),_0x40062a=_0x36c024['map'](_0xb43fa2=>({'r':_0xb43fa2,'tokens':Math[_0x59020a(-0x214,-0x211)](0x1,_0x49a3fd(_0xb43fa2['memory']))})),_0x5415e2=_0x40062a[_0x4e3cd0(0x218,0x222)]((_0x51929b,_0x4185b3)=>_0x51929b+_0x4185b3['tokens'],0x0);function _0x59020a(_0x5bc6ea,_0x170a4e){return _0x4036(_0x5bc6ea- -0x39f,_0x170a4e);}if(_0x5415e2<=_0x3836d5)return _0x36c024;_0x40062a[_0x4e3cd0(0x229,0x20e)]((_0x252431,_0x54a3ee)=>_0x54a3ee['r'][_0x4e3cd0(0x227,0x211)]/_0x54a3ee[_0x4e3cd0(0x203,0x216)]-_0x252431['r'][_0x4e3cd0(0x20b,0x211)]/_0x252431['tokens']);function _0x4e3cd0(_0x24fa78,_0x17f65b){return _0x4036(_0x17f65b-0x8d,_0x24fa78);}const _0x4d2489=[];let _0x5430c8=0x0;for(const _0x232d31 of _0x40062a){if(_0x5430c8+_0x232d31[_0x4e3cd0(0x229,0x216)]>_0x3836d5)continue;_0x4d2489['push'](_0x232d31['r']),_0x5430c8+=_0x232d31[_0x4e3cd0(0x203,0x216)];}return _0x4d2489[_0x4e3cd0(0x225,0x20e)]((_0x6e2a4a,_0x2540be)=>_0x2540be[_0x4e3cd0(0x214,0x211)]-_0x6e2a4a['score']);}export function applyContextRankRerank(_0x46733b){function _0x414680(_0x494dea,_0x308a69){return _0x4036(_0x494dea- -0xbc,_0x308a69);}const _0x46a4f8={...DEFAULT_RERANK_CONFIG,..._0x46733b[_0x38c192(-0x1a2,-0x1a1)]};if(!_0x46a4f8[_0x414680(0xd0,0xd5)])return _0x46733b[_0x414680(0xdb,0xcf)][_0x38c192(-0x199,-0x1ab)](0x0,_0x46733b['limit']);let _0x559bf9=_0x46733b[_0x414680(0xdb,0xdd)];function _0x38c192(_0x2c5410,_0xdbd3d2){return _0x4036(_0xdbd3d2- -0x341,_0x2c5410);}return _0x46a4f8[_0x414680(0xe2,0xec)]&&_0x46733b['db']&&(_0x559bf9=expandCandidates(_0x46733b['db'],_0x559bf9,{'expandLimit':_0x46a4f8['expandLimi'+'t']})),_0x559bf9=applyMemoryRankPrior(_0x559bf9,{'nu':_0x46a4f8['nu'],'floor':_0x46a4f8[_0x38c192(-0x19b,-0x19b)]}),diversify(_0x559bf9,{'limit':_0x46733b[_0x414680(0xc1,0xc9)],'mmrLambda':_0x46a4f8[_0x414680(0xe7,0xd3)]});}
@@ -1 +1 @@
1
- function _0x1774(_0x27d14c,_0x201dcd){_0x27d14c=_0x27d14c-0x6e;const _0x2e740b=_0x2e74();let _0x177436=_0x2e740b[_0x27d14c];if(_0x1774['DhCHCE']===undefined){var _0x44df05=function(_0x4a8ecc){const _0x3c8c9e='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x52fce2='',_0x352ca2='';for(let _0x309782=0x0,_0x2d17c9,_0x5a07ec,_0x41e170=0x0;_0x5a07ec=_0x4a8ecc['charAt'](_0x41e170++);~_0x5a07ec&&(_0x2d17c9=_0x309782%0x4?_0x2d17c9*0x40+_0x5a07ec:_0x5a07ec,_0x309782++%0x4)?_0x52fce2+=String['fromCharCode'](0xff&_0x2d17c9>>(-0x2*_0x309782&0x6)):0x0){_0x5a07ec=_0x3c8c9e['indexOf'](_0x5a07ec);}for(let _0x549585=0x0,_0x3833f8=_0x52fce2['length'];_0x549585<_0x3833f8;_0x549585++){_0x352ca2+='%'+('00'+_0x52fce2['charCodeAt'](_0x549585)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x352ca2);};_0x1774['JTUTQa']=_0x44df05,_0x1774['eniVLE']={},_0x1774['DhCHCE']=!![];}const _0x469779=_0x2e740b[0x0],_0x2ff983=_0x27d14c+_0x469779,_0x30a56b=_0x1774['eniVLE'][_0x2ff983];return!_0x30a56b?(_0x177436=_0x1774['JTUTQa'](_0x177436),_0x1774['eniVLE'][_0x2ff983]=_0x177436):_0x177436=_0x30a56b,_0x177436;}(function(_0x1cf5e6,_0x34eb51){function _0xd3c14a(_0x1b5566,_0x59adb3){return _0x1774(_0x59adb3-0x67,_0x1b5566);}function _0x517de7(_0x405187,_0x304c8c){return _0x1774(_0x405187-0x3dc,_0x304c8c);}const _0x40be2a=_0x1cf5e6();while(!![]){try{const _0x5c67a0=parseInt(_0xd3c14a(0xc0,0xd7))/0x1*(parseInt(_0xd3c14a(0xdc,0xda))/0x2)+parseInt(_0x517de7(0x46f,0x467))/0x3+-parseInt(_0xd3c14a(0x108,0x100))/0x4*(parseInt(_0xd3c14a(0xd2,0xe3))/0x5)+-parseInt(_0x517de7(0x464,0x46b))/0x6+-parseInt(_0x517de7(0x45d,0x45b))/0x7*(parseInt(_0x517de7(0x468,0x47c))/0x8)+parseInt(_0xd3c14a(0x109,0xf5))/0x9+parseInt(_0xd3c14a(0xe4,0xeb))/0xa*(-parseInt(_0xd3c14a(0xef,0x105))/0xb);if(_0x5c67a0===_0x34eb51)break;else _0x40be2a['push'](_0x40be2a['shift']());}catch(_0x15e320){_0x40be2a['push'](_0x40be2a['shift']());}}}(_0x2e74,0x2e940));function _0x2e74(){const _0x5a6a57=['ntu5mtqXvNzLyvzw','CMvJzw5JEq','D2vPz2H0CW','mvz1AgTQrG','CMvJzw5JEurLyW','CxvHBgL0EvnJBW','mZG3odC0CfPlte51','Dg90ywXty29Yzq','BwvTB3j5','BgvUz3rO','DxbKyxrLzef0','C291CMnLCW','ExPhvvi','DgLLCG','C2v0','odu3ndv3C21Psgq','yLDJq1O','q1nvA0q','DMfSDwvZ','y2f0zwDVCNK','mta1sfrYrxfb','DMvJDg9Y','DgLLCKjVB3n0','mtb1txfdvuO','z2v0sg91CNnbzW','Dg9tDhjPBMC','wxjmzhi','mti3nZy0nMn1yK5Qvq','y2f0zwDVCNLcBW','C2XPy2u','CMfUAW','odaYnZjsCwPQrNG','ywrKu2nVCMu','mJC4mti5n2rfBwj6qq','Bwf4','BMrvzKO','z2v0vgLTzq','zNrZ','odiWnZu4uxDiv0T6','zNjVBq','z2v0','C29YDa','BwfW','CgfYzw50swq','ndbTrLPPBNe','Cg93','B3n0','BM93','BNvTyMvY'];_0x2e74=function(){return _0x5a6a57;};return _0x2e74();}function _0xb00471(_0x23a6a6,_0x69635e){return _0x1774(_0x23a6a6- -0x28f,_0x69635e);}const CATEGORY_BOOST={'error_solution':1.2,'code_pattern':1.2,'decision':1.1,'convention':1.1,'skill':1.5,'rule':1.5,'context':0x1,'project_knowledge':0x1,'learning':0x1},TIER_BOOST={'semantic':1.2,'episodic':0x1,'working':0.8};export class HybridRanker{['k'];[_0x4d28f9(0x452,0x467)];[_0xb00471(-0x206,-0x208)+'ost'];[_0x4d28f9(0x466,0x46e)];[_0xb00471(-0x21e,-0x21f)+'ay'];constructor(_0x43de1a){function _0x3376ac(_0xa6489a,_0x41e202){return _0x4d28f9(_0xa6489a- -0x57,_0x41e202);}function _0x3df301(_0x13858e,_0x472568){return _0x4d28f9(_0x13858e- -0x42f,_0x472568);}if(typeof _0x43de1a===_0x3df301(0x51,0x56))this['k']=_0x43de1a,this['weights']={'fts':0x1,'vector':0x1,'recency':0x1},this[_0x3376ac(0x415,0x413)+_0x3376ac(0x427,0x431)]=![],this['tierBoost']=![],this[_0x3376ac(0x3fd,0x3fc)+'ay']=![];else{const _0x30d558=_0x43de1a??{};this['k']=_0x30d558['k']??0x3c,this[_0x3df301(0x23,0x14)]={'fts':_0x30d558['weights']?.[_0x3df301(0x46,0x39)]??0x1,'vector':_0x30d558[_0x3376ac(0x3fb,0x412)]?.[_0x3376ac(0x40e,0x419)]??0x1,'recency':_0x30d558[_0x3376ac(0x3fb,0x401)]?.[_0x3376ac(0x3fa,0x406)]??0x1},this[_0x3376ac(0x415,0x427)+_0x3376ac(0x427,0x427)]=_0x30d558[_0x3df301(0x3d,0x4f)+_0x3376ac(0x427,0x41a)]??![],this['tierBoost']=_0x30d558[_0x3df301(0x37,0x1e)]??![],this[_0x3376ac(0x3fd,0x3fd)+'ay']=_0x30d558['recencyDec'+'ay']??![];}}[_0xb00471(-0x204,-0x1fc)](_0x522b88,_0x35439b,_0x41d9ce){const _0x13c9f8=_0x522b88[_0x4828de(0x409,0x41d)](0x0,0x1f4),_0x539984=_0x35439b[_0x4828de(0x409,0x3ff)](0x0,0x1f4),_0x19fb12=_0x41d9ce?.[_0x4828de(0x409,0x3f2)](0x0,0x1f4),_0x4d42b5=new Map();for(let _0x3f388a=0x0;_0x3f388a<_0x13c9f8[_0x4828de(0x3f5,0x3ea)];_0x3f388a++){const _0x24a657=_0x13c9f8[_0x3f388a],_0x7f0778=_0x3f388a+0x1,_0xd4a2d5=this[_0x4828de(0x3ee,0x3ef)][_0x148ba3(0x2ff,0x2f0)]/(this['k']+_0x7f0778);this[_0x4828de(0x40c,0x3f7)](_0x4d42b5,_0x24a657[_0x148ba3(0x2e2,0x2f4)],_0xd4a2d5,'fts',_0x7f0778);}for(let _0x3a2959=0x0;_0x3a2959<_0x539984['length'];_0x3a2959++){const _0x3bb138=_0x539984[_0x3a2959],_0x21d774=_0x3a2959+0x1,_0x2b8600=this[_0x148ba3(0x2dc,0x2f3)][_0x4828de(0x401,0x3fb)]/(this['k']+_0x21d774);this[_0x148ba3(0x2fa,0x30c)](_0x4d42b5,_0x3bb138[_0x148ba3(0x2e2,0x2de)],_0x2b8600,'vector',_0x21d774);}if(_0x19fb12&&_0x19fb12[_0x4828de(0x3f5,0x3ef)]>0x0)for(let _0x1bdb91=0x0;_0x1bdb91<_0x19fb12[_0x4828de(0x3f5,0x403)];_0x1bdb91++){const _0x26f3bd=_0x19fb12[_0x1bdb91],_0x298f6b=_0x1bdb91+0x1;let _0x152ae8;if(this[_0x148ba3(0x2de,0x2dc)+'ay']){if(_0x148ba3(0x2ea,0x2e7)!==_0x148ba3(0x2ea,0x2fd))for(let _0x105551=0x0;_0x105551<_0x30588e[_0x4828de(0x3f5,0x3ff)];_0x105551++){const _0x14214f=_0x4d7511[_0x105551],_0x3dc452=_0x105551+0x1;let _0x28c2cf;if(this[_0x4828de(0x3f0,0x3e3)+'ay']){const _0x15ff8d=this['getHoursAg'+'o'](_0x14214f[_0x4828de(0x3f6,0x3ed)]);_0x28c2cf=this[_0x148ba3(0x2dc,0x2d6)]['recency']*_0x37d17c['pow'](_0x15ff8d+0x1,-0.5);}else _0x28c2cf=this['weights'][_0x148ba3(0x2db,0x2e4)]/(this['k']+_0x3dc452);this[_0x4828de(0x40c,0x403)](_0x4ce011,_0x14214f,_0x28c2cf,_0x148ba3(0x2db,0x2ec),_0x3dc452);}else{const _0x4d913a=this[_0x148ba3(0x2f2,0x2e6)+'o'](_0x26f3bd[_0x148ba3(0x2e4,0x2cf)]);_0x152ae8=this[_0x148ba3(0x2dc,0x2e1)][_0x148ba3(0x2db,0x2c6)]*Math[_0x148ba3(0x307,0x313)](_0x4d913a+0x1,-0.5);}}else _0x152ae8=this[_0x148ba3(0x2dc,0x2d9)][_0x4828de(0x3ed,0x3e0)]/(this['k']+_0x298f6b);this[_0x148ba3(0x2fa,0x2e3)](_0x4d42b5,_0x26f3bd,_0x152ae8,'recency',_0x298f6b);}if(this[_0x4828de(0x408,0x3f8)+'ost']||this['tierBoost'])for(const _0x34f7d1 of _0x4d42b5[_0x4828de(0x3fe,0x3ed)]()){if(_0x148ba3(0x2e6,0x2eb)!==_0x4828de(0x3f8,0x3fe)){const _0x21fc5f=_0x41cfed[_0x4da6bc],_0x4af4c7=_0x1fa4d6+0x1;let _0x4c281f;if(this['recencyDec'+'ay']){const _0x3e0173=this[_0x148ba3(0x2f2,0x2ed)+'o'](_0x21fc5f[_0x4828de(0x3f6,0x40b)]);_0x4c281f=this[_0x4828de(0x3ee,0x3ff)][_0x148ba3(0x2db,0x2de)]*_0x852f50[_0x4828de(0x419,0x401)](_0x3e0173+0x1,-0.5);}else _0x4c281f=this[_0x4828de(0x3ee,0x3da)]['recency']/(this['k']+_0x4af4c7);this['addScore'](_0x13a81d,_0x21fc5f,_0x4c281f,_0x148ba3(0x2db,0x2c9),_0x4af4c7);}else{let _0x38783a=0x1;this['categoryBo'+'ost']&&(_0x38783a*=CATEGORY_BOOST[_0x34f7d1[_0x148ba3(0x2e2,0x2df)][_0x148ba3(0x2ed,0x2f2)]]??0x1),this['tierBoost']&&(_0x38783a*=TIER_BOOST[_0x34f7d1[_0x4828de(0x3f4,0x3ec)][_0x148ba3(0x2e7,0x2eb)]]??0x1),_0x34f7d1[_0x4828de(0x3f3,0x3e2)]*=_0x38783a;}}function _0x148ba3(_0x1b37e5,_0x224c7e){return _0xb00471(_0x1b37e5-0x4fc,_0x224c7e);}for(const _0x1a19b4 of _0x4d42b5[_0x148ba3(0x2ec,0x2de)]()){_0x1a19b4[_0x4828de(0x3f4,0x3fa)][_0x148ba3(0x2df,0x2d0)+'re']!==undefined&&_0x1a19b4[_0x4828de(0x3f4,0x3f9)][_0x148ba3(0x2df,0x2df)+'re']!==null&&(_0x1a19b4['totalScore']*=0x1+0.2*_0x1a19b4[_0x4828de(0x3f4,0x3f1)][_0x4828de(0x3f1,0x3f2)+'re']);}const _0x420159=Array[_0x4828de(0x413,0x40f)](_0x4d42b5[_0x4828de(0x3fe,0x3ea)]())[_0x4828de(0x415,0x418)]((_0x3b9496,_0x1b84e3)=>_0x1b84e3[_0x148ba3(0x2e1,0x2d0)]-_0x3b9496[_0x4828de(0x3f3,0x3f7)])[_0x148ba3(0x304,0x305)](_0x1cff03=>({'memory':_0x1cff03['memory'],'score':_0x1cff03[_0x4828de(0x3f3,0x3e1)],'sources':_0x1cff03[_0x148ba3(0x2e5,0x2f5)],'parentId':_0x1cff03['memory'][_0x4828de(0x417,0x40b)]}));function _0x4828de(_0x4c4303,_0x5b5e3c){return _0xb00471(_0x4c4303-0x60e,_0x5b5e3c);}return _0x420159;}[_0xb00471(-0x202,-0x1ea)](_0x1fb675,_0x1c1573,_0x312807,_0x4ccec1,_0x19e367){const _0x5e8948=_0x1fb675[_0x23ec26(0x253,0x257)](_0x1c1573['id']);function _0x53e906(_0x1db212,_0x9a303d){return _0x4d28f9(_0x1db212- -0x1a,_0x9a303d);}function _0x23ec26(_0x407534,_0x459e2a){return _0x4d28f9(_0x459e2a- -0x221,_0x407534);}if(_0x5e8948){if('QtpEO'!==_0x53e906(0x450,0x447))_0x5e8948[_0x53e906(0x43d,0x436)]+=_0x312807,_0x5e8948[_0x23ec26(0x231,0x23a)]['push']({'type':_0x4ccec1,'rank':_0x19e367});else{if(typeof _0x2d17c9===_0x53e906(0x466,0x47a))this['k']=_0x549585,this[_0x53e906(0x438,0x432)]={'fts':0x1,'vector':0x1,'recency':0x1},this['categoryBo'+'ost']=![],this[_0x23ec26(0x249,0x245)]=![],this[_0x23ec26(0x22e,0x233)+'ay']=![];else{const _0x23f151=_0x3833f8??{};this['k']=_0x23f151['k']??0x3c,this['weights']={'fts':_0x23f151[_0x23ec26(0x21a,0x231)]?.[_0x53e906(0x45b,0x455)]??0x1,'vector':_0x23f151[_0x53e906(0x438,0x43e)]?.[_0x23ec26(0x252,0x244)]??0x1,'recency':_0x23f151['weights']?.[_0x53e906(0x437,0x424)]??0x1},this[_0x23ec26(0x251,0x24b)+_0x23ec26(0x268,0x25d)]=_0x23f151[_0x53e906(0x452,0x453)+_0x53e906(0x464,0x459)]??![],this[_0x53e906(0x44c,0x465)]=_0x23f151[_0x23ec26(0x22d,0x245)]??![],this[_0x23ec26(0x23e,0x233)+'ay']=_0x23f151[_0x53e906(0x43a,0x43c)+'ay']??![];}}}else _0x1fb675[_0x23ec26(0x248,0x23d)](_0x1c1573['id'],{'memory':_0x1c1573,'totalScore':_0x312807,'sources':[{'type':_0x4ccec1,'rank':_0x19e367}]});}[_0x4d28f9(0x468,0x450)+'o'](_0x1de5f7){const _0x53743c=Date[_0x1fa0e3(-0x29a,-0x298)]();function _0x412168(_0x1d5377,_0x109aec){return _0x4d28f9(_0x1d5377- -0x360,_0x109aec);}function _0x1fa0e3(_0x52daee,_0x2324b2){return _0x4d28f9(_0x2324b2- -0x717,_0x52daee);}const _0x195887=new Date(_0x1de5f7)[_0x1fa0e3(-0x2b9,-0x2a3)]();return Math[_0x1fa0e3(-0x293,-0x2a5)](0x0,(_0x53743c-_0x195887)/(0x3e8*0x3c*0x3c));}}function _0x4d28f9(_0x5eb68f,_0x429e15){return _0x1774(_0x5eb68f-0x3e3,_0x429e15);}export function computeEmbeddingHash(_0x3f4e3d,_0x575286=0x20){const _0x2e251c=[];for(let _0x4ecbd7=0x0;_0x4ecbd7<_0x575286;_0x4ecbd7++){if(_0x151a62(-0x15c,-0x150)===_0x33e26f(-0x159,-0x142)){let _0x249694=0x0;for(let _0x536573=0x0;_0x536573<_0x3f4e3d['length'];_0x536573++){const _0x35b477=(_0x4ecbd7*0x1f+_0x536573*0x11+0x7)%0x2===0x0?0x1:-0x1;_0x249694+=_0x3f4e3d[_0x536573]*_0x35b477;}_0x2e251c['push'](_0x249694>=0x0?0x1:0x0);}else _0x376ddc|=_0x48dd07[_0x2a0824+_0xc9ca24]<<0x3-_0x1ca1a8;}let _0xd347f6='';function _0x33e26f(_0xe608eb,_0x285c11){return _0xb00471(_0x285c11-0xbd,_0xe608eb);}for(let _0x36b484=0x0;_0x36b484<_0x575286;_0x36b484+=0x4){if('CSUkD'!==_0x33e26f(-0x15d,-0x154))_0x4c786d*=_0x3c57bd[_0x35073b[_0x33e26f(-0x16a,-0x15d)][_0x33e26f(-0x16a,-0x152)]]??0x1;else{let _0x26f98f=0x0;for(let _0x1a52f3=0x0;_0x1a52f3<0x4&&_0x36b484+_0x1a52f3<_0x575286;_0x1a52f3++){_0x26f98f|=_0x2e251c[_0x36b484+_0x1a52f3]<<0x3-_0x1a52f3;}_0xd347f6+=_0x26f98f[_0x151a62(-0x15f,-0x15a)](0x10);}}function _0x151a62(_0x108131,_0xaedfdb){return _0xb00471(_0xaedfdb-0xaf,_0x108131);}return _0xd347f6;}
1
+ (function(_0x42aedd,_0x350f05){function _0x5454af(_0x4549df,_0x5786c0){return _0xbfa2(_0x4549df- -0x25e,_0x5786c0);}function _0x4071f9(_0x1cb747,_0x62df99){return _0xbfa2(_0x1cb747- -0x25d,_0x62df99);}const _0x1f1282=_0x42aedd();while(!![]){try{const _0x180f82=parseInt(_0x4071f9(-0x194,-0x198))/0x1+-parseInt(_0x5454af(-0x182,-0x195))/0x2+parseInt(_0x4071f9(-0x190,-0x19e))/0x3*(parseInt(_0x4071f9(-0x17a,-0x17d))/0x4)+parseInt(_0x5454af(-0x180,-0x16b))/0x5*(parseInt(_0x4071f9(-0x1a3,-0x1a6))/0x6)+-parseInt(_0x4071f9(-0x1a1,-0x194))/0x7+parseInt(_0x4071f9(-0x184,-0x180))/0x8*(parseInt(_0x5454af(-0x17c,-0x18d))/0x9)+parseInt(_0x4071f9(-0x19d,-0x195))/0xa*(parseInt(_0x4071f9(-0x197,-0x18d))/0xb);if(_0x180f82===_0x350f05)break;else _0x1f1282['push'](_0x1f1282['shift']());}catch(_0x4afa78){_0x1f1282['push'](_0x1f1282['shift']());}}}(_0x2a93,0x87ef9));function _0x2e25d8(_0x4878f7,_0x58c5f6){return _0xbfa2(_0x58c5f6-0x1,_0x4878f7);}const CATEGORY_BOOST={'error_solution':1.2,'code_pattern':1.2,'decision':1.1,'convention':1.1,'skill':1.5,'rule':1.5,'context':0x1,'project_knowledge':0x1,'learning':0x1},TIER_BOOST={'semantic':1.2,'episodic':0x1,'working':0.8};function _0x32e1d3(_0xa74cb3,_0x403b54){return _0xbfa2(_0xa74cb3-0x13e,_0x403b54);}function _0xbfa2(_0x563de4,_0x35dae8){_0x563de4=_0x563de4-0xba;const _0x2a939d=_0x2a93();let _0xbfa2c4=_0x2a939d[_0x563de4];if(_0xbfa2['ubuMyA']===undefined){var _0x5e955e=function(_0x15964f){const _0x2cd721='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x397458='',_0x2ee79='';for(let _0x34ab9c=0x0,_0x2c430d,_0x5c2960,_0x30fd62=0x0;_0x5c2960=_0x15964f['charAt'](_0x30fd62++);~_0x5c2960&&(_0x2c430d=_0x34ab9c%0x4?_0x2c430d*0x40+_0x5c2960:_0x5c2960,_0x34ab9c++%0x4)?_0x397458+=String['fromCharCode'](0xff&_0x2c430d>>(-0x2*_0x34ab9c&0x6)):0x0){_0x5c2960=_0x2cd721['indexOf'](_0x5c2960);}for(let _0xc63e20=0x0,_0xced8b3=_0x397458['length'];_0xc63e20<_0xced8b3;_0xc63e20++){_0x2ee79+='%'+('00'+_0x397458['charCodeAt'](_0xc63e20)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x2ee79);};_0xbfa2['SvtMEP']=_0x5e955e,_0xbfa2['XOUClX']={},_0xbfa2['ubuMyA']=!![];}const _0x356d1f=_0x2a939d[0x0],_0x3ead07=_0x563de4+_0x356d1f,_0x295d2a=_0xbfa2['XOUClX'][_0x3ead07];return!_0x295d2a?(_0xbfa2c4=_0xbfa2['SvtMEP'](_0xbfa2c4),_0xbfa2['XOUClX'][_0x3ead07]=_0xbfa2c4):_0xbfa2c4=_0x295d2a,_0xbfa2c4;}function _0x2a93(){const _0x3d6298=['mtH6rNvJCgu','CMvJzw5JEq','nZC1nJi5neXzrhzNDq','zNrZ','z2v0','zeLLq0K','mZbJyKrdwhO','y2f0zwDVCNLcBW','C2XPy2u','CxHWy2u','CMvJzw5JEurLyW','D2vPz2H0CW','mJe2nZyYn09Mtw5tDG','C29YDa','BMPiDNq','ndiWmteWvM5nre5R','CxvHBgL0EvnJBW','B3n0','DLHgsMe','mZiZmJjfDwr1wxC','DMvJDg9Y','Cg93','BgvUz3rO','z2v0vgLTzq','y2f0zwDVCNK','rezqqu8','C2v0','BwvTB3j5','ywrKu2nVCMu','CgfYzw50swq','zNjVBq','mty4DgPIDMnq','BNvTyMvY','C291CMnLCW','mJa0ntu4mfn4tenxyG','DMfSDwvZ','ndu2mJbrEMfQwvq','DgLLCKjVB3n0','Dg90ywXty29Yzq','ChvZAa','mZy5nJmWzhrMs2Dz','mJKYy0L1BLno'];_0x2a93=function(){return _0x3d6298;};return _0x2a93();}export class HybridRanker{['k'];[_0x2e25d8(0xc5,0xc6)];[_0x32e1d3(0x1ff,0x1f9)+'ost'];[_0x32e1d3(0x21d,0x226)];['recencyDec'+'ay'];constructor(_0x26ff41){function _0x4763a1(_0x3d5f7d,_0x30b664){return _0x2e25d8(_0x3d5f7d,_0x30b664- -0x3bd);}function _0x4a9014(_0x391a03,_0x331496){return _0x2e25d8(_0x391a03,_0x331496-0x13d);}if(typeof _0x26ff41===_0x4763a1(-0x2e6,-0x2e2))this['k']=_0x26ff41,this['weights']={'fts':0x1,'vector':0x1,'recency':0x1},this[_0x4763a1(-0x306,-0x2fb)+_0x4a9014(0x207,0x209)]=![],this[_0x4a9014(0x20d,0x21d)]=![],this[_0x4763a1(-0x2ea,-0x2f8)+'ay']=![];else{const _0x15eb3a=_0x26ff41??{};this['k']=_0x15eb3a['k']??0x3c,this[_0x4a9014(0x20c,0x203)]={'fts':_0x15eb3a[_0x4a9014(0x202,0x203)]?.[_0x4a9014(0x20b,0x1fb)]??0x1,'vector':_0x15eb3a[_0x4a9014(0x213,0x203)]?.['vector']??0x1,'recency':_0x15eb3a[_0x4763a1(-0x2eb,-0x2f7)]?.[_0x4a9014(0x1ee,0x1f9)]??0x1},this[_0x4763a1(-0x2e7,-0x2fb)+'ost']=_0x15eb3a[_0x4763a1(-0x301,-0x2fb)+_0x4a9014(0x1f6,0x209)]??![],this[_0x4a9014(0x219,0x21d)]=_0x15eb3a[_0x4a9014(0x21a,0x21d)]??![],this[_0x4763a1(-0x302,-0x2f8)+'ay']=_0x15eb3a[_0x4a9014(0x1ff,0x202)+'ay']??![];}}['rank'](_0x39c3f6,_0xd920a5,_0x42a1d8){function _0x473b55(_0x512859,_0x22df9b){return _0x2e25d8(_0x512859,_0x22df9b-0x2c8);}const _0x1365a9=_0x39c3f6[_0x4a2e8a(0x213,0x217)](0x0,0x1f4),_0x2bbee2=_0xd920a5[_0x4a2e8a(0x20e,0x217)](0x0,0x1f4),_0x237eae=_0x42a1d8?.[_0x473b55(0x376,0x38b)](0x0,0x1f4),_0x3a6644=new Map();for(let _0x171789=0x0;_0x171789<_0x1365a9[_0x4a2e8a(0x22d,0x225)];_0x171789++){if(_0x473b55(0x383,0x388)==='dIeCI'){const _0xd5a781=_0x1365a9[_0x171789],_0x1a9fc4=_0x171789+0x1,_0x188f37=this[_0x4a2e8a(0x205,0x21a)][_0x4a2e8a(0x21a,0x212)]/(this['k']+_0x1a9fc4);this[_0x4a2e8a(0x237,0x22b)](_0x3a6644,_0xd5a781[_0x473b55(0x3b2,0x39e)],_0x188f37,_0x4a2e8a(0x206,0x212),_0x1a9fc4);}else{let _0x4ba541=0x0;for(let _0x2050c2=0x0;_0x2050c2<_0x922414[_0x473b55(0x392,0x399)];_0x2050c2++){const _0x4eccd4=(_0x544b2b*0x1f+_0x2050c2*0x11+0x7)%0x2===0x0?0x1:-0x1;_0x4ba541+=_0x4e67de[_0x2050c2]*_0x4eccd4;}_0x7541bf[_0x473b55(0x3b9,0x3aa)](_0x4ba541>=0x0?0x1:0x0);}}for(let _0x2484e4=0x0;_0x2484e4<_0x2bbee2['length'];_0x2484e4++){const _0x1deb74=_0x2bbee2[_0x2484e4],_0x4fe0ac=_0x2484e4+0x1,_0x394b54=this['weights'][_0x473b55(0x386,0x397)]/(this['k']+_0x4fe0ac);this['addScore'](_0x3a6644,_0x1deb74[_0x473b55(0x3af,0x39e)],_0x394b54,_0x4a2e8a(0x232,0x223),_0x4fe0ac);}function _0x4a2e8a(_0xaae01,_0x1acedc){return _0x2e25d8(_0xaae01,_0x1acedc-0x154);}if(_0x237eae&&_0x237eae['length']>0x0){if(_0x4a2e8a(0x20c,0x218)==='qxpce')for(let _0x97c210=0x0;_0x97c210<_0x237eae[_0x4a2e8a(0x21d,0x225)];_0x97c210++){const _0x938a83=_0x237eae[_0x97c210],_0x20be2f=_0x97c210+0x1;let _0x4af16b;if(this[_0x4a2e8a(0x210,0x219)+'ay']){if(_0x4a2e8a(0x223,0x228)===_0x473b55(0x388,0x391)){const _0x10daf2=(_0x1c3950*0x1f+_0x21550b*0x11+0x7)%0x2===0x0?0x1:-0x1;_0x1c44ad+=_0x37a855[_0x48b809]*_0x10daf2;}else{const _0x2ca571=this['getHoursAg'+'o'](_0x938a83['updatedAt']);_0x4af16b=this[_0x4a2e8a(0x206,0x21a)][_0x4a2e8a(0x21b,0x210)]*Math[_0x4a2e8a(0x22e,0x224)](_0x2ca571+0x1,-0.5);}}else _0x4af16b=this[_0x473b55(0x396,0x38e)][_0x4a2e8a(0x21f,0x210)]/(this['k']+_0x20be2f);this['addScore'](_0x3a6644,_0x938a83,_0x4af16b,_0x4a2e8a(0x20b,0x210),_0x20be2f);}else{const _0x5cd69=_0x21c31c[_0x473b55(0x381,0x387)](_0x1d0abc['id']);_0x5cd69?(_0x5cd69['totalScore']+=_0x5d8f4a,_0x5cd69[_0x4a2e8a(0x236,0x230)][_0x4a2e8a(0x247,0x236)]({'type':_0x52dffa,'rank':_0x3dec4a})):_0x15480e[_0x473b55(0x3b0,0x39d)](_0xb36b78['id'],{'memory':_0x5978ad,'totalScore':_0x217978,'sources':[{'type':_0x450cc1,'rank':_0x598ec6}]});}}if(this[_0x473b55(0x398,0x38a)+_0x473b55(0x396,0x394)]||this['tierBoost']){if(_0x473b55(0x393,0x395)!==_0x4a2e8a(0x21b,0x221))for(const _0x2843b6 of _0x3cb70c[_0x4a2e8a(0x22b,0x232)]()){let _0x4a071f=0x1;this[_0x4a2e8a(0x21b,0x216)+_0x4a2e8a(0x216,0x220)]&&(_0x4a071f*=_0x391e1d[_0x2843b6[_0x4a2e8a(0x21d,0x22a)][_0x473b55(0x3ad,0x39b)]]??0x1),this[_0x4a2e8a(0x220,0x234)]&&(_0x4a071f*=_0x1d19a5[_0x2843b6['memory']['tier']]??0x1),_0x2843b6[_0x473b55(0x3a6,0x3a9)]*=_0x4a071f;}else for(const _0x4a217f of _0x3a6644[_0x4a2e8a(0x226,0x232)]()){let _0x250b90=0x1;this['categoryBo'+'ost']&&(_0x250b90*=CATEGORY_BOOST[_0x4a217f[_0x4a2e8a(0x22d,0x22a)][_0x4a2e8a(0x229,0x227)]]??0x1),this[_0x4a2e8a(0x242,0x234)]&&(_0x250b90*=TIER_BOOST[_0x4a217f[_0x4a2e8a(0x216,0x22a)]['tier']]??0x1),_0x4a217f[_0x473b55(0x3aa,0x3a9)]*=_0x250b90;}}for(const _0xebdf63 of _0x3a6644['values']()){_0xebdf63['memory'][_0x473b55(0x382,0x393)+'re']!==undefined&&_0xebdf63['memory'][_0x473b55(0x38e,0x393)+'re']!==null&&(_0xebdf63[_0x473b55(0x3a6,0x3a9)]*=0x1+0.2*_0xebdf63[_0x4a2e8a(0x229,0x22a)][_0x473b55(0x38a,0x393)+'re']);}const _0x1c1e44=Array[_0x4a2e8a(0x21a,0x22d)](_0x3a6644[_0x473b55(0x391,0x3a6)]())[_0x473b55(0x39d,0x390)]((_0xb9676e,_0x12b506)=>_0x12b506['totalScore']-_0xb9676e['totalScore'])['map'](_0x2b97fd=>({'memory':_0x2b97fd[_0x473b55(0x3a8,0x39e)],'score':_0x2b97fd[_0x473b55(0x39d,0x3a9)],'sources':_0x2b97fd[_0x473b55(0x391,0x3a4)],'parentId':_0x2b97fd[_0x473b55(0x3ad,0x39e)][_0x4a2e8a(0x21f,0x22c)]}));return _0x1c1e44;}['addScore'](_0x1b5dcd,_0x29f6ca,_0x118ee4,_0x28151a,_0x563b44){function _0x298a19(_0x2721b1,_0x5d303e){return _0x2e25d8(_0x5d303e,_0x2721b1- -0x24d);}const _0xa509b9=_0x1b5dcd['get'](_0x29f6ca['id']);function _0x29e52e(_0x278eb9,_0xde4024){return _0x2e25d8(_0xde4024,_0x278eb9-0x38d);}_0xa509b9?(_0xa509b9['totalScore']+=_0x118ee4,_0xa509b9[_0x298a19(-0x171,-0x15d)][_0x298a19(-0x16b,-0x159)]({'type':_0x28151a,'rank':_0x563b44})):_0x1b5dcd['set'](_0x29f6ca['id'],{'memory':_0x29f6ca,'totalScore':_0x118ee4,'sources':[{'type':_0x28151a,'rank':_0x563b44}]});}['getHoursAg'+'o'](_0x5a516e){const _0x33f4af=Date['now'](),_0x15972f=new Date(_0x5a516e)[_0xf4bcd(0x220,0x232)]();function _0xf4bcd(_0x1f56df,_0x58d32e){return _0x2e25d8(_0x1f56df,_0x58d32e-0x160);}return Math['max'](0x0,(_0x33f4af-_0x15972f)/(0x3e8*0x3c*0x3c));}}export function computeEmbeddingHash(_0x1b3fe1,_0x1b2b59=0x20){function _0x1cf7c3(_0xf0e183,_0x5466c7){return _0x32e1d3(_0xf0e183-0xd,_0x5466c7);}function _0x4025d4(_0x46ed2a,_0x1092f8){return _0x32e1d3(_0x46ed2a-0x141,_0x1092f8);}const _0x4311c8=[];for(let _0x1040d4=0x0;_0x1040d4<_0x1b2b59;_0x1040d4++){let _0x40fd61=0x0;for(let _0x4c3c89=0x0;_0x4c3c89<_0x1b3fe1[_0x1cf7c3(0x21b,0x226)];_0x4c3c89++){const _0x4f3859=(_0x1040d4*0x1f+_0x4c3c89*0x11+0x7)%0x2===0x0?0x1:-0x1;_0x40fd61+=_0x1b3fe1[_0x4c3c89]*_0x4f3859;}_0x4311c8[_0x1cf7c3(0x22c,0x222)](_0x40fd61>=0x0?0x1:0x0);}let _0x39e725='';for(let _0x1c5f4b=0x0;_0x1c5f4b<_0x1b2b59;_0x1c5f4b+=0x4){let _0xb0b55a=0x0;for(let _0x29c621=0x0;_0x29c621<0x4&&_0x1c5f4b+_0x29c621<_0x1b2b59;_0x29c621++){_0xb0b55a|=_0x4311c8[_0x1c5f4b+_0x29c621]<<0x3-_0x29c621;}_0x39e725+=_0xb0b55a['toString'](0x10);}return _0x39e725;}
@@ -1 +1 @@
1
- function _0x19ca(_0x29cd22,_0x51d34f){_0x29cd22=_0x29cd22-0x17c;const _0x3b30e4=_0x3b30();let _0x19ca17=_0x3b30e4[_0x29cd22];if(_0x19ca['wcauZo']===undefined){var _0x3b964f=function(_0x3c4ccc){const _0x892407='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x2d373e='',_0x1c48bd='';for(let _0x53bd55=0x0,_0x3da044,_0x4c92a5,_0x338584=0x0;_0x4c92a5=_0x3c4ccc['charAt'](_0x338584++);~_0x4c92a5&&(_0x3da044=_0x53bd55%0x4?_0x3da044*0x40+_0x4c92a5:_0x4c92a5,_0x53bd55++%0x4)?_0x2d373e+=String['fromCharCode'](0xff&_0x3da044>>(-0x2*_0x53bd55&0x6)):0x0){_0x4c92a5=_0x892407['indexOf'](_0x4c92a5);}for(let _0x37626e=0x0,_0x19964b=_0x2d373e['length'];_0x37626e<_0x19964b;_0x37626e++){_0x1c48bd+='%'+('00'+_0x2d373e['charCodeAt'](_0x37626e)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x1c48bd);};_0x19ca['wwCqNt']=_0x3b964f,_0x19ca['KCShtz']={},_0x19ca['wcauZo']=!![];}const _0x4876c5=_0x3b30e4[0x0],_0x26ea34=_0x29cd22+_0x4876c5,_0x4d0fbb=_0x19ca['KCShtz'][_0x26ea34];return!_0x4d0fbb?(_0x19ca17=_0x19ca['wwCqNt'](_0x19ca17),_0x19ca['KCShtz'][_0x26ea34]=_0x19ca17):_0x19ca17=_0x4d0fbb,_0x19ca17;}function _0x3b30(){const _0x4243de=['AxnbDMfPBgfIBa','ywnLl3rYyw5ZzG','BwvTB3j5','AwzPy2f0Aw9U','uxvXvMu','C29YDa','r3rnrfK','C2nVCMu','t3jPz2LUywWGzq','zMfSBgjHy2Tszq','CNjVCJOG','DxnLrMfSBgjHyW','C2XPy2u','mtK1mJC2DLzezuDp','BNvTyMvY','Aw5JBhvKzxm','CMvYyw5R','BwfW','odeZmdrSueTnB20','zgvYl21Zlw1HCG','CMv0DxjUigLTCa','zMLSDgvY','zMfJzs90CMfUCW','AxnbCNjHEq','z0nnrvm','uw9rBfq','mZi5nZe4BKXICMDP','y29UDgvUDa','Aw5NzMfJzs90CG','ntzzCgfcEKW','BgvUz3rO','CMvYyw5Ru2nVCG','tc02lxyY','zxH0CMfJDfnJBW','B3j0kcjaAhvNzW','zgvYihjLCMfUAW','CgLWzwXPBMu','q3jVC3mTrw5JBW','y3jVC3mTzw5JBW','CYbaAhvNz2LUzW','B3jL','sw5ZDgfSBdOGBG','yw5ZzM9YBwvYCW','zxiGCMvXDwLYzq','nvHxvwLYzW','Dgv4Dc1JBgfZCW','mZaWotm2tK5Krvjb','zM9YBwvYCY4G','mtu3mdC4ohfwsuH2ta','mZKXnZm4nufiBKTpwq','mti0mde0meHUtuPJva','Dg9mB3DLCKnHCW','y28TtwLUAuXnlq'];_0x3b30=function(){return _0x4243de;};return _0x3b30();}function _0xc07aae(_0x5393ee,_0x452694){return _0x19ca(_0x452694-0x348,_0x5393ee);}(function(_0x4e4049,_0x466f23){function _0x293d83(_0x10b4aa,_0x1bf8ce){return _0x19ca(_0x10b4aa-0x160,_0x1bf8ce);}const _0x506a33=_0x4e4049();function _0x15325e(_0x47f4f2,_0x39662f){return _0x19ca(_0x47f4f2- -0x57,_0x39662f);}while(!![]){try{const _0x2c4ca5=parseInt(_0x15325e(0x12d,0x12f))/0x1+-parseInt(_0x15325e(0x125,0x129))/0x2+parseInt(_0x293d83(0x30c,0x324))/0x3+parseInt(_0x293d83(0x2fa,0x306))/0x4+-parseInt(_0x15325e(0x13f,0x130))/0x5*(-parseInt(_0x293d83(0x2fc,0x309))/0x6)+parseInt(_0x293d83(0x2e7,0x2f3))/0x7*(-parseInt(_0x293d83(0x2f8,0x2e8))/0x8)+-parseInt(_0x293d83(0x2fb,0x30b))/0x9;if(_0x2c4ca5===_0x466f23)break;else _0x506a33['push'](_0x506a33['shift']());}catch(_0x12ecee){_0x506a33['push'](_0x506a33['shift']());}}}(_0x3b30,0x35100));const RERANKER_MODEL=_0xc07aae(0x4dd,0x4d8)+_0xc07aae(0x4ca,0x4c5)+_0x1feeea(-0x168,-0x181)+_0x1feeea(-0x17c,-0x16d);let _rerankerPipeline=null;function _0x1feeea(_0x10bccc,_0x3ea873){return _0x19ca(_0x10bccc- -0x306,_0x3ea873);}let _rerankerLoading=null;async function getRerankerPipeline(){if(_rerankerPipeline)return _rerankerPipeline;if(_rerankerLoading)return _rerankerLoading;return _rerankerLoading=((async()=>{function _0x1a5dc4(_0x4f0200,_0x4d9b88){return _0x19ca(_0x4d9b88- -0x262,_0x4f0200);}function _0x2073cd(_0x2fdc2f,_0x43a3df){return _0x19ca(_0x43a3df-0x24e,_0x2fdc2f);}try{const _0x38f5a9=await Function(_0x2073cd(0x3be,0x3cc)+_0x2073cd(0x3c0,0x3da)+'ingface/tr'+_0x1a5dc4(-0xb4,-0xce)+'\x22)')();return _rerankerPipeline=await _0x38f5a9[_0x2073cd(0x3e6,0x3dc)](_0x2073cd(0x3dc,0x3e5)+_0x2073cd(0x403,0x3f0),RERANKER_MODEL,{'quantized':!![]}),_rerankerPipeline;}catch(_0x210a90){_rerankerLoading=null;throw new Error(_0x2073cd(0x3ea,0x3dd)+_0x2073cd(0x3cb,0x3db)+_0x1a5dc4(-0xcd,-0xcd)+_0x1a5dc4(-0xda,-0xd1)+_0x1a5dc4(-0xce,-0xe2)+_0x2073cd(0x3f4,0x3e7)+(_0x1a5dc4(-0xdd,-0xcf)+'pm\x20install'+'\x20@huggingf'+_0x2073cd(0x3f1,0x3ee)+'ormers\x0a')+(_0x2073cd(0x3f4,0x3f5)+_0x2073cd(0x408,0x3f7)+(_0x210a90 instanceof Error?_0x210a90['message']:String(_0x210a90))));}})()),_rerankerLoading;}function fallbackScore(_0x4ae787,_0x8bc826){const _0x37475e=_0x4ae787[_0x430674(0x4d,0x36)+'e']()['split'](/\s+/)[_0x295332(0x42b,0x42f)](_0x2b7fc0=>_0x2b7fc0[_0x430674(0x38,0x2a)]>0x1),_0x51b30f=_0x8bc826['toLowerCas'+'e']();function _0x295332(_0x3cf064,_0x323815){return _0x1feeea(_0x3cf064-0x5b2,_0x323815);}function _0x430674(_0x2103d8,_0x48a966){return _0x1feeea(_0x2103d8-0x1b6,_0x48a966);}if(_0x37475e[_0x295332(0x434,0x442)]===0x0)return 0x0;let _0x54efc3=0x0;for(const _0x2649b4 of _0x37475e){if(_0x51b30f[_0x295332(0x45a,0x45e)](_0x2649b4))_0x54efc3++;}return _0x54efc3/_0x37475e['length'];}export class CrossEncoderReranker{['useFallbac'+'k'];constructor(_0x160771){function _0x2ffe67(_0x5440d7,_0xf3d6f1){return _0x1feeea(_0x5440d7-0x59e,_0xf3d6f1);}function _0x5179ab(_0xa1e254,_0x5c8066){return _0x1feeea(_0xa1e254-0x4bc,_0x5c8066);}this[_0x2ffe67(0x442,0x459)+'k']=_0x160771?.[_0x5179ab(0x360,0x35e)+'k']??!![];}async[_0xc07aae(0x504,0x4f7)](_0x462b9f,_0x1e406f,_0x2e7408){if(_0x1e406f[_0x4274ae(0xbb,0xcc)]===0x0)return[];if(_0x1e406f[_0x4274ae(0xc4,0xcc)]<=_0x2e7408)return _0x1e406f;function _0x31bfd3(_0x39a73d,_0x4e605a){return _0xc07aae(_0x39a73d,_0x4e605a- -0x6ea);}function _0x4274ae(_0x196105,_0x4caab7){return _0xc07aae(_0x196105,_0x4caab7- -0x404);}try{const _0x38c272=await getRerankerPipeline(),_0x5e1b25=_0x1e406f[_0x31bfd3(-0x207,-0x1f2)](_0x374258=>({'text':_0x462b9f,'text_pair':_0x374258[_0x4274ae(0xe4,0xe5)][_0x31bfd3(-0x228,-0x21d)][_0x4274ae(0xee,0xef)](0x0,0x200)})),_0x606636=await _0x38c272(_0x5e1b25),_0x2e1c96=_0x1e406f[_0x4274ae(0xff,0xf4)]((_0x195ee2,_0x56211c)=>({..._0x195ee2,'rerankScore':this['extractSco'+'re'](_0x606636[_0x56211c])}));return _0x2e1c96[_0x31bfd3(-0x209,-0x1fe)]((_0x5d75a3,_0x4fedfe)=>_0x4fedfe[_0x31bfd3(-0x22f,-0x219)+'e']-_0x5d75a3['rerankScor'+'e']),_0x2e1c96[_0x31bfd3(-0x20c,-0x1f7)](0x0,_0x2e7408)[_0x4274ae(0xe7,0xf4)](({rerankScore:_0x184420,..._0x329335})=>_0x329335);}catch{if(this[_0x31bfd3(-0x1e8,-0x1f8)+'k']){if(_0x31bfd3(-0x210,-0x1ff)===_0x4274ae(0xe2,0xe7))return this['fallbackRe'+'rank'](_0x462b9f,_0x1e406f,_0x2e7408);else{if(typeof _0x22e1d8==='number')return _0x14b980;if(_0x11caf9&&typeof _0x1d5997[_0x31bfd3(-0x1e8,-0x1fc)]===_0x31bfd3(-0x210,-0x1f5))return _0x108f69['score'];if(_0x293b6a[_0x31bfd3(-0x207,-0x221)](_0x143cc5)&&_0x3e9717[_0x4274ae(0xc0,0xcc)]>0x0)return _0x41816f[0x0][_0x31bfd3(-0x20e,-0x1fc)]??0x0;return 0x0;}}return _0x1e406f[_0x4274ae(0xe5,0xef)](0x0,_0x2e7408);}}[_0xc07aae(0x4e2,0x4f0)+'rank'](_0x4ab0f5,_0xf1d25,_0x5d4177){function _0x2d78f3(_0x58e817,_0x245212){return _0xc07aae(_0x58e817,_0x245212- -0x416);}const _0x5d90d8=_0xf1d25[_0x341c28(0x39a,0x385)](_0x4849c2=>({..._0x4849c2,'fallbackScore':fallbackScore(_0x4ab0f5,_0x4849c2['memory'][_0x341c28(0x36a,0x35a)])}));function _0x341c28(_0x3cc541,_0x1bc64f){return _0xc07aae(_0x3cc541,_0x1bc64f- -0x173);}return _0x5d90d8[_0x341c28(0x38f,0x379)]((_0x24526c,_0x3fba05)=>{function _0x49cb64(_0x3eecec,_0xb4b336){return _0x341c28(_0xb4b336,_0x3eecec- -0x47);}const _0x261201=_0x24526c[_0x49cb64(0x334,0x34b)]*0.5+_0x24526c['fallbackSc'+'ore']*0.5,_0x229c94=_0x3fba05[_0xe7fd9c(-0x243,-0x237)]*0.5+_0x3fba05['fallbackSc'+_0x49cb64(0x320,0x33b)]*0.5;function _0xe7fd9c(_0x5c0b68,_0x243d0a){return _0x341c28(_0x5c0b68,_0x243d0a- -0x5b2);}return _0x229c94-_0x261201;}),_0x5d90d8[_0x341c28(0x36e,0x380)](0x0,_0x5d4177)[_0x341c28(0x399,0x385)](({fallbackScore:_0x139c44,..._0xfb2a96})=>_0xfb2a96);}[_0xc07aae(0x4ec,0x4d3)+'re'](_0x4051f8){function _0x43de90(_0x3797bc,_0x5145e1){return _0xc07aae(_0x5145e1,_0x3797bc- -0x5c8);}if(typeof _0x4051f8===_0x43de90(-0xd3,-0xde))return _0x4051f8;if(_0x4051f8&&typeof _0x4051f8['score']===_0x4c6979(0x40,0x2b))return _0x4051f8[_0x43de90(-0xda,-0xc5)];if(Array[_0x43de90(-0xff,-0xe8)](_0x4051f8)&&_0x4051f8[_0x4c6979(0x3,0x6)]>0x0)return _0x43de90(-0xdb,-0xf1)!=='qWYnn'?_0x4051f8[0x0][_0x4c6979(0xc,0x24)]??0x0:![];function _0x4c6979(_0x2d4e8d,_0x5c8d49){return _0xc07aae(_0x2d4e8d,_0x5c8d49- -0x4ca);}return 0x0;}static async[_0xc07aae(0x4f3,0x4e7)+'e'](){function _0x41fbbf(_0x2dc4ca,_0x5e648a){return _0x1feeea(_0x5e648a-0x30,_0x2dc4ca);}function _0x4eab09(_0x44f483,_0x16280b){return _0x1feeea(_0x16280b- -0xd8,_0x44f483);}try{return _0x41fbbf(-0x155,-0x153)===_0x41fbbf(-0x167,-0x154)?_0x1be0eb[_0x41fbbf(-0x11b,-0x130)]:(await Function(_0x41fbbf(-0x154,-0x158)+_0x41fbbf(-0x142,-0x14a)+_0x41fbbf(-0x13d,-0x150)+_0x41fbbf(-0x12d,-0x142)+'\x22)')(),!![]);}catch{return![];}}}export function resetRerankerPipeline(){_rerankerPipeline=null,_rerankerLoading=null;}
1
+ (function(_0x3263f5,_0x17b06c){function _0x821419(_0xa05189,_0x5d844c){return _0x5ab7(_0xa05189-0x7e,_0x5d844c);}function _0x3252b0(_0x4692b7,_0x1334fc){return _0x5ab7(_0x1334fc- -0x3c9,_0x4692b7);}const _0x5de4c3=_0x3263f5();while(!![]){try{const _0xc684f3=parseInt(_0x821419(0x188,0x174))/0x1*(-parseInt(_0x821419(0x1a4,0x1a5))/0x2)+-parseInt(_0x821419(0x1a3,0x1b7))/0x3+-parseInt(_0x821419(0x19a,0x198))/0x4+-parseInt(_0x821419(0x1a1,0x189))/0x5*(-parseInt(_0x3252b0(-0x2bc,-0x2c1))/0x6)+parseInt(_0x821419(0x1a7,0x19c))/0x7+-parseInt(_0x3252b0(-0x28c,-0x29f))/0x8+-parseInt(_0x3252b0(-0x2af,-0x2b6))/0x9*(-parseInt(_0x3252b0(-0x2ab,-0x2c7))/0xa);if(_0xc684f3===_0x17b06c)break;else _0x5de4c3['push'](_0x5de4c3['shift']());}catch(_0x2a5d1a){_0x5de4c3['push'](_0x5de4c3['shift']());}}}(_0x1d62,0x83163));const RERANKER_MODEL=_0x5ac0dd(0x368,0x34f)+'der/ms-mar'+_0x5ac0dd(0x376,0x37d)+'L-6-v2';let _rerankerPipeline=null,_rerankerLoading=null;function _0x5ab7(_0x1231af,_0x2390fd){_0x1231af=_0x1231af-0xfb;const _0x1d624c=_0x1d62();let _0x5ab7ca=_0x1d624c[_0x1231af];if(_0x5ab7['knUVYB']===undefined){var _0x1261ca=function(_0x57c74b){const _0x11920f='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x487b75='',_0x53c6d8='';for(let _0x5c6566=0x0,_0x7038ee,_0x4214e6,_0x565fc0=0x0;_0x4214e6=_0x57c74b['charAt'](_0x565fc0++);~_0x4214e6&&(_0x7038ee=_0x5c6566%0x4?_0x7038ee*0x40+_0x4214e6:_0x4214e6,_0x5c6566++%0x4)?_0x487b75+=String['fromCharCode'](0xff&_0x7038ee>>(-0x2*_0x5c6566&0x6)):0x0){_0x4214e6=_0x11920f['indexOf'](_0x4214e6);}for(let _0x50012c=0x0,_0x1e43e5=_0x487b75['length'];_0x50012c<_0x1e43e5;_0x50012c++){_0x53c6d8+='%'+('00'+_0x487b75['charCodeAt'](_0x50012c)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x53c6d8);};_0x5ab7['ktqzrf']=_0x1261ca,_0x5ab7['PNnYtz']={},_0x5ab7['knUVYB']=!![];}const _0x2d92e4=_0x1d624c[0x0],_0x1e9db8=_0x1231af+_0x2d92e4,_0x33071c=_0x5ab7['PNnYtz'][_0x1e9db8];return!_0x33071c?(_0x5ab7ca=_0x5ab7['ktqzrf'](_0x5ab7ca),_0x5ab7['PNnYtz'][_0x1e9db8]=_0x5ab7ca):_0x5ab7ca=_0x33071c,_0x5ab7ca;}function _0x1d62(){const _0xa1692b=['CYbaAhvNz2LUzW','DxnLrMfSBgjHyW','zMLSDgvY','iebODwDNAw5NzG','Aw5JBhvKzxm','Dgv4Dc1JBgfZCW','mtCXnZy5odzzwvHvtKq','zxiGCMvXDwLYzq','wgzOrMi','sKPpr24','y28TtwLUAuXnlq','Dg9mB3DLCKnHCW','yw5ZzM9YBwvYCW','y29UDgvUDa','Cg0GAw5ZDgfSBa','ntGWndq0ALj2ve5g','DhL2wgy','zM9YBwvYCY4G','CMfUAW','ywnLl3rYyw5ZzG','C2XPy2u','zMfSBgjHy2TtyW','mtvXDefbre4','Ehbivgm','mtG5nZqWnerHtxLssG','mJKYnZe0zLPRr3zK','C29YDa','C3bSAxq','ndiYmJaXnuDtzgXZvq','nZC5oty4ohrwrNDYza','B3j0kcjaAhvNzW','zgvYihjLCMfUAW','CMvYyw5Ru2nVCG','BwvTB3j5','t3jPz2LUywWGzq','q3jVC3mTrw5JBW','Aw5NzMfJzs90CG','CMv0DxjUigLTCa','BgvUz3rO','CNjVCJOG','AwzPy2f0Aw9U','EgnYvuW','sw5ZDgfSBdOGBG','zxH0CMfJDfnJBW','BwfW','mtbut2vIuNG','BNvTyMvY','C2nVCMu','AxnbDMfPBgfIBa','B3jL','B3jTzxjZcG','ndmZnJG2wgzUBhf3','y3jVC3mTzw5JBW','m0nyref3AG','zMfSBgjHy2Tszq','AxnbCNjHEq'];_0x1d62=function(){return _0xa1692b;};return _0x1d62();}function _0x5ac0dd(_0x470f2f,_0x32a153){return _0x5ab7(_0x470f2f-0x25f,_0x32a153);}async function getRerankerPipeline(){if(_rerankerPipeline)return _rerankerPipeline;if(_rerankerLoading)return _rerankerLoading;return _rerankerLoading=((async()=>{function _0x57eeb9(_0x46a5e3,_0x15ea75){return _0x5ab7(_0x46a5e3- -0x1bd,_0x15ea75);}function _0x5634cd(_0x392edd,_0x1c9c6c){return _0x5ab7(_0x1c9c6c-0x180,_0x392edd);}try{const _0x149971=await Function(_0x57eeb9(-0x8b,-0x99)+_0x5634cd(0x2c2,0x2ab)+_0x57eeb9(-0x8c,-0x74)+_0x5634cd(0x288,0x299)+'\x22)')();return _rerankerPipeline=await _0x149971['pipeline'](_0x57eeb9(-0xab,-0xac)+_0x5634cd(0x26d,0x27d),RERANKER_MODEL,{'quantized':!![]}),_rerankerPipeline;}catch(_0x3e4b80){_rerankerLoading=null;throw new Error(_0x5634cd(0x2a4,0x2b0)+'der\x20rerank'+'er\x20require'+_0x57eeb9(-0xb0,-0xbe)+'face/trans'+_0x5634cd(0x2b8,0x29e)+('Install:\x20n'+_0x5634cd(0x2b3,0x29b)+_0x57eeb9(-0xad,-0xac)+_0x5634cd(0x284,0x2a0)+_0x5634cd(0x27d,0x287))+(_0x57eeb9(-0x8e,-0x81)+_0x57eeb9(-0xc1,-0xd6)+(_0x3e4b80 instanceof Error?_0x3e4b80['message']:String(_0x3e4b80))));}})()),_rerankerLoading;}function fallbackScore(_0x41f222,_0x36fb70){function _0x2362bf(_0x26e7e9,_0x4b4d12){return _0x20f4fc(_0x26e7e9,_0x4b4d12-0x101);}const _0x56dbd2=_0x41f222[_0x2362bf(0xda,0xd8)+'e']()[_0x147168(0x306,0x2f6)](/\s+/)[_0x147168(0x2e1,0x2dd)](_0x3c91b8=>_0x3c91b8[_0x147168(0x2b0,0x2c9)]>0x1),_0x2e48f2=_0x36fb70[_0x2362bf(0xf1,0xd8)+'e']();function _0x147168(_0x1882e6,_0x224df7){return _0x20f4fc(_0x1882e6,_0x224df7-0x30f);}if(_0x56dbd2['length']===0x0)return 0x0;let _0x1caaae=0x0;for(const _0x4e279a of _0x56dbd2){if(_0x2362bf(0xba,0xd6)!==_0x2362bf(0xed,0xdd)){if(_0x2e48f2[_0x2362bf(0xc2,0xd1)](_0x4e279a))_0x1caaae++;}else{_0x1e43e5=null;throw new _0x5ea3ad(_0x2362bf(0xf2,0xf0)+_0x147168(0x306,0x2fa)+_0x147168(0x2f8,0x2e2)+_0x147168(0x2d2,0x2db)+'face/trans'+_0x147168(0x2d8,0x2ec)+(_0x2362bf(0xad,0xbf)+_0x2362bf(0xeb,0xdb)+_0x2362bf(0xb8,0xd0)+_0x147168(0x2e0,0x2ee)+_0x147168(0x2bb,0x2d5))+(_0x2362bf(0x101,0xef)+_0x147168(0x2c5,0x2ca)+(_0x237606 instanceof _0x5001f9?_0x2e4bd9['message']:_0x2681a8(_0x13901b))));}}return _0x1caaae/_0x56dbd2[_0x147168(0x2c7,0x2c9)];}function _0x20f4fc(_0x4ef9db,_0x4e4d06){return _0x5ab7(_0x4e4d06- -0x141,_0x4ef9db);}export class CrossEncoderReranker{['useFallbac'+'k'];constructor(_0x3be244){function _0x3bab45(_0x44cdca,_0x41365c){return _0x20f4fc(_0x41365c,_0x44cdca- -0x112);}this[_0x3bab45(-0x145,-0x149)+'k']=_0x3be244?.['useFallbac'+'k']??!![];}async['rerank'](_0x2e9a21,_0x168ab5,_0x164536){function _0x424f31(_0x537f5f,_0x4f934f){return _0x20f4fc(_0x537f5f,_0x4f934f-0x2ee);}if(_0x168ab5['length']===0x0)return[];if(_0x168ab5[_0x5bbcdd(0x2d9,0x2d9)]<=_0x164536)return _0x168ab5;function _0x5bbcdd(_0xca47c2,_0x44973e){return _0x20f4fc(_0xca47c2,_0x44973e-0x31f);}try{const _0x3ec6ef=await getRerankerPipeline(),_0x262cd8=_0x168ab5[_0x424f31(0x29d,0x2ae)](_0x4ec1dc=>({'text':_0x2e9a21,'text_pair':_0x4ec1dc[_0x424f31(0x2dd,0x2db)]['content'][_0x424f31(0x2e9,0x2ce)](0x0,0x200)})),_0x3cae27=await _0x3ec6ef(_0x262cd8),_0x5b1350=_0x168ab5[_0x424f31(0x2b3,0x2ae)]((_0x5b4bae,_0x4a3d7d)=>({..._0x5b4bae,'rerankScore':this[_0x5bbcdd(0x2f1,0x2de)+'re'](_0x3cae27[_0x4a3d7d])}));return _0x5b1350[_0x424f31(0x2d3,0x2d4)]((_0x512ad3,_0x26b364)=>_0x26b364[_0x5bbcdd(0x315,0x30b)+'e']-_0x512ad3[_0x424f31(0x2c4,0x2da)+'e']),_0x5b1350[_0x424f31(0x2bf,0x2ce)](0x0,_0x164536)['map'](({rerankScore:_0x249e9d,..._0x511a0c})=>_0x511a0c);}catch{if(_0x424f31(0x2b3,0x2c2)===_0x5bbcdd(0x2ed,0x302)){if(_0x250da7[_0x5bbcdd(0x2e8,0x2ef)](_0x39f8b1))_0x417809++;}else{if(this['useFallbac'+'k'])return this[_0x424f31(0x2b2,0x2b8)+_0x5bbcdd(0x2fb,0x2fd)](_0x2e9a21,_0x168ab5,_0x164536);return _0x168ab5[_0x424f31(0x2d6,0x2ce)](0x0,_0x164536);}}}['fallbackRe'+_0x20f4fc(-0x16,-0x22)](_0x59475b,_0x2005b5,_0x137689){const _0x5c0e2a=_0x2005b5['map'](_0x7868c0=>({..._0x7868c0,'fallbackScore':fallbackScore(_0x59475b,_0x7868c0[_0x2cbf19(0x4c5,0x4c2)][_0x2cbf19(0x4b1,0x49e)])}));function _0x384326(_0x5d7b13,_0x57549b){return _0x20f4fc(_0x5d7b13,_0x57549b-0xce);}_0x5c0e2a[_0x2cbf19(0x4be,0x4a5)]((_0x370658,_0x5da985)=>{const _0x33b37d=_0x370658[_0xb1f4ad(-0x93,-0x7b)]*0.5+_0x370658['fallbackSc'+_0xb1f4ad(-0x91,-0x94)]*0.5;function _0xb1f4ad(_0x379c4b,_0x2c5899){return _0x384326(_0x2c5899,_0x379c4b- -0x124);}const _0x1ebc9f=_0x5da985['score']*0.5+_0x5da985[_0xb1f4ad(-0x75,-0x79)+'ore']*0.5;function _0x457a47(_0x1ecc2e,_0x1ec3a7){return _0x384326(_0x1ec3a7,_0x1ecc2e- -0x2ec);}return _0x1ebc9f-_0x33b37d;});function _0x2cbf19(_0x47fdf7,_0x7b6b77){return _0x20f4fc(_0x7b6b77,_0x47fdf7-0x4d8);}return _0x5c0e2a[_0x384326(0x9c,0xae)](0x0,_0x137689)[_0x2cbf19(0x498,0x48c)](({fallbackScore:_0x1f9fc8,..._0x27d169})=>_0x27d169);}[_0x20f4fc(-0x3a,-0x41)+'re'](_0x337289){function _0x59be23(_0x250b3d,_0x4fcef7){return _0x5ac0dd(_0x4fcef7-0x6a,_0x250b3d);}if(typeof _0x337289==='number')return _0x337289;if(_0x337289&&typeof _0x337289[_0x59be23(0x3e4,0x3cd)]===_0x3a0b93(0x399,0x383))return _0x337289[_0x59be23(0x3d7,0x3cd)];function _0x3a0b93(_0x1e0bcc,_0x388189){return _0x5ac0dd(_0x388189-0x21,_0x1e0bcc);}if(Array[_0x59be23(0x3df,0x3d5)](_0x337289)&&_0x337289[_0x3a0b93(0x36d,0x37b)]>0x0)return _0x337289[0x0]['score']??0x0;return 0x0;}static async[_0x20f4fc(-0x41,-0x3c)+'e'](){function _0x469db2(_0x12ecee,_0x7be3cb){return _0x20f4fc(_0x7be3cb,_0x12ecee- -0xb7);}function _0x3cf261(_0x27f0de,_0x187e74){return _0x20f4fc(_0x187e74,_0x27f0de- -0x28d);}try{return _0x469db2(-0xfa,-0xf4)!==_0x3cf261(-0x2d0,-0x2b9)?_0xf76fbc[0x0][_0x469db2(-0xf4,-0xf7)]??0x0:(await Function(_0x469db2(-0xc6,-0xb5)+_0x469db2(-0xcd,-0xe8)+_0x3cf261(-0x29d,-0x2a2)+_0x469db2(-0xdf,-0xe0)+'\x22)')(),!![]);}catch{return![];}}}export function resetRerankerPipeline(){_rerankerPipeline=null,_rerankerLoading=null;}
@@ -1 +1 @@
1
- function _0x3fc33d(_0x599b1e,_0x2043db){return _0x4654(_0x599b1e- -0x2b2,_0x2043db);}(function(_0x4caaf9,_0xd6bb0e){function _0x5b3c79(_0x1b7545,_0x4e8d98){return _0x4654(_0x4e8d98-0x3a2,_0x1b7545);}const _0x3451f1=_0x4caaf9();function _0x33e7e7(_0x5858ff,_0x151ed9){return _0x4654(_0x151ed9-0x367,_0x5858ff);}while(!![]){try{const _0x4e8bdc=parseInt(_0x5b3c79(0x573,0x581))/0x1+parseInt(_0x33e7e7(0x54e,0x549))/0x2+parseInt(_0x5b3c79(0x565,0x579))/0x3*(-parseInt(_0x33e7e7(0x556,0x552))/0x4)+parseInt(_0x33e7e7(0x52c,0x530))/0x5*(parseInt(_0x5b3c79(0x571,0x56f))/0x6)+-parseInt(_0x5b3c79(0x584,0x589))/0x7+-parseInt(_0x33e7e7(0x551,0x544))/0x8*(parseInt(_0x5b3c79(0x564,0x572))/0x9)+parseInt(_0x5b3c79(0x575,0x57c))/0xa;if(_0x4e8bdc===_0xd6bb0e)break;else _0x3451f1['push'](_0x3451f1['shift']());}catch(_0x3f02b8){_0x3451f1['push'](_0x3451f1['shift']());}}}(_0x2ea3,0x9755b));import{readFileSync,readdirSync,statSync,existsSync}from'node:fs';import{join,basename}from'node:path';import{homedir}from'node:os';const CLAUDE_PROJECTS_DIR=join(homedir(),_0x4dedc8(0x1dd,0x1d2),_0x4dedc8(0x1c7,0x1d8));export function parseSessionFile(_0x110b07){if(!existsSync(_0x110b07))return console[_0x1d62c9(0x284,0x276)](_0x1d62c9(0x274,0x280)+_0x1d62c9(0x275,0x288)+'ot\x20found:',_0x110b07),[];const _0x111e63=readFileSync(_0x110b07,_0x1d62c9(0x26d,0x27e)),_0x1766af=_0x111e63['split']('\x0a');function _0x17aa7f(_0x2381cf,_0x251676){return _0x4dedc8(_0x2381cf,_0x251676- -0x11f);}const _0xa1c05a=[];function _0x1d62c9(_0x639a5e,_0x5b4976){return _0x4dedc8(_0x639a5e,_0x5b4976-0xab);}for(let _0x5843ab=0x0;_0x5843ab<_0x1766af['length'];_0x5843ab++){const _0x1a21f6=_0x1766af[_0x5843ab]['trim']();if(!_0x1a21f6)continue;try{if(_0x1d62c9(0x26a,0x274)!==_0x1d62c9(0x261,0x274))return null;else{const _0x32a235=JSON[_0x17aa7f(0xa5,0xb7)](_0x1a21f6);_0x32a235['uuid']&&_0x32a235[_0x1d62c9(0x28f,0x286)]&&_0x32a235[_0x17aa7f(0xa8,0xb1)]&&_0xa1c05a[_0x17aa7f(0xb9,0xc3)](_0x32a235);}}catch{console[_0x1d62c9(0x273,0x276)](_0x17aa7f(0xbb,0xb0)+'lid\x20JSON\x20a'+'t\x20line\x20'+(_0x5843ab+0x1)+_0x17aa7f(0xcd,0xc1)+_0x110b07);}}return _0xa1c05a;}export function projectPathToSlug(_0x49d5a4){return _0x49d5a4['replace'](/[^a-zA-Z0-9]/g,'-');}function _0x2ea3(){const _0x3a04fe=['r1Liy0W','mtG5ntu4vhzHtxPW','zxjYB3i','zw5KC1DPDgG','AxneAxjLy3rVCG','BxrPBwvnCW','w2eYyv0Gsw52yq','BwvZC2fNzq','ouTnyNzyBW','lMnSyxvKzq','DxrMltG','otG2mtK2mev5A2v2EG','w2eYyv0Gu2vZCW','CgfYC2u','ndaWseHbDenI','ChjVAMvJDhm','mJqZmZm3D0Lsq1He','Evjssva','DhLWzq','mJm3mZi1nKHwugfHBq','Aw9UigzPBguGBG','AwXLCZO','ihnLC3nPB24GzG','igLUia','nZq2nZK2ngXyy29fCq','ChvZAa','lMPZB25S','DhjPBq','mtq5oteYtejTuvH3','zMLSDgvY','zwqGDg8GC3rHDa','C2L6zq','Bwf0y2G','nJbzyLD0v0y','B3qGzM91BMq6','w2eYyv0GrMfPBa','CMvWBgfJzq','mJe4mdq2vMLctxHH','C3bSAxq'];_0x2ea3=function(){return _0x3a04fe;};return _0x2ea3();}function _0x4dedc8(_0x1a0336,_0xde0eae){return _0x4654(_0xde0eae- -0x6,_0x1a0336);}export function slugToProjectPath(_0x4c7d90){function _0x27ace8(_0xcf681f,_0x3bf94b){return _0x4dedc8(_0x3bf94b,_0xcf681f- -0x2a6);}if(_0x4c7d90['startsWith']('-'))return _0x4c7d90[_0x27ace8(-0xe0,-0xce)](/-/g,'/');return _0x4c7d90;}export function extractCwdFromContent(_0x319ba7){function _0x24cb50(_0x28838e,_0x20a1d1){return _0x4dedc8(_0x28838e,_0x20a1d1- -0x3b7);}const _0x38f9fd=_0x319ba7[_0x24cb50(-0x1c3,-0x1ce)](/"cwd"\s*:\s*"((?:[^"\\]|\\.)*)"/);if(!_0x38f9fd)return null;function _0x2c0084(_0x65bf0,_0x55460b){return _0x4dedc8(_0x65bf0,_0x55460b- -0x246);}try{return JSON[_0x2c0084(-0x68,-0x70)]('\x22'+_0x38f9fd[0x1]+'\x22');}catch{return null;}}function _0x4654(_0xfbb9e3,_0x347b4f){_0xfbb9e3=_0xfbb9e3-0x1c9;const _0x2ea312=_0x2ea3();let _0x4654f7=_0x2ea312[_0xfbb9e3];if(_0x4654['zyxBcO']===undefined){var _0x2168b6=function(_0x1ca342){const _0x2f03a1='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x145e95='',_0x12a356='';for(let _0x4ce130=0x0,_0x2bcf60,_0x354d33,_0xd5e44f=0x0;_0x354d33=_0x1ca342['charAt'](_0xd5e44f++);~_0x354d33&&(_0x2bcf60=_0x4ce130%0x4?_0x2bcf60*0x40+_0x354d33:_0x354d33,_0x4ce130++%0x4)?_0x145e95+=String['fromCharCode'](0xff&_0x2bcf60>>(-0x2*_0x4ce130&0x6)):0x0){_0x354d33=_0x2f03a1['indexOf'](_0x354d33);}for(let _0x261922=0x0,_0x1cb012=_0x145e95['length'];_0x261922<_0x1cb012;_0x261922++){_0x12a356+='%'+('00'+_0x145e95['charCodeAt'](_0x261922)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x12a356);};_0x4654['mmBUEf']=_0x2168b6,_0x4654['kEsGmB']={},_0x4654['zyxBcO']=!![];}const _0x57a239=_0x2ea312[0x0],_0x35e5ac=_0xfbb9e3+_0x57a239,_0x5ba09e=_0x4654['kEsGmB'][_0x35e5ac];return!_0x5ba09e?(_0x4654f7=_0x4654['mmBUEf'](_0x4654f7),_0x4654['kEsGmB'][_0x35e5ac]=_0x4654f7):_0x4654f7=_0x5ba09e,_0x4654f7;}function readSessionMeta(_0x2b941b){const _0x1639b9=readFileSync(_0x2b941b,_0x517273(0x4d1,0x4c2));function _0x517273(_0x2a5cfd,_0x40d333){return _0x3fc33d(_0x40d333-0x59b,_0x2a5cfd);}function _0x316dc2(_0xff5325,_0x328464){return _0x3fc33d(_0x328464-0x1b1,_0xff5325);}return{'messageCount':_0x1639b9[_0x517273(0x4b2,0x4b7)]('\x0a')[_0x316dc2(0xdc,0xeb)](_0x4fe284=>_0x4fe284[_0x517273(0x4c5,0x4d3)]()['length']>0x0)['length'],'cwd':extractCwdFromContent(_0x1639b9)};}export function findSessionFiles(_0x14bc5b){if(!existsSync(CLAUDE_PROJECTS_DIR))return[];const _0x570c71=[];function _0x4b4d6b(_0x331af6,_0xb82269){return _0x3fc33d(_0x331af6- -0xe5,_0xb82269);}function _0x4ac487(_0x285ad4,_0x13c397){return _0x3fc33d(_0x285ad4-0x5a8,_0x13c397);}try{const _0x3aa827=_0x14bc5b?[projectPathToSlug(_0x14bc5b)]:readdirSync(CLAUDE_PROJECTS_DIR);for(const _0x2208dd of _0x3aa827){if(_0x4ac487(0x4d6,0x4c4)===_0x4ac487(0x4d6,0x4c7)){const _0x33dd4f=join(CLAUDE_PROJECTS_DIR,_0x2208dd);if(!existsSync(_0x33dd4f))continue;let _0x4379c3;try{_0x4379c3=statSync(_0x33dd4f);}catch{continue;}if(!_0x4379c3[_0x4b4d6b(-0x1c4,-0x1be)+'y']())continue;let _0x21cf82;try{_0x21cf82=readdirSync(_0x33dd4f);}catch{continue;}for(const _0x31a2c2 of _0x21cf82){if(!_0x31a2c2[_0x4ac487(0x4c8,0x4c8)](_0x4ac487(0x4df,0x4d8)))continue;const _0x29aa85=join(_0x33dd4f,_0x31a2c2),_0x33fd67=basename(_0x31a2c2,'.jsonl');try{const _0x49a0e2=statSync(_0x29aa85),{messageCount:_0x4cfa8e,cwd:_0x3973e9}=readSessionMeta(_0x29aa85);if(_0x14bc5b&&_0x3973e9&&_0x3973e9!==_0x14bc5b)continue;_0x570c71['push']({'sessionId':_0x33fd67,'projectPath':_0x14bc5b||_0x3973e9||slugToProjectPath(_0x2208dd),'filePath':_0x29aa85,'messageCount':_0x4cfa8e,'sizeBytes':_0x49a0e2[_0x4ac487(0x4e4,0x4d3)],'modifiedAt':_0x49a0e2[_0x4b4d6b(-0x1c3,-0x1b3)]});}catch{console['error'](_0x4b4d6b(-0x1cc,-0x1c9)+_0x4ac487(0x4e3,0x4eb)+_0x4ac487(0x4db,0x4dd)+'ile:',_0x29aa85);}}}else return _0x4ce130['error'](_0x4b4d6b(-0x1bc,-0x1b8)+_0x4b4d6b(-0x1b4,-0x1b6)+_0x4ac487(0x4c0,0x4ae),_0x2bcf60),[];}}catch(_0x45b8c2){console[_0x4b4d6b(-0x1c6,-0x1bf)](_0x4b4d6b(-0x1cc,-0x1c4)+'ed\x20to\x20scan'+'\x20session\x20f'+_0x4b4d6b(-0x1b3,-0x1bb),_0x45b8c2);}return _0x570c71;}export function getSessionMessages(_0x70da5f,_0x5be52d){const _0x4f0d82=projectPathToSlug(_0x5be52d);function _0x36b28f(_0x52c10d,_0x18ce53){return _0x3fc33d(_0x52c10d-0x22f,_0x18ce53);}const _0x3a60d4=join(CLAUDE_PROJECTS_DIR,_0x4f0d82,_0x70da5f+_0x36b28f(0x166,0x16e));return parseSessionFile(_0x3a60d4);}
1
+ (function(_0x466a6d,_0x55a65f){function _0x5f37e3(_0x297af5,_0x260473){return _0x18f4(_0x260473- -0x1eb,_0x297af5);}function _0x4a6ba3(_0x41ecc1,_0x35cd5a){return _0x18f4(_0x41ecc1-0x3af,_0x35cd5a);}const _0x313b82=_0x466a6d();while(!![]){try{const _0x284149=parseInt(_0x5f37e3(-0x3f,-0x40))/0x1+parseInt(_0x5f37e3(-0x56,-0x4d))/0x2*(parseInt(_0x4a6ba3(0x556,0x55f))/0x3)+parseInt(_0x5f37e3(-0x56,-0x43))/0x4+parseInt(_0x4a6ba3(0x55b,0x54e))/0x5+-parseInt(_0x4a6ba3(0x559,0x54e))/0x6+parseInt(_0x4a6ba3(0x552,0x564))/0x7*(parseInt(_0x4a6ba3(0x55d,0x569))/0x8)+-parseInt(_0x5f37e3(-0x3d,-0x33))/0x9*(parseInt(_0x5f37e3(-0x47,-0x4c))/0xa);if(_0x284149===_0x55a65f)break;else _0x313b82['push'](_0x313b82['shift']());}catch(_0x44ae45){_0x313b82['push'](_0x313b82['shift']());}}}(_0x44e9,0x639e5));import{readFileSync,readdirSync,statSync,existsSync}from'node:fs';function _0x18f4(_0x504461,_0x3f2a9f){_0x504461=_0x504461-0x194;const _0x44e905=_0x44e9();let _0x18f442=_0x44e905[_0x504461];if(_0x18f4['RvKVWM']===undefined){var _0xbeb2fb=function(_0x2c6168){const _0x21037d='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x54f314='',_0x1bfde5='';for(let _0x228619=0x0,_0x577ff3,_0x47f524,_0x1c81ee=0x0;_0x47f524=_0x2c6168['charAt'](_0x1c81ee++);~_0x47f524&&(_0x577ff3=_0x228619%0x4?_0x577ff3*0x40+_0x47f524:_0x47f524,_0x228619++%0x4)?_0x54f314+=String['fromCharCode'](0xff&_0x577ff3>>(-0x2*_0x228619&0x6)):0x0){_0x47f524=_0x21037d['indexOf'](_0x47f524);}for(let _0x4691d5=0x0,_0xe0956f=_0x54f314['length'];_0x4691d5<_0xe0956f;_0x4691d5++){_0x1bfde5+='%'+('00'+_0x54f314['charCodeAt'](_0x4691d5)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x1bfde5);};_0x18f4['shODGz']=_0xbeb2fb,_0x18f4['CEcVZU']={},_0x18f4['RvKVWM']=!![];}const _0x321b11=_0x44e905[0x0],_0x1c71b6=_0x504461+_0x321b11,_0x53e562=_0x18f4['CEcVZU'][_0x1c71b6];return!_0x53e562?(_0x18f442=_0x18f4['shODGz'](_0x18f442),_0x18f4['CEcVZU'][_0x1c71b6]=_0x18f442):_0x18f442=_0x53e562,_0x18f442;}import{join,basename}from'node:path';import{homedir}from'node:os';const CLAUDE_PROJECTS_DIR=join(homedir(),_0x2579d9(0x95,0x97),'projects');export function parseSessionFile(_0x312b75){if(!existsSync(_0x312b75))return console[_0x393f34(0xe6,0xf7)](_0x393f34(0xf6,0xfa)+'ion\x20file\x20n'+_0x4d179c(0x29b,0x28b),_0x312b75),[];const _0x4ddbf1=readFileSync(_0x312b75,_0x393f34(0xf9,0x10a)),_0x41965e=_0x4ddbf1['split']('\x0a');function _0x4d179c(_0x235cb5,_0x120a2b){return _0x2579d9(_0x120a2b,_0x235cb5-0x20f);}const _0x2689b8=[];for(let _0x2b1e26=0x0;_0x2b1e26<_0x41965e['length'];_0x2b1e26++){const _0x115c69=_0x41965e[_0x2b1e26]['trim']();if(!_0x115c69)continue;try{const _0x48dd68=JSON[_0x4d179c(0x2b4,0x2a7)](_0x115c69);_0x48dd68[_0x4d179c(0x2a4,0x2b8)]&&_0x48dd68[_0x393f34(0x120,0x111)]&&_0x48dd68[_0x4d179c(0x2b3,0x2a0)]&&_0x2689b8['push'](_0x48dd68);}catch{console['error'](_0x4d179c(0x29e,0x2ad)+_0x4d179c(0x2b7,0x2b1)+_0x393f34(0xe4,0xf5)+(_0x2b1e26+0x1)+_0x4d179c(0x2bd,0x2b5)+_0x312b75);}}function _0x393f34(_0x43651e,_0x1ac334){return _0x2579d9(_0x43651e,_0x1ac334-0x6a);}return _0x2689b8;}export function projectPathToSlug(_0x1836c7){function _0x235c54(_0x2d8641,_0x339277){return _0x2579d9(_0x339277,_0x2d8641- -0x1c1);}return _0x1836c7[_0x235c54(-0x115,-0x121)](/[^a-zA-Z0-9]/g,'-');}function _0x44e9(){const _0x2dcb8e=['DhjPBq','nty5mJuZnLr3qKnZCa','CMvWBgfJzq','rhPzuM0','igLUia','ChvZAa','rxvKrfm','zMLSDgvY','w2eYyv0GrMfPBa','DcbSAw5Lia','B3qGzM91BMq6','zxjYB3i','ihnLC3nPB24GzG','w2eYyv0Gsw52yq','w2eYyv0Gu2vZCW','mNj6B3LPyq','mJb4ywnOtgK','zw5KC1DPDgG','AwXLoG','DxvPza','mtm2ndG4muP0C0j1ua','lMnSyxvKzq','AxneAxjLy3rVCG','BgvUz3rO','mtaZmdeXovvJwMrhBW','odGXnZi4sLL0EuTo','Bwf0y2G','mtuWntiZofLlqvbUqG','mJCXmJm0wfDhyKXS','mtu0ndCZnwDzz2z6tq','DxrMltG','mZjfCgPjsvO','BxrPBwvnCW','C3bSAxq','BwvZC2fNzq','CgfYC2u','lMPZB25S','DhLWzq','BgLKiePtt04Gyq','C3rHCNrZv2L0Aa'];_0x44e9=function(){return _0x2dcb8e;};return _0x44e9();}function _0x2579d9(_0x3f8046,_0x179ad3){return _0x18f4(_0x179ad3- -0x10d,_0x3f8046);}export function slugToProjectPath(_0xcd0274){function _0x535852(_0x9d1246,_0x7c11be){return _0x2579d9(_0x9d1246,_0x7c11be-0x7b);}if(_0xcd0274[_0x535852(0x110,0x124)]('-'))return _0xcd0274['replace'](/-/g,'/');return _0xcd0274;}export function extractCwdFromContent(_0x112f52){const _0x1c61e3=_0x112f52[_0x467b8c(0x32a,0x31e)](/"cwd"\s*:\s*"((?:[^"\\]|\\.)*)"/);if(!_0x1c61e3)return null;function _0x5c132d(_0x1b69a8,_0x4f3b73){return _0x2579d9(_0x1b69a8,_0x4f3b73-0x1e9);}function _0x467b8c(_0x3d7ce8,_0x1f0d4f){return _0x2579d9(_0x3d7ce8,_0x1f0d4f-0x282);}try{if(_0x467b8c(0x317,0x30a)!=='QKwlu')return JSON[_0x5c132d(0x27b,0x28e)]('\x22'+_0x1c61e3[0x1]+'\x22');else{const _0x99bc2d=_0xe0956f['parse'](_0x53bcee);_0x99bc2d[_0x5c132d(0x27f,0x27e)]&&_0x99bc2d[_0x5c132d(0x282,0x290)]&&_0x99bc2d[_0x467b8c(0x337,0x326)]&&_0xb7bd60['push'](_0x99bc2d);}}catch{return null;}}function readSessionMeta(_0x11c9a3){function _0x87672e(_0x5113aa,_0x11943e){return _0x2579d9(_0x5113aa,_0x11943e-0x1f4);}const _0x479aa1=readFileSync(_0x11c9a3,_0x87672e(0x292,0x294));function _0x4fddcd(_0x3626bb,_0x2814de){return _0x2579d9(_0x3626bb,_0x2814de- -0x38);}return{'messageCount':_0x479aa1[_0x4fddcd(0x6c,0x6b)]('\x0a')[_0x4fddcd(0x50,0x51)](_0x2ca425=>_0x2ca425[_0x4fddcd(0x7d,0x72)]()[_0x87672e(0x28b,0x28d)]>0x0)[_0x87672e(0x27c,0x28d)],'cwd':extractCwdFromContent(_0x479aa1)};}export function findSessionFiles(_0x450b41){if(!existsSync(CLAUDE_PROJECTS_DIR))return[];const _0xcaa7aa=[];try{const _0x59b993=_0x450b41?[projectPathToSlug(_0x450b41)]:readdirSync(CLAUDE_PROJECTS_DIR);for(const _0x1d41d3 of _0x59b993){const _0x1fb979=join(CLAUDE_PROJECTS_DIR,_0x1d41d3);if(!existsSync(_0x1fb979))continue;let _0x2979ca;try{if(_0x15d199(0x85,0x8a)===_0x15d199(0x85,0x7b))_0x2979ca=statSync(_0x1fb979);else return _0x1fb00d['replace'](/-/g,'/');}catch{continue;}if(!_0x2979ca[_0x4275c2(0x57a,0x581)+'y']())continue;let _0x538178;try{_0x538178=readdirSync(_0x1fb979);}catch{continue;}for(const _0x264e92 of _0x538178){if(!_0x264e92[_0x4275c2(0x575,0x566)](_0x4275c2(0x588,0x58d)))continue;const _0x552af8=join(_0x1fb979,_0x264e92),_0x2a8aa3=basename(_0x264e92,_0x15d199(0x7e,0x6d));try{if('zSiUV'!=='zSiUV')return _0x1f8987[_0x15d199(0x84,0x7d)](/[^a-zA-Z0-9]/g,'-');else{const _0x240c3a=statSync(_0x552af8),{messageCount:_0xd0fd98,cwd:_0xf87b72}=readSessionMeta(_0x552af8);if(_0x450b41&&_0xf87b72&&_0xf87b72!==_0x450b41)continue;_0xcaa7aa[_0x4275c2(0x569,0x555)]({'sessionId':_0x2a8aa3,'projectPath':_0x450b41||_0xf87b72||slugToProjectPath(_0x1d41d3),'filePath':_0x552af8,'messageCount':_0xd0fd98,'sizeBytes':_0x240c3a['size'],'modifiedAt':_0x240c3a[_0x4275c2(0x584,0x58c)]});}}catch{console[_0x4275c2(0x56f,0x566)](_0x4275c2(0x56c,0x564)+'ed\x20to\x20stat'+_0x4275c2(0x570,0x562)+_0x15d199(0x6c,0x76),_0x552af8);}}}}catch(_0x29b1e1){console['error'](_0x4275c2(0x56c,0x57e)+'ed\x20to\x20scan'+'\x20session\x20f'+'iles:',_0x29b1e1);}function _0x4275c2(_0x552b1f,_0x1c1b2f){return _0x2579d9(_0x1c1b2f,_0x552b1f-0x4e2);}function _0x15d199(_0x2a0183,_0x182370){return _0x2579d9(_0x182370,_0x2a0183- -0x28);}return _0xcaa7aa;}export function getSessionMessages(_0x483c07,_0x330b44){function _0xfcafd2(_0xe76854,_0x1d1e79){return _0x2579d9(_0xe76854,_0x1d1e79- -0x171);}const _0xf20dba=projectPathToSlug(_0x330b44),_0x228335=join(CLAUDE_PROJECTS_DIR,_0xf20dba,_0x483c07+_0xfcafd2(-0xbe,-0xcb));return parseSessionFile(_0x228335);}