a2a-memory 0.12.51 → 0.12.52
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/adapters/anthropic.js +1 -1
- package/dist/chunking/chunker.js +1 -1
- package/dist/claude/sync.js +1 -1
- package/dist/cli/commands/add.js +1 -1
- package/dist/cli/commands/claude-sync.js +1 -1
- package/dist/cli/commands/cleanup.js +1 -1
- package/dist/cli/commands/config.js +1 -1
- package/dist/cli/commands/contextrank.js +1 -1
- package/dist/cli/commands/edit.js +1 -1
- package/dist/cli/commands/embed.js +1 -1
- package/dist/cli/commands/export.js +1 -1
- package/dist/cli/commands/extract.js +1 -1
- package/dist/cli/commands/health.js +1 -1
- package/dist/cli/commands/list.js +1 -1
- package/dist/cli/commands/migrate-chunks.js +1 -1
- package/dist/cli/commands/migrate-file-refs.js +1 -1
- package/dist/cli/commands/proficiency.js +1 -1
- package/dist/cli/commands/review.js +1 -1
- package/dist/cli/commands/rm.js +1 -1
- package/dist/cli/commands/search.js +1 -1
- package/dist/cli/commands/session-extract.js +1 -1
- package/dist/cli/commands/setup-wizard.js +1 -1
- package/dist/cli/commands/setup.js +1 -1
- package/dist/cli/commands/skill.js +1 -1
- package/dist/cli/commands/status.js +1 -1
- package/dist/cli/commands/sync.js +1 -1
- package/dist/cli/commands/team.js +1 -1
- package/dist/cli/commands/usage.js +1 -1
- package/dist/cli/index.js +1 -1
- package/dist/config/manager.js +1 -1
- package/dist/contextrank/edge-builder.js +1 -1
- package/dist/contextrank/rank-builder.js +1 -1
- package/dist/contextrank/signal-builder.js +1 -1
- package/dist/db/database.js +1 -1
- package/dist/db/usage-spool.js +1 -1
- package/dist/embedding/e5-provider.js +1 -1
- package/dist/embedding/index.js +1 -1
- package/dist/embedding/local-provider.js +1 -1
- package/dist/embedding/openai-provider.js +1 -1
- package/dist/embedding/quantization.js +1 -1
- package/dist/extraction/dedup-manager.js +1 -1
- package/dist/extraction/emotion-filter.js +1 -1
- package/dist/extraction/extractor.js +1 -1
- package/dist/extraction/file-reference.js +1 -1
- package/dist/extraction/filter.js +1 -1
- package/dist/extraction/scorer.js +1 -1
- package/dist/extraction/similarity.js +1 -1
- package/dist/hooks/client-factory.js +1 -1
- package/dist/hooks/post-tool-use.js +1 -1
- package/dist/hooks/pre-compact.js +1 -1
- package/dist/hooks/session-end.js +1 -1
- package/dist/hooks/session-start.js +1 -1
- package/dist/hooks/shared.js +1 -1
- package/dist/hooks/stop.js +1 -1
- package/dist/hooks/user-prompt-submit.js +1 -1
- package/dist/i18n/index.js +1 -1
- package/dist/i18n/messages.js +1 -1
- package/dist/index.js +1 -1
- package/dist/lifecycle/cleanup-scheduler.js +1 -1
- package/dist/lifecycle/cleanup.js +1 -1
- package/dist/lifecycle/consolidation.js +1 -1
- package/dist/lifecycle/contradiction.js +1 -1
- package/dist/lifecycle/embedding-backfill.js +1 -1
- package/dist/lifecycle/index.js +1 -1
- package/dist/lifecycle/injection-flush.js +1 -1
- package/dist/lifecycle/quality-scorer.js +1 -1
- package/dist/lifecycle/session-extract.js +1 -1
- package/dist/lifecycle/shadow-rebuild.js +1 -1
- package/dist/lifecycle/tiering.js +1 -1
- package/dist/llm/client.js +1 -1
- package/dist/llm/index.js +1 -1
- package/dist/proficiency/actr-engine.js +1 -1
- package/dist/proficiency/detection.js +1 -1
- package/dist/proficiency/index.js +1 -1
- package/dist/proficiency/tracker.js +1 -1
- package/dist/search/adaptive-router.js +1 -1
- package/dist/search/index.js +1 -1
- package/dist/search/injection-filter.js +1 -1
- package/dist/search/memoryrank-rerank.js +1 -1
- package/dist/search/ranker.js +1 -1
- package/dist/search/reranker.js +1 -1
- package/dist/session/parser.js +1 -1
- package/dist/skill/evaluator.js +1 -1
- package/dist/skill/index.js +1 -1
- package/dist/sync/client.js +1 -1
- package/dist/sync/encryption.js +1 -1
- package/dist/sync/index.js +1 -1
- package/dist/sync/queue.js +1 -1
- package/dist/sync/scheduler.js +1 -1
- package/dist/sync/synchronizer.js +1 -1
- package/dist/sync/team-synchronizer.js +1 -1
- package/dist/sync/vector-clock.js +1 -1
- package/dist/types/index.js +1 -1
- package/dist/utils/keychain.js +1 -1
- package/dist/utils/logger.js +1 -1
- package/dist/utils/test-isolation.js +1 -1
- package/package.json +1 -1
package/dist/db/usage-spool.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
(function(_0x20dc98,_0x2a715e){const _0x1cbe83=_0x20dc98();function _0x22aa39(_0x499a84,_0x38000c){return _0x2fe2(_0x499a84- -0x16f,_0x38000c);}function _0x4a10d9(_0x4b9737,_0x210703){return _0x2fe2(_0x4b9737-0x240,_0x210703);}while(!![]){try{const _0x420d6d=parseInt(_0x4a10d9(0x368,0x377))/0x1*(-parseInt(_0x22aa39(-0x57,-0x55))/0x2)+-parseInt(_0x4a10d9(0x348,0x344))/0x3*(-parseInt(_0x22aa39(-0x69,-0x64))/0x4)+parseInt(_0x4a10d9(0x351,0x34f))/0x5+-parseInt(_0x22aa39(-0x49,-0x51))/0x6+parseInt(_0x22aa39(-0x53,-0x43))/0x7+-parseInt(_0x4a10d9(0x34a,0x34e))/0x8*(parseInt(_0x22aa39(-0x55,-0x54))/0x9)+parseInt(_0x22aa39(-0x60,-0x64))/0xa*(-parseInt(_0x22aa39(-0x61,-0x6e))/0xb);if(_0x420d6d===_0x2a715e)break;else _0x1cbe83['push'](_0x1cbe83['shift']());}catch(_0xca38fd){_0x1cbe83['push'](_0x1cbe83['shift']());}}}(_0x2cd3,0xad1f2));import{existsSync,renameSync,readFileSync,unlinkSync,readdirSync}from'node:fs';import{homedir}from'node:os';function _0x210f88(_0x5be0e8,_0x3b6b6d){return _0x2fe2(_0x5be0e8-0x3c2,_0x3b6b6d);}function _0x2fe2(_0x4d7543,_0x4a56f1){_0x4d7543=_0x4d7543-0x102;const _0x2cd35c=_0x2cd3();let _0x2fe2c0=_0x2cd35c[_0x4d7543];if(_0x2fe2['XGpdJm']===undefined){var _0x4094b2=function(_0x5ae9f4){const _0x265061='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x16bc12='',_0xc5595e='';for(let _0x59d345=0x0,_0x5af6f9,_0x2712ff,_0x5e25d1=0x0;_0x2712ff=_0x5ae9f4['charAt'](_0x5e25d1++);~_0x2712ff&&(_0x5af6f9=_0x59d345%0x4?_0x5af6f9*0x40+_0x2712ff:_0x2712ff,_0x59d345++%0x4)?_0x16bc12+=String['fromCharCode'](0xff&_0x5af6f9>>(-0x2*_0x59d345&0x6)):0x0){_0x2712ff=_0x265061['indexOf'](_0x2712ff);}for(let _0x281403=0x0,_0x38f92a=_0x16bc12['length'];_0x281403<_0x38f92a;_0x281403++){_0xc5595e+='%'+('00'+_0x16bc12['charCodeAt'](_0x281403)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0xc5595e);};_0x2fe2['ifZyor']=_0x4094b2,_0x2fe2['JrPKPu']={},_0x2fe2['XGpdJm']=!![];}const _0x2dedab=_0x2cd35c[0x0],_0x3d52f6=_0x4d7543+_0x2dedab,_0x5c3597=_0x2fe2['JrPKPu'][_0x3d52f6];return!_0x5c3597?(_0x2fe2c0=_0x2fe2['ifZyor'](_0x2fe2c0),_0x2fe2['JrPKPu'][_0x3d52f6]=_0x2fe2c0):_0x2fe2c0=_0x5c3597,_0x2fe2c0;}import{join,dirname,basename}from'node:path';import{assertNotRealUserA2aPath}from'../utils/test-isolation.js';function _0x5cd5fb(_0x5b59b2,_0x1b88d8){return _0x2fe2(_0x1b88d8-0x39e,_0x5b59b2);}function _0x2cd3(){const _0x1920b6=['lMeYyq','z2v0','ChvZAa','otG1nZuWCNzkzMDL','A3jXt2u','nZeXzKjwrhnb','D0DAt28','oda4nZKXovnIwhr1AW','Bc5QC29UBa','CgfYC2u','C3rYAw5N','BgvUz3rO','B3rLswq','CMvWBgfJzq','z2uGC3bVB2W','DxrMoa','Dw5SAw5RihvZyq','ndq2nZu3nK5RzejjBq','vM9IuMO','mxPAv25ewa','B3j5swrcEvjLBq','rgfTAeK','C3rHCNrZv2L0Aa','DxnHz2uTC3bVBW','mJKYq3nKv3vJ','C3bSAxq','mJa1ndDXDfzZq3C','BwvTB3j5x2LK','nZG2ng94vLzjwa','CMvZB2X2zu1LBq','DhjPBq','BwnW','mZmXmxHOug9JAa','mJmYnZb1v0jAAfO','lNbYB2nLC3nPBG','ntm0nJmZnxjWvwjhBa','C2vHCMnOx2HPDa','CMvJB3jKvxnHzW','zuv2zw50CW'];_0x2cd3=function(){return _0x1920b6;};return _0x2cd3();}const DEFAULT_SPOOL_PATH=join(homedir(),_0x210f88(0x4d7,0x4db),_0x5cd5fb(0x496,0x4a3)+_0x210f88(0x4df,0x4e2));function normalizeTs(_0x5f47d8){if(typeof _0x5f47d8!==_0x592226(0x494,0x486)||_0x5f47d8[_0x592226(0x47e,0x487)]<0x13)return undefined;function _0x3d64b5(_0x20e557,_0x448f23){return _0x5cd5fb(_0x448f23,_0x20e557- -0xc3);}function _0x592226(_0x21cfba,_0x416d9b){return _0x5cd5fb(_0x21cfba,_0x416d9b- -0x37);}return _0x5f47d8[_0x592226(0x476,0x489)]('T','\x20')[_0x592226(0x498,0x489)](/Z$/,'')['slice'](0x0,0x13);}function processFile(_0x3460be,_0x30ebb9){function _0x900d6(_0x40e0e5,_0x1c1ae9){return _0x5cd5fb(_0x1c1ae9,_0x40e0e5- -0x3e);}assertNotRealUserA2aPath(_0x30ebb9,_0x5ea58d(0x44e,0x446)+_0x900d6(0x483,0x477));let _0x2aa5a4;try{_0x2aa5a4=readFileSync(_0x30ebb9,_0x5ea58d(0x44d,0x460));}catch{return 0x0;}try{_0x900d6(0x463,0x463)==='UROOC'?_0x32c19e+=_0x4f62be(_0x4b5378,_0x335aa5(_0x1d0a9e,_0x692fa7)):unlinkSync(_0x30ebb9);}catch{return 0x0;}const _0x2fee97=[];for(const _0x102747 of _0x2aa5a4[_0x5ea58d(0x430,0x421)]('\x0a')){const _0x328d16=_0x102747[_0x900d6(0x46c,0x480)]();if(!_0x328d16)continue;try{if(_0x900d6(0x47b,0x468)!=='qDDwX'){const _0x2df529=JSON[_0x900d6(0x47e,0x47c)](_0x328d16);if(typeof _0x2df529[_0x900d6(0x469,0x476)]!=='string'||!_0x2df529[_0x900d6(0x469,0x45f)])continue;const _0x556434=_0x3460be[_0x900d6(0x46b,0x45e)+_0x5ea58d(0x42b,0x43d)+_0x5ea58d(0x44a,0x457)](_0x2df529[_0x900d6(0x469,0x47a)])??_0x2df529[_0x900d6(0x469,0x478)];_0x2fee97[_0x5ea58d(0x440,0x43a)]({'memoryId':_0x556434,'channel':_0x5ea58d(0x436,0x442),'op':_0x2df529['op']===_0x900d6(0x476,0x473)?_0x900d6(0x476,0x47c):_0x5ea58d(0x43b,0x428),'sessionId':null,'createdAt':normalizeTs(_0x2df529['ts'])});}else for(const _0x22393f of _0x5d9e37(_0x4ef63c)){_0x22393f['startsWith'](_0x4d5057+(_0x900d6(0x470,0x464)+'g-'))&&(_0x1c9f62+=_0x2cbead(_0x128550,_0x2a992f(_0x5a6ddd,_0x22393f)));}}catch{}}function _0x5ea58d(_0x46956f,_0x24f89c){return _0x5cd5fb(_0x24f89c,_0x46956f- -0x75);}return _0x3460be[_0x5ea58d(0x43c,0x434)+_0x900d6(0x474,0x47c)](_0x2fee97),_0x2fee97['length'];}export function ingestUsageSpool(_0x32001b,_0x3fca31=DEFAULT_SPOOL_PATH){function _0x2d1dfc(_0x4f9b67,_0x4305db){return _0x210f88(_0x4f9b67- -0x6b,_0x4305db);}let _0x210533=0x0;const _0x15ae65=dirname(_0x3fca31);function _0x5829e0(_0x59ef9c,_0x154781){return _0x210f88(_0x154781- -0x75a,_0x59ef9c);}const _0xa89b15=basename(_0x3fca31);try{if(_0x2d1dfc(0x470,0x481)===_0x5829e0(-0x264,-0x271))return 0x0;else for(const _0x12e3d4 of readdirSync(_0x15ae65)){_0x12e3d4[_0x2d1dfc(0x45b,0x464)](_0xa89b15+(_0x2d1dfc(0x467,0x46a)+'g-'))&&(_0x210533+=processFile(_0x32001b,join(_0x15ae65,_0x12e3d4)));}}catch{}if(existsSync(_0x3fca31)){const _0x36b357=_0x3fca31+(_0x5829e0(-0x28d,-0x288)+'g-')+process['pid'];try{renameSync(_0x3fca31,_0x36b357),_0x210533+=processFile(_0x32001b,_0x36b357);}catch{}}return _0x210533;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
(function(_0x198154,_0x6494f8){const _0x54b751=_0x198154();function _0x2f4898(_0x35b0fd,_0x4b46f8){return _0x36a6(_0x35b0fd- -0x20d,_0x4b46f8);}function _0x2f6dc3(_0xcde7e1,_0x4291d2){return _0x36a6(_0x4291d2- -0xc3,_0xcde7e1);}while(!![]){try{const _0x76fb0a=parseInt(_0x2f4898(-0x60,-0x56))/0x1+-parseInt(_0x2f6dc3(0xe6,0xfa))/0x2*(parseInt(_0x2f6dc3(0xeb,0xe3))/0x3)+-parseInt(_0x2f6dc3(0xfe,0xef))/0x4*(parseInt(_0x2f6dc3(0xca,0xcf))/0x5)+parseInt(_0x2f6dc3(0x106,0xec))/0x6+-parseInt(_0x2f4898(-0x7a,-0x66))/0x7*(parseInt(_0x2f6dc3(0xef,0xe1))/0x8)+parseInt(_0x2f4898(-0x4e,-0x38))/0x9*(parseInt(_0x2f6dc3(0xc6,0xd7))/0xa)+parseInt(_0x2f4898(-0x78,-0x87))/0xb;if(_0x76fb0a===_0x6494f8)break;else _0x54b751['push'](_0x54b751['shift']());}catch(_0x37ecc5){_0x54b751['push'](_0x54b751['shift']());}}}(_0x2ed5,0x1c799));const MODEL_NAME=_0x5f38fc(0x40f,0x411)+_0x3c91cd(0x13c,0x149),DIMENSIONS=0x180;function _0x5f38fc(_0x10cb6f,_0xb20f7b){return _0x36a6(_0x10cb6f-0x272,_0xb20f7b);}let _pipeline=null,_loading=null;function _0x3c91cd(_0x3c987f,_0x569e22){return _0x36a6(_0x3c987f- -0x75,_0x569e22);}function _0x36a6(_0x56c117,_0x1c47bb){_0x56c117=_0x56c117-0x18f;const _0x2ed540=_0x2ed5();let _0x36a609=_0x2ed540[_0x56c117];if(_0x36a6['LrNfUM']===undefined){var _0x1b9d71=function(_0x23c892){const _0x22f9e1='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x4cdcb8='',_0x4e8a8a='';for(let _0x447e54=0x0,_0x2a3b45,_0x27406f,_0x5e8477=0x0;_0x27406f=_0x23c892['charAt'](_0x5e8477++);~_0x27406f&&(_0x2a3b45=_0x447e54%0x4?_0x2a3b45*0x40+_0x27406f:_0x27406f,_0x447e54++%0x4)?_0x4cdcb8+=String['fromCharCode'](0xff&_0x2a3b45>>(-0x2*_0x447e54&0x6)):0x0){_0x27406f=_0x22f9e1['indexOf'](_0x27406f);}for(let _0x164e59=0x0,_0x5479aa=_0x4cdcb8['length'];_0x164e59<_0x5479aa;_0x164e59++){_0x4e8a8a+='%'+('00'+_0x4cdcb8['charCodeAt'](_0x164e59)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x4e8a8a);};_0x36a6['jVqomZ']=_0x1b9d71,_0x36a6['pCMMzA']={},_0x36a6['LrNfUM']=!![];}const _0x2c5e2f=_0x2ed540[0x0],_0x3bc0e4=_0x56c117+_0x2c5e2f,_0x3f4d0d=_0x36a6['pCMMzA'][_0x3bc0e4];return!_0x3f4d0d?(_0x36a609=_0x36a6['jVqomZ'](_0x36a609),_0x36a6['pCMMzA'][_0x3bc0e4]=_0x36a609):_0x36a609=_0x3f4d0d,_0x36a609;}async function getPipeline(){if(_pipeline)return _pipeline;if(_loading)return _loading;return _loading=((async()=>{function _0x1fad03(_0x36bcee,_0x39bc9d){return _0x36a6(_0x39bc9d- -0x118,_0x36bcee);}function _0x3eaa77(_0x40a946,_0x40358b){return _0x36a6(_0x40358b- -0xc6,_0x40a946);}if(_0x3eaa77(0xbd,0xce)!==_0x1fad03(0x65,0x7c))this['dimensions']=_0x6ac57f||_0x1a2e23;else try{const _0x32cfbd=await Function(_0x3eaa77(0xeb,0xf5)+_0x3eaa77(0xe0,0xf8)+_0x3eaa77(0xb5,0xca)+_0x1fad03(0x86,0x8b)+'\x22)')();return _pipeline=await _0x32cfbd[_0x3eaa77(0xe2,0xd0)](_0x1fad03(0x8c,0xa2)+_0x1fad03(0x7d,0x90),MODEL_NAME,{'quantized':!![]}),_pipeline;}catch(_0x22483f){_loading=null;throw new Error(_0x1fad03(0x82,0x93)+'ng\x20provide'+_0x3eaa77(0xe0,0xd9)+_0x1fad03(0x7d,0x83)+'ace/transf'+_0x1fad03(0x84,0x91)+(_0x3eaa77(0xcb,0xda)+_0x3eaa77(0xbb,0xd1)+'\x20@huggingf'+_0x3eaa77(0xe6,0xf3)+_0x3eaa77(0xf7,0xe6))+('Original\x20e'+_0x1fad03(0x99,0x8d)+(_0x22483f instanceof Error?_0x22483f[_0x1fad03(0x9d,0xaa)]:String(_0x22483f))));}})()),_loading;}function normalize(_0x48d640){const _0x543ef0=Math['sqrt'](_0x48d640[_0x29d43c(0x326,0x30d)]((_0x292dc1,_0x3c2a4d)=>_0x292dc1+_0x3c2a4d*_0x3c2a4d,0x0));function _0x29d43c(_0x174aa0,_0x579bfd){return _0x3c91cd(_0x174aa0-0x203,_0x579bfd);}function _0x376198(_0x5a5050,_0x582590){return _0x3c91cd(_0x5a5050-0x295,_0x582590);}if(_0x543ef0===0x0)return _0x48d640;return _0x48d640[_0x376198(0x3d6,0x3cd)](_0x5acd23=>_0x5acd23/_0x543ef0);}function meanPool(_0x1ca09c){const _0x59cd08=_0x1ca09c[_0x18f0e3(0x258,0x244)]||_0x1ca09c;if(Array[_0x41f384(-0x226,-0x232)](_0x59cd08)||ArrayBuffer[_0x41f384(-0x24c,-0x23e)](_0x59cd08)){const _0x4f977d=Array[_0x41f384(-0x232,-0x243)](_0x59cd08),_0x55a8d0=_0x4f977d[_0x41f384(-0x21b,-0x231)]/DIMENSIONS;if(_0x55a8d0===0x0)return new Array(DIMENSIONS)[_0x18f0e3(0x24d,0x257)](0x0);const _0x460fbe=new Array(DIMENSIONS)[_0x18f0e3(0x24d,0x24b)](0x0);for(let _0x4ffbff=0x0;_0x4ffbff<_0x55a8d0;_0x4ffbff++){for(let _0x36ccc9=0x0;_0x36ccc9<DIMENSIONS;_0x36ccc9++){_0x460fbe[_0x36ccc9]+=_0x4f977d[_0x4ffbff*DIMENSIONS+_0x36ccc9];}}for(let _0x1f0489=0x0;_0x1f0489<DIMENSIONS;_0x1f0489++){if(_0x41f384(-0x23c,-0x235)!==_0x18f0e3(0x27c,0x286))_0x460fbe[_0x1f0489]/=_0x55a8d0;else for(let _0x401cea=0x0;_0x401cea<_0x263179;_0x401cea++){_0x25bf75[_0x401cea]+=_0x53afea[_0x269a23*_0x27ad86+_0x401cea];}}return _0x460fbe;}function _0x18f0e3(_0x12a827,_0x4d2a4d){return _0x5f38fc(_0x12a827- -0x1b6,_0x4d2a4d);}function _0x41f384(_0xb4cfaf,_0x4c6ad0){return _0x5f38fc(_0x4c6ad0- -0x657,_0xb4cfaf);}return Array['from'](_0x59cd08)[_0x41f384(-0x242,-0x256)](0x0,DIMENSIONS);}export class E5EmbeddingProvider{['dimensions'];constructor(_0x50a916){function _0x2ed75f(_0x541654,_0x4c86f9){return _0x5f38fc(_0x4c86f9- -0x25a,_0x541654);}this[_0x2ed75f(0x1d9,0x1d0)]=_0x50a916||DIMENSIONS;}async[_0x3c91cd(0x147,0x131)](_0x159709){function _0xe8dd9a(_0x4b1130,_0x13abdc){return _0x5f38fc(_0x4b1130- -0x251,_0x13abdc);}const _0x73a4e4=await getPipeline();function _0x411f18(_0xbb56be,_0x5da8bb){return _0x5f38fc(_0xbb56be- -0x40c,_0x5da8bb);}const _0x3771f8=_0x159709[_0x411f18(0x7,0xb)](_0x411f18(0x10,0x7))||_0x159709[_0x411f18(0x7,0x12)](_0xe8dd9a(0x1e2,0x1cd))?_0x159709:'query:\x20'+_0x159709,_0x5c94d0=await _0x73a4e4(_0x3771f8,{'pooling':_0x411f18(0x4,0x15),'normalize':!![]}),_0x3b99cf=Array[_0xe8dd9a(0x1c3,0x1bf)](_0x5c94d0[_0x411f18(0x2,0xa)]||_0x5c94d0);if(_0x3b99cf[_0x411f18(0x1a,0x3)]>=this['dimensions'])return _0x3b99cf[_0xe8dd9a(0x1b0,0x1bd)](0x0,this[_0x411f18(0x1e,0x36)]);const _0x4edcfc=meanPool(_0x5c94d0);return normalize(_0x4edcfc);}async['embedBatch'](_0x5db6f8){function _0x4dd32c(_0x39a014,_0xbdc853){return _0x5f38fc(_0xbdc853- -0x3c5,_0x39a014);}const _0x2569b3=[];for(const _0x38d2d5 of _0x5db6f8){_0x2569b3[_0x2bc5c8(0x509,0x51e)](await this[_0x2bc5c8(0x54c,0x541)](_0x38d2d5));}function _0x2bc5c8(_0x1d9160,_0xedd1f){return _0x5f38fc(_0xedd1f-0x113,_0x1d9160);}return _0x2569b3;}static async['isAvailabl'+'e'](){function _0x5c5d19(_0x3e51ae,_0x25f69f){return _0x5f38fc(_0x3e51ae-0xd5,_0x25f69f);}function _0xf1dbf7(_0xfd9691,_0x445991){return _0x5f38fc(_0xfd9691- -0x1d7,_0x445991);}try{return await Function(_0xf1dbf7(0x256,0x250)+'ort(\x22@hugg'+_0xf1dbf7(0x22b,0x221)+_0xf1dbf7(0x23e,0x247)+'\x22)')(),!![];}catch{return _0xf1dbf7(0x249,0x257)===_0x5c5d19(0x4f5,0x4ee)?![]:this[_0x5c5d19(0x4ff,0x513)];}}[_0x5f38fc(0x429,0x430)+_0x5f38fc(0x427,0x42f)](){return this['dimensions'];}}function _0x2ed5(){const _0x2668c1=['rtuGzw1IzwrKAq','B3jTzxjZcG','mtyWmZGXsNbUC0jL','DMTJBfm','nJu2ody4rvnJqLj2','Ee5fCha','C21HBgWTDJi','mJy0reHfANLe','AxnbCNjHEq','BgvUz3rO','B25Z','BwfW','z2v0rgLTzw5ZAq','zgLTzw5ZAw9UCW','ywnLl3rYyw5ZzG','zMvHDhvYzs1LEa','CMv0DxjUigLTCa','zw1Izwq','mtu4mti2Euf5qLDx','B3j0kcjaAhvNzW','owHSCK9zuW','r0LZtgK','CgfZC2fNztO','BwvZC2fNzq','C2XPy2u','Aw5NzMfJzs90CG','zMLSBa','mtuWntv2wg9tuM8','mtiYnZi0zhryEfvf','v1Pts0q','nZy5ody4yNPPDeLV','CgLWzwXPBMu','Cg0GAw5ZDgfSBa','CMvKDwnL','ChvZAa','mtqYmJm1mfftB0HSsq','iebODwDNAw5NzG','zgf0yq','wgvUB3zHl2u1lq','BwvHBG','CIbYzxf1AxjLCW','sw5ZDgfSBdOGBG','C3rHCNrZv2L0Aa','zNjVBq','yw5ZzM9YBwvYCW','ndbkA3vStfG','CNjVCJOG','m2npsvH5yq','AxnwAwv3','DhjHy3rPB24','B3jTzxjZlIa','CxvLCNK6'];_0x2ed5=function(){return _0x2668c1;};return _0x2ed5();}export function resetE5Pipeline(){_pipeline=null,_loading=null;}
|
package/dist/embedding/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x5e9725,_0x1966cd){function _0x24f484(_0x2f2a43,_0x38325e){return _0xc0f8(_0x38325e- -0xc0,_0x2f2a43);}var _0x1f1551=_0x5e9725();function _0x22bf53(_0x52a31d,_0x397457){return _0xc0f8(_0x52a31d- -0x91,_0x397457);}while(!![]){try{var _0x5267b1=parseInt(_0x22bf53(0x109,0x10e))/0x1+-parseInt(_0x22bf53(0x115,0x114))/0x2*(-parseInt(_0x22bf53(0x114,0x110))/0x3)+-parseInt(_0x24f484(0xe4,0xe0))/0x4+-parseInt(_0x24f484(0xd2,0xd7))/0x5+-parseInt(_0x24f484(0xe6,0xdd))/0x6+parseInt(_0x22bf53(0x113,0x115))/0x7+parseInt(_0x22bf53(0x110,0x10c))/0x8*(-parseInt(_0x22bf53(0x10d,0x10c))/0x9);if(_0x5267b1===_0x1966cd)break;else _0x1f1551['push'](_0x1f1551['shift']());}catch(_0x226007){_0x1f1551['push'](_0x1f1551['shift']());}}}(_0x4334,0x18e0b));import{LocalEmbeddingProvider}from'./local-provider.js';import{OpenAIEmbeddingProvider}from'./openai-provider.js';import{E5EmbeddingProvider}from'./e5-provider.js';function _0xc0f8(_0x4f7563,_0x3ec2f5){_0x4f7563=_0x4f7563-0x195;var _0x433481=_0x4334();var _0xc0f8c1=_0x433481[_0x4f7563];if(_0xc0f8['dLSTnQ']===undefined){var _0x33146e=function(_0x4e29f8){var _0x11dbde='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var _0x29d80d='',_0x26ee31='';for(var _0x43d5ff=0x0,_0x2acf71,_0x441326,_0x516b09=0x0;_0x441326=_0x4e29f8['charAt'](_0x516b09++);~_0x441326&&(_0x2acf71=_0x43d5ff%0x4?_0x2acf71*0x40+_0x441326:_0x441326,_0x43d5ff++%0x4)?_0x29d80d+=String['fromCharCode'](0xff&_0x2acf71>>(-0x2*_0x43d5ff&0x6)):0x0){_0x441326=_0x11dbde['indexOf'](_0x441326);}for(var _0x213eee=0x0,_0x35db6c=_0x29d80d['length'];_0x213eee<_0x35db6c;_0x213eee++){_0x26ee31+='%'+('00'+_0x29d80d['charCodeAt'](_0x213eee)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x26ee31);};_0xc0f8['vxnlkv']=_0x33146e,_0xc0f8['myEyKp']={},_0xc0f8['dLSTnQ']=!![];}var _0x506191=_0x433481[0x0],_0x171b5f=_0x4f7563+_0x506191,_0x2e51a0=_0xc0f8['myEyKp'][_0x171b5f];return!_0x2e51a0?(_0xc0f8c1=_0xc0f8['vxnlkv'](_0xc0f8c1),_0xc0f8['myEyKp'][_0x171b5f]=_0xc0f8c1):_0xc0f8c1=_0x2e51a0,_0xc0f8c1;}export function createEmbeddingProvider(_0x8fd201,_0x579522){if(_0x8fd201['provider']===_0x5d80e9(0x6a,0x6c))return new LocalEmbeddingProvider(_0x8fd201[_0x5d80e9(0x57,0x5f)]);if(_0x8fd201[_0x5d80e9(0x67,0x61)]==='e5')return new E5EmbeddingProvider(_0x8fd201[_0x27c2dc(0x31f,0x317)]||0x180);function _0x27c2dc(_0x47ef88,_0x2d7fcc){return _0xc0f8(_0x47ef88-0x189,_0x2d7fcc);}function _0x5d80e9(_0x47ca10,_0x1cffa8){return _0xc0f8(_0x1cffa8- -0x137,_0x47ca10);}if(_0x8fd201[_0x27c2dc(0x321,0x325)]===_0x27c2dc(0x32b,0x327)){if(!_0x579522?.[_0x5d80e9(0x69,0x64)])throw new Error(_0x27c2dc(0x325,0x32b)+'에는\x20LLM\x20API'+_0x5d80e9(0x63,0x5e)+'다');return new OpenAIEmbeddingProvider({'apiKey':_0x579522[_0x5d80e9(0x61,0x64)]});}throw new Error(_0x5d80e9(0x62,0x62)+'d\x20embeddin'+_0x5d80e9(0x71,0x68)+':\x20'+_0x8fd201[_0x5d80e9(0x60,0x61)]);}export{LocalEmbeddingProvider}from'./local-provider.js';function _0x4334(){var _0x132ca3=['zgLTzw5ZAw9UCW','mJG4mduWzxvnyw5g','ChjVDMLKzxi','vw5ZDxbWB3j0zq','oty3ndDbz1Pwq00','yxbPs2v5','t3bLBKfjioYEHoUYOoUuQq','mteZnZe4v3rrA014','ntC2yvvuC1vQ','zYbWCM92AwrLCG','nZG5odHyzKfrvLG','mti3mZzVEK9vCw4','B3bLBMfP','Bg9JywW','nZCWoty2yuLYDK1O','nJK5mdLpvvrOywy','ofjzANnwvG','ieTLEEQWGcdTLytSMPtTLANRI4G'];_0x4334=function(){return _0x132ca3;};return _0x4334();}export{OpenAIEmbeddingProvider}from'./openai-provider.js';export{E5EmbeddingProvider,resetE5Pipeline}from'./e5-provider.js';export{quantizeToFloat32,dequantizeFromFloat32,quantizeToInt8,dequantizeFromInt8}from'./quantization.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x14d860,_0xebb132){function _0x3875c0(_0x4c1dd3,_0x49fdf5){return _0x4906(_0x4c1dd3-0x7c,_0x49fdf5);}const _0x599b2f=_0x14d860();function _0x3484bf(_0x2b2d93,_0x172665){return _0x4906(_0x2b2d93-0x16a,_0x172665);}while(!![]){try{const _0x5d134b=-parseInt(_0x3875c0(0x213,0x231))/0x1*(parseInt(_0x3875c0(0x1f2,0x1d3))/0x2)+-parseInt(_0x3875c0(0x205,0x204))/0x3*(parseInt(_0x3484bf(0x2e6,0x2cb))/0x4)+parseInt(_0x3875c0(0x1f6,0x208))/0x5*(-parseInt(_0x3484bf(0x2db,0x2f0))/0x6)+-parseInt(_0x3484bf(0x302,0x306))/0x7+-parseInt(_0x3484bf(0x303,0x31f))/0x8+parseInt(_0x3875c0(0x1e8,0x1e2))/0x9*(parseInt(_0x3875c0(0x1f7,0x1f5))/0xa)+-parseInt(_0x3484bf(0x2f6,0x2d9))/0xb*(-parseInt(_0x3875c0(0x20c,0x1eb))/0xc);if(_0x5d134b===_0xebb132)break;else _0x599b2f['push'](_0x599b2f['shift']());}catch(_0xc43ea9){_0x599b2f['push'](_0x599b2f['shift']());}}}(_0x464f,0xa30f3));function _0x464f(){const _0x352071=['BxvZDa','DxbKyxrLq29YCa','ntGYnZDQuwreufO','nZqXotq0n1LSD25ysW','nti5mty4ofPRtfzetq','D2fZ','yMvPBMC','yMvLBG','zgLTzw5ZAw9UCW','7jwe64Ui64UK','zM9Y','C3fYDa','CMvKDwnL','yxjL','AwrMtwfW','zKfwCe8','zgvSzxrL','y29YChvZu2L6zq','y2HHCKnVzgvbDa','wu1JwKq','z2v0','yNv0','zg9LCW','BM9YBwfSAxPL','ntCXmJC1AxnqBfn1','AgfZ','EgH4twi','Bwf5','zMLSBa','mtu2A01KC0Xd','zw50CMLLCW','shriqvC','BgvUz3rO','y291Bgq','mJbLA2zWzve','t3jKzxi','DhPVCuC','y2fJAgvKvg9Rzq','nZy2nvbyEuXkta','mJeWC3zWufH3','mZa4ntqWofHqDuvfDG','rv9nqvG','yw5K','Aw11Ba','Dg9mB3DLCKnHCW','BML6zq','zMLSDgvY','C2HPzNq','ChvZAa','C2v0','C3bSAxq','zw1IzwrxAxrOqW','Agf2zq','m1zyufvcvq','D2vYzq','Bg9N','mJa5re9cr0LO','y2fU','zw1Izwq','C2HVDwXK','mtu0nZu0nefQu05Puq','DgHL','B3jWDxm','BwfW','Dg9Rzw5dywnOzq'];_0x464f=function(){return _0x352071;};return _0x464f();}function _0x46ec01(_0x205384,_0x39982d){return _0x4906(_0x205384- -0x35a,_0x39982d);}function _0x1e530a(_0x397650,_0x2ec955){return _0x4906(_0x2ec955- -0x239,_0x397650);}function hashString(_0xa629f,_0x3e286c=0x0){function _0x4b5c66(_0x3ea9e7,_0x530abf){return _0x4906(_0x530abf-0x2be,_0x3ea9e7);}let _0x116711=_0x3e286c;function _0x2e168d(_0x512550,_0x5f306b){return _0x4906(_0x512550- -0x1c1,_0x5f306b);}for(let _0x232472=0x0;_0x232472<_0xa629f[_0x2e168d(-0x4d,-0x3e)];_0x232472++){_0x116711=Math[_0x2e168d(-0x42,-0x26)](_0x116711^_0xa629f[_0x4b5c66(0x486,0x465)](_0x232472),0x9e3779b1);}return((_0x116711^_0x116711>>>0x10)>>>0x0)%0x7fffffff;}const _hashCache=new Map();function _0x4906(_0xb4e4d7,_0xd92252){_0xb4e4d7=_0xb4e4d7-0x16c;const _0x464fee=_0x464f();let _0x490680=_0x464fee[_0xb4e4d7];if(_0x4906['dLwdfK']===undefined){var _0x46756e=function(_0x1358b6){const _0x5e7cec='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0xb94ff1='',_0x5d6ddc='';for(let _0x26d6b7=0x0,_0x164005,_0x4ec475,_0x24e5dd=0x0;_0x4ec475=_0x1358b6['charAt'](_0x24e5dd++);~_0x4ec475&&(_0x164005=_0x26d6b7%0x4?_0x164005*0x40+_0x4ec475:_0x4ec475,_0x26d6b7++%0x4)?_0xb94ff1+=String['fromCharCode'](0xff&_0x164005>>(-0x2*_0x26d6b7&0x6)):0x0){_0x4ec475=_0x5e7cec['indexOf'](_0x4ec475);}for(let _0x11c108=0x0,_0x590334=_0xb94ff1['length'];_0x11c108<_0x590334;_0x11c108++){_0x5d6ddc+='%'+('00'+_0xb94ff1['charCodeAt'](_0x11c108)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x5d6ddc);};_0x4906['KKnXio']=_0x46756e,_0x4906['TvdIbi']={},_0x4906['dLwdfK']=!![];}const _0x8f45a9=_0x464fee[0x0],_0x159990=_0xb4e4d7+_0x8f45a9,_0x56943c=_0x4906['TvdIbi'][_0x159990];return!_0x56943c?(_0x490680=_0x4906['KKnXio'](_0x490680),_0x4906['TvdIbi'][_0x159990]=_0x490680):_0x490680=_0x56943c,_0x490680;}function cachedHashString(_0x3b880e,_0x3d6196=0x0){const _0x4b0c5d=_0x3b880e+':'+_0x3d6196;function _0x3423b4(_0x36cb53,_0x4ec0bf){return _0x4906(_0x4ec0bf- -0x24e,_0x36cb53);}let _0x41d347=_hashCache[_0x3423b4(-0xa0,-0xa5)](_0x4b0c5d);function _0x1b298e(_0x1d35c7,_0x383ce4){return _0x4906(_0x1d35c7-0x343,_0x383ce4);}return _0x41d347===undefined&&(_0x41d347=hashString(_0x3b880e,_0x3d6196),_hashCache[_0x3423b4(-0xd0,-0xc9)](_0x4b0c5d,_0x41d347)),_0x41d347;}const STOPWORDS=new Set([_0x46ec01(-0x1c9,-0x1ca),'a','an',_0x1e530a(-0xd3,-0xbb),'or',_0x1e530a(-0x95,-0x8f),'in','on','at','to',_0x1e530a(-0x9a,-0x9a),'of','with','is',_0x1e530a(-0x84,-0x97),_0x1e530a(-0x7e,-0x9f),_0x46ec01(-0x1d0,-0x1cf),'be',_0x46ec01(-0x1be,-0x1d3),_0x46ec01(-0x1bf,-0x1c4),_0x1e530a(-0xc1,-0xb1),'has','had','do',_0x1e530a(-0x92,-0x8e),'did','will','would',_0x1e530a(-0xb6,-0xaa),_0x1e530a(-0x9d,-0xac),_0x46ec01(-0x1e5,-0x1d3),_0x1e530a(-0xda,-0xca),'might',_0x46ec01(-0x1c5,-0x1c5),'shall','이','그','저','것','수','등','및','또는','하다','있다','없다','되다','이다',_0x1e530a(-0xa5,-0x9b),'의','가','을','를','에','에서','로','으로','와','과','도','만','까지']);function tokenize(_0x3207b0){function _0x527edb(_0xfa6820,_0x250da7){return _0x1e530a(_0x250da7,_0xfa6820-0x198);}function _0x51a3b6(_0x34fdb3,_0x292dbe){return _0x1e530a(_0x34fdb3,_0x292dbe-0x448);}return _0x3207b0[_0x527edb(0xdf,0xe2)+'e']()[_0x51a3b6(0x3b2,0x395)](/[\s\p{P}]+/u)[_0x51a3b6(0x3a7,0x391)](_0x544765=>_0x544765[_0x51a3b6(0x383,0x383)]>0x1&&!STOPWORDS[_0x527edb(0xcc,0xc7)](_0x544765));}function computeTF(_0x32770e){const _0x39dc3f=new Map();for(const _0x14faad of _0x32770e){_0x39dc3f['set'](_0x14faad,(_0x39dc3f[_0x29c791(0xa6,0x9f)](_0x14faad)??0x0)+0x1);}function _0x29c791(_0x49935f,_0x40ce31){return _0x46ec01(_0x40ce31-0x250,_0x49935f);}const _0x10d357=_0x32770e[_0x32db23(0x5b,0x7b)];function _0x32db23(_0xfa8095,_0x5b48db){return _0x46ec01(_0x5b48db-0x261,_0xfa8095);}if(_0x10d357>0x0)for(const [_0x481da2,_0x28a4f9]of _0x39dc3f[_0x32db23(0x7a,0x79)]()){_0x32db23(0x74,0x75)!=='weCwx'?_0x39dc3f[_0x32db23(0x82,0x8c)](_0x481da2,_0x28a4f9/_0x10d357):this[_0x32db23(0x97,0xa4)]=_0x5829da;}return _0x39dc3f;}export class LocalEmbeddingProvider{[_0x46ec01(-0x1b7,-0x1bc)]=new Map();[_0x46ec01(-0x1bd,-0x1db)];[_0x1e530a(-0x8e,-0x93)]=0x0;[_0x46ec01(-0x1c6,-0x1cd)]=new Map();[_0x46ec01(-0x1c6,-0x1de)+_0x1e530a(-0xc1,-0xc2)]=[];['TOKEN_CACH'+_0x1e530a(-0xd0,-0xbc)]=0x1f4;constructor(_0x110ff1=0x40){function _0x7d361e(_0x11f4a1,_0x30c61e){return _0x46ec01(_0x30c61e-0x2f2,_0x11f4a1);}this[_0x7d361e(0x13c,0x135)]=_0x110ff1;}[_0x1e530a(-0xc9,-0xc0)+_0x46ec01(-0x1d9,-0x1df)](_0x402573){const _0x1b9df7=this[_0x554312(-0x9f,-0xbb)][_0x333504(0x1b5,0x1c6)](_0x402573);if(_0x1b9df7)return _0x1b9df7;function _0x333504(_0x490d6e,_0x19b6ac){return _0x46ec01(_0x19b6ac-0x377,_0x490d6e);}const _0x1668b8=tokenize(_0x402573);this['tokenCache'][_0x333504(0x1c2,0x1a2)](_0x402573,_0x1668b8),this['tokenCache'+_0x554312(-0xbc,-0xbf)][_0x333504(0x18f,0x1a1)](_0x402573);function _0x554312(_0x2b766b,_0x5c278b){return _0x46ec01(_0x2b766b-0x127,_0x5c278b);}if(this['tokenCache'+'Order']['length']>this['TOKEN_CACH'+_0x554312(-0xb6,-0xb0)]){if(_0x333504(0x1a1,0x195)===_0x333504(0x1d5,0x1c1)){const _0x20f178=this['tokenCache'+_0x554312(-0xbc,-0xa1)][_0x554312(-0xb0,-0xc5)]();this[_0x333504(0x1b0,0x1b1)][_0x333504(0x1a4,0x1c2)](_0x20f178);}else{const _0x55584f=this[_0x554312(-0x9f,-0xb5)+_0x333504(0x1a4,0x194)][_0x554312(-0xb0,-0x90)]();this['tokenCache'][_0x554312(-0x8e,-0xa2)](_0x55584f);}}return _0x1668b8;}[_0x46ec01(-0x1c4,-0x1cd)+'us'](_0x7dd44d){function _0xbf1386(_0x1774fa,_0x421dde){return _0x46ec01(_0x421dde-0x552,_0x1774fa);}this[_0x322930(0x583,0x59e)]=_0x7dd44d[_0x322930(0x551,0x54c)];if(_0x7dd44d[_0xbf1386(0x388,0x36c)]===0x0)return;const _0x55217d=new Map();for(const _0x123b87 of _0x7dd44d){const _0x1b41f4=new Set(tokenize(_0x123b87));for(const _0x16f49a of _0x1b41f4){_0x55217d[_0xbf1386(0x365,0x37d)](_0x16f49a,(_0x55217d[_0x322930(0x586,0x56b)](_0x16f49a)??0x0)+0x1);}}function _0x322930(_0x2a4d98,_0x41904e){return _0x46ec01(_0x2a4d98-0x737,_0x41904e);}this[_0xbf1386(0x3a2,0x39b)]['clear']();for(const [_0x2b5d14,_0x5adf96]of _0x55217d[_0x322930(0x54f,0x554)]()){if(_0xbf1386(0x35c,0x36b)===_0x322930(0x550,0x548))this['idfMap'][_0x322930(0x562,0x55e)](_0x2b5d14,Math[_0x322930(0x568,0x54d)](this['corpusSize']/_0x5adf96));else{const _0x28e53b=new _0x598b03();for(const _0x45a678 of _0x15ad4d){_0x28e53b['set'](_0x45a678,(_0x28e53b[_0x322930(0x586,0x5a5)](_0x45a678)??0x0)+0x1);}const _0x106530=_0x2f264b[_0x322930(0x551,0x55e)];if(_0x106530>0x0)for(const [_0x976e2a,_0x24ea24]of _0x28e53b['entries']()){_0x28e53b[_0xbf1386(0x39c,0x37d)](_0x976e2a,_0x24ea24/_0x106530);}return _0x28e53b;}}}[_0x1e530a(-0xa8,-0xab)](_0x38a3cb){const _0x4e2beb=this['cachedToke'+_0x4b392b(0x16b,0x167)](_0x38a3cb);if(_0x4e2beb[_0x353625(0x325,0x32a)]===0x0)return new Array(this[_0x4b392b(0x187,0x171)])[_0x353625(0x33b,0x326)](0x0);const _0x37413a=computeTF(_0x4e2beb),_0x4a8ee2=new Array(this['dimensions'])[_0x4b392b(0x15a,0x144)](0x0);function _0x353625(_0x25f4ec,_0x3acd8e){return _0x46ec01(_0x3acd8e-0x510,_0x25f4ec);}function _0x4b392b(_0x5a27aa,_0x56c3fb){return _0x46ec01(_0x5a27aa-0x344,_0x56c3fb);}for(const [_0x166da0,_0x47a843]of _0x37413a[_0x4b392b(0x15c,0x153)]()){const _0x412bab=this[_0x353625(0x36e,0x359)][_0x353625(0x36c,0x35f)](_0x166da0)??0x1,_0x4c4518=_0x47a843*_0x412bab,_0x4e0617=cachedHashString(_0x166da0)%this[_0x4b392b(0x187,0x191)];_0x4a8ee2[_0x4e0617]+=_0x4c4518;}return this['normalize'](_0x4a8ee2);}[_0x46ec01(-0x1d3,-0x1ea)+_0x1e530a(-0xb4,-0xa7)](_0x1078cc,_0x1aab2b){function _0x2a0e31(_0x424f42,_0x19d238){return _0x1e530a(_0x424f42,_0x19d238-0x58c);}function _0x3d4575(_0x3d54b0,_0x16dc08){return _0x1e530a(_0x16dc08,_0x3d54b0-0x330);}if(_0x1aab2b&&_0x1aab2b[_0x3d4575(0x26b,0x268)]>0x0){if('YMcZD'!==_0x2a0e31(0x50c,0x4fb)){const _0x2ceeed=new _0x51ad51(_0x1bb7b7(_0x4b7b5b));for(const _0x23ea6a of _0x2ceeed){_0x2c9d18[_0x3d4575(0x27c,0x278)](_0x23ea6a,(_0x22b401[_0x3d4575(0x2a0,0x2b1)](_0x23ea6a)??0x0)+0x1);}}else this[_0x3d4575(0x28d,0x26c)+'us'](_0x1aab2b);}return this[_0x3d4575(0x285,0x288)](_0x1078cc);}['embedBatch'](_0x5215c1){function _0x9dc92d(_0x32a82e,_0xfc575d){return _0x1e530a(_0x32a82e,_0xfc575d-0x1ae);}return _0x5215c1[_0x9dc92d(0xf5,0x108)](_0xab5d89=>this['embed'](_0xab5d89));}[_0x46ec01(-0x1ae,-0x1c0)](_0x461717){function _0x2d4f00(_0x2dc423,_0x3df0dc){return _0x46ec01(_0x2dc423-0x60c,_0x3df0dc);}const _0x4e391e=Math[_0x2d4f00(0x452,0x468)](_0x461717[_0x2d4f00(0x453,0x455)]((_0x5343e3,_0xba87e1)=>_0x5343e3+_0xba87e1*_0xba87e1,0x0));function _0x815aaf(_0x185475,_0x407547){return _0x46ec01(_0x407547-0xa2,_0x185475);}if(_0x4e391e===0x0)return _0x461717;return _0x461717[_0x815aaf(-0x12e,-0x125)](_0x3e8e4c=>_0x3e8e4c/_0x4e391e);}}
|
|
1
|
+
(function(_0x5d8613,_0xdce839){const _0x2ae99e=_0x5d8613();function _0x2ca9ed(_0x404cad,_0x3aa93f){return _0x456f(_0x404cad-0xc2,_0x3aa93f);}function _0x3b8b1f(_0x116945,_0x35b182){return _0x456f(_0x116945-0x2ab,_0x35b182);}while(!![]){try{const _0x557201=parseInt(_0x2ca9ed(0x2b3,0x296))/0x1+parseInt(_0x3b8b1f(0x49b,0x47e))/0x2+-parseInt(_0x2ca9ed(0x2b7,0x29e))/0x3+parseInt(_0x3b8b1f(0x47c,0x46d))/0x4*(parseInt(_0x2ca9ed(0x2b8,0x2bd))/0x5)+-parseInt(_0x2ca9ed(0x2b4,0x2d3))/0x6*(parseInt(_0x2ca9ed(0x29d,0x2a3))/0x7)+parseInt(_0x2ca9ed(0x2af,0x2c6))/0x8+-parseInt(_0x3b8b1f(0x4ab,0x4ba))/0x9;if(_0x557201===_0xdce839)break;else _0x2ae99e['push'](_0x2ae99e['shift']());}catch(_0x207de5){_0x2ae99e['push'](_0x2ae99e['shift']());}}}(_0x66ee,0x240f4));function hashString(_0x7ec33e,_0x3f118e=0x0){let _0xfe83bb=_0x3f118e;function _0x107e64(_0x2102a7,_0x396805){return _0x456f(_0x396805- -0x258,_0x2102a7);}function _0x56e578(_0x4e417f,_0x414329){return _0x456f(_0x414329-0x1dc,_0x4e417f);}for(let _0x286faa=0x0;_0x286faa<_0x7ec33e[_0x56e578(0x3a7,0x3b4)];_0x286faa++){_0xfe83bb=Math['imul'](_0xfe83bb^_0x7ec33e[_0x56e578(0x3c6,0x3a8)](_0x286faa),0x9e3779b1);}return((_0xfe83bb^_0xfe83bb>>>0x10)>>>0x0)%0x7fffffff;}const _hashCache=new Map();function _0x66ee(){const _0x48f849=['rv9nqvG','ChvZAa','yxjL','yNv0','AgfZ','zMLSDgvY','q3P4ve8','zg9LCW','DxbKyxrLq29YCa','zw1IzwrcyxrJAa','C3fYDa','mtC1mJq4ofHjA0fgEG','Aw11Ba','ve9lru5Fq0fdsa','ndm3nJKWB1fxEMT2','mJyXmtKXAwjPsLr6','mZu0rw5lAeXN','C3bSAxq','Dg9mB3DLCKnHCW','nJm0mdm4DNHUqNvf','mtCWnJbJvhnos1m','C2v0','D2LSBa','C2HPzNq','Bg9N','D291Bgq','BwfW','Bwf5','s25dA0O','AgfK','mJa5mJaZmKDZA1rpqW','BML6zq','CMvKDwnL','D2vYzq','zw50CMLLCW','AwrMtwfW','t3jKzxi','DgHL','BxvZDa','B3jWDxm','BwLNAhq','y2HHCKnVzgvbDa','zgLK','y29YChvZu2L6zq','y2fJAgvKvg9Rzq','zw1IzwrxAxrOqW','mtyWzvHgvg1v','C2HVDwXK','wgnlD2W','zw1Izwq','z2v0','yMvPBMC','zMLSBa','BgvUz3rO','q3brAhe','zgvSzxrL','mJG5ntLUwNHfyK8','7jwe64Ui64UK','y291Bgq','BM9YBwfSAxPL','Dg9Rzw5dywnOzq','zgLTzw5ZAw9UCW','D2fZ'];_0x66ee=function(){return _0x48f849;};return _0x66ee();}function _0x456f(_0x223068,_0x809924){_0x223068=_0x223068-0x1c8;const _0x66eeb0=_0x66ee();let _0x456f18=_0x66eeb0[_0x223068];if(_0x456f['wHyRoS']===undefined){var _0xb28448=function(_0xe117cf){const _0x140296='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x3b693d='',_0x32e0d2='';for(let _0x13ffa1=0x0,_0x58c89e,_0x2fd05f,_0x51b835=0x0;_0x2fd05f=_0xe117cf['charAt'](_0x51b835++);~_0x2fd05f&&(_0x58c89e=_0x13ffa1%0x4?_0x58c89e*0x40+_0x2fd05f:_0x2fd05f,_0x13ffa1++%0x4)?_0x3b693d+=String['fromCharCode'](0xff&_0x58c89e>>(-0x2*_0x13ffa1&0x6)):0x0){_0x2fd05f=_0x140296['indexOf'](_0x2fd05f);}for(let _0x265356=0x0,_0x307475=_0x3b693d['length'];_0x265356<_0x307475;_0x265356++){_0x32e0d2+='%'+('00'+_0x3b693d['charCodeAt'](_0x265356)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x32e0d2);};_0x456f['uRpRlx']=_0xb28448,_0x456f['CleQSj']={},_0x456f['wHyRoS']=!![];}const _0x5a2851=_0x66eeb0[0x0],_0x346e6c=_0x223068+_0x5a2851,_0x23c0cc=_0x456f['CleQSj'][_0x346e6c];return!_0x23c0cc?(_0x456f18=_0x456f['uRpRlx'](_0x456f18),_0x456f['CleQSj'][_0x346e6c]=_0x456f18):_0x456f18=_0x23c0cc,_0x456f18;}function cachedHashString(_0x1cae5d,_0x11d8ec=0x0){const _0x391b8a=_0x1cae5d+':'+_0x11d8ec;let _0x32b07d=_hashCache[_0x2880f4(-0x110,-0x120)](_0x391b8a);_0x32b07d===undefined&&(_0x32b07d=hashString(_0x1cae5d,_0x11d8ec),_hashCache[_0x151926(0x12,0x16)](_0x391b8a,_0x32b07d));function _0x2880f4(_0x6962b9,_0x4a763b){return _0x456f(_0x6962b9- -0x2e5,_0x4a763b);}function _0x151926(_0x5c5f6f,_0x1ffa45){return _0x456f(_0x1ffa45- -0x1e1,_0x5c5f6f);}return _0x32b07d;}function _0x547a64(_0x5ced37,_0x4e477f){return _0x456f(_0x4e477f-0x9f,_0x5ced37);}function _0x291ae2(_0x4ef803,_0x22dad4){return _0x456f(_0x22dad4- -0x27c,_0x4ef803);}const STOPWORDS=new Set([_0x547a64(0x252,0x267),'a','an','and','or',_0x291ae2(-0x88,-0x97),'in','on','at','to','for','of','with','is',_0x547a64(0x298,0x283),_0x547a64(0x29b,0x280),_0x291ae2(-0x97,-0x79),'be','been',_0x547a64(0x27f,0x275),'have',_0x547a64(0x28c,0x285),_0x291ae2(-0x93,-0x7d),'do',_0x291ae2(-0x8e,-0x93),_0x291ae2(-0xc5,-0xaf),_0x547a64(0x2ae,0x297),_0x291ae2(-0x87,-0x81),_0x547a64(0x253,0x271),'can',_0x547a64(0x26b,0x27c),_0x547a64(0x2a7,0x29c),_0x547a64(0x277,0x26a),_0x291ae2(-0xad,-0xb3),'shall','이','그','저','것','수','등','및','또는','하다','있다','없다','되다','이다',_0x291ae2(-0xb3,-0xa0),'의','가','을','를','에','에서','로','으로','와','과','도','만','까지']);function tokenize(_0x32b287){function _0x992c0c(_0x13bc42,_0x2a1076){return _0x291ae2(_0x13bc42,_0x2a1076-0x45b);}function _0x41d26e(_0xbdce10,_0x2eaa52){return _0x291ae2(_0x2eaa52,_0xbdce10-0x386);}return _0x32b287[_0x992c0c(0x3cb,0x3d3)+'e']()[_0x992c0c(0x3bd,0x3d2)](/[\s\p{P}]+/u)[_0x41d26e(0x2f1,0x2ef)](_0xd94c95=>_0xd94c95[_0x992c0c(0x3b1,0x3b7)]>0x1&&!STOPWORDS[_0x41d26e(0x2f0,0x304)](_0xd94c95));}function computeTF(_0x36df0e){function _0x5dc543(_0x279682,_0x34344c){return _0x291ae2(_0x279682,_0x34344c-0x5ab);}const _0x4e839a=new Map();for(const _0x4680e9 of _0x36df0e){_0x4e839a['set'](_0x4680e9,(_0x4e839a['get'](_0x4680e9)??0x0)+0x1);}function _0x117c84(_0x52020e,_0x225c11){return _0x291ae2(_0x52020e,_0x225c11-0x631);}const _0xb4fc42=_0x36df0e[_0x117c84(0x58d,0x58d)];if(_0xb4fc42>0x0)for(const [_0x1aae5f,_0x408b57]of _0x4e839a[_0x5dc543(0x542,0x533)]()){_0x4e839a[_0x117c84(0x5b3,0x5ac)](_0x1aae5f,_0x408b57/_0xb4fc42);}return _0x4e839a;}export class LocalEmbeddingProvider{[_0x547a64(0x2a9,0x2a4)]=new Map();['dimensions'];[_0x547a64(0x261,0x26d)]=0x0;['tokenCache']=new Map();[_0x547a64(0x274,0x27e)+_0x291ae2(-0x78,-0x76)]=[];[_0x291ae2(-0xa0,-0x8d)+_0x291ae2(-0x91,-0x9a)]=0x1f4;constructor(_0x49ac03=0x40){function _0x4e2628(_0x3fa432,_0x3ef316){return _0x547a64(_0x3ef316,_0x3fa432- -0x45);}this[_0x4e2628(0x23a,0x255)]=_0x49ac03;}['cachedToke'+_0x547a64(0x2a2,0x2a0)](_0x3a4dc5){function _0x595b14(_0x464eaf,_0x1204fe){return _0x291ae2(_0x1204fe,_0x464eaf-0x21a);}const _0x1392b3=this[_0x595b14(0x17d,0x16b)][_0x1fa1f9(-0x7c,-0x93)](_0x3a4dc5);if(_0x1392b3)return _0x1392b3;const _0x45e65c=tokenize(_0x3a4dc5);this[_0x595b14(0x17d,0x15e)][_0x1fa1f9(-0x5a,-0x4f)](_0x3a4dc5,_0x45e65c);function _0x1fa1f9(_0x267b3b,_0xdef439){return _0x291ae2(_0xdef439,_0x267b3b-0x2b);}this[_0x595b14(0x17d,0x16f)+_0x1fa1f9(-0x4b,-0x51)][_0x595b14(0x181,0x19d)](_0x3a4dc5);if(this[_0x595b14(0x17d,0x198)+_0x1fa1f9(-0x4b,-0x37)][_0x595b14(0x176,0x175)]>this[_0x1fa1f9(-0x62,-0x5e)+'E_MAX']){const _0x4f8d2f=this[_0x595b14(0x17d,0x173)+_0x595b14(0x1a4,0x1ab)][_0x1fa1f9(-0x58,-0x42)]();this[_0x595b14(0x17d,0x186)][_0x595b14(0x178,0x162)](_0x4f8d2f);}return _0x45e65c;}[_0x547a64(0x276,0x289)+'us'](_0x33ae0f){function _0x531513(_0x256478,_0x3eb22c){return _0x547a64(_0x256478,_0x3eb22c- -0x118);}this[_0x531513(0x159,0x155)]=_0x33ae0f['length'];if(_0x33ae0f[_0x531513(0x14f,0x15f)]===0x0)return;const _0x35e89e=new Map();for(const _0x32b104 of _0x33ae0f){const _0x1fc91e=new Set(tokenize(_0x32b104));for(const _0x1ce13e of _0x1fc91e){_0x25c81a(0x5bc,0x5ad)===_0x531513(0x18e,0x185)?_0x321511[_0x25c81a(0x5e3,0x5cb)](_0x2454da,(_0x525a81['get'](_0x537196)??0x0)+0x1):_0x35e89e[_0x531513(0x170,0x17e)](_0x1ce13e,(_0x35e89e['get'](_0x1ce13e)??0x0)+0x1);}}function _0x25c81a(_0x105d2c,_0x28768b){return _0x547a64(_0x105d2c,_0x28768b-0x335);}this['idfMap']['clear']();for(const [_0x519e49,_0x4cb0dc]of _0x35e89e['entries']()){this['idfMap'][_0x531513(0x17a,0x17e)](_0x519e49,Math[_0x531513(0x19d,0x181)](this[_0x25c81a(0x599,0x5a2)]/_0x4cb0dc));}}[_0x547a64(0x28d,0x273)](_0x5d4784){function _0x3b37af(_0x599114,_0x3d6a1e){return _0x547a64(_0x3d6a1e,_0x599114- -0x3ff);}const _0x1f4070=this[_0x3b37af(-0x191,-0x188)+_0x71b42f(0x54d,0x52f)](_0x5d4784);function _0x71b42f(_0xec3d59,_0x442830){return _0x547a64(_0x442830,_0xec3d59-0x2ad);}if(_0x1f4070[_0x71b42f(0x524,0x510)]===0x0){if(_0x3b37af(-0x18d,-0x1ab)!==_0x71b42f(0x534,0x517))return new Array(this[_0x71b42f(0x52c,0x518)])['fill'](0x0);else _0x28bcf4=_0x346086[_0x3b37af(-0x172,-0x160)](_0x4fe009^_0x195437[_0x3b37af(-0x194,-0x185)](_0x4cf787),0x9e3779b1);}const _0x59fd9b=computeTF(_0x1f4070),_0x1ae6ec=new Array(this[_0x71b42f(0x52c,0x523)])[_0x71b42f(0x523,0x523)](0x0);for(const [_0x54d174,_0x55d121]of _0x59fd9b[_0x3b37af(-0x15c,-0x15e)]()){const _0x32b82e=this[_0x71b42f(0x551,0x571)][_0x71b42f(0x521,0x50d)](_0x54d174)??0x1,_0x3347a8=_0x55d121*_0x32b82e,_0x2fc1aa=cachedHashString(_0x54d174)%this[_0x3b37af(-0x180,-0x177)];_0x1ae6ec[_0x2fc1aa]+=_0x3347a8;}return this[_0x3b37af(-0x182,-0x175)](_0x1ae6ec);}[_0x547a64(0x266,0x26f)+_0x291ae2(-0xba,-0xb2)](_0x383136,_0x5d191f){function _0x1fecf4(_0x4b03bb,_0x24a8e1){return _0x547a64(_0x4b03bb,_0x24a8e1- -0x1ca);}_0x5d191f&&_0x5d191f[_0x3409f6(0x1e9,0x1ed)]>0x0&&this[_0x1fecf4(0xd8,0xbf)+'us'](_0x5d191f);function _0x3409f6(_0x5ede1b,_0x45afbe){return _0x547a64(_0x5ede1b,_0x45afbe- -0x8a);}return this[_0x1fecf4(0xc2,0xa9)](_0x383136);}[_0x291ae2(-0x7c,-0x91)](_0x11e89e){function _0x2b869f(_0x201001,_0x4ccc0d){return _0x547a64(_0x201001,_0x4ccc0d- -0x1c9);}function _0x28f1b6(_0x5854c6,_0x1111ee){return _0x547a64(_0x1111ee,_0x5854c6-0xed);}return _0x11e89e[_0x28f1b6(0x388,0x38f)](_0x281b88=>this[_0x2b869f(0x90,0xaa)](_0x281b88));}[_0x291ae2(-0x8d,-0x9e)](_0x2e9c2c){function _0x3c9d58(_0x2b6172,_0x14eb0f){return _0x547a64(_0x2b6172,_0x14eb0f- -0x318);}const _0x13d72f=Math[_0x57e7b7(0x11d,0x128)](_0x2e9c2c[_0x57e7b7(0x133,0x11b)]((_0x577eb3,_0xad25bb)=>_0x577eb3+_0xad25bb*_0xad25bb,0x0));if(_0x13d72f===0x0)return _0x2e9c2c;function _0x57e7b7(_0xad4f98,_0x1c0838){return _0x547a64(_0x1c0838,_0xad4f98- -0x16e);}return _0x2e9c2c[_0x3c9d58(-0x8c,-0x7d)](_0x3d070a=>_0x3d070a/_0x13d72f);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function _0x1c86(_0x308995,_0xe9257b){_0x308995=_0x308995-0x1a2;const _0x213eeb=_0x213e();let _0x1c8651=_0x213eeb[_0x308995];if(_0x1c86['TLuGlU']===undefined){var _0x941409=function(_0x1a893f){const _0x33bd4b='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x4cbd0c='',_0x4dc0a5='';for(let _0xc5a326=0x0,_0x476d64,_0x164320,_0x4c16a7=0x0;_0x164320=_0x1a893f['charAt'](_0x4c16a7++);~_0x164320&&(_0x476d64=_0xc5a326%0x4?_0x476d64*0x40+_0x164320:_0x164320,_0xc5a326++%0x4)?_0x4cbd0c+=String['fromCharCode'](0xff&_0x476d64>>(-0x2*_0xc5a326&0x6)):0x0){_0x164320=_0x33bd4b['indexOf'](_0x164320);}for(let _0x4a0d05=0x0,_0x128392=_0x4cbd0c['length'];_0x4a0d05<_0x128392;_0x4a0d05++){_0x4dc0a5+='%'+('00'+_0x4cbd0c['charCodeAt'](_0x4a0d05)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x4dc0a5);};_0x1c86['lKluSN']=_0x941409,_0x1c86['jSaZSb']={},_0x1c86['TLuGlU']=!![];}const _0x5c30c8=_0x213eeb[0x0],_0x278ad5=_0x308995+_0x5c30c8,_0x3c3dbb=_0x1c86['jSaZSb'][_0x278ad5];return!_0x3c3dbb?(_0x1c8651=_0x1c86['lKluSN'](_0x1c8651),_0x1c86['jSaZSb'][_0x278ad5]=_0x1c8651):_0x1c8651=_0x3c3dbb,_0x1c8651;}function _0xf5d843(_0x16fdf8,_0x1638b6){return _0x1c86(_0x16fdf8- -0x5c,_0x1638b6);}function _0x213e(){const _0x3f7df2=['mZm2nti1mMLnrLzHyq','mJuZndKYohDtsg9PEG','C3rYAw5NAwz5','mty2mdC3Dw5jsvzo','DgLTzw91Da','7iUCio2BHcdRI6tSI5WG7iUC64+e7zwy','EEULVcdTMzxSNBJTLzJSHlJSMPq','Bw9KzwW','zsbmAw1PDdOG7j6G','t3bLBKfjieHuva','As5VCgvUywKUyW','AgfUzgXLrxjYBW','mZa2mtr4uMPluxO','BI9QC29U','zw1Izwq','zxjYB3i','yxbPs2v5','zw1IzwrcyxrJAa','mtC3otjZzujpDfi','ntyWAwz6vwjN','C29YDa','C3rHDhvZ','nduYotGXrg16yLfy','t3bLBKfjiefqsq','BwvZC2fNzq','t3bLBKfjifjHDa','7iUK7yYOoIbbueKGs2u','ue9tva','ANnVBG','CvHoDxO','C2LNBMfS','ntfcB0n3tgW','ioYyPoULMdOG','ywjVCNq','t3bLBKfjioYALoYYRsa','mZeZmdCWEfrzzvnZ','nZa3t3DIBfjn','CLjLC3bVBNnL','qMvHCMvYia','t3bLBKfjioYDUoYMNsa'];_0x213e=function(){return _0x3f7df2;};return _0x213e();}function _0x69338(_0x1b610b,_0x115555){return _0x1c86(_0x1b610b-0x1d0,_0x115555);}(function(_0x25b451,_0x31c5da){function _0x1c2813(_0x3f0b55,_0x29d88a){return _0x1c86(_0x29d88a- -0x30d,_0x3f0b55);}const _0x178485=_0x25b451();function _0x2e4c42(_0x2f2894,_0x21d4f6){return _0x1c86(_0x21d4f6- -0x267,_0x2f2894);}while(!![]){try{const _0x338d7e=parseInt(_0x2e4c42(-0xaf,-0xad))/0x1+parseInt(_0x2e4c42(-0xb4,-0xb7))/0x2*(-parseInt(_0x2e4c42(-0xa2,-0xa4))/0x3)+-parseInt(_0x2e4c42(-0xba,-0xc3))/0x4+-parseInt(_0x2e4c42(-0x8e,-0xa0))/0x5+parseInt(_0x2e4c42(-0xd5,-0xc2))/0x6+-parseInt(_0x2e4c42(-0x8d,-0x9f))/0x7*(parseInt(_0x1c2813(-0x167,-0x157))/0x8)+-parseInt(_0x1c2813(-0x179,-0x166))/0x9*(-parseInt(_0x2e4c42(-0xc2,-0xb0))/0xa);if(_0x338d7e===_0x31c5da)break;else _0x178485['push'](_0x178485['shift']());}catch(_0x321b53){_0x178485['push'](_0x178485['shift']());}}}(_0x213e,0x7ef83));export class OpenAIEmbeddingProvider{[_0x69338(0x384,0x385)];[_0x69338(0x37b,0x38b)];[_0x69338(0x378,0x383)];['baseUrl']='https://ap'+_0x69338(0x37e,0x389)+'om/v1';constructor(_0x4a90ec){function _0x31b294(_0x51dda5,_0x456fd0){return _0x69338(_0x51dda5-0x3c,_0x456fd0);}this['apiKey']=_0x4a90ec[_0x31b294(0x3c0,0x3c8)];function _0x1c2f26(_0x338844,_0x595897){return _0x69338(_0x595897- -0x1ca,_0x338844);}this[_0x1c2f26(0x1b5,0x1b1)]=_0x4a90ec[_0x1c2f26(0x1ac,0x1b1)]??'text-embed'+'ding-3-sma'+'ll',this[_0x1c2f26(0x1ba,0x1ae)]=_0x4a90ec[_0x31b294(0x3b4,0x3a0)]??0x7530;}async[_0x69338(0x382,0x396)](_0x57628c){function _0x1a6ff0(_0x14ee61,_0x3e9406){return _0xf5d843(_0x3e9406- -0x220,_0x14ee61);}const _0x212d69=await this[_0x1a6ff0(-0xd3,-0xc7)]([_0x57628c]);return _0x212d69[0x0];}async['embedBatch'](_0xe5446b){if(_0xe5446b['length']===0x0)return[];function _0x341e9c(_0x369dc4,_0x2a37bd){return _0xf5d843(_0x369dc4-0x404,_0x2a37bd);}function _0x1bd4ff(_0x181f71,_0x424a3e){return _0xf5d843(_0x181f71-0x184,_0x424a3e);}const _0x29cdf5=new AbortController(),_0x4c00bf=setTimeout(()=>_0x29cdf5[_0x341e9c(0x56d,0x575)](),this[_0x1bd4ff(0x2d0,0x2d5)]);try{const _0x13383=await fetch(this['baseUrl']+('/embedding'+'s'),{'method':_0x341e9c(0x567,0x554),'headers':{'Content-Type':'applicatio'+_0x341e9c(0x559,0x566),'Authorization':_0x341e9c(0x54a,0x54e)+this['apiKey']},'body':JSON[_0x1bd4ff(0x2ce,0x2db)]({'input':_0xe5446b,'model':this[_0x1bd4ff(0x2d3,0x2e2)]}),'signal':_0x29cdf5[_0x1bd4ff(0x2ea,0x2e9)]});clearTimeout(_0x4c00bf);!_0x13383['ok']&&await this[_0x1bd4ff(0x2d7,0x2db)+_0x1bd4ff(0x2f1,0x2e6)](_0x13383);const _0x377adf=await _0x13383['json'](),_0x4ac3c3=_0x377adf['data'][_0x341e9c(0x560,0x559)]((_0x537295,_0x3de8ed)=>_0x537295['index']-_0x3de8ed['index'])['map'](_0x1c90cd=>_0x1c90cd['embedding']);return _0x4ac3c3;}catch(_0x354b5b){clearTimeout(_0x4c00bf);if(_0x354b5b instanceof Error){if(_0x354b5b['name']==='AbortError')throw new Error(_0x1bd4ff(0x2ee,0x2f3)+'시간\x20초과:\x20'+this['timeout']+'ms');throw new Error(_0x1bd4ff(0x2e3,0x2f7)+_0x341e9c(0x56c,0x576)+_0x354b5b[_0x1bd4ff(0x2e4,0x2ec)]);}throw _0x354b5b;}}async[_0x69338(0x37f,0x38c)+_0xf5d843(0x16d,0x17a)](_0x3a8499){const _0x49737c=_0x3a8499[_0x37ead4(0x26e,0x278)];if(_0x49737c===0x191)throw new Error(_0xff461b(-0x4f,-0x42)+_0xff461b(-0x25,-0x27)+_0xff461b(-0x3b,-0x3b));function _0x37ead4(_0x46a396,_0x5d5be0){return _0xf5d843(_0x5d5be0-0x11b,_0x46a396);}if(_0x49737c===0x1ad)throw new Error(_0xff461b(-0x2c,-0x28)+_0x37ead4(0x27b,0x26b)+_0xff461b(-0x4d,-0x3c)+'세요');let _0x4a4c09=_0x37ead4(0x258,0x26c)+'P\x20'+_0x49737c;try{if('FmCAe'===_0x37ead4(0x28f,0x280))this[_0xff461b(-0x3f,-0x31)]=_0x476d64[_0xff461b(-0x24,-0x31)],this[_0x37ead4(0x26a,0x26a)]=_0x164320[_0xff461b(-0x29,-0x3a)]??'text-embed'+'ding-3-sma'+'ll',this[_0xff461b(-0x37,-0x3d)]=_0x4c16a7['timeout']??0x7530;else{const _0x49f0a8=await _0x3a8499[_0xff461b(-0x30,-0x25)]();_0x49f0a8['error']?.[_0x37ead4(0x27f,0x27b)]&&(_0x4a4c09+=':\x20'+_0x49f0a8[_0xff461b(-0x29,-0x32)][_0xff461b(-0x29,-0x29)]);}}catch{}function _0xff461b(_0x324b62,_0xb5220a){return _0xf5d843(_0xb5220a- -0x189,_0x324b62);}throw new Error(_0x4a4c09);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function _0x142d(_0x51e5b6,_0x2da2ba){_0x51e5b6=_0x51e5b6-0xd7;const _0x2b582a=_0x2b58();let _0x142d7b=_0x2b582a[_0x51e5b6];if(_0x142d['iqkVgF']===undefined){var _0x26273e=function(_0x13e625){const _0x5371d7='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x431b9e='',_0x44ea9a='';for(let _0x45bc42=0x0,_0x3b93a4,_0x2423d1,_0x4af3da=0x0;_0x2423d1=_0x13e625['charAt'](_0x4af3da++);~_0x2423d1&&(_0x3b93a4=_0x45bc42%0x4?_0x3b93a4*0x40+_0x2423d1:_0x2423d1,_0x45bc42++%0x4)?_0x431b9e+=String['fromCharCode'](0xff&_0x3b93a4>>(-0x2*_0x45bc42&0x6)):0x0){_0x2423d1=_0x5371d7['indexOf'](_0x2423d1);}for(let _0x11be43=0x0,_0x26b16b=_0x431b9e['length'];_0x11be43<_0x26b16b;_0x11be43++){_0x44ea9a+='%'+('00'+_0x431b9e['charCodeAt'](_0x11be43)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x44ea9a);};_0x142d['jefKud']=_0x26273e,_0x142d['DdMZwF']={},_0x142d['iqkVgF']=!![];}const _0x463847=_0x2b582a[0x0],_0x268829=_0x51e5b6+_0x463847,_0x20afe7=_0x142d['DdMZwF'][_0x268829];return!_0x20afe7?(_0x142d7b=_0x142d['jefKud'](_0x142d7b),_0x142d['DdMZwF'][_0x268829]=_0x142d7b):_0x142d7b=_0x20afe7,_0x142d7b;}(function(_0x4df388,_0x7a2192){function _0x2667e5(_0xc3ba06,_0x4c99de){return _0x142d(_0x4c99de- -0x2ba,_0xc3ba06);}function _0x37957f(_0x16b1cb,_0x34cdd1){return _0x142d(_0x34cdd1- -0x31a,_0x16b1cb);}const _0x3f9ce1=_0x4df388();while(!![]){try{const _0x4de158=-parseInt(_0x2667e5(-0x1d5,-0x1d4))/0x1*(-parseInt(_0x2667e5(-0x1df,-0x1de))/0x2)+-parseInt(_0x2667e5(-0x1e0,-0x1d9))/0x3*(parseInt(_0x37957f(-0x240,-0x23b))/0x4)+parseInt(_0x2667e5(-0x1d5,-0x1da))/0x5*(parseInt(_0x2667e5(-0x1e1,-0x1df))/0x6)+-parseInt(_0x37957f(-0x24e,-0x243))/0x7+parseInt(_0x37957f(-0x224,-0x22e))/0x8+-parseInt(_0x2667e5(-0x1c5,-0x1d0))/0x9+parseInt(_0x37957f(-0x24c,-0x242))/0xa;if(_0x4de158===_0x7a2192)break;else _0x3f9ce1['push'](_0x3f9ce1['shift']());}catch(_0x3bbf9d){_0x3f9ce1['push'](_0x3f9ce1['shift']());}}}(_0x2b58,0x70eb4));function _0x2b58(){const _0x4662f1=['BwLU','C2XPy2u','mZaXodqYsM1uq3f3','ndKXogX4sKLYua','zgLTzw5ZAw9UCW','svnZqMK','mtjzwMv4she','mZv4zgTkr1m','nZCYnde5BxvfB29R','CM91BMq','yNL0zu9MzNnLDa','ywXSB2m','yNL0zuXLBMD0Aa','ouHnzxrQvW','zMLSBa','Bwf4','yNvMzMvY','mZq1mti0ogHyy2jqDG','zNjVBq','mJmXmJmWneXVzunZDq','BgvUz3rO','mtq1ntuZmxjktxDIEq','mte2mZaYmJbZufbVBfG'];_0x2b58=function(){return _0x4662f1;};return _0x2b58();}export function quantizeToFloat32(_0xafb04d){function _0x253f1c(_0x2b9f31,_0x49eda9){return _0x142d(_0x49eda9-0x1d2,_0x2b9f31);}const _0x5a36f6=new Float32Array(_0xafb04d);function _0x2b474f(_0x4dded3,_0xf0f8bd){return _0x142d(_0x4dded3- -0x14a,_0xf0f8bd);}return Buffer[_0x253f1c(0x2c5,0x2bd)](_0x5a36f6[_0x2b474f(-0x61,-0x6a)],_0x5a36f6[_0x2b474f(-0x67,-0x68)],_0x5a36f6[_0x2b474f(-0x65,-0x65)]);}export function dequantizeFromFloat32(_0x1ff4c7){const _0x358c7d=_0x1ff4c7[_0x7081ff(-0x101,-0x10d)][_0x57c338(-0x15,-0x1f)](_0x1ff4c7['byteOffset'],_0x1ff4c7[_0x57c338(-0x17,-0x16)]+_0x1ff4c7['byteLength']);function _0x57c338(_0x5dc11e,_0x10ed21){return _0x142d(_0x10ed21- -0xf9,_0x5dc11e);}function _0x7081ff(_0x4a01e0,_0x3a0ff0){return _0x142d(_0x3a0ff0- -0x1f6,_0x4a01e0);}const _0x42dbe6=new Float32Array(_0x358c7d);return Array[_0x7081ff(-0x110,-0x10b)](_0x42dbe6);}export function quantizeToInt8(_0x59d224,_0xed9261){if(_0x59d224[_0x3ef523(-0x7e,-0x84)]===0x0)return{'buffer':Buffer[_0x3ef523(-0x87,-0x8b)](0x0),'stats':{'min':0x0,'max':0x0,'dimensions':0x0}};function _0x3e3c4a(_0x346059,_0x4f39fa){return _0x142d(_0x4f39fa- -0x117,_0x346059);}let _0x5278f9,_0x5a7fb5;function _0x3ef523(_0x226c95,_0x267793){return _0x142d(_0x226c95- -0x16b,_0x267793);}if(_0xed9261){if(_0x3e3c4a(-0x33,-0x39)!==_0x3ef523(-0x8d,-0x8e))for(let _0x4767a5=0x0;_0x4767a5<_0x1d8126[_0x3e3c4a(-0x38,-0x3a)];_0x4767a5++){const _0x5b9791=(_0x5ad252[_0x4767a5]+0x80)/0xff;_0x40fabd[_0x4767a5]=_0x5b9791*_0x197b06+_0x5cf006[_0x3ef523(-0x92,-0x92)];}else _0x5278f9=_0xed9261[_0x3e3c4a(-0x3c,-0x3e)],_0x5a7fb5=_0xed9261['max'];}else _0x5278f9=Math['min'](..._0x59d224),_0x5a7fb5=Math[_0x3e3c4a(-0x35,-0x2f)](..._0x59d224);const _0x3a8b59=_0x5a7fb5-_0x5278f9,_0x239cc6=new Int8Array(_0x59d224[_0x3ef523(-0x7e,-0x8a)]);if(_0x3a8b59===0x0)_0x239cc6[_0x3e3c4a(-0x2a,-0x30)](0x0);else for(let _0x119be7=0x0;_0x119be7<_0x59d224[_0x3ef523(-0x7e,-0x73)];_0x119be7++){const _0x575f28=(_0x59d224[_0x119be7]-_0x5278f9)/_0x3a8b59,_0x272daf=Math[_0x3e3c4a(-0x38,-0x35)](_0x575f28*0xff)-0x80;_0x239cc6[_0x119be7]=Math[_0x3ef523(-0x83,-0x8b)](-0x80,Math[_0x3e3c4a(-0x44,-0x3e)](0x7f,_0x272daf));}return{'buffer':Buffer['from'](_0x239cc6[_0x3e3c4a(-0x27,-0x2e)],_0x239cc6[_0x3e3c4a(-0x31,-0x34)],_0x239cc6[_0x3ef523(-0x86,-0x8f)]),'stats':{'min':_0x5278f9,'max':_0x5a7fb5,'dimensions':_0x59d224[_0x3e3c4a(-0x21,-0x2a)]}};}export function dequantizeFromInt8(_0x3abfec,_0xe2f949){if(_0x3abfec[_0x4e70a2(0x181,0x185)]===0x0||_0xe2f949[_0x2e8c16(0x479,0x47f)]===0x0)return[];const _0x159065=_0x3abfec['buffer'][_0x4e70a2(0x16e,0x177)](_0x3abfec[_0x4e70a2(0x177,0x174)],_0x3abfec['byteOffset']+_0x3abfec[_0x4e70a2(0x179,0x176)]),_0x3560b4=new Int8Array(_0x159065);function _0x4e70a2(_0x161b3d,_0x2744b1){return _0x142d(_0x161b3d-0x94,_0x2744b1);}const _0x21d2bc=_0xe2f949[_0x4e70a2(0x17c,0x17f)]-_0xe2f949['min'],_0x157129=new Array(_0xe2f949[_0x4e70a2(0x171,0x171)]);if(_0x21d2bc===0x0)_0x157129[_0x4e70a2(0x17b,0x172)](_0xe2f949['min']);else for(let _0x5d65f3=0x0;_0x5d65f3<_0xe2f949[_0x2e8c16(0x47f,0x47f)];_0x5d65f3++){const _0xe000fb=(_0x3560b4[_0x5d65f3]+0x80)/0xff;_0x157129[_0x5d65f3]=_0xe000fb*_0x21d2bc+_0xe2f949['min'];}function _0x2e8c16(_0x347e1d,_0x1418c4){return _0x142d(_0x1418c4-0x3a2,_0x347e1d);}return _0x157129;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x462d(){const _0x164e74=['ChjVAMvJDfbHDa','C2L6zq','zgvJAwrL','BwfW','zgvSzxrLza','Aw5JBhvKzxm','ndyWodaZnNDOuuzuyW','7zw06RkW65cO','C29YDa','BM8GBg9Uz2vY','B2jZB2XLDgu','icHZAw1PBgfYAq','mta4otK1n3bKD3zrrq','nxzuu2zmva','ig5LzwrLza','revmrvrf','CMvZB2X2zwq','y29UDgvUDa','CMvWBgfJzwqGyG','zcaOC2LTAwXHCG','7ikT7kcC65cO','mZi5mJfKvLryEeW','ihrVignVBxbHCG','tM8GC2LTAwXHCG','mty4odiWoevyt0Dyta','tKTowhu','64Ya7lk065cO','ig1LBw9YAwvZia','qure','cLTvCgrHDgvKxq','AM9PBG','BgvUz3rO','zMLSDgvY','qMvZDcbTyxrJAa','y2f0zsaOC2LTAq','BgfYAxr5oIa','zcWGBwvYz2LUzW','z2v0vgLTzq','Dg9gAxHLza','tMvHCI1KDxbSAq','7iIy7kcv65cO','zM91BMq','AgfZ','EsaO','BwLNCMf0zwqGDa','mtyYmta0ohr1BLvYAa','Axr5oIa','B24Gzgv0zwn0zq','mJa0s21TvMjN','zw1IzwrKAw5N','DhK6ia','BwvYz2vdB250zq','ihnPBwLSyxjPDa','C3bSAxq','ntm3odG0quHJww1g','DhjPBq','D29YA2fYB3vUza','Dg9mB3DLCKnHCW','zML4zwq','nZG2EuncteDS','BNrLBNqGzM91BG','CMvTB3zLza','u2LTAwXHCIbJBW','DxbKyxrLzef0'];_0x462d=function(){return _0x164e74;};return _0x462d();}(function(_0x4ccbed,_0x5296b6){function _0x90c430(_0xad2634,_0x147768){return _0x7e1e(_0x147768- -0x1d8,_0xad2634);}const _0x1c3f86=_0x4ccbed();function _0x33210b(_0xd86dbf,_0x50bff0){return _0x7e1e(_0xd86dbf-0x2da,_0x50bff0);}while(!![]){try{const _0x168cb0=parseInt(_0x90c430(-0xc,0x5))/0x1+-parseInt(_0x33210b(0x4b2,0x4a5))/0x2+-parseInt(_0x33210b(0x488,0x493))/0x3+parseInt(_0x90c430(-0x25,-0x1e))/0x4*(parseInt(_0x90c430(-0xf,-0x29))/0x5)+parseInt(_0x90c430(0xa,-0x6))/0x6*(-parseInt(_0x33210b(0x491,0x485))/0x7)+parseInt(_0x90c430(0xc,-0x9))/0x8+parseInt(_0x90c430(0x7,0x10))/0x9;if(_0x168cb0===_0x5296b6)break;else _0x1c3f86['push'](_0x1c3f86['shift']());}catch(_0x2cf279){_0x1c3f86['push'](_0x1c3f86['shift']());}}}(_0x462d,0x544de));import{cosineSimilarity}from'./similarity.js';const MERGE_CONTENT_MAX_CHARS=0x7d0,NOOP_THRESHOLD=0.95,UPDATE_THRESHOLD=0.8;function _0x29f42b(_0x259fad,_0x5128b2){return _0x7e1e(_0x259fad- -0x2eb,_0x5128b2);}function _0x7e1e(_0x3b0667,_0xa418d1){_0x3b0667=_0x3b0667-0x1ae;const _0x462d1f=_0x462d();let _0x7e1eec=_0x462d1f[_0x3b0667];if(_0x7e1e['nFWBsU']===undefined){var _0x579a81=function(_0x13c8ab){const _0x1c87fb='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x1a4634='',_0x53c3a5='';for(let _0x2fc65b=0x0,_0x29b07f,_0x12f94a,_0x5ed082=0x0;_0x12f94a=_0x13c8ab['charAt'](_0x5ed082++);~_0x12f94a&&(_0x29b07f=_0x2fc65b%0x4?_0x29b07f*0x40+_0x12f94a:_0x12f94a,_0x2fc65b++%0x4)?_0x1a4634+=String['fromCharCode'](0xff&_0x29b07f>>(-0x2*_0x2fc65b&0x6)):0x0){_0x12f94a=_0x1c87fb['indexOf'](_0x12f94a);}for(let _0x404198=0x0,_0x27b067=_0x1a4634['length'];_0x404198<_0x27b067;_0x404198++){_0x53c3a5+='%'+('00'+_0x1a4634['charCodeAt'](_0x404198)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x53c3a5);};_0x7e1e['szROCn']=_0x579a81,_0x7e1e['MOBxdh']={},_0x7e1e['nFWBsU']=!![];}const _0x31dc3a=_0x462d1f[0x0],_0xe760c9=_0x3b0667+_0x31dc3a,_0x470d38=_0x7e1e['MOBxdh'][_0xe760c9];return!_0x470d38?(_0x7e1eec=_0x7e1e['szROCn'](_0x7e1eec),_0x7e1e['MOBxdh'][_0xe760c9]=_0x7e1eec):_0x7e1eec=_0x470d38,_0x7e1eec;}function _0x58ff45(_0xd074fe,_0x3a88c9){return _0x7e1e(_0xd074fe-0x305,_0x3a88c9);}const DELETE_THRESHOLD=0.92,WEAK_INVALIDATION_KEYWORDS=[_0x58ff45(0x4e1,0x4fb),_0x58ff45(0x4b7,0x4ce),_0x58ff45(0x4cf,0x4ee),_0x29f42b(-0x102,-0x111)],STRONG_INVALIDATION_KEYWORDS=['deprecated',_0x58ff45(0x4f1,0x4f5),_0x29f42b(-0x100,-0xeb),_0x29f42b(-0x137,-0x136)+'y',_0x58ff45(0x4d3,0x4d5)+'o',_0x29f42b(-0x10c,-0xfc),_0x58ff45(0x4eb,0x507),_0x58ff45(0x4df,0x4d6)+'\x20no\x20longer'+_0x58ff45(0x4b5,0x4b6),'더\x20이상',_0x29f42b(-0x12f,-0x149),_0x29f42b(-0x135,-0x151),'폐기'];function detectInvalidation(_0x3bf77f,_0x18d05f){function _0x36e01c(_0x5da271,_0x31a6d4){return _0x29f42b(_0x31a6d4- -0xca,_0x5da271);}const _0x5a80e6=_0x3bf77f['toLowerCas'+'e']();function _0x4b4d24(_0x5afd27,_0x131cb5){return _0x29f42b(_0x131cb5-0x5db,_0x5afd27);}if(STRONG_INVALIDATION_KEYWORDS['some'](_0x486e49=>_0x5a80e6[_0x36e01c(-0x1cc,-0x1ce)](_0x486e49)))return!![];const _0x6a512=WEAK_INVALIDATION_KEYWORDS['filter'](_0x45c038=>_0x5a80e6[_0x36e01c(-0x1d4,-0x1ce)](_0x45c038));return _0x6a512['length']>=0x2;}function textSimilarity(_0xcecb37,_0xf848c4){function _0x4875ee(_0x52b11e,_0x3b0802){return _0x29f42b(_0x3b0802-0x5b,_0x52b11e);}const _0x5b4d77=new Set(_0xcecb37['toLowerCas'+'e']()[_0x4875ee(-0xb4,-0xb9)](/\s+/)[_0x4875ee(-0xdd,-0xce)](_0xe7240f=>_0xe7240f['length']>0x2)),_0x407a65=new Set(_0xf848c4[_0x4875ee(-0x96,-0xb5)+'e']()['split'](/\s+/)['filter'](_0x10afb1=>_0x10afb1[_0x4875ee(-0xdf,-0xcf)]>0x2));if(_0x5b4d77[_0x58648b(0x52a,0x53b)]===0x0||_0x407a65[_0x4875ee(-0xb5,-0xad)]===0x0)return 0x0;let _0x8d4139=0x0;for(const _0x569ce5 of _0x5b4d77){if(_0x407a65[_0x4875ee(-0xcc,-0xc4)](_0x569ce5))_0x8d4139++;}const _0x360146=new Set([..._0x5b4d77,..._0x407a65])[_0x4875ee(-0x9d,-0xad)];function _0x58648b(_0x16e99a,_0x47eefb){return _0x29f42b(_0x47eefb-0x643,_0x16e99a);}return _0x360146>0x0?_0x8d4139/_0x360146:0x0;}export class DedupManager{[_0x58ff45(0x4e9,0x505)](_0x18df13,_0x4d3f10,_0x5c7d7b){if(_0x4d3f10[_0x352778(0x19,0x28)]===0x0)return{'action':_0x2b2006(-0x82,-0x90),'similarity':0x0,'reason':'No\x20existin'+'g\x20memories'+_0x352778(0x10,0x21)+'e'};let _0x57c31a=0x0,_0x10405b;for(const _0x1f52d8 of _0x4d3f10){let _0x321d0b;_0x5c7d7b&&_0x1f52d8[_0x352778(0x2b,0x36)]&&_0x1f52d8[_0x352778(0x2b,0x28)][_0x2b2006(-0x7f,-0x74)]>0x0&&_0x5c7d7b['length']===_0x1f52d8['embedding']['length']?_0x321d0b=cosineSimilarity(_0x5c7d7b,_0x1f52d8['embedding']):_0x321d0b=textSimilarity(_0x18df13,_0x1f52d8[_0x2b2006(-0x8d,-0xad)]),_0x321d0b>_0x57c31a&&(_0x57c31a=_0x321d0b,_0x10405b=_0x1f52d8);}if(_0x57c31a>=NOOP_THRESHOLD&&_0x10405b)return{'action':'NOOP','targetMemory':_0x10405b,'similarity':_0x57c31a,'reason':_0x2b2006(-0x77,-0x7f)+_0x2b2006(-0x7c,-0x83)+_0x352778(0x1d,0x24)+_0x57c31a[_0x352778(0x20,0x2c)](0x3)+')'};function _0x2b2006(_0x541f3c,_0x2e8d1e){return _0x58ff45(_0x541f3c- -0x545,_0x2e8d1e);}if(_0x57c31a>=DELETE_THRESHOLD&&_0x10405b&&detectInvalidation(_0x18df13,_0x10405b[_0x352778(0xb,-0xf)]))return{'action':_0x352778(0x9,0x29),'targetMemory':_0x10405b,'similarity':_0x57c31a,'reason':'Invalidati'+_0x352778(0x29,0x3a)+_0x2b2006(-0x8b,-0x82)+_0x352778(0x28,0x21)+_0x57c31a[_0x2b2006(-0x78,-0x6c)](0x3)+')'};function _0x352778(_0x8ee395,_0x7eca3b){return _0x58ff45(_0x8ee395- -0x4ad,_0x7eca3b);}if(_0x57c31a>=UPDATE_THRESHOLD&&_0x10405b)return{'action':'UPDATE','targetMemory':_0x10405b,'similarity':_0x57c31a,'reason':_0x352778(0x38,0x2e)+_0x2b2006(-0x62,-0x49)+_0x352778(0x1e,0x27)+_0x352778(0x45,0x4b)+_0x352778(0x2c,0x36)+_0x57c31a[_0x352778(0x20,0x28)](0x3)+')'};return{'action':_0x352778(0x16,0xb),'similarity':_0x57c31a,'reason':_0x57c31a>0x0?_0x352778(0x1b,0x37)+_0x2b2006(-0x6a,-0x83)+_0x352778(0x25,0x1a)+_0x57c31a[_0x352778(0x20,0x3f)](0x3)+(')\x20below\x20th'+'reshold'):_0x2b2006(-0x87,-0x6f)+_0x2b2006(-0x83,-0x99)+_0x2b2006(-0x75,-0x60)};}[_0x29f42b(-0x116,-0x134)+'nt'](_0x572a97,_0x4e3f39){if(_0x572a97[_0x3bcf87(0x53a,0x52a)](_0x4e3f39[_0x3bcf87(0x51b,0x51c)]()))return{'content':_0x572a97,'truncated':![],'wouldBeLength':_0x572a97[_0x3bcf87(0x4f6,0x504)]};const _0x5c330f=new Set(_0x572a97[_0x2b26bf(0x224,0x229)]('\x0a')[_0x3bcf87(0x536,0x528)](_0x100fa8=>_0x100fa8['trim']())[_0x2b26bf(0x20f,0x22c)](_0x535026=>_0x535026['length']>0x0));function _0x2b26bf(_0x2800f6,_0x4494d2){return _0x58ff45(_0x2800f6- -0x2b8,_0x4494d2);}const _0x5e7e13=_0x4e3f39[_0x3bcf87(0x4fd,0x51a)]('\x0a')[_0x3bcf87(0x51d,0x528)](_0x123062=>_0x123062[_0x3bcf87(0x533,0x51c)]())[_0x3bcf87(0x507,0x505)](_0x51fc52=>_0x51fc52[_0x2b26bf(0x20e,0x20c)]>0x0&&!_0x5c330f['has'](_0x51fc52));function _0x3bcf87(_0x31680c,_0x1ff91d){return _0x58ff45(_0x1ff91d-0x3e,_0x31680c);}if(_0x5e7e13[_0x3bcf87(0x4f8,0x504)]===0x0){if(_0x2b26bf(0x208,0x206)!==_0x3bcf87(0x4e9,0x4fe)){if(_0x378f2b[_0x2b26bf(0x234,0x235)](_0x18225d[_0x2b26bf(0x226,0x233)]()))return{'content':_0x215646,'truncated':![],'wouldBeLength':_0x301f10[_0x3bcf87(0x4f9,0x504)]};const _0x106771=new _0xf526b(_0x5a517a[_0x3bcf87(0x525,0x51a)]('\x0a')[_0x2b26bf(0x232,0x215)](_0x56c5f6=>_0x56c5f6[_0x3bcf87(0x4fc,0x51c)]())[_0x2b26bf(0x20f,0x203)](_0x506a43=>_0x506a43[_0x3bcf87(0x4f3,0x504)]>0x0)),_0x2438a8=_0x5f26e2[_0x3bcf87(0x53a,0x51a)]('\x0a')[_0x3bcf87(0x541,0x528)](_0x5cce90=>_0x5cce90['trim']())[_0x2b26bf(0x20f,0x204)](_0x4d2080=>_0x4d2080[_0x3bcf87(0x4fc,0x504)]>0x0&&!_0x106771['has'](_0x4d2080));if(_0x2438a8[_0x3bcf87(0x522,0x504)]===0x0)return{'content':_0x139a22,'truncated':![],'wouldBeLength':_0x5f1d4f[_0x2b26bf(0x20e,0x1fc)]};const _0x35dfc0=_0x3623c4+(_0x2b26bf(0x20c,0x1ff)+'\x20')+_0x2438a8[_0x2b26bf(0x20d,0x211)]('\x0a');return{'content':_0x35dfc0,'truncated':_0x35dfc0[_0x3bcf87(0x50a,0x504)]>_0x2b8765,'wouldBeLength':_0x35dfc0[_0x2b26bf(0x20e,0x1f9)]};}else return{'content':_0x572a97,'truncated':![],'wouldBeLength':_0x572a97[_0x3bcf87(0x4f9,0x504)]};}const _0x24f7bb=_0x572a97+(_0x3bcf87(0x50c,0x502)+'\x20')+_0x5e7e13['join']('\x0a');return{'content':_0x24f7bb,'truncated':_0x24f7bb[_0x2b26bf(0x20e,0x220)]>MERGE_CONTENT_MAX_CHARS,'wouldBeLength':_0x24f7bb[_0x2b26bf(0x20e,0x229)]};}['findCandid'+'ates'](_0x5b6522,_0x57e952,_0x29c936,_0x5f1638=0x32){function _0x17bcc8(_0x104fdc,_0x425356){return _0x29f42b(_0x104fdc-0x358,_0x425356);}function _0x2964c4(_0x4e9cec,_0x8364cd){return _0x29f42b(_0x8364cd-0x631,_0x4e9cec);}return _0x5b6522['filter'](_0x237ce5=>{function _0x170d63(_0x40d18a,_0xb2a5d9){return _0x7e1e(_0x40d18a-0x1ca,_0xb2a5d9);}if(_0x237ce5['category']!==_0x57e952)return![];if(_0x29c936&&_0x237ce5[_0x170d63(0x3ac,0x3c9)+'h']!==_0x29c936)return![];return!![];})[_0x17bcc8(0x257,0x243)]((_0x40a477,_0x44fc26)=>new Date(_0x44fc26[_0x17bcc8(0x24e,0x23b)])[_0x17bcc8(0x234,0x239)]()-new Date(_0x40a477['updatedAt'])[_0x17bcc8(0x234,0x238)]())['slice'](0x0,_0x5f1638);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function _0x4d96e1(_0x1ce01b,_0x4de083){return _0x42ed(_0x4de083- -0x86,_0x1ce01b);}(function(_0x5aad33,_0x194d86){function _0x24e7de(_0x48350f,_0x3ce47a){return _0x42ed(_0x48350f-0x31f,_0x3ce47a);}function _0xd12aa7(_0x2dcbff,_0x2dd40e){return _0x42ed(_0x2dd40e-0x305,_0x2dcbff);}const _0x6b612b=_0x5aad33();while(!![]){try{const _0x2103eb=-parseInt(_0xd12aa7(0x497,0x492))/0x1+-parseInt(_0x24e7de(0x4c0,0x4b2))/0x2*(parseInt(_0x24e7de(0x4b9,0x4b1))/0x3)+parseInt(_0x24e7de(0x4b8,0x4b3))/0x4*(-parseInt(_0x24e7de(0x4b0,0x4b5))/0x5)+parseInt(_0xd12aa7(0x48b,0x495))/0x6+-parseInt(_0xd12aa7(0x49e,0x4a7))/0x7*(-parseInt(_0x24e7de(0x4bf,0x4b1))/0x8)+-parseInt(_0xd12aa7(0x4a8,0x4a1))/0x9*(parseInt(_0x24e7de(0x4c7,0x4b9))/0xa)+parseInt(_0xd12aa7(0x49e,0x491))/0xb;if(_0x2103eb===_0x194d86)break;else _0x6b612b['push'](_0x6b612b['shift']());}catch(_0x1c77f2){_0x6b612b['push'](_0x6b612b['shift']());}}}(_0x34b9,0xc79f9));function _0x34b9(){const _0x135469=['7iQK7yQ466ci7iQK','zgLZyxbWB2LUDa','mJmWodC2mZzwCgr1uu8','mta3mtG4mMvzuKfPAW','z3jHDgvMDwW','DgLYzwq','odq4otKYmKPPAwfKyG','mJC5nJeZmgDQzK1rCq','AgfWChK','yw5NCNK','BgvUz3rO','zxHOyxvZDgvK','zNj1C3rYyxrLza','7kEC7kAD64ky','yw54Aw91CW','nejiv0TNuW','nMPhA3buAW','ChjVDwq','ow5pu1r2yG','B3zLCNDOzwXTzq','Dg9mB3DLCKnHCW','Aw5JBhvKzxm','ndKWneX4yK1PqW','mJqYnZy4sgHAsg93','mZC1ouHWBfLtBG','zxHJAxrLza','D29YCMLLza','Bw90AxzHDgvK','y29UzNvZzwq','7z6y65oK7jA0','mte1mtuXmtbYzvbOq0i'];_0x34b9=function(){return _0x135469;};return _0x34b9();}function _0x42ed(_0x2e204c,_0x236c52){_0x2e204c=_0x2e204c-0x18c;const _0x34b915=_0x34b9();let _0x42ed12=_0x34b915[_0x2e204c];if(_0x42ed['DplCyP']===undefined){var _0x3be097=function(_0x236bee){const _0x242bff='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0xb3fcb8='',_0x539ab7='';for(let _0x598297=0x0,_0x1d982d,_0x162505,_0x739d15=0x0;_0x162505=_0x236bee['charAt'](_0x739d15++);~_0x162505&&(_0x1d982d=_0x598297%0x4?_0x1d982d*0x40+_0x162505:_0x162505,_0x598297++%0x4)?_0xb3fcb8+=String['fromCharCode'](0xff&_0x1d982d>>(-0x2*_0x598297&0x6)):0x0){_0x162505=_0x242bff['indexOf'](_0x162505);}for(let _0x27b671=0x0,_0x32388d=_0xb3fcb8['length'];_0x27b671<_0x32388d;_0x27b671++){_0x539ab7+='%'+('00'+_0xb3fcb8['charCodeAt'](_0x27b671)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x539ab7);};_0x42ed['ZSCBqV']=_0x3be097,_0x42ed['zVpIYA']={},_0x42ed['DplCyP']=!![];}const _0x154f0b=_0x34b915[0x0],_0x17479a=_0x2e204c+_0x154f0b,_0x458a9a=_0x42ed['zVpIYA'][_0x17479a];return!_0x458a9a?(_0x42ed12=_0x42ed['ZSCBqV'](_0x42ed12),_0x42ed['zVpIYA'][_0x17479a]=_0x42ed12):_0x42ed12=_0x458a9a,_0x42ed12;}function _0x5e843a(_0x1428d9,_0x1d4edb){return _0x42ed(_0x1428d9- -0x1b,_0x1d4edb);}const EMOTION_KEYWORDS=['기뻐','행복','좋아','최고','신나','감사','고마워','대박','완벽','잘됐','슬퍼','우울',_0x5e843a(0x18c,0x17c),'불안','걱정','짜증','답답','화나',_0x5e843a(0x18e,0x17f),'피곤','지쳐','힘들','귀찮','열받',_0x4d96e1(0x118,0x111),'실망','후회','아쉬','속상','집중','몰입','바쁘','여유',_0x4d96e1(0x10d,0x10c),'sad',_0x5e843a(0x17b,0x17f),'stressed',_0x4d96e1(0x113,0x109),_0x5e843a(0x17d,0x187),_0x5e843a(0x188,0x195),_0x5e843a(0x178,0x178),_0x4d96e1(0x116,0x117)+'d',_0x4d96e1(0x116,0x120),_0x5e843a(0x173,0x16c),_0x5e843a(0x180,0x17a),_0x5e843a(0x18f,0x185)+'ed',_0x4d96e1(0x126,0x11e),_0x4d96e1(0x102,0x10f),_0x5e843a(0x18a,0x17a),'bored','ㅠㅠ','ㅜㅜ','ㅎㅎ','ㅋㅋ'],MIN_PROMPT_LENGTH=0xa;export function hasEmotionalContent(_0x44b7ee){function _0x2588b9(_0x493978,_0x4e212c){return _0x4d96e1(_0x493978,_0x4e212c- -0x14a);}if(_0x44b7ee[_0x2588b9(-0x40,-0x3c)]<MIN_PROMPT_LENGTH)return![];const _0x4a92a3=_0x44b7ee[_0x2588b9(-0x39,-0x32)+'e']();function _0x1dc5a0(_0x493e7b,_0x4f3456){return _0x4d96e1(_0x493e7b,_0x4f3456-0x3cb);}return EMOTION_KEYWORDS['some'](_0x3652ce=>_0x4a92a3[_0x2588b9(-0x26,-0x31)](_0x3652ce));}
|