@licensehub/license-client
Version:
TypeScript license management client for protecting and monetizing proprietary software
128 lines (114 loc) • 40.7 kB
JavaScript
import '@cachehub/memory-cache';
import { CacheFactoryFactory } from '@cachehub/core';
import { jwtVerify, importSPKI } from 'jose';
import { jwtDecode } from 'jwt-decode';
const name = "@licensehub/license-client";
const version = "1.0.7";
const description = "TypeScript license management client for protecting and monetizing proprietary software";
const type = "module";
const main = "dist/index.js";
const types = "dist/index.d.ts";
const author = "1TeamSoftware";
const homepage = "https://1teamsoftware.com";
const files = [
"dist",
"LICENSE",
"README.md"
];
const keywords = [
"license",
"licensing",
"drm",
"software-protection",
"license-management",
"typescript"
];
const scripts = {
lint: "eslint .",
format: "eslint --fix .",
test: "vitest run",
check: "tsc --noEmit",
"build:clean": "shx rm -rf dist",
"build:vite": "vite build",
"build:copy-dts": "cpx \"src/**/*.d.ts\" dist/",
build: "pnpm run build:clean && pnpm run build:vite && pnpm run build:copy-dts",
"package:publish": "pnpm publish --access public",
prepublishOnly: "pnpm run build"
};
const dependencies = {
jose: "^5.10.0",
"jwt-decode": "^4.0.0"
};
const peerDependencies = {
"@cachehub/cloudflare-cache": "^1.0.1",
"@cachehub/core": "^1.0.1",
"@cachehub/memory-cache": "^1.0.1",
"@cachehub/redis-cache": "^1.0.1",
"@cachehub/upstash-redis-cache": "^1.0.1"
};
const peerDependenciesMeta = {
"@cachehub/cloudflare-cache": {
optional: true
},
"@cachehub/redis-cache": {
optional: true
},
"@cachehub/upstash-redis-cache": {
optional: true
}
};
const devDependencies = {
"@cachehub/core": "^1.0.2",
"@cachehub/memory-cache": "^1.0.2",
"@dmitryrechkin/eslint-standard": "^1.1.4",
"@types/jsonwebtoken": "^9.0.10",
"@types/node": "^20.19.8",
buffer: "^6.0.3",
cpx: "^1.5.0",
"crypto-browserify": "^3.12.1",
dotenv: "^16.6.1",
eslint: "^8.57.1",
"eslint-plugin-unused-imports": "^3.2.0",
"fix-esm-import-path": "^1.10.2",
"javascript-obfuscator": "^4.1.1",
jsonwebtoken: "^9.0.2",
shx: "^0.3.4",
"stream-browserify": "^3.0.0",
"tsconfig-paths": "^4.2.0",
typescript: "^5.8.3",
vite: "^5.4.19",
"vite-plugin-dts": "^3.9.1",
"vite-plugin-javascript-obfuscator": "^3.1.0",
vitest: "^3.2.4"
};
const license = "SEE LICENSE IN LICENSE";
const _0x182544 = {
name: name,
version: version,
description: description,
type: type,
main: main,
types: types,
author: author,
homepage: homepage,
files: files,
keywords: keywords,
scripts: scripts,
dependencies: dependencies,
peerDependencies: peerDependencies,
peerDependenciesMeta: peerDependenciesMeta,
devDependencies: devDependencies,
license: license
};
const _0x108472=_0x44c8;(function(_0x291450,_0x20237c){const _0x4327ff=_0x44c8,_0x5d119a=_0x291450();while(!![]){try{const _0x2afe8a=parseInt(_0x4327ff(0x1e7))/0x1*(parseInt(_0x4327ff(0x1e1))/0x2)+-parseInt(_0x4327ff(0x1f6))/0x3*(-parseInt(_0x4327ff(0x1f3))/0x4)+-parseInt(_0x4327ff(0x1f0))/0x5+-parseInt(_0x4327ff(0x1f4))/0x6*(-parseInt(_0x4327ff(0x1e3))/0x7)+-parseInt(_0x4327ff(0x1ee))/0x8+parseInt(_0x4327ff(0x1dd))/0x9+-parseInt(_0x4327ff(0x1f5))/0xa*(-parseInt(_0x4327ff(0x1e5))/0xb);if(_0x2afe8a===_0x20237c)break;else _0x5d119a['push'](_0x5d119a['shift']());}catch(_0x781fd4){_0x5d119a['push'](_0x5d119a['shift']());}}}(_0x3353,0x1b399));class IntegrityCacheHelper{[_0x108472(0x1dc)];[_0x108472(0x1de)];constructor(_0x2e9a1d,_0x36ba6f=''){const _0xa6aa31=_0x108472;this[_0xa6aa31(0x1dc)]=_0x2e9a1d,this[_0xa6aa31(0x1de)]=this[_0xa6aa31(0x1f2)](_0x36ba6f);}async[_0x108472(0x1ec)](_0x6222c2){const _0x594436=_0x108472;return await this[_0x594436(0x1dc)]['delete'](_0x6222c2);}async[_0x108472(0x1e4)](_0x2caa2c){const _0x48a15d=_0x108472,_0x546ae4=await this['cache']['get'](_0x2caa2c);if(!_0x546ae4)return void 0;try{const {data:_0x4a4f31,hash:_0x28eee2}=JSON['parse'](_0x546ae4),_0x117371=this[_0x48a15d(0x1f1)](JSON['stringify'](_0x4a4f31));if(_0x28eee2!==_0x117371)return console[_0x48a15d(0x1e2)]('Cache\x20integrity\x20check\x20failed,\x20clearing\x20corrupted\x20data'),await this[_0x48a15d(0x1dc)][_0x48a15d(0x1ec)](_0x2caa2c),void 0x0;return _0x4a4f31;}catch(_0x195ee7){return console[_0x48a15d(0x1e2)](_0x48a15d(0x1e6),_0x195ee7),await this[_0x48a15d(0x1dc)][_0x48a15d(0x1ec)](_0x2caa2c),void 0;}}async[_0x108472(0x1e8)](_0x45e413){const _0x4f14f9=_0x108472;return await this['cache'][_0x4f14f9(0x1e8)](_0x45e413);}async[_0x108472(0x1ed)](_0x3d0bb9,_0x184000,_0x1e0d52){const _0x290b40=_0x108472,_0x57867e=JSON['stringify'](_0x184000),_0x49ad61=this[_0x290b40(0x1f1)](_0x57867e),_0x2d0673={'data':_0x184000,'hash':_0x49ad61,'timestamp':Date[_0x290b40(0x1df)]()};return await this[_0x290b40(0x1dc)][_0x290b40(0x1ed)](_0x3d0bb9,JSON[_0x290b40(0x1e0)](_0x2d0673),_0x1e0d52);}[_0x108472(0x1f1)](_0x21f4f3){const _0x4a591f=_0x108472,_0x90dc65=_0x21f4f3+this['secret'];let _0x10ff96=0x1505;for(let _0x32162a=0x0;_0x32162a<_0x90dc65[_0x4a591f(0x1db)];_0x32162a++){_0x10ff96=(_0x10ff96<<0x5)+_0x10ff96+_0x90dc65[_0x4a591f(0x1ef)](_0x32162a);}return Math[_0x4a591f(0x1eb)](_0x10ff96)[_0x4a591f(0x1ea)](0x10);}['deriveSecret'](_0x5dbbe5){const _0x1026af=_0x108472,_0x73cddc=_0x5dbbe5||_0x1026af(0x1e9),_0x3ed930=_0x73cddc+'-integrity-salt';let _0x5c4553=0x1505;for(let _0x2adc89=0x0;_0x2adc89<_0x3ed930['length'];_0x2adc89++){_0x5c4553=(_0x5c4553<<0x5)+_0x5c4553+_0x3ed930[_0x1026af(0x1ef)](_0x2adc89);}return Math['abs'](_0x5c4553)[_0x1026af(0x1ea)](0x10);}}function _0x44c8(_0x5f1c2e,_0x5efea9){const _0x335340=_0x3353();return _0x44c8=function(_0x44c8b5,_0x5dd0c9){_0x44c8b5=_0x44c8b5-0x1db;let _0x5340f0=_0x335340[_0x44c8b5];return _0x5340f0;},_0x44c8(_0x5f1c2e,_0x5efea9);}function _0x3353(){const _0x91675=['toString','abs','delete','set','1566896SNeiwA','charCodeAt','1013785Fregsk','createHash','deriveSecret','8jUlZJD','129726zoLNCl','306140RMRHJb','37923Umfsch','length','cache','1959633RhwKVT','secret','now','stringify','264058qLqXau','warn','14JnbUzu','get','33VVwWyb','Failed\x20to\x20parse\x20cached\x20data:','1xqwHzM','has','global-cache-data'];_0x3353=function(){return _0x91675;};return _0x3353();}
function _0x27b9(_0x4e4bba,_0x3dfa4b){var _0x393db7=_0x393d();return _0x27b9=function(_0x27b92e,_0xb4f664){_0x27b92e=_0x27b92e-0x1b7;var _0x2cccd7=_0x393db7[_0x27b92e];return _0x2cccd7;},_0x27b9(_0x4e4bba,_0x3dfa4b);}(function(_0x2d694f,_0x524070){var _0x57fa27=_0x27b9,_0x491121=_0x2d694f();while(!![]){try{var _0x5e8135=parseInt(_0x57fa27(0x1b7))/0x1+parseInt(_0x57fa27(0x1b9))/0x2+-parseInt(_0x57fa27(0x1bd))/0x3+parseInt(_0x57fa27(0x1bb))/0x4+-parseInt(_0x57fa27(0x1ba))/0x5+-parseInt(_0x57fa27(0x1b8))/0x6*(-parseInt(_0x57fa27(0x1be))/0x7)+-parseInt(_0x57fa27(0x1bc))/0x8*(parseInt(_0x57fa27(0x1bf))/0x9);if(_0x5e8135===_0x524070)break;else _0x491121['push'](_0x491121['shift']());}catch(_0x20cc1d){_0x491121['push'](_0x491121['shift']());}}}(_0x393d,0xc9a07));function _0x393d(){var _0x506ba3=['2538pifgTW','1100047uRJUlt','6nenJFF','1476934IwzQwk','2596525RXeWLs','3823096GmROgq','832fjJqZq','4554690xLJoQD','689066ACTOch'];_0x393d=function(){return _0x506ba3;};return _0x393d();}
function _0x196e(_0x279d41,_0x3fca03){const _0x3cadb6=_0x3cad();return _0x196e=function(_0x196ee4,_0x48a7a3){_0x196ee4=_0x196ee4-0x1bd;let _0x3dbb35=_0x3cadb6[_0x196ee4];return _0x3dbb35;},_0x196e(_0x279d41,_0x3fca03);}function _0x3cad(){const _0x17ba57=['random','max','maxIntervalHours','1488JSlumE','probability','846382gGHyqj','now','796686mPjOTX','11oguReR','6zcyukJ','4jrmEJN','min','scheduleNextValidation','lastValidationTime','488124aKoTwx','4751165KrKxzw','608720RaVQfn','maxValidationIntervalMs','minValidationIntervalMs','reset','7990619cbFmoY','49239LKOsSV','getNextScheduledTime','validationProbability','recordValidation','nextScheduledValidation'];_0x3cad=function(){return _0x17ba57;};return _0x3cad();}const _0x116f2f=_0x196e;(function(_0x3674f5,_0x199e7b){const _0x359b17=_0x196e,_0x1c691c=_0x3674f5();while(!![]){try{const _0x1b5f48=-parseInt(_0x359b17(0x1c2))/0x1+parseInt(_0x359b17(0x1c0))/0x2+parseInt(_0x359b17(0x1c9))/0x3*(-parseInt(_0x359b17(0x1c5))/0x4)+parseInt(_0x359b17(0x1ca))/0x5*(parseInt(_0x359b17(0x1c4))/0x6)+parseInt(_0x359b17(0x1cf))/0x7+-parseInt(_0x359b17(0x1be))/0x8*(parseInt(_0x359b17(0x1d0))/0x9)+-parseInt(_0x359b17(0x1cb))/0xa*(-parseInt(_0x359b17(0x1c3))/0xb);if(_0x1b5f48===_0x199e7b)break;else _0x1c691c['push'](_0x1c691c['shift']());}catch(_0x43e38a){_0x1c691c['push'](_0x1c691c['shift']());}}}(_0x3cad,0x9231d));class ValidationSchedulingService{[_0x116f2f(0x1c8)]=0x0;[_0x116f2f(0x1cc)];['minValidationIntervalMs'];[_0x116f2f(0x1d4)]=0x0;['validationProbability'];constructor(_0x32b079={}){const _0xaa3de1=_0x116f2f;this[_0xaa3de1(0x1cd)]=(_0x32b079['minIntervalHours']??0x6)*0x3c*0x3c*0x3e8,this[_0xaa3de1(0x1cc)]=(_0x32b079[_0xaa3de1(0x1bd)]??0x18)*0x3c*0x3c*0x3e8,this[_0xaa3de1(0x1d2)]=Math[_0xaa3de1(0x1d6)](0x0,Math[_0xaa3de1(0x1c6)](0x1,_0x32b079[_0xaa3de1(0x1bf)]??0.1)),this['lastValidationTime']=Date[_0xaa3de1(0x1c1)](),this[_0xaa3de1(0x1c7)]();}['getLastValidationTime'](){const _0x571fa8=_0x116f2f;return this[_0x571fa8(0x1c8)];}[_0x116f2f(0x1d1)](){const _0x15ff2f=_0x116f2f;return this[_0x15ff2f(0x1d4)];}[_0x116f2f(0x1d3)](){const _0x2258e5=_0x116f2f;this['lastValidationTime']=Date[_0x2258e5(0x1c1)](),this[_0x2258e5(0x1c7)]();}[_0x116f2f(0x1ce)](){const _0x27b532=_0x116f2f;this[_0x27b532(0x1c8)]=Date[_0x27b532(0x1c1)](),this[_0x27b532(0x1c7)]();}['shouldForceValidation'](){const _0xe42ecf=_0x116f2f,_0x5b70eb=Date[_0xe42ecf(0x1c1)](),_0x27165b=_0x5b70eb-this[_0xe42ecf(0x1c8)];if(_0x27165b<this['minValidationIntervalMs'])return ![];if(_0x5b70eb>=this[_0xe42ecf(0x1d4)])return !![];const _0x318c28=Math['random']();if(_0x318c28<this[_0xe42ecf(0x1d2)])return !![];return ![];}['scheduleNextValidation'](){const _0x978808=_0x116f2f,_0x12e69d=Date['now'](),_0x555127=this[_0x978808(0x1cc)]-this[_0x978808(0x1cd)],_0x2f3683=Math[_0x978808(0x1d5)]()*_0x555127;this['nextScheduledValidation']=_0x12e69d+this[_0x978808(0x1cd)]+_0x2f3683;}}
(function(_0x2705c5,_0x1746af){var _0x12ed16=_0x336f,_0x332338=_0x2705c5();while(!![]){try{var _0x12a1c1=parseInt(_0x12ed16(0x13c))/0x1+parseInt(_0x12ed16(0x13b))/0x2*(parseInt(_0x12ed16(0x13d))/0x3)+parseInt(_0x12ed16(0x13a))/0x4*(-parseInt(_0x12ed16(0x138))/0x5)+parseInt(_0x12ed16(0x13f))/0x6*(-parseInt(_0x12ed16(0x13e))/0x7)+-parseInt(_0x12ed16(0x141))/0x8+parseInt(_0x12ed16(0x140))/0x9*(-parseInt(_0x12ed16(0x137))/0xa)+parseInt(_0x12ed16(0x139))/0xb;if(_0x12a1c1===_0x1746af)break;else _0x332338['push'](_0x332338['shift']());}catch(_0x3f9ef0){_0x332338['push'](_0x332338['shift']());}}}(_0x3424,0x36d32));function _0x336f(_0x18d8a2,_0x607080){var _0x34241c=_0x3424();return _0x336f=function(_0x336f71,_0x113cb8){_0x336f71=_0x336f71-0x137;var _0x3096a3=_0x34241c[_0x336f71];return _0x3096a3;},_0x336f(_0x18d8a2,_0x607080);}function _0x3424(){var _0x37307e=['40lKNlcc','5095ACEZOj','13628318RNflzv','1560RWDOBj','2FcCxJm','86485FKeWvC','146208BZxyCR','28eSoDsH','476676SudDlf','955233IaxMDA','78840pcBVYK'];_0x3424=function(){return _0x37307e;};return _0x3424();}
function _0x5671(){var _0x3e8d0a=['REVOKED','36248yyDOeW','DELETED','license_pending','Invalid\x20activation\x20conditions','Invalid\x20license\x20type.','413562QmKPcX','ACTIVATION_LIMIT_REACHED','Unknown\x20error','INACTIVE','exception','INVALID_JSON_FORMAT','LICENSE_REVOKED','ACTIVATION_INVALID_STATUS','License\x20is\x20already\x20activated\x20for\x20this\x20domain.','Activation\x20limit\x20reached.','SUCCESS','LICENSE_TYPE_NOT_FOUND','MAX_ACTIVATIONS_REACHED','max_activations_reached','EXPIRED','632478FZkrxU','ACTIVATION_FAILED','LICENSE_INVALID_STATUS','1790859exMAWp','License\x20is\x20inactive','ACTIVATION_REVOKED','license_invalid_status','8484fVEgQD','5YVFbgv','ACTIVATION_DELETED','NETWORK_ERROR','License\x20is\x20pending\x20activation','LICENSE_NOT_ACTIVATED','2125974EgsbOo','License\x20is\x20disabled.','activation_deleted','License\x20has\x20been\x20deleted','License\x20is\x20not\x20activated\x20for\x20this\x20domain.','License\x20has\x20expired.','REQUEST_FAILED','pending','revoked','INVALID_DOMAIN','Activation\x20has\x20an\x20invalid\x20status','INVALID_RESPONSE','Invalid\x20domain\x20for\x20this\x20license.','LICENSE_DELETED','deleted','MISSING_FEATURES','INVALID_ACTIVATION','license_deleted','ACTIVE','invalid_activation','REQUEST','INVALID_LICENSE_TYPE','active','The\x20server\x20request\x20failed.','EXCEPTION','Activation\x20has\x20been\x20deleted','Invalid\x20JSON\x20format','License\x20has\x20an\x20invalid\x20status','UNKNOWN_ERROR','LICENSE_DISABLED','Activation\x20failed','MISSING_LICENSE_DATA','LICENSE_INACTIVE','LICENSE_NOT_FOUND','License\x20has\x20been\x20revoked','activation_failed','LICENSE_ALREADY_ACTIVATED','LICENSE_EXPIRED','1429824EXkXTn','LICENSE_PENDING','Missing\x20required\x20features.','license_revoked'];_0x5671=function(){return _0x3e8d0a;};return _0x5671();}(function(_0x97f81d,_0x234be6){var _0x2ef59c=_0x1feb,_0x2d713a=_0x97f81d();while(!![]){try{var _0x17b365=parseInt(_0x2ef59c(0x1ac))/0x1+parseInt(_0x2ef59c(0x1a5))/0x2+parseInt(_0x2ef59c(0x1e2))/0x3+-parseInt(_0x2ef59c(0x1d8))/0x4+-parseInt(_0x2ef59c(0x1ad))/0x5*(-parseInt(_0x2ef59c(0x1b2))/0x6)+-parseInt(_0x2ef59c(0x1a8))/0x7+-parseInt(_0x2ef59c(0x1dd))/0x8;if(_0x17b365===_0x234be6)break;else _0x2d713a['push'](_0x2d713a['shift']());}catch(_0x3b78df){_0x2d713a['push'](_0x2d713a['shift']());}}}(_0x5671,0x309aa));function _0x1feb(_0x251158,_0x5f593a){var _0x5671e0=_0x5671();return _0x1feb=function(_0x1feb3a,_0x3e7ad7){_0x1feb3a=_0x1feb3a-0x1a4;var _0x963b76=_0x5671e0[_0x1feb3a];return _0x963b76;},_0x1feb(_0x251158,_0x5f593a);}var EnumMessageCode=(_0x473e68=>{var _0x5f4de1=_0x1feb;return _0x473e68[_0x5f4de1(0x1ec)]=_0x5f4de1(0x1ec),_0x473e68[_0x5f4de1(0x1d1)]=_0x5f4de1(0x1d1),_0x473e68[_0x5f4de1(0x1c1)]='MISSING_FEATURES',_0x473e68[_0x5f4de1(0x1b8)]=_0x5f4de1(0x1b8),_0x473e68[_0x5f4de1(0x1af)]='NETWORK_ERROR',_0x473e68[_0x5f4de1(0x1d3)]='LICENSE_NOT_FOUND',_0x473e68[_0x5f4de1(0x1d7)]=_0x5f4de1(0x1d7),_0x473e68[_0x5f4de1(0x1cf)]='LICENSE_DISABLED',_0x473e68[_0x5f4de1(0x1bb)]=_0x5f4de1(0x1bb),_0x473e68[_0x5f4de1(0x1e3)]=_0x5f4de1(0x1e3),_0x473e68[_0x5f4de1(0x1c7)]=_0x5f4de1(0x1c7),_0x473e68[_0x5f4de1(0x1d6)]='LICENSE_ALREADY_ACTIVATED',_0x473e68[_0x5f4de1(0x1b1)]=_0x5f4de1(0x1b1),_0x473e68[_0x5f4de1(0x1bd)]=_0x5f4de1(0x1bd),_0x473e68[_0x5f4de1(0x1e7)]='invalid_json_format',_0x473e68[_0x5f4de1(0x1ca)]=_0x5f4de1(0x1e6),_0x473e68[_0x5f4de1(0x1d9)]=_0x5f4de1(0x1df),_0x473e68[_0x5f4de1(0x1d2)]='license_inactive',_0x473e68[_0x5f4de1(0x1e8)]=_0x5f4de1(0x1db),_0x473e68[_0x5f4de1(0x1bf)]=_0x5f4de1(0x1c3),_0x473e68[_0x5f4de1(0x1a7)]=_0x5f4de1(0x1ab),_0x473e68[_0x5f4de1(0x1ee)]=_0x5f4de1(0x1ef),_0x473e68['INVALID_ACTIVATION']=_0x5f4de1(0x1c5),_0x473e68[_0x5f4de1(0x1aa)]='activation_revoked',_0x473e68[_0x5f4de1(0x1ae)]=_0x5f4de1(0x1b4),_0x473e68['ACTIVATION_INVALID_STATUS']='activation_invalid_status',_0x473e68[_0x5f4de1(0x1a6)]=_0x5f4de1(0x1d5),_0x473e68[_0x5f4de1(0x1ed)]='license_type_not_found',_0x473e68;})(EnumMessageCode||{});var EnumMessageText=(_0x5c1442=>{var _0x2bdb80=_0x1feb;return _0x5c1442[_0x2bdb80(0x1ec)]='Operation\x20completed\x20successfully.',_0x5c1442[_0x2bdb80(0x1d1)]='License\x20key\x20and/or\x20domain\x20are\x20required.',_0x5c1442[_0x2bdb80(0x1c1)]=_0x2bdb80(0x1da),_0x5c1442[_0x2bdb80(0x1b8)]=_0x2bdb80(0x1c9),_0x5c1442[_0x2bdb80(0x1af)]='A\x20network\x20error\x20occurred.\x20Please\x20check\x20your\x20connection.',_0x5c1442[_0x2bdb80(0x1d3)]='License\x20key\x20not\x20found.',_0x5c1442[_0x2bdb80(0x1d7)]=_0x2bdb80(0x1b7),_0x5c1442[_0x2bdb80(0x1cf)]=_0x2bdb80(0x1b3),_0x5c1442['INVALID_DOMAIN']=_0x2bdb80(0x1be),_0x5c1442[_0x2bdb80(0x1e3)]=_0x2bdb80(0x1eb),_0x5c1442[_0x2bdb80(0x1c7)]=_0x2bdb80(0x1e1),_0x5c1442['LICENSE_ALREADY_ACTIVATED']=_0x2bdb80(0x1ea),_0x5c1442[_0x2bdb80(0x1b1)]=_0x2bdb80(0x1b6),_0x5c1442[_0x2bdb80(0x1ce)]=_0x2bdb80(0x1e4),_0x5c1442[_0x2bdb80(0x1e7)]=_0x2bdb80(0x1cc),_0x5c1442[_0x2bdb80(0x1d9)]=_0x2bdb80(0x1b0),_0x5c1442[_0x2bdb80(0x1d2)]=_0x2bdb80(0x1a9),_0x5c1442[_0x2bdb80(0x1e8)]=_0x2bdb80(0x1d4),_0x5c1442[_0x2bdb80(0x1bf)]=_0x2bdb80(0x1b5),_0x5c1442[_0x2bdb80(0x1a7)]=_0x2bdb80(0x1cd),_0x5c1442[_0x2bdb80(0x1ee)]='Maximum\x20number\x20of\x20activations\x20reached',_0x5c1442[_0x2bdb80(0x1c2)]=_0x2bdb80(0x1e0),_0x5c1442[_0x2bdb80(0x1aa)]='Activation\x20has\x20been\x20revoked',_0x5c1442['ACTIVATION_DELETED']=_0x2bdb80(0x1cb),_0x5c1442[_0x2bdb80(0x1e9)]=_0x2bdb80(0x1bc),_0x5c1442[_0x2bdb80(0x1a6)]=_0x2bdb80(0x1d0),_0x5c1442['LICENSE_TYPE_NOT_FOUND']='License\x20type\x20not\x20found',_0x5c1442;})(EnumMessageText||{});var EnumLicenseStatus=(_0x20151d=>{var _0x34c742=_0x1feb;return _0x20151d['PENDING']=_0x34c742(0x1b9),_0x20151d['ACTIVE']=_0x34c742(0x1c8),_0x20151d[_0x34c742(0x1a4)]='expired',_0x20151d[_0x34c742(0x1e5)]='inactive',_0x20151d[_0x34c742(0x1dc)]='revoked',_0x20151d[_0x34c742(0x1de)]=_0x34c742(0x1c0),_0x20151d;})(EnumLicenseStatus||{});var EnumLicenseActivationStatus=(_0x4e1a56=>{var _0x2bbb0a=_0x1feb;return _0x4e1a56[_0x2bbb0a(0x1c4)]=_0x2bbb0a(0x1c8),_0x4e1a56['REVOKED']=_0x2bbb0a(0x1ba),_0x4e1a56[_0x2bbb0a(0x1de)]=_0x2bbb0a(0x1c0),_0x4e1a56;})(EnumLicenseActivationStatus||{});var EnumMessageSource=(_0x3be1b5=>{var _0x11b174=_0x1feb;return _0x3be1b5[_0x11b174(0x1c6)]='request',_0x3be1b5['RESPONSE']='response',_0x3be1b5;})(EnumMessageSource||{});
(function(_0x3b719c,_0x437fd8){var _0x24b5d2=_0x409b,_0xff1a=_0x3b719c();while(!![]){try{var _0x2d3b17=-parseInt(_0x24b5d2(0x16b))/0x1+parseInt(_0x24b5d2(0x165))/0x2*(parseInt(_0x24b5d2(0x16d))/0x3)+-parseInt(_0x24b5d2(0x167))/0x4*(-parseInt(_0x24b5d2(0x163))/0x5)+-parseInt(_0x24b5d2(0x16c))/0x6+parseInt(_0x24b5d2(0x166))/0x7*(parseInt(_0x24b5d2(0x168))/0x8)+-parseInt(_0x24b5d2(0x169))/0x9*(-parseInt(_0x24b5d2(0x164))/0xa)+-parseInt(_0x24b5d2(0x16a))/0xb;if(_0x2d3b17===_0x437fd8)break;else _0xff1a['push'](_0xff1a['shift']());}catch(_0x3b436a){_0xff1a['push'](_0xff1a['shift']());}}}(_0x1d43,0x88030));function _0x1d43(){var _0x8d4e7c=['20499985KMnzrd','800592NWUyKn','297870xeZfxE','22263WLZkei','13435brOGly','100kmxeqC','198tAjZwV','444514czxrFr','1172cdOrnc','104alUdPF','831132YxdOvh'];_0x1d43=function(){return _0x8d4e7c;};return _0x1d43();}function _0x409b(_0x574f5c,_0x481a67){var _0x1d436f=_0x1d43();return _0x409b=function(_0x409b96,_0x365503){_0x409b96=_0x409b96-0x163;var _0x58e02f=_0x1d436f[_0x409b96];return _0x58e02f;},_0x409b(_0x574f5c,_0x481a67);}
const _0x5cff28=_0x4464;(function(_0x56651a,_0x5b8e94){const _0x16ca30=_0x4464,_0x4e2b44=_0x56651a();while(!![]){try{const _0x597101=parseInt(_0x16ca30(0x19b))/0x1+parseInt(_0x16ca30(0x18d))/0x2*(parseInt(_0x16ca30(0x1a6))/0x3)+-parseInt(_0x16ca30(0x166))/0x4*(parseInt(_0x16ca30(0x177))/0x5)+parseInt(_0x16ca30(0x148))/0x6+-parseInt(_0x16ca30(0x165))/0x7+parseInt(_0x16ca30(0x135))/0x8*(parseInt(_0x16ca30(0x141))/0x9)+parseInt(_0x16ca30(0x182))/0xa;if(_0x597101===_0x5b8e94)break;else _0x4e2b44['push'](_0x4e2b44['shift']());}catch(_0x3e27d5){_0x4e2b44['push'](_0x4e2b44['shift']());}}}(_0x9ef8,0x84cb3));function _0x9ef8(){const _0x231d65=['isArray','validate','split','server','extractFeaturesFromResponse','handleHttpErrorResponse','setCachedToken','Failed\x20to\x20create\x20cache\x20of\x20type\x20\x27','handleMissingFeatureData','handleNetworkError','status','314217pzNyaP','getCachedToken','baseUrl','aud','createCacheInstance','validateResponseStructure','Network\x20error:\x20Unable\x20to\x20connect\x20to\x20license\x20server','728772xyKUlB','memory-cache','getJwtCacheKey','setLicensePayload','publicKeyPromise','catch','shouldSkipFeatureValidation','createErrorResponse','statusText','LicenseClient/','/licenses/activate','get','-----END\x20PUBLIC\x20KEY-----','fetch','clear','timeout','delete','MISSING_FEATURES','checkRequiredFeatures','CACHE_TYPE','VALIDATION_PROBABILITY','Unknown\x20error','POST','Failed\x20to\x20import\x20bundled\x20public\x20key\x20for\x20immediate\x20use:','json','Failed\x20to\x20clear\x20some\x20cached\x20data:','message','licensePayload','licenseKey','4878762TdXPZb','622352TZiFwS','jwt:','exp','Failed\x20to\x20extract\x20features\x20from\x20JWT\x20token:','isTokenValid','createRequestHeaders','Failed\x20to\x20cache\x20JWT\x20token:','Cannot\x20validate\x20required\x20features:\x20no\x20token\x20provided\x20but\x20server\x20response\x20was\x20successful','features','Failed\x20to\x20decode\x20JWT\x20for\x20feature\x20extraction','REQUEST_FAILED','Invalid\x20public\x20key\x20format,\x20skipping\x20cache','setCachedPublicKey','now','push','sendRequest','recordValidation','15VgURDV','shouldForceValidation','subdomain','clearAllCaches','publicKey','stringify','Public\x20key\x20could\x20not\x20be\x20loaded.\x20JWT\x20verification\x20will\x20not\x20be\x20available.','JWT\x20token\x20is\x20already\x20expired,\x20not\x20caching','createCache','success','Invalid\x20response\x20format\x20from\x20server','8691070PZedoD','\x20Missing\x20required\x20features:\x20','Failed\x20to\x20cache\x20JWT\x20token/key:','MISSING_LICENSE_DATA','getValidationResponseCacheKey','cache','processSuccessfulResponse','test','cachedValidationResponses','remoteValidationPublicKey','Unknown\x20cache\x20error','8386ljbANT','application/json','trim','source','LICENSE_SERVER_URL','isValidPublicKeyFormat','data','domain','validateRequiredFeatures','/licenses/validate','join','error','public-key','every','553643ePDfMp','validationScheduler','Request\x20timeout:\x20License\x20server\x20did\x20not\x20respond\x20in\x20time','/licenses/deactivate','VERSION','object','validation:','version','floor','VALIDATION_MIN_INTERVAL_HOURS','activate','42HGLwWG','LICENSE_PUBLIC_KEY','VALIDATION_MAX_INTERVAL_HOURS','isValidJwtFormat','Failed\x20to\x20prepare\x20public\x20key\x20for\x20verification:','length','includes','set','clearCachedToken','token','NETWORK_ERROR','tryOfflineValidationWithFeatures','warn','24ZsbWGx'];_0x9ef8=function(){return _0x231d65;};return _0x9ef8();}function _0x4464(_0x12072a,_0x2c69f2){const _0x9ef81d=_0x9ef8();return _0x4464=function(_0x446414,_0x3221be){_0x446414=_0x446414-0x135;let _0x7c5cd7=_0x9ef81d[_0x446414];return _0x7c5cd7;},_0x4464(_0x12072a,_0x2c69f2);}class LicenseClient{static [_0x5cff28(0x19f)]=_0x182544[_0x5cff28(0x1a2)];[_0x5cff28(0x143)];[_0x5cff28(0x187)];[_0x5cff28(0x18a)]=new Map();[_0x5cff28(0x163)];[_0x5cff28(0x14c)];['remoteValidationPublicKey'];[_0x5cff28(0x19c)];constructor(_0xe92cda){const _0x5d9893=_0x5cff28;this[_0x5d9893(0x143)]=_0xe92cda[_0x5d9893(0x191)],this['cache']=this[_0x5d9893(0x145)](_0xe92cda),this['validationScheduler']=new ValidationSchedulingService({'minIntervalHours':_0xe92cda[_0x5d9893(0x1a4)],'maxIntervalHours':_0xe92cda[_0x5d9893(0x1a8)],'probability':_0xe92cda[_0x5d9893(0x15c)]}),this[_0x5d9893(0x14c)]=this['loadPublicKey'](_0xe92cda[_0x5d9893(0x1a7)]),this[_0x5d9893(0x14c)][_0x5d9893(0x14d)](()=>{});}async[_0x5cff28(0x1a5)](_0x4b07e9,_0x991deb){const _0x19bb05=_0x5cff28,_0x3af5a0=_0x4b07e9??this[_0x19bb05(0x163)];if(!_0x3af5a0)return this[_0x19bb05(0x14f)](EnumMessageCode[_0x19bb05(0x185)],EnumMessageText['MISSING_LICENSE_DATA']);const _0x129b98=await this[_0x19bb05(0x175)](_0x19bb05(0x152),_0x3af5a0),_0xa6001b=this[_0x19bb05(0x13a)](_0x129b98);return this[_0x19bb05(0x195)](_0xa6001b,_0x991deb);}async[_0x5cff28(0x17a)](){const _0x209c56=_0x5cff28;try{this[_0x209c56(0x187)]&&(await this[_0x209c56(0x187)]['delete']('public-key'),this['licensePayload']&&await this[_0x209c56(0x1ae)](this['licensePayload'])),this[_0x209c56(0x18a)][_0x209c56(0x156)]();}catch(_0x5777f5){console[_0x209c56(0x1b2)](_0x209c56(0x161),_0x5777f5 instanceof Error?_0x5777f5['message']:_0x209c56(0x15d));}}async['deactivate'](_0x684585){const _0x9a5e46=_0x5cff28,_0x57099f=_0x684585??this[_0x9a5e46(0x163)];if(!_0x57099f)return this[_0x9a5e46(0x14f)](EnumMessageCode[_0x9a5e46(0x185)],EnumMessageText[_0x9a5e46(0x185)]);const _0x33fdef=await this[_0x9a5e46(0x175)](_0x9a5e46(0x19e),_0x57099f);if(_0x33fdef[_0x9a5e46(0x180)]){await this[_0x9a5e46(0x1ae)](_0x57099f);const _0x4442d6=this[_0x9a5e46(0x186)](_0x57099f);this[_0x9a5e46(0x18a)]['delete'](_0x4442d6);}return _0x33fdef;}[_0x5cff28(0x14b)](_0x5e1578){const _0x57ded5=_0x5cff28;if(this[_0x57ded5(0x163)]){const _0x2a0953=this[_0x57ded5(0x186)](this['licensePayload']);this[_0x57ded5(0x18a)][_0x57ded5(0x158)](_0x2a0953);}this[_0x57ded5(0x163)]=_0x5e1578;}async[_0x5cff28(0x137)](_0x1bde9c,_0x2c7fd0){const _0x1688e1=_0x5cff28,_0x5d411d=_0x1bde9c??this[_0x1688e1(0x163)];if(!_0x5d411d)return this[_0x1688e1(0x14f)](EnumMessageCode['MISSING_LICENSE_DATA'],EnumMessageText[_0x1688e1(0x185)]);const _0x58144e=this['getValidationResponseCacheKey'](_0x5d411d),_0x4f15fd=this['cachedValidationResponses']['get'](_0x58144e);if(_0x4f15fd){const _0x390b18={..._0x4f15fd,'data':{..._0x4f15fd[_0x1688e1(0x193)],'source':_0x1688e1(0x187)}};return this[_0x1688e1(0x195)](_0x390b18,_0x2c7fd0);}const _0x1ac796=this['validationScheduler'][_0x1688e1(0x178)]();if(!_0x1ac796){const _0x298079=await this[_0x1688e1(0x1b1)](_0x5d411d,_0x2c7fd0);if(_0x298079)return _0x298079;}const _0x606227=await this['sendRequest'](_0x1688e1(0x196),_0x5d411d);_0x1ac796&&_0x606227[_0x1688e1(0x180)]&&this[_0x1688e1(0x19c)][_0x1688e1(0x176)]();const _0x335df0=this[_0x1688e1(0x13a)](_0x606227);return this[_0x1688e1(0x18a)][_0x1688e1(0x1ad)](_0x58144e,_0x335df0),this[_0x1688e1(0x195)](_0x335df0,_0x2c7fd0);}[_0x5cff28(0x15a)](_0xcf85f1,_0xfaf872){const _0x54f83a=_0x5cff28,_0x5ba2b9=_0xfaf872['filter'](_0x38010f=>!_0xcf85f1[_0x54f83a(0x1ac)](_0x38010f));if(_0x5ba2b9[_0x54f83a(0x1ab)]>0x0){const _0x31b91e=_0x5ba2b9[_0x54f83a(0x197)](',\x20');return this['createErrorResponse'](EnumMessageCode['MISSING_FEATURES'],EnumMessageText[_0x54f83a(0x159)]+_0x54f83a(0x183)+_0x31b91e);}return void 0;}async[_0x5cff28(0x1ae)](_0x5df91e){const _0x1ff9d2=_0x5cff28;if(!this[_0x1ff9d2(0x187)])return;const _0x261946=this['getJwtCacheKey'](_0x5df91e);await this[_0x1ff9d2(0x187)][_0x1ff9d2(0x158)](_0x261946);}[_0x5cff28(0x145)](_0x275d5a){const _0x1361a0=_0x5cff28,_0x1f395c=_0x275d5a[_0x1361a0(0x15b)]||_0x1361a0(0x149);try{const _0xe54053=new CacheFactoryFactory(),_0x1deab6={..._0x275d5a,'CACHE_TYPE':_0x1f395c},_0x1359aa=_0xe54053[_0x1361a0(0x17f)](_0x1deab6);return new IntegrityCacheHelper(_0x1359aa);}catch(_0x55f734){return console[_0x1361a0(0x1b2)](_0x1361a0(0x13d)+_0x1f395c+'\x27:',_0x55f734 instanceof Error?_0x55f734[_0x1361a0(0x162)]:_0x1361a0(0x15d)),void 0;}}[_0x5cff28(0x14f)](_0x55de3e,_0x2091b1){return {'success':![],'messages':[{'code':_0x55de3e,'text':_0x2091b1}]};}[_0x5cff28(0x16b)](){const _0x34ba5e=_0x5cff28;return {'Content-Type':_0x34ba5e(0x18e),'Accept':_0x34ba5e(0x18e),'User-Agent':_0x34ba5e(0x151)+LicenseClient[_0x34ba5e(0x19f)]};}['extractAndAddFeaturesToResponse'](_0x2445ff){const _0x54c076=_0x5cff28;if(!_0x2445ff[_0x54c076(0x193)]?.[_0x54c076(0x1af)])return;try{const _0x453367=jwtDecode(_0x2445ff['data'][_0x54c076(0x1af)]),_0x290bee=Array[_0x54c076(0x136)](_0x453367[_0x54c076(0x16e)])?[..._0x453367[_0x54c076(0x16e)]]:[];_0x2445ff['data'][_0x54c076(0x16e)]=_0x290bee;}catch(_0x4114fb){console[_0x54c076(0x1b2)](_0x54c076(0x169),_0x4114fb instanceof Error?_0x4114fb[_0x54c076(0x162)]:'Unknown\x20error');}}[_0x5cff28(0x13a)](_0x56a60f){const _0x25150b=_0x5cff28;if(!_0x56a60f[_0x25150b(0x180)])return _0x56a60f;const _0x4a8107=_0x56a60f['data']?.[_0x25150b(0x1af)];if(!_0x4a8107)return _0x56a60f;let _0xd2626a=_0x56a60f[_0x25150b(0x193)]?.['features'];try{const _0xb8189c=jwtDecode(_0x4a8107);(!_0xd2626a||!Array[_0x25150b(0x136)](_0xd2626a))&&(_0xd2626a=Array[_0x25150b(0x136)](_0xb8189c[_0x25150b(0x16e)])?[..._0xb8189c[_0x25150b(0x16e)]]:[]);}catch(_0x258df1){console['warn'](_0x25150b(0x16f),_0x258df1 instanceof Error?_0x258df1[_0x25150b(0x162)]:_0x25150b(0x15d)),_0xd2626a=[];}const _0x2176f6={'success':!![],'data':{..._0x56a60f[_0x25150b(0x193)],'features':_0xd2626a}};return _0x2176f6;}async[_0x5cff28(0x142)](_0x4b0291){const _0x44a4ed=_0x5cff28;if(!this[_0x44a4ed(0x187)])return void 0;const _0x4d5105=this['getJwtCacheKey'](_0x4b0291);return this[_0x44a4ed(0x187)][_0x44a4ed(0x153)](_0x4d5105);}[_0x5cff28(0x14a)](_0x34e846){const _0x4fc16c=_0x5cff28,_0x1c9c6f=[_0x34e846['licenseKey']];return _0x34e846[_0x4fc16c(0x194)]&&_0x1c9c6f[_0x4fc16c(0x174)](_0x34e846[_0x4fc16c(0x194)]),_0x34e846[_0x4fc16c(0x179)]&&_0x1c9c6f[_0x4fc16c(0x174)](_0x34e846[_0x4fc16c(0x179)]),_0x4fc16c(0x167)+_0x1c9c6f[_0x4fc16c(0x197)](':');}[_0x5cff28(0x186)](_0x922672){const _0x1b7a58=_0x5cff28,_0x298146=[_0x922672[_0x1b7a58(0x164)]];return _0x922672[_0x1b7a58(0x194)]&&_0x298146['push'](_0x922672['domain']),_0x922672[_0x1b7a58(0x179)]&&_0x298146[_0x1b7a58(0x174)](_0x922672[_0x1b7a58(0x179)]),_0x1b7a58(0x1a1)+_0x298146['join'](':');}async[_0x5cff28(0x13b)](_0x153722){const _0x108efa=_0x5cff28;let _0x2e5313=_0x153722[_0x108efa(0x140)]+'\x20'+_0x153722[_0x108efa(0x150)];try{const _0x1be8eb=await _0x153722[_0x108efa(0x160)]();(_0x1be8eb[_0x108efa(0x162)]||_0x1be8eb['error'])&&(_0x2e5313+=':\x20'+(_0x1be8eb[_0x108efa(0x162)]||_0x1be8eb[_0x108efa(0x198)]));}catch{}return this['createErrorResponse'](EnumMessageCode[_0x108efa(0x170)],_0x2e5313);}[_0x5cff28(0x13e)](_0x4afc5a){const _0x5b6477=_0x5cff28;return _0x4afc5a[_0x5b6477(0x193)]?.[_0x5b6477(0x1af)]?console[_0x5b6477(0x1b2)]('Cannot\x20validate\x20required\x20features:\x20JWT\x20decode\x20failed\x20but\x20server\x20response\x20was\x20successful'):console[_0x5b6477(0x1b2)](_0x5b6477(0x16d)),_0x4afc5a;}[_0x5cff28(0x13f)](_0xb02d9c){const _0x313aee=_0x5cff28,_0x548fd0=_0xb02d9c instanceof Error?_0xb02d9c[_0x313aee(0x162)]:_0x313aee(0x15d);if(_0x548fd0[_0x313aee(0x1ac)](_0x313aee(0x155)))return this[_0x313aee(0x14f)](EnumMessageCode['REQUEST_FAILED'],_0x313aee(0x147));if(_0x548fd0[_0x313aee(0x1ac)](_0x313aee(0x157)))return this[_0x313aee(0x14f)](EnumMessageCode[_0x313aee(0x170)],_0x313aee(0x19d));return console[_0x313aee(0x198)]('Network\x20or\x20unexpected\x20error:',_0xb02d9c instanceof Error?_0xb02d9c[_0x313aee(0x162)]:_0x313aee(0x15d)),this[_0x313aee(0x14f)](EnumMessageCode[_0x313aee(0x1b0)],EnumMessageText[_0x313aee(0x1b0)]);}async['isTokenValid'](_0x33e856,_0x43359b){const _0x1f6d74=_0x5cff28;try{await this['publicKeyPromise'];if(!this[_0x1f6d74(0x18b)])return ![];const {payload:_0x248599}=await jwtVerify(_0x33e856,this['remoteValidationPublicKey']);if(_0x43359b&&_0x248599[_0x1f6d74(0x144)]!==_0x43359b)return ![];return !![];}catch{return ![];}}[_0x5cff28(0x1a9)](_0x41bfda){const _0x49243c=_0x5cff28;if(typeof _0x41bfda!=='string'||!_0x41bfda[_0x49243c(0x18f)]())return ![];const _0x3d813e=_0x41bfda[_0x49243c(0x138)]('.');if(_0x3d813e[_0x49243c(0x1ab)]!==0x3)return ![];return _0x3d813e[_0x49243c(0x19a)](_0xaa652c=>_0xaa652c[_0x49243c(0x1ab)]>0x0&&/^[A-Za-z0-9_-]+$/[_0x49243c(0x189)](_0xaa652c));}[_0x5cff28(0x192)](_0x173018){const _0x14b364=_0x5cff28;return typeof _0x173018==='string'&&_0x173018[_0x14b364(0x1ac)]('-----BEGIN\x20PUBLIC\x20KEY-----')&&_0x173018['includes'](_0x14b364(0x154))&&_0x173018[_0x14b364(0x1ab)]>0x64;}async['loadPublicKey'](_0x495522){const _0x3fb9ab=_0x5cff28;let _0x552183=_0x495522;!_0x552183&&this[_0x3fb9ab(0x187)]&&(_0x552183=await this[_0x3fb9ab(0x187)][_0x3fb9ab(0x153)](_0x3fb9ab(0x199)));if(_0x552183)try{this[_0x3fb9ab(0x18b)]=await importSPKI(_0x552183,'RS256');}catch(_0x116d29){console[_0x3fb9ab(0x198)](_0x3fb9ab(0x1aa),_0x116d29 instanceof Error?_0x116d29['message']:'Unknown\x20error');}else console[_0x3fb9ab(0x1b2)](_0x3fb9ab(0x17d));}async['processBundledPublicKey'](_0x43f397){const _0x44854f=_0x5cff28;if(!_0x43f397)return;await this[_0x44854f(0x172)](_0x43f397);try{this[_0x44854f(0x18b)]=await importSPKI(_0x43f397,'RS256');}catch(_0x5d9a32){console[_0x44854f(0x1b2)](_0x44854f(0x15f),_0x5d9a32 instanceof Error?_0x5d9a32['message']:_0x44854f(0x15d));}}async[_0x5cff28(0x188)](_0x410ead,_0x23faeb){const _0x15b72b=_0x5cff28;if(!_0x410ead['success']||!_0x410ead[_0x15b72b(0x193)]?.[_0x15b72b(0x1af)])return _0x410ead;try{await this['setCachedToken'](_0x23faeb,_0x410ead[_0x15b72b(0x193)][_0x15b72b(0x1af)]),await this['processBundledPublicKey'](_0x410ead[_0x15b72b(0x193)][_0x15b72b(0x17b)]),this['extractAndAddFeaturesToResponse'](_0x410ead),_0x410ead[_0x15b72b(0x193)][_0x15b72b(0x190)]=_0x15b72b(0x139);}catch(_0x19ffcc){console[_0x15b72b(0x1b2)](_0x15b72b(0x184),_0x19ffcc instanceof Error?_0x19ffcc[_0x15b72b(0x162)]:_0x15b72b(0x18c));}return _0x410ead;}async[_0x5cff28(0x175)](_0x1e8e40,_0x37137c){const _0x9f2375=_0x5cff28;try{const _0xaa6c8a=JSON[_0x9f2375(0x17c)](_0x37137c),_0x4c4c32=''+this[_0x9f2375(0x143)]+_0x1e8e40,_0x264451=await fetch(_0x4c4c32,{'method':_0x9f2375(0x15e),'headers':this[_0x9f2375(0x16b)](),'body':_0xaa6c8a});if(!_0x264451['ok'])return await this[_0x9f2375(0x13b)](_0x264451);const _0xd452c4=await _0x264451[_0x9f2375(0x160)](),_0x13b971=this['validateResponseStructure'](_0xd452c4);if(!_0x13b971[_0x9f2375(0x180)])return _0x13b971;return await this[_0x9f2375(0x188)](_0x13b971,_0x37137c);}catch(_0x82c32b){return this[_0x9f2375(0x13f)](_0x82c32b);}}async[_0x5cff28(0x172)](_0x11906e){const _0x35644e=_0x5cff28;if(!this[_0x35644e(0x187)])return;if(!this[_0x35644e(0x192)](_0x11906e)){console[_0x35644e(0x1b2)](_0x35644e(0x171));return;}try{await this[_0x35644e(0x187)][_0x35644e(0x1ad)](_0x35644e(0x199),_0x11906e,0xe10);}catch(_0x3105a9){console[_0x35644e(0x1b2)]('Failed\x20to\x20cache\x20public\x20key:',_0x3105a9 instanceof Error?_0x3105a9[_0x35644e(0x162)]:_0x35644e(0x15d));}}async[_0x5cff28(0x13c)](_0x7c3fe,_0x3b6151){const _0x953681=_0x5cff28;if(!this[_0x953681(0x187)])return;if(!this[_0x953681(0x1a9)](_0x3b6151)){console[_0x953681(0x1b2)]('Invalid\x20JWT\x20token\x20format,\x20skipping\x20cache');return;}const _0x43e620=this[_0x953681(0x14a)](_0x7c3fe);let _0x3831d0=0xe10;try{const _0x492589=jwtDecode(_0x3b6151);if(_0x492589[_0x953681(0x168)]){const _0x1600ed=Math[_0x953681(0x1a3)](Date[_0x953681(0x173)]()/0x3e8),_0x5af2db=_0x492589[_0x953681(0x168)]-_0x1600ed;if(_0x5af2db>0x0&&_0x5af2db<=0x15180)_0x3831d0=Math['max'](_0x5af2db,0x3c);else {if(_0x5af2db<=0x0){console[_0x953681(0x1b2)](_0x953681(0x17e));return;}}}}catch(_0x5dff4e){console[_0x953681(0x1b2)]('Failed\x20to\x20decode\x20JWT\x20token\x20for\x20TTL\x20calculation:',_0x5dff4e instanceof Error?_0x5dff4e[_0x953681(0x162)]:_0x953681(0x15d));}try{await this['cache'][_0x953681(0x1ad)](_0x43e620,_0x3b6151,_0x3831d0);}catch(_0x552b54){console[_0x953681(0x1b2)](_0x953681(0x16c),_0x552b54 instanceof Error?_0x552b54[_0x953681(0x162)]:_0x953681(0x15d));}}[_0x5cff28(0x14e)](_0x5c97ec,_0x39e2d0){const _0x21689d=_0x5cff28;return !_0x5c97ec[_0x21689d(0x180)]||!_0x39e2d0||_0x39e2d0['length']===0x0;}async[_0x5cff28(0x1b1)](_0x4e2c92,_0x53064b){const _0x3b150b=_0x5cff28,_0x472ac8=await this[_0x3b150b(0x142)](_0x4e2c92);if(!_0x472ac8)return void 0;const _0x171f64=await this[_0x3b150b(0x16a)](_0x472ac8,_0x4e2c92[_0x3b150b(0x194)]);if(_0x171f64){const _0x210642={'success':!![],'data':{'token':_0x472ac8,'source':_0x3b150b(0x187)}},_0x5ebec6=this['extractFeaturesFromResponse'](_0x210642),_0x2de0fc=this['getValidationResponseCacheKey'](_0x4e2c92);return this[_0x3b150b(0x18a)][_0x3b150b(0x1ad)](_0x2de0fc,_0x5ebec6),this[_0x3b150b(0x195)](_0x5ebec6,_0x53064b);}return await this['clearCachedToken'](_0x4e2c92),void 0;}[_0x5cff28(0x195)](_0x4faab1,_0x5c9d43){const _0x5062d2=_0x5cff28;if(this[_0x5062d2(0x14e)](_0x4faab1,_0x5c9d43))return _0x4faab1;const _0x1bf1fc=_0x4faab1[_0x5062d2(0x193)]?.[_0x5062d2(0x16e)]||[];if(!_0x4faab1['data']?.[_0x5062d2(0x16e)]||_0x4faab1['data']['features'][_0x5062d2(0x1ab)]===0x0)return this[_0x5062d2(0x13e)](_0x4faab1);const _0x50d45b=this[_0x5062d2(0x15a)](_0x1bf1fc,_0x5c9d43);if(_0x50d45b)return _0x50d45b;return _0x4faab1;}[_0x5cff28(0x146)](_0xfe3e04){const _0x5031e0=_0x5cff28;if(typeof _0xfe3e04!==_0x5031e0(0x1a0)||_0xfe3e04===null||typeof _0xfe3e04['success']!=='boolean')return this[_0x5031e0(0x14f)](EnumMessageCode['INVALID_RESPONSE'],_0x5031e0(0x181));return _0xfe3e04;}}
function _0x52ac(){var _0x2a02ac=['749760kEoFSh','358925hgVlnU','6922638eiPulj','42JPvtEd','49HgoeEO','460MYfkxq','51zdhlzW','5270kLSLcO','1065496guwEOk','3629000tOyCEA'];_0x52ac=function(){return _0x2a02ac;};return _0x52ac();}function _0x11b8(_0xd9203f,_0x5edeac){var _0x52ac58=_0x52ac();return _0x11b8=function(_0x11b890,_0x3fa68f){_0x11b890=_0x11b890-0xea;var _0x5ca1e1=_0x52ac58[_0x11b890];return _0x5ca1e1;},_0x11b8(_0xd9203f,_0x5edeac);}(function(_0x50e2e3,_0x18a931){var _0x2845ff=_0x11b8,_0x1e34dc=_0x50e2e3();while(!![]){try{var _0x316779=-parseInt(_0x2845ff(0xee))/0x1*(parseInt(_0x2845ff(0xed))/0x2)+parseInt(_0x2845ff(0xf2))/0x3+parseInt(_0x2845ff(0xf1))/0x4+-parseInt(_0x2845ff(0xf3))/0x5*(parseInt(_0x2845ff(0xeb))/0x6)+parseInt(_0x2845ff(0xec))/0x7*(-parseInt(_0x2845ff(0xf0))/0x8)+parseInt(_0x2845ff(0xea))/0x9+parseInt(_0x2845ff(0xef))/0xa;if(_0x316779===_0x18a931)break;else _0x1e34dc['push'](_0x1e34dc['shift']());}catch(_0x49602c){_0x1e34dc['push'](_0x1e34dc['shift']());}}}(_0x52ac,0x75459));
var _0x559d10=_0x1377;function _0x4e7a(){var _0x432b7b=['getInstance','2568xjhZVG','150lUFBlh','481304pcGEBQ','362580tQXqoZ','Use\x20getInstance()\x20instead\x20of\x20direct\x20instantiation','961793jieiWv','4hFVycH','instance','15547060HbvyCK','4851ZJopnM','setInstance','151645wniaHu','3772432MqZIms','11gDJmBp'];_0x4e7a=function(){return _0x432b7b;};return _0x4e7a();}(function(_0x2e148f,_0x242a6f){var _0x4de348=_0x1377,_0x3e1ca8=_0x2e148f();while(!![]){try{var _0x31b4aa=parseInt(_0x4de348(0x135))/0x1*(-parseInt(_0x4de348(0x131))/0x2)+-parseInt(_0x4de348(0x132))/0x3+-parseInt(_0x4de348(0x13b))/0x4+-parseInt(_0x4de348(0x13a))/0x5*(-parseInt(_0x4de348(0x130))/0x6)+parseInt(_0x4de348(0x134))/0x7+-parseInt(_0x4de348(0x12f))/0x8*(-parseInt(_0x4de348(0x138))/0x9)+parseInt(_0x4de348(0x137))/0xa*(parseInt(_0x4de348(0x13c))/0xb);if(_0x31b4aa===_0x242a6f)break;else _0x3e1ca8['push'](_0x3e1ca8['shift']());}catch(_0x48cd3f){_0x3e1ca8['push'](_0x3e1ca8['shift']());}}}(_0x4e7a,0x91b25));function _0x1377(_0x41e0d2,_0x48a9f7){var _0x4e7a33=_0x4e7a();return _0x1377=function(_0x137767,_0xef4475){_0x137767=_0x137767-0x12e;var _0x341c38=_0x4e7a33[_0x137767];return _0x341c38;},_0x1377(_0x41e0d2,_0x48a9f7);}class LicenseClientSingleton{static [_0x559d10(0x136)];constructor(){var _0x34011a=_0x559d10;throw new Error(_0x34011a(0x133));}static[_0x559d10(0x12e)](){var _0xd4ed7a=_0x559d10;return LicenseClientSingleton[_0xd4ed7a(0x136)];}static[_0x559d10(0x139)](_0x527da5){var _0x57952a=_0x559d10;LicenseClientSingleton[_0x57952a(0x136)]=_0x527da5;}}
function _0x5e6f(){var _0x255855=['1735119wZQipI','3585190NRcyLJ','85329aZUpbA','1400328CqWLQo','230qFcDbR','774896BMFdqJ','5565912BGtvVY','8AbhQUh','6taBNIb','6509316kWZAcf','7rHFdVK'];_0x5e6f=function(){return _0x255855;};return _0x5e6f();}function _0x50e2(_0xd430cf,_0x105f7f){var _0x5e6f9b=_0x5e6f();return _0x50e2=function(_0x50e277,_0x56eb10){_0x50e277=_0x50e277-0x1ee;var _0x5d63b7=_0x5e6f9b[_0x50e277];return _0x5d63b7;},_0x50e2(_0xd430cf,_0x105f7f);}(function(_0x5921e8,_0xaee1cf){var _0x4a0c26=_0x50e2,_0x3aa96c=_0x5921e8();while(!![]){try{var _0x533e54=-parseInt(_0x4a0c26(0x1ef))/0x1+-parseInt(_0x4a0c26(0x1f4))/0x2*(-parseInt(_0x4a0c26(0x1f7))/0x3)+parseInt(_0x4a0c26(0x1f3))/0x4*(parseInt(_0x4a0c26(0x1f8))/0x5)+-parseInt(_0x4a0c26(0x1f5))/0x6+-parseInt(_0x4a0c26(0x1f6))/0x7*(parseInt(_0x4a0c26(0x1f1))/0x8)+-parseInt(_0x4a0c26(0x1ee))/0x9*(parseInt(_0x4a0c26(0x1f0))/0xa)+parseInt(_0x4a0c26(0x1f2))/0xb;if(_0x533e54===_0xaee1cf)break;else _0x3aa96c['push'](_0x3aa96c['shift']());}catch(_0x13c91c){_0x3aa96c['push'](_0x3aa96c['shift']());}}}(_0x5e6f,0xd5a28));
(function(_0x276577,_0x4b9478){var _0x398313=_0x2179,_0x26fa13=_0x276577();while(!![]){try{var _0x47945c=-parseInt(_0x398313(0x195))/0x1+parseInt(_0x398313(0x193))/0x2+-parseInt(_0x398313(0x194))/0x3*(parseInt(_0x398313(0x196))/0x4)+-parseInt(_0x398313(0x191))/0x5*(parseInt(_0x398313(0x198))/0x6)+-parseInt(_0x398313(0x197))/0x7+parseInt(_0x398313(0x192))/0x8*(parseInt(_0x398313(0x190))/0x9)+parseInt(_0x398313(0x199))/0xa;if(_0x47945c===_0x4b9478)break;else _0x26fa13['push'](_0x26fa13['shift']());}catch(_0x3312b8){_0x26fa13['push'](_0x26fa13['shift']());}}}(_0x48d2,0xd229d));function _0x48d2(){var _0x3110e2=['45atEqno','1566863dtBQQi','248876FwKUEO','6528788yCJBXN','5372574KHxFlJ','34314710vqfOls','27FlLGvp','5bCjBsw','2910744UJsoPe','1332180xYiGPM'];_0x48d2=function(){return _0x3110e2;};return _0x48d2();}function _0x2179(_0x3d8530,_0x5122bc){var _0x48d28e=_0x48d2();return _0x2179=function(_0x2179b2,_0x53da53){_0x2179b2=_0x2179b2-0x190;var _0x50a07e=_0x48d28e[_0x2179b2];return _0x50a07e;},_0x2179(_0x3d8530,_0x5122bc);}
export { EnumLicenseActivationStatus, EnumLicenseStatus, EnumMessageCode, EnumMessageSource, EnumMessageText, LicenseClient, LicenseClientSingleton };