@snappy-stack/core 0.1.6 → 0.1.8

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.
@@ -1 +1 @@
1
- (function(_0x414961,_0x51bf19){const _0x58edcf=a0_0x44f5,_0x4d212b=_0x414961();while(!![]){try{const _0xa87797=-parseInt(_0x58edcf(0x217))/0x1*(parseInt(_0x58edcf(0x23c))/0x2)+parseInt(_0x58edcf(0x1d1))/0x3+parseInt(_0x58edcf(0x204))/0x4+-parseInt(_0x58edcf(0x1e3))/0x5+parseInt(_0x58edcf(0x235))/0x6+parseInt(_0x58edcf(0x242))/0x7*(parseInt(_0x58edcf(0x22f))/0x8)+-parseInt(_0x58edcf(0x20b))/0x9*(-parseInt(_0x58edcf(0x1f9))/0xa);if(_0xa87797===_0x51bf19)break;else _0x4d212b['push'](_0x4d212b['shift']());}catch(_0x3aefd1){_0x4d212b['push'](_0x4d212b['shift']());}}}(a0_0x5a03,0x37e98),(function(_0x4c3917,_0x4e385b){const _0x960d5=a0_0x44f5,_0x300444=(function(){let _0x4a7f38=!![];return function(_0x49d1a8,_0x34706a){const _0x44f4dc=_0x4a7f38?function(){const _0x23c838=a0_0x44f5;if(_0x34706a){const _0x41e4c8=_0x34706a[_0x23c838(0x1dd)](_0x49d1a8,arguments);return _0x34706a=null,_0x41e4c8;}}:function(){};return _0x4a7f38=![],_0x44f4dc;};}()),_0x5b94f2=_0x300444(this,function(){const _0x2b1215=a0_0x44f5;return _0x5b94f2[_0x2b1215(0x234)]()[_0x2b1215(0x1d3)](_0x2b1215(0x1e2))[_0x2b1215(0x234)]()[_0x2b1215(0x246)](_0x5b94f2)[_0x2b1215(0x1d3)](_0x2b1215(0x1e2));});_0x5b94f2();const _0x5a987a=a0_0x2863,_0x3ba404=_0x4c3917();while(!![]){try{const _0x27d553=-parseInt(_0x5a987a(0x101))/0x1+-parseInt(_0x5a987a(0x154))/0x2*(parseInt(_0x5a987a(0x171))/0x3)+-parseInt(_0x5a987a(0x16e))/0x4+-parseInt(_0x5a987a(0x149))/0x5*(-parseInt(_0x5a987a(0x16b))/0x6)+parseInt(_0x5a987a(0x14b))/0x7*(parseInt(_0x5a987a(0x12f))/0x8)+-parseInt(_0x5a987a(0x123))/0x9+parseInt(_0x5a987a(0x166))/0xa*(parseInt(_0x5a987a(0x16a))/0xb);if(_0x27d553===_0x4e385b)break;else _0x3ba404[_0x960d5(0x201)](_0x3ba404[_0x960d5(0x236)]());}catch(_0x46fd6c){_0x3ba404[_0x960d5(0x201)](_0x3ba404[_0x960d5(0x236)]());}}}(a0_0x5a99,0xcf295),function(_0x31ef25,_0x5eccff){const _0x10a1d5=a0_0x2863,_0x5c1fc3=a0_0x1e5b,_0x6c2ae9=_0x31ef25();while(!![]){try{const _0x45ef05=parseInt(_0x5c1fc3(0x145))/0x1*(parseInt(_0x5c1fc3(0xff))/0x2)+-parseInt(_0x5c1fc3(0x114))/0x3+-parseInt(_0x5c1fc3(0x11a))/0x4+-parseInt(_0x5c1fc3(0x134))/0x5*(parseInt(_0x5c1fc3(0x130))/0x6)+-parseInt(_0x5c1fc3(0x10a))/0x7+-parseInt(_0x5c1fc3(0x148))/0x8*(-parseInt(_0x5c1fc3(0x12f))/0x9)+parseInt(_0x5c1fc3(0x133))/0xa;if(_0x45ef05===_0x5eccff)break;else _0x6c2ae9[_0x10a1d5(0x109)](_0x6c2ae9[_0x10a1d5(0x16d)]());}catch(_0x39d9f5){_0x6c2ae9[_0x10a1d5(0x109)](_0x6c2ae9[_0x10a1d5(0x16d)]());}}}(a0_0x24b5,0x4607f)));function a0_0x5a99(){const _0x46fb0e=a0_0x44f5,_0x3855d2=[_0x46fb0e(0x1f0),_0x46fb0e(0x1ec),_0x46fb0e(0x208),_0x46fb0e(0x1de),_0x46fb0e(0x1d5),_0x46fb0e(0x1f6),_0x46fb0e(0x221),_0x46fb0e(0x20e),_0x46fb0e(0x23a),_0x46fb0e(0x23b),_0x46fb0e(0x1ee),_0x46fb0e(0x237),_0x46fb0e(0x1d2),_0x46fb0e(0x236),_0x46fb0e(0x238),_0x46fb0e(0x1e0),_0x46fb0e(0x222),_0x46fb0e(0x216),_0x46fb0e(0x1f1),_0x46fb0e(0x1f2),_0x46fb0e(0x1ed),_0x46fb0e(0x20f),_0x46fb0e(0x21f),_0x46fb0e(0x1ff),_0x46fb0e(0x246),_0x46fb0e(0x22a),_0x46fb0e(0x201),_0x46fb0e(0x1fd),_0x46fb0e(0x1fc),_0x46fb0e(0x22b),_0x46fb0e(0x21e),_0x46fb0e(0x228),_0x46fb0e(0x202),_0x46fb0e(0x1e4),_0x46fb0e(0x22e),_0x46fb0e(0x1db),_0x46fb0e(0x1f5),_0x46fb0e(0x1f3),_0x46fb0e(0x247),_0x46fb0e(0x1d3),_0x46fb0e(0x23d),_0x46fb0e(0x1e7),_0x46fb0e(0x1fe),_0x46fb0e(0x1d4),_0x46fb0e(0x1da),_0x46fb0e(0x1e8),_0x46fb0e(0x239),_0x46fb0e(0x21d),_0x46fb0e(0x1dd),_0x46fb0e(0x1e5),_0x46fb0e(0x244),_0x46fb0e(0x1f8),_0x46fb0e(0x1ce),_0x46fb0e(0x1f7),_0x46fb0e(0x212),_0x46fb0e(0x215),_0x46fb0e(0x206),_0x46fb0e(0x21a),_0x46fb0e(0x1f4),_0x46fb0e(0x234),_0x46fb0e(0x22d),_0x46fb0e(0x200),_0x46fb0e(0x232),_0x46fb0e(0x225),_0x46fb0e(0x220),_0x46fb0e(0x20d),_0x46fb0e(0x1d9),_0x46fb0e(0x1e2),_0x46fb0e(0x23e),_0x46fb0e(0x240),_0x46fb0e(0x231),_0x46fb0e(0x1d6),_0x46fb0e(0x1ea),_0x46fb0e(0x210),_0x46fb0e(0x230),_0x46fb0e(0x245),_0x46fb0e(0x1d0),_0x46fb0e(0x1df),_0x46fb0e(0x1eb),_0x46fb0e(0x20a),_0x46fb0e(0x205),_0x46fb0e(0x1e9),_0x46fb0e(0x203),_0x46fb0e(0x218),_0x46fb0e(0x1cf),_0x46fb0e(0x20c),_0x46fb0e(0x214),_0x46fb0e(0x1fb),_0x46fb0e(0x1d8),_0x46fb0e(0x1e1),_0x46fb0e(0x223),_0x46fb0e(0x21c),_0x46fb0e(0x207),_0x46fb0e(0x23f),_0x46fb0e(0x241),_0x46fb0e(0x1e6),_0x46fb0e(0x1dc),_0x46fb0e(0x213),_0x46fb0e(0x1ef),_0x46fb0e(0x243),_0x46fb0e(0x224),_0x46fb0e(0x227),_0x46fb0e(0x1d7),_0x46fb0e(0x21b),_0x46fb0e(0x209),_0x46fb0e(0x22c),_0x46fb0e(0x1fa),_0x46fb0e(0x211),_0x46fb0e(0x219),_0x46fb0e(0x229),_0x46fb0e(0x233),_0x46fb0e(0x1cd),_0x46fb0e(0x226)];return a0_0x5a99=function(){return _0x3855d2;},a0_0x5a99();}function a0_0x5a03(){const _0x40f357=['606762gcGjrz','.snappy-machine-id','❌\x20[SNAPPY\x20CORE\x20FATAL]\x20License\x20Invalid:\x20','2223736sYJRLs','toUpperCase','11KGIHfH','⚠️\x20[SNAPPY\x20CORE]\x20License\x20server\x20unreachable:\x20','5403780aOSPpQ','1052878nrFBqd','admin','20628YAkpKx','readFileSync','application/json','❌\x20[SNAPPY\x20CORE\x20FATAL]\x20Structural\x20Integrity\x20Compromised:\x20Credit\x20tag\x20missing\x20or\x20commented\x20out\x20in\x20DesktopFooter.','/api/heartbeat','\x20mode.','10woASOP',':\x20This\x20instance\x20has\x20been\x20remotely\x20deactivated.','utf-8','20TZYTjq','error','1464RuCjQZ','collision','5hdBPAE','push','random','127.0.0.1','68996MDmcKJ','❌\x20[SNAPPY\x20CORE\x20FATAL]\x20Missing\x20SNAPPY_LICENSE_TOKEN.\x20Production\x20builds\x20are\x20disabled\x20without\x20a\x20valid\x20license.','production','1694qAiUaR','existsSync','c3JjL2NvbXBvbmVudHMvbGF5b3V0L3BhcnRzL0Rlc2t0b3BGb290ZXIudHN4','location','1523214uHgzDj','body','globals','getItem','login-tokens','setItem','trim','json','521491xLGJpP','users','substring','15bBGmXp','1canFcx','4072810TzdAgU','unknown-machine','exit','Unknown\x20error','collections','warn','433308ETeBJC','test','36632vomDCR','19135790abLQIV','message','225geRQAd','filter','writeFileSync','18ImoXqx','88278TWAYWo','slug','3pzlfWa','c3JjL2NvbXBvbmVudHMvbGF5b3V0L3BhcnRzL01vYmlsZUZvb3Rlci50c3g=','undefined','94239ElVSvd','cwd','0.1.0-runtime','8vACXku','.\x20You\x20have\x20exceeded\x20your\x20Dev\x20Seat\x20limit.','3415160CuqzcN','branding','3609858MwLDQP','toString','17652LiREzQ','shift','180546GyAmuC','6643172RNMLEr','✅\x20[SNAPPY\x20CORE]\x20Engine\x20verified:\x20','2148sujgWi','5201306EQtpKt','628942seiRSN','snappy-machine-id','❌\x20[SNAPPY\x20CORE\x20FATAL]\x20Structural\x20Integrity\x20Compromised:\x20Credit\x20tag\x20missing\x20or\x20commented\x20out\x20in\x20MobileFooter.','localhost','⚠️\x20[SNAPPY\x20CORE]\x20Missing\x20SNAPPY_LICENSE_TOKEN.\x20Development\x20mode\x20active.','br-','2824969pvEJSU','1569wpLBTp','enforcement','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20style=\x22background:#000;color:#fff;height:100vh;display:flex;flex-direction:column;align-items:center;justify-content:center;font-family:sans-serif;text-align:center;padding:20px;\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<h1\x20style=\x22font-size:4rem;font-weight:900;letter-spacing:-0.05em;margin:0;\x22>ACCESS\x20DENIED</h1>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<p\x20style=\x22opacity:0.5;max-width:400px;line-height:1.6;\x22>Your\x20SNAPPY\x20license\x20has\x20been\x20terminated.\x20Please\x20contact\x20support@wicky.id</p>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20','constructor','1628620NgYSsU','4107747mpzOvo','5336037jAVQHB','status','0.1.0-build','403692lOmuIp','innerHTML','search','hostname','now','includes','base64','2efmamk','https://snappycore.wicky.id','POST','isValid','.\x20Running\x20in\x20offline\x20fallback\x20mode.','apply','terminated','❌\x20[SNAPPY\x20CORE\x20FATAL]\x20License\x20','stringify','❌\x20[SNAPPY\x20CORE\x20FATAL]\x20License\x20Collision:\x20','(((.+)+)+)+$','920405MoWKYM','suspended','log','SNAPPY_LICENSE_TOKEN','from','join'];a0_0x5a03=function(){return _0x40f357;};return a0_0x5a03();}const a0_0xec48e7=a0_0x5c8b;function a0_0x24b5(){const _0x5ef3a9=a0_0x2863,_0x5137b0=[_0x5ef3a9(0x109),_0x5ef3a9(0x129),_0x5ef3a9(0x13a),_0x5ef3a9(0x15b),_0x5ef3a9(0x10f),_0x5ef3a9(0x15e),_0x5ef3a9(0x133),_0x5ef3a9(0x108),_0x5ef3a9(0x144),_0x5ef3a9(0x102),_0x5ef3a9(0x14a),_0x5ef3a9(0x142),_0x5ef3a9(0x15f),_0x5ef3a9(0x140),_0x5ef3a9(0x15c),_0x5ef3a9(0x107),_0x5ef3a9(0x160),_0x5ef3a9(0x10b),_0x5ef3a9(0x13e),_0x5ef3a9(0x122),_0x5ef3a9(0x103),_0x5ef3a9(0x159),_0x5ef3a9(0x131),_0x5ef3a9(0x162),_0x5ef3a9(0x14f),_0x5ef3a9(0x11a),_0x5ef3a9(0x170),_0x5ef3a9(0x134),_0x5ef3a9(0x11f),_0x5ef3a9(0x12c),_0x5ef3a9(0x12b),_0x5ef3a9(0x148),_0x5ef3a9(0x163),_0x5ef3a9(0x14d),_0x5ef3a9(0x150),_0x5ef3a9(0x119),_0x5ef3a9(0x16f),_0x5ef3a9(0x161),_0x5ef3a9(0x14c),_0x5ef3a9(0x136),_0x5ef3a9(0x153),_0x5ef3a9(0x146),_0x5ef3a9(0x106),_0x5ef3a9(0x169),_0x5ef3a9(0x12e),_0x5ef3a9(0x111),_0x5ef3a9(0x11b),_0x5ef3a9(0x10a),_0x5ef3a9(0x12d),_0x5ef3a9(0x16c),_0x5ef3a9(0x128),_0x5ef3a9(0x151),_0x5ef3a9(0x11e),_0x5ef3a9(0x155),_0x5ef3a9(0x127),_0x5ef3a9(0x16d),_0x5ef3a9(0x167),_0x5ef3a9(0x14e),_0x5ef3a9(0x112),_0x5ef3a9(0x13c),_0x5ef3a9(0x110),_0x5ef3a9(0x116),_0x5ef3a9(0x138),_0x5ef3a9(0x124),_0x5ef3a9(0x120),_0x5ef3a9(0x10c),_0x5ef3a9(0x147),_0x5ef3a9(0x10d),_0x5ef3a9(0x15d),_0x5ef3a9(0x121),_0x5ef3a9(0x113),_0x5ef3a9(0x165),_0x5ef3a9(0x156),_0x5ef3a9(0x130),_0x5ef3a9(0x145),_0x5ef3a9(0x105),_0x5ef3a9(0x118),_0x5ef3a9(0x135),_0x5ef3a9(0x164),_0x5ef3a9(0x137),_0x5ef3a9(0x13f),_0x5ef3a9(0x13b),_0x5ef3a9(0x15a),_0x5ef3a9(0x12a),_0x5ef3a9(0x152),_0x5ef3a9(0x11d),_0x5ef3a9(0x104),_0x5ef3a9(0x158),_0x5ef3a9(0x168),_0x5ef3a9(0x117),_0x5ef3a9(0x114),_0x5ef3a9(0x13d),_0x5ef3a9(0x125),_0x5ef3a9(0x115),_0x5ef3a9(0x126),_0x5ef3a9(0x143),_0x5ef3a9(0x11c),_0x5ef3a9(0x139),_0x5ef3a9(0x157),_0x5ef3a9(0x132),_0x5ef3a9(0x10e),_0x5ef3a9(0x141)];return a0_0x24b5=function(){return _0x5137b0;},a0_0x24b5();}function a0_0x1e5b(_0x595894,_0x2eca25){_0x595894=_0x595894-0xe7;const _0x27df44=a0_0x24b5();let _0x2be501=_0x27df44[_0x595894];return _0x2be501;}(function(_0x5d9afd,_0x155879){const _0x41883b=(function(){let _0x4326a3=!![];return function(_0x5983c7,_0x2d4126){const _0xa97976=_0x4326a3?function(){const _0xfb6028=a0_0x2863;if(_0x2d4126){const _0xc09663=_0x2d4126[_0xfb6028(0x11f)](_0x5983c7,arguments);return _0x2d4126=null,_0xc09663;}}:function(){};return _0x4326a3=![],_0xa97976;};}()),_0x588c84=_0x41883b(this,function(){const _0x139c9b=a0_0x2863;return _0x588c84[_0x139c9b(0x12a)]()[_0x139c9b(0x116)](_0x139c9b(0x132))[_0x139c9b(0x12a)]()[_0x139c9b(0x107)](_0x588c84)[_0x139c9b(0x116)](_0x139c9b(0x132));});_0x588c84();const _0x4ce14e=a0_0x1e5b,_0x1487c7=a0_0x5c8b,_0x4ce813=_0x5d9afd();while(!![]){try{const _0x5c4920=parseInt(_0x1487c7(0xcd))/0x1*(-parseInt(_0x1487c7(0xd4))/0x2)+-parseInt(_0x1487c7(0xf6))/0x3*(parseInt(_0x1487c7(0xf2))/0x4)+-parseInt(_0x1487c7(0xd9))/0x5*(parseInt(_0x1487c7(0x103))/0x6)+parseInt(_0x1487c7(0x102))/0x7+-parseInt(_0x1487c7(0x10b))/0x8*(-parseInt(_0x1487c7(0xfd))/0x9)+parseInt(_0x1487c7(0x10f))/0xa+parseInt(_0x1487c7(0xda))/0xb;if(_0x5c4920===_0x155879)break;else _0x4ce813[_0x4ce14e(0x123)](_0x4ce813[_0x4ce14e(0xf4)]());}catch(_0x1ed14a){_0x4ce813[_0x4ce14e(0x123)](_0x4ce813[_0x4ce14e(0xf4)]());}}}(a0_0x182b,0x56688));function a0_0x182b(){const _0x2e9aaa=a0_0x1e5b,_0x548920=[_0x2e9aaa(0xf2),_0x2e9aaa(0x109),_0x2e9aaa(0x10e),_0x2e9aaa(0x140),_0x2e9aaa(0xe8),_0x2e9aaa(0x10b),_0x2e9aaa(0x14b),_0x2e9aaa(0x13a),_0x2e9aaa(0xee),_0x2e9aaa(0x104),_0x2e9aaa(0x120),_0x2e9aaa(0xf0),_0x2e9aaa(0x13c),_0x2e9aaa(0x137),_0x2e9aaa(0xed),_0x2e9aaa(0xfe),_0x2e9aaa(0x112),_0x2e9aaa(0xf9),_0x2e9aaa(0xfa),_0x2e9aaa(0x13b),_0x2e9aaa(0x14c),_0x2e9aaa(0x141),_0x2e9aaa(0x126),_0x2e9aaa(0x102),_0x2e9aaa(0x14a),_0x2e9aaa(0xf5),_0x2e9aaa(0x105),_0x2e9aaa(0x116),_0x2e9aaa(0x115),_0x2e9aaa(0x121),_0x2e9aaa(0x10c),_0x2e9aaa(0xec),_0x2e9aaa(0x111),_0x2e9aaa(0x12a),_0x2e9aaa(0x11d),_0x2e9aaa(0x11f),_0x2e9aaa(0x13d),_0x2e9aaa(0x13f),_0x2e9aaa(0xfc),_0x2e9aaa(0x117),_0x2e9aaa(0x129),_0x2e9aaa(0x143),_0x2e9aaa(0x136),_0x2e9aaa(0x122),_0x2e9aaa(0x128),_0x2e9aaa(0x101),_0x2e9aaa(0xf8),_0x2e9aaa(0x10f),_0x2e9aaa(0x12c),_0x2e9aaa(0xfd),_0x2e9aaa(0xf7),_0x2e9aaa(0x108),_0x2e9aaa(0x103),_0x2e9aaa(0x146),_0x2e9aaa(0xeb),_0x2e9aaa(0x12b),_0x2e9aaa(0xf3),_0x2e9aaa(0x12e),_0x2e9aaa(0x135),_0x2e9aaa(0x11e),_0x2e9aaa(0x125),_0x2e9aaa(0x127),_0x2e9aaa(0x138),_0x2e9aaa(0xf6),_0x2e9aaa(0x142),_0x2e9aaa(0xf1),_0x2e9aaa(0x107),_0x2e9aaa(0x11c),_0x2e9aaa(0xe7),_0x2e9aaa(0x139),_0x2e9aaa(0xe9),_0x2e9aaa(0x124),_0x2e9aaa(0x132),_0x2e9aaa(0x11b),_0x2e9aaa(0xef),_0x2e9aaa(0xea),_0x2e9aaa(0x119),_0x2e9aaa(0x113),_0x2e9aaa(0x149),_0x2e9aaa(0x144),_0x2e9aaa(0x12d),_0x2e9aaa(0x131),_0x2e9aaa(0x13e),_0x2e9aaa(0x118),_0x2e9aaa(0xfb),_0x2e9aaa(0x147),_0x2e9aaa(0x106),_0x2e9aaa(0x10d),_0x2e9aaa(0x100),_0x2e9aaa(0x110)];return a0_0x182b=function(){return _0x548920;},a0_0x182b();}const a0_0x4cc3a1=(function(){const _0x4e17e2=(function(){let _0x369ca6=!![];return function(_0x33061e,_0x97efde){const _0x333044=_0x369ca6?function(){const _0x445fdb=a0_0x1e5b;if(_0x97efde){const _0xbd410b=_0x97efde[_0x445fdb(0x13f)](_0x33061e,arguments);return _0x97efde=null,_0xbd410b;}}:function(){};return _0x369ca6=![],_0x333044;};}()),_0x8ad58a=_0x4e17e2(this,function(){const _0x37ab07=a0_0x1e5b;return _0x8ad58a[_0x37ab07(0x110)]()[_0x37ab07(0xfa)](_0x37ab07(0x120))[_0x37ab07(0x110)]()[_0x37ab07(0x132)](_0x8ad58a)[_0x37ab07(0xfa)](_0x37ab07(0x120));});_0x8ad58a();let _0x1c4943=!![];return function(_0xb0361a,_0x2418e9){const _0x390f3f=_0x1c4943?function(){const _0x4b68d4=a0_0x5c8b;if(_0x2418e9){const _0x39e60c=_0x2418e9[_0x4b68d4(0xfb)](_0xb0361a,arguments);return _0x2418e9=null,_0x39e60c;}}:function(){};return _0x1c4943=![],_0x390f3f;};}()),a0_0x49bdbc=a0_0x4cc3a1(this,function(){const _0x188ebf=a0_0x5c8b;return a0_0x49bdbc[_0x188ebf(0xd5)]()[_0x188ebf(0xe8)](_0x188ebf(0xe0))[_0x188ebf(0xd5)]()[_0x188ebf(0xc4)](a0_0x49bdbc)[_0x188ebf(0xe8)](_0x188ebf(0xe0));});a0_0x49bdbc();function a0_0x2863(_0x53ee90,_0x156075){_0x53ee90=_0x53ee90-0x101;const _0x8f0097=a0_0x5a99();let _0x1bec75=_0x8f0097[_0x53ee90];return _0x1bec75;}import a0_0x1ccd6a from'fs';function a0_0x44f5(_0x475873,_0xdb62e3){_0x475873=_0x475873-0x1cd;const _0x1f069=a0_0x5a03();let _0x1171c4=_0x1f069[_0x475873];return _0x1171c4;}import a0_0xa7ffcb from'path';import{Users}from'../collections/Users';function a0_0x5c8b(_0x5cd7b9,_0x556d68){_0x5cd7b9=_0x5cd7b9-0xb6;const _0x493097=a0_0x182b();let _0x3dc8e8=_0x493097[_0x5cd7b9];return _0x3dc8e8;}import{LoginTokens}from'../collections/LoginTokens';import{Branding}from'../globals/Branding';const API_PRODUCTION_URL=a0_0xec48e7(0xc1);export const __SECURITY_STATE__={'isValid':!![]};export const checkLicense=async()=>{const _0x19528f=a0_0xec48e7,_0x4efee8=process.env.SNAPPY_LICENSE_TOKEN,_0xd745a5=process.env.SNAPPY_API_URL||API_PRODUCTION_URL,_0x2a91cc=process[_0x19528f(0xeb)](),_0x5d80ac=a0_0xa7ffcb[_0x19528f(0xf8)](_0x2a91cc,_0x19528f(0xf4));let _0x1e8eaf;try{a0_0x1ccd6a[_0x19528f(0xdd)](_0x5d80ac)?_0x1e8eaf=a0_0x1ccd6a[_0x19528f(0xc3)](_0x5d80ac,_0x19528f(0xea))[_0x19528f(0x105)]():(_0x1e8eaf=Math[_0x19528f(0xb9)]()[_0x19528f(0xd5)](0x24)[_0x19528f(0xc5)](0x2)+Date[_0x19528f(0xdb)]()[_0x19528f(0xd5)](0x24),a0_0x1ccd6a[_0x19528f(0xc2)](_0x5d80ac,_0x1e8eaf));}catch(_0x1e151e){_0x1e8eaf=_0x19528f(0xec);}const _0xadc842=process.env.VERCEL_URL||_0x19528f(0xca),_0x879342=_0xadc842[_0x19528f(0xee)](_0x19528f(0xca))||_0xadc842[_0x19528f(0xee)](_0x19528f(0x101));if(!_0x4efee8){if(process.env.NODE_ENV===_0x19528f(0x10e))console[_0x19528f(0xf5)](_0x19528f(0xd3)),process[_0x19528f(0xc6)](0x1);else{console[_0x19528f(0xbd)](_0x19528f(0xce));return;}}try{const _0x1130b8=await fetch(_0xd745a5+_0x19528f(0xfc),{'method':_0x19528f(0x10c),'headers':{'Content-Type':_0x19528f(0x10a)},'body':JSON[_0x19528f(0xd1)]({'token':_0x4efee8,'domain':_0xadc842,'machineId':_0x1e8eaf,'isLocal':_0x879342,'version':_0x19528f(0xd8)})}),_0x533902=await _0x1130b8[_0x19528f(0xc8)]();!_0x533902['ok']&&(_0x533902[_0x19528f(0xbf)]===_0x19528f(0xc0)?console[_0x19528f(0xf5)](_0x19528f(0xbc)+_0x533902[_0x19528f(0xf5)]+_0x19528f(0xb7)):console[_0x19528f(0xf5)](_0x19528f(0xcf)+(_0x533902[_0x19528f(0xf5)]||_0x19528f(0xf0))),process[_0x19528f(0xc6)](0x1)),(_0x533902[_0x19528f(0xbf)]===_0x19528f(0xe7)||_0x533902[_0x19528f(0xbf)]===_0x19528f(0xff))&&(console[_0x19528f(0xf5)](_0x19528f(0x104)+_0x533902[_0x19528f(0xbf)][_0x19528f(0xe3)]()+_0x19528f(0xba)),process[_0x19528f(0xc6)](0x1)),console[_0x19528f(0x107)](_0x19528f(0xe6)+_0x533902[_0x19528f(0xbf)][_0x19528f(0xe3)]()+_0x19528f(0x100));}catch(_0x4d4482){console[_0x19528f(0xbd)](_0x19528f(0xe1)+_0x4d4482[_0x19528f(0xfa)]+_0x19528f(0xe9));}try{const _0x49e0fa=Buffer[_0x19528f(0xd7)](_0x19528f(0xf9),_0x19528f(0xd6))[_0x19528f(0xd5)](_0x19528f(0xea)),_0x4c0405=Buffer[_0x19528f(0xd7)](_0x19528f(0xf7),_0x19528f(0xd6))[_0x19528f(0xd5)](_0x19528f(0xea)),_0x4ce5b8=a0_0xa7ffcb[_0x19528f(0xf8)](_0x2a91cc,_0x49e0fa),_0x56cdee=a0_0xa7ffcb[_0x19528f(0xf8)](_0x2a91cc,_0x4c0405),_0x451b2d=/^(?!.*\/\/.*<Credit).*<Credit/m;if(a0_0x1ccd6a[_0x19528f(0xdd)](_0x4ce5b8)){const _0x2147ab=a0_0x1ccd6a[_0x19528f(0xc3)](_0x4ce5b8,_0x19528f(0xea));!_0x451b2d[_0x19528f(0x109)](_0x2147ab)&&(console[_0x19528f(0xf5)](_0x19528f(0xdf)),process[_0x19528f(0xc6)](0x1));}if(a0_0x1ccd6a[_0x19528f(0xdd)](_0x56cdee)){const _0x2aaaab=a0_0x1ccd6a[_0x19528f(0xc3)](_0x56cdee,_0x19528f(0xea));!_0x451b2d[_0x19528f(0x109)](_0x2aaaab)&&(console[_0x19528f(0xf5)](_0x19528f(0xfe)),process[_0x19528f(0xc6)](0x1));}}catch(_0xf2e9f5){}};export const initializeSnappy=_0x25a73c=>{const _0x320400=a0_0xec48e7,_0x376473=_0x25a73c[_0x320400(0xcc)]||[],_0x28d202=_0x25a73c[_0x320400(0xd2)]||[],_0x5f48b0=_0x376473[_0x320400(0xdc)](_0x5f1495=>_0x5f1495[_0x320400(0xf3)]!==_0x320400(0xbe)&&_0x5f1495[_0x320400(0xf3)]!==_0x320400(0xc9)),_0x5d3f7e=_0x28d202[_0x320400(0xdc)](_0xbe263=>_0xbe263[_0x320400(0xf3)]!==_0x320400(0xe4));return checkLicense(),{..._0x25a73c,'admin':{..._0x25a73c[_0x320400(0x106)]||{},'disable':!![],'user':_0x320400(0xbe)},'collections':[..._0x5f48b0,Users,LoginTokens],'globals':[..._0x5d3f7e,Branding]};};export const runStickyHeartbeat=async _0x4cef64=>{const _0x31866f=a0_0xec48e7;if(typeof window===_0x31866f(0xe5))return;try{const _0xe1d93f=window[_0x31866f(0xbb)]||process.env.NEXT_PUBLIC_SNAPPY_LICENSE_TOKEN,_0xbc636e=process.env.NEXT_PUBLIC_SNAPPY_API_URL||API_PRODUCTION_URL;if(!_0xe1d93f)return;const _0x565666=localStorage[_0x31866f(0xef)](_0x31866f(0xf1))||_0x31866f(0xcb)+Math[_0x31866f(0xb9)]()[_0x31866f(0xd5)](0x24)[_0x31866f(0xc5)](0x2)+Date[_0x31866f(0xdb)]()[_0x31866f(0xd5)](0x24);localStorage[_0x31866f(0xd0)](_0x31866f(0xf1),_0x565666);const _0x1e4ae5=await fetch(_0xbc636e+_0x31866f(0xfc),{'method':_0x31866f(0x10c),'headers':{'Content-Type':_0x31866f(0x10a)},'body':JSON[_0x31866f(0xd1)]({'token':_0xe1d93f,'domain':window[_0x31866f(0xb6)][_0x31866f(0xe2)],'machineId':_0x565666,'isLocal':window[_0x31866f(0xb6)][_0x31866f(0xe2)]===_0x31866f(0xca)||window[_0x31866f(0xb6)][_0x31866f(0xe2)]===_0x31866f(0x101),'version':_0x31866f(0xc7)})}),_0x8283d2=await _0x1e4ae5[_0x31866f(0xc8)]();if(_0x8283d2['ok']){_0x4cef64({'branding':_0x8283d2[_0x31866f(0xe4)],'enforcement':_0x8283d2[_0x31866f(0xed)],'status':_0x8283d2[_0x31866f(0xbf)]});if(_0x8283d2[_0x31866f(0xbf)]===_0x31866f(0xff))__SECURITY_STATE__[_0x31866f(0x108)]=![],document[_0x31866f(0x10d)][_0x31866f(0xde)]=_0x31866f(0xb8);else _0x8283d2[_0x31866f(0xbf)]===_0x31866f(0xe7)?__SECURITY_STATE__[_0x31866f(0x108)]=![]:__SECURITY_STATE__[_0x31866f(0x108)]=!![];}else __SECURITY_STATE__[_0x31866f(0x108)]=![];}catch(_0x1af074){__SECURITY_STATE__[_0x31866f(0x108)]=![];}};
1
+ function a0_0x18ca(_0x2da803,_0x5306a0){_0x2da803=_0x2da803-0x92;const _0xf98fec=a0_0x4af9();let _0x23876e=_0xf98fec[_0x2da803];return _0x23876e;}function a0_0x4af9(){const _0x3bc64d=['116470SUuIfi','existsSync','1628620NgYSsU','994138nazyEl','setItem','606762gcGjrz','toString','7535Wbvezp','180546GyAmuC','from','/api/heartbeat','4107747mpzOvo','94239ElVSvd','7bqZgxo','2XyUQPm','6432978JCFvHA','login-tokens','20628YAkpKx','.\x20You\x20have\x20exceeded\x20your\x20Dev\x20Seat\x20limit.','❌\x20[SNAPPY\x20CORE\x20FATAL]\x20Structural\x20Integrity\x20Compromised:\x20Credit\x20tag\x20missing\x20or\x20commented\x20out\x20in\x20MobileFooter.','5403780aOSPpQ','now','readFileSync','writeFileSync','https://snappycore.wicky.id','225geRQAd','utf-8','join','Unknown\x20error','search','17652LiREzQ','419890gUxQRm','isValid','(((.+)+)+)+$','15bBGmXp','11KGIHfH','1523214uHgzDj','suspended','error','collections','920405MoWKYM','1canFcx','❌\x20[SNAPPY\x20CORE\x20FATAL]\x20License\x20','554685JClnUA','5336037jAVQHB','branding','521491xLGJpP','8vACXku','❌\x20[SNAPPY\x20CORE\x20FATAL]\x20License\x20Collision:\x20','628942seiRSN','br-','filter','1052878nrFBqd','3776877babJho','88278TWAYWo','message','undefined','127.0.0.1','2223736sYJRLs','403692lOmuIp','⚠️\x20[SNAPPY\x20CORE]\x20License\x20server\x20unreachable:\x20','enforcement','.snappy-machine-id','5hdBPAE','796kdnJTg','18ImoXqx','admin','10woASOP','3415160CuqzcN','4072810TzdAgU','5201306EQtpKt','production','constructor','3jxMJqJ','trim','body','❌\x20[SNAPPY\x20CORE\x20FATAL]\x20Missing\x20SNAPPY_LICENSE_TOKEN.\x20Production\x20builds\x20are\x20disabled\x20without\x20a\x20valid\x20license.','application/json','c3JjL2NvbXBvbmVudHMvbGF5b3V0L3BhcnRzL01vYmlsZUZvb3Rlci50c3g=','getItem','c3JjL2NvbXBvbmVudHMvbGF5b3V0L3BhcnRzL0Rlc2t0b3BGb290ZXIudHN4','users','2027703PmAEzu','2148sujgWi','collision','❌\x20[SNAPPY\x20CORE\x20FATAL]\x20License\x20Invalid:\x20','test','1694qAiUaR','0.1.0-build','1091832jtDZqh','includes','json','localhost','36632vomDCR','20TZYTjq','3609858MwLDQP','✅\x20[SNAPPY\x20CORE]\x20Engine\x20verified:\x20','slug','terminated','warn','log','433308ETeBJC','stringify','.\x20Running\x20in\x20offline\x20fallback\x20mode.','2efmamk','\x20mode.','19248984oBPiaY','cwd','snappy-machine-id','19135790abLQIV','2122960yrcwVZ','status','POST','unknown-machine','3pzlfWa','363138YFEqml','6643172RNMLEr','exit','base64','2194854wcssRn','random','toUpperCase','SNAPPY_LICENSE_TOKEN','hostname','substring','⚠️\x20[SNAPPY\x20CORE]\x20Missing\x20SNAPPY_LICENSE_TOKEN.\x20Development\x20mode\x20active.','apply','1464RuCjQZ','6711496rTAMfQ','location','1569wpLBTp','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20style=\x22background:#000;color:#fff;height:100vh;display:flex;flex-direction:column;align-items:center;justify-content:center;font-family:sans-serif;text-align:center;padding:20px;\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<h1\x20style=\x22font-size:4rem;font-weight:900;letter-spacing:-0.05em;margin:0;\x22>ACCESS\x20DENIED</h1>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<p\x20style=\x22opacity:0.5;max-width:400px;line-height:1.6;\x22>Your\x20SNAPPY\x20license\x20has\x20been\x20terminated.\x20Please\x20contact\x20support@wicky.id</p>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20','2824969pvEJSU',':\x20This\x20instance\x20has\x20been\x20remotely\x20deactivated.','shift','push','innerHTML','8fvxTOO','68996MDmcKJ','globals','0.1.0-runtime','❌\x20[SNAPPY\x20CORE\x20FATAL]\x20Structural\x20Integrity\x20Compromised:\x20Credit\x20tag\x20missing\x20or\x20commented\x20out\x20in\x20DesktopFooter.'];a0_0x4af9=function(){return _0x3bc64d;};return a0_0x4af9();}(function(_0x1cb5b8,_0x5df282){const _0x3a8477=a0_0x18ca,_0x81af2d=_0x1cb5b8();while(!![]){try{const _0x1a2dfd=-parseInt(_0x3a8477(0xef))/0x1+-parseInt(_0x3a8477(0x10d))/0x2*(parseInt(_0x3a8477(0xc5))/0x3)+-parseInt(_0x3a8477(0x105))/0x4*(parseInt(_0x3a8477(0xa7))/0x5)+-parseInt(_0x3a8477(0xf3))/0x6+-parseInt(_0x3a8477(0xd5))/0x7+-parseInt(_0x3a8477(0xea))/0x8+parseInt(_0x3a8477(0xe6))/0x9;if(_0x1a2dfd===_0x5df282)break;else _0x81af2d['push'](_0x81af2d['shift']());}catch(_0x500876){_0x81af2d['push'](_0x81af2d['shift']());}}}(a0_0x4af9,0x41ce4),(function(_0xe82637,_0x2673ad){const _0x23d794=a0_0x18ca,_0x24a8cf=(function(){let _0xa590aa=!![];return function(_0x18ca3b,_0x36a260){const _0x5a10bc=_0xa590aa?function(){const _0x22bb05=a0_0x18ca;if(_0x36a260){const _0xf5cc63=_0x36a260[_0x22bb05(0xfa)](_0x18ca3b,arguments);return _0x36a260=null,_0xf5cc63;}}:function(){};return _0xa590aa=![],_0x5a10bc;};}()),_0x3d619a=_0x24a8cf(this,function(){const _0x17916c=a0_0x18ca;return _0x3d619a[_0x17916c(0x110)]()[_0x17916c(0x99)](_0x17916c(0x9d))[_0x17916c(0x110)]()[_0x17916c(0xc4)](_0x3d619a)[_0x17916c(0x99)](_0x17916c(0x9d));});_0x3d619a();const _0x33548b=a0_0x5905,_0x461a54=_0xe82637();while(!![]){try{const _0x9fdeb3=parseInt(_0x33548b(0xf1))/0x1*(-parseInt(_0x33548b(0xa7))/0x2)+parseInt(_0x33548b(0xbb))/0x3+parseInt(_0x33548b(0x115))/0x4*(parseInt(_0x33548b(0xf5))/0x5)+parseInt(_0x33548b(0xdb))/0x6*(-parseInt(_0x33548b(0x11e))/0x7)+parseInt(_0x33548b(0xfd))/0x8+parseInt(_0x33548b(0xa0))/0x9+parseInt(_0x33548b(0xfb))/0xa;if(_0x9fdeb3===_0x2673ad)break;else _0x461a54[_0x23d794(0x103)](_0x461a54[_0x23d794(0x102)]());}catch(_0x586c95){_0x461a54[_0x23d794(0x103)](_0x461a54[_0x23d794(0x102)]());}}}(a0_0x495d,0xb813a),(function(_0x303125,_0x3706d4){const _0x55e447=a0_0x5905,_0x1359da=a0_0x44f5,_0x656c05=_0x303125();while(!![]){try{const _0x203cb7=-parseInt(_0x1359da(0x217))/0x1*(parseInt(_0x1359da(0x23c))/0x2)+parseInt(_0x1359da(0x1d1))/0x3+parseInt(_0x1359da(0x204))/0x4+-parseInt(_0x1359da(0x1e3))/0x5+parseInt(_0x1359da(0x235))/0x6+parseInt(_0x1359da(0x242))/0x7*(parseInt(_0x1359da(0x22f))/0x8)+-parseInt(_0x1359da(0x20b))/0x9*(-parseInt(_0x1359da(0x1f9))/0xa);if(_0x203cb7===_0x3706d4)break;else _0x656c05[_0x55e447(0xa9)](_0x656c05[_0x55e447(0xeb)]());}catch(_0x5c201c){_0x656c05[_0x55e447(0xa9)](_0x656c05[_0x55e447(0xeb)]());}}}(a0_0x5a03,0x37e98),(function(_0x46bde0,_0x5cced1){const _0x4f7242=a0_0x44f5,_0x2c714b=(function(){let _0x54875a=!![];return function(_0x5c34ea,_0x3b4aed){const _0x4d79cc=_0x54875a?function(){const _0x3dfc8a=a0_0x44f5;if(_0x3b4aed){const _0x36f494=_0x3b4aed[_0x3dfc8a(0x1dd)](_0x5c34ea,arguments);return _0x3b4aed=null,_0x36f494;}}:function(){};return _0x54875a=![],_0x4d79cc;};}()),_0xb49b1e=_0x2c714b(this,function(){const _0x4acd1c=a0_0x44f5;return _0xb49b1e[_0x4acd1c(0x234)]()[_0x4acd1c(0x1d3)](_0x4acd1c(0x1e2))[_0x4acd1c(0x234)]()[_0x4acd1c(0x246)](_0xb49b1e)[_0x4acd1c(0x1d3)](_0x4acd1c(0x1e2));});_0xb49b1e();const _0x45ac23=a0_0x2863,_0x1513d8=_0x46bde0();while(!![]){try{const _0x1f0de6=-parseInt(_0x45ac23(0x101))/0x1+-parseInt(_0x45ac23(0x154))/0x2*(parseInt(_0x45ac23(0x171))/0x3)+-parseInt(_0x45ac23(0x16e))/0x4+-parseInt(_0x45ac23(0x149))/0x5*(-parseInt(_0x45ac23(0x16b))/0x6)+parseInt(_0x45ac23(0x14b))/0x7*(parseInt(_0x45ac23(0x12f))/0x8)+-parseInt(_0x45ac23(0x123))/0x9+parseInt(_0x45ac23(0x166))/0xa*(parseInt(_0x45ac23(0x16a))/0xb);if(_0x1f0de6===_0x5cced1)break;else _0x1513d8[_0x4f7242(0x201)](_0x1513d8[_0x4f7242(0x236)]());}catch(_0x27c1e1){_0x1513d8[_0x4f7242(0x201)](_0x1513d8[_0x4f7242(0x236)]());}}}(a0_0x5a99,0xcf295),function(_0x269591,_0x28ccd3){const _0x2423b0=(function(){let _0x42f469=!![];return function(_0x46dc44,_0x993ab8){const _0x5a7bdd=_0x42f469?function(){const _0x4bff4f=a0_0x5905;if(_0x993ab8){const _0x22e138=_0x993ab8[_0x4bff4f(0xb5)](_0x46dc44,arguments);return _0x993ab8=null,_0x22e138;}}:function(){};return _0x42f469=![],_0x5a7bdd;};}()),_0x407951=_0x2423b0(this,function(){const _0xb44f=a0_0x5905;return _0x407951[_0xb44f(0xef)]()[_0xb44f(0xbd)](_0xb44f(0xa3))[_0xb44f(0xef)]()[_0xb44f(0x111)](_0x407951)[_0xb44f(0xbd)](_0xb44f(0xa3));});_0x407951();const _0x19a4fb=a0_0x2863,_0x47d97e=a0_0x1e5b,_0x2869a8=_0x269591();while(!![]){try{const _0x587bcf=parseInt(_0x47d97e(0x145))/0x1*(parseInt(_0x47d97e(0xff))/0x2)+-parseInt(_0x47d97e(0x114))/0x3+-parseInt(_0x47d97e(0x11a))/0x4+-parseInt(_0x47d97e(0x134))/0x5*(parseInt(_0x47d97e(0x130))/0x6)+-parseInt(_0x47d97e(0x10a))/0x7+-parseInt(_0x47d97e(0x148))/0x8*(-parseInt(_0x47d97e(0x12f))/0x9)+parseInt(_0x47d97e(0x133))/0xa;if(_0x587bcf===_0x28ccd3)break;else _0x2869a8[_0x19a4fb(0x109)](_0x2869a8[_0x19a4fb(0x16d)]());}catch(_0x2578a4){_0x2869a8[_0x19a4fb(0x109)](_0x2869a8[_0x19a4fb(0x16d)]());}}}(a0_0x24b5,0x4607f)))));function a0_0x5a99(){const _0x44834f=a0_0x44f5,_0x3e52cb=[_0x44834f(0x1f0),_0x44834f(0x1ec),_0x44834f(0x208),_0x44834f(0x1de),_0x44834f(0x1d5),_0x44834f(0x1f6),_0x44834f(0x221),_0x44834f(0x20e),_0x44834f(0x23a),_0x44834f(0x23b),_0x44834f(0x1ee),_0x44834f(0x237),_0x44834f(0x1d2),_0x44834f(0x236),_0x44834f(0x238),_0x44834f(0x1e0),_0x44834f(0x222),_0x44834f(0x216),_0x44834f(0x1f1),_0x44834f(0x1f2),_0x44834f(0x1ed),_0x44834f(0x20f),_0x44834f(0x21f),_0x44834f(0x1ff),_0x44834f(0x246),_0x44834f(0x22a),_0x44834f(0x201),_0x44834f(0x1fd),_0x44834f(0x1fc),_0x44834f(0x22b),_0x44834f(0x21e),_0x44834f(0x228),_0x44834f(0x202),_0x44834f(0x1e4),_0x44834f(0x22e),_0x44834f(0x1db),_0x44834f(0x1f5),_0x44834f(0x1f3),_0x44834f(0x247),_0x44834f(0x1d3),_0x44834f(0x23d),_0x44834f(0x1e7),_0x44834f(0x1fe),_0x44834f(0x1d4),_0x44834f(0x1da),_0x44834f(0x1e8),_0x44834f(0x239),_0x44834f(0x21d),_0x44834f(0x1dd),_0x44834f(0x1e5),_0x44834f(0x244),_0x44834f(0x1f8),_0x44834f(0x1ce),_0x44834f(0x1f7),_0x44834f(0x212),_0x44834f(0x215),_0x44834f(0x206),_0x44834f(0x21a),_0x44834f(0x1f4),_0x44834f(0x234),_0x44834f(0x22d),_0x44834f(0x200),_0x44834f(0x232),_0x44834f(0x225),_0x44834f(0x220),_0x44834f(0x20d),_0x44834f(0x1d9),_0x44834f(0x1e2),_0x44834f(0x23e),_0x44834f(0x240),_0x44834f(0x231),_0x44834f(0x1d6),_0x44834f(0x1ea),_0x44834f(0x210),_0x44834f(0x230),_0x44834f(0x245),_0x44834f(0x1d0),_0x44834f(0x1df),_0x44834f(0x1eb),_0x44834f(0x20a),_0x44834f(0x205),_0x44834f(0x1e9),_0x44834f(0x203),_0x44834f(0x218),_0x44834f(0x1cf),_0x44834f(0x20c),_0x44834f(0x214),_0x44834f(0x1fb),_0x44834f(0x1d8),_0x44834f(0x1e1),_0x44834f(0x223),_0x44834f(0x21c),_0x44834f(0x207),_0x44834f(0x23f),_0x44834f(0x241),_0x44834f(0x1e6),_0x44834f(0x1dc),_0x44834f(0x213),_0x44834f(0x1ef),_0x44834f(0x243),_0x44834f(0x224),_0x44834f(0x227),_0x44834f(0x1d7),_0x44834f(0x21b),_0x44834f(0x209),_0x44834f(0x22c),_0x44834f(0x1fa),_0x44834f(0x211),_0x44834f(0x219),_0x44834f(0x229),_0x44834f(0x233),_0x44834f(0x1cd),_0x44834f(0x226)];return a0_0x5a99=function(){return _0x3e52cb;},a0_0x5a99();}function a0_0x5a03(){const _0x2f79c1=a0_0x5905,_0x3e9b65=[_0x2f79c1(0xd7),_0x2f79c1(0xda),_0x2f79c1(0xce),_0x2f79c1(0xdf),_0x2f79c1(0xdc),_0x2f79c1(0x11d),_0x2f79c1(0xc7),_0x2f79c1(0xde),_0x2f79c1(0xcc),_0x2f79c1(0xe0),_0x2f79c1(0xc5),_0x2f79c1(0x104),_0x2f79c1(0xe7),_0x2f79c1(0x11b),_0x2f79c1(0x10d),_0x2f79c1(0xac),_0x2f79c1(0xaf),_0x2f79c1(0x117),_0x2f79c1(0xb4),_0x2f79c1(0xd1),_0x2f79c1(0xf8),_0x2f79c1(0xa4),_0x2f79c1(0x114),_0x2f79c1(0xf0),_0x2f79c1(0xa9),_0x2f79c1(0x10c),_0x2f79c1(0xff),_0x2f79c1(0xc2),_0x2f79c1(0xa8),_0x2f79c1(0x113),_0x2f79c1(0x9d),_0x2f79c1(0xa2),_0x2f79c1(0xcb),_0x2f79c1(0x118),_0x2f79c1(0xaa),_0x2f79c1(0xae),_0x2f79c1(0xc9),_0x2f79c1(0xc4),_0x2f79c1(0xad),_0x2f79c1(0x9f),_0x2f79c1(0xe4),_0x2f79c1(0xd3),_0x2f79c1(0x101),_0x2f79c1(0xca),_0x2f79c1(0xd9),_0x2f79c1(0x9a),_0x2f79c1(0xee),_0x2f79c1(0xf6),_0x2f79c1(0x9b),_0x2f79c1(0xba),_0x2f79c1(0xd6),_0x2f79c1(0xfc),_0x2f79c1(0x116),_0x2f79c1(0x10a),_0x2f79c1(0x109),_0x2f79c1(0x107),_0x2f79c1(0x112),_0x2f79c1(0xea),_0x2f79c1(0xb0),_0x2f79c1(0xc8),_0x2f79c1(0xc3),_0x2f79c1(0xb1),_0x2f79c1(0xbf),_0x2f79c1(0xc1),_0x2f79c1(0x9c),_0x2f79c1(0x102),_0x2f79c1(0x119),_0x2f79c1(0xf7),_0x2f79c1(0xab),_0x2f79c1(0xb6),_0x2f79c1(0xd8),_0x2f79c1(0xec),_0x2f79c1(0xa6),_0x2f79c1(0xcf),_0x2f79c1(0x10e),_0x2f79c1(0xef),_0x2f79c1(0xbc),_0x2f79c1(0xeb),_0x2f79c1(0xb9),_0x2f79c1(0xb2),_0x2f79c1(0xf9),_0x2f79c1(0xf3),_0x2f79c1(0x10b),_0x2f79c1(0xe6),_0x2f79c1(0x110),_0x2f79c1(0x103),_0x2f79c1(0xb8),_0x2f79c1(0x100),_0x2f79c1(0xfe),_0x2f79c1(0x9e),_0x2f79c1(0xc6),_0x2f79c1(0xe3),_0x2f79c1(0x11a),_0x2f79c1(0x111),_0x2f79c1(0xd5),_0x2f79c1(0xed),_0x2f79c1(0xdd),_0x2f79c1(0xcd),_0x2f79c1(0xb7),_0x2f79c1(0xe5),_0x2f79c1(0xfa),_0x2f79c1(0xbd),_0x2f79c1(0xe8),_0x2f79c1(0xe1),_0x2f79c1(0xf2),_0x2f79c1(0x10f),_0x2f79c1(0xd2),_0x2f79c1(0x105),_0x2f79c1(0x108),_0x2f79c1(0x106),_0x2f79c1(0xa1),_0x2f79c1(0xb5),_0x2f79c1(0xf4),_0x2f79c1(0xa5),_0x2f79c1(0xd0),_0x2f79c1(0xe2),_0x2f79c1(0xa3),_0x2f79c1(0xbe),_0x2f79c1(0xe9),_0x2f79c1(0xb3),_0x2f79c1(0xc0),_0x2f79c1(0xd4),_0x2f79c1(0x11c)];return a0_0x5a03=function(){return _0x3e9b65;},a0_0x5a03();}const a0_0xec48e7=a0_0x5c8b;function a0_0x24b5(){const _0xeb60f5=a0_0x2863,_0x4225b1=[_0xeb60f5(0x109),_0xeb60f5(0x129),_0xeb60f5(0x13a),_0xeb60f5(0x15b),_0xeb60f5(0x10f),_0xeb60f5(0x15e),_0xeb60f5(0x133),_0xeb60f5(0x108),_0xeb60f5(0x144),_0xeb60f5(0x102),_0xeb60f5(0x14a),_0xeb60f5(0x142),_0xeb60f5(0x15f),_0xeb60f5(0x140),_0xeb60f5(0x15c),_0xeb60f5(0x107),_0xeb60f5(0x160),_0xeb60f5(0x10b),_0xeb60f5(0x13e),_0xeb60f5(0x122),_0xeb60f5(0x103),_0xeb60f5(0x159),_0xeb60f5(0x131),_0xeb60f5(0x162),_0xeb60f5(0x14f),_0xeb60f5(0x11a),_0xeb60f5(0x170),_0xeb60f5(0x134),_0xeb60f5(0x11f),_0xeb60f5(0x12c),_0xeb60f5(0x12b),_0xeb60f5(0x148),_0xeb60f5(0x163),_0xeb60f5(0x14d),_0xeb60f5(0x150),_0xeb60f5(0x119),_0xeb60f5(0x16f),_0xeb60f5(0x161),_0xeb60f5(0x14c),_0xeb60f5(0x136),_0xeb60f5(0x153),_0xeb60f5(0x146),_0xeb60f5(0x106),_0xeb60f5(0x169),_0xeb60f5(0x12e),_0xeb60f5(0x111),_0xeb60f5(0x11b),_0xeb60f5(0x10a),_0xeb60f5(0x12d),_0xeb60f5(0x16c),_0xeb60f5(0x128),_0xeb60f5(0x151),_0xeb60f5(0x11e),_0xeb60f5(0x155),_0xeb60f5(0x127),_0xeb60f5(0x16d),_0xeb60f5(0x167),_0xeb60f5(0x14e),_0xeb60f5(0x112),_0xeb60f5(0x13c),_0xeb60f5(0x110),_0xeb60f5(0x116),_0xeb60f5(0x138),_0xeb60f5(0x124),_0xeb60f5(0x120),_0xeb60f5(0x10c),_0xeb60f5(0x147),_0xeb60f5(0x10d),_0xeb60f5(0x15d),_0xeb60f5(0x121),_0xeb60f5(0x113),_0xeb60f5(0x165),_0xeb60f5(0x156),_0xeb60f5(0x130),_0xeb60f5(0x145),_0xeb60f5(0x105),_0xeb60f5(0x118),_0xeb60f5(0x135),_0xeb60f5(0x164),_0xeb60f5(0x137),_0xeb60f5(0x13f),_0xeb60f5(0x13b),_0xeb60f5(0x15a),_0xeb60f5(0x12a),_0xeb60f5(0x152),_0xeb60f5(0x11d),_0xeb60f5(0x104),_0xeb60f5(0x158),_0xeb60f5(0x168),_0xeb60f5(0x117),_0xeb60f5(0x114),_0xeb60f5(0x13d),_0xeb60f5(0x125),_0xeb60f5(0x115),_0xeb60f5(0x126),_0xeb60f5(0x143),_0xeb60f5(0x11c),_0xeb60f5(0x139),_0xeb60f5(0x157),_0xeb60f5(0x132),_0xeb60f5(0x10e),_0xeb60f5(0x141)];return a0_0x24b5=function(){return _0x4225b1;},a0_0x24b5();}function a0_0x1e5b(_0x133265,_0x2b6880){_0x133265=_0x133265-0xe7;const _0x2e7279=a0_0x24b5();let _0x233a53=_0x2e7279[_0x133265];return _0x233a53;}(function(_0xce3f86,_0xaa27ab){const _0x32ca9e=(function(){let _0xbfedb8=!![];return function(_0xfd7a6c,_0x26968e){const _0x361d02=_0xbfedb8?function(){const _0x44a8c6=a0_0x2863;if(_0x26968e){const _0x376178=_0x26968e[_0x44a8c6(0x11f)](_0xfd7a6c,arguments);return _0x26968e=null,_0x376178;}}:function(){};return _0xbfedb8=![],_0x361d02;};}()),_0x4ac157=_0x32ca9e(this,function(){const _0x308f77=a0_0x2863;return _0x4ac157[_0x308f77(0x12a)]()[_0x308f77(0x116)](_0x308f77(0x132))[_0x308f77(0x12a)]()[_0x308f77(0x107)](_0x4ac157)[_0x308f77(0x116)](_0x308f77(0x132));});_0x4ac157();const _0x25fb84=a0_0x1e5b,_0x2da8a0=a0_0x5c8b,_0x317cea=_0xce3f86();while(!![]){try{const _0x5f2202=parseInt(_0x2da8a0(0xcd))/0x1*(-parseInt(_0x2da8a0(0xd4))/0x2)+-parseInt(_0x2da8a0(0xf6))/0x3*(parseInt(_0x2da8a0(0xf2))/0x4)+-parseInt(_0x2da8a0(0xd9))/0x5*(parseInt(_0x2da8a0(0x103))/0x6)+parseInt(_0x2da8a0(0x102))/0x7+-parseInt(_0x2da8a0(0x10b))/0x8*(-parseInt(_0x2da8a0(0xfd))/0x9)+parseInt(_0x2da8a0(0x10f))/0xa+parseInt(_0x2da8a0(0xda))/0xb;if(_0x5f2202===_0xaa27ab)break;else _0x317cea[_0x25fb84(0x123)](_0x317cea[_0x25fb84(0xf4)]());}catch(_0x37adc2){_0x317cea[_0x25fb84(0x123)](_0x317cea[_0x25fb84(0xf4)]());}}}(a0_0x182b,0x56688));function a0_0x182b(){const _0xfe29ca=a0_0x1e5b,_0x240178=[_0xfe29ca(0xf2),_0xfe29ca(0x109),_0xfe29ca(0x10e),_0xfe29ca(0x140),_0xfe29ca(0xe8),_0xfe29ca(0x10b),_0xfe29ca(0x14b),_0xfe29ca(0x13a),_0xfe29ca(0xee),_0xfe29ca(0x104),_0xfe29ca(0x120),_0xfe29ca(0xf0),_0xfe29ca(0x13c),_0xfe29ca(0x137),_0xfe29ca(0xed),_0xfe29ca(0xfe),_0xfe29ca(0x112),_0xfe29ca(0xf9),_0xfe29ca(0xfa),_0xfe29ca(0x13b),_0xfe29ca(0x14c),_0xfe29ca(0x141),_0xfe29ca(0x126),_0xfe29ca(0x102),_0xfe29ca(0x14a),_0xfe29ca(0xf5),_0xfe29ca(0x105),_0xfe29ca(0x116),_0xfe29ca(0x115),_0xfe29ca(0x121),_0xfe29ca(0x10c),_0xfe29ca(0xec),_0xfe29ca(0x111),_0xfe29ca(0x12a),_0xfe29ca(0x11d),_0xfe29ca(0x11f),_0xfe29ca(0x13d),_0xfe29ca(0x13f),_0xfe29ca(0xfc),_0xfe29ca(0x117),_0xfe29ca(0x129),_0xfe29ca(0x143),_0xfe29ca(0x136),_0xfe29ca(0x122),_0xfe29ca(0x128),_0xfe29ca(0x101),_0xfe29ca(0xf8),_0xfe29ca(0x10f),_0xfe29ca(0x12c),_0xfe29ca(0xfd),_0xfe29ca(0xf7),_0xfe29ca(0x108),_0xfe29ca(0x103),_0xfe29ca(0x146),_0xfe29ca(0xeb),_0xfe29ca(0x12b),_0xfe29ca(0xf3),_0xfe29ca(0x12e),_0xfe29ca(0x135),_0xfe29ca(0x11e),_0xfe29ca(0x125),_0xfe29ca(0x127),_0xfe29ca(0x138),_0xfe29ca(0xf6),_0xfe29ca(0x142),_0xfe29ca(0xf1),_0xfe29ca(0x107),_0xfe29ca(0x11c),_0xfe29ca(0xe7),_0xfe29ca(0x139),_0xfe29ca(0xe9),_0xfe29ca(0x124),_0xfe29ca(0x132),_0xfe29ca(0x11b),_0xfe29ca(0xef),_0xfe29ca(0xea),_0xfe29ca(0x119),_0xfe29ca(0x113),_0xfe29ca(0x149),_0xfe29ca(0x144),_0xfe29ca(0x12d),_0xfe29ca(0x131),_0xfe29ca(0x13e),_0xfe29ca(0x118),_0xfe29ca(0xfb),_0xfe29ca(0x147),_0xfe29ca(0x106),_0xfe29ca(0x10d),_0xfe29ca(0x100),_0xfe29ca(0x110)];return a0_0x182b=function(){return _0x240178;},a0_0x182b();}const a0_0x4cc3a1=(function(){const _0xcc2f6d=(function(){let _0x4bf068=!![];return function(_0x44c8fd,_0x15b894){const _0x4dbe83=_0x4bf068?function(){const _0x2b8f70=a0_0x1e5b;if(_0x15b894){const _0x5e7318=_0x15b894[_0x2b8f70(0x13f)](_0x44c8fd,arguments);return _0x15b894=null,_0x5e7318;}}:function(){};return _0x4bf068=![],_0x4dbe83;};}()),_0x466761=_0xcc2f6d(this,function(){const _0xe5ae06=a0_0x1e5b;return _0x466761[_0xe5ae06(0x110)]()[_0xe5ae06(0xfa)](_0xe5ae06(0x120))[_0xe5ae06(0x110)]()[_0xe5ae06(0x132)](_0x466761)[_0xe5ae06(0xfa)](_0xe5ae06(0x120));});_0x466761();let _0x131f1a=!![];return function(_0x39422b,_0x12273f){const _0x20c27e=_0x131f1a?function(){const _0xad4b67=a0_0x5c8b;if(_0x12273f){const _0x3323f0=_0x12273f[_0xad4b67(0xfb)](_0x39422b,arguments);return _0x12273f=null,_0x3323f0;}}:function(){};return _0x131f1a=![],_0x20c27e;};}()),a0_0x49bdbc=a0_0x4cc3a1(this,function(){const _0x10f948=a0_0x5c8b;return a0_0x49bdbc[_0x10f948(0xd5)]()[_0x10f948(0xe8)](_0x10f948(0xe0))[_0x10f948(0xd5)]()[_0x10f948(0xc4)](a0_0x49bdbc)[_0x10f948(0xe8)](_0x10f948(0xe0));});a0_0x49bdbc();function a0_0x5905(_0x2dad52,_0x57c99a){_0x2dad52=_0x2dad52-0x9a;const _0x4761a2=a0_0x495d();let _0x10b124=_0x4761a2[_0x2dad52];return _0x10b124;}function a0_0x495d(){const _0x147071=a0_0x18ca,_0x58bd27=[_0x147071(0xf5),_0x147071(0xa8),_0x147071(0x11e),_0x147071(0xb6),_0x147071(0xbe),_0x147071(0x11f),_0x147071(0xac),_0x147071(0xb9),_0x147071(0xc6),_0x147071(0xb7),_0x147071(0xad),_0x147071(0xc9),_0x147071(0xf7),_0x147071(0xa1),_0x147071(0xb3),_0x147071(0x102),_0x147071(0x11c),_0x147071(0x115),_0x147071(0xa5),_0x147071(0x110),_0x147071(0xbb),_0x147071(0x9b),_0x147071(0xd6),_0x147071(0xcf),_0x147071(0xde),_0x147071(0x111),_0x147071(0xc1),_0x147071(0x116),_0x147071(0xa2),_0x147071(0xdc),_0x147071(0x104),_0x147071(0x10a),_0x147071(0xa3),_0x147071(0xfc),_0x147071(0xae),_0x147071(0xb5),_0x147071(0xf9),_0x147071(0xaa),_0x147071(0xca),_0x147071(0x11d),_0x147071(0x92),_0x147071(0x94),_0x147071(0x9c),_0x147071(0xd9),_0x147071(0xec),_0x147071(0xd2),_0x147071(0xe1),_0x147071(0xc2),_0x147071(0xf4),_0x147071(0x114),_0x147071(0xdb),_0x147071(0xf2),_0x147071(0xe8),_0x147071(0xc4),_0x147071(0xe9),_0x147071(0xc3),_0x147071(0xd0),_0x147071(0xbc),_0x147071(0xdf),_0x147071(0x101),_0x147071(0xfd),_0x147071(0xb4),_0x147071(0xff),_0x147071(0x109),_0x147071(0x97),_0x147071(0x9f),_0x147071(0x117),_0x147071(0x9e),_0x147071(0xed),_0x147071(0xee),_0x147071(0xd3),_0x147071(0x100),_0x147071(0x10e),_0x147071(0xb1),_0x147071(0xe3),_0x147071(0x10b),_0x147071(0x9d),_0x147071(0xfb),_0x147071(0xa6),_0x147071(0xc0),_0x147071(0x118),_0x147071(0xc8),_0x147071(0x103),_0x147071(0xa0),_0x147071(0xe7),_0x147071(0xe5),_0x147071(0x11a),_0x147071(0xc7),_0x147071(0xbf),_0x147071(0x95),_0x147071(0xbd),_0x147071(0xf0),_0x147071(0xe0),_0x147071(0x96),_0x147071(0xfa),_0x147071(0x108),_0x147071(0xd4),_0x147071(0xd8),_0x147071(0x112),_0x147071(0xf1),_0x147071(0xce),_0x147071(0x9a),_0x147071(0x99),_0x147071(0xa4),_0x147071(0xb2),_0x147071(0xf6),_0x147071(0xdd),_0x147071(0x106),_0x147071(0x93),_0x147071(0xcb),_0x147071(0x11b),_0x147071(0xfe),_0x147071(0xb8),_0x147071(0xaf),_0x147071(0x107),_0x147071(0xcd),_0x147071(0xcc),_0x147071(0xb0),_0x147071(0xeb),_0x147071(0xd1),_0x147071(0xa9),_0x147071(0xe2),_0x147071(0xda),_0x147071(0xe4),_0x147071(0xd7),_0x147071(0x113),_0x147071(0x10c),_0x147071(0x98),_0x147071(0x10f),_0x147071(0xab),_0x147071(0xf8),_0x147071(0xba),_0x147071(0x119)];return a0_0x495d=function(){return _0x58bd27;},a0_0x495d();}function a0_0x2863(_0x321b62,_0x1c5c7f){_0x321b62=_0x321b62-0x101;const _0x588af4=a0_0x5a99();let _0x16784a=_0x588af4[_0x321b62];return _0x16784a;}import a0_0x359118 from'fs';function a0_0x44f5(_0x3704f3,_0x5422e1){_0x3704f3=_0x3704f3-0x1cd;const _0x9711c=a0_0x5a03();let _0x550f0d=_0x9711c[_0x3704f3];return _0x550f0d;}import a0_0x38cd0d from'path';import{Users}from'../collections/Users';function a0_0x5c8b(_0x44c68f,_0x5f339f){_0x44c68f=_0x44c68f-0xb6;const _0x45325c=a0_0x182b();let _0xb24e53=_0x45325c[_0x44c68f];return _0xb24e53;}import{LoginTokens}from'../collections/LoginTokens';import{Branding}from'../globals/Branding';const API_PRODUCTION_URL=a0_0xec48e7(0xc1);export const __SECURITY_STATE__={'isValid':!![]};export const checkLicense=async()=>{const _0xf5dfa=a0_0xec48e7,_0x30a940=process.env.SNAPPY_LICENSE_TOKEN,_0x30cfca=process.env.SNAPPY_API_URL||API_PRODUCTION_URL,_0x4511bb=process[_0xf5dfa(0xeb)](),_0xa2026d=a0_0x38cd0d[_0xf5dfa(0xf8)](_0x4511bb,_0xf5dfa(0xf4));let _0x1c4cb9;try{a0_0x359118[_0xf5dfa(0xdd)](_0xa2026d)?_0x1c4cb9=a0_0x359118[_0xf5dfa(0xc3)](_0xa2026d,_0xf5dfa(0xea))[_0xf5dfa(0x105)]():(_0x1c4cb9=Math[_0xf5dfa(0xb9)]()[_0xf5dfa(0xd5)](0x24)[_0xf5dfa(0xc5)](0x2)+Date[_0xf5dfa(0xdb)]()[_0xf5dfa(0xd5)](0x24),a0_0x359118[_0xf5dfa(0xc2)](_0xa2026d,_0x1c4cb9));}catch(_0x2002ae){_0x1c4cb9=_0xf5dfa(0xec);}const _0xc677c0=process.env.VERCEL_URL||_0xf5dfa(0xca),_0x3125e3=_0xc677c0[_0xf5dfa(0xee)](_0xf5dfa(0xca))||_0xc677c0[_0xf5dfa(0xee)](_0xf5dfa(0x101));if(!_0x30a940){if(process.env.NODE_ENV===_0xf5dfa(0x10e))console[_0xf5dfa(0xf5)](_0xf5dfa(0xd3)),process[_0xf5dfa(0xc6)](0x1);else{console[_0xf5dfa(0xbd)](_0xf5dfa(0xce));return;}}try{const _0x3ee4e4=await fetch(_0x30cfca+_0xf5dfa(0xfc),{'method':_0xf5dfa(0x10c),'headers':{'Content-Type':_0xf5dfa(0x10a)},'body':JSON[_0xf5dfa(0xd1)]({'token':_0x30a940,'domain':_0xc677c0,'machineId':_0x1c4cb9,'isLocal':_0x3125e3,'version':_0xf5dfa(0xd8)})}),_0x1e687d=await _0x3ee4e4[_0xf5dfa(0xc8)]();!_0x1e687d['ok']&&(_0x1e687d[_0xf5dfa(0xbf)]===_0xf5dfa(0xc0)?console[_0xf5dfa(0xf5)](_0xf5dfa(0xbc)+_0x1e687d[_0xf5dfa(0xf5)]+_0xf5dfa(0xb7)):console[_0xf5dfa(0xf5)](_0xf5dfa(0xcf)+(_0x1e687d[_0xf5dfa(0xf5)]||_0xf5dfa(0xf0))),process[_0xf5dfa(0xc6)](0x1)),(_0x1e687d[_0xf5dfa(0xbf)]===_0xf5dfa(0xe7)||_0x1e687d[_0xf5dfa(0xbf)]===_0xf5dfa(0xff))&&(console[_0xf5dfa(0xf5)](_0xf5dfa(0x104)+_0x1e687d[_0xf5dfa(0xbf)][_0xf5dfa(0xe3)]()+_0xf5dfa(0xba)),process[_0xf5dfa(0xc6)](0x1)),console[_0xf5dfa(0x107)](_0xf5dfa(0xe6)+_0x1e687d[_0xf5dfa(0xbf)][_0xf5dfa(0xe3)]()+_0xf5dfa(0x100));}catch(_0x184d75){console[_0xf5dfa(0xbd)](_0xf5dfa(0xe1)+_0x184d75[_0xf5dfa(0xfa)]+_0xf5dfa(0xe9));}try{const _0x5ed4b1=Buffer[_0xf5dfa(0xd7)](_0xf5dfa(0xf9),_0xf5dfa(0xd6))[_0xf5dfa(0xd5)](_0xf5dfa(0xea)),_0x4bfc53=Buffer[_0xf5dfa(0xd7)](_0xf5dfa(0xf7),_0xf5dfa(0xd6))[_0xf5dfa(0xd5)](_0xf5dfa(0xea)),_0x5b203c=a0_0x38cd0d[_0xf5dfa(0xf8)](_0x4511bb,_0x5ed4b1),_0x3908b8=a0_0x38cd0d[_0xf5dfa(0xf8)](_0x4511bb,_0x4bfc53),_0x2c4805=/^(?!.*\/\/.*<Credit).*<Credit/m;if(a0_0x359118[_0xf5dfa(0xdd)](_0x5b203c)){const _0x267c11=a0_0x359118[_0xf5dfa(0xc3)](_0x5b203c,_0xf5dfa(0xea));!_0x2c4805[_0xf5dfa(0x109)](_0x267c11)&&(console[_0xf5dfa(0xf5)](_0xf5dfa(0xdf)),process[_0xf5dfa(0xc6)](0x1));}if(a0_0x359118[_0xf5dfa(0xdd)](_0x3908b8)){const _0x3f8ef6=a0_0x359118[_0xf5dfa(0xc3)](_0x3908b8,_0xf5dfa(0xea));!_0x2c4805[_0xf5dfa(0x109)](_0x3f8ef6)&&(console[_0xf5dfa(0xf5)](_0xf5dfa(0xfe)),process[_0xf5dfa(0xc6)](0x1));}}catch(_0x53adff){}};export const initializeSnappy=_0x3d8648=>{const _0x500c16=a0_0xec48e7,_0x485cec=_0x3d8648[_0x500c16(0xcc)]||[],_0x14ca0e=_0x3d8648[_0x500c16(0xd2)]||[],_0x55e65e=_0x485cec[_0x500c16(0xdc)](_0x3df18d=>_0x3df18d[_0x500c16(0xf3)]!==_0x500c16(0xbe)&&_0x3df18d[_0x500c16(0xf3)]!==_0x500c16(0xc9)),_0x3d0378=_0x14ca0e[_0x500c16(0xdc)](_0x7925bf=>_0x7925bf[_0x500c16(0xf3)]!==_0x500c16(0xe4));return checkLicense(),{..._0x3d8648,'admin':{..._0x3d8648[_0x500c16(0x106)]||{},'disable':!![],'user':_0x500c16(0xbe)},'collections':[..._0x55e65e,Users,LoginTokens],'globals':[..._0x3d0378,Branding]};};export const runStickyHeartbeat=async _0x55a677=>{const _0x4f68b7=a0_0xec48e7;if(typeof window===_0x4f68b7(0xe5))return;try{const _0x5e7fd5=window[_0x4f68b7(0xbb)]||process.env.NEXT_PUBLIC_SNAPPY_LICENSE_TOKEN,_0x5e0680=process.env.NEXT_PUBLIC_SNAPPY_API_URL||API_PRODUCTION_URL;if(!_0x5e7fd5)return;const _0x4ab468=localStorage[_0x4f68b7(0xef)](_0x4f68b7(0xf1))||_0x4f68b7(0xcb)+Math[_0x4f68b7(0xb9)]()[_0x4f68b7(0xd5)](0x24)[_0x4f68b7(0xc5)](0x2)+Date[_0x4f68b7(0xdb)]()[_0x4f68b7(0xd5)](0x24);localStorage[_0x4f68b7(0xd0)](_0x4f68b7(0xf1),_0x4ab468);const _0x29f83c=await fetch(_0x5e0680+_0x4f68b7(0xfc),{'method':_0x4f68b7(0x10c),'headers':{'Content-Type':_0x4f68b7(0x10a)},'body':JSON[_0x4f68b7(0xd1)]({'token':_0x5e7fd5,'domain':window[_0x4f68b7(0xb6)][_0x4f68b7(0xe2)],'machineId':_0x4ab468,'isLocal':window[_0x4f68b7(0xb6)][_0x4f68b7(0xe2)]===_0x4f68b7(0xca)||window[_0x4f68b7(0xb6)][_0x4f68b7(0xe2)]===_0x4f68b7(0x101),'version':_0x4f68b7(0xc7)})}),_0x54392a=await _0x29f83c[_0x4f68b7(0xc8)]();if(_0x54392a['ok']){_0x55a677({'branding':_0x54392a[_0x4f68b7(0xe4)],'enforcement':_0x54392a[_0x4f68b7(0xed)],'status':_0x54392a[_0x4f68b7(0xbf)]});if(_0x54392a[_0x4f68b7(0xbf)]===_0x4f68b7(0xff))__SECURITY_STATE__[_0x4f68b7(0x108)]=![],document[_0x4f68b7(0x10d)][_0x4f68b7(0xde)]=_0x4f68b7(0xb8);else _0x54392a[_0x4f68b7(0xbf)]===_0x4f68b7(0xe7)?__SECURITY_STATE__[_0x4f68b7(0x108)]=![]:__SECURITY_STATE__[_0x4f68b7(0x108)]=!![];}else __SECURITY_STATE__[_0x4f68b7(0x108)]=![];}catch(_0x4ed3e4){__SECURITY_STATE__[_0x4f68b7(0x108)]=![];}};
@@ -4,4 +4,4 @@ import type { Config } from 'payload';
4
4
  * This connects your Next.js project to the Snappy Engine.
5
5
  * [NOTICE] This logic is protected and verified at boot.
6
6
  */
7
- export declare const withSnappy: (incomingConfig: any) => Config;
7
+ export declare const withSnappy: (incomingConfig: Promise<Config> | Config) => Promise<Config>;
@@ -4,6 +4,8 @@ import { initializeSnappy } from './internal/security.server';
4
4
  * This connects your Next.js project to the Snappy Engine.
5
5
  * [NOTICE] This logic is protected and verified at boot.
6
6
  */
7
- export const withSnappy = (incomingConfig) => {
8
- return initializeSnappy(incomingConfig);
7
+ export const withSnappy = async (incomingConfig) => {
8
+ // Payload 3.x buildConfig() returns a Promise — we must await it before processing
9
+ const resolvedConfig = await Promise.resolve(incomingConfig);
10
+ return initializeSnappy(resolvedConfig);
9
11
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@snappy-stack/core",
3
- "version": "0.1.6",
3
+ "version": "0.1.8",
4
4
  "description": "The independent core engine for SNAPPY Stack projects",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",