LuaT  xV(w@@C:\REAPERDEV\Scripts\LKC-ReaScripts-DEV\UnifiedController\_source\lkc_unified_license_controller.luaQO DR R  RRRR π   !π" # $π% $& $π' $() $* +π, +- .π/ 01 2π3 24 5π6 57 8π9 : ; <π = > ? @π A B CO DFControlLogdofilescript_pathDataseparatorsave_table.datKONTROLERLICENSE_TYPES1Commercial License2Personal LicenseEEducation LicenseCONTEXTContentNavigatorgloblkc_cnav.glob_licenseloclkc_cnav.licenseserialslkc_render1.datRenderBlockslkc_renderblocks.glob_licenselkc_renderblocks.licenselkc_render2.datGrimSynclkc_grimsync.glob_licenselkc_grimsync.licenselkc_render3.datGetLicenseInfoFromSpecificContextKONTROLERLoopThruLicenseContextsKONTROLERGetContextReadDiskKONTROLERexistsisdirfile_existsbABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=AAAKONTROLERAABBBBKONTROLERBBCKONTROLERBBDKONTROLERDDDEEEKONTROLERGetEnvironmentInfoAddNewEnvironmentKONTROLERCreateNewLicenseFileKONTROLERGetCurrentEnvGlobalLicenseFileKeyKONTROLERGetCurrentEnvLocalLicenseFileKeyKONTROLERRemoveLicenseKONTROLERValidateKONTROLERWriteLicenseTest D5CONTROL_LOGreaperShowConsoleControlLogtostring param_ENV5   DF DFGControlLogChecking context: KONTROLERCONTEXTgloblocGetCurrentEnvGlobalLicenseFileKeyglobalGetCurrentEnvLocalLicenseFileKeylocalcontextglobloclicense_key_ENV J  8I FGControlLogLoop Thru contextsKONTROLERCONTEXT_IDCONTEXT_NAMEGetLicenseInfoFromSpecificContextKey FOUND NO RESULTS starting_ctxcontext_id(for state)(for state)(for state)icur_contextretscope_ENV D D85HControlLogscript_pathstringmatch.*[\/](.*[^\/])[\/]?KONTROLERCONTEXT_IDCONTEXT IS:parent_ENV D DB<8   <      D    8F8 5 ControlLogReadDiskKONTROLERGetContextscript_pathLoopThruLicenseContextsCONTEXTserialsglobalgloblocallocValidatebinseparatorreaperShowMessageBoxPATH:  Context not recognized. Make sure that your script location is correct, otherwise reinstall the script. If the problem persists write to this email: contact@lkctools.comCONTEXT ERRORcontextŌlicense_keyscoperet_contextlicense_fileserials_filelicensenameemailquantityserialtiershit_ENV€HFGosrenamefileokerrcode_ENV5exists/path_ENV8 DHHGioopenrclosenamef_ENV OOstringgsub[^KONTROLERb=].%d%d%d?%d?%d?%d?%d?%d? < D~/ʁ &. %. ~/ .  . # . @8B8 =KONTROLERbfind10xrf(for state)(for state)(for state)i_ENV JD<#.& B8I EFGsub1stringcharxc(for state)(for state)(for state)i_ENV data_ENV8€8lowerabyteAsDFFgsub%a   EFGKONTROLERAABstringcharbytesbase_ENVkeystrkey_ENVKONTROLERBBBstr_ENVKONTROLERBBBstr_ENV R€8 D<*<8 D /~5 D<5< D  98<8D8 ~/8 8HG,stringsub"find^%b""tableinsertassertlinesepresposctxt‡startpendpstartpendpぅ_ENV   D  D  D<7<886                 R      R  ˄  8̈́  J     5 I  8          ƄƄƄtableloadscript_pathDataseparatorluacbingsub%s+findGRIMSYNC:RENDERBLOCKS:CONTENTNAVIGATOR::END$string:END KONTROLERBBDreverseAAAinfoDDD,tekstinput_kstuffpairsinsertcharinput_stringserials_filegizlicensephrasegprefrbprefcnavprefsuff(for state)(for state)(for state)(for state)kv(for state)(for state)(for state)(for state)kvcompare_gi(for state)(for state)(for state)i_ENV<<<<<8  D  D  D  D EFGreaperGetOSOSX64OSX32OSXOthermacOS-arm64tostringosgetenvUSERHOMEUSERNAMECOMPUTERNAMEGetResourcePathplatformusernamecomputernameresource_path_ENV D5B  8DGreaperGetResourcePathseparatortableloadKONTROLERGetEnvironmentInfoassertsaveinput_keylicense_filelic_pathlicense_dberrcurrent_env_ENV D5R D<8reaperGetResourcePathseparatorKONTROLERGetEnvironmentInfoasserttablesaveinput_keylicense_filelic_pathcurrent_envlicense_db_ENV  DB  D HGControlLogGetCurrentEnvGlobalLicenseFileKeyreaperGetResourcePathseparatorKONTROLERfile_existsassertioopenrread*alllicense_filelic_pathfa_ENV  DB D8   D  D88  8   FGControlLogGetCurrentEnvLocalLicenseFileKeyreaperGetResourcePathseparatorKONTROLERfile_existstableloadmsgLicense file is not a valid table!ShowMessageBoxWhile looking for license key a problem was found.  License file is corrupted! It will be deleted! Press OK and restart the script.LICENSE ERRORosremoveGetEnvironmentInfoThere is no value for current environmentLicense File does not exist!license_filelic_pathlicense_dberrretcurrent_env_ENV D588 88   D D   8D   DreaperGetResourcePathseparatorglobalKONTROLERfile_existsosremoveShowMessageBoxLicense file is deleted from the system!LICENSE DELETED!!!localGetEnvironmentInfotableloadControlLogLicense file cannot be loadedassertsave License is removed from the system!LICENSE REMOVEDlicense_fileÆscopeÉlic_pathÌcurrent_env‹license_db„err_ENV D  DD  DD  DD  DD  DD   DDB     DB  8  5   HGControlLogValidate License key KEY:tostringLIC FILE:SCOPE:serials_file:bin:binseparator:separatorKONTROLEREEEVALID LICENSEreaperShowMessageBoxWhile looking for license key a problem was found.  Saved license key is invalid! It will be removed! Press OK and restart the script.LICENSE KEY INVALIDRemoveLicenselic_key؍license_file؆scope؍serials_file؈licenseԅnameԆemailԉquantityԇserialԅtierԅshitԁ_ENV!    4ʁ1 D         DB$       D     D     D = 8=    D =    D                D    F 2KONTROLERGetContextscript_pathCONTEXT_IDCONTEXT_NAMEControlLogCHECK FOR CONTEXT:CONTEXTlocserialsEEEbinseparatorReadDiskGetCurrentEnvLocalLicenseFileKeytostringAddNewEnvironmentCreateNewLicenseFilereaperShowMessageBoxThank you for buying LKC  license. USER:  EMAIL:  QUANTITY:  TYPE: LICENSE_TYPES HAVE FUN!LICENSE REGISTEREDWrong key. Please make sure that you have entered correct license key!LICENSE KEY INVALID&input_keystarting_contextstarting_context_id(for state)(for state)(for state)icontextlicense_fileserials_fileinput_validnameemailquantityserialtiershitserialerrmsg_ENV DGKONTROLERReadDiskC:\REAPERDEV\Scripts\Prototypes\unified_license_controller\ContentNavigator\x64\ _ENV+  B  !,_ENV