<?php











namespace Composer;

use Composer\Semver\VersionParser;






class InstalledVersions
{
private static $installed = array (
  'root' => 
  array (
    'pretty_version' => 'dev-master',
    'version' => 'dev-master',
    'aliases' => 
    array (
    ),
    'reference' => 'b420e045c173cd6bc53a8a7c7ebdaa7281067eb5',
    'name' => '__root__',
  ),
  'versions' => 
  array (
    '__root__' => 
    array (
      'pretty_version' => 'dev-master',
      'version' => 'dev-master',
      'aliases' => 
      array (
      ),
      'reference' => 'b420e045c173cd6bc53a8a7c7ebdaa7281067eb5',
    ),
    'adianti/barcode-document' => 
    array (
      'pretty_version' => 'v1.0.0',
      'version' => '1.0.0.0',
      'aliases' => 
      array (
      ),
      'reference' => 'a251ae15583fc99137d8bbd2284541319af742d2',
    ),
    'adianti/html-document' => 
    array (
      'pretty_version' => 'v1.0.0',
      'version' => '1.0.0.0',
      'aliases' => 
      array (
      ),
      'reference' => '76c5af4c4515724d6e22f968ba22a49b83711bd1',
    ),
    'adianti/pdfdesigner' => 
    array (
      'pretty_version' => 'v1.0.0',
      'version' => '1.0.0.0',
      'aliases' => 
      array (
      ),
      'reference' => 'd145c44530af6a5f285ec00d7fffd5d6d8085bbb',
    ),
    'adianti/plugins' => 
    array (
      'pretty_version' => 'dev-master',
      'version' => 'dev-master',
      'aliases' => 
      array (
        0 => '9999999-dev',
      ),
      'reference' => '53e2704203635915f3375dbdb66a97af52c56e6c',
    ),
    'adianti/studio-forms' => 
    array (
      'pretty_version' => 'v1.0.0',
      'version' => '1.0.0.0',
      'aliases' => 
      array (
      ),
      'reference' => '1fd4b7de085d33ecb5860fca992ee100b1cc70f2',
    ),
    'adianti/table-writers' => 
    array (
      'pretty_version' => 'v1.0.0',
      'version' => '1.0.0.0',
      'aliases' => 
      array (
      ),
      'reference' => 'b6a8bdae279fd4059ee27d480e77c0685524fbd8',
    ),
    'bacon/bacon-qr-code' => 
    array (
      'pretty_version' => 'v3.0.1',
      'version' => '3.0.1.0',
      'aliases' => 
      array (
      ),
      'reference' => 'f9cc1f52b5a463062251d666761178dbdb6b544f',
    ),
    'dasprid/enum' => 
    array (
      'pretty_version' => '1.0.6',
      'version' => '1.0.6.0',
      'aliases' => 
      array (
      ),
      'reference' => '8dfd07c6d2cf31c8da90c53b83c026c7696dda90',
    ),
    'dompdf/dompdf' => 
    array (
      'pretty_version' => 'v3.1.0',
      'version' => '3.1.0.0',
      'aliases' => 
      array (
      ),
      'reference' => 'a51bd7a063a65499446919286fb18b518177155a',
    ),
    'dompdf/php-font-lib' => 
    array (
      'pretty_version' => '1.0.1',
      'version' => '1.0.1.0',
      'aliases' => 
      array (
      ),
      'reference' => '6137b7d4232b7f16c882c75e4ca3991dbcf6fe2d',
    ),
    'dompdf/php-svg-lib' => 
    array (
      'pretty_version' => '1.0.0',
      'version' => '1.0.0.0',
      'aliases' => 
      array (
      ),
      'reference' => 'eb045e518185298eb6ff8d80d0d0c6b17aecd9af',
    ),
    'firebase/php-jwt' => 
    array (
      'pretty_version' => 'v6.11.1',
      'version' => '6.11.1.0',
      'aliases' => 
      array (
      ),
      'reference' => 'd1e91ecf8c598d073d0995afa8cd5c75c6e19e66',
    ),
    'jfcherng/php-color-output' => 
    array (
      'pretty_version' => '3.0.0',
      'version' => '3.0.0.0',
      'aliases' => 
      array (
      ),
      'reference' => '6c7bf16686cc6a291647fcb87491640a2d5edd20',
    ),
    'jfcherng/php-diff' => 
    array (
      'pretty_version' => '6.16.2',
      'version' => '6.16.2.0',
      'aliases' => 
      array (
      ),
      'reference' => '7f46bcfc582e81769237d0b3f6b8a548efe8799d',
    ),
    'jfcherng/php-mb-string' => 
    array (
      'pretty_version' => '2.0.1',
      'version' => '2.0.1.0',
      'aliases' => 
      array (
      ),
      'reference' => '8407bfefde47849c9e7c9594e6de2ac85a0f845d',
    ),
    'jfcherng/php-sequence-matcher' => 
    array (
      'pretty_version' => '4.0.3',
      'version' => '4.0.3.0',
      'aliases' => 
      array (
      ),
      'reference' => 'd2038ac29627340a7458609072a8ba355e80ec5b',
    ),
    'linfo/linfo' => 
    array (
      'pretty_version' => 'v4.0.8',
      'version' => '4.0.8.0',
      'aliases' => 
      array (
      ),
      'reference' => 'cddc6963dc507342bc3b6bf828cf87fe2aa55a2e',
    ),
    'masterminds/html5' => 
    array (
      'pretty_version' => '2.9.0',
      'version' => '2.9.0.0',
      'aliases' => 
      array (
      ),
      'reference' => 'f5ac2c0b0a2eefca70b2ce32a5809992227e75a6',
    ),
    'pablodalloglio/fpdf' => 
    array (
      'pretty_version' => 'dev-master',
      'version' => 'dev-master',
      'aliases' => 
      array (
        0 => '9999999-dev',
      ),
      'reference' => 'd618db8f2b8549613c3b5b31e6afd9915bda9330',
    ),
    'pablodalloglio/ole' => 
    array (
      'pretty_version' => 'dev-master',
      'version' => 'dev-master',
      'aliases' => 
      array (
        0 => '9999999-dev',
      ),
      'reference' => '7f363227708424cdc6ff9ca4764f59895b4b27a8',
    ),
    'pablodalloglio/phprtflite' => 
    array (
      'pretty_version' => 'dev-master',
      'version' => 'dev-master',
      'aliases' => 
      array (
        0 => '9999999-dev',
      ),
      'reference' => 'df62039947efea1c20568b624553e0e9ba1adbea',
    ),
    'pablodalloglio/spreadsheet_excel_writer' => 
    array (
      'pretty_version' => 'dev-master',
      'version' => 'dev-master',
      'aliases' => 
      array (
        0 => '9999999-dev',
      ),
      'reference' => '21022df9029a58f2f812bfcb1879a1f83678d571',
    ),
    'paragonie/constant_time_encoding' => 
    array (
      'pretty_version' => 'v3.0.0',
      'version' => '3.0.0.0',
      'aliases' => 
      array (
      ),
      'reference' => 'df1e7fde177501eee2037dd159cf04f5f301a512',
    ),
    'phpmailer/phpmailer' => 
    array (
      'pretty_version' => 'v6.10.0',
      'version' => '6.10.0.0',
      'aliases' => 
      array (
      ),
      'reference' => 'bf74d75a1fde6beaa34a0ddae2ec5fce0f72a144',
    ),
    'picqer/php-barcode-generator' => 
    array (
      'pretty_version' => 'v3.2.2',
      'version' => '3.2.2.0',
      'aliases' => 
      array (
      ),
      'reference' => 'a1d1e687c4a758be759383a709b6205e445091ec',
    ),
    'psr/clock' => 
    array (
      'pretty_version' => '1.0.0',
      'version' => '1.0.0.0',
      'aliases' => 
      array (
      ),
      'reference' => 'e41a24703d4560fd0acb709162f73b8adfc3aa0d',
    ),
    'sabberworm/php-css-parser' => 
    array (
      'pretty_version' => 'v8.9.0',
      'version' => '8.9.0.0',
      'aliases' => 
      array (
      ),
      'reference' => 'd8e916507b88e389e26d4ab03c904a082aa66bb9',
    ),
    'spomky-labs/otphp' => 
    array (
      'pretty_version' => '11.3.0',
      'version' => '11.3.0.0',
      'aliases' => 
      array (
      ),
      'reference' => '2d8ccb5fc992b9cc65ef321fa4f00fefdb3f4b33',
    ),
    'symfony/deprecation-contracts' => 
    array (
      'pretty_version' => 'v3.6.0',
      'version' => '3.6.0.0',
      'aliases' => 
      array (
      ),
      'reference' => '63afe740e99a13ba87ec199bb07bbdee937a5b62',
    ),
    'tburry/pquery' => 
    array (
      'pretty_version' => 'v1.1.1',
      'version' => '1.1.1.0',
      'aliases' => 
      array (
      ),
      'reference' => '872339ffd38d261c4417ea1855428b1b4ff9abf1',
    ),
  ),
);







public static function getInstalledPackages()
{
return array_keys(self::$installed['versions']);
}









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














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)
{
if (!isset(self::$installed['versions'][$packageName])) {
throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed');
}

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

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





public static function getVersion($packageName)
{
if (!isset(self::$installed['versions'][$packageName])) {
throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed');
}

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

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





public static function getPrettyVersion($packageName)
{
if (!isset(self::$installed['versions'][$packageName])) {
throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed');
}

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

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





public static function getReference($packageName)
{
if (!isset(self::$installed['versions'][$packageName])) {
throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed');
}

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

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





public static function getRootPackage()
{
return self::$installed['root'];
}







public static function getRawData()
{
return self::$installed;
}



















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