a2a-memory 0.12.51 → 0.12.53

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 (100) hide show
  1. package/README.md +1 -1
  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/migrate-chunks.js +1 -1
  17. package/dist/cli/commands/migrate-file-refs.js +1 -1
  18. package/dist/cli/commands/proficiency.js +1 -1
  19. package/dist/cli/commands/review.js +1 -1
  20. package/dist/cli/commands/rm.js +1 -1
  21. package/dist/cli/commands/search.js +1 -1
  22. package/dist/cli/commands/session-extract.js +1 -1
  23. package/dist/cli/commands/setup-wizard.js +1 -1
  24. package/dist/cli/commands/setup.js +1 -1
  25. package/dist/cli/commands/skill.js +1 -1
  26. package/dist/cli/commands/status.js +1 -1
  27. package/dist/cli/commands/sync.js +1 -1
  28. package/dist/cli/commands/team.js +1 -1
  29. package/dist/cli/commands/usage.js +1 -1
  30. package/dist/cli/index.js +1 -1
  31. package/dist/config/manager.js +1 -1
  32. package/dist/contextrank/edge-builder.d.ts +18 -0
  33. package/dist/contextrank/edge-builder.js +1 -1
  34. package/dist/contextrank/rank-builder.js +1 -1
  35. package/dist/contextrank/signal-builder.js +1 -1
  36. package/dist/db/database.js +1 -1
  37. package/dist/db/usage-spool.js +1 -1
  38. package/dist/embedding/e5-provider.js +1 -1
  39. package/dist/embedding/index.js +1 -1
  40. package/dist/embedding/local-provider.js +1 -1
  41. package/dist/embedding/openai-provider.js +1 -1
  42. package/dist/embedding/quantization.js +1 -1
  43. package/dist/extraction/dedup-manager.js +1 -1
  44. package/dist/extraction/emotion-filter.js +1 -1
  45. package/dist/extraction/extractor.js +1 -1
  46. package/dist/extraction/file-reference.js +1 -1
  47. package/dist/extraction/filter.js +1 -1
  48. package/dist/extraction/scorer.js +1 -1
  49. package/dist/extraction/similarity.js +1 -1
  50. package/dist/hooks/client-factory.js +1 -1
  51. package/dist/hooks/post-tool-use.js +1 -1
  52. package/dist/hooks/pre-compact.js +1 -1
  53. package/dist/hooks/session-end.js +1 -1
  54. package/dist/hooks/session-start.js +1 -1
  55. package/dist/hooks/shared.js +1 -1
  56. package/dist/hooks/stop.js +1 -1
  57. package/dist/hooks/user-prompt-submit.js +1 -1
  58. package/dist/i18n/index.js +1 -1
  59. package/dist/i18n/messages.js +1 -1
  60. package/dist/index.js +1 -1
  61. package/dist/lifecycle/cleanup-scheduler.js +1 -1
  62. package/dist/lifecycle/cleanup.js +1 -1
  63. package/dist/lifecycle/consolidation.js +1 -1
  64. package/dist/lifecycle/contradiction.js +1 -1
  65. package/dist/lifecycle/embedding-backfill.js +1 -1
  66. package/dist/lifecycle/index.js +1 -1
  67. package/dist/lifecycle/injection-flush.js +1 -1
  68. package/dist/lifecycle/quality-scorer.js +1 -1
  69. package/dist/lifecycle/session-extract.js +1 -1
  70. package/dist/lifecycle/shadow-rebuild.d.ts +34 -2
  71. package/dist/lifecycle/shadow-rebuild.js +1 -1
  72. package/dist/lifecycle/tiering.js +1 -1
  73. package/dist/llm/client.js +1 -1
  74. package/dist/llm/index.js +1 -1
  75. package/dist/proficiency/actr-engine.js +1 -1
  76. package/dist/proficiency/detection.js +1 -1
  77. package/dist/proficiency/index.js +1 -1
  78. package/dist/proficiency/tracker.js +1 -1
  79. package/dist/search/adaptive-router.js +1 -1
  80. package/dist/search/index.js +1 -1
  81. package/dist/search/injection-filter.js +1 -1
  82. package/dist/search/memoryrank-rerank.js +1 -1
  83. package/dist/search/ranker.js +1 -1
  84. package/dist/search/reranker.js +1 -1
  85. package/dist/session/parser.js +1 -1
  86. package/dist/skill/evaluator.js +1 -1
  87. package/dist/skill/index.js +1 -1
  88. package/dist/sync/client.js +1 -1
  89. package/dist/sync/encryption.js +1 -1
  90. package/dist/sync/index.js +1 -1
  91. package/dist/sync/queue.js +1 -1
  92. package/dist/sync/scheduler.js +1 -1
  93. package/dist/sync/synchronizer.js +1 -1
  94. package/dist/sync/team-synchronizer.js +1 -1
  95. package/dist/sync/vector-clock.js +1 -1
  96. package/dist/types/index.js +1 -1
  97. package/dist/utils/keychain.js +1 -1
  98. package/dist/utils/logger.js +1 -1
  99. package/dist/utils/test-isolation.js +1 -1
  100. package/package.json +1 -1
