@tangle-network/sandbox 0.0.0-develop.20260514231605.7fc2cdd → 0.0.0-develop.20260515054803.22cb1e9
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/dist/auth/index.js +1 -1
- package/dist/client-CO5cnRwn.js +1 -1
- package/dist/collaboration/index.js +1 -1
- package/dist/collaboration-CRyb5e8F.js +1 -1
- package/dist/core.js +1 -1
- package/dist/errors-CljiGR__.js +1 -1
- package/dist/index.js +1 -1
- package/dist/openai/index.js +1 -1
- package/dist/platform-integrations.js +1 -1
- package/dist/sandbox-193cSjQB.js +1 -1
- package/dist/session-gateway/index.js +1 -1
- package/dist/tangle/index.js +1 -1
- package/dist/tangle-B4_UoyBS.js +1 -1
- package/package.json +1 -1
package/dist/auth/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a0_0x30ce0f=a0_0x51cf;(function(_0x33003d,_0x3cb6f6){const _0x4c5136=a0_0x51cf,_0xd56eeb=_0x33003d();while(!![]){try{const _0x4a29ed=-parseInt(_0x4c5136(0x117))/0x1*(-parseInt(_0x4c5136(0xeb))/0x2)+-parseInt(_0x4c5136(0xf5))/0x3+-parseInt(_0x4c5136(0x10d))/0x4*(parseInt(_0x4c5136(0xec))/0x5)+-parseInt(_0x4c5136(0x103))/0x6+-parseInt(_0x4c5136(0x124))/0x7*(-parseInt(_0x4c5136(0x11d))/0x8)+parseInt(_0x4c5136(0xfa))/0x9+-parseInt(_0x4c5136(0xfc))/0xa;if(_0x4a29ed===_0x3cb6f6)break;else _0xd56eeb['push'](_0xd56eeb['shift']());}catch(_0x4849e6){_0xd56eeb['push'](_0xd56eeb['shift']());}}}(a0_0x3b34,0xba6f1));import{createHmac,timingSafeEqual}from'\x6e\x6f\x64\x65\x3a\x63\x72\x79\x70\x74\x6f';function base64UrlEncode(_0x1c6f97){const _0x89b46c=a0_0x51cf,_0x1055ee={'\x76\x53\x6a\x52\x69':'\x73\x74\x72\x69\x6e\x67'};return(typeof _0x1c6f97===_0x1055ee['\x76\x53\x6a\x52\x69']?Buffer['\x66\x72\x6f\x6d'](_0x1c6f97):_0x1c6f97)[_0x89b46c(0xf0)]('\x62\x61\x73\x65\x36\x34')[_0x89b46c(0x105)](/\+/g,'\x2d')['\x72\x65\x70\x6c\x61\x63\x65'](/\//g,'\x5f')[_0x89b46c(0x105)](/=+$/,'');}function decodeBase64UrlToBuffer(_0x596f78){const _0x10a200=a0_0x51cf,_0x2bf535={'\x69\x6e\x68\x61\x4b':function(_0x489a36,_0x14ab91){return _0x489a36%_0x14ab91;}};if(!/^[A-Za-z0-9_-]*$/['\x74\x65\x73\x74'](_0x596f78))return null;const _0x85e03d=_0x596f78+'\x3d'[_0x10a200(0xf9)]((0x4-_0x2bf535['\x69\x6e\x68\x61\x4b'](_0x596f78[_0x10a200(0x10b)],0x4))%0x4);return Buffer[_0x10a200(0x10f)](_0x85e03d[_0x10a200(0x105)](/-/g,'\x2b')[_0x10a200(0x105)](/_/g,'\x2f'),'\x62\x61\x73\x65\x36\x34');}function createSignature(_0xc79ccb,_0x340eef){const _0x1970f5=a0_0x51cf;return base64UrlEncode(createHmac(_0x1970f5(0x10e),_0x340eef)[_0x1970f5(0x102)](_0xc79ccb)[_0x1970f5(0x11b)]());}const JWT_HEADER=base64UrlEncode(JSON[a0_0x30ce0f(0xed)]({'\x61\x6c\x67':'\x48\x53\x32\x35\x36','\x74\x79\x70':a0_0x30ce0f(0x111)}));function a0_0x3b34(){const _0x2c90d2=['\x6d\x74\x65\x35\x6f\x74\x47\x59\x6e\x4a\x62\x54\x7a\x4d\x58\x79\x7a\x4d\x57','\x7a\x31\x7a\x58\x42\x65\x79','\x43\x78\x76\x59\x41\x4d\x57','\x43\x68\x6a\x56\x7a\x68\x76\x4a\x44\x65\x4c\x4b','\x79\x77\x6e\x4a\x7a\x78\x6e\x5a','\x79\x32\x39\x53\x42\x67\x66\x49\x42\x33\x6a\x48\x44\x67\x4c\x56\x42\x47','\x44\x78\x62\x4b\x79\x78\x72\x4c','\x6e\x64\x71\x35\x6f\x74\x61\x34\x6f\x65\x31\x62\x75\x66\x6e\x6b\x41\x71','\x43\x32\x76\x5a\x43\x32\x4c\x56\x42\x4b\x4c\x4b','\x43\x4d\x76\x57\x42\x67\x66\x4a\x7a\x71','\x44\x77\x4c\x67\x41\x4d\x57','\x44\x78\x6e\x4c\x43\x4b\x4c\x4b','\x71\x4b\x72\x63\x41\x4b\x57','\x7a\x4e\x6a\x4c\x7a\x71','\x77\x4b\x31\x72\x72\x31\x61','\x42\x67\x76\x55\x7a\x33\x72\x4f','\x41\x78\x6e\x5a\x44\x77\x76\x64\x42\x32\x58\x53\x79\x77\x6a\x56\x43\x4d\x66\x30\x41\x77\x39\x55','\x6e\x66\x72\x64\x43\x65\x44\x6c\x73\x57','\x43\x32\x48\x48\x6d\x4a\x75\x32','\x7a\x4e\x6a\x56\x42\x71','\x44\x67\x4c\x4c\x43\x47','\x73\x4c\x44\x75','\x77\x75\x48\x53\x75\x75\x30','\x43\x67\x66\x59\x43\x32\x75','\x41\x77\x54\x6c\x71\x33\x43','\x74\x4c\x66\x59\x75\x65\x4b','\x44\x68\x72\x53\x74\x77\x4c\x55\x44\x78\x72\x4c\x43\x57','\x6e\x64\x4b\x35\x6f\x75\x58\x6d\x76\x78\x50\x56\x7a\x57','\x75\x68\x7a\x4a\x43\x76\x79','\x42\x32\x66\x32\x42\x33\x6d','\x7a\x30\x72\x31\x42\x4d\x53','\x7a\x67\x4c\x4e\x7a\x78\x6e\x30','\x7a\x77\x35\x30\x7a\x78\x6a\x57\x43\x4d\x4c\x5a\x7a\x71','\x6d\x74\x65\x32\x6e\x4a\x6d\x5a\x6d\x5a\x7a\x56\x73\x76\x7a\x71\x71\x33\x61','\x42\x4d\x39\x33','\x41\x78\x6a\x62\x76\x75\x4b','\x41\x77\x39\x63\x76\x4e\x61','\x7a\x67\x39\x4a\x44\x77\x31\x4c\x42\x4e\x72\x6a\x7a\x61','\x71\x30\x7a\x58\x43\x66\x65','\x41\x78\x6e\x5a\x44\x77\x75','\x6e\x33\x6a\x33\x43\x67\x66\x7a\x73\x71','\x79\x32\x58\x56\x79\x32\x54\x74\x41\x32\x76\x33\x75\x32\x76\x4a\x42\x32\x35\x4b\x43\x57','\x43\x33\x62\x53\x41\x78\x71','\x43\x32\x4c\x4e\x42\x4d\x4c\x55\x7a\x31\x6e\x4c\x79\x33\x6a\x4c\x44\x61','\x6d\x5a\x43\x30\x76\x30\x39\x41\x77\x4c\x66\x54','\x6d\x74\x6d\x57\x6e\x5a\x65\x35\x6e\x78\x62\x48\x76\x30\x48\x73\x45\x47','\x43\x33\x72\x59\x41\x77\x35\x4e\x41\x77\x7a\x35','\x79\x4d\x58\x41\x76\x33\x61','\x79\x4d\x66\x5a\x7a\x74\x79\x30','\x44\x67\x39\x74\x44\x68\x6a\x50\x42\x4d\x43','\x43\x68\x6a\x56\x41\x4d\x76\x4a\x44\x65\x4c\x4b','\x7a\x78\x48\x57','\x71\x30\x58\x36\x79\x4b\x6d','\x43\x32\x66\x55\x7a\x67\x6a\x56\x45\x65\x4c\x4b','\x6f\x74\x71\x31\x6d\x74\x43\x33\x43\x4c\x6e\x4e\x42\x65\x35\x67','\x41\x4d\x44\x6a\x44\x32\x57','\x79\x77\x58\x4e','\x7a\x4d\x58\x56\x42\x33\x69','\x43\x4d\x76\x57\x7a\x77\x66\x30','\x6f\x64\x61\x33\x6d\x5a\x79\x33\x6e\x76\x6a\x4e\x74\x4b\x72\x67\x72\x47','\x43\x68\x6a\x56'];a0_0x3b34=function(){return _0x2c90d2;};return a0_0x3b34();}function issueToken(_0x3c94b8,_0x1b2675,_0x1daaac){const _0x2304e8=a0_0x30ce0f,_0x4948cc={'\x5a\x4d\x51\x47\x50':function(_0x9cd9b,_0x3e19e5){return _0x9cd9b/_0x3e19e5;},'\x50\x76\x63\x71\x56':function(_0x3b9423,_0x1066a7){return _0x3b9423*_0x1066a7;}},_0x1029c0=Math[_0x2304e8(0xf8)](_0x4948cc[_0x2304e8(0x10a)](Date[_0x2304e8(0x11e)](),0x3e8)),_0x1372eb={..._0x1b2675,'\x69\x61\x74':_0x1029c0,'\x65\x78\x70':_0x1029c0+_0x4948cc[_0x2304e8(0x118)](_0x1daaac,0x3c)},_0x42cd0e=JWT_HEADER+'\x2e'+base64UrlEncode(JSON[_0x2304e8(0xed)](_0x1372eb));return _0x42cd0e+'\x2e'+createSignature(_0x42cd0e,_0x3c94b8);}function issueReadToken(_0x198b56,_0x35539e,_0xcc53b6){const _0x5a3bb1=a0_0x30ce0f,_0x9cada7={'\x69\x72\x41\x55\x49':'\x72\x65\x61\x64'};return issueToken(_0x198b56,{..._0x35539e,'\x74\x79\x70':_0x9cada7[_0x5a3bb1(0x11f)]},_0xcc53b6);}function issueSessionScopedToken(_0x16eeec,_0x48997f,_0x3f8835){return issueReadToken(_0x16eeec,_0x48997f,_0x3f8835);}function issueProjectScopedToken(_0x406d3a,_0x410b0f,_0x347c48){const _0x1424a9={'\x4f\x52\x57\x62\x77':function(_0x5a457c,_0x522f7f,_0x250823,_0x39897a){return _0x5a457c(_0x522f7f,_0x250823,_0x39897a);}};return _0x1424a9['\x4f\x52\x57\x62\x77'](issueReadToken,_0x406d3a,_0x410b0f,_0x347c48);}function issueBatchScopedToken(_0x2bc6db,_0x12011e,_0x148166){const _0x102b5c=a0_0x30ce0f,_0x468dd7={'\x62\x6c\x5a\x57\x70':function(_0x483ac2,_0x4dac21,_0x20ec8d,_0x3e5269){return _0x483ac2(_0x4dac21,_0x20ec8d,_0x3e5269);}};return _0x468dd7[_0x102b5c(0xee)](issueReadToken,_0x2bc6db,_0x12011e,_0x148166);}function issueCollaborationToken(_0x3da6d8,_0xc25f60,_0x56b9a7){const _0x430a6c=a0_0x30ce0f;return issueToken(_0x3da6d8,{'\x73\x75\x62':_0xc25f60[_0x430a6c(0x107)],'\x73\x69\x64':_0xc25f60[_0x430a6c(0x104)],'\x70\x69\x64':_0xc25f60[_0x430a6c(0xff)],'\x63\x69\x64':_0xc25f60[_0x430a6c(0xf4)],'\x74\x79\x70':_0x430a6c(0x101),'\x70\x72\x6f\x6a\x65\x63\x74\x49\x64':_0xc25f60[_0x430a6c(0xf1)],'\x64\x6f\x63\x75\x6d\x65\x6e\x74\x49\x64':_0xc25f60['\x64\x6f\x63\x75\x6d\x65\x6e\x74\x49\x64'],'\x61\x63\x63\x65\x73\x73':_0xc25f60[_0x430a6c(0x100)]},_0x56b9a7);}function unsafeDecodeToken(_0x53ddd8){const _0x36a857=a0_0x30ce0f,_0x48b832={'\x67\x44\x75\x6e\x6b':function(_0x2d3597,_0x63c67b){return _0x2d3597!==_0x63c67b;},'\x4a\x7a\x47\x76\x41':function(_0x545d7a,_0x42ffc9){return _0x545d7a%_0x42ffc9;},'\x6a\x76\x53\x51\x4d':function(_0x2a618f,_0x3b535b){return _0x2a618f%_0x3b535b;}};try{const _0x34713a=_0x53ddd8[_0x36a857(0xe9)]('\x2e');if(_0x48b832[_0x36a857(0x11a)](_0x34713a['\x6c\x65\x6e\x67\x74\x68'],0x3))return null;const _0x4c6c47=_0x34713a[0x1]+'\x3d'[_0x36a857(0xf9)](_0x48b832['\x4a\x7a\x47\x76\x41'](0x4-_0x48b832['\x6a\x76\x53\x51\x4d'](_0x34713a[0x1][_0x36a857(0x10b)],0x4),0x4)),_0x4ca095=Buffer['\x66\x72\x6f\x6d'](_0x4c6c47['\x72\x65\x70\x6c\x61\x63\x65'](/-/g,'\x2b')['\x72\x65\x70\x6c\x61\x63\x65'](/_/g,'\x2f'),'\x62\x61\x73\x65\x36\x34')[_0x36a857(0xf0)]();return JSON['\x70\x61\x72\x73\x65'](_0x4ca095);}catch{return null;}}function verifyToken(_0x3d93a1,_0x4f3921,_0x27c4bf={}){const _0x54477a=a0_0x30ce0f,_0x534f75={'\x67\x56\x71\x6c\x46':function(_0xa58838,_0x265eee){return _0xa58838!==_0x265eee;},'\x4e\x51\x72\x50\x49':function(_0x20abf1,_0x31f6cc){return _0x20abf1-_0x31f6cc;},'\x6a\x67\x49\x77\x6c':function(_0xcaab8f,_0x65355c){return _0xcaab8f%_0x65355c;},'\x75\x69\x46\x6a\x6c':_0x54477a(0xef),'\x69\x6f\x42\x56\x70':'\x48\x53\x32\x35\x36','\x42\x44\x42\x6a\x4c':function(_0x4bbdf8,_0x5d534d,_0x40cbc4){return _0x4bbdf8(_0x5d534d,_0x40cbc4);},'\x59\x48\x6c\x51\x4d':function(_0xb8755,_0x2fc757){return _0xb8755(_0x2fc757);},'\x78\x77\x6f\x6c\x77':function(_0xd26323,_0x3eaf5d){return _0xd26323||_0x3eaf5d;},'\x71\x75\x72\x6a\x6c':function(_0x2a68ba,_0x491bad){return _0x2a68ba!==_0x491bad;}};try{const _0x51ac2c=_0x3d93a1[_0x54477a(0xe9)]('\x2e');if(_0x534f75[_0x54477a(0xfd)](_0x51ac2c[_0x54477a(0x10b)],0x3))return null;const [_0x1393e7,_0x1ec121,_0x356ebe]=_0x51ac2c;if(!_0x1393e7||!_0x1ec121||!_0x356ebe)return null;let _0x4c15a4;try{const _0x496336=_0x1393e7+'\x3d'['\x72\x65\x70\x65\x61\x74'](_0x534f75[_0x54477a(0x115)](0x4,_0x534f75[_0x54477a(0xf6)](_0x1393e7['\x6c\x65\x6e\x67\x74\x68'],0x4))%0x4),_0x500b27=Buffer['\x66\x72\x6f\x6d'](_0x496336[_0x54477a(0x105)](/-/g,'\x2b')['\x72\x65\x70\x6c\x61\x63\x65'](/_/g,'\x2f'),_0x534f75[_0x54477a(0x106)])[_0x54477a(0xf0)]();_0x4c15a4=JSON[_0x54477a(0x113)](_0x500b27);}catch{return null;}if(_0x534f75['\x67\x56\x71\x6c\x46'](_0x4c15a4[_0x54477a(0xf7)],_0x534f75[_0x54477a(0x120)]))return null;const _0x5885cf=_0x534f75[_0x54477a(0x108)](createSignature,_0x1393e7+'\x2e'+_0x1ec121,_0x4f3921),_0x46354d=_0x534f75[_0x54477a(0x112)](decodeBase64UrlToBuffer,_0x356ebe),_0x1a7ac7=_0x534f75[_0x54477a(0x112)](decodeBase64UrlToBuffer,_0x5885cf);if(_0x534f75['\x78\x77\x6f\x6c\x77'](!_0x46354d,!_0x1a7ac7))return null;if(_0x534f75[_0x54477a(0xfe)](_0x46354d[_0x54477a(0x10b)],_0x1a7ac7[_0x54477a(0x10b)]))return null;if(!timingSafeEqual(_0x46354d,_0x1a7ac7))return null;const _0x56031d=unsafeDecodeToken(_0x3d93a1);if(!_0x56031d)return null;const _0x25c385=Math[_0x54477a(0xf8)](Date[_0x54477a(0x11e)]()/0x3e8),_0x4c90d4=Math['\x6d\x61\x78'](0x0,_0x27c4bf[_0x54477a(0x125)]??0x0);if(typeof _0x56031d[_0x54477a(0xf2)]!=='\x6e\x75\x6d\x62\x65\x72'||_0x56031d[_0x54477a(0xf2)]+_0x4c90d4<_0x25c385)return null;return _0x56031d;}catch{return null;}}function getTokenTTL(_0x2ea0cd){const _0x253f0e=a0_0x30ce0f,_0x2cd696=Math[_0x253f0e(0xf8)](Date[_0x253f0e(0x11e)]()/0x3e8);return _0x2ea0cd[_0x253f0e(0xf2)]-_0x2cd696;}function a0_0x51cf(_0x31a0b7,_0x1d2260){_0x31a0b7=_0x31a0b7-0xe9;const _0x3b3498=a0_0x3b34();let _0x51cf88=_0x3b3498[_0x31a0b7];if(a0_0x51cf['\x51\x6e\x75\x45\x49\x70']===undefined){var _0x398f89=function(_0x3c9fb6){const _0x1a7048='\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 _0x537680='',_0x38177f='';for(let _0x2830c3=0x0,_0x20b06e,_0x44ece9,_0x2d4c0a=0x0;_0x44ece9=_0x3c9fb6['\x63\x68\x61\x72\x41\x74'](_0x2d4c0a++);~_0x44ece9&&(_0x20b06e=_0x2830c3%0x4?_0x20b06e*0x40+_0x44ece9:_0x44ece9,_0x2830c3++%0x4)?_0x537680+=String['\x66\x72\x6f\x6d\x43\x68\x61\x72\x43\x6f\x64\x65'](0xff&_0x20b06e>>(-0x2*_0x2830c3&0x6)):0x0){_0x44ece9=_0x1a7048['\x69\x6e\x64\x65\x78\x4f\x66'](_0x44ece9);}for(let _0x3e6d52=0x0,_0x4fecda=_0x537680['\x6c\x65\x6e\x67\x74\x68'];_0x3e6d52<_0x4fecda;_0x3e6d52++){_0x38177f+='\x25'+('\x30\x30'+_0x537680['\x63\x68\x61\x72\x43\x6f\x64\x65\x41\x74'](_0x3e6d52)['\x74\x6f\x53\x74\x72\x69\x6e\x67'](0x10))['\x73\x6c\x69\x63\x65'](-0x2);}return decodeURIComponent(_0x38177f);};a0_0x51cf['\x51\x70\x71\x54\x47\x6d']=_0x398f89,a0_0x51cf['\x51\x58\x72\x79\x56\x44']={},a0_0x51cf['\x51\x6e\x75\x45\x49\x70']=!![];}const _0x4032ba=_0x3b3498[0x0],_0x51bf16=_0x31a0b7+_0x4032ba,_0x4d12d5=a0_0x51cf['\x51\x58\x72\x79\x56\x44'][_0x51bf16];return!_0x4d12d5?(_0x51cf88=a0_0x51cf['\x51\x70\x71\x54\x47\x6d'](_0x51cf88),a0_0x51cf['\x51\x58\x72\x79\x56\x44'][_0x51bf16]=_0x51cf88):_0x51cf88=_0x4d12d5,_0x51cf88;}function isTokenExpiringSoon(_0x33537a,_0x2f9259=0x3c){const _0x501c3f=a0_0x30ce0f,_0x37cb57={'\x43\x46\x71\x70\x51':function(_0x2b2439,_0x3819ec){return _0x2b2439<=_0x3819ec;}};return _0x37cb57[_0x501c3f(0x122)](getTokenTTL(_0x33537a),_0x2f9259);}var ProductTokenIssuer=class{[a0_0x30ce0f(0xff)];[a0_0x30ce0f(0xea)];['\x74\x74\x6c\x4d\x69\x6e\x75\x74\x65\x73'];constructor(_0x180fc2){const _0x350af7=a0_0x30ce0f;this[_0x350af7(0xff)]=_0x180fc2['\x70\x72\x6f\x64\x75\x63\x74\x49\x64'],this[_0x350af7(0xea)]=_0x180fc2[_0x350af7(0xea)],this[_0x350af7(0x116)]={'\x66\x72\x65\x65':_0x180fc2[_0x350af7(0x116)]?.[_0x350af7(0x109)]??0xf,'\x70\x72\x6f':_0x180fc2[_0x350af7(0x116)]?.[_0x350af7(0xfb)]??0xf0,'\x65\x6e\x74\x65\x72\x70\x72\x69\x73\x65':_0x180fc2[_0x350af7(0x116)]?.[_0x350af7(0x11c)]??0x1e0};}[a0_0x30ce0f(0x123)](_0x31ca15){const _0xf658d4=a0_0x30ce0f,_0xeb56df={'\x43\x4c\x7a\x62\x43':function(_0x185707,_0x180059){return _0x185707+_0x180059;},'\x6f\x61\x76\x6f\x73':function(_0x381d1d,_0x18c1ab){return _0x381d1d/_0x18c1ab;}},_0x55b3fe=_0x31ca15['\x74\x69\x65\x72']??_0xf658d4(0x109),_0x46450c=this[_0xf658d4(0x116)][_0x55b3fe]??this[_0xf658d4(0x116)][_0xf658d4(0x109)];return{'\x74\x6f\x6b\x65\x6e':issueReadToken(this['\x73\x69\x67\x6e\x69\x6e\x67\x53\x65\x63\x72\x65\x74'],{'\x73\x75\x62':_0x31ca15[_0xf658d4(0x107)],'\x73\x69\x64':_0x31ca15['\x73\x65\x73\x73\x69\x6f\x6e\x49\x64'],'\x70\x69\x64':this[_0xf658d4(0xff)],'\x63\x69\x64':_0x31ca15[_0xf658d4(0xf4)]},_0x46450c),'\x65\x78\x70\x69\x72\x65\x73\x41\x74':_0xeb56df[_0xf658d4(0xf3)](Math[_0xf658d4(0xf8)](_0xeb56df[_0xf658d4(0x119)](Date[_0xf658d4(0x11e)](),0x3e8)),_0x46450c*0x3c)};}[a0_0x30ce0f(0x10c)](_0x372b27){const _0x1ca9f1=a0_0x30ce0f,_0x5ba38d={'\x78\x52\x77\x68\x54':function(_0x368bfd,_0x3945e7){return _0x368bfd+_0x3945e7;},'\x69\x6b\x4b\x43\x77':function(_0x3c870f,_0x4dce60){return _0x3c870f/_0x4dce60;}},_0x5b388e=_0x372b27[_0x1ca9f1(0x110)]??'\x66\x72\x65\x65',_0x4a7ae8=this[_0x1ca9f1(0x116)][_0x5b388e]??this[_0x1ca9f1(0x116)][_0x1ca9f1(0x109)];return{'\x74\x6f\x6b\x65\x6e':issueCollaborationToken(this[_0x1ca9f1(0xea)],{'\x75\x73\x65\x72\x49\x64':_0x372b27['\x75\x73\x65\x72\x49\x64'],'\x73\x65\x73\x73\x69\x6f\x6e\x49\x64':_0x372b27[_0x1ca9f1(0x104)],'\x70\x72\x6f\x64\x75\x63\x74\x49\x64':this[_0x1ca9f1(0xff)],'\x70\x72\x6f\x6a\x65\x63\x74\x49\x64':_0x372b27[_0x1ca9f1(0xf1)],'\x64\x6f\x63\x75\x6d\x65\x6e\x74\x49\x64':_0x372b27[_0x1ca9f1(0x121)],'\x61\x63\x63\x65\x73\x73':_0x372b27[_0x1ca9f1(0x100)],'\x73\x61\x6e\x64\x62\x6f\x78\x49\x64':_0x372b27[_0x1ca9f1(0xf4)]},_0x4a7ae8),'\x65\x78\x70\x69\x72\x65\x73\x41\x74':_0x5ba38d['\x78\x52\x77\x68\x54'](Math['\x66\x6c\x6f\x6f\x72'](_0x5ba38d[_0x1ca9f1(0x114)](Date['\x6e\x6f\x77'](),0x3e8)),_0x4a7ae8*0x3c)};}['\x67\x65\x74\x54\x74\x6c\x4d\x69\x6e\x75\x74\x65\x73'](_0x18c8f5=a0_0x30ce0f(0x109)){const _0x3132b2=a0_0x30ce0f;return this['\x74\x74\x6c\x4d\x69\x6e\x75\x74\x65\x73'][_0x18c8f5]??this[_0x3132b2(0x116)]['\x66\x72\x65\x65'];}};export{ProductTokenIssuer,getTokenTTL,isTokenExpiringSoon,issueBatchScopedToken,issueCollaborationToken,issueProjectScopedToken,issueReadToken,issueSessionScopedToken,unsafeDecodeToken,verifyToken};
|
|
1
|
+
const a0_0x860a94=a0_0x5086;(function(_0x572693,_0x30f910){const _0x7f08b0=a0_0x5086,_0x3f8f6c=_0x572693();while(!![]){try{const _0x25a9a7=parseInt(_0x7f08b0(0x11d))/0x1+-parseInt(_0x7f08b0(0x112))/0x2*(-parseInt(_0x7f08b0(0x133))/0x3)+parseInt(_0x7f08b0(0x140))/0x4*(parseInt(_0x7f08b0(0x132))/0x5)+parseInt(_0x7f08b0(0x141))/0x6+-parseInt(_0x7f08b0(0x122))/0x7+parseInt(_0x7f08b0(0x126))/0x8+-parseInt(_0x7f08b0(0x139))/0x9;if(_0x25a9a7===_0x30f910)break;else _0x3f8f6c['push'](_0x3f8f6c['shift']());}catch(_0x489326){_0x3f8f6c['push'](_0x3f8f6c['shift']());}}}(a0_0x189b,0x44c38));import{createHmac,timingSafeEqual}from'\x6e\x6f\x64\x65\x3a\x63\x72\x79\x70\x74\x6f';function base64UrlEncode(_0x146fb0){const _0x1fe778=a0_0x5086,_0x36eaee={'\x53\x6d\x64\x74\x57':'\x73\x74\x72\x69\x6e\x67'};return(typeof _0x146fb0===_0x36eaee[_0x1fe778(0x131)]?Buffer['\x66\x72\x6f\x6d'](_0x146fb0):_0x146fb0)[_0x1fe778(0x12c)](_0x1fe778(0x11a))[_0x1fe778(0x145)](/\+/g,'\x2d')[_0x1fe778(0x145)](/\//g,'\x5f')[_0x1fe778(0x145)](/=+$/,'');}function a0_0x5086(_0x4860aa,_0xdc9375){_0x4860aa=_0x4860aa-0x10f;const _0x189bb4=a0_0x189b();let _0x5086ae=_0x189bb4[_0x4860aa];if(a0_0x5086['\x56\x6d\x4b\x6f\x68\x49']===undefined){var _0x2e62e3=function(_0x166672){const _0xa461ab='\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 _0x49fb0a='',_0x427203='';for(let _0x111e63=0x0,_0x12dfd7,_0xedeb10,_0x496e0d=0x0;_0xedeb10=_0x166672['\x63\x68\x61\x72\x41\x74'](_0x496e0d++);~_0xedeb10&&(_0x12dfd7=_0x111e63%0x4?_0x12dfd7*0x40+_0xedeb10:_0xedeb10,_0x111e63++%0x4)?_0x49fb0a+=String['\x66\x72\x6f\x6d\x43\x68\x61\x72\x43\x6f\x64\x65'](0xff&_0x12dfd7>>(-0x2*_0x111e63&0x6)):0x0){_0xedeb10=_0xa461ab['\x69\x6e\x64\x65\x78\x4f\x66'](_0xedeb10);}for(let _0x58e860=0x0,_0x30dcd1=_0x49fb0a['\x6c\x65\x6e\x67\x74\x68'];_0x58e860<_0x30dcd1;_0x58e860++){_0x427203+='\x25'+('\x30\x30'+_0x49fb0a['\x63\x68\x61\x72\x43\x6f\x64\x65\x41\x74'](_0x58e860)['\x74\x6f\x53\x74\x72\x69\x6e\x67'](0x10))['\x73\x6c\x69\x63\x65'](-0x2);}return decodeURIComponent(_0x427203);};a0_0x5086['\x41\x55\x72\x46\x6c\x6f']=_0x2e62e3,a0_0x5086['\x62\x48\x55\x56\x46\x48']={},a0_0x5086['\x56\x6d\x4b\x6f\x68\x49']=!![];}const _0x5e17d4=_0x189bb4[0x0],_0x14baf6=_0x4860aa+_0x5e17d4,_0xdd162e=a0_0x5086['\x62\x48\x55\x56\x46\x48'][_0x14baf6];return!_0xdd162e?(_0x5086ae=a0_0x5086['\x41\x55\x72\x46\x6c\x6f'](_0x5086ae),a0_0x5086['\x62\x48\x55\x56\x46\x48'][_0x14baf6]=_0x5086ae):_0x5086ae=_0xdd162e,_0x5086ae;}function decodeBase64UrlToBuffer(_0x398276){const _0x20a37f=a0_0x5086,_0x443ef1={'\x77\x47\x61\x7a\x59':function(_0x409161,_0x320631){return _0x409161-_0x320631;}};if(!/^[A-Za-z0-9_-]*$/[_0x20a37f(0x12d)](_0x398276))return null;const _0x49af51=_0x398276+'\x3d'['\x72\x65\x70\x65\x61\x74'](_0x443ef1[_0x20a37f(0x148)](0x4,_0x398276[_0x20a37f(0x114)]%0x4)%0x4);return Buffer['\x66\x72\x6f\x6d'](_0x49af51[_0x20a37f(0x145)](/-/g,'\x2b')[_0x20a37f(0x145)](/_/g,'\x2f'),'\x62\x61\x73\x65\x36\x34');}function createSignature(_0x3d0ca1,_0x42a957){const _0x5a71a4=a0_0x5086,_0x1ad21e={'\x76\x57\x4a\x56\x52':function(_0x1cc244,_0x112e10){return _0x1cc244(_0x112e10);},'\x6e\x6d\x4b\x5a\x67':_0x5a71a4(0x12b)};return _0x1ad21e['\x76\x57\x4a\x56\x52'](base64UrlEncode,createHmac(_0x1ad21e['\x6e\x6d\x4b\x5a\x67'],_0x42a957)[_0x5a71a4(0x11e)](_0x3d0ca1)[_0x5a71a4(0x14c)]());}const JWT_HEADER=base64UrlEncode(JSON[a0_0x860a94(0x130)]({'\x61\x6c\x67':a0_0x860a94(0x13d),'\x74\x79\x70':a0_0x860a94(0x111)}));function issueToken(_0x75862d,_0x2aeaef,_0x2c2561){const _0x51c104=a0_0x860a94,_0x12b35b={'\x74\x68\x62\x48\x49':function(_0x52e9dc,_0x354983){return _0x52e9dc+_0x354983;},'\x4c\x51\x71\x44\x43':function(_0x5561c7,_0x4a892f,_0x241851){return _0x5561c7(_0x4a892f,_0x241851);}},_0x13e3e8=Math['\x66\x6c\x6f\x6f\x72'](Date['\x6e\x6f\x77']()/0x3e8),_0x2e5d88={..._0x2aeaef,'\x69\x61\x74':_0x13e3e8,'\x65\x78\x70':_0x12b35b[_0x51c104(0x11f)](_0x13e3e8,_0x2c2561*0x3c)},_0x11c380=JWT_HEADER+'\x2e'+base64UrlEncode(JSON[_0x51c104(0x130)](_0x2e5d88));return _0x11c380+'\x2e'+_0x12b35b[_0x51c104(0x14f)](createSignature,_0x11c380,_0x75862d);}function issueReadToken(_0x2adefe,_0x4fbd0e,_0x4fd95a){const _0x5bd006=a0_0x860a94;return issueToken(_0x2adefe,{..._0x4fbd0e,'\x74\x79\x70':_0x5bd006(0x116)},_0x4fd95a);}function issueSessionScopedToken(_0x2aaa47,_0x4d55cf,_0x4e18de){return issueReadToken(_0x2aaa47,_0x4d55cf,_0x4e18de);}function issueProjectScopedToken(_0x3ba4e8,_0xc243d9,_0x533b51){const _0x1fba41=a0_0x860a94,_0x51d947={'\x7a\x56\x50\x78\x67':function(_0x3115b0,_0x247d5b,_0xb7ac51,_0xf80360){return _0x3115b0(_0x247d5b,_0xb7ac51,_0xf80360);}};return _0x51d947[_0x1fba41(0x129)](issueReadToken,_0x3ba4e8,_0xc243d9,_0x533b51);}function issueBatchScopedToken(_0x572ed0,_0x843087,_0x2af2b9){return issueReadToken(_0x572ed0,_0x843087,_0x2af2b9);}function a0_0x189b(){const _0x306967=['\x41\x78\x6e\x5a\x44\x77\x76\x64\x42\x32\x58\x53\x79\x77\x6a\x56\x43\x4d\x66\x30\x41\x77\x39\x55','\x42\x67\x76\x55\x7a\x33\x72\x4f','\x79\x32\x58\x56\x79\x32\x54\x74\x41\x32\x76\x33\x75\x32\x76\x4a\x42\x32\x35\x4b\x43\x57','\x43\x4d\x76\x48\x7a\x61','\x43\x67\x66\x59\x43\x32\x75','\x41\x78\x6e\x5a\x44\x77\x75','\x42\x4d\x39\x33','\x79\x4d\x66\x5a\x7a\x74\x79\x30','\x43\x32\x66\x55\x7a\x67\x6a\x56\x45\x65\x4c\x4b','\x79\x77\x58\x4e','\x6e\x74\x6d\x57\x6d\x4a\x69\x57\x77\x66\x62\x4a\x72\x67\x31\x74','\x44\x78\x62\x4b\x79\x78\x72\x4c','\x44\x67\x48\x49\x73\x65\x4b','\x42\x77\x66\x34','\x43\x32\x4c\x4e\x42\x4d\x4c\x55\x7a\x31\x6e\x4c\x79\x33\x6a\x4c\x44\x61','\x6d\x5a\x6d\x58\x6e\x64\x6d\x30\x6e\x4b\x54\x6a\x41\x76\x6a\x55\x72\x47','\x74\x4e\x66\x34\x42\x4b\x71','\x75\x4d\x7a\x75\x72\x32\x69','\x73\x67\x50\x59\x7a\x76\x4f','\x6d\x5a\x6d\x33\x6e\x5a\x65\x57\x6e\x67\x39\x4f\x76\x77\x58\x52\x43\x47','\x7a\x67\x39\x4a\x44\x77\x31\x4c\x42\x4e\x72\x6a\x7a\x61','\x74\x75\x7a\x41\x43\x4b\x53','\x45\x4c\x7a\x71\x45\x67\x43','\x44\x67\x4c\x4c\x43\x47','\x43\x32\x48\x48\x6d\x4a\x75\x32','\x44\x67\x39\x74\x44\x68\x6a\x50\x42\x4d\x43','\x44\x67\x76\x5a\x44\x61','\x43\x68\x6a\x56\x41\x4d\x76\x4a\x44\x65\x4c\x4b','\x44\x68\x72\x53\x74\x77\x4c\x55\x44\x78\x72\x4c\x43\x57','\x43\x33\x72\x59\x41\x77\x35\x4e\x41\x77\x7a\x35','\x75\x32\x31\x4b\x44\x66\x43','\x6d\x4a\x75\x32\x6e\x4a\x65\x57\x44\x65\x50\x5a\x43\x68\x66\x71','\x6d\x33\x44\x51\x41\x33\x62\x78\x44\x57','\x41\x4c\x7a\x55\x73\x4c\x79','\x7a\x4e\x6a\x4c\x7a\x71','\x7a\x33\x6a\x78\x74\x4b\x57','\x43\x32\x76\x5a\x43\x32\x4c\x56\x42\x4b\x4c\x4b','\x43\x4e\x6e\x52\x42\x31\x43','\x6e\x4a\x69\x58\x6e\x64\x4b\x31\x6f\x78\x7a\x32\x75\x66\x6e\x54\x72\x71','\x43\x68\x6a\x56','\x7a\x4e\x6a\x56\x42\x71','\x7a\x32\x76\x30\x76\x68\x72\x53\x74\x77\x4c\x55\x44\x78\x72\x4c\x43\x57','\x73\x66\x6d\x59\x6e\x74\x79','\x41\x65\x44\x7a\x73\x30\x47','\x7a\x4d\x58\x56\x42\x33\x69','\x6e\x67\x76\x36\x76\x76\x48\x65\x77\x71','\x6d\x74\x71\x5a\x6f\x74\x71\x32\x6d\x65\x31\x65\x41\x31\x66\x50\x79\x71','\x43\x67\x66\x53\x7a\x32\x75','\x7a\x31\x44\x5a\x44\x4c\x47','\x72\x68\x66\x4c\x7a\x67\x65','\x43\x4d\x76\x57\x42\x67\x66\x4a\x7a\x71','\x43\x33\x62\x53\x41\x78\x71','\x44\x78\x6e\x4c\x43\x4b\x4c\x4b','\x44\x30\x44\x48\x45\x4c\x4b','\x42\x4e\x76\x54\x79\x4d\x76\x59','\x43\x68\x6a\x56\x7a\x68\x76\x4a\x44\x65\x4c\x4b','\x7a\x78\x48\x57','\x7a\x67\x4c\x4e\x7a\x78\x6e\x30','\x79\x77\x6e\x4a\x7a\x78\x6e\x5a','\x79\x4d\x66\x58\x44\x4e\x4f','\x74\x66\x66\x58\x72\x65\x6d','\x43\x4d\x76\x57\x7a\x77\x66\x30','\x42\x33\x6e\x35\x45\x77\x65','\x7a\x77\x35\x30\x7a\x78\x6a\x57\x43\x4d\x4c\x5a\x7a\x71','\x73\x4c\x44\x75','\x6e\x64\x61\x30\x6d\x74\x4b\x57\x72\x76\x72\x75\x77\x76\x44\x55'];a0_0x189b=function(){return _0x306967;};return a0_0x189b();}function issueCollaborationToken(_0x581e9d,_0x408dd9,_0x4f8a6e){const _0x3fb8cd=a0_0x860a94,_0x54140d={'\x48\x6a\x72\x65\x5a':function(_0x24610d,_0x550f24,_0x504bcf,_0x59c604){return _0x24610d(_0x550f24,_0x504bcf,_0x59c604);}};return _0x54140d[_0x3fb8cd(0x125)](issueToken,_0x581e9d,{'\x73\x75\x62':_0x408dd9[_0x3fb8cd(0x147)],'\x73\x69\x64':_0x408dd9[_0x3fb8cd(0x137)],'\x70\x69\x64':_0x408dd9[_0x3fb8cd(0x14a)],'\x63\x69\x64':_0x408dd9['\x73\x61\x6e\x64\x62\x6f\x78\x49\x64'],'\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':_0x408dd9[_0x3fb8cd(0x12e)],'\x64\x6f\x63\x75\x6d\x65\x6e\x74\x49\x64':_0x408dd9[_0x3fb8cd(0x127)],'\x61\x63\x63\x65\x73\x73':_0x408dd9[_0x3fb8cd(0x14d)]},_0x4f8a6e);}function unsafeDecodeToken(_0x5515f9){const _0x5b45f2=a0_0x860a94,_0x11da7a={'\x72\x73\x6b\x6f\x57':function(_0x2e66a8,_0x38cd7f){return _0x2e66a8-_0x38cd7f;},'\x70\x61\x6c\x67\x65':function(_0x1060c1,_0x277705){return _0x1060c1%_0x277705;}};try{const _0x1f75ae=_0x5515f9['\x73\x70\x6c\x69\x74']('\x2e');if(_0x1f75ae[_0x5b45f2(0x114)]!==0x3)return null;const _0x3d4819=_0x1f75ae[0x1]+'\x3d'[_0x5b45f2(0x150)](_0x11da7a[_0x5b45f2(0x138)](0x4,_0x11da7a[_0x5b45f2(0x142)](_0x1f75ae[0x1]['\x6c\x65\x6e\x67\x74\x68'],0x4))%0x4),_0x4cba41=Buffer[_0x5b45f2(0x13b)](_0x3d4819[_0x5b45f2(0x145)](/-/g,'\x2b')[_0x5b45f2(0x145)](/_/g,'\x2f'),'\x62\x61\x73\x65\x36\x34')[_0x5b45f2(0x12c)]();return JSON['\x70\x61\x72\x73\x65'](_0x4cba41);}catch{return null;}}function verifyToken(_0xe0a729,_0x35a52b,_0x54c040={}){const _0x327567=a0_0x860a94,_0x253387={'\x67\x72\x57\x4e\x4c':function(_0x13574d,_0x15bf7c){return _0x13574d||_0x15bf7c;},'\x43\x6b\x74\x45\x71':function(_0x237d1d,_0x2ee207){return _0x237d1d+_0x2ee207;},'\x68\x47\x59\x4b\x48':_0x327567(0x11a),'\x6f\x73\x79\x79\x61':_0x327567(0x13d),'\x52\x66\x54\x47\x62':function(_0x355ec4,_0x5de098){return _0x355ec4(_0x5de098);},'\x4d\x46\x5a\x72\x4b':function(_0x3df6a6,_0x8bd161){return _0x3df6a6/_0x8bd161;}};try{const _0x32da48=_0xe0a729[_0x327567(0x146)]('\x2e');if(_0x32da48[_0x327567(0x114)]!==0x3)return null;const [_0x12d47e,_0xc85b2c,_0x3cab84]=_0x32da48;if(_0x253387[_0x327567(0x136)](!_0x12d47e,!_0xc85b2c)||!_0x3cab84)return null;let _0x6e8c84;try{const _0x4646d3=_0x253387['\x43\x6b\x74\x45\x71'](_0x12d47e,'\x3d'[_0x327567(0x150)]((0x4-_0x12d47e[_0x327567(0x114)]%0x4)%0x4)),_0x4a4e1c=Buffer[_0x327567(0x13b)](_0x4646d3[_0x327567(0x145)](/-/g,'\x2b')['\x72\x65\x70\x6c\x61\x63\x65'](/_/g,'\x2f'),_0x253387[_0x327567(0x13e)])[_0x327567(0x12c)]();_0x6e8c84=JSON[_0x327567(0x117)](_0x4a4e1c);}catch{return null;}if(_0x6e8c84[_0x327567(0x11c)]!==_0x253387[_0x327567(0x10f)])return null;const _0x3a8b99=createSignature(_0x12d47e+'\x2e'+_0xc85b2c,_0x35a52b),_0x24cad=_0x253387[_0x327567(0x124)](decodeBase64UrlToBuffer,_0x3cab84),_0x169c77=decodeBase64UrlToBuffer(_0x3a8b99);if(_0x253387['\x67\x72\x57\x4e\x4c'](!_0x24cad,!_0x169c77))return null;if(_0x24cad[_0x327567(0x114)]!==_0x169c77[_0x327567(0x114)])return null;if(!timingSafeEqual(_0x24cad,_0x169c77))return null;const _0x455228=_0x253387[_0x327567(0x124)](unsafeDecodeToken,_0xe0a729);if(!_0x455228)return null;const _0x47cb9d=Math['\x66\x6c\x6f\x6f\x72'](_0x253387[_0x327567(0x128)](Date[_0x327567(0x119)](),0x3e8)),_0x29bd00=Math[_0x327567(0x120)](0x0,_0x54c040[_0x327567(0x115)]??0x0);if(typeof _0x455228['\x65\x78\x70']!==_0x327567(0x149)||_0x455228['\x65\x78\x70']+_0x29bd00<_0x47cb9d)return null;return _0x455228;}catch{return null;}}function getTokenTTL(_0xf58c16){const _0x41071d=a0_0x860a94,_0x288a09={'\x6a\x56\x6e\x4a\x56':function(_0x221558,_0x2a9af7){return _0x221558/_0x2a9af7;}},_0x2ff727=Math[_0x41071d(0x13f)](_0x288a09[_0x41071d(0x134)](Date[_0x41071d(0x119)](),0x3e8));return _0xf58c16[_0x41071d(0x14b)]-_0x2ff727;}function isTokenExpiringSoon(_0x1aed09,_0x4ccfe3=0x3c){return getTokenTTL(_0x1aed09)<=_0x4ccfe3;}var ProductTokenIssuer=class{[a0_0x860a94(0x14a)];[a0_0x860a94(0x121)];[a0_0x860a94(0x12f)];constructor(_0x5cfe05){const _0x49d0bc=a0_0x860a94;this['\x70\x72\x6f\x64\x75\x63\x74\x49\x64']=_0x5cfe05[_0x49d0bc(0x14a)],this[_0x49d0bc(0x121)]=_0x5cfe05[_0x49d0bc(0x121)],this['\x74\x74\x6c\x4d\x69\x6e\x75\x74\x65\x73']={'\x66\x72\x65\x65':_0x5cfe05[_0x49d0bc(0x12f)]?.[_0x49d0bc(0x135)]??0xf,'\x70\x72\x6f':_0x5cfe05[_0x49d0bc(0x12f)]?.[_0x49d0bc(0x13a)]??0xf0,'\x65\x6e\x74\x65\x72\x70\x72\x69\x73\x65':_0x5cfe05[_0x49d0bc(0x12f)]?.[_0x49d0bc(0x110)]??0x1e0};}[a0_0x860a94(0x118)](_0x2b6865){const _0x47c08f=a0_0x860a94,_0x4ab05b={'\x4e\x71\x78\x6e\x44':function(_0x491d35,_0x2713d9,_0x1dc075,_0x473207){return _0x491d35(_0x2713d9,_0x1dc075,_0x473207);}},_0x21a746=_0x2b6865[_0x47c08f(0x12a)]??_0x47c08f(0x135),_0x43ee3e=this[_0x47c08f(0x12f)][_0x21a746]??this['\x74\x74\x6c\x4d\x69\x6e\x75\x74\x65\x73'][_0x47c08f(0x135)];return{'\x74\x6f\x6b\x65\x6e':_0x4ab05b[_0x47c08f(0x123)](issueReadToken,this['\x73\x69\x67\x6e\x69\x6e\x67\x53\x65\x63\x72\x65\x74'],{'\x73\x75\x62':_0x2b6865['\x75\x73\x65\x72\x49\x64'],'\x73\x69\x64':_0x2b6865[_0x47c08f(0x137)],'\x70\x69\x64':this['\x70\x72\x6f\x64\x75\x63\x74\x49\x64'],'\x63\x69\x64':_0x2b6865[_0x47c08f(0x11b)]},_0x43ee3e),'\x65\x78\x70\x69\x72\x65\x73\x41\x74':Math[_0x47c08f(0x13f)](Date[_0x47c08f(0x119)]()/0x3e8)+_0x43ee3e*0x3c};}[a0_0x860a94(0x113)](_0x456313){const _0x57e45b=a0_0x860a94,_0x52bead={'\x67\x57\x73\x76\x58':'\x66\x72\x65\x65','\x62\x61\x71\x76\x7a':function(_0x1371f5,_0x308c1a,_0x447d1b,_0x5012fe){return _0x1371f5(_0x308c1a,_0x447d1b,_0x5012fe);},'\x44\x71\x65\x64\x61':function(_0x27cd7c,_0x24e8b5){return _0x27cd7c*_0x24e8b5;}},_0x2473af=_0x456313[_0x57e45b(0x12a)]??_0x52bead[_0x57e45b(0x143)],_0x2a2165=this[_0x57e45b(0x12f)][_0x2473af]??this[_0x57e45b(0x12f)][_0x57e45b(0x135)];return{'\x74\x6f\x6b\x65\x6e':_0x52bead[_0x57e45b(0x14e)](issueCollaborationToken,this[_0x57e45b(0x121)],{'\x75\x73\x65\x72\x49\x64':_0x456313[_0x57e45b(0x147)],'\x73\x65\x73\x73\x69\x6f\x6e\x49\x64':_0x456313['\x73\x65\x73\x73\x69\x6f\x6e\x49\x64'],'\x70\x72\x6f\x64\x75\x63\x74\x49\x64':this['\x70\x72\x6f\x64\x75\x63\x74\x49\x64'],'\x70\x72\x6f\x6a\x65\x63\x74\x49\x64':_0x456313[_0x57e45b(0x12e)],'\x64\x6f\x63\x75\x6d\x65\x6e\x74\x49\x64':_0x456313['\x64\x6f\x63\x75\x6d\x65\x6e\x74\x49\x64'],'\x61\x63\x63\x65\x73\x73':_0x456313[_0x57e45b(0x14d)],'\x73\x61\x6e\x64\x62\x6f\x78\x49\x64':_0x456313[_0x57e45b(0x11b)]},_0x2a2165),'\x65\x78\x70\x69\x72\x65\x73\x41\x74':Math[_0x57e45b(0x13f)](Date[_0x57e45b(0x119)]()/0x3e8)+_0x52bead[_0x57e45b(0x144)](_0x2a2165,0x3c)};}[a0_0x860a94(0x13c)](_0x572714=a0_0x860a94(0x135)){const _0x2641e8=a0_0x860a94;return this[_0x2641e8(0x12f)][_0x572714]??this['\x74\x74\x6c\x4d\x69\x6e\x75\x74\x65\x73'][_0x2641e8(0x135)];}};export{ProductTokenIssuer,getTokenTTL,isTokenExpiringSoon,issueBatchScopedToken,issueCollaborationToken,issueProjectScopedToken,issueReadToken,issueSessionScopedToken,unsafeDecodeToken,verifyToken};
|