<?php
declare(strict_types=1);
function registerAiPhp74UploadDependencies(string $dependencyRoot): void
{
    if(!is_dir($dependencyRoot)||is_link($dependencyRoot))throw new RuntimeException('Private dependency directory required');
    $base=rtrim(realpath($dependencyRoot),'/').'/';
    spl_autoload_register(static function($class)use($base){$maps=['think\\file\\'=>'topthink/framework/src/think/file/','think\\filesystem\\'=>'topthink/think-filesystem/src/filesystem/','League\\Flysystem\\'=>'league/flysystem/src/','League\\MimeTypeDetection\\'=>'league/mime-type-detection/src/'];$special=['think\\File'=>'topthink/framework/src/think/File.php','think\\exception\\FileException'=>'topthink/framework/src/think/exception/FileException.php','think\\Filesystem'=>'topthink/think-filesystem/src/Filesystem.php','think\\facade\\Filesystem'=>'topthink/think-filesystem/src/facade/Filesystem.php'];if(isset($special[$class]))require_once $base.$special[$class];else foreach($maps as $prefix=>$dir)if(strpos($class,$prefix)===0){$file=$base.$dir.str_replace('\\','/',substr($class,strlen($prefix))).'.php';if(is_file($file))require_once $file;}},true,true);
}