@@ -1 +1 @@
1
- (function(_0x4ff08c,_0x288784){function _0x32e471(_0x56779a,_0x2f4fdb){return _0x4243(_0x56779a-0x2ce,_0x2f4fdb);}const _0x32c01a=_0x4ff08c();function _0x429369(_0x16cbec,_0x46f2c7){return _0x4243(_0x46f2c7- -0x122,_0x16cbec);}while(!![]){try{const _0x183181=parseInt(_0x429369(0x13,-0x6))/0x1*(parseInt(_0x32e471(0x46f,0x4cf))/0x2)+-parseInt(_0x32e471(0x423,0x431))/0x3*(parseInt(_0x32e471(0x3cd,0x3ae))/0x4)+parseInt(_0x429369(0x65,0x36))/0x5*(parseInt(_0x429369(0x62,0x27))/0x6)+parseInt(_0x32e471(0x45a,0x404))/0x7*(parseInt(_0x32e471(0x457,0x429))/0x8)+-parseInt(_0x429369(0x81,0x3e))/0x9*(parseInt(_0x32e471(0x469,0x45e))/0xa)+-parseInt(_0x429369(-0x4b,-0x14))/0xb+-parseInt(_0x32e471(0x3c0,0x3ea))/0xc*(parseInt(_0x429369(-0x20,0x2f))/0xd);if(_0x183181===_0x288784)break;else _0x32c01a['push'](_0x32c01a['shift']());}catch(_0x5e2b55){_0x32c01a['push'](_0x32c01a['shift']());}}}(_0x252f,0xc6fb7));import{encryptContent,decryptContent,wrapEncryptedContent,unwrapEncryptedContent}from'./encryption.js';function _0x4243(_0xeb89bb,_0xaf2a03){_0xeb89bb=_0xeb89bb-0xd9;const _0x252f70=_0x252f();let _0x4243a6=_0x252f70[_0xeb89bb];if(_0x4243['PlVITS']===undefined){var _0x87fe48=function(_0x536e9d){const _0x1a78ff='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x2dbbbd='',_0x158511='';for(let _0x345dcb=0x0,_0x58364c,_0x56c550,_0x188c7f=0x0;_0x56c550=_0x536e9d['charAt'](_0x188c7f++);~_0x56c550&&(_0x58364c=_0x345dcb%0x4?_0x58364c*0x40+_0x56c550:_0x56c550,_0x345dcb++%0x4)?_0x2dbbbd+=String['fromCharCode'](0xff&_0x58364c>>(-0x2*_0x345dcb&0x6)):0x0){_0x56c550=_0x1a78ff['indexOf'](_0x56c550);}for(let _0x47451c=0x0,_0x27b98b=_0x2dbbbd['length'];_0x47451c<_0x27b98b;_0x47451c++){_0x158511+='%'+('00'+_0x2dbbbd['charCodeAt'](_0x47451c)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x158511);};_0x4243['KPnduR']=_0x87fe48,_0x4243['uBpHhA']={},_0x4243['PlVITS']=!![];}const _0x1d123e=_0x252f70[0x0],_0x157878=_0xeb89bb+_0x1d123e,_0x2c0b7a=_0x4243['uBpHhA'][_0x157878];return!_0x2c0b7a?(_0x4243a6=_0x4243['KPnduR'](_0x4243a6),_0x4243['uBpHhA'][_0x157878]=_0x4243a6):_0x4243a6=_0x2c0b7a,_0x4243a6;}function withStatus(_0x24a246,_0x173844){function _0x544a73(_0x4d7362,_0xbeba4){return _0x4243(_0x4d7362-0x1ad,_0xbeba4);}return _0x24a246[_0x544a73(0x293,0x256)]=_0x173844,_0x24a246;}export function getErrorStatus(_0x1126f7){function _0xdbf53a(_0x21e4c8,_0x2d3303){return _0x4243(_0x2d3303-0x8e,_0x21e4c8);}return _0x1126f7 instanceof Error?_0x1126f7[_0xdbf53a(0x189,0x174)]:undefined;}let _pluginVersion='0.0.0';try{const {readFileSync}=await import(_0x49c22f(0x7f,0xa3)),{fileURLToPath}=await import(_0x49c22f(0x8e,0xb0)),{dirname,join}=await import(_0x1bc299(-0x1cb,-0x21a)),__dirname=dirname(fileURLToPath(import.meta.url)),pkg=JSON['parse'](readFileSync(join(__dirname,_0x1bc299(-0x237,-0x254)+_0x49c22f(0x79,0x3e)),_0x49c22f(0x107,0xc5)));_pluginVersion=pkg[_0x49c22f(0x108,0xc6)]||'0.0.0';}catch{}function _0x1bc299(_0x33af57,_0x31d6e5){return _0x4243(_0x31d6e5- -0x380,_0x33af57);}function _0x49c22f(_0x4e7653,_0x27f114){return _0x4243(_0x27f114- -0xc2,_0x4e7653);}export class A2AClient{['config'];[_0x49c22f(0xae,0x7d)];['encryption'+_0x49c22f(0xd1,0x85)]=null;[_0x49c22f(0xf2,0xcc)+_0x49c22f(0x69,0x63)]=[];constructor(_0x1e9d97){function _0x3c66bb(_0x4be4c0,_0x5a30cf){return _0x1bc299(_0x5a30cf,_0x4be4c0-0x6ee);}this['config']=_0x1e9d97;function _0x26f143(_0x1b45a9,_0x3e04cd){return _0x1bc299(_0x3e04cd,_0x1b45a9- -0x47);}this[_0x26f143(-0x288,-0x27e)]=_0x1e9d97[_0x3c66bb(0x4ad,0x4f8)]??0xea60;}[_0x1bc299(-0x2c0,-0x259)+'Features'](_0x30176c){function _0xbf8c0(_0x28390c,_0x795cee){return _0x1bc299(_0x795cee,_0x28390c- -0xa);}this[_0xbf8c0(-0x1fc,-0x216)+'tures']=_0x30176c;}[_0x49c22f(0x61,0x51)+_0x49c22f(0x9c,0xdb)](_0x282840){function _0x375b71(_0x2eebd7,_0x26bf4a){return _0x1bc299(_0x26bf4a,_0x2eebd7-0x557);}if(_0x282840[_0x375b71(0x30d,0x2cd)]!==0x20)throw new Error('암호화\x20키는\x2032\x20'+_0x375b71(0x37a,0x3c1)+'다');function _0x18d3cf(_0x2f3e90,_0x3919be){return _0x1bc299(_0x3919be,_0x2f3e90-0x59);}this[_0x18d3cf(-0x1d0,-0x169)+_0x18d3cf(-0x1e0,-0x1b6)]=_0x282840;}[_0x49c22f(0xa2,0xd1)+_0x1bc299(-0x26b,-0x25a)](){function _0x56ac85(_0x5e110e,_0x157887){return _0x49c22f(_0x5e110e,_0x157887-0x4b);}this[_0x56ac85(0xe0,0xe0)+'Key']=null;}[_0x1bc299(-0x1f5,-0x1fa)+_0x49c22f(0x8f,0xba)](){function _0x1c5209(_0xf81750,_0x390777){return _0x49c22f(_0xf81750,_0x390777- -0xb2);}function _0x586d56(_0x1e641e,_0x456ee1){return _0x49c22f(_0x1e641e,_0x456ee1-0x27a);}return this[_0x1c5209(-0x73,-0x1d)+_0x1c5209(-0x23,-0x2d)]!==null;}async['createMemo'+'ry'](_0x1e9410){function _0x387f53(_0x6fc162,_0x4ffe2a){return _0x1bc299(_0x6fc162,_0x4ffe2a-0x521);}let _0x57d8c7=_0x1e9410[_0x1ea035(-0x258,-0x299)];if(this[_0x1ea035(-0x259,-0x282)+_0x387f53(0x2d8,0x2e8)]){if('DsCuA'!==_0x387f53(0x2c9,0x319))this[_0x387f53(0x322,0x32f)+_0x387f53(0x2a4,0x2c6)]=_0x374f39;else{const _0x239f25=encryptContent(_0x1e9410[_0x387f53(0x32f,0x2e1)],this[_0x387f53(0x320,0x2f8)+'Key']);_0x57d8c7=wrapEncryptedContent(_0x239f25);}}const _0x428bf9=await this[_0x1ea035(-0x2dc,-0x289)](_0x387f53(0x2f2,0x300),_0x1ea035(-0x315,-0x2fb)+_0x1ea035(-0x2a9,-0x275),{'content':_0x57d8c7,'category':_0x1e9410[_0x1ea035(-0x2e6,-0x2f6)],'tier':_0x1e9410[_0x1ea035(-0x25d,-0x2c2)],'tags':_0x1e9410[_0x387f53(0x278,0x2d3)]??[]}),_0x15aded=_0x428bf9;function _0x1ea035(_0x320935,_0x47732f){return _0x1bc299(_0x320935,_0x47732f- -0x59);}if(this['encryption'+_0x1ea035(-0x2a4,-0x292)]&&_0x15aded[_0x387f53(0x2e0,0x2e1)]){const _0x41bafe=unwrapEncryptedContent(_0x15aded[_0x387f53(0x32f,0x2e1)]);if(_0x41bafe){if(_0x387f53(0x2e1,0x2db)===_0x1ea035(-0x221,-0x26d)){const _0x4949d8=_0x5fa63b(_0x4fd90e[_0x1ea035(-0x25c,-0x299)]);if(_0x4949d8)try{_0x5ae4c7[_0x1ea035(-0x266,-0x299)]=_0x340c16(_0x4949d8,this[_0x1ea035(-0x2b6,-0x282)+'Key']);}catch{}}else _0x15aded[_0x387f53(0x2c6,0x2e1)]=decryptContent(_0x41bafe,this[_0x1ea035(-0x243,-0x282)+_0x387f53(0x296,0x2e8)]);}}return _0x15aded;}async[_0x1bc299(-0x21b,-0x1fb)+_0x49c22f(0x86,0xe3)](_0x169a51,_0x13151f){const _0x2c9288=await this[_0x1acca4(0x304,0x328)](_0x339d7c(-0x139,-0x17f),_0x339d7c(-0x207,-0x200)+'mories/sea'+_0x1acca4(0x335,0x2f8),{'query':_0x169a51,'limit':_0x13151f?.[_0x339d7c(-0x163,-0x1bd)]??0xa,'category':_0x13151f?.[_0x1acca4(0x297,0x252)]});function _0x1acca4(_0x4fdb74,_0x33c304){return _0x1bc299(_0x33c304,_0x4fdb74-0x534);}function _0x339d7c(_0x24b78c,_0x422e6b){return _0x1bc299(_0x24b78c,_0x422e6b-0xa2);}return _0x2c9288['items']??[];}async[_0x1bc299(-0x296,-0x298)+'es'](_0x4e5191){const _0x126dcc=new URLSearchParams();if(_0x4e5191?.[_0x46999a(0x75,0x8d)])_0x126dcc[_0x46999a(0x11a,0xfc)](_0x44e989(0x3e1,0x3ae),_0x4e5191[_0x46999a(0xc1,0x8d)][_0x44e989(0x37e,0x369)]());if(_0x4e5191?.[_0x44e989(0x448,0x417)])_0x126dcc[_0x44e989(0x41d,0x41d)](_0x46999a(0xd5,0xf6),_0x4e5191[_0x44e989(0x43c,0x417)][_0x46999a(0x2a,0x48)]());function _0x44e989(_0x3f8006,_0x29cd97){return _0x49c22f(_0x3f8006,_0x29cd97-0x34f);}if(_0x4e5191?.[_0x44e989(0x375,0x374)+_0x46999a(0x105,0xb1)])_0x126dcc['set'](_0x46999a(0xb1,0x9f)+_0x44e989(0x477,0x418),_0x46999a(0x107,0xc2));const _0x25b7d6=_0x44e989(0x386,0x36b)+_0x46999a(0xae,0xd0)+(_0x126dcc[_0x46999a(0x70,0x48)]()?'?'+_0x126dcc[_0x44e989(0x35b,0x369)]():''),_0x1c714f=await this[_0x44e989(0x3d7,0x3dd)](_0x46999a(0xaf,0x64),_0x25b7d6);function _0x46999a(_0x33bd6b,_0x5792d1){return _0x49c22f(_0x33bd6b,_0x5792d1-0x2e);}const _0x447252=_0x1c714f[_0x46999a(0xad,0x7c)]??[];if(this[_0x44e989(0x3b9,0x3e4)+_0x44e989(0x42c,0x3d4)])return _0x447252['map'](_0x4e18e8=>this['decryptMem'+_0x44e989(0x35f,0x37a)](_0x4e18e8));return _0x447252;}['decryptMem'+_0x49c22f(0x32,0x2b)](_0x405555){function _0x55f390(_0x1155ab,_0x1bf806){return _0x1bc299(_0x1155ab,_0x1bf806-0x82);}if(!this['encryption'+_0x1acd29(0x454,0x403)])return _0x405555;const _0x4102f4={..._0x405555};function _0x1acd29(_0x5d50f4,_0x3979db){return _0x1bc299(_0x3979db,_0x5d50f4-0x68d);}if(_0x4102f4[_0x55f390(-0x17c,-0x1be)]){const _0x3c462a=unwrapEncryptedContent(_0x4102f4[_0x55f390(-0x15b,-0x1be)]);if(_0x3c462a)try{_0x4102f4[_0x1acd29(0x44d,0x3ef)]=decryptContent(_0x3c462a,this[_0x55f390(-0x1d1,-0x1a7)+_0x1acd29(0x454,0x470)]);}catch{}}return _0x4102f4;}async[_0x1bc299(-0x23d,-0x27b)+'ry'](_0x43ce00,_0x3e6231){const _0x3ca53e=await this[_0x36be68(0x1f5,0x222)]('PUT',_0x36be68(0x163,0x1b0)+_0x36be68(0x230,0x1fa)+_0x43ce00,_0x3e6231);function _0x36be68(_0x585993,_0x38ecbc){return _0x49c22f(_0x585993,_0x38ecbc-0x194);}function _0x341a67(_0x3fc260,_0x3a0837){return _0x49c22f(_0x3a0837,_0x3fc260- -0x24f);}return _0x3ca53e;}async[_0x1bc299(-0x1cc,-0x232)+'ry'](_0x527280){function _0x1ca182(_0x320861,_0x2d3dc0){return _0x49c22f(_0x320861,_0x2d3dc0-0x2a9);}function _0x2bbdde(_0x46ca92,_0x16544c){return _0x49c22f(_0x16544c,_0x46ca92-0x25b);}await this[_0x2bbdde(0x2e9,0x31f)](_0x2bbdde(0x2da,0x327),_0x1ca182(0x270,0x2c5)+_0x2bbdde(0x2c1,0x261)+_0x527280);}async[_0x1bc299(-0x1de,-0x1e6)](){function _0x1e114d(_0x435367,_0xfb9a3c){return _0x1bc299(_0x435367,_0xfb9a3c-0x68a);}const _0x401269=await this[_0x1e56f9(-0xaf,-0x7f)](_0x1e114d(0x3a3,0x402),_0x1e56f9(-0xa1,-0x52)+_0x1e114d(0x45e,0x414));function _0x1e56f9(_0xaaf9c4,_0x42b6d1){return _0x1bc299(_0xaaf9c4,_0x42b6d1-0x1b1);}if(Array['isArray'](_0x401269))return _0x401269;return _0x401269[_0x1e114d(0x3dc,0x41a)]??[];}async['listTeamMe'+'mories'](_0x3257e7,_0x3c3088){const _0x3b8fb9=new URLSearchParams();if(_0x3c3088?.[_0x3be245(-0x12a,-0x16f)])_0x3b8fb9[_0x18c653(0x297,0x285)](_0x18c653(0x1c7,0x216),_0x3c3088[_0x3be245(-0x13c,-0x16f)][_0x18c653(0x195,0x1d1)]());if(_0x3c3088?.[_0x3be245(-0xaa,-0x106)])_0x3b8fb9[_0x18c653(0x24f,0x285)](_0x3be245(-0xe7,-0x106),_0x3c3088['offset']['toString']());const _0xb3a264=_0x3b8fb9[_0x3be245(-0x156,-0x1b4)]();function _0x18c653(_0x1be157,_0x255690){return _0x49c22f(_0x1be157,_0x255690-0x1b7);}const _0x10c4c2='/teams/'+encodeURIComponent(_0x3257e7)+'/memories'+(_0xb3a264?'?'+_0xb3a264:''),_0x121328=await this[_0x18c653(0x21d,0x245)](_0x18c653(0x241,0x1ed),_0x10c4c2);function _0x3be245(_0x472af5,_0x36b649){return _0x49c22f(_0x472af5,_0x36b649- -0x1ce);}return _0x121328['items']??[];}async[_0x49c22f(0x90,0xb4)+_0x1bc299(-0x2c7,-0x293)](_0x31901d,_0x174140){const _0x431812=await this[_0x30ad71(-0x1d6,-0x226)](_0x30ad71(-0x1cc,-0x217),_0x30ad71(-0x28a,-0x24c)+encodeURIComponent(_0x31901d)+'/memories',_0x174140);function _0x30ad71(_0x2b1925,_0x4e11fd){return _0x49c22f(_0x2b1925,_0x4e11fd- -0x2b4);}function _0x178b77(_0x37d0e6,_0x17cc8a){return _0x49c22f(_0x37d0e6,_0x17cc8a- -0xa2);}return _0x431812;}async[_0x1bc299(-0x1ea,-0x1e1)+_0x1bc299(-0x1db,-0x22e)](_0x3a6e36,_0x1bcd62,_0x115cde){function _0x4cf610(_0x364d95,_0x3f4c7d){return _0x49c22f(_0x3f4c7d,_0x364d95- -0x102);}function _0x4e1271(_0x48ee78,_0x119f78){return _0x49c22f(_0x48ee78,_0x119f78-0x8e);}const _0x19466e=await this['request'](_0x4cf610(-0x65,-0xb1),'/teams/'+encodeURIComponent(_0x3a6e36)+(_0x4cf610(-0x80,-0x74)+_0x4e1271(0x169,0x129)),{'query':_0x1bcd62,'limit':_0x115cde?.[_0x4cf610(-0xa3,-0xa4)]??0xa,'category':_0x115cde?.['category']});return _0x19466e[_0x4e1271(0x7a,0xdc)]??[];}async[_0x49c22f(0xec,0xd2)+'lta'](_0x28b705,_0x147940,_0x53fd7b){function _0x2ef3fc(_0x2d9f4d,_0xcc667a){return _0x1bc299(_0xcc667a,_0x2d9f4d-0x4b);}function _0x2e008c(_0x52fec3,_0x19ac31){return _0x1bc299(_0x19ac31,_0x52fec3-0x5d1);}return this['request'](_0x2ef3fc(-0x1d6,-0x1e8),_0x2e008c(0x37b,0x3c1)+encodeURIComponent(_0x28b705)+(_0x2e008c(0x395,0x3b2)+'sync/delta'),{'memory_id':_0x147940,'vector_clock':_0x53fd7b});}async['applyDelta'](_0x27aa8d,_0x2a190f,_0x5a8693){function _0xa7f6ea(_0x45cfb2,_0x45481d){return _0x1bc299(_0x45481d,_0x45cfb2-0x1d4);}function _0x21871a(_0xc9e7d0,_0x232659){return _0x1bc299(_0xc9e7d0,_0x232659-0x68c);}return this['request'](_0xa7f6ea(-0x4d,-0x77),_0xa7f6ea(-0x82,-0x2f)+encodeURIComponent(_0x27aa8d)+('/memories/'+_0x21871a(0x4d6,0x48f)),{'memory_id':_0x2a190f,'delta':_0x5a8693});}async[_0x1bc299(-0x1d1,-0x1fc)+_0x1bc299(-0x27d,-0x219)](_0x261f9b){function _0x4636cc(_0x33e9f9,_0x11d587){return _0x49c22f(_0x11d587,_0x33e9f9-0x361);}function _0x55190e(_0x584df5,_0x4d6885){return _0x49c22f(_0x4d6885,_0x584df5- -0x11c);}const _0x35e884=await this[_0x55190e(-0x8e,-0xa6)](_0x55190e(-0x7f,-0x6e),_0x55190e(-0x100,-0x12e)+_0x55190e(-0xa9,-0xb0)+'ch',{'items':_0x261f9b});return _0x35e884;}async[_0x49c22f(0x102,0xa0)+_0x1bc299(-0x23b,-0x26e)](){function _0x385dac(_0x2d0415,_0x983ea9){return _0x49c22f(_0x2d0415,_0x983ea9- -0x1fe);}function _0x45bb5f(_0x414172,_0x3c57ce){return _0x49c22f(_0x3c57ce,_0x414172- -0x29a);}try{return await this[_0x45bb5f(-0x20c,-0x1e4)]('GET',_0x45bb5f(-0x27e,-0x26e)+_0x45bb5f(-0x1e9,-0x1e9)+_0x385dac(-0x121,-0x145)),!![];}catch{return![];}}async['assembleCo'+'ntext'](_0x8cdbd5,_0x4cc91d){function _0x452f3c(_0x97f45,_0x5a36ff){return _0x1bc299(_0x97f45,_0x5a36ff-0x5be);}const _0x4678e9=await this['request'](_0x552125(-0x3d,-0xa3),_0x452f3c(0x2c4,0x31c)+_0x552125(-0x118,-0xfa)+_0x452f3c(0x37f,0x332),{'query':_0x8cdbd5,'max_memories':_0x4cc91d?.[_0x452f3c(0x423,0x3bd)+'s']??0x5,'max_tokens':_0x4cc91d?.[_0x452f3c(0x318,0x338)]??0x7d0,'categories':_0x4cc91d?.[_0x452f3c(0x33e,0x357)],'tier':_0x4cc91d?.[_0x552125(-0x133,-0xeb)]});function _0x552125(_0x524be0,_0x1f2242){return _0x1bc299(_0x524be0,_0x1f2242-0x17e);}return _0x4678e9;}async[_0x49c22f(0xc,0x45)+_0x1bc299(-0x30c,-0x2a5)](_0x9b8fec){function _0xe57dac(_0x281d5b,_0x8d6978){return _0x1bc299(_0x8d6978,_0x281d5b-0x15f);}const _0x56151e=await this[_0xe57dac(-0xd1,-0x88)](_0x5edd4e(-0x14a,-0x192),_0x5edd4e(-0x1c6,-0x213)+_0x5edd4e(-0x1d8,-0x1c9)+_0x9b8fec+_0xe57dac(-0x147,-0xf4));function _0x5edd4e(_0x18b82f,_0x251149){return _0x1bc299(_0x18b82f,_0x251149-0x8f);}return _0x56151e;}async[_0x1bc299(-0x2a5,-0x279)+'emoryFeedb'+_0x49c22f(0x84,0x44)](_0x4c3574,_0x4d7eed){function _0x46559f(_0xd62a35,_0x51977e){return _0x49c22f(_0xd62a35,_0x51977e-0x41f);}function _0x3b2528(_0x326883,_0x58c733){return _0x49c22f(_0x58c733,_0x326883-0x37);}try{'SpsSA'!==_0x46559f(0x4cc,0x4db)?_0x3033e1[_0x46559f(0x4e7,0x49d)]=_0x58d7e9(_0x535c17,this[_0x46559f(0x503,0x4b4)+_0x3b2528(0xbc,0xff)]):await this[_0x46559f(0x4e6,0x4ad)](_0x46559f(0x49f,0x4bc),_0x3b2528(0x53,0x55)+_0x46559f(0x457,0x485)+_0x4c3574+'/reinforce',{'success':_0x4d7eed});}catch(_0x1f7acf){console['error'](_0x46559f(0x4fb,0x4bb)+_0x46559f(0x465,0x478)+_0x46559f(0x3f0,0x452)+_0x3b2528(0x8a,0xa6)+'\x20'+_0x4c3574+':',_0x1f7acf instanceof Error?_0x1f7acf[_0x3b2528(0x111,0xb5)]:String(_0x1f7acf));}}async[_0x1bc299(-0x22d,-0x218)+_0x49c22f(0x56,0x2b)](_0x481fa3,_0x265303){const _0x97f777=await this['request']('POST',_0xcbe430(-0x2be,-0x2c1)+_0x2b7248(-0x10f,-0x176)+_0x481fa3+'/promote');function _0xcbe430(_0x3d75cf,_0x333256){return _0x49c22f(_0x333256,_0x3d75cf- -0x2da);}function _0x2b7248(_0x531db6,_0x1ee2b9){return _0x49c22f(_0x531db6,_0x1ee2b9- -0x1dc);}return _0x97f777;}async[_0x1bc299(-0x2bf,-0x283)](){function _0x380c8d(_0x48743e,_0x4808ee){return _0x1bc299(_0x48743e,_0x4808ee- -0x3);}function _0x2f0307(_0x2965d6,_0x4f8d24){return _0x1bc299(_0x2965d6,_0x4f8d24- -0x5a);}const _0x1a0616=await this[_0x380c8d(-0x25a,-0x233)]('GET',_0x2f0307(-0x303,-0x2fc)+_0x2f0307(-0x327,-0x2df)+'ts');return _0x1a0616;}async['getPopular'+_0x49c22f(0x9d,0x79)](_0x1b5cc5=0xa){const _0xd4f2f2=new URLSearchParams();function _0x25b8b0(_0x391184,_0x370491){return _0x1bc299(_0x370491,_0x391184-0x6e6);}_0xd4f2f2[_0x25b8b0(0x4f6,0x55d)]('limit',_0x1b5cc5[_0x25b8b0(0x442,0x460)]());const _0x1ccf76='/api/v1/me'+_0x3404f4(-0x105,-0x10e)+_0x25b8b0(0x493,0x439)+_0xd4f2f2['toString'](),_0x50e4c1=await this[_0x3404f4(-0xff,-0x10c)](_0x25b8b0(0x45e,0x496),_0x1ccf76);function _0x3404f4(_0x5396b1,_0x1d4b05){return _0x1bc299(_0x1d4b05,_0x5396b1-0x131);}return _0x50e4c1[_0x25b8b0(0x476,0x43a)]??[];}async['getTeamSta'+'ts'](_0x2a8fa9){function _0x3178e1(_0x34118e,_0x28949e){return _0x1bc299(_0x28949e,_0x34118e-0x5f2);}const _0x161bdd=await this[_0x3178e1(0x3c2,0x37f)](_0xeb51da(0x297,0x2e2),_0x3178e1(0x39c,0x343)+encodeURIComponent(_0x2a8fa9)+('/memories/'+_0xeb51da(0x382,0x37f)));function _0xeb51da(_0x178c8d,_0x585986){return _0x1bc299(_0x178c8d,_0x585986-0x56a);}const _0x3f16b8=_0x161bdd,_0x4e07af=_0x3f16b8[_0xeb51da(0x365,0x37f)]??_0x3f16b8;return{'totalMemories':_0x4e07af[_0x3178e1(0x3b4,0x3ec)+_0xeb51da(0x39e,0x38f)]??0x0,'totalNodes':_0x4e07af[_0x3178e1(0x38f,0x35a)+'s']??0x0,'lastSyncedAt':_0x4e07af['last_synce'+'d_at']??null};}async[_0x1bc299(-0x2c1,-0x2a7)+_0x49c22f(0x99,0xd5)](_0x28039b){function _0x8bbcc3(_0x121a51,_0x765558){return _0x49c22f(_0x765558,_0x121a51-0x161);}function _0x1e1e82(_0x11cbb9,_0xb03477){return _0x49c22f(_0x11cbb9,_0xb03477-0x98);}const _0x19e5e5=await this[_0x1e1e82(0xd6,0x126)](_0x1e1e82(0x187,0x135),_0x8bbcc3(0x1ea,0x18b)+_0x1e1e82(0x1a1,0x14a)+_0x8bbcc3(0x1ca,0x218),{'skill_memory_id':_0x28039b[_0x8bbcc3(0x1e5,0x1c7)+'ry_id'],'outcome':_0x28039b['outcome'],'difficulty':_0x28039b[_0x1e1e82(0x15b,0x143)],'context_tags':_0x28039b[_0x8bbcc3(0x1cd,0x177)+'gs'],'session_id':_0x28039b['session_id']});return _0x19e5e5;}async[_0x1bc299(-0x265,-0x2a7)+'iencyEvent'+'Batch'](_0x2f2eed){function _0x52677a(_0x159034,_0x5e1a57){return _0x49c22f(_0x159034,_0x5e1a57-0x455);}function _0x24b8c2(_0x399352,_0x40be74){return _0x49c22f(_0x40be74,_0x399352-0x3f1);}await this['request'](_0x52677a(0x4bb,0x4f2),_0x52677a(0x4d1,0x4de)+_0x24b8c2(0x4a3,0x45e)+'event/batc'+'h',{'events':_0x2f2eed});}async['listProfic'+_0x49c22f(0x50,0xaf)](_0x23873d){const _0x494a43=new URLSearchParams();_0x494a43[_0x391f14(0x3e0,0x391)](_0x391f14(0x3de,0x39a),_0x391f14(0x399,0x39f));if(_0x23873d)_0x494a43[_0x2a0d43(-0x17b,-0x130)]('project_pa'+'th',_0x23873d);function _0x2a0d43(_0x20b958,_0x2b2d3a){return _0x1bc299(_0x20b958,_0x2b2d3a-0xc0);}const _0x37b62d=_0x2a0d43(-0x16e,-0x175)+_0x391f14(0x368,0x33e)+_0x494a43['toString']();function _0x391f14(_0x8acbb4,_0x21b86c){return _0x1bc299(_0x8acbb4,_0x21b86c-0x581);}const _0x3407b4=await this['request']('GET',_0x37b62d);return _0x3407b4[_0x391f14(0x367,0x311)]??[];}async['analyzeEmo'+_0x49c22f(0x71,0x50)](_0x263743){function _0x5b63ef(_0x2d4b8d,_0x4ae8f9){return _0x1bc299(_0x4ae8f9,_0x2d4b8d-0x441);}function _0x1de6de(_0x454ed5,_0x1f817f){return _0x1bc299(_0x454ed5,_0x1f817f-0x449);}return this[_0x1de6de(0x269,0x219)](_0x1de6de(0x210,0x228),_0x5b63ef(0x1b8,0x1a0)+_0x1de6de(0x207,0x1ca)+'ion/emotio'+_0x1de6de(0x285,0x224),{'message':_0x263743[_0x1de6de(0x25a,0x239)](0x0,0x1f4)});}async['exportProf'+_0x49c22f(0x39,0x7a)](_0x6a55b,_0x447632){function _0x10cbcd(_0x23017c,_0x22c818){return _0x1bc299(_0x22c818,_0x23017c-0x247);}const _0x2aba56=await this[_0x5598f4(0x47f,0x4ca)](_0x5598f4(0x48e,0x4eb),_0x10cbcd(-0x2c,-0x11)+_0x5598f4(0x411,0x45a)+'ort',{'source_provider':_0x6a55b,'skill_ids':_0x447632??null});function _0x5598f4(_0x1306a4,_0x2b5240){return _0x1bc299(_0x2b5240,_0x1306a4-0x6af);}return _0x2aba56;}async[_0x49c22f(0x99,0x4d)+_0x49c22f(0x5a,0x7a)](_0x120bc2,_0x4c82d9){function _0x357335(_0x25828b,_0x2708a5){return _0x1bc299(_0x25828b,_0x2708a5-0x200);}const _0x1cccc2=await this[_0x2e1dd1(-0x233,-0x256)](_0x357335(0x5,-0x21),'/api/v1/tr'+'ansfer/imp'+'ort',{'package':_0x120bc2,'target_provider':_0x4c82d9});function _0x2e1dd1(_0x258d4b,_0x5456c1){return _0x1bc299(_0x5456c1,_0x258d4b- -0x3);}return _0x1cccc2;}async[_0x1bc299(-0x22c,-0x1f3)+_0x49c22f(0x51,0x58)+'ix'](){const _0x409bc9=await this[_0x3f7019(0x3fd,0x428)](_0x3f7019(0x3a5,0x3cd),'/api/v1/tr'+_0x1bc81f(0x1e9,0x1f7)+_0x1bc81f(0x131,0xee));function _0x3f7019(_0x5712e0,_0xa42bc7){return _0x1bc299(_0xa42bc7,_0x5712e0-0x62d);}function _0x1bc81f(_0x54db07,_0x522b00){return _0x1bc299(_0x522b00,_0x54db07-0x3d1);}return _0x409bc9[_0x1bc81f(0x142,0x183)]??[];}async[_0x1bc299(-0x2c1,-0x26c)+_0x49c22f(0x47,0x6f)](_0x169e36=0x1){const _0x1544ac=new URLSearchParams();function _0x292622(_0x34d7e8,_0x2fb9ff){return _0x1bc299(_0x2fb9ff,_0x34d7e8-0xfd);}function _0x2c296c(_0x190eb0,_0x20080a){return _0x1bc299(_0x190eb0,_0x20080a-0x426);}_0x1544ac['set'](_0x2c296c(0x22d,0x1ee),_0x169e36[_0x292622(-0x1a7,-0x204)]());const _0x676e66=_0x292622(-0x176,-0x1c6)+'ansfer/his'+_0x2c296c(0x1a4,0x1a4)+_0x1544ac[_0x2c296c(0x1c4,0x182)](),_0xe4b2bb=await this[_0x292622(-0x133,-0x112)](_0x292622(-0x18b,-0x1cf),_0x676e66);return _0xe4b2bb;}async[_0x49c22f(0x56,0x31)](_0x35e008,_0x4e02c0){function _0x9237d4(_0x3c5372,_0x16e7ef){return _0x49c22f(_0x3c5372,_0x16e7ef-0xeb);}const {readFileSync:_0x21aca9}=await import(_0x9237d4(0x17a,0x18e)),{basename:_0xe31acf}=await import(_0x9237d4(0x183,0x18f));function _0xe4710e(_0x411bc8,_0x37c3a1){return _0x49c22f(_0x37c3a1,_0x411bc8- -0x314);}const _0x63cbba=_0x21aca9(_0x35e008),_0x48ae94=_0xe31acf(_0x35e008),_0x32050b=new FormData();_0x32050b[_0x9237d4(0x1e3,0x182)](_0x9237d4(0x1a1,0x14c),new Blob([_0x63cbba]),_0x48ae94);if(_0x4e02c0[_0xe4710e(-0x2f3,-0x2b9)]){if(_0xe4710e(-0x2f9,-0x2e1)!==_0xe4710e(-0x2f9,-0x34a))return this[_0x9237d4(0x1d6,0x179)](_0xe4710e(-0x277,-0x287),_0x9237d4(0x186,0x153)+_0x225c58(_0x55ec06)+(_0xe4710e(-0x292,-0x266)+_0xe4710e(-0x253,-0x2b8)),{'memory_id':_0x15f565,'delta':_0x156a14});else _0x32050b[_0x9237d4(0x1ac,0x182)]('category',_0x4e02c0[_0x9237d4(0xd5,0x10c)]);}_0x4e02c0[_0xe4710e(-0x2a4,-0x2d4)]&&_0x4e02c0['tags'][_0x9237d4(0x1b9,0x15f)]>0x0&&_0x32050b[_0x9237d4(0x1e8,0x182)]('tags',_0x4e02c0[_0xe4710e(-0x2a4,-0x2ef)]['join'](','));const _0x2dd3b1=await this[_0xe4710e(-0x27a,-0x21f)+_0x9237d4(0x147,0x18a)](_0x9237d4(0x15d,0x188),_0x9237d4(0x15f,0x13f)+_0x9237d4(0x107,0x14b),_0x32050b),_0x19d291=_0x2dd3b1;return{'id':_0x19d291['file_id'],'filename':_0x19d291[_0x9237d4(0x10f,0x10d)]};}async['checkFileD'+_0x49c22f(0x6b,0x6e)](_0x253a12){function _0x5b5ddc(_0xbda734,_0x2ebdef){return _0x49c22f(_0xbda734,_0x2ebdef-0x344);}function _0x294eb1(_0x2e0f2b,_0x52d43b){return _0x49c22f(_0x2e0f2b,_0x52d43b-0x26b);}const _0x352212=await this['request']('POST',_0x294eb1(0x2e7,0x2bf)+_0x294eb1(0x2da,0x2a2)+_0x294eb1(0x373,0x33a),{'content_hash':_0x253a12}),_0x18c1b5=_0x352212;return{'exists':_0x18c1b5[_0x5b5ddc(0x3fb,0x3a1)+'te'],'file_id':_0x18c1b5['existing_f'+'ile']?.['id']};}async[_0x1bc299(-0x25f,-0x1fc)+_0x49c22f(0x8e,0xe4)](_0x124fc6,_0x24423f,_0x3fe307){const _0x10f632=await this[_0x4d0c16(0xaf,0x78)]('POST',_0x4eda2e(0x325,0x383)+_0x4eda2e(0x3a8,0x386),{'memory_id':_0x124fc6,'file_id':_0x24423f,'reference_type':_0x3fe307['reference_'+_0x4d0c16(0x7d,0x92)],'reference_path':_0x3fe307[_0x4eda2e(0x485,0x449)+'path']});function _0x4d0c16(_0x28bcdd,_0x9442ae){return _0x1bc299(_0x9442ae,_0x28bcdd-0x2df);}function _0x4eda2e(_0x10744f,_0x580942){return _0x1bc299(_0x10744f,_0x580942-0x625);}return _0x10f632;}async[_0x49c22f(0xb1,0xad)+'ext'](_0x305ce9){function _0x338d0f(_0x54af8a,_0x4f11c2){return _0x1bc299(_0x54af8a,_0x4f11c2-0x333);}function _0x32a8d1(_0x17c1de,_0xf1fccd){return _0x1bc299(_0x17c1de,_0xf1fccd-0x687);}return this[_0x32a8d1(0x462,0x457)](_0x338d0f(0x157,0x112),_0x338d0f(0x130,0x11e)+'g/contexts',_0x305ce9);}async['addContext'+_0x49c22f(-0x28,0x2c)](_0xa1eac7,_0xdd3fd8){function _0x3e1dad(_0x40d828,_0x169fe9){return _0x1bc299(_0x40d828,_0x169fe9-0x402);}function _0x335e4f(_0x1c7cf2,_0x542a67){return _0x1bc299(_0x1c7cf2,_0x542a67-0x4e8);}return this['request']('POST',_0x3e1dad(0x1ae,0x1ed)+'g/contexts'+'/'+_0xa1eac7+_0x335e4f(0x284,0x26c),_0xdd3fd8);}async[_0x1bc299(-0x1f8,-0x234)+_0x49c22f(0xb0,0x50)](_0x749c7c){function _0x4f7c57(_0x2f6359,_0x1573f0){return _0x1bc299(_0x1573f0,_0x2f6359-0x12a);}function _0x4ec75e(_0x101a8a,_0x110911){return _0x1bc299(_0x101a8a,_0x110911-0x72c);}return this['request'](_0x4ec75e(0x521,0x50b),'/api/v1/mc'+_0x4f7c57(-0xdc,-0x7f)+'s',_0x749c7c);}async[_0x49c22f(0xe8,0xcd)+'ntent'](_0x5cb335){function _0x13f8d8(_0x17014c,_0x30513b){return _0x1bc299(_0x30513b,_0x17014c-0xdd);}function _0x570596(_0x56ea34,_0x20288d){return _0x1bc299(_0x20288d,_0x56ea34-0x569);}try{const _0x523686=await this[_0x13f8d8(-0x153,-0x135)](_0x570596(0x348,0x30d),_0x13f8d8(-0x140,-0x141)+_0x13f8d8(-0x1be,-0x1f6)+'ssify',{'content':_0x5cb335[_0x13f8d8(-0x163,-0x1a2)]['slice'](0x0,0x7d0),'tags':_0x5cb335['tags']??[],'category':_0x5cb335[_0x13f8d8(-0x1c0,-0x1fb)]}),_0x3249f0=_0x523686;if(_0x3249f0[_0x570596(0x35e,0x344)]&&_0x3249f0[_0x570596(0x2ec,0x28b)])return _0x3249f0[_0x570596(0x2ec,0x308)];return null;}catch{return null;}}static [_0x49c22f(-0xc,0x4a)+_0x49c22f(0xda,0x8d)]=new Set([0x1ad,0x1f4,0x1f6,0x1f7,0x1f8]);static [_0x49c22f(0x4d,0x75)+'S']=0x3;static [_0x1bc299(-0x20b,-0x1ea)+_0x1bc299(-0x2cb,-0x295)]=0x3e8;async['request'](_0x404e62,_0xfe4400,_0x40687b){let _0x10567c;for(let _0x4793f4=0x0;_0x4793f4<A2AClient[_0x524339(0xfb,0xd3)+'S'];_0x4793f4++){const _0x3b078a=''+this['config'][_0x4c5969(0x3ad,0x361)]+_0xfe4400,_0x5493b3=new AbortController(),_0x1941ed=setTimeout(()=>_0x5493b3[_0x4c5969(0x39a,0x391)](),this[_0x4c5969(0x358,0x362)]);try{const _0x37f1cc=await fetch(_0x3b078a,{'method':_0x404e62,'headers':{'Content-Type':_0x524339(0xc5,0xdf)+_0x4c5969(0x3b2,0x34c),'x-api-key':this[_0x524339(0xd3,0xa5)][_0x4c5969(0x318,0x347)],'X-Plugin-Version':_pluginVersion,...this[_0x4c5969(0x406,0x3b1)+'tures'][_0x4c5969(0x316,0x359)]>0x0&&{'X-Plugin-Features':this[_0x4c5969(0x371,0x3b1)+'tures'][_0x524339(0x194,0x12e)](',')}},'body':_0x40687b?JSON[_0x4c5969(0x326,0x35b)](_0x40687b):undefined,'signal':_0x5493b3[_0x4c5969(0x355,0x313)]});clearTimeout(_0x1941ed);if(A2AClient[_0x4c5969(0x2eb,0x32f)+_0x4c5969(0x3c8,0x372)][_0x4c5969(0x35d,0x35c)](_0x37f1cc['status'])&&_0x4793f4<A2AClient[_0x524339(0x9e,0xd3)+'S']-0x1){const _0xdbb852=A2AClient[_0x4c5969(0x386,0x3b9)+_0x4c5969(0x2b8,0x30e)]*Math[_0x524339(0xbe,0x7b)](0x2,_0x4793f4);await new Promise(_0x590b7d=>setTimeout(_0x590b7d,_0xdbb852));continue;}!_0x37f1cc['ok']&&await this[_0x524339(0x11a,0xbc)+'rResponse'](_0x37f1cc);if(_0x404e62==='DELETE'&&_0x37f1cc[_0x524339(0x54,0x82)]===0xcc)return;return await _0x37f1cc[_0x4c5969(0x321,0x377)]();}catch(_0x33c3e1){if(_0x4c5969(0x336,0x38d)!==_0x524339(0x130,0x106))return;else{clearTimeout(_0x1941ed);if(_0x33c3e1 instanceof Error){if(getErrorStatus(_0x33c3e1)!==undefined){if(_0x524339(0x1a0,0x13e)!==_0x524339(0x147,0x13e))this[_0x524339(0x82,0xa5)]=_0x595cb1,this[_0x4c5969(0x39e,0x362)]=_0x55e190[_0x524339(0x82,0xdb)]??0xea60;else throw _0x33c3e1;}if(_0x33c3e1[_0x524339(0x108,0x138)][_0x524339(0x18c,0x13c)]('인증\x20실패')||_0x33c3e1[_0x4c5969(0x362,0x3bf)][_0x524339(0x194,0x13c)](_0x4c5969(0x343,0x325))||_0x33c3e1[_0x524339(0xff,0x138)][_0x4c5969(0x3cb,0x3c3)](_0x4c5969(0x351,0x39c))||_0x33c3e1['message'][_0x4c5969(0x3f2,0x3c3)]('HTTP\x20422'))throw _0x33c3e1;if(_0x4793f4<A2AClient[_0x524339(0x113,0xd3)+'S']-0x1){_0x10567c=_0x33c3e1;const _0x447157=A2AClient[_0x524339(0x183,0x132)+_0x4c5969(0x2d8,0x30e)]*Math[_0x524339(0x2e,0x7b)](0x2,_0x4793f4);await new Promise(_0x2ac13a=>setTimeout(_0x2ac13a,_0x447157));continue;}if(_0x33c3e1[_0x524339(0x164,0x105)]===_0x4c5969(0x2ce,0x319))throw new Error(_0x4c5969(0x2f2,0x30c)+this['timeout']+_0x524339(0x94,0x88));throw new Error(_0x524339(0x137,0x11c)+_0x33c3e1['message']);}throw _0x33c3e1;}}}function _0x524339(_0x329e51,_0x270815){return _0x1bc299(_0x329e51,_0x270815-0x31c);}function _0x4c5969(_0x40354e,_0x3aa3f4){return _0x1bc299(_0x40354e,_0x3aa3f4-0x5a3);}throw _0x10567c??new Error(_0x524339(0xd0,0xd0)+A2AClient[_0x524339(0x124,0xd3)+'S']+_0x524339(0xb2,0xb4));}async['requestMul'+_0x1bc299(-0x1b9,-0x21f)](_0x350875,_0x568537,_0x4f9245){function _0x3cfad2(_0xfaca93,_0x4f518f){return _0x1bc299(_0xfaca93,_0x4f518f-0x320);}function _0x189cf4(_0x22244d,_0x5ac3da){return _0x1bc299(_0x22244d,_0x5ac3da-0x52f);}const _0x3974df=''+this[_0x3cfad2(0xd8,0xa9)][_0x189cf4(0x28a,0x2ed)]+_0x568537,_0x2f784c=new AbortController(),_0xe12f36=setTimeout(()=>_0x2f784c[_0x3cfad2(0xae,0x10e)](),this['timeout']);try{const _0x76d3c8=await fetch(_0x3974df,{'method':_0x350875,'headers':{'x-api-key':this[_0x3cfad2(0x5c,0xa9)][_0x189cf4(0x293,0x2d3)],'X-Plugin-Version':_pluginVersion},'body':_0x4f9245,'signal':_0x2f784c[_0x3cfad2(0x82,0x90)]});return clearTimeout(_0xe12f36),!_0x76d3c8['ok']&&await this['handleErro'+'rResponse'](_0x76d3c8),await _0x76d3c8[_0x3cfad2(0xf0,0xf4)]();}catch(_0xd50b9f){clearTimeout(_0xe12f36);if(_0xd50b9f instanceof Error&&_0xd50b9f[_0x3cfad2(0x112,0x109)]===_0x3cfad2(0xba,0x96))throw new Error(_0x189cf4(0x252,0x298)+this[_0x3cfad2(0x81,0xdf)]+_0x189cf4(0x2c3,0x29b));throw _0xd50b9f;}}async['handleErro'+'rResponse'](_0x338af7){const _0x25f78c=_0x338af7[_0x150b1d(0x27,0x18)];if(_0x25f78c===0x191)throw withStatus(new Error(_0x150b1d(0x2d,0x1c)+'\x20Key를\x20확인하세'+'요'),0x191);if(_0x25f78c===0x1ad)throw withStatus(new Error('요청\x20제한:\x20잠시\x20'+_0x175488(-0x185,-0x131)),0x1ad);let _0x3385b3=_0x150b1d(0x13,0x61)+_0x25f78c;try{const _0x39e275=await _0x338af7[_0x150b1d(0x7b,0x86)]();if(Array[_0x175488(-0x143,-0x12f)](_0x39e275['detail'])){const _0xca8e9c=_0x39e275[_0x175488(-0x1a7,-0x18d)][_0x150b1d(0x47,0x8c)](_0x3ba352=>{const _0x33a5e0=Array[_0x5f4048(0x342,0x35a)](_0x3ba352['loc'])?_0x3ba352[_0xf6b5eb(-0x18e,-0x1e8)][_0xf6b5eb(-0x17e,-0x1a7)]('.'):'';function _0x5f4048(_0x178b74,_0x188c6c){return _0x175488(_0x188c6c-0x49d,_0x178b74);}const _0x552c8d=_0x3ba352[_0x5f4048(0x309,0x303)]??JSON[_0x5f4048(0x344,0x33f)](_0x3ba352);function _0xf6b5eb(_0x3d611a,_0x5573ee){return _0x175488(_0x3d611a- -0x7a,_0x5573ee);}return _0x33a5e0?_0x33a5e0+':\x20'+_0x552c8d:_0x552c8d;})[_0x175488(-0x104,-0x9d)](_0x175488(-0x18b,-0x139));_0x3385b3+=':\x20'+_0xca8e9c;}else{if(_0x39e275[_0x150b1d(0x34,0x21)])_0x175488(-0x11f,-0x12c)===_0x175488(-0x149,-0x112)?_0x3f9ee2['append'](_0x150b1d(0x79,0x64),_0x48c23e[_0x175488(-0x164,-0x1a3)]['join'](',')):_0x3385b3+=':\x20'+_0x39e275['detail'];else _0x39e275[_0x150b1d(0xb0,0xce)]&&(_0x3385b3+=':\x20'+_0x39e275[_0x175488(-0xfa,-0xe8)]);}}catch{}function _0x175488(_0x468a44,_0x537395){return _0x49c22f(_0x537395,_0x468a44- -0x1d4);}function _0x150b1d(_0x48e578,_0x3d02c7){return _0x49c22f(_0x48e578,_0x3d02c7- -0xc);}throw withStatus(new Error(_0x3385b3),_0x25f78c);}}function _0x252f(){const _0x44a051=['DxbSAwnHDgu','CKHPC3rVCNK','DgfNCW','Aw5JBhvKzv9LBq','7jQu7lkTioYlPo2mQdOG','Bw9YAwvZl2jHDa','BgvUz3rO','tufyx1jfvfjjrq','C3rYAw5NAwz5','AgfZ','DuzOAei','vgfNCW','AwnPzw5JAwvZ','B2zPy2LLBMn5pW','yMfZzvvYBa','DgLTzw91Da','y29UDgvUDa','revmrvrf','Dg90ywXFBwvTBW','yxbWBgLJyxrPBW','l21LBw9YAwvZlW','zwrKAw5N','C2TPBgXFBwvTBW','s2v5','CgfNzq','mtH5vevlC0m','Bw9YAwvZl3rHzW','l2fWAs92ms9WCG','y3jLyxrLuMvSyq','CezbCee','zgvSzxrLtwvTBW','u1rbvfvt','CMvXDwvZDa','ndi5vezRrKv2','twvTB3jPzxm','AxnbCNjHEq','ANnVBG','nJCXmdDgAejvrhG','Dhj1zq','zw5JCNLWDgLVBG','mJK2nJm1wNjkDvvn','yxbWzw5K','BwfW','BI9HBMfSExPL','CMvXDwvZDe11Ba','C2vHCMnO','w2eYyv0GCMvPBG','ue9tva','owv4twLiCa','DgLWyxj0','DgvZDenVBM5LyW','l2fWAs92ms90yq','Bw9YAwvZ','BM9KztPMCW','BM9KztPWyxrO','CMLLC0jHDgnO','ChjVBw90zu1LBq','BMfTzq','yufgDuq','l2fWAs92ms9TyW','vLzIwxi','zgLMzMLJDwX0Eq','ywjVCNq','y3jLyxrLq29UDa','C2XPy2u','AwvUy2LLCW','BM9KztP1CMW','Bw9YAwvZp2XPBq','B2zPy2LLBMn5lW','C3vJy2vZCW','ywrKvgvHBu1LBq','t0X2ufC','rhndDue','sfruuca0mdq','zY9YzwXHDgLVBG','Axq9mq','B25fBMfIBgvK','l2fWAs92ms90zq','u3bZu0e','Bwf4twvTB3jPzq','64sK7yQ47jUm7ygSioYyPoULMdOG','CMnO','Bg9J','C3LUyY9HChbSEq','y3jLyxrLtwvTBW','C2vHCMnOtwvTBW','AxnfBMnYExb0Aq','DxrMltG','DMvYC2LVBG','mta3ndaXntjoD3Psvuq','B2zMC2v0','yMvKzgLUzW','n1byvLLKyq','z2v0q29TCgf0Aq','zw5HyMXLzezLyq','y2XHC3nPzNLdBW','C2v0','zhvWBgLJyxrL','AM9PBG','y2XLyxjfBMnYEq','z2vUzxjHDgvezq','C3rHDhm','qKftrv9eruXbwq','AwvUy3LfDMvUDa','yw5ZzMvYl2nVBq','CgfNzv9ZAxPL','BgLZDfrLyw1Z','mJyXndyYmgjNCe9uuG','BwvZC2fNzq','Aw9Us2v5','mtaW','C2vHCMnOvgvHBq','C3rHCNrZv2L0Aa','mteZnJzOBgzeruK','tKLcu1a','yNL0zxpSL6ZSLBWG7zwP64Ui','CMvMzxjLBMnLxW','CMLLCW','CNLgAwXLtgLUAW','Cg9ZDfbYB2zPyW','l3jLAw5MB3jJzq','zw1VCNK','Dg9tDhjPBMC','vKfeCvG','l2fWAs92ms9Tzq','Cg93','Cgf0AwjPBgL0Eq','Bw9YEs1MAwXLCW','yw5ZzMvYl2v4Ca','y2f0zwDVCNK','zMLSzw5HBwu','Eg9UB215l2nSyq','C3rHDhvZ','Aw5JBhvKzuvTyG','BgLZDe1LBw9YAq','7jQu7lkTioYlNoQWHcdSTiJQS7W6ia','7j247kADioYlPo2mQdOGqvbj','x01t','BxpRPBWG64sy7jEi7iQ164Ui64UK','B3j5','twvTyMvY','zgv0ywLS','C2LNBMfS','Bwf0CML4','ndCYmtG4ugXmzfzd','DxbSB2fKrMLSzq','zw1IBgu','EuzLzwrIywnRia','qwjVCNrfCNjVCG','l2fWAs92ms9Wzq','r0vu','BgvZl2nOzwnRlq','Bwf4vg9Rzw5Z','Bw9YAwvZl3n0yq','BxnN','z2v0u3rHDhm','Dg9YEt8','mJbZvg9rteG','ywDLlMPZB24','CNnVBMfSAxPHDa','sfruuca0mdm','CMvZDwX0','l21LBwjLCNm','DxbKyxrLtwvTBW','ywnR','CMvPBMzVCMnLtq','Bw9YAwvZl2fZCW','y29UzMLN','yw1Z','ihWG','uKvuuLLbqKXfxW','l2fWAs92ms90CG','mJu2mdmZoe9ZyKTsuq','Aw1WB3j0uhjVzG','AxrLBxm','7zUeioUlPoYlNcdSI5ZRJ4tTLzJSHlJSMPq','DgLVBG','C2v0rw5JCNLWDa','z2v0vhjHBNnMzq','zMfPBgvKigzVCG','l2fWAs92ms9MAq','DgLLCG','7zQmioYERoYlNoUpHcdTM4qG7iUK7yYO','y2f0zwDVCMLLCW','yMLSAxr5twf0CG','zM9Yy2vnzw1VCG','mJeXr09VDefd','Dg90ywXFBM9Kzq','DhLWzq','AxnFzhvWBgLJyq','AgfUzgXLrxjYBW','BgLTAxq','BgvZl3vWBg9Hza','zMLSzq','yxbPs2v5','DhvYzxm','ChrPB25lzxK','C2v0rw5HyMXLza','Bw9YAwvZlW','BI9QC29U','l3rLyw1ZlW','zxzLBNq','lI4VlI4VCgfJAW','CY9WB3b1BgfYpW','y29UDgv4Df90yq','sfruuca'];_0x252f=function(){return _0x44a051;};return _0x252f();}
1
+ function _0x5f1219(_0x165068,_0x30b277){return _0x3713(_0x30b277-0x2c9,_0x165068);}(function(_0x3eb7e4,_0x48f50e){function _0x3ddceb(_0x19158b,_0x571bb8){return _0x3713(_0x571bb8- -0x1b0,_0x19158b);}const _0x247241=_0x3eb7e4();function _0x1a7996(_0x40f902,_0x2ce885){return _0x3713(_0x40f902- -0x301,_0x2ce885);}while(!![]){try{const _0x75dd82=-parseInt(_0x3ddceb(-0xf,0x47))/0x1+parseInt(_0x1a7996(-0x11c,-0xb4))/0x2*(parseInt(_0x1a7996(-0x90,-0x8a))/0x3)+parseInt(_0x1a7996(-0xac,-0x100))/0x4+parseInt(_0x3ddceb(0xc9,0x79))/0x5*(parseInt(_0x3ddceb(0x6d,0xc6))/0x6)+parseInt(_0x1a7996(-0xe1,-0xae))/0x7+-parseInt(_0x3ddceb(0x37,0x74))/0x8*(-parseInt(_0x1a7996(-0xe6,-0xee))/0x9)+parseInt(_0x3ddceb(0xdf,0xa6))/0xa*(-parseInt(_0x1a7996(-0x4a,-0x6a))/0xb);if(_0x75dd82===_0x48f50e)break;else _0x247241['push'](_0x247241['shift']());}catch(_0x58abde){_0x247241['push'](_0x247241['shift']());}}}(_0xf69e,0xbbe7e));import{encryptContent,decryptContent,wrapEncryptedContent,unwrapEncryptedContent}from'./encryption.js';function _0xf69e(){const _0x5b9e27=['C3LUyY9HChbSEq','yxbPs2v5','7jQu7lkTioYlNoQWHcdSTiJQS7W6ia','Axq9mq','wLjQtu0','DgLLCG','sfruuca0mdq','ywrKq29UDgv4Da','C3LUyY9KzwX0yq','w2eYyv0GCMvPBG','sfruuca0mdm','zY9JB250zxH0CW','Dhj1zq','B25fBMfIBgvK','7zUeioUlPoYlNcdSI5ZRJ4tTLzJSHlJSMPq','BgvZl2nOzwnRlq','zgv0ywLS','7jQu7lkTioYlPo2mQdOG','DgfNCW','BxnN','yNL0zxpSL6ZSLBWG7zwP64Ui','l3bYB21VDgu','l3jLAw5MB3jJzq','zw1VCNLgzwvKyG','CgfYC2u','yxbWBgLJyxrPBW','mJK1mtK2shLdCufN','odbTzu9xreK','y3jLyxrLq29UDa','ywDLlMPZB24','BgLTAxq','tufyx1jfvfjjrq','wxzYsKK','CuX0C0K','AxrLBxm','zKXXA2G','CNnVBMfSAxPHDa','twvTB3jPzxm','yMLSAxr5twf0CG','BxpRPBWG64sy7jEi7iQ164Ui64UK','zxzLBNq','sfruuca0mJi','yw5HBhL6zuvTBW','y3jLyxrLuMvSyq','DxbSAwnHDgu','AwXL','s2v5','z2v0q29TCgf0Aq','l2fWAs92ms9TyW','y3jLyxrLtwvTBW','Bw9YAwvZl2fZCW','CMvXDwvZDe11Ba','x01t','yw5ZzMvYl2v4Ca','ndKYuufmuuvH','DxbKyxrLtwvTBW','CgfNzq','DhLWzq','AgfZ','mtqXnZaYqKH5D2rJ','BgLZDe1LBw9YAq','64sK7yQ47jUm7ygSioYyPoULMdOG','lI4VlI4VCgfJAW','zw5JCNLWDgLVBG','r3vXwg0','zxHPC3rPBMDFzG','l2fWAs92ms90zq','AxnbCNjHEq','uuvkwLq','ue9tva','u1rbvfvt','zw1IBgu','7jQu7lkTioYGNo2vNdOG7j6G7iUCia','Bw9YAwvZ','7jwu7zI47zMuio2cPoUkLcaZmIa','6RcaioYxHUYkTEUlIoUlPa','zgvJCNLWDe1LBq','BgLZDfrLyw1nzq','l2fWAs92ms90yq','B2zPy2LLBMn5pW','zMLSzw5HBwu','BM9KztPMCW','l2fWAs92ms90CG','BNrLEhq','Bw9YAwvZl3n0yq','Dg90ywXFBwvTBW','CMvPBMzVCMnLtq','l21LBw9YAwvZ','Aw9Ul2vTB3rPBW','y2f0zwDVCNK','BM9KztP1CMW','zMLSzq','AgfUzgXLrxjYBW','DgLTzw91Da','CMvZDwX0','yMvKzgLUzW','CMvMzxjLBMnLxW','B3j0','Bwf0CML4','zgLMzMLJDwX0Eq','D2rXDg8','zY9YzwXHDgLVBG','rgjfALq','yxnZzw1IBgvdBW','uKvuuLLbqKXfxW','Bw9YAwvZl3nLyq','y29UzMLN','CMXUC1C','y2XHC3nPzNLdBW','BgvUz3rO','qwjVCNrfCNjVCG','DxrMltG','B2zPy2LLBMn5lW','DMvYC2LVBG','y2XLyxjfBMnYEq','B3v0y29Tzq','z2v0ug9WDwXHCG','C3rYAw5NAwz5','DgLVBG','qKftrv9eruXbwq','ANnVBG','BNjer1K','Cg9ZDfbYB2zPyW','C3rHDhvZ','mZu5odqXovDLuK5HrW','yMfZzvvYBa','B2zMC2v0','zMLSzv9Pza','ywnR','B3j5','ChjVBw90zu1LBq','DhvYzxm','C3rHCNrZv2L0Aa','zgvSzxrLtwvTBW','Dg90ywXFBM9Kzq','CMvXDwvZDa','mte3otzfDejfC0C','y29UDgvUDa','C2HSExi','CKHPC3rVCNK','twvTyMvY','BwfW','yw1Z','qu9pBvO','CgfNzv9ZAxPL','C2v0','y2f0zwDVCMLLCW','Aw5JBhvKzuvTyG','Aw1WB3j0uhjVzG','CY9WB3b1BgfYpW','ChrPB25lzxK','z2v0vgvHBvn0yq','DgLWyxj0','Cgf0AwjPBgL0Eq','ody3nJe4EgrWA3HJ','BgvZl3vWBg9Hza','Cg93','AM9PBG','Bw9YAwvZl3rHzW','l21LBwjLCNm','C3nPzNK','BMfTzq','Dg9tDhjPBMC','C2TPBgXFBwvTBW','zxH0','C2XPy2u','y2HLy2TgAwXLra','l3rLyw1ZlW','yw5ZzMvYl2HPCW','zwrKAw5N','ywrKvgvHBu1LBq','AwnPzw5JAwvZ','EuzLzwrIywnRia','l2fWAs92ms9Tzq','BgfZDf9ZEw5Jzq','Bg9J','CNLgAwXLtgLUAW','DxbSB2fKrMLSzq','AwvUy2LLCW','CMnO','C2v0rw5HyMXLza','zxzLBNqVyMf0yW','Bw9YAwvZp2XPBq','Bw9YAwvZl2jHDa','zxjYB3i','C3rHDhm','Bwf4twvTB3jPzq','CLjLC3bVBNnL','ufvu','l2fWAs92ms9WCG','mtH4wezsreS','zMfPBgvKigzVCG','BwvZC2fNzq','C2vHCMnOvgvHBq','r0vu','nJa3nJaXnenrz1PiBa','CMLLC0jHDgnO','Aw9Us2v5','C2vHCMnO','mZi0mduZnMvREw9ktG','yxbWzw5K','C2v0rw5JCNLWDa','zM9Yy2vnzw1VCG','revmrvrf','mZi1uLLWEuzO','zxH0oIdSNzhRI7xSL5aGyW','vgfNCW','yM5Xz3y','zf9HDa','CMLLCW','ugHrwey','BgLZDfrLyw1Z','rMvHDhvYzxm','BM9KztPWyxrO','mc4WlJa','l21LBw9YAwvZlW','l2fWAs92ms9MAq','BI9QC29U','zw5HyMXLzezLyq','l2fWAs92ms9Wzq','Bw9YAwvZlW','CNLFAwq'];_0xf69e=function(){return _0x5b9e27;};return _0xf69e();}function _0x4082ab(_0x26bd03,_0xa071c8){return _0x3713(_0xa071c8-0x1fc,_0x26bd03);}function _0x3713(_0x2f0207,_0x386b1c){_0x2f0207=_0x2f0207-0x1dd;const _0xf69ee5=_0xf69e();let _0x371396=_0xf69ee5[_0x2f0207];if(_0x3713['gPSyQl']===undefined){var _0x1188b2=function(_0x4448d2){const _0x1d6ecf='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x1730d3='',_0xeeb633='';for(let _0x561c67=0x0,_0x870f97,_0x4eed4a,_0xcccd33=0x0;_0x4eed4a=_0x4448d2['charAt'](_0xcccd33++);~_0x4eed4a&&(_0x870f97=_0x561c67%0x4?_0x870f97*0x40+_0x4eed4a:_0x4eed4a,_0x561c67++%0x4)?_0x1730d3+=String['fromCharCode'](0xff&_0x870f97>>(-0x2*_0x561c67&0x6)):0x0){_0x4eed4a=_0x1d6ecf['indexOf'](_0x4eed4a);}for(let _0x199b75=0x0,_0xb34a2a=_0x1730d3['length'];_0x199b75<_0xb34a2a;_0x199b75++){_0xeeb633+='%'+('00'+_0x1730d3['charCodeAt'](_0x199b75)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0xeeb633);};_0x3713['fRbgxU']=_0x1188b2,_0x3713['mJKkTH']={},_0x3713['gPSyQl']=!![];}const _0x2caa05=_0xf69ee5[0x0],_0x4115c6=_0x2f0207+_0x2caa05,_0x5e44e8=_0x3713['mJKkTH'][_0x4115c6];return!_0x5e44e8?(_0x371396=_0x3713['fRbgxU'](_0x371396),_0x3713['mJKkTH'][_0x4115c6]=_0x371396):_0x371396=_0x5e44e8,_0x371396;}function withStatus(_0x215d17,_0x167eac){function _0x22e6f5(_0x12d5ca,_0x557f6a){return _0x3713(_0x12d5ca-0xd2,_0x557f6a);}return _0x215d17[_0x22e6f5(0x388,0x3f4)]=_0x167eac,_0x215d17;}export function getErrorStatus(_0x31e6f1){function _0x4bf6e4(_0x4aee6b,_0x4a27d8){return _0x3713(_0x4a27d8-0x325,_0x4aee6b);}return _0x31e6f1 instanceof Error?_0x31e6f1[_0x4bf6e4(0x615,0x5db)]:undefined;}let _pluginVersion=_0x5f1219(0x4b7,0x4fc);try{const {readFileSync}=await import(_0x5f1219(0x52b,0x555)),{fileURLToPath}=await import(_0x4082ab(0x42b,0x491)),{dirname,join}=await import('node:path'),__dirname=dirname(fileURLToPath(import.meta.url)),pkg=JSON[_0x5f1219(0x578,0x51c)](readFileSync(join(__dirname,_0x5f1219(0x4fe,0x542)+_0x4082ab(0x4b3,0x454)),_0x4082ab(0x4f8,0x4a6)));_pluginVersion=pkg[_0x4082ab(0x4d0,0x4a8)]||_0x4082ab(0x3f9,0x42f);}catch{}export class A2AClient{[_0x5f1219(0x549,0x56e)];[_0x5f1219(0x59a,0x561)];[_0x4082ab(0x4a5,0x476)+_0x5f1219(0x552,0x532)]=null;[_0x5f1219(0x4af,0x500)+_0x5f1219(0x462,0x4a9)]=[];constructor(_0x54b200){function _0x561ac8(_0x3c4442,_0x5b430f){return _0x5f1219(_0x5b430f,_0x3c4442- -0x253);}this['config']=_0x54b200;function _0xbe68fa(_0x564d08,_0x5e4582){return _0x5f1219(_0x5e4582,_0x564d08- -0x4d2);}this[_0x561ac8(0x30e,0x2f6)]=_0x54b200[_0xbe68fa(0x8f,0x73)]??0xea60;}[_0x5f1219(0x53e,0x4da)+_0x5f1219(0x4e2,0x4fa)](_0xd3ee46){function _0x4e52c1(_0x136295,_0x4c1fa5){return _0x4082ab(_0x4c1fa5,_0x136295-0x16a);}this[_0x4e52c1(0x59d,0x5b3)+'tures']=_0xd3ee46;}[_0x5f1219(0x4a7,0x4ef)+_0x4082ab(0x41b,0x41e)](_0x1489da){function _0x55cca4(_0x24204c,_0x2f48c8){return _0x5f1219(_0x24204c,_0x2f48c8- -0x67a);}function _0x2cbf96(_0x5d1070,_0x154b53){return _0x5f1219(_0x5d1070,_0x154b53- -0x61f);}if(_0x1489da[_0x55cca4(-0xff,-0x109)]!==0x20)throw new Error(_0x2cbf96(-0x9a,-0xd1)+_0x2cbf96(-0xe6,-0x107)+'다');this[_0x2cbf96(-0xdf,-0xdc)+_0x55cca4(-0x154,-0x148)]=_0x1489da;}[_0x5f1219(0x59b,0x576)+_0x5f1219(0x49f,0x4bc)](){function _0x5bcd7c(_0x5c2c1e,_0x529a5f){return _0x5f1219(_0x5c2c1e,_0x529a5f- -0x68e);}function _0x5a2b7c(_0x5a953d,_0x6771d9){return _0x5f1219(_0x5a953d,_0x6771d9- -0x471);}this[_0x5bcd7c(-0x163,-0x14b)+_0x5a2b7c(0x100,0xc1)]=null;}['isEncrypti'+_0x5f1219(0x562,0x511)](){function _0x4b7d10(_0xefb276,_0x477e2c){return _0x4082ab(_0x477e2c,_0xefb276- -0x36d);}function _0x5a54a0(_0x26edf3,_0x1cbb80){return _0x4082ab(_0x1cbb80,_0x26edf3- -0x437);}return this[_0x5a54a0(0x3f,0xa0)+_0x4b7d10(0xf8,0x11f)]!==null;}async[_0x4082ab(0x403,0x468)+'ry'](_0x629fdd){let _0x23e6aa=_0x629fdd['content'];function _0x204c3f(_0x439064,_0x268e78){return _0x4082ab(_0x268e78,_0x439064-0x1be);}if(this['encryption'+_0x875062(0x3d1,0x383)]){const _0x1fe90f=encryptContent(_0x629fdd['content'],this[_0x875062(0x3e2,0x3b6)+_0x204c3f(0x623,0x673)]);_0x23e6aa=wrapEncryptedContent(_0x1fe90f);}const _0x1cc72d=await this[_0x204c3f(0x59e,0x5ff)](_0x204c3f(0x63a,0x682),_0x875062(0x372,0x3dd)+_0x875062(0x3ec,0x423),{'content':_0x23e6aa,'category':_0x629fdd[_0x204c3f(0x64e,0x624)],'tier':_0x629fdd[_0x204c3f(0x5fa,0x5e3)],'tags':_0x629fdd[_0x875062(0x3b5,0x35d)]??[]}),_0x4e739c=_0x1cc72d;function _0x875062(_0x409c93,_0x53e4e){return _0x4082ab(_0x53e4e,_0x409c93- -0x94);}if(this[_0x875062(0x3e2,0x3fb)+_0x204c3f(0x623,0x692)]&&_0x4e739c[_0x204c3f(0x5a0,0x5f2)]){const _0x318fe3=unwrapEncryptedContent(_0x4e739c[_0x875062(0x34e,0x387)]);_0x318fe3&&(_0x4e739c['content']=decryptContent(_0x318fe3,this['encryption'+_0x204c3f(0x623,0x628)]));}return _0x4e739c;}async['searchMemo'+_0x4082ab(0x42c,0x42a)](_0x420a31,_0x4816e5){function _0x587807(_0x4b17cc,_0x484483){return _0x4082ab(_0x484483,_0x4b17cc-0x1df);}function _0x476148(_0x331e09,_0x5d5813){return _0x4082ab(_0x5d5813,_0x331e09- -0x465);}const _0x1c8840=await this[_0x476148(-0x85,-0xbb)]('POST','/api/v1/me'+_0x587807(0x67f,0x66f)+_0x587807(0x5eb,0x5a4),{'query':_0x420a31,'limit':_0x4816e5?.[_0x476148(-0x10,-0x7b)]??0xa,'category':_0x4816e5?.[_0x587807(0x66f,0x67a)]});return _0x1c8840[_0x587807(0x638,0x658)]??[];}async[_0x4082ab(0x472,0x473)+'es'](_0x407715){const _0x30bb6d=new URLSearchParams();if(_0x407715?.['limit'])_0x30bb6d[_0x378c7c(0xa5,0x86)](_0x378c7c(0xce,0xf1),_0x407715[_0x8cdb95(0x270,0x256)][_0x378c7c(0x54,0x97)]());if(_0x407715?.['offset'])_0x30bb6d[_0x378c7c(0x77,0x86)](_0x8cdb95(0x248,0x2b6),_0x407715[_0x8cdb95(0x308,0x2b6)][_0x378c7c(0xf5,0x97)]());if(_0x407715?.[_0x8cdb95(0x1be,0x1ed)+_0x378c7c(0x97,0x9e)])_0x30bb6d[_0x378c7c(0x84,0x86)]('include_em'+_0x8cdb95(0x22f,0x297),_0x8cdb95(0x210,0x244));const _0x11a4ad=_0x378c7c(0xe0,0xa2)+'mories'+(_0x30bb6d[_0x8cdb95(0x1f5,0x1fc)]()?'?'+_0x30bb6d[_0x8cdb95(0x1c0,0x1fc)]():'');function _0x378c7c(_0x384a7f,_0x5ef754){return _0x4082ab(_0x384a7f,_0x5ef754- -0x364);}const _0x3e2c5a=await this[_0x378c7c(0xf,0x7c)](_0x8cdb95(0x215,0x21c),_0x11a4ad);function _0x8cdb95(_0x82f2ea,_0x55b66f){return _0x4082ab(_0x82f2ea,_0x55b66f- -0x1ff);}const _0x444a68=_0x3e2c5a[_0x8cdb95(0x255,0x25a)]??[];if(this[_0x8cdb95(0x269,0x277)+'Key'])return _0x444a68[_0x378c7c(0x5f,0x82)](_0x73e9de=>this[_0x378c7c(0x126,0x11f)+_0x8cdb95(0x1f5,0x1db)](_0x73e9de));return _0x444a68;}['decryptMem'+_0x4082ab(0x3ca,0x3da)](_0x3d4a78){function _0x120eec(_0x212b8c,_0x14eec1){return _0x5f1219(_0x212b8c,_0x14eec1- -0x4fa);}function _0x34e2c5(_0xd9e8af,_0x45e269){return _0x5f1219(_0xd9e8af,_0x45e269- -0x584);}if(!this[_0x34e2c5(-0x90,-0x41)+_0x34e2c5(-0x52,-0x52)])return _0x3d4a78;const _0x5e4722={..._0x3d4a78};if(_0x5e4722[_0x34e2c5(-0x78,-0xd5)]){if(_0x34e2c5(-0xe7,-0xcf)!==_0x34e2c5(-0x52,-0x5d)){const _0x4d7768=unwrapEncryptedContent(_0x5e4722[_0x120eec(-0x7a,-0x4b)]);if(_0x4d7768)try{_0x5e4722['content']=decryptContent(_0x4d7768,this[_0x120eec(0x4e,0x49)+_0x34e2c5(-0x30,-0x52)]);}catch{}}else{const _0x344990=_0x2be72e(_0x2a10df['content'],this['encryption'+_0x120eec(-0xd,0x38)]);_0x5d7a4d=_0x1506bb(_0x344990);}}return _0x5e4722;}async[_0x5f1219(0x52e,0x53b)+'ry'](_0x4c9760,_0x46e1d8){function _0x563978(_0x2811e6,_0x4b5888){return _0x4082ab(_0x2811e6,_0x4b5888- -0x44c);}function _0x198bc6(_0x4920e0,_0x4d4145){return _0x4082ab(_0x4920e0,_0x4d4145-0x70);}const _0x14dc14=await this[_0x198bc6(0x487,0x450)](_0x198bc6(0x464,0x485),'/api/v1/me'+_0x198bc6(0x49e,0x4a5)+_0x4c9760,_0x46e1d8);return _0x14dc14;}async[_0x4082ab(0x3a5,0x3de)+'ry'](_0x3fddd7){await this['request']('DELETE','/api/v1/me'+'mories/'+_0x3fddd7);}async[_0x5f1219(0x50b,0x4f9)](){const _0x4e083a=await this[_0x3dd756(0x437,0x405)](_0x3dd756(0x424,0x440),_0x3dd756(0x475,0x49e)+_0x3dd756(0x3bd,0x40c));function _0x30d374(_0x42fc63,_0x11fae7){return _0x4082ab(_0x11fae7,_0x42fc63- -0x388);}if(Array[_0x3dd756(0x4ed,0x49f)](_0x4e083a))return _0x4e083a;function _0x3dd756(_0x322670,_0x39b4ec){return _0x4082ab(_0x322670,_0x39b4ec-0x25);}return _0x4e083a[_0x30d374(0xd1,0x10f)]??[];}async[_0x5f1219(0x564,0x551)+_0x4082ab(0x445,0x480)](_0xa0df0d,_0x5a90f7){const _0x4df742=new URLSearchParams();function _0x6ae378(_0x177ee3,_0x36391b){return _0x5f1219(_0x177ee3,_0x36391b- -0x3bd);}if(_0x5a90f7?.[_0x3dc59a(0x333,0x3a1)])_0x4df742[_0x3dc59a(0x2c8,0x31e)]('limit',_0x5a90f7[_0x3dc59a(0x333,0x353)][_0x6ae378(0x16a,0x10b)]());if(_0x5a90f7?.[_0x6ae378(0x1e0,0x1c5)])_0x4df742[_0x6ae378(0xcc,0xfa)]('offset',_0x5a90f7[_0x6ae378(0x17b,0x1c5)][_0x6ae378(0xc2,0x10b)]());const _0xab09b0=_0x4df742['toString']();function _0x3dc59a(_0x29884c,_0x1c7816){return _0x5f1219(_0x1c7816,_0x29884c- -0x1ef);}const _0x421cfc='/teams/'+encodeURIComponent(_0xa0df0d)+_0x6ae378(0x14f,0x19e)+(_0xab09b0?'?'+_0xab09b0:''),_0x874794=await this[_0x6ae378(0xae,0xf0)](_0x6ae378(0x18f,0x12b),_0x421cfc);return _0x874794['items']??[];}async[_0x5f1219(0x482,0x4d0)+'ory'](_0x238c1e,_0x50362e){function _0x5b0c6b(_0x1e537a,_0x3e3bbd){return _0x5f1219(_0x1e537a,_0x3e3bbd-0x7d);}const _0x1757f0=await this[_0x1ecafe(0x315,0x348)](_0x1ecafe(0x446,0x3e4),_0x5b0c6b(0x4e8,0x54a)+encodeURIComponent(_0x238c1e)+_0x5b0c6b(0x591,0x5d8),_0x50362e);function _0x1ecafe(_0xa535e,_0xa3628d){return _0x5f1219(_0xa535e,_0xa3628d- -0x165);}return _0x1757f0;}async[_0x5f1219(0x4a3,0x4e7)+_0x4082ab(0x416,0x45c)](_0x240fd6,_0x240d62,_0x4c11a6){function _0x5ccf62(_0x19eb60,_0x2d0577){return _0x5f1219(_0x2d0577,_0x19eb60- -0x57d);}function _0x57abd8(_0x389f53,_0x19ddf7){return _0x5f1219(_0x19ddf7,_0x389f53- -0x26);}const _0x3ddabe=await this[_0x57abd8(0x487,0x426)](_0x57abd8(0x523,0x56b),_0x5ccf62(-0xb0,-0x72)+encodeURIComponent(_0x240fd6)+(_0x57abd8(0x4d7,0x48f)+_0x5ccf62(-0x91,-0x2a)),{'query':_0x240d62,'limit':_0x4c11a6?.[_0x57abd8(0x4fc,0x551)]??0xa,'category':_0x4c11a6?.[_0x5ccf62(-0x20,-0x8e)]});return _0x3ddabe[_0x57abd8(0x500,0x548)]??[];}async['generateDe'+'lta'](_0x4f649b,_0x41b95d,_0x362565){function _0x1b8669(_0x9b4dc9,_0xbfe530){return _0x4082ab(_0x9b4dc9,_0xbfe530-0x147);}function _0x2826f7(_0x1a0f68,_0x460895){return _0x4082ab(_0x1a0f68,_0x460895-0x1a1);}return this[_0x2826f7(0x5b2,0x581)](_0x1b8669(0x567,0x5c3),_0x2826f7(0x5df,0x5a1)+encodeURIComponent(_0x4f649b)+(_0x1b8669(0x57e,0x577)+_0x2826f7(0x62f,0x5e0)),{'memory_id':_0x41b95d,'vector_clock':_0x362565});}async['applyDelta'](_0x4fdc8b,_0x379501,_0xf48cda){function _0x329d57(_0x44b345,_0xbe8e89){return _0x4082ab(_0xbe8e89,_0x44b345-0x73);}function _0x5ab1e2(_0x20792f,_0x11a692){return _0x4082ab(_0x11a692,_0x20792f- -0x81);}return this[_0x329d57(0x453,0x3f7)]('POST','/teams/'+encodeURIComponent(_0x4fdc8b)+(_0x329d57(0x4a3,0x50a)+_0x329d57(0x4aa,0x4a5)),{'memory_id':_0x379501,'delta':_0xf48cda});}async['createMemo'+_0x5f1219(0x4b1,0x4ea)](_0x14d30f){function _0x2ab622(_0x57628e,_0x3e9de7){return _0x4082ab(_0x3e9de7,_0x57628e- -0x49c);}const _0x47d1f8=await this['request']('POST',_0x2ab622(-0x96,-0x81)+_0x2ab622(-0x8c,-0x46)+'ch',{'items':_0x14d30f});function _0xf8fe1c(_0x1c6a8a,_0x2ad259){return _0x4082ab(_0x2ad259,_0x1c6a8a- -0x5b);}return _0x47d1f8;}async['testConnec'+_0x5f1219(0x569,0x57a)](){function _0x500f38(_0x485758,_0x2ce890){return _0x5f1219(_0x485758,_0x2ce890-0x116);}function _0x498732(_0x30f880,_0x29c6aa){return _0x5f1219(_0x29c6aa,_0x30f880-0x2f);}try{return await this['request'](_0x500f38(0x654,0x5fe),'/api/v1/me'+_0x498732(0x50b,0x535)+_0x498732(0x536,0x589)),!![];}catch{if(_0x498732(0x537,0x578)!==_0x498732(0x597,0x5cc))return![];else throw new _0x60c622('암호화\x20키는\x2032\x20'+_0x500f38(0x66b,0x62e)+'다');}}async[_0x5f1219(0x591,0x56b)+_0x5f1219(0x576,0x557)](_0x33a83d,_0xd3d789){function _0x412711(_0x3c857f,_0x113dee){return _0x5f1219(_0x113dee,_0x3c857f- -0x1ee);}const _0x4f14b6=await this[_0x1c0916(0x488,0x498)](_0x412711(0x35b,0x315),'/api/v1/me'+_0x412711(0x348,0x32b)+_0x1c0916(0x526,0x50e),{'query':_0x33a83d,'max_memories':_0xd3d789?.[_0x412711(0x2f2,0x32a)+'s']??0x5,'max_tokens':_0xd3d789?.['maxTokens']??0x7d0,'categories':_0xd3d789?.[_0x412711(0x2ca,0x328)],'tier':_0xd3d789?.[_0x1c0916(0x4e4,0x520)]});function _0x1c0916(_0xb15523,_0xa7b673){return _0x5f1219(_0xa7b673,_0xb15523- -0x25);}return _0x4f14b6;}async['reinforceM'+'emory'](_0xc9b828){function _0x22511d(_0x42f09d,_0x1a8c4a){return _0x4082ab(_0x1a8c4a,_0x42f09d- -0x5dc);}const _0x936e91=await this['request'](_0x4df7de(0x3eb,0x409),'/api/v1/me'+_0x4df7de(0x3f0,0x3c2)+_0xc9b828+_0x22511d(-0x18f,-0x18a));function _0x4df7de(_0x4f182d,_0x284c00){return _0x4082ab(_0x4f182d,_0x284c00- -0x73);}return _0x936e91;}async[_0x4082ab(0x483,0x48d)+_0x5f1219(0x4ad,0x51b)+_0x4082ab(0x400,0x3d9)](_0x31ad1f,_0x1c3a72){function _0x1aa512(_0x4cf609,_0x1e14fc){return _0x5f1219(_0x1e14fc,_0x4cf609- -0x454);}function _0x390280(_0x26ba2d,_0x5e31be){return _0x5f1219(_0x5e31be,_0x26ba2d- -0x4b);}try{if(_0x390280(0x4fd,0x52e)!==_0x1aa512(0xf4,0x15a))return _0x5b5c7f[_0x1aa512(0x10e,0x16e)];else await this[_0x1aa512(0x59,0x81)](_0x1aa512(0xf5,0xd3),_0x390280(0x488,0x46a)+_0x390280(0x4b7,0x460)+_0x31ad1f+'/reinforce',{'success':_0x1c3a72});}catch(_0x56deb8){console[_0x390280(0x493,0x502)](_0x1aa512(0xb9,0x110)+_0x1aa512(0x9c,0x30)+_0x390280(0x487,0x491)+'failed\x20for'+'\x20'+_0x31ad1f+':',_0x56deb8 instanceof Error?_0x56deb8[_0x390280(0x49b,0x462)]:String(_0x56deb8));}}async[_0x4082ab(0x3c1,0x3db)+'ory'](_0x240453,_0x5a4a10){function _0x5ae3fa(_0x172c17,_0x4887a2){return _0x4082ab(_0x4887a2,_0x172c17- -0x429);}const _0x2df044=await this[_0x2b2720(0x23,-0x2d)](_0x5ae3fa(0x53,0x86),_0x2b2720(0x44,-0x7)+_0x5ae3fa(0xc,0x16)+_0x240453+_0x2b2720(0x71,0x3f));function _0x2b2720(_0xd2e61c,_0x1d2deb){return _0x4082ab(_0xd2e61c,_0x1d2deb- -0x40d);}return _0x2df044;}async['getStats'](){function _0x6bbe48(_0x20aa99,_0x57f3a6){return _0x5f1219(_0x20aa99,_0x57f3a6- -0x57b);}function _0x5eaf12(_0x15033d,_0x5d7237){return _0x5f1219(_0x5d7237,_0x15033d- -0x372);}const _0x1c8fe3=await this[_0x6bbe48(-0xb6,-0xce)](_0x6bbe48(-0x41,-0x93),'/api/v1/me'+_0x6bbe48(0x4c,-0x23)+'ts');return _0x1c8fe3;}async[_0x5f1219(0x544,0x578)+_0x5f1219(0x517,0x4f4)](_0x3b6546=0xa){function _0x3ad7f3(_0x475c35,_0x113d7f){return _0x5f1219(_0x475c35,_0x113d7f- -0x1f7);}const _0xae8bef=new URLSearchParams();_0xae8bef[_0xcd811f(0x4a9,0x44d)]('limit',_0x3b6546[_0x3ad7f3(0x2ba,0x2d1)]());const _0x3a9f60='/api/v1/me'+_0x3ad7f3(0x2e6,0x2cd)+_0x3ad7f3(0x280,0x2c4)+_0xae8bef[_0x3ad7f3(0x296,0x2d1)](),_0x506ad7=await this['request'](_0xcd811f(0x428,0x47e),_0x3a9f60);function _0xcd811f(_0x21f6b6,_0x51743b){return _0x5f1219(_0x21f6b6,_0x51743b- -0x6a);}return _0x506ad7[_0x3ad7f3(0x2ca,0x32f)]??[];}async[_0x4082ab(0x3e9,0x3f0)+'ts'](_0x598d26){function _0x3ba209(_0x567c8b,_0x257cea){return _0x4082ab(_0x257cea,_0x567c8b- -0x172);}function _0x39c7b1(_0x2d7457,_0x33a9e8){return _0x4082ab(_0x2d7457,_0x33a9e8- -0x489);}const _0x4b6a91=await this[_0x3ba209(0x26e,0x262)](_0x3ba209(0x2a9,0x30f),_0x3ba209(0x28e,0x2c2)+encodeURIComponent(_0x598d26)+('/memories/'+_0x3ba209(0x2a0,0x296))),_0x1425db=_0x4b6a91,_0x6e5784=_0x1425db[_0x39c7b1(-0x95,-0x77)]??_0x1425db;return{'totalMemories':_0x6e5784[_0x3ba209(0x31a,0x381)+'ries']??0x0,'totalNodes':_0x6e5784[_0x39c7b1(-0xb3,-0xaa)+'s']??0x0,'lastSyncedAt':_0x6e5784[_0x39c7b1(-0x50,-0x82)+_0x3ba209(0x2b7,0x320)]??null};}async[_0x4082ab(0x490,0x4b1)+'iencyEvent'](_0x152592){const _0x41c8a3=await this[_0x294c82(0x24a,0x2a2)](_0x1ef78e(0x116,0xbb),_0x1ef78e(0xb0,0xf6)+_0x1ef78e(0x141,0xfe)+_0x294c82(0x2c9,0x260),{'skill_memory_id':_0x152592[_0x1ef78e(0x96,0x43)+_0x1ef78e(0xd0,0xd8)],'outcome':_0x152592[_0x1ef78e(0x144,0x185)],'difficulty':_0x152592[_0x294c82(0x304,0x29f)],'context_tags':_0x152592['context_ta'+'gs'],'session_id':_0x152592['session_id']});function _0x294c82(_0x160630,_0x11fe10){return _0x4082ab(_0x11fe10,_0x160630- -0x196);}function _0x1ef78e(_0x5afbd4,_0x126796){return _0x4082ab(_0x126796,_0x5afbd4- -0x366);}return _0x41c8a3;}async[_0x5f1219(0x5c9,0x57e)+'iencyEvent'+'Batch'](_0x22e144){function _0x19a294(_0x34b5b0,_0x47e82d){return _0x4082ab(_0x34b5b0,_0x47e82d-0xed);}function _0x3426ab(_0x436be1,_0x399a08){return _0x4082ab(_0x436be1,_0x399a08- -0x56b);}await this[_0x3426ab(-0x131,-0x18b)](_0x3426ab(-0x12b,-0xef),'/api/v1/pr'+_0x3426ab(-0xb5,-0xc4)+_0x19a294(0x558,0x4fb)+'h',{'events':_0x22e144});}async['listProfic'+_0x5f1219(0x4cb,0x4d8)](_0x464db9){function _0x2a90bc(_0x49af32,_0x31b95b){return _0x5f1219(_0x49af32,_0x31b95b- -0xdc);}const _0x3e1b44=new URLSearchParams();_0x3e1b44[_0x3bbb2e(0x172,0x114)](_0x2a90bc(0x398,0x3da),'100');if(_0x464db9)_0x3e1b44[_0x3bbb2e(0x172,0x175)]('project_pa'+'th',_0x464db9);function _0x3bbb2e(_0x3a4eef,_0x40ad6a){return _0x5f1219(_0x40ad6a,_0x3a4eef- -0x345);}const _0x212c53=_0x2a90bc(0x3ba,0x407)+_0x2a90bc(0x4cb,0x477)+_0x3e1b44['toString'](),_0x43be70=await this[_0x2a90bc(0x40b,0x3d1)](_0x3bbb2e(0x1a3,0x150),_0x212c53);return _0x43be70[_0x2a90bc(0x49c,0x44a)]??[];}async[_0x4082ab(0x485,0x461)+_0x4082ab(0x460,0x4ad)](_0x311a59){function _0x9b66b(_0x4bbeab,_0x2e187d){return _0x5f1219(_0x2e187d,_0x4bbeab-0xa2);}function _0x55bcd2(_0x5ba046,_0x1da1a7){return _0x5f1219(_0x5ba046,_0x1da1a7- -0x6b0);}return this[_0x55bcd2(-0x228,-0x203)](_0x55bcd2(-0x123,-0x167),'/api/v1/pe'+_0x9b66b(0x5ca,0x60b)+_0x55bcd2(-0x157,-0x154)+'n/analyze',{'message':_0x311a59['slice'](0x0,0x1f4)});}async['exportProf'+'iciencies'](_0x4e1202,_0x44e83d){const _0x4a301c=await this[_0xa6f5f7(-0x77,-0xc2)](_0x51b08d(0x138,0x124),_0x51b08d(0x145,0x10e)+_0xa6f5f7(0x15,0x38)+'ort',{'source_provider':_0x4e1202,'skill_ids':_0x44e83d??null});function _0x51b08d(_0x79b8b1,_0x5727fe){return _0x5f1219(_0x5727fe,_0x79b8b1- -0x411);}function _0xa6f5f7(_0x58bfe6,_0x3460d6){return _0x5f1219(_0x3460d6,_0x58bfe6- -0x524);}return _0x4a301c;}async[_0x5f1219(0x50d,0x4ba)+_0x5f1219(0x472,0x4d1)](_0x11de7b,_0x2d055f){const _0x1ccffd=await this[_0x1d9fa1(0xd7,0x141)]('POST','/api/v1/tr'+'ansfer/imp'+_0x4886a5(0x46c,0x413),{'package':_0x11de7b,'target_provider':_0x2d055f});function _0x1d9fa1(_0x4aeae1,_0x58cddd){return _0x5f1219(_0x58cddd,_0x4aeae1- -0x3d6);}function _0x4886a5(_0xd1487a,_0x556dbf){return _0x5f1219(_0xd1487a,_0x556dbf- -0x152);}return _0x1ccffd;}async[_0x5f1219(0x56d,0x533)+_0x5f1219(0x4d4,0x52a)+'ix'](){const _0x1a9e1b=await this[_0x34a3c2(-0xd6,-0x11a)]('GET',_0x476e7b(0x3ed,0x45b)+'ansfer/com'+_0x476e7b(0x356,0x394));function _0x34a3c2(_0x45c275,_0x3a5b84){return _0x5f1219(_0x3a5b84,_0x45c275- -0x583);}function _0x476e7b(_0x39ad4e,_0x41e385){return _0x5f1219(_0x41e385,_0x39ad4e- -0x169);}return _0x1a9e1b[_0x476e7b(0x3fd,0x3ef)]??[];}async['getTransfe'+_0x4082ab(0x3de,0x3e4)](_0x8c186f=0x1){const _0x4cd6c4=new URLSearchParams();_0x4cd6c4[_0xd97907(0x55f,0x4fc)](_0x52a537(0x1a8,0x194),_0x8c186f[_0xd97907(0x521,0x50d)]());const _0x54d3b5=_0xd97907(0x536,0x59b)+_0x52a537(0x13a,0x183)+'tory?'+_0x4cd6c4[_0xd97907(0x4b8,0x50d)]();function _0xd97907(_0x1cd26e,_0x3c8b17){return _0x5f1219(_0x1cd26e,_0x3c8b17-0x45);}function _0x52a537(_0x560d3e,_0x4134b7){return _0x5f1219(_0x4134b7,_0x560d3e- -0x394);}const _0x3078de=await this[_0xd97907(0x483,0x4f2)](_0xd97907(0x511,0x52d),_0x54d3b5);return _0x3078de;}async[_0x4082ab(0x41e,0x40a)](_0x5b33b8,_0x2d8bc7){const {readFileSync:_0x5196b2}=await import(_0x129f10(0x27,0x27)),{basename:_0x116645}=await import(_0x129f10(-0x33,-0x1c)),_0x12224c=_0x5196b2(_0x5b33b8),_0x2e7378=_0x116645(_0x5b33b8),_0x1654a2=new FormData();_0x1654a2[_0x129f10(-0x40,-0x38)](_0x1f53a9(0x209,0x19f),new Blob([_0x12224c]),_0x2e7378);if(_0x2d8bc7['category']){if(_0x129f10(0x3c,0x15)===_0x129f10(-0xa,-0x5a))return this[_0x1f53a9(0xa7,0xed)](_0x129f10(0x1b,-0x1a),_0x129f10(-0x2d,-0x6f)+_0x1f53a9(0x183,0x168)+_0x129f10(0x2e,0xf)+'n/analyze',{'message':_0xcc3651[_0x1f53a9(0x11f,0x10b)](0x0,0x1f4)});else _0x1654a2[_0x1f53a9(0xf9,0x12e)](_0x129f10(0x2f,-0x17),_0x2d8bc7[_0x129f10(0x2f,0x1b)]);}function _0x1f53a9(_0x4aa29b,_0x304e90){return _0x4082ab(_0x4aa29b,_0x304e90- -0x2f3);}_0x2d8bc7[_0x1f53a9(0x126,0x156)]&&_0x2d8bc7[_0x1f53a9(0x142,0x156)][_0x129f10(0x43,0x98)]>0x0&&_0x1654a2[_0x129f10(-0x40,-0x91)](_0x129f10(-0x18,-0x20),_0x2d8bc7[_0x1f53a9(0x148,0x156)][_0x1f53a9(0x167,0x103)](','));const _0x18931b=await this[_0x129f10(0x9,0x20)+_0x1f53a9(0xa0,0xfe)](_0x1f53a9(0x1f0,0x189),_0x1f53a9(0x16e,0x13e)+_0x1f53a9(0x110,0x101),_0x1654a2);function _0x129f10(_0x426ebd,_0x869a57){return _0x4082ab(_0x869a57,_0x426ebd- -0x461);}const _0x4dea33=_0x18931b;return{'id':_0x4dea33[_0x1f53a9(0x187,0x1c3)],'filename':_0x4dea33[_0x129f10(0x26,-0x21)]};}async[_0x5f1219(0x517,0x4cc)+_0x5f1219(0x4e7,0x530)](_0x11f8e9){function _0x10f691(_0x2f8c5c,_0x222b4f){return _0x5f1219(_0x2f8c5c,_0x222b4f- -0x5dd);}const _0x25d6f=await this[_0x10f691(-0x10c,-0x130)](_0x10f691(-0x50,-0x94),_0x1d539a(0xf,-0x36)+_0x1d539a(0x24,0xc)+'duplicate',{'content_hash':_0x11f8e9});function _0x1d539a(_0xfa23b4,_0x291314){return _0x5f1219(_0x291314,_0xfa23b4- -0x4ef);}const _0x29ef58=_0x25d6f;return{'exists':_0x29ef58['is_duplica'+'te'],'file_id':_0x29ef58[_0x10f691(-0x8d,-0x98)+_0x10f691(-0x8b,-0xac)]?.['id']};}async[_0x5f1219(0x4df,0x535)+_0x5f1219(0x51f,0x4d6)](_0x38223c,_0x505041,_0x3a83aa){const _0x30c48c=await this[_0x27a509(0x58,0x97)](_0x27a509(0xf4,0xae),_0xa81797(0x3aa,0x373)+'mory-files',{'memory_id':_0x38223c,'file_id':_0x505041,'reference_type':_0x3a83aa[_0xa81797(0x466,0x404)+_0x27a509(0xe8,0x98)],'reference_path':_0x3a83aa[_0x27a509(0x10f,0xa3)+'path']});function _0xa81797(_0x396621,_0x22b061){return _0x4082ab(_0x396621,_0x22b061- -0x93);}function _0x27a509(_0x4de4b9,_0x5802d6){return _0x4082ab(_0x5802d6,_0x4de4b9- -0x388);}return _0x30c48c;}async[_0x4082ab(0x43f,0x453)+_0x4082ab(0x433,0x3fd)](_0x22b9eb){const _0x1543b7=await this[_0x5be2ad(0x2a4,0x264)](_0x18b061(0x641,0x5f9),_0x18b061(0x5c2,0x5e4)+'g/contexts',_0x22b9eb);function _0x5be2ad(_0x1ed427,_0x1b5c20){return _0x5f1219(_0x1ed427,_0x1b5c20- -0x249);}const _0x5ed4d6=_0x1543b7?.['context']?.['id']??_0x1543b7?.['id'];if(!_0x5ed4d6)throw new Error(_0x5be2ad(0x338,0x2d7)+_0x18b061(0x5e9,0x5a3)+'ontext.id\x20'+_0x18b061(0x63d,0x5ff));function _0x18b061(_0x3e79cb,_0x8c2d2f){return _0x5f1219(_0x3e79cb,_0x8c2d2f-0xb0);}return{'id':_0x5ed4d6};}async[_0x4082ab(0x432,0x43e)+_0x4082ab(0x3f0,0x3e5)](_0x43613e,_0x17ea28){function _0x21018d(_0x17bbca,_0x43f83d){return _0x5f1219(_0x43f83d,_0x17bbca- -0x2e6);}function _0x6aaa67(_0x502ae9,_0x32b48e){return _0x5f1219(_0x32b48e,_0x502ae9-0x0);}return this[_0x21018d(0x1c7,0x166)](_0x21018d(0x263,0x225),_0x21018d(0x24e,0x1df)+_0x6aaa67(0x50f,0x506)+'/'+_0x43613e+_0x6aaa67(0x4c5,0x457),_0x17ea28);}async[_0x5f1219(0x531,0x52f)+_0x4082ab(0x447,0x4ad)](_0x50e4c1){function _0x4e3570(_0x1fb2aa,_0x411206){return _0x5f1219(_0x411206,_0x1fb2aa- -0x7d);}function _0x37067d(_0x3002d3,_0x40938e){return _0x5f1219(_0x40938e,_0x3002d3- -0x21b);}return this[_0x37067d(0x292,0x24c)]('POST',_0x4e3570(0x4b7,0x48d)+_0x37067d(0x34e,0x30e)+'s',_0x50e4c1);}async[_0x5f1219(0x551,0x570)+'ntent'](_0x32b3ce){function _0x58f947(_0x4438c8,_0x1d4a7e){return _0x5f1219(_0x1d4a7e,_0x4438c8- -0x3cb);}function _0x3ebf29(_0x5be1ff,_0x5d236f){return _0x5f1219(_0x5be1ff,_0x5d236f- -0x258);}try{const _0x23b304=await this['request'](_0x3ebf29(0x2a2,0x2f1),_0x3ebf29(0x2bf,0x2fa)+'xonomy/cla'+_0x3ebf29(0x25a,0x26e),{'content':_0x32b3ce['content']['slice'](0x0,0x7d0),'tags':_0x32b3ce['tags']??[],'category':_0x32b3ce[_0x3ebf29(0x32e,0x305)]}),_0x248963=_0x23b304;if(_0x248963['success']&&_0x248963[_0x3ebf29(0x2b9,0x30a)])return _0x248963[_0x58f947(0x197,0x1ea)];return null;}catch{return null;}}static [_0x5f1219(0x561,0x56c)+_0x4082ab(0x47a,0x47d)]=new Set([0x1ad,0x1f4,0x1f6,0x1f7,0x1f8]);static [_0x4082ab(0x434,0x456)+'S']=0x3;static ['BASE_DELAY'+_0x5f1219(0x598,0x538)]=0x3e8;async[_0x5f1219(0x497,0x4ad)](_0x558893,_0x19a39c,_0x2a8275){let _0x42ab62;function _0x1e5f24(_0x465ea2,_0x5112d1){return _0x4082ab(_0x5112d1,_0x465ea2-0x1d6);}for(let _0x16ada0=0x0;_0x16ada0<A2AClient[_0x213678(0x77,0x23)+'S'];_0x16ada0++){const _0x205e9b=''+this['config'][_0x1e5f24(0x68a,0x6ed)]+_0x19a39c,_0x37ef39=new AbortController(),_0x351397=setTimeout(()=>_0x37ef39['abort'](),this[_0x213678(0xb5,0x121)]);try{const _0x3404b7=await fetch(_0x205e9b,{'method':_0x558893,'headers':{'Content-Type':_0x1e5f24(0x626,0x683)+_0x1e5f24(0x608,0x664),'x-api-key':this['config'][_0x1e5f24(0x60e,0x629)],'X-Plugin-Version':_pluginVersion,...this['enabledFea'+_0x213678(-0x3,0x63)][_0x1e5f24(0x67a,0x6b3)]>0x0&&{'X-Plugin-Features':this['enabledFea'+'tures'][_0x213678(0x17,-0x34)](',')}},'body':_0x2a8275?JSON[_0x1e5f24(0x682,0x65a)](_0x2a8275):undefined,'signal':_0x37ef39['signal']});clearTimeout(_0x351397);if(A2AClient['RETRYABLE_'+_0x213678(0x9e,0xa7)][_0x213678(0x92,0xff)](_0x3404b7[_0x1e5f24(0x688,0x6ee)])&&_0x16ada0<A2AClient[_0x213678(0x77,0x20)+'S']-0x1){const _0x43d05a=A2AClient[_0x213678(0xcf,0x106)+_0x213678(0x8c,0x99)]*Math[_0x1e5f24(0x5cb,0x56e)](0x2,_0x16ada0);await new Promise(_0x1ab125=>setTimeout(_0x1ab125,_0x43d05a));continue;}!_0x3404b7['ok']&&await this['handleErro'+_0x1e5f24(0x5ea,0x596)](_0x3404b7);if(_0x558893===_0x213678(0x45,-0xd)&&_0x3404b7[_0x1e5f24(0x688,0x694)]===0xcc)return;return await _0x3404b7[_0x213678(0xd0,0x67)]();}catch(_0x578731){if(_0x213678(0x49,0x7b)!=='bnqgv')return![];else{clearTimeout(_0x351397);if(_0x578731 instanceof Error){if(getErrorStatus(_0x578731)!==undefined){if(_0x213678(0x79,0x8d)===_0x213678(0xc3,0xe5))_0x579382['append'](_0x1e5f24(0x61f,0x611),_0x1c198a[_0x213678(0x6a,0x6e)][_0x213678(0x17,-0x28)](','));else throw _0x578731;}if(_0x578731[_0x1e5f24(0x5ef,0x5a9)][_0x1e5f24(0x5b3,0x61a)]('인증\x20실패')||_0x578731['message'][_0x213678(-0x2,-0x48)](_0x213678(0x62,0x3f))||_0x578731['message'][_0x213678(-0x2,0x6c)](_0x1e5f24(0x613,0x5e5))||_0x578731['message']['startsWith'](_0x1e5f24(0x636,0x68a)))throw _0x578731;if(_0x16ada0<A2AClient[_0x213678(0x77,0x45)+'S']-0x1){if('jalli'!==_0x1e5f24(0x64d,0x64a)){_0x42ab62=_0x578731;const _0x28543d=A2AClient[_0x213678(0xcf,0xda)+_0x1e5f24(0x641,0x692)]*Math[_0x1e5f24(0x5cb,0x5dd)](0x2,_0x16ada0);await new Promise(_0x25f821=>setTimeout(_0x25f821,_0x28543d));continue;}else _0x437894[_0x1e5f24(0x5e7,0x643)](_0x1e5f24(0x616,0x681)+_0x213678(0x44,0x4)+'yFeedback\x20'+_0x213678(0x39,0xd)+'\x20'+_0x14a64e+':',_0x487a77 instanceof _0x14de32?_0x39ebef['message']:_0x5e0674(_0x5882b7));}if(_0x578731[_0x1e5f24(0x5d0,0x5e2)]===_0x1e5f24(0x67b,0x6c4))throw new Error('요청\x20시간\x20초과:\x20'+this[_0x1e5f24(0x66a,0x6b0)]+_0x1e5f24(0x634,0x5d1));throw new Error(_0x1e5f24(0x64a,0x63e)+_0x578731[_0x213678(0x3a,0x94)]);}throw _0x578731;}}}function _0x213678(_0x38fb95,_0x105d3f){return _0x4082ab(_0x105d3f,_0x38fb95- -0x3df);}throw _0x42ab62??new Error(_0x213678(0x69,0xc8)+A2AClient[_0x1e5f24(0x62c,0x685)+'S']+'회\x20재시도\x20후\x20실패');}async[_0x5f1219(0x4cf,0x537)+_0x4082ab(0x3ca,0x3f1)](_0x31099f,_0x12947a,_0x22f7e4){function _0x2ea361(_0x199abf,_0x56f96d){return _0x4082ab(_0x56f96d,_0x199abf- -0x359);}const _0x5b9fe6=''+this[_0x2ea361(0x148,0xf8)][_0x22d8af(0x1f9,0x23f)]+_0x12947a,_0x5d47cd=new AbortController();function _0x22d8af(_0x56969b,_0x1e1599){return _0x4082ab(_0x1e1599,_0x56969b- -0x2bb);}const _0x51cd9a=setTimeout(()=>_0x5d47cd['abort'](),this[_0x2ea361(0x13b,0x10c)]);try{const _0x46ceed=await fetch(_0x5b9fe6,{'method':_0x31099f,'headers':{'x-api-key':this[_0x2ea361(0x148,0xf4)][_0x2ea361(0xdf,0xcf)],'X-Plugin-Version':_pluginVersion},'body':_0x22f7e4,'signal':_0x5d47cd['signal']});return clearTimeout(_0x51cd9a),!_0x46ceed['ok']&&await this[_0x2ea361(0x13a,0x130)+_0x22d8af(0x159,0xf0)](_0x46ceed),await _0x46ceed['json']();}catch(_0x21e0c9){clearTimeout(_0x51cd9a);if(_0x21e0c9 instanceof Error&&_0x21e0c9[_0x22d8af(0x13f,0x17c)]==='AbortError')throw new Error(_0x2ea361(0xe0,0xdb)+this[_0x2ea361(0x13b,0xde)]+'ms를\x20넘었습니다');throw _0x21e0c9;}}async[_0x5f1219(0x562,0x560)+'rResponse'](_0x576284){const _0x5a1678=_0x576284['status'];if(_0x5a1678===0x191)throw withStatus(new Error('인증\x20실패:\x20API'+'\x20Key를\x20확인하세'+'요'),0x191);if(_0x5a1678===0x1ad){if(_0x236364(0x213,0x23e)===_0x236364(0x2e0,0x31d)){const _0x59ebcb=_0x5a17e1(_0x38ca5c['content']);_0x59ebcb&&(_0x32a4bd[_0x180fb5(0x56e,0x5ad)]=_0x2ac214(_0x59ebcb,this['encryption'+'Key']));}else throw withStatus(new Error(_0x180fb5(0x60b,0x65f)+_0x180fb5(0x5d1,0x628)),0x1ad);}let _0x53f96e='HTTP\x20'+_0x5a1678;function _0x236364(_0x37e2e1,_0x237b13){return _0x5f1219(_0x237b13,_0x37e2e1- -0x29d);}function _0x180fb5(_0x5a7827,_0x52773e){return _0x5f1219(_0x52773e,_0x5a7827-0xbf);}try{const _0x18fb8a=await _0x576284[_0x236364(0x2df,0x306)]();if(Array['isArray'](_0x18fb8a[_0x236364(0x277,0x2dd)])){const _0x3f2e04=_0x18fb8a[_0x236364(0x277,0x2e3)][_0x180fb5(0x572,0x525)](_0x54c22b=>{function _0x5df9c2(_0x16ae35,_0x105dfe){return _0x180fb5(_0x105dfe- -0x216,_0x16ae35);}function _0x153653(_0x247ee3,_0x1ffb1c){return _0x180fb5(_0x247ee3- -0x247,_0x1ffb1c);}if(_0x153653(0x370,0x34d)===_0x153653(0x370,0x301)){const _0x10eafc=Array[_0x5df9c2(0x3da,0x3f0)](_0x54c22b[_0x5df9c2(0x3ad,0x37e)])?_0x54c22b[_0x153653(0x34d,0x325)][_0x5df9c2(0x3bd,0x36c)]('.'):'',_0x249c34=_0x54c22b[_0x153653(0x38f,0x385)]??JSON[_0x5df9c2(0x3d7,0x422)](_0x54c22b);return _0x10eafc?_0x10eafc+':\x20'+_0x249c34:_0x249c34;}else{const _0x2fe2f2=_0x5585b6(_0x1ec092[_0x5df9c2(0x3a4,0x358)]);if(_0x2fe2f2)try{_0x3f3037[_0x153653(0x327,0x351)]=_0x2fedfb(_0x2fe2f2,this[_0x5df9c2(0x3a5,0x3ec)+_0x153653(0x3aa,0x387)]);}catch{}}})[_0x236364(0x226,0x1d1)]('\x20|\x20');_0x53f96e+=':\x20'+_0x3f2e04;}else{if(_0x18fb8a[_0x236364(0x277,0x238)])_0x53f96e+=':\x20'+_0x18fb8a[_0x236364(0x277,0x23e)];else _0x18fb8a['message']&&(_0x53f96e+=':\x20'+_0x18fb8a[_0x180fb5(0x5a5,0x568)]);}}catch{}throw withStatus(new Error(_0x53f96e),_0x5a1678);}}
@@ -1 +1 @@
1
- function _0x49e7(){const _0x255ef5=['BwvZC2fNzq','mtnTs1HptvG','ntbewxnYsvC','C2v0qxv0AfrHzW','neLUuMHmEq','y2LWAgvYDgv4Da','64Ui64UKicJTMitSNQW6ia','yNL0zuXLBMD0Aa','BgvUz3rO','ntzUyK1fugC','7j207ysW6RcaioUeIoUSTcdSP6FSIRxRI4G','67o17zI47zMuioYlPo2mQdOG','C3vIyxjYyxK','mtm1otCYrhfQDwrc','odi2odu5D1bKv2jN','7j6e67kG65sPioUZTE2yUo2zLcdSI6tTJkG','z2v0qxv0AfrHzW','zw1tzMC','ote0mKH5qvDwEa','C3rYAw5NAwz5','7jwu7zI47zMuio2cPoUkLca','wM1iDwm','rKDMBfm','7jwu7zI47zMu65cCioYEHoUYOoUuQsdRJBa','ioUnSoYDTo2eScdRS4dSOBaP','ueXLuee','ruXftuvova','zMLUywW','Dg9tDhjPBMC','igj5DgvZ7jES7jw8io2vQq','mJeXmtCWzwXTCu9m','mJa0otaWzhjJEhro','yMfZzty0','C3rYAw5N','zgf0yq','y29Uy2f0','ywvZlti1nI1NyW','otmWnNP1tgnpDW','icJSNPJRQRVRKjWG7ykKioUyKoUkLa','DxbKyxrL','zw5JCNLWDgvK','CgfYC2u','mJeYohfsCNDHwa','DgfN','yNvMzMvY','B2jQzwn0','mJffDefLrMO','DxrMltG','zNjVBq','mJq5mZv2CxPOs3i','qLLurvnFuevsxW','C2HHnteY'];_0x49e7=function(){return _0x255ef5;};return _0x49e7();}(function(_0x523fd9,_0x3f1cf8){function _0x548c43(_0x58e434,_0x35002f){return _0x421a(_0x58e434- -0x148,_0x35002f);}const _0x2b4284=_0x523fd9();function _0x3679cc(_0x1ad4aa,_0xec4786){return _0x421a(_0x1ad4aa- -0x3c6,_0xec4786);}while(!![]){try{const _0x794f0d=parseInt(_0x3679cc(-0x2ca,-0x2cb))/0x1*(-parseInt(_0x3679cc(-0x2d3,-0x2c0))/0x2)+-parseInt(_0x548c43(-0x40,-0x4f))/0x3+-parseInt(_0x3679cc(-0x2a4,-0x2a7))/0x4*(parseInt(_0x3679cc(-0x2ab,-0x2c5))/0x5)+-parseInt(_0x3679cc(-0x2bd,-0x2a5))/0x6*(parseInt(_0x548c43(-0x30,-0x38))/0x7)+parseInt(_0x548c43(-0x34,-0x45))/0x8*(parseInt(_0x3679cc(-0x2b7,-0x2c3))/0x9)+-parseInt(_0x3679cc(-0x2a6,-0x28f))/0xa*(-parseInt(_0x3679cc(-0x2ce,-0x2db))/0xb)+parseInt(_0x3679cc(-0x2cf,-0x2b5))/0xc*(-parseInt(_0x548c43(-0x29,-0x34))/0xd);if(_0x794f0d===_0x3f1cf8)break;else _0x2b4284['push'](_0x2b4284['shift']());}catch(_0x1e416b){_0x2b4284['push'](_0x2b4284['shift']());}}}(_0x49e7,0x323bb));import{randomBytes,createCipheriv,createDecipheriv,pbkdf2Sync}from'node:crypto';function _0x52e094(_0x33a783,_0x41f9c7){return _0x421a(_0x33a783- -0x1a1,_0x41f9c7);}const ALGORITHM=_0x7c01c8(-0xd4,-0xc4)+'m',KEY_LENGTH=0x20,IV_LENGTH=0xc,TAG_LENGTH=0x10;function _0x7c01c8(_0x5353e6,_0x2de933){return _0x421a(_0x5353e6- -0x1e2,_0x2de933);}const SALT_LENGTH=0x10,PBKDF2_ITERATIONS=0x186a0,PBKDF2_DIGEST=_0x7c01c8(-0xc5,-0xd0);export function generateEncryptionKey(){return randomBytes(KEY_LENGTH);}function _0x421a(_0x5e8f13,_0x443695){_0x5e8f13=_0x5e8f13-0xf2;const _0x49e702=_0x49e7();let _0x421a7d=_0x49e702[_0x5e8f13];if(_0x421a['EoWeWF']===undefined){var _0xa5e7c0=function(_0x33f84c){const _0x191b51='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x5eab28='',_0x352998='';for(let _0x8df51d=0x0,_0x5444e5,_0x4283ea,_0x4b81d7=0x0;_0x4283ea=_0x33f84c['charAt'](_0x4b81d7++);~_0x4283ea&&(_0x5444e5=_0x8df51d%0x4?_0x5444e5*0x40+_0x4283ea:_0x4283ea,_0x8df51d++%0x4)?_0x5eab28+=String['fromCharCode'](0xff&_0x5444e5>>(-0x2*_0x8df51d&0x6)):0x0){_0x4283ea=_0x191b51['indexOf'](_0x4283ea);}for(let _0x4cbc2d=0x0,_0x3430de=_0x5eab28['length'];_0x4cbc2d<_0x3430de;_0x4cbc2d++){_0x352998+='%'+('00'+_0x5eab28['charCodeAt'](_0x4cbc2d)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x352998);};_0x421a['YBdVes']=_0xa5e7c0,_0x421a['QWUuTZ']={},_0x421a['EoWeWF']=!![];}const _0x5c39a0=_0x49e702[0x0],_0x583deb=_0x5e8f13+_0x5c39a0,_0x1a4c48=_0x421a['QWUuTZ'][_0x583deb];return!_0x1a4c48?(_0x421a7d=_0x421a['YBdVes'](_0x421a7d),_0x421a['QWUuTZ'][_0x583deb]=_0x421a7d):_0x421a7d=_0x1a4c48,_0x421a7d;}export function deriveKey(_0x1e30e3,_0x15f868){const _0x29bdb3=_0x15f868??randomBytes(SALT_LENGTH),_0x4aa204=pbkdf2Sync(_0x1e30e3,_0x29bdb3,PBKDF2_ITERATIONS,KEY_LENGTH,PBKDF2_DIGEST);return{'key':_0x4aa204,'salt':_0x29bdb3};}export function encryptContent(_0x14cfaa,_0x33e5ec){if(_0x33e5ec[_0x74a2f2(0x34a,0x356)]!==KEY_LENGTH)throw new Error(_0x74a2f2(0x356,0x364)+KEY_LENGTH+(_0x74a2f2(0x35f,0x365)+'니다\x20(현재:\x20')+_0x33e5ec[_0x74a2f2(0x34a,0x330)]+')');function _0x74a2f2(_0x3789b4,_0x3b0e99){return _0x52e094(_0x3789b4-0x3f9,_0x3b0e99);}const _0x20d4d3=randomBytes(IV_LENGTH);function _0x193ca9(_0x50bd1c,_0x124477){return _0x52e094(_0x50bd1c-0x15,_0x124477);}const _0x2c579a=createCipheriv(ALGORITHM,_0x33e5ec,_0x20d4d3),_0x51aedd=Buffer['from'](_0x14cfaa,_0x74a2f2(0x371,0x37c)),_0x26d87b=Buffer[_0x74a2f2(0x365,0x360)]([_0x2c579a[_0x193ca9(-0x7b,-0x7d)](_0x51aedd),_0x2c579a['final']()]),_0x4a69f9=_0x2c579a[_0x74a2f2(0x352,0x338)]();return{'ciphertext':_0x26d87b[_0x74a2f2(0x35e,0x35b)](_0x74a2f2(0x362,0x37a)),'iv':_0x20d4d3[_0x193ca9(-0x86,-0x7e)](_0x193ca9(-0x82,-0x75)),'tag':_0x4a69f9['toString'](_0x193ca9(-0x82,-0x76))};}export function decryptContent(_0x512745,_0x4b4516){if(_0x4b4516[_0x10add4(-0x284,-0x283)]!==KEY_LENGTH)throw new Error(_0x55b2c9(-0x2c9,-0x2ca)+KEY_LENGTH+(_0x10add4(-0x26f,-0x268)+_0x10add4(-0x252,-0x25f))+_0x4b4516['length']+')');const _0x3a6651=Buffer['from'](_0x512745['iv'],_0x10add4(-0x26c,-0x25b));function _0x10add4(_0x451d16,_0x30a5d2){return _0x52e094(_0x451d16- -0x1d5,_0x30a5d2);}const _0x3c8d85=Buffer[_0x10add4(-0x25c,-0x273)](_0x512745[_0x10add4(-0x253,-0x24c)],_0x10add4(-0x26c,-0x278)),_0x15b431=Buffer[_0x10add4(-0x25c,-0x26d)](_0x512745[_0x55b2c9(-0x2ae,-0x2b3)],'base64'),_0xebe470=createDecipheriv(ALGORITHM,_0x4b4516,_0x3a6651);function _0x55b2c9(_0x1c71fd,_0x237645){return _0x52e094(_0x237645- -0x227,_0x1c71fd);}_0xebe470[_0x55b2c9(-0x2b7,-0x2a7)](_0x15b431);try{if(_0x55b2c9(-0x2bf,-0x2c8)!==_0x10add4(-0x276,-0x274)){const _0x7c82ce=_0x3f9240??_0x25c8b9(_0x2d026c),_0x4b1398=_0x53d0d9(_0x525e4a,_0x7c82ce,_0x4615d6,_0x25cfac,_0x1a3b7d);return{'key':_0x4b1398,'salt':_0x7c82ce};}else{const _0x1712a1=Buffer['concat']([_0xebe470['update'](_0x3c8d85),_0xebe470[_0x55b2c9(-0x2ca,-0x2c3)]()]);return _0x1712a1[_0x55b2c9(-0x2c6,-0x2c2)](_0x55b2c9(-0x2b6,-0x2af));}}catch(_0x56eecd){if(_0x56eecd instanceof Error)throw new Error(_0x55b2c9(-0x2c7,-0x2d3)+_0x56eecd[_0x55b2c9(-0x2a0,-0x2aa)]+(_0x10add4(-0x266,-0x277)+_0x55b2c9(-0x2c4,-0x2c6)));throw _0x56eecd;}}export function encryptEmbedding(_0x5e6494,_0x124aae){const _0x387d07=new Float64Array(_0x5e6494),_0xc6f2a3=Buffer[_0x191020(0x28b,0x297)](_0x387d07[_0x191020(0x27b,0x293)]),_0x7fe448=randomBytes(IV_LENGTH),_0xfe2bc0=createCipheriv(ALGORITHM,_0x124aae,_0x7fe448);function _0x191020(_0x4c7b15,_0x523c5b){return _0x7c01c8(_0x523c5b-0x35f,_0x4c7b15);}const _0x20c34e=Buffer[_0x5401a1(0x4e5,0x4d7)]([_0xfe2bc0['update'](_0xc6f2a3),_0xfe2bc0[_0x5401a1(0x4e5,0x4cf)]()]);function _0x5401a1(_0x2569b7,_0x2797b7){return _0x7c01c8(_0x2797b7-0x5ac,_0x2569b7);}const _0x583b7b=_0xfe2bc0[_0x5401a1(0x4c8,0x4c4)](),_0x1c5bf6=Buffer['concat']([_0x7fe448,_0x583b7b,_0x20c34e]);return _0x1c5bf6['toString']('base64');}export function decryptEmbedding(_0x29d252,_0x280297){const _0x56a8fa=Buffer['from'](_0x29d252,'base64');if(_0x56a8fa[_0x2743c9(0x499,0x486)]<IV_LENGTH+TAG_LENGTH)throw new Error(_0x150c37(0x1a2,0x1b1)+_0x2743c9(0x49b,0x4a4)+'다');function _0x2743c9(_0x15702e,_0x39d3c7){return _0x52e094(_0x15702e-0x548,_0x39d3c7);}const _0x2d8a82=_0x56a8fa[_0x2743c9(0x49d,0x4ae)](0x0,IV_LENGTH),_0x384f92=_0x56a8fa[_0x150c37(0x197,0x18b)](IV_LENGTH,IV_LENGTH+TAG_LENGTH),_0x5a7dce=_0x56a8fa[_0x2743c9(0x49d,0x4af)](IV_LENGTH+TAG_LENGTH);function _0x150c37(_0x2ed112,_0x49f49c){return _0x52e094(_0x2ed112-0x242,_0x49f49c);}const _0x3b5950=createDecipheriv(ALGORITHM,_0x280297,_0x2d8a82);_0x3b5950[_0x2743c9(0x4c8,0x4db)](_0x384f92);try{if(_0x2743c9(0x4a6,0x491)!==_0x2743c9(0x4a6,0x4a1))throw new _0x1c1746(_0x2743c9(0x4a0,0x486)+':\x20'+_0x3d36c0[_0x150c37(0x1bf,0x1b6)]);else{const _0x29df20=Buffer[_0x150c37(0x1ae,0x1be)]([_0x3b5950[_0x150c37(0x1b2,0x1c8)](_0x5a7dce),_0x3b5950[_0x2743c9(0x4ac,0x4a0)]()]),_0x5a1adc=new Float64Array(_0x29df20[_0x2743c9(0x4bd,0x4ab)],_0x29df20['byteOffset'],_0x29df20[_0x2743c9(0x4cc,0x4d9)]/Float64Array[_0x2743c9(0x4c3,0x4d2)+_0x150c37(0x1a5,0x19d)]);return Array[_0x2743c9(0x4c1,0x4a7)](_0x5a1adc);}}catch(_0x53de1d){if('emSfg'!==_0x2743c9(0x4a2,0x4a0)){const _0x21abcf=_0x218262[_0x2743c9(0x4ba,0x4c5)](_0x328283);if(_0x21abcf[_0x150c37(0x1b3,0x1a5)]!==!![])return null;if(typeof _0x21abcf['data']!==_0x2743c9(0x4b2,0x4c0)||typeof _0x21abcf['iv']!=='string'||typeof _0x21abcf['tag']!==_0x2743c9(0x4b2,0x4a5))return null;return{'ciphertext':_0x21abcf[_0x2743c9(0x4b3,0x4b6)],'iv':_0x21abcf['iv'],'tag':_0x21abcf[_0x150c37(0x1b6,0x1c2)]};}else{if(_0x53de1d instanceof Error){if(_0x2743c9(0x4aa,0x4b9)==='PLePA')throw new Error(_0x2743c9(0x4a0,0x48a)+':\x20'+_0x53de1d[_0x150c37(0x1bf,0x1b7)]);else{if(typeof _0x1fc9fa!==_0x2743c9(0x4be,0x4cc)||_0x4365a7===null)return![];const _0x143fbb=_0x289296;return typeof _0x143fbb[_0x2743c9(0x4ca,0x4b4)]===_0x150c37(0x1ac,0x195)&&typeof _0x143fbb['iv']===_0x150c37(0x1ac,0x194)&&typeof _0x143fbb[_0x150c37(0x1b6,0x1c5)]===_0x2743c9(0x4b2,0x49c);}}throw _0x53de1d;}}}export function isValidEncryptedPayload(_0x5676b3){function _0x1fe4d0(_0x43c285,_0x53a718){return _0x52e094(_0x53a718-0x526,_0x43c285);}if(typeof _0x5676b3!==_0x1fe4d0(0x4a1,0x49c)||_0x5676b3===null)return![];function _0x45b2c1(_0x15976f,_0x1300e6){return _0x52e094(_0x15976f- -0xfd,_0x1300e6);}const _0x4c60ce=_0x5676b3;return typeof _0x4c60ce[_0x1fe4d0(0x4c0,0x4a8)]===_0x1fe4d0(0x497,0x490)&&typeof _0x4c60ce['iv']===_0x1fe4d0(0x48c,0x490)&&typeof _0x4c60ce['tag']===_0x45b2c1(-0x193,-0x19c);}export function wrapEncryptedContent(_0x3fa321){function _0x39fe09(_0x1c9c78,_0xc77d23){return _0x52e094(_0xc77d23-0x575,_0x1c9c78);}function _0x23a42c(_0x400db2,_0x24286c){return _0x52e094(_0x400db2-0x8a,_0x24286c);}return JSON[_0x23a42c(-0x1a,-0x18)]({'encrypted':!![],'data':_0x3fa321[_0x39fe09(0x502,0x4f7)],'iv':_0x3fa321['iv'],'tag':_0x3fa321[_0x23a42c(-0x2,0x9)]});}export function unwrapEncryptedContent(_0x106125){function _0x162ca4(_0x6564f3,_0x241676){return _0x7c01c8(_0x6564f3-0x532,_0x241676);}function _0x4a50ee(_0x357182,_0x2df725){return _0x7c01c8(_0x2df725-0x37d,_0x357182);}try{const _0x35025b=JSON[_0x162ca4(0x463,0x454)](_0x106125);if(_0x35025b[_0x162ca4(0x462,0x454)]!==!![])return null;if(typeof _0x35025b[_0x162ca4(0x45c,0x445)]!==_0x4a50ee(0x2b6,0x2a6)||typeof _0x35025b['iv']!==_0x4a50ee(0x2b5,0x2a6)||typeof _0x35025b['tag']!=='string')return null;return{'ciphertext':_0x35025b['data'],'iv':_0x35025b['iv'],'tag':_0x35025b[_0x162ca4(0x465,0x456)]};}catch{return null;}}
1
+ function _0x5f51b4(_0x176788,_0x20d3ac){return _0x2f64(_0x176788- -0x85,_0x20d3ac);}(function(_0x4986f7,_0x11d7ff){function _0x427987(_0x310518,_0x46eac4){return _0x2f64(_0x46eac4-0x32c,_0x310518);}function _0x198e42(_0x32e50e,_0x4b3bb3){return _0x2f64(_0x4b3bb3-0xf9,_0x32e50e);}const _0x3fcd9b=_0x4986f7();while(!![]){try{const _0x3c05c2=parseInt(_0x198e42(0x2e2,0x2ed))/0x1*(parseInt(_0x427987(0x52b,0x535))/0x2)+parseInt(_0x198e42(0x2e7,0x2fd))/0x3*(parseInt(_0x427987(0x538,0x537))/0x4)+parseInt(_0x198e42(0x2eb,0x2e1))/0x5*(-parseInt(_0x427987(0x542,0x53b))/0x6)+parseInt(_0x198e42(0x2f4,0x2f7))/0x7*(parseInt(_0x427987(0x50d,0x51f))/0x8)+parseInt(_0x427987(0x532,0x532))/0x9+-parseInt(_0x427987(0x52f,0x527))/0xa+-parseInt(_0x198e42(0x2f4,0x2f1))/0xb*(parseInt(_0x427987(0x51c,0x521))/0xc);if(_0x3c05c2===_0x11d7ff)break;else _0x3fcd9b['push'](_0x3fcd9b['shift']());}catch(_0x5f3be3){_0x3fcd9b['push'](_0x3fcd9b['shift']());}}}(_0x1363,0xd884b));import{randomBytes,createCipheriv,createDecipheriv,pbkdf2Sync}from'node:crypto';function _0x2f64(_0x318969,_0x1db063){_0x318969=_0x318969-0x1e8;const _0x136346=_0x1363();let _0x2f64f1=_0x136346[_0x318969];if(_0x2f64['soTBtU']===undefined){var _0x2962b2=function(_0x4335c1){const _0x11aff2='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x465771='',_0x2138cb='';for(let _0x5003d1=0x0,_0x16786f,_0x5fdd09,_0x14ead6=0x0;_0x5fdd09=_0x4335c1['charAt'](_0x14ead6++);~_0x5fdd09&&(_0x16786f=_0x5003d1%0x4?_0x16786f*0x40+_0x5fdd09:_0x5fdd09,_0x5003d1++%0x4)?_0x465771+=String['fromCharCode'](0xff&_0x16786f>>(-0x2*_0x5003d1&0x6)):0x0){_0x5fdd09=_0x11aff2['indexOf'](_0x5fdd09);}for(let _0x4ae807=0x0,_0x1676c9=_0x465771['length'];_0x4ae807<_0x1676c9;_0x4ae807++){_0x2138cb+='%'+('00'+_0x465771['charCodeAt'](_0x4ae807)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x2138cb);};_0x2f64['ruxaUj']=_0x2962b2,_0x2f64['aWFGCR']={},_0x2f64['soTBtU']=!![];}const _0x470c27=_0x136346[0x0],_0x4a006a=_0x318969+_0x470c27,_0x5abf49=_0x2f64['aWFGCR'][_0x4a006a];return!_0x5abf49?(_0x2f64f1=_0x2f64['ruxaUj'](_0x2f64f1),_0x2f64['aWFGCR'][_0x4a006a]=_0x2f64f1):_0x2f64f1=_0x5abf49,_0x2f64f1;}const ALGORITHM=_0x5f51b4(0x178,0x17d)+'m',KEY_LENGTH=0x20,IV_LENGTH=0xc,TAG_LENGTH=0x10,SALT_LENGTH=0x10;function _0xeff8eb(_0x3b02ef,_0xa1db85){return _0x2f64(_0xa1db85- -0x9b,_0x3b02ef);}const PBKDF2_ITERATIONS=0x186a0,PBKDF2_DIGEST=_0x5f51b4(0x18c,0x177);export function generateEncryptionKey(){return randomBytes(KEY_LENGTH);}export function deriveKey(_0x255fe7,_0x58f174){const _0x3ee7a6=_0x58f174??randomBytes(SALT_LENGTH),_0xd45a79=pbkdf2Sync(_0x255fe7,_0x3ee7a6,PBKDF2_ITERATIONS,KEY_LENGTH,PBKDF2_DIGEST);return{'key':_0xd45a79,'salt':_0x3ee7a6};}export function encryptContent(_0x3189af,_0x100510){if(_0x100510[_0x4abb02(-0x197,-0x1a8)]!==KEY_LENGTH){if(_0x22419d(-0x133,-0x143)===_0x22419d(-0x133,-0x131))throw new Error(_0x4abb02(-0x191,-0x18d)+KEY_LENGTH+('\x20bytes여야\x20합'+'니다\x20(현재:\x20')+_0x100510[_0x22419d(-0x132,-0x11f)]+')');else{const _0x540b19=new _0x550732(_0x2be106),_0x2e53e4=_0x1923b9['from'](_0x540b19['buffer']),_0x56904d=_0x32eafa(_0x2e8ae6),_0x360a4e=_0x5e32c9(_0x5c2b8c,_0x2b79b5,_0x56904d),_0x49de60=_0x3239e3[_0x4abb02(-0x176,-0x18a)]([_0x360a4e[_0x22419d(-0x10f,-0xfa)](_0x2e53e4),_0x360a4e[_0x22419d(-0x136,-0x122)]()]),_0x476c37=_0x360a4e['getAuthTag'](),_0x48405b=_0x5952ff[_0x4abb02(-0x178,-0x18a)]([_0x56904d,_0x476c37,_0x49de60]);return _0x48405b[_0x22419d(-0x130,-0x139)](_0x4abb02(-0x1b6,-0x1a0));}}function _0x22419d(_0x5f41bf,_0x325b3c){return _0x5f51b4(_0x5f41bf- -0x29c,_0x325b3c);}const _0x5025ce=randomBytes(IV_LENGTH),_0x3d47da=createCipheriv(ALGORITHM,_0x100510,_0x5025ce),_0x50b3e3=Buffer[_0x22419d(-0x11e,-0x11c)](_0x3189af,_0x22419d(-0x120,-0x118)),_0x4593c8=Buffer[_0x22419d(-0x114,-0x11e)]([_0x3d47da['update'](_0x50b3e3),_0x3d47da['final']()]);function _0x4abb02(_0x5ee517,_0xdb5109){return _0x5f51b4(_0xdb5109- -0x312,_0x5ee517);}const _0x30d247=_0x3d47da[_0x4abb02(-0x195,-0x18f)]();return{'ciphertext':_0x4593c8[_0x22419d(-0x130,-0x140)](_0x4abb02(-0x1b4,-0x1a0)),'iv':_0x5025ce[_0x4abb02(-0x1ae,-0x1a6)](_0x4abb02(-0x191,-0x1a0)),'tag':_0x30d247['toString'](_0x4abb02(-0x1ad,-0x1a0))};}function _0x1363(){const _0x253d6b=['y29Uy2f0','qLLurvnFuevsxW','mtGWodiWmK1hvxnVCa','yNL0zuXLBMD0Aa','C2HHnteY','DxbKyxrL','mtb6v2fVwKK','yNvMzMvY','ruXftuvova','zMLUywW','y2LWAgvYDgv4Da','DgfN','y1vlBLy','BgvUz3rO','DhLYyMC','Dg9tDhjPBMC','C3rYAw5N','mJe2Bhn2uLnU','mJG1ndKZyK96yNDT','mZzyA2LSvfO','7j207ysW6RcaioUeIoUSTcdSP6FSIRxRI4G','yMfZzty0','nJaYnJu3shbvDwHR','z1fbENO','zgf0yq','mtq2ntyXnZbTwLvWsxG','C3vIyxjYyxK','ywvZlti1nI1NyW','mJKYmZKWBwDLu0rl','BwvZC2fNzq','64Ui64UKicJTMitSNQW6ia','DxrMltG','CgfYC2u','zNjVBq','nZuWnZvOvvrZuwu','yNL0zu9MzNnLDa','nZy5odK0mKvLve5hwq','C3rYAw5NAwz5','z2v0qxv0AfrHzW','mNLHv3nIsq','7jwu7zI47zMuio2cPoUkLca','mtm2weriwKvt','7j6e67kG65sPioUZTE2yUo2zLcdSI6tTJkG'];_0x1363=function(){return _0x253d6b;};return _0x1363();}export function decryptContent(_0x16fc86,_0x481a9b){if(_0x481a9b['length']!==KEY_LENGTH)throw new Error(_0xd5120d(0x3e,0x2e)+KEY_LENGTH+('\x20bytes여야\x20합'+_0xd5120d(0x2f,0x24))+_0x481a9b[_0x1bc310(0x245,0x239)]+')');const _0x420938=Buffer['from'](_0x16fc86['iv'],_0xd5120d(0xd,0x1b)),_0x3d4679=Buffer[_0x1bc310(0x257,0x24d)](_0x16fc86[_0x1bc310(0x22c,0x236)],_0xd5120d(0x2f,0x1b)),_0x1da9ad=Buffer[_0x1bc310(0x24b,0x24d)](_0x16fc86[_0xd5120d(0x1c,0x11)],_0xd5120d(0x26,0x1b));function _0xd5120d(_0xfaadb6,_0x233a31){return _0xeff8eb(_0xfaadb6,_0x233a31- -0x141);}const _0x118df9=createDecipheriv(ALGORITHM,_0x481a9b,_0x420938);_0x118df9['setAuthTag'](_0x1da9ad);function _0x1bc310(_0xbb246f,_0x463a67){return _0xeff8eb(_0xbb246f,_0x463a67-0xe5);}try{const _0x24650f=Buffer[_0xd5120d(0x2a,0x31)]([_0x118df9[_0x1bc310(0x263,0x25c)](_0x3d4679),_0x118df9[_0x1bc310(0x23a,0x235)]()]);return _0x24650f['toString'](_0x1bc310(0x244,0x24b));}catch(_0x41d391){if(_0x41d391 instanceof Error)throw new Error('복호화\x20실패:\x20'+_0x41d391[_0x1bc310(0x244,0x249)]+('\x20(잘못된\x20키\x20또는'+'\x20데이터\x20변조)'));throw _0x41d391;}}export function encryptEmbedding(_0x201a4b,_0x30b4d9){const _0x333527=new Float64Array(_0x201a4b),_0x51259a=Buffer[_0x5682da(0x4a3,0x495)](_0x333527[_0x31bc21(0x5ac,0x5bb)]);function _0x5682da(_0x155457,_0x579e78){return _0x5f51b4(_0x579e78-0x317,_0x155457);}const _0x521756=randomBytes(IV_LENGTH),_0x57b519=createCipheriv(ALGORITHM,_0x30b4d9,_0x521756);function _0x31bc21(_0x4d1493,_0x33007b){return _0x5f51b4(_0x4d1493-0x448,_0x33007b);}const _0x433ec3=Buffer['concat']([_0x57b519[_0x31bc21(0x5d5,0x5c5)](_0x51259a),_0x57b519[_0x31bc21(0x5ae,0x59a)]()]),_0x56d5fe=_0x57b519['getAuthTag'](),_0x3800fd=Buffer[_0x5682da(0x4a2,0x49f)]([_0x521756,_0x56d5fe,_0x433ec3]);return _0x3800fd[_0x31bc21(0x5b4,0x5ae)](_0x31bc21(0x5ba,0x5a6));}export function decryptEmbedding(_0x533b5e,_0x5678bf){const _0x17a971=Buffer[_0x32a717(0x3e2,0x3ec)](_0x533b5e,_0x32a717(0x3d6,0x3e6));if(_0x17a971[_0x4fd5a5(0x59c,0x5aa)]<IV_LENGTH+TAG_LENGTH)throw new Error('암호화된\x20임베딩\x20데'+_0x4fd5a5(0x5bf,0x5b1)+'다');function _0x4fd5a5(_0x471488,_0x26efdf){return _0x5f51b4(_0x26efdf-0x440,_0x471488);}const _0x4ce057=_0x17a971[_0x4fd5a5(0x5ad,0x5b7)](0x0,IV_LENGTH),_0x2f9713=_0x17a971[_0x32a717(0x3db,0x3dc)](IV_LENGTH,IV_LENGTH+TAG_LENGTH),_0x604464=_0x17a971[_0x32a717(0x3db,0x3da)](IV_LENGTH+TAG_LENGTH),_0x5d4708=createDecipheriv(ALGORITHM,_0x5678bf,_0x4ce057);_0x5d4708['setAuthTag'](_0x2f9713);function _0x32a717(_0x3d10c4,_0x5c065b){return _0x5f51b4(_0x3d10c4-0x264,_0x5c065b);}try{const _0x2d42b3=Buffer[_0x32a717(0x3ec,0x3de)]([_0x5d4708[_0x4fd5a5(0x5cf,0x5cd)](_0x604464),_0x5d4708['final']()]),_0x513bfe=new Float64Array(_0x2d42b3[_0x4fd5a5(0x5a0,0x5a4)],_0x2d42b3[_0x32a717(0x3e4,0x3f3)],_0x2d42b3[_0x4fd5a5(0x5d4,0x5cb)]/Float64Array['BYTES_PER_'+_0x4fd5a5(0x5b2,0x5a5)]);return Array[_0x32a717(0x3e2,0x3dd)](_0x513bfe);}catch(_0x28db51){if(_0x28db51 instanceof Error)throw new Error(_0x4fd5a5(0x5c8,0x5c7)+':\x20'+_0x28db51['message']);throw _0x28db51;}}export function isValidEncryptedPayload(_0x3e7782){function _0xafbe45(_0x5dc87c,_0x524a3f){return _0x5f51b4(_0x524a3f-0x115,_0x5dc87c);}if(typeof _0x3e7782!=='object'||_0x3e7782===null)return![];const _0x2f2ca3=_0x3e7782;function _0x5eb567(_0xc1636c,_0xb0105a){return _0x5f51b4(_0xc1636c-0x46b,_0xb0105a);}return typeof _0x2f2ca3[_0xafbe45(0x26f,0x27c)]===_0xafbe45(0x293,0x282)&&typeof _0x2f2ca3['iv']==='string'&&typeof _0x2f2ca3['tag']===_0xafbe45(0x287,0x282);}export function wrapEncryptedContent(_0x4fd974){function _0x57f51e(_0x2dbd4e,_0x366f24){return _0x5f51b4(_0x366f24- -0x279,_0x2dbd4e);}function _0x1a7128(_0x4a0b67,_0x3ff095){return _0x5f51b4(_0x4a0b67- -0x328,_0x3ff095);}return JSON[_0x57f51e(-0xfe,-0xf7)]({'encrypted':!![],'data':_0x4fd974[_0x1a7128(-0x1c1,-0x1c7)],'iv':_0x4fd974['iv'],'tag':_0x4fd974[_0x57f51e(-0x124,-0x111)]});}export function unwrapEncryptedContent(_0x55fd96){function _0x4a8599(_0x318792,_0x29da77){return _0xeff8eb(_0x318792,_0x29da77-0x269);}function _0x3202d6(_0x1029db,_0x4c2087){return _0xeff8eb(_0x1029db,_0x4c2087-0x214);}try{if(_0x4a8599(0x3c8,0x3be)===_0x4a8599(0x3d1,0x3c7)){const _0x5d293f=_0x321ee8[_0x3202d6(0x37b,0x386)]([_0x1811d2[_0x4a8599(0x3d7,0x3e0)](_0x13bd41),_0x54fa9e[_0x4a8599(0x3ce,0x3b9)]()]),_0x2e77ae=new _0x5f41e3(_0x5d293f[_0x4a8599(0x3a5,0x3b7)],_0x5d293f[_0x4a8599(0x3d9,0x3d3)],_0x5d293f[_0x3202d6(0x399,0x389)]/_0x3d2131[_0x4a8599(0x3d3,0x3dc)+_0x3202d6(0x351,0x363)]);return _0x498db4[_0x3202d6(0x367,0x37c)](_0x2e77ae);}else{const _0x228d66=JSON[_0x4a8599(0x3d5,0x3d0)](_0x55fd96);if(_0x228d66['encrypted']!==!![])return null;if(typeof _0x228d66[_0x4a8599(0x3c0,0x3c8)]!==_0x3202d6(0x355,0x36b)||typeof _0x228d66['iv']!==_0x4a8599(0x3ca,0x3c0)||typeof _0x228d66[_0x4a8599(0x3a8,0x3bb)]!==_0x4a8599(0x3bc,0x3c0))return null;return{'ciphertext':_0x228d66[_0x4a8599(0x3c3,0x3c8)],'iv':_0x228d66['iv'],'tag':_0x228d66[_0x3202d6(0x360,0x366)]};}}catch{return null;}}
@@ -1 +1 @@
1
- function _0x1bee(_0x5d2d9c,_0x90a93){_0x5d2d9c=_0x5d2d9c-0x1a5;var _0x25010c=_0x2501();var _0x1bee3e=_0x25010c[_0x5d2d9c];if(_0x1bee['SnGRoX']===undefined){var _0x12962f=function(_0x67f33c){var _0x4da0f0='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var _0x427c51='',_0x226fd1='';for(var _0x2c5eab=0x0,_0x18a46a,_0x2e9489,_0xa415ec=0x0;_0x2e9489=_0x67f33c['charAt'](_0xa415ec++);~_0x2e9489&&(_0x18a46a=_0x2c5eab%0x4?_0x18a46a*0x40+_0x2e9489:_0x2e9489,_0x2c5eab++%0x4)?_0x427c51+=String['fromCharCode'](0xff&_0x18a46a>>(-0x2*_0x2c5eab&0x6)):0x0){_0x2e9489=_0x4da0f0['indexOf'](_0x2e9489);}for(var _0x276ef5=0x0,_0x1f5c69=_0x427c51['length'];_0x276ef5<_0x1f5c69;_0x276ef5++){_0x226fd1+='%'+('00'+_0x427c51['charCodeAt'](_0x276ef5)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x226fd1);};_0x1bee['jCmGpG']=_0x12962f,_0x1bee['zCCazv']={},_0x1bee['SnGRoX']=!![];}var _0x972cf2=_0x25010c[0x0],_0x1b92f6=_0x5d2d9c+_0x972cf2,_0x3dd8db=_0x1bee['zCCazv'][_0x1b92f6];return!_0x3dd8db?(_0x1bee3e=_0x1bee['jCmGpG'](_0x1bee3e),_0x1bee['zCCazv'][_0x1b92f6]=_0x1bee3e):_0x1bee3e=_0x3dd8db,_0x1bee3e;}(function(_0x4e5f4f,_0x55ed91){var _0x213b49=_0x4e5f4f();function _0x39545d(_0x2e450b,_0x3ee304){return _0x1bee(_0x3ee304-0x2eb,_0x2e450b);}function _0x5ba18d(_0x23dd6e,_0x33a502){return _0x1bee(_0x23dd6e-0x371,_0x33a502);}while(!![]){try{var _0x3f886a=-parseInt(_0x5ba18d(0x517,0x516))/0x1+-parseInt(_0x5ba18d(0x51c,0x521))/0x2*(parseInt(_0x39545d(0x496,0x49b))/0x3)+-parseInt(_0x5ba18d(0x519,0x51b))/0x4*(parseInt(_0x39545d(0x499,0x497))/0x5)+parseInt(_0x39545d(0x496,0x494))/0x6*(-parseInt(_0x39545d(0x49f,0x49a))/0x7)+-parseInt(_0x39545d(0x49e,0x499))/0x8+-parseInt(_0x5ba18d(0x51e,0x522))/0x9*(parseInt(_0x5ba18d(0x518,0x51a))/0xa)+parseInt(_0x39545d(0x48a,0x490))/0xb*(parseInt(_0x39545d(0x493,0x495))/0xc);if(_0x3f886a===_0x55ed91)break;else _0x213b49['push'](_0x213b49['shift']());}catch(_0x40530c){_0x213b49['push'](_0x213b49['shift']());}}}(_0x2501,0xb1972));export{A2AClient}from'./client.js';export{MemorySynchronizer}from'./synchronizer.js';export{SyncQueue,mapCategory,mapTier}from'./queue.js';function _0x2501(){var _0x2130f4=['mJm2nZeYv2fIsNzK','nJnSrNHTs0u','mtfswMT2s2u','nda0mZq3rvLgvLPO','ntb0Eg5tBLK','nZjmA01Stg0','nNPfEK5krG','ndaZnJK0mdrNAhLNqwG','oty0ngTvDuHPva','mtK1mZm1yLrtvg5J','nduZmZKZENfjD0Dk','oteZnZuYoe1lB3fbwG'];_0x2501=function(){return _0x2130f4;};return _0x2501();}export{LocalVectorClock}from'./vector-clock.js';export{TeamSynchronizer}from'./team-synchronizer.js';export{SyncScheduler}from'./scheduler.js';export{encryptContent,decryptContent,encryptEmbedding,decryptEmbedding,deriveKey,generateEncryptionKey,wrapEncryptedContent,unwrapEncryptedContent,isValidEncryptedPayload}from'./encryption.js';
1
+ function _0x5da1(){var _0xfccde9=['mti0mdG3nKzgChv3BG','nJqZmte5mKn6ELDvtq','mJu5mJqYDe5fEejM','nZu3nte1sgfpB0vY','mJm0nZC3Ce5Oy1rT','nLHKzMTmEq','ngTprw1MyG','oda2mty2zfHwrhr6','mtaWrLDewu52','ndyYnta1BufMC0Dd'];_0x5da1=function(){return _0xfccde9;};return _0x5da1();}(function(_0x484622,_0x5999f4){function _0x3d52a5(_0x240d65,_0x1596fc){return _0x113b(_0x1596fc- -0x322,_0x240d65);}function _0x41d830(_0x12d17e,_0x585f9d){return _0x113b(_0x12d17e- -0x335,_0x585f9d);}var _0x3809fb=_0x484622();while(!![]){try{var _0x988371=parseInt(_0x41d830(-0x2bf,-0x2bd))/0x1*(parseInt(_0x3d52a5(-0x2af,-0x2ab))/0x2)+-parseInt(_0x41d830(-0x2c0,-0x2c0))/0x3+parseInt(_0x3d52a5(-0x2ab,-0x2aa))/0x4*(parseInt(_0x3d52a5(-0x2aa,-0x2a7))/0x5)+-parseInt(_0x41d830(-0x2b7,-0x2b3))/0x6+-parseInt(_0x41d830(-0x2b9,-0x2b4))/0x7+-parseInt(_0x3d52a5(-0x2a2,-0x2a5))/0x8+parseInt(_0x3d52a5(-0x2aa,-0x2a9))/0x9*(parseInt(_0x41d830(-0x2bb,-0x2b6))/0xa);if(_0x988371===_0x5999f4)break;else _0x3809fb['push'](_0x3809fb['shift']());}catch(_0x56579a){_0x3809fb['push'](_0x3809fb['shift']());}}}(_0x5da1,0x657cd));export{A2AClient}from'./client.js';export{MemorySynchronizer}from'./synchronizer.js';export{SyncQueue,mapCategory,mapTier}from'./queue.js';export{LocalVectorClock}from'./vector-clock.js';export{TeamSynchronizer}from'./team-synchronizer.js';function _0x113b(_0xe6a87b,_0x2246f7){_0xe6a87b=_0xe6a87b-0x75;var _0x5da1cb=_0x5da1();var _0x113b45=_0x5da1cb[_0xe6a87b];if(_0x113b['scyQwI']===undefined){var _0x45280c=function(_0x2bd9c7){var _0xcc494c='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var _0x217550='',_0x5814b8='';for(var _0x213529=0x0,_0x34fe49,_0x2d35e9,_0x2585bc=0x0;_0x2d35e9=_0x2bd9c7['charAt'](_0x2585bc++);~_0x2d35e9&&(_0x34fe49=_0x213529%0x4?_0x34fe49*0x40+_0x2d35e9:_0x2d35e9,_0x213529++%0x4)?_0x217550+=String['fromCharCode'](0xff&_0x34fe49>>(-0x2*_0x213529&0x6)):0x0){_0x2d35e9=_0xcc494c['indexOf'](_0x2d35e9);}for(var _0x195fc6=0x0,_0x58486a=_0x217550['length'];_0x195fc6<_0x58486a;_0x195fc6++){_0x5814b8+='%'+('00'+_0x217550['charCodeAt'](_0x195fc6)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x5814b8);};_0x113b['ZEtAtA']=_0x45280c,_0x113b['dCqgOC']={},_0x113b['scyQwI']=!![];}var _0x511d97=_0x5da1cb[0x0],_0x3d4f8a=_0xe6a87b+_0x511d97,_0x30f7f5=_0x113b['dCqgOC'][_0x3d4f8a];return!_0x30f7f5?(_0x113b45=_0x113b['ZEtAtA'](_0x113b45),_0x113b['dCqgOC'][_0x3d4f8a]=_0x113b45):_0x113b45=_0x30f7f5,_0x113b45;}export{SyncScheduler}from'./scheduler.js';export{encryptContent,decryptContent,encryptEmbedding,decryptEmbedding,deriveKey,generateEncryptionKey,wrapEncryptedContent,unwrapEncryptedContent,isValidEncryptedPayload}from'./encryption.js';
@@ -1 +1 @@
1
- function _0x4f7328(_0x4e5f23,_0x25e83d){return _0x2071(_0x4e5f23-0x298,_0x25e83d);}(function(_0x3940cd,_0x547cab){const _0x46f410=_0x3940cd();function _0x500350(_0x1ec1ce,_0x279f85){return _0x2071(_0x1ec1ce- -0x5a,_0x279f85);}function _0x1d23f0(_0x5f16ef,_0x26318e){return _0x2071(_0x5f16ef- -0x291,_0x26318e);}while(!![]){try{const _0x53f200=-parseInt(_0x500350(0x14a,0x132))/0x1*(parseInt(_0x1d23f0(-0xec,-0xea))/0x2)+parseInt(_0x1d23f0(-0x128,-0x123))/0x3*(-parseInt(_0x500350(0x151,0x162))/0x4)+parseInt(_0x500350(0x105,0xe4))/0x5*(-parseInt(_0x500350(0x116,0xe7))/0x6)+parseInt(_0x1d23f0(-0xee,-0xc3))/0x7+parseInt(_0x500350(0x132,0x134))/0x8+parseInt(_0x500350(0x156,0x181))/0x9+parseInt(_0x1d23f0(-0x11f,-0x139))/0xa;if(_0x53f200===_0x547cab)break;else _0x46f410['push'](_0x46f410['shift']());}catch(_0xf76b5){_0x46f410['push'](_0x46f410['shift']());}}}(_0x5be2,0xa7425));import{createHash}from'node:crypto';function _0x2071(_0x247427,_0x26e8f5){_0x247427=_0x247427-0x156;const _0x5be255=_0x5be2();let _0x2071ed=_0x5be255[_0x247427];if(_0x2071['KVwLnv']===undefined){var _0x1836d3=function(_0x3028ae){const _0x19047b='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x26ef79='',_0x1ac1d4='';for(let _0x3b7230=0x0,_0x84df64,_0x6c8550,_0x2a65ab=0x0;_0x6c8550=_0x3028ae['charAt'](_0x2a65ab++);~_0x6c8550&&(_0x84df64=_0x3b7230%0x4?_0x84df64*0x40+_0x6c8550:_0x6c8550,_0x3b7230++%0x4)?_0x26ef79+=String['fromCharCode'](0xff&_0x84df64>>(-0x2*_0x3b7230&0x6)):0x0){_0x6c8550=_0x19047b['indexOf'](_0x6c8550);}for(let _0x49080d=0x0,_0xe98a4=_0x26ef79['length'];_0x49080d<_0xe98a4;_0x49080d++){_0x1ac1d4+='%'+('00'+_0x26ef79['charCodeAt'](_0x49080d)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x1ac1d4);};_0x2071['pSuloN']=_0x1836d3,_0x2071['dqgklv']={},_0x2071['KVwLnv']=!![];}const _0x3ae7c9=_0x5be255[0x0],_0x4d98b2=_0x247427+_0x3ae7c9,_0x552f79=_0x2071['dqgklv'][_0x4d98b2];return!_0x552f79?(_0x2071ed=_0x2071['pSuloN'](_0x2071ed),_0x2071['dqgklv'][_0x4d98b2]=_0x2071ed):_0x2071ed=_0x552f79,_0x2071ed;}import{getErrorStatus}from'./client.js';const CATEGORY_MAP={'preference':_0x4f7328(0x403,0x416),'rule':_0xdaa77c(0x339,0x364)},TIER_MAP={'procedural':_0x4f7328(0x43e,0x417)};export function mapCategory(_0xaa2e3b){return CATEGORY_MAP[_0xaa2e3b]??_0xaa2e3b;}export function mapTier(_0x14c8a7){return TIER_MAP[_0x14c8a7]??_0x14c8a7;}function _0xdaa77c(_0xc5ff4,_0x453e3f){return _0x2071(_0x453e3f-0x1f9,_0xc5ff4);}function _0x5be2(){const _0x103644=['CgvUzgLUzW','BNqG','mtvrugHszNG','DgLTzw91De1Z','CxvHBgL0EvnJBW','y3jLyxrLtwvTBW','z2v0vw5ZEw5Jzq','C2v0','y2f0zwDVCNK','BM93','BwvZC2fNzq','CMvZzxrtEw5JqG','nJyXnZfjrvHfBfe','CMvTB3rLswq','y29UDMvUDgLVBG','ktOG','C2HHmJu2','7kce7zMylcdRI6tSNyWGzMX1','C2XPy2u','mJq5mZqWmNjiCM5eCW','y2H1BMTuB3rHBa','mZa5odm2mJb5C2HoDfa','Bwf0y2G','y3jLyxrLza','CMf0zuXPBwL0zq','CgfYzw50swq','z2v0','7ikT7kcCioYlPo2mQcaO','6RcCignOAwXKiokaLca','zgvSzxrLu3LUyW','z2v0ugvUzgLUzW','zxjYB3jZ','ChvZAa','Dg9mB3DLCKnHCW','y2XPzw50','BwvTB3j5swq','7jEq7isCioYERoYlNoUpHcK','CMLLC0jHDgnO','BgvUz3rO','tLrfr0vs','y2H1BMTjBMrLEa','CM91BMq','tufyx1nbrKvFsq','u3rHDhvZ','y29Uy3vYCMvUyW','C3vIC3rYAw5N','AwrZ','mZuWnJaWq1HvyMLZ','BKrHBxe','tM90iezVDw5K','Aw5JBhvKzxm','Evn0ywXLuMvTBW','zMLSDgvY','zhvYyxrPB24','zMfPBgvK','icJRI6tSNyWGzMX1C2G','q291BNq','C2JSL5dSHjWG7j6SChvZAa','zMX1C2HuB21ICW','ywrK','Bwf4','ChvZAgvK','C2L6zq','7yoa7j6e7jwe7jUdoIa','Agv4','C3rHBguGCgfYzq','DhjPBq','C3LUy2vKsxrLBq','y3jLyxrLzef0','zMX1C2G','mJGZotGYm3vXDgLYwq','mtK0z1PZqunK','nZKXnfjAAK1QrW','C2vTyw50Awm','txvzr1q','AgfZ','DxbKyxrL','DhvZ','mtG4tfv2Aw1j','BwfYA1rVBwjZDa','B25Lu3LUy2vK','BgLTAxq','C2v0u3LUy1n0yq','mty5ndi5nuPItu9VqG','BxnN','CgfYzw50ihjLBq','BwfW','6Rg0ioYEKoUpMsbYzxnLDa','67cW7lMyioYlPo2mQdOG','y29UDgvUDa','B3rLx2LKioUVUo2zLEYDUa','u3LUy01LBw9YAq','vwXJze0','ChvZAejHDgnOzq','Dgvjza','DxbKyxrLtwvTBW','BM90igzVDw5K','zgLNzxn0'];_0x5be2=function(){return _0x103644;};return _0x5be2();}function computeContentHash(_0x33409a){function _0x2886d1(_0x4db05a,_0x17dd86){return _0xdaa77c(_0x4db05a,_0x17dd86-0x17f);}function _0x2398a7(_0x5accf9,_0x110c96){return _0xdaa77c(_0x110c96,_0x5accf9-0x132);}return createHash(_0x2886d1(0x4ef,0x4e5))[_0x2398a7(0x4d4,0x4b3)](_0x33409a[_0x2886d1(0x532,0x517)]()[_0x2398a7(0x4a9,0x4da)+'e']())[_0x2398a7(0x487,0x4af)](_0x2398a7(0x4c8,0x4b8))[_0x2398a7(0x4b5,0x4a0)](0x0,0x10);}export class SyncQueue{['db'];[_0x4f7328(0x417,0x410)];constructor(_0x2f5c95,_0x1d9abe){function _0x78356e(_0x4d63d2,_0x3ecba6){return _0x4f7328(_0x3ecba6- -0x1ad,_0x4d63d2);}this['db']=_0x2f5c95,this[_0x78356e(0x272,0x26a)]=_0x1d9abe;}['enqueue'](_0x4372e8){function _0x4f631a(_0x149adf,_0x1ae5cc){return _0x4f7328(_0x149adf- -0x387,_0x1ae5cc);}function _0x2302ed(_0x4d09cf,_0x12e676){return _0x4f7328(_0x12e676-0xd5,_0x4d09cf);}this['db'][_0x4f631a(0xc0,0xc6)+_0x4f631a(0xbb,0xa2)](_0x4372e8,null,_0x4f631a(0x6e,0x94));}async[_0x4f7328(0x43a,0x44b)](_0x1fd7d2){const _0x1c2954=Date[_0x149e4d(-0x171,-0x144)](),_0x456801=_0x1fd7d2?.[_0x149e4d(-0x177,-0x14d)]??0x493e0,_0x187c3d={'pushed':0x0,'failed':0x0,'errors':[],'duration':0x0,'syncedItems':[]};function _0x149e4d(_0x2f45ec,_0x129728){return _0x4f7328(_0x2f45ec- -0x56f,_0x129728);}function _0x366132(_0x135b0b,_0x57ef55){return _0x4f7328(_0x57ef55-0x3e,_0x135b0b);}const _0x4445d2=0x64,_0x1448e6=this['db'][_0x366132(0x434,0x451)+_0x149e4d(-0x181,-0x1a1)+'es']();if(_0x1448e6['length']===0x0)return _0x187c3d[_0x366132(0x45d,0x468)]=Date[_0x366132(0x44e,0x43c)]()-_0x1c2954,_0x187c3d;const _0x122a6b=new Map(),_0x38328f=_0x1448e6[_0x149e4d(-0x146,-0x12e)](_0x428027=>{const _0x172395=computeContentHash(_0x428027['content']);if(_0x122a6b[_0x51facd(-0x19,0x15)](_0x172395))return this['db'][_0x20a76f(0x26d,0x28e)+'tus'](_0x428027['id'],null,'synced'),![];_0x122a6b['set'](_0x172395,_0x428027['id']);function _0x20a76f(_0x1163e6,_0x393922){return _0x149e4d(_0x393922-0x3b6,_0x1163e6);}function _0x51facd(_0x3305e9,_0x4d5dbd){return _0x149e4d(_0x3305e9-0x116,_0x4d5dbd);}return!![];}),_0x16ad9e=_0x38328f[_0x149e4d(-0x146,-0x16f)](_0xcf5080=>!_0xcf5080[_0x366132(0x42f,0x44c)]),_0x35ae22=_0x38328f['filter'](_0x448de8=>!!_0x448de8[_0x149e4d(-0x161,-0x176)]),_0x25a66c=new Map();for(const _0x251ba0 of _0x35ae22){if(_0x251ba0[_0x149e4d(-0x161,-0x183)]&&!_0x25a66c[_0x149e4d(-0x12f,-0x10a)](_0x251ba0['parentId'])){const _0x2351d7=this['db']['getSyncSta'+_0x149e4d(-0x12d,-0x12e)](_0x251ba0[_0x366132(0x456,0x44c)]);_0x2351d7?.['remoteId']&&_0x25a66c[_0x366132(0x40b,0x43a)](_0x251ba0[_0x149e4d(-0x161,-0x136)],_0x2351d7[_0x149e4d(-0x16d,-0x18c)]);}}await this['pushBatche'+'s'](_0x16ad9e,_0x4445d2,_0x1c2954,_0x456801,_0x187c3d,_0x25a66c);if(_0x35ae22['length']>0x0&&(_0x456801===0x0||Date[_0x149e4d(-0x171,-0x18b)]()-_0x1c2954<_0x456801)){const _0x2c213c=_0x35ae22[_0x149e4d(-0x146,-0x137)](_0x4d440b=>_0x25a66c[_0x149e4d(-0x12f,-0x103)](_0x4d440b[_0x366132(0x459,0x44c)])),_0x46e954=_0x35ae22['filter'](_0x5c9393=>!_0x25a66c[_0x149e4d(-0x12f,-0x14f)](_0x5c9393['parentId']));_0x46e954['length']>0x0&&_0x187c3d[_0x366132(0x451,0x452)][_0x149e4d(-0x15a,-0x12e)](_0x46e954[_0x366132(0x435,0x459)]+('개\x20child\x20—\x20'+_0x366132(0x48f,0x488)+_0x149e4d(-0x120,-0xf9)+_0x149e4d(-0x143,-0x112)+'에서\x20재시도)')),await this['pushBatche'+'s'](_0x2c213c,_0x4445d2,_0x1c2954,_0x456801,_0x187c3d,_0x25a66c);}return _0x187c3d['duration']=Date[_0x366132(0x445,0x43c)]()-_0x1c2954,_0x187c3d;}async[_0xdaa77c(0x353,0x351)+'s'](_0x5c0a76,_0x58e978,_0x249f31,_0x12bacc,_0x2bdcb1,_0x1a379e){function _0x3b554e(_0x503c64,_0x372327){return _0xdaa77c(_0x503c64,_0x372327- -0x1da);}function _0x20882a(_0xde90f7,_0x4f137f){return _0xdaa77c(_0xde90f7,_0x4f137f- -0x4df);}for(let _0x19a0d6=0x0;_0x19a0d6<_0x5c0a76[_0x3b554e(0x174,0x1a2)];_0x19a0d6+=_0x58e978){if(_0x12bacc>0x0&&Date[_0x20882a(-0x16e,-0x180)]()-_0x249f31>_0x12bacc){const _0x1cadb2=_0x5c0a76[_0x3b554e(0x1ac,0x1a2)]-_0x19a0d6;_0x2bdcb1[_0x3b554e(0x1a6,0x19b)][_0x3b554e(0x1bb,0x19c)](_0x20882a(-0x130,-0x14a)+_0x1cadb2+'개\x20미처리'),_0x2bdcb1[_0x20882a(-0x171,-0x153)]+=_0x1cadb2;break;}const _0x4a4416=_0x5c0a76['slice'](_0x19a0d6,_0x19a0d6+_0x58e978);try{const _0x4d4193=new Map(),_0x1e99ef=await this[_0x3b554e(0x1a0,0x19e)][_0x20882a(-0x187,-0x184)+_0x3b554e(0x178,0x1a1)](_0x4a4416[_0x20882a(-0x159,-0x133)](_0x13b66d=>{const _0x15deb3=_0x13b66d[_0x51363b(-0xeb,-0xfc)+'re']!==undefined?Math[_0x2ecb30(-0x138,-0x140)](_0x13b66d[_0x2ecb30(-0x15d,-0x17e)+'re']*0x3e8)/0x3e8:undefined;_0x4d4193[_0x51363b(-0xe8,-0xb7)](_0x13b66d['id'],_0x15deb3);function _0x51363b(_0x1c0f00,_0x31d1d1){return _0x3b554e(_0x31d1d1,_0x1c0f00- -0x26b);}function _0x2ecb30(_0x421ae5,_0x238c8d){return _0x3b554e(_0x238c8d,_0x421ae5- -0x2dd);}return{'content':_0x13b66d[_0x51363b(-0x96,-0x96)],'category':mapCategory(_0x13b66d[_0x2ecb30(-0x159,-0x176)]),'tier':_0x2ecb30(-0x118,-0x110),'tags':_0x13b66d['tags'],'created_at':_0x13b66d[_0x51363b(-0xab,-0xd0)],'parent_id':_0x13b66d[_0x51363b(-0xd6,-0xef)]?_0x1a379e[_0x51363b(-0xd5,-0xe3)](_0x13b66d['parentId']):undefined,'chunk_index':_0x13b66d[_0x2ecb30(-0x139,-0x167)]??undefined,'chunk_total':_0x13b66d[_0x2ecb30(-0x14d,-0x167)]??undefined,'quality_score':_0x15deb3};}));for(let _0x4789f1=0x0;_0x4789f1<_0x1e99ef[_0x3b554e(0x1ad,0x1aa)]['length'];_0x4789f1++){if(_0x4789f1<_0x4a4416['length']&&_0x1e99ef['ids'][_0x4789f1]){const _0x98acb5=_0x4a4416[_0x4789f1]['id'],_0x285b09=_0x4d4193[_0x20882a(-0x18e,-0x16f)](_0x98acb5);if(_0x285b09!==undefined&&_0x4a4416[_0x4789f1]['qualitySco'+'re']===undefined){if(_0x20882a(-0x166,-0x13f)!==_0x3b554e(0x184,0x176))try{this['db'][_0x3b554e(0x174,0x179)+'ry'](_0x98acb5,{'qualityScore':_0x285b09});}catch{}else this['db'][_0x3b554e(0x1f9,0x1ce)+'tus'](_0x1e5fa1,null,_0x3b554e(0x155,0x17c));}this['db']['setSyncSta'+'tus'](_0x98acb5,_0x1e99ef['ids'][_0x4789f1],'synced'),_0x1a379e['set'](_0x98acb5,_0x1e99ef[_0x20882a(-0x18b,-0x15b)][_0x4789f1]),_0x2bdcb1[_0x3b554e(0x1a9,0x1bf)+'s'][_0x20882a(-0x16a,-0x169)]({'localId':_0x98acb5,'remoteId':_0x1e99ef[_0x20882a(-0x14c,-0x15b)][_0x4789f1]});}}_0x2bdcb1[_0x3b554e(0x1b1,0x1b9)]+=_0x1e99ef[_0x3b554e(0x19b,0x193)],_0x2bdcb1[_0x3b554e(0x1c1,0x1b2)]+=_0x1e99ef[_0x3b554e(0x1ae,0x1b2)];if(_0x1e99ef[_0x3b554e(0x189,0x19b)][_0x20882a(-0x18b,-0x163)]>0x0){const _0x28584a=new Set(),_0x4bb6f1=/Parent memory not found:\s*parent_id\s*'([^']+)'/;for(const _0x4d6521 of _0x1e99ef[_0x20882a(-0x167,-0x16a)]){const _0x3227bd=_0x4d6521[_0x3b554e(0x17a,0x192)](_0x4bb6f1);if(_0x3227bd)_0x28584a[_0x3b554e(0x1dc,0x1b7)](_0x3227bd[0x1]);}if(_0x28584a[_0x3b554e(0x1be,0x1ba)]>0x0){let _0x5a99d9=0x0;for(const _0x21771d of _0x28584a){_0x5a99d9+=this['db'][_0x3b554e(0x16d,0x187)+_0x3b554e(0x1ad,0x1af)+_0x3b554e(0x179,0x178)](_0x21771d);}_0x5a99d9>0x0&&_0x2bdcb1[_0x3b554e(0x189,0x19b)]['push'](_0x20882a(-0x136,-0x148)+_0x20882a(-0x170,-0x188)+_0x28584a[_0x20882a(-0x14f,-0x14b)]+('건\x20자동\x20reset'+'\x20(')+_0x5a99d9+('행\x20pending\x20'+_0x20882a(-0x18f,-0x178)+_0x20882a(-0x17f,-0x150)+')'));}_0x2bdcb1[_0x20882a(-0x143,-0x16a)][_0x20882a(-0x144,-0x169)](..._0x1e99ef['errors']);}}catch(_0x5da7ff){_0x2bdcb1['errors'][_0x3b554e(0x18a,0x19c)](_0x20882a(-0x107,-0x131)+(_0x5da7ff instanceof Error?_0x5da7ff[_0x3b554e(0x171,0x186)]:String(_0x5da7ff))),_0x2bdcb1[_0x3b554e(0x1ae,0x1b2)]+=_0x4a4416['length'];}}}async[_0xdaa77c(0x3a2,0x390)+'tones'](_0x35a8ea){const _0xe51642=Date[_0xb4623c(-0x182,-0x1ac)](),_0x59ace4=_0x35a8ea?.[_0xb4623c(-0x181,-0x1b2)]??0x0,_0x2e8c93=_0x35a8ea?.[_0x4df792(0xa5,0x9f)]??Number[_0x4df792(0x7e,0x99)+_0xb4623c(-0x17a,-0x18e)],_0x468552=Math[_0xb4623c(-0x16b,-0x179)](0x1,_0x35a8ea?.[_0xb4623c(-0x18c,-0x189)+'y']??0x1);function _0x4df792(_0x5dffb3,_0x1c992f){return _0xdaa77c(_0x1c992f,_0x5dffb3- -0x302);}const _0x3ab842=this['db'][_0x4df792(0x5a,0x37)+'dTombstone'+'s']();let _0x4badd8=0x0;const _0xed2e5d=[];function _0xb4623c(_0x1ca5c7,_0x7de1c){return _0xdaa77c(_0x1ca5c7,_0x7de1c- -0x50b);}const _0x36b237=[];for(const _0x3d3b0e of _0x3ab842){const _0x53281f=this['db']['getSyncSta'+_0x4df792(0xa1,0xb9)](_0x3d3b0e[_0x4df792(0x77,0x4b)]);if(!_0x53281f?.[_0xb4623c(-0x1c4,-0x1a8)]){this['db'][_0xb4623c(-0x17e,-0x166)+_0x4df792(0xa4,0x9e)](_0x3d3b0e['memoryId']),this['db'][_0x4df792(0x71,0x80)+'Status'](_0x3d3b0e[_0xb4623c(-0x193,-0x192)]);continue;}_0x36b237['push']({'memoryId':_0x3d3b0e[_0xb4623c(-0x19a,-0x192)],'remoteId':_0x53281f['remoteId']});}const _0x27e960=_0x36b237[_0x4df792(0x66,0x6c)](0x0,_0x2e8c93),_0x36f3c3=()=>_0x59ace4>0x0&&Date[_0x4df792(0x5d,0x7b)]()-_0xe51642>=_0x59ace4;let _0x562300=![];for(let _0x4ebe16=0x0;_0x4ebe16<_0x27e960['length'];_0x4ebe16+=_0x468552){if(_0x36f3c3()){if('ojdfC'==='ojdfC'){_0x562300=!![];break;}else{let _0x3099e8=0x0;for(const _0x58a311 of _0xa05f30){_0x3099e8+=this['db']['resetSyncB'+'yStaleRemo'+_0x4df792(0x50,0x81)](_0x58a311);}_0x3099e8>0x0&&_0x3938a7[_0x4df792(0x73,0x54)][_0x4df792(0x74,0x78)](_0x4df792(0x95,0xc2)+'nt\x20'+_0x3d2947[_0x4df792(0x92,0xa9)]+(_0xb4623c(-0x171,-0x15e)+'\x20(')+_0x3099e8+('행\x20pending\x20'+_0xb4623c(-0x1cb,-0x1a4)+_0x4df792(0x8d,0x88)+')'));}}const _0x5426dd=_0x27e960[_0x4df792(0x66,0x45)](_0x4ebe16,_0x4ebe16+_0x468552),_0x495dff=await Promise['all'](_0x5426dd[_0x4df792(0xaa,0x98)](async _0x58aa0b=>{function _0x16c8a1(_0x43b7ce,_0x140752){return _0x4df792(_0x140752-0x216,_0x43b7ce);}function _0x5ce989(_0x3bc902,_0x1800f0){return _0x4df792(_0x1800f0- -0x149,_0x3bc902);}if(_0x5ce989(-0xb9,-0xc5)==='tnven')_0x1883f1['errors'][_0x16c8a1(0x2b8,0x28a)](_0x3a0932['length']+(_0x5ce989(-0xb8,-0xd9)+_0x5ce989(-0x8f,-0xa0)+_0x5ce989(-0x91,-0x9b)+_0x16c8a1(0x274,0x2a1)+_0x16c8a1(0x286,0x28e)));else try{return await this[_0x5ce989(-0xb1,-0xd3)]['deleteMemo'+'ry'](_0x58aa0b['remoteId']),{'memoryId':_0x58aa0b[_0x5ce989(-0xba,-0xd2)],'ok':!![],'rateLimited':![],'msg':''};}catch(_0x310c1f){const _0x5d4ec2=_0x310c1f instanceof Error?_0x310c1f['message']:String(_0x310c1f),_0x2b8593=getErrorStatus(_0x310c1f);if(_0x2b8593===0x194||_0x5d4ec2[_0x16c8a1(0x29e,0x29c)](_0x16c8a1(0x255,0x268))||_0x5d4ec2[_0x5ce989(-0xcf,-0xc3)](_0x16c8a1(0x27d,0x29b)))return{'memoryId':_0x58aa0b[_0x16c8a1(0x291,0x28d)],'ok':!![],'rateLimited':![],'msg':''};return{'memoryId':_0x58aa0b['memoryId'],'ok':![],'rateLimited':_0x2b8593===0x1ad,'msg':_0x5d4ec2};}}));for(const _0x9d9dad of _0x495dff){if(_0x9d9dad['ok'])this['db']['markTombst'+_0xb4623c(-0x14e,-0x165)](_0x9d9dad[_0x4df792(0x77,0xa6)]),this['db'][_0x4df792(0x71,0x88)+_0x4df792(0x7f,0x98)](_0x9d9dad[_0xb4623c(-0x182,-0x192)]),_0x4badd8++;else{_0xed2e5d['push'](_0xb4623c(-0x170,-0x19a)+_0x9d9dad['memoryId']+_0xb4623c(-0x177,-0x1a6)+_0x9d9dad[_0x4df792(0xa8,0xae)]);if(_0x9d9dad[_0x4df792(0x6c,0x57)+'d'])_0x562300=!![];}}if(_0x562300)break;}return{'deleted':_0x4badd8,'errors':_0xed2e5d,'remaining':Math[_0x4df792(0x90,0xb6)](0x0,_0x36b237['length']-_0x4badd8),'stopped':_0x562300};}['getPending'+_0x4f7328(0x42d,0x425)](){function _0x72b7f0(_0x79c3db,_0x266c78){return _0xdaa77c(_0x266c78,_0x79c3db- -0x436);}function _0x23cb5c(_0x4c5e9a,_0x49c87e){return _0xdaa77c(_0x49c87e,_0x4c5e9a- -0x3e2);}return this['db'][_0x23cb5c(-0x6e,-0x7e)+_0x72b7f0(-0xe7,-0xfc)+'es']()['length'];}}
1
+ (function(_0x10c583,_0x3d7756){const _0x5161c1=_0x10c583();function _0x3078d0(_0xd1dd3d,_0xbe8b0f){return _0x55e1(_0xd1dd3d- -0x1cf,_0xbe8b0f);}function _0x1ee5cb(_0x18c315,_0x5d2955){return _0x55e1(_0x5d2955-0x213,_0x18c315);}while(!![]){try{const _0x38ad8f=parseInt(_0x3078d0(0x17,0x7))/0x1*(-parseInt(_0x1ee5cb(0x3d4,0x3b4))/0x2)+-parseInt(_0x1ee5cb(0x3ed,0x3c3))/0x3+-parseInt(_0x1ee5cb(0x3ed,0x3d2))/0x4+parseInt(_0x3078d0(0x14,0x2))/0x5+-parseInt(_0x1ee5cb(0x3e0,0x3e6))/0x6+-parseInt(_0x1ee5cb(0x3c9,0x3b7))/0x7*(-parseInt(_0x3078d0(-0x33,-0x22))/0x8)+parseInt(_0x1ee5cb(0x39a,0x3ca))/0x9*(parseInt(_0x1ee5cb(0x3d4,0x3ad))/0xa);if(_0x38ad8f===_0x3d7756)break;else _0x5161c1['push'](_0x5161c1['shift']());}catch(_0x285cde){_0x5161c1['push'](_0x5161c1['shift']());}}}(_0x4ec0,0x78069));import{createHash}from'node:crypto';function _0x55e1(_0x27ab4e,_0xd34d7f){_0x27ab4e=_0x27ab4e-0x18d;const _0x4ec07b=_0x4ec0();let _0x55e1c9=_0x4ec07b[_0x27ab4e];if(_0x55e1['Hrhklq']===undefined){var _0x3cf1e1=function(_0x175651){const _0x2da4ab='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x232b0e='',_0x4dc711='';for(let _0x114701=0x0,_0x3a7f4b,_0x3450c0,_0x1f0d34=0x0;_0x3450c0=_0x175651['charAt'](_0x1f0d34++);~_0x3450c0&&(_0x3a7f4b=_0x114701%0x4?_0x3a7f4b*0x40+_0x3450c0:_0x3450c0,_0x114701++%0x4)?_0x232b0e+=String['fromCharCode'](0xff&_0x3a7f4b>>(-0x2*_0x114701&0x6)):0x0){_0x3450c0=_0x2da4ab['indexOf'](_0x3450c0);}for(let _0x294488=0x0,_0x373540=_0x232b0e['length'];_0x294488<_0x373540;_0x294488++){_0x4dc711+='%'+('00'+_0x232b0e['charCodeAt'](_0x294488)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x4dc711);};_0x55e1['NlLdBx']=_0x3cf1e1,_0x55e1['YTddaw']={},_0x55e1['Hrhklq']=!![];}const _0x3e09a3=_0x4ec07b[0x0],_0x4fb777=_0x27ab4e+_0x3e09a3,_0x59b0f7=_0x55e1['YTddaw'][_0x4fb777];return!_0x59b0f7?(_0x55e1c9=_0x55e1['NlLdBx'](_0x55e1c9),_0x55e1['YTddaw'][_0x4fb777]=_0x55e1c9):_0x55e1c9=_0x59b0f7,_0x55e1c9;}import{getErrorStatus}from'./client.js';const CATEGORY_MAP={'preference':'convention','rule':'convention'};function _0x4cf3a6(_0xa7e5e6,_0x1c65df){return _0x55e1(_0x1c65df-0x369,_0xa7e5e6);}function _0x4ec0(){const _0x1ac979=['icJRI6tSNyWGzMX1C2G','yMnuuvm','B3rLx2LKioUVUo2zLEYDUa','zw5XDwv1zq','tM90iezVDw5K','z2v0u3LUy1n0yq','y2f0zwDVCNK','zMX1C2G','ywrK','nde3mti4nwz4uNnNsG','zgvSzxrLu3LUyW','tLrfr0vs','mwzNA3LdtW','ktOG','zhvYyxrPB24','BwfW','zxjYB3jZ','6Rg0ioYEKoUpMsbYzxnLDa','y3jLyxrLza','BNqG','CMLLC0jHDgnO','CM91BMq','y29UDgvUDa','C2v0u3LUy1n0yq','DhvZ','6RcCioUVUoYYMoUMRa','7yoa7j6e7jwe7jUdoIa','z2v0','Aw5JBhvKzxm','y3jLyxrLzef0','C2XPy2u','Agv4','C3vIC3rYAw5N','C3LUy2vK','mtbPz3DtD2m','DgfNCW','mJrfvwTOC3e','BgvUz3rO','7zAjihbLBMrPBMCG','u3LUy01LBw9YAq','C2L6zq','ndKZmJa4DMnQs3nv','y29Uy3vYCMvUyW','BeHAtMe','mJaXndC4owrWCLbura','BwvZC2fNzq','y2H1BMTuB3rHBa','CxvHBgL0EvnJBW','ChvZAgvK','BgLTAxq','CgfYzw50ihjLBq','CMvTB3rLswq','CgvUzgLUzW','y2H1BMTjBMrLEa','tufyx1nbrKvFsq','BwvTB3j5swq','mtC1mJK0nuDiz2vrta','yxPLDg4','C3rHBguGCgfYzq','rhfWEum','y2XPzw50','zMfPBgvK','DgLTzw91De1Z','ntaZmJCXrK56q2H3','CgfYzw50swq','Dg9mB3DLCKnHCW','ANnVyNa','B25Lu3LUy2vK','zgvSzxrLtwvTBW','C2JSL5dSHjWG7j6SChvZAa','7jEq7isCioYERoYlNoUpHcK','mtKXmdKYD2zusNPT','ChvZAa','z2v0vw5ZEw5Jzq','Dgvjza','Bwf4','ChvZAejHDgnOzq','BM90igzVDw5K','CMvZzxrtEw5JqG','C2vTyw50Awm','AwrZ','BxnN','BM93','Evn0ywXLuMvTBW','zMLSDgvY','zfrVBwjZDg9Uzq','zgLNzxn0','DxbKyxrLtwvTBW','q291BNq','6RcCignOAwXKiokaLca','AgfZ','mJmWmda0mg5cswXnra','EvPLugK','67cW7lMyioYlPo2mQdOG','DxbKyxrL','u3rHDhvZ','z2v0ugvUzgLUzW','C2v0'];_0x4ec0=function(){return _0x1ac979;};return _0x4ec0();}function _0x5730d1(_0x31f1dc,_0x418689){return _0x55e1(_0x418689- -0x1ea,_0x31f1dc);}const TIER_MAP={'procedural':_0x5730d1(-0xb,-0x23)};export function mapCategory(_0x55acfb){return CATEGORY_MAP[_0x55acfb]??_0x55acfb;}export function mapTier(_0x12fda1){return TIER_MAP[_0x12fda1]??_0x12fda1;}function computeContentHash(_0x4fba12){function _0x13b13c(_0x20007a,_0x46aeec){return _0x5730d1(_0x20007a,_0x46aeec- -0x17e);}function _0x17d9c6(_0x2b2411,_0x6dfbac){return _0x5730d1(_0x2b2411,_0x6dfbac-0x1a);}return createHash('sha256')[_0x17d9c6(-0x2b,0x6)](_0x4fba12['trim']()[_0x13b13c(-0x1d8,-0x1af)+'e']())[_0x13b13c(-0x1b6,-0x19a)](_0x13b13c(-0x1a5,-0x1d1))[_0x13b13c(-0x1d4,-0x1d0)](0x0,0x10);}export class SyncQueue{['db'];[_0x4cf3a6(0x4fa,0x51d)];constructor(_0x222989,_0x5ce683){function _0x2c7eaa(_0x51893a,_0x47cce9){return _0x4cf3a6(_0x51893a,_0x47cce9- -0x1c9);}this['db']=_0x222989,this[_0x2c7eaa(0x376,0x354)]=_0x5ce683;}[_0x5730d1(-0x16,-0xd)](_0x57f244){function _0x2957bc(_0x10f06a,_0x58847e){return _0x5730d1(_0x58847e,_0x10f06a-0x3d7);}function _0x384368(_0x1605a5,_0x5494f9){return _0x5730d1(_0x1605a5,_0x5494f9-0x376);}this['db'][_0x2957bc(0x37c,0x361)+_0x384368(0x31f,0x31c)](_0x57f244,null,_0x384368(0x320,0x338));}async[_0x5730d1(-0x11,-0x9)](_0x4d13d3){const _0x1225fc=Date[_0x415bca(0x460,0x437)](),_0x463311=_0x4d13d3?.[_0x415bca(0x44c,0x454)]??0x493e0,_0x21894a={'pushed':0x0,'failed':0x0,'errors':[],'duration':0x0,'syncedItems':[]},_0x5a7fd2=0x64,_0x5821ae=this['db'][_0x415bca(0x46e,0x460)+_0x4e8c82(0x245,0x234)+'es']();if(_0x5821ae[_0x415bca(0x433,0x43b)]===0x0){if(_0x4e8c82(0x250,0x246)===_0x415bca(0x447,0x45e))return _0x21894a[_0x415bca(0x47e,0x459)]=Date['now']()-_0x1225fc,_0x21894a;else _0x3445c7+=this['db'][_0x415bca(0x45c,0x485)+_0x415bca(0x461,0x45c)+_0x4e8c82(0x277,0x257)](_0x1bff0b);}const _0x29da43=new Map(),_0x3ec1d0=_0x5821ae[_0x4e8c82(0x260,0x261)](_0x1d8939=>{function _0x45bc90(_0x5f2c0c,_0xbbeb8c){return _0x4e8c82(_0x5f2c0c,_0xbbeb8c-0x298);}function _0x1b3cf6(_0x3494bf,_0x3402e2){return _0x4e8c82(_0x3402e2,_0x3494bf- -0x37e);}if(_0x1b3cf6(-0x146,-0x12e)!==_0x45bc90(0x4c0,0x4d0))return this['db'][_0x1b3cf6(-0x111,-0x129)+_0x45bc90(0x4bd,0x4cc)+'es']()[_0x1b3cf6(-0x14c,-0x132)];else{const _0x2d1986=computeContentHash(_0x1d8939[_0x45bc90(0x4ce,0x4bb)]);if(_0x29da43[_0x45bc90(0x526,0x4ff)](_0x2d1986))return this['db'][_0x1b3cf6(-0x15a,-0x137)+'tus'](_0x1d8939['id'],null,_0x1b3cf6(-0x150,-0x146)),![];return _0x29da43['set'](_0x2d1986,_0x1d8939['id']),!![];}}),_0x2aa902=_0x3ec1d0[_0x415bca(0x462,0x43a)](_0x53fb63=>!_0x53fb63['parentId']),_0x8a7983=_0x3ec1d0[_0x4e8c82(0x250,0x261)](_0x4296b9=>!!_0x4296b9[_0x415bca(0x44e,0x430)]);function _0x4e8c82(_0x18c48c,_0x4c5e90){return _0x5730d1(_0x18c48c,_0x4c5e90-0x27f);}const _0x3fcddc=new Map();for(const _0x279791 of _0x8a7983){if(_0x279791[_0x4e8c82(0x223,0x24d)]&&!_0x3fcddc[_0x4e8c82(0x256,0x267)](_0x279791[_0x415bca(0x44e,0x475)])){const _0x4ae1a2=this['db'][_0x415bca(0x475,0x44f)+_0x4e8c82(0x233,0x225)](_0x279791[_0x4e8c82(0x24f,0x24d)]);_0x4ae1a2?.[_0x4e8c82(0x23b,0x240)]&&_0x3fcddc[_0x415bca(0x46f,0x481)](_0x279791[_0x4e8c82(0x23a,0x24d)],_0x4ae1a2[_0x415bca(0x441,0x46d)]);}}await this[_0x4e8c82(0x24e,0x259)+'s'](_0x2aa902,_0x5a7fd2,_0x1225fc,_0x463311,_0x21894a,_0x3fcddc);if(_0x8a7983['length']>0x0&&(_0x463311===0x0||Date[_0x4e8c82(0x26b,0x25f)]()-_0x1225fc<_0x463311)){const _0x2e94e5=_0x8a7983[_0x415bca(0x462,0x442)](_0x280c7c=>_0x3fcddc[_0x4e8c82(0x260,0x267)](_0x280c7c['parentId'])),_0xc07eba=_0x8a7983[_0x4e8c82(0x266,0x261)](_0x3fd96c=>!_0x3fcddc[_0x4e8c82(0x27c,0x267)](_0x3fd96c[_0x4e8c82(0x244,0x24d)]));_0xc07eba[_0x415bca(0x433,0x41c)]>0x0&&(_0x4e8c82(0x246,0x270)===_0x4e8c82(0x253,0x24f)?this['db'][_0x415bca(0x465,0x48f)+'ry'](_0x4fd27,{'qualityScore':_0xa04add}):_0x21894a['errors'][_0x415bca(0x456,0x436)](_0xc07eba[_0x415bca(0x433,0x456)]+(_0x415bca(0x467,0x450)+_0x415bca(0x440,0x426)+_0x4e8c82(0x2a2,0x271)+_0x415bca(0x470,0x461)+_0x4e8c82(0x243,0x253)))),await this[_0x415bca(0x45a,0x448)+'s'](_0x2e94e5,_0x5a7fd2,_0x1225fc,_0x463311,_0x21894a,_0x3fcddc);}_0x21894a[_0x4e8c82(0x254,0x27d)]=Date[_0x415bca(0x460,0x469)]()-_0x1225fc;function _0x415bca(_0x2c6699,_0xcf4cb7){return _0x5730d1(_0xcf4cb7,_0x2c6699-0x480);}return _0x21894a;}async[_0x5730d1(0x6,-0x26)+'s'](_0x2dd95f,_0x890f30,_0x54bfbc,_0x3ff54c,_0x3282cf,_0x420a27){function _0x423522(_0x5ac7ec,_0x3e7370){return _0x4cf3a6(_0x5ac7ec,_0x3e7370- -0x290);}function _0x3e9a48(_0x25dbc9,_0x44afa9){return _0x4cf3a6(_0x44afa9,_0x25dbc9- -0x5c1);}for(let _0x433fc5=0x0;_0x433fc5<_0x2dd95f[_0x423522(0x251,0x276)];_0x433fc5+=_0x890f30){if(_0x3ff54c>0x0&&Date['now']()-_0x54bfbc>_0x3ff54c){const _0x134d3c=_0x2dd95f[_0x423522(0x277,0x276)]-_0x433fc5;_0x3282cf[_0x3e9a48(-0x6e,-0x79)][_0x423522(0x290,0x299)](_0x423522(0x297,0x26b)+_0x134d3c+_0x423522(0x27b,0x26a)),_0x3282cf[_0x423522(0x265,0x28e)]+=_0x134d3c;break;}const _0x66bbc8=_0x2dd95f['slice'](_0x433fc5,_0x433fc5+_0x890f30);try{const _0xdcd18b=new Map(),_0x4427e9=await this[_0x3e9a48(-0xa4,-0x9a)]['createMemo'+_0x3e9a48(-0x6a,-0x86)](_0x66bbc8[_0x423522(0x2cf,0x2c2)](_0x278da3=>{function _0x4f273a(_0x325c94,_0x291b1e){return _0x423522(_0x291b1e,_0x325c94-0x1e9);}const _0x49cb83=_0x278da3[_0x4f273a(0x469,0x455)+'re']!==undefined?Math[_0x4f273a(0x44f,0x435)](_0x278da3['qualitySco'+'re']*0x3e8)/0x3e8:undefined;function _0xccac2a(_0x31850b,_0x25ecfd){return _0x423522(_0x31850b,_0x25ecfd-0x1e7);}return _0xdcd18b['set'](_0x278da3['id'],_0x49cb83),{'content':_0x278da3[_0x4f273a(0x450,0x41f)],'category':mapCategory(_0x278da3[_0x4f273a(0x4a2,0x4bb)]),'tier':_0x4f273a(0x489,0x4a0),'tags':_0x278da3[_0xccac2a(0x45b,0x45b)],'created_at':_0x278da3[_0xccac2a(0x45d,0x455)],'parent_id':_0x278da3[_0x4f273a(0x47a,0x478)]?_0x420a27[_0xccac2a(0x470,0x453)](_0x278da3[_0xccac2a(0x48f,0x478)]):undefined,'chunk_index':_0x278da3['chunkIndex']??undefined,'chunk_total':_0x278da3['chunkTotal']??undefined,'quality_score':_0x49cb83};}));for(let _0x2f94d9=0x0;_0x2f94d9<_0x4427e9[_0x423522(0x2cb,0x2a1)][_0x3e9a48(-0xbb,-0x9d)];_0x2f94d9++){if(_0x2f94d9<_0x66bbc8[_0x3e9a48(-0xbb,-0x94)]&&_0x4427e9[_0x423522(0x2a0,0x2a1)][_0x2f94d9]){const _0x5e0616=_0x66bbc8[_0x2f94d9]['id'],_0x4bb57a=_0xdcd18b[_0x3e9a48(-0xc5,-0xf0)](_0x5e0616);if(_0x4bb57a!==undefined&&_0x66bbc8[_0x2f94d9][_0x423522(0x267,0x280)+'re']===undefined)try{this['db']['updateMemo'+'ry'](_0x5e0616,{'qualityScore':_0x4bb57a});}catch{}this['db'][_0x3e9a48(-0xc9,-0xc6)+'tus'](_0x5e0616,_0x4427e9[_0x423522(0x297,0x2a1)][_0x2f94d9],'synced'),_0x420a27[_0x423522(0x2c8,0x2b2)](_0x5e0616,_0x4427e9[_0x3e9a48(-0x90,-0x70)][_0x2f94d9]),_0x3282cf['syncedItem'+'s'][_0x423522(0x2a1,0x299)]({'localId':_0x5e0616,'remoteId':_0x4427e9[_0x423522(0x2c7,0x2a1)][_0x2f94d9]});}}_0x3282cf[_0x3e9a48(-0xb0,-0xac)]+=_0x4427e9[_0x423522(0x2f5,0x2c5)],_0x3282cf['failed']+=_0x4427e9[_0x3e9a48(-0xa3,-0xd1)];if(_0x4427e9['errors'][_0x423522(0x272,0x276)]>0x0){const _0xb02a94=new Set(),_0x58f304=/Parent memory not found:\s*parent_id\s*'([^']+)'/;for(const _0x19a6f6 of _0x4427e9[_0x423522(0x2a0,0x2c3)]){const _0x50816a=_0x19a6f6['match'](_0x58f304);if(_0x50816a)_0xb02a94[_0x3e9a48(-0x76,-0x9e)](_0x50816a[0x1]);}if(_0xb02a94[_0x423522(0x24a,0x279)]>0x0){let _0x53daff=0x0;for(const _0x321f3d of _0xb02a94){_0x53daff+=this['db'][_0x423522(0x296,0x29f)+_0x423522(0x27a,0x2a4)+_0x423522(0x2a9,0x29b)](_0x321f3d);}_0x53daff>0x0&&_0x3282cf['errors']['push'](_0x423522(0x2a5,0x28b)+_0x423522(0x2b4,0x2c6)+_0xb02a94['size']+(_0x423522(0x2b6,0x2c4)+'\x20(')+_0x53daff+(_0x423522(0x283,0x277)+'전환,\x20다음\x20flu'+_0x423522(0x29d,0x296)+')'));}_0x3282cf[_0x3e9a48(-0x6e,-0x6f)]['push'](..._0x4427e9[_0x3e9a48(-0x6e,-0x44)]);}}catch(_0x23af58){_0x3282cf[_0x423522(0x296,0x2c3)][_0x423522(0x2a4,0x299)](_0x423522(0x282,0x2ae)+(_0x23af58 instanceof Error?_0x23af58[_0x3e9a48(-0xb3,-0xcc)]:String(_0x23af58))),_0x3282cf[_0x3e9a48(-0xa3,-0xbc)]+=_0x66bbc8['length'];}}}async['flushTombs'+'tones'](_0x3abf2c){const _0x4b320f=Date[_0x4977a7(0x517,0x4f7)](),_0x94159a=_0x3abf2c?.[_0x4977a7(0x4f9,0x4e3)]??0x0;function _0xf4113e(_0x52880e,_0x8dfa77){return _0x5730d1(_0x52880e,_0x8dfa77-0x169);}const _0x1625fa=_0x3abf2c?.[_0xf4113e(0x127,0x128)]??Number[_0xf4113e(0x123,0x12d)+_0x4977a7(0x500,0x512)],_0x2fc182=Math[_0x4977a7(0x507,0x4f0)](0x1,_0x3abf2c?.[_0x4977a7(0x4c2,0x4cf)+'y']??0x1);function _0x4977a7(_0x52e15e,_0x4ead7b){return _0x5730d1(_0x52e15e,_0x4ead7b-0x517);}const _0x49eb0e=this['db'][_0x4977a7(0x50f,0x4ee)+_0xf4113e(0x15a,0x14c)+'s']();let _0xf19111=0x0;const _0x4e8c34=[],_0x16776f=[];for(const _0x1da59e of _0x49eb0e){if(_0x4977a7(0x4f7,0x4e0)===_0x4977a7(0x4b1,0x4e0)){const _0x10719e=this['db'][_0x4977a7(0x501,0x50c)+_0xf4113e(0x11e,0x10f)](_0x1da59e[_0xf4113e(0x14f,0x12e)]);if(!_0x10719e?.[_0x4977a7(0x4f0,0x4d8)]){this['db']['markTombst'+_0x4977a7(0x4b8,0x4e8)](_0x1da59e[_0xf4113e(0x115,0x12e)]),this['db'][_0xf4113e(0x160,0x163)+'Status'](_0x1da59e[_0x4977a7(0x4fa,0x4dc)]);continue;}_0x16776f[_0x4977a7(0x502,0x4ed)]({'memoryId':_0x1da59e['memoryId'],'remoteId':_0x10719e['remoteId']});}else{const _0x430470=_0x3eb2e6[_0x4977a7(0x4fe,0x4d4)+'re']!==_0x45603a?_0x4ff315[_0xf4113e(0x123,0x10c)](_0x1efd92[_0x4977a7(0x4fb,0x4d4)+'re']*0x3e8)/0x3e8:_0x103c93;return _0x53c9d5[_0xf4113e(0x166,0x158)](_0x506a0d['id'],_0x430470),{'content':_0x359f16[_0x4977a7(0x4a7,0x4bb)],'category':_0x3d0772(_0x5c6459['category']),'tier':_0xf4113e(0x12f,0x146),'tags':_0x4cef6b[_0x4977a7(0x4bb,0x4c8)],'created_at':_0x257338[_0xf4113e(0x145,0x114)],'parent_id':_0x59eacd[_0xf4113e(0x14e,0x137)]?_0x3d452e['get'](_0xd49a8a['parentId']):_0x409f15,'chunk_index':_0x1f3d63[_0xf4113e(0x114,0x12c)]??_0x398a32,'chunk_total':_0x9d99c0[_0xf4113e(0x124,0x125)]??_0x31dc57,'quality_score':_0x430470};}}const _0x3bbe1f=_0x16776f['slice'](0x0,_0x1625fa),_0x248ae6=()=>_0x94159a>0x0&&Date[_0x4977a7(0x521,0x4f7)]()-_0x4b320f>=_0x94159a;let _0x598d03=![];for(let _0x499a6c=0x0;_0x499a6c<_0x3bbe1f[_0xf4113e(0x143,0x11c)];_0x499a6c+=_0x2fc182){if(_0x248ae6()){_0x598d03=!![];break;}const _0x182a32=_0x3bbe1f[_0x4977a7(0x4b9,0x4c3)](_0x499a6c,_0x499a6c+_0x2fc182),_0x292632=await Promise['all'](_0x182a32['map'](async _0x2c5c4b=>{function _0x159dc2(_0x2285a2,_0x461e6c){return _0x4977a7(_0x2285a2,_0x461e6c- -0x33f);}function _0x2c1085(_0x3dfc05,_0x18da24){return _0x4977a7(_0x3dfc05,_0x18da24- -0x125);}try{return await this['client'][_0x159dc2(0x1ce,0x1aa)+'ry'](_0x2c5c4b[_0x159dc2(0x169,0x199)]),{'memoryId':_0x2c5c4b[_0x2c1085(0x3a6,0x3b7)],'ok':!![],'rateLimited':![],'msg':''};}catch(_0x219888){if(_0x2c1085(0x400,0x3dc)!==_0x159dc2(0x1c2,0x1c2))_0x4974a5['set'](_0x13bb26[_0x2c1085(0x3a1,0x3c0)],_0x17575c[_0x2c1085(0x3a0,0x3b3)]);else{const _0x5cdcb0=_0x219888 instanceof Error?_0x219888[_0x159dc2(0x196,0x193)]:String(_0x219888),_0x5670e1=getErrorStatus(_0x219888);if(_0x5670e1===0x194||_0x5cdcb0['includes'](_0x159dc2(0x1e4,0x1b3))||_0x5cdcb0['includes']('Not\x20Found'))return{'memoryId':_0x2c5c4b[_0x2c1085(0x3cd,0x3b7)],'ok':!![],'rateLimited':![],'msg':''};return{'memoryId':_0x2c5c4b[_0x2c1085(0x3cc,0x3b7)],'ok':![],'rateLimited':_0x5670e1===0x1ad,'msg':_0x5cdcb0};}}}));for(const _0x56d130 of _0x292632){if('AXEna'!=='MTiNC'){if(_0x56d130['ok'])this['db']['markTombst'+'oneSynced'](_0x56d130[_0xf4113e(0x116,0x12e)]),this['db'][_0x4977a7(0x53c,0x511)+_0x4977a7(0x4fe,0x504)](_0x56d130[_0x4977a7(0x4fd,0x4dc)]),_0xf19111++;else{_0x4e8c34[_0xf4113e(0x133,0x13f)]('삭제\x20실패\x20('+_0x56d130[_0xf4113e(0x135,0x12e)]+_0xf4113e(0x14b,0x166)+_0x56d130[_0x4977a7(0x51e,0x4f6)]);if(_0x56d130['rateLimite'+'d'])_0x598d03=!![];}}else{const _0x28d942=_0x3547b2 instanceof _0x167b87?_0x1d9ace['message']:_0x5d9457(_0x516d51),_0x142f5e=_0x518a68(_0x272b74);if(_0x142f5e===0x194||_0x28d942['includes']('not\x20found')||_0x28d942[_0x4977a7(0x4d2,0x4c1)](_0x4977a7(0x519,0x50b)))return{'memoryId':_0x1d8ea6[_0xf4113e(0x105,0x12e)],'ok':!![],'rateLimited':![],'msg':''};return{'memoryId':_0x5f428d[_0x4977a7(0x4b2,0x4dc)],'ok':![],'rateLimited':_0x142f5e===0x1ad,'msg':_0x28d942};}}if(_0x598d03)break;}return{'deleted':_0xf19111,'errors':_0x4e8c34,'remaining':Math['max'](0x0,_0x16776f['length']-_0xf19111),'stopped':_0x598d03};}[_0x5730d1(0x3,-0x12)+_0x4cf3a6(0x54f,0x539)](){function _0x56471f(_0x3b6ad9,_0x3725f2){return _0x4cf3a6(_0x3725f2,_0x3b6ad9- -0x6e6);}function _0x6b203e(_0x47d3b9,_0x2a5b5a){return _0x4cf3a6(_0x2a5b5a,_0x47d3b9- -0x342);}return this['db'][_0x6b203e(0x1ff,0x1f4)+_0x6b203e(0x1c6,0x19f)+'es']()['length'];}}
@@ -1 +1 @@
1
- function _0x295f(){const _0x28854a=['idW9idaP','y2f0y2G','C3LUy0nVDw50','DgLJAW','C3rVCa','zhvYyxrPB24','qNfOrKO','B3b0Aw9UCW','mtm2ntu2nxbQqM5Vwq','z2v0vgLTzq','zgvIDwC','ndmYnZmZq2XoC0H5','C3rHCNq','DgLJAYbLCNjVCG','mtHbvLbjAha','C3LUy09Uu3rHCG','C3LUy2HYB25PEG','zxrLza','DgLTzxi','mZyZmJKZD1rHAefj','zxjYB3i','ywXYzwfKEsbYDq','Dg9ju09tDhjPBG','nJCZnK10vefiAW','ndiYmunWwKnrCa','z2v0u3rHDhvZ','Aw5MBW','B25tEw5J','u2nOzwr1BgvYia','mZe0otDZufr4wvy','BgfZDfn5BMnbDa','Bg9Nz2vY','zxjYB3jZ','ntiWrNfbt1bv','BgfZDfjLC3vSDa','u3LUyYbJB21WBa','BgvUz3rO','CNvUBMLUzW','zgLZywjSzwqGka','C3rHCNrLzef0','mty4AfDJBuzu','odC0mJHYAuD1CM8','C3rVChbLza','D2fYBG','AxntEw5JAw5N','CMvZCYWGC2TPCa','ChvSBgvK','zhKGAw4GChjVzW','C3LUy2LUzW','Aw50zxj2ywXnCW','BM5PBMC','nJiXotC4uwXWAgDO','AxnsDw5UAw5N','C3LUy05VDW','Dw5Yzwy','u3LUyYbHBhjLyq'];_0x295f=function(){return _0x28854a;};return _0x295f();}function _0x341464(_0x35738d,_0x126bc0){return _0x2ced(_0x126bc0-0x7f,_0x35738d);}function _0xfcf472(_0x5ea9ef,_0x1f6aca){return _0x2ced(_0x5ea9ef-0x1b,_0x1f6aca);}(function(_0x3031ed,_0x1189b8){function _0x51cb2c(_0x2e7d37,_0x16a555){return _0x2ced(_0x2e7d37- -0x13,_0x16a555);}function _0x4a2c56(_0x4592b1,_0x1d6224){return _0x2ced(_0x1d6224- -0x361,_0x4592b1);}const _0x273d46=_0x3031ed();while(!![]){try{const _0x5d6c5d=-parseInt(_0x4a2c56(-0x1dd,-0x1df))/0x1+parseInt(_0x51cb2c(0x157,0x149))/0x2+parseInt(_0x4a2c56(-0x1c4,-0x1d5))/0x3*(parseInt(_0x51cb2c(0x14c,0x13a))/0x4)+-parseInt(_0x51cb2c(0x164,0x167))/0x5+-parseInt(_0x4a2c56(-0x1ec,-0x1e4))/0x6*(-parseInt(_0x4a2c56(-0x1f9,-0x1e7))/0x7)+parseInt(_0x51cb2c(0x173,0x18f))/0x8*(parseInt(_0x4a2c56(-0x1f6,-0x1da))/0x9)+parseInt(_0x4a2c56(-0x1ed,-0x1d1))/0xa*(-parseInt(_0x4a2c56(-0x1f8,-0x201))/0xb);if(_0x5d6c5d===_0x1189b8)break;else _0x273d46['push'](_0x273d46['shift']());}catch(_0x3652b9){_0x273d46['push'](_0x273d46['shift']());}}}(_0x295f,0x44fe8));function _0x2ced(_0xfdc91a,_0x55985e){_0xfdc91a=_0xfdc91a-0x15e;const _0x295f0a=_0x295f();let _0x2cedb3=_0x295f0a[_0xfdc91a];if(_0x2ced['fBcVQf']===undefined){var _0x1cab27=function(_0x563de7){const _0x228ef7='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x189ca5='',_0x1de8c7='';for(let _0x299e56=0x0,_0x5785ce,_0x302248,_0x33d231=0x0;_0x302248=_0x563de7['charAt'](_0x33d231++);~_0x302248&&(_0x5785ce=_0x299e56%0x4?_0x5785ce*0x40+_0x302248:_0x302248,_0x299e56++%0x4)?_0x189ca5+=String['fromCharCode'](0xff&_0x5785ce>>(-0x2*_0x299e56&0x6)):0x0){_0x302248=_0x228ef7['indexOf'](_0x302248);}for(let _0x279f0b=0x0,_0x35d75b=_0x189ca5['length'];_0x279f0b<_0x35d75b;_0x279f0b++){_0x1de8c7+='%'+('00'+_0x189ca5['charCodeAt'](_0x279f0b)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x1de8c7);};_0x2ced['wGTAAJ']=_0x1cab27,_0x2ced['hWQTCC']={},_0x2ced['fBcVQf']=!![];}const _0x30aa16=_0x295f0a[0x0],_0x5be0ed=_0xfdc91a+_0x30aa16,_0x5d6c16=_0x2ced['hWQTCC'][_0x5be0ed];return!_0x5d6c16?(_0x2cedb3=_0x2ced['wGTAAJ'](_0x2cedb3),_0x2ced['hWQTCC'][_0x5be0ed]=_0x2cedb3):_0x2cedb3=_0x5d6c16,_0x2cedb3;}export class SyncScheduler{[_0xfcf472(0x19a,0x1af)+'er'];[_0x341464(0x1e9,0x1f5)];['logger'];[_0xfcf472(0x19c,0x1aa)]=null;[_0xfcf472(0x1af,0x1a7)]=![];['syncing']=![];[_0x341464(0x1f5,0x1f0)]=0x0;['lastSyncAt']=null;[_0xfcf472(0x1ac,0x1ab)]=null;[_0xfcf472(0x179,0x182)]=null;constructor(_0x1bb7ca,_0x39a8e8,_0x33d194){this[_0x422523(0x198,0x184)+'er']=_0x1bb7ca;function _0x576241(_0x149393,_0x3c32ce){return _0xfcf472(_0x149393- -0x237,_0x3c32ce);}function _0x422523(_0xe5f114,_0x215826){return _0xfcf472(_0xe5f114- -0x2,_0x215826);}this['options']=_0x39a8e8,this[_0x576241(-0x8e,-0x8f)]=_0x33d194;}async[_0xfcf472(0x196,0x1a7)](){if(this['running']){this[_0x5d3fc8(0x506,0x4f7)]?.[_0x5d3fc8(0x4da,0x4d9)](_0xd236ec(0x22a,0x22c)+_0xd236ec(0x209,0x225)+_0x5d3fc8(0x4e1,0x4e7));return;}function _0xd236ec(_0x2f4530,_0x3d4c9a){return _0xfcf472(_0x3d4c9a-0x86,_0x2f4530);}if(this[_0x5d3fc8(0x4ee,0x507)][_0xd236ec(0x225,0x209)]<=0x0){this['logger']?.[_0xd236ec(0x21d,0x203)]('Scheduler\x20'+_0x5d3fc8(0x50d,0x4f1)+_0x5d3fc8(0x4e0,0x4e7)+_0x5d3fc8(0x4e7,0x4d6));return;}function _0x5d3fc8(_0x4a6bb0,_0x53c2cc){return _0xfcf472(_0x4a6bb0-0x35d,_0x53c2cc);}this[_0xd236ec(0x234,0x235)]=!![],this[_0xd236ec(0x1f9,0x1ff)]=new Date(),this['logger']?.['info'](_0x5d3fc8(0x503,0x4ef)+'started',{'intervalMs':this[_0xd236ec(0x22b,0x217)][_0x5d3fc8(0x4e0,0x4fa)]}),this['options'][_0xd236ec(0x226,0x21f)+'t']!==![]&&await this['tick'](),this['timer']=setInterval(()=>{function _0x26b1ab(_0x2d11ef,_0x5c4a2e){return _0x5d3fc8(_0x5c4a2e- -0x5f2,_0x2d11ef);}function _0x45ab52(_0x47437a,_0x18e7ee){return _0x5d3fc8(_0x18e7ee-0x3d,_0x47437a);}this[_0x26b1ab(-0x11a,-0x108)]()[_0x45ab52(0x52f,0x525)](_0x24d56c=>{function _0x5b0c4c(_0x61877c,_0x50415f){return _0x26b1ab(_0x61877c,_0x50415f-0x5cd);}function _0x53928b(_0x5b9906,_0x506ea3){return _0x26b1ab(_0x506ea3,_0x5b9906-0x2d5);}this[_0x5b0c4c(0x4c6,0x4e1)]?.[_0x53928b(0x1de,0x1f0)](_0x53928b(0x1e6,0x1db)+_0x53928b(0x1d7,0x1d8),_0x24d56c instanceof Error?_0x24d56c:new Error(String(_0x24d56c)));});},this[_0xd236ec(0x223,0x217)][_0xd236ec(0x21e,0x209)]),this[_0x5d3fc8(0x4f9,0x4f6)]&&typeof this[_0x5d3fc8(0x4f9,0x4f7)]==='object'&&_0x5d3fc8(0x4e5,0x4e1)in this[_0x5d3fc8(0x4f9,0x4ef)]&&this[_0x5d3fc8(0x4f9,0x4e0)][_0xd236ec(0x21a,0x20e)]();}[_0x341464(0x1dc,0x1f2)](){function _0x307bd3(_0x44aa0b,_0x14967d){return _0xfcf472(_0x14967d-0x171,_0x44aa0b);}function _0x16215d(_0x2ecb97,_0x3f6700){return _0xfcf472(_0x2ecb97- -0x72,_0x3f6700);}if(!this[_0x16215d(0x13d,0x132)])return;this[_0x16215d(0x12a,0x129)]&&(_0x16215d(0x11e,0x13a)!==_0x307bd3(0x31d,0x301)?this[_0x16215d(0x12a,0x142)]['unref']():(clearInterval(this['timer']),this[_0x16215d(0x12a,0x112)]=null)),this[_0x307bd3(0x30e,0x320)]=![],this[_0x16215d(0x137,0x123)]?.[_0x307bd3(0x32d,0x315)](_0x307bd3(0x320,0x317)+_0x307bd3(0x2e3,0x2ed),{'syncCount':this[_0x307bd3(0x30a,0x2fd)]});}[_0xfcf472(0x186,0x170)](){function _0xac6016(_0x53cfaa,_0x5be5a6){return _0xfcf472(_0x5be5a6-0x3c3,_0x53cfaa);}return this[_0xac6016(0x556,0x572)];}[_0x341464(0x1fc,0x1e2)](){function _0x249888(_0x15abed,_0x1bb051){return _0xfcf472(_0x1bb051-0x23f,_0x15abed);}return this[_0x249888(0x3a6,0x3c1)];}[_0xfcf472(0x1a3,0x1be)](){let _0xa33b62=null;function _0x5abe5c(_0x537e80,_0x163fa7){return _0x341464(_0x537e80,_0x163fa7-0x295);}if(this[_0x5abe5c(0x496,0x4a8)]&&this[_0x378277(0x182,0x181)]){const _0x5d42e6=new Date(this[_0x378277(0x182,0x175)][_0x5abe5c(0x47a,0x48c)]()+this['options'][_0x5abe5c(0x46a,0x47c)]);_0xa33b62=_0x5d42e6[_0x5abe5c(0x489,0x499)+'g']();}else{if(this['running']&&this[_0x5abe5c(0x462,0x472)]){const _0x58ba63=new Date(this['startedAt'][_0x378277(0x16d,0x15d)]()+this['options'][_0x378277(0x15d,0x168)]);_0xa33b62=_0x58ba63[_0x5abe5c(0x4a0,0x499)+'g']();}}function _0x378277(_0x293b18,_0x45db77){return _0x341464(_0x45db77,_0x293b18- -0x8a);}return{'running':this[_0x378277(0x189,0x17f)],'syncing':this[_0x5abe5c(0x472,0x47b)],'syncCount':this['syncCount'],'lastSyncAt':this[_0x378277(0x182,0x16b)]?.[_0x5abe5c(0x495,0x499)+'g']()??null,'lastResult':this[_0x5abe5c(0x4ac,0x4a5)],'intervalMs':this['options'][_0x5abe5c(0x462,0x47c)],'nextSyncAt':_0xa33b62};}async[_0x341464(0x1d2,0x1eb)](){function _0x2496c5(_0x5dca0f,_0xd9a829){return _0x341464(_0x5dca0f,_0xd9a829- -0x359);}return this[_0x2496c5(-0x16e,-0x168)]();}async[_0xfcf472(0x18d,0x19c)](){if(this[_0x14d7fc(-0xd,-0x5)])return this['logger']?.[_0x14d7fc(0x29,0xd)](_0x14d7fc(0x12,0x2)+_0x28e6ea(0x4a3,0x4aa)+_0x14d7fc(-0xd,-0x8)+'ping'),null;function _0x28e6ea(_0xf294,_0x2f1309){return _0x341464(_0x2f1309,_0xf294-0x2be);}this[_0x28e6ea(0x4a4,0x4bd)]=!![];function _0x14d7fc(_0x44c72b,_0x497091){return _0x341464(_0x44c72b,_0x497091- -0x1eb);}try{const _0x33a0c2=await this[_0x28e6ea(0x4bc,0x4be)+'er']['sync']();return this[_0x14d7fc(0xe,0x5)]++,this[_0x14d7fc(0x5,0x21)]=new Date(),this[_0x14d7fc(0x32,0x25)]=_0x33a0c2,this[_0x14d7fc(0x35,0x22)]?.[_0x28e6ea(0x4c6,0x4ba)](_0x28e6ea(0x4cf,0x4b6)+_0x14d7fc(-0x7,0x14),{'pushed':_0x33a0c2['pushed'],'pulled':_0x33a0c2[_0x14d7fc(-0x9,-0x7)],'errors':_0x33a0c2[_0x28e6ea(0x4cc,0x4d4)][_0x28e6ea(0x4d0,0x4b7)],'duration':_0x33a0c2[_0x28e6ea(0x4b1,0x499)]}),this[_0x14d7fc(-0xf,0xa)][_0x14d7fc(0x6,0x1e)]?.(_0x33a0c2),_0x33a0c2;}catch(_0x543424){const _0x33e35c=_0x543424 instanceof Error?_0x543424:new Error(String(_0x543424));return this[_0x28e6ea(0x4cb,0x4cc)]?.[_0x14d7fc(-0x3,0x17)]('Sync\x20faile'+'d',_0x33e35c),this[_0x14d7fc(0x1,0xa)]['onError']?.(_0x33e35c),null;}finally{this[_0x28e6ea(0x4a4,0x4a8)]=![];}}}
1
+ function _0x31f2d6(_0x32140c,_0x192128){return _0x2e6b(_0x32140c- -0x1ec,_0x192128);}function _0x2e6b(_0x200d20,_0x33a290){_0x200d20=_0x200d20-0x9c;const _0xe95f4f=_0xe95f();let _0x2e6b07=_0xe95f4f[_0x200d20];if(_0x2e6b['RHeVYA']===undefined){var _0x3d3b9b=function(_0x4e28b0){const _0xb5f9e8='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x447d44='',_0x4e6b70='';for(let _0x3a9880=0x0,_0x5c934b,_0x55ef42,_0x6eb892=0x0;_0x55ef42=_0x4e28b0['charAt'](_0x6eb892++);~_0x55ef42&&(_0x5c934b=_0x3a9880%0x4?_0x5c934b*0x40+_0x55ef42:_0x55ef42,_0x3a9880++%0x4)?_0x447d44+=String['fromCharCode'](0xff&_0x5c934b>>(-0x2*_0x3a9880&0x6)):0x0){_0x55ef42=_0xb5f9e8['indexOf'](_0x55ef42);}for(let _0x47f383=0x0,_0x303ba8=_0x447d44['length'];_0x47f383<_0x303ba8;_0x47f383++){_0x4e6b70+='%'+('00'+_0x447d44['charCodeAt'](_0x47f383)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x4e6b70);};_0x2e6b['SkwJOq']=_0x3d3b9b,_0x2e6b['AOhRza']={},_0x2e6b['RHeVYA']=!![];}const _0x952b4c=_0xe95f4f[0x0],_0x53cd7f=_0x200d20+_0x952b4c,_0x484d1d=_0x2e6b['AOhRza'][_0x53cd7f];return!_0x484d1d?(_0x2e6b07=_0x2e6b['SkwJOq'](_0x2e6b07),_0x2e6b['AOhRza'][_0x53cd7f]=_0x2e6b07):_0x2e6b07=_0x484d1d,_0x2e6b07;}(function(_0x2f2965,_0x13fb0c){function _0x1e7115(_0xf59a85,_0x11fab0){return _0x2e6b(_0x11fab0-0x35d,_0xf59a85);}function _0x2917d8(_0x3ec1f5,_0x144447){return _0x2e6b(_0x144447-0x1e9,_0x3ec1f5);}const _0x8dc930=_0x2f2965();while(!![]){try{const _0x2eab97=-parseInt(_0x1e7115(0x43d,0x425))/0x1*(-parseInt(_0x1e7115(0x41a,0x419))/0x2)+parseInt(_0x1e7115(0x43a,0x42a))/0x3*(parseInt(_0x2917d8(0x2a7,0x2bb))/0x4)+-parseInt(_0x2917d8(0x287,0x29e))/0x5*(-parseInt(_0x2917d8(0x27c,0x286))/0x6)+-parseInt(_0x2917d8(0x285,0x293))/0x7*(-parseInt(_0x1e7115(0x3fd,0x3fe))/0x8)+parseInt(_0x1e7115(0x3ee,0x40b))/0x9+-parseInt(_0x1e7115(0x420,0x434))/0xa*(-parseInt(_0x1e7115(0x3f1,0x404))/0xb)+-parseInt(_0x2917d8(0x290,0x294))/0xc;if(_0x2eab97===_0x13fb0c)break;else _0x8dc930['push'](_0x8dc930['shift']());}catch(_0x2b3219){_0x8dc930['push'](_0x8dc930['shift']());}}}(_0xe95f,0xe617e));function _0x4005a8(_0x283308,_0x33ce8c){return _0x2e6b(_0x283308- -0x4c,_0x33ce8c);}function _0xe95f(){const _0x49516f=['C3rHCNrLza','B2jQzwn0','ChvSBgvK','Aw50zxj2ywXnCW','zhKGAw4GChjVzW','nta2mteYnNnnDw9WqG','u3LUyYbHBhjLyq','Awj3DvO','B25fCNjVCG','oda2odi0BeTVBvn3','z2v0u3rHDhvZ','zfPRtve','CMvZCYWGC2TPCa','vwzWqwC','vNzNqwG','mtK5mJfpsfPPB0O','Bg9Nz2vY','B25tEw5J','mte5DhLwz0DS','ntGXnJi1odrNwwjKvMC','u3LUyYbJB21WBa','DgLTzxi','mtuZmJi2mJzduNfHvfi','BgfZDfn5BMnbDa','BgvUz3rO','idW9idaP','Aw5MBW','zgLZywjSzwqGka','C3LUy2HYB25PEG','nwvpB0r2Ea','C3LUy09Uu3rHCG','CNvUBMLUzW','DLHeCxm','Dw5Yzwy','C3rVChbLza','zxjYB3jZ','mtu3mgPywvntva','y0jLy2e','Dg9ju09tDhjPBG','D2fYBG','zxrLza','u2nOzwr1BgvYia','zgvIDwC','B3b0Aw9UCW','ChvZAgvK','DgLJAW','C3rHCNrLzef0','C3LUyW','mJq3qvrQy1rK','DgLJAYbLCNjVCG','C3rVCa','z2v0vgLTzq','v0zkA3y','nJG1nxjmqxLQEa','AxntEw5JAw5N','BM5PBMC','C3LUy0nVDw50','BgfZDfjLC3vSDa','mti0DxzuDLrH','zhvYyxrPB24','AxnsDw5UAw5N','C3LUy2LUzW','zxjYB3i','nJK4mgHNBM95rq','C3LUy05VDW','C3rHCNq'];_0xe95f=function(){return _0x49516f;};return _0xe95f();}export class SyncScheduler{[_0x31f2d6(-0x138,-0x141)+'er'];[_0x4005a8(0x77,0x98)];[_0x4005a8(0x5c,0x3f)];['timer']=null;[_0x31f2d6(-0x135,-0x12e)]=![];[_0x4005a8(0x89,0x90)]=![];[_0x4005a8(0x84,0xa4)]=0x0;[_0x4005a8(0x63,0x57)]=null;[_0x4005a8(0x85,0xa6)]=null;[_0x4005a8(0x7a,0x8d)]=null;constructor(_0x5497f9,_0x36ef02,_0x367076){function _0x362d53(_0x421afc,_0x4eab3e){return _0x4005a8(_0x4eab3e-0x2e8,_0x421afc);}function _0x316744(_0x9de81d,_0x38b3e4){return _0x4005a8(_0x38b3e4- -0x9b,_0x9de81d);}this[_0x316744(-0x27,-0x33)+'er']=_0x5497f9,this[_0x362d53(0x359,0x35f)]=_0x36ef02,this[_0x316744(-0x37,-0x3f)]=_0x367076;}async[_0x4005a8(0x8d,0x79)](){if(this[_0x45d302(0x176,0x16a)]){this[_0x36cfff(0x72,0x91)]?.['warn']('Scheduler\x20'+'already\x20ru'+_0x36cfff(0xd1,0xb8));return;}if(this[_0x45d302(0x182,0x193)][_0x36cfff(0xde,0xc6)]<=0x0){this[_0x45d302(0x167,0x17f)]?.[_0x45d302(0x17e,0x19e)](_0x45d302(0x180,0x19e)+_0x45d302(0x172,0x193)+_0x36cfff(0xc5,0xc6)+_0x45d302(0x170,0x188));return;}this[_0x45d302(0x176,0x191)]=!![];function _0x36cfff(_0x58998e,_0xe10982){return _0x4005a8(_0xe10982-0x35,_0x58998e);}this['startedAt']=new Date(),this[_0x36cfff(0x83,0x91)]?.['info'](_0x36cfff(0xaa,0xaa)+_0x45d302(0x199,0x17c),{'intervalMs':this[_0x45d302(0x182,0x19b)][_0x45d302(0x19c,0x199)]});this[_0x36cfff(0xc5,0xac)][_0x36cfff(0xab,0x9f)+'t']!==![]&&await this[_0x36cfff(0xa4,0xae)]();this[_0x36cfff(0x84,0x96)]=setInterval(()=>{function _0xf91cd4(_0x2be9b7,_0x533082){return _0x45d302(_0x533082-0x161,_0x2be9b7);}this[_0xf91cd4(0x2e0,0x2e5)]()['catch'](_0x2614f4=>{function _0x3ee168(_0x35052a,_0x347e22){return _0xf91cd4(_0x35052a,_0x347e22- -0x364);}function _0x307610(_0x218b88,_0x3c7560){return _0xf91cd4(_0x3c7560,_0x218b88- -0x200);}'ibwuZ'===_0x3ee168(-0x92,-0xa5)?this[_0x307610(0xc8,0xe8)]?.[_0x307610(0xf6,0x109)](_0x3ee168(-0x6a,-0x83)+_0x3ee168(-0x80,-0x7b),_0x2614f4 instanceof Error?_0x2614f4:new Error(String(_0x2614f4))):(this[_0x3ee168(-0xa9,-0x90)+'er']=_0x5c934b,this['options']=_0x55ef42,this[_0x3ee168(-0xa8,-0x9c)]=_0x6eb892);});},this[_0x36cfff(0xa0,0xac)]['intervalMs']);function _0x45d302(_0x5c9e33,_0x537a23){return _0x4005a8(_0x5c9e33-0x10b,_0x537a23);}if(this[_0x36cfff(0x7d,0x96)]&&typeof this[_0x36cfff(0x94,0x96)]===_0x36cfff(0xc9,0xc4)&&'unref'in this[_0x45d302(0x16c,0x16b)]){if(_0x45d302(0x177,0x16a)!==_0x45d302(0x165,0x148))this[_0x36cfff(0x88,0x96)][_0x45d302(0x178,0x177)]();else return this[_0x36cfff(0x90,0xa0)];}}[_0x4005a8(0x7e,0x65)](){function _0xbc6252(_0x5231d7,_0x23cdc3){return _0x31f2d6(_0x23cdc3-0x366,_0x5231d7);}if(!this[_0xbc6252(0x210,0x231)])return;function _0x1f29cd(_0x5b02d7,_0x4a9d6c){return _0x31f2d6(_0x5b02d7-0x183,_0x4a9d6c);}if(this[_0xbc6252(0x245,0x227)]){if('CrbBm'!==_0xbc6252(0x246,0x237))clearInterval(this['timer']),this[_0xbc6252(0x230,0x227)]=null;else{const _0x14588d=new _0x2a4caf(this[_0xbc6252(0x22d,0x240)]['getTime']()+this[_0xbc6252(0x21d,0x23d)][_0xbc6252(0x277,0x257)]);_0x2b70be=_0x14588d['toISOStrin'+'g']();}}this[_0xbc6252(0x21d,0x231)]=![],this[_0x1f29cd(0x3f,0x47)]?.[_0x1f29cd(0x49,0x37)]('Scheduler\x20'+_0xbc6252(0x231,0x234),{'syncCount':this[_0xbc6252(0x23a,0x24a)]});}[_0x31f2d6(-0x118,-0x102)](){function _0x1ac03e(_0x4efb79,_0x3111e0){return _0x4005a8(_0x4efb79- -0x334,_0x3111e0);}return this[_0x1ac03e(-0x2c9,-0x2d6)];}[_0x4005a8(0x82,0x84)](){function _0x348c0b(_0x3311c9,_0x3f3301){return _0x4005a8(_0x3f3301- -0x29c,_0x3311c9);}return this[_0x348c0b(-0x224,-0x213)];}[_0x4005a8(0x56,0x69)](){function _0x2558db(_0x1465dd,_0x598263){return _0x4005a8(_0x598263-0x3d7,_0x1465dd);}let _0x40b1a2=null;function _0x33a957(_0x31b61f,_0x15acfd){return _0x4005a8(_0x31b61f- -0x314,_0x15acfd);}if(this[_0x33a957(-0x2a9,-0x2b8)]&&this[_0x33a957(-0x2b1,-0x293)]){const _0x4bf87d=new Date(this[_0x33a957(-0x2b1,-0x2d2)][_0x2558db(0x45b,0x456)]()+this[_0x33a957(-0x29d,-0x2ab)]['intervalMs']);_0x40b1a2=_0x4bf87d[_0x33a957(-0x2a2,-0x29a)+'g']();}else{if(this[_0x33a957(-0x2a9,-0x294)]&&this[_0x33a957(-0x29a,-0x2bb)]){const _0x3e90b8=new Date(this[_0x2558db(0x458,0x451)]['getTime']()+this[_0x33a957(-0x29d,-0x28c)][_0x2558db(0x482,0x468)]);_0x40b1a2=_0x3e90b8['toISOStrin'+'g']();}}return{'running':this[_0x2558db(0x45e,0x442)],'syncing':this['syncing'],'syncCount':this[_0x33a957(-0x290,-0x28e)],'lastSyncAt':this[_0x2558db(0x42a,0x43a)]?.[_0x2558db(0x468,0x449)+'g']()??null,'lastResult':this[_0x33a957(-0x28f,-0x2a9)],'intervalMs':this['options'][_0x2558db(0x484,0x468)],'nextSyncAt':_0x40b1a2};}async[_0x4005a8(0x8c,0x77)](){function _0x2c705e(_0x47e620,_0x1bd72a){return _0x4005a8(_0x1bd72a- -0x15b,_0x47e620);}return this[_0x2c705e(-0x102,-0xe2)]();}async['tick'](){if(this[_0x50cd6c(-0x160,-0x169)])return _0x50cd6c(-0x1b9,-0x19b)!==_0x41e036(0x258,0x254)?this[_0x41e036(0x294,0x286)]:(this[_0x41e036(0x276,0x259)]?.[_0x50cd6c(-0x17e,-0x17c)](_0x41e036(0x239,0x24f)+_0x50cd6c(-0x181,-0x1a2)+_0x50cd6c(-0x1b4,-0x19a)+'ping'),null);this[_0x41e036(0x292,0x286)]=!![];function _0x41e036(_0x314bea,_0x359f17){return _0x4005a8(_0x359f17-0x1fd,_0x314bea);}function _0x50cd6c(_0x1c2311,_0x32b714){return _0x4005a8(_0x32b714- -0x1f2,_0x1c2311);}try{const _0x58897f=await this[_0x50cd6c(-0x19c,-0x18a)+'er'][_0x41e036(0x273,0x278)]();return this['syncCount']++,this[_0x50cd6c(-0x17c,-0x18f)]=new Date(),this[_0x41e036(0x26f,0x282)]=_0x58897f,this['logger']?.['info'](_0x50cd6c(-0x19a,-0x192)+_0x50cd6c(-0x19c,-0x17e),{'pushed':_0x58897f[_0x50cd6c(-0x195,-0x17a)],'pulled':_0x58897f[_0x41e036(0x291,0x28d)],'errors':_0x58897f[_0x50cd6c(-0x173,-0x183)][_0x41e036(0x26d,0x261)],'duration':_0x58897f[_0x41e036(0x294,0x284)]}),this['options'][_0x50cd6c(-0x1a3,-0x195)]?.(_0x58897f),_0x58897f;}catch(_0x3c1bdc){if(_0x41e036(0x274,0x256)===_0x41e036(0x27f,0x27d))_0x383262(this[_0x50cd6c(-0x199,-0x191)]),this[_0x50cd6c(-0x1a4,-0x191)]=null;else{const _0x376576=_0x3c1bdc instanceof Error?_0x3c1bdc:new Error(String(_0x3c1bdc));return this[_0x41e036(0x277,0x259)]?.['error']('Sync\x20faile'+'d',_0x376576),this[_0x50cd6c(-0x171,-0x17b)][_0x50cd6c(-0x187,-0x19e)]?.(_0x376576),null;}}finally{this[_0x41e036(0x26d,0x286)]=![];}}}
@@ -1 +1 @@
1
- (function(_0x55c964,_0x303ac0){function _0x102b2e(_0x5778e0,_0x278e2c){return _0x2017(_0x278e2c- -0x22d,_0x5778e0);}const _0x591cd3=_0x55c964();function _0x3e162a(_0x8bbcbe,_0x171389){return _0x2017(_0x8bbcbe- -0x2dd,_0x171389);}while(!![]){try{const _0x76abe7=-parseInt(_0x102b2e(-0xc5,-0xa5))/0x1*(parseInt(_0x102b2e(-0x77,-0xa0))/0x2)+-parseInt(_0x3e162a(-0x115,-0x13a))/0x3+-parseInt(_0x3e162a(-0x148,-0x130))/0x4*(-parseInt(_0x102b2e(-0x72,-0x72))/0x5)+-parseInt(_0x3e162a(-0x154,-0x13a))/0x6*(-parseInt(_0x3e162a(-0x116,-0x133))/0x7)+parseInt(_0x3e162a(-0x13f,-0x11d))/0x8+parseInt(_0x102b2e(-0xbf,-0x92))/0x9+-parseInt(_0x3e162a(-0x157,-0x149))/0xa;if(_0x76abe7===_0x303ac0)break;else _0x591cd3['push'](_0x591cd3['shift']());}catch(_0x5c7aa2){_0x591cd3['push'](_0x591cd3['shift']());}}}(_0x4ffb,0x6a7a6));function _0x352017(_0x389f5a,_0x5f1c87){return _0x2017(_0x389f5a-0x13a,_0x5f1c87);}function _0x2017(_0x1182fb,_0x5de62e){_0x1182fb=_0x1182fb-0x17f;const _0x4ffba9=_0x4ffb();let _0x201719=_0x4ffba9[_0x1182fb];if(_0x2017['DyvXYm']===undefined){var _0x279024=function(_0x46cd84){const _0xca3271='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x16895e='',_0x31f15a='';for(let _0x3950ba=0x0,_0x1e7ab7,_0x3b4dcf,_0x1aad35=0x0;_0x3b4dcf=_0x46cd84['charAt'](_0x1aad35++);~_0x3b4dcf&&(_0x1e7ab7=_0x3950ba%0x4?_0x1e7ab7*0x40+_0x3b4dcf:_0x3b4dcf,_0x3950ba++%0x4)?_0x16895e+=String['fromCharCode'](0xff&_0x1e7ab7>>(-0x2*_0x3950ba&0x6)):0x0){_0x3b4dcf=_0xca3271['indexOf'](_0x3b4dcf);}for(let _0x3b3e00=0x0,_0x422e85=_0x16895e['length'];_0x3b3e00<_0x422e85;_0x3b3e00++){_0x31f15a+='%'+('00'+_0x16895e['charCodeAt'](_0x3b3e00)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x31f15a);};_0x2017['nJzxmL']=_0x279024,_0x2017['ZdOvDE']={},_0x2017['DyvXYm']=!![];}const _0x36665d=_0x4ffba9[0x0],_0x2f785c=_0x1182fb+_0x36665d,_0x5b0ce7=_0x2017['ZdOvDE'][_0x2f785c];return!_0x5b0ce7?(_0x201719=_0x2017['nJzxmL'](_0x201719),_0x2017['ZdOvDE'][_0x2f785c]=_0x201719):_0x201719=_0x5b0ce7,_0x201719;}import{SyncQueue,mapCategory,mapTier}from'./queue.js';function _0x1ff7a9(_0x2a19a0,_0x2e0289){return _0x2017(_0x2a19a0-0x20c,_0x2e0289);}function _0x4ffb(){const _0x5f30b4=['zfv6BKS','y2XPzw50','BgfZDezHAwX1CG','zMfPBhvYzxm','ywnJzxnZx2nVDq','CgvU','Dg9Uzxm','C0nVDw50','BM9KzuLK','C29YDa','DgLLCG','sg5AvgS','zw1IzwrKAw5N','BwvZC2fNzq','zhvYyxrPB24','Dfr2BxO','DxjL','DxbKyxrLzf9HDa','mZm4mZq3mgvZtwDXzG','zuf0','mJn0zLbttum','mJGXnJiZoez1survwq','B3jL','zxnZ','zwfRzxiGB3bLBG','nJmYnJzgzxLAD0O','zMLUze1LBw9YEq','BM93','C3LUy2vK','q291BNq','z2v0tgfZDfn5BG','y2H1BMTFAw5Kzq','zxjYB3jZ','nZe1mty4DKTuy3Lr','zgvSzxrLza','DhPKAKq','CgfYzw50x2LK','66Mu66QO66ASia','oIb0B28GBwfUEq','nde4mdKZmNvYrhretW','Aw5N','DxbKyxrLtwvTBW','ntK2odK5mLf0z0rlva','ChvZAa','y2f0zwDVCNK','zMX1C2G','wwHKAMe','y2H1BMTFDg90yq','CxvLDwu','io2sGcdSI6tTJkG6ia','DgfNCW','vvHwwLi','y29UzMXPy3rZ','AxndAxjJDwL0tW','ignVBNnLy3v0Aq','DfHyqNi','CMvJB3jKu3vJyW','zw1VCNLdB3vUDa','C2v0u3LUy1n0yq','CMvJB3jKrMfPBa','y29UDgvUDa','DgLTzw91De1Z','y29VBgrVD25nCW','q2LYy3vPDcbICG','C3LUyW','z2v0u3LUy2vKtq','CxvHBgL0Ev9ZyW','C2f2zuvTyMvKza','BwvYz2vby2nLCW','C3LUy0rLBhrH','vgfODhO','mtvnu3fHDw4','DgvHBvbHDgG','Bwf4rMfPBhvYzq','ChvSBa','BgvUz3rO','Bwf4','y2vKqxq','ChvZAgvK','y3jLyxrLtwvTBW','C3LUy0XVy2fS','ChvSBgvK','DMuGzMfPBhvYzq','n1vkCwf5vq','mJe0mZe0m3LJywf6CG','DhvZ','vwvsswy','z2v0u3rHDhvZ','DxbKyxrLzef0','tvnsyxm'];_0x4ffb=function(){return _0x5f30b4;};return _0x4ffb();}import{TeamSynchronizer}from'./team-synchronizer.js';const DEFAULT_PAGE_SIZE=0x64;export class MemorySynchronizer{['db'];[_0x1ff7a9(0x3db,0x3c9)];[_0x352017(0x2f6,0x2ce)];[_0x352017(0x310,0x311)];[_0x1ff7a9(0x3b0,0x3cd)];['failures']=0x0;['lastFailur'+_0x352017(0x2c1,0x2d5)]=0x0;[_0x1ff7a9(0x3c9,0x3b5)+'s']=0x3;[_0x352017(0x2ec,0x30b)]=0x7530;constructor(_0x3beb79,_0x16c6c1,_0x1b1022,_0x28f480){this['db']=_0x3beb79;function _0x9cc218(_0x38f121,_0x2aeeb7){return _0x1ff7a9(_0x2aeeb7-0xed,_0x38f121);}this[_0x2f009f(0x2f4,0x2d8)]=_0x16c6c1;function _0x2f009f(_0x57dae6,_0x4c1358){return _0x1ff7a9(_0x57dae6- -0xe7,_0x4c1358);}this[_0x9cc218(0x4c8,0x4b5)]=_0x1b1022,this[_0x2f009f(0x2fb,0x2ff)]=_0x28f480,this['queue']=new SyncQueue(_0x3beb79,_0x16c6c1);}[_0x1ff7a9(0x3b5,0x3b0)+_0x352017(0x30d,0x314)](){if(this[_0xd8af2c(0x2f3,0x2fd)]<this[_0x529695(-0x10b,-0xef)+'s'])return![];function _0xd8af2c(_0x280348,_0x962c1a){return _0x352017(_0x962c1a- -0xe,_0x280348);}function _0x529695(_0x584e4e,_0x5db915){return _0x352017(_0x5db915- -0x3e6,_0x584e4e);}return Date[_0xd8af2c(0x2a4,0x2bb)]()-this[_0xd8af2c(0x2f3,0x2fc)+_0xd8af2c(0x2bc,0x2b3)]<this[_0x529695(-0xf4,-0xfa)];}[_0x352017(0x2e6,0x2bf)+_0x352017(0x2c5,0x2c6)](){function _0x4c7230(_0x2be1ed,_0x3afee1){return _0x1ff7a9(_0x3afee1-0xc2,_0x2be1ed);}this[_0x4c7230(0x49e,0x49f)]=0x0;}['recordFail'+'ure'](){function _0x1bcbfc(_0x4a3bfd,_0x2e4e44){return _0x352017(_0x2e4e44- -0x87,_0x4a3bfd);}function _0x55cf65(_0xa10dad,_0x168c67){return _0x352017(_0x168c67- -0x338,_0xa10dad);}this['failures']++,this[_0x55cf65(-0x23,-0x2e)+'eAt']=Date[_0x55cf65(-0x89,-0x6f)]();}async[_0x352017(0x2ee,0x31b)](){if(this[_0x1676b9(0xe1,0xf6)]&&this[_0x444d3b(-0x161,-0x162)]){const _0x702c2c=new TeamSynchronizer(this['db'],this[_0x444d3b(-0x168,-0x190)],this[_0x444d3b(-0x17b,-0x1a8)],this[_0x444d3b(-0x161,-0x185)]),_0x50f927=await _0x702c2c[_0x444d3b(-0x17e,-0x1a9)]();return{'pushed':_0x50f927[_0x444d3b(-0x175,-0x154)],'pulled':_0x50f927['pulled'],'conflicts':_0x50f927[_0x444d3b(-0x18f,-0x1ab)],'errors':_0x50f927[_0x1676b9(0xb9,0x99)],'duration':_0x50f927['duration']};}function _0x444d3b(_0x1b1ffb,_0x558fbb){return _0x352017(_0x1b1ffb- -0x471,_0x558fbb);}function _0x1676b9(_0x56efdf,_0x2fe490){return _0x352017(_0x56efdf- -0x215,_0x2fe490);}return this[_0x1676b9(0xe9,0xfc)]();}async[_0x1ff7a9(0x3d0,0x3c4)](){const _0x359376=Date['now'](),_0x502ea4={'pushed':0x0,'pulled':0x0,'conflicts':0x0,'errors':[],'duration':0x0};function _0x5cebcf(_0x4be393,_0x11aa6c){return _0x352017(_0x11aa6c-0x57,_0x4be393);}try{const _0x584b56=await this['push']();_0x502ea4[_0x5cebcf(0x375,0x353)]=_0x584b56[_0xfe08b(-0xc2,-0xc8)],_0x502ea4['errors'][_0xfe08b(-0xe5,-0xba)](..._0x584b56[_0xfe08b(-0xf0,-0xfe)]);const _0x370d27=await this['pull']();_0x502ea4['pulled']=_0x370d27[_0xfe08b(-0xbf,-0xeb)],_0x502ea4[_0x5cebcf(0x333,0x339)]=_0x370d27[_0x5cebcf(0x355,0x339)],_0x502ea4[_0x5cebcf(0x34c,0x325)][_0xfe08b(-0xe5,-0xeb)](..._0x370d27[_0xfe08b(-0xf0,-0x104)]);}catch(_0x340b65){_0x5cebcf(0x314,0x333)!==_0xfe08b(-0x101,-0xe5)?_0x340b65 instanceof Error&&_0x502ea4[_0x5cebcf(0x327,0x325)][_0xfe08b(-0xe5,-0xc7)](_0x340b65[_0xfe08b(-0x103,-0x120)]):(this['db'][_0x5cebcf(0x342,0x32e)+'ry'](_0xeff100['id'],{'content':_0x5eb41d[_0xfe08b(-0xd4,-0xac)],'category':_0x14219c(_0x3342df[_0xfe08b(-0xe4,-0xc8)]),'tier':_0x17e514(_0x38f890[_0xfe08b(-0xac,-0xd6)]??_0x2aae17[_0xfe08b(-0xac,-0xa5)]),'tags':_0x298660['tags']??_0x477df9[_0x5cebcf(0x33a,0x337)],'qualityScore':_0x5ea4f3[_0x5cebcf(0x361,0x347)+'ore']??_0x2be968}),_0x3550d8[_0xfe08b(-0xb2,-0xb0)+'nt']!==_0x4d7c9e&&this['db'][_0xfe08b(-0xcc,-0xb8)+_0x5cebcf(0x34a,0x366)](_0x480d4d['id'],_0x33df32[_0xfe08b(-0xb2,-0xab)+'nt']),_0xd4de70[_0x5cebcf(0x320,0x311)]&&_0x127d48[_0xfe08b(-0x104,-0xd8)][_0xfe08b(-0xc5,-0xd6)]>0x0&&this['db'][_0x5cebcf(0x353,0x348)+_0x5cebcf(0x323,0x32d)](_0x3e451f['id'],_0x599029[_0xfe08b(-0x104,-0x129)]),this['db'][_0x5cebcf(0x345,0x33f)+_0xfe08b(-0xbb,-0xa3)](_0x2db9b6['id'],_0x2849d6['id'],_0x5cebcf(0x2f7,0x321)),_0x5f5449['conflicts']++);}_0x502ea4['duration']=Date[_0xfe08b(-0xf5,-0xfc)]()-_0x359376;function _0xfe08b(_0x13dc2b,_0x4669fb){return _0x352017(_0x13dc2b- -0x3be,_0x4669fb);}return _0x502ea4;}async[_0x352017(0x2d9,0x306)](_0x3bcf8d){function _0x3d92d8(_0x3a6e88,_0x3e9bba){return _0x352017(_0x3a6e88-0x1b7,_0x3e9bba);}if(this[_0x50a74f(0x371,0x36f)+'pen']())return{'pushed':0x0,'pulled':0x0,'conflicts':0x0,'errors':['Circuit\x20br'+_0x50a74f(0x354,0x34a)+_0x50a74f(0x362,0x388)+_0x50a74f(0x372,0x359)+_0x50a74f(0x38e,0x3a9)+'s'],'duration':0x0};function _0x50a74f(_0x449c0a,_0x14310e){return _0x352017(_0x449c0a-0x8e,_0x14310e);}const _0x97253c=Date[_0x50a74f(0x357,0x383)]();try{const _0x5906c1=await this[_0x3d92d8(0x495,0x495)][_0x50a74f(0x369,0x37f)]({'timeoutMs':_0x3bcf8d?.[_0x50a74f(0x379,0x379)]}),_0x316c82=await this[_0x50a74f(0x36c,0x37d)]['flushTombs'+_0x3d92d8(0x4c5,0x4a7)](),_0x343459=[..._0x5906c1[_0x3d92d8(0x485,0x49f)],..._0x316c82['errors']];return _0x343459[_0x3d92d8(0x4b0,0x4d5)]>0x0?this[_0x50a74f(0x377,0x385)+_0x50a74f(0x34c,0x366)]():this[_0x3d92d8(0x49d,0x470)+'ess'](),{'pushed':_0x5906c1[_0x3d92d8(0x4b3,0x4b5)],'pulled':_0x316c82[_0x50a74f(0x35e,0x359)],'conflicts':0x0,'errors':_0x343459,'duration':Date['now']()-_0x97253c};}catch(_0x5ee4fe){this[_0x3d92d8(0x4a0,0x4b5)+_0x50a74f(0x34c,0x34c)]();throw _0x5ee4fe;}}async[_0x1ff7a9(0x3ca,0x3d1)](){if(this[_0x17e62a(-0x1ea,-0x1cf)+'pen']())return{'pushed':0x0,'pulled':0x0,'conflicts':0x0,'errors':[_0x17e62a(-0x1e0,-0x201)+_0xba3ce(0x7c,0x50)+_0x17e62a(-0x1f9,-0x1d1)+_0xba3ce(0x9a,0xbc)+_0xba3ce(0xb6,0xa2)+'s'],'duration':0x0};const _0x49a7dd=Date[_0x17e62a(-0x204,-0x21f)](),_0x16b4e9={'pushed':0x0,'pulled':0x0,'conflicts':0x0,'errors':[],'duration':0x0};try{let _0x3f89a4=0x0,_0x4545ca=!![];while(_0x4545ca){if(_0x17e62a(-0x1ec,-0x1fd)!==_0xba3ce(0xbe,0xd1)){const _0x223045=await this[_0xba3ce(0xbf,0xa6)]['listMemori'+'es']({'limit':DEFAULT_PAGE_SIZE,'offset':_0x3f89a4,'includeEmbedding':!![]});if(_0x223045[_0xba3ce(0xaf,0xa3)]===0x0){_0x4545ca=![];break;}_0x223045[_0xba3ce(0xc7,0xb7)]((_0x55146e,_0xdc902f)=>{function _0xdd5791(_0x469561,_0x11ef3b){return _0xba3ce(_0x11ef3b-0x397,_0x469561);}function _0x4a6b02(_0x4219f2,_0xb17ad2){return _0xba3ce(_0xb17ad2-0x229,_0x4219f2);}if(_0x4a6b02(0x27a,0x298)===_0xdd5791(0x42c,0x406)){const _0x34db87=_0x55146e[_0xdd5791(0x422,0x41f)]?0x1:0x0,_0x264426=_0xdc902f[_0x4a6b02(0x2b0,0x2b1)]?0x1:0x0;return _0x34db87-_0x264426;}else this['db'][_0x4a6b02(0x2c1,0x2d0)+_0x4a6b02(0x2be,0x2b5)](_0x4c130f['id'],_0x13123b[_0xdd5791(0x3e0,0x407)]);});for(const _0x4024f2 of _0x223045){try{const _0x4cf8e9=this['db'][_0x17e62a(-0x205,-0x1ff)+'ByRemoteId'](_0x4024f2['id']);if(!_0x4cf8e9){const _0x3fef9c=this['db'][_0x17e62a(-0x1d0,-0x1b9)+'ry']({'content':_0x4024f2[_0xba3ce(0xa0,0x7d)],'category':mapCategory(_0x4024f2[_0xba3ce(0x90,0xa3)]),'tier':mapTier(_0x4024f2[_0xba3ce(0xc8,0xda)]??'episodic'),'tags':_0x4024f2[_0xba3ce(0x96,0xb4)]??[],'parentId':_0x4024f2[_0x17e62a(-0x1fb,-0x1f3)]??undefined,'chunkIndex':_0x4024f2[_0xba3ce(0x83,0x9e)+'x']??undefined,'chunkTotal':_0x4024f2[_0x17e62a(-0x1f0,-0x1d7)+'l']??undefined,'qualityScore':_0x4024f2[_0xba3ce(0xa6,0x7a)+_0xba3ce(0x7a,0x6f)]??undefined});_0x4024f2[_0x17e62a(-0x1c1,-0x1db)+'nt']&&_0x4024f2[_0x17e62a(-0x1c1,-0x1c6)+'nt']>0x0&&this['db'][_0x17e62a(-0x1db,-0x1e2)+_0x17e62a(-0x1be,-0x1be)](_0x3fef9c['id'],_0x4024f2[_0x17e62a(-0x1c1,-0x197)+'nt']),_0x4024f2[_0xba3ce(0x70,0x52)]&&_0x4024f2['embedding']['length']>0x0&&this['db'][_0x17e62a(-0x1dc,-0x1c6)+_0xba3ce(0x8c,0x73)](_0x3fef9c['id'],_0x4024f2[_0xba3ce(0x70,0x6c)]),this['db'][_0xba3ce(0x9e,0xb2)+_0x17e62a(-0x1ca,-0x1ed)](_0x3fef9c['id'],_0x4024f2['id'],_0xba3ce(0x80,0x70)),_0x16b4e9['pulled']++;}else{if('UpTed'===_0xba3ce(0x9b,0x8a)){this[_0x17e62a(-0x1e4,-0x1cd)+_0x17e62a(-0x20f,-0x22f)]();throw _0x1de855;}else{const _0x28b040=new Date(_0x4024f2[_0xba3ce(0x75,0x69)]),_0x4a95f3=new Date(_0x4cf8e9[_0x17e62a(-0x1c7,-0x19b)]);_0x28b040>_0x4a95f3&&(this['db'][_0xba3ce(0x8d,0x97)+'ry'](_0x4cf8e9['id'],{'content':_0x4024f2[_0x17e62a(-0x1e3,-0x1cf)],'category':mapCategory(_0x4024f2[_0x17e62a(-0x1f3,-0x1fd)]),'tier':mapTier(_0x4024f2[_0x17e62a(-0x1bb,-0x1ba)]??_0x4cf8e9[_0xba3ce(0xc8,0xc8)]),'tags':_0x4024f2[_0x17e62a(-0x1ed,-0x205)]??_0x4cf8e9[_0xba3ce(0x96,0x7c)],'qualityScore':_0x4024f2[_0xba3ce(0xa6,0x7d)+_0xba3ce(0x7a,0x7e)]??undefined}),_0x4024f2['access_cou'+'nt']!==undefined&&(_0xba3ce(0xaa,0xa7)===_0xba3ce(0xba,0xa3)?this['db']['saveEmbedd'+'ing'](_0x1c71c3['id'],_0x5a2353[_0x17e62a(-0x213,-0x1ec)]):this['db'][_0x17e62a(-0x1db,-0x1cb)+_0x17e62a(-0x1be,-0x1ce)](_0x4cf8e9['id'],_0x4024f2[_0x17e62a(-0x1c1,-0x1b5)+'nt'])),_0x4024f2['embedding']&&_0x4024f2[_0x17e62a(-0x213,-0x234)][_0xba3ce(0xaf,0xb3)]>0x0&&this['db'][_0xba3ce(0xa7,0xaa)+_0xba3ce(0x8c,0x61)](_0x4cf8e9['id'],_0x4024f2[_0x17e62a(-0x213,-0x207)]),this['db'][_0xba3ce(0x9e,0xa3)+_0xba3ce(0xb9,0xb0)](_0x4cf8e9['id'],_0x4024f2['id'],_0x17e62a(-0x203,-0x22c)),_0x16b4e9[_0xba3ce(0x98,0x99)]++);}}}catch(_0xc55420){_0xc55420 instanceof Error&&_0x16b4e9['errors'][_0xba3ce(0x8f,0x71)](_0x17e62a(-0x1fa,-0x1f2)+_0x4024f2['id']+_0x17e62a(-0x1ee,-0x1ce)+_0xc55420[_0x17e62a(-0x212,-0x237)]);}}_0x223045[_0xba3ce(0xaf,0xc8)]<DEFAULT_PAGE_SIZE?_0x4545ca=![]:_0x17e62a(-0x1c6,-0x1cc)===_0x17e62a(-0x1fc,-0x207)?_0x3526ff['errors'][_0x17e62a(-0x1f4,-0x1c9)]('메모리\x20'+_0x249b54['id']+_0x17e62a(-0x1ee,-0x1d9)+_0x5c53c1[_0x17e62a(-0x212,-0x206)]):_0x3f89a4+=DEFAULT_PAGE_SIZE;}else{const _0x51ada6=new _0x1bf83c(_0x4b4d88['updated_at']),_0x435ca4=new _0x3e90a8(_0x5693f0[_0xba3ce(0xbc,0xc0)]);_0x51ada6>_0x435ca4&&(this['db'][_0xba3ce(0x8d,0x9e)+'ry'](_0x112ea6['id'],{'content':_0x199719[_0xba3ce(0xa0,0x93)],'category':_0x3ee197(_0x509bf8['category']),'tier':_0x3383d8(_0x111519[_0x17e62a(-0x1bb,-0x1d7)]??_0xf53670[_0x17e62a(-0x1bb,-0x1ca)]),'tags':_0x5cc85d['tags']??_0x2ba325[_0x17e62a(-0x1ed,-0x1c6)],'qualityScore':_0x14800b[_0x17e62a(-0x1dd,-0x1d7)+_0xba3ce(0x7a,0x8e)]??_0x314a3d}),_0x36f1ec[_0x17e62a(-0x1c1,-0x1d4)+'nt']!==_0x3ac2f3&&this['db']['mergeAcces'+_0xba3ce(0xc5,0xa6)](_0x15ab80['id'],_0x3799ed[_0xba3ce(0xc2,0xaf)+'nt']),_0x4900b5[_0x17e62a(-0x213,-0x207)]&&_0x3f93a6[_0xba3ce(0x70,0x68)][_0x17e62a(-0x1d4,-0x1af)]>0x0&&this['db']['saveEmbedd'+'ing'](_0x36821a['id'],_0x2f59d1[_0xba3ce(0x70,0x77)]),this['db'][_0x17e62a(-0x1e5,-0x1c6)+_0x17e62a(-0x1ca,-0x1e9)](_0x2c030a['id'],_0x2f3fc8['id'],_0x17e62a(-0x203,-0x226)),_0xf3fdb[_0x17e62a(-0x1eb,-0x1d8)]++);}}this[_0x17e62a(-0x1e7,-0x1ce)+_0xba3ce(0x7b,0x9a)]();}catch(_0x3d2aec){this[_0xba3ce(0x9f,0xa6)+_0xba3ce(0x74,0x70)](),_0x3d2aec instanceof Error&&_0x16b4e9[_0xba3ce(0x84,0x62)][_0x17e62a(-0x1f4,-0x1ea)](_0x3d2aec['message']);}_0x16b4e9[_0x17e62a(-0x211,-0x21c)]=Date[_0xba3ce(0x7f,0x76)]()-_0x49a7dd;function _0x17e62a(_0x3cd710,_0x98bcea){return _0x1ff7a9(_0x3cd710- -0x59f,_0x98bcea);}function _0xba3ce(_0x1898ee,_0x329eef){return _0x1ff7a9(_0x1898ee- -0x31c,_0x329eef);}return _0x16b4e9;}async[_0x1ff7a9(0x3d7,0x3cf)](){const _0x11e76d=this[_0x5e8f39(0x4f1,0x4fe)]['getPending'+_0x5e8f39(0x507,0x4eb)]();function _0x5e8f39(_0x5eacf9,_0x3d46c3){return _0x352017(_0x3d46c3-0x220,_0x5eacf9);}function _0x45eb14(_0x273787,_0x34564f){return _0x352017(_0x34564f-0x2a8,_0x273787);}let _0x47f6be=0x0;try{const _0xb07ce6=await this[_0x45eb14(0x5c3,0x5b1)]['listMemori'+'es']({'limit':0x2710}),_0x4d0b1b=this['db'][_0x5e8f39(0x4e4,0x50f)+_0x45eb14(0x5a4,0x58f)]();_0x47f6be=Math[_0x45eb14(0x59f,0x5a2)](0x0,_0xb07ce6[_0x45eb14(0x588,0x5a1)]-_0x4d0b1b);}catch{}const _0x3817fe=this['db'][_0x5e8f39(0x513,0x4ec)+_0x5e8f39(0x4f6,0x51b)]();return{'pendingPush':_0x11e76d,'pendingPull':_0x47f6be,'lastSyncedAt':_0x3817fe??undefined};}}
1
+ function _0x38f88f(_0x185424,_0x355b30){return _0x43c2(_0x355b30-0x249,_0x185424);}(function(_0x3bd28f,_0x3f3a54){function _0x4547f2(_0xd0bead,_0xdde7c8){return _0x43c2(_0xd0bead- -0x312,_0xdde7c8);}const _0x7d064=_0x3bd28f();function _0x488b62(_0x2b9b3e,_0x105062){return _0x43c2(_0x2b9b3e- -0x3da,_0x105062);}while(!![]){try{const _0x4dd996=-parseInt(_0x4547f2(-0x1d1,-0x1d2))/0x1+-parseInt(_0x488b62(-0x2c7,-0x2ea))/0x2*(-parseInt(_0x488b62(-0x2cc,-0x2d6))/0x3)+parseInt(_0x488b62(-0x2a4,-0x29e))/0x4*(-parseInt(_0x4547f2(-0x211,-0x1fb))/0x5)+parseInt(_0x4547f2(-0x217,-0x203))/0x6+parseInt(_0x4547f2(-0x1fe,-0x206))/0x7+parseInt(_0x4547f2(-0x1e8,-0x205))/0x8+parseInt(_0x488b62(-0x292,-0x2a8))/0x9*(-parseInt(_0x4547f2(-0x212,-0x230))/0xa);if(_0x4dd996===_0x3f3a54)break;else _0x7d064['push'](_0x7d064['shift']());}catch(_0x518b08){_0x7d064['push'](_0x7d064['shift']());}}}(_0x5cbf,0xe5356));function _0x264674(_0x3ddfd1,_0x5e87ee){return _0x43c2(_0x5e87ee-0x274,_0x3ddfd1);}import{SyncQueue,mapCategory,mapTier}from'./queue.js';function _0x5cbf(){const _0x4161d9=['CuLjtwq','DhvZ','z2v0u3LUy2vKtq','mtmWnZq3mtjcDKzQqw8','DxbKyxrLtwvTBW','y2XPzw50','zMfPBhvYzxm','Bwf4rMfPBhvYzq','Bwf4','uNLmAKy','BM93','zxjYB3jZ','ChvZAa','ywnJzxnZx2nVDq','qNLszw1VDgvjza','nfvUy1zZsW','DgfNCW','zw1IzwrKAw5N','CxvLDwu','CMvJB3jKrMfPBa','DxbKyxrLzf9HDa','zMX1C2HuB21ICW','y2vKqxq','q2LYy3vPDcbICG','C3LUy0XVy2fS','BwvYz2vby2nLCW','ntqZntaYEfjZEMLp','sMLLB0S','CMvJB3jKu3vJyW','zwfRzxiGB3bLBG','ChvZAgvK','C3LUyW','CgvU','mZzkwxnmC1G','CgfYzw50x2LK','q291BNq','DMuGzMfPBhvYzq','y29UDgvUDa','C2v0u3LUy1n0yq','oIb0B28GBwfUEq','C3LUy2vK','ntq2nteYnhfXCxP0DG','DgLLCG','BgLZDe1LBw9YAq','Aw5N','vxLRrLi','mZG3nJmXmeDVrg5Oua','nJuZotqZmgntwMznqW','zxnZ','zMPUrhK','zhvYyxrPB24','y2H1BMTFDg90yq','C29YDa','z2v0ugvUzgLUzW','zxbPC29KAwm','quzszge','zgvSzxrLza','BgfZDezHAwX1CG','DxbKyxrLzef0','DgLTzw91De1Z','ndi0mdu5EfDmthHI','CxvHBgL0Ev9ZyW','BwvZC2fNzq','DxjL','BM9KzuLK','mtjSyNj4s24','nJyZmJa3m0fbAuHHvW','ChvSBa','y2f0zwDVCNK','y29VBgrVD25nCW','ChvSBgvK','y2H1BMTFAw5Kzq','Dg9Uzxm','BgvUz3rO','ignVBNnLy3v0Aq','C3LUy0rLBhrH','AxndAxjJDwL0tW','C2f2zuvTyMvKza','y29UzMXPy3rZ','DgvHBvbHDgG','zuf0','io2sGcdSI6tTJkG6ia','zMX1C2G','C0nVDw50','B3jL'];_0x5cbf=function(){return _0x4161d9;};return _0x5cbf();}import{TeamSynchronizer}from'./team-synchronizer.js';const DEFAULT_PAGE_SIZE=0x64;function _0x43c2(_0x3ffe92,_0x5c2087){_0x3ffe92=_0x3ffe92-0xfa;const _0x5cbff0=_0x5cbf();let _0x43c279=_0x5cbff0[_0x3ffe92];if(_0x43c2['LdUAFU']===undefined){var _0x38f6c3=function(_0xc90c89){const _0x750979='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x4ec64e='',_0x129574='';for(let _0x2e0118=0x0,_0x554956,_0x110a8a,_0x5af06a=0x0;_0x110a8a=_0xc90c89['charAt'](_0x5af06a++);~_0x110a8a&&(_0x554956=_0x2e0118%0x4?_0x554956*0x40+_0x110a8a:_0x110a8a,_0x2e0118++%0x4)?_0x4ec64e+=String['fromCharCode'](0xff&_0x554956>>(-0x2*_0x2e0118&0x6)):0x0){_0x110a8a=_0x750979['indexOf'](_0x110a8a);}for(let _0x117872=0x0,_0x568a52=_0x4ec64e['length'];_0x117872<_0x568a52;_0x117872++){_0x129574+='%'+('00'+_0x4ec64e['charCodeAt'](_0x117872)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x129574);};_0x43c2['tfYXHk']=_0x38f6c3,_0x43c2['tcBmyX']={},_0x43c2['LdUAFU']=!![];}const _0x4861dc=_0x5cbff0[0x0],_0x577f78=_0x3ffe92+_0x4861dc,_0x379834=_0x43c2['tcBmyX'][_0x577f78];return!_0x379834?(_0x43c279=_0x43c2['tfYXHk'](_0x43c279),_0x43c2['tcBmyX'][_0x577f78]=_0x43c279):_0x43c279=_0x379834,_0x43c279;}export class MemorySynchronizer{['db'];[_0x264674(0x379,0x3a0)];[_0x38f88f(0x342,0x36a)];[_0x38f88f(0x383,0x35b)];[_0x38f88f(0x384,0x382)];[_0x264674(0x3a6,0x3a1)]=0x0;[_0x264674(0x372,0x37f)+_0x264674(0x371,0x396)]=0x0;['maxFailure'+'s']=0x3;[_0x38f88f(0x388,0x360)]=0x7530;constructor(_0x460f54,_0x2b66b3,_0x3fd673,_0x9ceddd){function _0x2ad511(_0x2e525f,_0x3e6162){return _0x264674(_0x3e6162,_0x2e525f- -0x25);}this['db']=_0x460f54;function _0x1a9974(_0x55ffd5,_0x3d4c10){return _0x264674(_0x3d4c10,_0x55ffd5-0x7);}this['client']=_0x2b66b3,this['teamPath']=_0x3fd673,this[_0x1a9974(0x38d,0x3b4)]=_0x9ceddd,this[_0x1a9974(0x3b4,0x3a2)]=new SyncQueue(_0x460f54,_0x2b66b3);}[_0x264674(0x3b4,0x392)+_0x38f88f(0x3a7,0x390)](){if(this[_0x3a546c(0xd7,0xf8)]<this[_0x3a546c(0xd8,0xdb)+'s'])return![];function _0x3a546c(_0x5691cb,_0x419eb4){return _0x38f88f(_0x419eb4,_0x5691cb- -0x29f);}function _0x3e6a6c(_0x5af90b,_0x18a0d7){return _0x38f88f(_0x5af90b,_0x18a0d7-0x7d);}return Date[_0x3a546c(0xdb,0xb7)]()-this[_0x3e6a6c(0x3be,0x3d1)+_0x3a546c(0xcc,0xc9)]<this['cooldownMs'];}[_0x264674(0x3a1,0x3b7)+_0x264674(0x377,0x376)](){function _0x2a992e(_0x51d6c1,_0x5ed607){return _0x38f88f(_0x5ed607,_0x51d6c1- -0x38);}this[_0x2a992e(0x33e,0x32a)]=0x0;}[_0x38f88f(0x38c,0x383)+_0x38f88f(0x34c,0x35a)](){function _0x3b3af7(_0x3c5fb5,_0x325ad9){return _0x264674(_0x325ad9,_0x3c5fb5- -0x4e9);}function _0x17344b(_0x5d7885,_0x4c109a){return _0x264674(_0x4c109a,_0x5d7885- -0x541);}this[_0x17344b(-0x1a0,-0x1a6)]++,this[_0x3b3af7(-0x16a,-0x143)+_0x3b3af7(-0x153,-0x16e)]=Date[_0x17344b(-0x19c,-0x186)]();}async[_0x38f88f(0x375,0x38f)](){if(this[_0x2ad426(0x136,0x11f)]&&this[_0x588d75(-0xa7,-0x93)]){const _0x52613f=new TeamSynchronizer(this['db'],this[_0x2ad426(0x144,0x12a)],this[_0x2ad426(0x10a,0x11f)],this[_0x2ad426(0xf3,0x110)]),_0x2457ed=await _0x52613f[_0x2ad426(0xfe,0x11b)]();return{'pushed':_0x2457ed[_0x2ad426(0x167,0x143)],'pulled':_0x2457ed[_0x2ad426(0x102,0x116)],'conflicts':_0x2457ed[_0x2ad426(0x119,0x11e)],'errors':_0x2457ed[_0x2ad426(0x106,0x130)],'duration':_0x2457ed[_0x588d75(-0xb5,-0x93)]};}function _0x588d75(_0x7d0bc9,_0x107c3c){return _0x38f88f(_0x107c3c,_0x7d0bc9- -0x402);}function _0x2ad426(_0x41f4ab,_0x597e4d){return _0x38f88f(_0x41f4ab,_0x597e4d- -0x24b);}return this[_0x588d75(-0x7a,-0x9c)]();}async['syncLocal'](){const _0x26479e=Date[_0x4ea620(0x4ef,0x4d1)]();function _0x38a568(_0x2ef1b4,_0x1cdc13){return _0x38f88f(_0x1cdc13,_0x2ef1b4- -0x37a);}const _0x3dc745={'pushed':0x0,'pulled':0x0,'conflicts':0x0,'errors':[],'duration':0x0};function _0x4ea620(_0x40d5fa,_0x22ae59){return _0x38f88f(_0x40d5fa,_0x22ae59-0x157);}try{const _0x51d9f7=await this[_0x4ea620(0x4e6,0x4d3)]();_0x3dc745[_0x4ea620(0x50a,0x4e5)]=_0x51d9f7[_0x38a568(0x14,0x1d)],_0x3dc745[_0x38a568(0x1,0x3)][_0x38a568(0x2,-0x7)](..._0x51d9f7[_0x38a568(0x1,-0x1f)]);const _0x5ae472=await this[_0x38a568(-0x1c,-0x4)]();_0x3dc745[_0x38a568(-0x19,-0x43)]=_0x5ae472[_0x4ea620(0x4c2,0x4b8)],_0x3dc745[_0x38a568(-0x11,-0x10)]=_0x5ae472[_0x38a568(-0x11,-0x2d)],_0x3dc745[_0x4ea620(0x4ee,0x4d2)][_0x38a568(0x2,0x29)](..._0x5ae472[_0x4ea620(0x4e7,0x4d2)]);}catch(_0x4bcd4f){_0x4bcd4f instanceof Error&&(_0x38a568(-0xa,0x17)!==_0x38a568(-0xa,-0x23)?_0x5b78ff instanceof _0x4e1c2e&&_0x2c5960['errors'][_0x4ea620(0x4be,0x4d3)]('메모리\x20'+_0x57253b['id']+_0x4ea620(0x4cd,0x4c3)+_0x1c78d8[_0x38a568(-0x21,-0x10)]):_0x3dc745[_0x38a568(0x1,0x6)][_0x38a568(0x2,-0x1b)](_0x4bcd4f['message']));}return _0x3dc745['duration']=Date[_0x38a568(0x0,0x29)]()-_0x26479e,_0x3dc745;}async[_0x38f88f(0x3a0,0x37c)](_0x98f2fa){if(this[_0x59a44b(-0x23b,-0x250)+_0x1a4b70(0x3b2,0x3b0)]())return{'pushed':0x0,'pulled':0x0,'conflicts':0x0,'errors':[_0x1a4b70(0x3a9,0x3d0)+_0x1a4b70(0x3af,0x3a3)+_0x1a4b70(0x3b9,0x3de)+_0x1a4b70(0x387,0x364)+_0x59a44b(-0x20e,-0x234)+'s'],'duration':0x0};function _0x59a44b(_0x289b9c,_0x46b095){return _0x264674(_0x46b095,_0x289b9c- -0x5cd);}function _0x1a4b70(_0x89af40,_0x2c8ffe){return _0x264674(_0x2c8ffe,_0x89af40- -0x9);}const _0x1bec96=Date['now']();try{if('NyzDC'===_0x1a4b70(0x36a,0x34a))return{'pushed':0x0,'pulled':0x0,'conflicts':0x0,'errors':['Circuit\x20br'+'eaker\x20open'+_0x1a4b70(0x3b9,0x3dc)+'\x20consecuti'+_0x59a44b(-0x20e,-0x233)+'s'],'duration':0x0};else{const _0x482b74=await this['queue'][_0x59a44b(-0x235,-0x247)]({'timeoutMs':_0x98f2fa?.[_0x1a4b70(0x378,0x365)]}),_0xa8d761=await this['queue'][_0x1a4b70(0x3a7,0x3b4)+_0x59a44b(-0x23f,-0x234)](),_0x29961f=[..._0x482b74['errors'],..._0xa8d761[_0x1a4b70(0x39d,0x39f)]];return _0x29961f['length']>0x0?this['recordFail'+_0x1a4b70(0x37c,0x39d)]():this[_0x59a44b(-0x216,-0x222)+_0x1a4b70(0x36d,0x353)](),{'pushed':_0x482b74['pushed'],'pulled':_0xa8d761[_0x1a4b70(0x375,0x350)],'conflicts':0x0,'errors':_0x29961f,'duration':Date[_0x59a44b(-0x228,-0x24a)]()-_0x1bec96};}}catch(_0x42cda4){this['recordFail'+_0x1a4b70(0x37c,0x392)]();throw _0x42cda4;}}async['pull'](){if(this[_0xd8a54f(-0x19,-0xc)+_0xd8a54f(0x10,0xf)]())return{'pushed':0x0,'pulled':0x0,'conflicts':0x0,'errors':[_0x474d52(0x17b,0x195)+_0xd8a54f(0xd,0x2e)+_0x474d52(0x18b,0x196)+_0x474d52(0x159,0x16f)+_0x474d52(0x188,0x18c)+'s'],'duration':0x0};function _0x474d52(_0x30b05b,_0x4394ed){return _0x264674(_0x4394ed,_0x30b05b- -0x237);}const _0x142db5=Date[_0xd8a54f(-0x6,0x3)](),_0x4d82f1={'pushed':0x0,'pulled':0x0,'conflicts':0x0,'errors':[],'duration':0x0};try{let _0x332f1e=0x0,_0x552bd2=!![];while(_0x552bd2){const _0x584cfa=await this[_0xd8a54f(-0xb,-0x19)][_0x474d52(0x13a,0x11b)+'es']({'limit':DEFAULT_PAGE_SIZE,'offset':_0x332f1e,'includeEmbedding':!![]});if(_0x584cfa['length']===0x0){_0x552bd2=![];break;}_0x584cfa[_0xd8a54f(-0x31,-0x28)]((_0x17bfa8,_0x30cf19)=>{const _0x21dd01=_0x17bfa8[_0x9178d3(0x419,0x3f0)]?0x1:0x0,_0xe80068=_0x30cf19[_0x2d9280(-0xfc,-0xf5)]?0x1:0x0;function _0x2d9280(_0x46ae6c,_0x4107a8){return _0xd8a54f(_0x46ae6c- -0x10e,_0x4107a8);}function _0x9178d3(_0x1691ae,_0x15db9f){return _0xd8a54f(_0x1691ae-0x407,_0x15db9f);}return _0x21dd01-_0xe80068;});for(const _0x2be163 of _0x584cfa){try{const _0x18ca1d=this['db']['findMemory'+_0xd8a54f(-0x2,0x9)](_0x2be163['id']);if(!_0x18ca1d){if(_0x474d52(0x140,0x130)!==_0xd8a54f(-0x2e,-0x22)){const _0x5b4af3=this['db']['createMemo'+'ry']({'content':_0x2be163[_0x474d52(0x189,0x162)],'category':mapCategory(_0x2be163[_0x474d52(0x153,0x17d)]),'tier':mapTier(_0x2be163[_0x474d52(0x139,0x120)]??_0x474d52(0x145,0x14d)),'tags':_0x2be163['tags']??[],'parentId':_0x2be163[_0x474d52(0x186,0x1ae)]??undefined,'chunkIndex':_0x2be163[_0x474d52(0x156,0x14d)+'x']??undefined,'chunkTotal':_0x2be163[_0xd8a54f(-0x32,-0x3d)+'l']??undefined,'qualityScore':_0x2be163[_0xd8a54f(-0x28,-0x6)+_0x474d52(0x163,0x14d)]??undefined});if(_0x2be163[_0x474d52(0x171,0x17d)+'nt']&&_0x2be163['access_cou'+'nt']>0x0){if('YAqNO'==='YAqNO')this['db'][_0xd8a54f(0x9,-0x1)+_0xd8a54f(-0x12,-0x2a)](_0x5b4af3['id'],_0x2be163[_0x474d52(0x171,0x164)+'nt']);else return{'pushed':0x0,'pulled':0x0,'conflicts':0x0,'errors':[_0x474d52(0x17b,0x18d)+_0xd8a54f(0xd,-0x16)+':\x20too\x20many'+_0x474d52(0x159,0x16b)+_0x474d52(0x188,0x17d)+'s'],'duration':0x0};}_0x2be163['embedding']&&_0x2be163[_0xd8a54f(0x1,0x25)]['length']>0x0&&this['db'][_0x474d52(0x15c,0x143)+_0x474d52(0x13b,0x15a)](_0x5b4af3['id'],_0x2be163['embedding']),this['db'][_0x474d52(0x18a,0x193)+_0xd8a54f(-0xf,-0x39)](_0x5b4af3['id'],_0x2be163['id'],'synced'),_0x4d82f1[_0x474d52(0x155,0x139)]++;}else{if(this[_0x474d52(0x16a,0x148)]<this['maxFailure'+'s'])return![];return _0x466c57[_0x474d52(0x16e,0x15d)]()-this[_0x474d52(0x148,0x154)+'eAt']<this[_0x474d52(0x154,0x12a)];}}else{const _0x22a987=new Date(_0x2be163[_0x474d52(0x178,0x177)]),_0x2d6f90=new Date(_0x18ca1d[_0xd8a54f(-0x2b,-0x13)]);if(_0x22a987>_0x2d6f90){if('jcISI'===_0x474d52(0x16d,0x182)){const _0x47f4c8=_0x551972[_0x474d52(0x186,0x1af)]?0x1:0x0,_0xc0813d=_0x293c82[_0x474d52(0x186,0x174)]?0x1:0x0;return _0x47f4c8-_0xc0813d;}else this['db'][_0xd8a54f(-0xc,-0x12)+'ry'](_0x18ca1d['id'],{'content':_0x2be163[_0x474d52(0x189,0x1a7)],'category':mapCategory(_0x2be163[_0x474d52(0x153,0x14e)]),'tier':mapTier(_0x2be163[_0xd8a54f(-0x3b,-0x35)]??_0x18ca1d[_0xd8a54f(-0x3b,-0x2c)]),'tags':_0x2be163[_0x474d52(0x174,0x17e)]??_0x18ca1d[_0x474d52(0x174,0x17e)],'qualityScore':_0x2be163[_0x474d52(0x14c,0x142)+_0xd8a54f(-0x11,-0xf)]??undefined}),_0x2be163['access_cou'+'nt']!==undefined&&this['db'][_0x474d52(0x17d,0x180)+'sCount'](_0x18ca1d['id'],_0x2be163[_0x474d52(0x171,0x181)+'nt']),_0x2be163['embedding']&&_0x2be163[_0x474d52(0x175,0x19e)][_0xd8a54f(-0x1c,-0x41)]>0x0&&this['db'][_0xd8a54f(-0x18,-0x1e)+'ing'](_0x18ca1d['id'],_0x2be163[_0x474d52(0x175,0x16c)]),this['db']['setSyncSta'+_0x474d52(0x165,0x14b)](_0x18ca1d['id'],_0x2be163['id'],_0x474d52(0x137,0x137)),_0x4d82f1['conflicts']++;}}}catch(_0x5562bf){_0x5562bf instanceof Error&&_0x4d82f1[_0xd8a54f(-0x5,-0x1e)]['push']('메모리\x20'+_0x2be163['id']+_0x474d52(0x160,0x16a)+_0x5562bf[_0xd8a54f(-0x27,-0x39)]);}}_0x584cfa[_0x474d52(0x158,0x174)]<DEFAULT_PAGE_SIZE?_0x552bd2=![]:_0x332f1e+=DEFAULT_PAGE_SIZE;}this[_0xd8a54f(0xc,-0x1a)+_0x474d52(0x13f,0x116)]();}catch(_0x13ffa1){this[_0x474d52(0x177,0x196)+_0x474d52(0x14e,0x14c)](),_0x13ffa1 instanceof Error&&_0x4d82f1[_0x474d52(0x16f,0x158)]['push'](_0x13ffa1[_0xd8a54f(-0x27,-0x31)]);}function _0xd8a54f(_0x4fb83f,_0x28eb1d){return _0x264674(_0x28eb1d,_0x4fb83f- -0x3ab);}return _0x4d82f1[_0x474d52(0x141,0x14d)]=Date[_0x474d52(0x16e,0x18e)]()-_0x142db5,_0x4d82f1;}async['getStatus'](){const _0x820ff0=this['queue'][_0x1046ca(-0x10f,-0x11d)+_0x35346e(0x64,0x6e)]();function _0x35346e(_0x2dc43e,_0x40b51c){return _0x264674(_0x2dc43e,_0x40b51c- -0x350);}let _0x3d517f=0x0;try{if(_0x35346e(0x5b,0x66)!==_0x1046ca(-0xd4,-0xb3))this['db']['saveEmbedd'+_0x35346e(0x25,0x22)](_0x395817['id'],_0x8e9fe5[_0x35346e(0x5f,0x5c)]);else{const _0x3ce60e=await this['client'][_0x1046ca(-0x119,-0x109)+'es']({'limit':0x2710}),_0x30d25d=this['db'][_0x35346e(0x4c,0x4d)+'emoryCount']();_0x3d517f=Math[_0x1046ca(-0xe7,-0xe9)](0x0,_0x3ce60e[_0x35346e(0x1f,0x3f)]-_0x30d25d);}}catch{}function _0x1046ca(_0x13348a,_0x4e886c){return _0x264674(_0x4e886c,_0x13348a- -0x48a);}const _0x2c27ec=this['db']['getLastSyn'+_0x35346e(0x6c,0x61)]();return{'pendingPush':_0x820ff0,'pendingPull':_0x3d517f,'lastSyncedAt':_0x2c27ec??undefined};}}