@tangle-network/sandbox 0.0.0-develop.20260518230754.e59c65a → 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.
- package/dist/auth/index.js +1 -1
- package/dist/client-DFFqzEf3.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-CHsHtmjx.js +1 -1
- package/dist/session-gateway/index.js +1 -1
- package/dist/tangle/index.js +1 -1
- package/dist/tangle-DwLVHGvt.js +1 -1
- package/package.json +1 -1
package/dist/auth/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a0_0x241a0f=a0_0x36a1;(function(_0x4570cf,_0x211b7a){const _0x3288fd=a0_0x36a1,_0x18a863=_0x4570cf();while(!![]){try{const _0x6df98=parseInt(_0x3288fd(0x14a))/0x1*(-parseInt(_0x3288fd(0x160))/0x2)+-parseInt(_0x3288fd(0x14e))/0x3*(parseInt(_0x3288fd(0x180))/0x4)+parseInt(_0x3288fd(0x15f))/0x5+-parseInt(_0x3288fd(0x154))/0x6+-parseInt(_0x3288fd(0x15d))/0x7+-parseInt(_0x3288fd(0x16e))/0x8*(-parseInt(_0x3288fd(0x155))/0x9)+parseInt(_0x3288fd(0x15c))/0xa;if(_0x6df98===_0x211b7a)break;else _0x18a863['push'](_0x18a863['shift']());}catch(_0x4a56f9){_0x18a863['push'](_0x18a863['shift']());}}}(a0_0x9966,0xd7503));function a0_0x9966(){const _0x2d5633=['\x7a\x31\x6e\x66\x42\x65\x34','\x76\x30\x58\x4a\x41\x65\x57','\x44\x67\x4c\x4c\x43\x47','\x43\x68\x6a\x56\x7a\x68\x76\x4a\x44\x65\x4c\x4b','\x6e\x74\x61\x34\x6d\x64\x47\x34\x76\x4b\x72\x48\x42\x75\x48\x41','\x75\x4b\x72\x66\x75\x76\x75','\x7a\x4d\x58\x56\x42\x33\x69','\x7a\x67\x39\x4a\x44\x77\x31\x4c\x42\x4e\x72\x6a\x7a\x61','\x71\x77\x58\x51\x73\x31\x4f','\x76\x4d\x58\x5a\x73\x30\x65','\x41\x33\x7a\x49\x77\x75\x47','\x44\x68\x72\x53\x74\x77\x4c\x55\x44\x78\x72\x4c\x43\x57','\x44\x65\x39\x32\x75\x4c\x43','\x76\x77\x72\x5a\x7a\x65\x34','\x74\x76\x7a\x75\x73\x30\x47','\x71\x75\x35\x6a\x43\x32\x38','\x43\x67\x66\x59\x43\x32\x75','\x43\x32\x76\x5a\x43\x32\x4c\x56\x42\x4b\x4c\x4b','\x42\x4d\x39\x33','\x73\x4c\x44\x75','\x7a\x4e\x6a\x56\x42\x71','\x43\x4d\x76\x57\x7a\x77\x66\x30','\x6f\x64\x61\x33\x6d\x64\x48\x49\x7a\x77\x31\x6f\x79\x77\x47','\x44\x78\x6e\x4c\x43\x4b\x4c\x4b','\x79\x77\x6e\x4a\x7a\x78\x6e\x5a','\x73\x75\x4c\x74\x79\x76\x4f','\x42\x67\x76\x55\x7a\x33\x72\x4f','\x79\x77\x58\x4e','\x7a\x78\x48\x57','\x7a\x67\x4c\x4e\x7a\x78\x6e\x30','\x43\x33\x72\x59\x41\x77\x35\x4e\x41\x77\x7a\x35','\x44\x4c\x62\x6b\x41\x4d\x71','\x6d\x4a\x6d\x58\x6e\x74\x75\x31\x77\x4d\x50\x69\x44\x66\x76\x34','\x76\x78\x48\x65\x79\x32\x34','\x41\x78\x6e\x5a\x44\x77\x75','\x44\x67\x76\x5a\x44\x61','\x6d\x4a\x65\x35\x72\x32\x72\x41\x77\x4c\x4c\x6d','\x79\x75\x39\x53\x41\x4c\x61','\x73\x66\x6d\x59\x6e\x74\x79','\x41\x78\x6e\x5a\x44\x77\x76\x64\x42\x32\x58\x53\x79\x77\x6a\x56\x43\x4d\x66\x30\x41\x77\x39\x55','\x43\x33\x62\x53\x41\x78\x71','\x79\x32\x39\x53\x42\x67\x66\x49\x42\x33\x6a\x48\x44\x67\x4c\x56\x42\x47','\x6d\x74\x69\x59\x6e\x5a\x4b\x58\x6f\x66\x66\x48\x44\x66\x66\x52\x76\x61','\x6f\x77\x4c\x74\x71\x4c\x66\x73\x42\x71','\x43\x32\x66\x55\x7a\x67\x6a\x56\x45\x65\x4c\x4b','\x43\x68\x6a\x56\x41\x4d\x76\x4a\x44\x65\x4c\x4b','\x75\x67\x72\x34\x75\x4c\x4b','\x76\x68\x66\x71\x74\x32\x4b','\x76\x30\x35\x65\x72\x68\x4b','\x43\x4d\x76\x57\x42\x67\x66\x4a\x7a\x71','\x6d\x5a\x43\x32\x6d\x4a\x4b\x33\x6e\x64\x62\x32\x42\x4b\x35\x34\x41\x67\x30','\x6d\x74\x65\x35\x6d\x4a\x47\x5a\x6d\x5a\x7a\x70\x43\x75\x7a\x50\x72\x4d\x43','\x7a\x4e\x6a\x4c\x7a\x71','\x6e\x74\x79\x31\x6f\x64\x79\x59\x6e\x76\x44\x41\x74\x33\x76\x41\x71\x47','\x6e\x4d\x31\x52\x76\x75\x58\x75\x7a\x61','\x7a\x77\x35\x30\x7a\x78\x6a\x57\x43\x4d\x4c\x5a\x7a\x71','\x43\x68\x6a\x56','\x7a\x65\x54\x7a\x45\x4b\x75','\x71\x4b\x54\x63\x77\x4c\x6d','\x44\x67\x39\x74\x44\x68\x6a\x50\x42\x4d\x43','\x43\x77\x44\x48\x43\x66\x79','\x43\x32\x4c\x4e\x42\x4d\x4c\x55\x7a\x31\x6e\x4c\x79\x33\x6a\x4c\x44\x61','\x43\x67\x6a\x67\x73\x68\x4b','\x79\x4d\x66\x5a\x7a\x74\x79\x30'];a0_0x9966=function(){return _0x2d5633;};return a0_0x9966();}import{createHmac,timingSafeEqual}from'\x6e\x6f\x64\x65\x3a\x63\x72\x79\x70\x74\x6f';function base64UrlEncode(_0x13e3eb){const _0x38445b=a0_0x36a1,_0x345c75={'\x71\x67\x61\x70\x56':_0x38445b(0x169)};return(typeof _0x13e3eb==='\x73\x74\x72\x69\x6e\x67'?Buffer[_0x38445b(0x17e)](_0x13e3eb):_0x13e3eb)[_0x38445b(0x165)](_0x345c75[_0x38445b(0x166)])[_0x38445b(0x15b)](/\+/g,'\x2d')[_0x38445b(0x15b)](/\//g,'\x5f')[_0x38445b(0x15b)](/=+$/,'');}function decodeBase64UrlToBuffer(_0x379355){const _0x4f4fcf=a0_0x36a1,_0x58f1af={'\x58\x4f\x75\x57\x44':function(_0x11d037,_0x17a062){return _0x11d037%_0x17a062;},'\x76\x50\x4a\x6a\x64':function(_0x21eed8,_0x3eb162){return _0x21eed8%_0x3eb162;},'\x41\x4e\x49\x73\x6f':_0x4f4fcf(0x169)};if(!/^[A-Za-z0-9_-]*$/[_0x4f4fcf(0x14d)](_0x379355))return null;const _0x552b2f=_0x379355+'\x3d'['\x72\x65\x70\x65\x61\x74'](_0x58f1af['\x58\x4f\x75\x57\x44'](0x4-_0x58f1af[_0x4f4fcf(0x189)](_0x379355[_0x4f4fcf(0x184)],0x4),0x4));return Buffer[_0x4f4fcf(0x17e)](_0x552b2f[_0x4f4fcf(0x15b)](/-/g,'\x2b')['\x72\x65\x70\x6c\x61\x63\x65'](/_/g,'\x2f'),_0x58f1af[_0x4f4fcf(0x179)]);}function createSignature(_0x10d2a9,_0x2394ac){const _0x1acf77=a0_0x36a1,_0x54f90a={'\x61\x4f\x6c\x6a\x50':function(_0x44f96f,_0x38da07,_0x1ae59f){return _0x44f96f(_0x38da07,_0x1ae59f);}};return base64UrlEncode(_0x54f90a[_0x1acf77(0x14f)](createHmac,'\x73\x68\x61\x32\x35\x36',_0x2394ac)['\x75\x70\x64\x61\x74\x65'](_0x10d2a9)[_0x1acf77(0x187)]());}const JWT_HEADER=base64UrlEncode(JSON[a0_0x241a0f(0x188)]({'\x61\x6c\x67':a0_0x241a0f(0x150),'\x74\x79\x70':a0_0x241a0f(0x17d)}));function issueToken(_0x1d00b4,_0x2f3da6,_0x3c51f6){const _0x448216=a0_0x241a0f,_0x47c993={'\x49\x49\x53\x61\x5a':function(_0x12b27d,_0x582466){return _0x12b27d*_0x582466;},'\x64\x4b\x59\x7a\x45':function(_0x10ad3b,_0x4878b3){return _0x10ad3b(_0x4878b3);}},_0x27000e=Math[_0x448216(0x170)](Date[_0x448216(0x17c)]()/0x3e8),_0x111aa2={..._0x2f3da6,'\x69\x61\x74':_0x27000e,'\x65\x78\x70':_0x27000e+_0x47c993[_0x448216(0x183)](_0x3c51f6,0x3c)},_0x334fc8=JWT_HEADER+'\x2e'+_0x47c993[_0x448216(0x163)](base64UrlEncode,JSON['\x73\x74\x72\x69\x6e\x67\x69\x66\x79'](_0x111aa2));return _0x334fc8+'\x2e'+createSignature(_0x334fc8,_0x1d00b4);}function issueReadToken(_0x3bdd81,_0x4dd8b0,_0x79463f){const _0x394644=a0_0x241a0f,_0x2d47cf={'\x62\x55\x4a\x44\x77':function(_0x182231,_0x2f4a49,_0x3832d0,_0x3c7f91){return _0x182231(_0x2f4a49,_0x3832d0,_0x3c7f91);},'\x57\x4e\x44\x44\x79':'\x72\x65\x61\x64'};return _0x2d47cf['\x62\x55\x4a\x44\x77'](issueToken,_0x3bdd81,{..._0x4dd8b0,'\x74\x79\x70':_0x2d47cf[_0x394644(0x15a)]},_0x79463f);}function a0_0x36a1(_0x1e9fbc,_0x23e9da){_0x1e9fbc=_0x1e9fbc-0x14a;const _0x996680=a0_0x9966();let _0x36a1b6=_0x996680[_0x1e9fbc];if(a0_0x36a1['\x47\x56\x4c\x43\x79\x53']===undefined){var _0xd29a33=function(_0x42ee13){const _0xd27518='\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 _0x25f515='',_0x482eb3='';for(let _0x1419a7=0x0,_0x44de0c,_0x409425,_0x5d9c28=0x0;_0x409425=_0x42ee13['\x63\x68\x61\x72\x41\x74'](_0x5d9c28++);~_0x409425&&(_0x44de0c=_0x1419a7%0x4?_0x44de0c*0x40+_0x409425:_0x409425,_0x1419a7++%0x4)?_0x25f515+=String['\x66\x72\x6f\x6d\x43\x68\x61\x72\x43\x6f\x64\x65'](0xff&_0x44de0c>>(-0x2*_0x1419a7&0x6)):0x0){_0x409425=_0xd27518['\x69\x6e\x64\x65\x78\x4f\x66'](_0x409425);}for(let _0x47ee77=0x0,_0x3d204c=_0x25f515['\x6c\x65\x6e\x67\x74\x68'];_0x47ee77<_0x3d204c;_0x47ee77++){_0x482eb3+='\x25'+('\x30\x30'+_0x25f515['\x63\x68\x61\x72\x43\x6f\x64\x65\x41\x74'](_0x47ee77)['\x74\x6f\x53\x74\x72\x69\x6e\x67'](0x10))['\x73\x6c\x69\x63\x65'](-0x2);}return decodeURIComponent(_0x482eb3);};a0_0x36a1['\x53\x70\x70\x70\x6a\x45']=_0xd29a33,a0_0x36a1['\x66\x50\x77\x48\x66\x52']={},a0_0x36a1['\x47\x56\x4c\x43\x79\x53']=!![];}const _0x5d2696=_0x996680[0x0],_0x1a4fa0=_0x1e9fbc+_0x5d2696,_0x551fcc=a0_0x36a1['\x66\x50\x77\x48\x66\x52'][_0x1a4fa0];return!_0x551fcc?(_0x36a1b6=a0_0x36a1['\x53\x70\x70\x70\x6a\x45'](_0x36a1b6),a0_0x36a1['\x66\x50\x77\x48\x66\x52'][_0x1a4fa0]=_0x36a1b6):_0x36a1b6=_0x551fcc,_0x36a1b6;}function issueSessionScopedToken(_0x29736e,_0x238db4,_0x3c13dc){const _0x4f1afd=a0_0x241a0f,_0xbb799c={'\x54\x71\x50\x4f\x69':function(_0x282b39,_0xb3f796,_0x633608,_0x2f0fd5){return _0x282b39(_0xb3f796,_0x633608,_0x2f0fd5);}};return _0xbb799c[_0x4f1afd(0x159)](issueReadToken,_0x29736e,_0x238db4,_0x3c13dc);}function issueProjectScopedToken(_0x1cf409,_0x2cc9ea,_0x2d18b8){return issueReadToken(_0x1cf409,_0x2cc9ea,_0x2d18b8);}function issueBatchScopedToken(_0x28188d,_0x5af318,_0x25b3aa){return issueReadToken(_0x28188d,_0x5af318,_0x25b3aa);}function issueCollaborationToken(_0x467951,_0x1af17e,_0x468b63){const _0x421509=a0_0x241a0f,_0x17d8ed={'\x42\x4b\x42\x5a\x53':_0x421509(0x153)};return issueToken(_0x467951,{'\x73\x75\x62':_0x1af17e[_0x421509(0x181)],'\x73\x69\x64':_0x1af17e[_0x421509(0x17b)],'\x70\x69\x64':_0x1af17e[_0x421509(0x16d)],'\x63\x69\x64':_0x1af17e[_0x421509(0x156)],'\x74\x79\x70':_0x17d8ed[_0x421509(0x164)],'\x70\x72\x6f\x6a\x65\x63\x74\x49\x64':_0x1af17e[_0x421509(0x157)],'\x64\x6f\x63\x75\x6d\x65\x6e\x74\x49\x64':_0x1af17e[_0x421509(0x171)],'\x61\x63\x63\x65\x73\x73':_0x1af17e[_0x421509(0x182)]},_0x468b63);}function unsafeDecodeToken(_0x2a3775){const _0x4d8ba3=a0_0x241a0f,_0x1b9947={'\x68\x45\x53\x4a\x5a':function(_0x434216,_0x1f2602){return _0x434216+_0x1f2602;},'\x50\x64\x78\x52\x59':function(_0x4d7e3a,_0xb30e4f){return _0x4d7e3a-_0xb30e4f;}};try{const _0x26f12f=_0x2a3775[_0x4d8ba3(0x152)]('\x2e');if(_0x26f12f[_0x4d8ba3(0x184)]!==0x3)return null;const _0x3b8d03=_0x1b9947['\x68\x45\x53\x4a\x5a'](_0x26f12f[0x1],'\x3d'[_0x4d8ba3(0x17f)](_0x1b9947[_0x4d8ba3(0x158)](0x4,_0x26f12f[0x1][_0x4d8ba3(0x184)]%0x4)%0x4)),_0x3ae9fd=Buffer[_0x4d8ba3(0x17e)](_0x3b8d03['\x72\x65\x70\x6c\x61\x63\x65'](/-/g,'\x2b')[_0x4d8ba3(0x15b)](/_/g,'\x2f'),'\x62\x61\x73\x65\x36\x34')[_0x4d8ba3(0x165)]();return JSON[_0x4d8ba3(0x17a)](_0x3ae9fd);}catch{return null;}}function verifyToken(_0x1a3792,_0x40a843,_0x2cdfef={}){const _0x4d5b2f=a0_0x241a0f,_0x4a09ff={'\x56\x6c\x73\x4b\x41':function(_0xc8da91,_0x22cda1){return _0xc8da91!==_0x22cda1;},'\x55\x64\x73\x64\x4e':function(_0x5282c6,_0x1d2aaf){return _0x5282c6||_0x1d2aaf;},'\x62\x66\x73\x61\x58':'\x62\x61\x73\x65\x36\x34','\x74\x4f\x76\x52\x57':function(_0x1d7862,_0x5b5041,_0x188e86){return _0x1d7862(_0x5b5041,_0x188e86);},'\x4d\x56\x54\x4b\x48':function(_0x181c06,_0x25c31f){return _0x181c06(_0x25c31f);},'\x55\x78\x44\x63\x6e':function(_0x3e448d,_0x4568fb){return _0x3e448d!==_0x4568fb;},'\x6b\x76\x62\x59\x48':function(_0x1db394,_0x224e53){return _0x1db394(_0x224e53);},'\x70\x62\x46\x48\x79':function(_0x3502ed,_0x29dbc8){return _0x3502ed!==_0x29dbc8;},'\x41\x6c\x6a\x4b\x5a':function(_0x1c3292,_0x3a6510){return _0x1c3292<_0x3a6510;}};try{const _0x216d22=_0x1a3792[_0x4d5b2f(0x152)]('\x2e');if(_0x4a09ff['\x56\x6c\x73\x4b\x41'](_0x216d22[_0x4d5b2f(0x184)],0x3))return null;const [_0x27b834,_0x230d0a,_0x52d8d9]=_0x216d22;if(_0x4a09ff[_0x4d5b2f(0x177)](!_0x27b834,!_0x230d0a)||!_0x52d8d9)return null;let _0x4e20b0;try{const _0x2928bf=_0x27b834+'\x3d'['\x72\x65\x70\x65\x61\x74']((0x4-_0x27b834[_0x4d5b2f(0x184)]%0x4)%0x4),_0xf39136=Buffer[_0x4d5b2f(0x17e)](_0x2928bf[_0x4d5b2f(0x15b)](/-/g,'\x2b')['\x72\x65\x70\x6c\x61\x63\x65'](/_/g,'\x2f'),_0x4a09ff['\x62\x66\x73\x61\x58'])['\x74\x6f\x53\x74\x72\x69\x6e\x67']();_0x4e20b0=JSON['\x70\x61\x72\x73\x65'](_0xf39136);}catch{return null;}if(_0x4a09ff[_0x4d5b2f(0x173)](_0x4e20b0[_0x4d5b2f(0x185)],_0x4d5b2f(0x150)))return null;const _0x5edb62=_0x4a09ff[_0x4d5b2f(0x176)](createSignature,_0x27b834+'\x2e'+_0x230d0a,_0x40a843),_0x2f43f9=_0x4a09ff[_0x4d5b2f(0x178)](decodeBase64UrlToBuffer,_0x52d8d9),_0x4d4957=decodeBase64UrlToBuffer(_0x5edb62);if(!_0x2f43f9||!_0x4d4957)return null;if(_0x4a09ff[_0x4d5b2f(0x14b)](_0x2f43f9[_0x4d5b2f(0x184)],_0x4d4957['\x6c\x65\x6e\x67\x74\x68']))return null;if(!_0x4a09ff[_0x4d5b2f(0x176)](timingSafeEqual,_0x2f43f9,_0x4d4957))return null;const _0x43bd9c=_0x4a09ff[_0x4d5b2f(0x174)](unsafeDecodeToken,_0x1a3792);if(!_0x43bd9c)return null;const _0x1c4d25=Math[_0x4d5b2f(0x170)](Date[_0x4d5b2f(0x17c)]()/0x3e8),_0x22f381=Math['\x6d\x61\x78'](0x0,_0x2cdfef['\x63\x6c\x6f\x63\x6b\x53\x6b\x65\x77\x53\x65\x63\x6f\x6e\x64\x73']??0x0);if(_0x4a09ff[_0x4d5b2f(0x168)](typeof _0x43bd9c[_0x4d5b2f(0x186)],'\x6e\x75\x6d\x62\x65\x72')||_0x4a09ff[_0x4d5b2f(0x172)](_0x43bd9c[_0x4d5b2f(0x186)]+_0x22f381,_0x1c4d25))return null;return _0x43bd9c;}catch{return null;}}function getTokenTTL(_0xb4ac5f){const _0x3b7b2c=a0_0x241a0f,_0x50add5=Math[_0x3b7b2c(0x170)](Date[_0x3b7b2c(0x17c)]()/0x3e8);return _0xb4ac5f[_0x3b7b2c(0x186)]-_0x50add5;}function isTokenExpiringSoon(_0x50a2f0,_0x2b01cd=0x3c){const _0x1f04d2={'\x68\x73\x43\x65\x4d':function(_0x4a3365,_0x279813){return _0x4a3365(_0x279813);}};return _0x1f04d2['\x68\x73\x43\x65\x4d'](getTokenTTL,_0x50a2f0)<=_0x2b01cd;}var ProductTokenIssuer=class{[a0_0x241a0f(0x16d)];[a0_0x241a0f(0x167)];[a0_0x241a0f(0x175)];constructor(_0x3897bf){const _0x4780ac=a0_0x241a0f;this[_0x4780ac(0x16d)]=_0x3897bf['\x70\x72\x6f\x64\x75\x63\x74\x49\x64'],this[_0x4780ac(0x167)]=_0x3897bf['\x73\x69\x67\x6e\x69\x6e\x67\x53\x65\x63\x72\x65\x74'],this[_0x4780ac(0x175)]={'\x66\x72\x65\x65':_0x3897bf['\x74\x74\x6c\x4d\x69\x6e\x75\x74\x65\x73']?.['\x66\x72\x65\x65']??0xf,'\x70\x72\x6f':_0x3897bf[_0x4780ac(0x175)]?.[_0x4780ac(0x162)]??0xf0,'\x65\x6e\x74\x65\x72\x70\x72\x69\x73\x65':_0x3897bf[_0x4780ac(0x175)]?.[_0x4780ac(0x161)]??0x1e0};}[a0_0x241a0f(0x14c)](_0xecb066){const _0x243524=a0_0x241a0f,_0x4e2a0d={'\x50\x50\x4b\x55\x69':_0x243524(0x15e),'\x5a\x5a\x65\x62\x6d':function(_0x278678,_0x206884,_0x103ec8,_0x16dc3b){return _0x278678(_0x206884,_0x103ec8,_0x16dc3b);},'\x57\x4c\x63\x68\x4c':function(_0x433fbc,_0x5980f2){return _0x433fbc+_0x5980f2;},'\x67\x53\x45\x6c\x4e':function(_0x52dd9b,_0x2c989b){return _0x52dd9b*_0x2c989b;}},_0x1d034c=_0xecb066[_0x243524(0x16c)]??_0x4e2a0d['\x50\x50\x4b\x55\x69'],_0x56b23a=this[_0x243524(0x175)][_0x1d034c]??this[_0x243524(0x175)][_0x243524(0x15e)];return{'\x74\x6f\x6b\x65\x6e':_0x4e2a0d['\x5a\x5a\x65\x62\x6d'](issueReadToken,this[_0x243524(0x167)],{'\x73\x75\x62':_0xecb066['\x75\x73\x65\x72\x49\x64'],'\x73\x69\x64':_0xecb066[_0x243524(0x17b)],'\x70\x69\x64':this[_0x243524(0x16d)],'\x63\x69\x64':_0xecb066[_0x243524(0x156)]},_0x56b23a),'\x65\x78\x70\x69\x72\x65\x73\x41\x74':_0x4e2a0d[_0x243524(0x16b)](Math[_0x243524(0x170)](Date[_0x243524(0x17c)]()/0x3e8),_0x4e2a0d[_0x243524(0x16a)](_0x56b23a,0x3c))};}[a0_0x241a0f(0x151)](_0x349917){const _0x1fa9a9=a0_0x241a0f,_0x2e29de={'\x52\x44\x45\x51\x55':_0x1fa9a9(0x15e)},_0x3b9a93=_0x349917[_0x1fa9a9(0x16c)]??_0x2e29de[_0x1fa9a9(0x16f)],_0x40e5cd=this[_0x1fa9a9(0x175)][_0x3b9a93]??this['\x74\x74\x6c\x4d\x69\x6e\x75\x74\x65\x73'][_0x1fa9a9(0x15e)];return{'\x74\x6f\x6b\x65\x6e':issueCollaborationToken(this[_0x1fa9a9(0x167)],{'\x75\x73\x65\x72\x49\x64':_0x349917[_0x1fa9a9(0x181)],'\x73\x65\x73\x73\x69\x6f\x6e\x49\x64':_0x349917[_0x1fa9a9(0x17b)],'\x70\x72\x6f\x64\x75\x63\x74\x49\x64':this[_0x1fa9a9(0x16d)],'\x70\x72\x6f\x6a\x65\x63\x74\x49\x64':_0x349917['\x70\x72\x6f\x6a\x65\x63\x74\x49\x64'],'\x64\x6f\x63\x75\x6d\x65\x6e\x74\x49\x64':_0x349917['\x64\x6f\x63\x75\x6d\x65\x6e\x74\x49\x64'],'\x61\x63\x63\x65\x73\x73':_0x349917[_0x1fa9a9(0x182)],'\x73\x61\x6e\x64\x62\x6f\x78\x49\x64':_0x349917['\x73\x61\x6e\x64\x62\x6f\x78\x49\x64']},_0x40e5cd),'\x65\x78\x70\x69\x72\x65\x73\x41\x74':Math[_0x1fa9a9(0x170)](Date['\x6e\x6f\x77']()/0x3e8)+_0x40e5cd*0x3c};}['\x67\x65\x74\x54\x74\x6c\x4d\x69\x6e\x75\x74\x65\x73'](_0x2fc446=a0_0x241a0f(0x15e)){const _0x4aee2c=a0_0x241a0f;return this[_0x4aee2c(0x175)][_0x2fc446]??this[_0x4aee2c(0x175)][_0x4aee2c(0x15e)];}};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};
|