<?php











namespace Composer;

use Composer\Autoload\ClassLoader;
use Composer\Semver\VersionParser;








class InstalledVersions
{
private static $installed = array (
  'root' => 
  array (
    'pretty_version' => '1.0.0+no-version-set',
    'version' => '1.0.0.0',
    'aliases' => 
    array (
    ),
    'reference' => NULL,
    'name' => 'codeigniter4/framework',
  ),
  'versions' => 
  array (
    'clue/ndjson-react' => 
    array (
      'pretty_version' => 'v1.3.0',
      'version' => '1.3.0.0',
      'aliases' => 
      array (
      ),
      'reference' => '392dc165fce93b5bb5c637b67e59619223c931b0',
    ),
    'codeigniter/coding-standard' => 
    array (
      'pretty_version' => 'v1.8.9',
      'version' => '1.8.9.0',
      'aliases' => 
      array (
      ),
      'reference' => '2f04b8daf72c3afa2da032c4d912c2c108b3762b',
    ),
    'codeigniter4/framework' => 
    array (
      'pretty_version' => '1.0.0+no-version-set',
      'version' => '1.0.0.0',
      'aliases' => 
      array (
      ),
      'reference' => NULL,
    ),
    'composer/pcre' => 
    array (
      'pretty_version' => '3.3.2',
      'version' => '3.3.2.0',
      'aliases' => 
      array (
      ),
      'reference' => 'b2bed4734f0cc156ee1fe9c0da2550420d99a21e',
    ),
    'composer/semver' => 
    array (
      'pretty_version' => '3.4.4',
      'version' => '3.4.4.0',
      'aliases' => 
      array (
      ),
      'reference' => '198166618906cb2de69b95d7d47e5fa8aa1b2b95',
    ),
    'composer/xdebug-handler' => 
    array (
      'pretty_version' => '3.0.5',
      'version' => '3.0.5.0',
      'aliases' => 
      array (
      ),
      'reference' => '6c1925561632e83d60a44492e0b344cf48ab85ef',
    ),
    'dompdf/dompdf' => 
    array (
      'pretty_version' => 'v3.1.4',
      'version' => '3.1.4.0',
      'aliases' => 
      array (
      ),
      'reference' => 'db712c90c5b9868df3600e64e68da62e78a34623',
    ),
    'dompdf/php-font-lib' => 
    array (
      'pretty_version' => '1.0.2',
      'version' => '1.0.2.0',
      'aliases' => 
      array (
      ),
      'reference' => 'a6e9a688a2a80016ac080b97be73d3e10c444c9a',
    ),
    'dompdf/php-svg-lib' => 
    array (
      'pretty_version' => '1.0.2',
      'version' => '1.0.2.0',
      'aliases' => 
      array (
      ),
      'reference' => '8259ffb930817e72b1ff1caef5d226501f3dfeb1',
    ),
    'evenement/evenement' => 
    array (
      'pretty_version' => 'v3.0.2',
      'version' => '3.0.2.0',
      'aliases' => 
      array (
      ),
      'reference' => '0a16b0d71ab13284339abb99d9d2bd813640efbc',
    ),
    'fakerphp/faker' => 
    array (
      'pretty_version' => 'v1.24.1',
      'version' => '1.24.1.0',
      'aliases' => 
      array (
      ),
      'reference' => 'e0ee18eb1e6dc3cda3ce9fd97e5a0689a88a64b5',
    ),
    'fidry/cpu-core-counter' => 
    array (
      'pretty_version' => '1.3.0',
      'version' => '1.3.0.0',
      'aliases' => 
      array (
      ),
      'reference' => 'db9508f7b1474469d9d3c53b86f817e344732678',
    ),
    'friendsofphp/php-cs-fixer' => 
    array (
      'pretty_version' => 'v3.93.1',
      'version' => '3.93.1.0',
      'aliases' => 
      array (
      ),
      'reference' => 'b3546ab487c0762c39f308dc1ec0ea2c461fc21a',
    ),
    'kint-php/kint' => 
    array (
      'pretty_version' => '5.1.1',
      'version' => '5.1.1.0',
      'aliases' => 
      array (
      ),
      'reference' => '8c5ec370c3382ceae0b88e91f9bbb00e6bb4f93b',
    ),
    'laminas/laminas-escaper' => 
    array (
      'pretty_version' => '2.17.0',
      'version' => '2.17.0.0',
      'aliases' => 
      array (
      ),
      'reference' => 'df1ef9503299a8e3920079a16263b578eaf7c3ba',
    ),
    'masterminds/html5' => 
    array (
      'pretty_version' => '2.10.0',
      'version' => '2.10.0.0',
      'aliases' => 
      array (
      ),
      'reference' => 'fcf91eb64359852f00d921887b219479b4f21251',
    ),
    'mikey179/vfsstream' => 
    array (
      'pretty_version' => 'v1.6.12',
      'version' => '1.6.12.0',
      'aliases' => 
      array (
      ),
      'reference' => 'fe695ec993e0a55c3abdda10a9364eb31c6f1bf0',
    ),
    'myclabs/deep-copy' => 
    array (
      'pretty_version' => '1.13.4',
      'version' => '1.13.4.0',
      'aliases' => 
      array (
      ),
      'reference' => '07d290f0c47959fd5eed98c95ee5602db07e0b6a',
    ),
    'nexusphp/cs-config' => 
    array (
      'pretty_version' => 'v3.27.0',
      'version' => '3.27.0.0',
      'aliases' => 
      array (
      ),
      'reference' => 'c2bfb57a4eb780e6a75dbd13551964da5d32c450',
    ),
    'nikic/php-parser' => 
    array (
      'pretty_version' => 'v5.7.0',
      'version' => '5.7.0.0',
      'aliases' => 
      array (
      ),
      'reference' => 'dca41cd15c2ac9d055ad70dbfd011130757d1f82',
    ),
    'phar-io/manifest' => 
    array (
      'pretty_version' => '2.0.4',
      'version' => '2.0.4.0',
      'aliases' => 
      array (
      ),
      'reference' => '54750ef60c58e43759730615a392c31c80e23176',
    ),
    'phar-io/version' => 
    array (
      'pretty_version' => '3.2.1',
      'version' => '3.2.1.0',
      'aliases' => 
      array (
      ),
      'reference' => '4f7fd7836c6f332bb2933569e566a0d6c4cbed74',
    ),
    'phpunit/php-code-coverage' => 
    array (
      'pretty_version' => '10.1.16',
      'version' => '10.1.16.0',
      'aliases' => 
      array (
      ),
      'reference' => '7e308268858ed6baedc8704a304727d20bc07c77',
    ),
    'phpunit/php-file-iterator' => 
    array (
      'pretty_version' => '4.1.0',
      'version' => '4.1.0.0',
      'aliases' => 
      array (
      ),
      'reference' => 'a95037b6d9e608ba092da1b23931e537cadc3c3c',
    ),
    'phpunit/php-invoker' => 
    array (
      'pretty_version' => '4.0.0',
      'version' => '4.0.0.0',
      'aliases' => 
      array (
      ),
      'reference' => 'f5e568ba02fa5ba0ddd0f618391d5a9ea50b06d7',
    ),
    'phpunit/php-text-template' => 
    array (
      'pretty_version' => '3.0.1',
      'version' => '3.0.1.0',
      'aliases' => 
      array (
      ),
      'reference' => '0c7b06ff49e3d5072f057eb1fa59258bf287a748',
    ),
    'phpunit/php-timer' => 
    array (
      'pretty_version' => '6.0.0',
      'version' => '6.0.0.0',
      'aliases' => 
      array (
      ),
      'reference' => 'e2a2d67966e740530f4a3343fe2e030ffdc1161d',
    ),
    'phpunit/phpunit' => 
    array (
      'pretty_version' => '10.5.63',
      'version' => '10.5.63.0',
      'aliases' => 
      array (
      ),
      'reference' => '33198268dad71e926626b618f3ec3966661e4d90',
    ),
    'predis/predis' => 
    array (
      'pretty_version' => 'v2.4.1',
      'version' => '2.4.1.0',
      'aliases' => 
      array (
      ),
      'reference' => '07105e050622ed80bd60808367ced9e379f31530',
    ),
    'psr/container' => 
    array (
      'pretty_version' => '2.0.2',
      'version' => '2.0.2.0',
      'aliases' => 
      array (
      ),
      'reference' => 'c71ecc56dfe541dbd90c5360474fbc405f8d5963',
    ),
    'psr/event-dispatcher' => 
    array (
      'pretty_version' => '1.0.0',
      'version' => '1.0.0.0',
      'aliases' => 
      array (
      ),
      'reference' => 'dbefd12671e8a14ec7f180cab83036ed26714bb0',
    ),
    'psr/event-dispatcher-implementation' => 
    array (
      'provided' => 
      array (
        0 => '1.0',
      ),
    ),
    'psr/log' => 
    array (
      'pretty_version' => '3.0.2',
      'version' => '3.0.2.0',
      'aliases' => 
      array (
      ),
      'reference' => 'f16e1d5863e37f8d8c2a01719f5b34baa2b714d3',
    ),
    'psr/log-implementation' => 
    array (
      'provided' => 
      array (
        0 => '1.0|2.0|3.0',
      ),
    ),
    'react/cache' => 
    array (
      'pretty_version' => 'v1.2.0',
      'version' => '1.2.0.0',
      'aliases' => 
      array (
      ),
      'reference' => 'd47c472b64aa5608225f47965a484b75c7817d5b',
    ),
    'react/child-process' => 
    array (
      'pretty_version' => 'v0.6.7',
      'version' => '0.6.7.0',
      'aliases' => 
      array (
      ),
      'reference' => '970f0e71945556422ee4570ccbabaedc3cf04ad3',
    ),
    'react/dns' => 
    array (
      'pretty_version' => 'v1.14.0',
      'version' => '1.14.0.0',
      'aliases' => 
      array (
      ),
      'reference' => '7562c05391f42701c1fccf189c8225fece1cd7c3',
    ),
    'react/event-loop' => 
    array (
      'pretty_version' => 'v1.6.0',
      'version' => '1.6.0.0',
      'aliases' => 
      array (
      ),
      'reference' => 'ba276bda6083df7e0050fd9b33f66ad7a4ac747a',
    ),
    'react/promise' => 
    array (
      'pretty_version' => 'v3.3.0',
      'version' => '3.3.0.0',
      'aliases' => 
      array (
      ),
      'reference' => '23444f53a813a3296c1368bb104793ce8d88f04a',
    ),
    'react/socket' => 
    array (
      'pretty_version' => 'v1.17.0',
      'version' => '1.17.0.0',
      'aliases' => 
      array (
      ),
      'reference' => 'ef5b17b81f6f60504c539313f94f2d826c5faa08',
    ),
    'react/stream' => 
    array (
      'pretty_version' => 'v1.4.0',
      'version' => '1.4.0.0',
      'aliases' => 
      array (
      ),
      'reference' => '1e5b0acb8fe55143b5b426817155190eb6f5b18d',
    ),
    'sabberworm/php-css-parser' => 
    array (
      'pretty_version' => 'v9.1.0',
      'version' => '9.1.0.0',
      'aliases' => 
      array (
      ),
      'reference' => '1b363fdbdc6dd0ca0f4bf98d3a4d7f388133f1fb',
    ),
    'sebastian/cli-parser' => 
    array (
      'pretty_version' => '2.0.1',
      'version' => '2.0.1.0',
      'aliases' => 
      array (
      ),
      'reference' => 'c34583b87e7b7a8055bf6c450c2c77ce32a24084',
    ),
    'sebastian/code-unit' => 
    array (
      'pretty_version' => '2.0.0',
      'version' => '2.0.0.0',
      'aliases' => 
      array (
      ),
      'reference' => 'a81fee9eef0b7a76af11d121767abc44c104e503',
    ),
    'sebastian/code-unit-reverse-lookup' => 
    array (
      'pretty_version' => '3.0.0',
      'version' => '3.0.0.0',
      'aliases' => 
      array (
      ),
      'reference' => '5e3a687f7d8ae33fb362c5c0743794bbb2420a1d',
    ),
    'sebastian/comparator' => 
    array (
      'pretty_version' => '5.0.5',
      'version' => '5.0.5.0',
      'aliases' => 
      array (
      ),
      'reference' => '55dfef806eb7dfeb6e7a6935601fef866f8ca48d',
    ),
    'sebastian/complexity' => 
    array (
      'pretty_version' => '3.2.0',
      'version' => '3.2.0.0',
      'aliases' => 
      array (
      ),
      'reference' => '68ff824baeae169ec9f2137158ee529584553799',
    ),
    'sebastian/diff' => 
    array (
      'pretty_version' => '5.1.1',
      'version' => '5.1.1.0',
      'aliases' => 
      array (
      ),
      'reference' => 'c41e007b4b62af48218231d6c2275e4c9b975b2e',
    ),
    'sebastian/environment' => 
    array (
      'pretty_version' => '6.1.0',
      'version' => '6.1.0.0',
      'aliases' => 
      array (
      ),
      'reference' => '8074dbcd93529b357029f5cc5058fd3e43666984',
    ),
    'sebastian/exporter' => 
    array (
      'pretty_version' => '5.1.4',
      'version' => '5.1.4.0',
      'aliases' => 
      array (
      ),
      'reference' => '0735b90f4da94969541dac1da743446e276defa6',
    ),
    'sebastian/global-state' => 
    array (
      'pretty_version' => '6.0.2',
      'version' => '6.0.2.0',
      'aliases' => 
      array (
      ),
      'reference' => '987bafff24ecc4c9ac418cab1145b96dd6e9cbd9',
    ),
    'sebastian/lines-of-code' => 
    array (
      'pretty_version' => '2.0.2',
      'version' => '2.0.2.0',
      'aliases' => 
      array (
      ),
      'reference' => '856e7f6a75a84e339195d48c556f23be2ebf75d0',
    ),
    'sebastian/object-enumerator' => 
    array (
      'pretty_version' => '5.0.0',
      'version' => '5.0.0.0',
      'aliases' => 
      array (
      ),
      'reference' => '202d0e344a580d7f7d04b3fafce6933e59dae906',
    ),
    'sebastian/object-reflector' => 
    array (
      'pretty_version' => '3.0.0',
      'version' => '3.0.0.0',
      'aliases' => 
      array (
      ),
      'reference' => '24ed13d98130f0e7122df55d06c5c4942a577957',
    ),
    'sebastian/recursion-context' => 
    array (
      'pretty_version' => '5.0.1',
      'version' => '5.0.1.0',
      'aliases' => 
      array (
      ),
      'reference' => '47e34210757a2f37a97dcd207d032e1b01e64c7a',
    ),
    'sebastian/type' => 
    array (
      'pretty_version' => '4.0.0',
      'version' => '4.0.0.0',
      'aliases' => 
      array (
      ),
      'reference' => '462699a16464c3944eefc02ebdd77882bd3925bf',
    ),
    'sebastian/version' => 
    array (
      'pretty_version' => '4.0.1',
      'version' => '4.0.1.0',
      'aliases' => 
      array (
      ),
      'reference' => 'c51fa83a5d8f43f1402e3f32a005e6262244ef17',
    ),
    'symfony/console' => 
    array (
      'pretty_version' => 'v6.4.32',
      'version' => '6.4.32.0',
      'aliases' => 
      array (
      ),
      'reference' => '0bc2199c6c1f05276b05956f1ddc63f6d7eb5fc3',
    ),
    'symfony/deprecation-contracts' => 
    array (
      'pretty_version' => 'v3.6.0',
      'version' => '3.6.0.0',
      'aliases' => 
      array (
      ),
      'reference' => '63afe740e99a13ba87ec199bb07bbdee937a5b62',
    ),
    'symfony/event-dispatcher' => 
    array (
      'pretty_version' => 'v6.4.32',
      'version' => '6.4.32.0',
      'aliases' => 
      array (
      ),
      'reference' => '99d7e101826e6610606b9433248f80c1997cd20b',
    ),
    'symfony/event-dispatcher-contracts' => 
    array (
      'pretty_version' => 'v3.6.0',
      'version' => '3.6.0.0',
      'aliases' => 
      array (
      ),
      'reference' => '59eb412e93815df44f05f342958efa9f46b1e586',
    ),
    'symfony/event-dispatcher-implementation' => 
    array (
      'provided' => 
      array (
        0 => '2.0|3.0',
      ),
    ),
    'symfony/filesystem' => 
    array (
      'pretty_version' => 'v6.4.30',
      'version' => '6.4.30.0',
      'aliases' => 
      array (
      ),
      'reference' => '441c6b69f7222aadae7cbf5df588496d5ee37789',
    ),
    'symfony/finder' => 
    array (
      'pretty_version' => 'v6.4.33',
      'version' => '6.4.33.0',
      'aliases' => 
      array (
      ),
      'reference' => '24965ca011dac87431729640feef8bcf7b5523e0',
    ),
    'symfony/options-resolver' => 
    array (
      'pretty_version' => 'v6.4.30',
      'version' => '6.4.30.0',
      'aliases' => 
      array (
      ),
      'reference' => 'eeaa8cabe54c7b3516938c72a4a161c0cc80a34f',
    ),
    'symfony/polyfill-ctype' => 
    array (
      'pretty_version' => 'v1.33.0',
      'version' => '1.33.0.0',
      'aliases' => 
      array (
      ),
      'reference' => 'a3cc8b044a6ea513310cbd48ef7333b384945638',
    ),
    'symfony/polyfill-intl-grapheme' => 
    array (
      'pretty_version' => 'v1.33.0',
      'version' => '1.33.0.0',
      'aliases' => 
      array (
      ),
      'reference' => '380872130d3a5dd3ace2f4010d95125fde5d5c70',
    ),
    'symfony/polyfill-intl-normalizer' => 
    array (
      'pretty_version' => 'v1.33.0',
      'version' => '1.33.0.0',
      'aliases' => 
      array (
      ),
      'reference' => '3833d7255cc303546435cb650316bff708a1c75c',
    ),
    'symfony/polyfill-mbstring' => 
    array (
      'pretty_version' => 'v1.33.0',
      'version' => '1.33.0.0',
      'aliases' => 
      array (
      ),
      'reference' => '6d857f4d76bd4b343eac26d6b539585d2bc56493',
    ),
    'symfony/polyfill-php80' => 
    array (
      'pretty_version' => 'v1.33.0',
      'version' => '1.33.0.0',
      'aliases' => 
      array (
      ),
      'reference' => '0cc9dd0f17f61d8131e7df6b84bd344899fe2608',
    ),
    'symfony/polyfill-php81' => 
    array (
      'pretty_version' => 'v1.33.0',
      'version' => '1.33.0.0',
      'aliases' => 
      array (
      ),
      'reference' => '4a4cfc2d253c21a5ad0e53071df248ed48c6ce5c',
    ),
    'symfony/polyfill-php84' => 
    array (
      'pretty_version' => 'v1.33.0',
      'version' => '1.33.0.0',
      'aliases' => 
      array (
      ),
      'reference' => 'd8ced4d875142b6a7426000426b8abc631d6b191',
    ),
    'symfony/process' => 
    array (
      'pretty_version' => 'v6.4.33',
      'version' => '6.4.33.0',
      'aliases' => 
      array (
      ),
      'reference' => 'c46e854e79b52d07666e43924a20cb6dc546644e',
    ),
    'symfony/service-contracts' => 
    array (
      'pretty_version' => 'v3.6.1',
      'version' => '3.6.1.0',
      'aliases' => 
      array (
      ),
      'reference' => '45112560a3ba2d715666a509a0bc9521d10b6c43',
    ),
    'symfony/stopwatch' => 
    array (
      'pretty_version' => 'v6.4.24',
      'version' => '6.4.24.0',
      'aliases' => 
      array (
      ),
      'reference' => 'b67e94e06a05d9572c2fa354483b3e13e3cb1898',
    ),
    'symfony/string' => 
    array (
      'pretty_version' => 'v6.4.30',
      'version' => '6.4.30.0',
      'aliases' => 
      array (
      ),
      'reference' => '50590a057841fa6bf69d12eceffce3465b9e32cb',
    ),
    'thecodingmachine/safe' => 
    array (
      'pretty_version' => 'v3.3.0',
      'version' => '3.3.0.0',
      'aliases' => 
      array (
      ),
      'reference' => '2cdd579eeaa2e78e51c7509b50cc9fb89a956236',
    ),
    'theseer/tokenizer' => 
    array (
      'pretty_version' => '1.3.1',
      'version' => '1.3.1.0',
      'aliases' => 
      array (
      ),
      'reference' => 'b7489ce515e168639d17feec34b8847c326b0b3c',
    ),
  ),
);
private static $canGetVendors;
private static $installedByVendor = array();







public static function getInstalledPackages()
{
$packages = array();
foreach (self::getInstalled() as $installed) {
$packages[] = array_keys($installed['versions']);
}

if (1 === \count($packages)) {
return $packages[0];
}

return array_keys(array_flip(\call_user_func_array('array_merge', $packages)));
}









public static function isInstalled($packageName)
{
foreach (self::getInstalled() as $installed) {
if (isset($installed['versions'][$packageName])) {
return true;
}
}

return false;
}














public static function satisfies(VersionParser $parser, $packageName, $constraint)
{
$constraint = $parser->parseConstraints($constraint);
$provided = $parser->parseConstraints(self::getVersionRanges($packageName));

return $provided->matches($constraint);
}










public static function getVersionRanges($packageName)
{
foreach (self::getInstalled() as $installed) {
if (!isset($installed['versions'][$packageName])) {
continue;
}

$ranges = array();
if (isset($installed['versions'][$packageName]['pretty_version'])) {
$ranges[] = $installed['versions'][$packageName]['pretty_version'];
}
if (array_key_exists('aliases', $installed['versions'][$packageName])) {
$ranges = array_merge($ranges, $installed['versions'][$packageName]['aliases']);
}
if (array_key_exists('replaced', $installed['versions'][$packageName])) {
$ranges = array_merge($ranges, $installed['versions'][$packageName]['replaced']);
}
if (array_key_exists('provided', $installed['versions'][$packageName])) {
$ranges = array_merge($ranges, $installed['versions'][$packageName]['provided']);
}

return implode(' || ', $ranges);
}

throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed');
}





public static function getVersion($packageName)
{
foreach (self::getInstalled() as $installed) {
if (!isset($installed['versions'][$packageName])) {
continue;
}

if (!isset($installed['versions'][$packageName]['version'])) {
return null;
}

return $installed['versions'][$packageName]['version'];
}

throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed');
}





public static function getPrettyVersion($packageName)
{
foreach (self::getInstalled() as $installed) {
if (!isset($installed['versions'][$packageName])) {
continue;
}

if (!isset($installed['versions'][$packageName]['pretty_version'])) {
return null;
}

return $installed['versions'][$packageName]['pretty_version'];
}

throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed');
}





public static function getReference($packageName)
{
foreach (self::getInstalled() as $installed) {
if (!isset($installed['versions'][$packageName])) {
continue;
}

if (!isset($installed['versions'][$packageName]['reference'])) {
return null;
}

return $installed['versions'][$packageName]['reference'];
}

throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed');
}





public static function getRootPackage()
{
$installed = self::getInstalled();

return $installed[0]['root'];
}








public static function getRawData()
{
@trigger_error('getRawData only returns the first dataset loaded, which may not be what you expect. Use getAllRawData() instead which returns all datasets for all autoloaders present in the process.', E_USER_DEPRECATED);

return self::$installed;
}







public static function getAllRawData()
{
return self::getInstalled();
}



















public static function reload($data)
{
self::$installed = $data;
self::$installedByVendor = array();
}





private static function getInstalled()
{
if (null === self::$canGetVendors) {
self::$canGetVendors = method_exists('Composer\Autoload\ClassLoader', 'getRegisteredLoaders');
}

$installed = array();

if (self::$canGetVendors) {
foreach (ClassLoader::getRegisteredLoaders() as $vendorDir => $loader) {
if (isset(self::$installedByVendor[$vendorDir])) {
$installed[] = self::$installedByVendor[$vendorDir];
} elseif (is_file($vendorDir.'/composer/installed.php')) {
$installed[] = self::$installedByVendor[$vendorDir] = require $vendorDir.'/composer/installed.php';
}
}
}

$installed[] = self::$installed;

return $installed;
}
}
