mongofire 6.5.5 → 6.5.6
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/CHANGELOG.md +14 -0
- package/README.md +288 -334
- package/bin/mongofire.cjs +1237 -0
- package/dist/bin/mongofire.cjs +1 -1
- package/dist/src/changetrack.js +1 -1
- package/dist/src/compactor.js +1 -1
- package/dist/src/connection.js +1 -1
- package/dist/src/device.js +1 -1
- package/dist/src/diff.js +1 -1
- package/dist/src/field-merge.js +1 -1
- package/dist/src/index.cjs +1 -1
- package/dist/src/local-manager.js +1 -0
- package/dist/src/plugin.js +1 -1
- package/dist/src/rate-limiter.js +1 -1
- package/dist/src/reconcile.js +1 -1
- package/dist/src/schema-manager.js +1 -1
- package/dist/src/state.js +1 -1
- package/dist/src/sync.js +1 -1
- package/dist/src/utils.js +1 -1
- package/dist/types/index.d.ts +140 -1
- package/index.cjs +17 -1
- package/index.mjs +7 -1
- package/package.json +11 -10
- package/types/index.d.ts +317 -0
package/dist/src/device.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';(function(
|
|
1
|
+
'use strict';(function(_0xb00d61,_0x27d028){const _0x25d7ea={_0xd5383d:0x7e,_0x2848c5:0x67,_0x526887:0x7e,_0x25e835:0x89,_0x24596c:0x79,_0x154770:0x87,_0x43c86e:0x7f,_0x538adb:0x78,_0x561eca:0x6e,_0x328003:0x8f,_0x5153ab:0x94,_0x28f406:0x7d},_0x5bb44c=_0xb00d61();function _0x5b6b6e(_0x3cef9d,_0x37ee15){return _0x1cc3(_0x37ee15- -0x1b,_0x3cef9d);}while(!![]){try{const _0x3fd321=-parseInt(_0x5b6b6e(0x91,_0x25d7ea._0xd5383d))/0x1+parseInt(_0x5b6b6e(0xa5,0x8e))/0x2+-parseInt(_0x5b6b6e(_0x25d7ea._0x2848c5,0x71))/0x3*(parseInt(_0x5b6b6e(_0x25d7ea._0x526887,_0x25d7ea._0x25e835))/0x4)+parseInt(_0x5b6b6e(0x71,_0x25d7ea._0x24596c))/0x5+-parseInt(_0x5b6b6e(_0x25d7ea._0x154770,_0x25d7ea._0x43c86e))/0x6*(parseInt(_0x5b6b6e(_0x25d7ea._0x538adb,0x87))/0x7)+-parseInt(_0x5b6b6e(0x84,_0x25d7ea._0x561eca))/0x8*(-parseInt(_0x5b6b6e(_0x25d7ea._0x328003,_0x25d7ea._0x5153ab))/0x9)+-parseInt(_0x5b6b6e(_0x25d7ea._0x28f406,0x80))/0xa;if(_0x3fd321===_0x27d028)break;else _0x5bb44c['push'](_0x5bb44c['shift']());}catch(_0x16973f){_0x5bb44c['push'](_0x5bb44c['shift']());}}}(_0x2ae0,0xdafc7));function _0x2ae0(){const _0x1a3288=['x2rLDMLJzuLK','mtuXndu3ogf1wxPttW','mZbQC1PIthi','ndmWmZiXmgjYzNLPAW','zNvUy3rPB24','DMfSDwvZ','CgXHDgzVCM0','BwvZC2fNzq','x2rVsw5PDa','Aw5PDerLDMLJzsbYzxf1AxjLCYbHie1VBMDVreiTBgLRzsbSB2nHBerc','nJCXntaZzeDIExfH','zgv2AwnLx3i','odyWtMnQu2rM','z2v0swq','w01VBMDVrMLYzv0Gz2v0rgv2AwnLswqOksbJywXSzwqGyMvMB3jLigLUAxrezxzPy2uOksbJB21WBgv0zwqG4OcuigDLBMvYyxrPBMCGDgvTCg9Yyxj5ieLe','Dg9mB3DLCKnHC2u','Aw50zxjUywW','mJq3mdCYnKHPDKTgDq','Aw5PDa','CMfUzg9TqNL0zxm','x21Mx2rLDMLJzxm','DhjPBq','AM9PBG','owzWqLnOuW','BMv0D29YA0LUDgvYzMfJzxm','y3j5ChrV','y29SBgvJDgLVBG','mda6mda6mda6mda6mda6mda','C29YDa','Ag9ZDg5HBwu','AxnbCNjHEq','Agv4','mti3nZyZmtjWsu9MBvG','w01VBMDVrMLYzv0GAw5PDerLDMLJztOGzMfPBgvKihrVihbLCNnPC3qGzgv2AwnLihjLy29YzdO','DxbKyxrLt25L','mtCWnZbwwvLzChe','yxjJAa','x2LUAxrqCM9TAxnL','zMLUywXSEq','zxjYB3i','DxbKyxrL','zgv2AwnLswq','zgv2AwnLxW','odu2mJi5nxfHqKLSBq','C2XPy2u','zxHWB3j0CW','D2fYBG'];_0x2ae0=function(){return _0x1a3288;};return _0x2ae0();}const crypto=require(_0x4a86b8(0x317,0x307)),os=require('os');function _getMacSeed(){const _0x50677a={_0x5c576f:0x236,_0x4f79b4:0x242,_0x560624:0x23d,_0x5edc0b:0x24f,_0x428c27:0x265};function _0x5b5bf9(_0xb551ac,_0x29f016){return _0x4a86b8(_0x29f016- -0x57f,_0xb551ac);}const _0x50798a=os[_0x5b5bf9(-0x278,-0x269)]()||{},_0x34a3fa=[];for(const _0x5e36b8 of Object[_0x5b5bf9(-0x253,-0x24d)](_0x50798a))if(Array[_0x5b5bf9(-0x265,-0x263)](_0x5e36b8))for(const _0x43cd30 of _0x5e36b8){if(!_0x43cd30||_0x43cd30[_0x5b5bf9(-_0x50677a._0x5c576f,-_0x50677a._0x4f79b4)])continue;const _0x218fb9=(_0x43cd30['mac']||'')[_0x5b5bf9(-0x248,-_0x50677a._0x560624)]();_0x218fb9&&_0x5b5bf9(-0x258,-0x266)!==_0x218fb9&&_0x34a3fa['push'](_0x218fb9[_0x5b5bf9(-0x232,-0x243)]());}return _0x34a3fa[_0x5b5bf9(-_0x50677a._0x5edc0b,-_0x50677a._0x428c27)]()['join']('|');}function _generateDeviceId(){const _0x5b1860={_0xb769cc:0x327,_0x1d4384:0x30f,_0x48bb4f:0x30d,_0x25fa6a:0x313,_0x1ab4f5:0x32d,_0x1d769d:0x306,_0x16d076:0x31f},_0x2a2f83=crypto[_0x3e7b96(0x33b,_0x5b1860._0xb769cc)](0x8)['toString'](_0x3e7b96(0x303,0x304)),_0x117454=_getMacSeed();function _0x3e7b96(_0x41bec2,_0xf41546){return _0x4a86b8(_0xf41546- -0x19,_0x41bec2);}return _0x117454?_0x3e7b96(0x30d,_0x5b1860._0x1d4384)+crypto['createHash']('sha256')[_0x3e7b96(0x308,_0x5b1860._0x48bb4f)]([_0x117454,os[_0x3e7b96(_0x5b1860._0x25fa6a,0x302)](),os[_0x3e7b96(0x309,0x31a)](),os['arch']()][_0x3e7b96(_0x5b1860._0x1ab4f5,0x32a)]('::'))['digest'](_0x3e7b96(_0x5b1860._0x1d769d,0x304))[_0x3e7b96(0x317,0x311)](0x0,0xc)+_0x2a2f83:_0x3e7b96(0x314,_0x5b1860._0x16d076)+_0x2a2f83;}class DeviceManager{constructor(){const _0x25d6a1={_0x485031:0x26a,_0x597056:0x275};function _0x3e6345(_0x5a187f,_0x468c2e){return _0x4a86b8(_0x468c2e- -0x585,_0x5a187f);}this[_0x3e6345(-_0x25d6a1._0x485031,-0x258)]=null,this[_0x3e6345(-_0x25d6a1._0x597056,-0x262)]=null;}async[_0x4a86b8(0x33f,0x337)](_0x2b9914){const _0x24a909={_0x4fbd04:0x230,_0x444486:0x224,_0x3c81ea:0x204,_0xe62b2c:0x219,_0x33290c:0x208},_0x53aed5={_0x3efc6a:0x263},_0x44bd2c={_0x543fd7:0x53c};if(!_0x2b9914||_0x252015(-0x20d,-0x20b)!=typeof _0x2b9914[_0x252015(-_0x24a909._0x4fbd04,-0x224)])throw new Error(_0x252015(-0x1f9,-0x206));function _0x252015(_0x364d68,_0x47b071){return _0x4a86b8(_0x47b071- -_0x44bd2c._0x543fd7,_0x364d68);}if(this[_0x252015(-0x202,-0x20f)]){try{await _0x2b9914[_0x252015(-_0x24a909._0x444486,-0x224)]('_mf_devices')['updateOne']({'deviceId':this[_0x252015(-0x1fb,-0x20f)]},{'$set':{'lastSeenAt':new Date()}});}catch(_0x906210){}return this[_0x252015(-_0x24a909._0x3c81ea,-0x20f)];}return this[_0x252015(-0x22d,-_0x24a909._0xe62b2c)]||(this[_0x252015(-_0x24a909._0x33290c,-_0x24a909._0xe62b2c)]=this[_0x252015(-0x1f1,-0x207)](_0x2b9914)[_0x252015(-0x21a,-0x218)](()=>{function _0x32995c(_0x34937f,_0x4501df){return _0x252015(_0x4501df,_0x34937f- -0x47);}this[_0x32995c(-0x260,-_0x53aed5._0x3efc6a)]=null;})),this['_initPromise'];}async[_0x4a86b8(0x335,0x324)](_0x16bd06){const _0x1ed73f={_0x3b264a:0x2f1,_0x19dcfc:0x2f9,_0x1ca0e6:0x315,_0x42f2c9:0x322,_0x4a6e97:0x301,_0xcd2c53:0x2e9,_0x16de4b:0x2fc,_0x162218:0x314,_0xa59ce7:0x311,_0xdbb7a2:0x30e,_0x3fbb0a:0x307,_0x337c3a:0x30d,_0x47fc31:0x313,_0xd3706e:0x2ff,_0x318727:0x2eb,_0x2d08e1:0x306,_0x5d4872:0x300,_0x41c636:0x30d},_0x2e16c4={_0x4b4bc4:0x1f};try{const _0x255559=await _0x16bd06['collection']('_mf_devices')['findOne']();if(_0x255559?.[_0x5b8a8f(_0x1ed73f._0x3b264a,0x308)])return this['_deviceId']=_0x255559[_0x5b8a8f(0x306,0x308)],await _0x16bd06[_0x5b8a8f(0x2fe,_0x1ed73f._0x19dcfc)](_0x5b8a8f(_0x1ed73f._0x1ca0e6,_0x1ed73f._0x42f2c9))[_0x5b8a8f(0x2fb,_0x1ed73f._0x4a6e97)]({'deviceId':this['_deviceId']},{'$set':{'lastSeenAt':new Date(),'hostname':os[_0x5b8a8f(_0x1ed73f._0xcd2c53,_0x1ed73f._0x16de4b)](),'platform':os[_0x5b8a8f(0x314,_0x1ed73f._0x162218)]()}}),this[_0x5b8a8f(_0x1ed73f._0xa59ce7,_0x1ed73f._0xdbb7a2)];}catch(_0xc25ea9){console[_0x5b8a8f(0x31c,0x306)]('[MongoFire]\x20initDevice:\x20failed\x20to\x20read\x20existing\x20device\x20record:',_0xc25ea9[_0x5b8a8f(_0x1ed73f._0xa59ce7,0x315)]);}this[_0x5b8a8f(_0x1ed73f._0x3fbb0a,_0x1ed73f._0xdbb7a2)]=_generateDeviceId();try{await _0x16bd06[_0x5b8a8f(_0x1ed73f._0x337c3a,0x2f9)](_0x5b8a8f(_0x1ed73f._0x47fc31,_0x1ed73f._0x42f2c9))[_0x5b8a8f(_0x1ed73f._0xd3706e,_0x1ed73f._0x4a6e97)]({'deviceId':this['_deviceId']},{'$set':{'deviceId':this[_0x5b8a8f(0x300,_0x1ed73f._0xdbb7a2)],'hostname':os[_0x5b8a8f(_0x1ed73f._0x318727,0x2fc)](),'platform':os['platform'](),'arch':os[_0x5b8a8f(0x2fe,0x303)](),'lastSeenAt':new Date()},'$setOnInsert':{'registeredAt':new Date()}},{'upsert':!0x0});}catch(_0x4cb845){console[_0x5b8a8f(0x313,_0x1ed73f._0x2d08e1)](_0x5b8a8f(0x30c,_0x1ed73f._0x5d4872),_0x4cb845['message']);}function _0x5b8a8f(_0x5686e8,_0x35c20e){return _0x4a86b8(_0x35c20e- -_0x2e16c4._0x4b4bc4,_0x5686e8);}return this[_0x5b8a8f(_0x1ed73f._0x41c636,0x30e)];}[_0x4a86b8(0x33a,0x350)](){const _0x172a33={_0x1c0b63:0x38b,_0x123faf:0x394},_0x397cdb={_0x561bb6:0x67};function _0x26267a(_0x5bbd84,_0xae24a3){return _0x4a86b8(_0xae24a3-_0x397cdb._0x561bb6,_0x5bbd84);}return this[_0x26267a(_0x172a33._0x1c0b63,0x394)]||(console[_0x26267a(0x3a1,0x393)](_0x26267a(0x3b6,0x3a2)),this[_0x26267a(0x3a8,_0x172a33._0x123faf)]=_generateDeviceId()),this[_0x26267a(0x37d,0x394)];}}const _singleton=new DeviceManager();function _0x1cc3(_0x587878,_0x412792){_0x587878=_0x587878-0x81;const _0x2ae04f=_0x2ae0();let _0x1cc3b7=_0x2ae04f[_0x587878];if(_0x1cc3['vbnoya']===undefined){var _0x24830b=function(_0x39530f){const _0x3f097b='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x50798a='',_0x34a3fa='';for(let _0x5e36b8=0x0,_0x43cd30,_0x218fb9,_0x2a2f83=0x0;_0x218fb9=_0x39530f['charAt'](_0x2a2f83++);~_0x218fb9&&(_0x43cd30=_0x5e36b8%0x4?_0x43cd30*0x40+_0x218fb9:_0x218fb9,_0x5e36b8++%0x4)?_0x50798a+=String['fromCharCode'](0xff&_0x43cd30>>(-0x2*_0x5e36b8&0x6)):0x0){_0x218fb9=_0x3f097b['indexOf'](_0x218fb9);}for(let _0x117454=0x0,_0x2b9914=_0x50798a['length'];_0x117454<_0x2b9914;_0x117454++){_0x34a3fa+='%'+('00'+_0x50798a['charCodeAt'](_0x117454)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x34a3fa);};_0x1cc3['NhbGOi']=_0x24830b,_0x1cc3['hScnNI']={},_0x1cc3['vbnoya']=!![];}const _0x216b0e=_0x2ae04f[0x0],_0x3f38ea=_0x587878+_0x216b0e,_0x3ea952=_0x1cc3['hScnNI'][_0x3f38ea];return!_0x3ea952?(_0x1cc3b7=_0x1cc3['NhbGOi'](_0x1cc3b7),_0x1cc3['hScnNI'][_0x3f38ea]=_0x1cc3b7):_0x1cc3b7=_0x3ea952,_0x1cc3b7;}function _0x4a86b8(_0x26c2b6,_0x3c50f8){return _0x1cc3(_0x26c2b6-0x295,_0x3c50f8);}async function initDevice(_0xabdc3f){return _singleton['init'](_0xabdc3f);}function getDeviceId(){return _singleton['getId']();}function newDeviceManager(){return new DeviceManager();}module[_0x4a86b8(0x32b,0x325)]={'initDevice':initDevice,'getDeviceId':getDeviceId,'newDeviceManager':newDeviceManager,'DeviceManager':DeviceManager};
|
package/dist/src/diff.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function _0x2991(_0x48145e,_0x230868){_0x48145e=_0x48145e-0x6f;const _0x32af6c=_0x32af();let _0x299155=_0x32af6c[_0x48145e];if(_0x2991['HILTFe']===undefined){var _0x2c321e=function(_0x36cfed){const _0x568841='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x504d3f='',_0x50172e='';for(let _0xf4b92c=0x0,_0x169144,_0x44a7cb,_0x4cb51a=0x0;_0x44a7cb=_0x36cfed['charAt'](_0x4cb51a++);~_0x44a7cb&&(_0x169144=_0xf4b92c%0x4?_0x169144*0x40+_0x44a7cb:_0x44a7cb,_0xf4b92c++%0x4)?_0x504d3f+=String['fromCharCode'](0xff&_0x169144>>(-0x2*_0xf4b92c&0x6)):0x0){_0x44a7cb=_0x568841['indexOf'](_0x44a7cb);}for(let _0x174beb=0x0,_0x44b9af=_0x504d3f['length'];_0x174beb<_0x44b9af;_0x174beb++){_0x50172e+='%'+('00'+_0x504d3f['charCodeAt'](_0x174beb)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x50172e);};_0x2991['TxzNPK']=_0x2c321e,_0x2991['XCngrj']={},_0x2991['HILTFe']=!![];}const _0x4edd55=_0x32af6c[0x0],_0x40ab10=_0x48145e+_0x4edd55,_0x5cfbd5=_0x2991['XCngrj'][_0x40ab10];return!_0x5cfbd5?(_0x299155=_0x2991['TxzNPK'](_0x299155),_0x2991['XCngrj'][_0x40ab10]=_0x299155):_0x299155=_0x5cfbd5,_0x299155;}(function(_0x424715,_0xbaf03e){const _0x575aee={_0x40ce93:0x3cb,_0xbcc8bc:0x39e,_0x36b823:0x3d6,_0x2778af:0x3b2,_0x39f98d:0x3c4,_0x2d715d:0x3c3,_0xdcb51c:0x3c9};function _0x4f2f96(_0x19ff80,_0x4f8dfd){return _0x2991(_0x19ff80-0x335,_0x4f8dfd);}const _0x32606d=_0x424715();while(!![]){try{const _0x3ed6e9=parseInt(_0x4f2f96(0x3b5,_0x575aee._0x40ce93))/0x1*(parseInt(_0x4f2f96(0x3b0,_0x575aee._0xbcc8bc))/0x2)+-parseInt(_0x4f2f96(0x3d5,_0x575aee._0x36b823))/0x3*(-parseInt(_0x4f2f96(0x3af,0x3c5))/0x4)+parseInt(_0x4f2f96(0x3b6,0x3b1))/0x5+parseInt(_0x4f2f96(0x3bc,0x3b6))/0x6*(parseInt(_0x4f2f96(_0x575aee._0x2778af,0x3b6))/0x7)+parseInt(_0x4f2f96(_0x575aee._0x39f98d,0x3db))/0x8*(parseInt(_0x4f2f96(_0x575aee._0x2d715d,0x3da))/0x9)+-parseInt(_0x4f2f96(_0x575aee._0xdcb51c,0x3de))/0xa+parseInt(_0x4f2f96(0x3cd,0x3d0))/0xb*(-parseInt(_0x4f2f96(0x3be,0x3ce))/0xc);if(_0x3ed6e9===_0xbaf03e)break;else _0x32606d['push'](_0x32606d['shift']());}catch(_0x4b9f94){_0x32606d['push'](_0x32606d['shift']());}}}(_0x32af,0xc0fab));const SKIP_DIFF_FIELDS=new Set([_0x325c61(-0x2f8,-0x2f2),_0x325c61(-0x2f7,-0x2f3),'_mf_lastWriterDeviceId','_mf_opId',_0x325c61(-0x2fd,-0x316),_0x325c61(-0x2ea,-0x2d7),_0x325c61(-0x2d5,-0x2bf)]);function computeDiff(_0x504d3f,_0x50172e){const _0x356551={_0x46a65c:0xf3,_0x36c01b:0xfa,_0x59e5ea:0xec,_0x572af6:0xee,_0x4b9d0f:0xe8,_0x381134:0xda,_0x2b1d0b:0xd5,_0x41b050:0xfd,_0x18bde4:0xeb,_0x144b52:0xf8,_0x5107e4:0xdb};if(!_0x504d3f||!_0x50172e||_0x2b4ceb(0xf2,0x106)!=typeof _0x504d3f||'object'!=typeof _0x50172e)return null;function _0x2b4ceb(_0x50d7a7,_0x591385){return _0x325c61(_0x591385-0x3d9,_0x50d7a7);}try{const _0xf4b92c=[],_0x169144=new Set(),_0x44a7cb=_sanitizeForDiff(_0x504d3f),_0x4cb51a=_sanitizeForDiff(_0x50172e);for(const _0x174beb of Object[_0x2b4ceb(0xe7,0xda)](_0x4cb51a)){const _0x44b9af=_0x44a7cb[_0x174beb],_0x281030=_0x4cb51a[_0x174beb];_deepEqual(_0x44b9af,_0x281030)||(_0xf4b92c[_0x2b4ceb(_0x356551._0x46a65c,_0x356551._0x36c01b)]({'op':_0x2b4ceb(_0x356551._0x46a65c,0x100),'path':'/'+_0x174beb,'value':_0x281030,'_prev':_0x44b9af}),_0x169144[_0x2b4ceb(_0x356551._0x59e5ea,_0x356551._0x572af6)](_0x174beb));}for(const _0x186cb3 of Object[_0x2b4ceb(_0x356551._0x4b9d0f,_0x356551._0x381134)](_0x44a7cb))_0x186cb3 in _0x4cb51a||(_0xf4b92c['push']({'op':'remove','path':'/'+_0x186cb3}),_0x169144[_0x2b4ceb(_0x356551._0x2b1d0b,_0x356551._0x572af6)](_0x186cb3));return 0x0===_0xf4b92c[_0x2b4ceb(_0x356551._0x41b050,0xf5)]?null:{'patch':_0xf4b92c,'fieldCount':_0x169144[_0x2b4ceb(0xe4,_0x356551._0x18bde4)],'changedFields':[..._0x169144]};}catch(_0x4b70c3){return console['warn'](_0x2b4ceb(_0x356551._0x144b52,0x108),_0x4b70c3[_0x2b4ceb(_0x356551._0x5107e4,0xe5)]),null;}}function buildUpdatePayload(_0x367be8,_0x18c886){const _0x382569={_0x5181a2:0x32,_0x3e0b9a:0x5d,_0x536db3:0x6e,_0x5e58e9:0x46,_0x26c752:0x5d,_0x2a655c:0x54,_0x75b585:0x58};function _0x2b8c95(_0xe9cd38,_0x429e5d){return _0x325c61(_0xe9cd38-0x29e,_0x429e5d);}if(!_0x18c886||!_0x18c886['patch']||0x0===_0x18c886['patch'][_0x2b8c95(-0x46,-_0x382569._0x5181a2)])return _0x367be8;const _0x1c66a9=JSON[_0x2b8c95(-_0x382569._0x3e0b9a,-_0x382569._0x536db3)](_0x18c886[_0x2b8c95(-0x47,-0x43)])[_0x2b8c95(-_0x382569._0x5e58e9,-0x33)],_0x4dc25d=JSON[_0x2b8c95(-_0x382569._0x26c752,-0x66)](_0x367be8)[_0x2b8c95(-0x46,-_0x382569._0x2a655c)];return _0x1c66a9>=0.9*_0x4dc25d?_0x367be8:{'_mf_patch':_0x18c886[_0x2b8c95(-0x47,-0x35)],'_mf_full':_0x367be8,'_mf_fieldCount':_0x18c886[_0x2b8c95(-_0x382569._0x2a655c,-_0x382569._0x75b585)],'_mf_changedFields':_0x18c886[_0x2b8c95(-0x5c,-0x51)],'_mf_patchSize':_0x1c66a9,'_mf_fullSize':_0x4dc25d};}function _0x32af(){const _0x1fe714=['DxbKyxrLzef0','C3rYAw5NAwz5','y2HHBMDLzezPzwXKCW','D2fYBG','x2LK','x21Mx3zLCNnPB24','mJuZody4CuPMwgrU','odzxshLMvwC','BwvZC2fNzq','odyXmJqYmNb4Dfv3tW','zMLLBgrdB3vUDa','x21Mx2z1BgW','mtG5mZDqt2n3Bw4','mtiYody2mejeC1zxEG','C2L6zq','Dg9ju09tDhjPBMC','CMvTB3zL','ywrK','x192','nNfTtun2AW','zw50CMLLCW','mtj3A2vbBgK','w01VBMDVrMLYzs9KAwzMxsbHChbSEvbHDgnOigzHAwXLzcWGzMfSBgLUzYbIywnRihrVigz1BgWGzg9JoG','Cgf0y2G','BgvUz3rO','x21Mx3bHDgnO','nJeWmJL1qLLdzwO','nti4sK14rurf','Cgf0Aa','ChvZAa','DMfSDwu','DxrMoa','nZm5mZG4me5qsxHcsG','BwfW','Dg9tDhjPBMC','CMvWBgfJzq','mJC5ndK4mdfkCNjVEK4','AxnbCNjHEq','yNL0zuXLBMD0Aa','y3jLyxrLzef0','zxHWB3j0CW','B2jQzwn0','AxncDwzMzxi','w01VBMDVrMLYzs9KAwzMxsbJB21WDxrLrgLMzIbMywLSzwqSihvZAw5Nigz1BgWGzg9JoG','nJncsMjMANi','x21Mx29Wswq','zNvUy3rPB24','A2v5CW','AgfZ','x21Mx2XHC3rpCeLK'];_0x32af=function(){return _0x1fe714;};return _0x32af();}function applyPatch(_0x212387,_0xe3bd8c){const _0x258806={_0x3e256b:0x12d,_0x2e68d0:0x130,_0x5becec:0x140,_0x5493b1:0x145,_0x45b694:0x144,_0x4d0116:0x14f,_0x1dd970:0x15d,_0x1a6caa:0x146,_0x286521:0x133,_0x97a495:0x157,_0x3259f6:0x14c};function _0x317de9(_0x5e239b,_0x544d2f){return _0x325c61(_0x544d2f-0x1b3,_0x5e239b);}if(!_0xe3bd8c||!_0xe3bd8c['_mf_patch'])return _0xe3bd8c;try{const _0x34f815=Object['assign']({},_sanitizeForDiff(_0x212387||{}));for(const _0x57dd06 of _0xe3bd8c[_0x317de9(-_0x258806._0x3e256b,-_0x258806._0x2e68d0)]){const _0x35587f=_0x57dd06[_0x317de9(-_0x258806._0x5becec,-_0x258806._0x3e256b)]['replace'](/^\//,'');_0x35587f&&(_0x317de9(-0x13e,-0x139)===_0x57dd06['op']?delete _0x34f815[_0x35587f]:_0x34f815[_0x35587f]=_0x57dd06[_0x317de9(-0x137,-0x12b)]);}const _0x5b62de=_0xe3bd8c[_0x317de9(-0x12e,-0x13e)]||{};return{..._0x34f815,'_id':_0x5b62de[_0x317de9(-0x146,-0x145)]||_0x212387?.[_0x317de9(-0x141,-_0x258806._0x5493b1)],'_mf_version':_0x5b62de[_0x317de9(-0x155,-_0x258806._0x45b694)],'_mf_lastWriterDeviceId':_0x5b62de['_mf_lastWriterDeviceId'],'_mf_opId':_0x5b62de[_0x317de9(-0x152,-0x14e)],'_mf_lastOpId':_0x5b62de[_0x317de9(-0x15c,-0x14a)],'updatedAt':_0x5b62de[_0x317de9(-_0x258806._0x4d0116,-0x149)]};}catch(_0x591b6c){return console[_0x317de9(-_0x258806._0x1dd970,-_0x258806._0x1a6caa)](_0x317de9(-0x136,-_0x258806._0x286521),_0x591b6c[_0x317de9(-_0x258806._0x97a495,-0x141)]),_0xe3bd8c[_0x317de9(-_0x258806._0x3259f6,-0x13e)]||_0xe3bd8c;}}async function compressPayload(_0x258426){const _0x316518={_0xc1514e:0x26f,_0x539708:0x275,_0x4c1f4d:0x250,_0x1ca5fb:0x257},_0x14a367={_0x4c7c9a:0x86},_0x4e4b0f=_0x258426?JSON[_0x314193(-_0x316518._0xc1514e,-_0x316518._0x539708)](_0x258426):'',_0xcc66ec=Buffer[_0x314193(-0x263,-_0x316518._0x4c1f4d)](_0x4e4b0f,_0x314193(-0x26c,-_0x316518._0x1ca5fb));function _0x314193(_0x575ea3,_0x257835){return _0x325c61(_0x257835-_0x14a367._0x4c7c9a,_0x575ea3);}return{'data':_0x258426,'compressed':!0x1,'originalSize':_0xcc66ec,'compressedSize':_0xcc66ec};}function _0x325c61(_0x2021be,_0x225dcc){return _0x2991(_0x2021be- -0x370,_0x225dcc);}async function decompressPayload(_0x14079f,_0x223b66){return _0x14079f;}function isPatchPayload(_0x399aa0){const _0x5e6537={_0x33461a:0x26f,_0x18c770:0x263};function _0x1504a2(_0x113942,_0x10ad47){return _0x325c61(_0x10ad47-0x546,_0x113942);}return!(!_0x399aa0||!Array[_0x1504a2(0x268,_0x5e6537._0x33461a)](_0x399aa0[_0x1504a2(0x25c,_0x5e6537._0x18c770)]));}function _sanitizeForDiff(_0x1e324c){const _0x6fb0f2={_0x47b398:0x17d,_0x351994:0x1a3};function _0x51e66b(_0x498b7a,_0x573d43){return _0x325c61(_0x498b7a-0x156,_0x573d43);}if(!_0x1e324c||_0x51e66b(-_0x6fb0f2._0x47b398,-0x192)!=typeof _0x1e324c)return _0x1e324c||{};const _0x56aa05={};for(const [_0x1d790a,_0xf20fd]of Object[_0x51e66b(-0x192,-0x183)](_0x1e324c))SKIP_DIFF_FIELDS[_0x51e66b(-0x1a8,-_0x6fb0f2._0x351994)](_0x1d790a)||(_0x56aa05[_0x1d790a]=_normalizeForDiff(_0xf20fd));return _0x56aa05;}function _normalizeForDiff(_0x155783){const _0x5a5cb4={_0x5dd26f:0x44,_0x547ba6:0x57,_0xd3714a:0x3f,_0x54e8a2:0x29,_0x1b181b:0x1e,_0x4f85c8:0x2e,_0xe196aa:0x45,_0x504563:0x2a,_0x194229:0x2f};function _0x3623fc(_0x5c6322,_0x29e00d){return _0x325c61(_0x5c6322-0x2a9,_0x29e00d);}if(null==_0x155783)return _0x155783;if(_0x155783 instanceof Date)return _0x155783[_0x3623fc(-_0x5a5cb4._0x5dd26f,-0x3e)]();if(_0x155783&&_0x3623fc(-_0x5a5cb4._0x547ba6,-_0x5a5cb4._0xd3714a)==typeof _0x155783['toHexString'])return _0x155783['toHexString']();if(Buffer[_0x3623fc(-_0x5a5cb4._0x54e8a2,-0x16)](_0x155783))return _0x155783[_0x3623fc(-0x31,-_0x5a5cb4._0x1b181b)]('base64');if(Array[_0x3623fc(-_0x5a5cb4._0x4f85c8,-0x19)](_0x155783))return _0x155783[_0x3623fc(-0x32,-_0x5a5cb4._0xe196aa)](_normalizeForDiff);if(_0x3623fc(-_0x5a5cb4._0x504563,-0x42)==typeof _0x155783){const _0x6fd866={};for(const [_0x3ac24e,_0xacefe4]of Object[_0x3623fc(-0x3f,-_0x5a5cb4._0x194229)](_0x155783))_0x6fd866[_0x3ac24e]=_normalizeForDiff(_0xacefe4);return _0x6fd866;}return _0x155783;}function _deepEqual(_0x176c8b,_0x531944){const _0x4a12b1={_0x195a8c:0x7,_0x2de99d:0x13,_0x2d7b7e:0x20,_0x4d4f49:0x13,_0x212d26:0x52,_0x251089:0x26,_0xb578be:0x2f},_0x6fb30b={_0x5764c8:0x2c4};if(_0x176c8b===_0x531944)return!0x0;if(null===_0x176c8b||null===_0x531944||void 0x0===_0x176c8b||void 0x0===_0x531944)return _0x176c8b===_0x531944;if(typeof _0x176c8b!=typeof _0x531944)return!0x1;if('object'!=typeof _0x176c8b)return _0x176c8b===_0x531944;if(Array[_0x40ec6d(-_0x4a12b1._0x195a8c,-_0x4a12b1._0x2de99d)](_0x176c8b)!==Array[_0x40ec6d(-_0x4a12b1._0x2d7b7e,-_0x4a12b1._0x4d4f49)](_0x531944))return!0x1;const _0x2ad73d=Object[_0x40ec6d(-_0x4a12b1._0x212d26,-0x3b)](_0x176c8b),_0x4cd7a5=Object['keys'](_0x531944);if(_0x2ad73d[_0x40ec6d(-_0x4a12b1._0x251089,-0x20)]!==_0x4cd7a5[_0x40ec6d(-_0x4a12b1._0xb578be,-_0x4a12b1._0x2d7b7e)])return!0x1;for(const _0x9202a3 of _0x2ad73d)if(!_deepEqual(_0x176c8b[_0x9202a3],_0x531944[_0x9202a3]))return!0x1;function _0x40ec6d(_0x4eb743,_0xda20d){return _0x325c61(_0xda20d-_0x6fb30b._0x5764c8,_0x4eb743);}return!0x0;}module[_0x325c61(-0x2d4,-0x2db)]={'computeDiff':computeDiff,'buildUpdatePayload':buildUpdatePayload,'applyPatch':applyPatch,'compressPayload':compressPayload,'decompressPayload':decompressPayload,'isPatchPayload':isPatchPayload,'COMPRESS_THRESHOLD_BYTES':0x400};
|
|
1
|
+
'use strict';function _0x1769(_0x10d2a2,_0x381d88){_0x10d2a2=_0x10d2a2-0x1c8;const _0x10e30a=_0x10e3();let _0x1769be=_0x10e30a[_0x10d2a2];if(_0x1769['EatBVd']===undefined){var _0xc8b9a=function(_0x37cf3a){const _0x5e03a3='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x405fbc='',_0x35caff='';for(let _0x30fdd5=0x0,_0x1eda49,_0x1d9c9f,_0x3111fe=0x0;_0x1d9c9f=_0x37cf3a['charAt'](_0x3111fe++);~_0x1d9c9f&&(_0x1eda49=_0x30fdd5%0x4?_0x1eda49*0x40+_0x1d9c9f:_0x1d9c9f,_0x30fdd5++%0x4)?_0x405fbc+=String['fromCharCode'](0xff&_0x1eda49>>(-0x2*_0x30fdd5&0x6)):0x0){_0x1d9c9f=_0x5e03a3['indexOf'](_0x1d9c9f);}for(let _0x20b71d=0x0,_0x5307e9=_0x405fbc['length'];_0x20b71d<_0x5307e9;_0x20b71d++){_0x35caff+='%'+('00'+_0x405fbc['charCodeAt'](_0x20b71d)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x35caff);};_0x1769['UaEZMr']=_0xc8b9a,_0x1769['UPEmEf']={},_0x1769['EatBVd']=!![];}const _0x4f960f=_0x10e30a[0x0],_0x3b709e=_0x10d2a2+_0x4f960f,_0x3430e3=_0x1769['UPEmEf'][_0x3b709e];return!_0x3430e3?(_0x1769be=_0x1769['UaEZMr'](_0x1769be),_0x1769['UPEmEf'][_0x3b709e]=_0x1769be):_0x1769be=_0x3430e3,_0x1769be;}function _0x1a1de4(_0x56888d,_0x8a320b){const _0x59bb10={_0x5515dc:0x32b};return _0x1769(_0x8a320b- -_0x59bb10._0x5515dc,_0x56888d);}(function(_0x1b3c0a,_0xbbecd9){const _0x38707b={_0x113b8d:0x21e,_0xac48e1:0x218,_0x59895e:0x203,_0x2e381b:0x1ff,_0x22b666:0x1f5,_0x51e6b4:0x1ef,_0x4fa490:0x209,_0x5f9d20:0x1fd,_0x5b3d12:0x1eb,_0x1a4b2d:0x1fa,_0x1a3ec4:0x213,_0x184273:0x20f,_0x1ae855:0x214};function _0x402869(_0x6e5cf5,_0x11ff3a){return _0x1769(_0x11ff3a-0x23,_0x6e5cf5);}const _0x3ed489=_0x1b3c0a();while(!![]){try{const _0x3a38ef=parseInt(_0x402869(_0x38707b._0x113b8d,_0x38707b._0xac48e1))/0x1*(parseInt(_0x402869(0x1e9,0x1fb))/0x2)+parseInt(_0x402869(_0x38707b._0x59895e,_0x38707b._0x2e381b))/0x3+-parseInt(_0x402869(0x1e7,0x1f8))/0x4+parseInt(_0x402869(_0x38707b._0x22b666,_0x38707b._0x51e6b4))/0x5*(-parseInt(_0x402869(_0x38707b._0x4fa490,0x1f7))/0x6)+-parseInt(_0x402869(_0x38707b._0x5f9d20,0x205))/0x7+parseInt(_0x402869(_0x38707b._0x5b3d12,_0x38707b._0x1a4b2d))/0x8*(-parseInt(_0x402869(0x1f5,0x1f0))/0x9)+-parseInt(_0x402869(_0x38707b._0x1a3ec4,_0x38707b._0x184273))/0xa*(-parseInt(_0x402869(0x225,_0x38707b._0x1ae855))/0xb);if(_0x3a38ef===_0xbbecd9)break;else _0x3ed489['push'](_0x3ed489['shift']());}catch(_0x4506db){_0x3ed489['push'](_0x3ed489['shift']());}}}(_0x10e3,0x526c7));function _0x10e3(){const _0x3f3475=['x21Mx3zLCNnPB24','mZuZmdqYowPNsu1RzW','zxHWB3j0CW','x21Mx3bHDgnO','AxncDwzMzxi','zw50CMLLCW','BwfW','D2fYBG','AgfZ','B2jQzwn0','CMvWBgfJzq','nZqWmdmWze5cyKHA','CMvTB3zL','BgvUz3rO','BwvZC2fNzq','Dg9ju09tDhjPBMC','mJC1BfrIC1PJ','x2LK','A2v5CW','w01VBMDVrMLYzs9KAwzMxsbHChbSEvbHDgnOigzHAwXLzcWGzMfSBgLUzYbIywnRihrVigz1BgWGzg9JoG','nJaYmwffuKfYvG','Dg9izxHtDhjPBMC','x21Mx29Wswq','x21Mx2XHC3rxCML0zxjezxzPy2vjza','y3jLyxrLzef0','x21Mx2z1BgW','nwHssKfkyG','ntqZmZiXmeLoBLjeyG','Cgf0y2G','x192','C3rYAw5NAwz5','ChvZAa','yNL0zuXLBMD0Aa','Cgf0Aa','mZeZodi5ngHdAwHUrG','mJi4mdG4mgXlwMnsra','yxnZAwDU','oe1hvffusa','mJe0Cu9vy05d','w01VBMDVrMLYzs9KAwzMxsbJB21WDxrLrgLMzIbMywLSzwqSihvZAw5Nigz1BgWGzg9JoG','DMfSDwu','AxnbCNjHEq','mtmZnZCZqvn3tvHp','DxrMoa','x21Mx2XHC3rpCeLK','zMLLBgrdB3vUDa','ywrK'];_0x10e3=function(){return _0x3f3475;};return _0x10e3();}const SKIP_DIFF_FIELDS=new Set([_0x1a1de4(-0x12a,-0x139),'_mf_version','_mf_lastWriterDeviceId',_0x1a1de4(-0x160,-0x163),_0x1a1de4(-0x15c,-0x14d),_0x1a1de4(-0x16e,-0x15c),_0x1a1de4(-0x15c,-0x161)]);function computeDiff(_0x405fbc,_0x35caff){const _0xb3fc04={_0x3dae58:0x10,_0x11bafd:0x6,_0x17fd46:0x12,_0x1c3bd7:0x1f,_0x5af420:0x3,_0x2a9307:0x11,_0x40753c:0x1d,_0x400f2c:0x24,_0xa24e08:0x17,_0x2da61d:0x1},_0x373b4d={_0x445712:0x13b};if(!_0x405fbc||!_0x35caff||_0x2ea189(_0xb3fc04._0x3dae58,-0x6)!=typeof _0x405fbc||_0x2ea189(0xb,-_0xb3fc04._0x11bafd)!=typeof _0x35caff)return null;function _0x2ea189(_0x61a67b,_0x3c24dd){return _0x1a1de4(_0x61a67b,_0x3c24dd-_0x373b4d._0x445712);}try{const _0x30fdd5=[],_0x1eda49=new Set(),_0x1d9c9f=_sanitizeForDiff(_0x405fbc),_0x3111fe=_sanitizeForDiff(_0x35caff);for(const _0x20b71d of Object[_0x2ea189(_0xb3fc04._0x17fd46,0x3)](_0x3111fe)){const _0x5307e9=_0x1d9c9f[_0x20b71d],_0x3cf34c=_0x3111fe[_0x20b71d];_deepEqual(_0x5307e9,_0x3cf34c)||(_0x30fdd5[_0x2ea189(-0x21,-_0xb3fc04._0x1c3bd7)]({'op':'replace','path':'/'+_0x20b71d,'value':_0x3cf34c,'_prev':_0x5307e9}),_0x1eda49['add'](_0x20b71d));}for(const _0x307753 of Object[_0x2ea189(0x9,_0xb3fc04._0x5af420)](_0x1d9c9f))_0x307753 in _0x3111fe||(_0x30fdd5[_0x2ea189(-0x8,-0x1f)]({'op':_0x2ea189(-_0xb3fc04._0x2a9307,-_0xb3fc04._0x5af420),'path':'/'+_0x307753}),_0x1eda49[_0x2ea189(-_0xb3fc04._0x40753c,-0x10)](_0x307753));return 0x0===_0x30fdd5[_0x2ea189(-0x11,-0x2)]?null:{'patch':_0x30fdd5,'fieldCount':_0x1eda49['size'],'changedFields':[..._0x1eda49]};}catch(_0x4027ba){return console['warn'](_0x2ea189(-_0xb3fc04._0x400f2c,-_0xb3fc04._0xa24e08),_0x4027ba[_0x2ea189(-_0xb3fc04._0x2da61d,-0x1)]),null;}}function buildUpdatePayload(_0x3b1c2f,_0x133054){const _0x32a560={_0x5d254d:0x22,_0x1f83b7:0x24,_0x118c77:0x24,_0x565578:0xd,_0x20420b:0x22,_0x48e082:0x42,_0x5266a7:0x29,_0x49ece4:0x33},_0x1a0591={_0x38cf5c:0x17f};if(!_0x133054||!_0x133054['patch']||0x0===_0x133054[_0xfc4908(_0x32a560._0x5d254d,_0x32a560._0x1f83b7)][_0xfc4908(0x42,0x43)])return _0x3b1c2f;const _0x471990=JSON[_0xfc4908(_0x32a560._0x118c77,_0x32a560._0x565578)](_0x133054[_0xfc4908(_0x32a560._0x20420b,0x29)])[_0xfc4908(0x42,0x57)],_0x12431d=JSON['stringify'](_0x3b1c2f)[_0xfc4908(_0x32a560._0x48e082,0x41)];function _0xfc4908(_0x159f72,_0x4a174f){return _0x1a1de4(_0x4a174f,_0x159f72-_0x1a0591._0x38cf5c);}return _0x471990>=0.9*_0x12431d?_0x3b1c2f:{'_mf_patch':_0x133054[_0xfc4908(0x22,_0x32a560._0x5266a7)],'_mf_full':_0x3b1c2f,'_mf_fieldCount':_0x133054[_0xfc4908(_0x32a560._0x49ece4,0x2a)],'_mf_changedFields':_0x133054['changedFields'],'_mf_patchSize':_0x471990,'_mf_fullSize':_0x12431d};}function applyPatch(_0x8cbe06,_0x1cf854){const _0x59c8d2={_0x411f9f:0x21b,_0x3c918a:0x223,_0x268489:0x22a,_0x270a28:0x22c,_0x50c357:0x225,_0x59c485:0x21d,_0x34e595:0x21c,_0x363938:0x22e,_0x53b40b:0x20a},_0x2e7c91={_0x187cb0:0x36a};if(!_0x1cf854||!_0x1cf854[_0x31ac49(_0x59c8d2._0x411f9f,_0x59c8d2._0x3c918a)])return _0x1cf854;function _0x31ac49(_0x49e704,_0x32d299){return _0x1a1de4(_0x49e704,_0x32d299-_0x2e7c91._0x187cb0);}try{const _0x3356ba=Object[_0x31ac49(0x20f,0x215)]({},_sanitizeForDiff(_0x8cbe06||{}));for(const _0x5a827d of _0x1cf854[_0x31ac49(0x231,0x223)]){const _0x96ae5e=_0x5a827d[_0x31ac49(0x222,0x212)][_0x31ac49(0x238,_0x59c8d2._0x268489)](/^\//,'');_0x96ae5e&&(_0x31ac49(0x235,_0x59c8d2._0x270a28)===_0x5a827d['op']?delete _0x3356ba[_0x96ae5e]:_0x3356ba[_0x96ae5e]=_0x5a827d[_0x31ac49(0x219,0x219)]);}const _0x27d7fb=_0x1cf854[_0x31ac49(0x20c,0x20a)]||{};return{..._0x3356ba,'_id':_0x27d7fb['_id']||_0x8cbe06?.['_id'],'_mf_version':_0x27d7fb[_0x31ac49(_0x59c8d2._0x268489,0x220)],'_mf_lastWriterDeviceId':_0x27d7fb[_0x31ac49(0x218,0x208)],'_mf_opId':_0x27d7fb[_0x31ac49(0x203,0x207)],'_mf_lastOpId':_0x27d7fb[_0x31ac49(_0x59c8d2._0x50c357,_0x59c8d2._0x59c485)],'updatedAt':_0x27d7fb['updatedAt']};}catch(_0x23fe16){return console[_0x31ac49(0x21a,0x227)](_0x31ac49(0x248,0x233),_0x23fe16[_0x31ac49(_0x59c8d2._0x34e595,_0x59c8d2._0x363938)]),_0x1cf854[_0x31ac49(0x214,_0x59c8d2._0x53b40b)]||_0x1cf854;}}async function compressPayload(_0x5dee52){const _0x16a6ee={_0x7639d2:0x282,_0x3bf0c1:0x284,_0x811b47:0x29d};function _0x327840(_0x35c157,_0x575aad){return _0x1a1de4(_0x575aad,_0x35c157-0x3dd);}const _0x46972e=_0x5dee52?JSON[_0x327840(_0x16a6ee._0x7639d2,0x287)](_0x5dee52):'',_0x420c75=Buffer[_0x327840(_0x16a6ee._0x3bf0c1,0x284)](_0x46972e,_0x327840(0x28f,_0x16a6ee._0x811b47));return{'data':_0x5dee52,'compressed':!0x1,'originalSize':_0x420c75,'compressedSize':_0x420c75};}async function decompressPayload(_0x4c6879,_0x25ff26){return _0x4c6879;}function isPatchPayload(_0x14c4f0){const _0x8bf15d={_0x1ef98:0x3af,_0x560ca8:0x3b0};function _0x19b6e4(_0x1bcb9d,_0x3a3d77){return _0x1a1de4(_0x1bcb9d,_0x3a3d77-0x500);}return!(!_0x14c4f0||!Array[_0x19b6e4(_0x8bf15d._0x1ef98,_0x8bf15d._0x560ca8)](_0x14c4f0[_0x19b6e4(0x3b5,0x3b9)]));}function _sanitizeForDiff(_0x3b30b4){const _0x5e9a49={_0x685f7a:0x19e,_0x748638:0x1ba,_0x5d11f6:0x1a2,_0x3d66d2:0x1a9},_0x409b97={_0x4b3aa1:0x5d};if(!_0x3b30b4||_0x7923c5(-0x18b,-_0x5e9a49._0x685f7a)!=typeof _0x3b30b4)return _0x3b30b4||{};const _0x4e8985={};for(const [_0x310b8e,_0x134483]of Object[_0x7923c5(-_0x5e9a49._0x748638,-_0x5e9a49._0x5d11f6)](_0x3b30b4))SKIP_DIFF_FIELDS[_0x7923c5(-_0x5e9a49._0x3d66d2,-0x19f)](_0x310b8e)||(_0x4e8985[_0x310b8e]=_normalizeForDiff(_0x134483));function _0x7923c5(_0x35ea0c,_0x56f268){return _0x1a1de4(_0x35ea0c,_0x56f268- -_0x409b97._0x4b3aa1);}return _0x4e8985;}function _normalizeForDiff(_0x247b04){const _0x3d3e2d={_0x550695:0x3e1,_0x2e5a15:0x3f3,_0x1be572:0x3f1,_0x28094b:0x3e8,_0x204c39:0x3de,_0x200c3f:0x3ea},_0x6bdd31={_0x19b00d:0x52e};if(null==_0x247b04)return _0x247b04;if(_0x247b04 instanceof Date)return _0x247b04[_0x3d695a(_0x3d3e2d._0x550695,_0x3d3e2d._0x2e5a15)]();if(_0x247b04&&'function'==typeof _0x247b04[_0x3d695a(0x40e,0x3f9)])return _0x247b04[_0x3d695a(0x3e2,0x3f9)]();if(Buffer[_0x3d695a(_0x3d3e2d._0x1be572,_0x3d3e2d._0x28094b)](_0x247b04))return _0x247b04['toString']('base64');if(Array[_0x3d695a(0x3cf,_0x3d3e2d._0x204c39)](_0x247b04))return _0x247b04[_0x3d695a(0x3dc,_0x3d3e2d._0x200c3f)](_normalizeForDiff);function _0x3d695a(_0x295cb9,_0x261775){return _0x1a1de4(_0x295cb9,_0x261775-_0x6bdd31._0x19b00d);}if(_0x3d695a(0x3ff,0x3ed)==typeof _0x247b04){const _0xc1f508={};for(const [_0x59fa1d,_0x3643ec]of Object[_0x3d695a(0x3df,0x3e9)](_0x247b04))_0xc1f508[_0x59fa1d]=_normalizeForDiff(_0x3643ec);return _0xc1f508;}return _0x247b04;}function _deepEqual(_0x21f0de,_0xba91fb){const _0x5b1495={_0x2d8c98:0x12a,_0x324257:0x103,_0x4df53f:0x13b,_0x232e51:0x133};if(_0x21f0de===_0xba91fb)return!0x0;if(null===_0x21f0de||null===_0xba91fb||void 0x0===_0x21f0de||void 0x0===_0xba91fb)return _0x21f0de===_0xba91fb;if(typeof _0x21f0de!=typeof _0xba91fb)return!0x1;function _0xb44393(_0x2e3dfc,_0x4980fe){return _0x1a1de4(_0x2e3dfc,_0x4980fe-0x26b);}if(_0xb44393(0x113,_0x5b1495._0x2d8c98)!=typeof _0x21f0de)return _0x21f0de===_0xba91fb;if(Array[_0xb44393(_0x5b1495._0x324257,0x11b)](_0x21f0de)!==Array['isArray'](_0xba91fb))return!0x1;const _0x120250=Object[_0xb44393(_0x5b1495._0x4df53f,_0x5b1495._0x232e51)](_0x21f0de),_0x7bd148=Object['keys'](_0xba91fb);if(_0x120250[_0xb44393(0x12b,0x12e)]!==_0x7bd148['length'])return!0x1;for(const _0x567a66 of _0x120250)if(!_deepEqual(_0x21f0de[_0x567a66],_0xba91fb[_0x567a66]))return!0x1;return!0x0;}module[_0x1a1de4(-0x14b,-0x148)]={'computeDiff':computeDiff,'buildUpdatePayload':buildUpdatePayload,'applyPatch':applyPatch,'compressPayload':compressPayload,'decompressPayload':decompressPayload,'isPatchPayload':isPatchPayload,'COMPRESS_THRESHOLD_BYTES':0x400};
|
package/dist/src/field-merge.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';(function(_0x291318,_0x1a1888){const _0x291f65={_0x1df8ce:0x298,_0x4d1223:0x297,_0x19031a:0x2a6,_0x2bf58b:0x282,_0x3cbc38:0x288,_0x1515ae:0x284,_0x2c9f8f:0x2a2,_0x28b6c3:0x29a,_0x3f3122:0x28d,_0x5399c1:0x27e,_0x4c0770:0x291,_0x149644:0x286},_0x1cafd2={_0xb4a087:0x39e};function _0x391210(_0x244968,_0x2bdf0b){return _0x2e0c(_0x244968- -_0x1cafd2._0xb4a087,_0x2bdf0b);}const _0x58ce5d=_0x291318();while(!![]){try{const _0x31a249=parseInt(_0x391210(-_0x291f65._0x1df8ce,-0x2a1))/0x1+-parseInt(_0x391210(-_0x291f65._0x4d1223,-_0x291f65._0x19031a))/0x2+parseInt(_0x391210(-_0x291f65._0x2bf58b,-0x28e))/0x3*(parseInt(_0x391210(-_0x291f65._0x3cbc38,-_0x291f65._0x1515ae))/0x4)+-parseInt(_0x391210(-_0x291f65._0x2c9f8f,-_0x291f65._0x28b6c3))/0x5+parseInt(_0x391210(-_0x291f65._0x3f3122,-0x290))/0x6*(parseInt(_0x391210(-0x296,-0x28e))/0x7)+-parseInt(_0x391210(-0x285,-_0x291f65._0x5399c1))/0x8*(-parseInt(_0x391210(-_0x291f65._0x4c0770,-_0x291f65._0x149644))/0x9)+-parseInt(_0x391210(-0x29b,-0x2a0))/0xa;if(_0x31a249===_0x1a1888)break;else _0x58ce5d['push'](_0x58ce5d['shift']());}catch(_0xa4f086){_0x58ce5d['push'](_0x58ce5d['shift']());}}}(_0x3a51,0x53457));function _0x2e0c(_0x1ec05f,_0x374d24){_0x1ec05f=_0x1ec05f-0xf4;const _0x3a51bb=_0x3a51();let _0x2e0c01=_0x3a51bb[_0x1ec05f];if(_0x2e0c['XpJBdP']===undefined){var _0x42ea47=function(_0xfcada8){const _0x5dce69='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x1c181a='',_0x483fb5='';for(let _0x426b3d=0x0,_0x3cc60b,_0x214da3,_0x5c26b3=0x0;_0x214da3=_0xfcada8['charAt'](_0x5c26b3++);~_0x214da3&&(_0x3cc60b=_0x426b3d%0x4?_0x3cc60b*0x40+_0x214da3:_0x214da3,_0x426b3d++%0x4)?_0x1c181a+=String['fromCharCode'](0xff&_0x3cc60b>>(-0x2*_0x426b3d&0x6)):0x0){_0x214da3=_0x5dce69['indexOf'](_0x214da3);}for(let _0x2b3404=0x0,_0x2f0109=_0x1c181a['length'];_0x2b3404<_0x2f0109;_0x2b3404++){_0x483fb5+='%'+('00'+_0x1c181a['charCodeAt'](_0x2b3404)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x483fb5);};_0x2e0c['tbQUJu']=_0x42ea47,_0x2e0c['CzysIH']={},_0x2e0c['XpJBdP']=!![];}const _0x41db8d=_0x3a51bb[0x0],_0x206a63=_0x1ec05f+_0x41db8d,_0x1109b4=_0x2e0c['CzysIH'][_0x206a63];return!_0x1109b4?(_0x2e0c01=_0x2e0c['tbQUJu'](_0x2e0c01),_0x2e0c['CzysIH'][_0x206a63]=_0x2e0c01):_0x2e0c01=_0x1109b4,_0x2e0c01;}function buildFieldMeta(_0x1c181a,_0x483fb5,_0x426b3d,_0x3cc60b){const _0x56e6e2={_0x153f71:0xd,_0x1dd7df:0x2},_0x359cd5={_0x541622:0x10a};if(!Array[_0x16f0b4(0x9,-0xd)](_0x1c181a))return{};const _0x214da3={},_0x5c26b3=_0x483fb5 instanceof Date?_0x483fb5[_0x16f0b4(-_0x56e6e2._0x153f71,-0x1)]():Number(_0x483fb5)||Date['now']();for(const _0x2b3404 of _0x1c181a){const _0x2f0109=_topLevelField(_0x2b3404[_0x16f0b4(-_0x56e6e2._0x1dd7df,0x6)]);_0x2f0109&&(_0x214da3[_0x2f0109]={'ts':_0x5c26b3,'deviceId':_0x426b3d||'','version':_0x3cc60b||0x0});}function _0x16f0b4(_0x4f20d4,_0x481dc2){return _0x2e0c(_0x481dc2- -_0x359cd5._0x541622,_0x4f20d4);}return _0x214da3;}function mergeFields(_0x4b22c8,_0x412205,_0x5e8e66,_0x52546f){const _0x37a35c={_0x138f50:0x334,_0x2cfb52:0x321,_0x147a52:0x345,_0x4776a6:0x331,_0x2f92a4:0x307,_0x58bb0a:0x31c,_0x1feadf:0x320,_0xab82e:0x322,_0x2ec401:0x318,_0x42ac6d:0x340,_0x3e2d99:0x341,_0x49016e:0x32c,_0x5b1b36:0x327,_0xa233b1:0x33a,_0x500870:0x339,_0x45cf5e:0x323,_0x365b46:0x31a,_0x2009bd:0x316,_0x3b2899:0x328,_0x5039af:0x33e,_0x4feb93:0x32a,_0x88a48a:0x34f,_0x121ba6:0x32f,_0x2ca59c:0x320,_0x1f9cc0:0x317,_0x3f58c7:0x320},_0x56d8ee=_0x412205&&_0x412205['_mf_field_meta']||{},_0x9df078=_0x52546f&&_0x52546f[_0x1a29fe(0x344,_0x37a35c._0x138f50)]||{};let _0x350d71;function _0x1a29fe(_0x569457,_0x5577fe){return _0x2e0c(_0x5577fe-0x221,_0x569457);}if(_0x5e8e66&&Array[_0x1a29fe(0x311,0x31e)](_0x5e8e66['_mf_patch']))try{const _0x2d64a1=_cloneDoc(_0x4b22c8||{}),_0xd0cf73={'newDocument':Object[_0x1a29fe(0x30e,_0x37a35c._0x2cfb52)]({},_0x2d64a1)};for(const _0x378772 of _0x5e8e66[_0x1a29fe(0x327,0x333)]||[]){const _0x443361=(_0x378772[_0x1a29fe(_0x37a35c._0x147a52,_0x37a35c._0x4776a6)]||'')[_0x1a29fe(_0x37a35c._0x2f92a4,_0x37a35c._0x58bb0a)](/^\//,'');_0x443361&&('remove'===_0x378772['op']?delete _0xd0cf73['newDocument'][_0x443361]:_0xd0cf73[_0x1a29fe(_0x37a35c._0x1feadf,_0x37a35c._0xab82e)][_0x443361]=_0x378772[_0x1a29fe(_0x37a35c._0x2ec401,0x319)]);}_0x350d71=_0xd0cf73[_0x1a29fe(0x32f,0x322)];}catch(_0x5c31ee){_0x350d71=_0x5e8e66['_mf_full']||_0x5e8e66;}else _0x350d71=_0x5e8e66;if(!_0x350d71||_0x1a29fe(_0x37a35c._0x42ac6d,0x32b)!=typeof _0x350d71)return{'merged':_0x4b22c8,'resolvedFields':{},'conflictedFields':{}};const _0x5b6025=_cloneDoc(_0x4b22c8||{}),_0x4e7618={},_0x4cdf2f={},_0x174a45=new Set(Object[_0x1a29fe(_0x37a35c._0x3e2d99,_0x37a35c._0x49016e)](_0x9df078));if(0x0===_0x174a45['size']&&_0x350d71){for(const _0x42c392 of Object[_0x1a29fe(0x32b,_0x37a35c._0x49016e)](_0x350d71))_0x42c392[_0x1a29fe(0x31e,0x31f)](_0x1a29fe(_0x37a35c._0x2cfb52,0x323))||'_id'===_0x42c392||_0x1a29fe(_0x37a35c._0x5b1b36,0x316)===_0x42c392||_0x174a45[_0x1a29fe(_0x37a35c._0xa233b1,_0x37a35c._0x500870)](_0x42c392);}for(const _0x290750 of _0x174a45){if(_0x290750['startsWith'](_0x1a29fe(0x31a,_0x37a35c._0x45cf5e))||_0x1a29fe(0x30b,_0x37a35c._0x365b46)===_0x290750||_0x1a29fe(0x309,_0x37a35c._0x2009bd)===_0x290750)continue;const _0x20e79e=_0x56d8ee[_0x290750]||null,_0x53beb8=_0x9df078[_0x290750]||{'ts':_0x52546f['timestamp']instanceof Date?_0x52546f[_0x1a29fe(_0x37a35c._0x3b2899,_0x37a35c._0x5039af)][_0x1a29fe(0x328,_0x37a35c._0x4feb93)]():Number(_0x52546f[_0x1a29fe(_0x37a35c._0x88a48a,0x33e)])||0x0,'deviceId':_0x52546f['deviceId']||'','version':_0x52546f[_0x1a29fe(0x341,_0x37a35c._0x121ba6)]||0x0};if(_0x20e79e){if('remote'===_fieldWinner(_0x20e79e,_0x53beb8)){const _0x23ca0e=_0x5b6025[_0x290750];_0x5b6025[_0x290750]=_0x350d71[_0x290750],_0x23ca0e!==_0x350d71[_0x290750]&&(_0x4cdf2f[_0x290750]={'local':_0x23ca0e,'remote':_0x350d71[_0x290750],'winner':_0x1a29fe(0x310,_0x37a35c._0x2ca59c)}),_0x4e7618[_0x290750]=_0x1a29fe(_0x37a35c._0x2ec401,0x320);}else _0x4e7618[_0x290750]=_0x1a29fe(0x327,0x33b);}else _0x5b6025[_0x290750]=_0x350d71[_0x290750],_0x4e7618[_0x290750]=_0x1a29fe(_0x37a35c._0x1f9cc0,_0x37a35c._0x3f58c7);}return{'merged':_0x5b6025,'resolvedFields':_0x4e7618,'conflictedFields':_0x4cdf2f};}function produceMergedPayload(_0x386725,_0x54a860,_0x3ed7f5){const _0x4146df={_0x33943b:0x328,_0x27b459:0x330,_0x55bdb1:0x327,_0x43156b:0x338,_0xbc836a:0x338,_0x12a661:0x329,_0x5cbbd4:0x328,_0x569b1d:0x347,_0x36b954:0x339,_0xd114c6:0x30d,_0x30a337:0x311,_0x210803:0x31d,_0x17a0c0:0x320,_0x305121:0x30d,_0x3f7f9a:0x313},_0x257cc9={_0x20fc3b:0x21b};if(!_0x386725||!_0x54a860||!_0x3ed7f5)return null;const _0x96a182=_0x386725[_0xc0eb84(_0x4146df._0x33943b,0x327)]?.['_mf_field_meta']||{},_0x1df143=mergeFields(_0x3ed7f5,{'_mf_field_meta':_0x96a182},_0x54a860[_0xc0eb84(_0x4146df._0x27b459,_0x4146df._0x55bdb1)],{'timestamp':_0x54a860[_0xc0eb84(0x34b,_0x4146df._0x43156b)],'deviceId':_0x54a860['deviceId'],'version':_0x54a860[_0xc0eb84(_0x4146df._0xbc836a,_0x4146df._0x12a661)],'field_meta':_0x54a860[_0xc0eb84(_0x4146df._0x5cbbd4,0x327)]?.['_mf_field_meta']||{}}),_0x4c71d0={..._0x96a182};for(const [_0x305dd3,_0x4d31f7]of Object[_0xc0eb84(0x30d,0x312)](_0x1df143[_0xc0eb84(_0x4146df._0x569b1d,_0x4146df._0x36b954)]))_0xc0eb84(_0x4146df._0xd114c6,0x31a)===_0x4d31f7&&(_0x4c71d0[_0x305dd3]=_0x54a860['payload']?.[_0xc0eb84(0x2fc,_0x4146df._0x30a337)]?.[_0x305dd3]||{'ts':_0x54a860['timestamp']instanceof Date?_0x54a860[_0xc0eb84(0x32b,0x338)]['getTime']():Date[_0xc0eb84(_0x4146df._0x210803,_0x4146df._0x17a0c0)](),'deviceId':_0x54a860[_0xc0eb84(_0x4146df._0x305121,0x30f)]||'','version':_0x54a860[_0xc0eb84(_0x4146df._0x3f7f9a,0x329)]||0x0});function _0xc0eb84(_0x1197e5,_0x1d2955){return _0x2e0c(_0x1d2955-_0x257cc9._0x20fc3b,_0x1197e5);}return{'payload':{..._0x1df143[_0xc0eb84(0x32e,0x332)],'_mf_field_meta':_0x4c71d0},'fieldMeta':_0x4c71d0,'resolvedFields':_0x1df143[_0xc0eb84(0x324,0x339)],'conflictedFields':_0x1df143['conflictedFields']};}function hasFieldOverlap(_0x37e11e,_0x125fa4){const _0x442167={_0x4848ee:0x449},_0x4e71ff=_extractChangedFields(_0x37e11e),_0x542e71=_extractChangedFields(_0x125fa4);function _0x42f8e1(_0x562f70,_0x5260a5){return _0x2e0c(_0x562f70-0x32e,_0x5260a5);}return[..._0x4e71ff][_0x42f8e1(_0x442167._0x4848ee,0x43c)](_0x1359d0=>_0x542e71[_0x42f8e1(0x443,0x44b)](_0x1359d0));}function mergeScore(_0x104e73){const _0x45b526={_0x18a764:0x43a,_0xe73c5c:0x451,_0x3d3d29:0x43a,_0x3989ca:0x447,_0x54f94f:0x431,_0x56c618:0x437,_0x369bab:0x447},_0x7da8d5={_0x2eb0d4:0x333},_0x4e99bd=Object[_0x429a40(_0x45b526._0x18a764,0x43e)](_0x104e73[_0x429a40(0x451,_0x45b526._0xe73c5c)])[_0x429a40(_0x45b526._0x3d3d29,_0x45b526._0x3989ca)],_0x562c75=Object[_0x429a40(_0x45b526._0x54f94f,0x43e)](_0x104e73[_0x429a40(0x445,_0x45b526._0x56c618)])[_0x429a40(0x454,_0x45b526._0x369bab)];function _0x429a40(_0x5956d3,_0xe9b05f){return _0x2e0c(_0xe9b05f-_0x7da8d5._0x2eb0d4,_0x5956d3);}return 0x0===_0x4e99bd?0x1:(_0x4e99bd-_0x562c75)/_0x4e99bd;}function _fieldWinner(_0x1ddad7,_0x1a1c05){const _0x397b55={_0x2eb805:0x3a2,_0x113f2b:0x383,_0x4af4a0:0x391,_0x188523:0x374,_0x2c4a06:0x36c,_0x2b703c:0x375,_0x133a5b:0x358,_0x19c6a5:0x37e},_0x2a3e0f={_0x5206ee:0x275};function _0x2f98a9(_0x2a8939,_0x47b524){return _0x2e0c(_0x2a8939-_0x2a3e0f._0x5206ee,_0x47b524);}const _0x27ca5c=Number(_0x1ddad7['ts'])||0x0,_0xfea886=Number(_0x1a1c05['ts'])||0x0;if(_0x27ca5c!==_0xfea886)return _0x27ca5c>_0xfea886?_0x2f98a9(0x38f,_0x397b55._0x2eb805):_0x2f98a9(0x374,0x366);const _0x132058=Number(_0x1ddad7[_0x2f98a9(_0x397b55._0x113f2b,_0x397b55._0x4af4a0)])||0x0,_0x2d2625=Number(_0x1a1c05[_0x2f98a9(0x383,0x381)])||0x0;if(_0x132058!==_0x2d2625)return _0x132058>_0x2d2625?'local':_0x2f98a9(_0x397b55._0x188523,_0x397b55._0x2c4a06);const _0x31d2e8=String(_0x1ddad7[_0x2f98a9(0x369,_0x397b55._0x2b703c)]||'');return String(_0x1a1c05[_0x2f98a9(0x369,_0x397b55._0x133a5b)]||'')<_0x31d2e8?_0x2f98a9(_0x397b55._0x188523,_0x397b55._0x19c6a5):'local';}function _topLevelField(_0x144750){const _0x1e30fd={_0x1a6123:0x37d};function _0x28d969(_0x4ee116,_0x3f642f){return _0x2e0c(_0x4ee116-0x282,_0x3f642f);}return _0x144750&&_0x144750[_0x28d969(0x380,_0x1e30fd._0x1a6123)]('/')&&_0x144750['split']('/')[0x1]||null;}function _topLevelDiffFields(_0x46baca,_0x65d092){const _0x215290={_0x1e4c96:0x21a,_0x38271b:0x211};if(!_0x46baca||!_0x65d092)return[];const _0x25bf69=new Set();function _0x43397f(_0xbb5804,_0x30a2ec){return _0x2e0c(_0xbb5804- -0x329,_0x30a2ec);}for(const _0x4527ff of Object[_0x43397f(-0x21e,-0x20a)](_0x65d092))JSON[_0x43397f(-_0x215290._0x1e4c96,-_0x215290._0x38271b)](_0x46baca[_0x4527ff])!==JSON[_0x43397f(-0x21a,-0x22c)](_0x65d092[_0x4527ff])&&_0x25bf69['add'](_0x4527ff);return[..._0x25bf69];}function _0x3a51(){const _0x59bbb0=['C3rHCNrZv2L0Aa','CMvTB3rL','yxnZAwDU','BMv3rg9JDw1LBNq','x21MxW','otyWmJy0mgLRsKv0AW','y29UzMXPy3rLzezPzwXKCW','BM93','mZeZodq2DeXOAxfh','ndaXnJKWCK1gvNHo','ndq2ndy5ohPeq2fdtG','z2v0vgLTzq','B2jQzwn0','A2v5CW','Cgf5Bg9Hza','odm4mZe0rfDcDunK','DMvYC2LVBG','C3rYAw5NAwz5','Cgf0Aa','nLrQAwHvta','x21Mx3bHDgnO','zMLLBgrFBwv0yq','BgvUz3rO','AgfZ','mtzdvxb0Ag8','BwvYz2vK','ywrK','mZj3txDevhy','Bg9JywW','C29Tzq','ndu0mtK3rNHTuNL3','DgLTzxn0yw1W','CMvZB2X2zwrgAwvSzhm','zgv2AwnLswq','x192','x21Mx2zPzwXKx21LDge','zw50CMLLCW','DMfSDwu','x2LK','CgfYC2u','CMvWBgfJzq','mJeZodi2mgXACKHizW','AxnbCNjHEq'];_0x3a51=function(){return _0x59bbb0;};return _0x3a51();}function _extractChangedFields(_0x14e826){const _0x31a6e6={_0xb1777:0x9b,_0x2bc75e:0x9b,_0x56f594:0x87,_0x25efca:0x85,_0x1b6e35:0x8d,_0x1be663:0x85,_0xd335f9:0x91,_0x278f15:0xa7,_0x12834a:0x8c,_0xff0e2e:0x9b,_0x2acc2a:0xb2},_0x4631c3=new Set();function _0x44c953(_0x26927a,_0x1d1097){return _0x2e0c(_0x26927a- -0x71,_0x1d1097);}if(!_0x14e826||!_0x14e826[_0x44c953(_0x31a6e6._0xb1777,0x8b)])return _0x4631c3;if(_0x14e826[_0x44c953(_0x31a6e6._0x2bc75e,_0x31a6e6._0x56f594)][_0x44c953(_0x31a6e6._0x25efca,0x7e)]){for(const _0x332b08 of Object[_0x44c953(0x9a,0x85)](_0x14e826[_0x44c953(0x9b,_0x31a6e6._0x1b6e35)][_0x44c953(_0x31a6e6._0x1be663,_0x31a6e6._0xd335f9)]))_0x4631c3[_0x44c953(_0x31a6e6._0x278f15,0xa4)](_0x332b08);}if(Array[_0x44c953(_0x31a6e6._0x12834a,0x9c)](_0x14e826['payload'][_0x44c953(0xa1,_0x31a6e6._0xd335f9)]))for(const _0x34cebe of _0x14e826[_0x44c953(_0x31a6e6._0xff0e2e,0xaf)]['_mf_patch']){const _0x588a40=_topLevelField(_0x34cebe['path']);_0x588a40&&_0x4631c3[_0x44c953(0xa7,_0x31a6e6._0x2acc2a)](_0x588a40);}return _0x4631c3;}function _cloneDoc(_0x344392){const _0x16ea32={_0x4ef618:0x35f,_0x116872:0x34a},_0x4a2f6a={_0x233720:0x265};function _0xb7c5a1(_0x5a89ce,_0x15b1b8){return _0x2e0c(_0x5a89ce-_0x4a2f6a._0x233720,_0x15b1b8);}try{return JSON[_0xb7c5a1(_0x16ea32._0x4ef618,_0x16ea32._0x116872)](JSON['stringify'](_0x344392));}catch{return{..._0x344392};}}module['exports']={'buildFieldMeta':buildFieldMeta,'mergeFields':mergeFields,'produceMergedPayload':produceMergedPayload,'hasFieldOverlap':hasFieldOverlap,'mergeScore':mergeScore};
|
|
1
|
+
'use strict';(function(_0x53f6cb,_0x1fe4ce){const _0x1f5a43={_0x5409fc:0x2c4,_0x589ca2:0x2ac,_0x5ca32d:0x2b7,_0x11684a:0x2be,_0x34c247:0x2af,_0x5a63f1:0x2b4,_0x3946f4:0x2b1,_0x305c61:0x2a7,_0x4c3dab:0x299,_0x1ab2ff:0x2cf,_0x18780d:0x2e1,_0x2f4340:0x2cc},_0x1f0973={_0x1a4bbf:0x1b7};function _0x13fc72(_0x20732e,_0x5afb68){return _0x1bf6(_0x5afb68-_0x1f0973._0x1a4bbf,_0x20732e);}const _0x3ae400=_0x53f6cb();while(!![]){try{const _0x3dea35=parseInt(_0x13fc72(_0x1f5a43._0x5409fc,0x2ba))/0x1+parseInt(_0x13fc72(_0x1f5a43._0x589ca2,_0x1f5a43._0x5ca32d))/0x2*(-parseInt(_0x13fc72(_0x1f5a43._0x11684a,0x2c8))/0x3)+parseInt(_0x13fc72(_0x1f5a43._0x34c247,0x2bd))/0x4+-parseInt(_0x13fc72(_0x1f5a43._0x5a63f1,0x2bf))/0x5+parseInt(_0x13fc72(0x2ab,_0x1f5a43._0x3946f4))/0x6+-parseInt(_0x13fc72(_0x1f5a43._0x305c61,0x2ae))/0x7*(parseInt(_0x13fc72(_0x1f5a43._0x4c3dab,0x2a8))/0x8)+parseInt(_0x13fc72(0x2d1,_0x1f5a43._0x1ab2ff))/0x9*(parseInt(_0x13fc72(_0x1f5a43._0x18780d,_0x1f5a43._0x2f4340))/0xa);if(_0x3dea35===_0x1fe4ce)break;else _0x3ae400['push'](_0x3ae400['shift']());}catch(_0x5478e5){_0x3ae400['push'](_0x3ae400['shift']());}}}(_0x3ed3,0xf2ae4));function buildFieldMeta(_0x5d6726,_0x3a344e,_0xe713d4,_0x17bcac){const _0x5e3099={_0xf4d6c7:0x8d,_0x2cf6fa:0x7f},_0x4a725c={_0x214cc9:0x183};function _0x2d167e(_0x1c8d4d,_0x433900){return _0x1bf6(_0x1c8d4d- -_0x4a725c._0x214cc9,_0x433900);}if(!Array[_0x2d167e(-0x8d,-_0x5e3099._0xf4d6c7)](_0x5d6726))return{};const _0x4321a8={},_0x4e6830=_0x3a344e instanceof Date?_0x3a344e[_0x2d167e(-0x8e,-0x8d)]():Number(_0x3a344e)||Date['now']();for(const _0x11d11f of _0x5d6726){const _0x1b3289=_topLevelField(_0x11d11f[_0x2d167e(-_0x5e3099._0x2cf6fa,-0x72)]);_0x1b3289&&(_0x4321a8[_0x1b3289]={'ts':_0x4e6830,'deviceId':_0xe713d4||'','version':_0x17bcac||0x0});}return _0x4321a8;}function _0x16a847(_0x1ed6a5,_0x2d3a44){return _0x1bf6(_0x1ed6a5- -0x368,_0x2d3a44);}function mergeFields(_0x1a3ffe,_0x50c613,_0x55681c,_0xbb5ba){const _0x17dbd4={_0x9a81dd:0x2e0,_0x8860a:0x2f9,_0x4359e7:0x301,_0x154324:0x2ee,_0x171749:0x300,_0x26a41d:0x2f4,_0x1dea18:0x2de,_0x806a50:0x2ca,_0x111ef2:0x2da,_0x3d95e3:0x2e4,_0x4079a8:0x2fe,_0xdb31b8:0x308,_0x27d131:0x2ea,_0x97c6b9:0x2fc,_0x32f45b:0x2eb,_0x5c22c6:0x2d5,_0x28faa3:0x2df,_0x3d6cbb:0x2dc,_0x2c677d:0x2f6,_0x11910c:0x2e5},_0x943f33={_0x4ed705:0x1ea},_0x4a9496=_0x50c613&&_0x50c613['_mf_field_meta']||{},_0x152ce8=_0xbb5ba&&_0xbb5ba['field_meta']||{};let _0x1cf619;if(_0x55681c&&Array[_0x40edb5(_0x17dbd4._0x9a81dd,0x2e6)](_0x55681c[_0x40edb5(_0x17dbd4._0x8860a,_0x17dbd4._0x4359e7)]))try{const _0xbee8fc=_cloneDoc(_0x1a3ffe||{}),_0x31482c={'newDocument':Object['assign']({},_0xbee8fc)};for(const _0x2da9f3 of _0x55681c['_mf_patch']||[]){const _0x3eb010=(_0x2da9f3[_0x40edb5(_0x17dbd4._0x154324,_0x17dbd4._0x171749)]||'')['replace'](/^\//,'');_0x3eb010&&('remove'===_0x2da9f3['op']?delete _0x31482c['newDocument'][_0x3eb010]:_0x31482c[_0x40edb5(0x2fd,0x30d)][_0x3eb010]=_0x2da9f3[_0x40edb5(0x2e7,_0x17dbd4._0x26a41d)]);}_0x1cf619=_0x31482c[_0x40edb5(0x2fd,0x303)];}catch(_0x148c3f){_0x1cf619=_0x55681c['_mf_full']||_0x55681c;}else _0x1cf619=_0x55681c;if(!_0x1cf619||_0x40edb5(_0x17dbd4._0x1dea18,_0x17dbd4._0x806a50)!=typeof _0x1cf619)return{'merged':_0x1a3ffe,'resolvedFields':{},'conflictedFields':{}};const _0x1399c4=_cloneDoc(_0x1a3ffe||{}),_0x482251={},_0x3fdbd9={},_0x434218=new Set(Object[_0x40edb5(0x2e9,_0x17dbd4._0x111ef2)](_0x152ce8));if(0x0===_0x434218['size']&&_0x1cf619){for(const _0x37ddde of Object[_0x40edb5(0x2e9,_0x17dbd4._0x3d95e3)](_0x1cf619))_0x37ddde['startsWith'](_0x40edb5(_0x17dbd4._0x4079a8,0x30a))||_0x40edb5(_0x17dbd4._0x26a41d,_0x17dbd4._0xdb31b8)===_0x37ddde||_0x40edb5(0x2e3,_0x17dbd4._0x27d131)===_0x37ddde||_0x434218['add'](_0x37ddde);}for(const _0x5e55a5 of _0x434218){if(_0x5e55a5[_0x40edb5(_0x17dbd4._0x97c6b9,_0x17dbd4._0x32f45b)]('_mf_')||'_id'===_0x5e55a5||_0x40edb5(0x2e3,_0x17dbd4._0x5c22c6)===_0x5e55a5)continue;const _0x562b48=_0x4a9496[_0x5e55a5]||null,_0x425e58=_0x152ce8[_0x5e55a5]||{'ts':_0xbb5ba['timestamp']instanceof Date?_0xbb5ba[_0x40edb5(_0x17dbd4._0x171749,0x2ff)][_0x40edb5(_0x17dbd4._0x28faa3,0x2d6)]():Number(_0xbb5ba['timestamp'])||0x0,'deviceId':_0xbb5ba['deviceId']||'','version':_0xbb5ba[_0x40edb5(0x2dd,_0x17dbd4._0x3d6cbb)]||0x0};if(_0x562b48){if(_0x40edb5(_0x17dbd4._0x2c677d,0x306)===_fieldWinner(_0x562b48,_0x425e58)){const _0x3d7141=_0x1399c4[_0x5e55a5];_0x1399c4[_0x5e55a5]=_0x1cf619[_0x5e55a5],_0x3d7141!==_0x1cf619[_0x5e55a5]&&(_0x3fdbd9[_0x5e55a5]={'local':_0x3d7141,'remote':_0x1cf619[_0x5e55a5],'winner':_0x40edb5(_0x17dbd4._0x2c677d,0x2f2)}),_0x482251[_0x5e55a5]=_0x40edb5(0x2f6,0x2ea);}else _0x482251[_0x5e55a5]=_0x40edb5(_0x17dbd4._0x11910c,0x2eb);}else _0x1399c4[_0x5e55a5]=_0x1cf619[_0x5e55a5],_0x482251[_0x5e55a5]=_0x40edb5(0x2f6,0x2fb);}function _0x40edb5(_0x2bde26,_0x2882d7){return _0x1bf6(_0x2bde26-_0x943f33._0x4ed705,_0x2882d7);}return{'merged':_0x1399c4,'resolvedFields':_0x482251,'conflictedFields':_0x3fdbd9};}function _0x3ed3(){const _0x4df7b7=['BwvYz2vK','odi4mJu1mg1eC3bwwG','zgv2AwnLswq','x2LK','C29Tzq','CMvTB3rL','CgfYC2u','BgvUz3rO','x21Mx3bHDgnO','x21Mx2zPzwXKx21LDge','nKDXuu1MDa','C3rHCNrZv2L0Aa','BMv3rg9JDw1LBNq','x21MxW','ndiZoty4mZbVv2fQrvm','DgLTzxn0yw1W','Cgf5Bg9Hza','ouXNAxv3wq','C3rYAw5NAwz5','mZC1ntmXmLjQBMjluG','CMvZB2X2zwrgAwvSzhm','DMvYC2LVBG','B2jQzwn0','z2v0vgLTzq','AxnbCNjHEq','mJfeA2HQDLi','y29UzMXPy3rLzezPzwXKCW','x192','mtyXodi1nhLos1HTsW','Bg9JywW','ywrK','DMfSDwu','AgfZ','A2v5CW','otK4mtuWuKTrCM94','zw50CMLLCW','zxHWB3j0CW','mtqZnZi0qKPKu2np','Cgf0Aa','BM93','mtyXntiYnerNA0vtrG'];_0x3ed3=function(){return _0x4df7b7;};return _0x3ed3();}function produceMergedPayload(_0x1ae224,_0x4c9022,_0x5a498b){const _0x1f1eed={_0x295acc:0x3fe,_0x5e2db5:0x3fd,_0x4036d6:0x3fd,_0x29c3bb:0x3da,_0x271feb:0x405,_0x956d08:0x3da,_0x1f61ff:0x3d9,_0x50d833:0x3e9,_0x5d8a46:0x3fe,_0x20ee9f:0x402,_0x181144:0x3ed,_0xb2eb54:0x3f0,_0x21a76f:0x3e9,_0x30e4bf:0x3ee,_0x36e94c:0x3fb,_0x2d9cc0:0x3d8,_0x136d50:0x3df,_0x224c45:0x3e6};if(!_0x1ae224||!_0x4c9022||!_0x5a498b)return null;function _0x2123f(_0x4ea35c,_0x202b26){return _0x1bf6(_0x4ea35c-0x2e7,_0x202b26);}const _0x1c13d6=_0x1ae224[_0x2123f(0x3fe,0x402)]?.['_mf_field_meta']||{},_0x5d0709=mergeFields(_0x5a498b,{'_mf_field_meta':_0x1c13d6},_0x4c9022[_0x2123f(_0x1f1eed._0x295acc,0x3f3)],{'timestamp':_0x4c9022[_0x2123f(_0x1f1eed._0x5e2db5,_0x1f1eed._0x4036d6)],'deviceId':_0x4c9022[_0x2123f(0x3f0,0x3ee)],'version':_0x4c9022[_0x2123f(_0x1f1eed._0x29c3bb,0x3d4)],'field_meta':_0x4c9022[_0x2123f(0x3fe,_0x1f1eed._0x271feb)]?.[_0x2123f(0x3f7,0x403)]||{}}),_0x1750c4={..._0x1c13d6};for(const [_0x1c1239,_0x59b3fa]of Object[_0x2123f(0x3e8,_0x1f1eed._0x956d08)](_0x5d0709[_0x2123f(_0x1f1eed._0x1f61ff,0x3c7)]))_0x2123f(0x3f3,_0x1f1eed._0x50d833)===_0x59b3fa&&(_0x1750c4[_0x1c1239]=_0x4c9022[_0x2123f(_0x1f1eed._0x5d8a46,0x3ec)]?.[_0x2123f(0x3f7,_0x1f1eed._0x20ee9f)]?.[_0x1c1239]||{'ts':_0x4c9022['timestamp']instanceof Date?_0x4c9022[_0x2123f(_0x1f1eed._0x4036d6,0x3ef)]['getTime']():Date[_0x2123f(0x3ec,_0x1f1eed._0x181144)](),'deviceId':_0x4c9022[_0x2123f(_0x1f1eed._0xb2eb54,_0x1f1eed._0x21a76f)]||'','version':_0x4c9022['version']||0x0});return{'payload':{..._0x5d0709[_0x2123f(_0x1f1eed._0x30e4bf,_0x1f1eed._0x36e94c)],'_mf_field_meta':_0x1750c4},'fieldMeta':_0x1750c4,'resolvedFields':_0x5d0709[_0x2123f(0x3d9,_0x1f1eed._0x2d9cc0)],'conflictedFields':_0x5d0709[_0x2123f(_0x1f1eed._0x136d50,_0x1f1eed._0x224c45)]};}function hasFieldOverlap(_0x3020ee,_0x5d34b6){const _0x1f8116={_0x18cb2e:0x34f};function _0x666c62(_0xceb047,_0x28f10a){return _0x1bf6(_0x28f10a-0x245,_0xceb047);}const _0x41dd6f=_extractChangedFields(_0x3020ee),_0x42622a=_extractChangedFields(_0x5d34b6);return[..._0x41dd6f][_0x666c62(_0x1f8116._0x18cb2e,0x350)](_0x5c8cfa=>_0x42622a[_0x666c62(0x347,0x343)](_0x5c8cfa));}function mergeScore(_0x3cf347){const _0xb87012={_0x1c4c71:0x293,_0x54a34e:0x286,_0x5b81a5:0x290},_0x56dba2={_0xa6447b:0x394};function _0x22f6cd(_0x14f10a,_0x3b9c40){return _0x1bf6(_0x3b9c40- -_0x56dba2._0xa6447b,_0x14f10a);}const _0x5da6ea=Object[_0x22f6cd(-0x290,-0x295)](_0x3cf347['resolvedFields'])[_0x22f6cd(-_0xb87012._0x1c4c71,-_0xb87012._0x54a34e)],_0x2697a8=Object['keys'](_0x3cf347[_0x22f6cd(-_0xb87012._0x5b81a5,-0x29c)])[_0x22f6cd(-0x290,-_0xb87012._0x54a34e)];return 0x0===_0x5da6ea?0x1:(_0x5da6ea-_0x2697a8)/_0x5da6ea;}function _fieldWinner(_0x18823d,_0x3ad9e2){const _0x649187={_0x206c5e:0xfe,_0x11b583:0x101,_0x3371f7:0x10c,_0x2bbef2:0x10f,_0x55593e:0xf7,_0x21db49:0xee},_0x47b84f={_0x94a0ff:0x3};function _0xfce9d0(_0x56fee5,_0x180c92){return _0x1bf6(_0x180c92-_0x47b84f._0x94a0ff,_0x56fee5);}const _0x40dc62=Number(_0x18823d['ts'])||0x0,_0x82d24c=Number(_0x3ad9e2['ts'])||0x0;if(_0x40dc62!==_0x82d24c)return _0x40dc62>_0x82d24c?_0xfce9d0(0xec,_0x649187._0x206c5e):'remote';const _0x2d815d=Number(_0x18823d['version'])||0x0,_0x59fa11=Number(_0x3ad9e2[_0xfce9d0(_0x649187._0x11b583,0xf6)])||0x0;if(_0x2d815d!==_0x59fa11)return _0x2d815d>_0x59fa11?_0xfce9d0(_0x649187._0x3371f7,_0x649187._0x206c5e):_0xfce9d0(0x111,_0x649187._0x2bbef2);const _0x26c212=String(_0x18823d['deviceId']||'');return String(_0x3ad9e2[_0xfce9d0(_0x649187._0x55593e,_0x649187._0x3371f7)]||'')<_0x26c212?'remote':_0xfce9d0(_0x649187._0x21db49,_0x649187._0x206c5e);}function _topLevelField(_0x4c78ba){const _0xf3e65a={_0xd52412:0x492},_0x4959cd={_0x9496e2:0x380};function _0xbf3c3a(_0x31e1ab,_0x6c1bf5){return _0x1bf6(_0x31e1ab-_0x4959cd._0x9496e2,_0x6c1bf5);}return _0x4c78ba&&_0x4c78ba[_0xbf3c3a(_0xf3e65a._0xd52412,0x492)]('/')&&_0x4c78ba['split']('/')[0x1]||null;}function _topLevelDiffFields(_0x1ec97b,_0x43e70e){const _0x1d934e={_0x38b3a0:0x1bc,_0x1025b5:0x1c6,_0x4e4f41:0x1c7};if(!_0x1ec97b||!_0x43e70e)return[];const _0x1c8cf3=new Set();for(const _0x315aa9 of Object[_0x391f7f(_0x1d934e._0x38b3a0,_0x1d934e._0x1025b5)](_0x43e70e))JSON['stringify'](_0x1ec97b[_0x315aa9])!==JSON[_0x391f7f(0x1d6,_0x1d934e._0x4e4f41)](_0x43e70e[_0x315aa9])&&_0x1c8cf3[_0x391f7f(0x1b9,0x1ab)](_0x315aa9);function _0x391f7f(_0x38e1e3,_0x15472c){return _0x1bf6(_0x38e1e3-0xbd,_0x15472c);}return[..._0x1c8cf3];}function _extractChangedFields(_0x46e0b7){const _0x10ec97={_0x2cb060:0x1c3,_0x2e36b:0x1af,_0x39e63a:0x1a8,_0x4a1c4c:0x1ac,_0x3391f6:0x186,_0x4aca8d:0x18e,_0x467ad7:0x180,_0x222f8c:0x1b3,_0x555540:0x19c},_0x578ff5={_0x17ae33:0x98},_0x4871a7=new Set();if(!_0x46e0b7||!_0x46e0b7[_0x2ebcae(0x1af,_0x10ec97._0x2cb060)])return _0x4871a7;if(_0x46e0b7['payload']['_mf_field_meta']){for(const _0x531bd9 of Object['keys'](_0x46e0b7[_0x2ebcae(_0x10ec97._0x2e36b,0x1ab)][_0x2ebcae(_0x10ec97._0x39e63a,_0x10ec97._0x4a1c4c)]))_0x4871a7[_0x2ebcae(0x194,_0x10ec97._0x3391f6)](_0x531bd9);}function _0x2ebcae(_0x26adc4,_0xe058ac){return _0x1bf6(_0x26adc4-_0x578ff5._0x17ae33,_0xe058ac);}if(Array[_0x2ebcae(_0x10ec97._0x4aca8d,_0x10ec97._0x467ad7)](_0x46e0b7[_0x2ebcae(0x1af,0x19e)][_0x2ebcae(0x1a7,0x1b9)]))for(const _0x468959 of _0x46e0b7['payload'][_0x2ebcae(0x1a7,_0x10ec97._0x222f8c)]){const _0x20af6b=_topLevelField(_0x468959[_0x2ebcae(_0x10ec97._0x555540,0x19d)]);_0x20af6b&&_0x4871a7['add'](_0x20af6b);}return _0x4871a7;}function _cloneDoc(_0x506af3){const _0x455423={_0x1c0e25:0xc4},_0x4c52a8={_0x5c95fd:0x1d1};function _0x217d44(_0x5c613a,_0x2f225d){return _0x1bf6(_0x2f225d- -_0x4c52a8._0x5c95fd,_0x5c613a);}try{return JSON[_0x217d44(-0xcc,-_0x455423._0x1c0e25)](JSON['stringify'](_0x506af3));}catch{return{..._0x506af3};}}function _0x1bf6(_0x5dade4,_0xb269d9){_0x5dade4=_0x5dade4-0xf1;const _0x3ed3ed=_0x3ed3();let _0x1bf6fd=_0x3ed3ed[_0x5dade4];if(_0x1bf6['eOJNvE']===undefined){var _0x5d1f44=function(_0x651f64){const _0x4d9b14='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x5d6726='',_0x3a344e='';for(let _0xe713d4=0x0,_0x17bcac,_0x4321a8,_0x4e6830=0x0;_0x4321a8=_0x651f64['charAt'](_0x4e6830++);~_0x4321a8&&(_0x17bcac=_0xe713d4%0x4?_0x17bcac*0x40+_0x4321a8:_0x4321a8,_0xe713d4++%0x4)?_0x5d6726+=String['fromCharCode'](0xff&_0x17bcac>>(-0x2*_0xe713d4&0x6)):0x0){_0x4321a8=_0x4d9b14['indexOf'](_0x4321a8);}for(let _0x11d11f=0x0,_0x1b3289=_0x5d6726['length'];_0x11d11f<_0x1b3289;_0x11d11f++){_0x3a344e+='%'+('00'+_0x5d6726['charCodeAt'](_0x11d11f)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x3a344e);};_0x1bf6['OUjDCz']=_0x5d1f44,_0x1bf6['UmFUoT']={},_0x1bf6['eOJNvE']=!![];}const _0x3371f3=_0x3ed3ed[0x0],_0x41d2f4=_0x5dade4+_0x3371f3,_0x5a95a7=_0x1bf6['UmFUoT'][_0x41d2f4];return!_0x5a95a7?(_0x1bf6fd=_0x1bf6['OUjDCz'](_0x1bf6fd),_0x1bf6['UmFUoT'][_0x41d2f4]=_0x1bf6fd):_0x1bf6fd=_0x5a95a7,_0x1bf6fd;}module[_0x16a847(-0x266,-0x277)]={'buildFieldMeta':buildFieldMeta,'mergeFields':mergeFields,'produceMergedPayload':produceMergedPayload,'hasFieldOverlap':hasFieldOverlap,'mergeScore':mergeScore};
|
package/dist/src/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';(function(_0x31b24b,_0x1064fb){const _0x335f2b={_0x5c7fa5:0x18,_0x52b30d:0x2,_0x44a545:0x3d,_0x4e8784:0x20,_0x47091e:0x88,_0x34efe2:0x3c,_0x1afc7f:0x55,_0x55a408:0x61,_0x3a377d:0x1d,_0x54703b:0x4e,_0x26e8ef:0x3e,_0x4080b5:0x38},_0x1be70b={_0x14603b:0x276};function _0x197d3b(_0x565e32,_0x1cbe83){return _0xe4bf(_0x1cbe83- -_0x1be70b._0x14603b,_0x565e32);}const _0x12e939=_0x31b24b();while(!![]){try{const _0x4773d3=-parseInt(_0x197d3b(-0xcb,-0x7e))/0x1*(-parseInt(_0x197d3b(_0x335f2b._0x5c7fa5,-_0x335f2b._0x52b30d))/0x2)+-parseInt(_0x197d3b(_0x335f2b._0x44a545,-_0x335f2b._0x4e8784))/0x3+parseInt(_0x197d3b(-_0x335f2b._0x47091e,-_0x335f2b._0x34efe2))/0x4+-parseInt(_0x197d3b(-_0x335f2b._0x1afc7f,-0x82))/0x5+parseInt(_0x197d3b(_0x335f2b._0x55a408,_0x335f2b._0x3a377d))/0x6+parseInt(_0x197d3b(-_0x335f2b._0x54703b,-_0x335f2b._0x26e8ef))/0x7+-parseInt(_0x197d3b(-_0x335f2b._0x4080b5,-0x17))/0x8;if(_0x4773d3===_0x1064fb)break;else _0x12e939['push'](_0x12e939['shift']());}catch(_0x141749){_0x12e939['push'](_0x12e939['shift']());}}}(_0x301b,0xdd6d0));function _0xe4bf(_0x5051bf,_0x573e4f){_0x5051bf=_0x5051bf-0x1dd;const _0x301bc5=_0x301b();let _0xe4bf8a=_0x301bc5[_0x5051bf];if(_0xe4bf['SNOOAV']===undefined){var _0x2e2cdf=function(_0x18611d){const _0x2275aa='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x1ec9f3='',_0x5efb62='';for(let _0x339b34=0x0,_0x47b02e,_0x3ddb5f,_0x37c493=0x0;_0x3ddb5f=_0x18611d['charAt'](_0x37c493++);~_0x3ddb5f&&(_0x47b02e=_0x339b34%0x4?_0x47b02e*0x40+_0x3ddb5f:_0x3ddb5f,_0x339b34++%0x4)?_0x1ec9f3+=String['fromCharCode'](0xff&_0x47b02e>>(-0x2*_0x339b34&0x6)):0x0){_0x3ddb5f=_0x2275aa['indexOf'](_0x3ddb5f);}for(let _0x5e61e6=0x0,_0x374e0f=_0x1ec9f3['length'];_0x5e61e6<_0x374e0f;_0x5e61e6++){_0x5efb62+='%'+('00'+_0x1ec9f3['charCodeAt'](_0x5e61e6)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x5efb62);};_0xe4bf['tDlzxG']=_0x2e2cdf,_0xe4bf['qnrSna']={},_0xe4bf['SNOOAV']=!![];}const _0x330a51=_0x301bc5[0x0],_0x599449=_0x5051bf+_0x330a51,_0x34c1ef=_0xe4bf['qnrSna'][_0x599449];return!_0x34c1ef?(_0xe4bf8a=_0xe4bf['tDlzxG'](_0xe4bf8a),_0xe4bf['qnrSna'][_0x599449]=_0xe4bf8a):_0xe4bf8a=_0x34c1ef,_0xe4bf8a;}const EventEmitter=require(_0x5652d1(0x145,0x105)),{Connection:Connection}=require(_0x5652d1(0x151,0x170)),{newDeviceManager:newDeviceManager}=require(_0x5652d1(0x1be,0x178)),{validateCollectionName:validateCollectionName}=require(_0x5652d1(0xdb,0xfd)),mongofirePlugin=require(_0x5652d1(0x17e,0x195)),{runSync:runSync,getSyncStatus:getSyncStatus}=require('./sync'),{reconcile:_reconcileCollections}=require('./reconcile'),{getConflicts:getConflicts,retryConflict:retryConflict,dismissConflict:dismissConflict,countPending:countPending}=require('./changetrack'),MIN_SYNC_INTERVAL_MS=0x1f4;class MongoFire extends EventEmitter{constructor(){const _0xec8b11={_0x530725:0x5b2,_0x574b9a:0x571,_0x52ca4e:0x53b,_0x1b6977:0x540,_0x359eee:0x4ed,_0x53957a:0x5b5,_0x1c1547:0x55b,_0x4294bb:0x56a,_0x5db45e:0x515,_0x5ce47d:0x559,_0x331e63:0x5bc,_0xc4d8ae:0x5dc,_0x1a1d8d:0x528,_0x1fe712:0x5a6,_0x2cf032:0x5cc,_0x344527:0x503,_0x56d0d3:0x5c0,_0x18c12b:0x612,_0x16a94f:0x5a3,_0x57b1f6:0x5d9,_0x18b593:0x599,_0x32b9a5:0x548,_0x1dfb52:0x50a};function _0x289f72(_0x2e4338,_0x134474){return _0x5652d1(_0x134474,_0x2e4338-0x437);}super(),this[_0x289f72(_0xec8b11._0x530725,0x5b9)]=new Connection(),this[_0x289f72(0x5ca,_0xec8b11._0x574b9a)]=newDeviceManager(),this[_0x289f72(0x561,_0xec8b11._0x52ca4e)]=null,this['_started']=!0x1,this['_syncing']=!0x1,this[_0x289f72(_0xec8b11._0x1b6977,_0xec8b11._0x359eee)]=null,this[_0x289f72(_0xec8b11._0x53957a,_0xec8b11._0x1c1547)]=null,this['_retryCount']=0x0,this[_0x289f72(_0xec8b11._0x4294bb,_0xec8b11._0x5db45e)]=0x0,this[_0x289f72(0x552,_0xec8b11._0x5ce47d)]=!0x1,this[_0x289f72(_0xec8b11._0x331e63,0x584)]=!0x1,this[_0x289f72(_0xec8b11._0xc4d8ae,0x5a8)]=null,this[_0x289f72(0x583,0x53c)]=null,this[_0x289f72(_0xec8b11._0x1a1d8d,0x586)]=null,this['_lastSyncAt']=0x0,this[_0x289f72(_0xec8b11._0x1fe712,0x5b9)]=0x0,this[_0x289f72(0x5c4,_0xec8b11._0x2cf032)]={},this[_0x289f72(0x54c,_0xec8b11._0x344527)]=null,this[_0x289f72(_0xec8b11._0x56d0d3,_0xec8b11._0x18c12b)]=!0x1,this[_0x289f72(0x5b0,0x596)]=null,this[_0x289f72(_0xec8b11._0x16a94f,_0xec8b11._0x57b1f6)]=!0x1,this[_0x289f72(0x5c8,_0xec8b11._0x18b593)]=()=>this[_0x289f72(0x591,0x54f)]()[_0x289f72(0x54b,0x598)](()=>{}),this[_0x289f72(_0xec8b11._0x32b9a5,_0xec8b11._0x1dfb52)]=!0x1;}async[_0x5652d1(0x127,0x14d)](_0x1ec9f3){const _0x59530f={_0x40122d:0x52f,_0x59acf6:0x4e7,_0x447653:0x52f,_0x23aa14:0x501},_0x22dca0={_0x337987:0x1f7,_0x2369bd:0x1fe};function _0x2e1b54(_0x3e180e,_0xaca99e){return _0x5652d1(_0x3e180e,_0xaca99e-0x430);}return this[_0x2e1b54(_0x59530f._0x40122d,0x542)]?this:(this[_0x2e1b54(0x53b,0x521)]||(this['_startPromise']=this[_0x2e1b54(0x5a9,0x57b)](_0x1ec9f3)[_0x2e1b54(_0x59530f._0x59acf6,_0x59530f._0x447653)](()=>{function _0x37f47f(_0x50ef3f,_0x34be74){return _0x2e1b54(_0x34be74,_0x50ef3f- -0x718);}this[_0x37f47f(-_0x22dca0._0x337987,-_0x22dca0._0x2369bd)]=null;})),this[_0x2e1b54(_0x59530f._0x23aa14,0x521)]);}async['_doStart'](_0x5efb62){const _0x3baf7c={_0x2e0c47:0x1c8,_0x3b51e7:0x18c,_0x3f35f8:0x1cf,_0x9db69:0x187,_0x5c6289:0x1da,_0x57067f:0x1c0,_0x3568f7:0x1e1,_0x29ce65:0x15e,_0x35c47e:0x1ee,_0x1f02dc:0x1c1,_0x44b7c3:0x185,_0x3b5359:0x15e,_0x44fcad:0x15f,_0x66bba6:0x1ac,_0x2a39ef:0x19b,_0x1e19f1:0x1dc,_0x2f7877:0x1b0,_0x50a335:0x1cc,_0x1ee9cb:0x179,_0x77025e:0x15f,_0x44b14d:0x169,_0x294f84:0x177,_0x53069f:0x1a2,_0x426741:0x1de,_0x1be07c:0x1f3,_0x2bda99:0x1c5,_0x21b913:0x1ee,_0x558d96:0x1ac,_0x347bcf:0x1db,_0x3d0a27:0x235,_0x3843ee:0x204,_0x563b0a:0x1b4,_0x5323e1:0x151,_0x514f95:0x175,_0x30eb97:0x1b5,_0x35d90c:0x153,_0x46a364:0x13d,_0x1357d4:0x1c4,_0x4d8673:0x178,_0x11886b:0x1cf,_0x3510b8:0x162,_0x3c739a:0x119,_0x1b4304:0x189,_0x19e92e:0x163},_0x31fba5={_0x54f832:0x2f2};this[_0x4cea57(-_0x3baf7c._0x2e0c47,-_0x3baf7c._0x2e0c47)]=this[_0x4cea57(-_0x3baf7c._0x3b51e7,-_0x3baf7c._0x3f35f8)](_0x5efb62);const _0x339b34=this['_config'];function _0x4cea57(_0x5cf288,_0x4e2957){return _0x5652d1(_0x4e2957,_0x5cf288- -_0x31fba5._0x54f832);}this[_0x4cea57(-0x1e1,-_0x3baf7c._0x9db69)]||(process['on'](_0x4cea57(-_0x3baf7c._0x5c6289,-_0x3baf7c._0x57067f),this['_boundExit']),process['on'](_0x4cea57(-0x15a,-0x11e),this[_0x4cea57(-0x161,-0x12e)]),this[_0x4cea57(-_0x3baf7c._0x3568f7,-0x215)]=!0x0),console[_0x4cea57(-0x1dc,-0x201)]('🔥\x20[MongoFire]\x20Starting...');try{await this['_conn'][_0x4cea57(-0x176,-_0x3baf7c._0x29ce65)](_0x339b34[_0x4cea57(-0x1b5,-0x212)],_0x339b34[_0x4cea57(-_0x3baf7c._0x35c47e,-_0x3baf7c._0x1f02dc)]);}catch(_0x47b02e){throw new Error(_0x4cea57(-_0x3baf7c._0x44b7c3,-_0x3baf7c._0x3b5359)+_0x47b02e['message']);}await this[_0x4cea57(-_0x3baf7c._0x44fcad,-_0x3baf7c._0x66bba6)][_0x4cea57(-0x19a,-0x1ad)](this[_0x4cea57(-0x177,-_0x3baf7c._0x2a39ef)][_0x4cea57(-0x156,-0x116)]);try{console[_0x4cea57(-_0x3baf7c._0x1e19f1,-_0x3baf7c._0x2f7877)](_0x4cea57(-_0x3baf7c._0x50a335,-_0x3baf7c._0x1ee9cb)+this[_0x4cea57(-_0x3baf7c._0x77025e,-_0x3baf7c._0x9db69)][_0x4cea57(-0x1ba,-_0x3baf7c._0x44b14d)]());}catch(_0x3ddb5f){}if(_0x339b34[_0x4cea57(-0x1a4,-0x15b)])try{const _0x37c493=await _reconcileCollections(_0x339b34['collections'],this['_ownerFields'],{'verbose':!0x0,'fullScan':_0x339b34['reconcileFullScan']},this[_0x4cea57(-_0x3baf7c._0x294f84,-_0x3baf7c._0x50a335)]),_0x5e61e6=_0x37c493['reduce']((_0x374e0f,_0x586b2c)=>_0x374e0f+(_0x586b2c[_0x4cea57(-0x1b1,-0x20a)]||0x0),0x0);_0x5e61e6>0x0&&this['emit'](_0x4cea57(-0x173,-0x162),{'collections':_0x37c493,'totalQueued':_0x5e61e6});}catch(_0x3fa9cf){console['error'](_0x4cea57(-_0x3baf7c._0x53069f,-0x1d5),_0x3fa9cf[_0x4cea57(-0x205,-0x1b8)]),this[_0x4cea57(-0x1bc,-0x1db)](_0x4cea57(-0x1e2,-_0x3baf7c._0x426741),_0x3fa9cf);}return _0x339b34[_0x4cea57(-0x1c5,-_0x3baf7c._0x1be07c)]?(await this['_conn'][_0x4cea57(-0x188,-0x1dc)](_0x339b34[_0x4cea57(-_0x3baf7c._0x2bda99,-_0x3baf7c._0x3f35f8)],_0x339b34[_0x4cea57(-_0x3baf7c._0x21b913,-0x1ea)])?(console[_0x4cea57(-_0x3baf7c._0x1e19f1,-_0x3baf7c._0x3568f7)]('✅\x20[MongoFire]\x20Atlas\x20connected'),await this[_0x4cea57(-_0x3baf7c._0x558d96,-0x1e6)]('required'),_0x339b34[_0x4cea57(-_0x3baf7c._0x347bcf,-_0x3baf7c._0x3d0a27)]&&await this['_startRealtime']()):console['warn'](_0x4cea57(-_0x3baf7c._0x3843ee,-_0x3baf7c._0x563b0a)+(this[_0x4cea57(-0x177,-_0x3baf7c._0x5323e1)][_0x4cea57(-_0x3baf7c._0x514f95,-_0x3baf7c._0x30eb97)]||'unknown')+')'),this[_0x4cea57(-_0x3baf7c._0x35d90c,-_0x3baf7c._0x46a364)](),this[_0x4cea57(-_0x3baf7c._0x1357d4,-_0x3baf7c._0x2a39ef)]()):console[_0x4cea57(-_0x3baf7c._0x4d8673,-_0x3baf7c._0x11886b)](_0x4cea57(-0x1bb,-0x1ed)),this[_0x4cea57(-0x1e0,-0x23e)]=!0x0,console[_0x4cea57(-0x1dc,-0x1a0)](_0x4cea57(-_0x3baf7c._0x3510b8,-_0x3baf7c._0x3c739a)+(this[_0x4cea57(-0x169,-0x14c)]?_0x4cea57(-0x158,-0x135):_0x4cea57(-_0x3baf7c._0x1b4304,-0x191)+_0x339b34[_0x4cea57(-0x1b0,-_0x3baf7c._0x5c6289)]/0x3e8+'s')+'\x0a'),this[_0x4cea57(-0x1bc,-0x1cb)](_0x4cea57(-_0x3baf7c._0x19e92e,-0x144)),this;}[_0x5652d1(0x13e,0x184)](_0x46d02f,_0x114e30={}){const _0x531a60={_0x56929d:0x392,_0x2ffbb8:0x3e3,_0x2ad5e7:0x4aa,_0x1d820e:0x413},_0x53faec={_0x59413f:0x15a,_0x390174:0x7e,_0x531229:0xba,_0x804ef3:0xe3},_0x45ed3d={_0x19aaa6:0x2e2};if(!_0x46d02f)throw new Error(_0x1d6d11(_0x531a60._0x56929d,_0x531a60._0x2ffbb8));function _0x1d6d11(_0x172ee6,_0x27cc11){return _0x5652d1(_0x172ee6,_0x27cc11-_0x45ed3d._0x19aaa6);}validateCollectionName(_0x46d02f),_0x114e30[_0x1d6d11(0x37a,0x3d6)]&&(this[_0x1d6d11(_0x531a60._0x2ad5e7,0x46f)][_0x46d02f]=_0x114e30[_0x1d6d11(_0x531a60._0x1d820e,0x3d6)]);const _0xa077f3=this[_0x1d6d11(0x4b7,0x45d)];return(_0x504e19,_0x133f74)=>{function _0x4fe8d0(_0x2e18d3,_0x2d4015){return _0x1d6d11(_0x2e18d3,_0x2d4015- -0x530);}mongofirePlugin(_0x504e19,{'collection':_0x46d02f||_0x133f74?.[_0x4fe8d0(-0x12a,-0x146)]||'unknown','ownerField':_0x114e30[_0x4fe8d0(-0x14b,-0x15a)]||_0x133f74?.[_0x4fe8d0(-0x126,-_0x53faec._0x59413f)]||null,'batchSize':_0x114e30[_0x4fe8d0(-_0x53faec._0x390174,-_0x53faec._0x531229)]||0xc8,'concurrency':_0x114e30[_0x4fe8d0(-0xa2,-_0x53faec._0x804ef3)]||0x8,'conn':_0xa077f3});};}async[_0x5652d1(0xfe,0xfa)](_0x26b6d1,_0x55623b={}){const _0x3949fc={_0x45750b:0x4b2,_0x54dbda:0x42d,_0x39561b:0x3da,_0x25b2bd:0x44a,_0x16d18e:0x469,_0x3231bd:0x4a9,_0x58faa4:0x481,_0x373a54:0x4c4,_0x5ad7a6:0x46d,_0xc94dd3:0x4b6,_0x5144d7:0x459},_0x3f75db={_0x539c4e:0x337};function _0x1cf62f(_0x46e1f5,_0x43b479){return _0x5652d1(_0x43b479,_0x46e1f5-_0x3f75db._0x539c4e);}if(!this[_0x1cf62f(_0x3949fc._0x45750b,0x4ea)]['local'])throw new Error('[MongoFire]\x20reconcile:\x20MongoFire\x20is\x20not\x20started');let _0x35199;if(_0x1cf62f(_0x3949fc._0x54dbda,_0x3949fc._0x39561b)==typeof _0x26b6d1?_0x35199=[_0x26b6d1]:Array[_0x1cf62f(_0x3949fc._0x25b2bd,0x487)](_0x26b6d1)?_0x35199=_0x26b6d1:(_0x55623b=_0x26b6d1||{},_0x35199=this['_config']?.['collections']||[]),!_0x35199['length'])throw new Error('[MongoFire]\x20reconcile:\x20no\x20collections\x20specified\x20and\x20MongoFire\x20not\x20started\x20yet');const _0x3dfdb2={'fullScan':!0x1!==_0x55623b[_0x1cf62f(_0x3949fc._0x16d18e,_0x3949fc._0x3231bd)],'verbose':!0x1!==_0x55623b[_0x1cf62f(0x493,_0x3949fc._0x58faa4)]},_0x120588=await _reconcileCollections(_0x35199,this[_0x1cf62f(_0x3949fc._0x373a54,_0x3949fc._0x3231bd)],_0x3dfdb2,this[_0x1cf62f(0x4b2,0x50e)]),_0x324d34=_0x120588[_0x1cf62f(0x459,0x479)]((_0x1eaf32,_0x4984ca)=>_0x1eaf32+(_0x4984ca['totalQueued']||0x0),0x0);return this[_0x1cf62f(_0x3949fc._0x5ad7a6,0x4bf)](_0x1cf62f(_0x3949fc._0xc94dd3,_0x3949fc._0x5144d7),{'collections':_0x120588,'totalQueued':_0x324d34}),_0x120588;}async[_0x5652d1(0x153,0x10b)](_0x274e15=_0x5652d1(0x155,0x1a7)){const _0x434532={_0x15a5e2:0x286,_0x29bbdc:0x215,_0x3fe2a7:0x281,_0x51c2b4:0x2a5,_0x25eeae:0x285,_0x34e99b:0x234,_0x5d3b54:0x217,_0x46571f:0x293,_0x58efc0:0x26a,_0x385e15:0x266},_0x3d352e={_0x3d7f1f:0x10b};function _0x4fe12a(_0x1c7bb2,_0x5bfd2d){return _0x5652d1(_0x5bfd2d,_0x1c7bb2-_0x3d352e._0x3d7f1f);}return this[_0x4fe12a(_0x434532._0x15a5e2,0x2bc)][_0x4fe12a(_0x434532._0x29bbdc,0x1fb)]?Date['now']()-this[_0x4fe12a(_0x434532._0x3fe2a7,_0x434532._0x51c2b4)]<0x1f4?(console[_0x4fe12a(_0x434532._0x25eeae,_0x434532._0x34e99b)](_0x4fe12a(_0x434532._0x5d3b54,0x25d)),null):this['_runSync'](_0x274e15):{'error':_0x4fe12a(_0x434532._0x46571f,_0x434532._0x58efc0),'pending':await this[_0x4fe12a(0x2af,_0x434532._0x385e15)]()};}async[_0x5652d1(0x135,0x186)](){const _0x30cba0={_0x378f06:0x10d},_0x14e96d={_0x5d12d1:0xa1};function _0x29d4a6(_0x469651,_0x1b84f8){return _0x5652d1(_0x469651,_0x1b84f8- -_0x14e96d._0x5d12d1);}return{...await getSyncStatus(this[_0x29d4a6(0xe2,0xe8)],this[_0x29d4a6(_0x30cba0._0x378f06,0xda)]),'realtime':this['_realtimeActive']};}async[_0x5652d1(0x140,0x180)](_0x723f8d=0x7,_0x12ebb3={}){const _0x77bd3c={_0xb405f9:0x1c6,_0x13bcf3:0x1cb,_0x498f69:0x16e,_0x31ef03:0x143,_0x67d8db:0x1ef,_0x1458b1:0x1dd,_0x402154:0x164,_0x975e73:0x1a8,_0x30bafd:0x1ef,_0x4c100e:0x140,_0x2c3ad0:0x1b6,_0x213b38:0x204,_0x296de1:0x1b6,_0x46eaa0:0x1c9,_0x4705a1:0x205,_0x4db2b7:0x16e,_0x12121b:0x19a,_0x3ead47:0x1c2,_0x18e298:0x18e,_0x4aacf9:0x212},_0x46a126={_0x3ccc45:0x2df};function _0x250395(_0x44e7c3,_0x1cb31f){return _0x5652d1(_0x1cb31f,_0x44e7c3- -_0x46a126._0x3ccc45);}if(!this['_conn'][_0x250395(-0x143,-0x18d)])throw new Error(_0x250395(-_0x77bd3c._0xb405f9,-0x224));const _0x2b2b45=new Date(Date[_0x250395(-0x1c3,-0x1ae)]()-0x5265c00*_0x723f8d),_0x1fccb5=_0x12ebb3[_0x250395(-0x1af,-_0x77bd3c._0x13bcf3)]??_0x723f8d,_0xa16a8c=new Date(Date[_0x250395(-0x1c3,-0x1c6)]()-0x5265c00*_0x1fccb5),_0x177a99=await this[_0x250395(-0x164,-_0x77bd3c._0x498f69)][_0x250395(-_0x77bd3c._0x31ef03,-0x14d)][_0x250395(-0x1d7,-0x218)]('_mf_changetrack')[_0x250395(-_0x77bd3c._0x67d8db,-_0x77bd3c._0x1458b1)]({'synced':!0x0,'syncedAt':{'$lt':_0x2b2b45}}),_0x74a958=await this[_0x250395(-_0x77bd3c._0x402154,-_0x77bd3c._0x975e73)][_0x250395(-_0x77bd3c._0x31ef03,-0x14a)]['collection'](_0x250395(-0x181,-0x1c3))[_0x250395(-_0x77bd3c._0x30bafd,-0x1d8)]({'ackState':_0x250395(-0x17e,-_0x77bd3c._0x4c100e),'synced':!0x1,'timestamp':{'$lt':_0xa16a8c}}),_0x35b18f=_0x177a99[_0x250395(-_0x77bd3c._0x2c3ad0,-_0x77bd3c._0x213b38)]+_0x74a958[_0x250395(-_0x77bd3c._0x296de1,-0x1d4)];return console[_0x250395(-_0x77bd3c._0x46eaa0,-_0x77bd3c._0x4705a1)](_0x250395(-_0x77bd3c._0x4db2b7,-_0x77bd3c._0x12121b)+_0x177a99['deletedCount']+_0x250395(-_0x77bd3c._0x3ead47,-_0x77bd3c._0x18e298)+_0x74a958[_0x250395(-0x1b6,-_0x77bd3c._0x4aacf9)]+_0x250395(-0x1a3,-0x1f3)),_0x35b18f;}async[_0x5652d1(0x164,0x197)](_0x3d7424=null){const _0xe6b2ec={_0xff8871:0x48f,_0x4610dc:0x43a,_0x7f18a:0x4a4,_0x52c27d:0x45b,_0x57de42:0x3f1};if(!this[_0x3ae007(_0xe6b2ec._0xff8871,_0xe6b2ec._0x4610dc)][_0x3ae007(_0xe6b2ec._0x7f18a,_0xe6b2ec._0x52c27d)])throw new Error('[MongoFire]\x20conflicts:\x20MongoFire\x20is\x20not\x20started');function _0x3ae007(_0x4b655a,_0x394c2f){return _0x5652d1(_0x4b655a,_0x394c2f-0x2bf);}return getConflicts(_0x3d7424,this[_0x3ae007(_0xe6b2ec._0x57de42,0x43a)]);}async[_0x5652d1(0x155,0x196)](_0x4cd9de){const _0x47508a={_0x1d0534:0x4f,_0x373136:0x70,_0x1569fe:0x6,_0xde154b:0xa,_0x519b23:0x34},_0x3d375e={_0x24bef2:0x12c};function _0x20a4aa(_0x238dce,_0x5f9ee2){return _0x5652d1(_0x5f9ee2,_0x238dce- -_0x3d375e._0x24bef2);}if(!this[_0x20a4aa(_0x47508a._0x1d0534,0x3a)][_0x20a4aa(_0x47508a._0x373136,0xcd)])throw new Error('[MongoFire]\x20retryConflict:\x20MongoFire\x20is\x20not\x20started');await retryConflict(_0x4cd9de,this[_0x20a4aa(_0x47508a._0x1d0534,_0x47508a._0x1569fe)]),this[_0x20a4aa(_0x47508a._0xde154b,-_0x47508a._0x519b23)](_0x20a4aa(0x62,0x46),{'opId':_0x4cd9de,'resolution':'retried'});}async[_0x5652d1(0x161,0x173)](_0x1ecd1a){const _0x492781={_0x1156b2:0xf,_0x2255cf:0x48,_0x380dfa:0x6b,_0x70ac9:0x9e,_0x36383d:0x84,_0x4e676e:0x9a,_0x4cf739:0x8d,_0x87debb:0x62},_0x2e09e9={_0x2a6ecc:0x1c3};function _0x45f219(_0x527ba3,_0x7cbdd1){return _0x5652d1(_0x527ba3,_0x7cbdd1- -_0x2e09e9._0x2a6ecc);}if(!this[_0x45f219(_0x492781._0x1156b2,-_0x492781._0x2255cf)][_0x45f219(-0x1b,-0x27)])throw new Error(_0x45f219(-_0x492781._0x380dfa,-_0x492781._0x70ac9));await dismissConflict(_0x1ecd1a,this[_0x45f219(-_0x492781._0x36383d,-0x48)]),this[_0x45f219(-_0x492781._0x4e676e,-_0x492781._0x4cf739)](_0x45f219(-0x4a,-0x35),{'opId':_0x1ecd1a,'resolution':_0x45f219(-_0x492781._0x87debb,-0x4c)});}async[_0x5652d1(0xba,0x10f)](){const _0x156c1f={_0x5561eb:0x3f9,_0x3cb802:0x39c,_0xb52408:0x3d8,_0x468632:0x3bd,_0x2b19d2:0x347,_0x2aec4f:0x377,_0x131a4b:0x3ab,_0x3c2a6a:0x350,_0x2ffa35:0x37f,_0x572b29:0x364,_0x15de7c:0x3b8,_0x1dd60e:0x35a,_0x2dc252:0x33b,_0x149899:0x34b,_0x20ea7a:0x346,_0x257014:0x370,_0x18ca8e:0x34a,_0xf5c68c:0x30e,_0x24de1d:0x374,_0x4203ba:0x331,_0x47cf62:0x3ac,_0x4c628f:0x337,_0x1f105f:0x37b,_0x12d0c1:0x313},_0x267780={_0x1914f3:0x221};if(!this[_0x121e80(_0x156c1f._0x5561eb,_0x156c1f._0x3cb802)][_0x121e80(_0x156c1f._0xb52408,_0x156c1f._0x468632)])throw new Error(_0x121e80(_0x156c1f._0x2b19d2,_0x156c1f._0x2aec4f));const _0x3c3d15=this[_0x121e80(0x3a7,_0x156c1f._0x3cb802)][_0x121e80(_0x156c1f._0x131a4b,0x3bd)],_0x4b597e=[...new Set([_0x121e80(_0x156c1f._0x3c2a6a,_0x156c1f._0x2ffa35),_0x121e80(0x36f,_0x156c1f._0x572b29),_0x121e80(_0x156c1f._0x15de7c,0x3be),_0x121e80(_0x156c1f._0x1dd60e,_0x156c1f._0x2dc252),'_mf_devices',...this[_0x121e80(0x35f,_0x156c1f._0x149899)]?.['collections']||[]])];let _0x4242a4=0x0;for(const _0x4db4b9 of _0x4b597e)try{await _0x3c3d15[_0x121e80(_0x156c1f._0x20ea7a,0x329)](_0x4db4b9)[_0x121e80(0x377,_0x156c1f._0x257014)](),_0x4242a4++;}catch(_0x22f711){_0x22f711[_0x121e80(_0x156c1f._0x18ca8e,_0x156c1f._0xf5c68c)]?.[_0x121e80(0x3b4,_0x156c1f._0x24de1d)]('ns\x20not\x20found')||_0x22f711['codeName']?.['includes']('NamespaceNotFound')||console[_0x121e80(0x385,_0x156c1f._0x4203ba)](_0x121e80(0x3e5,_0x156c1f._0x47cf62)+_0x4db4b9+'\x22:',_0x22f711['message']);}function _0x121e80(_0x4002d3,_0x10cc65){return _0x5652d1(_0x4002d3,_0x10cc65-_0x267780._0x1914f3);}return console[_0x121e80(0x31f,_0x156c1f._0x4c628f)](_0x121e80(_0x156c1f._0x1f105f,0x3ab)+_0x4242a4+_0x121e80(0x35a,_0x156c1f._0x12d0c1)),{'dropped':_0x4242a4};}get[_0x5652d1(0x131,0x10a)](){const _0x195f40={_0x21f84c:0x57},_0x9ca6d6={_0x52d2ea:0x1d2};function _0x4e36fa(_0x526372,_0x427c50){return _0x5652d1(_0x526372,_0x427c50- -_0x9ca6d6._0x52d2ea);}return this[_0x4e36fa(-0x60,-_0x195f40._0x21f84c)]['online'];}get[_0x5652d1(0x124,0x140)](){const _0x240927={_0x2a9849:0xaa};function _0x3ed17d(_0x2b3346,_0x586a2c){return _0x5652d1(_0x2b3346,_0x586a2c- -0x68);}return this[_0x3ed17d(0x9f,_0x240927._0x2a9849)];}get[_0x5652d1(0xdf,0x13a)](){function _0x43a661(_0x5cb069,_0x25340c){return _0x5652d1(_0x5cb069,_0x25340c-0x5e);}return!!this[_0x43a661(0x1ad,0x181)];}get[_0x5652d1(0xb5,0xec)](){const _0x1bb083={_0x39e974:0xae};function _0x2b6d3d(_0x7f4d5a,_0x449bb3){return _0x5652d1(_0x7f4d5a,_0x449bb3- -_0x1bb083._0x39e974);}return this[_0x2b6d3d(0x8e,0xdb)];}async[_0x5652d1(0x185,0x135)](){const _0x545a06={_0x5eeef6:0x43,_0x3d9dc9:0x37,_0x50d6d4:0x76,_0x38267f:0x40,_0x235161:0xa1,_0x1a249f:0xa9,_0x5e5878:0x36,_0x4e5fee:0x45,_0xe7e104:0x5a,_0x23d832:0x58,_0x4ce7ac:0xfb,_0x5789a9:0xbc,_0x2759db:0x26,_0x2e5f09:0x9a,_0x3856ff:0x39,_0x2eb62d:0x38,_0x1d5f03:0x7a,_0x5db856:0xb8,_0x44cc5c:0x5d,_0x5a4d8c:0x54,_0x26abd8:0x66,_0x21bd9c:0xb6,_0x5106b7:0x101,_0x4648d8:0xc2},_0x58b1a4={_0x495c1e:0x547,_0x2febf5:0x525},_0x4ccad6={_0x4256bd:0x1bc,_0x15de25:0x179,_0x470d69:0x21e,_0x3cf646:0x1cb,_0x5061b9:0x152,_0x371bea:0x157,_0x1a9e72:0x1cc,_0x5b6bf9:0x194,_0x48f9b4:0x1b1,_0x4e32ee:0x1a4,_0x3d11bd:0x17c,_0x5864f2:0x131,_0xa584a0:0x17d,_0x3616a5:0x1d4},_0x1287c4={_0x320e4f:0x1f1},_0x2c3413={_0x519b7f:0x5a9,_0x93e166:0x565,_0x221180:0x574,_0x5cf83b:0x5ac,_0x4689db:0x58a,_0x286ab4:0x57e,_0x1b8902:0x5c3,_0x399aed:0x5dd,_0x4ab951:0x56b,_0x1f9610:0x5b9,_0x43750c:0x5af,_0x1a4808:0x5f0},_0x4150ee={_0x576ec3:0x1af};function _0x438025(_0x29836d,_0x2c882c){return _0x5652d1(_0x2c882c,_0x29836d- -_0x4150ee._0x576ec3);}if(!this[_0x438025(-0x26,0x8)]&&!this['_realtimeStarting']){if(this[_0x438025(-_0x545a06._0x5eeef6,-_0x545a06._0x3d9dc9)]=!0x0,this['_conn']['atlas'])try{const _0x127f58=[{'$match':{'operationType':_0x438025(-0xb7,-0x68),'updateDescription.updatedFields.applyStatus':_0x438025(-0x4c,-0x6b),'fullDocument.collection':{'$in':this['_config'][_0x438025(-_0x545a06._0x50d6d4,-_0x545a06._0x38267f)]}}}],_0x5099b6={'fullDocument':_0x438025(-_0x545a06._0x235161,-0xaf),'maxAwaitTimeMS':0x2710};this[_0x438025(-0x36,-0x21)]&&(_0x5099b6[_0x438025(-_0x545a06._0x1a249f,-0xb9)]=this[_0x438025(-_0x545a06._0x5e5878,-_0x545a06._0x4e5fee)],console[_0x438025(-0x99,-0xca)](_0x438025(-_0x545a06._0xe7e104,-0x15))),this[_0x438025(-0x9a,-_0x545a06._0x23d832)]=this['_conn'][_0x438025(-0xad,-0x55)][_0x438025(-0xa7,-_0x545a06._0x4ce7ac)]('_mf_changetrack')[_0x438025(-_0x545a06._0x5789a9,-0xc0)](_0x127f58,_0x5099b6),this[_0x438025(-0x9a,-0x7b)]['on'](_0x438025(-0x28,_0x545a06._0x2759db),async _0x221ee4=>{const _0x5483c8={_0xa97df6:0x29,_0x124b94:0xc,_0x9013fe:0x4d,_0x17edec:0x55,_0x20b275:0x63},_0x3fbe3d={_0x51b16e:0x5dc};if(_0x221ee4[_0x3b8bd4(_0x2c3413._0x519b7f,0x56f)]&&(this['_resumeToken']=_0x221ee4['_id']),!_0x221ee4[_0x3b8bd4(0x58a,0x5d5)])return void console['warn'](_0x3b8bd4(0x5ae,_0x2c3413._0x93e166));const _0x2082ed=this['_deviceManager'][_0x3b8bd4(0x5c2,_0x2c3413._0x221180)]();function _0x3b8bd4(_0xe0143e,_0x1fbb89){return _0x438025(_0xe0143e-0x639,_0x1fbb89);}if(_0x221ee4[_0x3b8bd4(0x58a,_0x2c3413._0x5cf83b)]['deviceId']===_0x2082ed)return;const _0x1435a0=_0x221ee4[_0x3b8bd4(_0x2c3413._0x4689db,0x594)][_0x3b8bd4(0x592,_0x2c3413._0x286ab4)];_0x1435a0&&this['_config'][_0x3b8bd4(_0x2c3413._0x1b8902,0x59b)][_0x3b8bd4(_0x2c3413._0x399aed,0x588)](_0x1435a0)&&(console['log']('[MongoFire]\x20⚡\x20Live\x20change:\x20'+(_0x221ee4[_0x3b8bd4(0x58a,_0x2c3413._0x4ab951)][_0x3b8bd4(0x5aa,0x590)]||_0x221ee4[_0x3b8bd4(_0x2c3413._0x4689db,_0x2c3413._0x1f9610)]['op']||'?')+_0x3b8bd4(0x5c5,_0x2c3413._0x43750c)+_0x1435a0+_0x3b8bd4(0x5c9,0x56c)),this[_0x3b8bd4(0x5d6,0x5e3)]&&clearTimeout(this[_0x3b8bd4(0x5d6,_0x2c3413._0x1a4808)]),this['_realtimeDebounce']=setTimeout(()=>{function _0x1c690d(_0x10479b,_0x362d3c){return _0x3b8bd4(_0x10479b- -_0x3fbe3d._0x51b16e,_0x362d3c);}this[_0x1c690d(-0x6,-_0x5483c8._0xa97df6)]=null,this[_0x1c690d(-_0x5483c8._0x124b94,_0x5483c8._0x9013fe)](_0x1c690d(_0x5483c8._0x17edec,_0x5483c8._0x20b275))['catch'](()=>{});},0x12c));}),this['_changeStream']['on']('error',_0x432737=>{const _0x176d50={_0xd12509:0x352,_0x251a5b:0x306,_0x4b055c:0x265,_0x160104:0x281,_0x12ac42:0x2d9,_0x1a1805:0x2ad,_0x545d43:0x2c6,_0x20f75c:0x2c5,_0x43cca5:0x2d6};function _0x161dde(_0x3ff464,_0x4727b3){return _0x438025(_0x4727b3-_0x1287c4._0x320e4f,_0x3ff464);}console[_0x161dde(0x1d6,_0x4ccad6._0x4256bd)]('[MongoFire]\x20Realtime\x20stream\x20error:',_0x432737?.[_0x161dde(_0x4ccad6._0x15de25,0x12f)]||_0x432737),this[_0x161dde(_0x4ccad6._0x470d69,_0x4ccad6._0x3cf646)]=!0x1,this[_0x161dde(_0x4ccad6._0x5061b9,_0x4ccad6._0x371bea)]=null,this['_realtimeRetryCount']++;const _0x531f14=Math['min'](0x7d0*Math[_0x161dde(_0x4ccad6._0x1a9e72,_0x4ccad6._0x5b6bf9)](0x2,this[_0x161dde(0x1a3,_0x4ccad6._0x48f9b4)]-0x1),0xea60),_0x16927e=0.2*_0x531f14*(0x2*Math[_0x161dde(_0x4ccad6._0x4e32ee,0x193)]()-0x1),_0x37eb2b=Math['round'](_0x531f14+_0x16927e);console[_0x161dde(0x157,0x158)]('[MongoFire]\x20Realtime\x20will\x20restart\x20in\x20'+Math[_0x161dde(_0x4ccad6._0x3d11bd,_0x4ccad6._0x5864f2)](_0x37eb2b/0x3e8)+_0x161dde(_0x4ccad6._0xa584a0,_0x4ccad6._0x3616a5)+this[_0x161dde(0x20b,_0x4ccad6._0x48f9b4)]+')'),setTimeout(()=>{function _0xfad63c(_0x1ffeca,_0x15b1ed){return _0x161dde(_0x1ffeca,_0x15b1ed-0x16d);}this[_0xfad63c(_0x176d50._0xd12509,0x32a)][_0xfad63c(_0x176d50._0x251a5b,0x2b9)]&&this[_0xfad63c(_0x176d50._0x4b055c,0x2c1)]&&this[_0xfad63c(_0x176d50._0x160104,_0x176d50._0x12ac42)]?.[_0xfad63c(_0x176d50._0x1a1805,_0x176d50._0x545d43)]&&(console[_0xfad63c(0x311,_0x176d50._0x20f75c)](_0xfad63c(0x2de,_0x176d50._0x43cca5)),this[_0xfad63c(0x316,0x2e4)]()[_0xfad63c(0x31e,0x2c3)](()=>{}));},_0x37eb2b);}),this[_0x438025(-_0x545a06._0x2e5f09,-0xb5)]['on']('close',()=>{function _0x3c5485(_0xb7d006,_0x4067f4){return _0x438025(_0xb7d006-0x5e1,_0x4067f4);}this['_realtimeActive']=!0x1,this[_0x3c5485(_0x58b1a4._0x495c1e,_0x58b1a4._0x2febf5)]=null;}),this[_0x438025(-0x26,-_0x545a06._0x3856ff)]=!0x0,this[_0x438025(-0x43,-_0x545a06._0x2eb62d)]=!0x1,this[_0x438025(-0x40,0x2)]=0x0,console[_0x438025(-0x99,-_0x545a06._0x1d5f03)](_0x438025(-_0x545a06._0x5db856,-_0x545a06._0x44cc5c)),this[_0x438025(-0x79,-0x9a)](_0x438025(-_0x545a06._0x5a4d8c,0x6));}catch(_0x4c63cd){console[_0x438025(-0x35,-_0x545a06._0x26abd8)](_0x438025(-_0x545a06._0x21bd9c,-_0x545a06._0x5106b7),_0x4c63cd?.[_0x438025(-_0x545a06._0x4648d8,-0x6f)]||_0x4c63cd),this[_0x438025(-_0x545a06._0x2759db,0x12)]=!0x1,this['_realtimeStarting']=!0x1;}else this['_realtimeStarting']=!0x1;}}async['stopRealtime'](){const _0x2652dd={_0x510da1:0x30c,_0x4094d9:0x305,_0x4524ec:0x300,_0x233e2f:0x2ec,_0x1dfd51:0x349,_0x8b41ca:0x365,_0x1d11a3:0x2d6};if(this['_realtimeDebounce']&&(clearTimeout(this['_realtimeDebounce']),this[_0x40829c(_0x2652dd._0x510da1,_0x2652dd._0x4094d9)]=null),this[_0x40829c(0x2d5,0x2fa)]){try{await this[_0x40829c(0x2d5,_0x2652dd._0x4524ec)][_0x40829c(_0x2652dd._0x233e2f,0x2b8)]();}catch(_0x251f5a){}this[_0x40829c(0x2d5,_0x2652dd._0x4094d9)]=null;}function _0x40829c(_0x21b518,_0x5c49a3){return _0x5652d1(_0x5c49a3,_0x21b518-0x1c0);}this[_0x40829c(_0x2652dd._0x1dfd51,_0x2652dd._0x8b41ca)]=!0x1,console[_0x40829c(_0x2652dd._0x1d11a3,0x27b)]('[MongoFire]\x20Realtime\x20stopped\x20—\x20polling\x20continues'),this['emit']('realtimeStopped');}async[_0x5652d1(0x17e,0x14a)](){const _0x35f2ed={_0x5c9d0e:0x48c,_0x31acf7:0x41b,_0x447049:0x3e1,_0x5539ab:0x494,_0x5c0906:0x413,_0x133cfd:0x405};function _0x482763(_0x26d5b3,_0x5c4c77){return _0x5652d1(_0x5c4c77,_0x26d5b3-0x311);}return this[_0x482763(_0x35f2ed._0x5c9d0e,0x4e3)][_0x482763(_0x35f2ed._0x31acf7,_0x35f2ed._0x447049)]&&this[_0x482763(0x48c,_0x35f2ed._0x5539ab)][_0x482763(_0x35f2ed._0x5c0906,0x42d)]?(await this[_0x482763(0x446,0x45d)](),this[_0x482763(0x49a,0x450)]):(console[_0x482763(0x48b,0x4ba)](_0x482763(0x40f,_0x35f2ed._0x133cfd)),!0x1);}[_0x5652d1(0x145,0x19f)](){const _0x238558={_0x1a3bf9:0x3e7,_0x1a21d2:0x37b,_0x1a133d:0x39c,_0x2be332:0x3ac,_0x1edf20:0x3bb,_0xed42d6:0x36e,_0x5afa53:0x3a8,_0x35dbed:0x37b},_0x297d15={_0x2b07ff:0x19f,_0x1605de:0x184,_0xbcf71b:0x17c,_0x48b1b3:0x102,_0x4c98d0:0x198,_0x5f3fa0:0x1a4,_0x407574:0x150,_0x5b4f07:0x185,_0x520637:0x1ae},_0x32c8d1={_0x47f401:0x272};function _0x39599a(_0x1a84e1,_0x50e8d2){return _0x5652d1(_0x50e8d2,_0x1a84e1-_0x32c8d1._0x47f401);}this['_syncTimer']||(this[_0x39599a(_0x238558._0x1a3bf9,0x3e1)]=0x0,this[_0x39599a(_0x238558._0x1a21d2,0x3b0)]=setInterval(async()=>{const _0x59ce0b={_0x5a7696:0x534};function _0x442b16(_0x24d4c6,_0x57c5b4){return _0x39599a(_0x57c5b4- -_0x59ce0b._0x5a7696,_0x24d4c6);}if(this[_0x442b16(-0x1a1,-0x147)]['online']&&!this[_0x442b16(-0x185,-_0x297d15._0x2b07ff)]){try{await this[_0x442b16(-_0x297d15._0x1605de,-_0x297d15._0xbcf71b)](_0x442b16(-0x127,-0x11b));}catch(_0x3268aa){}++this['_syncCycleCount']%0x64==0x0&&this[_0x442b16(-_0x297d15._0x48b1b3,-0x142)](this[_0x442b16(-0x1a7,-_0x297d15._0x4c98d0)][_0x442b16(-_0x297d15._0x5f3fa0,-_0x297d15._0x407574)]||0x7)[_0x442b16(-_0x297d15._0x5b4f07,-_0x297d15._0x520637)](_0x2a6619=>{const _0x5612b4={_0x3338e1:0x242};function _0xf4b049(_0x538441,_0x11197a){return _0x442b16(_0x538441,_0x11197a-_0x5612b4._0x3338e1);}console[_0xf4b049(0x10e,0xfa)]('[MongoFire]\x20Periodic\x20auto-clean\x20failed\x20(non-fatal):',_0x2a6619?.[_0xf4b049(0x9d,0x6d)]||_0x2a6619);});}},this[_0x39599a(_0x238558._0x1a133d,_0x238558._0x2be332)]['syncInterval']),_0x39599a(0x3a1,0x3e9)==typeof this[_0x39599a(_0x238558._0x1a21d2,_0x238558._0x1edf20)][_0x39599a(_0x238558._0xed42d6,_0x238558._0x5afa53)]&&this[_0x39599a(_0x238558._0x35dbed,0x38e)][_0x39599a(0x36e,0x333)]());}[_0x5652d1(0x152,0x12e)](){const _0x5124d0={_0x21db78:0x161,_0xb002b8:0x16a,_0x42a8fc:0x161,_0x9693bf:0x1e3,_0x2c6544:0x1a6,_0x5b1b00:0x161},_0x5876c4={_0x50a5a6:0x491,_0x1492d6:0x468,_0x220237:0x459,_0x129213:0x487,_0x2081e0:0x47a,_0x280e1c:0x44e,_0x5ed97d:0x45d,_0x3626f6:0x417,_0x28ef7f:0x431,_0x285dd6:0x39a,_0x5267ac:0x3ce,_0x2e0663:0x426,_0x5c3dd1:0x3c1,_0x48d586:0x41d,_0x3611ce:0x42e,_0x1d2b08:0x407,_0x239738:0x3ce,_0xbbdb03:0x3ef,_0x10f00e:0x3a1,_0x245a92:0x3fe,_0x497530:0x408,_0x33ff71:0x3ae,_0x5c1e04:0x3de,_0x2c8884:0x3c7,_0x359592:0x3ad,_0x57a194:0x3eb,_0x2b4700:0x3dc,_0x1759ce:0x409,_0x1debd0:0x494,_0x164d63:0x495,_0xd938db:0x3ea,_0x2c4feb:0x44f,_0x2071d1:0x433,_0x56bb91:0x3d9,_0x343c76:0x410,_0x34b920:0x447},_0x3bab27={_0x5169a9:0x2df};function _0x14ce40(_0x4ba669,_0x345c65){return _0x5652d1(_0x4ba669,_0x345c65- -_0x3bab27._0x5169a9);}this[_0x14ce40(-0x115,-_0x5124d0._0x21db78)]||(this[_0x14ce40(-0x187,-0x161)]=setInterval(async()=>{function _0x4f0c03(_0x4e1a3f,_0x1f2cd9){return _0x14ce40(_0x4e1a3f,_0x1f2cd9-0x5b3);}if(!this[_0x4f0c03(_0x5876c4._0x50a5a6,0x459)]){this[_0x4f0c03(_0x5876c4._0x1492d6,_0x5876c4._0x220237)]=!0x0;try{if(this[_0x4f0c03(_0x5876c4._0x129213,0x44f)]['online'])await this['_conn']['pingAtlas']()||(this[_0x4f0c03(0x47a,_0x5876c4._0x2081e0)]=0x0,console[_0x4f0c03(0x40d,_0x5876c4._0x280e1c)](_0x4f0c03(0x4a2,0x46f)),this[_0x4f0c03(0x413,_0x5876c4._0x5ed97d)]&&await this[_0x4f0c03(_0x5876c4._0x3626f6,_0x5876c4._0x28ef7f)](),this[_0x4f0c03(0x41a,0x40a)]('offline'));else{const _0x48683a=Math[_0x4f0c03(_0x5876c4._0x285dd6,0x3f2)](0xbb8*Math[_0x4f0c03(_0x5876c4._0x5267ac,_0x5876c4._0x2e0663)](0x2,this[_0x4f0c03(0x4ac,0x47a)]),0x1d4c0);if(Date[_0x4f0c03(_0x5876c4._0x5c3dd1,0x3f0)]()-this[_0x4f0c03(_0x5876c4._0x48d586,0x407)]<_0x48683a)return;if(this[_0x4f0c03(_0x5876c4._0x3611ce,_0x5876c4._0x1d2b08)]=Date[_0x4f0c03(_0x5876c4._0x239738,0x3f0)](),this[_0x4f0c03(0x3ee,_0x5876c4._0xbbdb03)])return;this[_0x4f0c03(0x441,_0x5876c4._0xbbdb03)]=!0x0;try{await this[_0x4f0c03(0x49e,0x44f)]['connectAtlas'](this[_0x4f0c03(_0x5876c4._0x10f00e,0x3fe)][_0x4f0c03(0x3bb,0x401)],this[_0x4f0c03(0x442,_0x5876c4._0x245a92)][_0x4f0c03(_0x5876c4._0x497530,0x3d8)])?(this['_retryCount']=0x0,console['log']('🌐\x20[MongoFire]\x20Back\x20online\x20—\x20syncing...'),this[_0x4f0c03(_0x5876c4._0x33ff71,0x40a)](_0x4f0c03(0x3fb,_0x5876c4._0x5c1e04)),await this[_0x4f0c03(_0x5876c4._0x2c8884,0x41a)]('required'),this[_0x4f0c03(_0x5876c4._0x359592,_0x5876c4._0x245a92)][_0x4f0c03(0x3dc,_0x5876c4._0x57a194)]&&!this[_0x4f0c03(0x472,0x45d)]&&await this[_0x4f0c03(_0x5876c4._0x2b4700,_0x5876c4._0x1759ce)]()):(this['_retryCount']++,0x1!==this[_0x4f0c03(0x4c9,0x47a)]&&this[_0x4f0c03(_0x5876c4._0x1debd0,0x47a)]%0x5!=0x0||console[_0x4f0c03(_0x5876c4._0x164d63,_0x5876c4._0x280e1c)](_0x4f0c03(0x40a,0x43b)+this[_0x4f0c03(0x466,0x47a)]+_0x4f0c03(_0x5876c4._0xd938db,0x408)+(this[_0x4f0c03(0x3fa,_0x5876c4._0x2c4feb)]['lastAtlasError']||_0x4f0c03(0x408,_0x5876c4._0x2071d1))));}finally{this[_0x4f0c03(_0x5876c4._0x56bb91,0x3ef)]=!0x1;}}}catch(_0x101160){console[_0x4f0c03(_0x5876c4._0x343c76,0x3e4)](_0x4f0c03(_0x5876c4._0x34b920,0x448),_0x101160?.[_0x4f0c03(0x39c,0x3c1)]||_0x101160);}finally{this[_0x4f0c03(0x4b4,0x459)]=!0x1;}}},0x2710),'function'==typeof this[_0x14ce40(-_0x5124d0._0xb002b8,-_0x5124d0._0x42a8fc)][_0x14ce40(-0x1cf,-_0x5124d0._0x9693bf)]&&this[_0x14ce40(-_0x5124d0._0x2c6544,-_0x5124d0._0x5b1b00)]['unref']());}async['_runSync'](_0x57bb90='required'){const _0x2c3dee={_0x4c6c9d:0x1ed,_0x5ed250:0x11b,_0x2ebbd3:0xc4,_0x50ef71:0x1c3,_0x4f2d1c:0x191,_0x1977c8:0x19c,_0x375557:0x150,_0x4ad6b4:0x139,_0x160705:0x13e,_0x43e14a:0x198,_0x47952:0x1dc,_0x466419:0x1a7,_0x294331:0x1b4,_0x28a005:0x1a9,_0x118def:0x15d,_0x2162d9:0x1a0,_0x209d9a:0x16b},_0x5244aa={_0x5d72d0:0x2b4};if(this[_0x24053b(-_0x2c3dee._0x4c6c9d,-0x191)])return this['_pendingSyncType']?_0x24053b(-0x145,-0x11b)===_0x57bb90&&(this['_pendingSyncType']=_0x24053b(-0x125,-_0x2c3dee._0x5ed250)):this[_0x24053b(-_0x2c3dee._0x2ebbd3,-0x10f)]=_0x57bb90,null;function _0x24053b(_0x191385,_0x5762cf){return _0x5652d1(_0x191385,_0x5762cf- -_0x5244aa._0x5d72d0);}this[_0x24053b(-_0x2c3dee._0x50ef71,-_0x2c3dee._0x4f2d1c)]=!0x0;try{const _0x4ae1b4=await runSync(this[_0x24053b(-0x193,-0x18a)][_0x24053b(-_0x2c3dee._0x1977c8,-0x17b)],_0x57bb90,this[_0x24053b(-0x13e,-0x18a)][_0x24053b(-0x11a,-_0x2c3dee._0x375557)],_0x1c938c=>this['emit'](_0x24053b(-0x18e,-0x153),_0x1c938c),this['_deviceManager'][_0x24053b(-0x154,-0x17c)](),this[_0x24053b(-0x13a,-_0x2c3dee._0x4ad6b4)]);if(this[_0x24053b(-0x101,-_0x2c3dee._0x160705)]=Date[_0x24053b(-0x1d6,-_0x2c3dee._0x43e14a)](),_0x4ae1b4){try{this['_config'][_0x24053b(-_0x2c3dee._0x47952,-_0x2c3dee._0x466419)]?.(_0x4ae1b4);}catch(_0x254d99){}this[_0x24053b(-_0x2c3dee._0x294331,-0x17e)](_0x24053b(-0x153,-_0x2c3dee._0x28a005),_0x4ae1b4);}return _0x4ae1b4;}catch(_0x5d8e0b){try{this['_config'][_0x24053b(-0x147,-0x133)]?.(_0x5d8e0b);}catch(_0x41ab56){}return this[_0x24053b(-0x133,-0x17e)](_0x24053b(-_0x2c3dee._0x118def,-0x1a4),_0x5d8e0b),console[_0x24053b(-0x190,-0x1a4)](_0x24053b(-0x11d,-0x128),_0x5d8e0b?.['message']||_0x5d8e0b),null;}finally{if(this[_0x24053b(-_0x2c3dee._0x2162d9,-0x191)]=!0x1,this['_pendingSyncType']){const _0xdd31cd=this[_0x24053b(-_0x2c3dee._0x209d9a,-0x10f)];this[_0x24053b(-0x119,-0x10f)]=null,setImmediate(()=>this['_runSync'](_0xdd31cd)['catch'](()=>{}));}}}async[_0x5652d1(0x1ae,0x1a4)](){const _0x51cf9a={_0x1ed81a:0x12};function _0xb4d67f(_0x153ff2,_0x3ded62){return _0x5652d1(_0x3ded62,_0x153ff2- -0x169);}return countPending(this[_0xb4d67f(_0x51cf9a._0x1ed81a,-0x29)]);}async[_0x5652d1(0x1b4,0x15a)](_0x491067=0x2710){const _0x4edb33={_0x55163f:0x2be,_0x3be554:0x33d,_0x1c5ad0:0x33f,_0x46b63f:0x2ea,_0x4284b8:0x344,_0x2d47c4:0x353,_0x31bb2f:0x302,_0x4898bf:0x2b5,_0x55b686:0x300,_0xee5f2f:0x309,_0x3b3dd0:0x2c8,_0x316955:0x2ef,_0x564f30:0x2cf,_0x238693:0x2b4,_0x54a8b9:0x327,_0x2886f5:0x2b6,_0x3154b1:0x2dd,_0x1be010:0x2d6,_0x77723e:0x306,_0x3c8a1a:0x31b,_0x5935b5:0x2e4,_0x164b9a:0x33c,_0x46815c:0x38f,_0xdaef12:0x304,_0xe4acdf:0x2c2,_0x11882b:0x2a1,_0x489f2c:0x305},_0x45dc79={_0x420f95:0x1ac};function _0x47dc9e(_0xfe7800,_0x3d2ea1){return _0x5652d1(_0x3d2ea1,_0xfe7800-_0x45dc79._0x420f95);}if(!this[_0x47dc9e(_0x4edb33._0x55163f,0x271)])return;this['_started']=!0x1,process['removeListener'](_0x47dc9e(0x2c4,0x2e8),this[_0x47dc9e(_0x4edb33._0x3be554,_0x4edb33._0x1c5ad0)]),process[_0x47dc9e(_0x4edb33._0x46b63f,0x30b)](_0x47dc9e(_0x4edb33._0x4284b8,0x398),this[_0x47dc9e(0x33d,_0x4edb33._0x2d47c4)]),this[_0x47dc9e(0x2bd,_0x4edb33._0x31bb2f)]=!0x1,clearInterval(this[_0x47dc9e(0x2b5,0x2ef)]),clearInterval(this['_netTimer']),this[_0x47dc9e(_0x4edb33._0x4898bf,_0x4edb33._0x55b686)]=null,this['_netTimer']=null,await this[_0x47dc9e(_0x4edb33._0xee5f2f,0x2b0)]()['catch'](()=>{});const _0x23c984=Date[_0x47dc9e(_0x4edb33._0x3b3dd0,_0x4edb33._0x316955)]()+_0x491067;for(;this['_syncing']&&Date['now']()<_0x23c984;)console['log']('[MongoFire]\x20Waiting\x20for\x20active\x20sync\x20to\x20finish...'),await new Promise(_0x24f2f2=>setTimeout(_0x24f2f2,0xc8));if(!this[_0x47dc9e(_0x4edb33._0x564f30,_0x4edb33._0x238693)]&&this[_0x47dc9e(_0x4edb33._0x54a8b9,0x2ff)][_0x47dc9e(_0x4edb33._0x2886f5,0x301)])try{console[_0x47dc9e(0x2c2,0x2d0)](_0x47dc9e(_0x4edb33._0x3154b1,0x289)),await runSync(this[_0x47dc9e(_0x4edb33._0x1be010,_0x4edb33._0x77723e)]['collections'],'required',this[_0x47dc9e(_0x4edb33._0x1be010,_0x4edb33._0x3c8a1a)][_0x47dc9e(0x310,0x318)],_0x57724f=>this[_0x47dc9e(0x2e2,0x321)](_0x47dc9e(0x30d,0x2b5),_0x57724f),this[_0x47dc9e(0x33f,0x325)][_0x47dc9e(_0x4edb33._0x5935b5,_0x4edb33._0x164b9a)](),this['_conn'])['catch'](()=>{});}catch(_0x42ff79){}else this[_0x47dc9e(0x2cf,_0x4edb33._0x316955)]&&console['warn'](_0x47dc9e(0x34f,_0x4edb33._0x46815c));try{await this[_0x47dc9e(_0x4edb33._0x54a8b9,0x2d0)][_0x47dc9e(0x34c,_0x4edb33._0xdaef12)]();}catch(_0x31cccb){console[_0x47dc9e(0x2bc,_0x4edb33._0xe4acdf)](_0x47dc9e(_0x4edb33._0x11882b,0x2b7),_0x31cccb?.[_0x47dc9e(0x299,0x2a8)]||_0x31cccb);}console['log'](_0x47dc9e(0x2f1,0x329)),this[_0x47dc9e(0x2e2,0x312)](_0x47dc9e(_0x4edb33._0x489f2c,0x2d7));}[_0x5652d1(0x198,0x166)](_0x59a3f1={}){const _0x145200={_0x323463:0x465,_0x4f07ba:0x4c8,_0x2edb20:0x4b4,_0x139458:0x465,_0x4c02a4:0x400,_0x549a72:0x459,_0x35c546:0x472,_0x56bc1f:0x48e,_0x5a11dd:0x498,_0x33d43c:0x4ca,_0xbc25ea:0x4ac,_0x7f4a9:0x494,_0x5748b3:0x4d4,_0x57d7a9:0x4c0,_0x343e85:0x4d1,_0x1adc96:0x469,_0x7018e5:0x45c,_0x84c32:0x4ae,_0x3ada3a:0x459,_0x141518:0x483,_0x132f6d:0x470,_0x160d8b:0x4be,_0x5042ba:0x4ad,_0x3578d3:0x443,_0x4c2be5:0x47a,_0x24ba5d:0x479,_0x3147c1:0x49e},_0x12e45b={_0x53e8a4:0x54,_0x35e7e6:0x4b,_0x300726:0x30,_0x35e845:0x61,_0x125bba:0x91},_0x12387d={_0x4c955b:0x484},_0x264be3={_0x2d94bc:0x32c};if(!_0x59a3f1[_0x4e0f10(0x499,_0x145200._0x323463)]?.[_0x4e0f10(0x47b,0x494)])throw new Error(_0x4e0f10(_0x145200._0x4f07ba,0x4cd));for(const _0x49b518 of _0x59a3f1[_0x4e0f10(_0x145200._0x2edb20,_0x145200._0x139458)])validateCollectionName(_0x49b518);if(null!=_0x59a3f1[_0x4e0f10(_0x145200._0x4c02a4,0x459)]){const _0x289f0d=String(_0x59a3f1[_0x4e0f10(0x481,_0x145200._0x549a72)])['trim']();if(!_0x289f0d[_0x4e0f10(_0x145200._0x35c546,_0x145200._0x56bc1f)](_0x4e0f10(_0x145200._0x5a11dd,_0x145200._0x33d43c))&&!_0x289f0d[_0x4e0f10(0x487,0x48e)](_0x4e0f10(0x470,0x474))){const _0x282b73=_0x289f0d[_0x4e0f10(_0x145200._0xbc25ea,0x48c)](/:([^@/]{1,256})@/,':***@');throw new Error(_0x4e0f10(0x3de,0x427)+_0x282b73[_0x4e0f10(0x431,0x483)](0x0,0x3c)+(_0x282b73[_0x4e0f10(0x47a,_0x145200._0x7f4a9)]>0x3c?'…':'')+'\x22).\x20Check\x20your\x20Atlas\x20connection\x20string.');}}function _0x4e0f10(_0x2eacf6,_0x33a9f7){return _0x5652d1(_0x2eacf6,_0x33a9f7-_0x264be3._0x2d94bc);}if(null!=_0x59a3f1[_0x4e0f10(_0x145200._0x5748b3,_0x145200._0x57d7a9)]){const _0x367d1a=Number(_0x59a3f1['batchSize']);if(!Number['isInteger'](_0x367d1a)||_0x367d1a<0x1||_0x367d1a>0x2710)throw new Error('[MongoFire]\x20config.batchSize\x20must\x20be\x20an\x20integer\x20between\x201\x20and\x2010000\x20(got:\x20'+_0x59a3f1[_0x4e0f10(_0x145200._0x343e85,0x4c0)]+')');}return{'localUri':_0x59a3f1[_0x4e0f10(0x45e,_0x145200._0x1adc96)]||_0x4e0f10(_0x145200._0x7018e5,_0x145200._0x84c32),'atlasUri':_0x59a3f1[_0x4e0f10(0x43a,_0x145200._0x3ada3a)]||null,'dbName':_0x59a3f1[_0x4e0f10(0x3fa,0x430)]||_0x4e0f10(_0x145200._0x141518,_0x145200._0x132f6d),'collections':_0x59a3f1['collections'],'syncInterval':(function(){const _0x3eabd6=Number(_0x59a3f1[_0x2e3806(0x2c,-0x16)])||(_0x59a3f1[_0x2e3806(-_0x12e45b._0x53e8a4,-0x41)]?0x1388:0x7530);if(_0x3eabd6<0x1f4)throw new Error(_0x2e3806(-_0x12e45b._0x35e7e6,-_0x12e45b._0x300726)+_0x59a3f1[_0x2e3806(-_0x12e45b._0x35e845,-0x16)]+_0x2e3806(-_0x12e45b._0x125bba,-0x37));function _0x2e3806(_0x42e35f,_0x56edd4){return _0x4e0f10(_0x42e35f,_0x56edd4- -_0x12387d._0x4c955b);}return _0x3eabd6;}()),'batchSize':_0x59a3f1[_0x4e0f10(0x4d1,0x4c0)]||0xc8,'onSync':_0x59a3f1[_0x4e0f10(0x42f,0x439)]||null,'onError':_0x59a3f1[_0x4e0f10(_0x145200._0x160d8b,_0x145200._0x5042ba)]||null,'syncOwner':_0x59a3f1[_0x4e0f10(_0x145200._0x57d7a9,0x490)]||'*','realtime':_0x59a3f1[_0x4e0f10(0x440,_0x145200._0x3578d3)]??!0x1,'reconcileOnStart':!0x1!==_0x59a3f1[_0x4e0f10(0x46a,_0x145200._0x4c2be5)],'reconcileFullScan':!0x1!==_0x59a3f1['reconcileFullScan'],'cleanDays':Number(_0x59a3f1['cleanDays'])>=0x1&&Number(_0x59a3f1[_0x4e0f10(_0x145200._0x24ba5d,_0x145200._0x3147c1)])<=0xe42?Math['floor'](Number(_0x59a3f1[_0x4e0f10(_0x145200._0x343e85,0x49e)])):0x7};}}const instance=new MongoFire();function _0x5652d1(_0x1757bf,_0x1fdd5c){return _0xe4bf(_0x1fdd5c- -0xf1,_0x1757bf);}function _0x301b(){const _0x5f4c4f=['w01VBMDVrMLYzv0GrMLUywWGC3LUyYbIzwzVCMuGzxHPDc4UlG','zNvSBfnJyw4','x2XHC3rszxrYEq','ktOG','x3n0yxj0uMvHBhrPBwu','zw1PDa','4PQG77IpicbBtw9Uz29gAxjLxsboBYbHDgXHC1vYAsdIGjqGBg9JywWGB25SEsbTB2rL','z2v0swq','y29SBgvJDgLVBNm','C3LUy2LUzW','igLUia','ihn0ywXLignVBMzSAwn0ihjLy29YzcHZkq','Bg9JywXvCMK','CMvTB3zLtgLZDgvUzxi','iokaLcbZEw5JAw5NlI4U','C3rHCNrLza','Dg90ywXrDwv1zwq','C3LUy0LUDgvYDMfS','x21Mx2rVy21LDge','Bw9Uz29MAxjL','8j+rIYbBtw9Uz29gAxjLxsbtDg9WCgvK','x3j1BLn5BMm','nduZnZa3mwXVAfzdvW','Bw9Uz29KyITZCNy6lY8','mtuWmJe4nfnZDwfoBa','C3rHCNrszwfSDgLTzq','x2rVu3rHCNq','x3jLywX0Aw1LrgvIB3vUy2u','C3rHCNq','CMvJB25JAwXLt25tDgfYDa','zhjVCa','w01VBMDVrMLYzv0Gu3rHCNr1CcbYzwnVBMnPBguGzMfPBgvKicHUB24TzMf0ywWPoG','CMfUzg9T','Cg93','Aw5JBhvKzxm','zxHWB3j0CW','w01VBMDVrMLYzv0GuMvHBhrPBwuGCMvZDw1PBMCGzNjVBsbZyxzLzcb0B2TLBI4UlG','w01VBMDVrMLYzv0GCMvZzxrmB2nHBdOGtw9Uz29gAxjLigLZig5VDcbZDgfYDgvK','C2XPy2u','Aw5PDa','C3rVChbLza','C3rVCa','CMvHBhrPBwvtDgfYDgvK','DMvYyM9Zzq','C3rVCfjLywX0Aw1L','x21Mx2nOyw5NzxrYywnR','Dw5RBM93BG','CMvWBgfJzq','y29UzMXPy3q','C3rHCNrZv2L0Aa','yxbWBgLLza','C3LUy093BMvY','mtaWmZGXnvH1vuDQDG','x3bHCNnLq29UzMLN','4PQG77IpicbBtw9Uz29gAxjLxsbszwnVBM5Ly3qGzMfPBgvKicHHDhrLBxb0ia','BgvUz3rO','Cg9SBgLUzYbLDMvYEsa','y29UBMvJDef0BgfZ','y29Uy3vYCMvUy3K','x3jLywX0Aw1Lu3rHCNrPBMC','w01VBMDVrMLYzv0Gtg9JywWGtw9Uz29eqIbMywLSzwq6ia','nZq1nJu0nhjqEwnJtq','x3jLywX0Aw1LuMv0CNLdB3vUDa','lI9JB25Uzwn0Aw9U','w01VBMDVrMLYzv0Gq2XLyw5Lzca','y2XLyw5eyxLZ','zgLZBwLZC0nVBMzSAwn0','w01VBMDVrMLYzv0GtMv0D29YAYbTB25PDg9YigvYCM9YoG','x3n5BMndEwnSzunVDw50','x2XHC3rtEw5Jqxq','zgLZBwLZC2vK','lI9KzxzPy2u','x3jLC3vTzvrVA2vU','D2fYBG','x2nVBM4','y29UBMvJDeXVy2fS','BgfZDef0BgfZrxjYB3i','x25LDfrPBwvY','CMvJB25JAwXLq29TCgXLDgu','y2XLyw4','B25fCNjVCG','Bw9Uz29KyJOVl2XVy2fSAg9ZDdOYnZaXnW','mtm4mJeXohP0BwDYEG','CgX1z2LU','x2nOzwnRAw5NtMv0D29YAW','C3rHDhvZ','y2HHBMDL','B2zMBgLUzq','x3jLywX0Aw1Lqwn0AxzL','w01VBMDVrMLYzv0GCMvZzxrmB2nHBdOGzhjVChbLzca','w01VBMDVrMLYzv0GCMvZzxrmB2nHBdOGzMfPBgvKihrVigrYB3aGiG','w01VBMDVrMLYzv0Gu3LUyYbLCNjVCJO','x293BMvYrMLLBgrZ','y29UzMXPy3rszxnVBhzLza','CMvHzhK','8j+uPsbBtw9Uz29gAxjLxsbszwfKEseGu3LUyYbTB2rLoIa','x2jVDw5KrxHPDa','CYaOyxr0zw1WDca','x2rLDMLJzu1HBMfNzxi','yMf0y2HtAxPL','lI9WBhvNAw4','CMv0CNLdB25MBgLJDa','y29UzMXPy3rZ','u0Lhvevstq','ywXS','CMvHBhrPBwuGkYbWB2XSAw5NigzHBgXIywnR','8j+tTcbBtw9Uz29gAxjLxsbpzMzSAw5LiokaLcb3B3jRAw5NigXVy2fSBhK','Bg9JywW','x21Mx3n5BMnFC3rHDgu','Bw9Uz29KyJOVlW','x3n0yxj0u3LUy1rPBwvY','y2XVC2vbBgW','w01VBMDVrMLYzv0Gy29UzMLNlMnVBgXLy3rPB25ZigLZihjLCxvPCMvK','nZe4otGYnfnXD25Yra','w01VBMDVrMLYzv0GvgLTzwqGB3v0ihDHAxrPBMCGzM9Yihn5BMmG4OcuigzPBMfSihn5BMmGC2TPChbLza','x3bLBMrPBMC','x3bLBMrPBMDtEw5JvhLWzq','x3jLDhj5q291BNq','CMvXDwLYzwq','CMvHBhrPBwvby3rPDMu','BwvZC2fNzq','4PQG77IpicbBtw9Uz29gAxjLxsbbDgXHCYbVzMzSAw5LiokaLcb3AwXSihjLDhj5icG','CM91BMq','zgvSzxrLtwfUEq','x3n0yxj0uhjVBwLZzq','ignVBgXLy3rPB24OCYKUie5LEhqGC3rHCNqGD2LSBcbYzs1IB290C3rYyxaGzNjVBsbbDgXHCY4','D2f0y2G','B3DUzxjgAwvSza','w01VBMDVrMLYzv0GrxjYB3iGy2XVC2LUzYbJB25Uzwn0Aw9UCZO','C3rYAw5N','4PQHifTnB25NB0zPCMvDifjLywX0Aw1Lihn5BMmGywn0AxzLicHJAgfUz2uGC3rYzwfTCYK','DxbKyxrL','w01VBMDVrMLYzv0GuMvHBhrPBwuGDw5HDMfPBgfIBguGkhjLCxvPCMvZief0BgfZig9YihjLCgXPy2eGC2v0ksdIGjqGzMfSBgLUzYbIywnRihrVihbVBgXPBMCU','CMvJB25JAwXL','w01VBMDVrMLYzv0Gy29UzMLNlMf0BgfZvxjPig11C3qGC3rHCNqGD2L0AcaIBw9Uz29KyJOVlYiGB3iGiM1VBMDVzgiRC3j2oI8ViIaOz290oIaI','Dw5Yzwy','lI91DgLSCW','w01VBMDVrMLYzv0Gq2fUBM90ihn0yxj0ihjLywX0Aw1LiokaLcbbDgXHCYbUB3qGy29UBMvJDgvK','zMLUywXSEq','zNvSBerVy3vTzw50','w01VBMDVrMLYzv0GCgX1z2LUihjLCxvPCMvZignVBgXLy3rPB24GBMfTzq','yxrSyxm','nZe1mJq0mhDdA1H1Dq','zgjoyw1L','zxzLBNrZ','CMvZDw1Lqwz0zxi','mNbVwfPpua','y29SBgvJDgLVBG','x3n5BMnuAw1LCG','B25SAw5L','C3LUyW','w01VBMDVrMLYzv0GC3LUyYGPignHBgXLzcb0B28GCxvPy2TSEsaOpca1mdbTCYbZAw5JzsbSyxn0ihn5BMmPiokaLcb0AhjVDhrSzwqU','B25tEw5J','DxbKyxrLtg9VA3vW','CMvZzxrmB2nHBa','zxjYB3i','x3nPz25HBhncB3vUza','x3n0yxj0zwq','AxnbCNjHEq','y2f0y2G','x2nOyw5Nzvn0CMvHBq','Bg9N','CMvHBhrPBwu','u0Lhsu5u','w01VBMDVrMLYzv0Gy2XLyw46ie1VBMDVrMLYzsbPCYbUB3qGC3rHCNrLza','x21Mx29WCW','x3jLy29UBMvJDgLUzW','BM93','ihn5BMnLzcbYzwnVCMqOCYKGyw5Kia','BwLU','x2LK','DhLWzq','ks4GvMfSDwvZigjLBg93iduWmg1ZignHDxnLigeGDgLNAhqGCg9SBgLUzYbSB29WihrOyxqGAgfTBwvYCYbnB25NB0rclIbszwnVBw1LBMrLzdOGntaWmcaOnxmPigzVCIbYzwfSDgLTzsbTB2rLlcaZmdaWmcaOmZbZksbVDgHLCNDPC2uU','CMvKDwnL','x3n5BMnPBMC','w01VBMDVrMLYzv0Gq2HHBMDLigv2zw50ihDPDgGGBNvSBcbMDwXSrg9JDw1LBNqGkgrVyYbKzwXLDgvKig1Pzc1MzxrJAd8PiokaLcbZA2LWCgLUzW','w01VBMDVrMLYzv0GzgLZBwLZC0nVBMzSAwn0oIbnB25NB0zPCMuGAxmGBM90ihn0yxj0zwq','icaGrgv2AwnLoIa','w01VBMDVrMLYzv0GuMvZDgfYDgLUzYbYzwfSDgLTzsbZDhjLyw0UlI4','w01VBMDVrMLYzv0Gy29UzMLNlNn5BMnjBNrLCNzHBcbTDxn0igjLid49iduWmg1ZicHNB3qG','zgvSzxrLzenVDw50','x2nVBMzPzW','tw9Uz29gAxjL','y2XVC2u','yxrSyxnvCMK','x3n0yxj0tMv0D29YA01VBML0B3i','zNvUy3rPB24','y29UzMXPy3reyxLZ'];_0x301b=function(){return _0x5f4c4f;};return _0x301b();}module[_0x5652d1(0x190,0x154)]=instance,module[_0x5652d1(0x1a6,0x154)][_0x5652d1(0x11d,0x12b)]=MongoFire;
|
|
1
|
+
'use strict';(function(_0x5ae49d,_0x5af74a){const _0x59f5e9={_0x37ce9f:0x5c3,_0x4266a1:0x503,_0xd24d97:0x5a6,_0x326868:0x592,_0x47324e:0x5cf,_0xdb1bc2:0x591,_0x4281b6:0x5ea,_0xfed8cd:0x600,_0x3a6695:0x577},_0x5bce51={_0x5e0cce:0x392},_0x13ca8d=_0x5ae49d();function _0x14734f(_0x2b0b46,_0x3b4ce2){return _0x1fb4(_0x2b0b46-_0x5bce51._0x5e0cce,_0x3b4ce2);}while(!![]){try{const _0x431771=-parseInt(_0x14734f(_0x59f5e9._0x37ce9f,0x638))/0x1*(-parseInt(_0x14734f(0x5d1,0x561))/0x2)+parseInt(_0x14734f(0x568,0x53d))/0x3+-parseInt(_0x14734f(0x52d,_0x59f5e9._0x4266a1))/0x4+parseInt(_0x14734f(_0x59f5e9._0xd24d97,0x606))/0x5+parseInt(_0x14734f(_0x59f5e9._0x326868,_0x59f5e9._0x47324e))/0x6*(parseInt(_0x14734f(0x532,0x568))/0x7)+parseInt(_0x14734f(0x54a,_0x59f5e9._0xdb1bc2))/0x8*(parseInt(_0x14734f(_0x59f5e9._0x4281b6,_0x59f5e9._0xfed8cd))/0x9)+parseInt(_0x14734f(0x5c6,_0x59f5e9._0x3a6695))/0xa*(-parseInt(_0x14734f(0x5a2,0x56d))/0xb);if(_0x431771===_0x5af74a)break;else _0x13ca8d['push'](_0x13ca8d['shift']());}catch(_0x57841c){_0x13ca8d['push'](_0x13ca8d['shift']());}}}(_0x5750,0xe0359));const EventEmitter=require('events'),{Connection:Connection}=require(_0x26bd38(-0x33,-0x96)),{newDeviceManager:newDeviceManager}=require(_0x26bd38(-0xb2,-0xd6)),{validateCollectionName:validateCollectionName}=require(_0x26bd38(-0x72,-0x6f)),mongofirePlugin=require('./plugin'),{SyncRateLimiter:SyncRateLimiter}=require('./rate-limiter'),{compactChangelog:compactChangelog}=require('./compactor'),{SchemaManager:SchemaManager}=require(_0x26bd38(-0x36,-0xa0)),{runSync:runSync,getSyncStatus:getSyncStatus}=require(_0x26bd38(-0x63,-0x88)),{reconcile:_reconcileCollections}=require(_0x26bd38(-0x100,-0x155)),{getConflicts:getConflicts,retryConflict:retryConflict,dismissConflict:dismissConflict,countPending:countPending}=require(_0x26bd38(-0xcf,-0xab)),MIN_SYNC_INTERVAL_MS=0x1f4;class MongoFire extends EventEmitter{constructor(){const _0x139dca={_0x3db9f2:0x303,_0x2804f0:0x393,_0x1a7eae:0x34f,_0x551539:0x329,_0x23f68c:0x35d,_0x37db60:0x2fe,_0x29ea7b:0x325,_0x342577:0x341,_0x3c0c8c:0x2bf,_0xd6aca9:0x2d6,_0x1e62c7:0x343,_0x58eaac:0x39d,_0x1df0ab:0x375,_0xf52368:0x312,_0x3542d8:0x395,_0x24993c:0x370,_0x43d663:0x31d,_0x741679:0x2d0,_0x397c5f:0x30a,_0x40337a:0x3bb,_0x37819f:0x42b,_0x24929b:0x350};function _0x2ee9fe(_0x1d3af1,_0x1b5ed3){return _0x26bd38(_0x1d3af1-0x3fc,_0x1b5ed3);}super(),this[_0x2ee9fe(_0x139dca._0x3db9f2,0x2a0)]=new Connection(),this['_deviceManager']=newDeviceManager(),this[_0x2ee9fe(_0x139dca._0x2804f0,_0x139dca._0x1a7eae)]=null,this[_0x2ee9fe(0x35c,0x3cd)]=!0x1,this[_0x2ee9fe(_0x139dca._0x551539,_0x139dca._0x23f68c)]=!0x1,this['_syncTimer']=null,this[_0x2ee9fe(0x361,0x326)]=null,this[_0x2ee9fe(0x337,_0x139dca._0x37db60)]=0x0,this['_lastRetry']=0x0,this[_0x2ee9fe(_0x139dca._0x29ea7b,_0x139dca._0x342577)]=!0x1,this[_0x2ee9fe(0x2dc,_0x139dca._0x3c0c8c)]=!0x1,this[_0x2ee9fe(_0x139dca._0xd6aca9,_0x139dca._0x1e62c7)]=null,this[_0x2ee9fe(_0x139dca._0x58eaac,0x39c)]=null,this[_0x2ee9fe(0x2e4,0x2ed)]=null,this[_0x2ee9fe(_0x139dca._0x1df0ab,_0x139dca._0xf52368)]=0x0,this[_0x2ee9fe(0x365,0x398)]=null,this['_localResolve']=null,this[_0x2ee9fe(0x341,0x38d)]=null,this[_0x2ee9fe(0x30f,0x357)]=0x0,this['_ownerFields']={},this[_0x2ee9fe(_0x139dca._0x3542d8,0x36b)]=null,this[_0x2ee9fe(_0x139dca._0x24993c,0x378)]=null,this[_0x2ee9fe(_0x139dca._0x43d663,_0x139dca._0x741679)]=null,this[_0x2ee9fe(0x37d,0x3fd)]=!0x1,this[_0x2ee9fe(_0x139dca._0x397c5f,0x2bb)]=null,this[_0x2ee9fe(0x3a8,_0x139dca._0x40337a)]=!0x1,this[_0x2ee9fe(0x3d2,_0x139dca._0x37819f)]=()=>this[_0x2ee9fe(0x2ff,0x2c2)]()[_0x2ee9fe(0x2de,0x2c5)](()=>{}),this[_0x2ee9fe(_0x139dca._0x24929b,0x3b4)]=!0x1;}async[_0x26bd38(-0x125,-0x198)](_0x3cbbf0){const _0xee68dd={_0x3facec:0x590,_0x462cc4:0x5d2,_0x34b47e:0x549},_0x50b9cb={_0x40454a:0x488};function _0x35bed2(_0x150c53,_0x5c36cf){return _0x26bd38(_0x150c53-0x627,_0x5c36cf);}return this['_started']?this:(this[_0x35bed2(0x50f,0x56c)]||(this['_localReadyPromise']||(this[_0x35bed2(_0xee68dd._0x3facec,0x559)]=new Promise((_0x5afed5,_0x59170d)=>{function _0x54d190(_0x22c8af,_0x27e7dd){return _0x35bed2(_0x27e7dd- -0x164,_0x22c8af);}this[_0x54d190(0x49b,_0x50b9cb._0x40454a)]=_0x5afed5,this['_localReject']=_0x59170d;})),this['_startPromise']=this[_0x35bed2(_0xee68dd._0x462cc4,0x652)](_0x3cbbf0)[_0x35bed2(_0xee68dd._0x34b47e,0x575)](()=>{this['_startPromise']=null;})),this['_startPromise']);}async[_0x26bd38(-0x55,-0x89)](_0x4977e3){const _0x5ae6ce={_0x2f7064:0x1fe,_0x47ac4e:0x21e,_0x47355a:0xf2,_0x2a9ebe:0x1a0,_0x32cdc1:0x21e,_0x201b8d:0x133,_0x40b424:0x1b0,_0xd608a0:0x103,_0x467e0b:0x220,_0x4e45d9:0x1dc,_0x464cb9:0x249,_0x2ceefe:0x18a,_0x577049:0x1fb,_0x237104:0x249,_0x21b666:0x249,_0x335dde:0x1df,_0x43d8c2:0x1db,_0x44f21a:0x216,_0x3902b1:0x25d,_0x13489a:0x285,_0x3f97c6:0x25a,_0x353fac:0x1a5,_0x492798:0x1e7,_0x459ab6:0x18e,_0x157564:0x1b9,_0x40692a:0x23c,_0xda774b:0x287,_0x170960:0x218,_0x587828:0x234,_0x4cf805:0x1cc,_0xdb4563:0x24c,_0x49c305:0x24f,_0x14d16e:0x25f,_0x31997c:0x24b,_0x3b7ebb:0x20c,_0x19c05b:0x1a1,_0x2a018d:0x284,_0x323a3a:0x273,_0x54653a:0x22d,_0x545fd:0x18e,_0x11624c:0x20e,_0x51d03e:0x1a2,_0x360336:0x1b1,_0x838494:0x1a5,_0x1bef6e:0x275,_0x596375:0x24a,_0x508a01:0x179,_0x193416:0x288,_0x18a74b:0x252,_0x4dd726:0x17a,_0x25c8f3:0x246,_0x226f7e:0x270,_0xbd585:0x17c,_0x427dcf:0x18b,_0x75972e:0x1f4,_0x56ebcb:0x23f,_0x390598:0x1e1,_0x1869ba:0x187,_0xb226f2:0x1c0,_0x34dcb0:0x24d,_0x11f016:0x24e,_0x4a8d30:0x242,_0x2e5aee:0x1dd,_0x503f23:0x1c1,_0x8b606c:0x18e,_0x18b5a1:0x1ea,_0x5bea4d:0x16a,_0x83b23d:0x141,_0x396328:0x208,_0x511f8b:0x12c,_0x2e545e:0x2b8,_0x443819:0x198},_0x1c2aae={_0x376964:0x10d,_0x4b087e:0xee};this[_0x564fd1(_0x5ae6ce._0x2f7064,_0x5ae6ce._0x47ac4e)]=this[_0x564fd1(_0x5ae6ce._0x47355a,0x160)](_0x4977e3);const _0x700fd8=this[_0x564fd1(_0x5ae6ce._0x2a9ebe,_0x5ae6ce._0x32cdc1)];_0x700fd8[_0x564fd1(_0x5ae6ce._0x201b8d,0x1ab)]&&(this['_rateLimiter']=new SyncRateLimiter(_0x700fd8[_0x564fd1(0x186,0x1ab)]),this[_0x564fd1(_0x5ae6ce._0x40b424,0x220)][_0x564fd1(_0x5ae6ce._0xd608a0,0x170)]['on'](_0x564fd1(0x198,0x1f3),()=>{const _0x17a5c6={_0x4b9fe7:0xb8};function _0x1666c2(_0x53903f,_0x46e877){return _0x564fd1(_0x53903f,_0x46e877- -_0x17a5c6._0x4b9fe7);}this[_0x1666c2(_0x1c2aae._0x376964,0x175)](_0x1666c2(0x1e3,0x1a4),{'retryAfterMs':this['_rateLimiter'][_0x1666c2(_0x1c2aae._0x4b087e,0xb8)]['timeout']});}),this[_0x564fd1(0x1da,_0x5ae6ce._0x467e0b)][_0x564fd1(0x1c1,0x170)]['on']('close',()=>this[_0x564fd1(0x1b9,0x22d)](_0x564fd1(0x16a,0x1e3)))),_0x700fd8[_0x564fd1(_0x5ae6ce._0x4e45d9,_0x5ae6ce._0x464cb9)]instanceof SchemaManager?this[_0x564fd1(_0x5ae6ce._0x2ceefe,_0x5ae6ce._0x577049)]=_0x700fd8[_0x564fd1(0x1ec,_0x5ae6ce._0x237104)]:!0x0===_0x700fd8[_0x564fd1(0x1f6,_0x5ae6ce._0x21b666)]&&(this[_0x564fd1(_0x5ae6ce._0x335dde,_0x5ae6ce._0x577049)]=new SchemaManager()),this[_0x564fd1(0x242,_0x5ae6ce._0x43d8c2)]||(process['on'](_0x564fd1(0x16a,0x1c5),this[_0x564fd1(_0x5ae6ce._0x44f21a,_0x5ae6ce._0x3902b1)]),process['on'](_0x564fd1(_0x5ae6ce._0x13489a,_0x5ae6ce._0x3f97c6),this[_0x564fd1(0x275,_0x5ae6ce._0x3902b1)]),this['_signalsBound']=!0x0),console[_0x564fd1(0x1e4,_0x5ae6ce._0x353fac)](_0x564fd1(_0x5ae6ce._0x492798,0x1aa));try{await this[_0x564fd1(0x20c,_0x5ae6ce._0x459ab6)][_0x564fd1(_0x5ae6ce._0x157564,0x192)](_0x700fd8[_0x564fd1(0x1cb,_0x5ae6ce._0x40692a)],_0x700fd8[_0x564fd1(_0x5ae6ce._0xda774b,_0x5ae6ce._0x170960)]);}catch(_0x264797){throw this[_0x564fd1(_0x5ae6ce._0x587828,_0x5ae6ce._0x4cf805)]&&(this['_localReject'](_0x264797),this[_0x564fd1(0x1e8,_0x5ae6ce._0xdb4563)]=this[_0x564fd1(0x19f,0x1cc)]=null),new Error(_0x564fd1(_0x5ae6ce._0x49c305,_0x5ae6ce._0x14d16e)+_0x264797[_0x564fd1(_0x5ae6ce._0x31997c,_0x5ae6ce._0x3b7ebb)]);}function _0x564fd1(_0x1df1a7,_0x384012){return _0x26bd38(_0x384012-0x287,_0x1df1a7);}this[_0x564fd1(0x24b,_0x5ae6ce._0xdb4563)]&&(this['_localResolve'](this[_0x564fd1(_0x5ae6ce._0x19c05b,0x18e)]['local']),this[_0x564fd1(_0x5ae6ce._0x2a018d,0x24c)]=this['_localReject']=null),this[_0x564fd1(_0x5ae6ce._0x323a3a,_0x5ae6ce._0x54653a)]('localReady',this[_0x564fd1(0x12b,_0x5ae6ce._0x545fd)]['local']),await this[_0x564fd1(0x21f,_0x5ae6ce._0x11624c)]['init'](this[_0x564fd1(_0x5ae6ce._0x51d03e,0x18e)][_0x564fd1(0x151,_0x5ae6ce._0x360336)]);try{console[_0x564fd1(0x12a,_0x5ae6ce._0x838494)](_0x564fd1(_0x5ae6ce._0x1bef6e,_0x5ae6ce._0x596375)+this[_0x564fd1(0x1cb,_0x5ae6ce._0x11624c)]['getId']());}catch(_0x5ae417){}if(_0x700fd8[_0x564fd1(_0x5ae6ce._0x1bef6e,0x23d)])try{const _0x54acbc=await _reconcileCollections(_0x700fd8['collections'],this['_ownerFields'],{'verbose':!0x0,'fullScan':_0x700fd8[_0x564fd1(0x1d3,0x23a)]},this[_0x564fd1(_0x5ae6ce._0x508a01,_0x5ae6ce._0x459ab6)]),_0x406de8=_0x54acbc[_0x564fd1(_0x5ae6ce._0x193416,_0x5ae6ce._0x18a74b)]((_0x19fd63,_0x252adc)=>_0x19fd63+(_0x252adc['totalQueued']||0x0),0x0);_0x406de8>0x0&&this[_0x564fd1(0x28a,0x22d)](_0x564fd1(0x1cb,0x19f),{'collections':_0x54acbc,'totalQueued':_0x406de8});}catch(_0x3e1d19){console[_0x564fd1(_0x5ae6ce._0x4dd726,0x17c)](_0x564fd1(0x1c9,_0x5ae6ce._0x25c8f3),_0x3e1d19[_0x564fd1(_0x5ae6ce._0x226f7e,_0x5ae6ce._0x3b7ebb)]),this[_0x564fd1(0x29f,0x22d)](_0x564fd1(0x1dc,_0x5ae6ce._0xbd585),_0x3e1d19);}return _0x700fd8[_0x564fd1(0x1c5,0x241)]?(await this[_0x564fd1(0x205,0x18e)][_0x564fd1(0x141,_0x5ae6ce._0x427dcf)](_0x700fd8['atlasUri'],_0x700fd8[_0x564fd1(_0x5ae6ce._0x75972e,0x218)])?(console[_0x564fd1(0x137,0x1a5)](_0x564fd1(_0x5ae6ce._0x56ebcb,_0x5ae6ce._0x390598)),await this['_runSync'](_0x564fd1(_0x5ae6ce._0x1869ba,_0x5ae6ce._0xb226f2)),_0x700fd8[_0x564fd1(_0x5ae6ce._0x34dcb0,_0x5ae6ce._0x11f016)]&&await this[_0x564fd1(_0x5ae6ce._0x596375,0x1eb)]()):console[_0x564fd1(_0x5ae6ce._0x4a8d30,_0x5ae6ce._0x2e5aee)]('⚠️\x20\x20[MongoFire]\x20Atlas\x20offline\x20—\x20will\x20retry\x20('+(this[_0x564fd1(_0x5ae6ce._0x503f23,_0x5ae6ce._0x8b606c)][_0x564fd1(0x139,0x197)]||'unknown')+')'),this[_0x564fd1(_0x5ae6ce._0x18b5a1,0x1d2)](),this['_startNetworkMonitor']()):console['warn']('⚠️\x20\x20[MongoFire]\x20No\x20atlasUri\x20—\x20local\x20only\x20mode'),this[_0x564fd1(0x1d5,0x1e7)]=!0x0,console[_0x564fd1(_0x5ae6ce._0x5bea4d,_0x5ae6ce._0x838494)](_0x564fd1(_0x5ae6ce._0x83b23d,0x1af)+(this[_0x564fd1(0x1d2,_0x5ae6ce._0x396328)]?_0x564fd1(_0x5ae6ce._0x511f8b,0x1a3):'polling\x20every\x20'+_0x700fd8[_0x564fd1(_0x5ae6ce._0x2e545e,0x23f)]/0x3e8+'s')+'\x0a'),this['emit'](_0x564fd1(_0x5ae6ce._0x443819,_0x5ae6ce._0x51d03e)),this;}[_0x26bd38(-0xee,-0x136)](){const _0x98c5ed={_0x4303d6:0x119,_0x3c87e1:0x8e,_0x464701:0x119,_0x319d90:0x10d,_0x1c33f8:0xf6,_0x4d64c6:0xb0,_0x45249a:0xb7},_0xc55301={_0x44bafd:0x378,_0x518725:0x37c,_0x1da48f:0x329,_0x23850b:0x323},_0x5387b5={_0x16e77f:0x443};function _0x513109(_0x2f7481,_0x447d61){return _0x26bd38(_0x2f7481- -0x20,_0x447d61);}return this[_0x513109(-_0x98c5ed._0x4303d6,-0x127)]['local']?Promise[_0x513109(-0xa9,-_0x98c5ed._0x3c87e1)](this[_0x513109(-_0x98c5ed._0x464701,-_0x98c5ed._0x319d90)][_0x513109(-_0x98c5ed._0x1c33f8,-0x109)]):(this[_0x513109(-0xb7,-_0x98c5ed._0x4d64c6)]||(this[_0x513109(-_0x98c5ed._0x45249a,-0xe6)]=new Promise((_0x52c4e8,_0x1b2076)=>{function _0x2a8689(_0x2c8290,_0x5da4d7){return _0x513109(_0x5da4d7-0x457,_0x2c8290);}this[_0x2a8689(0x3f1,0x3fc)]=_0x52c4e8,this[_0x2a8689(_0xc55301._0x44bafd,_0xc55301._0x518725)]=_0x1b2076,setTimeout(()=>{function _0x32aa0a(_0x5068c4,_0x3538f6){return _0x2a8689(_0x5068c4,_0x3538f6-0xff);}this['_localResolve']&&(this['_localResolve']=this['_localReject']=null,_0x1b2076(new Error(_0x32aa0a(0x462,_0x5387b5._0x16e77f))));},0xea60)[_0x2a8689(_0xc55301._0x1da48f,_0xc55301._0x23850b)]?.();})),this['_localReadyPromise']);}get['localReady'](){return this['waitForLocal']();}async[_0x26bd38(-0x29,-0x15)](_0x27e71f){const _0x5cddcd={_0x550fe6:0x13b,_0x4dbc37:0x109,_0x4337eb:0xc8,_0x120891:0x129,_0x46a962:0x180,_0xafa71:0xf1,_0x4d5a9d:0x6e,_0x2469f7:0x96,_0x18b7b4:0x96,_0x167331:0x10b},_0x559044=require('fs'),_0x2d0685=require(_0x43accc(-0x126,-_0x5cddcd._0x550fe6)),{pathToFileURL:_0x5bac19}=require(_0x43accc(-_0x5cddcd._0x4dbc37,-_0x5cddcd._0x4337eb)),_0x55340d=Array[_0x43accc(-0x11c,-0x17e)](_0x27e71f)&&_0x27e71f[_0x43accc(-_0x5cddcd._0x120891,-_0x5cddcd._0x46a962)]?_0x27e71f:[process['cwd']()],_0x4278e3=new Set(),_0x2ba564=_0x55340d[_0x43accc(-0x12c,-_0x5cddcd._0xafa71)](_0x51b1c9=>!_0x4278e3['has'](_0x51b1c9)&&(_0x4278e3[_0x43accc(-0x8a,-0xa0)](_0x51b1c9),!0x0)),_0x28d8fe=['js',_0x43accc(-0x9b,-_0x5cddcd._0x4d5a9d),_0x43accc(-0x55,-0xa3)],_0x21e52d=_0x2ba564['flatMap'](_0x45c88a=>_0x28d8fe['map'](_0x1b3dec=>_0x2d0685[_0x43accc(-0x97,-0x9c)](_0x45c88a,_0x43accc(-0xcc,-0x143)+_0x1b3dec)))['find'](_0x28e8b4=>_0x559044['existsSync'](_0x28e8b4));if(!_0x21e52d)return null;let _0x52f090;try{const _0x90bbc6=await import(_0x5bac19(_0x21e52d)['href']);_0x52f090=void 0x0!==_0x90bbc6[_0x43accc(-_0x5cddcd._0x2469f7,-0x56)]?_0x90bbc6[_0x43accc(-_0x5cddcd._0x18b7b4,-_0x5cddcd._0x167331)]:_0x90bbc6;}catch(_0x4e2ce3){throw new Error(_0x43accc(-0xc9,-0x56)+_0x21e52d+':\x20'+_0x4e2ce3['message']);}function _0x43accc(_0x42fa52,_0x3b8c16){return _0x26bd38(_0x42fa52- -0x13,_0x3b8c16);}return{'config':_0x52f090,'configPath':_0x21e52d};}async[_0x26bd38(-0x123,-0x11c)](_0x9dc748){const _0x441340={_0xc27ac2:0x239,_0x2bd068:0x1a5,_0x507fa9:0xc3,_0x19f5ae:0x15d,_0x2cf57a:0x166,_0x2e1e8e:0x1de,_0x1e4adb:0x23d};if(this['_started']||this[_0x5582ed(0x150,0xdf)])return this;function _0x5582ed(_0x190a24,_0x1ba2db){return _0x26bd38(_0x190a24-0x268,_0x1ba2db);}let _0x4763de;try{_0x4763de=await this[_0x5582ed(0x23f,_0x441340._0xc27ac2)](_0x9dc748);}catch(_0x4df70a){return console['warn'](_0x5582ed(0x1a0,_0x441340._0x2bd068)+_0x4df70a[_0x5582ed(0x1ed,0x24a)]+'\x0a\x20\x20→\x20call\x20mongofire.start(config)\x20manually\x20if\x20needed.'),this;}if(!_0x4763de)return this;try{await this[_0x5582ed(0x143,_0x441340._0x507fa9)](_0x4763de['config']);}catch(_0x160cd8){console[_0x5582ed(_0x441340._0x19f5ae,_0x441340._0x2cf57a)](_0x5582ed(0x203,_0x441340._0x2e1e8e),_0x160cd8[_0x5582ed(0x1ed,_0x441340._0x1e4adb)]);}return this;}async[_0x26bd38(-0x8a,-0x9e)](_0x5b01ac,_0x535a55=0xbb8){const _0x36e0e9={_0x4dc0e3:0x559,_0x804674:0x550,_0x598d67:0x54d,_0x25e518:0x571,_0x5ccc9b:0x612},_0x172ae1={_0x3f2c18:0x3a,_0x5f503c:0x41},_0x3512aa={_0x811205:0x93,_0xd2d554:0x176},_0x5b1079={_0x36d209:0x1a,_0x348c55:0x73,_0x1b5c86:0xc8,_0x381531:0x4e,_0x2c3fe5:0x3c,_0x5ca968:0x15,_0xea092e:0x62},_0x3922c9={_0x2414af:0x65b};function _0x4b40ad(_0x31738f,_0xa32e63){return _0x26bd38(_0x31738f-_0x3922c9._0x2414af,_0xa32e63);}const _0xa56828=Number(_0x535a55)||0xbb8;try{await this[_0x4b40ad(0x56d,_0x36e0e9._0x4dc0e3)]();}catch(_0x41fd10){console[_0x4b40ad(_0x36e0e9._0x804674,0x58d)](_0x4b40ad(_0x36e0e9._0x598d67,_0x36e0e9._0x25e518)+(_0x41fd10?.['message']||_0x41fd10)+'\x0a\x20\x20\x20Fix:\x20\x20\x20\x20Make\x20sure\x20MongoDB\x20is\x20running,\x20or\x20check\x20LOCAL_URI\x20in\x20.env.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Server\x20will\x20NOT\x20start\x20in\x20a\x20broken\x20state.\x0a'),process[_0x4b40ad(0x5a7,_0x36e0e9._0x5ccc9b)](0x1);}return new Promise((_0x3b835c,_0x53f180)=>{const _0x43ce03=_0x5b01ac[_0x2d6608(_0x172ae1._0x3f2c18,-_0x172ae1._0x5f503c)](_0xa56828,_0x4479ba=>{function _0x4200a7(_0x2c7f24,_0x22f6ee){return _0x2d6608(_0x22f6ee- -0x7,_0x2c7f24);}_0x4479ba&&(console[_0x4200a7(0xf,-0x42)](_0x4200a7(_0x5b1079._0x36d209,0x1c)+_0xa56828+_0x4200a7(0x16,_0x5b1079._0x348c55),_0x4479ba?.[_0x4200a7(_0x5b1079._0x1b5c86,_0x5b1079._0x381531)]||_0x4479ba),_0x53f180(_0x4479ba),process[_0x4200a7(-_0x5b1079._0x2c3fe5,_0x5b1079._0x5ca968)](0x1)),console[_0x4200a7(-_0x5b1079._0xea092e,-0x19)]('🚀\x20[MongoFire]\x20Server\x20ready\x20on\x20port\x20'+_0xa56828),_0x3b835c(_0x43ce03);});function _0x2d6608(_0x433149,_0x4feb0a){return _0x4b40ad(_0x433149- -0x58b,_0x4feb0a);}_0x43ce03['on'](_0x2d6608(-0x3b,-0x48),_0x49ffe6=>{const _0x5e96d5={_0x4cd1da:0x10f};function _0x120ed5(_0xa19f08,_0x375ffa){return _0x2d6608(_0x375ffa-_0x5e96d5._0x4cd1da,_0xa19f08);}console[_0x120ed5(_0x3512aa._0x811205,0xd4)]('❌\x20[MongoFire]\x20Server\x20error\x20on\x20port\x20'+_0xa56828+':',_0x49ffe6?.[_0x120ed5(_0x3512aa._0xd2d554,0x164)]||_0x49ffe6),_0x53f180(_0x49ffe6),process['exit'](0x1);});});}[_0x26bd38(-0x4f,-0x3a)](_0x2b13d4,_0x439d7f={}){const _0x2f840d={_0x57b324:0x39,_0x219929:0xc},_0x588d2b={_0x3a08ac:0x513,_0x25fa7a:0x560,_0x49f221:0x53d},_0x43dd16={_0x2afa17:0xed};if(!_0x2b13d4)throw new Error(_0x1b15c3(0x64,0x89));function _0x1b15c3(_0x4a5392,_0x46afed){return _0x26bd38(_0x46afed-_0x43dd16._0x2afa17,_0x4a5392);}validateCollectionName(_0x2b13d4),_0x439d7f[_0x1b15c3(_0x2f840d._0x57b324,0x3c)]&&(this['_ownerFields'][_0x2b13d4]=_0x439d7f['ownerField']);const _0x18ea9f=this[_0x1b15c3(0x2c,-_0x2f840d._0x219929)];return(_0x247a85,_0xb6c32a)=>{const _0xd054aa={_0x5c7a43:0x501};function _0x2c87cb(_0x1488d1,_0x416e1d){return _0x1b15c3(_0x1488d1,_0x416e1d-_0xd054aa._0x5c7a43);}mongofirePlugin(_0x247a85,{'collection':_0x2b13d4||_0xb6c32a?.[_0x2c87cb(0x539,0x4ea)]||_0x2c87cb(_0x588d2b._0x3a08ac,0x57d),'ownerField':_0x439d7f['ownerField']||_0xb6c32a?.[_0x2c87cb(_0x588d2b._0x25fa7a,_0x588d2b._0x49f221)]||null,'batchSize':_0x439d7f[_0x2c87cb(0x5c9,_0x588d2b._0x25fa7a)]||0xc8,'concurrency':_0x439d7f[_0x2c87cb(0x51c,0x55b)]||0x8,'conn':_0x18ea9f});};}async[_0x26bd38(-0x102,-0x127)](_0x3c5eef,_0x346143={}){const _0x5991f7={_0x243ace:0x463,_0x2e6132:0x404,_0x1ae262:0x43a,_0xf34749:0x525,_0xe67052:0x4da,_0x4a420a:0x4b1,_0x15a098:0x42d,_0xc6c301:0x47d,_0x4a9abc:0x4b7,_0x3934fc:0x4f0,_0x4005e2:0x44a,_0x42de1f:0x50e};if(!this['_conn'][_0x909f17(0x414,0x46d)])throw new Error(_0x909f17(0x48c,0x462));let _0x86346f;if(_0x909f17(0x4c0,_0x5991f7._0x243ace)==typeof _0x3c5eef?_0x86346f=[_0x3c5eef]:Array[_0x909f17(_0x5991f7._0x2e6132,_0x5991f7._0x1ae262)](_0x3c5eef)?_0x86346f=_0x3c5eef:(_0x346143=_0x3c5eef||{},_0x86346f=this[_0x909f17(_0x5991f7._0xf34749,_0x5991f7._0xe67052)]?.[_0x909f17(_0x5991f7._0x4a420a,0x4c6)]||[]),!_0x86346f[_0x909f17(0x41e,_0x5991f7._0x15a098)])throw new Error('[MongoFire]\x20reconcile:\x20no\x20collections\x20specified\x20and\x20MongoFire\x20not\x20started\x20yet');const _0x435142={'fullScan':!0x1!==_0x346143[_0x909f17(0x3fd,_0x5991f7._0xc6c301)],'verbose':!0x1!==_0x346143[_0x909f17(_0x5991f7._0x4a9abc,_0x5991f7._0x3934fc)]},_0x296c2f=await _reconcileCollections(_0x86346f,this[_0x909f17(0x443,0x483)],_0x435142,this[_0x909f17(0x455,_0x5991f7._0x4005e2)]),_0x439016=_0x296c2f[_0x909f17(0x523,_0x5991f7._0x42de1f)]((_0x35fec4,_0x4a04e5)=>_0x35fec4+(_0x4a04e5['totalQueued']||0x0),0x0);function _0x909f17(_0x53568e,_0x4a8ba2){return _0x26bd38(_0x4a8ba2-0x543,_0x53568e);}return this['emit']('reconcileComplete',{'collections':_0x296c2f,'totalQueued':_0x439016}),_0x296c2f;}async[_0x26bd38(-0x59,0x3)](_0x573ef9=_0x26bd38(-0xc7,-0x60)){const _0x16dde5={_0x1b03dc:0x14,_0x35e897:0x51,_0x2d4327:0x65,_0x1b2efb:0x21,_0x4e534d:0xb7,_0x5a2065:0x6a,_0xb1396c:0x4b,_0x2a4e67:0x2a,_0x327758:0x51,_0x5a3634:0x2d,_0x1822e8:0x13};function _0x110f6a(_0x1e58d5,_0x384306){return _0x26bd38(_0x384306-0xa8,_0x1e58d5);}return this[_0x110f6a(-_0x16dde5._0x1b03dc,-_0x16dde5._0x35e897)]['online']?Date[_0x110f6a(0x7,_0x16dde5._0x2d4327)]()-this[_0x110f6a(-0x3d,_0x16dde5._0x1b2efb)]<0x1f4?(console[_0x110f6a(-0x72,-0x2)](_0x110f6a(-_0x16dde5._0x4e534d,-_0x16dde5._0x5a2065)),null):this[_0x110f6a(0xa0,_0x16dde5._0xb1396c)](_0x573ef9):{'error':_0x110f6a(-_0x16dde5._0x2a4e67,_0x16dde5._0x327758),'pending':await this[_0x110f6a(_0x16dde5._0x5a3634,_0x16dde5._0x1822e8)]()};}async[_0x26bd38(-0x8b,-0xe7)](){const _0x3a912b={_0x15bc5d:0xcd},_0x18275f={_0x2e5be7:0x173};function _0x6752e6(_0x5deed6,_0x4c1979){return _0x26bd38(_0x4c1979-_0x18275f._0x2e5be7,_0x5deed6);}return{...await getSyncStatus(this[_0x6752e6(_0x3a912b._0x15bc5d,0xf4)],this['_conn']),'realtime':this[_0x6752e6(0xce,0xf4)]};}async[_0x26bd38(-0xd0,-0x11d)](_0x2a258b=0x7,_0x515a8f={}){const _0x11efa1={_0x29f8fd:0x259,_0x1d44d8:0x226,_0x4f3c5c:0x292,_0x1e4134:0x1a3,_0x50eba8:0x173,_0x1879b:0x20c,_0x1316e4:0x239,_0x23e89d:0x1db,_0x167f48:0x230,_0x5f54bd:0x198,_0x1fda57:0x162,_0x1ccc87:0x17a,_0x548e59:0x160,_0x5e4403:0x1a4,_0x2dcf5e:0x166,_0x4fe6e3:0x199,_0x219b24:0x152,_0x4f7b7f:0x1d4};if(!this[_0x5d90f2(0x1a3,0x1b8)]['local'])throw new Error('[MongoFire]\x20clean:\x20MongoFire\x20is\x20not\x20started');function _0x5d90f2(_0x31f187,_0xd9ee38){return _0x26bd38(_0x31f187-0x29c,_0xd9ee38);}const _0x5af5b0=new Date(Date[_0x5d90f2(_0x11efa1._0x29f8fd,_0x11efa1._0x1d44d8)]()-0x5265c00*_0x2a258b),_0x377119=_0x515a8f['conflictDays']??_0x2a258b,_0x5d720f=new Date(Date[_0x5d90f2(0x259,_0x11efa1._0x4f3c5c)]()-0x5265c00*_0x377119),_0x3232f0=await this[_0x5d90f2(_0x11efa1._0x1e4134,_0x11efa1._0x50eba8)]['local'][_0x5d90f2(0x198,0x156)](_0x5d90f2(_0x11efa1._0x1879b,_0x11efa1._0x1316e4))[_0x5d90f2(0x17a,0x1e7)]({'synced':!0x0,'syncedAt':{'$lt':_0x5af5b0}}),_0x231c2e=await this[_0x5d90f2(_0x11efa1._0x1e4134,_0x11efa1._0x23e89d)][_0x5d90f2(0x1c6,_0x11efa1._0x167f48)][_0x5d90f2(_0x11efa1._0x5f54bd,_0x11efa1._0x1fda57)]('_mf_changetrack')[_0x5d90f2(_0x11efa1._0x1ccc87,_0x11efa1._0x548e59)]({'ackState':_0x5d90f2(_0x11efa1._0x5e4403,_0x11efa1._0x2dcf5e),'synced':!0x1,'timestamp':{'$lt':_0x5d720f}}),_0x2eb897=_0x3232f0[_0x5d90f2(_0x11efa1._0x4fe6e3,0x140)]+_0x231c2e[_0x5d90f2(0x199,_0x11efa1._0x219b24)];return console[_0x5d90f2(0x1ba,0x234)](_0x5d90f2(0x1ad,0x217)+_0x3232f0[_0x5d90f2(0x199,_0x11efa1._0x4f7b7f)]+'\x20synced\x20record(s)\x20and\x20'+_0x231c2e[_0x5d90f2(0x199,0x170)]+'\x20stale\x20conflict\x20record(s)'),_0x2eb897;}async[_0x26bd38(-0x121,-0x165)](_0x4fbdb3=null){const _0x20e37c={_0xa8335f:0x13f,_0x4e86f6:0x194};function _0x4e6f5f(_0x54ea2b,_0x448647){return _0x26bd38(_0x448647- -0xbe,_0x54ea2b);}if(!this['_conn'][_0x4e6f5f(-_0x20e37c._0xa8335f,-_0x20e37c._0x4e86f6)])throw new Error('[MongoFire]\x20conflicts:\x20MongoFire\x20is\x20not\x20started');return getConflicts(_0x4fbdb3,this['_conn']);}async[_0x26bd38(-0xb7,-0xf1)](_0x279fdc){const _0x1a55b1={_0x2dda44:0x34,_0x272632:0x14,_0xdbc4d1:0x57,_0x13dffd:0x35,_0x17a8cc:0xed,_0x500993:0xd3,_0x2ea0bd:0x28},_0x37aca0={_0x316aa2:0x12d};function _0xb41021(_0x48e8d7,_0x3bc401){return _0x26bd38(_0x3bc401-_0x37aca0._0x316aa2,_0x48e8d7);}if(!this[_0xb41021(-0x30,_0x1a55b1._0x2dda44)][_0xb41021(_0x1a55b1._0x272632,_0x1a55b1._0xdbc4d1)])throw new Error(_0xb41021(-0x4c,0x13));await retryConflict(_0x279fdc,this[_0xb41021(_0x1a55b1._0x13dffd,0x34)]),this[_0xb41021(_0x1a55b1._0x17a8cc,_0x1a55b1._0x500993)](_0xb41021(0x3,_0x1a55b1._0x2ea0bd),{'opId':_0x279fdc,'resolution':'retried'});}async['dismissConflict'](_0x1e3dc3){const _0x4337aa={_0x18e907:0xd5,_0xfa329c:0x136,_0xa67402:0x89},_0x3e87c5={_0x27f7d9:0x166};if(!this['_conn']['local'])throw new Error(_0x566daa(_0x4337aa._0x18e907,0x56));function _0x566daa(_0x5ebbda,_0x1146ad){return _0x26bd38(_0x1146ad-_0x3e87c5._0x27f7d9,_0x5ebbda);}await dismissConflict(_0x1e3dc3,this[_0x566daa(0xe4,0x6d)]),this[_0x566daa(_0x4337aa._0xfa329c,0x10c)](_0x566daa(_0x4337aa._0xa67402,0x61),{'opId':_0x1e3dc3,'resolution':'dismissed'});}async[_0x26bd38(-0x7c,-0xcd)](){const _0x3a8b1f={_0x69b056:0x11d,_0x537816:0x13f,_0x27fb99:0xb5,_0x47547d:0xd5,_0x1322e7:0x140,_0x46f280:0xcc,_0x26ed65:0x128,_0x4723e4:0xbc,_0x462c4d:0x8b,_0x297d69:0xb0,_0x53bdd1:0x78,_0x909b53:0x1bd,_0x194c5b:0x198,_0x387ffd:0xc9,_0x3868a0:0x88,_0x2c5dc7:0x105,_0x1b5698:0x114,_0xab20bf:0xe0,_0x99e6f4:0xb3,_0x51cd37:0xc2,_0x1b63e9:0x8a,_0x664654:0x129,_0x39ab02:0x12d};if(!this[_0x3878c4(-0x140,-0x1a6)][_0x3878c4(-_0x3a8b1f._0x69b056,-_0x3a8b1f._0x537816)])throw new Error(_0x3878c4(-_0x3a8b1f._0x27fb99,-_0x3a8b1f._0x47547d));const _0x1b31dd=this[_0x3878c4(-_0x3a8b1f._0x1322e7,-_0x3a8b1f._0x46f280)]['local'],_0x38b18f=[...new Set([_0x3878c4(-0xd7,-_0x3a8b1f._0x26ed65),_0x3878c4(-_0x3a8b1f._0x4723e4,-0x12d),_0x3878c4(-_0x3a8b1f._0x462c4d,-0x77),_0x3878c4(-0x133,-0x141),_0x3878c4(-0xcd,-0xdb),...this[_0x3878c4(-_0x3a8b1f._0x297d69,-0xac)]?.[_0x3878c4(-0xc4,-_0x3a8b1f._0x53bdd1)]||[]])];function _0x3878c4(_0x3bca92,_0x7e7619){return _0x26bd38(_0x3bca92- -0x47,_0x7e7619);}let _0x490880=0x0;for(const _0xb39159 of _0x38b18f)try{await _0x1b31dd[_0x3878c4(-0x14b,-_0x3a8b1f._0x909b53)](_0xb39159)[_0x3878c4(-0x93,-0x3f)](),_0x490880++;}catch(_0x243225){_0x243225['message']?.[_0x3878c4(-0x105,-0x9e)](_0x3878c4(-0x162,-_0x3a8b1f._0x194c5b))||_0x243225[_0x3878c4(-_0x3a8b1f._0x387ffd,-_0x3a8b1f._0x3868a0)]?.[_0x3878c4(-_0x3a8b1f._0x2c5dc7,-0xb1)](_0x3878c4(-_0x3a8b1f._0x1b5698,-0xb1))||console['error'](_0x3878c4(-_0x3a8b1f._0xab20bf,-_0x3a8b1f._0x99e6f4)+_0xb39159+'\x22:',_0x243225[_0x3878c4(-_0x3a8b1f._0x51cd37,-_0x3a8b1f._0x1b63e9)]);}return console[_0x3878c4(-_0x3a8b1f._0x664654,-0x141)](_0x3878c4(-_0x3a8b1f._0x39ab02,-0x12b)+_0x490880+'\x20collection(s).\x20Next\x20start\x20will\x20re-bootstrap\x20from\x20Atlas.'),{'dropped':_0x490880};}get['online'](){const _0x26cb0e={_0x5818bb:0x157,_0x377bac:0x12c},_0x219790={_0x277f25:0x250};function _0x2601de(_0x5f2f90,_0x266da8){return _0x26bd38(_0x5f2f90-_0x219790._0x277f25,_0x266da8);}return this[_0x2601de(_0x26cb0e._0x5818bb,0x181)][_0x2601de(0x165,_0x26cb0e._0x377bac)];}get[_0x26bd38(-0x3f,-0x4b)](){const _0x323f91={_0x452b72:0x2e0};function _0x4b5b6c(_0x2c28ab,_0x32c823){return _0x26bd38(_0x32c823-_0x323f91._0x452b72,_0x2c28ab);}return this[_0x4b5b6c(0x1c4,0x240)];}get['syncing'](){const _0x1da737={_0x3c9f1a:0x43f},_0x11f26a={_0x40c786:0x512};function _0x5a1000(_0x23b07f,_0x2e7f50){return _0x26bd38(_0x2e7f50-_0x11f26a._0x40c786,_0x23b07f);}return!!this[_0x5a1000(0x403,_0x1da737._0x3c9f1a)];}get[_0x26bd38(-0x2e,-0x98)](){function _0x595d8b(_0x48dab5,_0x54c872){return _0x26bd38(_0x48dab5-0x1ab,_0x54c872);}return this[_0x595d8b(0x12c,0x159)];}get[_0x26bd38(-0x3e,-0x97)](){const _0x5eb9b2={_0x4e4853:0xb4};function _0x21a7eb(_0x56fca4,_0x4667c1){return _0x26bd38(_0x4667c1- -_0x5eb9b2._0x4e4853,_0x56fca4);}return this[_0x21a7eb(-0x1ba,-0x140)];}get['rateLimiter'](){function _0x14f85b(_0x5f2d8f,_0x42c269){return _0x26bd38(_0x42c269-0x18d,_0x5f2d8f);}return this[_0x14f85b(0xf5,0x126)];}async[_0x26bd38(-0xa7,-0x10b)](_0x48428a={}){const _0xdbff32={_0x3c907a:0x39,_0x58ec09:0x3c,_0xfe4a8:0x102,_0x143f7c:0xc9,_0x2a5260:0x5e,_0x5a124a:0xc9,_0x3c32ad:0x2e,_0xdedb40:0xa4,_0x40ccce:0xdf,_0x246a3b:0x158,_0x305d54:0xa5,_0x3d0827:0xd8,_0x59b2a8:0xa3};if(!this[_0x4caa23(_0xdbff32._0x3c907a,_0xdbff32._0x58ec09)][_0x4caa23(0x5c,0xb6)])throw new Error(_0x4caa23(_0xdbff32._0xfe4a8,0xfd));const _0x2ee97b=await compactChangelog({'conn':this[_0x4caa23(0x39,-0xb)],'retentionDays':_0x48428a['retentionDays']??this[_0x4caa23(_0xdbff32._0x143f7c,0xdd)]?.[_0x4caa23(0x59,_0xdbff32._0x2a5260)]??this[_0x4caa23(_0xdbff32._0x5a124a,0x8b)]?.['cleanDays']??0x7,'batchSize':_0x48428a['batchSize'],'collection':_0x48428a[_0x4caa23(_0xdbff32._0x3c32ad,_0xdbff32._0xdedb40)],'verbose':_0x48428a[_0x4caa23(_0xdbff32._0x40ccce,_0xdbff32._0x246a3b)]??this[_0x4caa23(0xc9,_0xdbff32._0x305d54)]?.[_0x4caa23(0xdf,0x127)]??!0x1});function _0x4caa23(_0x20f3f9,_0x5d0727){return _0x26bd38(_0x20f3f9-0x132,_0x5d0727);}return this[_0x4caa23(_0xdbff32._0x3d0827,0xc4)](_0x4caa23(_0xdbff32._0x59b2a8,0x113),_0x2ee97b),_0x2ee97b;}[_0x26bd38(-0xfa,-0xf2)](){const _0x17ff6d={_0x484063:0x17c,_0x306d1f:0x113,_0x5ce409:0x99,_0x25125e:0x65},_0x3ea32a={_0x962546:0x17a};function _0x30f38d(_0x342846,_0x224455){return _0x26bd38(_0x224455-_0x3ea32a._0x962546,_0x342846);}return this['_rateLimiter']?this[_0x30f38d(_0x17ff6d._0x484063,_0x17ff6d._0x306d1f)][_0x30f38d(_0x17ff6d._0x5ce409,_0x17ff6d._0x25125e)]():null;}['resetCircuit'](){const _0x23ef3a={_0x1da1b4:0xbd,_0x56bc43:0x114,_0x55f52d:0x146},_0x2fe953={_0x1e16b6:0x124};function _0x2acc15(_0x7fb4a2,_0x2fc43e){return _0x26bd38(_0x2fc43e-_0x2fe953._0x1e16b6,_0x7fb4a2);}this[_0x2acc15(0xc8,_0x23ef3a._0x1da1b4)]&&(this[_0x2acc15(0x133,0xbd)][_0x2acc15(_0x23ef3a._0x56bc43,0xed)](),console['log'](_0x2acc15(_0x23ef3a._0x55f52d,0xc8)));}async[_0x26bd38(-0x9c,-0x9f)](){const _0xbce1c9={_0x137557:0x39f,_0x2deb56:0x352,_0x31e706:0x351,_0x45578a:0x34a,_0x13d6b2:0x35b,_0x11dbef:0x361,_0x5b5ada:0x376,_0x209784:0x37d,_0x47ab6f:0x322,_0x215fa5:0x370,_0x4f42ed:0x301,_0x431fb7:0x34b,_0x2cfc16:0x311,_0x2b888f:0x356,_0x3a23ad:0x314,_0x88750d:0x378,_0x49a9c4:0x2ef,_0x1042b6:0x318,_0x52693d:0x30b,_0x344ab6:0x31b,_0x14f058:0x349,_0x520077:0x2a4,_0x160144:0x330,_0x526562:0x39f,_0x45f390:0x306,_0x544b77:0x385,_0x205bd6:0x343,_0x43700f:0x37f,_0x3a55a7:0x35a,_0xf2e3d6:0x384,_0x577862:0x34f},_0x61beda={_0x427b43:0x36e,_0x5ca17f:0x361,_0x4a55df:0x3bc,_0x1ae3fc:0x3d5,_0xb5345f:0x37b,_0x2e52e1:0x41f,_0x51e196:0x34a,_0xa0162b:0x368,_0x334540:0x408,_0x33bf20:0x3f7},_0x6a2453={_0xbd1c0c:0x44},_0x5ec18={_0x412787:0x5a7,_0x527798:0x53f,_0x1b045a:0x502,_0x56e9d5:0x5a8,_0x46681f:0x5c9,_0x112e1f:0x550,_0x3849cf:0x555,_0x41c3d2:0x5b2,_0xc78d60:0x52a,_0x274c58:0x50c,_0x968db8:0x4b6,_0x4a1de9:0x53f,_0x405dc5:0x589,_0x459ab9:0x4e3,_0x32e7fa:0x571,_0x177a75:0x52e,_0x47b81f:0x5c2,_0x3bb914:0x5cb,_0x3963cf:0x5c2},_0x17661c={_0x2721f3:0x340,_0x247b17:0x3c1,_0x232a08:0x300,_0x2d18d9:0x2d8,_0x1b600c:0x250,_0xa4c1c7:0x281};function _0xbf1b44(_0x1fe859,_0xd2fe28){return _0x26bd38(_0x1fe859-0x3f3,_0xd2fe28);}if(!this['_realtimeActive']&&!this[_0xbf1b44(_0xbce1c9._0x137557,_0xbce1c9._0x2deb56)]){if(this[_0xbf1b44(_0xbce1c9._0x137557,0x360)]=!0x0,this[_0xbf1b44(0x2fa,0x2f9)][_0xbf1b44(_0xbce1c9._0x31e706,_0xbce1c9._0x45578a)])try{const _0x17119a=[{'$match':{'operationType':'update','updateDescription.updatedFields.applyStatus':_0xbf1b44(_0xbce1c9._0x13d6b2,_0xbce1c9._0x11dbef),'fullDocument.collection':{'$in':this[_0xbf1b44(0x38a,0x3ed)][_0xbf1b44(_0xbce1c9._0x5b5ada,0x34e)]}}}],_0x5864cc={'fullDocument':_0xbf1b44(_0xbce1c9._0x209784,0x368),'maxAwaitTimeMS':0x2710};this['_resumeToken']&&(_0x5864cc[_0xbf1b44(_0xbce1c9._0x47ab6f,_0xbce1c9._0x215fa5)]=this[_0xbf1b44(_0xbce1c9._0x4f42ed,_0xbce1c9._0x431fb7)],console[_0xbf1b44(_0xbce1c9._0x2cfc16,0x32d)](_0xbf1b44(_0xbce1c9._0x2b888f,0x3a3))),this[_0xbf1b44(_0xbce1c9._0x3a23ad,_0xbce1c9._0x88750d)]=this['_conn']['atlas'][_0xbf1b44(_0xbce1c9._0x49a9c4,0x2b8)](_0xbf1b44(0x363,0x323))[_0xbf1b44(_0xbce1c9._0x1042b6,_0xbce1c9._0x52693d)](_0x17119a,_0x5864cc),this[_0xbf1b44(0x314,_0xbce1c9._0x344ab6)]['on'](_0xbf1b44(0x3bf,_0xbce1c9._0x14f058),async _0x325f60=>{const _0x5ca567={_0x33b112:0x282};if(_0x325f60[_0x261caf(_0x5ec18._0x412787,_0x5ec18._0x527798)]&&(this['_resumeToken']=_0x325f60[_0x261caf(0x5a7,0x54f)]),!_0x325f60['fullDocument'])return void console[_0x261caf(0x577,_0x5ec18._0x1b045a)](_0x261caf(0x5c6,0x575));const _0x387e54=this[_0x261caf(_0x5ec18._0x56e9d5,0x5ae)][_0x261caf(_0x5ec18._0x46681f,_0x5ec18._0x112e1f)]();if(_0x325f60[_0x261caf(_0x5ec18._0x3849cf,_0x5ec18._0x41c3d2)][_0x261caf(_0x5ec18._0xc78d60,_0x5ec18._0x274c58)]===_0x387e54)return;const _0x9a8c8=_0x325f60['fullDocument'][_0x261caf(0x51d,_0x5ec18._0x968db8)];function _0x261caf(_0x361689,_0x2b7fdf){return _0xbf1b44(_0x361689-0x22e,_0x2b7fdf);}_0x9a8c8&&this[_0x261caf(0x5b8,0x5b0)]['collections'][_0x261caf(0x563,0x55c)](_0x9a8c8)&&(console[_0x261caf(_0x5ec18._0x4a1de9,0x516)](_0x261caf(0x5ae,_0x5ec18._0x405dc5)+(_0x325f60[_0x261caf(0x555,_0x5ec18._0x459ab9)][_0x261caf(0x51a,_0x5ec18._0x32e7fa)]||_0x325f60['fullDocument']['op']||'?')+_0x261caf(0x587,_0x5ec18._0x177a75)+_0x9a8c8+'\x20—\x20syncing...'),this[_0x261caf(_0x5ec18._0x47b81f,_0x5ec18._0x3bb914)]&&clearTimeout(this[_0x261caf(_0x5ec18._0x3963cf,0x5a0)]),this[_0x261caf(0x5c2,0x604)]=setTimeout(()=>{function _0x1dcd0e(_0xf48c1,_0x49d933){return _0x261caf(_0x49d933- -_0x5ca567._0x33b112,_0xf48c1);}this[_0x1dcd0e(0x35c,_0x17661c._0x2721f3)]=null,this[_0x1dcd0e(_0x17661c._0x247b17,0x342)](_0x1dcd0e(_0x17661c._0x232a08,_0x17661c._0x2d18d9))[_0x1dcd0e(_0x17661c._0x1b600c,_0x17661c._0xa4c1c7)](()=>{});},0x12c));}),this['_changeStream']['on'](_0xbf1b44(0x2e8,_0xbce1c9._0x520077),_0xc8d8fb=>{const _0x6112f={_0x5f0216:0xd9,_0x4617a5:0xdf,_0x22f9f6:0x132,_0x44b7c2:0x123,_0x17bd54:0x1cf,_0x3d9660:0xc6,_0x24a409:0x136,_0x67e3ee:0xf9,_0x5593c3:0xb4};console['warn'](_0x987f7e(_0x61beda._0x427b43,_0x61beda._0x5ca17f),_0xc8d8fb?.[_0x987f7e(_0x61beda._0x4a55df,_0x61beda._0x1ae3fc)]||_0xc8d8fb),this[_0x987f7e(0x3b8,0x3a9)]=!0x1,this['_changeStream']=null,this['_realtimeRetryCount']++;function _0x987f7e(_0x1eee37,_0x35466a){return _0xbf1b44(_0x1eee37-_0x6a2453._0xbd1c0c,_0x35466a);}const _0x1f88fb=Math[_0x987f7e(_0x61beda._0xb5345f,0x337)](0x7d0*Math[_0x987f7e(0x3d6,_0x61beda._0x2e52e1)](0x2,this[_0x987f7e(_0x61beda._0x51e196,0x386)]-0x1),0xea60),_0x25ab16=0.2*_0x1f88fb*(0x2*Math[_0x987f7e(0x32a,_0x61beda._0xa0162b)]()-0x1),_0x3c841e=Math[_0x987f7e(0x408,0x399)](_0x1f88fb+_0x25ab16);console[_0x987f7e(0x355,0x375)]('[MongoFire]\x20Realtime\x20will\x20restart\x20in\x20'+Math[_0x987f7e(_0x61beda._0x334540,_0x61beda._0x33bf20)](_0x3c841e/0x3e8)+'s\x20(attempt\x20'+this['_realtimeRetryCount']+')'),setTimeout(()=>{const _0x2c55d={_0x4d05e4:0x265};function _0x2b702c(_0x214aac,_0x5f089a){return _0x987f7e(_0x5f089a- -_0x2c55d._0x4d05e4,_0x214aac);}this[_0x2b702c(0xdd,_0x6112f._0x5f0216)][_0x2b702c(0x10b,0xe7)]&&this[_0x2b702c(_0x6112f._0x4617a5,_0x6112f._0x22f9f6)]&&this[_0x2b702c(_0x6112f._0x44b7c2,0x169)]?.[_0x2b702c(_0x6112f._0x17bd54,0x199)]&&(console[_0x2b702c(0x123,0xf0)](_0x2b702c(0x8b,_0x6112f._0x3d9660)),this[_0x2b702c(0x186,_0x6112f._0x24a409)]()[_0x2b702c(_0x6112f._0x67e3ee,_0x6112f._0x5593c3)](()=>{}));},_0x3c841e);}),this[_0xbf1b44(_0xbce1c9._0x3a23ad,0x2f1)]['on'](_0xbf1b44(_0xbce1c9._0x160144,0x366),()=>{const _0x446f5f={_0x3110bf:0x46a};function _0x1f93b1(_0xce4979,_0x27c959){return _0xbf1b44(_0xce4979- -_0x446f5f._0x3110bf,_0x27c959);}this[_0x1f93b1(-0xf6,-0x111)]=!0x1,this['_changeStream']=null;}),this['_realtimeActive']=!0x0,this[_0xbf1b44(_0xbce1c9._0x526562,0x37e)]=!0x1,this[_0xbf1b44(_0xbce1c9._0x45f390,_0xbce1c9._0x544b77)]=0x0,console['log'](_0xbf1b44(0x354,0x305)),this[_0xbf1b44(0x399,0x3d8)](_0xbf1b44(0x3c2,_0xbce1c9._0x205bd6));}catch(_0x212eac){console[_0xbf1b44(0x349,0x305)](_0xbf1b44(_0xbce1c9._0x43700f,0x37f),_0x212eac?.[_0xbf1b44(_0xbce1c9._0x88750d,0x360)]||_0x212eac),this[_0xbf1b44(0x374,_0xbce1c9._0x3a55a7)]=!0x1,this[_0xbf1b44(_0xbce1c9._0x137557,_0xbce1c9._0xf2e3d6)]=!0x1;}else this[_0xbf1b44(_0xbce1c9._0x526562,_0xbce1c9._0x577862)]=!0x1;}}async[_0x26bd38(-0xf1,-0xa2)](){const _0xdb1f4d={_0x3c169b:0x3e1,_0x168761:0x40e,_0x43faec:0x40d,_0x403f1f:0x38e,_0x1edc48:0x3d5,_0x863fb1:0x3a4,_0x98ee22:0x3aa,_0x45e814:0x336,_0x32cd12:0x3ee,_0x5cd778:0x3e2,_0x3742ae:0x2f2,_0xc35ea6:0x465,_0x1d8ddc:0x413};function _0x37343c(_0x495bcc,_0x59d8fe){return _0x26bd38(_0x59d8fe-0x46d,_0x495bcc);}if(this['_realtimeDebounce']&&(clearTimeout(this[_0x37343c(_0xdb1f4d._0x3c169b,_0xdb1f4d._0x168761)]),this['_realtimeDebounce']=null),this[_0x37343c(_0xdb1f4d._0x43faec,_0xdb1f4d._0x403f1f)]){try{await this[_0x37343c(_0xdb1f4d._0x1edc48,_0xdb1f4d._0x403f1f)][_0x37343c(_0xdb1f4d._0x863fb1,_0xdb1f4d._0x98ee22)]();}catch(_0x3cf0be){}this[_0x37343c(_0xdb1f4d._0x45e814,_0xdb1f4d._0x403f1f)]=null;}this[_0x37343c(0x370,_0xdb1f4d._0x32cd12)]=!0x1,console[_0x37343c(_0xdb1f4d._0x5cd778,0x38b)](_0x37343c(_0xdb1f4d._0x3742ae,0x365)),this[_0x37343c(_0xdb1f4d._0xc35ea6,_0xdb1f4d._0x1d8ddc)]('realtimeStopped');}async[_0x26bd38(-0xf4,-0x82)](){const _0x3d666e={_0x1672db:0x12d,_0x585b7b:0x11f,_0x2ede9f:0x118,_0x31c855:0xd0,_0x578ee9:0xb3,_0x13a618:0x95,_0x33b4c3:0x116};function _0x20d6d6(_0xc70b00,_0x559a26){return _0x26bd38(_0xc70b00- -0x34,_0x559a26);}return this[_0x20d6d6(-_0x3d666e._0x1672db,-0xcb)][_0x20d6d6(-_0x3d666e._0x585b7b,-_0x3d666e._0x2ede9f)]&&this[_0x20d6d6(-0x12d,-0x11b)]['atlas']?(await this[_0x20d6d6(-_0x3d666e._0x31c855,-0x11c)](),this[_0x20d6d6(-_0x3d666e._0x578ee9,-_0x3d666e._0x13a618)]):(console[_0x20d6d6(-0xde,-_0x3d666e._0x33b4c3)](_0x20d6d6(-0xdf,-_0x3d666e._0x13a618)),!0x1);}[_0x26bd38(-0xb5,-0xdc)](){const _0x1c861d={_0x14229c:0x374,_0xc43eda:0x373,_0xdf342:0x3b0,_0x56ac84:0x383,_0x496922:0x334,_0x127aa5:0x326,_0x215892:0x399,_0x18eb24:0x2d8},_0x1257c4={_0x84a664:0x550,_0x1fc816:0x579,_0x5e8601:0x5cd,_0xb0dfd1:0x59d,_0x2a687a:0x598,_0x5c111c:0x566,_0x151ea6:0x510,_0x36951f:0x547,_0x100490:0x51a,_0x397a56:0x671,_0xf7d351:0x5b6,_0x543306:0x56b,_0x41db13:0x50e,_0x3b2e71:0x546,_0x16a6f2:0x536},_0x2652bd={_0x484f6c:0xb,_0x3b1c69:0xc,_0x137278:0x16,_0x50f5f4:0x6d,_0x1fd407:0x21,_0x40ec7f:0x17,_0x5455a8:0x67,_0x537be5:0x78},_0xe4d27b={_0x4e43ad:0x3ec};function _0x45111d(_0x50154e,_0x7f27c9){return _0x26bd38(_0x50154e-_0xe4d27b._0x4e43ad,_0x7f27c9);}this[_0x45111d(_0x1c861d._0x14229c,_0x1c861d._0xc43eda)]||(this[_0x45111d(0x2ee,0x2c2)]=0x0,this[_0x45111d(_0x1c861d._0x14229c,_0x1c861d._0xdf342)]=setInterval(async()=>{const _0x53ea45={_0x2d9d8e:0x30e},_0x210e7a={_0x293ede:0x2ac},_0x281759={_0x662caa:0x1bc},_0x526a7e={_0x3a4951:0x757};function _0x445bfe(_0x56c976,_0x552584){return _0x45111d(_0x56c976-0x278,_0x552584);}if(this[_0x445bfe(0x56b,_0x1257c4._0x84a664)][_0x445bfe(_0x1257c4._0x1fc816,0x5c4)]&&!this[_0x445bfe(0x591,0x599)]){try{await this[_0x445bfe(0x607,_0x1257c4._0x5e8601)](_0x445bfe(_0x1257c4._0xb0dfd1,_0x1257c4._0x2a687a));}catch(_0x10aa34){}this[_0x445bfe(_0x1257c4._0x5c111c,0x55a)]++,this[_0x445bfe(0x566,_0x1257c4._0x151ea6)]%0x64==0x0&&this[_0x445bfe(0x594,0x5ce)](this['_config'][_0x445bfe(_0x1257c4._0x36951f,_0x1257c4._0x100490)]||0x7)[_0x445bfe(0x546,0x546)](_0x3ed862=>{function _0x8b9bdc(_0x48c50f,_0x4e3b63){return _0x445bfe(_0x4e3b63- -_0x526a7e._0x3a4951,_0x48c50f);}console[_0x8b9bdc(-0x161,-0x19d)]('[MongoFire]\x20Periodic\x20auto-clean\x20failed\x20(non-fatal):',_0x3ed862?.[_0x8b9bdc(-_0x281759._0x662caa,-0x16e)]||_0x3ed862);}),this[_0x445bfe(0x5fb,_0x1257c4._0x397a56)]['autoCompact']&&this[_0x445bfe(0x566,0x5c1)]%(this['_config'][_0x445bfe(_0x1257c4._0xf7d351,0x594)]||0x64)===0x0&&compactChangelog({'conn':this[_0x445bfe(_0x1257c4._0x543306,_0x1257c4._0x41db13)],'retentionDays':this['_config']['compactRetentionDays']||this[_0x445bfe(0x5fb,0x594)][_0x445bfe(0x547,0x58d)]||0x7,'verbose':this['_config'][_0x445bfe(0x611,0x5ed)]})['then'](_0x1d983f=>{function _0x5d8546(_0x586523,_0x3aa637){return _0x445bfe(_0x586523- -0x607,_0x3aa637);}_0x1d983f[_0x5d8546(-_0x2652bd._0x484f6c,0x2c)]>0x0&&(this[_0x5d8546(-_0x2652bd._0x3b1c69,-0x6)][_0x5d8546(0xa,-_0x2652bd._0x137278)]&&console[_0x5d8546(-0x85,-0x1a)](_0x5d8546(-_0x2652bd._0x50f5f4,-0x3e)+_0x1d983f[_0x5d8546(-_0x2652bd._0x484f6c,-0x1e)]+_0x5d8546(-_0x2652bd._0x1fd407,_0x2652bd._0x40ec7f)+_0x1d983f[_0x5d8546(-_0x2652bd._0x5455a8,-0x39)]+'ms'),this[_0x5d8546(0x3,_0x2652bd._0x537be5)]('compacted',_0x1d983f));})[_0x445bfe(_0x1257c4._0x3b2e71,_0x1257c4._0x16a6f2)](_0x3cde13=>{function _0x2038c3(_0x5a3d1a,_0x2c217b){return _0x445bfe(_0x2c217b- -_0x210e7a._0x293ede,_0x5a3d1a);}console[_0x2038c3(0x29f,_0x53ea45._0x2d9d8e)]('[MongoFire]\x20Auto-compact\x20failed\x20(non-fatal):',_0x3cde13?.[_0x2038c3(0x35f,0x33d)]||_0x3cde13);});}},this[_0x45111d(_0x1c861d._0x56ac84,_0x1c861d._0x496922)]['syncInterval']),_0x45111d(0x31a,_0x1c861d._0x127aa5)==typeof this[_0x45111d(0x374,_0x1c861d._0x215892)]['unref']&&this[_0x45111d(_0x1c861d._0x14229c,0x3bc)][_0x45111d(_0x1c861d._0x18eb24,0x322)]());}[_0x26bd38(-0x124,-0x120)](){const _0x22ab7e={_0x47d102:0x25,_0x392040:0x21,_0x261540:0x9a},_0x41e243={_0x10d508:0x40,_0x177c4b:0x19,_0x50596f:0x44,_0x4e7516:0x30,_0x163a0b:0x61,_0x5d8b6e:0x13,_0x15d305:0x86,_0x355499:0xb,_0x261e4c:0x3a,_0x4a030b:0x9,_0x551515:0x9,_0x5c2e1c:0x46,_0x57c80e:0x19,_0x99a906:0x77,_0x31dc7f:0x22,_0x2dca33:0x9a,_0x251538:0x81,_0x371ec9:0x77,_0x36df82:0xc,_0x398c6b:0x2,_0xc054ea:0xf0,_0x425c0b:0xdc,_0x18f5be:0x23,_0x24054b:0x83,_0x371d45:0xc6,_0x2d7397:0xa7,_0x5226ed:0x4e,_0x2e5634:0x1b,_0x3446d8:0x2b,_0x4f3e3f:0x58,_0x58c0b2:0x1b,_0x1d3c67:0xc,_0x2ab24c:0x6f,_0x12819d:0x9,_0x2a2cef:0x2b,_0x11e241:0x3f,_0x161971:0x26,_0x43a013:0x47,_0x4b780c:0x17},_0x2fd4d8={_0x4b72f7:0x66};function _0xef90f8(_0x2f7c26,_0x42b8dd){return _0x26bd38(_0x42b8dd-0x7a,_0x2f7c26);}this['_netTimer']||(this[_0xef90f8(-0x74,-0x21)]=setInterval(async()=>{function _0x13f8e8(_0x1dfa08,_0x11313a){return _0xef90f8(_0x11313a,_0x1dfa08-_0x2fd4d8._0x4b72f7);}if(!this[_0x13f8e8(-_0x41e243._0x10d508,-0xae)]){this[_0x13f8e8(-_0x41e243._0x10d508,-0xd)]=!0x0;try{if(this[_0x13f8e8(-_0x41e243._0x177c4b,-_0x41e243._0x50596f)][_0x13f8e8(-0xb,-0x41)])await this['_conn']['pingAtlas']()||(this['_retryCount']=0x0,console['warn'](_0x13f8e8(_0x41e243._0x4e7516,0x40)),this[_0x13f8e8(_0x41e243._0x163a0b,0xb0)]&&await this[_0x13f8e8(-0x11,_0x41e243._0x5d8b6e)](),this[_0x13f8e8(_0x41e243._0x15d305,0x56)](_0x13f8e8(0x89,0xe)));else{const _0x153f04=Math['min'](0xbb8*Math[_0x13f8e8(0x7f,0x16)](0x2,this['_retryCount']),0x1d4c0);if(Date['now']()-this['_lastRetry']<_0x153f04)return;if(this[_0x13f8e8(_0x41e243._0x355499,_0x41e243._0x261e4c)]=Date['now'](),this[_0x13f8e8(_0x41e243._0x4a030b,-_0x41e243._0x50596f)])return;this[_0x13f8e8(_0x41e243._0x551515,_0x41e243._0x5c2e1c)]=!0x0;try{await this[_0x13f8e8(-_0x41e243._0x57c80e,-0x34)]['connectAtlas'](this[_0x13f8e8(_0x41e243._0x99a906,_0x41e243._0x31dc7f)][_0x13f8e8(_0x41e243._0x2dca33,_0x41e243._0x251538)],this[_0x13f8e8(_0x41e243._0x371ec9,0x4a)]['dbName'])?(this[_0x13f8e8(0x1b,-_0x41e243._0x36df82)]=0x0,console[_0x13f8e8(-_0x41e243._0x398c6b,0x75)](_0x13f8e8(0xb4,_0x41e243._0xc054ea)),this[_0x13f8e8(0x86,_0x41e243._0x425c0b)](_0x13f8e8(-0xb,_0x41e243._0x18f5be)),await this[_0x13f8e8(_0x41e243._0x24054b,_0x41e243._0x371d45)]('required'),this['_config'][_0x13f8e8(_0x41e243._0x2d7397,0x76)]&&!this[_0x13f8e8(_0x41e243._0x163a0b,0x8e)]&&await this['_startRealtime']()):(this[_0x13f8e8(0x1b,-_0x41e243._0x5226ed)]++,0x1!==this[_0x13f8e8(0x1b,-0x7)]&&this[_0x13f8e8(_0x41e243._0x2e5634,_0x41e243._0x3446d8)]%0x5!=0x0||console[_0x13f8e8(0x36,0x1b)](_0x13f8e8(0x42,_0x41e243._0x4f3e3f)+this[_0x13f8e8(_0x41e243._0x58c0b2,-0x40)]+_0x13f8e8(_0x41e243._0x1d3c67,0x89)+(this['_conn']['lastAtlasError']||_0x13f8e8(_0x41e243._0x2ab24c,-0x8))));}finally{this[_0x13f8e8(0x9,-_0x41e243._0x12819d)]=!0x1;}}}catch(_0x5709b3){console[_0x13f8e8(-_0x41e243._0x2a2cef,-_0x41e243._0x11e241)](_0x13f8e8(_0x41e243._0x161971,-_0x41e243._0x43a013),_0x5709b3?.[_0x13f8e8(0x65,-_0x41e243._0x4b780c)]||_0x5709b3);}finally{this['_checkingNetwork']=!0x1;}}},0x2710),_0xef90f8(-_0x22ab7e._0x47d102,-0x58)==typeof this[_0xef90f8(-0x57,-_0x22ab7e._0x392040)][_0xef90f8(-0x24,-0x9a)]&&this[_0xef90f8(0x5a,-0x21)][_0xef90f8(-0xec,-_0x22ab7e._0x261540)]());}async[_0x26bd38(-0x5d,-0x30)](_0x50ea1a=_0x26bd38(-0xc7,-0x59)){const _0x259074={_0x19f3a1:0x142,_0x487f23:0x22b,_0xdc2769:0x2a2,_0x4a0f96:0x189,_0x2d98df:0x26d,_0x101b98:0x266,_0x2f33f1:0x254,_0x15433b:0x2ca,_0x5a98ce:0x2f6,_0x22b7ab:0x22a,_0x2e993f:0x211,_0x30425e:0x25f,_0x345044:0x19f,_0x3de57a:0x1b8,_0x352fc4:0x22c,_0x52fb05:0x243,_0x58d894:0x1ea,_0x3694cf:0x201,_0xbc18d1:0x26b,_0x9efae2:0x257,_0x541885:0x26b,_0x3bdcbf:0x2d4,_0xd14bfe:0x253,_0x3ec30d:0x25b,_0x109d16:0x282,_0x2fb16e:0x248,_0x3960e5:0x2df,_0x35dcb3:0x24b,_0x4e324d:0x29c,_0x41851a:0x316,_0x4440eb:0x1c9,_0x496895:0x21a,_0x4d7220:0x20e,_0x11312a:0x2cd,_0x2ea843:0x27a,_0x504055:0x27b,_0x51b89a:0x1f3,_0x2b59be:0x286,_0x302a33:0x266,_0x1f3456:0x2bb,_0x2e060e:0x1c9,_0x2a12e4:0x204,_0x12e255:0x2eb,_0x20ab0c:0x1ae,_0x573b34:0x1a5,_0x5d21a9:0x1ae,_0x4667fd:0x1bc},_0x40c658={_0x35745a:0x2d4};if(this['_syncing'])return this[_0x30c00d(0x1ae,_0x259074._0x19f3a1)]?_0x30c00d(_0x259074._0x487f23,_0x259074._0xdc2769)===_0x50ea1a&&(this[_0x30c00d(0x1ae,_0x259074._0x4a0f96)]='all'):this[_0x30c00d(0x1ae,0x213)]=_0x50ea1a,null;if(this['_rateLimiter']&&this[_0x30c00d(_0x259074._0x2d98df,_0x259074._0x101b98)][_0x30c00d(_0x259074._0x2f33f1,0x234)]()){const _0x7ec7c1=this[_0x30c00d(0x26d,_0x259074._0x15433b)]['stats']();return this['_config'][_0x30c00d(0x281,_0x259074._0x5a98ce)]&&console[_0x30c00d(_0x259074._0x22b7ab,_0x259074._0x2e993f)](_0x30c00d(0x294,_0x259074._0x30425e)+_0x7ec7c1[_0x30c00d(0x1bd,_0x259074._0x345044)][_0x30c00d(_0x259074._0x3de57a,0x1dd)]+_0x30c00d(_0x259074._0x352fc4,_0x259074._0x52fb05)+Math[_0x30c00d(_0x259074._0x58d894,0x1f9)]((_0x7ec7c1[_0x30c00d(0x1bd,0x17b)]['timeout']||0x7530)/0x3e8)+'s)'),null;}this[_0x30c00d(_0x259074._0x3694cf,0x265)]=!0x0;function _0x30c00d(_0x14d8c6,_0x10c666){return _0x26bd38(_0x14d8c6-_0x40c658._0x35745a,_0x10c666);}try{const _0x2e52c0=await runSync(this[_0x30c00d(_0x259074._0xbc18d1,0x2be)][_0x30c00d(_0x259074._0x9efae2,0x219)],_0x50ea1a,this[_0x30c00d(_0x259074._0x541885,_0x259074._0x3bdcbf)][_0x30c00d(_0x259074._0xd14bfe,0x20c)],_0x4b6903=>this['emit'](_0x30c00d(0x1dc,0x1bb),_0x4b6903),this[_0x30c00d(_0x259074._0x3ec30d,0x234)]['getId'](),this['_conn']);if(this['_lastSyncAt']=Date['now'](),this['_rateLimiter']&&this[_0x30c00d(0x26d,0x222)][_0x30c00d(_0x259074._0x109d16,_0x259074._0x2fb16e)](),_0x2e52c0){this[_0x30c00d(_0x259074._0xbc18d1,0x2a5)][_0x30c00d(0x281,_0x259074._0x3960e5)]&&console[_0x30c00d(0x1f2,_0x259074._0x35dcb3)](_0x30c00d(_0x259074._0x4e324d,_0x259074._0x41851a)+_0x2e52c0[_0x30c00d(0x206,_0x259074._0x4440eb)]+'\x20↓'+_0x2e52c0[_0x30c00d(0x213,_0x259074._0x496895)]+_0x30c00d(0x284,0x283)+_0x2e52c0['deleted']+_0x30c00d(0x217,0x25f)+_0x2e52c0['conflicts']);try{this[_0x30c00d(0x26b,_0x259074._0x4d7220)][_0x30c00d(0x2a2,_0x259074._0x11312a)]?.(_0x2e52c0);}catch(_0x4bdc14){}this[_0x30c00d(_0x259074._0x2ea843,0x265)](_0x30c00d(_0x259074._0x504055,0x218),_0x2e52c0);}return _0x2e52c0;}catch(_0x396c2b){this[_0x30c00d(0x26d,_0x259074._0x51b89a)]&&this[_0x30c00d(0x26d,_0x259074._0x2b59be)][_0x30c00d(0x269,0x284)](_0x396c2b);try{this[_0x30c00d(0x26b,_0x259074._0x302a33)]['onError']?.(_0x396c2b);}catch(_0x4a893c){}return this[_0x30c00d(_0x259074._0x2ea843,_0x259074._0x1f3456)](_0x30c00d(_0x259074._0x2e060e,0x176),_0x396c2b),console[_0x30c00d(0x1c9,_0x259074._0x2a12e4)](_0x30c00d(_0x259074._0x2b59be,_0x259074._0x12e255),_0x396c2b?.[_0x30c00d(0x259,0x206)]||_0x396c2b),null;}finally{if(this[_0x30c00d(_0x259074._0x3694cf,0x234)]=!0x1,this[_0x30c00d(_0x259074._0x20ab0c,_0x259074._0x573b34)]){const _0x3a5f80=this[_0x30c00d(0x1ae,0x191)];this[_0x30c00d(_0x259074._0x5d21a9,_0x259074._0x4667fd)]=null,setImmediate(()=>this[_0x30c00d(0x277,0x2e4)](_0x3a5f80)[_0x30c00d(0x1b6,0x178)](()=>{}));}}}async[_0x26bd38(-0x95,-0xda)](){return countPending(this['_conn']);}async[_0x26bd38(-0xfd,-0x14c)](_0x287cf7=0x2710){const _0x1a0c00={_0x343345:0x585,_0x4cbca7:0x5de,_0x142966:0x62e,_0x482583:0x54e,_0x120f52:0x5fe,_0x43a69e:0x52e,_0x40dc36:0x571,_0x637927:0x514,_0x586139:0x562,_0x445d6d:0x590,_0x1783c0:0x5c3,_0x467aad:0x56d,_0x1da9a9:0x541,_0x11215b:0x4ea,_0x112a60:0x54b,_0x598939:0x5b2,_0x1e0f5c:0x573,_0x3f7aac:0x5a8,_0x343cc1:0x560,_0x1cd6e5:0x4ec,_0x156075:0x51d,_0x58c95f:0x4af,_0xe5cf0f:0x526,_0x5e557e:0x5a5,_0x3ed9bb:0x59f,_0x302d2c:0x570,_0x4bf941:0x5b0,_0x6afa01:0x51f,_0x3e4893:0x50f,_0x5dedec:0x58d,_0x24aed0:0x5b7,_0x539acf:0x5ae,_0x52e7df:0x57a,_0x53794f:0x542};function _0x366ac9(_0x26c15f,_0x202900){return _0x26bd38(_0x26c15f-0x608,_0x202900);}if(!this[_0x366ac9(0x568,_0x1a0c00._0x343345)])return;this[_0x366ac9(0x568,0x536)]=!0x1,process['removeListener']('SIGINT',this[_0x366ac9(_0x1a0c00._0x4cbca7,_0x1a0c00._0x142966)]),process[_0x366ac9(0x59e,_0x1a0c00._0x482583)](_0x366ac9(0x5db,0x650),this[_0x366ac9(0x5de,_0x1a0c00._0x120f52)]),this[_0x366ac9(0x55c,_0x1a0c00._0x43a69e)]=!0x1,this[_0x366ac9(_0x1a0c00._0x40dc36,_0x1a0c00._0x637927)]=null,this[_0x366ac9(0x5cd,0x5c7)]=null,this[_0x366ac9(0x54d,_0x1a0c00._0x586139)]=null,clearInterval(this[_0x366ac9(_0x1a0c00._0x445d6d,_0x1a0c00._0x1783c0)]),clearInterval(this[_0x366ac9(_0x1a0c00._0x467aad,0x516)]),this[_0x366ac9(0x590,0x58a)]=null,this[_0x366ac9(0x56d,_0x1a0c00._0x1da9a9)]=null,await this['stopRealtime']()[_0x366ac9(_0x1a0c00._0x11215b,_0x1a0c00._0x112a60)](()=>{});const _0x433697=Date['now']()+_0x287cf7;for(;this[_0x366ac9(0x535,_0x1a0c00._0x598939)]&&Date[_0x366ac9(0x5c5,0x620)]()<_0x433697;)console[_0x366ac9(0x526,_0x1a0c00._0x1e0f5c)](_0x366ac9(_0x1a0c00._0x3f7aac,_0x1a0c00._0x343cc1)),await new Promise(_0x2a53e9=>setTimeout(_0x2a53e9,0xc8));if(!this[_0x366ac9(0x535,_0x1a0c00._0x1cd6e5)]&&this['_conn'][_0x366ac9(_0x1a0c00._0x156075,_0x1a0c00._0x58c95f)])try{console[_0x366ac9(_0x1a0c00._0xe5cf0f,0x4f5)](_0x366ac9(0x5a2,_0x1a0c00._0x5e557e)),await runSync(this['_config'][_0x366ac9(0x58b,0x5b0)],'required',this[_0x366ac9(_0x1a0c00._0x3ed9bb,_0x1a0c00._0x302d2c)]['syncOwner'],_0x4d0fe4=>this[_0x366ac9(0x5ae,0x5be)](_0x366ac9(0x510,0x563),_0x4d0fe4),this[_0x366ac9(0x58f,0x5c8)][_0x366ac9(_0x1a0c00._0x4bf941,0x550)](),this['_conn'])[_0x366ac9(_0x1a0c00._0x11215b,_0x1a0c00._0x6afa01)](()=>{});}catch(_0x33e1fd){}else this[_0x366ac9(0x535,0x57f)]&&console['warn']('[MongoFire]\x20Timed\x20out\x20waiting\x20for\x20sync\x20—\x20final\x20sync\x20skipped');try{await this[_0x366ac9(_0x1a0c00._0x3e4893,0x502)]['closeAll']();}catch(_0x4eeb71){console[_0x366ac9(0x4fd,0x514)]('[MongoFire]\x20Error\x20closing\x20connections:',_0x4eeb71?.[_0x366ac9(_0x1a0c00._0x5dedec,_0x1a0c00._0x4bf941)]||_0x4eeb71);}console[_0x366ac9(0x526,0x511)](_0x366ac9(_0x1a0c00._0x24aed0,0x58e)),this[_0x366ac9(_0x1a0c00._0x539acf,_0x1a0c00._0x52e7df)](_0x366ac9(0x549,_0x1a0c00._0x53794f));}[_0x26bd38(-0x127,-0x154)](_0x1a5dfe={}){const _0x18dc62={_0x2558b5:0x3d,_0x2a1dce:0x12,_0x21b1a1:0xd6,_0x8cb89:0x3d,_0x5081a4:0x9,_0x5a2350:0x46,_0x438593:0xa7,_0xb3d682:0x63,_0x4ce22c:0x95,_0x3de091:0x78,_0x307265:0x65,_0x1cfa37:0x70,_0x2b6234:0x73,_0x40040d:0x4a,_0x22f573:0xca,_0x5bbfb8:0xb,_0x3f5733:0xd1,_0x5445ff:0xd9,_0x4c11d8:0x8b,_0x16bcd6:0x2f,_0x2ae823:0x4b,_0x222561:0x52,_0x4d13ce:0x8c,_0x2357dd:0xbf,_0x51aa7f:0x63,_0x17319f:0x45,_0x186ff2:0x7f,_0x477ba1:0xc1,_0xade950:0x1e,_0x5cd975:0x7,_0x35855f:0xa,_0x1731f4:0x12,_0x5572cb:0xdd,_0x337f52:0xe9,_0x3510ab:0x111,_0x3641da:0x156,_0x5a5308:0x13,_0x418b57:0x6f,_0x4c6dab:0xa5,_0x582936:0xb,_0x29a4f4:0x99,_0x3cc623:0x68,_0x39bdcb:0xa3,_0x1188f9:0xd3,_0x5a23e2:0x55,_0x1a3a39:0x9c,_0x3e2089:0x105,_0x5f3b7c:0x9c},_0x2178a0={_0x536dd6:0x1e5,_0x58f390:0x1ba,_0x2159e9:0x1f4,_0x3e3d6c:0x259,_0x22f698:0x1f3,_0x44ef41:0x193},_0x47d280={_0x28ab52:0x40};function _0x472d6a(_0x50a7bc,_0x35ca86){return _0x26bd38(_0x50a7bc-_0x47d280._0x28ab52,_0x35ca86);}if(!_0x1a5dfe[_0x472d6a(-_0x18dc62._0x2558b5,-_0x18dc62._0x2a1dce)]?.[_0x472d6a(-_0x18dc62._0x21b1a1,-0x69)])throw new Error(_0x472d6a(-0x2c,0x5));for(const _0x506751 of _0x1a5dfe[_0x472d6a(-_0x18dc62._0x8cb89,_0x18dc62._0x5081a4)])validateCollectionName(_0x506751);if(null!=_0x1a5dfe[_0x472d6a(-0x6,_0x18dc62._0x5a2350)]){const _0x40afb1=String(_0x1a5dfe['atlasUri'])[_0x472d6a(-_0x18dc62._0x438593,-0xf9)]();if(!_0x40afb1[_0x472d6a(-_0x18dc62._0xb3d682,-_0x18dc62._0x4ce22c)](_0x472d6a(-_0x18dc62._0x3de091,-_0x18dc62._0x307265))&&!_0x40afb1[_0x472d6a(-_0x18dc62._0xb3d682,-_0x18dc62._0x1cfa37)](_0x472d6a(-_0x18dc62._0x2b6234,-_0x18dc62._0x40040d))){const _0x71a95c=_0x40afb1['replace'](/:([^@/]{1,256})@/,_0x472d6a(-_0x18dc62._0x22f573,-0x13d));throw new Error(_0x472d6a(-0xbb,-_0x18dc62._0x40040d)+_0x71a95c[_0x472d6a(-0xcf,-0x108)](0x0,0x3c)+(_0x71a95c['length']>0x3c?'…':'')+_0x472d6a(-0x5,-0x66));}}if(null!=_0x1a5dfe[_0x472d6a(-0x4e,_0x18dc62._0x5bbfb8)]){const _0x3e33af=Number(_0x1a5dfe[_0x472d6a(-0x4e,-0x13)]);if(!Number[_0x472d6a(-_0x18dc62._0x3f5733,-_0x18dc62._0x5445ff)](_0x3e33af)||_0x3e33af<0x1||_0x3e33af>0x2710)throw new Error('[MongoFire]\x20config.batchSize\x20must\x20be\x20an\x20integer\x20between\x201\x20and\x2010000\x20(got:\x20'+_0x1a5dfe['batchSize']+')');}return{'localUri':_0x1a5dfe[_0x472d6a(-_0x18dc62._0x5bbfb8,-_0x18dc62._0x4c11d8)]||process['env'][_0x472d6a(-0x7,0x64)]||'mongodb://127.0.0.1:27017','atlasUri':_0x1a5dfe['atlasUri']||null,'dbName':_0x1a5dfe[_0x472d6a(-_0x18dc62._0x16bcd6,-_0x18dc62._0x2ae823)]||process[_0x472d6a(-_0x18dc62._0x222561,-_0x18dc62._0x4d13ce)][_0x472d6a(-_0x18dc62._0x2357dd,-_0x18dc62._0x51aa7f)]||_0x472d6a(-_0x18dc62._0x17319f,0x23),'collections':_0x1a5dfe[_0x472d6a(-0x3d,-_0x18dc62._0x186ff2)],'syncInterval':(function(){function _0x33d2f3(_0xddbcea,_0x4ecafb){return _0x472d6a(_0xddbcea-0x1ed,_0x4ecafb);}const _0x45104f=Number(_0x1a5dfe[_0x33d2f3(_0x2178a0._0x536dd6,_0x2178a0._0x58f390)])||(_0x1a5dfe[_0x33d2f3(_0x2178a0._0x2159e9,_0x2178a0._0x3e3d6c)]?0x1388:0x7530);if(_0x45104f<0x1f4)throw new Error('[MongoFire]\x20config.syncInterval\x20must\x20be\x20>=\x20500ms\x20(got\x20'+_0x1a5dfe[_0x33d2f3(_0x2178a0._0x536dd6,0x239)]+_0x33d2f3(_0x2178a0._0x22f698,_0x2178a0._0x44ef41));return _0x45104f;}()),'batchSize':_0x1a5dfe[_0x472d6a(-0x4e,-_0x18dc62._0x477ba1)]||0xc8,'onSync':_0x1a5dfe[_0x472d6a(0xe,0x19)]||null,'onError':_0x1a5dfe['onError']||null,'syncOwner':_0x1a5dfe[_0x472d6a(-0x41,-_0x18dc62._0xade950)]||'*','realtime':_0x1a5dfe[_0x472d6a(_0x18dc62._0x5cd975,-0x69)]??!0x1,'reconcileOnStart':!0x1!==_0x1a5dfe[_0x472d6a(-_0x18dc62._0x35855f,-0x18)],'reconcileFullScan':!0x1!==_0x1a5dfe[_0x472d6a(-0xd,_0x18dc62._0x1731f4)],'cleanDays':Number(_0x1a5dfe['cleanDays'])>=0x1&&Number(_0x1a5dfe[_0x472d6a(-_0x18dc62._0x5572cb,-_0x18dc62._0x337f52)])<=0xe42?Math[_0x472d6a(-0xa3,-_0x18dc62._0x3510ab)](Number(_0x1a5dfe[_0x472d6a(-_0x18dc62._0x5572cb,-_0x18dc62._0x3641da)])):0x7,'verbose':_0x1a5dfe[_0x472d6a(-_0x18dc62._0x5a5308,0x33)]??!0x1,'autoCompact':_0x1a5dfe[_0x472d6a(-_0x18dc62._0x418b57,-_0x18dc62._0x4c6dab)]??!0x1,'compactEvery':Number(_0x1a5dfe[_0x472d6a(-0x6e,-_0x18dc62._0x582936)])>=0x1?Math[_0x472d6a(-0xa3,-0xd4)](Number(_0x1a5dfe['compactEvery'])):0x64,'compactRetentionDays':Number(_0x1a5dfe[_0x472d6a(-_0x18dc62._0x29a4f4,-_0x18dc62._0x3cc623)])>=0x1?Math[_0x472d6a(-_0x18dc62._0x39bdcb,-_0x18dc62._0x1188f9)](Number(_0x1a5dfe[_0x472d6a(-0x99,-0x4d)])):0x7,'rateLimiter':!0x1!==_0x1a5dfe[_0x472d6a(-0x9c,-_0x18dc62._0x5a23e2)]&&null!=_0x1a5dfe[_0x472d6a(-_0x18dc62._0x1a3a39,-0x90)]&&(!0x0===_0x1a5dfe[_0x472d6a(-_0x18dc62._0x1a3a39,-_0x18dc62._0x3e2089)]?{}:{..._0x1a5dfe[_0x472d6a(-_0x18dc62._0x5f3b7c,-0x102)]}),'schemaManager':_0x1a5dfe[_0x472d6a(0x2,0x15)]??!0x1};}}const instance=new MongoFire();function _0x1fb4(_0x1995fb,_0x5bc77c){_0x1995fb=_0x1995fb-0x17a;const _0x5750f3=_0x5750();let _0x1fb4d4=_0x5750f3[_0x1995fb];if(_0x1fb4['hyYHqy']===undefined){var _0xa79f73=function(_0x3b6312){const _0x2c02fc='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x3cbbf0='',_0x5afed5='';for(let _0x59170d=0x0,_0x4977e3,_0x700fd8,_0x264797=0x0;_0x700fd8=_0x3b6312['charAt'](_0x264797++);~_0x700fd8&&(_0x4977e3=_0x59170d%0x4?_0x4977e3*0x40+_0x700fd8:_0x700fd8,_0x59170d++%0x4)?_0x3cbbf0+=String['fromCharCode'](0xff&_0x4977e3>>(-0x2*_0x59170d&0x6)):0x0){_0x700fd8=_0x2c02fc['indexOf'](_0x700fd8);}for(let _0x5ae417=0x0,_0x54acbc=_0x3cbbf0['length'];_0x5ae417<_0x54acbc;_0x5ae417++){_0x5afed5+='%'+('00'+_0x3cbbf0['charCodeAt'](_0x5ae417)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x5afed5);};_0x1fb4['ekRzqV']=_0xa79f73,_0x1fb4['BCTlPO']={},_0x1fb4['hyYHqy']=!![];}const _0x3cbe7a=_0x5750f3[0x0],_0x1b11ab=_0x1995fb+_0x3cbe7a,_0x562b41=_0x1fb4['BCTlPO'][_0x1b11ab];return!_0x562b41?(_0x1fb4d4=_0x1fb4['ekRzqV'](_0x1fb4d4),_0x1fb4['BCTlPO'][_0x1b11ab]=_0x1fb4d4):_0x1fb4d4=_0x562b41,_0x1fb4d4;}process[_0x26bd38(-0x92,-0xe4)][_0x26bd38(-0x11f,-0x17b)]||instance[_0x26bd38(-0x123,-0xd7)]()[_0x26bd38(-0x11e,-0x112)](()=>{});function _0x5750(){const _0x189364=['Cgf0Aa','w01VBMDVrMLYzv0GC3LUyYGPignHBgXLzcb0B28GCxvPy2TSEsaOpca1mdbTCYbZAw5JzsbSyxn0ihn5BMmPiokaLcb0AhjVDhrSzwqU','AxnjBNrLz2vY','w01VBMDVrMLYzv0GzgLZBwLZC0nVBMzSAwn0oIbnB25NB0zPCMuGAxmGBM90ihn0yxj0zwq','C2XPy2u','cUkDJcbBtw9Uz29gAxjLxsbmB2nHBcbnB25NB0rcigzHAwXLzcb0BYbJB25Uzwn0lGOGicbszwfZB246ia','CMfUzg9T','w01VBMDVrMLYzv0GuMvZDgfYDgLUzYbYzwfSDgLTzsbZDhjLyw0UlI4','zxjYB3i','oIOQkKa','AxnbCNjHEq','w01VBMDVrMLYzv0GuMvHBhrPBwuGC3rVChbLzcdIGjqGCg9SBgLUzYbJB250Aw51zxm','DhLWzq','mJiWndCYs1rxqxf2','y29UzMXPy3rszxnVBhzLza','y29SBgvJDgLVBG','zgvSzxrLzenVDw50','CMvJB25JAwXL','mZaXC0jrzgjt','lI9YzwnVBMnPBgu','rejFtKfnrq','x3n5BMndEwnSzunVDw50','C3rVCa','y29UBMvJDef0BgfZ','w01VBMDVrMLYzv0Gy29UzMLNlMf0BgfZvxjPig11C3qGC3rHCNqGD2L0AcaIBw9Uz29KyJOVlYiGB3iGiM1VBMDVzgiRC3j2oI8ViIaOz290oIaI','CMf0zuXPBwL0zxjtDgf0CW','x2nVBM4','y29UzMXPy3q','zgv2AwnLswq','DxjS','y29UBMvJDeXVy2fS','C3rHCNrszwfSDgLTzq','w01VBMDVrMLYzv0GD2fPDezVCKXVy2fSkcKGDgLTzwqGB3v0igfMDgvYidyWihmG4Ocuig1VBMDVzMLYzs5ZDgfYDcHJB25MAwCPihDHCYbUB3qGy2fSBgvKlcbVCIbSB2nHBcbnB25NB0rcigLZihvUCMvHy2HHyMXLlIbnywTLihn1CMuGEw91ihjLCxvPCMuOjY4VBw9Uz29MAxjLjYKGkg9YignHBgWGBw9Uz29MAxjLlNn0yxj0kgnVBMzPzYKPigjLzM9YzsbHD2fPDgLUzYbSB2nHBfjLywr5lG','x3jLC3vTzvrVA2vU','C3rVCfjLywX0Aw1L','BgfZDef0BgfZrxjYB3i','w01VBMDVrMLYzv0Gq2XLyw5Lzca','D2fPDezVCKXVy2fS','x3jLywX0Aw1LuMv0CNLdB3vUDa','x21Mx29WCW','B25SAw5L','y2vPBa','mtKXmLDwuurItG','CMvJB25JAwXLq29TCgXLDgu','DhjPBq','w01VBMDVrMLYzv0GCMvZzxrmB2nHBdOGzhjVChbLzca','CMvHzhK','CMvHBhrPBwuGkYbWB2XSAw5NigzHBgXIywnR','zMXVB3i','Bg9N','w01VBMDVrMLYzv0GCMvJB25JAwXLoIbnB25NB0zPCMuGAxmGBM90ihn0yxj0zwq','C3rYAw5N','x2nOyw5Nzvn0CMvHBq','zMLUywXSEq','8j+uPsbBtw9Uz29gAxjLxsbtDgfYDgLUzY4UlG','CMf0zuXPBwL0zxi','D2f0y2G','tw9Uz29gAxjL','y29TCgfJDfjLDgvUDgLVBKrHExm','8j+uPsbBtw9Uz29gAxjLxsbszwfKEseGu3LUyYbTB2rLoIa','x3jLy29UBMvJDgLUzW','Bg9JywW','x2XHC3rszxrYEq','ktOG','x3n5BMnPBMC','zNvUy3rPB24','CMvZDw1Lqwz0zxi','y2XLyw4','lI9JAgfUz2v0CMfJAW','DxbSB2fKzwq','tMfTzxnWywnLtM90rM91BMq','zNvSBerVy3vTzw50','mJm0oda4ohHVuKzktG','w01VBMDVrMLYzv0Gqxv0BY1JB21Wywn0oIbKzwXLDgvKia','w01VBMDVrMLYzv0GuMvHBhrPBwuGC3rYzwfTigvYCM9YoG','w01VBMDVrMLYzv0Gyxv0B1n0yxj0oIa','CMvXDwLYzwq','zNvSBfnJyw4','x3jLDhj5q291BNq','zhvYyxrPB25nCW','y2XVC2u','u0Lhsu5u','zg93BMXVywrLza','x293BMvYrMLLBgrZ','C3rVChbLza','Aw5JBhvKzxm','ignVBMzSAwn0CZO','BwLU','x2XVy2fSuMvQzwn0','w01VBMDVrMLYzv0GtMv0D29YAYbTB25PDg9YigvYCM9YoG','Bw9Uz29MAxjLlMnVBMzPzY4','Bw9Uz29KyJOVlW','CMv0CNLdB25MBgLJDa','w01VBMDVrMLYzv0Gq291BgqGBM90igXVywqG','x3n0yxj0u3LUy1rPBwvY','zxHPDa','Bw9Uz29KyITZCNy6lY8','lI9KzxzPy2u','B3DUzxjgAwvSza','8j+tTcbBtw9Uz29gAxjLxsbpzMzSAw5LiokaLcb3B3jRAw5NigXVy2fSBhK','yxv0B0nVBxbHy3q','y29TCgfJDev2zxj5','4P2mifTnB25NB0zPCMvDigfWCc5SAxn0zw4O','x3nPz25HBhncB3vUza','w01VBMDVrMLYzv0Gq2fUBM90ihn0yxj0ihjLywX0Aw1LiokaLcbbDgXHCYbUB3qGy29UBMvJDgvK','D2fYBG','ywXS','icHYzxrYAwvZigLUih4','y29TCgfJDa','4PYfifTnB25NB0zPCMvDief0BgfZignVBM5Ly3rLza','yMLUza','y2LYy3vPDenSB3nL','C3rHCNrZv2L0Aa','yxrSyxm','oti0ndjZz3D1v0K','x3n0yxj0zwq','4PQHifTnB25NB0zPCMvDifjLywX0Aw1Lihn5BMmGywn0AxzLicHJAgfUz2uGC3rYzwfTCYK','4PQG77IpicbBtw9Uz29gAxjLxsbszwnVBM5Ly3qGzMfPBgvKicHHDhrLBxb0ia','w01VBMDVrMLYzv0GuMvHBhrPBwuGCMvZDw1PBMCGzNjVBsbZyxzLzcb0B2TLBI4UlG','x3n0yxj0uMvHBhrPBwu','x25LDfrPBwvY','igLUia','w01VBMDVrMLYzv0GCMvZzxrmB2nHBdOGzMfPBgvKihrVigrYB3aGiG','yxbWBgLLza','x2XVy2fSuMvHzhLqCM9TAxnL','BgLZDgvU','x3bLBMrPBMC','B3bLBG','y29Uy3vYCMvUy3K','zw52','nJqXm0PRANbUvW','x21Mx2nOyw5NzxrYywnR','y29TCgfJDgvK','yMf0y2HtAxPL','odu1nxjRA1rTAa','x3nJAgvTyu1HBMfNzxi','C3rHDhvZ','C3rHCNrbCha','CMvZB2X2zq','y2PZ','x2XHC3rtEw5Jqxq','x21Mx2rLDMLJzxm','BxLHCha','AM9PBG','zgvMyxvSDa','y29Kzu5HBwu','C3LUy093BMvY','AxncBg9JA2vK','x3jLywX0Aw1Lqwn0AxzL','ihn1CgvYC2vKzwqGCM93CYbPBIa','y29SBgvJDgLVBNm','CMvZzxrmB2nHBa','BwvZC2fNzq','x2LK','x2rLDMLJzu1HBMfNzxi','x3n5BMnuAw1LCG','ywrK','DxbKyxrLtg9VA3vW','x21Mx2rVy21LDge','w01VBMDVrMLYzv0GuMvHBhrPBwuGDw5HDMfPBgfIBguGkhjLCxvPCMvZief0BgfZig9YihjLCgXPy2eGC2v0ksdIGjqGzMfSBgLUzYbIywnRihrVihbVBgXPBMCU','w01VBMDVrMLYzv0G4PQHieXPDMuGy2HHBMDLoIa','lI91DgLSCW','Dw5RBM93BG','mZu3mxbct0nHAG','zgjoyw1L','w01VBMDVrMLYzv0GCMvZzxrmB2nHBdOGtw9Uz29gAxjLigLZig5VDcbZDgfYDgvK','mZqXmZbuwhnkse4','w01VBMDVrMLYzv0Gy29UzMLNlMnVBgXLy3rPB25ZigLZihjLCxvPCMvK','CMvJB3jKrMfPBhvYzq','CMvTB3zLtgLZDgvUzxi','x2nVBMzPzW','zgvSzxrLza','x3jHDgvmAw1PDgvY','w01VBMDVrMLYzv0GrMLUywWGC3LUyYbIzwzVCMuGzxHPDc4UlG','w01VBMDVrMLYzv0Gyxv0B1n0yxj0igzHAwXLzdO','w01VBMDVrMLYzv0GCgX1z2LUihjLCxvPCMvZignVBgXLy3rPB24GBMfTzq','lI9ZEw5J','mJu0sxj2tMTl','Cg93','w01VBMDVrMLYzv0Gv2fPDgLUzYbMB3iGywn0AxzLihn5BMmGDg8GzMLUAxnOlI4U','x3jLywX0Aw1LrgvIB3vUy2u','ChjVDg90ExbL','x3j1BLn5BMm','w01VBMDVrMLYzv0Gq2LYy3vPDcbICMvHA2vYig1HBNvHBgX5ihjLC2v0iokgKIbdte9truq','w01VBMDVrMLYzv0Gq2HHBMDLigv2zw50ihDPDgGGBNvSBcbMDwXSrg9JDw1LBNqGkgrVyYbKzwXLDgvKig1Pzc1MzxrJAd8PiokaLcbZA2LWCgLUzW','zw1PDa','C3LUyW','z2v0swq','B2zMBgLUzq','ksbMywLSzwq6','x2rVu3rHCNq','x3jLywX0Aw1Lu3rHCNrPBMC','DMvYyM9Zzq','CMvJB3jKu3vJy2vZCW','8j+rIYbBtw9Uz29gAxjLxsbtDg9WCgvK','ierftdO','CgX1z2LU','w01VBMDVrMLYzv0Gu3LUyYbLCNjVCJO','CMvJB25JAwXLrNvSBfnJyw4','zhjVCa','Bg9JywXvCMK','CMvJB25JAwXLt25tDgfYDa','ndaWmJnRCefstg8','C3LUy0LUDgvYDMfS','te9dquXFvvjj','yxrSyxnvCMK','iIKUienOzwnRihLVDxiGqxrSyxmGy29UBMvJDgLVBIbZDhjPBMCU','x21Mx3n5BMnFC3rHDgu','BM93','BwPZ','w01VBMDVrMLYzv0Gu3rHCNr1CcbYzwnVBMnPBguGzMfPBgvKicHUB24TzMf0ywWPoG','w01VBMDVrMLYzv0Gu3LUyYbZA2LWCgvKiokaLcbJAxjJDwL0ia','C3rHCNrLza','C2nOzw1HtwfUywDLCG','icaGrgv2AwnLoIa','zxHWB3j0CW','x2XVy2fSuMvZB2X2zq','ks4GvMfSDwvZigjLBg93iduWmg1ZignHDxnLigeGDgLNAhqGCg9SBgLUzYbSB29WihrOyxqGAgfTBwvYCYbnB25NB0rclIbszwnVBw1LBMrLzdOGntaWmcaOnxmPigzVCIbYzwfSDgLTzsbTB2rLlcaZmdaWmcaOmZbZksbVDgHLCNDPC2uU','CMvHBhrPBwu','w01VBMDVrMLYzv0Gu3LUyZOG4OAr','CMvZzxq','lI9Zy2HLBweTBwfUywDLCG','CMvKDwnL','y2HHBMDL','lI9JB25Uzwn0Aw9U','B25tEw5J','CMvHBhrPBwvtDgfYDgvK','w01VBMDVrMLYzv0Gy29TCgfJDdOGtw9Uz29gAxjLigLZig5VDcbZDgfYDgvK','CM91BMq','CMvHBhrPBwvby3rPDMu','u0Lhvevstq','8j+mKcbBtw9Uz29gAxjLxsbcywnRig9UBgLUzsdIGjqGC3LUy2LUzY4UlG','y2LYy3vPDe9Wzw4','x2jVDw5KrxHPDa','x2XVywrdB25MAwDgAwXL','w01VBMDVrMLYzv0Gtg9JywWGtw9Uz29eqIbMywLSzwq6ia','x3bHCNnLq29UzMLN','x3bLBMrPBMDtEw5JvhLWzq','C3rHCNq','x3n0yxj0tMv0D29YA01VBML0B3i','yxv0B1n0yxj0','zgvSzxrLtwfUEq','y29UzMXPy3rZ','x2nOzwnRAw5NtMv0D29YAW','tu9or09gsvjfx0nmsq','y2f0y2G','y2XLyw5eyxLZ','C3rHDgu','BNmGBM90igzVDw5K','w01VBMDVrMLYzv0GCMv0CNLdB25MBgLJDdOGtw9Uz29gAxjLigLZig5VDcbZDgfYDgvK','zMLSDgvY','x3n0yxj0uhjVBwLZzq','y2LYy3vPDejYzwfRzxi','BgvUz3rO','C3rHDhm','Dw5Yzwy'];_0x5750=function(){return _0x189364;};return _0x5750();}function _0x26bd38(_0x4d670a,_0x5d3e4a){return _0x1fb4(_0x4d670a- -0x2a1,_0x5d3e4a);}const _startApp=MongoFire['prototype'][_0x26bd38(-0x8a,-0xf4)][_0x26bd38(-0xa5,-0x37)](instance),_plugin=MongoFire['prototype'][_0x26bd38(-0x4f,0x2c)]['bind'](instance),_loadConfigFile=MongoFire[_0x26bd38(-0x5e,-0x7b)][_0x26bd38(-0x29,0x4f)][_0x26bd38(-0xa5,-0x109)](instance),startApp=(_0x4b94a6,_0x380160)=>_startApp(_0x4b94a6,_0x380160),plugin=(_0x411ec7,_0x1d0aad)=>_plugin(_0x411ec7,_0x1d0aad);module[_0x26bd38(-0x3c,-0x62)]=instance,module[_0x26bd38(-0x3c,0x2d)][_0x26bd38(-0xda,-0xd1)]=MongoFire,module['exports'][_0x26bd38(-0x8a,-0xb)]=startApp,module['exports'][_0x26bd38(-0x4f,-0x24)]=plugin,module['exports']['loadConfigFile']=_0x32503d=>_loadConfigFile(_0x32503d);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
'use strict';(function(_0x431efd,_0x261a11){const _0x32c515={_0xcab2cc:0x1ae,_0x48ac85:0x1c3,_0x8b2047:0x1d3,_0x1e271c:0x1d5,_0x35254a:0x1ba,_0x226e17:0x1be,_0x2718c6:0x1e2,_0x5db463:0x1c0,_0x201c57:0x1b3,_0x58bfac:0x1bf,_0x37bd45:0x1d8,_0x1075f5:0x1d3,_0x4fb884:0x1ab,_0x164c6a:0x1da};function _0x56a307(_0x5ddc40,_0x2815fe){return _0x3b7b(_0x5ddc40- -0x26,_0x2815fe);}const _0x5ca551=_0x431efd();while(!![]){try{const _0x1f8242=-parseInt(_0x56a307(0x1b1,_0x32c515._0xcab2cc))/0x1*(parseInt(_0x56a307(_0x32c515._0x48ac85,_0x32c515._0x8b2047))/0x2)+-parseInt(_0x56a307(0x1d7,_0x32c515._0x1e271c))/0x3+-parseInt(_0x56a307(_0x32c515._0x35254a,_0x32c515._0x226e17))/0x4*(-parseInt(_0x56a307(_0x32c515._0x2718c6,0x1f7))/0x5)+-parseInt(_0x56a307(_0x32c515._0x5db463,_0x32c515._0x201c57))/0x6*(-parseInt(_0x56a307(0x1b5,_0x32c515._0x58bfac))/0x7)+-parseInt(_0x56a307(_0x32c515._0x37bd45,0x1c9))/0x8*(parseInt(_0x56a307(0x1d4,0x1d5))/0x9)+parseInt(_0x56a307(0x1bb,_0x32c515._0x1075f5))/0xa*(parseInt(_0x56a307(0x1c2,_0x32c515._0x4fb884))/0xb)+parseInt(_0x56a307(0x1d0,_0x32c515._0x164c6a))/0xc;if(_0x1f8242===_0x261a11)break;else _0x5ca551['push'](_0x5ca551['shift']());}catch(_0x530933){_0x5ca551['push'](_0x5ca551['shift']());}}}(_0x7357,0xa2ea0));const {spawn:spawn}=require(_0x3bdf8d(0xbc,0xaa)),os=require('os'),fs=require('fs'),path=require(_0x3bdf8d(0x7b,0x92)),DEFAULT_URI=_0x3bdf8d(0x9c,0x8d),DEFAULT_DB='myapp',RETRY_MAX_MS=0x2710,BOOT_MS=0x5dc;let _mongoose=null;function _0x7357(){const _0x165372=['iI4Gtw9Uz29gAxjLihDPBgWGCMvJB25Uzwn0ihrVihrOzsbJB3jYzwn0igrHDgfIyxnLlIbetYbot1qGy2fSBcbTB25NB29Zzs5JB25Uzwn0kcKGBwfUDwfSBhKG4Ocuie1VBMDVrMLYzsbTyw5Hz2vZihrOAxmU','cIaG4OAsierVD25SB2fKie1VBMDVreiGq29TBxvUAxr5oIbODhrWCZOVl3D3DY5TB25NB2rIlMnVBs90CNKVzg93BMXVywqVy29TBxvUAxr5cIaG4OAsie1HA2uGC3vYzsbTB25NB2qGAxmGB24GEw91CIbZExn0zw0Guefusc4kicdIHPiGt3iGC2v0ie1ptKDprKLsrv9eqLbbveGGzw52ihzHCIb0BYbHihDYAxrHyMXLigrPCMvJDg9YEs4','y29UBMvJDgLVBG','zgLZy29UBMvJDgvK','tu9or09gsvjfx0rcuefusa','zxHWB3j0CW','zMLUywXSEq','D2fYBG','CMvHzhLtDgf0zq','Bw9Uz29KyJOVlZeYnY4WlJaUmtOYnZaXnW','ls1KyNbHDgG','Bw9Uz29K','CMvZB2X2zq','Ag9ZDa','Cgf0Aa','mtmXotHmEuHdBxy','w01VBMDVrMLYzv0GBw9Uz29Kihn0B3bWzwq','BwfPBG','Bg9N','mJCZmZKYzhjftLjQ','w01VBMDVrMLYzv0Gtw9Uz29VC2uGzgLZy29UBMvJDgvK','w01VBMDVrMLYzv0Gq29UBMvJDgLUzYb0BYbSB2nHBcbnB25NB0rciokgKIa','lM1VBMDVzMLYzq','B25Jzq','ndK0otq4B1DRzfrS','mtyYmtbuvg1LBhO','y29UBMvJDgvK','Bw9Uz29VC2u','tg9JywXnyw5Hz2vY','w01VBMDVrMLYzv0GrgLZy29UBMvJDcbLCNjVCJO','nJb0AxfrChC','CMvWBgfJzq','ntGZy2PwB1bv','ntbPAxnduLe','w01VBMDVrMLYzv0GtwfRzsbZDxjLie1VBMDVreiGAxmGAw5ZDgfSBgvKigfUzcbTB25NB2qGAxmGB24GEw91CIbqqvrilG','w01VBMDVrMLYzv0Gq29UBMvJDgLVBIbMywLSzwq6ia','zgLZy29UBMvJDa','zxjYB3i','y2HPBgrFChjVy2vZCW','iIWGyNv0ie1VBMDVrMLYzsbPCYbJB25MAwD1CMvKigzVCIbKyxrHyMfZzsaI','y3DK','AwDUB3jL','BwvZC2fNzq','iIbVBIbOB3n0ici','w01VBMDVrMLYzv0GBg9JywXvCMKGy29UDgfPBMvKigfUigvTyMvKzgvKigrHDgfIyxnLig5HBwuG4Ocuihn0CMLWCgvKigL0lIbtzxqGDgHLigrHDgfIyxnLihzPysb0AguGj2rItMfTzsCGy29UzMLNig9WDgLVBI4GuMvZB2X2zwq6ia','u0Lhvevstq','mJK4mZi2otzurgHUshe','ihnPz25HBd0','Cgf0Ahm','w01VBMDVrMLYzv0Gu3rHCNrPBMCGBw9Uz29KiokgKIa','ntmYodiWn3vnCwnYva','4PYfifTnB25NB0zPCMvDieXVy2fSie1VBMDVreiGy29UBMvJDgvKiokgKIa','yNvMzMvYvgLTzw91De1t','mZGYodu2muXcwvvUvW','mtzvr1LNzvm','w01VBMDVrMLYzv0Gu3rPBgWGD2fPDgLUzYbMB3iGtw9Uz29eqUkaPIaOyxr0zw1WDca','AxndB25Uzwn0zwq','Dg9tDhjPBMC','AM9PBG','zxHPDa','Cgf0Ag5HBwu','C2v0','BxLHCha','ls1XDwLLDa','mJbwENvMC0q','D2LUmZi','zw52','w01VBMDVrMLYzv0GBw9Uz29Kihn0B3bWzwqGDw5LEhbLy3rLzgX5icHJB2rLpq'];_0x7357=function(){return _0x165372;};return _0x7357();}function getMongoose(){const _0x5789b4={_0x526f97:0x48a,_0x1e867f:0x497,_0xb2c3c9:0x4bc,_0x5e1734:0x4b6,_0x119401:0x492,_0x5b0bb3:0x487,_0x58f57b:0x4a1},_0x35407a={_0x213fcb:0x402};if(!_mongoose){const _0x4f5ecb=[process[_0x363131(0x4a3,0x4ae)](),...require[_0x363131(_0x5789b4._0x526f97,_0x5789b4._0x1e867f)]?.[_0x363131(_0x5789b4._0xb2c3c9,_0x5789b4._0x5e1734)]??[]];try{const _0x2935a=require[_0x363131(0x49e,_0x5789b4._0x119401)](_0x363131(_0x5789b4._0x5b0bb3,_0x5789b4._0x58f57b),{'paths':_0x4f5ecb});_mongoose=require(_0x2935a);}catch{try{_mongoose=require(_0x363131(0x4a1,_0x5789b4._0x58f57b));}catch{throw new Error('[MongoFire]\x20mongoose\x20is\x20required\x20in\x20your\x20project.\x20Run:\x20npm\x20install\x20mongoose');}}}function _0x363131(_0xfc099e,_0x3b9f27){return _0x3bdf8d(_0xfc099e,_0x3b9f27-_0x35407a._0x213fcb);}return _mongoose;}class LocalManager{#o=null;#e=!0x1;#n=null;#t=null;async['connect'](_0x508308,_0x2db8ee){function _0x346606(_0x256fd0,_0x4cbc94){return _0x3bdf8d(_0x4cbc94,_0x256fd0- -0x295);}if(!this.#e)return this.#n??=this.#s(_0x508308,_0x2db8ee)[_0x346606(-0x20b,-0x21c)](()=>{this.#n=null;}),this.#n;}async[_0x3bdf8d(0x98,0xa8)](){const _0x11bd19={_0x1f9ec2:0x177,_0x52861d:0x148,_0x3ec7a4:0x123,_0x2811f2:0x138,_0x492428:0x11b,_0x141374:0x14e,_0x4115de:0x173,_0x31882a:0x141,_0x1f9324:0x143},_0x513845={_0x4ea84e:0xad};function _0xd0b87e(_0x43083e,_0x2b0bc5){return _0x3bdf8d(_0x2b0bc5,_0x43083e-_0x513845._0x4ea84e);}try{const _0x8a1c3a=getMongoose();0x0!==_0x8a1c3a[_0xd0b87e(_0x11bd19._0x1f9ec2,0x18f)][_0xd0b87e(0x139,_0x11bd19._0x52861d)]&&(await _0x8a1c3a[_0xd0b87e(0x155,0x158)](),console['log'](_0xd0b87e(0x145,_0x11bd19._0x3ec7a4)));}catch(_0x22648a){console[_0xd0b87e(_0x11bd19._0x2811f2,_0x11bd19._0x492428)](_0xd0b87e(_0x11bd19._0x141374,0x158),_0x22648a?.['message']);}finally{this.#e=!0x1,this.#t=null;}this.#o&&(this.#o['kill'](_0xd0b87e(0x15e,_0x11bd19._0x4115de)),this.#o=null,console['log'](_0xd0b87e(_0x11bd19._0x31882a,_0x11bd19._0x1f9324)));}get[_0x3bdf8d(0xd8,0xbc)](){return this.#e;}async #s(_0xaa78eb,_0x2b25f9){const _0x163daa={_0x5cc52b:0x1f,_0x3f9e88:0x2a,_0x39d13f:0x1f,_0x4c37b3:0x40,_0x3a2930:0x25,_0x48f4f9:0x3c,_0x5948b0:0x54,_0x5dd6dc:0x3e,_0x4d0533:0x2f,_0x2ffaf0:0x19,_0x41d425:0x1d,_0x14b4d1:0x11,_0x3f1ae5:0x46,_0x505eb5:0x15,_0x11928b:0x27,_0x5115c8:0x53,_0x3b502e:0x10,_0x3e6da1:0x30,_0x5d6686:0x4e,_0x8c47aa:0x30,_0x2c4940:0x37,_0x4a4ab2:0x37,_0x3f240c:0x49,_0x37cb09:0x69,_0x3b62f3:0x1e,_0xf013e8:0x3,_0x3a33b0:0x49,_0x2d3a7b:0x28,_0x3df3f4:0x54,_0xe7129c:0x38,_0x2a724d:0x31,_0x39dad9:0x4d,_0x40e70e:0x54,_0x5e5b9e:0x24,_0x13ed37:0x34,_0xed8b4d:0x6d},_0x278b10={_0x4deabb:0x570,_0x4d183b:0x59c,_0x40cdd9:0x55c,_0x5bfac5:0x58f,_0x85b206:0x56d,_0x14bf17:0x58c,_0x1e3c84:0x57b,_0x12fdd1:0x583},_0x3af6fb={_0x23bf8f:0xdf},_0x9320d1=getMongoose();let _0x4768ef=_0xaa78eb||process[_0x3f10b4(-0x19,-0xf)]['LOCAL_URI']||DEFAULT_URI;try{const _0x4b62da=new URL(_0x4768ef);_0x4b62da[_0x3f10b4(-_0x163daa._0x5cc52b,-_0x163daa._0x3f9e88)]&&'/'!==_0x4b62da[_0x3f10b4(-_0x163daa._0x5cc52b,-0x11)]&&(_0x4b62da[_0x3f10b4(-_0x163daa._0x39d13f,-_0x163daa._0x4c37b3)]='/',_0x4768ef=_0x4b62da[_0x3f10b4(-0x22,-_0x163daa._0x3a2930)]()[_0x3f10b4(-_0x163daa._0x48f4f9,-0x5c)](/\/$/,''),console[_0x3f10b4(-_0x163daa._0x5948b0,-_0x163daa._0x5dd6dc)](_0x3f10b4(-_0x163daa._0x4d0533,-_0x163daa._0x3f9e88)+_0x4768ef));}catch(_0x585b39){}const _0x10efe7=_0x2b25f9||process[_0x3f10b4(-_0x163daa._0x2ffaf0,-0x2c)]['DB_NAME']||_0x3f10b4(-_0x163daa._0x41d425,-_0x163daa._0x14b4d1),_0x6b2f25=_0x4768ef+'/'+_0x10efe7;this.#t=_0x6b2f25,console['log'](_0x3f10b4(-_0x163daa._0x3f1ae5,-0x5f)+_0x6b2f25);function _0x3f10b4(_0x50b81f,_0x386623){return _0x3bdf8d(_0x386623,_0x50b81f- -_0x3af6fb._0x23bf8f);}let _0x42d251=0x0;for(;;){const _0x2ec43a=_0x9320d1[_0x3f10b4(-_0x163daa._0x505eb5,-_0x163daa._0x11928b)][_0x3f10b4(-_0x163daa._0x5115c8,-0x45)];if(0x2!==_0x2ec43a){if(0x3!==_0x2ec43a){if(0x1===_0x2ec43a){const _0x5d7e06=_0x9320d1[_0x3f10b4(-0x15,-_0x163daa._0x3b502e)]['name'];if(_0x5d7e06&&_0x5d7e06!==_0x10efe7){console['warn']('[MongoFire]\x20⚠️\x20\x20WARNING:\x20Mongoose\x20is\x20already\x20connected\x20to\x20database\x20\x22'+_0x5d7e06+_0x3f10b4(-_0x163daa._0x3e6da1,-0x4a)+_0x9320d1[_0x3f10b4(-0x15,-0x10)][_0x3f10b4(-_0x163daa._0x5d6686,-0x39)]+_0x3f10b4(-0x34,-_0x163daa._0x8c47aa)+_0x10efe7+_0x3f10b4(-0x17,-_0x163daa._0x2c4940));try{await _0x9320d1['disconnect']();}catch(_0x4e32b7){}continue;}return _0x9320d1['set'](_0x3f10b4(-0x27,-_0x163daa._0x4a4ab2),0xea60),this.#e=!0x0,void console[_0x3f10b4(-_0x163daa._0x3f240c,-_0x163daa._0x37cb09)]('✅\x20[MongoFire]\x20Local\x20MongoDB\x20connected\x20→\x20'+_0x6b2f25);}try{return _0x9320d1[_0x3f10b4(-_0x163daa._0x3b62f3,_0x163daa._0xf013e8)]('bufferTimeoutMS',0xea60),await _0x9320d1['connect'](_0x6b2f25,{'serverSelectionTimeoutMS':0x7530,'socketTimeoutMS':0xafc8,'heartbeatFrequencyMS':0x7d0}),this.#e=!0x0,void console[_0x3f10b4(-_0x163daa._0x3a33b0,-0x4f)](_0x3f10b4(-_0x163daa._0x2d3a7b,-0x1e)+_0x6b2f25);}catch(_0x2ec799){_0x42d251++,0x1===_0x42d251&&(console[_0x3f10b4(-_0x163daa._0x3df3f4,-0x3b)](_0x3f10b4(-_0x163daa._0xe7129c,-0x49)+_0x2ec799[_0x3f10b4(-_0x163daa._0x2a724d,-_0x163daa._0x39dad9)]),await this.#c(_0x10efe7)),_0x42d251%0xa==0x0&&(console[_0x3f10b4(-_0x163daa._0x40e70e,-0x3c)](_0x3f10b4(-_0x163daa._0x5e5b9e,-_0x163daa._0x13ed37)+_0x42d251+')'),console[_0x3f10b4(-_0x163daa._0x40e70e,-_0x163daa._0xed8b4d)](_0x3f10b4(-0x39,-0x1c)));const _0x5cf5c6=Math['min'](0x3e8*0x2**(_0x42d251-0x1),0x2710);await new Promise(_0x16954a=>setTimeout(_0x16954a,_0x5cf5c6));}}else await new Promise(_0xc1a247=>_0x9320d1['connection']['once']('disconnected',_0xc1a247));}else await new Promise(_0x530e4b=>{function _0x398f58(_0x1e6ade,_0xfe0af8){return _0x3f10b4(_0x1e6ade-0x5b1,_0xfe0af8);}_0x9320d1[_0x398f58(0x59c,0x592)]['once'](_0x398f58(_0x278b10._0x4deabb,0x57d),_0x530e4b),_0x9320d1[_0x398f58(_0x278b10._0x4d183b,0x58d)][_0x398f58(0x56d,_0x278b10._0x40cdd9)](_0x398f58(0x59d,_0x278b10._0x5bfac5),_0x530e4b),_0x9320d1[_0x398f58(_0x278b10._0x4d183b,0x5a5)][_0x398f58(_0x278b10._0x85b206,_0x278b10._0x14bf17)](_0x398f58(_0x278b10._0x1e3c84,_0x278b10._0x12fdd1),_0x530e4b);});}}async #c(_0xcdb8da){const _0x4d757b={_0x26ef94:0x175,_0x5f11c5:0x162,_0x3e79aa:0x181,_0x414256:0x1af,_0x293bc0:0x1c6,_0x2a280e:0x1d5,_0x4734be:0x1b7},_0x3eed02={_0x959632:0x111,_0x1a3d67:0x128,_0x3698c7:0x162};function _0x39c414(_0x185276,_0x5adbe6){return _0x3bdf8d(_0x185276,_0x5adbe6- -0x24d);}const _0x1d3257=process[_0x39c414(-_0x4d757b._0x26ef94,-0x187)][_0x39c414(-_0x4d757b._0x5f11c5,-_0x4d757b._0x3e79aa)]??path[_0x39c414(-_0x4d757b._0x414256,-0x18f)](os['homedir'](),_0x39c414(-_0x4d757b._0x293bc0,-0x1b3),_0xcdb8da??'db');try{fs['mkdirSync'](_0x1d3257,{'recursive':!0x0});}catch(_0x11356c){}return console[_0x39c414(-_0x4d757b._0x2a280e,-_0x4d757b._0x4734be)](_0x39c414(-0x18c,-0x198)+_0x1d3257),new Promise(_0x3c7065=>{const _0xe9aa23={_0x1724e:0x135,_0x4953b6:0x132},_0x2423c9={_0x448911:0x262},_0x599e60={_0x4013ea:0x1b4},_0x593b71={_0x4b70f0:0x2cf};function _0x3d2739(_0x5628cf,_0xd5a07e){return _0x39c414(_0x5628cf,_0xd5a07e-_0x593b71._0x4b70f0);}const _0x17abc3=spawn(_0x3d2739(0xf1,_0x3eed02._0x959632),[_0x3d2739(0x146,0x145),_0x3d2739(0x131,0x110),_0x1d3257],{'stdio':_0x3d2739(_0x3eed02._0x1a3d67,0x12f),'detached':!0x1,'shell':_0x3d2739(0x165,0x147)===process['platform']});_0x17abc3['on'](_0x3d2739(0x10e,0x12b),_0x32c8c9=>{const _0x573ef7={_0x461152:0x4d};function _0x35d94c(_0x3a8246,_0x2c9cda){return _0x3d2739(_0x3a8246,_0x2c9cda-_0x573ef7._0x461152);}console['warn']('[MongoFire]\x20Could\x20not\x20start\x20mongod:\x20'+_0x32c8c9['message']+_0x35d94c(_0x599e60._0x4013ea,0x198)),this.#o=null,_0x3c7065();}),_0x17abc3['on'](_0x3d2739(_0x3eed02._0x3698c7,0x141),(_0xbe48d1,_0x458a7e)=>{function _0x36d76b(_0x3934ff,_0x37c1d1){return _0x3d2739(_0x3934ff,_0x37c1d1- -_0x2423c9._0x448911);}this.#o&&(console[_0x36d76b(-_0xe9aa23._0x1724e,-0x155)](_0x36d76b(-_0xe9aa23._0x4953b6,-0x119)+_0xbe48d1+_0x36d76b(-0x137,-0x12d)+_0x458a7e+')'),this.#o=null);}),this.#o=_0x17abc3,setTimeout(_0x3c7065,0x5dc);});}}const localManager=new LocalManager();function _0x3b7b(_0x1e3432,_0x46e08a){_0x1e3432=_0x1e3432-0x1ce;const _0x735701=_0x7357();let _0x3b7be0=_0x735701[_0x1e3432];if(_0x3b7b['vlWiqA']===undefined){var _0x1a263d=function(_0x45fb2b){const _0xfaf07d='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x4f5ecb='',_0x2935a='';for(let _0x508308=0x0,_0x2db8ee,_0x8a1c3a,_0x22648a=0x0;_0x8a1c3a=_0x45fb2b['charAt'](_0x22648a++);~_0x8a1c3a&&(_0x2db8ee=_0x508308%0x4?_0x2db8ee*0x40+_0x8a1c3a:_0x8a1c3a,_0x508308++%0x4)?_0x4f5ecb+=String['fromCharCode'](0xff&_0x2db8ee>>(-0x2*_0x508308&0x6)):0x0){_0x8a1c3a=_0xfaf07d['indexOf'](_0x8a1c3a);}for(let _0xaa78eb=0x0,_0x2b25f9=_0x4f5ecb['length'];_0xaa78eb<_0x2b25f9;_0xaa78eb++){_0x2935a+='%'+('00'+_0x4f5ecb['charCodeAt'](_0xaa78eb)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x2935a);};_0x3b7b['xHQzZv']=_0x1a263d,_0x3b7b['KitinH']={},_0x3b7b['vlWiqA']=!![];}const _0x1f85b9=_0x735701[0x0],_0x1f185a=_0x1e3432+_0x1f85b9,_0x4a1b50=_0x3b7b['KitinH'][_0x1f185a];return!_0x4a1b50?(_0x3b7be0=_0x3b7b['xHQzZv'](_0x3b7be0),_0x3b7b['KitinH'][_0x1f185a]=_0x3b7be0):_0x3b7be0=_0x4a1b50,_0x3b7be0;}function _0x3bdf8d(_0x3cfece,_0x45fec7){return _0x3b7b(_0x45fec7- -0x144,_0x3cfece);}module[_0x3bdf8d(0xe2,0xcd)]=localManager,module[_0x3bdf8d(0xbb,0xcd)][_0x3bdf8d(0xb8,0xa0)]=LocalManager;
|