@tangle-network/sandbox 0.0.0-develop.20260518222502.7184025 → 0.0.0-develop.20260519031301.8eeb3d2

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
- const a0_0x1925d2=a0_0x1d87;(function(_0x3bba96,_0x21d243){const _0x171c71=a0_0x1d87,_0x1890c8=_0x3bba96();while(!![]){try{const _0x4c8fb4=-parseInt(_0x171c71(0x90))/0x1+parseInt(_0x171c71(0xb2))/0x2*(-parseInt(_0x171c71(0x9f))/0x3)+parseInt(_0x171c71(0x77))/0x4*(parseInt(_0x171c71(0xb5))/0x5)+parseInt(_0x171c71(0x88))/0x6+-parseInt(_0x171c71(0x8a))/0x7*(-parseInt(_0x171c71(0xb6))/0x8)+-parseInt(_0x171c71(0x78))/0x9*(parseInt(_0x171c71(0x95))/0xa)+-parseInt(_0x171c71(0xac))/0xb;if(_0x4c8fb4===_0x21d243)break;else _0x1890c8['push'](_0x1890c8['shift']());}catch(_0x436da9){_0x1890c8['push'](_0x1890c8['shift']());}}}(a0_0x29e2,0x6e884));import{createHmac,timingSafeEqual}from'\x6e\x6f\x64\x65\x3a\x63\x72\x79\x70\x74\x6f';function base64UrlEncode(_0x23f5f7){const _0x51eb1d=a0_0x1d87,_0x3c2e25={'\x4d\x45\x54\x52\x58':function(_0x55f451,_0x49af7b){return _0x55f451===_0x49af7b;},'\x62\x69\x48\x65\x73':_0x51eb1d(0xa3)};return(_0x3c2e25[_0x51eb1d(0x76)](typeof _0x23f5f7,_0x3c2e25[_0x51eb1d(0xa5)])?Buffer[_0x51eb1d(0xb7)](_0x23f5f7):_0x23f5f7)[_0x51eb1d(0xb8)](_0x51eb1d(0xa6))['\x72\x65\x70\x6c\x61\x63\x65'](/\+/g,'\x2d')[_0x51eb1d(0x89)](/\//g,'\x5f')['\x72\x65\x70\x6c\x61\x63\x65'](/=+$/,'');}function decodeBase64UrlToBuffer(_0x4865a4){const _0x56c8ee=a0_0x1d87,_0xde03da={'\x52\x63\x67\x56\x64':function(_0x1fcd5d,_0x504930){return _0x1fcd5d+_0x504930;},'\x49\x4a\x69\x6f\x45':function(_0x41d99b,_0x45a30b){return _0x41d99b%_0x45a30b;},'\x62\x4a\x77\x58\x4a':function(_0x29da36,_0x31f46a){return _0x29da36-_0x31f46a;},'\x7a\x58\x6c\x4f\x53':_0x56c8ee(0xa6)};if(!/^[A-Za-z0-9_-]*$/['\x74\x65\x73\x74'](_0x4865a4))return null;const _0x264b62=_0xde03da['\x52\x63\x67\x56\x64'](_0x4865a4,'\x3d'['\x72\x65\x70\x65\x61\x74'](_0xde03da[_0x56c8ee(0x9d)](_0xde03da[_0x56c8ee(0x8e)](0x4,_0x4865a4['\x6c\x65\x6e\x67\x74\x68']%0x4),0x4)));return Buffer['\x66\x72\x6f\x6d'](_0x264b62[_0x56c8ee(0x89)](/-/g,'\x2b')[_0x56c8ee(0x89)](/_/g,'\x2f'),_0xde03da[_0x56c8ee(0x80)]);}function createSignature(_0x4c1997,_0x390051){const _0x22e550=a0_0x1d87;return base64UrlEncode(createHmac(_0x22e550(0xaa),_0x390051)['\x75\x70\x64\x61\x74\x65'](_0x4c1997)[_0x22e550(0x87)]());}const JWT_HEADER=base64UrlEncode(JSON['\x73\x74\x72\x69\x6e\x67\x69\x66\x79']({'\x61\x6c\x67':a0_0x1925d2(0xa2),'\x74\x79\x70':a0_0x1925d2(0x9a)}));function issueToken(_0x41ba43,_0x2ec9b1,_0x448dfc){const _0x47e404=a0_0x1925d2,_0x2cebcf={'\x74\x4a\x74\x64\x77':function(_0x7d2c79,_0x10e49f){return _0x7d2c79*_0x10e49f;},'\x71\x47\x57\x49\x54':function(_0x2f79b0,_0xabbc86){return _0x2f79b0(_0xabbc86);},'\x65\x43\x43\x7a\x76':function(_0x2be4b5,_0x508a4d,_0x6c6449){return _0x2be4b5(_0x508a4d,_0x6c6449);}},_0x1989a6=Math['\x66\x6c\x6f\x6f\x72'](Date['\x6e\x6f\x77']()/0x3e8),_0x3a09ef={..._0x2ec9b1,'\x69\x61\x74':_0x1989a6,'\x65\x78\x70':_0x1989a6+_0x2cebcf[_0x47e404(0x85)](_0x448dfc,0x3c)},_0x3143ce=JWT_HEADER+'\x2e'+_0x2cebcf[_0x47e404(0x99)](base64UrlEncode,JSON[_0x47e404(0x84)](_0x3a09ef));return _0x3143ce+'\x2e'+_0x2cebcf[_0x47e404(0x81)](createSignature,_0x3143ce,_0x41ba43);}function a0_0x29e2(){const _0x35f8ea=['\x7a\x67\x39\x4a\x44\x77\x31\x4c\x42\x4e\x72\x6a\x7a\x61','\x44\x76\x50\x72\x45\x4b\x38','\x42\x4e\x76\x54\x79\x4d\x76\x59','\x6d\x74\x75\x31\x6d\x64\x65\x30\x79\x4c\x7a\x36\x75\x66\x76\x7a','\x74\x30\x31\x6e\x77\x68\x6d','\x45\x78\x6a\x58\x72\x68\x47','\x6d\x4a\x61\x35\x6e\x64\x6d\x5a\x6e\x75\x35\x55\x73\x77\x6a\x6d\x75\x71','\x6d\x5a\x69\x59\x6e\x5a\x47\x32\x6e\x68\x44\x63\x7a\x4b\x58\x30\x44\x71','\x7a\x4e\x6a\x56\x42\x71','\x44\x67\x39\x74\x44\x68\x6a\x50\x42\x4d\x43','\x75\x4e\x7a\x4a\x71\x77\x30','\x74\x75\x76\x75\x75\x4c\x47','\x6f\x68\x6e\x41\x76\x30\x54\x78\x43\x47','\x6f\x77\x31\x41\x42\x67\x44\x53\x79\x47','\x42\x77\x66\x34','\x43\x32\x50\x6c\x45\x78\x43','\x79\x77\x6e\x4a\x7a\x78\x6e\x5a','\x79\x32\x58\x56\x79\x32\x54\x74\x41\x32\x76\x33\x75\x32\x76\x4a\x42\x32\x35\x4b\x43\x57','\x71\x76\x66\x76\x79\x33\x47','\x7a\x4d\x58\x56\x42\x33\x69','\x43\x32\x66\x55\x7a\x67\x6a\x56\x45\x65\x4c\x4b','\x45\x4c\x48\x53\x74\x31\x6d','\x7a\x75\x6e\x64\x45\x4e\x79','\x7a\x32\x76\x30\x76\x68\x72\x53\x74\x77\x4c\x55\x44\x78\x72\x4c\x43\x57','\x43\x32\x76\x5a\x43\x32\x4c\x56\x42\x4b\x4c\x4b','\x43\x33\x72\x59\x41\x77\x35\x4e\x41\x77\x7a\x35','\x44\x65\x50\x30\x7a\x68\x43','\x41\x30\x48\x78\x75\x33\x43','\x7a\x67\x4c\x4e\x7a\x78\x6e\x30','\x6d\x74\x43\x35\x6e\x4a\x79\x30\x6d\x68\x6e\x4d\x72\x32\x76\x31\x44\x47','\x43\x4d\x76\x57\x42\x67\x66\x4a\x7a\x71','\x6d\x74\x72\x5a\x77\x4d\x50\x58\x41\x76\x69','\x79\x77\x58\x4e','\x7a\x4e\x6a\x4c\x7a\x71','\x44\x78\x6e\x4c\x43\x4b\x4c\x4b','\x79\x4b\x50\x33\x77\x65\x4f','\x74\x4e\x4c\x31\x74\x66\x61','\x6e\x64\x47\x30\x6d\x64\x65\x30\x72\x76\x72\x6e\x74\x68\x7a\x6f','\x74\x30\x76\x4e\x72\x77\x4f','\x43\x68\x6a\x56\x41\x4d\x76\x4a\x44\x65\x4c\x4b','\x43\x4d\x76\x57\x7a\x77\x66\x30','\x43\x67\x66\x59\x43\x32\x75','\x6e\x4a\x79\x33\x6d\x5a\x6d\x5a\x6d\x65\x58\x70\x75\x66\x48\x6f\x41\x47','\x44\x68\x72\x53\x74\x77\x4c\x55\x44\x78\x72\x4c\x43\x57','\x43\x68\x6a\x56\x7a\x68\x76\x4a\x44\x65\x4c\x4b','\x43\x68\x6a\x56','\x43\x75\x44\x78\x73\x76\x71','\x73\x4c\x44\x75','\x76\x77\x66\x66\x43\x32\x6d','\x7a\x78\x48\x57','\x73\x75\x50\x50\x42\x30\x75','\x42\x4d\x39\x33','\x6f\x75\x50\x68\x76\x33\x50\x72\x77\x71','\x43\x32\x4c\x4e\x42\x4d\x4c\x55\x7a\x31\x6e\x4c\x79\x33\x6a\x4c\x44\x61','\x43\x33\x62\x53\x41\x78\x71','\x73\x66\x6d\x59\x6e\x74\x79','\x43\x33\x72\x59\x41\x77\x35\x4e','\x71\x4c\x62\x71\x7a\x31\x75','\x79\x4d\x4c\x69\x7a\x78\x6d','\x79\x4d\x66\x5a\x7a\x74\x79\x30','\x72\x75\x6e\x41\x42\x78\x79','\x45\x4b\x35\x32\x74\x78\x47','\x42\x67\x76\x55\x7a\x33\x72\x4f','\x43\x32\x48\x48\x6d\x4a\x75\x32','\x75\x76\x62\x55\x71\x30\x47','\x6d\x74\x65\x34\x6d\x4a\x47\x31\x6d\x4d\x50\x67\x45\x65\x44\x62\x71\x57','\x41\x78\x6e\x5a\x44\x77\x76\x64\x42\x32\x58\x53\x79\x77\x6a\x56\x43\x4d\x66\x30\x41\x77\x39\x55','\x44\x67\x4c\x4c\x43\x47'];a0_0x29e2=function(){return _0x35f8ea;};return a0_0x29e2();}function issueReadToken(_0x186ffb,_0x2ed882,_0x4a92da){const _0x311a36=a0_0x1925d2,_0x124d9c={'\x79\x72\x71\x44\x78':function(_0x3139bc,_0x4d0bbe,_0x156a01,_0x369c58){return _0x3139bc(_0x4d0bbe,_0x156a01,_0x369c58);}};return _0x124d9c[_0x311a36(0xb4)](issueToken,_0x186ffb,{..._0x2ed882,'\x74\x79\x70':'\x72\x65\x61\x64'},_0x4a92da);}function issueSessionScopedToken(_0x59b4f0,_0x4376e0,_0xf6f65a){const _0xb4629a={'\x76\x67\x67\x70\x58':function(_0x2dd91c,_0x50fb6f,_0x24782b,_0x4ff7f3){return _0x2dd91c(_0x50fb6f,_0x24782b,_0x4ff7f3);}};return _0xb4629a['\x76\x67\x67\x70\x58'](issueReadToken,_0x59b4f0,_0x4376e0,_0xf6f65a);}function issueProjectScopedToken(_0x3aa5bb,_0x32607c,_0xc0f455){const _0x3b6973=a0_0x1925d2,_0x477341={'\x42\x50\x50\x67\x55':function(_0x58e2b3,_0x5e8bc2,_0x2967e9,_0x220b4f){return _0x58e2b3(_0x5e8bc2,_0x2967e9,_0x220b4f);}};return _0x477341[_0x3b6973(0xa4)](issueReadToken,_0x3aa5bb,_0x32607c,_0xc0f455);}function issueBatchScopedToken(_0x2749a2,_0x947d6b,_0x48325a){const _0x5eee1d=a0_0x1925d2,_0x25c01c={'\x7a\x4e\x76\x4d\x78':function(_0xcb5383,_0x4a260b,_0x18e558,_0x21b67e){return _0xcb5383(_0x4a260b,_0x18e558,_0x21b67e);}};return _0x25c01c[_0x5eee1d(0xa8)](issueReadToken,_0x2749a2,_0x947d6b,_0x48325a);}function issueCollaborationToken(_0x4d0844,_0x28de1a,_0x7e676f){const _0x1cf12b=a0_0x1925d2,_0x3894e1={'\x6b\x67\x77\x70\x65':function(_0x391044,_0x318230,_0x1294f8,_0x247176){return _0x391044(_0x318230,_0x1294f8,_0x247176);}};return _0x3894e1['\x6b\x67\x77\x70\x65'](issueToken,_0x4d0844,{'\x73\x75\x62':_0x28de1a['\x75\x73\x65\x72\x49\x64'],'\x73\x69\x64':_0x28de1a['\x73\x65\x73\x73\x69\x6f\x6e\x49\x64'],'\x70\x69\x64':_0x28de1a['\x70\x72\x6f\x64\x75\x63\x74\x49\x64'],'\x63\x69\x64':_0x28de1a[_0x1cf12b(0x7f)],'\x74\x79\x70':'\x63\x6f\x6c\x6c\x61\x62\x6f\x72\x61\x74\x69\x6f\x6e','\x70\x72\x6f\x6a\x65\x63\x74\x49\x64':_0x28de1a[_0x1cf12b(0x92)],'\x64\x6f\x63\x75\x6d\x65\x6e\x74\x49\x64':_0x28de1a[_0x1cf12b(0xaf)],'\x61\x63\x63\x65\x73\x73':_0x28de1a[_0x1cf12b(0x7b)]},_0x7e676f);}function unsafeDecodeToken(_0x3f2e7b){const _0x1e3a3d=a0_0x1925d2,_0x26e3d6={'\x52\x76\x63\x41\x6d':function(_0x8648e8,_0x4ceeec){return _0x8648e8-_0x4ceeec;}};try{const _0x5c1b29=_0x3f2e7b[_0x1e3a3d(0xa1)]('\x2e');if(_0x5c1b29[_0x1e3a3d(0xa9)]!==0x3)return null;const _0x40eec1=_0x5c1b29[0x1]+'\x3d'[_0x1e3a3d(0x93)](_0x26e3d6[_0x1e3a3d(0xb9)](0x4,_0x5c1b29[0x1][_0x1e3a3d(0xa9)]%0x4)%0x4),_0x5e5cba=Buffer[_0x1e3a3d(0xb7)](_0x40eec1[_0x1e3a3d(0x89)](/-/g,'\x2b')[_0x1e3a3d(0x89)](/_/g,'\x2f'),'\x62\x61\x73\x65\x36\x34')[_0x1e3a3d(0xb8)]();return JSON['\x70\x61\x72\x73\x65'](_0x5e5cba);}catch{return null;}}function verifyToken(_0xb1a804,_0x2eb681,_0x109e5a={}){const _0x194537=a0_0x1925d2,_0x3e6f50={'\x73\x4b\x6a\x6d\x70':function(_0x599535,_0x3bf991){return _0x599535||_0x3bf991;},'\x75\x5a\x51\x7a\x4f':function(_0x223f22,_0x2e3eb6){return _0x223f22+_0x2e3eb6;},'\x4e\x79\x75\x4c\x50':function(_0x4c61aa,_0xbdd257){return _0x4c61aa%_0xbdd257;},'\x45\x43\x5a\x6d\x76':function(_0x31125a,_0x125345){return _0x31125a%_0x125345;},'\x6f\x43\x69\x64\x4e':'\x62\x61\x73\x65\x36\x34','\x4f\x4d\x4d\x58\x73':function(_0x2e303f,_0x2b6f8e){return _0x2e303f!==_0x2b6f8e;},'\x55\x61\x45\x73\x63':function(_0x29c6a6,_0x4017ba,_0x40620f){return _0x29c6a6(_0x4017ba,_0x40620f);},'\x51\x50\x6e\x43\x48':function(_0x4be8f3,_0x5eac11){return _0x4be8f3(_0x5eac11);},'\x6d\x49\x50\x47\x53':function(_0x23eea3,_0x30682b){return _0x23eea3(_0x30682b);},'\x6b\x48\x57\x53\x77':function(_0x527fc1,_0x7d76aa){return _0x527fc1<_0x7d76aa;}};try{const _0x557c5f=_0xb1a804[_0x194537(0xa1)]('\x2e');if(_0x557c5f[_0x194537(0xa9)]!==0x3)return null;const [_0x482d90,_0xd44e23,_0x10f97f]=_0x557c5f;if(_0x3e6f50['\x73\x4b\x6a\x6d\x70'](!_0x482d90,!_0xd44e23)||!_0x10f97f)return null;let _0x40e1e1;try{const _0x9edecf=_0x3e6f50[_0x194537(0xb0)](_0x482d90,'\x3d'['\x72\x65\x70\x65\x61\x74'](_0x3e6f50[_0x194537(0x8f)](0x4-_0x3e6f50[_0x194537(0xa7)](_0x482d90[_0x194537(0xa9)],0x4),0x4))),_0x5cf554=Buffer[_0x194537(0xb7)](_0x9edecf[_0x194537(0x89)](/-/g,'\x2b')[_0x194537(0x89)](/_/g,'\x2f'),_0x3e6f50['\x6f\x43\x69\x64\x4e'])[_0x194537(0xb8)]();_0x40e1e1=JSON[_0x194537(0x94)](_0x5cf554);}catch{return null;}if(_0x3e6f50[_0x194537(0xb3)](_0x40e1e1[_0x194537(0x8b)],_0x194537(0xa2)))return null;const _0xb4fd0e=_0x3e6f50[_0x194537(0x9b)](createSignature,_0x482d90+'\x2e'+_0xd44e23,_0x2eb681),_0x4b3146=_0x3e6f50[_0x194537(0xab)](decodeBase64UrlToBuffer,_0x10f97f),_0x464f18=_0x3e6f50[_0x194537(0xab)](decodeBase64UrlToBuffer,_0xb4fd0e);if(!_0x4b3146||!_0x464f18)return null;if(_0x3e6f50[_0x194537(0xb3)](_0x4b3146[_0x194537(0xa9)],_0x464f18[_0x194537(0xa9)]))return null;if(!timingSafeEqual(_0x4b3146,_0x464f18))return null;const _0x23f3f9=_0x3e6f50['\x6d\x49\x50\x47\x53'](unsafeDecodeToken,_0xb1a804);if(!_0x23f3f9)return null;const _0x94ee2a=Math[_0x194537(0x7e)](Date['\x6e\x6f\x77']()/0x3e8),_0x230f1d=Math[_0x194537(0x79)](0x0,_0x109e5a[_0x194537(0x7c)]??0x0);if(_0x3e6f50[_0x194537(0xb3)](typeof _0x23f3f9[_0x194537(0x9c)],_0x194537(0xb1))||_0x3e6f50[_0x194537(0x86)](_0x23f3f9[_0x194537(0x9c)]+_0x230f1d,_0x94ee2a))return null;return _0x23f3f9;}catch{return null;}}function getTokenTTL(_0x5765f9){const _0x24117e=a0_0x1925d2,_0x24268f={'\x5a\x4c\x70\x46\x4f':function(_0x4f1b7b,_0x14db98){return _0x4f1b7b/_0x14db98;}},_0x1683ad=Math[_0x24117e(0x7e)](_0x24268f['\x5a\x4c\x70\x46\x4f'](Date['\x6e\x6f\x77'](),0x3e8));return _0x5765f9[_0x24117e(0x9c)]-_0x1683ad;}function isTokenExpiringSoon(_0x39c0cb,_0x472ffc=0x3c){const _0x4479ba={'\x71\x42\x4b\x56\x7a':function(_0x13fdf9,_0x3d9363){return _0x13fdf9<=_0x3d9363;}};return _0x4479ba['\x71\x42\x4b\x56\x7a'](getTokenTTL(_0x39c0cb),_0x472ffc);}var ProductTokenIssuer=class{['\x70\x72\x6f\x64\x75\x63\x74\x49\x64'];['\x73\x69\x67\x6e\x69\x6e\x67\x53\x65\x63\x72\x65\x74'];[a0_0x1925d2(0x96)];constructor(_0x5a1ffd){const _0x3dae04=a0_0x1925d2;this[_0x3dae04(0x97)]=_0x5a1ffd['\x70\x72\x6f\x64\x75\x63\x74\x49\x64'],this['\x73\x69\x67\x6e\x69\x6e\x67\x53\x65\x63\x72\x65\x74']=_0x5a1ffd[_0x3dae04(0xa0)],this[_0x3dae04(0x96)]={'\x66\x72\x65\x65':_0x5a1ffd[_0x3dae04(0x96)]?.[_0x3dae04(0x8c)]??0xf,'\x70\x72\x6f':_0x5a1ffd['\x74\x74\x6c\x4d\x69\x6e\x75\x74\x65\x73']?.[_0x3dae04(0x98)]??0xf0,'\x65\x6e\x74\x65\x72\x70\x72\x69\x73\x65':_0x5a1ffd['\x74\x74\x6c\x4d\x69\x6e\x75\x74\x65\x73']?.['\x65\x6e\x74\x65\x72\x70\x72\x69\x73\x65']??0x1e0};}['\x69\x73\x73\x75\x65'](_0x2fa6cd){const _0x56fd97=a0_0x1925d2,_0x1e5bff={'\x77\x56\x47\x46\x78':function(_0x4a4ad6,_0x149d4c,_0x126c14,_0x4edee9){return _0x4a4ad6(_0x149d4c,_0x126c14,_0x4edee9);}},_0x10c2ff=_0x2fa6cd['\x74\x69\x65\x72']??_0x56fd97(0x8c),_0x58c9bc=this[_0x56fd97(0x96)][_0x10c2ff]??this[_0x56fd97(0x96)]['\x66\x72\x65\x65'];return{'\x74\x6f\x6b\x65\x6e':_0x1e5bff['\x77\x56\x47\x46\x78'](issueReadToken,this['\x73\x69\x67\x6e\x69\x6e\x67\x53\x65\x63\x72\x65\x74'],{'\x73\x75\x62':_0x2fa6cd[_0x56fd97(0x8d)],'\x73\x69\x64':_0x2fa6cd[_0x56fd97(0x83)],'\x70\x69\x64':this[_0x56fd97(0x97)],'\x63\x69\x64':_0x2fa6cd['\x73\x61\x6e\x64\x62\x6f\x78\x49\x64']},_0x58c9bc),'\x65\x78\x70\x69\x72\x65\x73\x41\x74':Math['\x66\x6c\x6f\x6f\x72'](Date[_0x56fd97(0x9e)]()/0x3e8)+_0x58c9bc*0x3c};}[a0_0x1925d2(0xad)](_0x19b952){const _0x3f1fdf=a0_0x1925d2,_0x49192e={'\x73\x6a\x4b\x79\x77':_0x3f1fdf(0x8c),'\x41\x51\x55\x63\x78':function(_0xa74861,_0x1738fa){return _0xa74861+_0x1738fa;},'\x4f\x45\x67\x45\x6a':function(_0x7a5181,_0x176ab9){return _0x7a5181*_0x176ab9;}},_0x4a4cbf=_0x19b952[_0x3f1fdf(0xae)]??_0x49192e[_0x3f1fdf(0x7a)],_0x219b5d=this[_0x3f1fdf(0x96)][_0x4a4cbf]??this['\x74\x74\x6c\x4d\x69\x6e\x75\x74\x65\x73']['\x66\x72\x65\x65'];return{'\x74\x6f\x6b\x65\x6e':issueCollaborationToken(this[_0x3f1fdf(0xa0)],{'\x75\x73\x65\x72\x49\x64':_0x19b952[_0x3f1fdf(0x8d)],'\x73\x65\x73\x73\x69\x6f\x6e\x49\x64':_0x19b952[_0x3f1fdf(0x83)],'\x70\x72\x6f\x64\x75\x63\x74\x49\x64':this[_0x3f1fdf(0x97)],'\x70\x72\x6f\x6a\x65\x63\x74\x49\x64':_0x19b952[_0x3f1fdf(0x92)],'\x64\x6f\x63\x75\x6d\x65\x6e\x74\x49\x64':_0x19b952[_0x3f1fdf(0xaf)],'\x61\x63\x63\x65\x73\x73':_0x19b952['\x61\x63\x63\x65\x73\x73'],'\x73\x61\x6e\x64\x62\x6f\x78\x49\x64':_0x19b952[_0x3f1fdf(0x7f)]},_0x219b5d),'\x65\x78\x70\x69\x72\x65\x73\x41\x74':_0x49192e[_0x3f1fdf(0x7d)](Math[_0x3f1fdf(0x7e)](Date[_0x3f1fdf(0x9e)]()/0x3e8),_0x49192e[_0x3f1fdf(0x91)](_0x219b5d,0x3c))};}[a0_0x1925d2(0x82)](_0x1b6643='\x66\x72\x65\x65'){const _0x336527=a0_0x1925d2;return this['\x74\x74\x6c\x4d\x69\x6e\x75\x74\x65\x73'][_0x1b6643]??this['\x74\x74\x6c\x4d\x69\x6e\x75\x74\x65\x73'][_0x336527(0x8c)];}};function a0_0x1d87(_0x1185d0,_0x8b83ba){_0x1185d0=_0x1185d0-0x76;const _0x29e22d=a0_0x29e2();let _0x1d87c2=_0x29e22d[_0x1185d0];if(a0_0x1d87['\x64\x62\x69\x4b\x43\x5a']===undefined){var _0x574d7e=function(_0x242e40){const _0x2fb383='\x61\x62\x63\x64\x65\x66\x67\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f\x70\x71\x72\x73\x74\x75\x76\x77\x78\x79\x7a\x41\x42\x43\x44\x45\x46\x47\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f\x50\x51\x52\x53\x54\x55\x56\x57\x58\x59\x5a\x30\x31\x32\x33\x34\x35\x36\x37\x38\x39\x2b\x2f\x3d';let _0x5e165b='',_0x508c57='';for(let _0x579d05=0x0,_0x326513,_0x38549c,_0x512455=0x0;_0x38549c=_0x242e40['\x63\x68\x61\x72\x41\x74'](_0x512455++);~_0x38549c&&(_0x326513=_0x579d05%0x4?_0x326513*0x40+_0x38549c:_0x38549c,_0x579d05++%0x4)?_0x5e165b+=String['\x66\x72\x6f\x6d\x43\x68\x61\x72\x43\x6f\x64\x65'](0xff&_0x326513>>(-0x2*_0x579d05&0x6)):0x0){_0x38549c=_0x2fb383['\x69\x6e\x64\x65\x78\x4f\x66'](_0x38549c);}for(let _0x41f78e=0x0,_0x5c1928=_0x5e165b['\x6c\x65\x6e\x67\x74\x68'];_0x41f78e<_0x5c1928;_0x41f78e++){_0x508c57+='\x25'+('\x30\x30'+_0x5e165b['\x63\x68\x61\x72\x43\x6f\x64\x65\x41\x74'](_0x41f78e)['\x74\x6f\x53\x74\x72\x69\x6e\x67'](0x10))['\x73\x6c\x69\x63\x65'](-0x2);}return decodeURIComponent(_0x508c57);};a0_0x1d87['\x48\x4f\x75\x57\x4b\x62']=_0x574d7e,a0_0x1d87['\x6a\x65\x4f\x65\x71\x46']={},a0_0x1d87['\x64\x62\x69\x4b\x43\x5a']=!![];}const _0x1f0427=_0x29e22d[0x0],_0xdf5fbd=_0x1185d0+_0x1f0427,_0x129077=a0_0x1d87['\x6a\x65\x4f\x65\x71\x46'][_0xdf5fbd];return!_0x129077?(_0x1d87c2=a0_0x1d87['\x48\x4f\x75\x57\x4b\x62'](_0x1d87c2),a0_0x1d87['\x6a\x65\x4f\x65\x71\x46'][_0xdf5fbd]=_0x1d87c2):_0x1d87c2=_0x129077,_0x1d87c2;}export{ProductTokenIssuer,getTokenTTL,isTokenExpiringSoon,issueBatchScopedToken,issueCollaborationToken,issueProjectScopedToken,issueReadToken,issueSessionScopedToken,unsafeDecodeToken,verifyToken};
1
+ const a0_0x4fe879=a0_0x176e;(function(_0x1af543,_0x490857){const _0x46b9ee=a0_0x176e,_0x151f6a=_0x1af543();while(!![]){try{const _0x52a79b=parseInt(_0x46b9ee(0xd4))/0x1+-parseInt(_0x46b9ee(0xcf))/0x2+-parseInt(_0x46b9ee(0xc8))/0x3+parseInt(_0x46b9ee(0xc9))/0x4+-parseInt(_0x46b9ee(0xe0))/0x5*(-parseInt(_0x46b9ee(0xda))/0x6)+parseInt(_0x46b9ee(0xc6))/0x7*(parseInt(_0x46b9ee(0xb7))/0x8)+-parseInt(_0x46b9ee(0xc4))/0x9*(parseInt(_0x46b9ee(0xe1))/0xa);if(_0x52a79b===_0x490857)break;else _0x151f6a['push'](_0x151f6a['shift']());}catch(_0x3e59e3){_0x151f6a['push'](_0x151f6a['shift']());}}}(a0_0xb5ae,0x4f91a));import{createHmac,timingSafeEqual}from'\x6e\x6f\x64\x65\x3a\x63\x72\x79\x70\x74\x6f';function base64UrlEncode(_0x4d160d){const _0x16ef98=a0_0x176e;return(typeof _0x4d160d===_0x16ef98(0xb2)?Buffer['\x66\x72\x6f\x6d'](_0x4d160d):_0x4d160d)['\x74\x6f\x53\x74\x72\x69\x6e\x67'](_0x16ef98(0xb4))[_0x16ef98(0xcb)](/\+/g,'\x2d')[_0x16ef98(0xcb)](/\//g,'\x5f')['\x72\x65\x70\x6c\x61\x63\x65'](/=+$/,'');}function decodeBase64UrlToBuffer(_0x294150){const _0x162b10=a0_0x176e,_0x4e2845={'\x6e\x41\x6a\x59\x69':function(_0x3fc221,_0x5d1194){return _0x3fc221+_0x5d1194;},'\x52\x78\x42\x6c\x75':function(_0x1af2ce,_0x430f0f){return _0x1af2ce%_0x430f0f;},'\x66\x64\x79\x4b\x58':_0x162b10(0xb4)};if(!/^[A-Za-z0-9_-]*$/[_0x162b10(0xbc)](_0x294150))return null;const _0x52a80b=_0x4e2845[_0x162b10(0xb5)](_0x294150,'\x3d'[_0x162b10(0xc2)]((0x4-_0x4e2845[_0x162b10(0xdd)](_0x294150[_0x162b10(0xac)],0x4))%0x4));return Buffer[_0x162b10(0xab)](_0x52a80b[_0x162b10(0xcb)](/-/g,'\x2b')[_0x162b10(0xcb)](/_/g,'\x2f'),_0x4e2845[_0x162b10(0xd3)]);}function createSignature(_0x344f89,_0x4afbe2){const _0x3d20b5=a0_0x176e,_0x5dbc24={'\x45\x4a\x4e\x44\x62':function(_0x9627f9,_0x34c3cb,_0x3dbc44){return _0x9627f9(_0x34c3cb,_0x3dbc44);},'\x75\x52\x63\x61\x52':'\x73\x68\x61\x32\x35\x36'};return base64UrlEncode(_0x5dbc24['\x45\x4a\x4e\x44\x62'](createHmac,_0x5dbc24[_0x3d20b5(0xc5)],_0x4afbe2)['\x75\x70\x64\x61\x74\x65'](_0x344f89)[_0x3d20b5(0xaf)]());}function a0_0x176e(_0x357275,_0x507796){_0x357275=_0x357275-0xa9;const _0xb5ae0f=a0_0xb5ae();let _0x176ea9=_0xb5ae0f[_0x357275];if(a0_0x176e['\x6a\x56\x76\x72\x46\x47']===undefined){var _0x483620=function(_0x2bb04a){const _0x313fdc='\x61\x62\x63\x64\x65\x66\x67\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f\x70\x71\x72\x73\x74\x75\x76\x77\x78\x79\x7a\x41\x42\x43\x44\x45\x46\x47\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f\x50\x51\x52\x53\x54\x55\x56\x57\x58\x59\x5a\x30\x31\x32\x33\x34\x35\x36\x37\x38\x39\x2b\x2f\x3d';let _0xca8b26='',_0x3c0ecb='';for(let _0xe80711=0x0,_0x34958e,_0x3d222f,_0x438545=0x0;_0x3d222f=_0x2bb04a['\x63\x68\x61\x72\x41\x74'](_0x438545++);~_0x3d222f&&(_0x34958e=_0xe80711%0x4?_0x34958e*0x40+_0x3d222f:_0x3d222f,_0xe80711++%0x4)?_0xca8b26+=String['\x66\x72\x6f\x6d\x43\x68\x61\x72\x43\x6f\x64\x65'](0xff&_0x34958e>>(-0x2*_0xe80711&0x6)):0x0){_0x3d222f=_0x313fdc['\x69\x6e\x64\x65\x78\x4f\x66'](_0x3d222f);}for(let _0x3ba34d=0x0,_0x4ec2a6=_0xca8b26['\x6c\x65\x6e\x67\x74\x68'];_0x3ba34d<_0x4ec2a6;_0x3ba34d++){_0x3c0ecb+='\x25'+('\x30\x30'+_0xca8b26['\x63\x68\x61\x72\x43\x6f\x64\x65\x41\x74'](_0x3ba34d)['\x74\x6f\x53\x74\x72\x69\x6e\x67'](0x10))['\x73\x6c\x69\x63\x65'](-0x2);}return decodeURIComponent(_0x3c0ecb);};a0_0x176e['\x71\x54\x47\x78\x6a\x48']=_0x483620,a0_0x176e['\x55\x50\x47\x6c\x42\x48']={},a0_0x176e['\x6a\x56\x76\x72\x46\x47']=!![];}const _0x191fe2=_0xb5ae0f[0x0],_0x28b557=_0x357275+_0x191fe2,_0x28f092=a0_0x176e['\x55\x50\x47\x6c\x42\x48'][_0x28b557];return!_0x28f092?(_0x176ea9=a0_0x176e['\x71\x54\x47\x78\x6a\x48'](_0x176ea9),a0_0x176e['\x55\x50\x47\x6c\x42\x48'][_0x28b557]=_0x176ea9):_0x176ea9=_0x28f092,_0x176ea9;}const JWT_HEADER=base64UrlEncode(JSON['\x73\x74\x72\x69\x6e\x67\x69\x66\x79']({'\x61\x6c\x67':'\x48\x53\x32\x35\x36','\x74\x79\x70':a0_0x4fe879(0xd7)}));function issueToken(_0x27282e,_0x5b8b5c,_0x2c4573){const _0xe7b0f=a0_0x4fe879,_0x7c492a={'\x76\x4f\x65\x79\x42':function(_0x375fc2,_0x13fdc2){return _0x375fc2*_0x13fdc2;},'\x41\x49\x6f\x4f\x73':function(_0x51d656,_0x25d8f3){return _0x51d656(_0x25d8f3);}},_0x4606f3=Math[_0xe7b0f(0xca)](Date[_0xe7b0f(0xbd)]()/0x3e8),_0x209ebc={..._0x5b8b5c,'\x69\x61\x74':_0x4606f3,'\x65\x78\x70':_0x4606f3+_0x7c492a[_0xe7b0f(0xb8)](_0x2c4573,0x3c)},_0x156f04=JWT_HEADER+'\x2e'+_0x7c492a[_0xe7b0f(0xd5)](base64UrlEncode,JSON[_0xe7b0f(0xad)](_0x209ebc));return _0x156f04+'\x2e'+createSignature(_0x156f04,_0x27282e);}function issueReadToken(_0x18bf01,_0x1b4611,_0x2c68dc){const _0x2f68c8=a0_0x4fe879;return issueToken(_0x18bf01,{..._0x1b4611,'\x74\x79\x70':_0x2f68c8(0xd1)},_0x2c68dc);}function a0_0xb5ae(){const _0x4b637c=['\x42\x67\x76\x55\x7a\x33\x72\x4f','\x43\x33\x72\x59\x41\x77\x35\x4e\x41\x77\x7a\x35','\x43\x32\x76\x5a\x43\x32\x4c\x56\x42\x4b\x4c\x4b','\x7a\x67\x4c\x4e\x7a\x78\x6e\x30','\x44\x67\x4c\x4c\x43\x47','\x76\x33\x7a\x35\x76\x30\x4b','\x43\x33\x72\x59\x41\x77\x35\x4e','\x79\x32\x39\x53\x42\x67\x66\x49\x42\x33\x6a\x48\x44\x67\x4c\x56\x42\x47','\x79\x4d\x66\x5a\x7a\x74\x79\x30','\x42\x4b\x66\x51\x77\x77\x4b','\x44\x68\x72\x53\x74\x77\x4c\x55\x44\x78\x72\x4c\x43\x57','\x6e\x74\x61\x58\x6d\x5a\x69\x35\x6e\x4c\x76\x32\x73\x4d\x39\x75\x74\x57','\x44\x4b\x39\x4c\x45\x75\x69','\x73\x66\x6d\x59\x6e\x74\x79','\x44\x78\x6e\x4c\x43\x4b\x4c\x4b','\x7a\x77\x35\x30\x7a\x78\x6a\x57\x43\x4d\x4c\x5a\x7a\x71','\x44\x67\x76\x5a\x44\x61','\x42\x4d\x39\x33','\x7a\x32\x76\x30\x76\x68\x72\x53\x74\x77\x4c\x55\x44\x78\x72\x4c\x43\x57','\x7a\x4d\x48\x69\x43\x31\x4b','\x43\x68\x6a\x56','\x7a\x67\x39\x4a\x44\x77\x31\x4c\x42\x4e\x72\x6a\x7a\x61','\x43\x4d\x76\x57\x7a\x77\x66\x30','\x43\x68\x6a\x56\x7a\x68\x76\x4a\x44\x65\x4c\x4b','\x6d\x74\x69\x31\x6d\x77\x66\x77\x75\x33\x76\x71\x79\x71','\x44\x76\x6a\x4a\x79\x76\x69','\x6e\x32\x35\x65\x44\x77\x7a\x34\x7a\x61','\x43\x67\x66\x59\x43\x32\x75','\x6d\x74\x65\x33\x6e\x5a\x71\x57\x6e\x32\x39\x6d\x76\x66\x72\x62\x42\x71','\x6d\x74\x75\x58\x6d\x64\x47\x34\x6f\x67\x7a\x31\x76\x65\x50\x4a\x77\x71','\x7a\x4d\x58\x56\x42\x33\x69','\x43\x4d\x76\x57\x42\x67\x66\x4a\x7a\x71','\x42\x77\x66\x34','\x43\x32\x66\x55\x7a\x67\x6a\x56\x45\x65\x4c\x4b','\x41\x78\x6e\x5a\x44\x77\x76\x64\x42\x32\x58\x53\x79\x77\x6a\x56\x43\x4d\x66\x30\x41\x77\x39\x55','\x6f\x74\x71\x32\x6e\x5a\x61\x30\x45\x4e\x62\x31\x72\x4c\x4c\x77','\x41\x78\x6e\x5a\x44\x77\x75','\x43\x4d\x76\x48\x7a\x61','\x7a\x78\x48\x57','\x7a\x4d\x72\x35\x73\x31\x47','\x6e\x4a\x69\x30\x6d\x64\x65\x34\x7a\x31\x6a\x36\x77\x4d\x39\x73','\x71\x75\x4c\x56\x74\x33\x6d','\x43\x68\x6a\x56\x41\x4d\x76\x4a\x44\x65\x4c\x4b','\x73\x4c\x44\x75','\x76\x33\x44\x4a\x44\x4e\x79','\x72\x32\x66\x34\x76\x68\x69','\x6e\x4b\x35\x48\x72\x31\x4c\x55\x79\x47','\x7a\x4e\x6a\x4c\x7a\x71','\x43\x33\x62\x53\x41\x78\x71','\x75\x4e\x48\x63\x42\x68\x75','\x76\x77\x72\x4e\x44\x31\x61','\x44\x67\x39\x74\x44\x68\x6a\x50\x42\x4d\x43','\x6d\x74\x4b\x5a\x6e\x4a\x79\x59\x6e\x77\x35\x66\x72\x77\x44\x69\x41\x57','\x6e\x74\x4b\x59\x6f\x64\x62\x73\x42\x78\x4c\x65\x77\x78\x47','\x42\x4e\x76\x54\x79\x4d\x76\x59','\x43\x32\x4c\x4e\x42\x4d\x4c\x55\x7a\x31\x6e\x4c\x79\x33\x6a\x4c\x44\x61','\x43\x30\x7a\x70\x75\x77\x4b','\x76\x77\x48\x6d\x73\x33\x65','\x79\x77\x6e\x4a\x7a\x78\x6e\x5a','\x74\x77\x6e\x51\x7a\x31\x4b','\x75\x30\x4c\x54\x75\x77\x79','\x7a\x4e\x6a\x56\x42\x71'];a0_0xb5ae=function(){return _0x4b637c;};return a0_0xb5ae();}function issueSessionScopedToken(_0x19e3a9,_0x435d09,_0xb0779e){const _0x3face9={'\x74\x43\x4e\x59\x57':function(_0x339124,_0x19d8c6,_0x580aed,_0x3768ba){return _0x339124(_0x19d8c6,_0x580aed,_0x3768ba);}};return _0x3face9['\x74\x43\x4e\x59\x57'](issueReadToken,_0x19e3a9,_0x435d09,_0xb0779e);}function issueProjectScopedToken(_0x483eeb,_0x3f6e4b,_0x1ae48d){return issueReadToken(_0x483eeb,_0x3f6e4b,_0x1ae48d);}function issueBatchScopedToken(_0x323619,_0x26d169,_0x18d2b0){return issueReadToken(_0x323619,_0x26d169,_0x18d2b0);}function issueCollaborationToken(_0x457d36,_0x3e9d2c,_0x246a63){const _0x395f1f=a0_0x4fe879,_0x58ec57={'\x55\x64\x67\x77\x50':_0x395f1f(0xb3)};return issueToken(_0x457d36,{'\x73\x75\x62':_0x3e9d2c[_0x395f1f(0xba)],'\x73\x69\x64':_0x3e9d2c[_0x395f1f(0xae)],'\x70\x69\x64':_0x3e9d2c[_0x395f1f(0xc3)],'\x63\x69\x64':_0x3e9d2c[_0x395f1f(0xcd)],'\x74\x79\x70':_0x58ec57[_0x395f1f(0xde)],'\x70\x72\x6f\x6a\x65\x63\x74\x49\x64':_0x3e9d2c[_0x395f1f(0xd6)],'\x64\x6f\x63\x75\x6d\x65\x6e\x74\x49\x64':_0x3e9d2c['\x64\x6f\x63\x75\x6d\x65\x6e\x74\x49\x64'],'\x61\x63\x63\x65\x73\x73':_0x3e9d2c[_0x395f1f(0xe6)]},_0x246a63);}function unsafeDecodeToken(_0x13c27f){const _0x55d55d=a0_0x4fe879,_0x5474a0={'\x55\x68\x4c\x4b\x71':function(_0x2eea93,_0x57d8b0){return _0x2eea93+_0x57d8b0;}};try{const _0x183c52=_0x13c27f['\x73\x70\x6c\x69\x74']('\x2e');if(_0x183c52[_0x55d55d(0xac)]!==0x3)return null;const _0x86c10=_0x5474a0[_0x55d55d(0xe5)](_0x183c52[0x1],'\x3d'[_0x55d55d(0xc2)]((0x4-_0x183c52[0x1][_0x55d55d(0xac)]%0x4)%0x4)),_0x2f6c4d=Buffer['\x66\x72\x6f\x6d'](_0x86c10['\x72\x65\x70\x6c\x61\x63\x65'](/-/g,'\x2b')[_0x55d55d(0xcb)](/_/g,'\x2f'),_0x55d55d(0xb4))[_0x55d55d(0xdf)]();return JSON[_0x55d55d(0xc7)](_0x2f6c4d);}catch{return null;}}function verifyToken(_0x7ab2a8,_0xec60fb,_0x295744={}){const _0xcdd1a0=a0_0x4fe879,_0x75c06b={'\x4d\x63\x6a\x67\x59':function(_0x219cc7,_0x32a748){return _0x219cc7!==_0x32a748;},'\x57\x77\x63\x76\x76':function(_0x3736a9,_0x41baa7){return _0x3736a9+_0x41baa7;},'\x57\x76\x79\x57\x49':function(_0x204854,_0x483870){return _0x204854%_0x483870;},'\x47\x61\x78\x54\x72':function(_0x44a912,_0x317173){return _0x44a912-_0x317173;},'\x71\x47\x4b\x4f\x45':_0xcdd1a0(0xe2),'\x53\x49\x6d\x51\x66':function(_0x331bff,_0x53fb5c){return _0x331bff<_0x53fb5c;}};try{const _0x117a20=_0x7ab2a8[_0xcdd1a0(0xdc)]('\x2e');if(_0x75c06b[_0xcdd1a0(0xa9)](_0x117a20['\x6c\x65\x6e\x67\x74\x68'],0x3))return null;const [_0xd4af6d,_0x55434d,_0xd03f29]=_0x117a20;if(!_0xd4af6d||!_0x55434d||!_0xd03f29)return null;let _0x1ed99e;try{const _0x3f572f=_0x75c06b[_0xcdd1a0(0xd8)](_0xd4af6d,'\x3d'[_0xcdd1a0(0xc2)](_0x75c06b[_0xcdd1a0(0xb1)](_0x75c06b[_0xcdd1a0(0xd9)](0x4,_0x75c06b[_0xcdd1a0(0xb1)](_0xd4af6d[_0xcdd1a0(0xac)],0x4)),0x4))),_0x4969e8=Buffer[_0xcdd1a0(0xab)](_0x3f572f['\x72\x65\x70\x6c\x61\x63\x65'](/-/g,'\x2b')[_0xcdd1a0(0xcb)](/_/g,'\x2f'),_0xcdd1a0(0xb4))[_0xcdd1a0(0xdf)]();_0x1ed99e=JSON[_0xcdd1a0(0xc7)](_0x4969e8);}catch{return null;}if(_0x75c06b['\x4d\x63\x6a\x67\x59'](_0x1ed99e['\x61\x6c\x67'],_0xcdd1a0(0xb9)))return null;const _0x50969e=createSignature(_0xd4af6d+'\x2e'+_0x55434d,_0xec60fb),_0x4db6f2=decodeBase64UrlToBuffer(_0xd03f29),_0x38ab42=decodeBase64UrlToBuffer(_0x50969e);if(!_0x4db6f2||!_0x38ab42)return null;if(_0x4db6f2[_0xcdd1a0(0xac)]!==_0x38ab42[_0xcdd1a0(0xac)])return null;if(!timingSafeEqual(_0x4db6f2,_0x38ab42))return null;const _0x4cc1aa=unsafeDecodeToken(_0x7ab2a8);if(!_0x4cc1aa)return null;const _0x33c72f=Math[_0xcdd1a0(0xca)](Date[_0xcdd1a0(0xbd)]()/0x3e8),_0x15ca81=Math[_0xcdd1a0(0xcc)](0x0,_0x295744['\x63\x6c\x6f\x63\x6b\x53\x6b\x65\x77\x53\x65\x63\x6f\x6e\x64\x73']??0x0);if(typeof _0x4cc1aa[_0xcdd1a0(0xd2)]!==_0x75c06b['\x71\x47\x4b\x4f\x45']||_0x75c06b[_0xcdd1a0(0xaa)](_0x4cc1aa[_0xcdd1a0(0xd2)]+_0x15ca81,_0x33c72f))return null;return _0x4cc1aa;}catch{return null;}}function getTokenTTL(_0x310e02){const _0x1c0de9=a0_0x4fe879,_0x107b93={'\x61\x68\x69\x44\x77':function(_0x147512,_0x2db9f1){return _0x147512-_0x2db9f1;}},_0x1938d7=Math[_0x1c0de9(0xca)](Date[_0x1c0de9(0xbd)]()/0x3e8);return _0x107b93['\x61\x68\x69\x44\x77'](_0x310e02[_0x1c0de9(0xd2)],_0x1938d7);}function isTokenExpiringSoon(_0x1357b1,_0x41a826=0x3c){return getTokenTTL(_0x1357b1)<=_0x41a826;}var ProductTokenIssuer=class{[a0_0x4fe879(0xc3)];[a0_0x4fe879(0xe3)];[a0_0x4fe879(0xb6)];constructor(_0x4a6c59){const _0x535703=a0_0x4fe879;this[_0x535703(0xc3)]=_0x4a6c59[_0x535703(0xc3)],this[_0x535703(0xe3)]=_0x4a6c59['\x73\x69\x67\x6e\x69\x6e\x67\x53\x65\x63\x72\x65\x74'],this[_0x535703(0xb6)]={'\x66\x72\x65\x65':_0x4a6c59[_0x535703(0xb6)]?.[_0x535703(0xdb)]??0xf,'\x70\x72\x6f':_0x4a6c59[_0x535703(0xb6)]?.[_0x535703(0xc0)]??0xf0,'\x65\x6e\x74\x65\x72\x70\x72\x69\x73\x65':_0x4a6c59[_0x535703(0xb6)]?.[_0x535703(0xbb)]??0x1e0};}[a0_0x4fe879(0xd0)](_0x204952){const _0x291d48=a0_0x4fe879,_0x5060ea={'\x6c\x7a\x55\x43\x61':function(_0x5d5106,_0x198041){return _0x5d5106/_0x198041;}},_0x22c753=_0x204952[_0x291d48(0xb0)]??_0x291d48(0xdb),_0x13e4a4=this[_0x291d48(0xb6)][_0x22c753]??this[_0x291d48(0xb6)][_0x291d48(0xdb)];return{'\x74\x6f\x6b\x65\x6e':issueReadToken(this[_0x291d48(0xe3)],{'\x73\x75\x62':_0x204952['\x75\x73\x65\x72\x49\x64'],'\x73\x69\x64':_0x204952['\x73\x65\x73\x73\x69\x6f\x6e\x49\x64'],'\x70\x69\x64':this[_0x291d48(0xc3)],'\x63\x69\x64':_0x204952['\x73\x61\x6e\x64\x62\x6f\x78\x49\x64']},_0x13e4a4),'\x65\x78\x70\x69\x72\x65\x73\x41\x74':Math[_0x291d48(0xca)](_0x5060ea['\x6c\x7a\x55\x43\x61'](Date['\x6e\x6f\x77'](),0x3e8))+_0x13e4a4*0x3c};}[a0_0x4fe879(0xce)](_0x2cc0b0){const _0x10df19=a0_0x4fe879,_0x3751b2={'\x73\x46\x4f\x51\x69':_0x10df19(0xdb),'\x66\x68\x48\x73\x59':function(_0x27b85d,_0x222a87){return _0x27b85d+_0x222a87;},'\x73\x46\x6d\x58\x4a':function(_0x3cd29e,_0x2c6b24){return _0x3cd29e/_0x2c6b24;}},_0x4399e7=_0x2cc0b0[_0x10df19(0xb0)]??_0x3751b2[_0x10df19(0xe4)],_0x1c1a82=this['\x74\x74\x6c\x4d\x69\x6e\x75\x74\x65\x73'][_0x4399e7]??this[_0x10df19(0xb6)][_0x10df19(0xdb)];return{'\x74\x6f\x6b\x65\x6e':issueCollaborationToken(this[_0x10df19(0xe3)],{'\x75\x73\x65\x72\x49\x64':_0x2cc0b0[_0x10df19(0xba)],'\x73\x65\x73\x73\x69\x6f\x6e\x49\x64':_0x2cc0b0[_0x10df19(0xae)],'\x70\x72\x6f\x64\x75\x63\x74\x49\x64':this[_0x10df19(0xc3)],'\x70\x72\x6f\x6a\x65\x63\x74\x49\x64':_0x2cc0b0[_0x10df19(0xd6)],'\x64\x6f\x63\x75\x6d\x65\x6e\x74\x49\x64':_0x2cc0b0[_0x10df19(0xc1)],'\x61\x63\x63\x65\x73\x73':_0x2cc0b0[_0x10df19(0xe6)],'\x73\x61\x6e\x64\x62\x6f\x78\x49\x64':_0x2cc0b0['\x73\x61\x6e\x64\x62\x6f\x78\x49\x64']},_0x1c1a82),'\x65\x78\x70\x69\x72\x65\x73\x41\x74':_0x3751b2[_0x10df19(0xbf)](Math[_0x10df19(0xca)](_0x3751b2['\x73\x46\x6d\x58\x4a'](Date[_0x10df19(0xbd)](),0x3e8)),_0x1c1a82*0x3c)};}[a0_0x4fe879(0xbe)](_0x3a499a=a0_0x4fe879(0xdb)){const _0x100de7=a0_0x4fe879;return this['\x74\x74\x6c\x4d\x69\x6e\x75\x74\x65\x73'][_0x3a499a]??this[_0x100de7(0xb6)][_0x100de7(0xdb)];}};export{ProductTokenIssuer,getTokenTTL,isTokenExpiringSoon,issueBatchScopedToken,issueCollaborationToken,issueProjectScopedToken,issueReadToken,issueSessionScopedToken,unsafeDecodeToken,verifyToken};